diff options
29 files changed, 7362 insertions, 2768 deletions
diff --git a/xdelta1/NEWS b/xdelta1/NEWS index ff03b9f..6bbcbf9 100755 --- a/xdelta1/NEWS +++ b/xdelta1/NEWS | |||
@@ -1,6 +1,6 @@ | |||
1 | XDelta NEWS -- history of user-visible changes. -*- Text -*- | 1 | XDelta NEWS -- history of user-visible changes. -*- Text -*- |
2 | $Date: Fri, 29 Jun 2001 06:01:08 -0700 $ | 2 | $Date: Sun, 24 Feb 2002 11:31:12 -0800 $ |
3 | $ReleaseVersion: 1.1.3 $ | 3 | $ReleaseVersion: 1.1.4 $ |
4 | 4 | ||
5 | Please send bug reports to xdelta-bugs@XCF.Berkeley.EDU. See the file | 5 | Please send bug reports to xdelta-bugs@XCF.Berkeley.EDU. See the file |
6 | `README' for a description of how to report bugs. | 6 | `README' for a description of how to report bugs. |
diff --git a/xdelta1/aclocal.m4 b/xdelta1/aclocal.m4 index 0caafaa..1be1737 100755 --- a/xdelta1/aclocal.m4 +++ b/xdelta1/aclocal.m4 | |||
@@ -1,6 +1,6 @@ | |||
1 | dnl aclocal.m4 generated automatically by aclocal 1.4 | 1 | dnl aclocal.m4 generated automatically by aclocal 1.4-p6 |
2 | 2 | ||
3 | dnl Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. | 3 | dnl Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. |
4 | dnl This file is free software; the Free Software Foundation | 4 | dnl This file is free software; the Free Software Foundation |
5 | dnl gives unlimited permission to copy and/or distribute it, | 5 | dnl gives unlimited permission to copy and/or distribute it, |
6 | dnl with or without modifications, as long as this notice is preserved. | 6 | dnl with or without modifications, as long as this notice is preserved. |
@@ -10,9 +10,828 @@ dnl but WITHOUT ANY WARRANTY, to the extent permitted by law; without | |||
10 | dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A | 10 | dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A |
11 | dnl PARTICULAR PURPOSE. | 11 | dnl PARTICULAR PURPOSE. |
12 | 12 | ||
13 | # lib-prefix.m4 serial 4 (gettext-0.14.2) | ||
14 | dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. | ||
15 | dnl This file is free software; the Free Software Foundation | ||
16 | dnl gives unlimited permission to copy and/or distribute it, | ||
17 | dnl with or without modifications, as long as this notice is preserved. | ||
18 | |||
19 | dnl From Bruno Haible. | ||
20 | |||
21 | dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and | ||
22 | dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't | ||
23 | dnl require excessive bracketing. | ||
24 | ifdef([AC_HELP_STRING], | ||
25 | [AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], | ||
26 | [AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) | ||
27 | |||
28 | dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed | ||
29 | dnl to access previously installed libraries. The basic assumption is that | ||
30 | dnl a user will want packages to use other packages he previously installed | ||
31 | dnl with the same --prefix option. | ||
32 | dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate | ||
33 | dnl libraries, but is otherwise very convenient. | ||
34 | AC_DEFUN([AC_LIB_PREFIX], | ||
35 | [ | ||
36 | AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) | ||
37 | AC_REQUIRE([AC_PROG_CC]) | ||
38 | AC_REQUIRE([AC_CANONICAL_HOST]) | ||
39 | AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) | ||
40 | dnl By default, look in $includedir and $libdir. | ||
41 | use_additional=yes | ||
42 | AC_LIB_WITH_FINAL_PREFIX([ | ||
43 | eval additional_includedir=\"$includedir\" | ||
44 | eval additional_libdir=\"$libdir\" | ||
45 | ]) | ||
46 | AC_LIB_ARG_WITH([lib-prefix], | ||
47 | [ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib | ||
48 | --without-lib-prefix don't search for libraries in includedir and libdir], | ||
49 | [ | ||
50 | if test "X$withval" = "Xno"; then | ||
51 | use_additional=no | ||
52 | else | ||
53 | if test "X$withval" = "X"; then | ||
54 | AC_LIB_WITH_FINAL_PREFIX([ | ||
55 | eval additional_includedir=\"$includedir\" | ||
56 | eval additional_libdir=\"$libdir\" | ||
57 | ]) | ||
58 | else | ||
59 | additional_includedir="$withval/include" | ||
60 | additional_libdir="$withval/lib" | ||
61 | fi | ||
62 | fi | ||
63 | ]) | ||
64 | if test $use_additional = yes; then | ||
65 | dnl Potentially add $additional_includedir to $CPPFLAGS. | ||
66 | dnl But don't add it | ||
67 | dnl 1. if it's the standard /usr/include, | ||
68 | dnl 2. if it's already present in $CPPFLAGS, | ||
69 | dnl 3. if it's /usr/local/include and we are using GCC on Linux, | ||
70 | dnl 4. if it doesn't exist as a directory. | ||
71 | if test "X$additional_includedir" != "X/usr/include"; then | ||
72 | haveit= | ||
73 | for x in $CPPFLAGS; do | ||
74 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | ||
75 | if test "X$x" = "X-I$additional_includedir"; then | ||
76 | haveit=yes | ||
77 | break | ||
78 | fi | ||
79 | done | ||
80 | if test -z "$haveit"; then | ||
81 | if test "X$additional_includedir" = "X/usr/local/include"; then | ||
82 | if test -n "$GCC"; then | ||
83 | case $host_os in | ||
84 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | ||
85 | esac | ||
86 | fi | ||
87 | fi | ||
88 | if test -z "$haveit"; then | ||
89 | if test -d "$additional_includedir"; then | ||
90 | dnl Really add $additional_includedir to $CPPFLAGS. | ||
91 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" | ||
92 | fi | ||
93 | fi | ||
94 | fi | ||
95 | fi | ||
96 | dnl Potentially add $additional_libdir to $LDFLAGS. | ||
97 | dnl But don't add it | ||
98 | dnl 1. if it's the standard /usr/lib, | ||
99 | dnl 2. if it's already present in $LDFLAGS, | ||
100 | dnl 3. if it's /usr/local/lib and we are using GCC on Linux, | ||
101 | dnl 4. if it doesn't exist as a directory. | ||
102 | if test "X$additional_libdir" != "X/usr/lib"; then | ||
103 | haveit= | ||
104 | for x in $LDFLAGS; do | ||
105 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | ||
106 | if test "X$x" = "X-L$additional_libdir"; then | ||
107 | haveit=yes | ||
108 | break | ||
109 | fi | ||
110 | done | ||
111 | if test -z "$haveit"; then | ||
112 | if test "X$additional_libdir" = "X/usr/local/lib"; then | ||
113 | if test -n "$GCC"; then | ||
114 | case $host_os in | ||
115 | linux*) haveit=yes;; | ||
116 | esac | ||
117 | fi | ||
118 | fi | ||
119 | if test -z "$haveit"; then | ||
120 | if test -d "$additional_libdir"; then | ||
121 | dnl Really add $additional_libdir to $LDFLAGS. | ||
122 | LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" | ||
123 | fi | ||
124 | fi | ||
125 | fi | ||
126 | fi | ||
127 | fi | ||
128 | ]) | ||
129 | |||
130 | dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, | ||
131 | dnl acl_final_exec_prefix, containing the values to which $prefix and | ||
132 | dnl $exec_prefix will expand at the end of the configure script. | ||
133 | AC_DEFUN([AC_LIB_PREPARE_PREFIX], | ||
134 | [ | ||
135 | dnl Unfortunately, prefix and exec_prefix get only finally determined | ||
136 | dnl at the end of configure. | ||
137 | if test "X$prefix" = "XNONE"; then | ||
138 | acl_final_prefix="$ac_default_prefix" | ||
139 | else | ||
140 | acl_final_prefix="$prefix" | ||
141 | fi | ||
142 | if test "X$exec_prefix" = "XNONE"; then | ||
143 | acl_final_exec_prefix='${prefix}' | ||
144 | else | ||
145 | acl_final_exec_prefix="$exec_prefix" | ||
146 | fi | ||
147 | acl_save_prefix="$prefix" | ||
148 | prefix="$acl_final_prefix" | ||
149 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" | ||
150 | prefix="$acl_save_prefix" | ||
151 | ]) | ||
152 | |||
153 | dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the | ||
154 | dnl variables prefix and exec_prefix bound to the values they will have | ||
155 | dnl at the end of the configure script. | ||
156 | AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], | ||
157 | [ | ||
158 | acl_save_prefix="$prefix" | ||
159 | prefix="$acl_final_prefix" | ||
160 | acl_save_exec_prefix="$exec_prefix" | ||
161 | exec_prefix="$acl_final_exec_prefix" | ||
162 | $1 | ||
163 | exec_prefix="$acl_save_exec_prefix" | ||
164 | prefix="$acl_save_prefix" | ||
165 | ]) | ||
166 | |||
167 | # lib-link.m4 serial 6 (gettext-0.14.3) | ||
168 | dnl Copyright (C) 2001-2005 Free Software Foundation, Inc. | ||
169 | dnl This file is free software; the Free Software Foundation | ||
170 | dnl gives unlimited permission to copy and/or distribute it, | ||
171 | dnl with or without modifications, as long as this notice is preserved. | ||
172 | |||
173 | dnl From Bruno Haible. | ||
174 | |||
175 | AC_PREREQ(2.50) | ||
176 | |||
177 | dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and | ||
178 | dnl the libraries corresponding to explicit and implicit dependencies. | ||
179 | dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and | ||
180 | dnl augments the CPPFLAGS variable. | ||
181 | AC_DEFUN([AC_LIB_LINKFLAGS], | ||
182 | [ | ||
183 | AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) | ||
184 | AC_REQUIRE([AC_LIB_RPATH]) | ||
185 | define([Name],[translit([$1],[./-], [___])]) | ||
186 | define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], | ||
187 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) | ||
188 | AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [ | ||
189 | AC_LIB_LINKFLAGS_BODY([$1], [$2]) | ||
190 | ac_cv_lib[]Name[]_libs="$LIB[]NAME" | ||
191 | ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME" | ||
192 | ac_cv_lib[]Name[]_cppflags="$INC[]NAME" | ||
193 | ]) | ||
194 | LIB[]NAME="$ac_cv_lib[]Name[]_libs" | ||
195 | LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs" | ||
196 | INC[]NAME="$ac_cv_lib[]Name[]_cppflags" | ||
197 | AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) | ||
198 | AC_SUBST([LIB]NAME) | ||
199 | AC_SUBST([LTLIB]NAME) | ||
200 | dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the | ||
201 | dnl results of this search when this library appears as a dependency. | ||
202 | HAVE_LIB[]NAME=yes | ||
203 | undefine([Name]) | ||
204 | undefine([NAME]) | ||
205 | ]) | ||
206 | |||
207 | dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode) | ||
208 | dnl searches for libname and the libraries corresponding to explicit and | ||
209 | dnl implicit dependencies, together with the specified include files and | ||
210 | dnl the ability to compile and link the specified testcode. If found, it | ||
211 | dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and | ||
212 | dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and | ||
213 | dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs | ||
214 | dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty. | ||
215 | AC_DEFUN([AC_LIB_HAVE_LINKFLAGS], | ||
216 | [ | ||
217 | AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) | ||
218 | AC_REQUIRE([AC_LIB_RPATH]) | ||
219 | define([Name],[translit([$1],[./-], [___])]) | ||
220 | define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], | ||
221 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) | ||
222 | |||
223 | dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME | ||
224 | dnl accordingly. | ||
225 | AC_LIB_LINKFLAGS_BODY([$1], [$2]) | ||
226 | |||
227 | dnl Add $INC[]NAME to CPPFLAGS before performing the following checks, | ||
228 | dnl because if the user has installed lib[]Name and not disabled its use | ||
229 | dnl via --without-lib[]Name-prefix, he wants to use it. | ||
230 | ac_save_CPPFLAGS="$CPPFLAGS" | ||
231 | AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME) | ||
232 | |||
233 | AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [ | ||
234 | ac_save_LIBS="$LIBS" | ||
235 | LIBS="$LIBS $LIB[]NAME" | ||
236 | AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no]) | ||
237 | LIBS="$ac_save_LIBS" | ||
238 | ]) | ||
239 | if test "$ac_cv_lib[]Name" = yes; then | ||
240 | HAVE_LIB[]NAME=yes | ||
241 | AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.]) | ||
242 | AC_MSG_CHECKING([how to link with lib[]$1]) | ||
243 | AC_MSG_RESULT([$LIB[]NAME]) | ||
244 | else | ||
245 | HAVE_LIB[]NAME=no | ||
246 | dnl If $LIB[]NAME didn't lead to a usable library, we don't need | ||
247 | dnl $INC[]NAME either. | ||
248 | CPPFLAGS="$ac_save_CPPFLAGS" | ||
249 | LIB[]NAME= | ||
250 | LTLIB[]NAME= | ||
251 | fi | ||
252 | AC_SUBST([HAVE_LIB]NAME) | ||
253 | AC_SUBST([LIB]NAME) | ||
254 | AC_SUBST([LTLIB]NAME) | ||
255 | undefine([Name]) | ||
256 | undefine([NAME]) | ||
257 | ]) | ||
258 | |||
259 | dnl Determine the platform dependent parameters needed to use rpath: | ||
260 | dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator, | ||
261 | dnl hardcode_direct, hardcode_minus_L. | ||
262 | AC_DEFUN([AC_LIB_RPATH], | ||
263 | [ | ||
264 | dnl Tell automake >= 1.10 to complain if config.rpath is missing. | ||
265 | m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) | ||
266 | AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS | ||
267 | AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld | ||
268 | AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host | ||
269 | AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir | ||
270 | AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [ | ||
271 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ | ||
272 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh | ||
273 | . ./conftest.sh | ||
274 | rm -f ./conftest.sh | ||
275 | acl_cv_rpath=done | ||
276 | ]) | ||
277 | wl="$acl_cv_wl" | ||
278 | libext="$acl_cv_libext" | ||
279 | shlibext="$acl_cv_shlibext" | ||
280 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" | ||
281 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" | ||
282 | hardcode_direct="$acl_cv_hardcode_direct" | ||
283 | hardcode_minus_L="$acl_cv_hardcode_minus_L" | ||
284 | dnl Determine whether the user wants rpath handling at all. | ||
285 | AC_ARG_ENABLE(rpath, | ||
286 | [ --disable-rpath do not hardcode runtime library paths], | ||
287 | :, enable_rpath=yes) | ||
288 | ]) | ||
289 | |||
290 | dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and | ||
291 | dnl the libraries corresponding to explicit and implicit dependencies. | ||
292 | dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables. | ||
293 | AC_DEFUN([AC_LIB_LINKFLAGS_BODY], | ||
294 | [ | ||
295 | define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], | ||
296 | [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) | ||
297 | dnl By default, look in $includedir and $libdir. | ||
298 | use_additional=yes | ||
299 | AC_LIB_WITH_FINAL_PREFIX([ | ||
300 | eval additional_includedir=\"$includedir\" | ||
301 | eval additional_libdir=\"$libdir\" | ||
302 | ]) | ||
303 | AC_LIB_ARG_WITH([lib$1-prefix], | ||
304 | [ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib | ||
305 | --without-lib$1-prefix don't search for lib$1 in includedir and libdir], | ||
306 | [ | ||
307 | if test "X$withval" = "Xno"; then | ||
308 | use_additional=no | ||
309 | else | ||
310 | if test "X$withval" = "X"; then | ||
311 | AC_LIB_WITH_FINAL_PREFIX([ | ||
312 | eval additional_includedir=\"$includedir\" | ||
313 | eval additional_libdir=\"$libdir\" | ||
314 | ]) | ||
315 | else | ||
316 | additional_includedir="$withval/include" | ||
317 | additional_libdir="$withval/lib" | ||
318 | fi | ||
319 | fi | ||
320 | ]) | ||
321 | dnl Search the library and its dependencies in $additional_libdir and | ||
322 | dnl $LDFLAGS. Using breadth-first-seach. | ||
323 | LIB[]NAME= | ||
324 | LTLIB[]NAME= | ||
325 | INC[]NAME= | ||
326 | rpathdirs= | ||
327 | ltrpathdirs= | ||
328 | names_already_handled= | ||
329 | names_next_round='$1 $2' | ||
330 | while test -n "$names_next_round"; do | ||
331 | names_this_round="$names_next_round" | ||
332 | names_next_round= | ||
333 | for name in $names_this_round; do | ||
334 | already_handled= | ||
335 | for n in $names_already_handled; do | ||
336 | if test "$n" = "$name"; then | ||
337 | already_handled=yes | ||
338 | break | ||
339 | fi | ||
340 | done | ||
341 | if test -z "$already_handled"; then | ||
342 | names_already_handled="$names_already_handled $name" | ||
343 | dnl See if it was already located by an earlier AC_LIB_LINKFLAGS | ||
344 | dnl or AC_LIB_HAVE_LINKFLAGS call. | ||
345 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` | ||
346 | eval value=\"\$HAVE_LIB$uppername\" | ||
347 | if test -n "$value"; then | ||
348 | if test "$value" = yes; then | ||
349 | eval value=\"\$LIB$uppername\" | ||
350 | test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value" | ||
351 | eval value=\"\$LTLIB$uppername\" | ||
352 | test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value" | ||
353 | else | ||
354 | dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined | ||
355 | dnl that this library doesn't exist. So just drop it. | ||
356 | : | ||
357 | fi | ||
358 | else | ||
359 | dnl Search the library lib$name in $additional_libdir and $LDFLAGS | ||
360 | dnl and the already constructed $LIBNAME/$LTLIBNAME. | ||
361 | found_dir= | ||
362 | found_la= | ||
363 | found_so= | ||
364 | found_a= | ||
365 | if test $use_additional = yes; then | ||
366 | if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then | ||
367 | found_dir="$additional_libdir" | ||
368 | found_so="$additional_libdir/lib$name.$shlibext" | ||
369 | if test -f "$additional_libdir/lib$name.la"; then | ||
370 | found_la="$additional_libdir/lib$name.la" | ||
371 | fi | ||
372 | else | ||
373 | if test -f "$additional_libdir/lib$name.$libext"; then | ||
374 | found_dir="$additional_libdir" | ||
375 | found_a="$additional_libdir/lib$name.$libext" | ||
376 | if test -f "$additional_libdir/lib$name.la"; then | ||
377 | found_la="$additional_libdir/lib$name.la" | ||
378 | fi | ||
379 | fi | ||
380 | fi | ||
381 | fi | ||
382 | if test "X$found_dir" = "X"; then | ||
383 | for x in $LDFLAGS $LTLIB[]NAME; do | ||
384 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | ||
385 | case "$x" in | ||
386 | -L*) | ||
387 | dir=`echo "X$x" | sed -e 's/^X-L//'` | ||
388 | if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then | ||
389 | found_dir="$dir" | ||
390 | found_so="$dir/lib$name.$shlibext" | ||
391 | if test -f "$dir/lib$name.la"; then | ||
392 | found_la="$dir/lib$name.la" | ||
393 | fi | ||
394 | else | ||
395 | if test -f "$dir/lib$name.$libext"; then | ||
396 | found_dir="$dir" | ||
397 | found_a="$dir/lib$name.$libext" | ||
398 | if test -f "$dir/lib$name.la"; then | ||
399 | found_la="$dir/lib$name.la" | ||
400 | fi | ||
401 | fi | ||
402 | fi | ||
403 | ;; | ||
404 | esac | ||
405 | if test "X$found_dir" != "X"; then | ||
406 | break | ||
407 | fi | ||
408 | done | ||
409 | fi | ||
410 | if test "X$found_dir" != "X"; then | ||
411 | dnl Found the library. | ||
412 | LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name" | ||
413 | if test "X$found_so" != "X"; then | ||
414 | dnl Linking with a shared library. We attempt to hardcode its | ||
415 | dnl directory into the executable's runpath, unless it's the | ||
416 | dnl standard /usr/lib. | ||
417 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then | ||
418 | dnl No hardcoding is needed. | ||
419 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" | ||
420 | else | ||
421 | dnl Use an explicit option to hardcode DIR into the resulting | ||
422 | dnl binary. | ||
423 | dnl Potentially add DIR to ltrpathdirs. | ||
424 | dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. | ||
425 | haveit= | ||
426 | for x in $ltrpathdirs; do | ||
427 | if test "X$x" = "X$found_dir"; then | ||
428 | haveit=yes | ||
429 | break | ||
430 | fi | ||
431 | done | ||
432 | if test -z "$haveit"; then | ||
433 | ltrpathdirs="$ltrpathdirs $found_dir" | ||
434 | fi | ||
435 | dnl The hardcoding into $LIBNAME is system dependent. | ||
436 | if test "$hardcode_direct" = yes; then | ||
437 | dnl Using DIR/libNAME.so during linking hardcodes DIR into the | ||
438 | dnl resulting binary. | ||
439 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" | ||
440 | else | ||
441 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then | ||
442 | dnl Use an explicit option to hardcode DIR into the resulting | ||
443 | dnl binary. | ||
444 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" | ||
445 | dnl Potentially add DIR to rpathdirs. | ||
446 | dnl The rpathdirs will be appended to $LIBNAME at the end. | ||
447 | haveit= | ||
448 | for x in $rpathdirs; do | ||
449 | if test "X$x" = "X$found_dir"; then | ||
450 | haveit=yes | ||
451 | break | ||
452 | fi | ||
453 | done | ||
454 | if test -z "$haveit"; then | ||
455 | rpathdirs="$rpathdirs $found_dir" | ||
456 | fi | ||
457 | else | ||
458 | dnl Rely on "-L$found_dir". | ||
459 | dnl But don't add it if it's already contained in the LDFLAGS | ||
460 | dnl or the already constructed $LIBNAME | ||
461 | haveit= | ||
462 | for x in $LDFLAGS $LIB[]NAME; do | ||
463 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | ||
464 | if test "X$x" = "X-L$found_dir"; then | ||
465 | haveit=yes | ||
466 | break | ||
467 | fi | ||
468 | done | ||
469 | if test -z "$haveit"; then | ||
470 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir" | ||
471 | fi | ||
472 | if test "$hardcode_minus_L" != no; then | ||
473 | dnl FIXME: Not sure whether we should use | ||
474 | dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" | ||
475 | dnl here. | ||
476 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" | ||
477 | else | ||
478 | dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH | ||
479 | dnl here, because this doesn't fit in flags passed to the | ||
480 | dnl compiler. So give up. No hardcoding. This affects only | ||
481 | dnl very old systems. | ||
482 | dnl FIXME: Not sure whether we should use | ||
483 | dnl "-L$found_dir -l$name" or "-L$found_dir $found_so" | ||
484 | dnl here. | ||
485 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" | ||
486 | fi | ||
487 | fi | ||
488 | fi | ||
489 | fi | ||
490 | else | ||
491 | if test "X$found_a" != "X"; then | ||
492 | dnl Linking with a static library. | ||
493 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a" | ||
494 | else | ||
495 | dnl We shouldn't come here, but anyway it's good to have a | ||
496 | dnl fallback. | ||
497 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name" | ||
498 | fi | ||
499 | fi | ||
500 | dnl Assume the include files are nearby. | ||
501 | additional_includedir= | ||
502 | case "$found_dir" in | ||
503 | */lib | */lib/) | ||
504 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'` | ||
505 | additional_includedir="$basedir/include" | ||
506 | ;; | ||
507 | esac | ||
508 | if test "X$additional_includedir" != "X"; then | ||
509 | dnl Potentially add $additional_includedir to $INCNAME. | ||
510 | dnl But don't add it | ||
511 | dnl 1. if it's the standard /usr/include, | ||
512 | dnl 2. if it's /usr/local/include and we are using GCC on Linux, | ||
513 | dnl 3. if it's already present in $CPPFLAGS or the already | ||
514 | dnl constructed $INCNAME, | ||
515 | dnl 4. if it doesn't exist as a directory. | ||
516 | if test "X$additional_includedir" != "X/usr/include"; then | ||
517 | haveit= | ||
518 | if test "X$additional_includedir" = "X/usr/local/include"; then | ||
519 | if test -n "$GCC"; then | ||
520 | case $host_os in | ||
521 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | ||
522 | esac | ||
523 | fi | ||
524 | fi | ||
525 | if test -z "$haveit"; then | ||
526 | for x in $CPPFLAGS $INC[]NAME; do | ||
527 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | ||
528 | if test "X$x" = "X-I$additional_includedir"; then | ||
529 | haveit=yes | ||
530 | break | ||
531 | fi | ||
532 | done | ||
533 | if test -z "$haveit"; then | ||
534 | if test -d "$additional_includedir"; then | ||
535 | dnl Really add $additional_includedir to $INCNAME. | ||
536 | INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir" | ||
537 | fi | ||
538 | fi | ||
539 | fi | ||
540 | fi | ||
541 | fi | ||
542 | dnl Look for dependencies. | ||
543 | if test -n "$found_la"; then | ||
544 | dnl Read the .la file. It defines the variables | ||
545 | dnl dlname, library_names, old_library, dependency_libs, current, | ||
546 | dnl age, revision, installed, dlopen, dlpreopen, libdir. | ||
547 | save_libdir="$libdir" | ||
548 | case "$found_la" in | ||
549 | */* | *\\*) . "$found_la" ;; | ||
550 | *) . "./$found_la" ;; | ||
551 | esac | ||
552 | libdir="$save_libdir" | ||
553 | dnl We use only dependency_libs. | ||
554 | for dep in $dependency_libs; do | ||
555 | case "$dep" in | ||
556 | -L*) | ||
557 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` | ||
558 | dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. | ||
559 | dnl But don't add it | ||
560 | dnl 1. if it's the standard /usr/lib, | ||
561 | dnl 2. if it's /usr/local/lib and we are using GCC on Linux, | ||
562 | dnl 3. if it's already present in $LDFLAGS or the already | ||
563 | dnl constructed $LIBNAME, | ||
564 | dnl 4. if it doesn't exist as a directory. | ||
565 | if test "X$additional_libdir" != "X/usr/lib"; then | ||
566 | haveit= | ||
567 | if test "X$additional_libdir" = "X/usr/local/lib"; then | ||
568 | if test -n "$GCC"; then | ||
569 | case $host_os in | ||
570 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; | ||
571 | esac | ||
572 | fi | ||
573 | fi | ||
574 | if test -z "$haveit"; then | ||
575 | haveit= | ||
576 | for x in $LDFLAGS $LIB[]NAME; do | ||
577 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | ||
578 | if test "X$x" = "X-L$additional_libdir"; then | ||
579 | haveit=yes | ||
580 | break | ||
581 | fi | ||
582 | done | ||
583 | if test -z "$haveit"; then | ||
584 | if test -d "$additional_libdir"; then | ||
585 | dnl Really add $additional_libdir to $LIBNAME. | ||
586 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" | ||
587 | fi | ||
588 | fi | ||
589 | haveit= | ||
590 | for x in $LDFLAGS $LTLIB[]NAME; do | ||
591 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | ||
592 | if test "X$x" = "X-L$additional_libdir"; then | ||
593 | haveit=yes | ||
594 | break | ||
595 | fi | ||
596 | done | ||
597 | if test -z "$haveit"; then | ||
598 | if test -d "$additional_libdir"; then | ||
599 | dnl Really add $additional_libdir to $LTLIBNAME. | ||
600 | LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" | ||
601 | fi | ||
602 | fi | ||
603 | fi | ||
604 | fi | ||
605 | ;; | ||
606 | -R*) | ||
607 | dir=`echo "X$dep" | sed -e 's/^X-R//'` | ||
608 | if test "$enable_rpath" != no; then | ||
609 | dnl Potentially add DIR to rpathdirs. | ||
610 | dnl The rpathdirs will be appended to $LIBNAME at the end. | ||
611 | haveit= | ||
612 | for x in $rpathdirs; do | ||
613 | if test "X$x" = "X$dir"; then | ||
614 | haveit=yes | ||
615 | break | ||
616 | fi | ||
617 | done | ||
618 | if test -z "$haveit"; then | ||
619 | rpathdirs="$rpathdirs $dir" | ||
620 | fi | ||
621 | dnl Potentially add DIR to ltrpathdirs. | ||
622 | dnl The ltrpathdirs will be appended to $LTLIBNAME at the end. | ||
623 | haveit= | ||
624 | for x in $ltrpathdirs; do | ||
625 | if test "X$x" = "X$dir"; then | ||
626 | haveit=yes | ||
627 | break | ||
628 | fi | ||
629 | done | ||
630 | if test -z "$haveit"; then | ||
631 | ltrpathdirs="$ltrpathdirs $dir" | ||
632 | fi | ||
633 | fi | ||
634 | ;; | ||
635 | -l*) | ||
636 | dnl Handle this in the next round. | ||
637 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` | ||
638 | ;; | ||
639 | *.la) | ||
640 | dnl Handle this in the next round. Throw away the .la's | ||
641 | dnl directory; it is already contained in a preceding -L | ||
642 | dnl option. | ||
643 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` | ||
644 | ;; | ||
645 | *) | ||
646 | dnl Most likely an immediate library name. | ||
647 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep" | ||
648 | LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep" | ||
649 | ;; | ||
650 | esac | ||
651 | done | ||
652 | fi | ||
653 | else | ||
654 | dnl Didn't find the library; assume it is in the system directories | ||
655 | dnl known to the linker and runtime loader. (All the system | ||
656 | dnl directories known to the linker should also be known to the | ||
657 | dnl runtime loader, otherwise the system is severely misconfigured.) | ||
658 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name" | ||
659 | LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name" | ||
660 | fi | ||
661 | fi | ||
662 | fi | ||
663 | done | ||
664 | done | ||
665 | if test "X$rpathdirs" != "X"; then | ||
666 | if test -n "$hardcode_libdir_separator"; then | ||
667 | dnl Weird platform: only the last -rpath option counts, the user must | ||
668 | dnl pass all path elements in one option. We can arrange that for a | ||
669 | dnl single library, but not when more than one $LIBNAMEs are used. | ||
670 | alldirs= | ||
671 | for found_dir in $rpathdirs; do | ||
672 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" | ||
673 | done | ||
674 | dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl. | ||
675 | acl_save_libdir="$libdir" | ||
676 | libdir="$alldirs" | ||
677 | eval flag=\"$hardcode_libdir_flag_spec\" | ||
678 | libdir="$acl_save_libdir" | ||
679 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" | ||
680 | else | ||
681 | dnl The -rpath options are cumulative. | ||
682 | for found_dir in $rpathdirs; do | ||
683 | acl_save_libdir="$libdir" | ||
684 | libdir="$found_dir" | ||
685 | eval flag=\"$hardcode_libdir_flag_spec\" | ||
686 | libdir="$acl_save_libdir" | ||
687 | LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag" | ||
688 | done | ||
689 | fi | ||
690 | fi | ||
691 | if test "X$ltrpathdirs" != "X"; then | ||
692 | dnl When using libtool, the option that works for both libraries and | ||
693 | dnl executables is -R. The -R options are cumulative. | ||
694 | for found_dir in $ltrpathdirs; do | ||
695 | LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" | ||
696 | done | ||
697 | fi | ||
698 | ]) | ||
699 | |||
700 | dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR, | ||
701 | dnl unless already present in VAR. | ||
702 | dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes | ||
703 | dnl contains two or three consecutive elements that belong together. | ||
704 | AC_DEFUN([AC_LIB_APPENDTOVAR], | ||
705 | [ | ||
706 | for element in [$2]; do | ||
707 | haveit= | ||
708 | for x in $[$1]; do | ||
709 | AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) | ||
710 | if test "X$x" = "X$element"; then | ||
711 | haveit=yes | ||
712 | break | ||
713 | fi | ||
714 | done | ||
715 | if test -z "$haveit"; then | ||
716 | [$1]="${[$1]}${[$1]:+ }$element" | ||
717 | fi | ||
718 | done | ||
719 | ]) | ||
720 | |||
721 | # lib-ld.m4 serial 3 (gettext-0.13) | ||
722 | dnl Copyright (C) 1996-2003 Free Software Foundation, Inc. | ||
723 | dnl This file is free software; the Free Software Foundation | ||
724 | dnl gives unlimited permission to copy and/or distribute it, | ||
725 | dnl with or without modifications, as long as this notice is preserved. | ||
726 | |||
727 | dnl Subroutines of libtool.m4, | ||
728 | dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision | ||
729 | dnl with libtool.m4. | ||
730 | |||
731 | dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. | ||
732 | AC_DEFUN([AC_LIB_PROG_LD_GNU], | ||
733 | [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld, | ||
734 | [# I'd rather use --version here, but apparently some GNU ld's only accept -v. | ||
735 | case `$LD -v 2>&1 </dev/null` in | ||
736 | *GNU* | *'with BFD'*) | ||
737 | acl_cv_prog_gnu_ld=yes ;; | ||
738 | *) | ||
739 | acl_cv_prog_gnu_ld=no ;; | ||
740 | esac]) | ||
741 | with_gnu_ld=$acl_cv_prog_gnu_ld | ||
742 | ]) | ||
743 | |||
744 | dnl From libtool-1.4. Sets the variable LD. | ||
745 | AC_DEFUN([AC_LIB_PROG_LD], | ||
746 | [AC_ARG_WITH(gnu-ld, | ||
747 | [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], | ||
748 | test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) | ||
749 | AC_REQUIRE([AC_PROG_CC])dnl | ||
750 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | ||
751 | # Prepare PATH_SEPARATOR. | ||
752 | # The user is always right. | ||
753 | if test "${PATH_SEPARATOR+set}" != set; then | ||
754 | echo "#! /bin/sh" >conf$$.sh | ||
755 | echo "exit 0" >>conf$$.sh | ||
756 | chmod +x conf$$.sh | ||
757 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
758 | PATH_SEPARATOR=';' | ||
759 | else | ||
760 | PATH_SEPARATOR=: | ||
761 | fi | ||
762 | rm -f conf$$.sh | ||
763 | fi | ||
764 | ac_prog=ld | ||
765 | if test "$GCC" = yes; then | ||
766 | # Check if gcc -print-prog-name=ld gives a path. | ||
767 | AC_MSG_CHECKING([for ld used by GCC]) | ||
768 | case $host in | ||
769 | *-*-mingw*) | ||
770 | # gcc leaves a trailing carriage return which upsets mingw | ||
771 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
772 | *) | ||
773 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
774 | esac | ||
775 | case $ac_prog in | ||
776 | # Accept absolute paths. | ||
777 | [[\\/]* | [A-Za-z]:[\\/]*)] | ||
778 | [re_direlt='/[^/][^/]*/\.\./'] | ||
779 | # Canonicalize the path of ld | ||
780 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | ||
781 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
782 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | ||
783 | done | ||
784 | test -z "$LD" && LD="$ac_prog" | ||
785 | ;; | ||
786 | "") | ||
787 | # If it fails, then pretend we aren't using GCC. | ||
788 | ac_prog=ld | ||
789 | ;; | ||
790 | *) | ||
791 | # If it is relative, then search for the first ld in PATH. | ||
792 | with_gnu_ld=unknown | ||
793 | ;; | ||
794 | esac | ||
795 | elif test "$with_gnu_ld" = yes; then | ||
796 | AC_MSG_CHECKING([for GNU ld]) | ||
797 | else | ||
798 | AC_MSG_CHECKING([for non-GNU ld]) | ||
799 | fi | ||
800 | AC_CACHE_VAL(acl_cv_path_LD, | ||
801 | [if test -z "$LD"; then | ||
802 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | ||
803 | for ac_dir in $PATH; do | ||
804 | test -z "$ac_dir" && ac_dir=. | ||
805 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
806 | acl_cv_path_LD="$ac_dir/$ac_prog" | ||
807 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
808 | # but apparently some GNU ld's only accept -v. | ||
809 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
810 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in | ||
811 | *GNU* | *'with BFD'*) | ||
812 | test "$with_gnu_ld" != no && break ;; | ||
813 | *) | ||
814 | test "$with_gnu_ld" != yes && break ;; | ||
815 | esac | ||
816 | fi | ||
817 | done | ||
818 | IFS="$ac_save_ifs" | ||
819 | else | ||
820 | acl_cv_path_LD="$LD" # Let the user override the test with a path. | ||
821 | fi]) | ||
822 | LD="$acl_cv_path_LD" | ||
823 | if test -n "$LD"; then | ||
824 | AC_MSG_RESULT($LD) | ||
825 | else | ||
826 | AC_MSG_RESULT(no) | ||
827 | fi | ||
828 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | ||
829 | AC_LIB_PROG_LD_GNU | ||
830 | ]) | ||
831 | |||
13 | # Like AC_CONFIG_HEADER, but automatically create stamp file. | 832 | # Like AC_CONFIG_HEADER, but automatically create stamp file. |
14 | 833 | ||
15 | AC_DEFUN(AM_CONFIG_HEADER, | 834 | AC_DEFUN([AM_CONFIG_HEADER], |
16 | [AC_PREREQ([2.12]) | 835 | [AC_PREREQ([2.12]) |
17 | AC_CONFIG_HEADER([$1]) | 836 | AC_CONFIG_HEADER([$1]) |
18 | dnl When config.status generates a header, we must update the stamp-h file. | 837 | dnl When config.status generates a header, we must update the stamp-h file. |
@@ -42,8 +861,9 @@ changequote([,]))]) | |||
42 | dnl Usage: | 861 | dnl Usage: |
43 | dnl AM_INIT_AUTOMAKE(package,version, [no-define]) | 862 | dnl AM_INIT_AUTOMAKE(package,version, [no-define]) |
44 | 863 | ||
45 | AC_DEFUN(AM_INIT_AUTOMAKE, | 864 | AC_DEFUN([AM_INIT_AUTOMAKE], |
46 | [AC_REQUIRE([AC_PROG_INSTALL]) | 865 | [AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl |
866 | AC_REQUIRE([AC_PROG_INSTALL]) | ||
47 | PACKAGE=[$1] | 867 | PACKAGE=[$1] |
48 | AC_SUBST(PACKAGE) | 868 | AC_SUBST(PACKAGE) |
49 | VERSION=[$2] | 869 | VERSION=[$2] |
@@ -59,18 +879,47 @@ AC_REQUIRE([AM_SANITY_CHECK]) | |||
59 | AC_REQUIRE([AC_ARG_PROGRAM]) | 879 | AC_REQUIRE([AC_ARG_PROGRAM]) |
60 | dnl FIXME This is truly gross. | 880 | dnl FIXME This is truly gross. |
61 | missing_dir=`cd $ac_aux_dir && pwd` | 881 | missing_dir=`cd $ac_aux_dir && pwd` |
62 | AM_MISSING_PROG(ACLOCAL, aclocal, $missing_dir) | 882 | AM_MISSING_PROG(ACLOCAL, aclocal-${am__api_version}, $missing_dir) |
63 | AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) | 883 | AM_MISSING_PROG(AUTOCONF, autoconf, $missing_dir) |
64 | AM_MISSING_PROG(AUTOMAKE, automake, $missing_dir) | 884 | AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version}, $missing_dir) |
65 | AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) | 885 | AM_MISSING_PROG(AUTOHEADER, autoheader, $missing_dir) |
66 | AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) | 886 | AM_MISSING_PROG(MAKEINFO, makeinfo, $missing_dir) |
67 | AC_REQUIRE([AC_PROG_MAKE_SET])]) | 887 | AC_REQUIRE([AC_PROG_MAKE_SET])]) |
68 | 888 | ||
889 | # Copyright 2002 Free Software Foundation, Inc. | ||
890 | |||
891 | # This program is free software; you can redistribute it and/or modify | ||
892 | # it under the terms of the GNU General Public License as published by | ||
893 | # the Free Software Foundation; either version 2, or (at your option) | ||
894 | # any later version. | ||
895 | |||
896 | # This program is distributed in the hope that it will be useful, | ||
897 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
898 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
899 | # GNU General Public License for more details. | ||
900 | |||
901 | # You should have received a copy of the GNU General Public License | ||
902 | # along with this program; if not, write to the Free Software | ||
903 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA | ||
904 | |||
905 | # AM_AUTOMAKE_VERSION(VERSION) | ||
906 | # ---------------------------- | ||
907 | # Automake X.Y traces this macro to ensure aclocal.m4 has been | ||
908 | # generated from the m4 files accompanying Automake X.Y. | ||
909 | AC_DEFUN([AM_AUTOMAKE_VERSION],[am__api_version="1.4"]) | ||
910 | |||
911 | # AM_SET_CURRENT_AUTOMAKE_VERSION | ||
912 | # ------------------------------- | ||
913 | # Call AM_AUTOMAKE_VERSION so it can be traced. | ||
914 | # This function is AC_REQUIREd by AC_INIT_AUTOMAKE. | ||
915 | AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], | ||
916 | [AM_AUTOMAKE_VERSION([1.4-p6])]) | ||
917 | |||
69 | # | 918 | # |
70 | # Check to make sure that the build environment is sane. | 919 | # Check to make sure that the build environment is sane. |
71 | # | 920 | # |
72 | 921 | ||
73 | AC_DEFUN(AM_SANITY_CHECK, | 922 | AC_DEFUN([AM_SANITY_CHECK], |
74 | [AC_MSG_CHECKING([whether build environment is sane]) | 923 | [AC_MSG_CHECKING([whether build environment is sane]) |
75 | # Just in case | 924 | # Just in case |
76 | sleep 1 | 925 | sleep 1 |
@@ -111,7 +960,7 @@ AC_MSG_RESULT(yes)]) | |||
111 | 960 | ||
112 | dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) | 961 | dnl AM_MISSING_PROG(NAME, PROGRAM, DIRECTORY) |
113 | dnl The program must properly implement --version. | 962 | dnl The program must properly implement --version. |
114 | AC_DEFUN(AM_MISSING_PROG, | 963 | AC_DEFUN([AM_MISSING_PROG], |
115 | [AC_MSG_CHECKING(for working $2) | 964 | [AC_MSG_CHECKING(for working $2) |
116 | # Run test in a subshell; some versions of sh will print an error if | 965 | # Run test in a subshell; some versions of sh will print an error if |
117 | # an executable is not found, even if stderr is redirected. | 966 | # an executable is not found, even if stderr is redirected. |
@@ -130,7 +979,7 @@ AC_SUBST($1)]) | |||
130 | 979 | ||
131 | # serial 1 | 980 | # serial 1 |
132 | 981 | ||
133 | AC_DEFUN(AM_MAINTAINER_MODE, | 982 | AC_DEFUN([AM_MAINTAINER_MODE], |
134 | [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) | 983 | [AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles]) |
135 | dnl maintainer-mode is disabled by default | 984 | dnl maintainer-mode is disabled by default |
136 | AC_ARG_ENABLE(maintainer-mode, | 985 | AC_ARG_ENABLE(maintainer-mode, |
@@ -147,7 +996,7 @@ AC_DEFUN(AM_MAINTAINER_MODE, | |||
147 | 996 | ||
148 | # Define a conditional. | 997 | # Define a conditional. |
149 | 998 | ||
150 | AC_DEFUN(AM_CONDITIONAL, | 999 | AC_DEFUN([AM_CONDITIONAL], |
151 | [AC_SUBST($1_TRUE) | 1000 | [AC_SUBST($1_TRUE) |
152 | AC_SUBST($1_FALSE) | 1001 | AC_SUBST($1_FALSE) |
153 | if $2; then | 1002 | if $2; then |
@@ -158,76 +1007,552 @@ else | |||
158 | $1_FALSE= | 1007 | $1_FALSE= |
159 | fi]) | 1008 | fi]) |
160 | 1009 | ||
1010 | # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- | ||
1011 | |||
1012 | # serial 48 AC_PROG_LIBTOOL | ||
1013 | |||
1014 | |||
1015 | # AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED) | ||
1016 | # ----------------------------------------------------------- | ||
1017 | # If this macro is not defined by Autoconf, define it here. | ||
1018 | m4_ifdef([AC_PROVIDE_IFELSE], | ||
1019 | [], | ||
1020 | [m4_define([AC_PROVIDE_IFELSE], | ||
1021 | [m4_ifdef([AC_PROVIDE_$1], | ||
1022 | [$2], [$3])])]) | ||
161 | 1023 | ||
162 | # serial 40 AC_PROG_LIBTOOL | ||
163 | AC_DEFUN(AC_PROG_LIBTOOL, | ||
164 | [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl | ||
165 | 1024 | ||
166 | # Save cache, so that ltconfig can load it | 1025 | # AC_PROG_LIBTOOL |
167 | AC_CACHE_SAVE | 1026 | # --------------- |
1027 | AC_DEFUN([AC_PROG_LIBTOOL], | ||
1028 | [AC_REQUIRE([_AC_PROG_LIBTOOL])dnl | ||
1029 | dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX | ||
1030 | dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX. | ||
1031 | AC_PROVIDE_IFELSE([AC_PROG_CXX], | ||
1032 | [AC_LIBTOOL_CXX], | ||
1033 | [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX | ||
1034 | ])]) | ||
1035 | dnl And a similar setup for Fortran 77 support | ||
1036 | AC_PROVIDE_IFELSE([AC_PROG_F77], | ||
1037 | [AC_LIBTOOL_F77], | ||
1038 | [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77 | ||
1039 | ])]) | ||
168 | 1040 | ||
169 | # Actually configure libtool. ac_aux_dir is where install-sh is found. | 1041 | dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly. |
170 | CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \ | 1042 | dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run |
171 | LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \ | 1043 | dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both. |
172 | LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \ | 1044 | AC_PROVIDE_IFELSE([AC_PROG_GCJ], |
173 | DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \ | 1045 | [AC_LIBTOOL_GCJ], |
174 | ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \ | 1046 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ], |
175 | $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \ | 1047 | [AC_LIBTOOL_GCJ], |
176 | || AC_MSG_ERROR([libtool configure failed]) | 1048 | [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ], |
1049 | [AC_LIBTOOL_GCJ], | ||
1050 | [ifdef([AC_PROG_GCJ], | ||
1051 | [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])]) | ||
1052 | ifdef([A][M_PROG_GCJ], | ||
1053 | [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])]) | ||
1054 | ifdef([LT_AC_PROG_GCJ], | ||
1055 | [define([LT_AC_PROG_GCJ], | ||
1056 | defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])]) | ||
1057 | ])])# AC_PROG_LIBTOOL | ||
177 | 1058 | ||
178 | # Reload cache, that may have been modified by ltconfig | 1059 | |
179 | AC_CACHE_LOAD | 1060 | # _AC_PROG_LIBTOOL |
1061 | # ---------------- | ||
1062 | AC_DEFUN([_AC_PROG_LIBTOOL], | ||
1063 | [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl | ||
1064 | AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl | ||
1065 | AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl | ||
1066 | AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl | ||
180 | 1067 | ||
181 | # This can be used to rebuild libtool when needed | 1068 | # This can be used to rebuild libtool when needed |
182 | LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh" | 1069 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
183 | 1070 | ||
184 | # Always use our own libtool. | 1071 | # Always use our own libtool. |
185 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | 1072 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
186 | AC_SUBST(LIBTOOL)dnl | 1073 | AC_SUBST(LIBTOOL)dnl |
187 | 1074 | ||
188 | # Redirect the config.log output again, so that the ltconfig log is not | 1075 | # Prevent multiple expansion |
189 | # clobbered by the next message. | 1076 | define([AC_PROG_LIBTOOL], []) |
190 | exec 5>>./config.log | 1077 | ])# _AC_PROG_LIBTOOL |
191 | ]) | ||
192 | 1078 | ||
193 | AC_DEFUN(AC_LIBTOOL_SETUP, | 1079 | |
194 | [AC_PREREQ(2.13)dnl | 1080 | # AC_LIBTOOL_SETUP |
1081 | # ---------------- | ||
1082 | AC_DEFUN([AC_LIBTOOL_SETUP], | ||
1083 | [AC_PREREQ(2.50)dnl | ||
195 | AC_REQUIRE([AC_ENABLE_SHARED])dnl | 1084 | AC_REQUIRE([AC_ENABLE_SHARED])dnl |
196 | AC_REQUIRE([AC_ENABLE_STATIC])dnl | 1085 | AC_REQUIRE([AC_ENABLE_STATIC])dnl |
197 | AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl | 1086 | AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl |
198 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | 1087 | AC_REQUIRE([AC_CANONICAL_HOST])dnl |
199 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | 1088 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
200 | AC_REQUIRE([AC_PROG_RANLIB])dnl | ||
201 | AC_REQUIRE([AC_PROG_CC])dnl | 1089 | AC_REQUIRE([AC_PROG_CC])dnl |
202 | AC_REQUIRE([AC_PROG_LD])dnl | 1090 | AC_REQUIRE([AC_PROG_LD])dnl |
1091 | AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl | ||
203 | AC_REQUIRE([AC_PROG_NM])dnl | 1092 | AC_REQUIRE([AC_PROG_NM])dnl |
1093 | |||
204 | AC_REQUIRE([AC_PROG_LN_S])dnl | 1094 | AC_REQUIRE([AC_PROG_LN_S])dnl |
1095 | AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl | ||
1096 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | ||
1097 | AC_REQUIRE([AC_OBJEXT])dnl | ||
1098 | AC_REQUIRE([AC_EXEEXT])dnl | ||
205 | dnl | 1099 | dnl |
206 | 1100 | ||
207 | # Check for any special flags to pass to ltconfig. | 1101 | AC_LIBTOOL_SYS_MAX_CMD_LEN |
208 | libtool_flags="--cache-file=$cache_file" | 1102 | AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE |
209 | test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared" | 1103 | AC_LIBTOOL_OBJDIR |
210 | test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static" | 1104 | |
211 | test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install" | 1105 | AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl |
212 | test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc" | 1106 | _LT_AC_PROG_ECHO_BACKSLASH |
213 | test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld" | 1107 | |
214 | ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], | 1108 | case $host_os in |
215 | [libtool_flags="$libtool_flags --enable-dlopen"]) | 1109 | aix3*) |
216 | ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], | 1110 | # AIX sometimes has problems with the GCC collect2 program. For some |
217 | [libtool_flags="$libtool_flags --enable-win32-dll"]) | 1111 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
218 | AC_ARG_ENABLE(libtool-lock, | 1112 | # vanish in a puff of smoke. |
219 | [ --disable-libtool-lock avoid locking (might break parallel builds)]) | 1113 | if test "X${COLLECT_NAMES+set}" != Xset; then |
220 | test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock" | 1114 | COLLECT_NAMES= |
221 | test x"$silent" = xyes && libtool_flags="$libtool_flags --silent" | 1115 | export COLLECT_NAMES |
1116 | fi | ||
1117 | ;; | ||
1118 | esac | ||
1119 | |||
1120 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
1121 | # metacharacters that are still active within double-quoted strings. | ||
1122 | Xsed='sed -e 1s/^X//' | ||
1123 | [sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'] | ||
1124 | |||
1125 | # Same as above, but do not quote variable references. | ||
1126 | [double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'] | ||
1127 | |||
1128 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
1129 | # double_quote_subst'ed string. | ||
1130 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
1131 | |||
1132 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
1133 | no_glob_subst='s/\*/\\\*/g' | ||
1134 | |||
1135 | # Constants: | ||
1136 | rm="rm -f" | ||
1137 | |||
1138 | # Global variables: | ||
1139 | default_ofile=libtool | ||
1140 | can_build_shared=yes | ||
1141 | |||
1142 | # All known linkers require a `.a' archive for static linking (except MSVC, | ||
1143 | # which needs '.lib'). | ||
1144 | libext=a | ||
1145 | ltmain="$ac_aux_dir/ltmain.sh" | ||
1146 | ofile="$default_ofile" | ||
1147 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
1148 | |||
1149 | AC_CHECK_TOOL(AR, ar, false) | ||
1150 | AC_CHECK_TOOL(RANLIB, ranlib, :) | ||
1151 | AC_CHECK_TOOL(STRIP, strip, :) | ||
1152 | |||
1153 | old_CC="$CC" | ||
1154 | old_CFLAGS="$CFLAGS" | ||
1155 | |||
1156 | # Set sane defaults for various variables | ||
1157 | test -z "$AR" && AR=ar | ||
1158 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
1159 | test -z "$AS" && AS=as | ||
1160 | test -z "$CC" && CC=cc | ||
1161 | test -z "$LTCC" && LTCC=$CC | ||
1162 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | ||
1163 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
1164 | test -z "$LD" && LD=ld | ||
1165 | test -z "$LN_S" && LN_S="ln -s" | ||
1166 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
1167 | test -z "$NM" && NM=nm | ||
1168 | test -z "$SED" && SED=sed | ||
1169 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
1170 | test -z "$RANLIB" && RANLIB=: | ||
1171 | test -z "$STRIP" && STRIP=: | ||
1172 | test -z "$ac_objext" && ac_objext=o | ||
1173 | |||
1174 | # Determine commands to create old-style static archives. | ||
1175 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | ||
1176 | old_postinstall_cmds='chmod 644 $oldlib' | ||
1177 | old_postuninstall_cmds= | ||
1178 | |||
1179 | if test -n "$RANLIB"; then | ||
1180 | case $host_os in | ||
1181 | openbsd*) | ||
1182 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | ||
1183 | ;; | ||
1184 | *) | ||
1185 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | ||
1186 | ;; | ||
1187 | esac | ||
1188 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
1189 | fi | ||
1190 | |||
1191 | _LT_CC_BASENAME([$compiler]) | ||
1192 | |||
1193 | # Only perform the check for file, if the check method requires it | ||
1194 | case $deplibs_check_method in | ||
1195 | file_magic*) | ||
1196 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
1197 | AC_PATH_MAGIC | ||
1198 | fi | ||
1199 | ;; | ||
1200 | esac | ||
1201 | |||
1202 | AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no) | ||
1203 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], | ||
1204 | enable_win32_dll=yes, enable_win32_dll=no) | ||
1205 | |||
1206 | AC_ARG_ENABLE([libtool-lock], | ||
1207 | [AC_HELP_STRING([--disable-libtool-lock], | ||
1208 | [avoid locking (might break parallel builds)])]) | ||
1209 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
1210 | |||
1211 | AC_ARG_WITH([pic], | ||
1212 | [AC_HELP_STRING([--with-pic], | ||
1213 | [try to use only PIC/non-PIC objects @<:@default=use both@:>@])], | ||
1214 | [pic_mode="$withval"], | ||
1215 | [pic_mode=default]) | ||
1216 | test -z "$pic_mode" && pic_mode=default | ||
1217 | |||
1218 | # Check if we have a version mismatch between libtool.m4 and ltmain.sh. | ||
1219 | # | ||
1220 | # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined. | ||
1221 | # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually | ||
1222 | # calls AC_LIBTOOL_CONFIG and creates libtool. | ||
1223 | # | ||
1224 | _LT_VERSION_CHECK | ||
1225 | |||
1226 | # Use C for the default configuration in the libtool script | ||
1227 | tagname= | ||
1228 | AC_LIBTOOL_LANG_C_CONFIG | ||
1229 | _LT_AC_TAGCONFIG | ||
1230 | ])# AC_LIBTOOL_SETUP | ||
1231 | |||
1232 | |||
1233 | # _LT_VERSION_CHECK | ||
1234 | # ----------------- | ||
1235 | AC_DEFUN([_LT_VERSION_CHECK], | ||
1236 | [AC_MSG_CHECKING([for correct ltmain.sh version]) | ||
1237 | if test "x$ltmain" = "x" ; then | ||
1238 | AC_MSG_RESULT(no) | ||
1239 | AC_MSG_ERROR([ | ||
1240 | |||
1241 | *** @<:@Gentoo@:>@ sanity check failed! *** | ||
1242 | *** \$ltmain is not defined, please check the patch for consistency! *** | ||
1243 | ]) | ||
1244 | fi | ||
1245 | gentoo_lt_version="1.5.22" | ||
1246 | gentoo_ltmain_version=`sed -n '/^[[ ]]*VERSION=/{s/^[[ ]]*VERSION=//;p;q;}' "$ltmain"` | ||
1247 | if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then | ||
1248 | AC_MSG_RESULT(no) | ||
1249 | AC_MSG_ERROR([ | ||
1250 | |||
1251 | *** @<:@Gentoo@:>@ sanity check failed! *** | ||
1252 | *** libtool.m4 and ltmain.sh have a version mismatch! *** | ||
1253 | *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) *** | ||
1254 | |||
1255 | Please run: | ||
1256 | |||
1257 | libtoolize --copy --force | ||
1258 | |||
1259 | if appropriate, please contact the maintainer of this | ||
1260 | package (or your distribution) for help. | ||
1261 | ]) | ||
1262 | else | ||
1263 | AC_MSG_RESULT(yes) | ||
1264 | fi | ||
1265 | ])# _LT_VERSION_CHECK | ||
1266 | |||
1267 | |||
1268 | # _LT_AC_SYS_COMPILER | ||
1269 | # ------------------- | ||
1270 | AC_DEFUN([_LT_AC_SYS_COMPILER], | ||
1271 | [AC_REQUIRE([AC_PROG_CC])dnl | ||
1272 | |||
1273 | # If no C compiler was specified, use CC. | ||
1274 | LTCC=${LTCC-"$CC"} | ||
1275 | |||
1276 | # If no C compiler flags were specified, use CFLAGS. | ||
1277 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | ||
1278 | |||
1279 | # Allow CC to be a program name with arguments. | ||
1280 | compiler=$CC | ||
1281 | ])# _LT_AC_SYS_COMPILER | ||
1282 | |||
1283 | |||
1284 | # _LT_CC_BASENAME(CC) | ||
1285 | # ------------------- | ||
1286 | # Calculate cc_basename. Skip known compiler wrappers and cross-prefix. | ||
1287 | AC_DEFUN([_LT_CC_BASENAME], | ||
1288 | [for cc_temp in $1""; do | ||
1289 | case $cc_temp in | ||
1290 | compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;; | ||
1291 | distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;; | ||
1292 | \-*) ;; | ||
1293 | *) break;; | ||
1294 | esac | ||
1295 | done | ||
1296 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | ||
1297 | ]) | ||
1298 | |||
1299 | |||
1300 | # _LT_COMPILER_BOILERPLATE | ||
1301 | # ------------------------ | ||
1302 | # Check for compiler boilerplate output or warnings with | ||
1303 | # the simple compiler test code. | ||
1304 | AC_DEFUN([_LT_COMPILER_BOILERPLATE], | ||
1305 | [ac_outfile=conftest.$ac_objext | ||
1306 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | ||
1307 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
1308 | _lt_compiler_boilerplate=`cat conftest.err` | ||
1309 | $rm conftest* | ||
1310 | ])# _LT_COMPILER_BOILERPLATE | ||
1311 | |||
1312 | |||
1313 | # _LT_LINKER_BOILERPLATE | ||
1314 | # ---------------------- | ||
1315 | # Check for linker boilerplate output or warnings with | ||
1316 | # the simple link test code. | ||
1317 | AC_DEFUN([_LT_LINKER_BOILERPLATE], | ||
1318 | [ac_outfile=conftest.$ac_objext | ||
1319 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | ||
1320 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | ||
1321 | _lt_linker_boilerplate=`cat conftest.err` | ||
1322 | $rm conftest* | ||
1323 | ])# _LT_LINKER_BOILERPLATE | ||
1324 | |||
1325 | |||
1326 | # _LT_AC_SYS_LIBPATH_AIX | ||
1327 | # ---------------------- | ||
1328 | # Links a minimal program and checks the executable | ||
1329 | # for the system default hardcoded library path. In most cases, | ||
1330 | # this is /usr/lib:/lib, but when the MPI compilers are used | ||
1331 | # the location of the communication and MPI libs are included too. | ||
1332 | # If we don't find anything, use the default library path according | ||
1333 | # to the aix ld manual. | ||
1334 | AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX], | ||
1335 | [AC_LINK_IFELSE(AC_LANG_PROGRAM,[ | ||
1336 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
1337 | }'` | ||
1338 | # Check for a 64-bit object if we didn't find anything. | ||
1339 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
1340 | }'`; fi],[]) | ||
1341 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
1342 | ])# _LT_AC_SYS_LIBPATH_AIX | ||
1343 | |||
1344 | |||
1345 | # _LT_AC_SHELL_INIT(ARG) | ||
1346 | # ---------------------- | ||
1347 | AC_DEFUN([_LT_AC_SHELL_INIT], | ||
1348 | [ifdef([AC_DIVERSION_NOTICE], | ||
1349 | [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)], | ||
1350 | [AC_DIVERT_PUSH(NOTICE)]) | ||
1351 | $1 | ||
1352 | AC_DIVERT_POP | ||
1353 | ])# _LT_AC_SHELL_INIT | ||
1354 | |||
1355 | |||
1356 | # _LT_AC_PROG_ECHO_BACKSLASH | ||
1357 | # -------------------------- | ||
1358 | # Add some code to the start of the generated configure script which | ||
1359 | # will find an echo command which doesn't interpret backslashes. | ||
1360 | AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH], | ||
1361 | [_LT_AC_SHELL_INIT([ | ||
1362 | # Check that we are running under the correct shell. | ||
1363 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
1364 | |||
1365 | case X$ECHO in | ||
1366 | X*--fallback-echo) | ||
1367 | # Remove one level of quotation (which was required for Make). | ||
1368 | ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','` | ||
1369 | ;; | ||
1370 | esac | ||
1371 | |||
1372 | echo=${ECHO-echo} | ||
1373 | if test "X[$]1" = X--no-reexec; then | ||
1374 | # Discard the --no-reexec flag, and continue. | ||
1375 | shift | ||
1376 | elif test "X[$]1" = X--fallback-echo; then | ||
1377 | # Avoid inline document here, it may be left over | ||
1378 | : | ||
1379 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | ||
1380 | # Yippee, $echo works! | ||
1381 | : | ||
1382 | else | ||
1383 | # Restart under the correct shell. | ||
1384 | exec $SHELL "[$]0" --no-reexec ${1+"[$]@"} | ||
1385 | fi | ||
1386 | |||
1387 | if test "X[$]1" = X--fallback-echo; then | ||
1388 | # used as fallback echo | ||
1389 | shift | ||
1390 | cat <<EOF | ||
1391 | [$]* | ||
1392 | EOF | ||
1393 | exit 0 | ||
1394 | fi | ||
1395 | |||
1396 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
1397 | # if CDPATH is set. | ||
1398 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
1399 | |||
1400 | if test -z "$ECHO"; then | ||
1401 | if test "X${echo_test_string+set}" != Xset; then | ||
1402 | # find a string as large as possible, as long as the shell can cope with it | ||
1403 | for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do | ||
1404 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
1405 | if (echo_test_string=`eval $cmd`) 2>/dev/null && | ||
1406 | echo_test_string=`eval $cmd` && | ||
1407 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | ||
1408 | then | ||
1409 | break | ||
1410 | fi | ||
1411 | done | ||
1412 | fi | ||
1413 | |||
1414 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
1415 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
1416 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1417 | : | ||
1418 | else | ||
1419 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
1420 | # backslashes. This makes it impossible to quote backslashes using | ||
1421 | # echo "$something" | sed 's/\\/\\\\/g' | ||
1422 | # | ||
1423 | # So, first we look for a working echo in the user's PATH. | ||
1424 | |||
1425 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
1426 | for dir in $PATH /usr/ucb; do | ||
1427 | IFS="$lt_save_ifs" | ||
1428 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
1429 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
1430 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
1431 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1432 | echo="$dir/echo" | ||
1433 | break | ||
1434 | fi | ||
1435 | done | ||
1436 | IFS="$lt_save_ifs" | ||
1437 | |||
1438 | if test "X$echo" = Xecho; then | ||
1439 | # We didn't find a better echo, so look for alternatives. | ||
1440 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | ||
1441 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | ||
1442 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1443 | # This shell has a builtin print -r that does the trick. | ||
1444 | echo='print -r' | ||
1445 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | ||
1446 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
1447 | # If we have ksh, try running configure again with it. | ||
1448 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
1449 | export ORIGINAL_CONFIG_SHELL | ||
1450 | CONFIG_SHELL=/bin/ksh | ||
1451 | export CONFIG_SHELL | ||
1452 | exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"} | ||
1453 | else | ||
1454 | # Try using printf. | ||
1455 | echo='printf %s\n' | ||
1456 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
1457 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
1458 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1459 | # Cool, printf works | ||
1460 | : | ||
1461 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | ||
1462 | test "X$echo_testing_string" = 'X\t' && | ||
1463 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
1464 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1465 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
1466 | export CONFIG_SHELL | ||
1467 | SHELL="$CONFIG_SHELL" | ||
1468 | export SHELL | ||
1469 | echo="$CONFIG_SHELL [$]0 --fallback-echo" | ||
1470 | elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` && | ||
1471 | test "X$echo_testing_string" = 'X\t' && | ||
1472 | echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
1473 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
1474 | echo="$CONFIG_SHELL [$]0 --fallback-echo" | ||
1475 | else | ||
1476 | # maybe with a smaller string... | ||
1477 | prev=: | ||
1478 | |||
1479 | for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do | ||
1480 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | ||
1481 | then | ||
1482 | break | ||
1483 | fi | ||
1484 | prev="$cmd" | ||
1485 | done | ||
1486 | |||
1487 | if test "$prev" != 'sed 50q "[$]0"'; then | ||
1488 | echo_test_string=`eval $prev` | ||
1489 | export echo_test_string | ||
1490 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"} | ||
1491 | else | ||
1492 | # Oops. We lost completely, so just stick with echo. | ||
1493 | echo=echo | ||
1494 | fi | ||
1495 | fi | ||
1496 | fi | ||
1497 | fi | ||
1498 | fi | ||
1499 | fi | ||
1500 | |||
1501 | # Copy echo and quote the copy suitably for passing to libtool from | ||
1502 | # the Makefile, instead of quoting the original, which is used later. | ||
1503 | ECHO=$echo | ||
1504 | if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then | ||
1505 | ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo" | ||
1506 | fi | ||
1507 | |||
1508 | AC_SUBST(ECHO) | ||
1509 | ])])# _LT_AC_PROG_ECHO_BACKSLASH | ||
1510 | |||
1511 | |||
1512 | # _LT_AC_LOCK | ||
1513 | # ----------- | ||
1514 | AC_DEFUN([_LT_AC_LOCK], | ||
1515 | [AC_ARG_ENABLE([libtool-lock], | ||
1516 | [AC_HELP_STRING([--disable-libtool-lock], | ||
1517 | [avoid locking (might break parallel builds)])]) | ||
1518 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
222 | 1519 | ||
223 | # Some flags need to be propagated to the compiler or linker for good | 1520 | # Some flags need to be propagated to the compiler or linker for good |
224 | # libtool support. | 1521 | # libtool support. |
225 | case "$host" in | 1522 | case $host in |
1523 | ia64-*-hpux*) | ||
1524 | # Find out which ABI we are using. | ||
1525 | echo 'int i;' > conftest.$ac_ext | ||
1526 | if AC_TRY_EVAL(ac_compile); then | ||
1527 | case `/usr/bin/file conftest.$ac_objext` in | ||
1528 | *ELF-32*) | ||
1529 | HPUX_IA64_MODE="32" | ||
1530 | ;; | ||
1531 | *ELF-64*) | ||
1532 | HPUX_IA64_MODE="64" | ||
1533 | ;; | ||
1534 | esac | ||
1535 | fi | ||
1536 | rm -rf conftest* | ||
1537 | ;; | ||
226 | *-*-irix6*) | 1538 | *-*-irix6*) |
227 | # Find out which ABI we are using. | 1539 | # Find out which ABI we are using. |
228 | echo '[#]line __oline__ "configure"' > conftest.$ac_ext | 1540 | echo '[#]line __oline__ "configure"' > conftest.$ac_ext |
229 | if AC_TRY_EVAL(ac_compile); then | 1541 | if AC_TRY_EVAL(ac_compile); then |
230 | case "`/usr/bin/file conftest.o`" in | 1542 | if test "$lt_cv_prog_gnu_ld" = yes; then |
1543 | case `/usr/bin/file conftest.$ac_objext` in | ||
1544 | *32-bit*) | ||
1545 | LD="${LD-ld} -melf32bsmip" | ||
1546 | ;; | ||
1547 | *N32*) | ||
1548 | LD="${LD-ld} -melf32bmipn32" | ||
1549 | ;; | ||
1550 | *64-bit*) | ||
1551 | LD="${LD-ld} -melf64bmip" | ||
1552 | ;; | ||
1553 | esac | ||
1554 | else | ||
1555 | case `/usr/bin/file conftest.$ac_objext` in | ||
231 | *32-bit*) | 1556 | *32-bit*) |
232 | LD="${LD-ld} -32" | 1557 | LD="${LD-ld} -32" |
233 | ;; | 1558 | ;; |
@@ -238,6 +1563,49 @@ case "$host" in | |||
238 | LD="${LD-ld} -64" | 1563 | LD="${LD-ld} -64" |
239 | ;; | 1564 | ;; |
240 | esac | 1565 | esac |
1566 | fi | ||
1567 | fi | ||
1568 | rm -rf conftest* | ||
1569 | ;; | ||
1570 | |||
1571 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | ||
1572 | # Find out which ABI we are using. | ||
1573 | echo 'int i;' > conftest.$ac_ext | ||
1574 | if AC_TRY_EVAL(ac_compile); then | ||
1575 | case `/usr/bin/file conftest.o` in | ||
1576 | *32-bit*) | ||
1577 | case $host in | ||
1578 | x86_64-*linux*) | ||
1579 | LD="${LD-ld} -m elf_i386" | ||
1580 | ;; | ||
1581 | ppc64-*linux*|powerpc64-*linux*) | ||
1582 | LD="${LD-ld} -m elf32ppclinux" | ||
1583 | ;; | ||
1584 | s390x-*linux*) | ||
1585 | LD="${LD-ld} -m elf_s390" | ||
1586 | ;; | ||
1587 | sparc64-*linux*) | ||
1588 | LD="${LD-ld} -m elf32_sparc" | ||
1589 | ;; | ||
1590 | esac | ||
1591 | ;; | ||
1592 | *64-bit*) | ||
1593 | case $host in | ||
1594 | x86_64-*linux*) | ||
1595 | LD="${LD-ld} -m elf_x86_64" | ||
1596 | ;; | ||
1597 | ppc*-*linux*|powerpc*-*linux*) | ||
1598 | LD="${LD-ld} -m elf64ppc" | ||
1599 | ;; | ||
1600 | s390*-*linux*) | ||
1601 | LD="${LD-ld} -m elf64_s390" | ||
1602 | ;; | ||
1603 | sparc*-*linux*) | ||
1604 | LD="${LD-ld} -m elf64_sparc" | ||
1605 | ;; | ||
1606 | esac | ||
1607 | ;; | ||
1608 | esac | ||
241 | fi | 1609 | fi |
242 | rm -rf conftest* | 1610 | rm -rf conftest* |
243 | ;; | 1611 | ;; |
@@ -247,155 +1615,1627 @@ case "$host" in | |||
247 | SAVE_CFLAGS="$CFLAGS" | 1615 | SAVE_CFLAGS="$CFLAGS" |
248 | CFLAGS="$CFLAGS -belf" | 1616 | CFLAGS="$CFLAGS -belf" |
249 | AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, | 1617 | AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf, |
250 | [AC_LANG_SAVE | 1618 | [AC_LANG_PUSH(C) |
251 | AC_LANG_C | ||
252 | AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) | 1619 | AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no]) |
253 | AC_LANG_RESTORE]) | 1620 | AC_LANG_POP]) |
254 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | 1621 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
255 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | 1622 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
256 | CFLAGS="$SAVE_CFLAGS" | 1623 | CFLAGS="$SAVE_CFLAGS" |
257 | fi | 1624 | fi |
258 | ;; | 1625 | ;; |
1626 | sparc*-*solaris*) | ||
1627 | # Find out which ABI we are using. | ||
1628 | echo 'int i;' > conftest.$ac_ext | ||
1629 | if AC_TRY_EVAL(ac_compile); then | ||
1630 | case `/usr/bin/file conftest.o` in | ||
1631 | *64-bit*) | ||
1632 | case $lt_cv_prog_gnu_ld in | ||
1633 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | ||
1634 | *) LD="${LD-ld} -64" ;; | ||
1635 | esac | ||
1636 | ;; | ||
1637 | esac | ||
1638 | fi | ||
1639 | rm -rf conftest* | ||
1640 | ;; | ||
259 | 1641 | ||
260 | ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL], | 1642 | AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL], |
261 | [*-*-cygwin* | *-*-mingw*) | 1643 | [*-*-cygwin* | *-*-mingw* | *-*-pw32*) |
262 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) | 1644 | AC_CHECK_TOOL(DLLTOOL, dlltool, false) |
263 | AC_CHECK_TOOL(AS, as, false) | 1645 | AC_CHECK_TOOL(AS, as, false) |
264 | AC_CHECK_TOOL(OBJDUMP, objdump, false) | 1646 | AC_CHECK_TOOL(OBJDUMP, objdump, false) |
265 | ;; | 1647 | ;; |
266 | ]) | 1648 | ]) |
267 | esac | 1649 | esac |
1650 | |||
1651 | need_locks="$enable_libtool_lock" | ||
1652 | |||
1653 | ])# _LT_AC_LOCK | ||
1654 | |||
1655 | |||
1656 | # AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, | ||
1657 | # [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE]) | ||
1658 | # ---------------------------------------------------------------- | ||
1659 | # Check whether the given compiler option works | ||
1660 | AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], | ||
1661 | [AC_REQUIRE([LT_AC_PROG_SED]) | ||
1662 | AC_CACHE_CHECK([$1], [$2], | ||
1663 | [$2=no | ||
1664 | ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4]) | ||
1665 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
1666 | lt_compiler_flag="$3" | ||
1667 | # Insert the option either (1) after the last *FLAGS variable, or | ||
1668 | # (2) before a word containing "conftest.", or (3) at the end. | ||
1669 | # Note that $ac_compile itself does not contain backslashes and begins | ||
1670 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
1671 | # The option is referenced via a variable to avoid confusing sed. | ||
1672 | lt_compile=`echo "$ac_compile" | $SED \ | ||
1673 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
1674 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | ||
1675 | -e 's:$: $lt_compiler_flag:'` | ||
1676 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
1677 | (eval "$lt_compile" 2>conftest.err) | ||
1678 | ac_status=$? | ||
1679 | cat conftest.err >&AS_MESSAGE_LOG_FD | ||
1680 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
1681 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
1682 | # The compiler can only warn and ignore the option if not recognized | ||
1683 | # So say no if there are warnings other than the usual output. | ||
1684 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | ||
1685 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | ||
1686 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | ||
1687 | $2=yes | ||
1688 | fi | ||
1689 | fi | ||
1690 | $rm conftest* | ||
268 | ]) | 1691 | ]) |
269 | 1692 | ||
270 | # AC_LIBTOOL_DLOPEN - enable checks for dlopen support | 1693 | if test x"[$]$2" = xyes; then |
271 | AC_DEFUN(AC_LIBTOOL_DLOPEN, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])]) | 1694 | ifelse([$5], , :, [$5]) |
272 | 1695 | else | |
273 | # AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's | 1696 | ifelse([$6], , :, [$6]) |
274 | AC_DEFUN(AC_LIBTOOL_WIN32_DLL, [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])]) | 1697 | fi |
275 | 1698 | ])# AC_LIBTOOL_COMPILER_OPTION | |
276 | # AC_ENABLE_SHARED - implement the --enable-shared flag | 1699 | |
277 | # Usage: AC_ENABLE_SHARED[(DEFAULT)] | 1700 | |
278 | # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to | 1701 | # AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS, |
279 | # `yes'. | 1702 | # [ACTION-SUCCESS], [ACTION-FAILURE]) |
280 | AC_DEFUN(AC_ENABLE_SHARED, [dnl | 1703 | # ------------------------------------------------------------ |
281 | define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl | 1704 | # Check whether the given compiler option works |
282 | AC_ARG_ENABLE(shared, | 1705 | AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], |
283 | changequote(<<, >>)dnl | 1706 | [AC_CACHE_CHECK([$1], [$2], |
284 | << --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT], | 1707 | [$2=no |
285 | changequote([, ])dnl | 1708 | save_LDFLAGS="$LDFLAGS" |
286 | [p=${PACKAGE-default} | 1709 | LDFLAGS="$LDFLAGS $3" |
287 | case "$enableval" in | 1710 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
288 | yes) enable_shared=yes ;; | 1711 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
289 | no) enable_shared=no ;; | 1712 | # The linker can only warn and ignore the option if not recognized |
290 | *) | 1713 | # So say no if there are warnings |
291 | enable_shared=no | 1714 | if test -s conftest.err; then |
292 | # Look at the argument we got. We use all the common list separators. | 1715 | # Append any errors to the config.log. |
293 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | 1716 | cat conftest.err 1>&AS_MESSAGE_LOG_FD |
294 | for pkg in $enableval; do | 1717 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
295 | if test "X$pkg" = "X$p"; then | 1718 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
296 | enable_shared=yes | 1719 | if diff conftest.exp conftest.er2 >/dev/null; then |
1720 | $2=yes | ||
1721 | fi | ||
1722 | else | ||
1723 | $2=yes | ||
1724 | fi | ||
1725 | fi | ||
1726 | $rm conftest* | ||
1727 | LDFLAGS="$save_LDFLAGS" | ||
1728 | ]) | ||
1729 | |||
1730 | if test x"[$]$2" = xyes; then | ||
1731 | ifelse([$4], , :, [$4]) | ||
1732 | else | ||
1733 | ifelse([$5], , :, [$5]) | ||
1734 | fi | ||
1735 | ])# AC_LIBTOOL_LINKER_OPTION | ||
1736 | |||
1737 | |||
1738 | # AC_LIBTOOL_SYS_MAX_CMD_LEN | ||
1739 | # -------------------------- | ||
1740 | AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], | ||
1741 | [# find the maximum length of command line arguments | ||
1742 | AC_MSG_CHECKING([the maximum length of command line arguments]) | ||
1743 | AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl | ||
1744 | i=0 | ||
1745 | teststring="ABCD" | ||
1746 | |||
1747 | case $build_os in | ||
1748 | msdosdjgpp*) | ||
1749 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
1750 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
1751 | # during glob expansion). Even if it were fixed, the result of this | ||
1752 | # check would be larger than it should be. | ||
1753 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
1754 | ;; | ||
1755 | |||
1756 | gnu*) | ||
1757 | # Under GNU Hurd, this test is not required because there is | ||
1758 | # no limit to the length of command line arguments. | ||
1759 | # Libtool will interpret -1 as no limit whatsoever | ||
1760 | lt_cv_sys_max_cmd_len=-1; | ||
1761 | ;; | ||
1762 | |||
1763 | cygwin* | mingw*) | ||
1764 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
1765 | # about 5 minutes as the teststring grows exponentially. | ||
1766 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
1767 | # you end up with a "frozen" computer, even though with patience | ||
1768 | # the test eventually succeeds (with a max line length of 256k). | ||
1769 | # Instead, let's just punt: use the minimum linelength reported by | ||
1770 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
1771 | lt_cv_sys_max_cmd_len=8192; | ||
1772 | ;; | ||
1773 | |||
1774 | amigaos*) | ||
1775 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
1776 | # So we just punt and use a minimum line length of 8192. | ||
1777 | lt_cv_sys_max_cmd_len=8192; | ||
1778 | ;; | ||
1779 | |||
1780 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | ||
1781 | # This has been around since 386BSD, at least. Likely further. | ||
1782 | if test -x /sbin/sysctl; then | ||
1783 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | ||
1784 | elif test -x /usr/sbin/sysctl; then | ||
1785 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | ||
1786 | else | ||
1787 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | ||
297 | fi | 1788 | fi |
298 | done | 1789 | # And add a safety zone |
299 | IFS="$ac_save_ifs" | 1790 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
1791 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | ||
1792 | ;; | ||
1793 | |||
1794 | interix*) | ||
1795 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | ||
1796 | lt_cv_sys_max_cmd_len=196608 | ||
1797 | ;; | ||
1798 | |||
1799 | osf*) | ||
1800 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | ||
1801 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | ||
1802 | # nice to cause kernel panics so lets avoid the loop below. | ||
1803 | # First set a reasonable default. | ||
1804 | lt_cv_sys_max_cmd_len=16384 | ||
1805 | # | ||
1806 | if test -x /sbin/sysconfig; then | ||
1807 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | ||
1808 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | ||
1809 | esac | ||
1810 | fi | ||
1811 | ;; | ||
1812 | sco3.2v5*) | ||
1813 | lt_cv_sys_max_cmd_len=102400 | ||
1814 | ;; | ||
1815 | sysv5* | sco5v6* | sysv4.2uw2*) | ||
1816 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | ||
1817 | if test -n "$kargmax"; then | ||
1818 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` | ||
1819 | else | ||
1820 | lt_cv_sys_max_cmd_len=32768 | ||
1821 | fi | ||
1822 | ;; | ||
1823 | *) | ||
1824 | # If test is not a shell built-in, we'll probably end up computing a | ||
1825 | # maximum length that is only half of the actual maximum length, but | ||
1826 | # we can't tell. | ||
1827 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | ||
1828 | while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \ | ||
1829 | = "XX$teststring") >/dev/null 2>&1 && | ||
1830 | new_result=`expr "X$teststring" : ".*" 2>&1` && | ||
1831 | lt_cv_sys_max_cmd_len=$new_result && | ||
1832 | test $i != 17 # 1/2 MB should be enough | ||
1833 | do | ||
1834 | i=`expr $i + 1` | ||
1835 | teststring=$teststring$teststring | ||
1836 | done | ||
1837 | teststring= | ||
1838 | # Add a significant safety factor because C++ compilers can tack on massive | ||
1839 | # amounts of additional arguments before passing them to the linker. | ||
1840 | # It appears as though 1/2 is a usable value. | ||
1841 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
1842 | ;; | ||
1843 | esac | ||
1844 | ]) | ||
1845 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
1846 | AC_MSG_RESULT($lt_cv_sys_max_cmd_len) | ||
1847 | else | ||
1848 | AC_MSG_RESULT(none) | ||
1849 | fi | ||
1850 | ])# AC_LIBTOOL_SYS_MAX_CMD_LEN | ||
1851 | |||
1852 | |||
1853 | # _LT_AC_CHECK_DLFCN | ||
1854 | # ------------------ | ||
1855 | AC_DEFUN([_LT_AC_CHECK_DLFCN], | ||
1856 | [AC_CHECK_HEADERS(dlfcn.h)dnl | ||
1857 | ])# _LT_AC_CHECK_DLFCN | ||
1858 | |||
1859 | |||
1860 | # _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE, | ||
1861 | # ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING) | ||
1862 | # --------------------------------------------------------------------- | ||
1863 | AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF], | ||
1864 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | ||
1865 | if test "$cross_compiling" = yes; then : | ||
1866 | [$4] | ||
1867 | else | ||
1868 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
1869 | lt_status=$lt_dlunknown | ||
1870 | cat > conftest.$ac_ext <<EOF | ||
1871 | [#line __oline__ "configure" | ||
1872 | #include "confdefs.h" | ||
1873 | |||
1874 | #if HAVE_DLFCN_H | ||
1875 | #include <dlfcn.h> | ||
1876 | #endif | ||
1877 | |||
1878 | #include <stdio.h> | ||
1879 | |||
1880 | #ifdef RTLD_GLOBAL | ||
1881 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
1882 | #else | ||
1883 | # ifdef DL_GLOBAL | ||
1884 | # define LT_DLGLOBAL DL_GLOBAL | ||
1885 | # else | ||
1886 | # define LT_DLGLOBAL 0 | ||
1887 | # endif | ||
1888 | #endif | ||
1889 | |||
1890 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
1891 | find out it does not work in some platform. */ | ||
1892 | #ifndef LT_DLLAZY_OR_NOW | ||
1893 | # ifdef RTLD_LAZY | ||
1894 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
1895 | # else | ||
1896 | # ifdef DL_LAZY | ||
1897 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
1898 | # else | ||
1899 | # ifdef RTLD_NOW | ||
1900 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
1901 | # else | ||
1902 | # ifdef DL_NOW | ||
1903 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
1904 | # else | ||
1905 | # define LT_DLLAZY_OR_NOW 0 | ||
1906 | # endif | ||
1907 | # endif | ||
1908 | # endif | ||
1909 | # endif | ||
1910 | #endif | ||
1911 | |||
1912 | #ifdef __cplusplus | ||
1913 | extern "C" void exit (int); | ||
1914 | #endif | ||
1915 | |||
1916 | void fnord() { int i=42;} | ||
1917 | int main () | ||
1918 | { | ||
1919 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
1920 | int status = $lt_dlunknown; | ||
1921 | |||
1922 | if (self) | ||
1923 | { | ||
1924 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
1925 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
1926 | /* dlclose (self); */ | ||
1927 | } | ||
1928 | else | ||
1929 | puts (dlerror ()); | ||
1930 | |||
1931 | exit (status); | ||
1932 | }] | ||
1933 | EOF | ||
1934 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then | ||
1935 | (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null | ||
1936 | lt_status=$? | ||
1937 | case x$lt_status in | ||
1938 | x$lt_dlno_uscore) $1 ;; | ||
1939 | x$lt_dlneed_uscore) $2 ;; | ||
1940 | x$lt_dlunknown|x*) $3 ;; | ||
1941 | esac | ||
1942 | else : | ||
1943 | # compilation failed | ||
1944 | $3 | ||
1945 | fi | ||
1946 | fi | ||
1947 | rm -fr conftest* | ||
1948 | ])# _LT_AC_TRY_DLOPEN_SELF | ||
1949 | |||
1950 | |||
1951 | # AC_LIBTOOL_DLOPEN_SELF | ||
1952 | # ---------------------- | ||
1953 | AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], | ||
1954 | [AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl | ||
1955 | if test "x$enable_dlopen" != xyes; then | ||
1956 | enable_dlopen=unknown | ||
1957 | enable_dlopen_self=unknown | ||
1958 | enable_dlopen_self_static=unknown | ||
1959 | else | ||
1960 | lt_cv_dlopen=no | ||
1961 | lt_cv_dlopen_libs= | ||
1962 | |||
1963 | case $host_os in | ||
1964 | beos*) | ||
1965 | lt_cv_dlopen="load_add_on" | ||
1966 | lt_cv_dlopen_libs= | ||
1967 | lt_cv_dlopen_self=yes | ||
1968 | ;; | ||
1969 | |||
1970 | mingw* | pw32*) | ||
1971 | lt_cv_dlopen="LoadLibrary" | ||
1972 | lt_cv_dlopen_libs= | ||
1973 | ;; | ||
1974 | |||
1975 | cygwin*) | ||
1976 | lt_cv_dlopen="dlopen" | ||
1977 | lt_cv_dlopen_libs= | ||
1978 | ;; | ||
1979 | |||
1980 | darwin*) | ||
1981 | # if libdl is installed we need to link against it | ||
1982 | AC_CHECK_LIB([dl], [dlopen], | ||
1983 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[ | ||
1984 | lt_cv_dlopen="dyld" | ||
1985 | lt_cv_dlopen_libs= | ||
1986 | lt_cv_dlopen_self=yes | ||
1987 | ]) | ||
1988 | ;; | ||
1989 | |||
1990 | *) | ||
1991 | AC_CHECK_FUNC([shl_load], | ||
1992 | [lt_cv_dlopen="shl_load"], | ||
1993 | [AC_CHECK_LIB([dld], [shl_load], | ||
1994 | [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], | ||
1995 | [AC_CHECK_FUNC([dlopen], | ||
1996 | [lt_cv_dlopen="dlopen"], | ||
1997 | [AC_CHECK_LIB([dl], [dlopen], | ||
1998 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], | ||
1999 | [AC_CHECK_LIB([svld], [dlopen], | ||
2000 | [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], | ||
2001 | [AC_CHECK_LIB([dld], [dld_link], | ||
2002 | [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"]) | ||
2003 | ]) | ||
2004 | ]) | ||
2005 | ]) | ||
2006 | ]) | ||
2007 | ]) | ||
2008 | ;; | ||
2009 | esac | ||
2010 | |||
2011 | if test "x$lt_cv_dlopen" != xno; then | ||
2012 | enable_dlopen=yes | ||
2013 | else | ||
2014 | enable_dlopen=no | ||
2015 | fi | ||
2016 | |||
2017 | case $lt_cv_dlopen in | ||
2018 | dlopen) | ||
2019 | save_CPPFLAGS="$CPPFLAGS" | ||
2020 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
2021 | |||
2022 | save_LDFLAGS="$LDFLAGS" | ||
2023 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
2024 | |||
2025 | save_LIBS="$LIBS" | ||
2026 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
2027 | |||
2028 | AC_CACHE_CHECK([whether a program can dlopen itself], | ||
2029 | lt_cv_dlopen_self, [dnl | ||
2030 | _LT_AC_TRY_DLOPEN_SELF( | ||
2031 | lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes, | ||
2032 | lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross) | ||
2033 | ]) | ||
2034 | |||
2035 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
2036 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | ||
2037 | AC_CACHE_CHECK([whether a statically linked program can dlopen itself], | ||
2038 | lt_cv_dlopen_self_static, [dnl | ||
2039 | _LT_AC_TRY_DLOPEN_SELF( | ||
2040 | lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes, | ||
2041 | lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross) | ||
2042 | ]) | ||
2043 | fi | ||
2044 | |||
2045 | CPPFLAGS="$save_CPPFLAGS" | ||
2046 | LDFLAGS="$save_LDFLAGS" | ||
2047 | LIBS="$save_LIBS" | ||
2048 | ;; | ||
2049 | esac | ||
2050 | |||
2051 | case $lt_cv_dlopen_self in | ||
2052 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
2053 | *) enable_dlopen_self=unknown ;; | ||
2054 | esac | ||
2055 | |||
2056 | case $lt_cv_dlopen_self_static in | ||
2057 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
2058 | *) enable_dlopen_self_static=unknown ;; | ||
2059 | esac | ||
2060 | fi | ||
2061 | ])# AC_LIBTOOL_DLOPEN_SELF | ||
2062 | |||
2063 | |||
2064 | # AC_LIBTOOL_PROG_CC_C_O([TAGNAME]) | ||
2065 | # --------------------------------- | ||
2066 | # Check to see if options -c and -o are simultaneously supported by compiler | ||
2067 | AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O], | ||
2068 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | ||
2069 | AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext], | ||
2070 | [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)], | ||
2071 | [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no | ||
2072 | $rm -r conftest 2>/dev/null | ||
2073 | mkdir conftest | ||
2074 | cd conftest | ||
2075 | mkdir out | ||
2076 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
2077 | |||
2078 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
2079 | # Insert the option either (1) after the last *FLAGS variable, or | ||
2080 | # (2) before a word containing "conftest.", or (3) at the end. | ||
2081 | # Note that $ac_compile itself does not contain backslashes and begins | ||
2082 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
2083 | lt_compile=`echo "$ac_compile" | $SED \ | ||
2084 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | ||
2085 | -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \ | ||
2086 | -e 's:$: $lt_compiler_flag:'` | ||
2087 | (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD) | ||
2088 | (eval "$lt_compile" 2>out/conftest.err) | ||
2089 | ac_status=$? | ||
2090 | cat out/conftest.err >&AS_MESSAGE_LOG_FD | ||
2091 | echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD | ||
2092 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
2093 | then | ||
2094 | # The compiler can only warn and ignore the option if not recognized | ||
2095 | # So say no if there are warnings | ||
2096 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | ||
2097 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | ||
2098 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | ||
2099 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | ||
2100 | fi | ||
2101 | fi | ||
2102 | chmod u+w . 2>&AS_MESSAGE_LOG_FD | ||
2103 | $rm conftest* | ||
2104 | # SGI C++ compiler will create directory out/ii_files/ for | ||
2105 | # template instantiation | ||
2106 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | ||
2107 | $rm out/* && rmdir out | ||
2108 | cd .. | ||
2109 | rmdir conftest | ||
2110 | $rm conftest* | ||
2111 | ]) | ||
2112 | ])# AC_LIBTOOL_PROG_CC_C_O | ||
2113 | |||
2114 | |||
2115 | # AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME]) | ||
2116 | # ----------------------------------------- | ||
2117 | # Check to see if we can do hard links to lock some files if needed | ||
2118 | AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], | ||
2119 | [AC_REQUIRE([_LT_AC_LOCK])dnl | ||
2120 | |||
2121 | hard_links="nottested" | ||
2122 | if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then | ||
2123 | # do not overwrite the value of need_locks provided by the user | ||
2124 | AC_MSG_CHECKING([if we can lock with hard links]) | ||
2125 | hard_links=yes | ||
2126 | $rm conftest* | ||
2127 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
2128 | touch conftest.a | ||
2129 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
2130 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
2131 | AC_MSG_RESULT([$hard_links]) | ||
2132 | if test "$hard_links" = no; then | ||
2133 | AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe]) | ||
2134 | need_locks=warn | ||
2135 | fi | ||
2136 | else | ||
2137 | need_locks=no | ||
2138 | fi | ||
2139 | ])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS | ||
2140 | |||
2141 | |||
2142 | # AC_LIBTOOL_OBJDIR | ||
2143 | # ----------------- | ||
2144 | AC_DEFUN([AC_LIBTOOL_OBJDIR], | ||
2145 | [AC_CACHE_CHECK([for objdir], [lt_cv_objdir], | ||
2146 | [rm -f .libs 2>/dev/null | ||
2147 | mkdir .libs 2>/dev/null | ||
2148 | if test -d .libs; then | ||
2149 | lt_cv_objdir=.libs | ||
2150 | else | ||
2151 | # MS-DOS does not allow filenames that begin with a dot. | ||
2152 | lt_cv_objdir=_libs | ||
2153 | fi | ||
2154 | rmdir .libs 2>/dev/null]) | ||
2155 | objdir=$lt_cv_objdir | ||
2156 | ])# AC_LIBTOOL_OBJDIR | ||
2157 | |||
2158 | |||
2159 | # AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME]) | ||
2160 | # ---------------------------------------------- | ||
2161 | # Check hardcoding attributes. | ||
2162 | AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], | ||
2163 | [AC_MSG_CHECKING([how to hardcode library paths into programs]) | ||
2164 | _LT_AC_TAGVAR(hardcode_action, $1)= | ||
2165 | if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \ | ||
2166 | test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \ | ||
2167 | test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then | ||
2168 | |||
2169 | # We can hardcode non-existant directories. | ||
2170 | if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no && | ||
2171 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
2172 | # have to relink, otherwise we might link with an installed library | ||
2173 | # when we should be linking with a yet-to-be-installed one | ||
2174 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no && | ||
2175 | test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then | ||
2176 | # Linking always hardcodes the temporary library directory. | ||
2177 | _LT_AC_TAGVAR(hardcode_action, $1)=relink | ||
2178 | else | ||
2179 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
2180 | _LT_AC_TAGVAR(hardcode_action, $1)=immediate | ||
2181 | fi | ||
2182 | else | ||
2183 | # We cannot hardcode anything, or else we can only hardcode existing | ||
2184 | # directories. | ||
2185 | _LT_AC_TAGVAR(hardcode_action, $1)=unsupported | ||
2186 | fi | ||
2187 | AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)]) | ||
2188 | |||
2189 | if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then | ||
2190 | # Fast installation is not supported | ||
2191 | enable_fast_install=no | ||
2192 | elif test "$shlibpath_overrides_runpath" = yes || | ||
2193 | test "$enable_shared" = no; then | ||
2194 | # Fast installation is not necessary | ||
2195 | enable_fast_install=needless | ||
2196 | fi | ||
2197 | ])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH | ||
2198 | |||
2199 | |||
2200 | # AC_LIBTOOL_SYS_LIB_STRIP | ||
2201 | # ------------------------ | ||
2202 | AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP], | ||
2203 | [striplib= | ||
2204 | old_striplib= | ||
2205 | AC_MSG_CHECKING([whether stripping libraries is possible]) | ||
2206 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
2207 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
2208 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
2209 | AC_MSG_RESULT([yes]) | ||
2210 | else | ||
2211 | # FIXME - insert some real tests, host_os isn't really good enough | ||
2212 | case $host_os in | ||
2213 | darwin*) | ||
2214 | if test -n "$STRIP" ; then | ||
2215 | striplib="$STRIP -x" | ||
2216 | AC_MSG_RESULT([yes]) | ||
2217 | else | ||
2218 | AC_MSG_RESULT([no]) | ||
2219 | fi | ||
2220 | ;; | ||
2221 | *) | ||
2222 | AC_MSG_RESULT([no]) | ||
2223 | ;; | ||
2224 | esac | ||
2225 | fi | ||
2226 | ])# AC_LIBTOOL_SYS_LIB_STRIP | ||
2227 | |||
2228 | |||
2229 | # AC_LIBTOOL_SYS_DYNAMIC_LINKER | ||
2230 | # ----------------------------- | ||
2231 | # PORTME Fill in your ld.so characteristics | ||
2232 | AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER], | ||
2233 | [AC_MSG_CHECKING([dynamic linker characteristics]) | ||
2234 | library_names_spec= | ||
2235 | libname_spec='lib$name' | ||
2236 | soname_spec= | ||
2237 | shrext_cmds=".so" | ||
2238 | postinstall_cmds= | ||
2239 | postuninstall_cmds= | ||
2240 | finish_cmds= | ||
2241 | finish_eval= | ||
2242 | shlibpath_var= | ||
2243 | shlibpath_overrides_runpath=unknown | ||
2244 | version_type=none | ||
2245 | dynamic_linker="$host_os ld.so" | ||
2246 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
2247 | if test "$GCC" = yes; then | ||
2248 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
2249 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | ||
2250 | # if the path contains ";" then we assume it to be the separator | ||
2251 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
2252 | # assumed that no part of a normal pathname contains ";" but that should | ||
2253 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
2254 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
2255 | else | ||
2256 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
2257 | fi | ||
2258 | else | ||
2259 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
2260 | fi | ||
2261 | need_lib_prefix=unknown | ||
2262 | hardcode_into_libs=no | ||
2263 | |||
2264 | # when you set need_version to no, make sure it does not cause -set_version | ||
2265 | # flags to be left without arguments | ||
2266 | need_version=unknown | ||
2267 | |||
2268 | case $host_os in | ||
2269 | aix3*) | ||
2270 | version_type=linux | ||
2271 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
2272 | shlibpath_var=LIBPATH | ||
2273 | |||
2274 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
2275 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2276 | ;; | ||
2277 | |||
2278 | aix4* | aix5*) | ||
2279 | version_type=linux | ||
2280 | need_lib_prefix=no | ||
2281 | need_version=no | ||
2282 | hardcode_into_libs=yes | ||
2283 | if test "$host_cpu" = ia64; then | ||
2284 | # AIX 5 supports IA64 | ||
2285 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
2286 | shlibpath_var=LD_LIBRARY_PATH | ||
2287 | else | ||
2288 | # With GCC up to 2.95.x, collect2 would create an import file | ||
2289 | # for dependence libraries. The import file would start with | ||
2290 | # the line `#! .'. This would cause the generated library to | ||
2291 | # depend on `.', always an invalid library. This was fixed in | ||
2292 | # development snapshots of GCC prior to 3.0. | ||
2293 | case $host_os in | ||
2294 | aix4 | aix4.[[01]] | aix4.[[01]].*) | ||
2295 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
2296 | echo ' yes ' | ||
2297 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | ||
2298 | : | ||
2299 | else | ||
2300 | can_build_shared=no | ||
2301 | fi | ||
2302 | ;; | ||
2303 | esac | ||
2304 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
2305 | # soname into executable. Probably we can add versioning support to | ||
2306 | # collect2, so additional links can be useful in future. | ||
2307 | if test "$aix_use_runtimelinking" = yes; then | ||
2308 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
2309 | # instead of lib<name>.a to let people know that these are not | ||
2310 | # typical AIX shared libraries. | ||
2311 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2312 | else | ||
2313 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
2314 | # and later when we are not doing run time linking. | ||
2315 | library_names_spec='${libname}${release}.a $libname.a' | ||
2316 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2317 | fi | ||
2318 | shlibpath_var=LIBPATH | ||
2319 | fi | ||
2320 | ;; | ||
2321 | |||
2322 | amigaos*) | ||
2323 | library_names_spec='$libname.ixlibrary $libname.a' | ||
2324 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
2325 | finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''s%^.*/\([[^/]]*\)\.ixlibrary$%\1%'\''`; test $rm /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' | ||
2326 | ;; | ||
2327 | |||
2328 | beos*) | ||
2329 | library_names_spec='${libname}${shared_ext}' | ||
2330 | dynamic_linker="$host_os ld.so" | ||
2331 | shlibpath_var=LIBRARY_PATH | ||
2332 | ;; | ||
2333 | |||
2334 | bsdi[[45]]*) | ||
2335 | version_type=linux | ||
2336 | need_version=no | ||
2337 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2338 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2339 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
2340 | shlibpath_var=LD_LIBRARY_PATH | ||
2341 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
2342 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
2343 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
2344 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
2345 | # libtool to hard-code these into programs | ||
2346 | ;; | ||
2347 | |||
2348 | cygwin* | mingw* | pw32*) | ||
2349 | version_type=windows | ||
2350 | shrext_cmds=".dll" | ||
2351 | need_version=no | ||
2352 | need_lib_prefix=no | ||
2353 | |||
2354 | case $GCC,$host_os in | ||
2355 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
2356 | library_names_spec='$libname.dll.a' | ||
2357 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
2358 | postinstall_cmds='base_file=`basename \${file}`~ | ||
2359 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | ||
2360 | dldir=$destdir/`dirname \$dlpath`~ | ||
2361 | test -d \$dldir || mkdir -p \$dldir~ | ||
2362 | $install_prog $dir/$dlname \$dldir/$dlname~ | ||
2363 | chmod a+x \$dldir/$dlname' | ||
2364 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
2365 | dlpath=$dir/\$dldll~ | ||
2366 | $rm \$dlpath' | ||
2367 | shlibpath_overrides_runpath=yes | ||
2368 | |||
2369 | case $host_os in | ||
2370 | cygwin*) | ||
2371 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
2372 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2373 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
2374 | ;; | ||
2375 | mingw*) | ||
2376 | # MinGW DLLs use traditional 'lib' prefix | ||
2377 | soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2378 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
2379 | if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then | ||
2380 | # It is most probably a Windows format PATH printed by | ||
2381 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
2382 | # path with ; separators, and with drive letters. We can handle the | ||
2383 | # drive letters (cygwin fileutils understands them), so leave them, | ||
2384 | # especially as we might pass files found there to a mingw objdump, | ||
2385 | # which wouldn't understand a cygwinified path. Ahh. | ||
2386 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
2387 | else | ||
2388 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
2389 | fi | ||
2390 | ;; | ||
2391 | pw32*) | ||
2392 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
2393 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}' | ||
2394 | ;; | ||
2395 | esac | ||
2396 | ;; | ||
2397 | |||
2398 | linux*) | ||
2399 | if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then | ||
2400 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
2401 | supports_anon_versioning=no | ||
2402 | case `$LD -v 2>/dev/null` in | ||
2403 | *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
2404 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
2405 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
2406 | *\ 2.11.*) ;; # other 2.11 versions | ||
2407 | *) supports_anon_versioning=yes ;; | ||
2408 | esac | ||
2409 | if test $supports_anon_versioning = yes; then | ||
2410 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | ||
2411 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
2412 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
2413 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
2414 | else | ||
2415 | $archive_expsym_cmds="$archive_cmds" | ||
2416 | fi | ||
2417 | else | ||
2418 | ld_shlibs=no | ||
2419 | fi | ||
2420 | ;; | ||
2421 | |||
2422 | *) | ||
2423 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
2424 | ;; | ||
2425 | esac | ||
2426 | dynamic_linker='Win32 ld.exe' | ||
2427 | # FIXME: first we should search . and the directory the executable is in | ||
2428 | shlibpath_var=PATH | ||
2429 | ;; | ||
2430 | |||
2431 | darwin* | rhapsody*) | ||
2432 | dynamic_linker="$host_os dyld" | ||
2433 | version_type=darwin | ||
2434 | need_lib_prefix=no | ||
2435 | need_version=no | ||
2436 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
2437 | soname_spec='${libname}${release}${major}$shared_ext' | ||
2438 | shlibpath_overrides_runpath=yes | ||
2439 | shlibpath_var=DYLD_LIBRARY_PATH | ||
2440 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | ||
2441 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | ||
2442 | if test "$GCC" = yes; then | ||
2443 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` | ||
2444 | else | ||
2445 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | ||
2446 | fi | ||
2447 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
2448 | ;; | ||
2449 | |||
2450 | dgux*) | ||
2451 | version_type=linux | ||
2452 | need_lib_prefix=no | ||
2453 | need_version=no | ||
2454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
2455 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2456 | shlibpath_var=LD_LIBRARY_PATH | ||
2457 | ;; | ||
2458 | |||
2459 | freebsd1*) | ||
2460 | dynamic_linker=no | ||
2461 | ;; | ||
2462 | |||
2463 | kfreebsd*-gnu) | ||
2464 | version_type=linux | ||
2465 | need_lib_prefix=no | ||
2466 | need_version=no | ||
2467 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
2468 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2469 | shlibpath_var=LD_LIBRARY_PATH | ||
2470 | shlibpath_overrides_runpath=no | ||
2471 | hardcode_into_libs=yes | ||
2472 | dynamic_linker='GNU ld.so' | ||
300 | ;; | 2473 | ;; |
301 | esac], | 2474 | |
302 | enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl | 2475 | freebsd* | dragonfly*) |
303 | ]) | 2476 | # DragonFly does not have aout. When/if they implement a new |
304 | 2477 | # versioning mechanism, adjust this. | |
305 | # AC_DISABLE_SHARED - set the default shared flag to --disable-shared | 2478 | if test -x /usr/bin/objformat; then |
306 | AC_DEFUN(AC_DISABLE_SHARED, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | 2479 | objformat=`/usr/bin/objformat` |
307 | AC_ENABLE_SHARED(no)]) | 2480 | else |
308 | 2481 | case $host_os in | |
309 | # AC_ENABLE_STATIC - implement the --enable-static flag | 2482 | freebsd[[123]]*) objformat=aout ;; |
310 | # Usage: AC_ENABLE_STATIC[(DEFAULT)] | 2483 | *) objformat=elf ;; |
311 | # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to | 2484 | esac |
312 | # `yes'. | 2485 | fi |
313 | AC_DEFUN(AC_ENABLE_STATIC, [dnl | 2486 | # Handle Gentoo/FreeBSD as it was Linux |
314 | define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl | 2487 | case $host_vendor in |
315 | AC_ARG_ENABLE(static, | 2488 | gentoo) |
316 | changequote(<<, >>)dnl | 2489 | version_type=linux ;; |
317 | << --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT], | 2490 | *) |
318 | changequote([, ])dnl | 2491 | version_type=freebsd-$objformat ;; |
319 | [p=${PACKAGE-default} | 2492 | esac |
320 | case "$enableval" in | 2493 | |
321 | yes) enable_static=yes ;; | 2494 | case $version_type in |
322 | no) enable_static=no ;; | 2495 | freebsd-elf*) |
2496 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
2497 | need_version=no | ||
2498 | need_lib_prefix=no | ||
2499 | ;; | ||
2500 | freebsd-*) | ||
2501 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
2502 | need_version=yes | ||
2503 | ;; | ||
2504 | linux) | ||
2505 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
2506 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2507 | need_lib_prefix=no | ||
2508 | need_version=no | ||
2509 | ;; | ||
2510 | esac | ||
2511 | shlibpath_var=LD_LIBRARY_PATH | ||
2512 | case $host_os in | ||
2513 | freebsd2*) | ||
2514 | shlibpath_overrides_runpath=yes | ||
2515 | ;; | ||
2516 | freebsd3.[[01]]* | freebsdelf3.[[01]]*) | ||
2517 | shlibpath_overrides_runpath=yes | ||
2518 | hardcode_into_libs=yes | ||
2519 | ;; | ||
2520 | freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \ | ||
2521 | freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1) | ||
2522 | shlibpath_overrides_runpath=no | ||
2523 | hardcode_into_libs=yes | ||
2524 | ;; | ||
2525 | freebsd*) # from 4.6 on | ||
2526 | shlibpath_overrides_runpath=yes | ||
2527 | hardcode_into_libs=yes | ||
2528 | ;; | ||
2529 | esac | ||
2530 | ;; | ||
2531 | |||
2532 | gnu*) | ||
2533 | version_type=linux | ||
2534 | need_lib_prefix=no | ||
2535 | need_version=no | ||
2536 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
2537 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2538 | shlibpath_var=LD_LIBRARY_PATH | ||
2539 | hardcode_into_libs=yes | ||
2540 | ;; | ||
2541 | |||
2542 | hpux9* | hpux10* | hpux11*) | ||
2543 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
2544 | # link against other versions. | ||
2545 | version_type=sunos | ||
2546 | need_lib_prefix=no | ||
2547 | need_version=no | ||
2548 | case $host_cpu in | ||
2549 | ia64*) | ||
2550 | shrext_cmds='.so' | ||
2551 | hardcode_into_libs=yes | ||
2552 | dynamic_linker="$host_os dld.so" | ||
2553 | shlibpath_var=LD_LIBRARY_PATH | ||
2554 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
2555 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2556 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2557 | if test "X$HPUX_IA64_MODE" = X32; then | ||
2558 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
2559 | else | ||
2560 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
2561 | fi | ||
2562 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
2563 | ;; | ||
2564 | hppa*64*) | ||
2565 | shrext_cmds='.sl' | ||
2566 | hardcode_into_libs=yes | ||
2567 | dynamic_linker="$host_os dld.sl" | ||
2568 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
2569 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
2570 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2571 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2572 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
2573 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
2574 | ;; | ||
2575 | *) | ||
2576 | shrext_cmds='.sl' | ||
2577 | dynamic_linker="$host_os dld.sl" | ||
2578 | shlibpath_var=SHLIB_PATH | ||
2579 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
2580 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2581 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2582 | ;; | ||
2583 | esac | ||
2584 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
2585 | postinstall_cmds='chmod 555 $lib' | ||
2586 | ;; | ||
2587 | |||
2588 | interix3*) | ||
2589 | version_type=linux | ||
2590 | need_lib_prefix=no | ||
2591 | need_version=no | ||
2592 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
2593 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2594 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | ||
2595 | shlibpath_var=LD_LIBRARY_PATH | ||
2596 | shlibpath_overrides_runpath=no | ||
2597 | hardcode_into_libs=yes | ||
2598 | ;; | ||
2599 | |||
2600 | irix5* | irix6* | nonstopux*) | ||
2601 | case $host_os in | ||
2602 | nonstopux*) version_type=nonstopux ;; | ||
2603 | *) | ||
2604 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
2605 | version_type=linux | ||
2606 | else | ||
2607 | version_type=irix | ||
2608 | fi ;; | ||
2609 | esac | ||
2610 | need_lib_prefix=no | ||
2611 | need_version=no | ||
2612 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2613 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
2614 | case $host_os in | ||
2615 | irix5* | nonstopux*) | ||
2616 | libsuff= shlibsuff= | ||
2617 | ;; | ||
2618 | *) | ||
2619 | case $LD in # libtool.m4 will add one of these switches to LD | ||
2620 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
2621 | libsuff= shlibsuff= libmagic=32-bit;; | ||
2622 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
2623 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
2624 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
2625 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
2626 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
2627 | esac | ||
2628 | ;; | ||
2629 | esac | ||
2630 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
2631 | shlibpath_overrides_runpath=no | ||
2632 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
2633 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
2634 | hardcode_into_libs=yes | ||
2635 | ;; | ||
2636 | |||
2637 | # No shared lib support for Linux oldld, aout, or coff. | ||
2638 | linux*oldld* | linux*aout* | linux*coff*) | ||
2639 | dynamic_linker=no | ||
2640 | ;; | ||
2641 | |||
2642 | # This must be Linux ELF. | ||
2643 | linux*) | ||
2644 | version_type=linux | ||
2645 | need_lib_prefix=no | ||
2646 | need_version=no | ||
2647 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2648 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2649 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
2650 | shlibpath_var=LD_LIBRARY_PATH | ||
2651 | shlibpath_overrides_runpath=no | ||
2652 | # This implies no fast_install, which is unacceptable. | ||
2653 | # Some rework will be needed to allow for fast_install | ||
2654 | # before this can be enabled. | ||
2655 | hardcode_into_libs=yes | ||
2656 | |||
2657 | # Append ld.so.conf contents to the search path | ||
2658 | if test -f /etc/ld.so.conf; then | ||
2659 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | ||
2660 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
2661 | fi | ||
2662 | |||
2663 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
2664 | # powerpc, because MkLinux only supported shared libraries with the | ||
2665 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
2666 | # most powerpc-linux boxes support dynamic linking these days and | ||
2667 | # people can always --disable-shared, the test was removed, and we | ||
2668 | # assume the GNU/Linux dynamic linker is in use. | ||
2669 | dynamic_linker='GNU/Linux ld.so' | ||
2670 | ;; | ||
2671 | |||
2672 | knetbsd*-gnu) | ||
2673 | version_type=linux | ||
2674 | need_lib_prefix=no | ||
2675 | need_version=no | ||
2676 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
2677 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2678 | shlibpath_var=LD_LIBRARY_PATH | ||
2679 | shlibpath_overrides_runpath=no | ||
2680 | hardcode_into_libs=yes | ||
2681 | dynamic_linker='GNU ld.so' | ||
2682 | ;; | ||
2683 | |||
2684 | netbsd*) | ||
2685 | version_type=sunos | ||
2686 | need_lib_prefix=no | ||
2687 | need_version=no | ||
2688 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
2689 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
2690 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
2691 | dynamic_linker='NetBSD (a.out) ld.so' | ||
2692 | else | ||
2693 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
2694 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2695 | dynamic_linker='NetBSD ld.elf_so' | ||
2696 | fi | ||
2697 | shlibpath_var=LD_LIBRARY_PATH | ||
2698 | shlibpath_overrides_runpath=yes | ||
2699 | hardcode_into_libs=yes | ||
2700 | ;; | ||
2701 | |||
2702 | newsos6) | ||
2703 | version_type=linux | ||
2704 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2705 | shlibpath_var=LD_LIBRARY_PATH | ||
2706 | shlibpath_overrides_runpath=yes | ||
2707 | ;; | ||
2708 | |||
2709 | nto-qnx*) | ||
2710 | version_type=linux | ||
2711 | need_lib_prefix=no | ||
2712 | need_version=no | ||
2713 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2714 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2715 | shlibpath_var=LD_LIBRARY_PATH | ||
2716 | shlibpath_overrides_runpath=yes | ||
2717 | ;; | ||
2718 | |||
2719 | openbsd*) | ||
2720 | version_type=sunos | ||
2721 | sys_lib_dlsearch_path_spec="/usr/lib" | ||
2722 | need_lib_prefix=no | ||
2723 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | ||
2724 | case $host_os in | ||
2725 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | ||
2726 | *) need_version=no ;; | ||
2727 | esac | ||
2728 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
2729 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
2730 | shlibpath_var=LD_LIBRARY_PATH | ||
2731 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
2732 | case $host_os in | ||
2733 | openbsd2.[[89]] | openbsd2.[[89]].*) | ||
2734 | shlibpath_overrides_runpath=no | ||
2735 | ;; | ||
2736 | *) | ||
2737 | shlibpath_overrides_runpath=yes | ||
2738 | ;; | ||
2739 | esac | ||
2740 | else | ||
2741 | shlibpath_overrides_runpath=yes | ||
2742 | fi | ||
2743 | ;; | ||
2744 | |||
2745 | os2*) | ||
2746 | libname_spec='$name' | ||
2747 | shrext_cmds=".dll" | ||
2748 | need_lib_prefix=no | ||
2749 | library_names_spec='$libname${shared_ext} $libname.a' | ||
2750 | dynamic_linker='OS/2 ld.exe' | ||
2751 | shlibpath_var=LIBPATH | ||
2752 | ;; | ||
2753 | |||
2754 | osf3* | osf4* | osf5*) | ||
2755 | version_type=osf | ||
2756 | need_lib_prefix=no | ||
2757 | need_version=no | ||
2758 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2759 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2760 | shlibpath_var=LD_LIBRARY_PATH | ||
2761 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
2762 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
2763 | ;; | ||
2764 | |||
2765 | solaris*) | ||
2766 | version_type=linux | ||
2767 | need_lib_prefix=no | ||
2768 | need_version=no | ||
2769 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2770 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2771 | shlibpath_var=LD_LIBRARY_PATH | ||
2772 | shlibpath_overrides_runpath=yes | ||
2773 | hardcode_into_libs=yes | ||
2774 | # ldd complains unless libraries are executable | ||
2775 | postinstall_cmds='chmod +x $lib' | ||
2776 | ;; | ||
2777 | |||
2778 | sunos4*) | ||
2779 | version_type=sunos | ||
2780 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
2781 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
2782 | shlibpath_var=LD_LIBRARY_PATH | ||
2783 | shlibpath_overrides_runpath=yes | ||
2784 | if test "$with_gnu_ld" = yes; then | ||
2785 | need_lib_prefix=no | ||
2786 | fi | ||
2787 | need_version=yes | ||
2788 | ;; | ||
2789 | |||
2790 | sysv4 | sysv4.3*) | ||
2791 | version_type=linux | ||
2792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2793 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2794 | shlibpath_var=LD_LIBRARY_PATH | ||
2795 | case $host_vendor in | ||
2796 | sni) | ||
2797 | shlibpath_overrides_runpath=no | ||
2798 | need_lib_prefix=no | ||
2799 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
2800 | runpath_var=LD_RUN_PATH | ||
2801 | ;; | ||
2802 | siemens) | ||
2803 | need_lib_prefix=no | ||
2804 | ;; | ||
2805 | motorola) | ||
2806 | need_lib_prefix=no | ||
2807 | need_version=no | ||
2808 | shlibpath_overrides_runpath=no | ||
2809 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
2810 | ;; | ||
2811 | esac | ||
2812 | ;; | ||
2813 | |||
2814 | sysv4*MP*) | ||
2815 | if test -d /usr/nec ;then | ||
2816 | version_type=linux | ||
2817 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
2818 | soname_spec='$libname${shared_ext}.$major' | ||
2819 | shlibpath_var=LD_LIBRARY_PATH | ||
2820 | fi | ||
2821 | ;; | ||
2822 | |||
2823 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
2824 | version_type=freebsd-elf | ||
2825 | need_lib_prefix=no | ||
2826 | need_version=no | ||
2827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
2828 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2829 | shlibpath_var=LD_LIBRARY_PATH | ||
2830 | hardcode_into_libs=yes | ||
2831 | if test "$with_gnu_ld" = yes; then | ||
2832 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | ||
2833 | shlibpath_overrides_runpath=no | ||
2834 | else | ||
2835 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | ||
2836 | shlibpath_overrides_runpath=yes | ||
2837 | case $host_os in | ||
2838 | sco3.2v5*) | ||
2839 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | ||
2840 | ;; | ||
2841 | esac | ||
2842 | fi | ||
2843 | sys_lib_dlsearch_path_spec='/usr/lib' | ||
2844 | ;; | ||
2845 | |||
2846 | uts4*) | ||
2847 | version_type=linux | ||
2848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
2849 | soname_spec='${libname}${release}${shared_ext}$major' | ||
2850 | shlibpath_var=LD_LIBRARY_PATH | ||
2851 | ;; | ||
2852 | |||
323 | *) | 2853 | *) |
324 | enable_static=no | 2854 | dynamic_linker=no |
325 | # Look at the argument we got. We use all the common list separators. | 2855 | ;; |
326 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | 2856 | esac |
327 | for pkg in $enableval; do | 2857 | AC_MSG_RESULT([$dynamic_linker]) |
328 | if test "X$pkg" = "X$p"; then | 2858 | test "$dynamic_linker" = no && can_build_shared=no |
329 | enable_static=yes | 2859 | |
2860 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
2861 | if test "$GCC" = yes; then | ||
2862 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
2863 | fi | ||
2864 | ])# AC_LIBTOOL_SYS_DYNAMIC_LINKER | ||
2865 | |||
2866 | |||
2867 | # _LT_AC_TAGCONFIG | ||
2868 | # ---------------- | ||
2869 | AC_DEFUN([_LT_AC_TAGCONFIG], | ||
2870 | [AC_ARG_WITH([tags], | ||
2871 | [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@], | ||
2872 | [include additional configurations @<:@automatic@:>@])], | ||
2873 | [tagnames="$withval"]) | ||
2874 | |||
2875 | if test -f "$ltmain" && test -n "$tagnames"; then | ||
2876 | if test ! -f "${ofile}"; then | ||
2877 | AC_MSG_WARN([output file `$ofile' does not exist]) | ||
2878 | fi | ||
2879 | |||
2880 | if test -z "$LTCC"; then | ||
2881 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | ||
2882 | if test -z "$LTCC"; then | ||
2883 | AC_MSG_WARN([output file `$ofile' does not look like a libtool script]) | ||
2884 | else | ||
2885 | AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile']) | ||
2886 | fi | ||
2887 | fi | ||
2888 | if test -z "$LTCFLAGS"; then | ||
2889 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | ||
2890 | fi | ||
2891 | |||
2892 | # Extract list of available tagged configurations in $ofile. | ||
2893 | # Note that this assumes the entire list is on one line. | ||
2894 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | ||
2895 | |||
2896 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
2897 | for tagname in $tagnames; do | ||
2898 | IFS="$lt_save_ifs" | ||
2899 | # Check whether tagname contains only valid characters | ||
2900 | case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in | ||
2901 | "") ;; | ||
2902 | *) AC_MSG_ERROR([invalid tag name: $tagname]) | ||
2903 | ;; | ||
2904 | esac | ||
2905 | |||
2906 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | ||
2907 | then | ||
2908 | AC_MSG_ERROR([tag name \"$tagname\" already exists]) | ||
2909 | fi | ||
2910 | |||
2911 | # Update the list of available tags. | ||
2912 | if test -n "$tagname"; then | ||
2913 | echo appending configuration tag \"$tagname\" to $ofile | ||
2914 | |||
2915 | case $tagname in | ||
2916 | CXX) | ||
2917 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
2918 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
2919 | (test "X$CXX" != "Xg++"))) ; then | ||
2920 | AC_LIBTOOL_LANG_CXX_CONFIG | ||
2921 | else | ||
2922 | tagname="" | ||
2923 | fi | ||
2924 | ;; | ||
2925 | |||
2926 | F77) | ||
2927 | if test -n "$F77" && test "X$F77" != "Xno"; then | ||
2928 | AC_LIBTOOL_LANG_F77_CONFIG | ||
2929 | else | ||
2930 | tagname="" | ||
2931 | fi | ||
2932 | ;; | ||
2933 | |||
2934 | GCJ) | ||
2935 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | ||
2936 | AC_LIBTOOL_LANG_GCJ_CONFIG | ||
2937 | else | ||
2938 | tagname="" | ||
2939 | fi | ||
2940 | ;; | ||
2941 | |||
2942 | RC) | ||
2943 | AC_LIBTOOL_LANG_RC_CONFIG | ||
2944 | ;; | ||
2945 | |||
2946 | *) | ||
2947 | AC_MSG_ERROR([Unsupported tag name: $tagname]) | ||
2948 | ;; | ||
2949 | esac | ||
2950 | |||
2951 | # Append the new tag name to the list of available tags. | ||
2952 | if test -n "$tagname" ; then | ||
2953 | available_tags="$available_tags $tagname" | ||
2954 | fi | ||
330 | fi | 2955 | fi |
331 | done | 2956 | done |
332 | IFS="$ac_save_ifs" | 2957 | IFS="$lt_save_ifs" |
2958 | |||
2959 | # Now substitute the updated list of available tags. | ||
2960 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | ||
2961 | mv "${ofile}T" "$ofile" | ||
2962 | chmod +x "$ofile" | ||
2963 | else | ||
2964 | rm -f "${ofile}T" | ||
2965 | AC_MSG_ERROR([unable to update list of available tagged configurations.]) | ||
2966 | fi | ||
2967 | fi | ||
2968 | ])# _LT_AC_TAGCONFIG | ||
2969 | |||
2970 | |||
2971 | # AC_LIBTOOL_DLOPEN | ||
2972 | # ----------------- | ||
2973 | # enable checks for dlopen support | ||
2974 | AC_DEFUN([AC_LIBTOOL_DLOPEN], | ||
2975 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP]) | ||
2976 | ])# AC_LIBTOOL_DLOPEN | ||
2977 | |||
2978 | |||
2979 | # AC_LIBTOOL_WIN32_DLL | ||
2980 | # -------------------- | ||
2981 | # declare package support for building win32 DLLs | ||
2982 | AC_DEFUN([AC_LIBTOOL_WIN32_DLL], | ||
2983 | [AC_BEFORE([$0], [AC_LIBTOOL_SETUP]) | ||
2984 | ])# AC_LIBTOOL_WIN32_DLL | ||
2985 | |||
2986 | |||
2987 | # AC_ENABLE_SHARED([DEFAULT]) | ||
2988 | # --------------------------- | ||
2989 | # implement the --enable-shared flag | ||
2990 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
2991 | AC_DEFUN([AC_ENABLE_SHARED], | ||
2992 | [define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl | ||
2993 | AC_ARG_ENABLE([shared], | ||
2994 | [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@], | ||
2995 | [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])], | ||
2996 | [p=${PACKAGE-default} | ||
2997 | case $enableval in | ||
2998 | yes) enable_shared=yes ;; | ||
2999 | no) enable_shared=no ;; | ||
3000 | *) | ||
3001 | enable_shared=no | ||
3002 | # Look at the argument we got. We use all the common list separators. | ||
3003 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3004 | for pkg in $enableval; do | ||
3005 | IFS="$lt_save_ifs" | ||
3006 | if test "X$pkg" = "X$p"; then | ||
3007 | enable_shared=yes | ||
3008 | fi | ||
3009 | done | ||
3010 | IFS="$lt_save_ifs" | ||
3011 | ;; | ||
3012 | esac], | ||
3013 | [enable_shared=]AC_ENABLE_SHARED_DEFAULT) | ||
3014 | ])# AC_ENABLE_SHARED | ||
3015 | |||
3016 | |||
3017 | # AC_DISABLE_SHARED | ||
3018 | # ----------------- | ||
3019 | # set the default shared flag to --disable-shared | ||
3020 | AC_DEFUN([AC_DISABLE_SHARED], | ||
3021 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
3022 | AC_ENABLE_SHARED(no) | ||
3023 | ])# AC_DISABLE_SHARED | ||
3024 | |||
3025 | |||
3026 | # AC_ENABLE_STATIC([DEFAULT]) | ||
3027 | # --------------------------- | ||
3028 | # implement the --enable-static flag | ||
3029 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
3030 | AC_DEFUN([AC_ENABLE_STATIC], | ||
3031 | [define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl | ||
3032 | AC_ARG_ENABLE([static], | ||
3033 | [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@], | ||
3034 | [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])], | ||
3035 | [p=${PACKAGE-default} | ||
3036 | case $enableval in | ||
3037 | yes) enable_static=yes ;; | ||
3038 | no) enable_static=no ;; | ||
3039 | *) | ||
3040 | enable_static=no | ||
3041 | # Look at the argument we got. We use all the common list separators. | ||
3042 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3043 | for pkg in $enableval; do | ||
3044 | IFS="$lt_save_ifs" | ||
3045 | if test "X$pkg" = "X$p"; then | ||
3046 | enable_static=yes | ||
3047 | fi | ||
3048 | done | ||
3049 | IFS="$lt_save_ifs" | ||
3050 | ;; | ||
3051 | esac], | ||
3052 | [enable_static=]AC_ENABLE_STATIC_DEFAULT) | ||
3053 | ])# AC_ENABLE_STATIC | ||
3054 | |||
3055 | |||
3056 | # AC_DISABLE_STATIC | ||
3057 | # ----------------- | ||
3058 | # set the default static flag to --disable-static | ||
3059 | AC_DEFUN([AC_DISABLE_STATIC], | ||
3060 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
3061 | AC_ENABLE_STATIC(no) | ||
3062 | ])# AC_DISABLE_STATIC | ||
3063 | |||
3064 | |||
3065 | # AC_ENABLE_FAST_INSTALL([DEFAULT]) | ||
3066 | # --------------------------------- | ||
3067 | # implement the --enable-fast-install flag | ||
3068 | # DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'. | ||
3069 | AC_DEFUN([AC_ENABLE_FAST_INSTALL], | ||
3070 | [define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl | ||
3071 | AC_ARG_ENABLE([fast-install], | ||
3072 | [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@], | ||
3073 | [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])], | ||
3074 | [p=${PACKAGE-default} | ||
3075 | case $enableval in | ||
3076 | yes) enable_fast_install=yes ;; | ||
3077 | no) enable_fast_install=no ;; | ||
3078 | *) | ||
3079 | enable_fast_install=no | ||
3080 | # Look at the argument we got. We use all the common list separators. | ||
3081 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3082 | for pkg in $enableval; do | ||
3083 | IFS="$lt_save_ifs" | ||
3084 | if test "X$pkg" = "X$p"; then | ||
3085 | enable_fast_install=yes | ||
3086 | fi | ||
3087 | done | ||
3088 | IFS="$lt_save_ifs" | ||
3089 | ;; | ||
3090 | esac], | ||
3091 | [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT) | ||
3092 | ])# AC_ENABLE_FAST_INSTALL | ||
3093 | |||
3094 | |||
3095 | # AC_DISABLE_FAST_INSTALL | ||
3096 | # ----------------------- | ||
3097 | # set the default to --disable-fast-install | ||
3098 | AC_DEFUN([AC_DISABLE_FAST_INSTALL], | ||
3099 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
3100 | AC_ENABLE_FAST_INSTALL(no) | ||
3101 | ])# AC_DISABLE_FAST_INSTALL | ||
3102 | |||
3103 | |||
3104 | # AC_LIBTOOL_PICMODE([MODE]) | ||
3105 | # -------------------------- | ||
3106 | # implement the --with-pic flag | ||
3107 | # MODE is either `yes' or `no'. If omitted, it defaults to `both'. | ||
3108 | AC_DEFUN([AC_LIBTOOL_PICMODE], | ||
3109 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
3110 | pic_mode=ifelse($#,1,$1,default) | ||
3111 | ])# AC_LIBTOOL_PICMODE | ||
3112 | |||
3113 | |||
3114 | # AC_PROG_EGREP | ||
3115 | # ------------- | ||
3116 | # This is predefined starting with Autoconf 2.54, so this conditional | ||
3117 | # definition can be removed once we require Autoconf 2.54 or later. | ||
3118 | m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP], | ||
3119 | [AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep], | ||
3120 | [if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | ||
3121 | then ac_cv_prog_egrep='grep -E' | ||
3122 | else ac_cv_prog_egrep='egrep' | ||
3123 | fi]) | ||
3124 | EGREP=$ac_cv_prog_egrep | ||
3125 | AC_SUBST([EGREP]) | ||
3126 | ])]) | ||
3127 | |||
3128 | |||
3129 | # AC_PATH_TOOL_PREFIX | ||
3130 | # ------------------- | ||
3131 | # find a file program which can recognise shared library | ||
3132 | AC_DEFUN([AC_PATH_TOOL_PREFIX], | ||
3133 | [AC_REQUIRE([AC_PROG_EGREP])dnl | ||
3134 | AC_MSG_CHECKING([for $1]) | ||
3135 | AC_CACHE_VAL(lt_cv_path_MAGIC_CMD, | ||
3136 | [case $MAGIC_CMD in | ||
3137 | [[\\/*] | ?:[\\/]*]) | ||
3138 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
333 | ;; | 3139 | ;; |
334 | esac], | ||
335 | enable_static=AC_ENABLE_STATIC_DEFAULT)dnl | ||
336 | ]) | ||
337 | |||
338 | # AC_DISABLE_STATIC - set the default static flag to --disable-static | ||
339 | AC_DEFUN(AC_DISABLE_STATIC, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
340 | AC_ENABLE_STATIC(no)]) | ||
341 | |||
342 | |||
343 | # AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag | ||
344 | # Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)] | ||
345 | # Where DEFAULT is either `yes' or `no'. If omitted, it defaults to | ||
346 | # `yes'. | ||
347 | AC_DEFUN(AC_ENABLE_FAST_INSTALL, [dnl | ||
348 | define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl | ||
349 | AC_ARG_ENABLE(fast-install, | ||
350 | changequote(<<, >>)dnl | ||
351 | << --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT], | ||
352 | changequote([, ])dnl | ||
353 | [p=${PACKAGE-default} | ||
354 | case "$enableval" in | ||
355 | yes) enable_fast_install=yes ;; | ||
356 | no) enable_fast_install=no ;; | ||
357 | *) | 3140 | *) |
358 | enable_fast_install=no | 3141 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
359 | # Look at the argument we got. We use all the common list separators. | 3142 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
360 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:," | 3143 | dnl $ac_dummy forces splitting on constant user-supplied paths. |
361 | for pkg in $enableval; do | 3144 | dnl POSIX.2 word splitting is done only on the output of word expansions, |
362 | if test "X$pkg" = "X$p"; then | 3145 | dnl not every word. This closes a longstanding sh security hole. |
363 | enable_fast_install=yes | 3146 | ac_dummy="ifelse([$2], , $PATH, [$2])" |
3147 | for ac_dir in $ac_dummy; do | ||
3148 | IFS="$lt_save_ifs" | ||
3149 | test -z "$ac_dir" && ac_dir=. | ||
3150 | if test -f $ac_dir/$1; then | ||
3151 | lt_cv_path_MAGIC_CMD="$ac_dir/$1" | ||
3152 | if test -n "$file_magic_test_file"; then | ||
3153 | case $deplibs_check_method in | ||
3154 | "file_magic "*) | ||
3155 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | ||
3156 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
3157 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
3158 | $EGREP "$file_magic_regex" > /dev/null; then | ||
3159 | : | ||
3160 | else | ||
3161 | cat <<EOF 1>&2 | ||
3162 | |||
3163 | *** Warning: the command libtool uses to detect shared libraries, | ||
3164 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
3165 | *** The result is that libtool may fail to recognize shared libraries | ||
3166 | *** as such. This will affect the creation of libtool libraries that | ||
3167 | *** depend on shared libraries, but programs linked with such libtool | ||
3168 | *** libraries will work regardless of this problem. Nevertheless, you | ||
3169 | *** may want to report the problem to your system manager and/or to | ||
3170 | *** bug-libtool@gnu.org | ||
3171 | |||
3172 | EOF | ||
3173 | fi ;; | ||
3174 | esac | ||
3175 | fi | ||
3176 | break | ||
364 | fi | 3177 | fi |
365 | done | 3178 | done |
366 | IFS="$ac_save_ifs" | 3179 | IFS="$lt_save_ifs" |
3180 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
367 | ;; | 3181 | ;; |
368 | esac], | 3182 | esac]) |
369 | enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl | 3183 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
370 | ]) | 3184 | if test -n "$MAGIC_CMD"; then |
3185 | AC_MSG_RESULT($MAGIC_CMD) | ||
3186 | else | ||
3187 | AC_MSG_RESULT(no) | ||
3188 | fi | ||
3189 | ])# AC_PATH_TOOL_PREFIX | ||
371 | 3190 | ||
372 | # AC_ENABLE_FAST_INSTALL - set the default to --disable-fast-install | ||
373 | AC_DEFUN(AC_DISABLE_FAST_INSTALL, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
374 | AC_ENABLE_FAST_INSTALL(no)]) | ||
375 | 3191 | ||
376 | # AC_PROG_LD - find the path to the GNU or non-GNU linker | 3192 | # AC_PATH_MAGIC |
377 | AC_DEFUN(AC_PROG_LD, | 3193 | # ------------- |
378 | [AC_ARG_WITH(gnu-ld, | 3194 | # find a file program which can recognise a shared library |
379 | [ --with-gnu-ld assume the C compiler uses GNU ld [default=no]], | 3195 | AC_DEFUN([AC_PATH_MAGIC], |
380 | test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no) | 3196 | [AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH) |
3197 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
3198 | if test -n "$ac_tool_prefix"; then | ||
3199 | AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH) | ||
3200 | else | ||
3201 | MAGIC_CMD=: | ||
3202 | fi | ||
3203 | fi | ||
3204 | ])# AC_PATH_MAGIC | ||
3205 | |||
3206 | |||
3207 | # AC_PROG_LD | ||
3208 | # ---------- | ||
3209 | # find the pathname to the GNU or non-GNU linker | ||
3210 | AC_DEFUN([AC_PROG_LD], | ||
3211 | [AC_ARG_WITH([gnu-ld], | ||
3212 | [AC_HELP_STRING([--with-gnu-ld], | ||
3213 | [assume the C compiler uses GNU ld @<:@default=no@:>@])], | ||
3214 | [test "$withval" = no || with_gnu_ld=yes], | ||
3215 | [with_gnu_ld=no]) | ||
3216 | AC_REQUIRE([LT_AC_PROG_SED])dnl | ||
381 | AC_REQUIRE([AC_PROG_CC])dnl | 3217 | AC_REQUIRE([AC_PROG_CC])dnl |
382 | AC_REQUIRE([AC_CANONICAL_HOST])dnl | 3218 | AC_REQUIRE([AC_CANONICAL_HOST])dnl |
383 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl | 3219 | AC_REQUIRE([AC_CANONICAL_BUILD])dnl |
384 | ac_prog=ld | 3220 | ac_prog=ld |
385 | if test "$ac_cv_prog_gcc" = yes; then | 3221 | if test "$GCC" = yes; then |
386 | # Check if gcc -print-prog-name=ld gives a path. | 3222 | # Check if gcc -print-prog-name=ld gives a path. |
387 | AC_MSG_CHECKING([for ld used by GCC]) | 3223 | AC_MSG_CHECKING([for ld used by $CC]) |
388 | ac_prog=`($CC -print-prog-name=ld) 2>&5` | 3224 | case $host in |
389 | case "$ac_prog" in | 3225 | *-*-mingw*) |
3226 | # gcc leaves a trailing carriage return which upsets mingw | ||
3227 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
3228 | *) | ||
3229 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
3230 | esac | ||
3231 | case $ac_prog in | ||
390 | # Accept absolute paths. | 3232 | # Accept absolute paths. |
391 | changequote(,)dnl | 3233 | [[\\/]]* | ?:[[\\/]]*) |
392 | [\\/]* | [A-Za-z]:[\\/]*) | 3234 | re_direlt='/[[^/]][[^/]]*/\.\./' |
393 | re_direlt='/[^/][^/]*/\.\./' | 3235 | # Canonicalize the pathname of ld |
394 | changequote([,])dnl | 3236 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
395 | # Canonicalize the path of ld | ||
396 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` | ||
397 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | 3237 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
398 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` | 3238 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
399 | done | 3239 | done |
400 | test -z "$LD" && LD="$ac_prog" | 3240 | test -z "$LD" && LD="$ac_prog" |
401 | ;; | 3241 | ;; |
@@ -413,130 +3253,382 @@ elif test "$with_gnu_ld" = yes; then | |||
413 | else | 3253 | else |
414 | AC_MSG_CHECKING([for non-GNU ld]) | 3254 | AC_MSG_CHECKING([for non-GNU ld]) |
415 | fi | 3255 | fi |
416 | AC_CACHE_VAL(ac_cv_path_LD, | 3256 | AC_CACHE_VAL(lt_cv_path_LD, |
417 | [if test -z "$LD"; then | 3257 | [if test -z "$LD"; then |
418 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | 3258 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
419 | for ac_dir in $PATH; do | 3259 | for ac_dir in $PATH; do |
3260 | IFS="$lt_save_ifs" | ||
420 | test -z "$ac_dir" && ac_dir=. | 3261 | test -z "$ac_dir" && ac_dir=. |
421 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | 3262 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
422 | ac_cv_path_LD="$ac_dir/$ac_prog" | 3263 | lt_cv_path_LD="$ac_dir/$ac_prog" |
423 | # Check to see if the program is GNU ld. I'd rather use --version, | 3264 | # Check to see if the program is GNU ld. I'd rather use --version, |
424 | # but apparently some GNU ld's only accept -v. | 3265 | # but apparently some variants of GNU ld only accept -v. |
425 | # Break only if it was the GNU/non-GNU ld that we prefer. | 3266 | # Break only if it was the GNU/non-GNU ld that we prefer. |
426 | if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then | 3267 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
3268 | *GNU* | *'with BFD'*) | ||
427 | test "$with_gnu_ld" != no && break | 3269 | test "$with_gnu_ld" != no && break |
428 | else | 3270 | ;; |
3271 | *) | ||
429 | test "$with_gnu_ld" != yes && break | 3272 | test "$with_gnu_ld" != yes && break |
430 | fi | 3273 | ;; |
3274 | esac | ||
431 | fi | 3275 | fi |
432 | done | 3276 | done |
433 | IFS="$ac_save_ifs" | 3277 | IFS="$lt_save_ifs" |
434 | else | 3278 | else |
435 | ac_cv_path_LD="$LD" # Let the user override the test with a path. | 3279 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
436 | fi]) | 3280 | fi]) |
437 | LD="$ac_cv_path_LD" | 3281 | LD="$lt_cv_path_LD" |
438 | if test -n "$LD"; then | 3282 | if test -n "$LD"; then |
439 | AC_MSG_RESULT($LD) | 3283 | AC_MSG_RESULT($LD) |
440 | else | 3284 | else |
441 | AC_MSG_RESULT(no) | 3285 | AC_MSG_RESULT(no) |
442 | fi | 3286 | fi |
443 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) | 3287 | test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) |
444 | AC_SUBST(LD) | ||
445 | AC_PROG_LD_GNU | 3288 | AC_PROG_LD_GNU |
446 | ]) | 3289 | ])# AC_PROG_LD |
447 | 3290 | ||
448 | AC_DEFUN(AC_PROG_LD_GNU, | 3291 | |
449 | [AC_CACHE_CHECK([if the linker ($LD) is GNU ld], ac_cv_prog_gnu_ld, | 3292 | # AC_PROG_LD_GNU |
450 | [# I'd rather use --version here, but apparently some GNU ld's only accept -v. | 3293 | # -------------- |
451 | if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then | 3294 | AC_DEFUN([AC_PROG_LD_GNU], |
452 | ac_cv_prog_gnu_ld=yes | 3295 | [AC_REQUIRE([AC_PROG_EGREP])dnl |
453 | else | 3296 | AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld, |
454 | ac_cv_prog_gnu_ld=no | 3297 | [# I'd rather use --version here, but apparently some GNU lds only accept -v. |
455 | fi]) | 3298 | case `$LD -v 2>&1 </dev/null` in |
3299 | *GNU* | *'with BFD'*) | ||
3300 | lt_cv_prog_gnu_ld=yes | ||
3301 | ;; | ||
3302 | *) | ||
3303 | lt_cv_prog_gnu_ld=no | ||
3304 | ;; | ||
3305 | esac]) | ||
3306 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
3307 | ])# AC_PROG_LD_GNU | ||
3308 | |||
3309 | |||
3310 | # AC_PROG_LD_RELOAD_FLAG | ||
3311 | # ---------------------- | ||
3312 | # find reload flag for linker | ||
3313 | # -- PORTME Some linkers may need a different reload flag. | ||
3314 | AC_DEFUN([AC_PROG_LD_RELOAD_FLAG], | ||
3315 | [AC_CACHE_CHECK([for $LD option to reload object files], | ||
3316 | lt_cv_ld_reload_flag, | ||
3317 | [lt_cv_ld_reload_flag='-r']) | ||
3318 | reload_flag=$lt_cv_ld_reload_flag | ||
3319 | case $reload_flag in | ||
3320 | "" | " "*) ;; | ||
3321 | *) reload_flag=" $reload_flag" ;; | ||
3322 | esac | ||
3323 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
3324 | case $host_os in | ||
3325 | darwin*) | ||
3326 | if test "$GCC" = yes; then | ||
3327 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | ||
3328 | else | ||
3329 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
3330 | fi | ||
3331 | ;; | ||
3332 | esac | ||
3333 | ])# AC_PROG_LD_RELOAD_FLAG | ||
3334 | |||
3335 | |||
3336 | # AC_DEPLIBS_CHECK_METHOD | ||
3337 | # ----------------------- | ||
3338 | # how to check for library dependencies | ||
3339 | # -- PORTME fill in with the dynamic library characteristics | ||
3340 | AC_DEFUN([AC_DEPLIBS_CHECK_METHOD], | ||
3341 | [AC_CACHE_CHECK([how to recognise dependent libraries], | ||
3342 | lt_cv_deplibs_check_method, | ||
3343 | [lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
3344 | lt_cv_file_magic_test_file= | ||
3345 | lt_cv_deplibs_check_method='unknown' | ||
3346 | # Need to set the preceding variable on all platforms that support | ||
3347 | # interlibrary dependencies. | ||
3348 | # 'none' -- dependencies not supported. | ||
3349 | # `unknown' -- same as none, but documents that we really don't know. | ||
3350 | # 'pass_all' -- all dependencies passed with no checks. | ||
3351 | # 'test_compile' -- check by making test program. | ||
3352 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
3353 | # which responds to the $file_magic_cmd with a given extended regex. | ||
3354 | # If you have `file' or equivalent on your system and you're not sure | ||
3355 | # whether `pass_all' will *always* work, you probably want this one. | ||
3356 | |||
3357 | case $host_os in | ||
3358 | aix4* | aix5*) | ||
3359 | lt_cv_deplibs_check_method=pass_all | ||
3360 | ;; | ||
3361 | |||
3362 | beos*) | ||
3363 | lt_cv_deplibs_check_method=pass_all | ||
3364 | ;; | ||
3365 | |||
3366 | bsdi[[45]]*) | ||
3367 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' | ||
3368 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
3369 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
3370 | ;; | ||
3371 | |||
3372 | cygwin*) | ||
3373 | # func_win32_libid is a shell function defined in ltmain.sh | ||
3374 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
3375 | lt_cv_file_magic_cmd='func_win32_libid' | ||
3376 | ;; | ||
3377 | |||
3378 | mingw* | pw32*) | ||
3379 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
3380 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. | ||
3381 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
3382 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
3383 | ;; | ||
3384 | |||
3385 | darwin* | rhapsody*) | ||
3386 | lt_cv_deplibs_check_method=pass_all | ||
3387 | ;; | ||
3388 | |||
3389 | freebsd* | kfreebsd*-gnu | dragonfly*) | ||
3390 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
3391 | case $host_cpu in | ||
3392 | i*86 ) | ||
3393 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
3394 | # Let's accept both of them until this is cleared up. | ||
3395 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' | ||
3396 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3397 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
3398 | ;; | ||
3399 | esac | ||
3400 | else | ||
3401 | lt_cv_deplibs_check_method=pass_all | ||
3402 | fi | ||
3403 | ;; | ||
3404 | |||
3405 | gnu*) | ||
3406 | lt_cv_deplibs_check_method=pass_all | ||
3407 | ;; | ||
3408 | |||
3409 | hpux10.20* | hpux11*) | ||
3410 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3411 | case $host_cpu in | ||
3412 | ia64*) | ||
3413 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' | ||
3414 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
3415 | ;; | ||
3416 | hppa*64*) | ||
3417 | [lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'] | ||
3418 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
3419 | ;; | ||
3420 | *) | ||
3421 | lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library' | ||
3422 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
3423 | ;; | ||
3424 | esac | ||
3425 | ;; | ||
3426 | |||
3427 | interix3*) | ||
3428 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | ||
3429 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$' | ||
3430 | ;; | ||
3431 | |||
3432 | irix5* | irix6* | nonstopux*) | ||
3433 | case $LD in | ||
3434 | *-32|*"-32 ") libmagic=32-bit;; | ||
3435 | *-n32|*"-n32 ") libmagic=N32;; | ||
3436 | *-64|*"-64 ") libmagic=64-bit;; | ||
3437 | *) libmagic=never-match;; | ||
3438 | esac | ||
3439 | lt_cv_deplibs_check_method=pass_all | ||
3440 | ;; | ||
3441 | |||
3442 | # This must be Linux ELF. | ||
3443 | linux*) | ||
3444 | lt_cv_deplibs_check_method=pass_all | ||
3445 | ;; | ||
3446 | |||
3447 | netbsd*) | ||
3448 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
3449 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | ||
3450 | else | ||
3451 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$' | ||
3452 | fi | ||
3453 | ;; | ||
3454 | |||
3455 | newos6*) | ||
3456 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' | ||
3457 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3458 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
3459 | ;; | ||
3460 | |||
3461 | nto-qnx*) | ||
3462 | lt_cv_deplibs_check_method=unknown | ||
3463 | ;; | ||
3464 | |||
3465 | openbsd*) | ||
3466 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
3467 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$' | ||
3468 | else | ||
3469 | lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$' | ||
3470 | fi | ||
3471 | ;; | ||
3472 | |||
3473 | osf3* | osf4* | osf5*) | ||
3474 | lt_cv_deplibs_check_method=pass_all | ||
3475 | ;; | ||
3476 | |||
3477 | solaris*) | ||
3478 | lt_cv_deplibs_check_method=pass_all | ||
3479 | ;; | ||
3480 | |||
3481 | sysv4 | sysv4.3*) | ||
3482 | case $host_vendor in | ||
3483 | motorola) | ||
3484 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib) M[[0-9]][[0-9]]* Version [[0-9]]' | ||
3485 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
3486 | ;; | ||
3487 | ncr) | ||
3488 | lt_cv_deplibs_check_method=pass_all | ||
3489 | ;; | ||
3490 | sequent) | ||
3491 | lt_cv_file_magic_cmd='/bin/file' | ||
3492 | lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' | ||
3493 | ;; | ||
3494 | sni) | ||
3495 | lt_cv_file_magic_cmd='/bin/file' | ||
3496 | lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib" | ||
3497 | lt_cv_file_magic_test_file=/lib/libc.so | ||
3498 | ;; | ||
3499 | siemens) | ||
3500 | lt_cv_deplibs_check_method=pass_all | ||
3501 | ;; | ||
3502 | pc) | ||
3503 | lt_cv_deplibs_check_method=pass_all | ||
3504 | ;; | ||
3505 | esac | ||
3506 | ;; | ||
3507 | |||
3508 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | ||
3509 | lt_cv_deplibs_check_method=pass_all | ||
3510 | ;; | ||
3511 | esac | ||
456 | ]) | 3512 | ]) |
3513 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
3514 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
3515 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
3516 | ])# AC_DEPLIBS_CHECK_METHOD | ||
3517 | |||
457 | 3518 | ||
458 | # AC_PROG_NM - find the path to a BSD-compatible name lister | 3519 | # AC_PROG_NM |
459 | AC_DEFUN(AC_PROG_NM, | 3520 | # ---------- |
460 | [AC_MSG_CHECKING([for BSD-compatible nm]) | 3521 | # find the pathname to a BSD-compatible name lister |
461 | AC_CACHE_VAL(ac_cv_path_NM, | 3522 | AC_DEFUN([AC_PROG_NM], |
3523 | [AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM, | ||
462 | [if test -n "$NM"; then | 3524 | [if test -n "$NM"; then |
463 | # Let the user override the test. | 3525 | # Let the user override the test. |
464 | ac_cv_path_NM="$NM" | 3526 | lt_cv_path_NM="$NM" |
465 | else | 3527 | else |
466 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" | 3528 | lt_nm_to_check="${ac_tool_prefix}nm" |
467 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | 3529 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
468 | test -z "$ac_dir" && ac_dir=. | 3530 | lt_nm_to_check="$lt_nm_to_check nm" |
469 | if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then | 3531 | fi |
470 | # Check to see if the nm accepts a BSD-compat flag. | 3532 | for lt_tmp_nm in $lt_nm_to_check; do |
471 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | 3533 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
472 | # nm: unknown option "B" ignored | 3534 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
473 | if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | 3535 | IFS="$lt_save_ifs" |
474 | ac_cv_path_NM="$ac_dir/nm -B" | 3536 | test -z "$ac_dir" && ac_dir=. |
475 | break | 3537 | tmp_nm="$ac_dir/$lt_tmp_nm" |
476 | elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then | 3538 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
477 | ac_cv_path_NM="$ac_dir/nm -p" | 3539 | # Check to see if the nm accepts a BSD-compat flag. |
478 | break | 3540 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
479 | else | 3541 | # nm: unknown option "B" ignored |
480 | ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but | 3542 | # Tru64's nm complains that /dev/null is an invalid object file |
481 | continue # so that we can try to find one that supports BSD flags | 3543 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
3544 | */dev/null* | *'Invalid file or object type'*) | ||
3545 | lt_cv_path_NM="$tmp_nm -B" | ||
3546 | break | ||
3547 | ;; | ||
3548 | *) | ||
3549 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
3550 | */dev/null*) | ||
3551 | lt_cv_path_NM="$tmp_nm -p" | ||
3552 | break | ||
3553 | ;; | ||
3554 | *) | ||
3555 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
3556 | continue # so that we can try to find one that supports BSD flags | ||
3557 | ;; | ||
3558 | esac | ||
3559 | ;; | ||
3560 | esac | ||
482 | fi | 3561 | fi |
483 | fi | 3562 | done |
3563 | IFS="$lt_save_ifs" | ||
484 | done | 3564 | done |
485 | IFS="$ac_save_ifs" | 3565 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
486 | test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm | ||
487 | fi]) | 3566 | fi]) |
488 | NM="$ac_cv_path_NM" | 3567 | NM="$lt_cv_path_NM" |
489 | AC_MSG_RESULT([$NM]) | 3568 | ])# AC_PROG_NM |
490 | AC_SUBST(NM) | 3569 | |
491 | ]) | ||
492 | 3570 | ||
493 | # AC_CHECK_LIBM - check for math library | 3571 | # AC_CHECK_LIBM |
494 | AC_DEFUN(AC_CHECK_LIBM, | 3572 | # ------------- |
3573 | # check for math library | ||
3574 | AC_DEFUN([AC_CHECK_LIBM], | ||
495 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl | 3575 | [AC_REQUIRE([AC_CANONICAL_HOST])dnl |
496 | LIBM= | 3576 | LIBM= |
497 | case "$host" in | 3577 | case $host in |
498 | *-*-beos* | *-*-cygwin*) | 3578 | *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*) |
499 | # These system don't have libm | 3579 | # These system don't have libm, or don't need it |
500 | ;; | 3580 | ;; |
501 | *-ncr-sysv4.3*) | 3581 | *-ncr-sysv4.3*) |
502 | AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") | 3582 | AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw") |
503 | AC_CHECK_LIB(m, main, LIBM="$LIBM -lm") | 3583 | AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm") |
504 | ;; | 3584 | ;; |
505 | *) | 3585 | *) |
506 | AC_CHECK_LIB(m, main, LIBM="-lm") | 3586 | AC_CHECK_LIB(m, cos, LIBM="-lm") |
507 | ;; | 3587 | ;; |
508 | esac | 3588 | esac |
509 | ]) | 3589 | ])# AC_CHECK_LIBM |
510 | 3590 | ||
511 | # AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for | 3591 | |
512 | # the libltdl convenience library, adds --enable-ltdl-convenience to | 3592 | # AC_LIBLTDL_CONVENIENCE([DIRECTORY]) |
513 | # the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor | 3593 | # ----------------------------------- |
514 | # is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed | 3594 | # sets LIBLTDL to the link flags for the libltdl convenience library and |
515 | # to be `${top_builddir}/libltdl'. Make sure you start DIR with | 3595 | # LTDLINCL to the include flags for the libltdl header and adds |
516 | # '${top_builddir}/' (note the single quotes!) if your package is not | 3596 | # --enable-ltdl-convenience to the configure arguments. Note that |
517 | # flat, and, if you're not using automake, define top_builddir as | 3597 | # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, |
518 | # appropriate in the Makefiles. | 3598 | # it is assumed to be `libltdl'. LIBLTDL will be prefixed with |
519 | AC_DEFUN(AC_LIBLTDL_CONVENIENCE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | 3599 | # '${top_builddir}/' and LTDLINCL will be prefixed with '${top_srcdir}/' |
520 | case "$enable_ltdl_convenience" in | 3600 | # (note the single quotes!). If your package is not flat and you're not |
3601 | # using automake, define top_builddir and top_srcdir appropriately in | ||
3602 | # the Makefiles. | ||
3603 | AC_DEFUN([AC_LIBLTDL_CONVENIENCE], | ||
3604 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | ||
3605 | case $enable_ltdl_convenience in | ||
521 | no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; | 3606 | no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;; |
522 | "") enable_ltdl_convenience=yes | 3607 | "") enable_ltdl_convenience=yes |
523 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; | 3608 | ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;; |
524 | esac | 3609 | esac |
525 | LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdlc.la | 3610 | LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la |
526 | INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl']) | 3611 | LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
527 | ]) | 3612 | # For backwards non-gettext consistent compatibility... |
528 | 3613 | INCLTDL="$LTDLINCL" | |
529 | # AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for | 3614 | ])# AC_LIBLTDL_CONVENIENCE |
530 | # the libltdl installable library, and adds --enable-ltdl-install to | 3615 | |
531 | # the configure arguments. Note that LIBLTDL is not AC_SUBSTed, nor | 3616 | |
532 | # is AC_CONFIG_SUBDIRS called. If DIR is not provided, it is assumed | 3617 | # AC_LIBLTDL_INSTALLABLE([DIRECTORY]) |
533 | # to be `${top_builddir}/libltdl'. Make sure you start DIR with | 3618 | # ----------------------------------- |
534 | # '${top_builddir}/' (note the single quotes!) if your package is not | 3619 | # sets LIBLTDL to the link flags for the libltdl installable library and |
535 | # flat, and, if you're not using automake, define top_builddir as | 3620 | # LTDLINCL to the include flags for the libltdl header and adds |
536 | # appropriate in the Makefiles. | 3621 | # --enable-ltdl-install to the configure arguments. Note that |
3622 | # AC_CONFIG_SUBDIRS is not called here. If DIRECTORY is not provided, | ||
3623 | # and an installed libltdl is not found, it is assumed to be `libltdl'. | ||
3624 | # LIBLTDL will be prefixed with '${top_builddir}/'# and LTDLINCL with | ||
3625 | # '${top_srcdir}/' (note the single quotes!). If your package is not | ||
3626 | # flat and you're not using automake, define top_builddir and top_srcdir | ||
3627 | # appropriately in the Makefiles. | ||
537 | # In the future, this macro may have to be called after AC_PROG_LIBTOOL. | 3628 | # In the future, this macro may have to be called after AC_PROG_LIBTOOL. |
538 | AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | 3629 | AC_DEFUN([AC_LIBLTDL_INSTALLABLE], |
539 | AC_CHECK_LIB(ltdl, main, | 3630 | [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl |
3631 | AC_CHECK_LIB(ltdl, lt_dlinit, | ||
540 | [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], | 3632 | [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no], |
541 | [if test x"$enable_ltdl_install" = xno; then | 3633 | [if test x"$enable_ltdl_install" = xno; then |
542 | AC_MSG_WARN([libltdl not installed, but installation disabled]) | 3634 | AC_MSG_WARN([libltdl not installed, but installation disabled]) |
@@ -546,26 +3638,3831 @@ AC_DEFUN(AC_LIBLTDL_INSTALLABLE, [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl | |||
546 | ]) | 3638 | ]) |
547 | if test x"$enable_ltdl_install" = x"yes"; then | 3639 | if test x"$enable_ltdl_install" = x"yes"; then |
548 | ac_configure_args="$ac_configure_args --enable-ltdl-install" | 3640 | ac_configure_args="$ac_configure_args --enable-ltdl-install" |
549 | LIBLTDL=ifelse($#,1,$1,['${top_builddir}/libltdl'])/libltdl.la | 3641 | LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la |
550 | INCLTDL=ifelse($#,1,-I$1,['-I${top_builddir}/libltdl']) | 3642 | LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl']) |
551 | else | 3643 | else |
552 | ac_configure_args="$ac_configure_args --enable-ltdl-install=no" | 3644 | ac_configure_args="$ac_configure_args --enable-ltdl-install=no" |
553 | LIBLTDL="-lltdl" | 3645 | LIBLTDL="-lltdl" |
554 | INCLTDL= | 3646 | LTDLINCL= |
3647 | fi | ||
3648 | # For backwards non-gettext consistent compatibility... | ||
3649 | INCLTDL="$LTDLINCL" | ||
3650 | ])# AC_LIBLTDL_INSTALLABLE | ||
3651 | |||
3652 | |||
3653 | # AC_LIBTOOL_CXX | ||
3654 | # -------------- | ||
3655 | # enable support for C++ libraries | ||
3656 | AC_DEFUN([AC_LIBTOOL_CXX], | ||
3657 | [AC_REQUIRE([_LT_AC_LANG_CXX]) | ||
3658 | ])# AC_LIBTOOL_CXX | ||
3659 | |||
3660 | |||
3661 | # _LT_AC_LANG_CXX | ||
3662 | # --------------- | ||
3663 | AC_DEFUN([_LT_AC_LANG_CXX], | ||
3664 | [AC_REQUIRE([AC_PROG_CXX]) | ||
3665 | AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | ||
3666 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX]) | ||
3667 | ])# _LT_AC_LANG_CXX | ||
3668 | |||
3669 | # _LT_AC_PROG_CXXCPP | ||
3670 | # ------------------ | ||
3671 | AC_DEFUN([_LT_AC_PROG_CXXCPP], | ||
3672 | [ | ||
3673 | AC_REQUIRE([AC_PROG_CXX]) | ||
3674 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | ||
3675 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | ||
3676 | (test "X$CXX" != "Xg++"))) ; then | ||
3677 | AC_PROG_CXXCPP | ||
3678 | fi | ||
3679 | ])# _LT_AC_PROG_CXXCPP | ||
3680 | |||
3681 | # AC_LIBTOOL_F77 | ||
3682 | # -------------- | ||
3683 | # enable support for Fortran 77 libraries | ||
3684 | AC_DEFUN([AC_LIBTOOL_F77], | ||
3685 | [AC_REQUIRE([_LT_AC_LANG_F77]) | ||
3686 | ])# AC_LIBTOOL_F77 | ||
3687 | |||
3688 | |||
3689 | # _LT_AC_LANG_F77 | ||
3690 | # --------------- | ||
3691 | AC_DEFUN([_LT_AC_LANG_F77], | ||
3692 | [AC_REQUIRE([AC_PROG_F77]) | ||
3693 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77]) | ||
3694 | ])# _LT_AC_LANG_F77 | ||
3695 | |||
3696 | |||
3697 | # AC_LIBTOOL_GCJ | ||
3698 | # -------------- | ||
3699 | # enable support for GCJ libraries | ||
3700 | AC_DEFUN([AC_LIBTOOL_GCJ], | ||
3701 | [AC_REQUIRE([_LT_AC_LANG_GCJ]) | ||
3702 | ])# AC_LIBTOOL_GCJ | ||
3703 | |||
3704 | |||
3705 | # _LT_AC_LANG_GCJ | ||
3706 | # --------------- | ||
3707 | AC_DEFUN([_LT_AC_LANG_GCJ], | ||
3708 | [AC_PROVIDE_IFELSE([AC_PROG_GCJ],[], | ||
3709 | [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[], | ||
3710 | [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[], | ||
3711 | [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])], | ||
3712 | [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])], | ||
3713 | [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])]) | ||
3714 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ]) | ||
3715 | ])# _LT_AC_LANG_GCJ | ||
3716 | |||
3717 | |||
3718 | # AC_LIBTOOL_RC | ||
3719 | # ------------- | ||
3720 | # enable support for Windows resource files | ||
3721 | AC_DEFUN([AC_LIBTOOL_RC], | ||
3722 | [AC_REQUIRE([LT_AC_PROG_RC]) | ||
3723 | _LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC]) | ||
3724 | ])# AC_LIBTOOL_RC | ||
3725 | |||
3726 | |||
3727 | # AC_LIBTOOL_LANG_C_CONFIG | ||
3728 | # ------------------------ | ||
3729 | # Ensure that the configuration vars for the C compiler are | ||
3730 | # suitably defined. Those variables are subsequently used by | ||
3731 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
3732 | AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG]) | ||
3733 | AC_DEFUN([_LT_AC_LANG_C_CONFIG], | ||
3734 | [lt_save_CC="$CC" | ||
3735 | AC_LANG_PUSH(C) | ||
3736 | |||
3737 | # Source file extension for C test sources. | ||
3738 | ac_ext=c | ||
3739 | |||
3740 | # Object file extension for compiled C test sources. | ||
3741 | objext=o | ||
3742 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
3743 | |||
3744 | # Code to be used in simple compile tests | ||
3745 | lt_simple_compile_test_code="int some_variable = 0;\n" | ||
3746 | |||
3747 | # Code to be used in simple link tests | ||
3748 | lt_simple_link_test_code='int main(){return(0);}\n' | ||
3749 | |||
3750 | _LT_AC_SYS_COMPILER | ||
3751 | |||
3752 | # save warnings/boilerplate of simple test code | ||
3753 | _LT_COMPILER_BOILERPLATE | ||
3754 | _LT_LINKER_BOILERPLATE | ||
3755 | |||
3756 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | ||
3757 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
3758 | AC_LIBTOOL_PROG_CC_C_O($1) | ||
3759 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
3760 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
3761 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
3762 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
3763 | AC_LIBTOOL_SYS_LIB_STRIP | ||
3764 | AC_LIBTOOL_DLOPEN_SELF | ||
3765 | |||
3766 | # Report which library types will actually be built | ||
3767 | AC_MSG_CHECKING([if libtool supports shared libraries]) | ||
3768 | AC_MSG_RESULT([$can_build_shared]) | ||
3769 | |||
3770 | AC_MSG_CHECKING([whether to build shared libraries]) | ||
3771 | test "$can_build_shared" = "no" && enable_shared=no | ||
3772 | |||
3773 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
3774 | # are all built from PIC. | ||
3775 | case $host_os in | ||
3776 | aix3*) | ||
3777 | test "$enable_shared" = yes && enable_static=no | ||
3778 | if test -n "$RANLIB"; then | ||
3779 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
3780 | postinstall_cmds='$RANLIB $lib' | ||
3781 | fi | ||
3782 | ;; | ||
3783 | |||
3784 | aix4* | aix5*) | ||
3785 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
3786 | test "$enable_shared" = yes && enable_static=no | ||
3787 | fi | ||
3788 | ;; | ||
3789 | esac | ||
3790 | AC_MSG_RESULT([$enable_shared]) | ||
3791 | |||
3792 | AC_MSG_CHECKING([whether to build static libraries]) | ||
3793 | # Make sure either enable_shared or enable_static is yes. | ||
3794 | test "$enable_shared" = yes || enable_static=yes | ||
3795 | AC_MSG_RESULT([$enable_static]) | ||
3796 | |||
3797 | AC_LIBTOOL_CONFIG($1) | ||
3798 | |||
3799 | AC_LANG_POP | ||
3800 | CC="$lt_save_CC" | ||
3801 | ])# AC_LIBTOOL_LANG_C_CONFIG | ||
3802 | |||
3803 | |||
3804 | # AC_LIBTOOL_LANG_CXX_CONFIG | ||
3805 | # -------------------------- | ||
3806 | # Ensure that the configuration vars for the C compiler are | ||
3807 | # suitably defined. Those variables are subsequently used by | ||
3808 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
3809 | AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)]) | ||
3810 | AC_DEFUN([_LT_AC_LANG_CXX_CONFIG], | ||
3811 | [AC_LANG_PUSH(C++) | ||
3812 | AC_REQUIRE([AC_PROG_CXX]) | ||
3813 | AC_REQUIRE([_LT_AC_PROG_CXXCPP]) | ||
3814 | |||
3815 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
3816 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= | ||
3817 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
3818 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | ||
3819 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | ||
3820 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
3821 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
3822 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
3823 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
3824 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | ||
3825 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
3826 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no | ||
3827 | _LT_AC_TAGVAR(module_cmds, $1)= | ||
3828 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= | ||
3829 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | ||
3830 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
3831 | _LT_AC_TAGVAR(no_undefined_flag, $1)= | ||
3832 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
3833 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | ||
3834 | |||
3835 | # Dependencies to place before and after the object being linked: | ||
3836 | _LT_AC_TAGVAR(predep_objects, $1)= | ||
3837 | _LT_AC_TAGVAR(postdep_objects, $1)= | ||
3838 | _LT_AC_TAGVAR(predeps, $1)= | ||
3839 | _LT_AC_TAGVAR(postdeps, $1)= | ||
3840 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)= | ||
3841 | |||
3842 | # Source file extension for C++ test sources. | ||
3843 | ac_ext=cpp | ||
3844 | |||
3845 | # Object file extension for compiled C++ test sources. | ||
3846 | objext=o | ||
3847 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
3848 | |||
3849 | # Code to be used in simple compile tests | ||
3850 | lt_simple_compile_test_code="int some_variable = 0;\n" | ||
3851 | |||
3852 | # Code to be used in simple link tests | ||
3853 | lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }\n' | ||
3854 | |||
3855 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
3856 | _LT_AC_SYS_COMPILER | ||
3857 | |||
3858 | # save warnings/boilerplate of simple test code | ||
3859 | _LT_COMPILER_BOILERPLATE | ||
3860 | _LT_LINKER_BOILERPLATE | ||
3861 | |||
3862 | # Allow CC to be a program name with arguments. | ||
3863 | lt_save_CC=$CC | ||
3864 | lt_save_LD=$LD | ||
3865 | lt_save_GCC=$GCC | ||
3866 | GCC=$GXX | ||
3867 | lt_save_with_gnu_ld=$with_gnu_ld | ||
3868 | lt_save_path_LD=$lt_cv_path_LD | ||
3869 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | ||
3870 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | ||
3871 | else | ||
3872 | $as_unset lt_cv_prog_gnu_ld | ||
3873 | fi | ||
3874 | if test -n "${lt_cv_path_LDCXX+set}"; then | ||
3875 | lt_cv_path_LD=$lt_cv_path_LDCXX | ||
3876 | else | ||
3877 | $as_unset lt_cv_path_LD | ||
3878 | fi | ||
3879 | test -z "${LDCXX+set}" || LD=$LDCXX | ||
3880 | CC=${CXX-"c++"} | ||
3881 | compiler=$CC | ||
3882 | _LT_AC_TAGVAR(compiler, $1)=$CC | ||
3883 | _LT_CC_BASENAME([$compiler]) | ||
3884 | |||
3885 | # We don't want -fno-exception wen compiling C++ code, so set the | ||
3886 | # no_builtin_flag separately | ||
3887 | if test "$GXX" = yes; then | ||
3888 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | ||
3889 | else | ||
3890 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | ||
3891 | fi | ||
3892 | |||
3893 | if test "$GXX" = yes; then | ||
3894 | # Set up default GNU C++ configuration | ||
3895 | |||
3896 | AC_PROG_LD | ||
3897 | |||
3898 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | ||
3899 | # archiving commands below assume that GNU ld is being used. | ||
3900 | if test "$with_gnu_ld" = yes; then | ||
3901 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
3902 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
3903 | |||
3904 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | ||
3905 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
3906 | |||
3907 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
3908 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | ||
3909 | # investigate it a little bit more. (MM) | ||
3910 | wlarc='${wl}' | ||
3911 | |||
3912 | # ancient GNU ld didn't support --whole-archive et. al. | ||
3913 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | ||
3914 | grep 'no-whole-archive' > /dev/null; then | ||
3915 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
3916 | else | ||
3917 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
3918 | fi | ||
3919 | else | ||
3920 | with_gnu_ld=no | ||
3921 | wlarc= | ||
3922 | |||
3923 | # A generic and very simple default shared library creation | ||
3924 | # command for GNU C++ for the case where it uses the native | ||
3925 | # linker, instead of GNU ld. If possible, this setting should | ||
3926 | # overridden to take advantage of the native linker features on | ||
3927 | # the platform it is being used on. | ||
3928 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
3929 | fi | ||
3930 | |||
3931 | # Commands to make compiler produce verbose output that lists | ||
3932 | # what "hidden" libraries, object files and flags are used when | ||
3933 | # linking a shared library. | ||
3934 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
3935 | |||
3936 | else | ||
3937 | GXX=no | ||
3938 | with_gnu_ld=no | ||
3939 | wlarc= | ||
3940 | fi | ||
3941 | |||
3942 | # PORTME: fill in a description of your system's C++ link characteristics | ||
3943 | AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | ||
3944 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes | ||
3945 | case $host_os in | ||
3946 | aix3*) | ||
3947 | # FIXME: insert proper C++ library support | ||
3948 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
3949 | ;; | ||
3950 | aix4* | aix5*) | ||
3951 | if test "$host_cpu" = ia64; then | ||
3952 | # On IA64, the linker does run time linking by default, so we don't | ||
3953 | # have to do anything special. | ||
3954 | aix_use_runtimelinking=no | ||
3955 | exp_sym_flag='-Bexport' | ||
3956 | no_entry_flag="" | ||
3957 | else | ||
3958 | aix_use_runtimelinking=no | ||
3959 | |||
3960 | # Test if we are trying to use run time linking or normal | ||
3961 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
3962 | # need to do runtime linking. | ||
3963 | case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) | ||
3964 | for ld_flag in $LDFLAGS; do | ||
3965 | case $ld_flag in | ||
3966 | *-brtl*) | ||
3967 | aix_use_runtimelinking=yes | ||
3968 | break | ||
3969 | ;; | ||
3970 | esac | ||
3971 | done | ||
3972 | ;; | ||
3973 | esac | ||
3974 | |||
3975 | exp_sym_flag='-bexport' | ||
3976 | no_entry_flag='-bnoentry' | ||
3977 | fi | ||
3978 | |||
3979 | # When large executables or shared objects are built, AIX ld can | ||
3980 | # have problems creating the table of contents. If linking a library | ||
3981 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
3982 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
3983 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
3984 | |||
3985 | _LT_AC_TAGVAR(archive_cmds, $1)='' | ||
3986 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
3987 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
3988 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
3989 | |||
3990 | if test "$GXX" = yes; then | ||
3991 | case $host_os in aix4.[[012]]|aix4.[[012]].*) | ||
3992 | # We only want to do this on AIX 4.2 and lower, the check | ||
3993 | # below for broken collect2 doesn't work under 4.3+ | ||
3994 | collect2name=`${CC} -print-prog-name=collect2` | ||
3995 | if test -f "$collect2name" && \ | ||
3996 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
3997 | then | ||
3998 | # We have reworked collect2 | ||
3999 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
4000 | else | ||
4001 | # We have old collect2 | ||
4002 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | ||
4003 | # It fails to find uninstalled libraries when the uninstalled | ||
4004 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
4005 | # to unsupported forces relinking | ||
4006 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
4007 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
4008 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
4009 | fi | ||
4010 | ;; | ||
4011 | esac | ||
4012 | shared_flag='-shared' | ||
4013 | if test "$aix_use_runtimelinking" = yes; then | ||
4014 | shared_flag="$shared_flag "'${wl}-G' | ||
4015 | fi | ||
4016 | else | ||
4017 | # not using gcc | ||
4018 | if test "$host_cpu" = ia64; then | ||
4019 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
4020 | # chokes on -Wl,-G. The following line is correct: | ||
4021 | shared_flag='-G' | ||
4022 | else | ||
4023 | if test "$aix_use_runtimelinking" = yes; then | ||
4024 | shared_flag='${wl}-G' | ||
4025 | else | ||
4026 | shared_flag='${wl}-bM:SRE' | ||
4027 | fi | ||
4028 | fi | ||
4029 | fi | ||
4030 | |||
4031 | # It seems that -bexpall does not export symbols beginning with | ||
4032 | # underscore (_), so it is better to generate a list of symbols to export. | ||
4033 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes | ||
4034 | if test "$aix_use_runtimelinking" = yes; then | ||
4035 | # Warning - without using the other runtime loading flags (-brtl), | ||
4036 | # -berok will link without error, but may produce a broken library. | ||
4037 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' | ||
4038 | # Determine the default libpath from the value encoded in an empty executable. | ||
4039 | _LT_AC_SYS_LIBPATH_AIX | ||
4040 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
4041 | |||
4042 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
4043 | else | ||
4044 | if test "$host_cpu" = ia64; then | ||
4045 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | ||
4046 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | ||
4047 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | ||
4048 | else | ||
4049 | # Determine the default libpath from the value encoded in an empty executable. | ||
4050 | _LT_AC_SYS_LIBPATH_AIX | ||
4051 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
4052 | # Warning - without using the other run time loading flags, | ||
4053 | # -berok will link without error, but may produce a broken library. | ||
4054 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | ||
4055 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | ||
4056 | # Exported symbols can be pulled into shared objects from archives | ||
4057 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | ||
4058 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | ||
4059 | # This is similar to how AIX traditionally builds its shared libraries. | ||
4060 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
4061 | fi | ||
4062 | fi | ||
4063 | ;; | ||
4064 | |||
4065 | beos*) | ||
4066 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
4067 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
4068 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
4069 | # support --undefined. This deserves some investigation. FIXME | ||
4070 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
4071 | else | ||
4072 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4073 | fi | ||
4074 | ;; | ||
4075 | |||
4076 | chorus*) | ||
4077 | case $cc_basename in | ||
4078 | *) | ||
4079 | # FIXME: insert proper C++ library support | ||
4080 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4081 | ;; | ||
4082 | esac | ||
4083 | ;; | ||
4084 | |||
4085 | cygwin* | mingw* | pw32*) | ||
4086 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | ||
4087 | # as there is no search path for DLLs. | ||
4088 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
4089 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
4090 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
4091 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
4092 | |||
4093 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
4094 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
4095 | # If the export-symbols file already is a .def file (1st line | ||
4096 | # is EXPORTS), use it as is; otherwise, prepend... | ||
4097 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
4098 | cp $export_symbols $output_objdir/$soname.def; | ||
4099 | else | ||
4100 | echo EXPORTS > $output_objdir/$soname.def; | ||
4101 | cat $export_symbols >> $output_objdir/$soname.def; | ||
4102 | fi~ | ||
4103 | $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' | ||
4104 | else | ||
4105 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4106 | fi | ||
4107 | ;; | ||
4108 | darwin* | rhapsody*) | ||
4109 | case $host_os in | ||
4110 | rhapsody* | darwin1.[[012]]) | ||
4111 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | ||
4112 | ;; | ||
4113 | *) # Darwin 1.3 on | ||
4114 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
4115 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
4116 | else | ||
4117 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
4118 | 10.[[012]]) | ||
4119 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
4120 | ;; | ||
4121 | 10.*) | ||
4122 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | ||
4123 | ;; | ||
4124 | esac | ||
4125 | fi | ||
4126 | ;; | ||
4127 | esac | ||
4128 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4129 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
4130 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | ||
4131 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
4132 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | ||
4133 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
4134 | |||
4135 | if test "$GXX" = yes ; then | ||
4136 | lt_int_apple_cc_single_mod=no | ||
4137 | output_verbose_link_cmd='echo' | ||
4138 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | ||
4139 | lt_int_apple_cc_single_mod=yes | ||
4140 | fi | ||
4141 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
4142 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
4143 | else | ||
4144 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
4145 | fi | ||
4146 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
4147 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
4148 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
4149 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
4150 | else | ||
4151 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
4152 | fi | ||
4153 | _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
4154 | else | ||
4155 | case $cc_basename in | ||
4156 | xlc*) | ||
4157 | output_verbose_link_cmd='echo' | ||
4158 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | ||
4159 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
4160 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
4161 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
4162 | _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
4163 | ;; | ||
4164 | *) | ||
4165 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4166 | ;; | ||
4167 | esac | ||
4168 | fi | ||
4169 | ;; | ||
4170 | |||
4171 | dgux*) | ||
4172 | case $cc_basename in | ||
4173 | ec++*) | ||
4174 | # FIXME: insert proper C++ library support | ||
4175 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4176 | ;; | ||
4177 | ghcx*) | ||
4178 | # Green Hills C++ Compiler | ||
4179 | # FIXME: insert proper C++ library support | ||
4180 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4181 | ;; | ||
4182 | *) | ||
4183 | # FIXME: insert proper C++ library support | ||
4184 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4185 | ;; | ||
4186 | esac | ||
4187 | ;; | ||
4188 | freebsd[[12]]*) | ||
4189 | # C++ shared libraries reported to be fairly broken before switch to ELF | ||
4190 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4191 | ;; | ||
4192 | freebsd-elf*) | ||
4193 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4194 | ;; | ||
4195 | freebsd* | kfreebsd*-gnu | dragonfly*) | ||
4196 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | ||
4197 | # conventions | ||
4198 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes | ||
4199 | ;; | ||
4200 | gnu*) | ||
4201 | ;; | ||
4202 | hpux9*) | ||
4203 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
4204 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4205 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
4206 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
4207 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | ||
4208 | # but as the default | ||
4209 | # location of the library. | ||
4210 | |||
4211 | case $cc_basename in | ||
4212 | CC*) | ||
4213 | # FIXME: insert proper C++ library support | ||
4214 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4215 | ;; | ||
4216 | aCC*) | ||
4217 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
4218 | # Commands to make compiler produce verbose output that lists | ||
4219 | # what "hidden" libraries, object files and flags are used when | ||
4220 | # linking a shared library. | ||
4221 | # | ||
4222 | # There doesn't appear to be a way to prevent this compiler from | ||
4223 | # explicitly linking system object files so we need to strip them | ||
4224 | # from the output so that they don't get included in the library | ||
4225 | # dependencies. | ||
4226 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[[-]]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | ||
4227 | ;; | ||
4228 | *) | ||
4229 | if test "$GXX" = yes; then | ||
4230 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
4231 | else | ||
4232 | # FIXME: insert proper C++ library support | ||
4233 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4234 | fi | ||
4235 | ;; | ||
4236 | esac | ||
4237 | ;; | ||
4238 | hpux10*|hpux11*) | ||
4239 | if test $with_gnu_ld = no; then | ||
4240 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
4241 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4242 | |||
4243 | case $host_cpu in | ||
4244 | hppa*64*|ia64*) | ||
4245 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | ||
4246 | ;; | ||
4247 | *) | ||
4248 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
4249 | ;; | ||
4250 | esac | ||
4251 | fi | ||
4252 | case $host_cpu in | ||
4253 | hppa*64*|ia64*) | ||
4254 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
4255 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
4256 | ;; | ||
4257 | *) | ||
4258 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
4259 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH, | ||
4260 | # but as the default | ||
4261 | # location of the library. | ||
4262 | ;; | ||
4263 | esac | ||
4264 | |||
4265 | case $cc_basename in | ||
4266 | CC*) | ||
4267 | # FIXME: insert proper C++ library support | ||
4268 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4269 | ;; | ||
4270 | aCC*) | ||
4271 | case $host_cpu in | ||
4272 | hppa*64*) | ||
4273 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
4274 | ;; | ||
4275 | ia64*) | ||
4276 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
4277 | ;; | ||
4278 | *) | ||
4279 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
4280 | ;; | ||
4281 | esac | ||
4282 | # Commands to make compiler produce verbose output that lists | ||
4283 | # what "hidden" libraries, object files and flags are used when | ||
4284 | # linking a shared library. | ||
4285 | # | ||
4286 | # There doesn't appear to be a way to prevent this compiler from | ||
4287 | # explicitly linking system object files so we need to strip them | ||
4288 | # from the output so that they don't get included in the library | ||
4289 | # dependencies. | ||
4290 | output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | ||
4291 | ;; | ||
4292 | *) | ||
4293 | if test "$GXX" = yes; then | ||
4294 | if test $with_gnu_ld = no; then | ||
4295 | case $host_cpu in | ||
4296 | hppa*64*) | ||
4297 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
4298 | ;; | ||
4299 | ia64*) | ||
4300 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
4301 | ;; | ||
4302 | *) | ||
4303 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
4304 | ;; | ||
4305 | esac | ||
4306 | fi | ||
4307 | else | ||
4308 | # FIXME: insert proper C++ library support | ||
4309 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4310 | fi | ||
4311 | ;; | ||
4312 | esac | ||
4313 | ;; | ||
4314 | interix3*) | ||
4315 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
4316 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
4317 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
4318 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
4319 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
4320 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
4321 | # default) and relocated if they conflict, which is a slow very memory | ||
4322 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
4323 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
4324 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
4325 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
4326 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
4327 | ;; | ||
4328 | irix5* | irix6*) | ||
4329 | case $cc_basename in | ||
4330 | CC*) | ||
4331 | # SGI C++ | ||
4332 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
4333 | |||
4334 | # Archives containing C++ object files must be created using | ||
4335 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | ||
4336 | # necessary to make sure instantiated templates are included | ||
4337 | # in the archive. | ||
4338 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs' | ||
4339 | ;; | ||
4340 | *) | ||
4341 | if test "$GXX" = yes; then | ||
4342 | if test "$with_gnu_ld" = no; then | ||
4343 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
4344 | else | ||
4345 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' | ||
4346 | fi | ||
4347 | fi | ||
4348 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
4349 | ;; | ||
4350 | esac | ||
4351 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
4352 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4353 | ;; | ||
4354 | linux*) | ||
4355 | case $cc_basename in | ||
4356 | KCC*) | ||
4357 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
4358 | |||
4359 | # KCC will only create a shared library if the output file | ||
4360 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
4361 | # to its proper name (with version) after linking. | ||
4362 | _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | ||
4363 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | ||
4364 | # Commands to make compiler produce verbose output that lists | ||
4365 | # what "hidden" libraries, object files and flags are used when | ||
4366 | # linking a shared library. | ||
4367 | # | ||
4368 | # There doesn't appear to be a way to prevent this compiler from | ||
4369 | # explicitly linking system object files so we need to strip them | ||
4370 | # from the output so that they don't get included in the library | ||
4371 | # dependencies. | ||
4372 | output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | ||
4373 | |||
4374 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir' | ||
4375 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
4376 | |||
4377 | # Archives containing C++ object files must be created using | ||
4378 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
4379 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | ||
4380 | ;; | ||
4381 | icpc*) | ||
4382 | # Intel C++ | ||
4383 | with_gnu_ld=yes | ||
4384 | # version 8.0 and above of icpc choke on multiply defined symbols | ||
4385 | # if we add $predep_objects and $postdep_objects, however 7.1 and | ||
4386 | # earlier do not add the objects themselves. | ||
4387 | case `$CC -V 2>&1` in | ||
4388 | *"Version 7."*) | ||
4389 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
4390 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
4391 | ;; | ||
4392 | *) # Version 8.0 or newer | ||
4393 | tmp_idyn= | ||
4394 | case $host_cpu in | ||
4395 | ia64*) tmp_idyn=' -i_dynamic';; | ||
4396 | esac | ||
4397 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
4398 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
4399 | ;; | ||
4400 | esac | ||
4401 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4402 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
4403 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
4404 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
4405 | ;; | ||
4406 | pgCC*) | ||
4407 | # Portland Group C++ compiler | ||
4408 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | ||
4409 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | ||
4410 | |||
4411 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | ||
4412 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
4413 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | ||
4414 | ;; | ||
4415 | cxx*) | ||
4416 | # Compaq C++ | ||
4417 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
4418 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | ||
4419 | |||
4420 | runpath_var=LD_RUN_PATH | ||
4421 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | ||
4422 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4423 | |||
4424 | # Commands to make compiler produce verbose output that lists | ||
4425 | # what "hidden" libraries, object files and flags are used when | ||
4426 | # linking a shared library. | ||
4427 | # | ||
4428 | # There doesn't appear to be a way to prevent this compiler from | ||
4429 | # explicitly linking system object files so we need to strip them | ||
4430 | # from the output so that they don't get included in the library | ||
4431 | # dependencies. | ||
4432 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | ||
4433 | ;; | ||
4434 | esac | ||
4435 | ;; | ||
4436 | lynxos*) | ||
4437 | # FIXME: insert proper C++ library support | ||
4438 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4439 | ;; | ||
4440 | m88k*) | ||
4441 | # FIXME: insert proper C++ library support | ||
4442 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4443 | ;; | ||
4444 | mvs*) | ||
4445 | case $cc_basename in | ||
4446 | cxx*) | ||
4447 | # FIXME: insert proper C++ library support | ||
4448 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4449 | ;; | ||
4450 | *) | ||
4451 | # FIXME: insert proper C++ library support | ||
4452 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4453 | ;; | ||
4454 | esac | ||
4455 | ;; | ||
4456 | netbsd*) | ||
4457 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
4458 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | ||
4459 | wlarc= | ||
4460 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
4461 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
4462 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
4463 | fi | ||
4464 | # Workaround some broken pre-1.5 toolchains | ||
4465 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | ||
4466 | ;; | ||
4467 | openbsd2*) | ||
4468 | # C++ shared libraries are fairly broken | ||
4469 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4470 | ;; | ||
4471 | openbsd*) | ||
4472 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
4473 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
4474 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
4475 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
4476 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
4477 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | ||
4478 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
4479 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
4480 | fi | ||
4481 | output_verbose_link_cmd='echo' | ||
4482 | ;; | ||
4483 | osf3*) | ||
4484 | case $cc_basename in | ||
4485 | KCC*) | ||
4486 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
4487 | |||
4488 | # KCC will only create a shared library if the output file | ||
4489 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
4490 | # to its proper name (with version) after linking. | ||
4491 | _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | ||
4492 | |||
4493 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
4494 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4495 | |||
4496 | # Archives containing C++ object files must be created using | ||
4497 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
4498 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' | ||
4499 | |||
4500 | ;; | ||
4501 | RCC*) | ||
4502 | # Rational C++ 2.4.1 | ||
4503 | # FIXME: insert proper C++ library support | ||
4504 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4505 | ;; | ||
4506 | cxx*) | ||
4507 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
4508 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
4509 | |||
4510 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
4511 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4512 | |||
4513 | # Commands to make compiler produce verbose output that lists | ||
4514 | # what "hidden" libraries, object files and flags are used when | ||
4515 | # linking a shared library. | ||
4516 | # | ||
4517 | # There doesn't appear to be a way to prevent this compiler from | ||
4518 | # explicitly linking system object files so we need to strip them | ||
4519 | # from the output so that they don't get included in the library | ||
4520 | # dependencies. | ||
4521 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | ||
4522 | ;; | ||
4523 | *) | ||
4524 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
4525 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
4526 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
4527 | |||
4528 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
4529 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4530 | |||
4531 | # Commands to make compiler produce verbose output that lists | ||
4532 | # what "hidden" libraries, object files and flags are used when | ||
4533 | # linking a shared library. | ||
4534 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
4535 | |||
4536 | else | ||
4537 | # FIXME: insert proper C++ library support | ||
4538 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4539 | fi | ||
4540 | ;; | ||
4541 | esac | ||
4542 | ;; | ||
4543 | osf4* | osf5*) | ||
4544 | case $cc_basename in | ||
4545 | KCC*) | ||
4546 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
4547 | |||
4548 | # KCC will only create a shared library if the output file | ||
4549 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
4550 | # to its proper name (with version) after linking. | ||
4551 | _LT_AC_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | ||
4552 | |||
4553 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
4554 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4555 | |||
4556 | # Archives containing C++ object files must be created using | ||
4557 | # the KAI C++ compiler. | ||
4558 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' | ||
4559 | ;; | ||
4560 | RCC*) | ||
4561 | # Rational C++ 2.4.1 | ||
4562 | # FIXME: insert proper C++ library support | ||
4563 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4564 | ;; | ||
4565 | cxx*) | ||
4566 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | ||
4567 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
4568 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | ||
4569 | echo "-hidden">> $lib.exp~ | ||
4570 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ | ||
4571 | $rm $lib.exp' | ||
4572 | |||
4573 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | ||
4574 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4575 | |||
4576 | # Commands to make compiler produce verbose output that lists | ||
4577 | # what "hidden" libraries, object files and flags are used when | ||
4578 | # linking a shared library. | ||
4579 | # | ||
4580 | # There doesn't appear to be a way to prevent this compiler from | ||
4581 | # explicitly linking system object files so we need to strip them | ||
4582 | # from the output so that they don't get included in the library | ||
4583 | # dependencies. | ||
4584 | output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | ||
4585 | ;; | ||
4586 | *) | ||
4587 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
4588 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
4589 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
4590 | |||
4591 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
4592 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
4593 | |||
4594 | # Commands to make compiler produce verbose output that lists | ||
4595 | # what "hidden" libraries, object files and flags are used when | ||
4596 | # linking a shared library. | ||
4597 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
4598 | |||
4599 | else | ||
4600 | # FIXME: insert proper C++ library support | ||
4601 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4602 | fi | ||
4603 | ;; | ||
4604 | esac | ||
4605 | ;; | ||
4606 | psos*) | ||
4607 | # FIXME: insert proper C++ library support | ||
4608 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4609 | ;; | ||
4610 | sunos4*) | ||
4611 | case $cc_basename in | ||
4612 | CC*) | ||
4613 | # Sun C++ 4.x | ||
4614 | # FIXME: insert proper C++ library support | ||
4615 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4616 | ;; | ||
4617 | lcc*) | ||
4618 | # Lucid | ||
4619 | # FIXME: insert proper C++ library support | ||
4620 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4621 | ;; | ||
4622 | *) | ||
4623 | # FIXME: insert proper C++ library support | ||
4624 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4625 | ;; | ||
4626 | esac | ||
4627 | ;; | ||
4628 | solaris*) | ||
4629 | case $cc_basename in | ||
4630 | CC*) | ||
4631 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
4632 | _LT_AC_TAGVAR(archive_cmds_need_lc,$1)=yes | ||
4633 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs' | ||
4634 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
4635 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
4636 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
4637 | |||
4638 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
4639 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
4640 | case $host_os in | ||
4641 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | ||
4642 | *) | ||
4643 | # The C++ compiler is used as linker so we must use $wl | ||
4644 | # flag to pass the commands to the underlying system | ||
4645 | # linker. We must also pass each convience library through | ||
4646 | # to the system linker between allextract/defaultextract. | ||
4647 | # The C++ compiler will combine linker options so we | ||
4648 | # cannot just pass the convience library names through | ||
4649 | # without $wl. | ||
4650 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
4651 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' | ||
4652 | ;; | ||
4653 | esac | ||
4654 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
4655 | |||
4656 | output_verbose_link_cmd='echo' | ||
4657 | |||
4658 | # Archives containing C++ object files must be created using | ||
4659 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
4660 | # necessary to make sure instantiated templates are included | ||
4661 | # in the archive. | ||
4662 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs' | ||
4663 | ;; | ||
4664 | gcx*) | ||
4665 | # Green Hills C++ Compiler | ||
4666 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
4667 | |||
4668 | # The C++ compiler must be used to create the archive. | ||
4669 | _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | ||
4670 | ;; | ||
4671 | *) | ||
4672 | # GNU C++ compiler with Solaris linker | ||
4673 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
4674 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs' | ||
4675 | if $CC --version | grep -v '^2\.7' > /dev/null; then | ||
4676 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
4677 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
4678 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
4679 | |||
4680 | # Commands to make compiler produce verbose output that lists | ||
4681 | # what "hidden" libraries, object files and flags are used when | ||
4682 | # linking a shared library. | ||
4683 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | ||
4684 | else | ||
4685 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | ||
4686 | # platform. | ||
4687 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
4688 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
4689 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
4690 | |||
4691 | # Commands to make compiler produce verbose output that lists | ||
4692 | # what "hidden" libraries, object files and flags are used when | ||
4693 | # linking a shared library. | ||
4694 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | ||
4695 | fi | ||
4696 | |||
4697 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir' | ||
4698 | fi | ||
4699 | ;; | ||
4700 | esac | ||
4701 | ;; | ||
4702 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*) | ||
4703 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | ||
4704 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4705 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
4706 | runpath_var='LD_RUN_PATH' | ||
4707 | |||
4708 | case $cc_basename in | ||
4709 | CC*) | ||
4710 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
4711 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
4712 | ;; | ||
4713 | *) | ||
4714 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
4715 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
4716 | ;; | ||
4717 | esac | ||
4718 | ;; | ||
4719 | sysv5* | sco3.2v5* | sco5v6*) | ||
4720 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
4721 | # link with -lc, and that would cause any symbols used from libc to | ||
4722 | # always be unresolved, which means just about no library would | ||
4723 | # ever link correctly. If we're not using GNU ld we use -z text | ||
4724 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
4725 | # as -z defs. | ||
4726 | # For security reasons, it is highly recommended that you always | ||
4727 | # use absolute paths for naming shared libraries, and exclude the | ||
4728 | # DT_RUNPATH tag from executables and libraries. But doing so | ||
4729 | # requires that you compile everything twice, which is a pain. | ||
4730 | # So that behaviour is only enabled if SCOABSPATH is set to a | ||
4731 | # non-empty value in the environment. Most likely only useful for | ||
4732 | # creating official distributions of packages. | ||
4733 | # This is a hack until libtool officially supports absolute path | ||
4734 | # names for shared libraries. | ||
4735 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | ||
4736 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | ||
4737 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4738 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
4739 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
4740 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
4741 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
4742 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | ||
4743 | runpath_var='LD_RUN_PATH' | ||
4744 | |||
4745 | case $cc_basename in | ||
4746 | CC*) | ||
4747 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
4748 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
4749 | ;; | ||
4750 | *) | ||
4751 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
4752 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
4753 | ;; | ||
4754 | esac | ||
4755 | ;; | ||
4756 | tandem*) | ||
4757 | case $cc_basename in | ||
4758 | NCC*) | ||
4759 | # NonStop-UX NCC 3.20 | ||
4760 | # FIXME: insert proper C++ library support | ||
4761 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4762 | ;; | ||
4763 | *) | ||
4764 | # FIXME: insert proper C++ library support | ||
4765 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4766 | ;; | ||
4767 | esac | ||
4768 | ;; | ||
4769 | vxworks*) | ||
4770 | # FIXME: insert proper C++ library support | ||
4771 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4772 | ;; | ||
4773 | *) | ||
4774 | # FIXME: insert proper C++ library support | ||
4775 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
4776 | ;; | ||
4777 | esac | ||
4778 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) | ||
4779 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | ||
4780 | |||
4781 | _LT_AC_TAGVAR(GCC, $1)="$GXX" | ||
4782 | _LT_AC_TAGVAR(LD, $1)="$LD" | ||
4783 | |||
4784 | AC_LIBTOOL_POSTDEP_PREDEP($1) | ||
4785 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
4786 | AC_LIBTOOL_PROG_CC_C_O($1) | ||
4787 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
4788 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
4789 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
4790 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
4791 | |||
4792 | AC_LIBTOOL_CONFIG($1) | ||
4793 | |||
4794 | AC_LANG_POP | ||
4795 | CC=$lt_save_CC | ||
4796 | LDCXX=$LD | ||
4797 | LD=$lt_save_LD | ||
4798 | GCC=$lt_save_GCC | ||
4799 | with_gnu_ldcxx=$with_gnu_ld | ||
4800 | with_gnu_ld=$lt_save_with_gnu_ld | ||
4801 | lt_cv_path_LDCXX=$lt_cv_path_LD | ||
4802 | lt_cv_path_LD=$lt_save_path_LD | ||
4803 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | ||
4804 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | ||
4805 | ])# AC_LIBTOOL_LANG_CXX_CONFIG | ||
4806 | |||
4807 | # AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME]) | ||
4808 | # ------------------------------------ | ||
4809 | # Figure out "hidden" library dependencies from verbose | ||
4810 | # compiler output when linking a shared library. | ||
4811 | # Parse the compiler output and extract the necessary | ||
4812 | # objects, libraries and library flags. | ||
4813 | AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[ | ||
4814 | dnl we can't use the lt_simple_compile_test_code here, | ||
4815 | dnl because it contains code intended for an executable, | ||
4816 | dnl not a library. It's possible we should let each | ||
4817 | dnl tag define a new lt_????_link_test_code variable, | ||
4818 | dnl but it's only used here... | ||
4819 | ifelse([$1],[],[cat > conftest.$ac_ext <<EOF | ||
4820 | int a; | ||
4821 | void foo (void) { a = 0; } | ||
4822 | EOF | ||
4823 | ],[$1],[CXX],[cat > conftest.$ac_ext <<EOF | ||
4824 | class Foo | ||
4825 | { | ||
4826 | public: | ||
4827 | Foo (void) { a = 0; } | ||
4828 | private: | ||
4829 | int a; | ||
4830 | }; | ||
4831 | EOF | ||
4832 | ],[$1],[F77],[cat > conftest.$ac_ext <<EOF | ||
4833 | subroutine foo | ||
4834 | implicit none | ||
4835 | integer*4 a | ||
4836 | a=0 | ||
4837 | return | ||
4838 | end | ||
4839 | EOF | ||
4840 | ],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF | ||
4841 | public class foo { | ||
4842 | private int a; | ||
4843 | public void bar (void) { | ||
4844 | a = 0; | ||
4845 | } | ||
4846 | }; | ||
4847 | EOF | ||
4848 | ]) | ||
4849 | dnl Parse the compiler output and extract the necessary | ||
4850 | dnl objects, libraries and library flags. | ||
4851 | if AC_TRY_EVAL(ac_compile); then | ||
4852 | # Parse the compiler output and extract the necessary | ||
4853 | # objects, libraries and library flags. | ||
4854 | |||
4855 | # Sentinel used to keep track of whether or not we are before | ||
4856 | # the conftest object file. | ||
4857 | pre_test_object_deps_done=no | ||
4858 | |||
4859 | # The `*' in the case matches for architectures that use `case' in | ||
4860 | # $output_verbose_cmd can trigger glob expansion during the loop | ||
4861 | # eval without this substitution. | ||
4862 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | ||
4863 | |||
4864 | for p in `eval $output_verbose_link_cmd`; do | ||
4865 | case $p in | ||
4866 | |||
4867 | -L* | -R* | -l*) | ||
4868 | # Some compilers place space between "-{L,R}" and the path. | ||
4869 | # Remove the space. | ||
4870 | if test $p = "-L" \ | ||
4871 | || test $p = "-R"; then | ||
4872 | prev=$p | ||
4873 | continue | ||
4874 | else | ||
4875 | prev= | ||
4876 | fi | ||
4877 | |||
4878 | if test "$pre_test_object_deps_done" = no; then | ||
4879 | case $p in | ||
4880 | -L* | -R*) | ||
4881 | # Internal compiler library paths should come after those | ||
4882 | # provided the user. The postdeps already come after the | ||
4883 | # user supplied libs so there is no need to process them. | ||
4884 | if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then | ||
4885 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}" | ||
4886 | else | ||
4887 | _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}" | ||
4888 | fi | ||
4889 | ;; | ||
4890 | # The "-l" case would never come before the object being | ||
4891 | # linked, so don't bother handling this case. | ||
4892 | esac | ||
4893 | else | ||
4894 | if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then | ||
4895 | _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}" | ||
4896 | else | ||
4897 | _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}" | ||
4898 | fi | ||
4899 | fi | ||
4900 | ;; | ||
4901 | |||
4902 | *.$objext) | ||
4903 | # This assumes that the test object file only shows up | ||
4904 | # once in the compiler output. | ||
4905 | if test "$p" = "conftest.$objext"; then | ||
4906 | pre_test_object_deps_done=yes | ||
4907 | continue | ||
4908 | fi | ||
4909 | |||
4910 | if test "$pre_test_object_deps_done" = no; then | ||
4911 | if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then | ||
4912 | _LT_AC_TAGVAR(predep_objects, $1)="$p" | ||
4913 | else | ||
4914 | _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p" | ||
4915 | fi | ||
4916 | else | ||
4917 | if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then | ||
4918 | _LT_AC_TAGVAR(postdep_objects, $1)="$p" | ||
4919 | else | ||
4920 | _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p" | ||
4921 | fi | ||
4922 | fi | ||
4923 | ;; | ||
4924 | |||
4925 | *) ;; # Ignore the rest. | ||
4926 | |||
4927 | esac | ||
4928 | done | ||
4929 | |||
4930 | # Clean up. | ||
4931 | rm -f a.out a.exe | ||
4932 | else | ||
4933 | echo "libtool.m4: error: problem compiling $1 test program" | ||
4934 | fi | ||
4935 | |||
4936 | $rm -f confest.$objext | ||
4937 | |||
4938 | # PORTME: override above test on systems where it is broken | ||
4939 | ifelse([$1],[CXX], | ||
4940 | [case $host_os in | ||
4941 | interix3*) | ||
4942 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | ||
4943 | # hack all around it, let's just trust "g++" to DTRT. | ||
4944 | _LT_AC_TAGVAR(predep_objects,$1)= | ||
4945 | _LT_AC_TAGVAR(postdep_objects,$1)= | ||
4946 | _LT_AC_TAGVAR(postdeps,$1)= | ||
4947 | ;; | ||
4948 | |||
4949 | solaris*) | ||
4950 | case $cc_basename in | ||
4951 | CC*) | ||
4952 | # Adding this requires a known-good setup of shared libraries for | ||
4953 | # Sun compiler versions before 5.6, else PIC objects from an old | ||
4954 | # archive will be linked into the output, leading to subtle bugs. | ||
4955 | _LT_AC_TAGVAR(postdeps,$1)='-lCstd -lCrun' | ||
4956 | ;; | ||
4957 | esac | ||
4958 | ;; | ||
4959 | esac | ||
4960 | ]) | ||
4961 | |||
4962 | case " $_LT_AC_TAGVAR(postdeps, $1) " in | ||
4963 | *" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;; | ||
4964 | esac | ||
4965 | ])# AC_LIBTOOL_POSTDEP_PREDEP | ||
4966 | |||
4967 | # AC_LIBTOOL_LANG_F77_CONFIG | ||
4968 | # -------------------------- | ||
4969 | # Ensure that the configuration vars for the C compiler are | ||
4970 | # suitably defined. Those variables are subsequently used by | ||
4971 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
4972 | AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)]) | ||
4973 | AC_DEFUN([_LT_AC_LANG_F77_CONFIG], | ||
4974 | [AC_REQUIRE([AC_PROG_F77]) | ||
4975 | AC_LANG_PUSH(Fortran 77) | ||
4976 | |||
4977 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
4978 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= | ||
4979 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
4980 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | ||
4981 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | ||
4982 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
4983 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
4984 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
4985 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
4986 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | ||
4987 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no | ||
4988 | _LT_AC_TAGVAR(module_cmds, $1)= | ||
4989 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= | ||
4990 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | ||
4991 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
4992 | _LT_AC_TAGVAR(no_undefined_flag, $1)= | ||
4993 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
4994 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | ||
4995 | |||
4996 | # Source file extension for f77 test sources. | ||
4997 | ac_ext=f | ||
4998 | |||
4999 | # Object file extension for compiled f77 test sources. | ||
5000 | objext=o | ||
5001 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
5002 | |||
5003 | # Code to be used in simple compile tests | ||
5004 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" | ||
5005 | |||
5006 | # Code to be used in simple link tests | ||
5007 | lt_simple_link_test_code=" program t\n end\n" | ||
5008 | |||
5009 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
5010 | _LT_AC_SYS_COMPILER | ||
5011 | |||
5012 | # save warnings/boilerplate of simple test code | ||
5013 | _LT_COMPILER_BOILERPLATE | ||
5014 | _LT_LINKER_BOILERPLATE | ||
5015 | |||
5016 | # Allow CC to be a program name with arguments. | ||
5017 | lt_save_CC="$CC" | ||
5018 | CC=${F77-"f77"} | ||
5019 | compiler=$CC | ||
5020 | _LT_AC_TAGVAR(compiler, $1)=$CC | ||
5021 | _LT_CC_BASENAME([$compiler]) | ||
5022 | |||
5023 | AC_MSG_CHECKING([if libtool supports shared libraries]) | ||
5024 | AC_MSG_RESULT([$can_build_shared]) | ||
5025 | |||
5026 | AC_MSG_CHECKING([whether to build shared libraries]) | ||
5027 | test "$can_build_shared" = "no" && enable_shared=no | ||
5028 | |||
5029 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
5030 | # are all built from PIC. | ||
5031 | case $host_os in | ||
5032 | aix3*) | ||
5033 | test "$enable_shared" = yes && enable_static=no | ||
5034 | if test -n "$RANLIB"; then | ||
5035 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
5036 | postinstall_cmds='$RANLIB $lib' | ||
5037 | fi | ||
5038 | ;; | ||
5039 | aix4* | aix5*) | ||
5040 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
5041 | test "$enable_shared" = yes && enable_static=no | ||
5042 | fi | ||
5043 | ;; | ||
5044 | esac | ||
5045 | AC_MSG_RESULT([$enable_shared]) | ||
5046 | |||
5047 | AC_MSG_CHECKING([whether to build static libraries]) | ||
5048 | # Make sure either enable_shared or enable_static is yes. | ||
5049 | test "$enable_shared" = yes || enable_static=yes | ||
5050 | AC_MSG_RESULT([$enable_static]) | ||
5051 | |||
5052 | _LT_AC_TAGVAR(GCC, $1)="$G77" | ||
5053 | _LT_AC_TAGVAR(LD, $1)="$LD" | ||
5054 | |||
5055 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
5056 | AC_LIBTOOL_PROG_CC_C_O($1) | ||
5057 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
5058 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
5059 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
5060 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
5061 | |||
5062 | AC_LIBTOOL_CONFIG($1) | ||
5063 | |||
5064 | AC_LANG_POP | ||
5065 | CC="$lt_save_CC" | ||
5066 | ])# AC_LIBTOOL_LANG_F77_CONFIG | ||
5067 | |||
5068 | |||
5069 | # AC_LIBTOOL_LANG_GCJ_CONFIG | ||
5070 | # -------------------------- | ||
5071 | # Ensure that the configuration vars for the C compiler are | ||
5072 | # suitably defined. Those variables are subsequently used by | ||
5073 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
5074 | AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)]) | ||
5075 | AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG], | ||
5076 | [AC_LANG_SAVE | ||
5077 | |||
5078 | # Source file extension for Java test sources. | ||
5079 | ac_ext=java | ||
5080 | |||
5081 | # Object file extension for compiled Java test sources. | ||
5082 | objext=o | ||
5083 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
5084 | |||
5085 | # Code to be used in simple compile tests | ||
5086 | lt_simple_compile_test_code="class foo {}\n" | ||
5087 | |||
5088 | # Code to be used in simple link tests | ||
5089 | lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n' | ||
5090 | |||
5091 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
5092 | _LT_AC_SYS_COMPILER | ||
5093 | |||
5094 | # save warnings/boilerplate of simple test code | ||
5095 | _LT_COMPILER_BOILERPLATE | ||
5096 | _LT_LINKER_BOILERPLATE | ||
5097 | |||
5098 | # Allow CC to be a program name with arguments. | ||
5099 | lt_save_CC="$CC" | ||
5100 | CC=${GCJ-"gcj"} | ||
5101 | compiler=$CC | ||
5102 | _LT_AC_TAGVAR(compiler, $1)=$CC | ||
5103 | _LT_CC_BASENAME([$compiler]) | ||
5104 | |||
5105 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | ||
5106 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
5107 | |||
5108 | _LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds | ||
5109 | |||
5110 | AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1) | ||
5111 | AC_LIBTOOL_PROG_COMPILER_PIC($1) | ||
5112 | AC_LIBTOOL_PROG_CC_C_O($1) | ||
5113 | AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1) | ||
5114 | AC_LIBTOOL_PROG_LD_SHLIBS($1) | ||
5115 | AC_LIBTOOL_SYS_DYNAMIC_LINKER($1) | ||
5116 | AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1) | ||
5117 | |||
5118 | AC_LIBTOOL_CONFIG($1) | ||
5119 | |||
5120 | AC_LANG_RESTORE | ||
5121 | CC="$lt_save_CC" | ||
5122 | ])# AC_LIBTOOL_LANG_GCJ_CONFIG | ||
5123 | |||
5124 | |||
5125 | # AC_LIBTOOL_LANG_RC_CONFIG | ||
5126 | # ------------------------- | ||
5127 | # Ensure that the configuration vars for the Windows resource compiler are | ||
5128 | # suitably defined. Those variables are subsequently used by | ||
5129 | # AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'. | ||
5130 | AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)]) | ||
5131 | AC_DEFUN([_LT_AC_LANG_RC_CONFIG], | ||
5132 | [AC_LANG_SAVE | ||
5133 | |||
5134 | # Source file extension for RC test sources. | ||
5135 | ac_ext=rc | ||
5136 | |||
5137 | # Object file extension for compiled RC test sources. | ||
5138 | objext=o | ||
5139 | _LT_AC_TAGVAR(objext, $1)=$objext | ||
5140 | |||
5141 | # Code to be used in simple compile tests | ||
5142 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | ||
5143 | |||
5144 | # Code to be used in simple link tests | ||
5145 | lt_simple_link_test_code="$lt_simple_compile_test_code" | ||
5146 | |||
5147 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
5148 | _LT_AC_SYS_COMPILER | ||
5149 | |||
5150 | # save warnings/boilerplate of simple test code | ||
5151 | _LT_COMPILER_BOILERPLATE | ||
5152 | _LT_LINKER_BOILERPLATE | ||
5153 | |||
5154 | # Allow CC to be a program name with arguments. | ||
5155 | lt_save_CC="$CC" | ||
5156 | CC=${RC-"windres"} | ||
5157 | compiler=$CC | ||
5158 | _LT_AC_TAGVAR(compiler, $1)=$CC | ||
5159 | _LT_CC_BASENAME([$compiler]) | ||
5160 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes | ||
5161 | |||
5162 | AC_LIBTOOL_CONFIG($1) | ||
5163 | |||
5164 | AC_LANG_RESTORE | ||
5165 | CC="$lt_save_CC" | ||
5166 | ])# AC_LIBTOOL_LANG_RC_CONFIG | ||
5167 | |||
5168 | |||
5169 | # AC_LIBTOOL_CONFIG([TAGNAME]) | ||
5170 | # ---------------------------- | ||
5171 | # If TAGNAME is not passed, then create an initial libtool script | ||
5172 | # with a default configuration from the untagged config vars. Otherwise | ||
5173 | # add code to config.status for appending the configuration named by | ||
5174 | # TAGNAME from the matching tagged config vars. | ||
5175 | AC_DEFUN([AC_LIBTOOL_CONFIG], | ||
5176 | [# The else clause should only fire when bootstrapping the | ||
5177 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
5178 | # with your package, and you will get complaints that there are | ||
5179 | # no rules to generate ltmain.sh. | ||
5180 | if test -f "$ltmain"; then | ||
5181 | # See if we are running on zsh, and set the options which allow our commands through | ||
5182 | # without removal of \ escapes. | ||
5183 | if test -n "${ZSH_VERSION+set}" ; then | ||
5184 | setopt NO_GLOB_SUBST | ||
5185 | fi | ||
5186 | # Now quote all the things that may contain metacharacters while being | ||
5187 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
5188 | # variables and quote the copies for generation of the libtool script. | ||
5189 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | ||
5190 | SED SHELL STRIP \ | ||
5191 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
5192 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
5193 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
5194 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
5195 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
5196 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
5197 | old_postinstall_cmds old_postuninstall_cmds \ | ||
5198 | _LT_AC_TAGVAR(compiler, $1) \ | ||
5199 | _LT_AC_TAGVAR(CC, $1) \ | ||
5200 | _LT_AC_TAGVAR(LD, $1) \ | ||
5201 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \ | ||
5202 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \ | ||
5203 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \ | ||
5204 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \ | ||
5205 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \ | ||
5206 | _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \ | ||
5207 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \ | ||
5208 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \ | ||
5209 | _LT_AC_TAGVAR(old_archive_cmds, $1) \ | ||
5210 | _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \ | ||
5211 | _LT_AC_TAGVAR(predep_objects, $1) \ | ||
5212 | _LT_AC_TAGVAR(postdep_objects, $1) \ | ||
5213 | _LT_AC_TAGVAR(predeps, $1) \ | ||
5214 | _LT_AC_TAGVAR(postdeps, $1) \ | ||
5215 | _LT_AC_TAGVAR(compiler_lib_search_path, $1) \ | ||
5216 | _LT_AC_TAGVAR(archive_cmds, $1) \ | ||
5217 | _LT_AC_TAGVAR(archive_expsym_cmds, $1) \ | ||
5218 | _LT_AC_TAGVAR(postinstall_cmds, $1) \ | ||
5219 | _LT_AC_TAGVAR(postuninstall_cmds, $1) \ | ||
5220 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \ | ||
5221 | _LT_AC_TAGVAR(allow_undefined_flag, $1) \ | ||
5222 | _LT_AC_TAGVAR(no_undefined_flag, $1) \ | ||
5223 | _LT_AC_TAGVAR(export_symbols_cmds, $1) \ | ||
5224 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \ | ||
5225 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \ | ||
5226 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \ | ||
5227 | _LT_AC_TAGVAR(hardcode_automatic, $1) \ | ||
5228 | _LT_AC_TAGVAR(module_cmds, $1) \ | ||
5229 | _LT_AC_TAGVAR(module_expsym_cmds, $1) \ | ||
5230 | _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \ | ||
5231 | _LT_AC_TAGVAR(exclude_expsyms, $1) \ | ||
5232 | _LT_AC_TAGVAR(include_expsyms, $1); do | ||
5233 | |||
5234 | case $var in | ||
5235 | _LT_AC_TAGVAR(old_archive_cmds, $1) | \ | ||
5236 | _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \ | ||
5237 | _LT_AC_TAGVAR(archive_cmds, $1) | \ | ||
5238 | _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \ | ||
5239 | _LT_AC_TAGVAR(module_cmds, $1) | \ | ||
5240 | _LT_AC_TAGVAR(module_expsym_cmds, $1) | \ | ||
5241 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \ | ||
5242 | _LT_AC_TAGVAR(export_symbols_cmds, $1) | \ | ||
5243 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
5244 | postinstall_cmds | postuninstall_cmds | \ | ||
5245 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
5246 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
5247 | # Double-quote double-evaled strings. | ||
5248 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
5249 | ;; | ||
5250 | *) | ||
5251 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
5252 | ;; | ||
5253 | esac | ||
5254 | done | ||
5255 | |||
5256 | case $lt_echo in | ||
5257 | *'\[$]0 --fallback-echo"') | ||
5258 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'` | ||
5259 | ;; | ||
5260 | esac | ||
5261 | |||
5262 | ifelse([$1], [], | ||
5263 | [cfgfile="${ofile}T" | ||
5264 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | ||
5265 | $rm -f "$cfgfile" | ||
5266 | AC_MSG_NOTICE([creating $ofile])], | ||
5267 | [cfgfile="$ofile"]) | ||
5268 | |||
5269 | cat <<__EOF__ >> "$cfgfile" | ||
5270 | ifelse([$1], [], | ||
5271 | [#! $SHELL | ||
5272 | |||
5273 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
5274 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | ||
5275 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
5276 | # | ||
5277 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | ||
5278 | # Free Software Foundation, Inc. | ||
5279 | # | ||
5280 | # This file is part of GNU Libtool: | ||
5281 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | ||
5282 | # | ||
5283 | # This program is free software; you can redistribute it and/or modify | ||
5284 | # it under the terms of the GNU General Public License as published by | ||
5285 | # the Free Software Foundation; either version 2 of the License, or | ||
5286 | # (at your option) any later version. | ||
5287 | # | ||
5288 | # This program is distributed in the hope that it will be useful, but | ||
5289 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
5290 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
5291 | # General Public License for more details. | ||
5292 | # | ||
5293 | # You should have received a copy of the GNU General Public License | ||
5294 | # along with this program; if not, write to the Free Software | ||
5295 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | ||
5296 | # | ||
5297 | # As a special exception to the GNU General Public License, if you | ||
5298 | # distribute this file as part of a program that contains a | ||
5299 | # configuration script generated by Autoconf, you may include it under | ||
5300 | # the same distribution terms that you use for the rest of that program. | ||
5301 | |||
5302 | # A sed program that does not truncate output. | ||
5303 | SED=$lt_SED | ||
5304 | |||
5305 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | ||
5306 | Xsed="$SED -e 1s/^X//" | ||
5307 | |||
5308 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
5309 | # if CDPATH is set. | ||
5310 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | ||
5311 | |||
5312 | # The names of the tagged configurations supported by this script. | ||
5313 | available_tags= | ||
5314 | |||
5315 | # ### BEGIN LIBTOOL CONFIG], | ||
5316 | [# ### BEGIN LIBTOOL TAG CONFIG: $tagname]) | ||
5317 | |||
5318 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
5319 | |||
5320 | # Shell to use when invoking shell scripts. | ||
5321 | SHELL=$lt_SHELL | ||
5322 | |||
5323 | # Whether or not to build shared libraries. | ||
5324 | build_libtool_libs=$enable_shared | ||
5325 | |||
5326 | # Whether or not to build static libraries. | ||
5327 | build_old_libs=$enable_static | ||
5328 | |||
5329 | # Whether or not to add -lc for building shared libraries. | ||
5330 | build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1) | ||
5331 | |||
5332 | # Whether or not to disallow shared libs when runtime libs are static | ||
5333 | allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) | ||
5334 | |||
5335 | # Whether or not to optimize for fast installation. | ||
5336 | fast_install=$enable_fast_install | ||
5337 | |||
5338 | # The host system. | ||
5339 | host_alias=$host_alias | ||
5340 | host=$host | ||
5341 | host_os=$host_os | ||
5342 | |||
5343 | # The build system. | ||
5344 | build_alias=$build_alias | ||
5345 | build=$build | ||
5346 | build_os=$build_os | ||
5347 | |||
5348 | # An echo program that does not interpret backslashes. | ||
5349 | echo=$lt_echo | ||
5350 | |||
5351 | # The archiver. | ||
5352 | AR=$lt_AR | ||
5353 | AR_FLAGS=$lt_AR_FLAGS | ||
5354 | |||
5355 | # A C compiler. | ||
5356 | LTCC=$lt_LTCC | ||
5357 | |||
5358 | # LTCC compiler flags. | ||
5359 | LTCFLAGS=$lt_LTCFLAGS | ||
5360 | |||
5361 | # A language-specific compiler. | ||
5362 | CC=$lt_[]_LT_AC_TAGVAR(compiler, $1) | ||
5363 | |||
5364 | # Is the compiler the GNU C compiler? | ||
5365 | with_gcc=$_LT_AC_TAGVAR(GCC, $1) | ||
5366 | |||
5367 | # An ERE matcher. | ||
5368 | EGREP=$lt_EGREP | ||
5369 | |||
5370 | # The linker used to build libraries. | ||
5371 | LD=$lt_[]_LT_AC_TAGVAR(LD, $1) | ||
5372 | |||
5373 | # Whether we need hard or soft links. | ||
5374 | LN_S=$lt_LN_S | ||
5375 | |||
5376 | # A BSD-compatible nm program. | ||
5377 | NM=$lt_NM | ||
5378 | |||
5379 | # A symbol stripping program | ||
5380 | STRIP=$lt_STRIP | ||
5381 | |||
5382 | # Used to examine libraries when file_magic_cmd begins "file" | ||
5383 | MAGIC_CMD=$MAGIC_CMD | ||
5384 | |||
5385 | # Used on cygwin: DLL creation program. | ||
5386 | DLLTOOL="$DLLTOOL" | ||
5387 | |||
5388 | # Used on cygwin: object dumper. | ||
5389 | OBJDUMP="$OBJDUMP" | ||
5390 | |||
5391 | # Used on cygwin: assembler. | ||
5392 | AS="$AS" | ||
5393 | |||
5394 | # The name of the directory that contains temporary libtool files. | ||
5395 | objdir=$objdir | ||
5396 | |||
5397 | # How to create reloadable object files. | ||
5398 | reload_flag=$lt_reload_flag | ||
5399 | reload_cmds=$lt_reload_cmds | ||
5400 | |||
5401 | # How to pass a linker flag through the compiler. | ||
5402 | wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) | ||
5403 | |||
5404 | # Object file suffix (normally "o"). | ||
5405 | objext="$ac_objext" | ||
5406 | |||
5407 | # Old archive suffix (normally "a"). | ||
5408 | libext="$libext" | ||
5409 | |||
5410 | # Shared library suffix (normally ".so"). | ||
5411 | shrext_cmds='$shrext_cmds' | ||
5412 | |||
5413 | # Executable file suffix (normally ""). | ||
5414 | exeext="$exeext" | ||
5415 | |||
5416 | # Additional compiler flags for building library objects. | ||
5417 | pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) | ||
5418 | pic_mode=$pic_mode | ||
5419 | |||
5420 | # What is the maximum length of a command? | ||
5421 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
5422 | |||
5423 | # Does compiler simultaneously support -c and -o options? | ||
5424 | compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) | ||
5425 | |||
5426 | # Must we lock files when doing compilation? | ||
5427 | need_locks=$lt_need_locks | ||
5428 | |||
5429 | # Do we need the lib prefix for modules? | ||
5430 | need_lib_prefix=$need_lib_prefix | ||
5431 | |||
5432 | # Do we need a version for libraries? | ||
5433 | need_version=$need_version | ||
5434 | |||
5435 | # Whether dlopen is supported. | ||
5436 | dlopen_support=$enable_dlopen | ||
5437 | |||
5438 | # Whether dlopen of programs is supported. | ||
5439 | dlopen_self=$enable_dlopen_self | ||
5440 | |||
5441 | # Whether dlopen of statically linked programs is supported. | ||
5442 | dlopen_self_static=$enable_dlopen_self_static | ||
5443 | |||
5444 | # Compiler flag to prevent dynamic linking. | ||
5445 | link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1) | ||
5446 | |||
5447 | # Compiler flag to turn off builtin functions. | ||
5448 | no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) | ||
5449 | |||
5450 | # Compiler flag to allow reflexive dlopens. | ||
5451 | export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1) | ||
5452 | |||
5453 | # Compiler flag to generate shared objects directly from archives. | ||
5454 | whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1) | ||
5455 | |||
5456 | # Compiler flag to generate thread-safe objects. | ||
5457 | thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1) | ||
5458 | |||
5459 | # Library versioning type. | ||
5460 | version_type=$version_type | ||
5461 | |||
5462 | # Format of library name prefix. | ||
5463 | libname_spec=$lt_libname_spec | ||
5464 | |||
5465 | # List of archive names. First name is the real one, the rest are links. | ||
5466 | # The last name is the one that the linker finds with -lNAME. | ||
5467 | library_names_spec=$lt_library_names_spec | ||
5468 | |||
5469 | # The coded name of the library, if different from the real name. | ||
5470 | soname_spec=$lt_soname_spec | ||
5471 | |||
5472 | # Commands used to build and install an old-style archive. | ||
5473 | RANLIB=$lt_RANLIB | ||
5474 | old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1) | ||
5475 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
5476 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
5477 | |||
5478 | # Create an old-style archive from a shared archive. | ||
5479 | old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | ||
5480 | |||
5481 | # Create a temporary old-style archive to link instead of a shared archive. | ||
5482 | old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | ||
5483 | |||
5484 | # Commands used to build and install a shared archive. | ||
5485 | archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1) | ||
5486 | archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1) | ||
5487 | postinstall_cmds=$lt_postinstall_cmds | ||
5488 | postuninstall_cmds=$lt_postuninstall_cmds | ||
5489 | |||
5490 | # Commands used to build a loadable module (assumed same as above if empty) | ||
5491 | module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1) | ||
5492 | module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1) | ||
5493 | |||
5494 | # Commands to strip libraries. | ||
5495 | old_striplib=$lt_old_striplib | ||
5496 | striplib=$lt_striplib | ||
5497 | |||
5498 | # Dependencies to place before the objects being linked to create a | ||
5499 | # shared library. | ||
5500 | predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1) | ||
5501 | |||
5502 | # Dependencies to place after the objects being linked to create a | ||
5503 | # shared library. | ||
5504 | postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1) | ||
5505 | |||
5506 | # Dependencies to place before the objects being linked to create a | ||
5507 | # shared library. | ||
5508 | predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1) | ||
5509 | |||
5510 | # Dependencies to place after the objects being linked to create a | ||
5511 | # shared library. | ||
5512 | postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1) | ||
5513 | |||
5514 | # The library search path used internally by the compiler when linking | ||
5515 | # a shared library. | ||
5516 | compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1) | ||
5517 | |||
5518 | # Method to check whether dependent libraries are shared objects. | ||
5519 | deplibs_check_method=$lt_deplibs_check_method | ||
5520 | |||
5521 | # Command to use when deplibs_check_method == file_magic. | ||
5522 | file_magic_cmd=$lt_file_magic_cmd | ||
5523 | |||
5524 | # Flag that allows shared libraries with undefined symbols to be built. | ||
5525 | allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1) | ||
5526 | |||
5527 | # Flag that forces no undefined symbols. | ||
5528 | no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1) | ||
5529 | |||
5530 | # Commands used to finish a libtool library installation in a directory. | ||
5531 | finish_cmds=$lt_finish_cmds | ||
5532 | |||
5533 | # Same as above, but a single script fragment to be evaled but not shown. | ||
5534 | finish_eval=$lt_finish_eval | ||
5535 | |||
5536 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
5537 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
5538 | |||
5539 | # Transform the output of nm in a proper C declaration | ||
5540 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
5541 | |||
5542 | # Transform the output of nm in a C name address pair | ||
5543 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
5544 | |||
5545 | # This is the shared library runtime path variable. | ||
5546 | runpath_var=$runpath_var | ||
5547 | |||
5548 | # This is the shared library path variable. | ||
5549 | shlibpath_var=$shlibpath_var | ||
5550 | |||
5551 | # Is shlibpath searched before the hard-coded library search path? | ||
5552 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
5553 | |||
5554 | # How to hardcode a shared library path into an executable. | ||
5555 | hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1) | ||
5556 | |||
5557 | # Whether we should hardcode library paths into libraries. | ||
5558 | hardcode_into_libs=$hardcode_into_libs | ||
5559 | |||
5560 | # Flag to hardcode \$libdir into a binary during linking. | ||
5561 | # This must work even if \$libdir does not exist. | ||
5562 | hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) | ||
5563 | |||
5564 | # If ld is used when linking, flag to hardcode \$libdir into | ||
5565 | # a binary during linking. This must work even if \$libdir does | ||
5566 | # not exist. | ||
5567 | hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) | ||
5568 | |||
5569 | # Whether we need a single -rpath flag with a separated argument. | ||
5570 | hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1) | ||
5571 | |||
5572 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
5573 | # resulting binary. | ||
5574 | hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1) | ||
5575 | |||
5576 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
5577 | # resulting binary. | ||
5578 | hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1) | ||
5579 | |||
5580 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
5581 | # the resulting binary. | ||
5582 | hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1) | ||
5583 | |||
5584 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
5585 | # and all subsequent libraries and executables linked against it. | ||
5586 | hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1) | ||
5587 | |||
5588 | # Variables whose values should be saved in libtool wrapper scripts and | ||
5589 | # restored at relink time. | ||
5590 | variables_saved_for_relink="$variables_saved_for_relink" | ||
5591 | |||
5592 | # Whether libtool must link a program against all its dependency libraries. | ||
5593 | link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1) | ||
5594 | |||
5595 | # Compile-time system search path for libraries | ||
5596 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
5597 | |||
5598 | # Run-time system search path for libraries | ||
5599 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
5600 | |||
5601 | # Fix the shell variable \$srcfile for the compiler. | ||
5602 | fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)" | ||
5603 | |||
5604 | # Set to yes if exported symbols are required. | ||
5605 | always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1) | ||
5606 | |||
5607 | # The commands to list exported symbols. | ||
5608 | export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1) | ||
5609 | |||
5610 | # The commands to extract the exported symbol list from a shared archive. | ||
5611 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
5612 | |||
5613 | # Symbols that should not be listed in the preloaded symbols. | ||
5614 | exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1) | ||
5615 | |||
5616 | # Symbols that must always be exported. | ||
5617 | include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1) | ||
5618 | |||
5619 | ifelse([$1],[], | ||
5620 | [# ### END LIBTOOL CONFIG], | ||
5621 | [# ### END LIBTOOL TAG CONFIG: $tagname]) | ||
5622 | |||
5623 | __EOF__ | ||
5624 | |||
5625 | ifelse([$1],[], [ | ||
5626 | case $host_os in | ||
5627 | aix3*) | ||
5628 | cat <<\EOF >> "$cfgfile" | ||
5629 | |||
5630 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
5631 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
5632 | # vanish in a puff of smoke. | ||
5633 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
5634 | COLLECT_NAMES= | ||
5635 | export COLLECT_NAMES | ||
5636 | fi | ||
5637 | EOF | ||
5638 | ;; | ||
5639 | esac | ||
5640 | |||
5641 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
5642 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
5643 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
5644 | # is reportedly fixed, but why not run on old versions too? | ||
5645 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | ||
5646 | |||
5647 | mv -f "$cfgfile" "$ofile" || \ | ||
5648 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
5649 | chmod +x "$ofile" | ||
5650 | ]) | ||
5651 | else | ||
5652 | # If there is no Makefile yet, we rely on a make rule to execute | ||
5653 | # `config.status --recheck' to rerun these tests and create the | ||
5654 | # libtool script then. | ||
5655 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
5656 | if test -f "$ltmain_in"; then | ||
5657 | test -f Makefile && make "$ltmain" | ||
5658 | fi | ||
5659 | fi | ||
5660 | ])# AC_LIBTOOL_CONFIG | ||
5661 | |||
5662 | |||
5663 | # AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME]) | ||
5664 | # ------------------------------------------- | ||
5665 | AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], | ||
5666 | [AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl | ||
5667 | |||
5668 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)= | ||
5669 | |||
5670 | if test "$GCC" = yes; then | ||
5671 | _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin' | ||
5672 | |||
5673 | AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions], | ||
5674 | lt_cv_prog_compiler_rtti_exceptions, | ||
5675 | [-fno-rtti -fno-exceptions], [], | ||
5676 | [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"]) | ||
5677 | fi | ||
5678 | ])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI | ||
5679 | |||
5680 | |||
5681 | # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | ||
5682 | # --------------------------------- | ||
5683 | AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], | ||
5684 | [AC_REQUIRE([AC_CANONICAL_HOST]) | ||
5685 | AC_REQUIRE([AC_PROG_NM]) | ||
5686 | AC_REQUIRE([AC_OBJEXT]) | ||
5687 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
5688 | AC_MSG_CHECKING([command to parse $NM output from $compiler object]) | ||
5689 | AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], | ||
5690 | [ | ||
5691 | # These are sane defaults that work on at least a few old systems. | ||
5692 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
5693 | |||
5694 | # Character class describing NM global symbol codes. | ||
5695 | symcode='[[BCDEGRST]]' | ||
5696 | |||
5697 | # Regexp to match symbols that can be accessed directly from C. | ||
5698 | sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)' | ||
5699 | |||
5700 | # Transform an extracted symbol line into a proper C declaration | ||
5701 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | ||
5702 | |||
5703 | # Transform an extracted symbol line into symbol name and symbol address | ||
5704 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | ||
5705 | |||
5706 | # Define system-specific variables. | ||
5707 | case $host_os in | ||
5708 | aix*) | ||
5709 | symcode='[[BCDT]]' | ||
5710 | ;; | ||
5711 | cygwin* | mingw* | pw32*) | ||
5712 | symcode='[[ABCDGISTW]]' | ||
5713 | ;; | ||
5714 | hpux*) # Its linker distinguishes data from code symbols | ||
5715 | if test "$host_cpu" = ia64; then | ||
5716 | symcode='[[ABCDEGRST]]' | ||
5717 | fi | ||
5718 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
5719 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | ||
5720 | ;; | ||
5721 | linux*) | ||
5722 | if test "$host_cpu" = ia64; then | ||
5723 | symcode='[[ABCDGIRSTW]]' | ||
5724 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
5725 | lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" | ||
5726 | fi | ||
5727 | ;; | ||
5728 | irix* | nonstopux*) | ||
5729 | symcode='[[BCDEGRST]]' | ||
5730 | ;; | ||
5731 | osf*) | ||
5732 | symcode='[[BCDEGQRST]]' | ||
5733 | ;; | ||
5734 | solaris*) | ||
5735 | symcode='[[BDRT]]' | ||
5736 | ;; | ||
5737 | sco3.2v5*) | ||
5738 | symcode='[[DT]]' | ||
5739 | ;; | ||
5740 | sysv4.2uw2*) | ||
5741 | symcode='[[DT]]' | ||
5742 | ;; | ||
5743 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | ||
5744 | symcode='[[ABDT]]' | ||
5745 | ;; | ||
5746 | sysv4) | ||
5747 | symcode='[[DFNSTU]]' | ||
5748 | ;; | ||
5749 | esac | ||
5750 | |||
5751 | # Handle CRLF in mingw tool chain | ||
5752 | opt_cr= | ||
5753 | case $build_os in | ||
5754 | mingw*) | ||
5755 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
5756 | ;; | ||
5757 | esac | ||
5758 | |||
5759 | # If we're using GNU nm, then use its standard symbol codes. | ||
5760 | case `$NM -V 2>&1` in | ||
5761 | *GNU* | *'with BFD'*) | ||
5762 | symcode='[[ABCDGIRSTW]]' ;; | ||
5763 | esac | ||
5764 | |||
5765 | # Try without a prefix undercore, then with it. | ||
5766 | for ac_symprfx in "" "_"; do | ||
5767 | |||
5768 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | ||
5769 | symxfrm="\\1 $ac_symprfx\\2 \\2" | ||
5770 | |||
5771 | # Write the raw and C identifiers. | ||
5772 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | ||
5773 | |||
5774 | # Check to see that the pipe works correctly. | ||
5775 | pipe_works=no | ||
5776 | |||
5777 | rm -f conftest* | ||
5778 | cat > conftest.$ac_ext <<EOF | ||
5779 | #ifdef __cplusplus | ||
5780 | extern "C" { | ||
5781 | #endif | ||
5782 | char nm_test_var; | ||
5783 | void nm_test_func(){} | ||
5784 | #ifdef __cplusplus | ||
5785 | } | ||
5786 | #endif | ||
5787 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
5788 | EOF | ||
5789 | |||
5790 | if AC_TRY_EVAL(ac_compile); then | ||
5791 | # Now try to grab the symbols. | ||
5792 | nlist=conftest.nm | ||
5793 | if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then | ||
5794 | # Try sorting and uniquifying the output. | ||
5795 | if sort "$nlist" | uniq > "$nlist"T; then | ||
5796 | mv -f "$nlist"T "$nlist" | ||
5797 | else | ||
5798 | rm -f "$nlist"T | ||
5799 | fi | ||
5800 | |||
5801 | # Make sure that we snagged all the symbols we need. | ||
5802 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | ||
5803 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | ||
5804 | cat <<EOF > conftest.$ac_ext | ||
5805 | #ifdef __cplusplus | ||
5806 | extern "C" { | ||
5807 | #endif | ||
5808 | |||
5809 | EOF | ||
5810 | # Now generate the symbol file. | ||
5811 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | ||
5812 | |||
5813 | cat <<EOF >> conftest.$ac_ext | ||
5814 | #if defined (__STDC__) && __STDC__ | ||
5815 | # define lt_ptr_t void * | ||
5816 | #else | ||
5817 | # define lt_ptr_t char * | ||
5818 | # define const | ||
5819 | #endif | ||
5820 | |||
5821 | /* The mapping between symbol names and symbols. */ | ||
5822 | const struct { | ||
5823 | const char *name; | ||
5824 | lt_ptr_t address; | ||
5825 | } | ||
5826 | lt_preloaded_symbols[[]] = | ||
5827 | { | ||
5828 | EOF | ||
5829 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | ||
5830 | cat <<\EOF >> conftest.$ac_ext | ||
5831 | {0, (lt_ptr_t) 0} | ||
5832 | }; | ||
5833 | |||
5834 | #ifdef __cplusplus | ||
5835 | } | ||
5836 | #endif | ||
5837 | EOF | ||
5838 | # Now try linking the two files. | ||
5839 | mv conftest.$ac_objext conftstm.$ac_objext | ||
5840 | lt_save_LIBS="$LIBS" | ||
5841 | lt_save_CFLAGS="$CFLAGS" | ||
5842 | LIBS="conftstm.$ac_objext" | ||
5843 | CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)" | ||
5844 | if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then | ||
5845 | pipe_works=yes | ||
5846 | fi | ||
5847 | LIBS="$lt_save_LIBS" | ||
5848 | CFLAGS="$lt_save_CFLAGS" | ||
5849 | else | ||
5850 | echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD | ||
5851 | fi | ||
5852 | else | ||
5853 | echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD | ||
5854 | fi | ||
5855 | else | ||
5856 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD | ||
5857 | fi | ||
5858 | else | ||
5859 | echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD | ||
5860 | cat conftest.$ac_ext >&5 | ||
5861 | fi | ||
5862 | rm -f conftest* conftst* | ||
5863 | |||
5864 | # Do not use the global_symbol_pipe unless it works. | ||
5865 | if test "$pipe_works" = yes; then | ||
5866 | break | ||
5867 | else | ||
5868 | lt_cv_sys_global_symbol_pipe= | ||
5869 | fi | ||
5870 | done | ||
5871 | ]) | ||
5872 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
5873 | lt_cv_sys_global_symbol_to_cdecl= | ||
5874 | fi | ||
5875 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
5876 | AC_MSG_RESULT(failed) | ||
5877 | else | ||
5878 | AC_MSG_RESULT(ok) | ||
5879 | fi | ||
5880 | ]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE | ||
5881 | |||
5882 | |||
5883 | # AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME]) | ||
5884 | # --------------------------------------- | ||
5885 | AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC], | ||
5886 | [_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)= | ||
5887 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | ||
5888 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)= | ||
5889 | |||
5890 | AC_MSG_CHECKING([for $compiler option to produce PIC]) | ||
5891 | ifelse([$1],[CXX],[ | ||
5892 | # C++ specific cases for pic, static, wl, etc. | ||
5893 | if test "$GXX" = yes; then | ||
5894 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5895 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
5896 | |||
5897 | case $host_os in | ||
5898 | aix*) | ||
5899 | # All AIX code is PIC. | ||
5900 | if test "$host_cpu" = ia64; then | ||
5901 | # AIX 5 now supports IA64 processor | ||
5902 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5903 | fi | ||
5904 | ;; | ||
5905 | amigaos*) | ||
5906 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
5907 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
5908 | # like `-m68040'. | ||
5909 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | ||
5910 | ;; | ||
5911 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
5912 | # PIC is the default for these OSes. | ||
5913 | ;; | ||
5914 | mingw* | os2* | pw32*) | ||
5915 | # This hack is so that the source file can tell whether it is being | ||
5916 | # built for inclusion in a dll (and should export symbols for example). | ||
5917 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | ||
5918 | ;; | ||
5919 | darwin* | rhapsody*) | ||
5920 | # PIC is the default on this platform | ||
5921 | # Common symbols not allowed in MH_DYLIB files | ||
5922 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | ||
5923 | ;; | ||
5924 | *djgpp*) | ||
5925 | # DJGPP does not support shared libraries at all | ||
5926 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | ||
5927 | ;; | ||
5928 | interix3*) | ||
5929 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
5930 | # Instead, we relocate shared libraries at runtime. | ||
5931 | ;; | ||
5932 | sysv4*MP*) | ||
5933 | if test -d /usr/nec; then | ||
5934 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | ||
5935 | fi | ||
5936 | ;; | ||
5937 | hpux*) | ||
5938 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
5939 | # not for PA HP-UX. | ||
5940 | case $host_cpu in | ||
5941 | hppa*64*|ia64*) | ||
5942 | ;; | ||
5943 | *) | ||
5944 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
5945 | ;; | ||
5946 | esac | ||
5947 | ;; | ||
5948 | *) | ||
5949 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
5950 | ;; | ||
5951 | esac | ||
5952 | else | ||
5953 | case $host_os in | ||
5954 | aix4* | aix5*) | ||
5955 | # All AIX code is PIC. | ||
5956 | if test "$host_cpu" = ia64; then | ||
5957 | # AIX 5 now supports IA64 processor | ||
5958 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
5959 | else | ||
5960 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | ||
5961 | fi | ||
5962 | ;; | ||
5963 | chorus*) | ||
5964 | case $cc_basename in | ||
5965 | cxch68*) | ||
5966 | # Green Hills C++ Compiler | ||
5967 | # _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | ||
5968 | ;; | ||
5969 | esac | ||
5970 | ;; | ||
5971 | darwin*) | ||
5972 | # PIC is the default on this platform | ||
5973 | # Common symbols not allowed in MH_DYLIB files | ||
5974 | case $cc_basename in | ||
5975 | xlc*) | ||
5976 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' | ||
5977 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
5978 | ;; | ||
5979 | esac | ||
5980 | ;; | ||
5981 | dgux*) | ||
5982 | case $cc_basename in | ||
5983 | ec++*) | ||
5984 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
5985 | ;; | ||
5986 | ghcx*) | ||
5987 | # Green Hills C++ Compiler | ||
5988 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
5989 | ;; | ||
5990 | *) | ||
5991 | ;; | ||
5992 | esac | ||
5993 | ;; | ||
5994 | freebsd* | kfreebsd*-gnu | dragonfly*) | ||
5995 | # FreeBSD uses GNU C++ | ||
5996 | ;; | ||
5997 | hpux9* | hpux10* | hpux11*) | ||
5998 | case $cc_basename in | ||
5999 | CC*) | ||
6000 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6001 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | ||
6002 | if test "$host_cpu" != ia64; then | ||
6003 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | ||
6004 | fi | ||
6005 | ;; | ||
6006 | aCC*) | ||
6007 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6008 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | ||
6009 | case $host_cpu in | ||
6010 | hppa*64*|ia64*) | ||
6011 | # +Z the default | ||
6012 | ;; | ||
6013 | *) | ||
6014 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | ||
6015 | ;; | ||
6016 | esac | ||
6017 | ;; | ||
6018 | *) | ||
6019 | ;; | ||
6020 | esac | ||
6021 | ;; | ||
6022 | interix*) | ||
6023 | # This is c89, which is MS Visual C++ (no shared libs) | ||
6024 | # Anyone wants to do a port? | ||
6025 | ;; | ||
6026 | irix5* | irix6* | nonstopux*) | ||
6027 | case $cc_basename in | ||
6028 | CC*) | ||
6029 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6030 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
6031 | # CC pic flag -KPIC is the default. | ||
6032 | ;; | ||
6033 | *) | ||
6034 | ;; | ||
6035 | esac | ||
6036 | ;; | ||
6037 | linux*) | ||
6038 | case $cc_basename in | ||
6039 | KCC*) | ||
6040 | # KAI C++ Compiler | ||
6041 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | ||
6042 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
6043 | ;; | ||
6044 | icpc* | ecpc*) | ||
6045 | # Intel C++ | ||
6046 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6047 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
6048 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
6049 | ;; | ||
6050 | pgCC*) | ||
6051 | # Portland Group C++ compiler. | ||
6052 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6053 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | ||
6054 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6055 | ;; | ||
6056 | cxx*) | ||
6057 | # Compaq C++ | ||
6058 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
6059 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
6060 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | ||
6061 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
6062 | ;; | ||
6063 | *) | ||
6064 | ;; | ||
6065 | esac | ||
6066 | ;; | ||
6067 | lynxos*) | ||
6068 | ;; | ||
6069 | m88k*) | ||
6070 | ;; | ||
6071 | mvs*) | ||
6072 | case $cc_basename in | ||
6073 | cxx*) | ||
6074 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall' | ||
6075 | ;; | ||
6076 | *) | ||
6077 | ;; | ||
6078 | esac | ||
6079 | ;; | ||
6080 | netbsd*) | ||
6081 | ;; | ||
6082 | osf3* | osf4* | osf5*) | ||
6083 | case $cc_basename in | ||
6084 | KCC*) | ||
6085 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,' | ||
6086 | ;; | ||
6087 | RCC*) | ||
6088 | # Rational C++ 2.4.1 | ||
6089 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
6090 | ;; | ||
6091 | cxx*) | ||
6092 | # Digital/Compaq C++ | ||
6093 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6094 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
6095 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
6096 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | ||
6097 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
6098 | ;; | ||
6099 | *) | ||
6100 | ;; | ||
6101 | esac | ||
6102 | ;; | ||
6103 | psos*) | ||
6104 | ;; | ||
6105 | solaris*) | ||
6106 | case $cc_basename in | ||
6107 | CC*) | ||
6108 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
6109 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
6110 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6111 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | ||
6112 | ;; | ||
6113 | gcx*) | ||
6114 | # Green Hills C++ Compiler | ||
6115 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | ||
6116 | ;; | ||
6117 | *) | ||
6118 | ;; | ||
6119 | esac | ||
6120 | ;; | ||
6121 | sunos4*) | ||
6122 | case $cc_basename in | ||
6123 | CC*) | ||
6124 | # Sun C++ 4.x | ||
6125 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
6126 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6127 | ;; | ||
6128 | lcc*) | ||
6129 | # Lucid | ||
6130 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
6131 | ;; | ||
6132 | *) | ||
6133 | ;; | ||
6134 | esac | ||
6135 | ;; | ||
6136 | tandem*) | ||
6137 | case $cc_basename in | ||
6138 | NCC*) | ||
6139 | # NonStop-UX NCC 3.20 | ||
6140 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
6141 | ;; | ||
6142 | *) | ||
6143 | ;; | ||
6144 | esac | ||
6145 | ;; | ||
6146 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
6147 | case $cc_basename in | ||
6148 | CC*) | ||
6149 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6150 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
6151 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6152 | ;; | ||
6153 | esac | ||
6154 | ;; | ||
6155 | vxworks*) | ||
6156 | ;; | ||
6157 | *) | ||
6158 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
6159 | ;; | ||
6160 | esac | ||
6161 | fi | ||
6162 | ], | ||
6163 | [ | ||
6164 | if test "$GCC" = yes; then | ||
6165 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6166 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
6167 | |||
6168 | case $host_os in | ||
6169 | aix*) | ||
6170 | # All AIX code is PIC. | ||
6171 | if test "$host_cpu" = ia64; then | ||
6172 | # AIX 5 now supports IA64 processor | ||
6173 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6174 | fi | ||
6175 | ;; | ||
6176 | |||
6177 | amigaos*) | ||
6178 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
6179 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
6180 | # like `-m68040'. | ||
6181 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4' | ||
6182 | ;; | ||
6183 | |||
6184 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
6185 | # PIC is the default for these OSes. | ||
6186 | ;; | ||
6187 | |||
6188 | mingw* | pw32* | os2*) | ||
6189 | # This hack is so that the source file can tell whether it is being | ||
6190 | # built for inclusion in a dll (and should export symbols for example). | ||
6191 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | ||
6192 | ;; | ||
6193 | |||
6194 | darwin* | rhapsody*) | ||
6195 | # PIC is the default on this platform | ||
6196 | # Common symbols not allowed in MH_DYLIB files | ||
6197 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common' | ||
6198 | ;; | ||
6199 | |||
6200 | interix3*) | ||
6201 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | ||
6202 | # Instead, we relocate shared libraries at runtime. | ||
6203 | ;; | ||
6204 | |||
6205 | msdosdjgpp*) | ||
6206 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
6207 | # on systems that don't support them. | ||
6208 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
6209 | enable_shared=no | ||
6210 | ;; | ||
6211 | |||
6212 | sysv4*MP*) | ||
6213 | if test -d /usr/nec; then | ||
6214 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic | ||
6215 | fi | ||
6216 | ;; | ||
6217 | |||
6218 | hpux*) | ||
6219 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
6220 | # not for PA HP-UX. | ||
6221 | case $host_cpu in | ||
6222 | hppa*64*|ia64*) | ||
6223 | # +Z the default | ||
6224 | ;; | ||
6225 | *) | ||
6226 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
6227 | ;; | ||
6228 | esac | ||
6229 | ;; | ||
6230 | |||
6231 | *) | ||
6232 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC' | ||
6233 | ;; | ||
6234 | esac | ||
6235 | else | ||
6236 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
6237 | case $host_os in | ||
6238 | aix*) | ||
6239 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6240 | if test "$host_cpu" = ia64; then | ||
6241 | # AIX 5 now supports IA64 processor | ||
6242 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6243 | else | ||
6244 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp' | ||
6245 | fi | ||
6246 | ;; | ||
6247 | darwin*) | ||
6248 | # PIC is the default on this platform | ||
6249 | # Common symbols not allowed in MH_DYLIB files | ||
6250 | case $cc_basename in | ||
6251 | xlc*) | ||
6252 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon' | ||
6253 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6254 | ;; | ||
6255 | esac | ||
6256 | ;; | ||
6257 | |||
6258 | mingw* | pw32* | os2*) | ||
6259 | # This hack is so that the source file can tell whether it is being | ||
6260 | # built for inclusion in a dll (and should export symbols for example). | ||
6261 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT' | ||
6262 | ;; | ||
6263 | |||
6264 | hpux9* | hpux10* | hpux11*) | ||
6265 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6266 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
6267 | # not for PA HP-UX. | ||
6268 | case $host_cpu in | ||
6269 | hppa*64*|ia64*) | ||
6270 | # +Z the default | ||
6271 | ;; | ||
6272 | *) | ||
6273 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z' | ||
6274 | ;; | ||
6275 | esac | ||
6276 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
6277 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive' | ||
6278 | ;; | ||
6279 | |||
6280 | irix5* | irix6* | nonstopux*) | ||
6281 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6282 | # PIC (with -KPIC) is the default. | ||
6283 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
6284 | ;; | ||
6285 | |||
6286 | newsos6) | ||
6287 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
6288 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6289 | ;; | ||
6290 | |||
6291 | linux*) | ||
6292 | case $cc_basename in | ||
6293 | icc* | ecc*) | ||
6294 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6295 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
6296 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static' | ||
6297 | ;; | ||
6298 | pgcc* | pgf77* | pgf90* | pgf95*) | ||
6299 | # Portland Group compilers (*not* the Pentium gcc compiler, | ||
6300 | # which looks to be a dead project) | ||
6301 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6302 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic' | ||
6303 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6304 | ;; | ||
6305 | ccc*) | ||
6306 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6307 | # All Alpha code is PIC. | ||
6308 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
6309 | ;; | ||
6310 | esac | ||
6311 | ;; | ||
6312 | |||
6313 | osf3* | osf4* | osf5*) | ||
6314 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6315 | # All OSF/1 code is PIC. | ||
6316 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared' | ||
6317 | ;; | ||
6318 | |||
6319 | solaris*) | ||
6320 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
6321 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6322 | case $cc_basename in | ||
6323 | f77* | f90* | f95*) | ||
6324 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';; | ||
6325 | *) | ||
6326 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';; | ||
6327 | esac | ||
6328 | ;; | ||
6329 | |||
6330 | sunos4*) | ||
6331 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ' | ||
6332 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC' | ||
6333 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6334 | ;; | ||
6335 | |||
6336 | sysv4 | sysv4.2uw2* | sysv4.3*) | ||
6337 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6338 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
6339 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6340 | ;; | ||
6341 | |||
6342 | sysv4*MP*) | ||
6343 | if test -d /usr/nec ;then | ||
6344 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic' | ||
6345 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6346 | fi | ||
6347 | ;; | ||
6348 | |||
6349 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | ||
6350 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6351 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' | ||
6352 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6353 | ;; | ||
6354 | |||
6355 | unicos*) | ||
6356 | _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,' | ||
6357 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
6358 | ;; | ||
6359 | |||
6360 | uts4*) | ||
6361 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic' | ||
6362 | _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic' | ||
6363 | ;; | ||
6364 | |||
6365 | *) | ||
6366 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no | ||
6367 | ;; | ||
6368 | esac | ||
6369 | fi | ||
6370 | ]) | ||
6371 | AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)]) | ||
6372 | |||
6373 | # | ||
6374 | # Check to make sure the PIC flag actually works. | ||
6375 | # | ||
6376 | if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then | ||
6377 | AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works], | ||
6378 | _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1), | ||
6379 | [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [], | ||
6380 | [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in | ||
6381 | "" | " "*) ;; | ||
6382 | *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;; | ||
6383 | esac], | ||
6384 | [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | ||
6385 | _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no]) | ||
6386 | fi | ||
6387 | case $host_os in | ||
6388 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
6389 | *djgpp*) | ||
6390 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)= | ||
6391 | ;; | ||
6392 | *) | ||
6393 | _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])" | ||
6394 | ;; | ||
6395 | esac | ||
6396 | |||
6397 | # | ||
6398 | # Check to make sure the static flag actually works. | ||
6399 | # | ||
6400 | wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_AC_TAGVAR(lt_prog_compiler_static, $1)\" | ||
6401 | AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works], | ||
6402 | _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1), | ||
6403 | $lt_tmp_static_flag, | ||
6404 | [], | ||
6405 | [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=]) | ||
6406 | ]) | ||
6407 | |||
6408 | |||
6409 | # AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME]) | ||
6410 | # ------------------------------------ | ||
6411 | # See if the linker supports building shared libraries. | ||
6412 | AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS], | ||
6413 | [AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries]) | ||
6414 | ifelse([$1],[CXX],[ | ||
6415 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
6416 | case $host_os in | ||
6417 | aix4* | aix5*) | ||
6418 | # If we're using GNU nm, then we don't want the "-C" option. | ||
6419 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
6420 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | ||
6421 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | ||
6422 | else | ||
6423 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | ||
6424 | fi | ||
6425 | ;; | ||
6426 | pw32*) | ||
6427 | _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds" | ||
6428 | ;; | ||
6429 | cygwin* | mingw*) | ||
6430 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([[^ ]]*\) [[^ ]]*/\1 DATA/;/^I /d;/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' | ||
6431 | ;; | ||
6432 | *) | ||
6433 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
6434 | ;; | ||
6435 | esac | ||
6436 | ],[ | ||
6437 | runpath_var= | ||
6438 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= | ||
6439 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no | ||
6440 | _LT_AC_TAGVAR(archive_cmds, $1)= | ||
6441 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)= | ||
6442 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)= | ||
6443 | _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)= | ||
6444 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | ||
6445 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
6446 | _LT_AC_TAGVAR(thread_safe_flag_spec, $1)= | ||
6447 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
6448 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)= | ||
6449 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
6450 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
6451 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=no | ||
6452 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
6453 | _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown | ||
6454 | _LT_AC_TAGVAR(hardcode_automatic, $1)=no | ||
6455 | _LT_AC_TAGVAR(module_cmds, $1)= | ||
6456 | _LT_AC_TAGVAR(module_expsym_cmds, $1)= | ||
6457 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
6458 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
6459 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
6460 | # included in the symbol list | ||
6461 | _LT_AC_TAGVAR(include_expsyms, $1)= | ||
6462 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
6463 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
6464 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
6465 | # as well as any symbol that contains `d'. | ||
6466 | _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_" | ||
6467 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
6468 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
6469 | # the symbol is explicitly referenced. Since portable code cannot | ||
6470 | # rely on this symbol name, it's probably fine to never include it in | ||
6471 | # preloaded symbol tables. | ||
6472 | extract_expsyms_cmds= | ||
6473 | # Just being paranoid about ensuring that cc_basename is set. | ||
6474 | _LT_CC_BASENAME([$compiler]) | ||
6475 | case $host_os in | ||
6476 | cygwin* | mingw* | pw32*) | ||
6477 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
6478 | # When not using gcc, we currently assume that we are using | ||
6479 | # Microsoft Visual C++. | ||
6480 | if test "$GCC" != yes; then | ||
6481 | with_gnu_ld=no | ||
6482 | fi | ||
6483 | ;; | ||
6484 | interix*) | ||
6485 | # we just hope/assume this is gcc and not c89 (= MSVC++) | ||
6486 | with_gnu_ld=yes | ||
6487 | ;; | ||
6488 | openbsd*) | ||
6489 | with_gnu_ld=no | ||
6490 | ;; | ||
6491 | esac | ||
6492 | |||
6493 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes | ||
6494 | if test "$with_gnu_ld" = yes; then | ||
6495 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
6496 | wlarc='${wl}' | ||
6497 | |||
6498 | # Set some defaults for GNU ld with shared library support. These | ||
6499 | # are reset later if shared libraries are not supported. Putting them | ||
6500 | # here allows them to be overridden if necessary. | ||
6501 | runpath_var=LD_RUN_PATH | ||
6502 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir' | ||
6503 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic' | ||
6504 | # ancient GNU ld didn't support --whole-archive et. al. | ||
6505 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | ||
6506 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
6507 | else | ||
6508 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
6509 | fi | ||
6510 | supports_anon_versioning=no | ||
6511 | case `$LD -v 2>/dev/null` in | ||
6512 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
6513 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
6514 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
6515 | *\ 2.11.*) ;; # other 2.11 versions | ||
6516 | *) supports_anon_versioning=yes ;; | ||
6517 | esac | ||
6518 | |||
6519 | # See if GNU ld supports shared libraries. | ||
6520 | case $host_os in | ||
6521 | aix3* | aix4* | aix5*) | ||
6522 | # On AIX/PPC, the GNU linker is very broken | ||
6523 | if test "$host_cpu" != ia64; then | ||
6524 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6525 | cat <<EOF 1>&2 | ||
6526 | |||
6527 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
6528 | *** to be unable to reliably create shared libraries on AIX. | ||
6529 | *** Therefore, libtool is disabling shared libraries support. If you | ||
6530 | *** really care for shared libraries, you may want to modify your PATH | ||
6531 | *** so that a non-GNU linker is found, and then restart. | ||
6532 | |||
6533 | EOF | ||
6534 | fi | ||
6535 | ;; | ||
6536 | |||
6537 | amigaos*) | ||
6538 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | ||
6539 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
6540 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
6541 | |||
6542 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | ||
6543 | # that the semantics of dynamic libraries on AmigaOS, at least up | ||
6544 | # to version 4, is to share data among multiple programs linked | ||
6545 | # with the same dynamic library. Since this doesn't match the | ||
6546 | # behavior of shared libraries on other platforms, we can't use | ||
6547 | # them. | ||
6548 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6549 | ;; | ||
6550 | |||
6551 | beos*) | ||
6552 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
6553 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
6554 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
6555 | # support --undefined. This deserves some investigation. FIXME | ||
6556 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
6557 | else | ||
6558 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6559 | fi | ||
6560 | ;; | ||
6561 | |||
6562 | cygwin* | mingw* | pw32*) | ||
6563 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless, | ||
6564 | # as there is no search path for DLLs. | ||
6565 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
6566 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
6567 | _LT_AC_TAGVAR(always_export_symbols, $1)=no | ||
6568 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
6569 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols' | ||
6570 | |||
6571 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
6572 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
6573 | # If the export-symbols file already is a .def file (1st line | ||
6574 | # is EXPORTS), use it as is; otherwise, prepend... | ||
6575 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
6576 | cp $export_symbols $output_objdir/$soname.def; | ||
6577 | else | ||
6578 | echo EXPORTS > $output_objdir/$soname.def; | ||
6579 | cat $export_symbols >> $output_objdir/$soname.def; | ||
6580 | fi~ | ||
6581 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | ||
6582 | else | ||
6583 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6584 | fi | ||
6585 | ;; | ||
6586 | |||
6587 | interix3*) | ||
6588 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
6589 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6590 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
6591 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
6592 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | ||
6593 | # Instead, shared libraries are loaded at an image base (0x10000000 by | ||
6594 | # default) and relocated if they conflict, which is a slow very memory | ||
6595 | # consuming and fragmenting process. To avoid this, we pick a random, | ||
6596 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | ||
6597 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | ||
6598 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
6599 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | ||
6600 | ;; | ||
6601 | |||
6602 | linux*) | ||
6603 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
6604 | tmp_addflag= | ||
6605 | case $cc_basename,$host_cpu in | ||
6606 | pgcc*) # Portland Group C compiler | ||
6607 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | ||
6608 | tmp_addflag=' $pic_flag' | ||
6609 | ;; | ||
6610 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | ||
6611 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | ||
6612 | tmp_addflag=' $pic_flag -Mnomain' ;; | ||
6613 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | ||
6614 | tmp_addflag=' -i_dynamic' ;; | ||
6615 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | ||
6616 | tmp_addflag=' -i_dynamic -nofor_main' ;; | ||
6617 | ifc* | ifort*) # Intel Fortran compiler | ||
6618 | tmp_addflag=' -nofor_main' ;; | ||
6619 | esac | ||
6620 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
6621 | |||
6622 | if test $supports_anon_versioning = yes; then | ||
6623 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~ | ||
6624 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
6625 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
6626 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
6627 | fi | ||
6628 | else | ||
6629 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6630 | fi | ||
6631 | ;; | ||
6632 | |||
6633 | netbsd*) | ||
6634 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
6635 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
6636 | wlarc= | ||
6637 | else | ||
6638 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
6639 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
6640 | fi | ||
6641 | ;; | ||
6642 | |||
6643 | solaris*) | ||
6644 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | ||
6645 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6646 | cat <<EOF 1>&2 | ||
6647 | |||
6648 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
6649 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
6650 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
6651 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
6652 | *** your PATH or compiler configuration so that the native linker is | ||
6653 | *** used, and then restart. | ||
6654 | |||
6655 | EOF | ||
6656 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
6657 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
6658 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
6659 | else | ||
6660 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6661 | fi | ||
6662 | ;; | ||
6663 | |||
6664 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | ||
6665 | case `$LD -v 2>&1` in | ||
6666 | *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*) | ||
6667 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6668 | cat <<_LT_EOF 1>&2 | ||
6669 | |||
6670 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | ||
6671 | *** reliably create shared libraries on SCO systems. Therefore, libtool | ||
6672 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
6673 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | ||
6674 | *** your PATH or compiler configuration so that the native linker is | ||
6675 | *** used, and then restart. | ||
6676 | |||
6677 | _LT_EOF | ||
6678 | ;; | ||
6679 | *) | ||
6680 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
6681 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | ||
6682 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | ||
6683 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | ||
6684 | else | ||
6685 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6686 | fi | ||
6687 | ;; | ||
6688 | esac | ||
6689 | ;; | ||
6690 | |||
6691 | sunos4*) | ||
6692 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
6693 | wlarc= | ||
6694 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6695 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6696 | ;; | ||
6697 | |||
6698 | *) | ||
6699 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
6700 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
6701 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
6702 | else | ||
6703 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6704 | fi | ||
6705 | ;; | ||
6706 | esac | ||
6707 | |||
6708 | if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then | ||
6709 | runpath_var= | ||
6710 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)= | ||
6711 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)= | ||
6712 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)= | ||
6713 | fi | ||
6714 | else | ||
6715 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
6716 | case $host_os in | ||
6717 | aix3*) | ||
6718 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
6719 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes | ||
6720 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | ||
6721 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
6722 | # are no directories specified by -L. | ||
6723 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
6724 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | ||
6725 | # Neither direct hardcoding nor static linking is supported with a | ||
6726 | # broken collect2. | ||
6727 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | ||
6728 | fi | ||
6729 | ;; | ||
6730 | |||
6731 | aix4* | aix5*) | ||
6732 | if test "$host_cpu" = ia64; then | ||
6733 | # On IA64, the linker does run time linking by default, so we don't | ||
6734 | # have to do anything special. | ||
6735 | aix_use_runtimelinking=no | ||
6736 | exp_sym_flag='-Bexport' | ||
6737 | no_entry_flag="" | ||
6738 | else | ||
6739 | # If we're using GNU nm, then we don't want the "-C" option. | ||
6740 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
6741 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | ||
6742 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | ||
6743 | else | ||
6744 | _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols' | ||
6745 | fi | ||
6746 | aix_use_runtimelinking=no | ||
6747 | |||
6748 | # Test if we are trying to use run time linking or normal | ||
6749 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
6750 | # need to do runtime linking. | ||
6751 | case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*) | ||
6752 | for ld_flag in $LDFLAGS; do | ||
6753 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
6754 | aix_use_runtimelinking=yes | ||
6755 | break | ||
6756 | fi | ||
6757 | done | ||
6758 | ;; | ||
6759 | esac | ||
6760 | |||
6761 | exp_sym_flag='-bexport' | ||
6762 | no_entry_flag='-bnoentry' | ||
6763 | fi | ||
6764 | |||
6765 | # When large executables or shared objects are built, AIX ld can | ||
6766 | # have problems creating the table of contents. If linking a library | ||
6767 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
6768 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
6769 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
6770 | |||
6771 | _LT_AC_TAGVAR(archive_cmds, $1)='' | ||
6772 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6773 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
6774 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
6775 | |||
6776 | if test "$GCC" = yes; then | ||
6777 | case $host_os in aix4.[[012]]|aix4.[[012]].*) | ||
6778 | # We only want to do this on AIX 4.2 and lower, the check | ||
6779 | # below for broken collect2 doesn't work under 4.3+ | ||
6780 | collect2name=`${CC} -print-prog-name=collect2` | ||
6781 | if test -f "$collect2name" && \ | ||
6782 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
6783 | then | ||
6784 | # We have reworked collect2 | ||
6785 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6786 | else | ||
6787 | # We have old collect2 | ||
6788 | _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported | ||
6789 | # It fails to find uninstalled libraries when the uninstalled | ||
6790 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
6791 | # to unsupported forces relinking | ||
6792 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
6793 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
6794 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)= | ||
6795 | fi | ||
6796 | ;; | ||
6797 | esac | ||
6798 | shared_flag='-shared' | ||
6799 | if test "$aix_use_runtimelinking" = yes; then | ||
6800 | shared_flag="$shared_flag "'${wl}-G' | ||
6801 | fi | ||
6802 | else | ||
6803 | # not using gcc | ||
6804 | if test "$host_cpu" = ia64; then | ||
6805 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
6806 | # chokes on -Wl,-G. The following line is correct: | ||
6807 | shared_flag='-G' | ||
6808 | else | ||
6809 | if test "$aix_use_runtimelinking" = yes; then | ||
6810 | shared_flag='${wl}-G' | ||
6811 | else | ||
6812 | shared_flag='${wl}-bM:SRE' | ||
6813 | fi | ||
6814 | fi | ||
6815 | fi | ||
6816 | |||
6817 | # It seems that -bexpall does not export symbols beginning with | ||
6818 | # underscore (_), so it is better to generate a list of symbols to export. | ||
6819 | _LT_AC_TAGVAR(always_export_symbols, $1)=yes | ||
6820 | if test "$aix_use_runtimelinking" = yes; then | ||
6821 | # Warning - without using the other runtime loading flags (-brtl), | ||
6822 | # -berok will link without error, but may produce a broken library. | ||
6823 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok' | ||
6824 | # Determine the default libpath from the value encoded in an empty executable. | ||
6825 | _LT_AC_SYS_LIBPATH_AIX | ||
6826 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
6827 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
6828 | else | ||
6829 | if test "$host_cpu" = ia64; then | ||
6830 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib' | ||
6831 | _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs" | ||
6832 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | ||
6833 | else | ||
6834 | # Determine the default libpath from the value encoded in an empty executable. | ||
6835 | _LT_AC_SYS_LIBPATH_AIX | ||
6836 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
6837 | # Warning - without using the other run time loading flags, | ||
6838 | # -berok will link without error, but may produce a broken library. | ||
6839 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok' | ||
6840 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok' | ||
6841 | # Exported symbols can be pulled into shared objects from archives | ||
6842 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='$convenience' | ||
6843 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | ||
6844 | # This is similar to how AIX traditionally builds its shared libraries. | ||
6845 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
6846 | fi | ||
6847 | fi | ||
6848 | ;; | ||
6849 | |||
6850 | amigaos*) | ||
6851 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | ||
6852 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
6853 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
6854 | # see comment about different semantics on the GNU ld section | ||
6855 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6856 | ;; | ||
6857 | |||
6858 | bsdi[[45]]*) | ||
6859 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic | ||
6860 | ;; | ||
6861 | |||
6862 | cygwin* | mingw* | pw32*) | ||
6863 | # When not using gcc, we currently assume that we are using | ||
6864 | # Microsoft Visual C++. | ||
6865 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
6866 | # no search path for DLLs. | ||
6867 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' | ||
6868 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
6869 | # Tell ltmain to make .lib files, not .a files. | ||
6870 | libext=lib | ||
6871 | # Tell ltmain to make .dll files, not .so files. | ||
6872 | shrext_cmds=".dll" | ||
6873 | # FIXME: Setting linknames here is a bad hack. | ||
6874 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
6875 | # The linker will automatically build a .lib file if we build a DLL. | ||
6876 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true' | ||
6877 | # FIXME: Should let the user specify the lib program. | ||
6878 | _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs' | ||
6879 | _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`' | ||
6880 | _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes | ||
6881 | ;; | ||
6882 | |||
6883 | darwin* | rhapsody*) | ||
6884 | case $host_os in | ||
6885 | rhapsody* | darwin1.[[012]]) | ||
6886 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress' | ||
6887 | ;; | ||
6888 | *) # Darwin 1.3 on | ||
6889 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
6890 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
6891 | else | ||
6892 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
6893 | 10.[[012]]) | ||
6894 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | ||
6895 | ;; | ||
6896 | 10.*) | ||
6897 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup' | ||
6898 | ;; | ||
6899 | esac | ||
6900 | fi | ||
6901 | ;; | ||
6902 | esac | ||
6903 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
6904 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
6905 | _LT_AC_TAGVAR(hardcode_automatic, $1)=yes | ||
6906 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported | ||
6907 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='' | ||
6908 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
6909 | if test "$GCC" = yes ; then | ||
6910 | output_verbose_link_cmd='echo' | ||
6911 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
6912 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
6913 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
6914 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
6915 | _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
6916 | else | ||
6917 | case $cc_basename in | ||
6918 | xlc*) | ||
6919 | output_verbose_link_cmd='echo' | ||
6920 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | ||
6921 | _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
6922 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | ||
6923 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
6924 | _LT_AC_TAGVAR(module_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
6925 | ;; | ||
6926 | *) | ||
6927 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6928 | ;; | ||
6929 | esac | ||
6930 | fi | ||
6931 | ;; | ||
6932 | |||
6933 | dgux*) | ||
6934 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
6935 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
6936 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6937 | ;; | ||
6938 | |||
6939 | freebsd1*) | ||
6940 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
6941 | ;; | ||
6942 | |||
6943 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
6944 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
6945 | # does not break anything, and helps significantly (at the cost of a little | ||
6946 | # extra space). | ||
6947 | freebsd2.2*) | ||
6948 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
6949 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
6950 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6951 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6952 | ;; | ||
6953 | |||
6954 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
6955 | freebsd2*) | ||
6956 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
6957 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6958 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
6959 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6960 | ;; | ||
6961 | |||
6962 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
6963 | freebsd* | kfreebsd*-gnu | dragonfly*) | ||
6964 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
6965 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
6966 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6967 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
6968 | ;; | ||
6969 | |||
6970 | hpux9*) | ||
6971 | if test "$GCC" = yes; then | ||
6972 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
6973 | else | ||
6974 | _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
6975 | fi | ||
6976 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
6977 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
6978 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6979 | |||
6980 | # hardcode_minus_L: Not really in the search PATH, | ||
6981 | # but as the default location of the library. | ||
6982 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
6983 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
6984 | ;; | ||
6985 | |||
6986 | hpux10*) | ||
6987 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
6988 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
6989 | else | ||
6990 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
6991 | fi | ||
6992 | if test "$with_gnu_ld" = no; then | ||
6993 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
6994 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
6995 | |||
6996 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
6997 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
6998 | |||
6999 | # hardcode_minus_L: Not really in the search PATH, | ||
7000 | # but as the default location of the library. | ||
7001 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
7002 | fi | ||
7003 | ;; | ||
7004 | |||
7005 | hpux11*) | ||
7006 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
7007 | case $host_cpu in | ||
7008 | hppa*64*) | ||
7009 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7010 | ;; | ||
7011 | ia64*) | ||
7012 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
7013 | ;; | ||
7014 | *) | ||
7015 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
7016 | ;; | ||
7017 | esac | ||
7018 | else | ||
7019 | case $host_cpu in | ||
7020 | hppa*64*) | ||
7021 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7022 | ;; | ||
7023 | ia64*) | ||
7024 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | ||
7025 | ;; | ||
7026 | *) | ||
7027 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
7028 | ;; | ||
7029 | esac | ||
7030 | fi | ||
7031 | if test "$with_gnu_ld" = no; then | ||
7032 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir' | ||
7033 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
7034 | |||
7035 | case $host_cpu in | ||
7036 | hppa*64*|ia64*) | ||
7037 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir' | ||
7038 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
7039 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7040 | ;; | ||
7041 | *) | ||
7042 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
7043 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
7044 | |||
7045 | # hardcode_minus_L: Not really in the search PATH, | ||
7046 | # but as the default location of the library. | ||
7047 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
7048 | ;; | ||
7049 | esac | ||
7050 | fi | ||
7051 | ;; | ||
7052 | |||
7053 | irix5* | irix6* | nonstopux*) | ||
7054 | if test "$GCC" = yes; then | ||
7055 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
7056 | else | ||
7057 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
7058 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir' | ||
7059 | fi | ||
7060 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
7061 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
7062 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
7063 | ;; | ||
7064 | |||
7065 | netbsd*) | ||
7066 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
7067 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
7068 | else | ||
7069 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
7070 | fi | ||
7071 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
7072 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
7073 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7074 | ;; | ||
7075 | |||
7076 | newsos6) | ||
7077 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7078 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
7079 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
7080 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
7081 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7082 | ;; | ||
7083 | |||
7084 | openbsd*) | ||
7085 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
7086 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7087 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
7088 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
7089 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | ||
7090 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
7091 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E' | ||
7092 | else | ||
7093 | case $host_os in | ||
7094 | openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*) | ||
7095 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
7096 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
7097 | ;; | ||
7098 | *) | ||
7099 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
7100 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir' | ||
7101 | ;; | ||
7102 | esac | ||
7103 | fi | ||
7104 | ;; | ||
7105 | |||
7106 | os2*) | ||
7107 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
7108 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
7109 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported | ||
7110 | _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
7111 | _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
7112 | ;; | ||
7113 | |||
7114 | osf3*) | ||
7115 | if test "$GCC" = yes; then | ||
7116 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
7117 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
7118 | else | ||
7119 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | ||
7120 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
7121 | fi | ||
7122 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
7123 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
7124 | ;; | ||
7125 | |||
7126 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
7127 | if test "$GCC" = yes; then | ||
7128 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*' | ||
7129 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
7130 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir' | ||
7131 | else | ||
7132 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*' | ||
7133 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
7134 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | ||
7135 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | ||
7136 | |||
7137 | # Both c and cxx compiler support -rpath directly | ||
7138 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir' | ||
7139 | fi | ||
7140 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=: | ||
7141 | ;; | ||
7142 | |||
7143 | solaris*) | ||
7144 | _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text' | ||
7145 | if test "$GCC" = yes; then | ||
7146 | wlarc='${wl}' | ||
7147 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7148 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
7149 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | ||
7150 | else | ||
7151 | wlarc='' | ||
7152 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7153 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
7154 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
7155 | fi | ||
7156 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' | ||
7157 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7158 | case $host_os in | ||
7159 | solaris2.[[0-5]] | solaris2.[[0-5]].*) ;; | ||
7160 | *) | ||
7161 | # The compiler driver will combine linker options so we | ||
7162 | # cannot just pass the convience library names through | ||
7163 | # without $wl, iff we do not link with $LD. | ||
7164 | # Luckily, gcc supports the same syntax we need for Sun Studio. | ||
7165 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
7166 | case $wlarc in | ||
7167 | '') | ||
7168 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;; | ||
7169 | *) | ||
7170 | _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | ||
7171 | esac ;; | ||
7172 | esac | ||
7173 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
7174 | ;; | ||
7175 | |||
7176 | sunos4*) | ||
7177 | if test "x$host_vendor" = xsequent; then | ||
7178 | # Use $CC to link under sequent, because it throws in some extra .o | ||
7179 | # files that make .init and .fini sections work. | ||
7180 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7181 | else | ||
7182 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
7183 | fi | ||
7184 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
7185 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes | ||
7186 | _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes | ||
7187 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7188 | ;; | ||
7189 | |||
7190 | sysv4) | ||
7191 | case $host_vendor in | ||
7192 | sni) | ||
7193 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7194 | _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true??? | ||
7195 | ;; | ||
7196 | siemens) | ||
7197 | ## LD is ld it makes a PLAMLIB | ||
7198 | ## CC just makes a GrossModule. | ||
7199 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
7200 | _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs' | ||
7201 | _LT_AC_TAGVAR(hardcode_direct, $1)=no | ||
7202 | ;; | ||
7203 | motorola) | ||
7204 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7205 | _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie | ||
7206 | ;; | ||
7207 | esac | ||
7208 | runpath_var='LD_RUN_PATH' | ||
7209 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7210 | ;; | ||
7211 | |||
7212 | sysv4.3*) | ||
7213 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7214 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7215 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport' | ||
7216 | ;; | ||
7217 | |||
7218 | sysv4*MP*) | ||
7219 | if test -d /usr/nec; then | ||
7220 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7221 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7222 | runpath_var=LD_RUN_PATH | ||
7223 | hardcode_runpath_var=yes | ||
7224 | _LT_AC_TAGVAR(ld_shlibs, $1)=yes | ||
7225 | fi | ||
7226 | ;; | ||
7227 | |||
7228 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7*) | ||
7229 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | ||
7230 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
7231 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7232 | runpath_var='LD_RUN_PATH' | ||
7233 | |||
7234 | if test "$GCC" = yes; then | ||
7235 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7236 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7237 | else | ||
7238 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7239 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7240 | fi | ||
7241 | ;; | ||
7242 | |||
7243 | sysv5* | sco3.2v5* | sco5v6*) | ||
7244 | # Note: We can NOT use -z defs as we might desire, because we do not | ||
7245 | # link with -lc, and that would cause any symbols used from libc to | ||
7246 | # always be unresolved, which means just about no library would | ||
7247 | # ever link correctly. If we're not using GNU ld we use -z text | ||
7248 | # though, which does catch some bad symbols but isn't as heavy-handed | ||
7249 | # as -z defs. | ||
7250 | _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z,text' | ||
7251 | _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs' | ||
7252 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
7253 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7254 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | ||
7255 | _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':' | ||
7256 | _LT_AC_TAGVAR(link_all_deplibs, $1)=yes | ||
7257 | _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport' | ||
7258 | runpath_var='LD_RUN_PATH' | ||
7259 | |||
7260 | if test "$GCC" = yes; then | ||
7261 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7262 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7263 | else | ||
7264 | _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7265 | _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7266 | fi | ||
7267 | ;; | ||
7268 | |||
7269 | uts4*) | ||
7270 | _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7271 | _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir' | ||
7272 | _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no | ||
7273 | ;; | ||
7274 | |||
7275 | *) | ||
7276 | _LT_AC_TAGVAR(ld_shlibs, $1)=no | ||
7277 | ;; | ||
7278 | esac | ||
555 | fi | 7279 | fi |
556 | ]) | 7280 | ]) |
7281 | AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)]) | ||
7282 | test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no | ||
7283 | |||
7284 | # | ||
7285 | # Do we need to explicitly link libc? | ||
7286 | # | ||
7287 | case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in | ||
7288 | x|xyes) | ||
7289 | # Assume -lc should be added | ||
7290 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | ||
557 | 7291 | ||
558 | dnl old names | 7292 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
559 | AC_DEFUN(AM_PROG_LIBTOOL, [indir([AC_PROG_LIBTOOL])])dnl | 7293 | case $_LT_AC_TAGVAR(archive_cmds, $1) in |
560 | AC_DEFUN(AM_ENABLE_SHARED, [indir([AC_ENABLE_SHARED], $@)])dnl | 7294 | *'~'*) |
561 | AC_DEFUN(AM_ENABLE_STATIC, [indir([AC_ENABLE_STATIC], $@)])dnl | 7295 | # FIXME: we may have to deal with multi-command sequences. |
562 | AC_DEFUN(AM_DISABLE_SHARED, [indir([AC_DISABLE_SHARED], $@)])dnl | 7296 | ;; |
563 | AC_DEFUN(AM_DISABLE_STATIC, [indir([AC_DISABLE_STATIC], $@)])dnl | 7297 | '$CC '*) |
564 | AC_DEFUN(AM_PROG_LD, [indir([AC_PROG_LD])])dnl | 7298 | # Test whether the compiler implicitly links with -lc since on some |
565 | AC_DEFUN(AM_PROG_NM, [indir([AC_PROG_NM])])dnl | 7299 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
7300 | # to ld, don't add -lc before -lgcc. | ||
7301 | AC_MSG_CHECKING([whether -lc should be explicitly linked in]) | ||
7302 | $rm conftest* | ||
7303 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
566 | 7304 | ||
567 | dnl This is just to silence aclocal about the macro not being used | 7305 | if AC_TRY_EVAL(ac_compile) 2>conftest.err; then |
568 | ifelse([AC_DISABLE_FAST_INSTALL])dnl | 7306 | soname=conftest |
7307 | lib=conftest | ||
7308 | libobjs=conftest.$ac_objext | ||
7309 | deplibs= | ||
7310 | wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1) | ||
7311 | pic_flag=$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) | ||
7312 | compiler_flags=-v | ||
7313 | linker_flags=-v | ||
7314 | verstring= | ||
7315 | output_objdir=. | ||
7316 | libname=conftest | ||
7317 | lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1) | ||
7318 | _LT_AC_TAGVAR(allow_undefined_flag, $1)= | ||
7319 | if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) | ||
7320 | then | ||
7321 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no | ||
7322 | else | ||
7323 | _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes | ||
7324 | fi | ||
7325 | _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag | ||
7326 | else | ||
7327 | cat conftest.err 1>&5 | ||
7328 | fi | ||
7329 | $rm conftest* | ||
7330 | AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)]) | ||
7331 | ;; | ||
7332 | esac | ||
7333 | fi | ||
7334 | ;; | ||
7335 | esac | ||
7336 | ])# AC_LIBTOOL_PROG_LD_SHLIBS | ||
7337 | |||
7338 | |||
7339 | # _LT_AC_FILE_LTDLL_C | ||
7340 | # ------------------- | ||
7341 | # Be careful that the start marker always follows a newline. | ||
7342 | AC_DEFUN([_LT_AC_FILE_LTDLL_C], [ | ||
7343 | # /* ltdll.c starts here */ | ||
7344 | # #define WIN32_LEAN_AND_MEAN | ||
7345 | # #include <windows.h> | ||
7346 | # #undef WIN32_LEAN_AND_MEAN | ||
7347 | # #include <stdio.h> | ||
7348 | # | ||
7349 | # #ifndef __CYGWIN__ | ||
7350 | # # ifdef __CYGWIN32__ | ||
7351 | # # define __CYGWIN__ __CYGWIN32__ | ||
7352 | # # endif | ||
7353 | # #endif | ||
7354 | # | ||
7355 | # #ifdef __cplusplus | ||
7356 | # extern "C" { | ||
7357 | # #endif | ||
7358 | # BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved); | ||
7359 | # #ifdef __cplusplus | ||
7360 | # } | ||
7361 | # #endif | ||
7362 | # | ||
7363 | # #ifdef __CYGWIN__ | ||
7364 | # #include <cygwin/cygwin_dll.h> | ||
7365 | # DECLARE_CYGWIN_DLL( DllMain ); | ||
7366 | # #endif | ||
7367 | # HINSTANCE __hDllInstance_base; | ||
7368 | # | ||
7369 | # BOOL APIENTRY | ||
7370 | # DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved) | ||
7371 | # { | ||
7372 | # __hDllInstance_base = hInst; | ||
7373 | # return TRUE; | ||
7374 | # } | ||
7375 | # /* ltdll.c ends here */ | ||
7376 | ])# _LT_AC_FILE_LTDLL_C | ||
7377 | |||
7378 | |||
7379 | # _LT_AC_TAGVAR(VARNAME, [TAGNAME]) | ||
7380 | # --------------------------------- | ||
7381 | AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])]) | ||
7382 | |||
7383 | |||
7384 | # old names | ||
7385 | AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL]) | ||
7386 | AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)]) | ||
7387 | AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)]) | ||
7388 | AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)]) | ||
7389 | AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)]) | ||
7390 | AC_DEFUN([AM_PROG_LD], [AC_PROG_LD]) | ||
7391 | AC_DEFUN([AM_PROG_NM], [AC_PROG_NM]) | ||
7392 | |||
7393 | # This is just to silence aclocal about the macro not being used | ||
7394 | ifelse([AC_DISABLE_FAST_INSTALL]) | ||
7395 | |||
7396 | AC_DEFUN([LT_AC_PROG_GCJ], | ||
7397 | [AC_CHECK_TOOL(GCJ, gcj, no) | ||
7398 | test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2" | ||
7399 | AC_SUBST(GCJFLAGS) | ||
7400 | ]) | ||
7401 | |||
7402 | AC_DEFUN([LT_AC_PROG_RC], | ||
7403 | [AC_CHECK_TOOL(RC, windres, no) | ||
7404 | ]) | ||
7405 | |||
7406 | # NOTE: This macro has been submitted for inclusion into # | ||
7407 | # GNU Autoconf as AC_PROG_SED. When it is available in # | ||
7408 | # a released version of Autoconf we should remove this # | ||
7409 | # macro and use it instead. # | ||
7410 | # LT_AC_PROG_SED | ||
7411 | # -------------- | ||
7412 | # Check for a fully-functional sed program, that truncates | ||
7413 | # as few characters as possible. Prefer GNU sed if found. | ||
7414 | AC_DEFUN([LT_AC_PROG_SED], | ||
7415 | [AC_MSG_CHECKING([for a sed that does not truncate output]) | ||
7416 | AC_CACHE_VAL(lt_cv_path_SED, | ||
7417 | [# Loop through the user's path and test for sed and gsed. | ||
7418 | # Then use that list of sed's as ones to test for truncation. | ||
7419 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7420 | for as_dir in $PATH | ||
7421 | do | ||
7422 | IFS=$as_save_IFS | ||
7423 | test -z "$as_dir" && as_dir=. | ||
7424 | for lt_ac_prog in sed gsed; do | ||
7425 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7426 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | ||
7427 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | ||
7428 | fi | ||
7429 | done | ||
7430 | done | ||
7431 | done | ||
7432 | lt_ac_max=0 | ||
7433 | lt_ac_count=0 | ||
7434 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | ||
7435 | # along with /bin/sed that truncates output. | ||
7436 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | ||
7437 | test ! -f $lt_ac_sed && continue | ||
7438 | cat /dev/null > conftest.in | ||
7439 | lt_ac_count=0 | ||
7440 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | ||
7441 | # Check for GNU sed and select it if it is found. | ||
7442 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | ||
7443 | lt_cv_path_SED=$lt_ac_sed | ||
7444 | break | ||
7445 | fi | ||
7446 | while true; do | ||
7447 | cat conftest.in conftest.in >conftest.tmp | ||
7448 | mv conftest.tmp conftest.in | ||
7449 | cp conftest.in conftest.nl | ||
7450 | echo >>conftest.nl | ||
7451 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | ||
7452 | cmp -s conftest.out conftest.nl || break | ||
7453 | # 10000 chars as input seems more than enough | ||
7454 | test $lt_ac_count -gt 10 && break | ||
7455 | lt_ac_count=`expr $lt_ac_count + 1` | ||
7456 | if test $lt_ac_count -gt $lt_ac_max; then | ||
7457 | lt_ac_max=$lt_ac_count | ||
7458 | lt_cv_path_SED=$lt_ac_sed | ||
7459 | fi | ||
7460 | done | ||
7461 | done | ||
7462 | ]) | ||
7463 | SED=$lt_cv_path_SED | ||
7464 | AC_MSG_RESULT([$SED]) | ||
7465 | ]) | ||
569 | 7466 | ||
570 | # Configure paths for GLIB | 7467 | # Configure paths for GLIB |
571 | # Owen Taylor 97-11-3 | 7468 | # Owen Taylor 97-11-3 |
@@ -574,7 +7471,7 @@ dnl AM_PATH_GLIB([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MO | |||
574 | dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" or | 7471 | dnl Test for GLIB, and define GLIB_CFLAGS and GLIB_LIBS, if "gmodule" or |
575 | dnl gthread is specified in MODULES, pass to glib-config | 7472 | dnl gthread is specified in MODULES, pass to glib-config |
576 | dnl | 7473 | dnl |
577 | AC_DEFUN(AM_PATH_GLIB, | 7474 | AC_DEFUN([AM_PATH_GLIB], |
578 | [dnl | 7475 | [dnl |
579 | dnl Get the cflags and libraries from the glib-config script | 7476 | dnl Get the cflags and libraries from the glib-config script |
580 | dnl | 7477 | dnl |
diff --git a/xdelta1/autogen.sh b/xdelta1/autogen.sh new file mode 100755 index 0000000..5f2e9c2 --- /dev/null +++ b/xdelta1/autogen.sh | |||
@@ -0,0 +1,59 @@ | |||
1 | #!/bin/sh | ||
2 | # Run this to generate all the initial makefiles, etc. | ||
3 | |||
4 | DIE=0 | ||
5 | |||
6 | (autoconf --version) < /dev/null > /dev/null 2>&1 || { | ||
7 | echo | ||
8 | echo "You must have autoconf installed to compile xdelta." | ||
9 | echo "Download the appropriate package for your distribution," | ||
10 | echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/" | ||
11 | DIE=1 | ||
12 | } | ||
13 | |||
14 | (libtool --version) < /dev/null > /dev/null 2>&1 || { | ||
15 | echo | ||
16 | echo "You must have libtool installed to compile xdelta." | ||
17 | echo "Get ftp://alpha.gnu.org/gnu/libtool-1.2d.tar.gz" | ||
18 | echo "(or a newer version if it is available)" | ||
19 | DIE=1 | ||
20 | } | ||
21 | |||
22 | (automake --version) < /dev/null > /dev/null 2>&1 || { | ||
23 | echo | ||
24 | echo "You must have automake installed to compile xdelta." | ||
25 | echo "Get ftp://ftp.cygnus.com/pub/home/tromey/automake-1.4.tar.gz" | ||
26 | echo "(or a newer version if it is available)" | ||
27 | DIE=1 | ||
28 | } | ||
29 | |||
30 | if test "$DIE" -eq 1; then | ||
31 | exit 1 | ||
32 | fi | ||
33 | |||
34 | (test -f xdelta.c) || { | ||
35 | echo "You must run this script in the top-level xdelta directory" | ||
36 | exit 1 | ||
37 | } | ||
38 | |||
39 | if test -z "$*"; then | ||
40 | echo "I am going to run ./configure with no arguments - if you wish " | ||
41 | echo "to pass any to it, please specify them on the $0 command line." | ||
42 | fi | ||
43 | |||
44 | for i in . | ||
45 | do | ||
46 | echo processing $i | ||
47 | (cd $i; \ | ||
48 | libtoolize --copy --force; \ | ||
49 | aclocal $ACLOCAL_FLAGS; autoheader; \ | ||
50 | automake --add-missing; \ | ||
51 | autoheader; \ | ||
52 | autoconf) | ||
53 | done | ||
54 | |||
55 | echo "Running ./configure --enable-maintainer-mode" "$@" | ||
56 | ./configure --enable-maintainer-mode "$@" | ||
57 | |||
58 | echo | ||
59 | echo "Now type 'make' to compile xdelta." | ||
diff --git a/xdelta1/configure.in b/xdelta1/configure.in index 0bc3dc2..76a71f4 100755 --- a/xdelta1/configure.in +++ b/xdelta1/configure.in | |||
@@ -5,7 +5,7 @@ AC_INIT(xdelta.c) | |||
5 | AM_CONFIG_HEADER(config.h) | 5 | AM_CONFIG_HEADER(config.h) |
6 | 6 | ||
7 | dnl $Format: "AM_INIT_AUTOMAKE(xdelta, $ReleaseVersion$, no-define)" $ | 7 | dnl $Format: "AM_INIT_AUTOMAKE(xdelta, $ReleaseVersion$, no-define)" $ |
8 | AM_INIT_AUTOMAKE(xdelta, 1.1.3, no-define) | 8 | AM_INIT_AUTOMAKE(xdelta, 1.1.4, no-define) |
9 | 9 | ||
10 | AM_MAINTAINER_MODE | 10 | AM_MAINTAINER_MODE |
11 | 11 | ||
@@ -74,10 +74,10 @@ AC_SUBST(top_srcdir_absolute) | |||
74 | AM_PATH_GLIB(1.2.8,, | 74 | AM_PATH_GLIB(1.2.8,, |
75 | AC_MSG_ERROR(Test for GLIB failed. Download it from ftp://ftp.gtk.org/pub/gtk/v1.2/)) | 75 | AC_MSG_ERROR(Test for GLIB failed. Download it from ftp://ftp.gtk.org/pub/gtk/v1.2/)) |
76 | 76 | ||
77 | AC_CHECK_LIB(z, gzsetparams, | 77 | dnl AC_CHECK_LIB(z, gzsetparams, */ |
78 | AC_CHECK_HEADER(zlib.h,, | 78 | dnl AC_CHECK_HEADER(zlib.h,, */ |
79 | AC_MSG_ERROR(ZLIB headers not found)), | 79 | dnl AC_MSG_ERROR(ZLIB headers not found)), */ |
80 | AC_MSG_ERROR(ZLIB library not found)) | 80 | dnl AC_MSG_ERROR(ZLIB library not found)) */ |
81 | 81 | ||
82 | AC_OUTPUT(Makefile | 82 | AC_OUTPUT(Makefile |
83 | doc/Makefile | 83 | doc/Makefile |
diff --git a/xdelta1/djgpp/Makefile b/xdelta1/djgpp/Makefile deleted file mode 100644 index 23c8ea9..0000000 --- a/xdelta1/djgpp/Makefile +++ /dev/null | |||
@@ -1,190 +0,0 @@ | |||
1 | # Generated automatically from Makefile.in by configure. | ||
2 | # Makefile.in generated automatically by automake 1.4 from Makefile.am | ||
3 | |||
4 | # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. | ||
5 | # This Makefile.in is free software; the Free Software Foundation | ||
6 | # gives unlimited permission to copy and/or distribute it, | ||
7 | # with or without modifications, as long as this notice is preserved. | ||
8 | |||
9 | # This program is distributed in the hope that it will be useful, | ||
10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
12 | # PARTICULAR PURPOSE. | ||
13 | |||
14 | |||
15 | SHELL = /bin/sh | ||
16 | |||
17 | srcdir = . | ||
18 | top_srcdir = .. | ||
19 | prefix = /usr/local | ||
20 | exec_prefix = ${prefix} | ||
21 | |||
22 | bindir = ${exec_prefix}/bin | ||
23 | sbindir = ${exec_prefix}/sbin | ||
24 | libexecdir = ${exec_prefix}/libexec | ||
25 | datadir = ${prefix}/share | ||
26 | sysconfdir = ${prefix}/etc | ||
27 | sharedstatedir = ${prefix}/com | ||
28 | localstatedir = ${prefix}/var | ||
29 | libdir = ${exec_prefix}/lib | ||
30 | infodir = ${prefix}/info | ||
31 | mandir = ${prefix}/man | ||
32 | includedir = ${prefix}/include | ||
33 | oldincludedir = /usr/include | ||
34 | |||
35 | DESTDIR = | ||
36 | |||
37 | pkgdatadir = $(datadir)/xdelta | ||
38 | pkglibdir = $(libdir)/xdelta | ||
39 | pkgincludedir = $(includedir)/xdelta | ||
40 | |||
41 | top_builddir = .. | ||
42 | |||
43 | ACLOCAL = aclocal | ||
44 | AUTOCONF = autoconf | ||
45 | AUTOMAKE = automake | ||
46 | AUTOHEADER = autoheader | ||
47 | |||
48 | INSTALL = /usr/bin/install -c | ||
49 | INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS) | ||
50 | INSTALL_DATA = ${INSTALL} -m 644 | ||
51 | INSTALL_SCRIPT = ${INSTALL_PROGRAM} | ||
52 | transform = s,x,x, | ||
53 | |||
54 | NORMAL_INSTALL = : | ||
55 | PRE_INSTALL = : | ||
56 | POST_INSTALL = : | ||
57 | NORMAL_UNINSTALL = : | ||
58 | PRE_UNINSTALL = : | ||
59 | POST_UNINSTALL = : | ||
60 | host_alias = i686-pc-linux-gnu | ||
61 | host_triplet = i686-pc-linux-gnu | ||
62 | AS = @AS@ | ||
63 | CC = gcc | ||
64 | CPP = gcc -E | ||
65 | DLLTOOL = @DLLTOOL@ | ||
66 | EMACS = /usr/bin/xemacs | ||
67 | GLIB_CFLAGS = -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include | ||
68 | GLIB_CONFIG = /usr/local/bin/glib-config | ||
69 | GLIB_LIBS = -L/usr/local/lib -lglib | ||
70 | LD = /usr/i586-pc-linux-gnu/bin/ld | ||
71 | LIBTOOL = $(SHELL) $(top_builddir)/libtool | ||
72 | LN_S = ln | ||
73 | MAINT = # | ||
74 | MAKEINFO = makeinfo | ||
75 | NM = /usr/bin/nm -B | ||
76 | OBJDUMP = @OBJDUMP@ | ||
77 | PACKAGE = xdelta | ||
78 | RANLIB = ranlib | ||
79 | VERSION = 1.1.3 | ||
80 | top_srcdir_absolute = /mnt/polaroid/Polaroid/orbit_linux/home/jmacd/projects/xdelta11 | ||
81 | |||
82 | EXTRA_DIST = readme.djg announce.djg | ||
83 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
84 | CONFIG_HEADER = ../config.h | ||
85 | CONFIG_CLEAN_FILES = | ||
86 | DIST_COMMON = Makefile.am Makefile.in | ||
87 | |||
88 | |||
89 | DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) | ||
90 | |||
91 | TAR = tar | ||
92 | GZIP_ENV = --best | ||
93 | all: all-redirect | ||
94 | .SUFFIXES: | ||
95 | $(srcdir)/Makefile.in: # Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
96 | cd $(top_srcdir) && $(AUTOMAKE) --gnu djgpp/Makefile | ||
97 | |||
98 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) | ||
99 | cd $(top_builddir) \ | ||
100 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | ||
101 | |||
102 | tags: TAGS | ||
103 | TAGS: | ||
104 | |||
105 | |||
106 | distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) | ||
107 | |||
108 | subdir = djgpp | ||
109 | |||
110 | distdir: $(DISTFILES) | ||
111 | here=`cd $(top_builddir) && pwd`; \ | ||
112 | top_distdir=`cd $(top_distdir) && pwd`; \ | ||
113 | distdir=`cd $(distdir) && pwd`; \ | ||
114 | cd $(top_srcdir) \ | ||
115 | && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu djgpp/Makefile | ||
116 | @for file in $(DISTFILES); do \ | ||
117 | d=$(srcdir); \ | ||
118 | if test -d $$d/$$file; then \ | ||
119 | cp -pr $$d/$$file $(distdir)/$$file; \ | ||
120 | else \ | ||
121 | test -f $(distdir)/$$file \ | ||
122 | || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ | ||
123 | || cp -p $$d/$$file $(distdir)/$$file || :; \ | ||
124 | fi; \ | ||
125 | done | ||
126 | info-am: | ||
127 | info: info-am | ||
128 | dvi-am: | ||
129 | dvi: dvi-am | ||
130 | check-am: all-am | ||
131 | check: check-am | ||
132 | installcheck-am: | ||
133 | installcheck: installcheck-am | ||
134 | install-exec-am: | ||
135 | install-exec: install-exec-am | ||
136 | |||
137 | install-data-am: | ||
138 | install-data: install-data-am | ||
139 | |||
140 | install-am: all-am | ||
141 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
142 | install: install-am | ||
143 | uninstall-am: | ||
144 | uninstall: uninstall-am | ||
145 | all-am: Makefile | ||
146 | all-redirect: all-am | ||
147 | install-strip: | ||
148 | $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install | ||
149 | installdirs: | ||
150 | |||
151 | |||
152 | mostlyclean-generic: | ||
153 | |||
154 | clean-generic: | ||
155 | |||
156 | distclean-generic: | ||
157 | -rm -f Makefile $(CONFIG_CLEAN_FILES) | ||
158 | -rm -f config.cache config.log stamp-h stamp-h[0-9]* | ||
159 | |||
160 | maintainer-clean-generic: | ||
161 | mostlyclean-am: mostlyclean-generic | ||
162 | |||
163 | mostlyclean: mostlyclean-am | ||
164 | |||
165 | clean-am: clean-generic mostlyclean-am | ||
166 | |||
167 | clean: clean-am | ||
168 | |||
169 | distclean-am: distclean-generic clean-am | ||
170 | -rm -f libtool | ||
171 | |||
172 | distclean: distclean-am | ||
173 | |||
174 | maintainer-clean-am: maintainer-clean-generic distclean-am | ||
175 | @echo "This command is intended for maintainers to use;" | ||
176 | @echo "it deletes files that may require special tools to rebuild." | ||
177 | |||
178 | maintainer-clean: maintainer-clean-am | ||
179 | |||
180 | .PHONY: tags distdir info-am info dvi-am dvi check check-am \ | ||
181 | installcheck-am installcheck install-exec-am install-exec \ | ||
182 | install-data-am install-data install-am install uninstall-am uninstall \ | ||
183 | all-redirect all-am all installdirs mostlyclean-generic \ | ||
184 | distclean-generic clean-generic maintainer-clean-generic clean \ | ||
185 | mostlyclean distclean maintainer-clean | ||
186 | |||
187 | |||
188 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
189 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
190 | .NOEXPORT: | ||
diff --git a/xdelta1/djgpp/Makefile.in b/xdelta1/djgpp/Makefile.in deleted file mode 100755 index 783defb..0000000 --- a/xdelta1/djgpp/Makefile.in +++ /dev/null | |||
@@ -1,190 +0,0 @@ | |||
1 | # Makefile.in generated automatically by automake 1.4-p6 from Makefile.am | ||
2 | |||
3 | # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. | ||
4 | # This Makefile.in is free software; the Free Software Foundation | ||
5 | # gives unlimited permission to copy and/or distribute it, | ||
6 | # with or without modifications, as long as this notice is preserved. | ||
7 | |||
8 | # This program is distributed in the hope that it will be useful, | ||
9 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
10 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
11 | # PARTICULAR PURPOSE. | ||
12 | |||
13 | |||
14 | SHELL = @SHELL@ | ||
15 | |||
16 | srcdir = @srcdir@ | ||
17 | top_srcdir = @top_srcdir@ | ||
18 | VPATH = @srcdir@ | ||
19 | prefix = @prefix@ | ||
20 | exec_prefix = @exec_prefix@ | ||
21 | |||
22 | bindir = @bindir@ | ||
23 | sbindir = @sbindir@ | ||
24 | libexecdir = @libexecdir@ | ||
25 | datadir = @datadir@ | ||
26 | sysconfdir = @sysconfdir@ | ||
27 | sharedstatedir = @sharedstatedir@ | ||
28 | localstatedir = @localstatedir@ | ||
29 | libdir = @libdir@ | ||
30 | infodir = @infodir@ | ||
31 | mandir = @mandir@ | ||
32 | includedir = @includedir@ | ||
33 | oldincludedir = /usr/include | ||
34 | |||
35 | DESTDIR = | ||
36 | |||
37 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
38 | pkglibdir = $(libdir)/@PACKAGE@ | ||
39 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
40 | |||
41 | top_builddir = .. | ||
42 | |||
43 | ACLOCAL = @ACLOCAL@ | ||
44 | AUTOCONF = @AUTOCONF@ | ||
45 | AUTOMAKE = @AUTOMAKE@ | ||
46 | AUTOHEADER = @AUTOHEADER@ | ||
47 | |||
48 | INSTALL = @INSTALL@ | ||
49 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) | ||
50 | INSTALL_DATA = @INSTALL_DATA@ | ||
51 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
52 | transform = @program_transform_name@ | ||
53 | |||
54 | NORMAL_INSTALL = : | ||
55 | PRE_INSTALL = : | ||
56 | POST_INSTALL = : | ||
57 | NORMAL_UNINSTALL = : | ||
58 | PRE_UNINSTALL = : | ||
59 | POST_UNINSTALL = : | ||
60 | host_alias = @host_alias@ | ||
61 | host_triplet = @host@ | ||
62 | AS = @AS@ | ||
63 | CC = @CC@ | ||
64 | CPP = @CPP@ | ||
65 | DLLTOOL = @DLLTOOL@ | ||
66 | EMACS = @EMACS@ | ||
67 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
68 | GLIB_CONFIG = @GLIB_CONFIG@ | ||
69 | GLIB_LIBS = @GLIB_LIBS@ | ||
70 | LD = @LD@ | ||
71 | LIBTOOL = @LIBTOOL@ | ||
72 | LN_S = @LN_S@ | ||
73 | MAINT = @MAINT@ | ||
74 | MAKEINFO = @MAKEINFO@ | ||
75 | NM = @NM@ | ||
76 | OBJDUMP = @OBJDUMP@ | ||
77 | PACKAGE = @PACKAGE@ | ||
78 | RANLIB = @RANLIB@ | ||
79 | VERSION = @VERSION@ | ||
80 | top_srcdir_absolute = @top_srcdir_absolute@ | ||
81 | |||
82 | EXTRA_DIST = readme.djg announce.djg | ||
83 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
84 | CONFIG_HEADER = ../config.h | ||
85 | CONFIG_CLEAN_FILES = | ||
86 | DIST_COMMON = Makefile.am Makefile.in | ||
87 | |||
88 | |||
89 | DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) | ||
90 | |||
91 | TAR = tar | ||
92 | GZIP_ENV = --best | ||
93 | all: all-redirect | ||
94 | .SUFFIXES: | ||
95 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
96 | cd $(top_srcdir) && $(AUTOMAKE) --gnu djgpp/Makefile | ||
97 | |||
98 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) | ||
99 | cd $(top_builddir) \ | ||
100 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | ||
101 | |||
102 | tags: TAGS | ||
103 | TAGS: | ||
104 | |||
105 | |||
106 | distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) | ||
107 | |||
108 | subdir = djgpp | ||
109 | |||
110 | distdir: $(DISTFILES) | ||
111 | here=`cd $(top_builddir) && pwd`; \ | ||
112 | top_distdir=`cd $(top_distdir) && pwd`; \ | ||
113 | distdir=`cd $(distdir) && pwd`; \ | ||
114 | cd $(top_srcdir) \ | ||
115 | && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu djgpp/Makefile | ||
116 | @for file in $(DISTFILES); do \ | ||
117 | d=$(srcdir); \ | ||
118 | if test -d $$d/$$file; then \ | ||
119 | cp -pr $$d/$$file $(distdir)/$$file; \ | ||
120 | else \ | ||
121 | test -f $(distdir)/$$file \ | ||
122 | || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ | ||
123 | || cp -p $$d/$$file $(distdir)/$$file || :; \ | ||
124 | fi; \ | ||
125 | done | ||
126 | info-am: | ||
127 | info: info-am | ||
128 | dvi-am: | ||
129 | dvi: dvi-am | ||
130 | check-am: all-am | ||
131 | check: check-am | ||
132 | installcheck-am: | ||
133 | installcheck: installcheck-am | ||
134 | install-exec-am: | ||
135 | install-exec: install-exec-am | ||
136 | |||
137 | install-data-am: | ||
138 | install-data: install-data-am | ||
139 | |||
140 | install-am: all-am | ||
141 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
142 | install: install-am | ||
143 | uninstall-am: | ||
144 | uninstall: uninstall-am | ||
145 | all-am: Makefile | ||
146 | all-redirect: all-am | ||
147 | install-strip: | ||
148 | $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install | ||
149 | installdirs: | ||
150 | |||
151 | |||
152 | mostlyclean-generic: | ||
153 | |||
154 | clean-generic: | ||
155 | |||
156 | distclean-generic: | ||
157 | -rm -f Makefile $(CONFIG_CLEAN_FILES) | ||
158 | -rm -f config.cache config.log stamp-h stamp-h[0-9]* | ||
159 | |||
160 | maintainer-clean-generic: | ||
161 | mostlyclean-am: mostlyclean-generic | ||
162 | |||
163 | mostlyclean: mostlyclean-am | ||
164 | |||
165 | clean-am: clean-generic mostlyclean-am | ||
166 | |||
167 | clean: clean-am | ||
168 | |||
169 | distclean-am: distclean-generic clean-am | ||
170 | -rm -f libtool | ||
171 | |||
172 | distclean: distclean-am | ||
173 | |||
174 | maintainer-clean-am: maintainer-clean-generic distclean-am | ||
175 | @echo "This command is intended for maintainers to use;" | ||
176 | @echo "it deletes files that may require special tools to rebuild." | ||
177 | |||
178 | maintainer-clean: maintainer-clean-am | ||
179 | |||
180 | .PHONY: tags distdir info-am info dvi-am dvi check check-am \ | ||
181 | installcheck-am installcheck install-exec-am install-exec \ | ||
182 | install-data-am install-data install-am install uninstall-am uninstall \ | ||
183 | all-redirect all-am all installdirs mostlyclean-generic \ | ||
184 | distclean-generic clean-generic maintainer-clean-generic clean \ | ||
185 | mostlyclean distclean maintainer-clean | ||
186 | |||
187 | |||
188 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
189 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
190 | .NOEXPORT: | ||
diff --git a/xdelta1/doc/Makefile b/xdelta1/doc/Makefile deleted file mode 100644 index 6c46cd7..0000000 --- a/xdelta1/doc/Makefile +++ /dev/null | |||
@@ -1,236 +0,0 @@ | |||
1 | # Generated automatically from Makefile.in by configure. | ||
2 | # Makefile.in generated automatically by automake 1.4 from Makefile.am | ||
3 | |||
4 | # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. | ||
5 | # This Makefile.in is free software; the Free Software Foundation | ||
6 | # gives unlimited permission to copy and/or distribute it, | ||
7 | # with or without modifications, as long as this notice is preserved. | ||
8 | |||
9 | # This program is distributed in the hope that it will be useful, | ||
10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
12 | # PARTICULAR PURPOSE. | ||
13 | |||
14 | |||
15 | SHELL = /bin/sh | ||
16 | |||
17 | srcdir = . | ||
18 | top_srcdir = .. | ||
19 | prefix = /usr/local | ||
20 | exec_prefix = ${prefix} | ||
21 | |||
22 | bindir = ${exec_prefix}/bin | ||
23 | sbindir = ${exec_prefix}/sbin | ||
24 | libexecdir = ${exec_prefix}/libexec | ||
25 | datadir = ${prefix}/share | ||
26 | sysconfdir = ${prefix}/etc | ||
27 | sharedstatedir = ${prefix}/com | ||
28 | localstatedir = ${prefix}/var | ||
29 | libdir = ${exec_prefix}/lib | ||
30 | infodir = ${prefix}/info | ||
31 | mandir = ${prefix}/man | ||
32 | includedir = ${prefix}/include | ||
33 | oldincludedir = /usr/include | ||
34 | |||
35 | DESTDIR = | ||
36 | |||
37 | pkgdatadir = $(datadir)/xdelta | ||
38 | pkglibdir = $(libdir)/xdelta | ||
39 | pkgincludedir = $(includedir)/xdelta | ||
40 | |||
41 | top_builddir = .. | ||
42 | |||
43 | ACLOCAL = aclocal | ||
44 | AUTOCONF = autoconf | ||
45 | AUTOMAKE = automake | ||
46 | AUTOHEADER = autoheader | ||
47 | |||
48 | INSTALL = /usr/bin/install -c | ||
49 | INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS) | ||
50 | INSTALL_DATA = ${INSTALL} -m 644 | ||
51 | INSTALL_SCRIPT = ${INSTALL_PROGRAM} | ||
52 | transform = s,x,x, | ||
53 | |||
54 | NORMAL_INSTALL = : | ||
55 | PRE_INSTALL = : | ||
56 | POST_INSTALL = : | ||
57 | NORMAL_UNINSTALL = : | ||
58 | PRE_UNINSTALL = : | ||
59 | POST_UNINSTALL = : | ||
60 | host_alias = i686-pc-linux-gnu | ||
61 | host_triplet = i686-pc-linux-gnu | ||
62 | AS = @AS@ | ||
63 | CC = gcc | ||
64 | CPP = gcc -E | ||
65 | DLLTOOL = @DLLTOOL@ | ||
66 | EMACS = /usr/bin/xemacs | ||
67 | GLIB_CFLAGS = -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include | ||
68 | GLIB_CONFIG = /usr/local/bin/glib-config | ||
69 | GLIB_LIBS = -L/usr/local/lib -lglib | ||
70 | LD = /usr/i586-pc-linux-gnu/bin/ld | ||
71 | LIBTOOL = $(SHELL) $(top_builddir)/libtool | ||
72 | LN_S = ln | ||
73 | MAINT = # | ||
74 | MAKEINFO = makeinfo | ||
75 | NM = /usr/bin/nm -B | ||
76 | OBJDUMP = @OBJDUMP@ | ||
77 | PACKAGE = xdelta | ||
78 | RANLIB = ranlib | ||
79 | VERSION = 1.1.3 | ||
80 | top_srcdir_absolute = /mnt/polaroid/Polaroid/orbit_linux/home/jmacd/projects/xdelta11 | ||
81 | |||
82 | man_MANS = xdelta.1 | ||
83 | |||
84 | EXTRA_DIST = xdelta.1 xdelta.cat | ||
85 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
86 | CONFIG_HEADER = ../config.h | ||
87 | CONFIG_CLEAN_FILES = | ||
88 | man1dir = $(mandir)/man1 | ||
89 | MANS = $(man_MANS) | ||
90 | |||
91 | NROFF = nroff | ||
92 | DIST_COMMON = Makefile.am Makefile.in | ||
93 | |||
94 | |||
95 | DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) | ||
96 | |||
97 | TAR = tar | ||
98 | GZIP_ENV = --best | ||
99 | all: all-redirect | ||
100 | .SUFFIXES: | ||
101 | $(srcdir)/Makefile.in: # Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
102 | cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile | ||
103 | |||
104 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) | ||
105 | cd $(top_builddir) \ | ||
106 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | ||
107 | |||
108 | |||
109 | install-man1: | ||
110 | $(mkinstalldirs) $(DESTDIR)$(man1dir) | ||
111 | @list='$(man1_MANS)'; \ | ||
112 | l2='$(man_MANS)'; for i in $$l2; do \ | ||
113 | case "$$i" in \ | ||
114 | *.1*) list="$$list $$i" ;; \ | ||
115 | esac; \ | ||
116 | done; \ | ||
117 | for i in $$list; do \ | ||
118 | if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ | ||
119 | else file=$$i; fi; \ | ||
120 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ | ||
121 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ | ||
122 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \ | ||
123 | echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \ | ||
124 | $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \ | ||
125 | done | ||
126 | |||
127 | uninstall-man1: | ||
128 | @list='$(man1_MANS)'; \ | ||
129 | l2='$(man_MANS)'; for i in $$l2; do \ | ||
130 | case "$$i" in \ | ||
131 | *.1*) list="$$list $$i" ;; \ | ||
132 | esac; \ | ||
133 | done; \ | ||
134 | for i in $$list; do \ | ||
135 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ | ||
136 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ | ||
137 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \ | ||
138 | echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \ | ||
139 | rm -f $(DESTDIR)$(man1dir)/$$inst; \ | ||
140 | done | ||
141 | install-man: $(MANS) | ||
142 | @$(NORMAL_INSTALL) | ||
143 | $(MAKE) $(AM_MAKEFLAGS) install-man1 | ||
144 | uninstall-man: | ||
145 | @$(NORMAL_UNINSTALL) | ||
146 | $(MAKE) $(AM_MAKEFLAGS) uninstall-man1 | ||
147 | tags: TAGS | ||
148 | TAGS: | ||
149 | |||
150 | |||
151 | distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) | ||
152 | |||
153 | subdir = doc | ||
154 | |||
155 | distdir: $(DISTFILES) | ||
156 | here=`cd $(top_builddir) && pwd`; \ | ||
157 | top_distdir=`cd $(top_distdir) && pwd`; \ | ||
158 | distdir=`cd $(distdir) && pwd`; \ | ||
159 | cd $(top_srcdir) \ | ||
160 | && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu doc/Makefile | ||
161 | @for file in $(DISTFILES); do \ | ||
162 | d=$(srcdir); \ | ||
163 | if test -d $$d/$$file; then \ | ||
164 | cp -pr $$d/$$file $(distdir)/$$file; \ | ||
165 | else \ | ||
166 | test -f $(distdir)/$$file \ | ||
167 | || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ | ||
168 | || cp -p $$d/$$file $(distdir)/$$file || :; \ | ||
169 | fi; \ | ||
170 | done | ||
171 | info-am: | ||
172 | info: info-am | ||
173 | dvi-am: | ||
174 | dvi: dvi-am | ||
175 | check-am: all-am | ||
176 | check: check-am | ||
177 | installcheck-am: | ||
178 | installcheck: installcheck-am | ||
179 | install-exec-am: | ||
180 | install-exec: install-exec-am | ||
181 | |||
182 | install-data-am: install-man | ||
183 | install-data: install-data-am | ||
184 | |||
185 | install-am: all-am | ||
186 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
187 | install: install-am | ||
188 | uninstall-am: uninstall-man | ||
189 | uninstall: uninstall-am | ||
190 | all-am: Makefile $(MANS) | ||
191 | all-redirect: all-am | ||
192 | install-strip: | ||
193 | $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install | ||
194 | installdirs: | ||
195 | $(mkinstalldirs) $(DESTDIR)$(mandir)/man1 | ||
196 | |||
197 | |||
198 | mostlyclean-generic: | ||
199 | |||
200 | clean-generic: | ||
201 | |||
202 | distclean-generic: | ||
203 | -rm -f Makefile $(CONFIG_CLEAN_FILES) | ||
204 | -rm -f config.cache config.log stamp-h stamp-h[0-9]* | ||
205 | |||
206 | maintainer-clean-generic: | ||
207 | mostlyclean-am: mostlyclean-generic | ||
208 | |||
209 | mostlyclean: mostlyclean-am | ||
210 | |||
211 | clean-am: clean-generic mostlyclean-am | ||
212 | |||
213 | clean: clean-am | ||
214 | |||
215 | distclean-am: distclean-generic clean-am | ||
216 | -rm -f libtool | ||
217 | |||
218 | distclean: distclean-am | ||
219 | |||
220 | maintainer-clean-am: maintainer-clean-generic distclean-am | ||
221 | @echo "This command is intended for maintainers to use;" | ||
222 | @echo "it deletes files that may require special tools to rebuild." | ||
223 | |||
224 | maintainer-clean: maintainer-clean-am | ||
225 | |||
226 | .PHONY: install-man1 uninstall-man1 install-man uninstall-man tags \ | ||
227 | distdir info-am info dvi-am dvi check check-am installcheck-am \ | ||
228 | installcheck install-exec-am install-exec install-data-am install-data \ | ||
229 | install-am install uninstall-am uninstall all-redirect all-am all \ | ||
230 | installdirs mostlyclean-generic distclean-generic clean-generic \ | ||
231 | maintainer-clean-generic clean mostlyclean distclean maintainer-clean | ||
232 | |||
233 | |||
234 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
235 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
236 | .NOEXPORT: | ||
diff --git a/xdelta1/doc/Makefile.in b/xdelta1/doc/Makefile.in deleted file mode 100755 index 8bd322c..0000000 --- a/xdelta1/doc/Makefile.in +++ /dev/null | |||
@@ -1,236 +0,0 @@ | |||
1 | # Makefile.in generated automatically by automake 1.4-p6 from Makefile.am | ||
2 | |||
3 | # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. | ||
4 | # This Makefile.in is free software; the Free Software Foundation | ||
5 | # gives unlimited permission to copy and/or distribute it, | ||
6 | # with or without modifications, as long as this notice is preserved. | ||
7 | |||
8 | # This program is distributed in the hope that it will be useful, | ||
9 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
10 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
11 | # PARTICULAR PURPOSE. | ||
12 | |||
13 | |||
14 | SHELL = @SHELL@ | ||
15 | |||
16 | srcdir = @srcdir@ | ||
17 | top_srcdir = @top_srcdir@ | ||
18 | VPATH = @srcdir@ | ||
19 | prefix = @prefix@ | ||
20 | exec_prefix = @exec_prefix@ | ||
21 | |||
22 | bindir = @bindir@ | ||
23 | sbindir = @sbindir@ | ||
24 | libexecdir = @libexecdir@ | ||
25 | datadir = @datadir@ | ||
26 | sysconfdir = @sysconfdir@ | ||
27 | sharedstatedir = @sharedstatedir@ | ||
28 | localstatedir = @localstatedir@ | ||
29 | libdir = @libdir@ | ||
30 | infodir = @infodir@ | ||
31 | mandir = @mandir@ | ||
32 | includedir = @includedir@ | ||
33 | oldincludedir = /usr/include | ||
34 | |||
35 | DESTDIR = | ||
36 | |||
37 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
38 | pkglibdir = $(libdir)/@PACKAGE@ | ||
39 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
40 | |||
41 | top_builddir = .. | ||
42 | |||
43 | ACLOCAL = @ACLOCAL@ | ||
44 | AUTOCONF = @AUTOCONF@ | ||
45 | AUTOMAKE = @AUTOMAKE@ | ||
46 | AUTOHEADER = @AUTOHEADER@ | ||
47 | |||
48 | INSTALL = @INSTALL@ | ||
49 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) | ||
50 | INSTALL_DATA = @INSTALL_DATA@ | ||
51 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
52 | transform = @program_transform_name@ | ||
53 | |||
54 | NORMAL_INSTALL = : | ||
55 | PRE_INSTALL = : | ||
56 | POST_INSTALL = : | ||
57 | NORMAL_UNINSTALL = : | ||
58 | PRE_UNINSTALL = : | ||
59 | POST_UNINSTALL = : | ||
60 | host_alias = @host_alias@ | ||
61 | host_triplet = @host@ | ||
62 | AS = @AS@ | ||
63 | CC = @CC@ | ||
64 | CPP = @CPP@ | ||
65 | DLLTOOL = @DLLTOOL@ | ||
66 | EMACS = @EMACS@ | ||
67 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
68 | GLIB_CONFIG = @GLIB_CONFIG@ | ||
69 | GLIB_LIBS = @GLIB_LIBS@ | ||
70 | LD = @LD@ | ||
71 | LIBTOOL = @LIBTOOL@ | ||
72 | LN_S = @LN_S@ | ||
73 | MAINT = @MAINT@ | ||
74 | MAKEINFO = @MAKEINFO@ | ||
75 | NM = @NM@ | ||
76 | OBJDUMP = @OBJDUMP@ | ||
77 | PACKAGE = @PACKAGE@ | ||
78 | RANLIB = @RANLIB@ | ||
79 | VERSION = @VERSION@ | ||
80 | top_srcdir_absolute = @top_srcdir_absolute@ | ||
81 | |||
82 | man_MANS = xdelta.1 | ||
83 | |||
84 | EXTRA_DIST = xdelta.1 xdelta.cat | ||
85 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
86 | CONFIG_HEADER = ../config.h | ||
87 | CONFIG_CLEAN_FILES = | ||
88 | man1dir = $(mandir)/man1 | ||
89 | MANS = $(man_MANS) | ||
90 | |||
91 | NROFF = nroff | ||
92 | DIST_COMMON = Makefile.am Makefile.in | ||
93 | |||
94 | |||
95 | DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) | ||
96 | |||
97 | TAR = tar | ||
98 | GZIP_ENV = --best | ||
99 | all: all-redirect | ||
100 | .SUFFIXES: | ||
101 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
102 | cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile | ||
103 | |||
104 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) | ||
105 | cd $(top_builddir) \ | ||
106 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | ||
107 | |||
108 | |||
109 | install-man1: | ||
110 | $(mkinstalldirs) $(DESTDIR)$(man1dir) | ||
111 | @list='$(man1_MANS)'; \ | ||
112 | l2='$(man_MANS)'; for i in $$l2; do \ | ||
113 | case "$$i" in \ | ||
114 | *.1*) list="$$list $$i" ;; \ | ||
115 | esac; \ | ||
116 | done; \ | ||
117 | for i in $$list; do \ | ||
118 | if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \ | ||
119 | else file=$$i; fi; \ | ||
120 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ | ||
121 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ | ||
122 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \ | ||
123 | echo " $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst"; \ | ||
124 | $(INSTALL_DATA) $$file $(DESTDIR)$(man1dir)/$$inst; \ | ||
125 | done | ||
126 | |||
127 | uninstall-man1: | ||
128 | @list='$(man1_MANS)'; \ | ||
129 | l2='$(man_MANS)'; for i in $$l2; do \ | ||
130 | case "$$i" in \ | ||
131 | *.1*) list="$$list $$i" ;; \ | ||
132 | esac; \ | ||
133 | done; \ | ||
134 | for i in $$list; do \ | ||
135 | ext=`echo $$i | sed -e 's/^.*\\.//'`; \ | ||
136 | inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \ | ||
137 | inst=`echo $$inst | sed '$(transform)'`.$$ext; \ | ||
138 | echo " rm -f $(DESTDIR)$(man1dir)/$$inst"; \ | ||
139 | rm -f $(DESTDIR)$(man1dir)/$$inst; \ | ||
140 | done | ||
141 | install-man: $(MANS) | ||
142 | @$(NORMAL_INSTALL) | ||
143 | $(MAKE) $(AM_MAKEFLAGS) install-man1 | ||
144 | uninstall-man: | ||
145 | @$(NORMAL_UNINSTALL) | ||
146 | $(MAKE) $(AM_MAKEFLAGS) uninstall-man1 | ||
147 | tags: TAGS | ||
148 | TAGS: | ||
149 | |||
150 | |||
151 | distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) | ||
152 | |||
153 | subdir = doc | ||
154 | |||
155 | distdir: $(DISTFILES) | ||
156 | here=`cd $(top_builddir) && pwd`; \ | ||
157 | top_distdir=`cd $(top_distdir) && pwd`; \ | ||
158 | distdir=`cd $(distdir) && pwd`; \ | ||
159 | cd $(top_srcdir) \ | ||
160 | && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu doc/Makefile | ||
161 | @for file in $(DISTFILES); do \ | ||
162 | d=$(srcdir); \ | ||
163 | if test -d $$d/$$file; then \ | ||
164 | cp -pr $$d/$$file $(distdir)/$$file; \ | ||
165 | else \ | ||
166 | test -f $(distdir)/$$file \ | ||
167 | || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ | ||
168 | || cp -p $$d/$$file $(distdir)/$$file || :; \ | ||
169 | fi; \ | ||
170 | done | ||
171 | info-am: | ||
172 | info: info-am | ||
173 | dvi-am: | ||
174 | dvi: dvi-am | ||
175 | check-am: all-am | ||
176 | check: check-am | ||
177 | installcheck-am: | ||
178 | installcheck: installcheck-am | ||
179 | install-exec-am: | ||
180 | install-exec: install-exec-am | ||
181 | |||
182 | install-data-am: install-man | ||
183 | install-data: install-data-am | ||
184 | |||
185 | install-am: all-am | ||
186 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
187 | install: install-am | ||
188 | uninstall-am: uninstall-man | ||
189 | uninstall: uninstall-am | ||
190 | all-am: Makefile $(MANS) | ||
191 | all-redirect: all-am | ||
192 | install-strip: | ||
193 | $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install | ||
194 | installdirs: | ||
195 | $(mkinstalldirs) $(DESTDIR)$(mandir)/man1 | ||
196 | |||
197 | |||
198 | mostlyclean-generic: | ||
199 | |||
200 | clean-generic: | ||
201 | |||
202 | distclean-generic: | ||
203 | -rm -f Makefile $(CONFIG_CLEAN_FILES) | ||
204 | -rm -f config.cache config.log stamp-h stamp-h[0-9]* | ||
205 | |||
206 | maintainer-clean-generic: | ||
207 | mostlyclean-am: mostlyclean-generic | ||
208 | |||
209 | mostlyclean: mostlyclean-am | ||
210 | |||
211 | clean-am: clean-generic mostlyclean-am | ||
212 | |||
213 | clean: clean-am | ||
214 | |||
215 | distclean-am: distclean-generic clean-am | ||
216 | -rm -f libtool | ||
217 | |||
218 | distclean: distclean-am | ||
219 | |||
220 | maintainer-clean-am: maintainer-clean-generic distclean-am | ||
221 | @echo "This command is intended for maintainers to use;" | ||
222 | @echo "it deletes files that may require special tools to rebuild." | ||
223 | |||
224 | maintainer-clean: maintainer-clean-am | ||
225 | |||
226 | .PHONY: install-man1 uninstall-man1 install-man uninstall-man tags \ | ||
227 | distdir info-am info dvi-am dvi check check-am installcheck-am \ | ||
228 | installcheck install-exec-am install-exec install-data-am install-data \ | ||
229 | install-am install uninstall-am uninstall all-redirect all-am all \ | ||
230 | installdirs mostlyclean-generic distclean-generic clean-generic \ | ||
231 | maintainer-clean-generic clean mostlyclean distclean maintainer-clean | ||
232 | |||
233 | |||
234 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
235 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
236 | .NOEXPORT: | ||
diff --git a/xdelta1/doc/xdelta.1 b/xdelta1/doc/xdelta.1 index ec6a6d0..ce0b361 100755 --- a/xdelta1/doc/xdelta.1 +++ b/xdelta1/doc/xdelta.1 | |||
@@ -196,6 +196,6 @@ and info commands exit with status 0 on success and 2 on failure. | |||
196 | Author: Joshua P. MacDonald, jmacd@cs.berkeley.edu | 196 | Author: Joshua P. MacDonald, jmacd@cs.berkeley.edu |
197 | .br | 197 | .br |
198 | .\" $Format: "Manual Page Revision: $Revision$; Release Date: $ProjectDate$."$ | 198 | .\" $Format: "Manual Page Revision: $Revision$; Release Date: $ProjectDate$."$ |
199 | Manual Page Revision: 1.5; Release Date: Fri, 29 Jun 2001 06:01:08 -0700. | 199 | Manual Page Revision: 1.6; Release Date: Sat, 27 Jan 2007 17:53:47 -0800. |
200 | .br | 200 | .br |
201 | Copyright \(co 1997, 1998, 1999, 2000, 2001 | 201 | Copyright \(co 1997, 1998, 1999, 2000, 2001 |
diff --git a/xdelta1/libedsio/Makefile b/xdelta1/libedsio/Makefile index 6048ffe..d8a042c 100644 --- a/xdelta1/libedsio/Makefile +++ b/xdelta1/libedsio/Makefile | |||
@@ -1,7 +1,6 @@ | |||
1 | # Generated automatically from Makefile.in by configure. | 1 | # Makefile.in generated automatically by automake 1.4-p6 from Makefile.am |
2 | # Makefile.in generated automatically by automake 1.4 from Makefile.am | ||
3 | 2 | ||
4 | # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. | 3 | # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. |
5 | # This Makefile.in is free software; the Free Software Foundation | 4 | # This Makefile.in is free software; the Free Software Foundation |
6 | # gives unlimited permission to copy and/or distribute it, | 5 | # gives unlimited permission to copy and/or distribute it, |
7 | # with or without modifications, as long as this notice is preserved. | 6 | # with or without modifications, as long as this notice is preserved. |
@@ -16,6 +15,7 @@ SHELL = /bin/sh | |||
16 | 15 | ||
17 | srcdir = . | 16 | srcdir = . |
18 | top_srcdir = .. | 17 | top_srcdir = .. |
18 | |||
19 | prefix = /usr/local | 19 | prefix = /usr/local |
20 | exec_prefix = ${prefix} | 20 | exec_prefix = ${prefix} |
21 | 21 | ||
@@ -40,15 +40,15 @@ pkgincludedir = $(includedir)/xdelta | |||
40 | 40 | ||
41 | top_builddir = .. | 41 | top_builddir = .. |
42 | 42 | ||
43 | ACLOCAL = aclocal | 43 | ACLOCAL = aclocal-1.4 |
44 | AUTOCONF = autoconf | 44 | AUTOCONF = autoconf |
45 | AUTOMAKE = automake | 45 | AUTOMAKE = automake-1.4 |
46 | AUTOHEADER = autoheader | 46 | AUTOHEADER = autoheader |
47 | 47 | ||
48 | INSTALL = /usr/bin/install -c | 48 | INSTALL = /usr/bin/install -c |
49 | INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS) | 49 | INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS) |
50 | INSTALL_DATA = ${INSTALL} -m 644 | 50 | INSTALL_DATA = ${INSTALL} -m 644 |
51 | INSTALL_SCRIPT = ${INSTALL_PROGRAM} | 51 | INSTALL_SCRIPT = ${INSTALL} |
52 | transform = s,x,x, | 52 | transform = s,x,x, |
53 | 53 | ||
54 | NORMAL_INSTALL = : | 54 | NORMAL_INSTALL = : |
@@ -57,27 +57,40 @@ POST_INSTALL = : | |||
57 | NORMAL_UNINSTALL = : | 57 | NORMAL_UNINSTALL = : |
58 | PRE_UNINSTALL = : | 58 | PRE_UNINSTALL = : |
59 | POST_UNINSTALL = : | 59 | POST_UNINSTALL = : |
60 | host_alias = i686-pc-linux-gnu | 60 | host_alias = |
61 | host_triplet = i686-pc-linux-gnu | 61 | host_triplet = i686-pc-linux-gnu |
62 | AR = ar | ||
62 | AS = @AS@ | 63 | AS = @AS@ |
63 | CC = gcc | 64 | CC = gcc-4.1.1 |
64 | CPP = gcc -E | 65 | CPP = gcc-4.1.1 -E |
66 | CXX = g++ | ||
67 | CXXCPP = g++ -E | ||
65 | DLLTOOL = @DLLTOOL@ | 68 | DLLTOOL = @DLLTOOL@ |
66 | EMACS = /usr/bin/xemacs | 69 | ECHO = echo |
70 | EGREP = grep -E | ||
71 | EMACS = /usr/bin/emacs | ||
72 | EXEEXT = | ||
73 | F77 = g77 | ||
74 | GCJ = @GCJ@ | ||
75 | GCJFLAGS = @GCJFLAGS@ | ||
67 | GLIB_CFLAGS = -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include | 76 | GLIB_CFLAGS = -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include |
68 | GLIB_CONFIG = /usr/local/bin/glib-config | 77 | GLIB_CONFIG = /usr/local/bin/glib-config |
69 | GLIB_LIBS = -L/usr/local/lib -lglib | 78 | GLIB_LIBS = -L/usr/local/lib -lglib |
70 | LD = /usr/i586-pc-linux-gnu/bin/ld | 79 | HAVE_LIB = @HAVE_LIB@ |
80 | LIB = @LIB@ | ||
71 | LIBTOOL = $(SHELL) $(top_builddir)/libtool | 81 | LIBTOOL = $(SHELL) $(top_builddir)/libtool |
72 | LN_S = ln | 82 | LN_S = ln |
83 | LTLIB = @LTLIB@ | ||
73 | MAINT = # | 84 | MAINT = # |
74 | MAKEINFO = makeinfo | 85 | MAKEINFO = makeinfo |
75 | NM = /usr/bin/nm -B | ||
76 | OBJDUMP = @OBJDUMP@ | 86 | OBJDUMP = @OBJDUMP@ |
87 | OBJEXT = o | ||
77 | PACKAGE = xdelta | 88 | PACKAGE = xdelta |
78 | RANLIB = ranlib | 89 | RANLIB = ranlib |
79 | VERSION = 1.1.3 | 90 | RC = @RC@ |
80 | top_srcdir_absolute = /mnt/polaroid/Polaroid/orbit_linux/home/jmacd/projects/xdelta11 | 91 | STRIP = strip |
92 | VERSION = 1.1.4 | ||
93 | top_srcdir_absolute = /mnt/polaroid/Polaroid/orbit_linux/home/jmacd/projects/xdelta1 | ||
81 | 94 | ||
82 | INCLUDES = $(GLIB_CFLAGS) | 95 | INCLUDES = $(GLIB_CFLAGS) |
83 | 96 | ||
@@ -120,9 +133,10 @@ libedsio_la_DEPENDENCIES = | |||
120 | libedsio_la_OBJECTS = library.lo simple.lo edsio.lo edsio_edsio.lo \ | 133 | libedsio_la_OBJECTS = library.lo simple.lo edsio.lo edsio_edsio.lo \ |
121 | sha.lo md5c.lo fh.lo generic.lo default.lo base64.lo maketime.lo \ | 134 | sha.lo md5c.lo fh.lo generic.lo default.lo base64.lo maketime.lo \ |
122 | partime.lo | 135 | partime.lo |
136 | noinst_PROGRAMS = edsiotest$(EXEEXT) | ||
123 | PROGRAMS = $(noinst_PROGRAMS) | 137 | PROGRAMS = $(noinst_PROGRAMS) |
124 | 138 | ||
125 | edsiotest_OBJECTS = edsiotest.o | 139 | edsiotest_OBJECTS = edsiotest.$(OBJEXT) |
126 | edsiotest_DEPENDENCIES = libedsio.la | 140 | edsiotest_DEPENDENCIES = libedsio.la |
127 | edsiotest_LDFLAGS = | 141 | edsiotest_LDFLAGS = |
128 | SCRIPTS = $(noinst_SCRIPTS) | 142 | SCRIPTS = $(noinst_SCRIPTS) |
@@ -150,7 +164,7 @@ OBJECTS = $(libedsio_la_OBJECTS) $(edsiotest_OBJECTS) | |||
150 | 164 | ||
151 | all: all-redirect | 165 | all: all-redirect |
152 | .SUFFIXES: | 166 | .SUFFIXES: |
153 | .SUFFIXES: .S .c .lo .o .s | 167 | .SUFFIXES: .S .c .lo .o .obj .s |
154 | $(srcdir)/Makefile.in: # Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | 168 | $(srcdir)/Makefile.in: # Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) |
155 | cd $(top_srcdir) && $(AUTOMAKE) --gnu libedsio/Makefile | 169 | cd $(top_srcdir) && $(AUTOMAKE) --gnu libedsio/Makefile |
156 | 170 | ||
@@ -186,6 +200,11 @@ uninstall-libLTLIBRARIES: | |||
186 | $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \ | 200 | $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \ |
187 | done | 201 | done |
188 | 202 | ||
203 | # FIXME: We should only use cygpath when building on Windows, | ||
204 | # and only if it is available. | ||
205 | .c.obj: | ||
206 | $(COMPILE) -c `cygpath -w $<` | ||
207 | |||
189 | .s.o: | 208 | .s.o: |
190 | $(COMPILE) -c $< | 209 | $(COMPILE) -c $< |
191 | 210 | ||
@@ -194,6 +213,7 @@ uninstall-libLTLIBRARIES: | |||
194 | 213 | ||
195 | mostlyclean-compile: | 214 | mostlyclean-compile: |
196 | -rm -f *.o core *.core | 215 | -rm -f *.o core *.core |
216 | -rm -f *.$(OBJEXT) | ||
197 | 217 | ||
198 | clean-compile: | 218 | clean-compile: |
199 | 219 | ||
@@ -230,8 +250,8 @@ distclean-noinstPROGRAMS: | |||
230 | 250 | ||
231 | maintainer-clean-noinstPROGRAMS: | 251 | maintainer-clean-noinstPROGRAMS: |
232 | 252 | ||
233 | edsiotest: $(edsiotest_OBJECTS) $(edsiotest_DEPENDENCIES) | 253 | edsiotest$(EXEEXT): $(edsiotest_OBJECTS) $(edsiotest_DEPENDENCIES) |
234 | @rm -f edsiotest | 254 | @rm -f edsiotest$(EXEEXT) |
235 | $(LINK) $(edsiotest_LDFLAGS) $(edsiotest_OBJECTS) $(edsiotest_LDADD) $(LIBS) | 255 | $(LINK) $(edsiotest_LDFLAGS) $(edsiotest_OBJECTS) $(edsiotest_LDADD) $(LIBS) |
236 | 256 | ||
237 | install-includeHEADERS: $(include_HEADERS) | 257 | install-includeHEADERS: $(include_HEADERS) |
diff --git a/xdelta1/libedsio/Makefile.in b/xdelta1/libedsio/Makefile.in deleted file mode 100755 index b4be8b7..0000000 --- a/xdelta1/libedsio/Makefile.in +++ /dev/null | |||
@@ -1,434 +0,0 @@ | |||
1 | # Makefile.in generated automatically by automake 1.4-p6 from Makefile.am | ||
2 | |||
3 | # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. | ||
4 | # This Makefile.in is free software; the Free Software Foundation | ||
5 | # gives unlimited permission to copy and/or distribute it, | ||
6 | # with or without modifications, as long as this notice is preserved. | ||
7 | |||
8 | # This program is distributed in the hope that it will be useful, | ||
9 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
10 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
11 | # PARTICULAR PURPOSE. | ||
12 | |||
13 | |||
14 | SHELL = @SHELL@ | ||
15 | |||
16 | srcdir = @srcdir@ | ||
17 | top_srcdir = @top_srcdir@ | ||
18 | VPATH = @srcdir@ | ||
19 | prefix = @prefix@ | ||
20 | exec_prefix = @exec_prefix@ | ||
21 | |||
22 | bindir = @bindir@ | ||
23 | sbindir = @sbindir@ | ||
24 | libexecdir = @libexecdir@ | ||
25 | datadir = @datadir@ | ||
26 | sysconfdir = @sysconfdir@ | ||
27 | sharedstatedir = @sharedstatedir@ | ||
28 | localstatedir = @localstatedir@ | ||
29 | libdir = @libdir@ | ||
30 | infodir = @infodir@ | ||
31 | mandir = @mandir@ | ||
32 | includedir = @includedir@ | ||
33 | oldincludedir = /usr/include | ||
34 | |||
35 | DESTDIR = | ||
36 | |||
37 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
38 | pkglibdir = $(libdir)/@PACKAGE@ | ||
39 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
40 | |||
41 | top_builddir = .. | ||
42 | |||
43 | ACLOCAL = @ACLOCAL@ | ||
44 | AUTOCONF = @AUTOCONF@ | ||
45 | AUTOMAKE = @AUTOMAKE@ | ||
46 | AUTOHEADER = @AUTOHEADER@ | ||
47 | |||
48 | INSTALL = @INSTALL@ | ||
49 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) | ||
50 | INSTALL_DATA = @INSTALL_DATA@ | ||
51 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
52 | transform = @program_transform_name@ | ||
53 | |||
54 | NORMAL_INSTALL = : | ||
55 | PRE_INSTALL = : | ||
56 | POST_INSTALL = : | ||
57 | NORMAL_UNINSTALL = : | ||
58 | PRE_UNINSTALL = : | ||
59 | POST_UNINSTALL = : | ||
60 | host_alias = @host_alias@ | ||
61 | host_triplet = @host@ | ||
62 | AS = @AS@ | ||
63 | CC = @CC@ | ||
64 | CPP = @CPP@ | ||
65 | DLLTOOL = @DLLTOOL@ | ||
66 | EMACS = @EMACS@ | ||
67 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
68 | GLIB_CONFIG = @GLIB_CONFIG@ | ||
69 | GLIB_LIBS = @GLIB_LIBS@ | ||
70 | LD = @LD@ | ||
71 | LIBTOOL = @LIBTOOL@ | ||
72 | LN_S = @LN_S@ | ||
73 | MAINT = @MAINT@ | ||
74 | MAKEINFO = @MAKEINFO@ | ||
75 | NM = @NM@ | ||
76 | OBJDUMP = @OBJDUMP@ | ||
77 | PACKAGE = @PACKAGE@ | ||
78 | RANLIB = @RANLIB@ | ||
79 | VERSION = @VERSION@ | ||
80 | top_srcdir_absolute = @top_srcdir_absolute@ | ||
81 | |||
82 | INCLUDES = $(GLIB_CFLAGS) | ||
83 | |||
84 | noinst_SCRIPTS = edsio-comp | ||
85 | |||
86 | lib_LTLIBRARIES = libedsio.la | ||
87 | |||
88 | noinst_PROGRAMS = edsiotest | ||
89 | |||
90 | edsiotest_SOURCES = edsiotest.c | ||
91 | |||
92 | edsiotest_LDADD = libedsio.la $(GLIB_LIBS) | ||
93 | |||
94 | noinst_HEADERS = maketime.h partime.h | ||
95 | |||
96 | include_HEADERS = edsio.h edsio_edsio.h | ||
97 | |||
98 | libedsio_la_LIBADD = $(GLIB_LIBS) | ||
99 | |||
100 | libedsio_la_SOURCES = library.c simple.c edsio.c edsio_edsio.c sha.c md5c.c fh.c generic.c default.c base64.c maketime.c partime.c | ||
101 | |||
102 | |||
103 | EXTRA_DIST = edsio.el edsio.ser $(SER_OUT1) edsio-comp.in edsio.prj stamp-ser1 | ||
104 | |||
105 | SER_OUT1 = edsio_edsio.c edsio_edsio.h | ||
106 | |||
107 | BUILT_SOURCES = edsio_edsio.c | ||
108 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
109 | CONFIG_HEADER = ../config.h | ||
110 | CONFIG_CLEAN_FILES = edsio-comp | ||
111 | LTLIBRARIES = $(lib_LTLIBRARIES) | ||
112 | |||
113 | |||
114 | DEFS = @DEFS@ -I. -I$(srcdir) -I.. | ||
115 | CPPFLAGS = @CPPFLAGS@ | ||
116 | LDFLAGS = @LDFLAGS@ | ||
117 | LIBS = @LIBS@ | ||
118 | libedsio_la_LDFLAGS = | ||
119 | libedsio_la_DEPENDENCIES = | ||
120 | libedsio_la_OBJECTS = library.lo simple.lo edsio.lo edsio_edsio.lo \ | ||
121 | sha.lo md5c.lo fh.lo generic.lo default.lo base64.lo maketime.lo \ | ||
122 | partime.lo | ||
123 | PROGRAMS = $(noinst_PROGRAMS) | ||
124 | |||
125 | edsiotest_OBJECTS = edsiotest.o | ||
126 | edsiotest_DEPENDENCIES = libedsio.la | ||
127 | edsiotest_LDFLAGS = | ||
128 | SCRIPTS = $(noinst_SCRIPTS) | ||
129 | |||
130 | CFLAGS = @CFLAGS@ | ||
131 | COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
132 | LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
133 | CCLD = $(CC) | ||
134 | LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ | ||
135 | HEADERS = $(include_HEADERS) $(noinst_HEADERS) | ||
136 | |||
137 | DIST_COMMON = Makefile.am Makefile.in edsio-comp.in | ||
138 | |||
139 | |||
140 | DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) | ||
141 | |||
142 | TAR = tar | ||
143 | GZIP_ENV = --best | ||
144 | DEP_FILES = .deps/base64.P .deps/default.P .deps/edsio.P \ | ||
145 | .deps/edsio_edsio.P .deps/edsiotest.P .deps/fh.P .deps/generic.P \ | ||
146 | .deps/library.P .deps/maketime.P .deps/md5c.P .deps/partime.P \ | ||
147 | .deps/sha.P .deps/simple.P | ||
148 | SOURCES = $(libedsio_la_SOURCES) $(edsiotest_SOURCES) | ||
149 | OBJECTS = $(libedsio_la_OBJECTS) $(edsiotest_OBJECTS) | ||
150 | |||
151 | all: all-redirect | ||
152 | .SUFFIXES: | ||
153 | .SUFFIXES: .S .c .lo .o .s | ||
154 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
155 | cd $(top_srcdir) && $(AUTOMAKE) --gnu libedsio/Makefile | ||
156 | |||
157 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) | ||
158 | cd $(top_builddir) \ | ||
159 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | ||
160 | |||
161 | edsio-comp: $(top_builddir)/config.status edsio-comp.in | ||
162 | cd $(top_builddir) && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | ||
163 | |||
164 | mostlyclean-libLTLIBRARIES: | ||
165 | |||
166 | clean-libLTLIBRARIES: | ||
167 | -test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES) | ||
168 | |||
169 | distclean-libLTLIBRARIES: | ||
170 | |||
171 | maintainer-clean-libLTLIBRARIES: | ||
172 | |||
173 | install-libLTLIBRARIES: $(lib_LTLIBRARIES) | ||
174 | @$(NORMAL_INSTALL) | ||
175 | $(mkinstalldirs) $(DESTDIR)$(libdir) | ||
176 | @list='$(lib_LTLIBRARIES)'; for p in $$list; do \ | ||
177 | if test -f $$p; then \ | ||
178 | echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \ | ||
179 | $(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \ | ||
180 | else :; fi; \ | ||
181 | done | ||
182 | |||
183 | uninstall-libLTLIBRARIES: | ||
184 | @$(NORMAL_UNINSTALL) | ||
185 | list='$(lib_LTLIBRARIES)'; for p in $$list; do \ | ||
186 | $(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \ | ||
187 | done | ||
188 | |||
189 | .s.o: | ||
190 | $(COMPILE) -c $< | ||
191 | |||
192 | .S.o: | ||
193 | $(COMPILE) -c $< | ||
194 | |||
195 | mostlyclean-compile: | ||
196 | -rm -f *.o core *.core | ||
197 | |||
198 | clean-compile: | ||
199 | |||
200 | distclean-compile: | ||
201 | -rm -f *.tab.c | ||
202 | |||
203 | maintainer-clean-compile: | ||
204 | |||
205 | .s.lo: | ||
206 | $(LIBTOOL) --mode=compile $(COMPILE) -c $< | ||
207 | |||
208 | .S.lo: | ||
209 | $(LIBTOOL) --mode=compile $(COMPILE) -c $< | ||
210 | |||
211 | mostlyclean-libtool: | ||
212 | -rm -f *.lo | ||
213 | |||
214 | clean-libtool: | ||
215 | -rm -rf .libs _libs | ||
216 | |||
217 | distclean-libtool: | ||
218 | |||
219 | maintainer-clean-libtool: | ||
220 | |||
221 | libedsio.la: $(libedsio_la_OBJECTS) $(libedsio_la_DEPENDENCIES) | ||
222 | $(LINK) -rpath $(libdir) $(libedsio_la_LDFLAGS) $(libedsio_la_OBJECTS) $(libedsio_la_LIBADD) $(LIBS) | ||
223 | |||
224 | mostlyclean-noinstPROGRAMS: | ||
225 | |||
226 | clean-noinstPROGRAMS: | ||
227 | -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) | ||
228 | |||
229 | distclean-noinstPROGRAMS: | ||
230 | |||
231 | maintainer-clean-noinstPROGRAMS: | ||
232 | |||
233 | edsiotest: $(edsiotest_OBJECTS) $(edsiotest_DEPENDENCIES) | ||
234 | @rm -f edsiotest | ||
235 | $(LINK) $(edsiotest_LDFLAGS) $(edsiotest_OBJECTS) $(edsiotest_LDADD) $(LIBS) | ||
236 | |||
237 | install-includeHEADERS: $(include_HEADERS) | ||
238 | @$(NORMAL_INSTALL) | ||
239 | $(mkinstalldirs) $(DESTDIR)$(includedir) | ||
240 | @list='$(include_HEADERS)'; for p in $$list; do \ | ||
241 | if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \ | ||
242 | echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \ | ||
243 | $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \ | ||
244 | done | ||
245 | |||
246 | uninstall-includeHEADERS: | ||
247 | @$(NORMAL_UNINSTALL) | ||
248 | list='$(include_HEADERS)'; for p in $$list; do \ | ||
249 | rm -f $(DESTDIR)$(includedir)/$$p; \ | ||
250 | done | ||
251 | |||
252 | tags: TAGS | ||
253 | |||
254 | ID: $(HEADERS) $(SOURCES) $(LISP) | ||
255 | list='$(SOURCES) $(HEADERS)'; \ | ||
256 | unique=`for i in $$list; do echo $$i; done | \ | ||
257 | awk ' { files[$$0] = 1; } \ | ||
258 | END { for (i in files) print i; }'`; \ | ||
259 | here=`pwd` && cd $(srcdir) \ | ||
260 | && mkid -f$$here/ID $$unique $(LISP) | ||
261 | |||
262 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) | ||
263 | tags=; \ | ||
264 | here=`pwd`; \ | ||
265 | list='$(SOURCES) $(HEADERS)'; \ | ||
266 | unique=`for i in $$list; do echo $$i; done | \ | ||
267 | awk ' { files[$$0] = 1; } \ | ||
268 | END { for (i in files) print i; }'`; \ | ||
269 | test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ | ||
270 | || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) | ||
271 | |||
272 | mostlyclean-tags: | ||
273 | |||
274 | clean-tags: | ||
275 | |||
276 | distclean-tags: | ||
277 | -rm -f TAGS ID | ||
278 | |||
279 | maintainer-clean-tags: | ||
280 | |||
281 | distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) | ||
282 | |||
283 | subdir = libedsio | ||
284 | |||
285 | distdir: $(DISTFILES) | ||
286 | here=`cd $(top_builddir) && pwd`; \ | ||
287 | top_distdir=`cd $(top_distdir) && pwd`; \ | ||
288 | distdir=`cd $(distdir) && pwd`; \ | ||
289 | cd $(top_srcdir) \ | ||
290 | && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu libedsio/Makefile | ||
291 | @for file in $(DISTFILES); do \ | ||
292 | d=$(srcdir); \ | ||
293 | if test -d $$d/$$file; then \ | ||
294 | cp -pr $$d/$$file $(distdir)/$$file; \ | ||
295 | else \ | ||
296 | test -f $(distdir)/$$file \ | ||
297 | || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ | ||
298 | || cp -p $$d/$$file $(distdir)/$$file || :; \ | ||
299 | fi; \ | ||
300 | done | ||
301 | |||
302 | DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) | ||
303 | |||
304 | -include $(DEP_FILES) | ||
305 | |||
306 | mostlyclean-depend: | ||
307 | |||
308 | clean-depend: | ||
309 | |||
310 | distclean-depend: | ||
311 | -rm -rf .deps | ||
312 | |||
313 | maintainer-clean-depend: | ||
314 | |||
315 | %.o: %.c | ||
316 | @echo '$(COMPILE) -c $<'; \ | ||
317 | $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< | ||
318 | @-cp .deps/$(*F).pp .deps/$(*F).P; \ | ||
319 | tr ' ' '\012' < .deps/$(*F).pp \ | ||
320 | | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ | ||
321 | >> .deps/$(*F).P; \ | ||
322 | rm .deps/$(*F).pp | ||
323 | |||
324 | %.lo: %.c | ||
325 | @echo '$(LTCOMPILE) -c $<'; \ | ||
326 | $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< | ||
327 | @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ | ||
328 | < .deps/$(*F).pp > .deps/$(*F).P; \ | ||
329 | tr ' ' '\012' < .deps/$(*F).pp \ | ||
330 | | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ | ||
331 | >> .deps/$(*F).P; \ | ||
332 | rm -f .deps/$(*F).pp | ||
333 | info-am: | ||
334 | info: info-am | ||
335 | dvi-am: | ||
336 | dvi: dvi-am | ||
337 | check-am: all-am | ||
338 | check: check-am | ||
339 | installcheck-am: | ||
340 | installcheck: installcheck-am | ||
341 | install-exec-am: install-libLTLIBRARIES | ||
342 | install-exec: install-exec-am | ||
343 | |||
344 | install-data-am: install-includeHEADERS | ||
345 | install-data: install-data-am | ||
346 | |||
347 | install-am: all-am | ||
348 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
349 | install: install-am | ||
350 | uninstall-am: uninstall-libLTLIBRARIES uninstall-includeHEADERS | ||
351 | uninstall: uninstall-am | ||
352 | all-am: Makefile $(LTLIBRARIES) $(PROGRAMS) $(SCRIPTS) $(HEADERS) | ||
353 | all-redirect: all-am | ||
354 | install-strip: | ||
355 | $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install | ||
356 | installdirs: | ||
357 | $(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir) | ||
358 | |||
359 | |||
360 | mostlyclean-generic: | ||
361 | |||
362 | clean-generic: | ||
363 | |||
364 | distclean-generic: | ||
365 | -rm -f Makefile $(CONFIG_CLEAN_FILES) | ||
366 | -rm -f config.cache config.log stamp-h stamp-h[0-9]* | ||
367 | |||
368 | maintainer-clean-generic: | ||
369 | -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES) | ||
370 | mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \ | ||
371 | mostlyclean-libtool mostlyclean-noinstPROGRAMS \ | ||
372 | mostlyclean-tags mostlyclean-depend mostlyclean-generic | ||
373 | |||
374 | mostlyclean: mostlyclean-am | ||
375 | |||
376 | clean-am: clean-libLTLIBRARIES clean-compile clean-libtool \ | ||
377 | clean-noinstPROGRAMS clean-tags clean-depend \ | ||
378 | clean-generic mostlyclean-am | ||
379 | |||
380 | clean: clean-am | ||
381 | |||
382 | distclean-am: distclean-libLTLIBRARIES distclean-compile \ | ||
383 | distclean-libtool distclean-noinstPROGRAMS \ | ||
384 | distclean-tags distclean-depend distclean-generic \ | ||
385 | clean-am | ||
386 | -rm -f libtool | ||
387 | |||
388 | distclean: distclean-am | ||
389 | |||
390 | maintainer-clean-am: maintainer-clean-libLTLIBRARIES \ | ||
391 | maintainer-clean-compile maintainer-clean-libtool \ | ||
392 | maintainer-clean-noinstPROGRAMS maintainer-clean-tags \ | ||
393 | maintainer-clean-depend maintainer-clean-generic \ | ||
394 | distclean-am | ||
395 | @echo "This command is intended for maintainers to use;" | ||
396 | @echo "it deletes files that may require special tools to rebuild." | ||
397 | |||
398 | maintainer-clean: maintainer-clean-am | ||
399 | |||
400 | .PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \ | ||
401 | clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \ | ||
402 | uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \ | ||
403 | distclean-compile clean-compile maintainer-clean-compile \ | ||
404 | mostlyclean-libtool distclean-libtool clean-libtool \ | ||
405 | maintainer-clean-libtool mostlyclean-noinstPROGRAMS \ | ||
406 | distclean-noinstPROGRAMS clean-noinstPROGRAMS \ | ||
407 | maintainer-clean-noinstPROGRAMS uninstall-includeHEADERS \ | ||
408 | install-includeHEADERS tags mostlyclean-tags distclean-tags clean-tags \ | ||
409 | maintainer-clean-tags distdir mostlyclean-depend distclean-depend \ | ||
410 | clean-depend maintainer-clean-depend info-am info dvi-am dvi check \ | ||
411 | check-am installcheck-am installcheck install-exec-am install-exec \ | ||
412 | install-data-am install-data install-am install uninstall-am uninstall \ | ||
413 | all-redirect all-am all installdirs mostlyclean-generic \ | ||
414 | distclean-generic clean-generic maintainer-clean-generic clean \ | ||
415 | mostlyclean distclean maintainer-clean | ||
416 | |||
417 | |||
418 | # | ||
419 | # Rules for the generated code | ||
420 | # | ||
421 | |||
422 | stamp-ser1: $(top_srcdir)/libedsio/edsio.el edsio.ser | ||
423 | $(top_srcdir)/libedsio/edsio-comp edsio.ser | ||
424 | touch stamp-ser1 | ||
425 | |||
426 | $(SER_OUT1): stamp-ser1 | ||
427 | |||
428 | # | ||
429 | # | ||
430 | # | ||
431 | |||
432 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
433 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
434 | .NOEXPORT: | ||
diff --git a/xdelta1/libedsio/default.c b/xdelta1/libedsio/default.c index 737b07b..53f47cd 100755 --- a/xdelta1/libedsio/default.c +++ b/xdelta1/libedsio/default.c | |||
@@ -13,7 +13,7 @@ | |||
13 | */ | 13 | */ |
14 | 14 | ||
15 | static gboolean | 15 | static gboolean |
16 | sink_type_default (SerialSink* sink, SerialType type, guint len, gboolean set_allocation) | 16 | sink_type_default (SerialSink* sink, SerialType type, guint32 len, gboolean set_allocation) |
17 | { | 17 | { |
18 | if (! sink->next_uint32 (sink, type)) | 18 | if (! sink->next_uint32 (sink, type)) |
19 | return FALSE; | 19 | return FALSE; |
@@ -104,7 +104,7 @@ void | |||
104 | serializeio_sink_init (SerialSink* it, | 104 | serializeio_sink_init (SerialSink* it, |
105 | gboolean (* sink_type) (SerialSink* sink, | 105 | gboolean (* sink_type) (SerialSink* sink, |
106 | SerialType type, | 106 | SerialType type, |
107 | guint mem_size, | 107 | guint32 mem_size, |
108 | gboolean set_allocation), | 108 | gboolean set_allocation), |
109 | gboolean (* sink_close) (SerialSink* sink), | 109 | gboolean (* sink_close) (SerialSink* sink), |
110 | gboolean (* sink_write) (SerialSink* sink, | 110 | gboolean (* sink_write) (SerialSink* sink, |
diff --git a/xdelta1/libedsio/edsio-comp b/xdelta1/libedsio/edsio-comp index a4dd4a6..ab9e638 100755 --- a/xdelta1/libedsio/edsio-comp +++ b/xdelta1/libedsio/edsio-comp | |||
@@ -19,8 +19,8 @@ | |||
19 | # along with this program; if not, write to the Free Software | 19 | # along with this program; if not, write to the Free Software |
20 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 20 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21 | 21 | ||
22 | EMACS=/usr/bin/xemacs | 22 | EMACS=/usr/bin/emacs |
23 | TOP_SRCDIR=/mnt/polaroid/Polaroid/orbit_linux/home/jmacd/projects/xdelta11/libedsio | 23 | TOP_SRCDIR=/mnt/polaroid/Polaroid/orbit_linux/home/jmacd/projects/xdelta1/libedsio |
24 | 24 | ||
25 | SCRIPT=$TMPDIR/script.$$ | 25 | SCRIPT=$TMPDIR/script.$$ |
26 | 26 | ||
diff --git a/xdelta1/libedsio/edsio.c b/xdelta1/libedsio/edsio.c index 78b259b..74fd7b3 100755 --- a/xdelta1/libedsio/edsio.c +++ b/xdelta1/libedsio/edsio.c | |||
@@ -504,7 +504,7 @@ edsio_md5_hash (gconstpointer v) | |||
504 | guint x = 0; | 504 | guint x = 0; |
505 | gint i, j; | 505 | gint i, j; |
506 | 506 | ||
507 | for (i = 0, j = 0; i < 16; i += 1, j += 1, j %= sizeof (guint)) | 507 | for (i = 0, j = 0; i < 16; i += 1, j += 1, j %= sizeof (guint32)) |
508 | x ^= md5[i] << (8*j); | 508 | x ^= md5[i] << (8*j); |
509 | 509 | ||
510 | return x; | 510 | return x; |
diff --git a/xdelta1/libedsio/edsio.el b/xdelta1/libedsio/edsio.el index a8dfe64..58c3a4e 100755 --- a/xdelta1/libedsio/edsio.el +++ b/xdelta1/libedsio/edsio.el | |||
@@ -1257,7 +1257,7 @@ replacement is as for replace-regexp." | |||
1257 | %s for (i = 0; i < %s_len; i += 1) | 1257 | %s for (i = 0; i < %s_len; i += 1) |
1258 | %s { | 1258 | %s { |
1259 | %s print_spaces (indent_spaces); | 1259 | %s print_spaces (indent_spaces); |
1260 | %s g_print (\"%%d:\n\", i); | 1260 | %s g_print (\"%%d:\\n\", i); |
1261 | %s%s } | 1261 | %s%s } |
1262 | %s} | 1262 | %s} |
1263 | " | 1263 | " |
diff --git a/xdelta1/libedsio/edsio.el.flc b/xdelta1/libedsio/edsio.el.flc deleted file mode 100755 index ee2c72f..0000000 --- a/xdelta1/libedsio/edsio.el.flc +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | |||
2 | (fast-lock-cache-data 3 (quote (15141 . 35224)) (quote nil) (quote nil) (quote (t ("(\\(def\\(\\(advice\\|varalias\\|alias\\|generic\\|macro\\*?\\|method\\|setf\\|subst\\*?\\|un\\*?\\|ine-\\(condition\\|\\(?:derived\\|minor\\)-mode\\|method-combination\\|setf-expander\\|skeleton\\|widget\\|function\\|\\(compiler\\|modify\\|symbol\\)-macro\\)\\)\\|\\(const\\(ant\\)?\\|custom\\|face\\|parameter\\|var\\)\\|\\(class\\|group\\|theme\\|package\\|struct\\|type\\)\\)\\)\\>[ '(]*\\(setf[ ]+\\sw+)\\|\\sw+\\)?" (1 font-lock-keyword-face) (9 (cond ((match-beginning 3) font-lock-function-name-face) ((match-beginning 6) font-lock-variable-name-face) (t font-lock-type-face)) nil t)) ("^;;;###\\(autoload\\)" (1 font-lock-warning-face prepend)) ("(\\(cond\\(?:ition-case\\)?\\|eval-\\(?:a\\(?:fter-load\\|nd-compile\\)\\|when\\(?:-compile\\)?\\)\\|i\\(?:f\\|nline\\)\\|l\\(?:ambda\\|et\\*?\\)\\|prog[*12nv]?\\|save-\\(?:current-buffer\\|excursion\\|match-data\\|restriction\\|selected-window\\|window-excursion\\)\\|track-mouse\\|unwind-protect\\|w\\(?:hile\\|ith-\\(?:current-buffer\\|electric-help\\|output-to-\\(?:string\\|temp-buffer\\)\\|t\\(?:emp-\\(?:buffer\\|\\(?:fil\\|messag\\)e\\)\\|imeout\\)\\)\\)\\)\\>" (1 font-lock-keyword-face)) ("(\\(b\\(?:\\(?:loc\\|rea\\)k\\)\\|c\\(?:ase\\|case\\|error\\|ompiler-let\\|typecase\\)\\|d\\(?:e\\(?:cla\\(?:im\\|re\\)\\|structuring-bind\\)\\|o\\(?:\\*\\|list\\|times\\)?\\)\\|e\\(?:\\(?:type\\)?case\\)\\|flet\\|handler-\\(?:bind\\|case\\)\\|i\\(?:gnore-errors\\|n-package\\)\\|l\\(?:abels\\|exical-let\\*?\\|o\\(?:cally\\|op\\)\\)\\|macrolet\\|proclaim\\|re\\(?:start-\\(?:bind\\|case\\)\\|turn\\(?:-from\\)?\\)\\|symbol-macrolet\\|t\\(?:agbody\\|\\(?:h\\|ypecas\\)e\\)\\|unless\\|when\\)\\>" (1 font-lock-keyword-face)) ("(\\(catch\\|throw\\|featurep\\|provide\\|require\\)\\>[ ']*\\(\\sw+\\)?" (1 font-lock-keyword-face) (2 font-lock-constant-face nil t)) ("(\\(abort\\|assert\\|error\\|signal\\)\\>" (1 font-lock-warning-face)) ("\\\\\\\\\\[\\(\\sw+\\)]" (1 font-lock-constant-face prepend)) ("`\\(\\sw\\sw+\\)'" (1 font-lock-constant-face prepend)) ("\\<:\\sw+\\>" (0 font-lock-builtin-face)) ("\\&\\sw+\\>" (0 font-lock-type-face)) ("(\\(\\(do-\\|with-\\)\\(\\s_\\|\\w\\)*\\)" (1 font-lock-keyword-face)) ("^\\s(" (0 (if (memq (get-text-property (1- (point)) (quote face)) (quote (font-lock-string-face font-lock-doc-face font-lock-comment-face))) font-lock-warning-face) prepend)))) (quote ((font-lock-warning-face 55201 55206 47559 47564 47456 47461 47335 47340 43794 43799 43550 43555 39905 39910 37088 37093 37049 37054 36975 36980 36388 36393 36319 36324 35630 35635 33726 33731 31500 31505 28699 28704 27614 27619 17351 17356 17294 17299 17230 17235 8965 8970 8883 8888 8431 8436 8348 8353) (font-lock-function-name-face 56566 56582 56363 56377 56151 56163 56059 56080 55967 55986 55867 55882 55676 55693 55467 55487 55257 55277 54212 54232 54047 54069 47713 47732 46748 46761 46576 46593 46406 46423 46202 46219 46027 46046 45883 45899 45702 45718 45579 45603 45390 45410 45273 45291 40025 40040 37149 37166 35691 35714 33909 33926 33787 33798 31562 31583 29322 29345 29088 29099 28972 28981 28782 28795 27678 27688 26961 26972 26334 26351 25767 25787 18135 18154 17070 17083 16751 16766 16451 16464 16148 16159 15903 15926 15698 15713 15494 15508 14813 14836 14376 14397 12827 12838 12495 12513 12162 12173 12083 12100 11966 11992 11858 11876 11760 11778 10574 10586 8188 8193 7685 7694 7230 7242 7142 7161 5666 5672 5070 5075 1177 1188 1071 1081) (font-lock-doc-face 14423 14534 751 792 657 717 554 595 365 517) (font-lock-variable-name-face 39998 40011 39973 39983 10544 10560 10511 10530 10479 10497 8155 8174 8119 8139 8080 8103 7645 7673 7583 7600 7523 7539 7462 7474 804 819 729 744 636 650 607 620 529 547 340 358) (font-lock-string-face 56808 56814 56651 56687 56523 56549 56481 56509 56317 56341 56272 56298 56098 56114 56004 56022 55784 55788 55711 55715 55578 55585 55505 55509 55368 55376 55295 55299 55207 55236 55138 55143 55072 55081 54993 54998 54919 54934 54851 54862 54733 54742 54708 54715 54653 54662 54621 54636 54566 54576 54511 54519 54457 54466 54402 54411 54347 54356 54289 54303 54095 54111 53914 53921 53758 53825 53692 53732 53481 53527 53447 53454 53408 53410 53279 53346 53213 53253 53002 53048 52968 52975 52760 52845 52694 52734 52644 52668 52396 52442 52362 52369 52154 52239 52088 52128 52038 52062 51790 51836 51756 51763 51604 51696 51384 51468 51350 51358 51117 51162 50908 50951 50662 50705 50416 50459 50197 50279 50132 50167 50073 50099 49972 50012 49938 49946 49185 49192 49144 49151 49104 49110 49062 49070 48928 48975 48818 48880 48526 48534 48488 48496 48348 48414 47937 47945 47863 47895 47832 47840 47565 47592 47513 47520 47462 47486 47397 47404 47341 47370 47217 47224 46979 46994 46811 46826 46710 46716 46657 46659 46652 46656 46540 46544 46487 46489 46482 46486 46336 46343 46283 46285 46278 46282 46133 46150 46011 46013 45973 46000 45799 45817 45686 45688 45664 45681 45486 45495 45367 45376 45350 45362 45109 45140 45087 45093 45070 45076 44772 44859 44535 44588 44507 44515 44350 44413 44223 44262 44195 44203 44151 44158 44117 44126 44065 44091 43975 44024 43879 43927 43800 43825 43696 43711 43556 43588 43345 43405 43210 43219 43166 43186 43059 43097 43028 43033 42979 42984 42851 42926 42713 42795 42622 42628 42554 42561 42477 42532 42445 42449 42403 42407 42289 42371 42179 42223 42152 42157 41903 42003 41873 41881 41566 41668 41320 41417 41127 41206 41019 41059 40929 40972 40813 40861 40738 40766 40645 40653 40506 40512 39911 39940 39893 39895 39859 39884 39802 39808 39478 39627 39462 39464 39428 39453 39281 39320 39218 39220 39184 39209 39112 39150 38984 39039 38968 38970 38934 38959 38743 38745 38709 38734 38637 38675 38518 38575 38502 38504 38468 38493 38330 38332 38296 38321 38224 38262 38128 38193 38112 38114 38078 38103 37946 37989 37858 37889 37746 37800 37656 37687 37568 37599 37479 37510 37390 37421 37338 37340 37291 37317 37223 37258 37094 37123 37055 37077 36981 37004 36819 36880 36630 36634 36627 36629 36520 36566 36394 36417 36325 36348 36221 36268 36135 36167 36050 36080 35966 35997 35881 35912 35796 35827 35636 35665 35596 35602 35371 35449 35318 35320 35124 35168 34935 34939 34932 34934 34805 34871 34631 34685 34551 34572 34463 34493 34415 34417 34322 34324 34233 34235 34142 34144 34051 34053 33889 33895 33880 33883 33732 33761 33692 33698 33394 33529 33248 33313 33140 33144 33007 33061 32804 32807 32799 32803 32660 32714 32455 32544 32331 32394 32220 32276 32110 32164 31997 32053 31886 31941 31775 31831 31665 31719 31506 31535 31470 31476 31447 31453 31438 31441 31028 31253 30878 30947 30718 30779 30455 30524 30244 30339 30114 30183 29998 30059 29883 29942 29766 29826 29650 29711 29533 29594 29418 29477 29254 29258 29201 29203 29196 29200 28881 28883 28876 28880 28705 28734 28684 28687 28674 28683 28566 28573 28510 28525 28460 28470 28410 28418 28361 28370 28311 28320 28261 28270 28208 28222 28163 28165 28153 28162 28114 28126 27997 28004 27831 27833 27822 27830 27791 27808 27620 27649 27603 27606 27506 27521 27442 27452 27337 27344 27287 27302 27243 27253 27199 27207 27156 27165 27112 27121 27068 27077 27021 27035 26846 26848 26842 26845 26796 26804 26724 26735 26615 26625 26152 26169 26044 26060 25738 25745 25695 25714 25663 25672 25622 25640 25531 25598 25430 25494 25325 25395 25296 25301 25178 25248 25118 25125 25076 25095 25044 25053 25003 25021 24956 24980 24848 24919 24795 24824 24694 24761 24648 24671 24592 24614 24563 24568 24437 24516 24405 24412 24355 24381 24282 24300 24219 24223 24197 24209 24084 24089 23951 24037 23888 23916 23832 23839 23795 23802 23729 23764 23608 23682 23546 23553 23504 23523 23472 23481 23431 23449 23336 23407 23304 23306 23217 23271 23184 23186 23048 23138 23019 23024 22912 22959 22849 22856 22812 22819 22737 22781 22709 22714 22589 22662 22519 22526 22469 22495 22396 22414 22331 22335 22317 22321 22206 22211 22090 22146 22029 22055 21947 21954 21882 21886 21863 21872 21719 21750 21660 21695 21540 21613 21483 21505 21426 21433 21389 21396 21317 21356 21211 21270 21154 21161 21113 21131 21069 21090 21004 21008 20990 20994 20925 20946 20788 20825 20688 20726 20631 20653 20345 20506 20230 20238 20198 20202 20084 20151 19972 20022 19852 19925 19726 19792 19594 19679 19468 19534 19341 19421 19213 19294 19086 19166 18954 19038 18923 18931 18857 18866 18716 18725 18594 18616 18533 18559 18441 18479 18296 18304 17961 18056 17883 17891 17852 17858 17829 17839 17689 17741 17560 17584 17516 17540 17495 17503 17357 17387 17300 17331 17236 17273 16909 16913 16804 16818 16607 16611 16502 16516 16301 16305 16196 16210 16085 16089 15947 15949 15840 15844 15734 15736 15635 15639 15529 15531 15331 15361 14568 14582 14343 14353 14319 14334 14298 14308 14282 14287 14249 14271 14201 14213 14172 14190 14139 14161 14121 14128 14101 14112 14085 14090 14065 14076 14044 14052 14013 14026 13937 13963 13921 13924 13913 13920 12892 13836 12216 12222 12149 12151 12131 12135 12023 12031 11907 11914 11809 11815 11411 11440 11384 11392 10105 10113 10076 10094 10045 10065 9962 10004 9879 9897 9838 9868 9790 9827 9744 9779 9708 9733 9679 9691 9632 9668 9616 9620 9536 9561 9515 9523 9483 9496 9420 9444 9401 9409 9370 9383 9350 9358 9290 9326 9200 9231 9163 9188 9135 9146 9088 9124 9051 9059 8971 8994 8889 8917 8782 8794 8437 8464 8354 8374 7607 7632 7546 7571 7481 7510 7209 7216 7197 7208 6673 6684 6598 6610 6371 6383 6136 6148 4141 4152 3873 3884 3771 3782 3712 3723 3348 3361 3244 3257 1452 1463 1405 1414 1359 1367 1314 1321 1209 1278 820 823 104 107 93 97) (font-lock-constant-face 132 137 48 50 34 36) (font-lock-keyword-face 56602 56604 56560 56565 56413 56419 56388 56390 56357 56362 56204 56210 56179 56181 56145 56150 56053 56058 55961 55966 55861 55866 55755 55761 55670 55675 55549 55555 55461 55466 55339 55345 55251 55256 54770 54776 54243 54247 54206 54211 54041 54046 49842 49845 49821 49827 49492 49496 49404 49408 49375 49381 49331 49337 48748 48762 48728 48734 48133 48147 48042 48048 47997 48000 47982 47988 47739 47742 47707 47712 47537 47539 47445 47447 47421 47425 47324 47326 47295 47299 47167 47169 47148 47153 47006 47010 46954 46959 46835 46849 46781 46784 46742 46747 46691 46697 46626 46628 46570 46575 46521 46527 46456 46458 46400 46405 46317 46323 46252 46254 46196 46201 46111 46113 46058 46061 46021 46026 45916 45918 45877 45882 45780 45786 45696 45701 45615 45617 45573 45578 45467 45473 45384 45389 45303 45305 45267 45272 45048 45050 44701 44715 43935 43937 43837 43839 43751 43753 43635 43638 43598 43602 43505 43507 43300 43303 43285 43290 43229 43232 42994 43000 42636 42650 42596 42602 40660 40674 40518 40522 40450 40452 40358 40364 40289 40295 40101 40105 40080 40085 40047 40050 40019 40024 39989 39997 39964 39972 39839 39841 39408 39410 39164 39166 38914 38916 38843 38849 38689 38691 38448 38450 38378 38384 38276 38278 38058 38060 37346 37350 37271 37273 37143 37148 36753 36759 36615 36617 36455 36461 35753 35757 35685 35690 35058 35064 34920 34922 34740 34746 33965 33969 33903 33908 33781 33786 32942 32948 32787 32789 32596 32602 31622 31626 31556 31561 30653 30659 30391 30397 29375 29379 29316 29321 29235 29241 29149 29151 29082 29087 29022 29028 28966 28971 28915 28921 28829 28831 28776 28781 28662 28664 28141 28143 28047 28053 28011 28015 27810 27812 27709 27711 27672 27677 27378 27384 26984 26988 26955 26960 26806 26808 26661 26665 26488 26492 26459 26462 26439 26444 26379 26382 26328 26333 26089 26093 25917 25921 25888 25891 25868 25873 25808 25811 25761 25766 24308 24310 24145 24151 22422 22424 22267 22273 21817 21823 20891 20897 20269 20283 18830 18836 18689 18695 18362 18376 18166 18169 18129 18134 17897 17911 17663 17669 17199 17203 17161 17164 17147 17153 17091 17094 17064 17069 16827 16841 16774 16777 16745 16750 16525 16539 16472 16475 16445 16450 16219 16233 16166 16169 16142 16147 16053 16055 15964 15969 15939 15942 15897 15902 15808 15810 15744 15749 15726 15729 15692 15697 15603 15605 15539 15544 15521 15524 15488 15493 15251 15253 15169 15172 15101 15106 15080 15094 14962 14965 14875 14877 14855 14869 14807 14812 14705 14710 14591 14605 14538 14541 14370 14375 13968 13970 13862 13865 13842 13844 12821 12826 12668 12672 12524 12527 12489 12494 12315 12318 12278 12280 12196 12200 12156 12161 12077 12082 11960 11965 11852 11857 11754 11759 11325 11329 10928 10933 10722 10725 10568 10573 10537 10543 10504 10510 10472 10478 10408 10414 10330 10336 10220 10222 10175 10177 10119 10121 9449 9451 9023 9028 9001 9015 8924 8926 8823 8825 8675 8679 8392 8394 8318 8320 8182 8187 8146 8154 8110 8118 8071 8079 7679 7684 7636 7644 7574 7582 7514 7522 7453 7461 7409 7414 7319 7322 7224 7229 7136 7141 6782 6784 6742 6747 6716 6719 6572 6575 6070 6076 5966 5972 5679 5682 5657 5665 5061 5069 3655 3659 3637 3642 3518 3520 3120 3122 2976 2982 2904 2906 2763 2769 2692 2694 2149 2155 1631 1633 1616 1621 1574 1577 1492 1494 1282 1285 1168 1176 1062 1070 1044 1060 795 803 720 728 627 635 598 606 520 528 331 339 239 255 140 156 123 130 54 70 39 46 25 32) (font-lock-comment-face 55892 55933 51312 51322 49900 49910 49740 49795 49245 49296 48681 48693 48196 48324 47903 47912 47691 47705 42568 42591 35262 35316 34363 34413 34272 34320 34182 34231 34091 34140 34000 34049 33814 33870 27872 27985 25133 25157 23847 23867 23561 23587 22864 22891 22534 22568 21990 22008 21962 21985 21441 21462 21169 21190 20596 20610 20245 20263 18311 18356 17048 17062 12613 12663 10262 10309 7272 7316 7118 7134 7041 7072 7010 7037 5159 5268 4560 5060 4493 4524 4462 4489 4399 4458 4069 4086 3801 3818 3486 3513 2519 2533 2293 2312 1984 2005 1900 1915 1802 1834 826 1043 320 329 198 238 1 23)))) | ||
diff --git a/xdelta1/libedsio/edsio.h b/xdelta1/libedsio/edsio.h index 22013f7..da77188 100755 --- a/xdelta1/libedsio/edsio.h +++ b/xdelta1/libedsio/edsio.h | |||
@@ -105,7 +105,7 @@ struct _SerialSink { | |||
105 | 105 | ||
106 | /* These are setup by init. | 106 | /* These are setup by init. |
107 | */ | 107 | */ |
108 | gboolean (* sink_type) (SerialSink* sink, SerialType type, guint mem_size, gboolean set_allocation); | 108 | gboolean (* sink_type) (SerialSink* sink, SerialType type, guint32 mem_size, gboolean set_allocation); |
109 | gboolean (* sink_close) (SerialSink* sink); | 109 | gboolean (* sink_close) (SerialSink* sink); |
110 | gboolean (* sink_write) (SerialSink* sink, const guint8 *ptr, guint32 len); | 110 | gboolean (* sink_write) (SerialSink* sink, const guint8 *ptr, guint32 len); |
111 | void (* sink_free) (SerialSink* sink); | 111 | void (* sink_free) (SerialSink* sink); |
@@ -165,7 +165,7 @@ gboolean serializeio_unserialize_generic_acceptable (SerialSource* source | |||
165 | void serializeio_sink_init (SerialSink* sink, | 165 | void serializeio_sink_init (SerialSink* sink, |
166 | gboolean (* sink_type) (SerialSink* sink, | 166 | gboolean (* sink_type) (SerialSink* sink, |
167 | SerialType type, | 167 | SerialType type, |
168 | guint mem_size, | 168 | guint32 mem_size, |
169 | gboolean set_allocation), | 169 | gboolean set_allocation), |
170 | gboolean (* sink_close) (SerialSink* sink), | 170 | gboolean (* sink_close) (SerialSink* sink), |
171 | gboolean (* sink_write) (SerialSink* sink, | 171 | gboolean (* sink_write) (SerialSink* sink, |
diff --git a/xdelta1/libedsio/edsio.prj b/xdelta1/libedsio/edsio.prj deleted file mode 100755 index 6f4f064..0000000 --- a/xdelta1/libedsio/edsio.prj +++ /dev/null | |||
@@ -1,40 +0,0 @@ | |||
1 | ;; -*- Prcs -*- | ||
2 | (Created-By-Prcs-Version 1 2 16) | ||
3 | (Project-Description "") | ||
4 | (Project-Version edsio xdelta11-maint 1) | ||
5 | (Parent-Version edsio 0 47) | ||
6 | (Version-Log "") | ||
7 | (New-Version-Log "") | ||
8 | (Checkin-Time "Mon, 11 Jun 2001 01:56:01 -0700") | ||
9 | (Checkin-Login jmacd) | ||
10 | (Populate-Ignore (".libs" ".deps" "\\.lo$" "\\.o$" "\\.la$" "edsiotest$" "\\.elc$" "CVS" "edsio_edsio\\." "edsio-comp$" "dead.code" "stamp-ser" "Makefile.in" "Makefile")) | ||
11 | (Project-Keywords) | ||
12 | (Files | ||
13 | (Makefile.am (edsio/0_Makefile.a 1.9 644)) | ||
14 | (edsio.el (edsio/1_edsio.el 1.16 644)) | ||
15 | (edsio-comp.in (edsio/2_edsio-comp 1.2 644)) | ||
16 | (edsio.ser (edsio/3_edsio.ser 1.9 644)) | ||
17 | (edsio.h (edsio/7_serializei 1.15.1.1 644)) | ||
18 | (edsio.c (edsio/8_serializei 1.24.1.1 644)) | ||
19 | (sha.c (edsio/9_sha.c 1.2 644)) | ||
20 | (md5c.c (edsio/10_md5c.c 1.1 644)) | ||
21 | (edsiotest.c (edsio/11_edsiotest. 1.6 644)) | ||
22 | (base64.c (edsio/12_base64.c 1.14 644)) | ||
23 | (simple.c (edsio/13_simple.c 1.6 644)) | ||
24 | (default.c (edsio/14_default.c 1.5 644)) | ||
25 | (generic.c (edsio/15_generic.c 1.3 644)) | ||
26 | (fh.c (edsio/16_fh.c 1.3 644)) | ||
27 | (library.c (edsio/21_library.c 1.1 644)) | ||
28 | |||
29 | ;; Sources obtained from RCS, primarily for parsing date formats. | ||
30 | (partime.c (edsio/17_partime.c 1.1 644)) | ||
31 | (maketime.c (edsio/18_maketime.c 1.1 644)) | ||
32 | (maketime.h (edsio/19_maketime.h 1.1 644)) | ||
33 | (partime.h (edsio/20_partime.h 1.1 644)) | ||
34 | |||
35 | ;; Not used | ||
36 | (modtest.c (edsio/22_modtest.c 1.1 644)) | ||
37 | (modtest.ser (edsio/23_modtest.se 1.1 644)) | ||
38 | ) | ||
39 | (Merge-Parents) | ||
40 | (New-Merge-Parents) | ||
diff --git a/xdelta1/libedsio/edsio_edsio.c b/xdelta1/libedsio/edsio_edsio.c index d841dda..01113df 100755 --- a/xdelta1/libedsio/edsio_edsio.c +++ b/xdelta1/libedsio/edsio_edsio.c | |||
@@ -231,22 +231,6 @@ proptest_isset_uint (PropTest* obj, EdsioPropTestUintProperty prop) | |||
231 | return edsio_property_isset ("PropTest", "uint", prop.code, obj); | 231 | return edsio_property_isset ("PropTest", "uint", prop.code, obj); |
232 | } | 232 | } |
233 | 233 | ||
234 | /* EdsioUint Count | ||
235 | */ | ||
236 | |||
237 | guint | ||
238 | serializeio_count_edsiouint (guint32 val) { | ||
239 | guint size = sizeof (SerialEdsioUint); | ||
240 | ALIGN_8 (size); | ||
241 | ALIGN_8 (size); | ||
242 | return size; | ||
243 | } | ||
244 | |||
245 | guint | ||
246 | serializeio_count_edsiouint_obj (SerialEdsioUint const* obj) { | ||
247 | return serializeio_count_edsiouint (obj->val); | ||
248 | } | ||
249 | |||
250 | /* EdsioUint Print | 234 | /* EdsioUint Print |
251 | */ | 235 | */ |
252 | 236 | ||
@@ -331,23 +315,6 @@ bail: | |||
331 | return FALSE; | 315 | return FALSE; |
332 | } | 316 | } |
333 | 317 | ||
334 | /* EdsioBytes Count | ||
335 | */ | ||
336 | |||
337 | guint | ||
338 | serializeio_count_edsiobytes (guint32 val_len, const guint8* val) { | ||
339 | guint size = sizeof (SerialEdsioBytes); | ||
340 | ALIGN_8 (size); | ||
341 | size += val_len; | ||
342 | ALIGN_8 (size); | ||
343 | return size; | ||
344 | } | ||
345 | |||
346 | guint | ||
347 | serializeio_count_edsiobytes_obj (SerialEdsioBytes const* obj) { | ||
348 | return serializeio_count_edsiobytes (obj->val_len, obj->val); | ||
349 | } | ||
350 | |||
351 | /* EdsioBytes Print | 318 | /* EdsioBytes Print |
352 | */ | 319 | */ |
353 | 320 | ||
@@ -432,23 +399,6 @@ bail: | |||
432 | return FALSE; | 399 | return FALSE; |
433 | } | 400 | } |
434 | 401 | ||
435 | /* EdsioString Count | ||
436 | */ | ||
437 | |||
438 | guint | ||
439 | serializeio_count_edsiostring (const gchar* val) { | ||
440 | guint size = sizeof (SerialEdsioString); | ||
441 | ALIGN_8 (size); | ||
442 | size += strlen (val) + 1; | ||
443 | ALIGN_8 (size); | ||
444 | return size; | ||
445 | } | ||
446 | |||
447 | guint | ||
448 | serializeio_count_edsiostring_obj (SerialEdsioString const* obj) { | ||
449 | return serializeio_count_edsiostring (obj->val); | ||
450 | } | ||
451 | |||
452 | /* EdsioString Print | 402 | /* EdsioString Print |
453 | */ | 403 | */ |
454 | 404 | ||
@@ -533,23 +483,6 @@ bail: | |||
533 | return FALSE; | 483 | return FALSE; |
534 | } | 484 | } |
535 | 485 | ||
536 | /* GenericTime Count | ||
537 | */ | ||
538 | |||
539 | guint | ||
540 | serializeio_count_generictime (guint32 seconds, guint32 nanos) { | ||
541 | guint size = sizeof (SerialGenericTime); | ||
542 | ALIGN_8 (size); | ||
543 | ALIGN_8 (size); | ||
544 | ALIGN_8 (size); | ||
545 | return size; | ||
546 | } | ||
547 | |||
548 | guint | ||
549 | serializeio_count_generictime_obj (SerialGenericTime const* obj) { | ||
550 | return serializeio_count_generictime (obj->seconds, obj->nanos); | ||
551 | } | ||
552 | |||
553 | /* GenericTime Print | 486 | /* GenericTime Print |
554 | */ | 487 | */ |
555 | 488 | ||
diff --git a/xdelta1/test/Makefile b/xdelta1/test/Makefile deleted file mode 100644 index 9fb362d..0000000 --- a/xdelta1/test/Makefile +++ /dev/null | |||
@@ -1,338 +0,0 @@ | |||
1 | # Generated automatically from Makefile.in by configure. | ||
2 | # Makefile.in generated automatically by automake 1.4 from Makefile.am | ||
3 | |||
4 | # Copyright (C) 1994, 1995-8, 1999 Free Software Foundation, Inc. | ||
5 | # This Makefile.in is free software; the Free Software Foundation | ||
6 | # gives unlimited permission to copy and/or distribute it, | ||
7 | # with or without modifications, as long as this notice is preserved. | ||
8 | |||
9 | # This program is distributed in the hope that it will be useful, | ||
10 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
11 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
12 | # PARTICULAR PURPOSE. | ||
13 | |||
14 | |||
15 | SHELL = /bin/sh | ||
16 | |||
17 | srcdir = . | ||
18 | top_srcdir = .. | ||
19 | prefix = /usr/local | ||
20 | exec_prefix = ${prefix} | ||
21 | |||
22 | bindir = ${exec_prefix}/bin | ||
23 | sbindir = ${exec_prefix}/sbin | ||
24 | libexecdir = ${exec_prefix}/libexec | ||
25 | datadir = ${prefix}/share | ||
26 | sysconfdir = ${prefix}/etc | ||
27 | sharedstatedir = ${prefix}/com | ||
28 | localstatedir = ${prefix}/var | ||
29 | libdir = ${exec_prefix}/lib | ||
30 | infodir = ${prefix}/info | ||
31 | mandir = ${prefix}/man | ||
32 | includedir = ${prefix}/include | ||
33 | oldincludedir = /usr/include | ||
34 | |||
35 | DESTDIR = | ||
36 | |||
37 | pkgdatadir = $(datadir)/xdelta | ||
38 | pkglibdir = $(libdir)/xdelta | ||
39 | pkgincludedir = $(includedir)/xdelta | ||
40 | |||
41 | top_builddir = .. | ||
42 | |||
43 | ACLOCAL = aclocal | ||
44 | AUTOCONF = autoconf | ||
45 | AUTOMAKE = automake | ||
46 | AUTOHEADER = autoheader | ||
47 | |||
48 | INSTALL = /usr/bin/install -c | ||
49 | INSTALL_PROGRAM = ${INSTALL} $(AM_INSTALL_PROGRAM_FLAGS) | ||
50 | INSTALL_DATA = ${INSTALL} -m 644 | ||
51 | INSTALL_SCRIPT = ${INSTALL_PROGRAM} | ||
52 | transform = s,x,x, | ||
53 | |||
54 | NORMAL_INSTALL = : | ||
55 | PRE_INSTALL = : | ||
56 | POST_INSTALL = : | ||
57 | NORMAL_UNINSTALL = : | ||
58 | PRE_UNINSTALL = : | ||
59 | POST_UNINSTALL = : | ||
60 | host_alias = i686-pc-linux-gnu | ||
61 | host_triplet = i686-pc-linux-gnu | ||
62 | AS = @AS@ | ||
63 | CC = gcc | ||
64 | CPP = gcc -E | ||
65 | DLLTOOL = @DLLTOOL@ | ||
66 | EMACS = /usr/bin/xemacs | ||
67 | GLIB_CFLAGS = -I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include | ||
68 | GLIB_CONFIG = /usr/local/bin/glib-config | ||
69 | GLIB_LIBS = -L/usr/local/lib -lglib | ||
70 | LD = /usr/i586-pc-linux-gnu/bin/ld | ||
71 | LIBTOOL = $(SHELL) $(top_builddir)/libtool | ||
72 | LN_S = ln | ||
73 | MAINT = # | ||
74 | MAKEINFO = makeinfo | ||
75 | NM = /usr/bin/nm -B | ||
76 | OBJDUMP = @OBJDUMP@ | ||
77 | PACKAGE = xdelta | ||
78 | RANLIB = ranlib | ||
79 | VERSION = 1.1.3 | ||
80 | top_srcdir_absolute = /mnt/polaroid/Polaroid/orbit_linux/home/jmacd/projects/xdelta11 | ||
81 | |||
82 | EXTRA_DIST = xdeltatest.c README.test | ||
83 | |||
84 | INCLUDES = -I$(top_srcdir)/libedsio $(GLIB_CFLAGS) | ||
85 | |||
86 | noinst_PROGRAMS = xdeltatest | ||
87 | |||
88 | xdeltatest_SOURCES = xdeltatest.c | ||
89 | |||
90 | xdeltatest_LDADD = $(top_srcdir)/libxdelta.la $(top_srcdir)/libedsio/libedsio.la -lz $(GLIB_LIBS) | ||
91 | |||
92 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
93 | CONFIG_HEADER = ../config.h | ||
94 | CONFIG_CLEAN_FILES = | ||
95 | PROGRAMS = $(noinst_PROGRAMS) | ||
96 | |||
97 | |||
98 | DEFS = -DHAVE_CONFIG_H -I. -I$(srcdir) -I.. | ||
99 | CPPFLAGS = | ||
100 | LDFLAGS = | ||
101 | LIBS = | ||
102 | xdeltatest_OBJECTS = xdeltatest.o | ||
103 | xdeltatest_DEPENDENCIES = $(top_srcdir)/libxdelta.la \ | ||
104 | $(top_srcdir)/libedsio/libedsio.la | ||
105 | xdeltatest_LDFLAGS = | ||
106 | CFLAGS = -Wall -O3 | ||
107 | COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
108 | LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
109 | CCLD = $(CC) | ||
110 | LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ | ||
111 | DIST_COMMON = Makefile.am Makefile.in | ||
112 | |||
113 | |||
114 | DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) | ||
115 | |||
116 | TAR = tar | ||
117 | GZIP_ENV = --best | ||
118 | DEP_FILES = .deps/xdeltatest.P | ||
119 | SOURCES = $(xdeltatest_SOURCES) | ||
120 | OBJECTS = $(xdeltatest_OBJECTS) | ||
121 | |||
122 | all: all-redirect | ||
123 | .SUFFIXES: | ||
124 | .SUFFIXES: .S .c .lo .o .s | ||
125 | $(srcdir)/Makefile.in: # Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
126 | cd $(top_srcdir) && $(AUTOMAKE) --gnu test/Makefile | ||
127 | |||
128 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) | ||
129 | cd $(top_builddir) \ | ||
130 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | ||
131 | |||
132 | |||
133 | mostlyclean-noinstPROGRAMS: | ||
134 | |||
135 | clean-noinstPROGRAMS: | ||
136 | -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) | ||
137 | |||
138 | distclean-noinstPROGRAMS: | ||
139 | |||
140 | maintainer-clean-noinstPROGRAMS: | ||
141 | |||
142 | .s.o: | ||
143 | $(COMPILE) -c $< | ||
144 | |||
145 | .S.o: | ||
146 | $(COMPILE) -c $< | ||
147 | |||
148 | mostlyclean-compile: | ||
149 | -rm -f *.o core *.core | ||
150 | |||
151 | clean-compile: | ||
152 | |||
153 | distclean-compile: | ||
154 | -rm -f *.tab.c | ||
155 | |||
156 | maintainer-clean-compile: | ||
157 | |||
158 | .s.lo: | ||
159 | $(LIBTOOL) --mode=compile $(COMPILE) -c $< | ||
160 | |||
161 | .S.lo: | ||
162 | $(LIBTOOL) --mode=compile $(COMPILE) -c $< | ||
163 | |||
164 | mostlyclean-libtool: | ||
165 | -rm -f *.lo | ||
166 | |||
167 | clean-libtool: | ||
168 | -rm -rf .libs _libs | ||
169 | |||
170 | distclean-libtool: | ||
171 | |||
172 | maintainer-clean-libtool: | ||
173 | |||
174 | xdeltatest: $(xdeltatest_OBJECTS) $(xdeltatest_DEPENDENCIES) | ||
175 | @rm -f xdeltatest | ||
176 | $(LINK) $(xdeltatest_LDFLAGS) $(xdeltatest_OBJECTS) $(xdeltatest_LDADD) $(LIBS) | ||
177 | |||
178 | tags: TAGS | ||
179 | |||
180 | ID: $(HEADERS) $(SOURCES) $(LISP) | ||
181 | list='$(SOURCES) $(HEADERS)'; \ | ||
182 | unique=`for i in $$list; do echo $$i; done | \ | ||
183 | awk ' { files[$$0] = 1; } \ | ||
184 | END { for (i in files) print i; }'`; \ | ||
185 | here=`pwd` && cd $(srcdir) \ | ||
186 | && mkid -f$$here/ID $$unique $(LISP) | ||
187 | |||
188 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) | ||
189 | tags=; \ | ||
190 | here=`pwd`; \ | ||
191 | list='$(SOURCES) $(HEADERS)'; \ | ||
192 | unique=`for i in $$list; do echo $$i; done | \ | ||
193 | awk ' { files[$$0] = 1; } \ | ||
194 | END { for (i in files) print i; }'`; \ | ||
195 | test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ | ||
196 | || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) | ||
197 | |||
198 | mostlyclean-tags: | ||
199 | |||
200 | clean-tags: | ||
201 | |||
202 | distclean-tags: | ||
203 | -rm -f TAGS ID | ||
204 | |||
205 | maintainer-clean-tags: | ||
206 | |||
207 | distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) | ||
208 | |||
209 | subdir = test | ||
210 | |||
211 | distdir: $(DISTFILES) | ||
212 | here=`cd $(top_builddir) && pwd`; \ | ||
213 | top_distdir=`cd $(top_distdir) && pwd`; \ | ||
214 | distdir=`cd $(distdir) && pwd`; \ | ||
215 | cd $(top_srcdir) \ | ||
216 | && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu test/Makefile | ||
217 | @for file in $(DISTFILES); do \ | ||
218 | d=$(srcdir); \ | ||
219 | if test -d $$d/$$file; then \ | ||
220 | cp -pr $$d/$$file $(distdir)/$$file; \ | ||
221 | else \ | ||
222 | test -f $(distdir)/$$file \ | ||
223 | || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ | ||
224 | || cp -p $$d/$$file $(distdir)/$$file || :; \ | ||
225 | fi; \ | ||
226 | done | ||
227 | |||
228 | DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) | ||
229 | |||
230 | -include $(DEP_FILES) | ||
231 | |||
232 | mostlyclean-depend: | ||
233 | |||
234 | clean-depend: | ||
235 | |||
236 | distclean-depend: | ||
237 | -rm -rf .deps | ||
238 | |||
239 | maintainer-clean-depend: | ||
240 | |||
241 | %.o: %.c | ||
242 | @echo '$(COMPILE) -c $<'; \ | ||
243 | $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< | ||
244 | @-cp .deps/$(*F).pp .deps/$(*F).P; \ | ||
245 | tr ' ' '\012' < .deps/$(*F).pp \ | ||
246 | | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ | ||
247 | >> .deps/$(*F).P; \ | ||
248 | rm .deps/$(*F).pp | ||
249 | |||
250 | %.lo: %.c | ||
251 | @echo '$(LTCOMPILE) -c $<'; \ | ||
252 | $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< | ||
253 | @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ | ||
254 | < .deps/$(*F).pp > .deps/$(*F).P; \ | ||
255 | tr ' ' '\012' < .deps/$(*F).pp \ | ||
256 | | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ | ||
257 | >> .deps/$(*F).P; \ | ||
258 | rm -f .deps/$(*F).pp | ||
259 | info-am: | ||
260 | info: info-am | ||
261 | dvi-am: | ||
262 | dvi: dvi-am | ||
263 | check-am: all-am | ||
264 | check: check-am | ||
265 | installcheck-am: | ||
266 | installcheck: installcheck-am | ||
267 | install-exec-am: | ||
268 | install-exec: install-exec-am | ||
269 | |||
270 | install-data-am: | ||
271 | install-data: install-data-am | ||
272 | |||
273 | install-am: all-am | ||
274 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
275 | install: install-am | ||
276 | uninstall-am: | ||
277 | uninstall: uninstall-am | ||
278 | all-am: Makefile $(PROGRAMS) | ||
279 | all-redirect: all-am | ||
280 | install-strip: | ||
281 | $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install | ||
282 | installdirs: | ||
283 | |||
284 | |||
285 | mostlyclean-generic: | ||
286 | |||
287 | clean-generic: | ||
288 | |||
289 | distclean-generic: | ||
290 | -rm -f Makefile $(CONFIG_CLEAN_FILES) | ||
291 | -rm -f config.cache config.log stamp-h stamp-h[0-9]* | ||
292 | |||
293 | maintainer-clean-generic: | ||
294 | mostlyclean-am: mostlyclean-noinstPROGRAMS mostlyclean-compile \ | ||
295 | mostlyclean-libtool mostlyclean-tags mostlyclean-depend \ | ||
296 | mostlyclean-generic | ||
297 | |||
298 | mostlyclean: mostlyclean-am | ||
299 | |||
300 | clean-am: clean-noinstPROGRAMS clean-compile clean-libtool clean-tags \ | ||
301 | clean-depend clean-generic mostlyclean-am | ||
302 | |||
303 | clean: clean-am | ||
304 | |||
305 | distclean-am: distclean-noinstPROGRAMS distclean-compile \ | ||
306 | distclean-libtool distclean-tags distclean-depend \ | ||
307 | distclean-generic clean-am | ||
308 | -rm -f libtool | ||
309 | |||
310 | distclean: distclean-am | ||
311 | |||
312 | maintainer-clean-am: maintainer-clean-noinstPROGRAMS \ | ||
313 | maintainer-clean-compile maintainer-clean-libtool \ | ||
314 | maintainer-clean-tags maintainer-clean-depend \ | ||
315 | maintainer-clean-generic distclean-am | ||
316 | @echo "This command is intended for maintainers to use;" | ||
317 | @echo "it deletes files that may require special tools to rebuild." | ||
318 | |||
319 | maintainer-clean: maintainer-clean-am | ||
320 | |||
321 | .PHONY: mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \ | ||
322 | clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \ | ||
323 | mostlyclean-compile distclean-compile clean-compile \ | ||
324 | maintainer-clean-compile mostlyclean-libtool distclean-libtool \ | ||
325 | clean-libtool maintainer-clean-libtool tags mostlyclean-tags \ | ||
326 | distclean-tags clean-tags maintainer-clean-tags distdir \ | ||
327 | mostlyclean-depend distclean-depend clean-depend \ | ||
328 | maintainer-clean-depend info-am info dvi-am dvi check check-am \ | ||
329 | installcheck-am installcheck install-exec-am install-exec \ | ||
330 | install-data-am install-data install-am install uninstall-am uninstall \ | ||
331 | all-redirect all-am all installdirs mostlyclean-generic \ | ||
332 | distclean-generic clean-generic maintainer-clean-generic clean \ | ||
333 | mostlyclean distclean maintainer-clean | ||
334 | |||
335 | |||
336 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
337 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
338 | .NOEXPORT: | ||
diff --git a/xdelta1/test/Makefile.in b/xdelta1/test/Makefile.in deleted file mode 100755 index 31e8f89..0000000 --- a/xdelta1/test/Makefile.in +++ /dev/null | |||
@@ -1,338 +0,0 @@ | |||
1 | # Makefile.in generated automatically by automake 1.4-p6 from Makefile.am | ||
2 | |||
3 | # Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc. | ||
4 | # This Makefile.in is free software; the Free Software Foundation | ||
5 | # gives unlimited permission to copy and/or distribute it, | ||
6 | # with or without modifications, as long as this notice is preserved. | ||
7 | |||
8 | # This program is distributed in the hope that it will be useful, | ||
9 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
10 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
11 | # PARTICULAR PURPOSE. | ||
12 | |||
13 | |||
14 | SHELL = @SHELL@ | ||
15 | |||
16 | srcdir = @srcdir@ | ||
17 | top_srcdir = @top_srcdir@ | ||
18 | VPATH = @srcdir@ | ||
19 | prefix = @prefix@ | ||
20 | exec_prefix = @exec_prefix@ | ||
21 | |||
22 | bindir = @bindir@ | ||
23 | sbindir = @sbindir@ | ||
24 | libexecdir = @libexecdir@ | ||
25 | datadir = @datadir@ | ||
26 | sysconfdir = @sysconfdir@ | ||
27 | sharedstatedir = @sharedstatedir@ | ||
28 | localstatedir = @localstatedir@ | ||
29 | libdir = @libdir@ | ||
30 | infodir = @infodir@ | ||
31 | mandir = @mandir@ | ||
32 | includedir = @includedir@ | ||
33 | oldincludedir = /usr/include | ||
34 | |||
35 | DESTDIR = | ||
36 | |||
37 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
38 | pkglibdir = $(libdir)/@PACKAGE@ | ||
39 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
40 | |||
41 | top_builddir = .. | ||
42 | |||
43 | ACLOCAL = @ACLOCAL@ | ||
44 | AUTOCONF = @AUTOCONF@ | ||
45 | AUTOMAKE = @AUTOMAKE@ | ||
46 | AUTOHEADER = @AUTOHEADER@ | ||
47 | |||
48 | INSTALL = @INSTALL@ | ||
49 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS) | ||
50 | INSTALL_DATA = @INSTALL_DATA@ | ||
51 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
52 | transform = @program_transform_name@ | ||
53 | |||
54 | NORMAL_INSTALL = : | ||
55 | PRE_INSTALL = : | ||
56 | POST_INSTALL = : | ||
57 | NORMAL_UNINSTALL = : | ||
58 | PRE_UNINSTALL = : | ||
59 | POST_UNINSTALL = : | ||
60 | host_alias = @host_alias@ | ||
61 | host_triplet = @host@ | ||
62 | AS = @AS@ | ||
63 | CC = @CC@ | ||
64 | CPP = @CPP@ | ||
65 | DLLTOOL = @DLLTOOL@ | ||
66 | EMACS = @EMACS@ | ||
67 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
68 | GLIB_CONFIG = @GLIB_CONFIG@ | ||
69 | GLIB_LIBS = @GLIB_LIBS@ | ||
70 | LD = @LD@ | ||
71 | LIBTOOL = @LIBTOOL@ | ||
72 | LN_S = @LN_S@ | ||
73 | MAINT = @MAINT@ | ||
74 | MAKEINFO = @MAKEINFO@ | ||
75 | NM = @NM@ | ||
76 | OBJDUMP = @OBJDUMP@ | ||
77 | PACKAGE = @PACKAGE@ | ||
78 | RANLIB = @RANLIB@ | ||
79 | VERSION = @VERSION@ | ||
80 | top_srcdir_absolute = @top_srcdir_absolute@ | ||
81 | |||
82 | EXTRA_DIST = xdeltatest.c README.test | ||
83 | |||
84 | INCLUDES = -I$(top_srcdir)/libedsio $(GLIB_CFLAGS) | ||
85 | |||
86 | noinst_PROGRAMS = xdeltatest | ||
87 | |||
88 | xdeltatest_SOURCES = xdeltatest.c | ||
89 | |||
90 | xdeltatest_LDADD = $(top_srcdir)/libxdelta.la $(top_srcdir)/libedsio/libedsio.la -lz $(GLIB_LIBS) | ||
91 | |||
92 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs | ||
93 | CONFIG_HEADER = ../config.h | ||
94 | CONFIG_CLEAN_FILES = | ||
95 | PROGRAMS = $(noinst_PROGRAMS) | ||
96 | |||
97 | |||
98 | DEFS = @DEFS@ -I. -I$(srcdir) -I.. | ||
99 | CPPFLAGS = @CPPFLAGS@ | ||
100 | LDFLAGS = @LDFLAGS@ | ||
101 | LIBS = @LIBS@ | ||
102 | xdeltatest_OBJECTS = xdeltatest.o | ||
103 | xdeltatest_DEPENDENCIES = $(top_srcdir)/libxdelta.la \ | ||
104 | $(top_srcdir)/libedsio/libedsio.la | ||
105 | xdeltatest_LDFLAGS = | ||
106 | CFLAGS = @CFLAGS@ | ||
107 | COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
108 | LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
109 | CCLD = $(CC) | ||
110 | LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ | ||
111 | DIST_COMMON = Makefile.am Makefile.in | ||
112 | |||
113 | |||
114 | DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST) | ||
115 | |||
116 | TAR = tar | ||
117 | GZIP_ENV = --best | ||
118 | DEP_FILES = .deps/xdeltatest.P | ||
119 | SOURCES = $(xdeltatest_SOURCES) | ||
120 | OBJECTS = $(xdeltatest_OBJECTS) | ||
121 | |||
122 | all: all-redirect | ||
123 | .SUFFIXES: | ||
124 | .SUFFIXES: .S .c .lo .o .s | ||
125 | $(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4) | ||
126 | cd $(top_srcdir) && $(AUTOMAKE) --gnu test/Makefile | ||
127 | |||
128 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES) | ||
129 | cd $(top_builddir) \ | ||
130 | && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status | ||
131 | |||
132 | |||
133 | mostlyclean-noinstPROGRAMS: | ||
134 | |||
135 | clean-noinstPROGRAMS: | ||
136 | -test -z "$(noinst_PROGRAMS)" || rm -f $(noinst_PROGRAMS) | ||
137 | |||
138 | distclean-noinstPROGRAMS: | ||
139 | |||
140 | maintainer-clean-noinstPROGRAMS: | ||
141 | |||
142 | .s.o: | ||
143 | $(COMPILE) -c $< | ||
144 | |||
145 | .S.o: | ||
146 | $(COMPILE) -c $< | ||
147 | |||
148 | mostlyclean-compile: | ||
149 | -rm -f *.o core *.core | ||
150 | |||
151 | clean-compile: | ||
152 | |||
153 | distclean-compile: | ||
154 | -rm -f *.tab.c | ||
155 | |||
156 | maintainer-clean-compile: | ||
157 | |||
158 | .s.lo: | ||
159 | $(LIBTOOL) --mode=compile $(COMPILE) -c $< | ||
160 | |||
161 | .S.lo: | ||
162 | $(LIBTOOL) --mode=compile $(COMPILE) -c $< | ||
163 | |||
164 | mostlyclean-libtool: | ||
165 | -rm -f *.lo | ||
166 | |||
167 | clean-libtool: | ||
168 | -rm -rf .libs _libs | ||
169 | |||
170 | distclean-libtool: | ||
171 | |||
172 | maintainer-clean-libtool: | ||
173 | |||
174 | xdeltatest: $(xdeltatest_OBJECTS) $(xdeltatest_DEPENDENCIES) | ||
175 | @rm -f xdeltatest | ||
176 | $(LINK) $(xdeltatest_LDFLAGS) $(xdeltatest_OBJECTS) $(xdeltatest_LDADD) $(LIBS) | ||
177 | |||
178 | tags: TAGS | ||
179 | |||
180 | ID: $(HEADERS) $(SOURCES) $(LISP) | ||
181 | list='$(SOURCES) $(HEADERS)'; \ | ||
182 | unique=`for i in $$list; do echo $$i; done | \ | ||
183 | awk ' { files[$$0] = 1; } \ | ||
184 | END { for (i in files) print i; }'`; \ | ||
185 | here=`pwd` && cd $(srcdir) \ | ||
186 | && mkid -f$$here/ID $$unique $(LISP) | ||
187 | |||
188 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP) | ||
189 | tags=; \ | ||
190 | here=`pwd`; \ | ||
191 | list='$(SOURCES) $(HEADERS)'; \ | ||
192 | unique=`for i in $$list; do echo $$i; done | \ | ||
193 | awk ' { files[$$0] = 1; } \ | ||
194 | END { for (i in files) print i; }'`; \ | ||
195 | test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \ | ||
196 | || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS) | ||
197 | |||
198 | mostlyclean-tags: | ||
199 | |||
200 | clean-tags: | ||
201 | |||
202 | distclean-tags: | ||
203 | -rm -f TAGS ID | ||
204 | |||
205 | maintainer-clean-tags: | ||
206 | |||
207 | distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) | ||
208 | |||
209 | subdir = test | ||
210 | |||
211 | distdir: $(DISTFILES) | ||
212 | here=`cd $(top_builddir) && pwd`; \ | ||
213 | top_distdir=`cd $(top_distdir) && pwd`; \ | ||
214 | distdir=`cd $(distdir) && pwd`; \ | ||
215 | cd $(top_srcdir) \ | ||
216 | && $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu test/Makefile | ||
217 | @for file in $(DISTFILES); do \ | ||
218 | d=$(srcdir); \ | ||
219 | if test -d $$d/$$file; then \ | ||
220 | cp -pr $$d/$$file $(distdir)/$$file; \ | ||
221 | else \ | ||
222 | test -f $(distdir)/$$file \ | ||
223 | || ln $$d/$$file $(distdir)/$$file 2> /dev/null \ | ||
224 | || cp -p $$d/$$file $(distdir)/$$file || :; \ | ||
225 | fi; \ | ||
226 | done | ||
227 | |||
228 | DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :) | ||
229 | |||
230 | -include $(DEP_FILES) | ||
231 | |||
232 | mostlyclean-depend: | ||
233 | |||
234 | clean-depend: | ||
235 | |||
236 | distclean-depend: | ||
237 | -rm -rf .deps | ||
238 | |||
239 | maintainer-clean-depend: | ||
240 | |||
241 | %.o: %.c | ||
242 | @echo '$(COMPILE) -c $<'; \ | ||
243 | $(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $< | ||
244 | @-cp .deps/$(*F).pp .deps/$(*F).P; \ | ||
245 | tr ' ' '\012' < .deps/$(*F).pp \ | ||
246 | | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ | ||
247 | >> .deps/$(*F).P; \ | ||
248 | rm .deps/$(*F).pp | ||
249 | |||
250 | %.lo: %.c | ||
251 | @echo '$(LTCOMPILE) -c $<'; \ | ||
252 | $(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $< | ||
253 | @-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \ | ||
254 | < .deps/$(*F).pp > .deps/$(*F).P; \ | ||
255 | tr ' ' '\012' < .deps/$(*F).pp \ | ||
256 | | sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \ | ||
257 | >> .deps/$(*F).P; \ | ||
258 | rm -f .deps/$(*F).pp | ||
259 | info-am: | ||
260 | info: info-am | ||
261 | dvi-am: | ||
262 | dvi: dvi-am | ||
263 | check-am: all-am | ||
264 | check: check-am | ||
265 | installcheck-am: | ||
266 | installcheck: installcheck-am | ||
267 | install-exec-am: | ||
268 | install-exec: install-exec-am | ||
269 | |||
270 | install-data-am: | ||
271 | install-data: install-data-am | ||
272 | |||
273 | install-am: all-am | ||
274 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
275 | install: install-am | ||
276 | uninstall-am: | ||
277 | uninstall: uninstall-am | ||
278 | all-am: Makefile $(PROGRAMS) | ||
279 | all-redirect: all-am | ||
280 | install-strip: | ||
281 | $(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install | ||
282 | installdirs: | ||
283 | |||
284 | |||
285 | mostlyclean-generic: | ||
286 | |||
287 | clean-generic: | ||
288 | |||
289 | distclean-generic: | ||
290 | -rm -f Makefile $(CONFIG_CLEAN_FILES) | ||
291 | -rm -f config.cache config.log stamp-h stamp-h[0-9]* | ||
292 | |||
293 | maintainer-clean-generic: | ||
294 | mostlyclean-am: mostlyclean-noinstPROGRAMS mostlyclean-compile \ | ||
295 | mostlyclean-libtool mostlyclean-tags mostlyclean-depend \ | ||
296 | mostlyclean-generic | ||
297 | |||
298 | mostlyclean: mostlyclean-am | ||
299 | |||
300 | clean-am: clean-noinstPROGRAMS clean-compile clean-libtool clean-tags \ | ||
301 | clean-depend clean-generic mostlyclean-am | ||
302 | |||
303 | clean: clean-am | ||
304 | |||
305 | distclean-am: distclean-noinstPROGRAMS distclean-compile \ | ||
306 | distclean-libtool distclean-tags distclean-depend \ | ||
307 | distclean-generic clean-am | ||
308 | -rm -f libtool | ||
309 | |||
310 | distclean: distclean-am | ||
311 | |||
312 | maintainer-clean-am: maintainer-clean-noinstPROGRAMS \ | ||
313 | maintainer-clean-compile maintainer-clean-libtool \ | ||
314 | maintainer-clean-tags maintainer-clean-depend \ | ||
315 | maintainer-clean-generic distclean-am | ||
316 | @echo "This command is intended for maintainers to use;" | ||
317 | @echo "it deletes files that may require special tools to rebuild." | ||
318 | |||
319 | maintainer-clean: maintainer-clean-am | ||
320 | |||
321 | .PHONY: mostlyclean-noinstPROGRAMS distclean-noinstPROGRAMS \ | ||
322 | clean-noinstPROGRAMS maintainer-clean-noinstPROGRAMS \ | ||
323 | mostlyclean-compile distclean-compile clean-compile \ | ||
324 | maintainer-clean-compile mostlyclean-libtool distclean-libtool \ | ||
325 | clean-libtool maintainer-clean-libtool tags mostlyclean-tags \ | ||
326 | distclean-tags clean-tags maintainer-clean-tags distdir \ | ||
327 | mostlyclean-depend distclean-depend clean-depend \ | ||
328 | maintainer-clean-depend info-am info dvi-am dvi check check-am \ | ||
329 | installcheck-am installcheck install-exec-am install-exec \ | ||
330 | install-data-am install-data install-am install uninstall-am uninstall \ | ||
331 | all-redirect all-am all installdirs mostlyclean-generic \ | ||
332 | distclean-generic clean-generic maintainer-clean-generic clean \ | ||
333 | mostlyclean distclean maintainer-clean | ||
334 | |||
335 | |||
336 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
337 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
338 | .NOEXPORT: | ||
diff --git a/xdelta1/test/xdeltatest.c b/xdelta1/test/xdeltatest.c index 3c87e03..fc46307 100755 --- a/xdelta1/test/xdeltatest.c +++ b/xdelta1/test/xdeltatest.c | |||
@@ -20,7 +20,7 @@ | |||
20 | * | 20 | * |
21 | * Author: Josh MacDonald <jmacd@CS.Berkeley.EDU> | 21 | * Author: Josh MacDonald <jmacd@CS.Berkeley.EDU> |
22 | * | 22 | * |
23 | * $Id: xdeltatest.c 1.6 Fri, 29 Jun 2001 06:01:08 -0700 jmacd $ | 23 | * $Id: xdeltatest.c 1.7.1.1 Sat, 27 Jan 2007 17:53:47 -0800 jmacd $ |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include <sys/param.h> | 26 | #include <sys/param.h> |
diff --git a/xdelta1/xd_edsio.c b/xdelta1/xd_edsio.c index 450320c..9e5c9ae 100755 --- a/xdelta1/xd_edsio.c +++ b/xdelta1/xd_edsio.c | |||
@@ -66,24 +66,7 @@ xd_edsio_init (void) | |||
66 | edsio_library_register (3, "xd"); | 66 | edsio_library_register (3, "xd"); |
67 | result = TRUE; | 67 | result = TRUE; |
68 | return TRUE; | 68 | return TRUE; |
69 | } | 69 | }; |
70 | |||
71 | /* XdeltaChecksum Count | ||
72 | */ | ||
73 | |||
74 | guint | ||
75 | serializeio_count_xdeltachecksum (guint16 high, guint16 low) { | ||
76 | guint size = sizeof (SerialXdeltaChecksum); | ||
77 | ALIGN_8 (size); | ||
78 | ALIGN_8 (size); | ||
79 | ALIGN_8 (size); | ||
80 | return size; | ||
81 | } | ||
82 | |||
83 | guint | ||
84 | serializeio_count_xdeltachecksum_obj (SerialXdeltaChecksum const* obj) { | ||
85 | return serializeio_count_xdeltachecksum (obj->high, obj->low); | ||
86 | } | ||
87 | 70 | ||
88 | /* XdeltaChecksum Print | 71 | /* XdeltaChecksum Print |
89 | */ | 72 | */ |
@@ -174,31 +157,6 @@ bail: | |||
174 | return FALSE; | 157 | return FALSE; |
175 | } | 158 | } |
176 | 159 | ||
177 | /* XdeltaIndex Count | ||
178 | */ | ||
179 | |||
180 | guint | ||
181 | serializeio_count_xdeltaindex (guint32 file_len, const guint8 file_md5[16], guint32 index_len, SerialXdeltaChecksum const* index) { | ||
182 | guint size = sizeof (SerialXdeltaIndex); | ||
183 | ALIGN_8 (size); | ||
184 | ALIGN_8 (size); | ||
185 | ALIGN_8 (size); | ||
186 | { | ||
187 | gint i; | ||
188 | for (i = 0; i < index_len; i += 1) | ||
189 | { | ||
190 | size += serializeio_count_xdeltachecksum_obj (& (index[i])); | ||
191 | } | ||
192 | } | ||
193 | ALIGN_8 (size); | ||
194 | return size; | ||
195 | } | ||
196 | |||
197 | guint | ||
198 | serializeio_count_xdeltaindex_obj (SerialXdeltaIndex const* obj) { | ||
199 | return serializeio_count_xdeltaindex (obj->file_len, obj->file_md5, obj->index_len, obj->index); | ||
200 | } | ||
201 | |||
202 | /* XdeltaIndex Print | 160 | /* XdeltaIndex Print |
203 | */ | 161 | */ |
204 | 162 | ||
@@ -220,7 +178,7 @@ serializeio_print_xdeltaindex_obj (SerialXdeltaIndex* obj, guint indent_spaces) | |||
220 | for (i = 0; i < obj->index_len; i += 1) | 178 | for (i = 0; i < obj->index_len; i += 1) |
221 | { | 179 | { |
222 | print_spaces (indent_spaces); | 180 | print_spaces (indent_spaces); |
223 | g_print ("%d: ", i); | 181 | g_print ("%d:\n", i); |
224 | print_spaces (indent_spaces); | 182 | print_spaces (indent_spaces); |
225 | serializeio_print_xdeltachecksum_obj (& (obj->index[i]), indent_spaces + 2); | 183 | serializeio_print_xdeltachecksum_obj (& (obj->index[i]), indent_spaces + 2); |
226 | print_spaces (indent_spaces); | 184 | print_spaces (indent_spaces); |
@@ -321,27 +279,6 @@ bail: | |||
321 | return FALSE; | 279 | return FALSE; |
322 | } | 280 | } |
323 | 281 | ||
324 | /* XdeltaSourceInfo Count | ||
325 | */ | ||
326 | |||
327 | guint | ||
328 | serializeio_count_xdeltasourceinfo (const gchar* name, const guint8 md5[16], guint32 len, gboolean isdata, gboolean sequential) { | ||
329 | guint size = sizeof (SerialXdeltaSourceInfo); | ||
330 | ALIGN_8 (size); | ||
331 | size += strlen (name) + 1; | ||
332 | ALIGN_8 (size); | ||
333 | ALIGN_8 (size); | ||
334 | ALIGN_8 (size); | ||
335 | ALIGN_8 (size); | ||
336 | ALIGN_8 (size); | ||
337 | return size; | ||
338 | } | ||
339 | |||
340 | guint | ||
341 | serializeio_count_xdeltasourceinfo_obj (SerialXdeltaSourceInfo const* obj) { | ||
342 | return serializeio_count_xdeltasourceinfo (obj->name, obj->md5, obj->len, obj->isdata, obj->sequential); | ||
343 | } | ||
344 | |||
345 | /* XdeltaSourceInfo Print | 282 | /* XdeltaSourceInfo Print |
346 | */ | 283 | */ |
347 | 284 | ||
@@ -446,40 +383,6 @@ bail: | |||
446 | return FALSE; | 383 | return FALSE; |
447 | } | 384 | } |
448 | 385 | ||
449 | /* XdeltaControl Count | ||
450 | */ | ||
451 | |||
452 | guint | ||
453 | serializeio_count_xdeltacontrol (const guint8 to_md5[16], guint32 to_len, gboolean has_data, guint32 source_info_len, SerialXdeltaSourceInfo* const* source_info, guint32 inst_len, SerialXdeltaInstruction const* inst) { | ||
454 | guint size = sizeof (SerialXdeltaControl); | ||
455 | ALIGN_8 (size); | ||
456 | ALIGN_8 (size); | ||
457 | ALIGN_8 (size); | ||
458 | ALIGN_8 (size); | ||
459 | { | ||
460 | gint i; | ||
461 | for (i = 0; i < source_info_len; i += 1) | ||
462 | { | ||
463 | size += serializeio_count_xdeltasourceinfo_obj ((source_info[i])) + sizeof (void*); | ||
464 | } | ||
465 | } | ||
466 | ALIGN_8 (size); | ||
467 | { | ||
468 | gint i; | ||
469 | for (i = 0; i < inst_len; i += 1) | ||
470 | { | ||
471 | size += serializeio_count_xdeltainstruction_obj (& (inst[i])); | ||
472 | } | ||
473 | } | ||
474 | ALIGN_8 (size); | ||
475 | return size; | ||
476 | } | ||
477 | |||
478 | guint | ||
479 | serializeio_count_xdeltacontrol_obj (SerialXdeltaControl const* obj) { | ||
480 | return serializeio_count_xdeltacontrol (obj->to_md5, obj->to_len, obj->has_data, obj->source_info_len, obj->source_info, obj->inst_len, obj->inst); | ||
481 | } | ||
482 | |||
483 | /* XdeltaControl Print | 386 | /* XdeltaControl Print |
484 | */ | 387 | */ |
485 | 388 | ||
@@ -504,7 +407,7 @@ serializeio_print_xdeltacontrol_obj (SerialXdeltaControl* obj, guint indent_spac | |||
504 | for (i = 0; i < obj->source_info_len; i += 1) | 407 | for (i = 0; i < obj->source_info_len; i += 1) |
505 | { | 408 | { |
506 | print_spaces (indent_spaces); | 409 | print_spaces (indent_spaces); |
507 | g_print ("%d: ", i); | 410 | g_print ("%d:\n", i); |
508 | print_spaces (indent_spaces); | 411 | print_spaces (indent_spaces); |
509 | serializeio_print_xdeltasourceinfo_obj ((obj->source_info[i]), indent_spaces + 2); | 412 | serializeio_print_xdeltasourceinfo_obj ((obj->source_info[i]), indent_spaces + 2); |
510 | print_spaces (indent_spaces); | 413 | print_spaces (indent_spaces); |
@@ -520,7 +423,7 @@ serializeio_print_xdeltacontrol_obj (SerialXdeltaControl* obj, guint indent_spac | |||
520 | for (i = 0; i < obj->inst_len; i += 1) | 423 | for (i = 0; i < obj->inst_len; i += 1) |
521 | { | 424 | { |
522 | print_spaces (indent_spaces); | 425 | print_spaces (indent_spaces); |
523 | g_print ("%d: ", i); | 426 | g_print ("%d:\n", i); |
524 | print_spaces (indent_spaces); | 427 | print_spaces (indent_spaces); |
525 | serializeio_print_xdeltainstruction_obj (& (obj->inst[i]), indent_spaces + 2); | 428 | serializeio_print_xdeltainstruction_obj (& (obj->inst[i]), indent_spaces + 2); |
526 | print_spaces (indent_spaces); | 429 | print_spaces (indent_spaces); |
@@ -640,24 +543,6 @@ bail: | |||
640 | return FALSE; | 543 | return FALSE; |
641 | } | 544 | } |
642 | 545 | ||
643 | /* XdeltaInstruction Count | ||
644 | */ | ||
645 | |||
646 | guint | ||
647 | serializeio_count_xdeltainstruction (guint32 index, guint32 offset, guint32 length) { | ||
648 | guint size = sizeof (SerialXdeltaInstruction); | ||
649 | ALIGN_8 (size); | ||
650 | ALIGN_8 (size); | ||
651 | ALIGN_8 (size); | ||
652 | ALIGN_8 (size); | ||
653 | return size; | ||
654 | } | ||
655 | |||
656 | guint | ||
657 | serializeio_count_xdeltainstruction_obj (SerialXdeltaInstruction const* obj) { | ||
658 | return serializeio_count_xdeltainstruction (obj->index, obj->offset, obj->length); | ||
659 | } | ||
660 | |||
661 | /* XdeltaInstruction Print | 546 | /* XdeltaInstruction Print |
662 | */ | 547 | */ |
663 | 548 | ||
@@ -752,24 +637,6 @@ bail: | |||
752 | return FALSE; | 637 | return FALSE; |
753 | } | 638 | } |
754 | 639 | ||
755 | /* RsyncIndexElt Count | ||
756 | */ | ||
757 | |||
758 | guint | ||
759 | serializeio_count_rsyncindexelt (const guint8 md5[16], SerialXdeltaChecksum const* cksum) { | ||
760 | guint size = sizeof (SerialRsyncIndexElt); | ||
761 | ALIGN_8 (size); | ||
762 | ALIGN_8 (size); | ||
763 | size += serializeio_count_xdeltachecksum_obj (cksum) - sizeof (SerialXdeltaChecksum); | ||
764 | ALIGN_8 (size); | ||
765 | return size; | ||
766 | } | ||
767 | |||
768 | guint | ||
769 | serializeio_count_rsyncindexelt_obj (SerialRsyncIndexElt const* obj) { | ||
770 | return serializeio_count_rsyncindexelt (obj->md5, &obj->cksum); | ||
771 | } | ||
772 | |||
773 | /* RsyncIndexElt Print | 640 | /* RsyncIndexElt Print |
774 | */ | 641 | */ |
775 | 642 | ||
@@ -863,32 +730,6 @@ bail: | |||
863 | return FALSE; | 730 | return FALSE; |
864 | } | 731 | } |
865 | 732 | ||
866 | /* RsyncIndex Count | ||
867 | */ | ||
868 | |||
869 | guint | ||
870 | serializeio_count_rsyncindex (guint32 seg_len, guint32 file_len, const guint8 file_md5[16], guint32 index_len, SerialRsyncIndexElt const* index) { | ||
871 | guint size = sizeof (SerialRsyncIndex); | ||
872 | ALIGN_8 (size); | ||
873 | ALIGN_8 (size); | ||
874 | ALIGN_8 (size); | ||
875 | ALIGN_8 (size); | ||
876 | { | ||
877 | gint i; | ||
878 | for (i = 0; i < index_len; i += 1) | ||
879 | { | ||
880 | size += serializeio_count_rsyncindexelt_obj (& (index[i])); | ||
881 | } | ||
882 | } | ||
883 | ALIGN_8 (size); | ||
884 | return size; | ||
885 | } | ||
886 | |||
887 | guint | ||
888 | serializeio_count_rsyncindex_obj (SerialRsyncIndex const* obj) { | ||
889 | return serializeio_count_rsyncindex (obj->seg_len, obj->file_len, obj->file_md5, obj->index_len, obj->index); | ||
890 | } | ||
891 | |||
892 | /* RsyncIndex Print | 733 | /* RsyncIndex Print |
893 | */ | 734 | */ |
894 | 735 | ||
@@ -913,7 +754,7 @@ serializeio_print_rsyncindex_obj (SerialRsyncIndex* obj, guint indent_spaces) { | |||
913 | for (i = 0; i < obj->index_len; i += 1) | 754 | for (i = 0; i < obj->index_len; i += 1) |
914 | { | 755 | { |
915 | print_spaces (indent_spaces); | 756 | print_spaces (indent_spaces); |
916 | g_print ("%d: ", i); | 757 | g_print ("%d:\n", i); |
917 | print_spaces (indent_spaces); | 758 | print_spaces (indent_spaces); |
918 | serializeio_print_rsyncindexelt_obj (& (obj->index[i]), indent_spaces + 2); | 759 | serializeio_print_rsyncindexelt_obj (& (obj->index[i]), indent_spaces + 2); |
919 | print_spaces (indent_spaces); | 760 | print_spaces (indent_spaces); |
@@ -1016,24 +857,6 @@ bail: | |||
1016 | return FALSE; | 857 | return FALSE; |
1017 | } | 858 | } |
1018 | 859 | ||
1019 | /* Version0SourceInfo Count | ||
1020 | */ | ||
1021 | |||
1022 | guint | ||
1023 | serializeio_count_version0sourceinfo (const guint8 md5[16], const guint8 real_md5[16], guint32 length) { | ||
1024 | guint size = sizeof (SerialVersion0SourceInfo); | ||
1025 | ALIGN_8 (size); | ||
1026 | ALIGN_8 (size); | ||
1027 | ALIGN_8 (size); | ||
1028 | ALIGN_8 (size); | ||
1029 | return size; | ||
1030 | } | ||
1031 | |||
1032 | guint | ||
1033 | serializeio_count_version0sourceinfo_obj (SerialVersion0SourceInfo const* obj) { | ||
1034 | return serializeio_count_version0sourceinfo (obj->md5, obj->real_md5, obj->length); | ||
1035 | } | ||
1036 | |||
1037 | /* Version0SourceInfo Print | 860 | /* Version0SourceInfo Print |
1038 | */ | 861 | */ |
1039 | 862 | ||
@@ -1128,41 +951,6 @@ bail: | |||
1128 | return FALSE; | 951 | return FALSE; |
1129 | } | 952 | } |
1130 | 953 | ||
1131 | /* Version0Control Count | ||
1132 | */ | ||
1133 | |||
1134 | guint | ||
1135 | serializeio_count_version0control (gboolean normalized, guint32 data_len, SerialVersion0SourceInfo const* to_info, guint32 source_info_len, SerialVersion0SourceInfo* const* source_info, guint32 inst_len, SerialVersion0Instruction const* inst) { | ||
1136 | guint size = sizeof (SerialVersion0Control); | ||
1137 | ALIGN_8 (size); | ||
1138 | ALIGN_8 (size); | ||
1139 | ALIGN_8 (size); | ||
1140 | size += serializeio_count_version0sourceinfo_obj (to_info) - sizeof (SerialVersion0SourceInfo); | ||
1141 | ALIGN_8 (size); | ||
1142 | { | ||
1143 | gint i; | ||
1144 | for (i = 0; i < source_info_len; i += 1) | ||
1145 | { | ||
1146 | size += serializeio_count_version0sourceinfo_obj ((source_info[i])) + sizeof (void*); | ||
1147 | } | ||
1148 | } | ||
1149 | ALIGN_8 (size); | ||
1150 | { | ||
1151 | gint i; | ||
1152 | for (i = 0; i < inst_len; i += 1) | ||
1153 | { | ||
1154 | size += serializeio_count_version0instruction_obj (& (inst[i])); | ||
1155 | } | ||
1156 | } | ||
1157 | ALIGN_8 (size); | ||
1158 | return size; | ||
1159 | } | ||
1160 | |||
1161 | guint | ||
1162 | serializeio_count_version0control_obj (SerialVersion0Control const* obj) { | ||
1163 | return serializeio_count_version0control (obj->normalized, obj->data_len, &obj->to_info, obj->source_info_len, obj->source_info, obj->inst_len, obj->inst); | ||
1164 | } | ||
1165 | |||
1166 | /* Version0Control Print | 954 | /* Version0Control Print |
1167 | */ | 955 | */ |
1168 | 956 | ||
@@ -1191,7 +979,7 @@ serializeio_print_version0control_obj (SerialVersion0Control* obj, guint indent_ | |||
1191 | for (i = 0; i < obj->source_info_len; i += 1) | 979 | for (i = 0; i < obj->source_info_len; i += 1) |
1192 | { | 980 | { |
1193 | print_spaces (indent_spaces); | 981 | print_spaces (indent_spaces); |
1194 | g_print ("%d: ", i); | 982 | g_print ("%d:\n", i); |
1195 | print_spaces (indent_spaces); | 983 | print_spaces (indent_spaces); |
1196 | serializeio_print_version0sourceinfo_obj ((obj->source_info[i]), indent_spaces + 2); | 984 | serializeio_print_version0sourceinfo_obj ((obj->source_info[i]), indent_spaces + 2); |
1197 | print_spaces (indent_spaces); | 985 | print_spaces (indent_spaces); |
@@ -1207,7 +995,7 @@ serializeio_print_version0control_obj (SerialVersion0Control* obj, guint indent_ | |||
1207 | for (i = 0; i < obj->inst_len; i += 1) | 995 | for (i = 0; i < obj->inst_len; i += 1) |
1208 | { | 996 | { |
1209 | print_spaces (indent_spaces); | 997 | print_spaces (indent_spaces); |
1210 | g_print ("%d: ", i); | 998 | g_print ("%d:\n", i); |
1211 | print_spaces (indent_spaces); | 999 | print_spaces (indent_spaces); |
1212 | serializeio_print_version0instruction_obj (& (obj->inst[i]), indent_spaces + 2); | 1000 | serializeio_print_version0instruction_obj (& (obj->inst[i]), indent_spaces + 2); |
1213 | print_spaces (indent_spaces); | 1001 | print_spaces (indent_spaces); |
@@ -1327,23 +1115,6 @@ bail: | |||
1327 | return FALSE; | 1115 | return FALSE; |
1328 | } | 1116 | } |
1329 | 1117 | ||
1330 | /* Version0Instruction Count | ||
1331 | */ | ||
1332 | |||
1333 | guint | ||
1334 | serializeio_count_version0instruction (guint32 offset, guint32 length) { | ||
1335 | guint size = sizeof (SerialVersion0Instruction); | ||
1336 | ALIGN_8 (size); | ||
1337 | ALIGN_8 (size); | ||
1338 | ALIGN_8 (size); | ||
1339 | return size; | ||
1340 | } | ||
1341 | |||
1342 | guint | ||
1343 | serializeio_count_version0instruction_obj (SerialVersion0Instruction const* obj) { | ||
1344 | return serializeio_count_version0instruction (obj->offset, obj->length); | ||
1345 | } | ||
1346 | |||
1347 | /* Version0Instruction Print | 1118 | /* Version0Instruction Print |
1348 | */ | 1119 | */ |
1349 | 1120 | ||
diff --git a/xdelta1/xdelta-config b/xdelta1/xdelta-config deleted file mode 100755 index 06c92c9..0000000 --- a/xdelta1/xdelta-config +++ /dev/null | |||
@@ -1,115 +0,0 @@ | |||
1 | #!/bin/sh | ||
2 | |||
3 | glib_libs="-L/usr/local/lib -lglib" | ||
4 | glib_cflags="-I/usr/local/include/glib-1.2 -I/usr/local/lib/glib/include" | ||
5 | |||
6 | prefix=/usr/local | ||
7 | exec_prefix=${prefix} | ||
8 | exec_prefix_set=no | ||
9 | |||
10 | usage() | ||
11 | { | ||
12 | cat <<EOF | ||
13 | Usage: xdelta-config [OPTIONS] [LIBRARIES] | ||
14 | Options: | ||
15 | [--prefix[=DIR]] | ||
16 | [--exec-prefix[=DIR]] | ||
17 | [--version] | ||
18 | [--libs] | ||
19 | [--cflags] | ||
20 | Libraries: | ||
21 | xdelta | ||
22 | EOF | ||
23 | exit $1 | ||
24 | } | ||
25 | |||
26 | if test $# -eq 0; then | ||
27 | usage 1 1>&2 | ||
28 | fi | ||
29 | |||
30 | lib_xdelta=yes | ||
31 | |||
32 | while test $# -gt 0; do | ||
33 | case "$1" in | ||
34 | -*=*) optarg=`echo "$1" | sed 's/[-_a-zA-Z0-9]*=//'` ;; | ||
35 | *) optarg= ;; | ||
36 | esac | ||
37 | |||
38 | case $1 in | ||
39 | --prefix=*) | ||
40 | prefix=$optarg | ||
41 | if test $exec_prefix_set = no ; then | ||
42 | exec_prefix=$optarg | ||
43 | fi | ||
44 | ;; | ||
45 | --prefix) | ||
46 | echo_prefix=yes | ||
47 | ;; | ||
48 | --exec-prefix=*) | ||
49 | exec_prefix=$optarg | ||
50 | exec_prefix_set=yes | ||
51 | ;; | ||
52 | --exec-prefix) | ||
53 | echo_exec_prefix=yes | ||
54 | ;; | ||
55 | --version) | ||
56 | # $Format: " echo $ReleaseVersion$" $ */ | ||
57 | echo 1.1.3 | ||
58 | exit 0 | ||
59 | ;; | ||
60 | --cflags) | ||
61 | echo_cflags=yes | ||
62 | ;; | ||
63 | --libs) | ||
64 | echo_libs=yes | ||
65 | ;; | ||
66 | xdelta) | ||
67 | lib_xdelta=yes | ||
68 | ;; | ||
69 | *) | ||
70 | usage 1 1>&2 | ||
71 | ;; | ||
72 | esac | ||
73 | shift | ||
74 | done | ||
75 | |||
76 | if test "$echo_prefix" = "yes"; then | ||
77 | echo $prefix | ||
78 | fi | ||
79 | |||
80 | if test "$echo_exec_prefix" = "yes"; then | ||
81 | echo $exec_prefix | ||
82 | fi | ||
83 | |||
84 | if test "$echo_cflags" = "yes"; then | ||
85 | if test ${prefix}/include != /usr/include ; then | ||
86 | includes=-I${prefix}/include | ||
87 | for i in $glib_cflags ; do | ||
88 | if test $i = -I${prefix}/include ; then | ||
89 | includes="" | ||
90 | fi | ||
91 | done | ||
92 | fi | ||
93 | echo $includes $glib_cflags | ||
94 | fi | ||
95 | |||
96 | if test "$echo_libs" = "yes"; then | ||
97 | libdirs=-L${exec_prefix}/lib | ||
98 | libsp="" | ||
99 | if test "$lib_xdelta" = "yes"; then | ||
100 | my_glib_libs= | ||
101 | for i in $glib_libs ; do | ||
102 | if test $i != -L${exec_prefix}/lib ; then | ||
103 | if test -z "$my_glib_libs" ; then | ||
104 | my_glib_libs="$i" | ||
105 | else | ||
106 | my_glib_libs="$my_glib_libs $i" | ||
107 | fi | ||
108 | fi | ||
109 | done | ||
110 | |||
111 | libsp="$libsp -lxdelta -ledsio $my_glib_libs" | ||
112 | fi | ||
113 | |||
114 | echo $libdirs $libsp | ||
115 | fi | ||
diff --git a/xdelta1/xdelta-config.in b/xdelta1/xdelta-config.in index 3226a35..5c5056b 100755 --- a/xdelta1/xdelta-config.in +++ b/xdelta1/xdelta-config.in | |||
@@ -54,7 +54,7 @@ while test $# -gt 0; do | |||
54 | ;; | 54 | ;; |
55 | --version) | 55 | --version) |
56 | # $Format: " echo $ReleaseVersion$" $ */ | 56 | # $Format: " echo $ReleaseVersion$" $ */ |
57 | echo 1.1.3 | 57 | echo 1.1.4 |
58 | exit 0 | 58 | exit 0 |
59 | ;; | 59 | ;; |
60 | --cflags) | 60 | --cflags) |
diff --git a/xdelta1/xdelta.c b/xdelta1/xdelta.c index a6d25b4..3012afc 100755 --- a/xdelta1/xdelta.c +++ b/xdelta1/xdelta.c | |||
@@ -20,7 +20,7 @@ | |||
20 | * | 20 | * |
21 | * Author: Josh MacDonald <jmacd@CS.Berkeley.EDU> | 21 | * Author: Josh MacDonald <jmacd@CS.Berkeley.EDU> |
22 | * | 22 | * |
23 | * $Id: xdelta.c 1.4.1.50.1.2 Fri, 29 Jun 2001 06:01:08 -0700 jmacd $ | 23 | * $Id: xdelta.c 1.4.1.50.1.3 Sun, 24 Feb 2002 11:30:34 -0800 jmacd $ |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #define G_DISABLE_ASSERT | 26 | #define G_DISABLE_ASSERT |
@@ -37,7 +37,7 @@ const guint xdelta_major_version = 1; | |||
37 | /* $Format: "const guint xdelta_minor_version = $ReleaseMinorVersion$;" $ */ | 37 | /* $Format: "const guint xdelta_minor_version = $ReleaseMinorVersion$;" $ */ |
38 | const guint xdelta_minor_version = 1; | 38 | const guint xdelta_minor_version = 1; |
39 | /* $Format: "const guint xdelta_micro_version = $ReleaseMicroVersion$;" $ */ | 39 | /* $Format: "const guint xdelta_micro_version = $ReleaseMicroVersion$;" $ */ |
40 | const guint xdelta_micro_version = 3; | 40 | const guint xdelta_micro_version = 4; |
41 | 41 | ||
42 | /* Control functions. | 42 | /* Control functions. |
43 | */ | 43 | */ |
diff --git a/xdelta1/xdelta.h b/xdelta1/xdelta.h index 7af1ade..dd43792 100755 --- a/xdelta1/xdelta.h +++ b/xdelta1/xdelta.h | |||
@@ -47,7 +47,7 @@ typedef FileHandle XdeltaOutStream; | |||
47 | */ | 47 | */ |
48 | 48 | ||
49 | /* $Format: "#define XDELTA_VERSION \"$ReleaseVersion$\"" $ */ | 49 | /* $Format: "#define XDELTA_VERSION \"$ReleaseVersion$\"" $ */ |
50 | #define XDELTA_VERSION "1.1.3" | 50 | #define XDELTA_VERSION "1.1.4" |
51 | 51 | ||
52 | /* $Format: "#define XDELTA_MAJOR_VERSION $ReleaseMajorVersion$" $ */ | 52 | /* $Format: "#define XDELTA_MAJOR_VERSION $ReleaseMajorVersion$" $ */ |
53 | #define XDELTA_MAJOR_VERSION 1 | 53 | #define XDELTA_MAJOR_VERSION 1 |
@@ -56,7 +56,7 @@ typedef FileHandle XdeltaOutStream; | |||
56 | #define XDELTA_MINOR_VERSION 1 | 56 | #define XDELTA_MINOR_VERSION 1 |
57 | 57 | ||
58 | /* $Format: "#define XDELTA_MICRO_VERSION $ReleaseMicroVersion$" $ */ | 58 | /* $Format: "#define XDELTA_MICRO_VERSION $ReleaseMicroVersion$" $ */ |
59 | #define XDELTA_MICRO_VERSION 3 | 59 | #define XDELTA_MICRO_VERSION 4 |
60 | 60 | ||
61 | extern const guint xdelta_major_version; | 61 | extern const guint xdelta_major_version; |
62 | extern const guint xdelta_minor_version; | 62 | extern const guint xdelta_minor_version; |
diff --git a/xdelta1/xdelta.prj b/xdelta1/xdelta.prj index 1e9d111..02d2416 100755 --- a/xdelta1/xdelta.prj +++ b/xdelta1/xdelta.prj | |||
@@ -1,11 +1,11 @@ | |||
1 | ;; -*- PRCS -*- | 1 | ;; -*- PRCS -*- |
2 | (Created-By-Prcs-Version 1 3 1) | 2 | (Created-By-Prcs-Version 1 3 4) |
3 | (Project-Description "") | 3 | (Project-Description "") |
4 | (Project-Version xdelta 1.1-maint 10) | 4 | (Project-Version xdelta 1.1-maint 13) |
5 | (Parent-Version xdelta 1.1-maint 9) | 5 | (Parent-Version xdelta 1.1-maint 12) |
6 | (Version-Log "") | 6 | (Version-Log "add generated files to prcs, fix build") |
7 | (New-Version-Log "") | 7 | (New-Version-Log "") |
8 | (Checkin-Time "Sun, 24 Feb 2002 22:31:12 +0300") | 8 | (Checkin-Time "Sun, 28 Jan 2007 10:02:26 -0800") |
9 | (Checkin-Login jmacd) | 9 | (Checkin-Login jmacd) |
10 | (Populate-Ignore ("\\.o$" | 10 | (Populate-Ignore ("\\.o$" |
11 | "\\.deps" | 11 | "\\.deps" |
@@ -14,7 +14,6 @@ | |||
14 | "^\\.#" | 14 | "^\\.#" |
15 | "\\.la$" | 15 | "\\.la$" |
16 | "stamp-" | 16 | "stamp-" |
17 | "libedsio" | ||
18 | "mkinstalldirs" | 17 | "mkinstalldirs" |
19 | "missing" | 18 | "missing" |
20 | "ltmain\\.sh" | 19 | "ltmain\\.sh" |
@@ -27,7 +26,7 @@ | |||
27 | "CVS/" | 26 | "CVS/" |
28 | "Makefile\\.in$" | 27 | "Makefile\\.in$" |
29 | "Makefile$" | 28 | "Makefile$" |
30 | ".cvsignore" | 29 | "\\.svn" |
31 | "configure$" | 30 | "configure$" |
32 | "xdelta$" | 31 | "xdelta$" |
33 | "libtool" | 32 | "libtool" |
@@ -36,7 +35,7 @@ | |||
36 | (Project-Keywords | 35 | (Project-Keywords |
37 | (ReleaseMajorVersion 1) | 36 | (ReleaseMajorVersion 1) |
38 | (ReleaseMinorVersion 1) | 37 | (ReleaseMinorVersion 1) |
39 | (ReleaseMicroVersion 3) | 38 | (ReleaseMicroVersion 4) |
40 | (LibCurrent 2) | 39 | (LibCurrent 2) |
41 | (LibRevision 0) | 40 | (LibRevision 0) |
42 | (LibAge 0) | 41 | (LibAge 0) |
@@ -44,53 +43,87 @@ | |||
44 | ) | 43 | ) |
45 | (Files | 44 | (Files |
46 | ;; Config | 45 | ;; Config |
47 | (configure.in (xdelta/1_configure. 1.10.1.37 644)) | 46 | (configure.in (xdelta/1_configure. 1.10.1.38 744)) |
48 | (Makefile.am (xdelta/2_Makefile.a 1.19.1.40.1.4 644)) | 47 | (Makefile.am (xdelta/2_Makefile.a 1.19.1.40.1.4 744)) |
49 | (ChangeLog (xdelta/d/9_ChangeLog 1.6 644)) | 48 | (ChangeLog (xdelta/d/9_ChangeLog 1.6 644)) |
50 | (runtest (xdelta/d/5_runtest 1.7 755)) | 49 | (runtest (xdelta/d/5_runtest 1.7 744)) |
51 | (README (xdelta/d/6_README 1.5 644)) | 50 | (README (xdelta/d/6_README 1.5 744)) |
52 | (INSTALL (xdelta/d/10_INSTALL 1.3 644)) | 51 | (INSTALL (xdelta/d/10_INSTALL 1.3 744)) |
53 | (COPYING (xdelta/d/11_COPYING 1.2 644)) | 52 | (COPYING (xdelta/d/11_COPYING 1.2 744)) |
54 | (AUTHORS (xdelta/d/12_AUTHORS 1.2 644)) | 53 | (AUTHORS (xdelta/d/12_AUTHORS 1.2 744)) |
55 | (NEWS (xdelta/d/13_NEWS 1.15.1.9 644)) | 54 | (NEWS (xdelta/d/13_NEWS 1.15.1.9 744)) |
56 | (xdelta.magic (xdelta/d/20_xdelta.mag 1.2 644)) | 55 | (xdelta.magic (xdelta/d/20_xdelta.mag 1.2 744)) |
57 | (xdelta-config.in (xdelta/d/33_xdelta-con 1.4 644)) | 56 | (xdelta-config.in (xdelta/d/33_xdelta-con 1.4 744)) |
58 | (autogen.sh (xdelta/d/34_autogen.sh 1.1 755)) | 57 | (autogen.sh (xdelta/i/7_autogen.sh 1.1 744)) |
59 | (xdelta.m4 (xdelta/d/35_xdelta.m4 1.5 644)) | 58 | (xdelta.m4 (xdelta/d/35_xdelta.m4 1.5 744)) |
60 | 59 | ||
61 | ;; Library | 60 | ;; Library |
62 | (xdelta.h (xdelta/b/8_xdelta.h 1.4.1.8.1.50.1.3 644)) | 61 | (xdelta.h (xdelta/b/8_xdelta.h 1.4.1.8.1.50.1.3 744)) |
63 | (xdeltapriv.h (xdelta/c/42_xdeltapriv 1.29 644)) | 62 | (xdeltapriv.h (xdelta/c/42_xdeltapriv 1.29 744)) |
64 | (xdelta.c (xdelta/b/14_xdelta.c 1.4.1.50.1.3 644)) | 63 | (xdelta.c (xdelta/b/14_xdelta.c 1.4.1.50.1.3 744)) |
65 | (xd.ser (xdelta/d/7_xd.ser 1.12 644)) | 64 | (xd.ser (xdelta/d/7_xd.ser 1.12 744)) |
66 | (xdrsync.c (xdelta/d/44_xdrsync.c 1.2 644)) | 65 | (xdrsync.c (xdelta/d/44_xdrsync.c 1.2 744)) |
67 | (xdapply.c (xdelta/e/37_xdapply.c 1.1 644)) | 66 | (xdapply.c (xdelta/e/37_xdapply.c 1.1 744)) |
68 | 67 | ||
69 | ;; Application | 68 | ;; Application |
70 | (xdmain.c (xdelta/d/15_xdmain.c 1.22.1.7 600)) | 69 | (xdmain.c (xdelta/d/15_xdmain.c 1.22.1.7.1.1 744)) |
71 | (getopt1.c (xdelta/d/17_getopt1.c 1.1 644)) | 70 | (getopt1.c (xdelta/d/17_getopt1.c 1.1 744)) |
72 | (getopt.h (xdelta/d/18_getopt.h 1.1 644)) | 71 | (getopt.h (xdelta/d/18_getopt.h 1.1 744)) |
73 | (getopt.c (xdelta/d/19_getopt.c 1.1 644)) | 72 | (getopt.c (xdelta/d/19_getopt.c 1.1 744)) |
74 | |||
75 | ;; Windows project files | ||
76 | (xdelta.dsp (xdelta/d/36_xdelta.dsp 1.2 644) :no-keywords) | ||
77 | (xdelta.dsw (xdelta/d/37_xdelta.dsw 1.2 644) :no-keywords) | ||
78 | 73 | ||
79 | ;; Testing | 74 | ;; Testing |
80 | (test/Makefile.am (xdelta/e/39_Makefile.a 1.1.1.3 644)) | 75 | (test/Makefile.am (xdelta/e/39_Makefile.a 1.1.1.3 744)) |
81 | (test/xdeltatest.c (xdelta/e/38_xdeltatest 1.7 644)) | 76 | (test/xdeltatest.c (xdelta/e/38_xdeltatest 1.7.1.1 744)) |
82 | (test/README.test (xdelta/21_README.tes 1.2 644)) | 77 | (test/README.test (xdelta/21_README.tes 1.2 744)) |
83 | 78 | ||
84 | ;; Not much docs | 79 | ;; Not much docs |
85 | (doc/Makefile.am (xdelta/d/21_Makefile.a 1.4 644)) | 80 | (doc/Makefile.am (xdelta/d/21_Makefile.a 1.4 744)) |
86 | (doc/xdelta.1 (xdelta/d/23_xdelta.1 1.6 644)) | 81 | (doc/xdelta.1 (xdelta/d/23_xdelta.1 1.6 744)) |
87 | (doc/xdelta.cat (xdelta/22_xdelta.cat 1.2 644)) | 82 | (doc/xdelta.cat (xdelta/22_xdelta.cat 1.2 744)) |
88 | 83 | ||
89 | ;; DJGPP contrib | 84 | ;; DJGPP contrib |
90 | (djgpp/readme.djg (xdelta/18_readme.djg 1.2 644)) | 85 | (djgpp/readme.djg (xdelta/18_readme.djg 1.2 744)) |
91 | (djgpp/announce.djg (xdelta/19_announce.d 1.2 644)) | 86 | (djgpp/announce.djg (xdelta/19_announce.d 1.2 744)) |
92 | (djgpp/Makefile.am (xdelta/20_Makefile.a 1.1 644)) | 87 | (djgpp/Makefile.am (xdelta/20_Makefile.a 1.1 744)) |
88 | |||
89 | ;; Files added by populate at Sat, 27 Jan 2007 17:51:22 -0800, | ||
90 | ;; to version 1.1-maint.10(w), by jmacd: | ||
91 | |||
92 | (xdelta-0.13.README (xdelta/i/0_xdelta-0.1 1.1 744)) | ||
93 | (xd_edsio.h (xdelta/i/1_xd_edsio.h 1.1 644)) | ||
94 | (xd_edsio.c (xdelta/i/2_xd_edsio.c 1.2 744)) | ||
95 | (xdelta-1.1.2.tar.gz (xdelta/i/3_xdelta-1.1 1.1 744) :no-keywords) | ||
96 | (xdelta-1.1.3.tar.gz (xdelta/i/4_xdelta-1.1 1.1 744) :no-keywords) | ||
97 | (xdelta-config (xdelta/i/5_xdelta-con 1.1 744)) | ||
98 | (contrib/build_hpux (xdelta/i/6_build_hpux 1.1 744)) | ||
99 | |||
100 | |||
101 | ;; Files added by populate at Sun, 28 Jan 2007 10:01:31 -0800, | ||
102 | ;; to version 1.1-maint.12(w), by jmacd: | ||
93 | 103 | ||
104 | (libedsio/edsiotest (xdelta/i/8_edsiotest 1.1 744)) | ||
105 | (libedsio/fh.c (xdelta/i/9_fh.c 1.1 744)) | ||
106 | (libedsio/maketime.c (xdelta/i/10_maketime.c 1.1 744)) | ||
107 | (libedsio/simple.c (xdelta/i/11_simple.c 1.1 744)) | ||
108 | (libedsio/md5c.c (xdelta/i/12_md5c.c 1.1 744)) | ||
109 | (libedsio/Makefile.am (xdelta/i/13_Makefile.a 1.1 744)) | ||
110 | (libedsio/edsio_edsio.h (xdelta/i/14_edsio_edsi 1.1 744)) | ||
111 | (libedsio/base64.c (xdelta/i/15_base64.c 1.1 744)) | ||
112 | (libedsio/default.c (xdelta/i/16_default.c 1.1 744)) | ||
113 | (libedsio/edsio_edsio.c (xdelta/i/17_edsio_edsi 1.1 744)) | ||
114 | (libedsio/edsio.el (xdelta/i/18_edsio.el 1.1 744)) | ||
115 | (libedsio/edsio-comp (xdelta/i/19_edsio-comp 1.1 744)) | ||
116 | (libedsio/generic.c (xdelta/i/20_generic.c 1.1 744)) | ||
117 | (libedsio/sha.c (xdelta/i/21_sha.c 1.1 744)) | ||
118 | (libedsio/edsio.ser (xdelta/i/22_edsio.ser 1.1 744)) | ||
119 | (libedsio/edsio.h (xdelta/i/23_edsio.h 1.1 744)) | ||
120 | (libedsio/partime.h (xdelta/i/24_partime.h 1.1 744)) | ||
121 | (libedsio/library.c (xdelta/i/25_library.c 1.1 744)) | ||
122 | (libedsio/edsio.c (xdelta/i/26_edsio.c 1.1 744)) | ||
123 | (libedsio/edsiotest.c (xdelta/i/27_edsiotest. 1.1 744)) | ||
124 | (libedsio/partime.c (xdelta/i/28_partime.c 1.1 744)) | ||
125 | (libedsio/maketime.h (xdelta/i/29_maketime.h 1.1 744)) | ||
126 | (libedsio/edsio-comp.in (xdelta/i/30_edsio-comp 1.1 744)) | ||
94 | ) | 127 | ) |
95 | (Merge-Parents) | 128 | (Merge-Parents) |
96 | (New-Merge-Parents) | 129 | (New-Merge-Parents) |
diff --git a/xdelta1/xdmain.c b/xdelta1/xdmain.c index f0a61c8..b1abc74 100755 --- a/xdelta1/xdmain.c +++ b/xdelta1/xdmain.c | |||
@@ -20,7 +20,7 @@ | |||
20 | * | 20 | * |
21 | * Author: Josh MacDonald <jmacd@CS.Berkeley.EDU> | 21 | * Author: Josh MacDonald <jmacd@CS.Berkeley.EDU> |
22 | * | 22 | * |
23 | * $Id: xdmain.c 1.22.1.5 Fri, 29 Jun 2001 06:01:08 -0700 jmacd $ | 23 | * $Id: xdmain.c 1.22.1.7.1.1 Sat, 27 Jan 2007 17:53:47 -0800 jmacd $ |
24 | */ | 24 | */ |
25 | 25 | ||
26 | #include <stdio.h> | 26 | #include <stdio.h> |
@@ -193,7 +193,7 @@ struct _XdFileHandle | |||
193 | }; | 193 | }; |
194 | 194 | ||
195 | /* $Format: "static const char xdelta_version[] = \"$ReleaseVersion$\"; " $ */ | 195 | /* $Format: "static const char xdelta_version[] = \"$ReleaseVersion$\"; " $ */ |
196 | static const char xdelta_version[] = "1.1.3"; | 196 | static const char xdelta_version[] = "1.1.4"; |
197 | 197 | ||
198 | typedef struct _Command Command; | 198 | typedef struct _Command Command; |
199 | 199 | ||