diff options
Diffstat (limited to 'libltdl/configure')
-rwxr-xr-x | libltdl/configure | 23702 |
1 files changed, 23702 insertions, 0 deletions
diff --git a/libltdl/configure b/libltdl/configure new file mode 100755 index 00000000..03678466 --- /dev/null +++ b/libltdl/configure | |||
@@ -0,0 +1,23702 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.59 for libltdl 1.2. | ||
4 | # | ||
5 | # Report bugs to <bug-libtool@gnu.org>. | ||
6 | # | ||
7 | # Copyright (C) 2003 Free Software Foundation, Inc. | ||
8 | # This configure script is free software; the Free Software Foundation | ||
9 | # gives unlimited permission to copy, distribute and modify it. | ||
10 | ## --------------------- ## | ||
11 | ## M4sh Initialization. ## | ||
12 | ## --------------------- ## | ||
13 | |||
14 | # Be Bourne compatible | ||
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
16 | emulate sh | ||
17 | NULLCMD=: | ||
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
19 | # is contrary to our usage. Disable this feature. | ||
20 | alias -g '${1+"$@"}'='"$@"' | ||
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
22 | set -o posix | ||
23 | fi | ||
24 | DUALCASE=1; export DUALCASE # for MKS sh | ||
25 | |||
26 | # Support unset when possible. | ||
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
28 | as_unset=unset | ||
29 | else | ||
30 | as_unset=false | ||
31 | fi | ||
32 | |||
33 | |||
34 | # Work around bugs in pre-3.0 UWIN ksh. | ||
35 | $as_unset ENV MAIL MAILPATH | ||
36 | PS1='$ ' | ||
37 | PS2='> ' | ||
38 | PS4='+ ' | ||
39 | |||
40 | # NLS nuisances. | ||
41 | for as_var in \ | ||
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
44 | LC_TELEPHONE LC_TIME | ||
45 | do | ||
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
47 | eval $as_var=C; export $as_var | ||
48 | else | ||
49 | $as_unset $as_var | ||
50 | fi | ||
51 | done | ||
52 | |||
53 | # Required to use basename. | ||
54 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
55 | as_expr=expr | ||
56 | else | ||
57 | as_expr=false | ||
58 | fi | ||
59 | |||
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | ||
61 | as_basename=basename | ||
62 | else | ||
63 | as_basename=false | ||
64 | fi | ||
65 | |||
66 | |||
67 | # Name of the executable. | ||
68 | as_me=`$as_basename "$0" || | ||
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
70 | X"$0" : 'X\(//\)$' \| \ | ||
71 | X"$0" : 'X\(/\)$' \| \ | ||
72 | . : '\(.\)' 2>/dev/null || | ||
73 | echo X/"$0" | | ||
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
76 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
77 | s/.*/./; q'` | ||
78 | |||
79 | |||
80 | # PATH needs CR, and LINENO needs CR and PATH. | ||
81 | # Avoid depending upon Character Ranges. | ||
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
85 | as_cr_digits='0123456789' | ||
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
87 | |||
88 | # The user is always right. | ||
89 | if test "${PATH_SEPARATOR+set}" != set; then | ||
90 | echo "#! /bin/sh" >conf$$.sh | ||
91 | echo "exit 0" >>conf$$.sh | ||
92 | chmod +x conf$$.sh | ||
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
94 | PATH_SEPARATOR=';' | ||
95 | else | ||
96 | PATH_SEPARATOR=: | ||
97 | fi | ||
98 | rm -f conf$$.sh | ||
99 | fi | ||
100 | |||
101 | |||
102 | as_lineno_1=$LINENO | ||
103 | as_lineno_2=$LINENO | ||
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
105 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
107 | # Find who we are. Look in the path if we contain no path at all | ||
108 | # relative or not. | ||
109 | case $0 in | ||
110 | *[\\/]* ) as_myself=$0 ;; | ||
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
112 | for as_dir in $PATH | ||
113 | do | ||
114 | IFS=$as_save_IFS | ||
115 | test -z "$as_dir" && as_dir=. | ||
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
117 | done | ||
118 | |||
119 | ;; | ||
120 | esac | ||
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
122 | # in which case we are not to be found in the path. | ||
123 | if test "x$as_myself" = x; then | ||
124 | as_myself=$0 | ||
125 | fi | ||
126 | if test ! -f "$as_myself"; then | ||
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | ||
128 | { (exit 1); exit 1; }; } | ||
129 | fi | ||
130 | case $CONFIG_SHELL in | ||
131 | '') | ||
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
134 | do | ||
135 | IFS=$as_save_IFS | ||
136 | test -z "$as_dir" && as_dir=. | ||
137 | for as_base in sh bash ksh sh5; do | ||
138 | case $as_dir in | ||
139 | /*) | ||
140 | if ("$as_dir/$as_base" -c ' | ||
141 | as_lineno_1=$LINENO | ||
142 | as_lineno_2=$LINENO | ||
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
144 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | ||
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | ||
148 | CONFIG_SHELL=$as_dir/$as_base | ||
149 | export CONFIG_SHELL | ||
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
151 | fi;; | ||
152 | esac | ||
153 | done | ||
154 | done | ||
155 | ;; | ||
156 | esac | ||
157 | |||
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
159 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
160 | # line-number line before each line; the second 'sed' does the real | ||
161 | # work. The second script uses 'N' to pair each line-number line | ||
162 | # with the numbered line, and appends trailing '-' during | ||
163 | # substitution so that $LINENO is not a special case at line end. | ||
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
166 | sed '=' <$as_myself | | ||
167 | sed ' | ||
168 | N | ||
169 | s,$,-, | ||
170 | : loop | ||
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
172 | t loop | ||
173 | s,-$,, | ||
174 | s,^['$as_cr_digits']*\n,, | ||
175 | ' >$as_me.lineno && | ||
176 | chmod +x $as_me.lineno || | ||
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
178 | { (exit 1); exit 1; }; } | ||
179 | |||
180 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
181 | # (the dirname of $[0] is not the place where we might find the | ||
182 | # original and so on. Autoconf is especially sensible to this). | ||
183 | . ./$as_me.lineno | ||
184 | # Exit status is that of the last command. | ||
185 | exit | ||
186 | } | ||
187 | |||
188 | |||
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
190 | *c*,-n*) ECHO_N= ECHO_C=' | ||
191 | ' ECHO_T=' ' ;; | ||
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
194 | esac | ||
195 | |||
196 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
197 | as_expr=expr | ||
198 | else | ||
199 | as_expr=false | ||
200 | fi | ||
201 | |||
202 | rm -f conf$$ conf$$.exe conf$$.file | ||
203 | echo >conf$$.file | ||
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
205 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
207 | if test -f conf$$.exe; then | ||
208 | # Don't use ln at all; we don't have any links | ||
209 | as_ln_s='cp -p' | ||
210 | else | ||
211 | as_ln_s='ln -s' | ||
212 | fi | ||
213 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
214 | as_ln_s=ln | ||
215 | else | ||
216 | as_ln_s='cp -p' | ||
217 | fi | ||
218 | rm -f conf$$ conf$$.exe conf$$.file | ||
219 | |||
220 | if mkdir -p . 2>/dev/null; then | ||
221 | as_mkdir_p=: | ||
222 | else | ||
223 | test -d ./-p && rmdir ./-p | ||
224 | as_mkdir_p=false | ||
225 | fi | ||
226 | |||
227 | as_executable_p="test -f" | ||
228 | |||
229 | # Sed expression to map a string onto a valid CPP name. | ||
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
231 | |||
232 | # Sed expression to map a string onto a valid variable name. | ||
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
234 | |||
235 | |||
236 | # IFS | ||
237 | # We need space, tab and new line, in precisely that order. | ||
238 | as_nl=' | ||
239 | ' | ||
240 | IFS=" $as_nl" | ||
241 | |||
242 | # CDPATH. | ||
243 | $as_unset CDPATH | ||
244 | |||
245 | |||
246 | |||
247 | # Check that we are running under the correct shell. | ||
248 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
249 | |||
250 | case X$ECHO in | ||
251 | X*--fallback-echo) | ||
252 | # Remove one level of quotation (which was required for Make). | ||
253 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
254 | ;; | ||
255 | esac | ||
256 | |||
257 | echo=${ECHO-echo} | ||
258 | if test "X$1" = X--no-reexec; then | ||
259 | # Discard the --no-reexec flag, and continue. | ||
260 | shift | ||
261 | elif test "X$1" = X--fallback-echo; then | ||
262 | # Avoid inline document here, it may be left over | ||
263 | : | ||
264 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | ||
265 | # Yippee, $echo works! | ||
266 | : | ||
267 | else | ||
268 | # Restart under the correct shell. | ||
269 | exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
270 | fi | ||
271 | |||
272 | if test "X$1" = X--fallback-echo; then | ||
273 | # used as fallback echo | ||
274 | shift | ||
275 | cat <<EOF | ||
276 | $* | ||
277 | EOF | ||
278 | exit 0 | ||
279 | fi | ||
280 | |||
281 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
282 | # if CDPATH is set. | ||
283 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | ||
284 | |||
285 | if test -z "$ECHO"; then | ||
286 | if test "X${echo_test_string+set}" != Xset; then | ||
287 | # find a string as large as possible, as long as the shell can cope with it | ||
288 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
289 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
290 | if (echo_test_string="`eval $cmd`") 2>/dev/null && | ||
291 | echo_test_string="`eval $cmd`" && | ||
292 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | ||
293 | then | ||
294 | break | ||
295 | fi | ||
296 | done | ||
297 | fi | ||
298 | |||
299 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
300 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
301 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
302 | : | ||
303 | else | ||
304 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
305 | # backslashes. This makes it impossible to quote backslashes using | ||
306 | # echo "$something" | sed 's/\\/\\\\/g' | ||
307 | # | ||
308 | # So, first we look for a working echo in the user's PATH. | ||
309 | |||
310 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
311 | for dir in $PATH /usr/ucb; do | ||
312 | IFS="$lt_save_ifs" | ||
313 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
314 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
315 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
316 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
317 | echo="$dir/echo" | ||
318 | break | ||
319 | fi | ||
320 | done | ||
321 | IFS="$lt_save_ifs" | ||
322 | |||
323 | if test "X$echo" = Xecho; then | ||
324 | # We didn't find a better echo, so look for alternatives. | ||
325 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | ||
326 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | ||
327 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
328 | # This shell has a builtin print -r that does the trick. | ||
329 | echo='print -r' | ||
330 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | ||
331 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
332 | # If we have ksh, try running configure again with it. | ||
333 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
334 | export ORIGINAL_CONFIG_SHELL | ||
335 | CONFIG_SHELL=/bin/ksh | ||
336 | export CONFIG_SHELL | ||
337 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
338 | else | ||
339 | # Try using printf. | ||
340 | echo='printf %s\n' | ||
341 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
342 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
343 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
344 | # Cool, printf works | ||
345 | : | ||
346 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
347 | test "X$echo_testing_string" = 'X\t' && | ||
348 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
349 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
350 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
351 | export CONFIG_SHELL | ||
352 | SHELL="$CONFIG_SHELL" | ||
353 | export SHELL | ||
354 | echo="$CONFIG_SHELL $0 --fallback-echo" | ||
355 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
356 | test "X$echo_testing_string" = 'X\t' && | ||
357 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
358 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
359 | echo="$CONFIG_SHELL $0 --fallback-echo" | ||
360 | else | ||
361 | # maybe with a smaller string... | ||
362 | prev=: | ||
363 | |||
364 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
365 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | ||
366 | then | ||
367 | break | ||
368 | fi | ||
369 | prev="$cmd" | ||
370 | done | ||
371 | |||
372 | if test "$prev" != 'sed 50q "$0"'; then | ||
373 | echo_test_string=`eval $prev` | ||
374 | export echo_test_string | ||
375 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
376 | else | ||
377 | # Oops. We lost completely, so just stick with echo. | ||
378 | echo=echo | ||
379 | fi | ||
380 | fi | ||
381 | fi | ||
382 | fi | ||
383 | fi | ||
384 | fi | ||
385 | |||
386 | # Copy echo and quote the copy suitably for passing to libtool from | ||
387 | # the Makefile, instead of quoting the original, which is used later. | ||
388 | ECHO=$echo | ||
389 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
390 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
391 | fi | ||
392 | |||
393 | |||
394 | |||
395 | |||
396 | tagnames=${tagnames+${tagnames},}CXX | ||
397 | |||
398 | tagnames=${tagnames+${tagnames},}F77 | ||
399 | |||
400 | # Name of the host. | ||
401 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
402 | # so uname gets run too. | ||
403 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
404 | |||
405 | exec 6>&1 | ||
406 | |||
407 | # | ||
408 | # Initializations. | ||
409 | # | ||
410 | ac_default_prefix=/usr/local | ||
411 | ac_config_libobj_dir=. | ||
412 | cross_compiling=no | ||
413 | subdirs= | ||
414 | MFLAGS= | ||
415 | MAKEFLAGS= | ||
416 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
417 | |||
418 | # Maximum number of lines to put in a shell here document. | ||
419 | # This variable seems obsolete. It should probably be removed, and | ||
420 | # only ac_max_sed_lines should be used. | ||
421 | : ${ac_max_here_lines=38} | ||
422 | |||
423 | # Identity of this package. | ||
424 | PACKAGE_NAME='libltdl' | ||
425 | PACKAGE_TARNAME='libltdl' | ||
426 | PACKAGE_VERSION='1.2' | ||
427 | PACKAGE_STRING='libltdl 1.2' | ||
428 | PACKAGE_BUGREPORT='bug-libtool@gnu.org' | ||
429 | |||
430 | ac_unique_file="ltdl.c" | ||
431 | # Factoring default headers for most tests. | ||
432 | ac_includes_default="\ | ||
433 | #include <stdio.h> | ||
434 | #if HAVE_SYS_TYPES_H | ||
435 | # include <sys/types.h> | ||
436 | #endif | ||
437 | #if HAVE_SYS_STAT_H | ||
438 | # include <sys/stat.h> | ||
439 | #endif | ||
440 | #if STDC_HEADERS | ||
441 | # include <stdlib.h> | ||
442 | # include <stddef.h> | ||
443 | #else | ||
444 | # if HAVE_STDLIB_H | ||
445 | # include <stdlib.h> | ||
446 | # endif | ||
447 | #endif | ||
448 | #if HAVE_STRING_H | ||
449 | # if !STDC_HEADERS && HAVE_MEMORY_H | ||
450 | # include <memory.h> | ||
451 | # endif | ||
452 | # include <string.h> | ||
453 | #endif | ||
454 | #if HAVE_STRINGS_H | ||
455 | # include <strings.h> | ||
456 | #endif | ||
457 | #if HAVE_INTTYPES_H | ||
458 | # include <inttypes.h> | ||
459 | #else | ||
460 | # if HAVE_STDINT_H | ||
461 | # include <stdint.h> | ||
462 | # endif | ||
463 | #endif | ||
464 | #if HAVE_UNISTD_H | ||
465 | # include <unistd.h> | ||
466 | #endif" | ||
467 | |||
468 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBTOOL_DEPS INSTALL_LTDL_TRUE INSTALL_LTDL_FALSE CONVENIENCE_LTDL_TRUE CONVENIENCE_LTDL_FALSE LIBADD_DL LIBOBJS LTLIBOBJS' | ||
469 | ac_subst_files='' | ||
470 | |||
471 | # Initialize some variables set by options. | ||
472 | ac_init_help= | ||
473 | ac_init_version=false | ||
474 | # The variables have the same names as the options, with | ||
475 | # dashes changed to underlines. | ||
476 | cache_file=/dev/null | ||
477 | exec_prefix=NONE | ||
478 | no_create= | ||
479 | no_recursion= | ||
480 | prefix=NONE | ||
481 | program_prefix=NONE | ||
482 | program_suffix=NONE | ||
483 | program_transform_name=s,x,x, | ||
484 | silent= | ||
485 | site= | ||
486 | srcdir= | ||
487 | verbose= | ||
488 | x_includes=NONE | ||
489 | x_libraries=NONE | ||
490 | |||
491 | # Installation directory options. | ||
492 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
493 | # and all the variables that are supposed to be based on exec_prefix | ||
494 | # by default will actually change. | ||
495 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
496 | bindir='${exec_prefix}/bin' | ||
497 | sbindir='${exec_prefix}/sbin' | ||
498 | libexecdir='${exec_prefix}/libexec' | ||
499 | datadir='${prefix}/share' | ||
500 | sysconfdir='${prefix}/etc' | ||
501 | sharedstatedir='${prefix}/com' | ||
502 | localstatedir='${prefix}/var' | ||
503 | libdir='${exec_prefix}/lib' | ||
504 | includedir='${prefix}/include' | ||
505 | oldincludedir='/usr/include' | ||
506 | infodir='${prefix}/info' | ||
507 | mandir='${prefix}/man' | ||
508 | |||
509 | ac_prev= | ||
510 | for ac_option | ||
511 | do | ||
512 | # If the previous option needs an argument, assign it. | ||
513 | if test -n "$ac_prev"; then | ||
514 | eval "$ac_prev=\$ac_option" | ||
515 | ac_prev= | ||
516 | continue | ||
517 | fi | ||
518 | |||
519 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | ||
520 | |||
521 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
522 | |||
523 | case $ac_option in | ||
524 | |||
525 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
526 | ac_prev=bindir ;; | ||
527 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
528 | bindir=$ac_optarg ;; | ||
529 | |||
530 | -build | --build | --buil | --bui | --bu) | ||
531 | ac_prev=build_alias ;; | ||
532 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
533 | build_alias=$ac_optarg ;; | ||
534 | |||
535 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
536 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
537 | ac_prev=cache_file ;; | ||
538 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
539 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
540 | cache_file=$ac_optarg ;; | ||
541 | |||
542 | --config-cache | -C) | ||
543 | cache_file=config.cache ;; | ||
544 | |||
545 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | ||
546 | ac_prev=datadir ;; | ||
547 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | ||
548 | | --da=*) | ||
549 | datadir=$ac_optarg ;; | ||
550 | |||
551 | -disable-* | --disable-*) | ||
552 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
553 | # Reject names that are not valid shell variable names. | ||
554 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
555 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
556 | { (exit 1); exit 1; }; } | ||
557 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
558 | eval "enable_$ac_feature=no" ;; | ||
559 | |||
560 | -enable-* | --enable-*) | ||
561 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
562 | # Reject names that are not valid shell variable names. | ||
563 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
564 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
565 | { (exit 1); exit 1; }; } | ||
566 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | ||
567 | case $ac_option in | ||
568 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
569 | *) ac_optarg=yes ;; | ||
570 | esac | ||
571 | eval "enable_$ac_feature='$ac_optarg'" ;; | ||
572 | |||
573 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
574 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
575 | | --exec | --exe | --ex) | ||
576 | ac_prev=exec_prefix ;; | ||
577 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
578 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
579 | | --exec=* | --exe=* | --ex=*) | ||
580 | exec_prefix=$ac_optarg ;; | ||
581 | |||
582 | -gas | --gas | --ga | --g) | ||
583 | # Obsolete; use --with-gas. | ||
584 | with_gas=yes ;; | ||
585 | |||
586 | -help | --help | --hel | --he | -h) | ||
587 | ac_init_help=long ;; | ||
588 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
589 | ac_init_help=recursive ;; | ||
590 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
591 | ac_init_help=short ;; | ||
592 | |||
593 | -host | --host | --hos | --ho) | ||
594 | ac_prev=host_alias ;; | ||
595 | -host=* | --host=* | --hos=* | --ho=*) | ||
596 | host_alias=$ac_optarg ;; | ||
597 | |||
598 | -includedir | --includedir | --includedi | --included | --include \ | ||
599 | | --includ | --inclu | --incl | --inc) | ||
600 | ac_prev=includedir ;; | ||
601 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
602 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
603 | includedir=$ac_optarg ;; | ||
604 | |||
605 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
606 | ac_prev=infodir ;; | ||
607 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
608 | infodir=$ac_optarg ;; | ||
609 | |||
610 | -libdir | --libdir | --libdi | --libd) | ||
611 | ac_prev=libdir ;; | ||
612 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
613 | libdir=$ac_optarg ;; | ||
614 | |||
615 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
616 | | --libexe | --libex | --libe) | ||
617 | ac_prev=libexecdir ;; | ||
618 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
619 | | --libexe=* | --libex=* | --libe=*) | ||
620 | libexecdir=$ac_optarg ;; | ||
621 | |||
622 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
623 | | --localstate | --localstat | --localsta | --localst \ | ||
624 | | --locals | --local | --loca | --loc | --lo) | ||
625 | ac_prev=localstatedir ;; | ||
626 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
627 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | ||
628 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | ||
629 | localstatedir=$ac_optarg ;; | ||
630 | |||
631 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
632 | ac_prev=mandir ;; | ||
633 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
634 | mandir=$ac_optarg ;; | ||
635 | |||
636 | -nfp | --nfp | --nf) | ||
637 | # Obsolete; use --without-fp. | ||
638 | with_fp=no ;; | ||
639 | |||
640 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
641 | | --no-cr | --no-c | -n) | ||
642 | no_create=yes ;; | ||
643 | |||
644 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
645 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
646 | no_recursion=yes ;; | ||
647 | |||
648 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
649 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
650 | | --oldin | --oldi | --old | --ol | --o) | ||
651 | ac_prev=oldincludedir ;; | ||
652 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
653 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
654 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
655 | oldincludedir=$ac_optarg ;; | ||
656 | |||
657 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
658 | ac_prev=prefix ;; | ||
659 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
660 | prefix=$ac_optarg ;; | ||
661 | |||
662 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
663 | | --program-pre | --program-pr | --program-p) | ||
664 | ac_prev=program_prefix ;; | ||
665 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
666 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
667 | program_prefix=$ac_optarg ;; | ||
668 | |||
669 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
670 | | --program-suf | --program-su | --program-s) | ||
671 | ac_prev=program_suffix ;; | ||
672 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
673 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
674 | program_suffix=$ac_optarg ;; | ||
675 | |||
676 | -program-transform-name | --program-transform-name \ | ||
677 | | --program-transform-nam | --program-transform-na \ | ||
678 | | --program-transform-n | --program-transform- \ | ||
679 | | --program-transform | --program-transfor \ | ||
680 | | --program-transfo | --program-transf \ | ||
681 | | --program-trans | --program-tran \ | ||
682 | | --progr-tra | --program-tr | --program-t) | ||
683 | ac_prev=program_transform_name ;; | ||
684 | -program-transform-name=* | --program-transform-name=* \ | ||
685 | | --program-transform-nam=* | --program-transform-na=* \ | ||
686 | | --program-transform-n=* | --program-transform-=* \ | ||
687 | | --program-transform=* | --program-transfor=* \ | ||
688 | | --program-transfo=* | --program-transf=* \ | ||
689 | | --program-trans=* | --program-tran=* \ | ||
690 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
691 | program_transform_name=$ac_optarg ;; | ||
692 | |||
693 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
694 | | -silent | --silent | --silen | --sile | --sil) | ||
695 | silent=yes ;; | ||
696 | |||
697 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
698 | ac_prev=sbindir ;; | ||
699 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
700 | | --sbi=* | --sb=*) | ||
701 | sbindir=$ac_optarg ;; | ||
702 | |||
703 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
704 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
705 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
706 | | --sha | --sh) | ||
707 | ac_prev=sharedstatedir ;; | ||
708 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
709 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
710 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
711 | | --sha=* | --sh=*) | ||
712 | sharedstatedir=$ac_optarg ;; | ||
713 | |||
714 | -site | --site | --sit) | ||
715 | ac_prev=site ;; | ||
716 | -site=* | --site=* | --sit=*) | ||
717 | site=$ac_optarg ;; | ||
718 | |||
719 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
720 | ac_prev=srcdir ;; | ||
721 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
722 | srcdir=$ac_optarg ;; | ||
723 | |||
724 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
725 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
726 | ac_prev=sysconfdir ;; | ||
727 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
728 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
729 | sysconfdir=$ac_optarg ;; | ||
730 | |||
731 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
732 | ac_prev=target_alias ;; | ||
733 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
734 | target_alias=$ac_optarg ;; | ||
735 | |||
736 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
737 | verbose=yes ;; | ||
738 | |||
739 | -version | --version | --versio | --versi | --vers | -V) | ||
740 | ac_init_version=: ;; | ||
741 | |||
742 | -with-* | --with-*) | ||
743 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
744 | # Reject names that are not valid shell variable names. | ||
745 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
746 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
747 | { (exit 1); exit 1; }; } | ||
748 | ac_package=`echo $ac_package| sed 's/-/_/g'` | ||
749 | case $ac_option in | ||
750 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | ||
751 | *) ac_optarg=yes ;; | ||
752 | esac | ||
753 | eval "with_$ac_package='$ac_optarg'" ;; | ||
754 | |||
755 | -without-* | --without-*) | ||
756 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
757 | # Reject names that are not valid shell variable names. | ||
758 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | ||
759 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
760 | { (exit 1); exit 1; }; } | ||
761 | ac_package=`echo $ac_package | sed 's/-/_/g'` | ||
762 | eval "with_$ac_package=no" ;; | ||
763 | |||
764 | --x) | ||
765 | # Obsolete; use --with-x. | ||
766 | with_x=yes ;; | ||
767 | |||
768 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
769 | | --x-incl | --x-inc | --x-in | --x-i) | ||
770 | ac_prev=x_includes ;; | ||
771 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
772 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
773 | x_includes=$ac_optarg ;; | ||
774 | |||
775 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
776 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
777 | ac_prev=x_libraries ;; | ||
778 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
779 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
780 | x_libraries=$ac_optarg ;; | ||
781 | |||
782 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
783 | Try \`$0 --help' for more information." >&2 | ||
784 | { (exit 1); exit 1; }; } | ||
785 | ;; | ||
786 | |||
787 | *=*) | ||
788 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
789 | # Reject names that are not valid shell variable names. | ||
790 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
791 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
792 | { (exit 1); exit 1; }; } | ||
793 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | ||
794 | eval "$ac_envvar='$ac_optarg'" | ||
795 | export $ac_envvar ;; | ||
796 | |||
797 | *) | ||
798 | # FIXME: should be removed in autoconf 3.0. | ||
799 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
800 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
801 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
802 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
803 | ;; | ||
804 | |||
805 | esac | ||
806 | done | ||
807 | |||
808 | if test -n "$ac_prev"; then | ||
809 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
810 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
811 | { (exit 1); exit 1; }; } | ||
812 | fi | ||
813 | |||
814 | # Be sure to have absolute paths. | ||
815 | for ac_var in exec_prefix prefix | ||
816 | do | ||
817 | eval ac_val=$`echo $ac_var` | ||
818 | case $ac_val in | ||
819 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | ||
820 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
821 | { (exit 1); exit 1; }; };; | ||
822 | esac | ||
823 | done | ||
824 | |||
825 | # Be sure to have absolute paths. | ||
826 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | ||
827 | localstatedir libdir includedir oldincludedir infodir mandir | ||
828 | do | ||
829 | eval ac_val=$`echo $ac_var` | ||
830 | case $ac_val in | ||
831 | [\\/$]* | ?:[\\/]* ) ;; | ||
832 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
833 | { (exit 1); exit 1; }; };; | ||
834 | esac | ||
835 | done | ||
836 | |||
837 | # There might be people who depend on the old broken behavior: `$host' | ||
838 | # used to hold the argument of --host etc. | ||
839 | # FIXME: To remove some day. | ||
840 | build=$build_alias | ||
841 | host=$host_alias | ||
842 | target=$target_alias | ||
843 | |||
844 | # FIXME: To remove some day. | ||
845 | if test "x$host_alias" != x; then | ||
846 | if test "x$build_alias" = x; then | ||
847 | cross_compiling=maybe | ||
848 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
849 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
850 | elif test "x$build_alias" != "x$host_alias"; then | ||
851 | cross_compiling=yes | ||
852 | fi | ||
853 | fi | ||
854 | |||
855 | ac_tool_prefix= | ||
856 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
857 | |||
858 | test "$silent" = yes && exec 6>/dev/null | ||
859 | |||
860 | |||
861 | # Find the source files, if location was not specified. | ||
862 | if test -z "$srcdir"; then | ||
863 | ac_srcdir_defaulted=yes | ||
864 | # Try the directory containing this script, then its parent. | ||
865 | ac_confdir=`(dirname "$0") 2>/dev/null || | ||
866 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
867 | X"$0" : 'X\(//\)[^/]' \| \ | ||
868 | X"$0" : 'X\(//\)$' \| \ | ||
869 | X"$0" : 'X\(/\)' \| \ | ||
870 | . : '\(.\)' 2>/dev/null || | ||
871 | echo X"$0" | | ||
872 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
873 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
874 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
875 | /^X\(\/\).*/{ s//\1/; q; } | ||
876 | s/.*/./; q'` | ||
877 | srcdir=$ac_confdir | ||
878 | if test ! -r $srcdir/$ac_unique_file; then | ||
879 | srcdir=.. | ||
880 | fi | ||
881 | else | ||
882 | ac_srcdir_defaulted=no | ||
883 | fi | ||
884 | if test ! -r $srcdir/$ac_unique_file; then | ||
885 | if test "$ac_srcdir_defaulted" = yes; then | ||
886 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | ||
887 | { (exit 1); exit 1; }; } | ||
888 | else | ||
889 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
890 | { (exit 1); exit 1; }; } | ||
891 | fi | ||
892 | fi | ||
893 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | ||
894 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | ||
895 | { (exit 1); exit 1; }; } | ||
896 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | ||
897 | ac_env_build_alias_set=${build_alias+set} | ||
898 | ac_env_build_alias_value=$build_alias | ||
899 | ac_cv_env_build_alias_set=${build_alias+set} | ||
900 | ac_cv_env_build_alias_value=$build_alias | ||
901 | ac_env_host_alias_set=${host_alias+set} | ||
902 | ac_env_host_alias_value=$host_alias | ||
903 | ac_cv_env_host_alias_set=${host_alias+set} | ||
904 | ac_cv_env_host_alias_value=$host_alias | ||
905 | ac_env_target_alias_set=${target_alias+set} | ||
906 | ac_env_target_alias_value=$target_alias | ||
907 | ac_cv_env_target_alias_set=${target_alias+set} | ||
908 | ac_cv_env_target_alias_value=$target_alias | ||
909 | ac_env_CC_set=${CC+set} | ||
910 | ac_env_CC_value=$CC | ||
911 | ac_cv_env_CC_set=${CC+set} | ||
912 | ac_cv_env_CC_value=$CC | ||
913 | ac_env_CFLAGS_set=${CFLAGS+set} | ||
914 | ac_env_CFLAGS_value=$CFLAGS | ||
915 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | ||
916 | ac_cv_env_CFLAGS_value=$CFLAGS | ||
917 | ac_env_LDFLAGS_set=${LDFLAGS+set} | ||
918 | ac_env_LDFLAGS_value=$LDFLAGS | ||
919 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | ||
920 | ac_cv_env_LDFLAGS_value=$LDFLAGS | ||
921 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
922 | ac_env_CPPFLAGS_value=$CPPFLAGS | ||
923 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | ||
924 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | ||
925 | ac_env_CPP_set=${CPP+set} | ||
926 | ac_env_CPP_value=$CPP | ||
927 | ac_cv_env_CPP_set=${CPP+set} | ||
928 | ac_cv_env_CPP_value=$CPP | ||
929 | ac_env_CXX_set=${CXX+set} | ||
930 | ac_env_CXX_value=$CXX | ||
931 | ac_cv_env_CXX_set=${CXX+set} | ||
932 | ac_cv_env_CXX_value=$CXX | ||
933 | ac_env_CXXFLAGS_set=${CXXFLAGS+set} | ||
934 | ac_env_CXXFLAGS_value=$CXXFLAGS | ||
935 | ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} | ||
936 | ac_cv_env_CXXFLAGS_value=$CXXFLAGS | ||
937 | ac_env_CXXCPP_set=${CXXCPP+set} | ||
938 | ac_env_CXXCPP_value=$CXXCPP | ||
939 | ac_cv_env_CXXCPP_set=${CXXCPP+set} | ||
940 | ac_cv_env_CXXCPP_value=$CXXCPP | ||
941 | ac_env_F77_set=${F77+set} | ||
942 | ac_env_F77_value=$F77 | ||
943 | ac_cv_env_F77_set=${F77+set} | ||
944 | ac_cv_env_F77_value=$F77 | ||
945 | ac_env_FFLAGS_set=${FFLAGS+set} | ||
946 | ac_env_FFLAGS_value=$FFLAGS | ||
947 | ac_cv_env_FFLAGS_set=${FFLAGS+set} | ||
948 | ac_cv_env_FFLAGS_value=$FFLAGS | ||
949 | |||
950 | # | ||
951 | # Report the --help message. | ||
952 | # | ||
953 | if test "$ac_init_help" = "long"; then | ||
954 | # Omit some internal or obsolete options to make the list less imposing. | ||
955 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
956 | cat <<_ACEOF | ||
957 | \`configure' configures libltdl 1.2 to adapt to many kinds of systems. | ||
958 | |||
959 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
960 | |||
961 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
962 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
963 | |||
964 | Defaults for the options are specified in brackets. | ||
965 | |||
966 | Configuration: | ||
967 | -h, --help display this help and exit | ||
968 | --help=short display options specific to this package | ||
969 | --help=recursive display the short help of all the included packages | ||
970 | -V, --version display version information and exit | ||
971 | -q, --quiet, --silent do not print \`checking...' messages | ||
972 | --cache-file=FILE cache test results in FILE [disabled] | ||
973 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
974 | -n, --no-create do not create output files | ||
975 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
976 | |||
977 | _ACEOF | ||
978 | |||
979 | cat <<_ACEOF | ||
980 | Installation directories: | ||
981 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
982 | [$ac_default_prefix] | ||
983 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
984 | [PREFIX] | ||
985 | |||
986 | By default, \`make install' will install all the files in | ||
987 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
988 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
989 | for instance \`--prefix=\$HOME'. | ||
990 | |||
991 | For better control, use the options below. | ||
992 | |||
993 | Fine tuning of the installation directories: | ||
994 | --bindir=DIR user executables [EPREFIX/bin] | ||
995 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
996 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
997 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | ||
998 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
999 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1000 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1001 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1002 | --includedir=DIR C header files [PREFIX/include] | ||
1003 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1004 | --infodir=DIR info documentation [PREFIX/info] | ||
1005 | --mandir=DIR man documentation [PREFIX/man] | ||
1006 | _ACEOF | ||
1007 | |||
1008 | cat <<\_ACEOF | ||
1009 | |||
1010 | Program names: | ||
1011 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
1012 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
1013 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
1014 | |||
1015 | System types: | ||
1016 | --build=BUILD configure for building on BUILD [guessed] | ||
1017 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1018 | _ACEOF | ||
1019 | fi | ||
1020 | |||
1021 | if test -n "$ac_init_help"; then | ||
1022 | case $ac_init_help in | ||
1023 | short | recursive ) echo "Configuration of libltdl 1.2:";; | ||
1024 | esac | ||
1025 | cat <<\_ACEOF | ||
1026 | |||
1027 | Optional Features: | ||
1028 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1029 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1030 | --enable-maintainer-mode enable make rules and dependencies not useful | ||
1031 | (and sometimes confusing) to the casual installer | ||
1032 | --disable-dependency-tracking speeds up one-time build | ||
1033 | --enable-dependency-tracking do not reject slow dependency extractors | ||
1034 | --enable-shared[=PKGS] | ||
1035 | build shared libraries [default=yes] | ||
1036 | --enable-static[=PKGS] | ||
1037 | build static libraries [default=yes] | ||
1038 | --enable-fast-install[=PKGS] | ||
1039 | optimize for fast installation [default=yes] | ||
1040 | --disable-libtool-lock avoid locking (might break parallel builds) | ||
1041 | --enable-ltdl-install install libltdl | ||
1042 | |||
1043 | Optional Packages: | ||
1044 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1045 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1046 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
1047 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
1048 | both] | ||
1049 | --with-tags[=TAGS] | ||
1050 | include additional configurations [automatic] | ||
1051 | |||
1052 | Some influential environment variables: | ||
1053 | CC C compiler command | ||
1054 | CFLAGS C compiler flags | ||
1055 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1056 | nonstandard directory <lib dir> | ||
1057 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | ||
1058 | headers in a nonstandard directory <include dir> | ||
1059 | CPP C preprocessor | ||
1060 | CXX C++ compiler command | ||
1061 | CXXFLAGS C++ compiler flags | ||
1062 | CXXCPP C++ preprocessor | ||
1063 | F77 Fortran 77 compiler command | ||
1064 | FFLAGS Fortran 77 compiler flags | ||
1065 | |||
1066 | Use these variables to override the choices made by `configure' or to help | ||
1067 | it to find libraries and programs with nonstandard names/locations. | ||
1068 | |||
1069 | Report bugs to <bug-libtool@gnu.org>. | ||
1070 | _ACEOF | ||
1071 | fi | ||
1072 | |||
1073 | if test "$ac_init_help" = "recursive"; then | ||
1074 | # If there are subdirs, report their specific --help. | ||
1075 | ac_popdir=`pwd` | ||
1076 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1077 | test -d $ac_dir || continue | ||
1078 | ac_builddir=. | ||
1079 | |||
1080 | if test "$ac_dir" != .; then | ||
1081 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
1082 | # A "../" for each directory in $ac_dir_suffix. | ||
1083 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
1084 | else | ||
1085 | ac_dir_suffix= ac_top_builddir= | ||
1086 | fi | ||
1087 | |||
1088 | case $srcdir in | ||
1089 | .) # No --srcdir option. We are building in place. | ||
1090 | ac_srcdir=. | ||
1091 | if test -z "$ac_top_builddir"; then | ||
1092 | ac_top_srcdir=. | ||
1093 | else | ||
1094 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
1095 | fi ;; | ||
1096 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
1097 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1098 | ac_top_srcdir=$srcdir ;; | ||
1099 | *) # Relative path. | ||
1100 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
1101 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
1102 | esac | ||
1103 | |||
1104 | # Do not use `cd foo && pwd` to compute absolute paths, because | ||
1105 | # the directories may not exist. | ||
1106 | case `pwd` in | ||
1107 | .) ac_abs_builddir="$ac_dir";; | ||
1108 | *) | ||
1109 | case "$ac_dir" in | ||
1110 | .) ac_abs_builddir=`pwd`;; | ||
1111 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | ||
1112 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | ||
1113 | esac;; | ||
1114 | esac | ||
1115 | case $ac_abs_builddir in | ||
1116 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
1117 | *) | ||
1118 | case ${ac_top_builddir}. in | ||
1119 | .) ac_abs_top_builddir=$ac_abs_builddir;; | ||
1120 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
1121 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | ||
1122 | esac;; | ||
1123 | esac | ||
1124 | case $ac_abs_builddir in | ||
1125 | .) ac_abs_srcdir=$ac_srcdir;; | ||
1126 | *) | ||
1127 | case $ac_srcdir in | ||
1128 | .) ac_abs_srcdir=$ac_abs_builddir;; | ||
1129 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | ||
1130 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | ||
1131 | esac;; | ||
1132 | esac | ||
1133 | case $ac_abs_builddir in | ||
1134 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
1135 | *) | ||
1136 | case $ac_top_srcdir in | ||
1137 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | ||
1138 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
1139 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | ||
1140 | esac;; | ||
1141 | esac | ||
1142 | |||
1143 | cd $ac_dir | ||
1144 | # Check for guested configure; otherwise get Cygnus style configure. | ||
1145 | if test -f $ac_srcdir/configure.gnu; then | ||
1146 | echo | ||
1147 | $SHELL $ac_srcdir/configure.gnu --help=recursive | ||
1148 | elif test -f $ac_srcdir/configure; then | ||
1149 | echo | ||
1150 | $SHELL $ac_srcdir/configure --help=recursive | ||
1151 | elif test -f $ac_srcdir/configure.ac || | ||
1152 | test -f $ac_srcdir/configure.in; then | ||
1153 | echo | ||
1154 | $ac_configure --help | ||
1155 | else | ||
1156 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1157 | fi | ||
1158 | cd "$ac_popdir" | ||
1159 | done | ||
1160 | fi | ||
1161 | |||
1162 | test -n "$ac_init_help" && exit 0 | ||
1163 | if $ac_init_version; then | ||
1164 | cat <<\_ACEOF | ||
1165 | libltdl configure 1.2 | ||
1166 | generated by GNU Autoconf 2.59 | ||
1167 | |||
1168 | Copyright (C) 2003 Free Software Foundation, Inc. | ||
1169 | This configure script is free software; the Free Software Foundation | ||
1170 | gives unlimited permission to copy, distribute and modify it. | ||
1171 | _ACEOF | ||
1172 | exit 0 | ||
1173 | fi | ||
1174 | exec 5>config.log | ||
1175 | cat >&5 <<_ACEOF | ||
1176 | This file contains any messages produced by compilers while | ||
1177 | running configure, to aid debugging if configure makes a mistake. | ||
1178 | |||
1179 | It was created by libltdl $as_me 1.2, which was | ||
1180 | generated by GNU Autoconf 2.59. Invocation command line was | ||
1181 | |||
1182 | $ $0 $@ | ||
1183 | |||
1184 | _ACEOF | ||
1185 | { | ||
1186 | cat <<_ASUNAME | ||
1187 | ## --------- ## | ||
1188 | ## Platform. ## | ||
1189 | ## --------- ## | ||
1190 | |||
1191 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1192 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1193 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1194 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1195 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1196 | |||
1197 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1198 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1199 | |||
1200 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1201 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1202 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1203 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | ||
1204 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1205 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1206 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1207 | |||
1208 | _ASUNAME | ||
1209 | |||
1210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1211 | for as_dir in $PATH | ||
1212 | do | ||
1213 | IFS=$as_save_IFS | ||
1214 | test -z "$as_dir" && as_dir=. | ||
1215 | echo "PATH: $as_dir" | ||
1216 | done | ||
1217 | |||
1218 | } >&5 | ||
1219 | |||
1220 | cat >&5 <<_ACEOF | ||
1221 | |||
1222 | |||
1223 | ## ----------- ## | ||
1224 | ## Core tests. ## | ||
1225 | ## ----------- ## | ||
1226 | |||
1227 | _ACEOF | ||
1228 | |||
1229 | |||
1230 | # Keep a trace of the command line. | ||
1231 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1232 | # Strip out --silent because we don't want to record it for future runs. | ||
1233 | # Also quote any args containing shell meta-characters. | ||
1234 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1235 | ac_configure_args= | ||
1236 | ac_configure_args0= | ||
1237 | ac_configure_args1= | ||
1238 | ac_sep= | ||
1239 | ac_must_keep_next=false | ||
1240 | for ac_pass in 1 2 | ||
1241 | do | ||
1242 | for ac_arg | ||
1243 | do | ||
1244 | case $ac_arg in | ||
1245 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1246 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1247 | | -silent | --silent | --silen | --sile | --sil) | ||
1248 | continue ;; | ||
1249 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1250 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1251 | esac | ||
1252 | case $ac_pass in | ||
1253 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1254 | 2) | ||
1255 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1256 | if test $ac_must_keep_next = true; then | ||
1257 | ac_must_keep_next=false # Got value, back to normal. | ||
1258 | else | ||
1259 | case $ac_arg in | ||
1260 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1261 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1262 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1263 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1264 | case "$ac_configure_args0 " in | ||
1265 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1266 | esac | ||
1267 | ;; | ||
1268 | -* ) ac_must_keep_next=true ;; | ||
1269 | esac | ||
1270 | fi | ||
1271 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | ||
1272 | # Get rid of the leading space. | ||
1273 | ac_sep=" " | ||
1274 | ;; | ||
1275 | esac | ||
1276 | done | ||
1277 | done | ||
1278 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1279 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1280 | |||
1281 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1282 | # config.log. We remove comments because anyway the quotes in there | ||
1283 | # would cause problems or look ugly. | ||
1284 | # WARNING: Be sure not to use single quotes in there, as some shells, | ||
1285 | # such as our DU 5.0 friend, will then `close' the trap. | ||
1286 | trap 'exit_status=$? | ||
1287 | # Save into config.log some information that might help in debugging. | ||
1288 | { | ||
1289 | echo | ||
1290 | |||
1291 | cat <<\_ASBOX | ||
1292 | ## ---------------- ## | ||
1293 | ## Cache variables. ## | ||
1294 | ## ---------------- ## | ||
1295 | _ASBOX | ||
1296 | echo | ||
1297 | # The following way of writing the cache mishandles newlines in values, | ||
1298 | { | ||
1299 | (set) 2>&1 | | ||
1300 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | ||
1301 | *ac_space=\ *) | ||
1302 | sed -n \ | ||
1303 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | ||
1304 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | ||
1305 | ;; | ||
1306 | *) | ||
1307 | sed -n \ | ||
1308 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
1309 | ;; | ||
1310 | esac; | ||
1311 | } | ||
1312 | echo | ||
1313 | |||
1314 | cat <<\_ASBOX | ||
1315 | ## ----------------- ## | ||
1316 | ## Output variables. ## | ||
1317 | ## ----------------- ## | ||
1318 | _ASBOX | ||
1319 | echo | ||
1320 | for ac_var in $ac_subst_vars | ||
1321 | do | ||
1322 | eval ac_val=$`echo $ac_var` | ||
1323 | echo "$ac_var='"'"'$ac_val'"'"'" | ||
1324 | done | sort | ||
1325 | echo | ||
1326 | |||
1327 | if test -n "$ac_subst_files"; then | ||
1328 | cat <<\_ASBOX | ||
1329 | ## ------------- ## | ||
1330 | ## Output files. ## | ||
1331 | ## ------------- ## | ||
1332 | _ASBOX | ||
1333 | echo | ||
1334 | for ac_var in $ac_subst_files | ||
1335 | do | ||
1336 | eval ac_val=$`echo $ac_var` | ||
1337 | echo "$ac_var='"'"'$ac_val'"'"'" | ||
1338 | done | sort | ||
1339 | echo | ||
1340 | fi | ||
1341 | |||
1342 | if test -s confdefs.h; then | ||
1343 | cat <<\_ASBOX | ||
1344 | ## ----------- ## | ||
1345 | ## confdefs.h. ## | ||
1346 | ## ----------- ## | ||
1347 | _ASBOX | ||
1348 | echo | ||
1349 | sed "/^$/d" confdefs.h | sort | ||
1350 | echo | ||
1351 | fi | ||
1352 | test "$ac_signal" != 0 && | ||
1353 | echo "$as_me: caught signal $ac_signal" | ||
1354 | echo "$as_me: exit $exit_status" | ||
1355 | } >&5 | ||
1356 | rm -f core *.core && | ||
1357 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | ||
1358 | exit $exit_status | ||
1359 | ' 0 | ||
1360 | for ac_signal in 1 2 13 15; do | ||
1361 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1362 | done | ||
1363 | ac_signal=0 | ||
1364 | |||
1365 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1366 | rm -rf conftest* confdefs.h | ||
1367 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | ||
1368 | echo >confdefs.h | ||
1369 | |||
1370 | # Predefined preprocessor variables. | ||
1371 | |||
1372 | cat >>confdefs.h <<_ACEOF | ||
1373 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1374 | _ACEOF | ||
1375 | |||
1376 | |||
1377 | cat >>confdefs.h <<_ACEOF | ||
1378 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1379 | _ACEOF | ||
1380 | |||
1381 | |||
1382 | cat >>confdefs.h <<_ACEOF | ||
1383 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1384 | _ACEOF | ||
1385 | |||
1386 | |||
1387 | cat >>confdefs.h <<_ACEOF | ||
1388 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1389 | _ACEOF | ||
1390 | |||
1391 | |||
1392 | cat >>confdefs.h <<_ACEOF | ||
1393 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1394 | _ACEOF | ||
1395 | |||
1396 | |||
1397 | # Let the site file select an alternate cache file if it wants to. | ||
1398 | # Prefer explicitly selected file to automatically selected ones. | ||
1399 | if test -z "$CONFIG_SITE"; then | ||
1400 | if test "x$prefix" != xNONE; then | ||
1401 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | ||
1402 | else | ||
1403 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | ||
1404 | fi | ||
1405 | fi | ||
1406 | for ac_site_file in $CONFIG_SITE; do | ||
1407 | if test -r "$ac_site_file"; then | ||
1408 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1409 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1410 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1411 | . "$ac_site_file" | ||
1412 | fi | ||
1413 | done | ||
1414 | |||
1415 | if test -r "$cache_file"; then | ||
1416 | # Some versions of bash will fail to source /dev/null (special | ||
1417 | # files actually), so we avoid doing that. | ||
1418 | if test -f "$cache_file"; then | ||
1419 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1420 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1421 | case $cache_file in | ||
1422 | [\\/]* | ?:[\\/]* ) . $cache_file;; | ||
1423 | *) . ./$cache_file;; | ||
1424 | esac | ||
1425 | fi | ||
1426 | else | ||
1427 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1428 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1429 | >$cache_file | ||
1430 | fi | ||
1431 | |||
1432 | # Check that the precious variables saved in the cache have kept the same | ||
1433 | # value. | ||
1434 | ac_cache_corrupted=false | ||
1435 | for ac_var in `(set) 2>&1 | | ||
1436 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | ||
1437 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1438 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1439 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | ||
1440 | eval ac_new_val="\$ac_env_${ac_var}_value" | ||
1441 | case $ac_old_set,$ac_new_set in | ||
1442 | set,) | ||
1443 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1444 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1445 | ac_cache_corrupted=: ;; | ||
1446 | ,set) | ||
1447 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1448 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1449 | ac_cache_corrupted=: ;; | ||
1450 | ,);; | ||
1451 | *) | ||
1452 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1453 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1454 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1455 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1456 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1457 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1458 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1459 | ac_cache_corrupted=: | ||
1460 | fi;; | ||
1461 | esac | ||
1462 | # Pass precious variables to config.status. | ||
1463 | if test "$ac_new_set" = set; then | ||
1464 | case $ac_new_val in | ||
1465 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | ||
1466 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1467 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1468 | esac | ||
1469 | case " $ac_configure_args " in | ||
1470 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1471 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1472 | esac | ||
1473 | fi | ||
1474 | done | ||
1475 | if $ac_cache_corrupted; then | ||
1476 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1477 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1478 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1479 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1480 | { (exit 1); exit 1; }; } | ||
1481 | fi | ||
1482 | |||
1483 | ac_ext=c | ||
1484 | ac_cpp='$CPP $CPPFLAGS' | ||
1485 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1486 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1487 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1488 | |||
1489 | |||
1490 | |||
1491 | |||
1492 | |||
1493 | |||
1494 | |||
1495 | |||
1496 | |||
1497 | |||
1498 | |||
1499 | |||
1500 | |||
1501 | |||
1502 | |||
1503 | |||
1504 | |||
1505 | |||
1506 | |||
1507 | |||
1508 | |||
1509 | |||
1510 | |||
1511 | |||
1512 | |||
1513 | |||
1514 | |||
1515 | |||
1516 | |||
1517 | |||
1518 | ## ------------------------------- ## | ||
1519 | ## Libltdl specific configuration. ## | ||
1520 | ## ------------------------------- ## | ||
1521 | |||
1522 | ac_aux_dir= | ||
1523 | for ac_dir in . $srcdir/.; do | ||
1524 | if test -f $ac_dir/install-sh; then | ||
1525 | ac_aux_dir=$ac_dir | ||
1526 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
1527 | break | ||
1528 | elif test -f $ac_dir/install.sh; then | ||
1529 | ac_aux_dir=$ac_dir | ||
1530 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
1531 | break | ||
1532 | elif test -f $ac_dir/shtool; then | ||
1533 | ac_aux_dir=$ac_dir | ||
1534 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
1535 | break | ||
1536 | fi | ||
1537 | done | ||
1538 | if test -z "$ac_aux_dir"; then | ||
1539 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in . $srcdir/." >&5 | ||
1540 | echo "$as_me: error: cannot find install-sh or install.sh in . $srcdir/." >&2;} | ||
1541 | { (exit 1); exit 1; }; } | ||
1542 | fi | ||
1543 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | ||
1544 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | ||
1545 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | ||
1546 | |||
1547 | |||
1548 | if test -z "$enable_ltdl_install$enable_ltdl_convenience"; then | ||
1549 | if test -f ${srcdir}/ltmain.sh; then | ||
1550 | # if libltdl is libtoolized, it is assumed to be stand-alone and | ||
1551 | # installed unless the command line overrides it (tested above) | ||
1552 | enable_ltdl_install=yes | ||
1553 | else | ||
1554 | { echo "$as_me:$LINENO: WARNING: *** The top-level configure must select either" >&5 | ||
1555 | echo "$as_me: WARNING: *** The top-level configure must select either" >&2;} | ||
1556 | { echo "$as_me:$LINENO: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&5 | ||
1557 | echo "$as_me: WARNING: *** A\"\"C_LIBLTDL_INSTALLABLE or A\"\"C_LIBLTDL_CONVENIENCE." >&2;} | ||
1558 | { { echo "$as_me:$LINENO: error: *** Maybe you want to --enable-ltdl-install?" >&5 | ||
1559 | echo "$as_me: error: *** Maybe you want to --enable-ltdl-install?" >&2;} | ||
1560 | { (exit 1); exit 1; }; } | ||
1561 | fi | ||
1562 | fi | ||
1563 | |||
1564 | |||
1565 | ## ------------------------ ## | ||
1566 | ## Automake Initialisation. ## | ||
1567 | ## ------------------------ ## | ||
1568 | am__api_version="1.9" | ||
1569 | # Find a good install program. We prefer a C program (faster), | ||
1570 | # so one script is as good as another. But avoid the broken or | ||
1571 | # incompatible versions: | ||
1572 | # SysV /etc/install, /usr/sbin/install | ||
1573 | # SunOS /usr/etc/install | ||
1574 | # IRIX /sbin/install | ||
1575 | # AIX /bin/install | ||
1576 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
1577 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
1578 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
1579 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
1580 | # OS/2's system install, which has a completely different semantic | ||
1581 | # ./install, which can be erroneously created by make from ./install.sh. | ||
1582 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
1583 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | ||
1584 | if test -z "$INSTALL"; then | ||
1585 | if test "${ac_cv_path_install+set}" = set; then | ||
1586 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1587 | else | ||
1588 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1589 | for as_dir in $PATH | ||
1590 | do | ||
1591 | IFS=$as_save_IFS | ||
1592 | test -z "$as_dir" && as_dir=. | ||
1593 | # Account for people who put trailing slashes in PATH elements. | ||
1594 | case $as_dir/ in | ||
1595 | ./ | .// | /cC/* | \ | ||
1596 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
1597 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
1598 | /usr/ucb/* ) ;; | ||
1599 | *) | ||
1600 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
1601 | # Don't use installbsd from OSF since it installs stuff as root | ||
1602 | # by default. | ||
1603 | for ac_prog in ginstall scoinst install; do | ||
1604 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1605 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | ||
1606 | if test $ac_prog = install && | ||
1607 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
1608 | # AIX install. It has an incompatible calling convention. | ||
1609 | : | ||
1610 | elif test $ac_prog = install && | ||
1611 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
1612 | # program-specific install script used by HP pwplus--don't use. | ||
1613 | : | ||
1614 | else | ||
1615 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
1616 | break 3 | ||
1617 | fi | ||
1618 | fi | ||
1619 | done | ||
1620 | done | ||
1621 | ;; | ||
1622 | esac | ||
1623 | done | ||
1624 | |||
1625 | |||
1626 | fi | ||
1627 | if test "${ac_cv_path_install+set}" = set; then | ||
1628 | INSTALL=$ac_cv_path_install | ||
1629 | else | ||
1630 | # As a last resort, use the slow shell script. We don't cache a | ||
1631 | # path for INSTALL within a source directory, because that will | ||
1632 | # break other packages using the cache if that directory is | ||
1633 | # removed, or if the path is relative. | ||
1634 | INSTALL=$ac_install_sh | ||
1635 | fi | ||
1636 | fi | ||
1637 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
1638 | echo "${ECHO_T}$INSTALL" >&6 | ||
1639 | |||
1640 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
1641 | # It thinks the first close brace ends the variable substitution. | ||
1642 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
1643 | |||
1644 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
1645 | |||
1646 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
1647 | |||
1648 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | ||
1649 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | ||
1650 | # Just in case | ||
1651 | sleep 1 | ||
1652 | echo timestamp > conftest.file | ||
1653 | # Do `set' in a subshell so we don't clobber the current shell's | ||
1654 | # arguments. Must try -L first in case configure is actually a | ||
1655 | # symlink; some systems play weird games with the mod time of symlinks | ||
1656 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
1657 | # directory). | ||
1658 | if ( | ||
1659 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | ||
1660 | if test "$*" = "X"; then | ||
1661 | # -L didn't work. | ||
1662 | set X `ls -t $srcdir/configure conftest.file` | ||
1663 | fi | ||
1664 | rm -f conftest.file | ||
1665 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
1666 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
1667 | |||
1668 | # If neither matched, then we have a broken ls. This can happen | ||
1669 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
1670 | # broken ls alias from the environment. This has actually | ||
1671 | # happened. Such a system could not be considered "sane". | ||
1672 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | ||
1673 | alias in your environment" >&5 | ||
1674 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | ||
1675 | alias in your environment" >&2;} | ||
1676 | { (exit 1); exit 1; }; } | ||
1677 | fi | ||
1678 | |||
1679 | test "$2" = conftest.file | ||
1680 | ) | ||
1681 | then | ||
1682 | # Ok. | ||
1683 | : | ||
1684 | else | ||
1685 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | ||
1686 | Check your system clock" >&5 | ||
1687 | echo "$as_me: error: newly created file is older than distributed files! | ||
1688 | Check your system clock" >&2;} | ||
1689 | { (exit 1); exit 1; }; } | ||
1690 | fi | ||
1691 | echo "$as_me:$LINENO: result: yes" >&5 | ||
1692 | echo "${ECHO_T}yes" >&6 | ||
1693 | test "$program_prefix" != NONE && | ||
1694 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | ||
1695 | # Use a double $ so make ignores it. | ||
1696 | test "$program_suffix" != NONE && | ||
1697 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | ||
1698 | # Double any \ or $. echo might interpret backslashes. | ||
1699 | # By default was `s,x,x', remove it if useless. | ||
1700 | cat <<\_ACEOF >conftest.sed | ||
1701 | s/[\\$]/&&/g;s/;s,x,x,$// | ||
1702 | _ACEOF | ||
1703 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | ||
1704 | rm conftest.sed | ||
1705 | |||
1706 | # expand $ac_aux_dir to an absolute path | ||
1707 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
1708 | |||
1709 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | ||
1710 | # Use eval to expand $SHELL | ||
1711 | if eval "$MISSING --run true"; then | ||
1712 | am_missing_run="$MISSING --run " | ||
1713 | else | ||
1714 | am_missing_run= | ||
1715 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | ||
1716 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
1717 | fi | ||
1718 | |||
1719 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | ||
1720 | # We used to keeping the `.' as first argument, in order to | ||
1721 | # allow $(mkdir_p) to be used without argument. As in | ||
1722 | # $(mkdir_p) $(somedir) | ||
1723 | # where $(somedir) is conditionally defined. However this is wrong | ||
1724 | # for two reasons: | ||
1725 | # 1. if the package is installed by a user who cannot write `.' | ||
1726 | # make install will fail, | ||
1727 | # 2. the above comment should most certainly read | ||
1728 | # $(mkdir_p) $(DESTDIR)$(somedir) | ||
1729 | # so it does not work when $(somedir) is undefined and | ||
1730 | # $(DESTDIR) is not. | ||
1731 | # To support the latter case, we have to write | ||
1732 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | ||
1733 | # so the `.' trick is pointless. | ||
1734 | mkdir_p='mkdir -p --' | ||
1735 | else | ||
1736 | # On NextStep and OpenStep, the `mkdir' command does not | ||
1737 | # recognize any option. It will interpret all options as | ||
1738 | # directories to create, and then abort because `.' already | ||
1739 | # exists. | ||
1740 | for d in ./-p ./--version; | ||
1741 | do | ||
1742 | test -d $d && rmdir $d | ||
1743 | done | ||
1744 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | ||
1745 | if test -f "$ac_aux_dir/mkinstalldirs"; then | ||
1746 | mkdir_p='$(mkinstalldirs)' | ||
1747 | else | ||
1748 | mkdir_p='$(install_sh) -d' | ||
1749 | fi | ||
1750 | fi | ||
1751 | |||
1752 | for ac_prog in gawk mawk nawk awk | ||
1753 | do | ||
1754 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
1755 | set dummy $ac_prog; ac_word=$2 | ||
1756 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1757 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1758 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
1759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1760 | else | ||
1761 | if test -n "$AWK"; then | ||
1762 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
1763 | else | ||
1764 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1765 | for as_dir in $PATH | ||
1766 | do | ||
1767 | IFS=$as_save_IFS | ||
1768 | test -z "$as_dir" && as_dir=. | ||
1769 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1770 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1771 | ac_cv_prog_AWK="$ac_prog" | ||
1772 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1773 | break 2 | ||
1774 | fi | ||
1775 | done | ||
1776 | done | ||
1777 | |||
1778 | fi | ||
1779 | fi | ||
1780 | AWK=$ac_cv_prog_AWK | ||
1781 | if test -n "$AWK"; then | ||
1782 | echo "$as_me:$LINENO: result: $AWK" >&5 | ||
1783 | echo "${ECHO_T}$AWK" >&6 | ||
1784 | else | ||
1785 | echo "$as_me:$LINENO: result: no" >&5 | ||
1786 | echo "${ECHO_T}no" >&6 | ||
1787 | fi | ||
1788 | |||
1789 | test -n "$AWK" && break | ||
1790 | done | ||
1791 | |||
1792 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
1793 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | ||
1794 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | ||
1795 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | ||
1796 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1797 | else | ||
1798 | cat >conftest.make <<\_ACEOF | ||
1799 | all: | ||
1800 | @echo 'ac_maketemp="$(MAKE)"' | ||
1801 | _ACEOF | ||
1802 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | ||
1803 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | ||
1804 | if test -n "$ac_maketemp"; then | ||
1805 | eval ac_cv_prog_make_${ac_make}_set=yes | ||
1806 | else | ||
1807 | eval ac_cv_prog_make_${ac_make}_set=no | ||
1808 | fi | ||
1809 | rm -f conftest.make | ||
1810 | fi | ||
1811 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | ||
1812 | echo "$as_me:$LINENO: result: yes" >&5 | ||
1813 | echo "${ECHO_T}yes" >&6 | ||
1814 | SET_MAKE= | ||
1815 | else | ||
1816 | echo "$as_me:$LINENO: result: no" >&5 | ||
1817 | echo "${ECHO_T}no" >&6 | ||
1818 | SET_MAKE="MAKE=${MAKE-make}" | ||
1819 | fi | ||
1820 | |||
1821 | rm -rf .tst 2>/dev/null | ||
1822 | mkdir .tst 2>/dev/null | ||
1823 | if test -d .tst; then | ||
1824 | am__leading_dot=. | ||
1825 | else | ||
1826 | am__leading_dot=_ | ||
1827 | fi | ||
1828 | rmdir .tst 2>/dev/null | ||
1829 | |||
1830 | # test to see if srcdir already configured | ||
1831 | if test "`cd $srcdir && pwd`" != "`pwd`" && | ||
1832 | test -f $srcdir/config.status; then | ||
1833 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | ||
1834 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | ||
1835 | { (exit 1); exit 1; }; } | ||
1836 | fi | ||
1837 | |||
1838 | # test whether we have cygpath | ||
1839 | if test -z "$CYGPATH_W"; then | ||
1840 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
1841 | CYGPATH_W='cygpath -w' | ||
1842 | else | ||
1843 | CYGPATH_W=echo | ||
1844 | fi | ||
1845 | fi | ||
1846 | |||
1847 | |||
1848 | # Define the identity of the package. | ||
1849 | PACKAGE=libltdl | ||
1850 | VERSION=1.2 | ||
1851 | |||
1852 | |||
1853 | # Some tools Automake needs. | ||
1854 | |||
1855 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
1856 | |||
1857 | |||
1858 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
1859 | |||
1860 | |||
1861 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
1862 | |||
1863 | |||
1864 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
1865 | |||
1866 | |||
1867 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
1868 | |||
1869 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | ||
1870 | |||
1871 | # Installed binaries are usually stripped using `strip' when the user | ||
1872 | # run `make install-strip'. However `strip' might not be the right | ||
1873 | # tool to use in cross-compilation environments, therefore Automake | ||
1874 | # will honor the `STRIP' environment variable to overrule this program. | ||
1875 | if test "$cross_compiling" != no; then | ||
1876 | if test -n "$ac_tool_prefix"; then | ||
1877 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
1878 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
1879 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1880 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1881 | if test "${ac_cv_prog_STRIP+set}" = set; then | ||
1882 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1883 | else | ||
1884 | if test -n "$STRIP"; then | ||
1885 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
1886 | else | ||
1887 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1888 | for as_dir in $PATH | ||
1889 | do | ||
1890 | IFS=$as_save_IFS | ||
1891 | test -z "$as_dir" && as_dir=. | ||
1892 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1893 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1894 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
1895 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1896 | break 2 | ||
1897 | fi | ||
1898 | done | ||
1899 | done | ||
1900 | |||
1901 | fi | ||
1902 | fi | ||
1903 | STRIP=$ac_cv_prog_STRIP | ||
1904 | if test -n "$STRIP"; then | ||
1905 | echo "$as_me:$LINENO: result: $STRIP" >&5 | ||
1906 | echo "${ECHO_T}$STRIP" >&6 | ||
1907 | else | ||
1908 | echo "$as_me:$LINENO: result: no" >&5 | ||
1909 | echo "${ECHO_T}no" >&6 | ||
1910 | fi | ||
1911 | |||
1912 | fi | ||
1913 | if test -z "$ac_cv_prog_STRIP"; then | ||
1914 | ac_ct_STRIP=$STRIP | ||
1915 | # Extract the first word of "strip", so it can be a program name with args. | ||
1916 | set dummy strip; ac_word=$2 | ||
1917 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
1918 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
1919 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | ||
1920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
1921 | else | ||
1922 | if test -n "$ac_ct_STRIP"; then | ||
1923 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
1924 | else | ||
1925 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1926 | for as_dir in $PATH | ||
1927 | do | ||
1928 | IFS=$as_save_IFS | ||
1929 | test -z "$as_dir" && as_dir=. | ||
1930 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
1931 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
1932 | ac_cv_prog_ac_ct_STRIP="strip" | ||
1933 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
1934 | break 2 | ||
1935 | fi | ||
1936 | done | ||
1937 | done | ||
1938 | |||
1939 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | ||
1940 | fi | ||
1941 | fi | ||
1942 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
1943 | if test -n "$ac_ct_STRIP"; then | ||
1944 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | ||
1945 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | ||
1946 | else | ||
1947 | echo "$as_me:$LINENO: result: no" >&5 | ||
1948 | echo "${ECHO_T}no" >&6 | ||
1949 | fi | ||
1950 | |||
1951 | STRIP=$ac_ct_STRIP | ||
1952 | else | ||
1953 | STRIP="$ac_cv_prog_STRIP" | ||
1954 | fi | ||
1955 | |||
1956 | fi | ||
1957 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | ||
1958 | |||
1959 | # We need awk for the "check" target. The system "awk" is bad on | ||
1960 | # some platforms. | ||
1961 | # Always define AMTAR for backward compatibility. | ||
1962 | |||
1963 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
1964 | |||
1965 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | ||
1966 | |||
1967 | |||
1968 | |||
1969 | |||
1970 | |||
1971 | ac_config_headers="$ac_config_headers config.h:config-h.in" | ||
1972 | |||
1973 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | ||
1974 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | ||
1975 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | ||
1976 | if test "${enable_maintainer_mode+set}" = set; then | ||
1977 | enableval="$enable_maintainer_mode" | ||
1978 | USE_MAINTAINER_MODE=$enableval | ||
1979 | else | ||
1980 | USE_MAINTAINER_MODE=no | ||
1981 | fi; | ||
1982 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | ||
1983 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | ||
1984 | |||
1985 | |||
1986 | if test $USE_MAINTAINER_MODE = yes; then | ||
1987 | MAINTAINER_MODE_TRUE= | ||
1988 | MAINTAINER_MODE_FALSE='#' | ||
1989 | else | ||
1990 | MAINTAINER_MODE_TRUE='#' | ||
1991 | MAINTAINER_MODE_FALSE= | ||
1992 | fi | ||
1993 | |||
1994 | MAINT=$MAINTAINER_MODE_TRUE | ||
1995 | |||
1996 | |||
1997 | |||
1998 | |||
1999 | ## ------------------ ## | ||
2000 | ## C compiler checks. ## | ||
2001 | ## ------------------ ## | ||
2002 | ac_ext=c | ||
2003 | ac_cpp='$CPP $CPPFLAGS' | ||
2004 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2005 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2006 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2007 | if test -n "$ac_tool_prefix"; then | ||
2008 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
2009 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
2010 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2011 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2012 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2013 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2014 | else | ||
2015 | if test -n "$CC"; then | ||
2016 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2017 | else | ||
2018 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2019 | for as_dir in $PATH | ||
2020 | do | ||
2021 | IFS=$as_save_IFS | ||
2022 | test -z "$as_dir" && as_dir=. | ||
2023 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2024 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2025 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
2026 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2027 | break 2 | ||
2028 | fi | ||
2029 | done | ||
2030 | done | ||
2031 | |||
2032 | fi | ||
2033 | fi | ||
2034 | CC=$ac_cv_prog_CC | ||
2035 | if test -n "$CC"; then | ||
2036 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
2037 | echo "${ECHO_T}$CC" >&6 | ||
2038 | else | ||
2039 | echo "$as_me:$LINENO: result: no" >&5 | ||
2040 | echo "${ECHO_T}no" >&6 | ||
2041 | fi | ||
2042 | |||
2043 | fi | ||
2044 | if test -z "$ac_cv_prog_CC"; then | ||
2045 | ac_ct_CC=$CC | ||
2046 | # Extract the first word of "gcc", so it can be a program name with args. | ||
2047 | set dummy gcc; ac_word=$2 | ||
2048 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2049 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2050 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2051 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2052 | else | ||
2053 | if test -n "$ac_ct_CC"; then | ||
2054 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2055 | else | ||
2056 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2057 | for as_dir in $PATH | ||
2058 | do | ||
2059 | IFS=$as_save_IFS | ||
2060 | test -z "$as_dir" && as_dir=. | ||
2061 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2062 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2063 | ac_cv_prog_ac_ct_CC="gcc" | ||
2064 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2065 | break 2 | ||
2066 | fi | ||
2067 | done | ||
2068 | done | ||
2069 | |||
2070 | fi | ||
2071 | fi | ||
2072 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2073 | if test -n "$ac_ct_CC"; then | ||
2074 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2075 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
2076 | else | ||
2077 | echo "$as_me:$LINENO: result: no" >&5 | ||
2078 | echo "${ECHO_T}no" >&6 | ||
2079 | fi | ||
2080 | |||
2081 | CC=$ac_ct_CC | ||
2082 | else | ||
2083 | CC="$ac_cv_prog_CC" | ||
2084 | fi | ||
2085 | |||
2086 | if test -z "$CC"; then | ||
2087 | if test -n "$ac_tool_prefix"; then | ||
2088 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
2089 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
2090 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2091 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2092 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2093 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2094 | else | ||
2095 | if test -n "$CC"; then | ||
2096 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2097 | else | ||
2098 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2099 | for as_dir in $PATH | ||
2100 | do | ||
2101 | IFS=$as_save_IFS | ||
2102 | test -z "$as_dir" && as_dir=. | ||
2103 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2104 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2105 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
2106 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2107 | break 2 | ||
2108 | fi | ||
2109 | done | ||
2110 | done | ||
2111 | |||
2112 | fi | ||
2113 | fi | ||
2114 | CC=$ac_cv_prog_CC | ||
2115 | if test -n "$CC"; then | ||
2116 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
2117 | echo "${ECHO_T}$CC" >&6 | ||
2118 | else | ||
2119 | echo "$as_me:$LINENO: result: no" >&5 | ||
2120 | echo "${ECHO_T}no" >&6 | ||
2121 | fi | ||
2122 | |||
2123 | fi | ||
2124 | if test -z "$ac_cv_prog_CC"; then | ||
2125 | ac_ct_CC=$CC | ||
2126 | # Extract the first word of "cc", so it can be a program name with args. | ||
2127 | set dummy cc; ac_word=$2 | ||
2128 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2129 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2130 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2132 | else | ||
2133 | if test -n "$ac_ct_CC"; then | ||
2134 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2135 | else | ||
2136 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2137 | for as_dir in $PATH | ||
2138 | do | ||
2139 | IFS=$as_save_IFS | ||
2140 | test -z "$as_dir" && as_dir=. | ||
2141 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2142 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2143 | ac_cv_prog_ac_ct_CC="cc" | ||
2144 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2145 | break 2 | ||
2146 | fi | ||
2147 | done | ||
2148 | done | ||
2149 | |||
2150 | fi | ||
2151 | fi | ||
2152 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2153 | if test -n "$ac_ct_CC"; then | ||
2154 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2155 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
2156 | else | ||
2157 | echo "$as_me:$LINENO: result: no" >&5 | ||
2158 | echo "${ECHO_T}no" >&6 | ||
2159 | fi | ||
2160 | |||
2161 | CC=$ac_ct_CC | ||
2162 | else | ||
2163 | CC="$ac_cv_prog_CC" | ||
2164 | fi | ||
2165 | |||
2166 | fi | ||
2167 | if test -z "$CC"; then | ||
2168 | # Extract the first word of "cc", so it can be a program name with args. | ||
2169 | set dummy cc; ac_word=$2 | ||
2170 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2171 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2172 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2173 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2174 | else | ||
2175 | if test -n "$CC"; then | ||
2176 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2177 | else | ||
2178 | ac_prog_rejected=no | ||
2179 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2180 | for as_dir in $PATH | ||
2181 | do | ||
2182 | IFS=$as_save_IFS | ||
2183 | test -z "$as_dir" && as_dir=. | ||
2184 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2185 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2186 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
2187 | ac_prog_rejected=yes | ||
2188 | continue | ||
2189 | fi | ||
2190 | ac_cv_prog_CC="cc" | ||
2191 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2192 | break 2 | ||
2193 | fi | ||
2194 | done | ||
2195 | done | ||
2196 | |||
2197 | if test $ac_prog_rejected = yes; then | ||
2198 | # We found a bogon in the path, so make sure we never use it. | ||
2199 | set dummy $ac_cv_prog_CC | ||
2200 | shift | ||
2201 | if test $# != 0; then | ||
2202 | # We chose a different compiler from the bogus one. | ||
2203 | # However, it has the same basename, so the bogon will be chosen | ||
2204 | # first if we set CC to just the basename; use the full file name. | ||
2205 | shift | ||
2206 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2207 | fi | ||
2208 | fi | ||
2209 | fi | ||
2210 | fi | ||
2211 | CC=$ac_cv_prog_CC | ||
2212 | if test -n "$CC"; then | ||
2213 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
2214 | echo "${ECHO_T}$CC" >&6 | ||
2215 | else | ||
2216 | echo "$as_me:$LINENO: result: no" >&5 | ||
2217 | echo "${ECHO_T}no" >&6 | ||
2218 | fi | ||
2219 | |||
2220 | fi | ||
2221 | if test -z "$CC"; then | ||
2222 | if test -n "$ac_tool_prefix"; then | ||
2223 | for ac_prog in cl | ||
2224 | do | ||
2225 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2226 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2227 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2228 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2229 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2230 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2231 | else | ||
2232 | if test -n "$CC"; then | ||
2233 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2234 | else | ||
2235 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2236 | for as_dir in $PATH | ||
2237 | do | ||
2238 | IFS=$as_save_IFS | ||
2239 | test -z "$as_dir" && as_dir=. | ||
2240 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2241 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2242 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2243 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2244 | break 2 | ||
2245 | fi | ||
2246 | done | ||
2247 | done | ||
2248 | |||
2249 | fi | ||
2250 | fi | ||
2251 | CC=$ac_cv_prog_CC | ||
2252 | if test -n "$CC"; then | ||
2253 | echo "$as_me:$LINENO: result: $CC" >&5 | ||
2254 | echo "${ECHO_T}$CC" >&6 | ||
2255 | else | ||
2256 | echo "$as_me:$LINENO: result: no" >&5 | ||
2257 | echo "${ECHO_T}no" >&6 | ||
2258 | fi | ||
2259 | |||
2260 | test -n "$CC" && break | ||
2261 | done | ||
2262 | fi | ||
2263 | if test -z "$CC"; then | ||
2264 | ac_ct_CC=$CC | ||
2265 | for ac_prog in cl | ||
2266 | do | ||
2267 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2268 | set dummy $ac_prog; ac_word=$2 | ||
2269 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2270 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
2271 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2272 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2273 | else | ||
2274 | if test -n "$ac_ct_CC"; then | ||
2275 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2276 | else | ||
2277 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2278 | for as_dir in $PATH | ||
2279 | do | ||
2280 | IFS=$as_save_IFS | ||
2281 | test -z "$as_dir" && as_dir=. | ||
2282 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2283 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
2284 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2285 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2286 | break 2 | ||
2287 | fi | ||
2288 | done | ||
2289 | done | ||
2290 | |||
2291 | fi | ||
2292 | fi | ||
2293 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2294 | if test -n "$ac_ct_CC"; then | ||
2295 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2296 | echo "${ECHO_T}$ac_ct_CC" >&6 | ||
2297 | else | ||
2298 | echo "$as_me:$LINENO: result: no" >&5 | ||
2299 | echo "${ECHO_T}no" >&6 | ||
2300 | fi | ||
2301 | |||
2302 | test -n "$ac_ct_CC" && break | ||
2303 | done | ||
2304 | |||
2305 | CC=$ac_ct_CC | ||
2306 | fi | ||
2307 | |||
2308 | fi | ||
2309 | |||
2310 | |||
2311 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
2312 | See \`config.log' for more details." >&5 | ||
2313 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
2314 | See \`config.log' for more details." >&2;} | ||
2315 | { (exit 1); exit 1; }; } | ||
2316 | |||
2317 | # Provide some information about the compiler. | ||
2318 | echo "$as_me:$LINENO:" \ | ||
2319 | "checking for C compiler version" >&5 | ||
2320 | ac_compiler=`set X $ac_compile; echo $2` | ||
2321 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
2322 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
2323 | ac_status=$? | ||
2324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2325 | (exit $ac_status); } | ||
2326 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
2327 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
2328 | ac_status=$? | ||
2329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2330 | (exit $ac_status); } | ||
2331 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
2332 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
2333 | ac_status=$? | ||
2334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2335 | (exit $ac_status); } | ||
2336 | |||
2337 | cat >conftest.$ac_ext <<_ACEOF | ||
2338 | /* confdefs.h. */ | ||
2339 | _ACEOF | ||
2340 | cat confdefs.h >>conftest.$ac_ext | ||
2341 | cat >>conftest.$ac_ext <<_ACEOF | ||
2342 | /* end confdefs.h. */ | ||
2343 | |||
2344 | int | ||
2345 | main () | ||
2346 | { | ||
2347 | |||
2348 | ; | ||
2349 | return 0; | ||
2350 | } | ||
2351 | _ACEOF | ||
2352 | ac_clean_files_save=$ac_clean_files | ||
2353 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
2354 | # Try to create an executable without -o first, disregard a.out. | ||
2355 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2356 | # of exeext. | ||
2357 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
2358 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | ||
2359 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2360 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | ||
2361 | (eval $ac_link_default) 2>&5 | ||
2362 | ac_status=$? | ||
2363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2364 | (exit $ac_status); }; then | ||
2365 | # Find the output, starting from the most likely. This scheme is | ||
2366 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | ||
2367 | # resort. | ||
2368 | |||
2369 | # Be careful to initialize this variable, since it used to be cached. | ||
2370 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | ||
2371 | ac_cv_exeext= | ||
2372 | # b.out is created by i960 compilers. | ||
2373 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | ||
2374 | do | ||
2375 | test -f "$ac_file" || continue | ||
2376 | case $ac_file in | ||
2377 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | ||
2378 | ;; | ||
2379 | conftest.$ac_ext ) | ||
2380 | # This is the source file. | ||
2381 | ;; | ||
2382 | [ab].out ) | ||
2383 | # We found the default executable, but exeext='' is most | ||
2384 | # certainly right. | ||
2385 | break;; | ||
2386 | *.* ) | ||
2387 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2388 | # FIXME: I believe we export ac_cv_exeext for Libtool, | ||
2389 | # but it would be cool to find out if it's true. Does anybody | ||
2390 | # maintain Libtool? --akim. | ||
2391 | export ac_cv_exeext | ||
2392 | break;; | ||
2393 | * ) | ||
2394 | break;; | ||
2395 | esac | ||
2396 | done | ||
2397 | else | ||
2398 | echo "$as_me: failed program was:" >&5 | ||
2399 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2400 | |||
2401 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
2402 | See \`config.log' for more details." >&5 | ||
2403 | echo "$as_me: error: C compiler cannot create executables | ||
2404 | See \`config.log' for more details." >&2;} | ||
2405 | { (exit 77); exit 77; }; } | ||
2406 | fi | ||
2407 | |||
2408 | ac_exeext=$ac_cv_exeext | ||
2409 | echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2410 | echo "${ECHO_T}$ac_file" >&6 | ||
2411 | |||
2412 | # Check the compiler produces executables we can run. If not, either | ||
2413 | # the compiler is broken, or we cross compile. | ||
2414 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
2415 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | ||
2416 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
2417 | # If not cross compiling, check that we can run a simple program. | ||
2418 | if test "$cross_compiling" != yes; then | ||
2419 | if { ac_try='./$ac_file' | ||
2420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2421 | (eval $ac_try) 2>&5 | ||
2422 | ac_status=$? | ||
2423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2424 | (exit $ac_status); }; }; then | ||
2425 | cross_compiling=no | ||
2426 | else | ||
2427 | if test "$cross_compiling" = maybe; then | ||
2428 | cross_compiling=yes | ||
2429 | else | ||
2430 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
2431 | If you meant to cross compile, use \`--host'. | ||
2432 | See \`config.log' for more details." >&5 | ||
2433 | echo "$as_me: error: cannot run C compiled programs. | ||
2434 | If you meant to cross compile, use \`--host'. | ||
2435 | See \`config.log' for more details." >&2;} | ||
2436 | { (exit 1); exit 1; }; } | ||
2437 | fi | ||
2438 | fi | ||
2439 | fi | ||
2440 | echo "$as_me:$LINENO: result: yes" >&5 | ||
2441 | echo "${ECHO_T}yes" >&6 | ||
2442 | |||
2443 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
2444 | ac_clean_files=$ac_clean_files_save | ||
2445 | # Check the compiler produces executables we can run. If not, either | ||
2446 | # the compiler is broken, or we cross compile. | ||
2447 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
2448 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | ||
2449 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
2450 | echo "${ECHO_T}$cross_compiling" >&6 | ||
2451 | |||
2452 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
2453 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | ||
2454 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
2455 | (eval $ac_link) 2>&5 | ||
2456 | ac_status=$? | ||
2457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2458 | (exit $ac_status); }; then | ||
2459 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2460 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2461 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2462 | # `rm'. | ||
2463 | for ac_file in conftest.exe conftest conftest.*; do | ||
2464 | test -f "$ac_file" || continue | ||
2465 | case $ac_file in | ||
2466 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | ||
2467 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2468 | export ac_cv_exeext | ||
2469 | break;; | ||
2470 | * ) break;; | ||
2471 | esac | ||
2472 | done | ||
2473 | else | ||
2474 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
2475 | See \`config.log' for more details." >&5 | ||
2476 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
2477 | See \`config.log' for more details." >&2;} | ||
2478 | { (exit 1); exit 1; }; } | ||
2479 | fi | ||
2480 | |||
2481 | rm -f conftest$ac_cv_exeext | ||
2482 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
2483 | echo "${ECHO_T}$ac_cv_exeext" >&6 | ||
2484 | |||
2485 | rm -f conftest.$ac_ext | ||
2486 | EXEEXT=$ac_cv_exeext | ||
2487 | ac_exeext=$EXEEXT | ||
2488 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
2489 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | ||
2490 | if test "${ac_cv_objext+set}" = set; then | ||
2491 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2492 | else | ||
2493 | cat >conftest.$ac_ext <<_ACEOF | ||
2494 | /* confdefs.h. */ | ||
2495 | _ACEOF | ||
2496 | cat confdefs.h >>conftest.$ac_ext | ||
2497 | cat >>conftest.$ac_ext <<_ACEOF | ||
2498 | /* end confdefs.h. */ | ||
2499 | |||
2500 | int | ||
2501 | main () | ||
2502 | { | ||
2503 | |||
2504 | ; | ||
2505 | return 0; | ||
2506 | } | ||
2507 | _ACEOF | ||
2508 | rm -f conftest.o conftest.obj | ||
2509 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2510 | (eval $ac_compile) 2>&5 | ||
2511 | ac_status=$? | ||
2512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2513 | (exit $ac_status); }; then | ||
2514 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | ||
2515 | case $ac_file in | ||
2516 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | ||
2517 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
2518 | break;; | ||
2519 | esac | ||
2520 | done | ||
2521 | else | ||
2522 | echo "$as_me: failed program was:" >&5 | ||
2523 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2524 | |||
2525 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
2526 | See \`config.log' for more details." >&5 | ||
2527 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
2528 | See \`config.log' for more details." >&2;} | ||
2529 | { (exit 1); exit 1; }; } | ||
2530 | fi | ||
2531 | |||
2532 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
2533 | fi | ||
2534 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
2535 | echo "${ECHO_T}$ac_cv_objext" >&6 | ||
2536 | OBJEXT=$ac_cv_objext | ||
2537 | ac_objext=$OBJEXT | ||
2538 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
2539 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | ||
2540 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
2541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2542 | else | ||
2543 | cat >conftest.$ac_ext <<_ACEOF | ||
2544 | /* confdefs.h. */ | ||
2545 | _ACEOF | ||
2546 | cat confdefs.h >>conftest.$ac_ext | ||
2547 | cat >>conftest.$ac_ext <<_ACEOF | ||
2548 | /* end confdefs.h. */ | ||
2549 | |||
2550 | int | ||
2551 | main () | ||
2552 | { | ||
2553 | #ifndef __GNUC__ | ||
2554 | choke me | ||
2555 | #endif | ||
2556 | |||
2557 | ; | ||
2558 | return 0; | ||
2559 | } | ||
2560 | _ACEOF | ||
2561 | rm -f conftest.$ac_objext | ||
2562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2563 | (eval $ac_compile) 2>conftest.er1 | ||
2564 | ac_status=$? | ||
2565 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2566 | rm -f conftest.er1 | ||
2567 | cat conftest.err >&5 | ||
2568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2569 | (exit $ac_status); } && | ||
2570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2572 | (eval $ac_try) 2>&5 | ||
2573 | ac_status=$? | ||
2574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2575 | (exit $ac_status); }; } && | ||
2576 | { ac_try='test -s conftest.$ac_objext' | ||
2577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2578 | (eval $ac_try) 2>&5 | ||
2579 | ac_status=$? | ||
2580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2581 | (exit $ac_status); }; }; then | ||
2582 | ac_compiler_gnu=yes | ||
2583 | else | ||
2584 | echo "$as_me: failed program was:" >&5 | ||
2585 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2586 | |||
2587 | ac_compiler_gnu=no | ||
2588 | fi | ||
2589 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2590 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
2591 | |||
2592 | fi | ||
2593 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
2594 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | ||
2595 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
2596 | ac_test_CFLAGS=${CFLAGS+set} | ||
2597 | ac_save_CFLAGS=$CFLAGS | ||
2598 | CFLAGS="-g" | ||
2599 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
2600 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | ||
2601 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
2602 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2603 | else | ||
2604 | cat >conftest.$ac_ext <<_ACEOF | ||
2605 | /* confdefs.h. */ | ||
2606 | _ACEOF | ||
2607 | cat confdefs.h >>conftest.$ac_ext | ||
2608 | cat >>conftest.$ac_ext <<_ACEOF | ||
2609 | /* end confdefs.h. */ | ||
2610 | |||
2611 | int | ||
2612 | main () | ||
2613 | { | ||
2614 | |||
2615 | ; | ||
2616 | return 0; | ||
2617 | } | ||
2618 | _ACEOF | ||
2619 | rm -f conftest.$ac_objext | ||
2620 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2621 | (eval $ac_compile) 2>conftest.er1 | ||
2622 | ac_status=$? | ||
2623 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2624 | rm -f conftest.er1 | ||
2625 | cat conftest.err >&5 | ||
2626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2627 | (exit $ac_status); } && | ||
2628 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2630 | (eval $ac_try) 2>&5 | ||
2631 | ac_status=$? | ||
2632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2633 | (exit $ac_status); }; } && | ||
2634 | { ac_try='test -s conftest.$ac_objext' | ||
2635 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2636 | (eval $ac_try) 2>&5 | ||
2637 | ac_status=$? | ||
2638 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2639 | (exit $ac_status); }; }; then | ||
2640 | ac_cv_prog_cc_g=yes | ||
2641 | else | ||
2642 | echo "$as_me: failed program was:" >&5 | ||
2643 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2644 | |||
2645 | ac_cv_prog_cc_g=no | ||
2646 | fi | ||
2647 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2648 | fi | ||
2649 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
2650 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | ||
2651 | if test "$ac_test_CFLAGS" = set; then | ||
2652 | CFLAGS=$ac_save_CFLAGS | ||
2653 | elif test $ac_cv_prog_cc_g = yes; then | ||
2654 | if test "$GCC" = yes; then | ||
2655 | CFLAGS="-g -O2" | ||
2656 | else | ||
2657 | CFLAGS="-g" | ||
2658 | fi | ||
2659 | else | ||
2660 | if test "$GCC" = yes; then | ||
2661 | CFLAGS="-O2" | ||
2662 | else | ||
2663 | CFLAGS= | ||
2664 | fi | ||
2665 | fi | ||
2666 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | ||
2667 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | ||
2668 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | ||
2669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2670 | else | ||
2671 | ac_cv_prog_cc_stdc=no | ||
2672 | ac_save_CC=$CC | ||
2673 | cat >conftest.$ac_ext <<_ACEOF | ||
2674 | /* confdefs.h. */ | ||
2675 | _ACEOF | ||
2676 | cat confdefs.h >>conftest.$ac_ext | ||
2677 | cat >>conftest.$ac_ext <<_ACEOF | ||
2678 | /* end confdefs.h. */ | ||
2679 | #include <stdarg.h> | ||
2680 | #include <stdio.h> | ||
2681 | #include <sys/types.h> | ||
2682 | #include <sys/stat.h> | ||
2683 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
2684 | struct buf { int x; }; | ||
2685 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
2686 | static char *e (p, i) | ||
2687 | char **p; | ||
2688 | int i; | ||
2689 | { | ||
2690 | return p[i]; | ||
2691 | } | ||
2692 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
2693 | { | ||
2694 | char *s; | ||
2695 | va_list v; | ||
2696 | va_start (v,p); | ||
2697 | s = g (p, va_arg (v,int)); | ||
2698 | va_end (v); | ||
2699 | return s; | ||
2700 | } | ||
2701 | |||
2702 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
2703 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
2704 | These don't provoke an error unfortunately, instead are silently treated | ||
2705 | as 'x'. The following induces an error, until -std1 is added to get | ||
2706 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
2707 | array size at least. It's necessary to write '\x00'==0 to get something | ||
2708 | that's true only with -std1. */ | ||
2709 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
2710 | |||
2711 | int test (int i, double x); | ||
2712 | struct s1 {int (*f) (int a);}; | ||
2713 | struct s2 {int (*f) (double a);}; | ||
2714 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
2715 | int argc; | ||
2716 | char **argv; | ||
2717 | int | ||
2718 | main () | ||
2719 | { | ||
2720 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
2721 | ; | ||
2722 | return 0; | ||
2723 | } | ||
2724 | _ACEOF | ||
2725 | # Don't try gcc -ansi; that turns off useful extensions and | ||
2726 | # breaks some systems' header files. | ||
2727 | # AIX -qlanglvl=ansi | ||
2728 | # Ultrix and OSF/1 -std1 | ||
2729 | # HP-UX 10.20 and later -Ae | ||
2730 | # HP-UX older versions -Aa -D_HPUX_SOURCE | ||
2731 | # SVR4 -Xc -D__EXTENSIONS__ | ||
2732 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
2733 | do | ||
2734 | CC="$ac_save_CC $ac_arg" | ||
2735 | rm -f conftest.$ac_objext | ||
2736 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2737 | (eval $ac_compile) 2>conftest.er1 | ||
2738 | ac_status=$? | ||
2739 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2740 | rm -f conftest.er1 | ||
2741 | cat conftest.err >&5 | ||
2742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2743 | (exit $ac_status); } && | ||
2744 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2746 | (eval $ac_try) 2>&5 | ||
2747 | ac_status=$? | ||
2748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2749 | (exit $ac_status); }; } && | ||
2750 | { ac_try='test -s conftest.$ac_objext' | ||
2751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2752 | (eval $ac_try) 2>&5 | ||
2753 | ac_status=$? | ||
2754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2755 | (exit $ac_status); }; }; then | ||
2756 | ac_cv_prog_cc_stdc=$ac_arg | ||
2757 | break | ||
2758 | else | ||
2759 | echo "$as_me: failed program was:" >&5 | ||
2760 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2761 | |||
2762 | fi | ||
2763 | rm -f conftest.err conftest.$ac_objext | ||
2764 | done | ||
2765 | rm -f conftest.$ac_ext conftest.$ac_objext | ||
2766 | CC=$ac_save_CC | ||
2767 | |||
2768 | fi | ||
2769 | |||
2770 | case "x$ac_cv_prog_cc_stdc" in | ||
2771 | x|xno) | ||
2772 | echo "$as_me:$LINENO: result: none needed" >&5 | ||
2773 | echo "${ECHO_T}none needed" >&6 ;; | ||
2774 | *) | ||
2775 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | ||
2776 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | ||
2777 | CC="$CC $ac_cv_prog_cc_stdc" ;; | ||
2778 | esac | ||
2779 | |||
2780 | # Some people use a C++ compiler to compile C. Since we use `exit', | ||
2781 | # in C++ we need to declare it. In case someone uses the same compiler | ||
2782 | # for both compiling C and C++ we need to have the C++ compiler decide | ||
2783 | # the declaration of exit, since it's the most demanding environment. | ||
2784 | cat >conftest.$ac_ext <<_ACEOF | ||
2785 | #ifndef __cplusplus | ||
2786 | choke me | ||
2787 | #endif | ||
2788 | _ACEOF | ||
2789 | rm -f conftest.$ac_objext | ||
2790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2791 | (eval $ac_compile) 2>conftest.er1 | ||
2792 | ac_status=$? | ||
2793 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2794 | rm -f conftest.er1 | ||
2795 | cat conftest.err >&5 | ||
2796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2797 | (exit $ac_status); } && | ||
2798 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2799 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2800 | (eval $ac_try) 2>&5 | ||
2801 | ac_status=$? | ||
2802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2803 | (exit $ac_status); }; } && | ||
2804 | { ac_try='test -s conftest.$ac_objext' | ||
2805 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2806 | (eval $ac_try) 2>&5 | ||
2807 | ac_status=$? | ||
2808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2809 | (exit $ac_status); }; }; then | ||
2810 | for ac_declaration in \ | ||
2811 | '' \ | ||
2812 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | ||
2813 | 'extern "C" void std::exit (int); using std::exit;' \ | ||
2814 | 'extern "C" void exit (int) throw ();' \ | ||
2815 | 'extern "C" void exit (int);' \ | ||
2816 | 'void exit (int);' | ||
2817 | do | ||
2818 | cat >conftest.$ac_ext <<_ACEOF | ||
2819 | /* confdefs.h. */ | ||
2820 | _ACEOF | ||
2821 | cat confdefs.h >>conftest.$ac_ext | ||
2822 | cat >>conftest.$ac_ext <<_ACEOF | ||
2823 | /* end confdefs.h. */ | ||
2824 | $ac_declaration | ||
2825 | #include <stdlib.h> | ||
2826 | int | ||
2827 | main () | ||
2828 | { | ||
2829 | exit (42); | ||
2830 | ; | ||
2831 | return 0; | ||
2832 | } | ||
2833 | _ACEOF | ||
2834 | rm -f conftest.$ac_objext | ||
2835 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2836 | (eval $ac_compile) 2>conftest.er1 | ||
2837 | ac_status=$? | ||
2838 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2839 | rm -f conftest.er1 | ||
2840 | cat conftest.err >&5 | ||
2841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2842 | (exit $ac_status); } && | ||
2843 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2844 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2845 | (eval $ac_try) 2>&5 | ||
2846 | ac_status=$? | ||
2847 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2848 | (exit $ac_status); }; } && | ||
2849 | { ac_try='test -s conftest.$ac_objext' | ||
2850 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2851 | (eval $ac_try) 2>&5 | ||
2852 | ac_status=$? | ||
2853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2854 | (exit $ac_status); }; }; then | ||
2855 | : | ||
2856 | else | ||
2857 | echo "$as_me: failed program was:" >&5 | ||
2858 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2859 | |||
2860 | continue | ||
2861 | fi | ||
2862 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2863 | cat >conftest.$ac_ext <<_ACEOF | ||
2864 | /* confdefs.h. */ | ||
2865 | _ACEOF | ||
2866 | cat confdefs.h >>conftest.$ac_ext | ||
2867 | cat >>conftest.$ac_ext <<_ACEOF | ||
2868 | /* end confdefs.h. */ | ||
2869 | $ac_declaration | ||
2870 | int | ||
2871 | main () | ||
2872 | { | ||
2873 | exit (42); | ||
2874 | ; | ||
2875 | return 0; | ||
2876 | } | ||
2877 | _ACEOF | ||
2878 | rm -f conftest.$ac_objext | ||
2879 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
2880 | (eval $ac_compile) 2>conftest.er1 | ||
2881 | ac_status=$? | ||
2882 | grep -v '^ *+' conftest.er1 >conftest.err | ||
2883 | rm -f conftest.er1 | ||
2884 | cat conftest.err >&5 | ||
2885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2886 | (exit $ac_status); } && | ||
2887 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
2888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2889 | (eval $ac_try) 2>&5 | ||
2890 | ac_status=$? | ||
2891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2892 | (exit $ac_status); }; } && | ||
2893 | { ac_try='test -s conftest.$ac_objext' | ||
2894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
2895 | (eval $ac_try) 2>&5 | ||
2896 | ac_status=$? | ||
2897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2898 | (exit $ac_status); }; }; then | ||
2899 | break | ||
2900 | else | ||
2901 | echo "$as_me: failed program was:" >&5 | ||
2902 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2903 | |||
2904 | fi | ||
2905 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2906 | done | ||
2907 | rm -f conftest* | ||
2908 | if test -n "$ac_declaration"; then | ||
2909 | echo '#ifdef __cplusplus' >>confdefs.h | ||
2910 | echo $ac_declaration >>confdefs.h | ||
2911 | echo '#endif' >>confdefs.h | ||
2912 | fi | ||
2913 | |||
2914 | else | ||
2915 | echo "$as_me: failed program was:" >&5 | ||
2916 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2917 | |||
2918 | fi | ||
2919 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
2920 | ac_ext=c | ||
2921 | ac_cpp='$CPP $CPPFLAGS' | ||
2922 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2923 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2924 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2925 | DEPDIR="${am__leading_dot}deps" | ||
2926 | |||
2927 | ac_config_commands="$ac_config_commands depfiles" | ||
2928 | |||
2929 | |||
2930 | am_make=${MAKE-make} | ||
2931 | cat > confinc << 'END' | ||
2932 | am__doit: | ||
2933 | @echo done | ||
2934 | .PHONY: am__doit | ||
2935 | END | ||
2936 | # If we don't find an include directive, just comment out the code. | ||
2937 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | ||
2938 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | ||
2939 | am__include="#" | ||
2940 | am__quote= | ||
2941 | _am_result=none | ||
2942 | # First try GNU make style include. | ||
2943 | echo "include confinc" > confmf | ||
2944 | # We grep out `Entering directory' and `Leaving directory' | ||
2945 | # messages which can occur if `w' ends up in MAKEFLAGS. | ||
2946 | # In particular we don't look at `^make:' because GNU make might | ||
2947 | # be invoked under some other name (usually "gmake"), in which | ||
2948 | # case it prints its new name instead of `make'. | ||
2949 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | ||
2950 | am__include=include | ||
2951 | am__quote= | ||
2952 | _am_result=GNU | ||
2953 | fi | ||
2954 | # Now try BSD make style include. | ||
2955 | if test "$am__include" = "#"; then | ||
2956 | echo '.include "confinc"' > confmf | ||
2957 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | ||
2958 | am__include=.include | ||
2959 | am__quote="\"" | ||
2960 | _am_result=BSD | ||
2961 | fi | ||
2962 | fi | ||
2963 | |||
2964 | |||
2965 | echo "$as_me:$LINENO: result: $_am_result" >&5 | ||
2966 | echo "${ECHO_T}$_am_result" >&6 | ||
2967 | rm -f confinc confmf | ||
2968 | |||
2969 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | ||
2970 | if test "${enable_dependency_tracking+set}" = set; then | ||
2971 | enableval="$enable_dependency_tracking" | ||
2972 | |||
2973 | fi; | ||
2974 | if test "x$enable_dependency_tracking" != xno; then | ||
2975 | am_depcomp="$ac_aux_dir/depcomp" | ||
2976 | AMDEPBACKSLASH='\' | ||
2977 | fi | ||
2978 | |||
2979 | |||
2980 | if test "x$enable_dependency_tracking" != xno; then | ||
2981 | AMDEP_TRUE= | ||
2982 | AMDEP_FALSE='#' | ||
2983 | else | ||
2984 | AMDEP_TRUE='#' | ||
2985 | AMDEP_FALSE= | ||
2986 | fi | ||
2987 | |||
2988 | |||
2989 | |||
2990 | |||
2991 | depcc="$CC" am_compiler_list= | ||
2992 | |||
2993 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | ||
2994 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | ||
2995 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | ||
2996 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2997 | else | ||
2998 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
2999 | # We make a subdir and do the tests there. Otherwise we can end up | ||
3000 | # making bogus files that we don't know about and never remove. For | ||
3001 | # instance it was reported that on HP-UX the gcc test will end up | ||
3002 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
3003 | # in D'. | ||
3004 | mkdir conftest.dir | ||
3005 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
3006 | # using a relative directory. | ||
3007 | cp "$am_depcomp" conftest.dir | ||
3008 | cd conftest.dir | ||
3009 | # We will build objects and dependencies in a subdirectory because | ||
3010 | # it helps to detect inapplicable dependency modes. For instance | ||
3011 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
3012 | # side effect of compilation, but ICC will put the dependencies in | ||
3013 | # the current directory while Tru64 will put them in the object | ||
3014 | # directory. | ||
3015 | mkdir sub | ||
3016 | |||
3017 | am_cv_CC_dependencies_compiler_type=none | ||
3018 | if test "$am_compiler_list" = ""; then | ||
3019 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
3020 | fi | ||
3021 | for depmode in $am_compiler_list; do | ||
3022 | # Setup a source with many dependencies, because some compilers | ||
3023 | # like to wrap large dependency lists on column 80 (with \), and | ||
3024 | # we should not choose a depcomp mode which is confused by this. | ||
3025 | # | ||
3026 | # We need to recreate these files for each test, as the compiler may | ||
3027 | # overwrite some of them when testing with obscure command lines. | ||
3028 | # This happens at least with the AIX C compiler. | ||
3029 | : > sub/conftest.c | ||
3030 | for i in 1 2 3 4 5 6; do | ||
3031 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
3032 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
3033 | # Solaris 8's {/usr,}/bin/sh. | ||
3034 | touch sub/conftst$i.h | ||
3035 | done | ||
3036 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
3037 | |||
3038 | case $depmode in | ||
3039 | nosideeffect) | ||
3040 | # after this tag, mechanisms are not by side-effect, so they'll | ||
3041 | # only be used when explicitly requested | ||
3042 | if test "x$enable_dependency_tracking" = xyes; then | ||
3043 | continue | ||
3044 | else | ||
3045 | break | ||
3046 | fi | ||
3047 | ;; | ||
3048 | none) break ;; | ||
3049 | esac | ||
3050 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
3051 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
3052 | # handle `-M -o', and we need to detect this. | ||
3053 | if depmode=$depmode \ | ||
3054 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | ||
3055 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
3056 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | ||
3057 | >/dev/null 2>conftest.err && | ||
3058 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
3059 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | ||
3060 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
3061 | # icc doesn't choke on unknown options, it will just issue warnings | ||
3062 | # or remarks (even with -Werror). So we grep stderr for any message | ||
3063 | # that says an option was ignored or not supported. | ||
3064 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
3065 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
3066 | # The diagnosis changed in icc 8.0: | ||
3067 | # icc: Command line remark: option '-MP' not supported | ||
3068 | if (grep 'ignoring option' conftest.err || | ||
3069 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
3070 | am_cv_CC_dependencies_compiler_type=$depmode | ||
3071 | break | ||
3072 | fi | ||
3073 | fi | ||
3074 | done | ||
3075 | |||
3076 | cd .. | ||
3077 | rm -rf conftest.dir | ||
3078 | else | ||
3079 | am_cv_CC_dependencies_compiler_type=none | ||
3080 | fi | ||
3081 | |||
3082 | fi | ||
3083 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
3084 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | ||
3085 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
3086 | |||
3087 | |||
3088 | |||
3089 | if | ||
3090 | test "x$enable_dependency_tracking" != xno \ | ||
3091 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
3092 | am__fastdepCC_TRUE= | ||
3093 | am__fastdepCC_FALSE='#' | ||
3094 | else | ||
3095 | am__fastdepCC_TRUE='#' | ||
3096 | am__fastdepCC_FALSE= | ||
3097 | fi | ||
3098 | |||
3099 | |||
3100 | |||
3101 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | ||
3102 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | ||
3103 | if test "${ac_cv_c_const+set}" = set; then | ||
3104 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3105 | else | ||
3106 | cat >conftest.$ac_ext <<_ACEOF | ||
3107 | /* confdefs.h. */ | ||
3108 | _ACEOF | ||
3109 | cat confdefs.h >>conftest.$ac_ext | ||
3110 | cat >>conftest.$ac_ext <<_ACEOF | ||
3111 | /* end confdefs.h. */ | ||
3112 | |||
3113 | int | ||
3114 | main () | ||
3115 | { | ||
3116 | /* FIXME: Include the comments suggested by Paul. */ | ||
3117 | #ifndef __cplusplus | ||
3118 | /* Ultrix mips cc rejects this. */ | ||
3119 | typedef int charset[2]; | ||
3120 | const charset x; | ||
3121 | /* SunOS 4.1.1 cc rejects this. */ | ||
3122 | char const *const *ccp; | ||
3123 | char **p; | ||
3124 | /* NEC SVR4.0.2 mips cc rejects this. */ | ||
3125 | struct point {int x, y;}; | ||
3126 | static struct point const zero = {0,0}; | ||
3127 | /* AIX XL C 1.02.0.0 rejects this. | ||
3128 | It does not let you subtract one const X* pointer from another in | ||
3129 | an arm of an if-expression whose if-part is not a constant | ||
3130 | expression */ | ||
3131 | const char *g = "string"; | ||
3132 | ccp = &g + (g ? g-g : 0); | ||
3133 | /* HPUX 7.0 cc rejects these. */ | ||
3134 | ++ccp; | ||
3135 | p = (char**) ccp; | ||
3136 | ccp = (char const *const *) p; | ||
3137 | { /* SCO 3.2v4 cc rejects this. */ | ||
3138 | char *t; | ||
3139 | char const *s = 0 ? (char *) 0 : (char const *) 0; | ||
3140 | |||
3141 | *t++ = 0; | ||
3142 | } | ||
3143 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | ||
3144 | int x[] = {25, 17}; | ||
3145 | const int *foo = &x[0]; | ||
3146 | ++foo; | ||
3147 | } | ||
3148 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | ||
3149 | typedef const int *iptr; | ||
3150 | iptr p = 0; | ||
3151 | ++p; | ||
3152 | } | ||
3153 | { /* AIX XL C 1.02.0.0 rejects this saying | ||
3154 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | ||
3155 | struct s { int j; const int *ap[3]; }; | ||
3156 | struct s *b; b->j = 5; | ||
3157 | } | ||
3158 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | ||
3159 | const int foo = 10; | ||
3160 | } | ||
3161 | #endif | ||
3162 | |||
3163 | ; | ||
3164 | return 0; | ||
3165 | } | ||
3166 | _ACEOF | ||
3167 | rm -f conftest.$ac_objext | ||
3168 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3169 | (eval $ac_compile) 2>conftest.er1 | ||
3170 | ac_status=$? | ||
3171 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3172 | rm -f conftest.er1 | ||
3173 | cat conftest.err >&5 | ||
3174 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3175 | (exit $ac_status); } && | ||
3176 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3178 | (eval $ac_try) 2>&5 | ||
3179 | ac_status=$? | ||
3180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3181 | (exit $ac_status); }; } && | ||
3182 | { ac_try='test -s conftest.$ac_objext' | ||
3183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3184 | (eval $ac_try) 2>&5 | ||
3185 | ac_status=$? | ||
3186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3187 | (exit $ac_status); }; }; then | ||
3188 | ac_cv_c_const=yes | ||
3189 | else | ||
3190 | echo "$as_me: failed program was:" >&5 | ||
3191 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3192 | |||
3193 | ac_cv_c_const=no | ||
3194 | fi | ||
3195 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3196 | fi | ||
3197 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 | ||
3198 | echo "${ECHO_T}$ac_cv_c_const" >&6 | ||
3199 | if test $ac_cv_c_const = no; then | ||
3200 | |||
3201 | cat >>confdefs.h <<\_ACEOF | ||
3202 | #define const | ||
3203 | _ACEOF | ||
3204 | |||
3205 | fi | ||
3206 | |||
3207 | echo "$as_me:$LINENO: checking for inline" >&5 | ||
3208 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | ||
3209 | if test "${ac_cv_c_inline+set}" = set; then | ||
3210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3211 | else | ||
3212 | ac_cv_c_inline=no | ||
3213 | for ac_kw in inline __inline__ __inline; do | ||
3214 | cat >conftest.$ac_ext <<_ACEOF | ||
3215 | /* confdefs.h. */ | ||
3216 | _ACEOF | ||
3217 | cat confdefs.h >>conftest.$ac_ext | ||
3218 | cat >>conftest.$ac_ext <<_ACEOF | ||
3219 | /* end confdefs.h. */ | ||
3220 | #ifndef __cplusplus | ||
3221 | typedef int foo_t; | ||
3222 | static $ac_kw foo_t static_foo () {return 0; } | ||
3223 | $ac_kw foo_t foo () {return 0; } | ||
3224 | #endif | ||
3225 | |||
3226 | _ACEOF | ||
3227 | rm -f conftest.$ac_objext | ||
3228 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3229 | (eval $ac_compile) 2>conftest.er1 | ||
3230 | ac_status=$? | ||
3231 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3232 | rm -f conftest.er1 | ||
3233 | cat conftest.err >&5 | ||
3234 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3235 | (exit $ac_status); } && | ||
3236 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
3237 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3238 | (eval $ac_try) 2>&5 | ||
3239 | ac_status=$? | ||
3240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3241 | (exit $ac_status); }; } && | ||
3242 | { ac_try='test -s conftest.$ac_objext' | ||
3243 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
3244 | (eval $ac_try) 2>&5 | ||
3245 | ac_status=$? | ||
3246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3247 | (exit $ac_status); }; }; then | ||
3248 | ac_cv_c_inline=$ac_kw; break | ||
3249 | else | ||
3250 | echo "$as_me: failed program was:" >&5 | ||
3251 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3252 | |||
3253 | fi | ||
3254 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3255 | done | ||
3256 | |||
3257 | fi | ||
3258 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 | ||
3259 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | ||
3260 | |||
3261 | |||
3262 | case $ac_cv_c_inline in | ||
3263 | inline | yes) ;; | ||
3264 | *) | ||
3265 | case $ac_cv_c_inline in | ||
3266 | no) ac_val=;; | ||
3267 | *) ac_val=$ac_cv_c_inline;; | ||
3268 | esac | ||
3269 | cat >>confdefs.h <<_ACEOF | ||
3270 | #ifndef __cplusplus | ||
3271 | #define inline $ac_val | ||
3272 | #endif | ||
3273 | _ACEOF | ||
3274 | ;; | ||
3275 | esac | ||
3276 | |||
3277 | |||
3278 | |||
3279 | ## ----------------------- ## | ||
3280 | ## Libtool initialisation. ## | ||
3281 | ## ----------------------- ## | ||
3282 | |||
3283 | |||
3284 | # Check whether --enable-shared or --disable-shared was given. | ||
3285 | if test "${enable_shared+set}" = set; then | ||
3286 | enableval="$enable_shared" | ||
3287 | p=${PACKAGE-default} | ||
3288 | case $enableval in | ||
3289 | yes) enable_shared=yes ;; | ||
3290 | no) enable_shared=no ;; | ||
3291 | *) | ||
3292 | enable_shared=no | ||
3293 | # Look at the argument we got. We use all the common list separators. | ||
3294 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3295 | for pkg in $enableval; do | ||
3296 | IFS="$lt_save_ifs" | ||
3297 | if test "X$pkg" = "X$p"; then | ||
3298 | enable_shared=yes | ||
3299 | fi | ||
3300 | done | ||
3301 | IFS="$lt_save_ifs" | ||
3302 | ;; | ||
3303 | esac | ||
3304 | else | ||
3305 | enable_shared=yes | ||
3306 | fi; | ||
3307 | |||
3308 | # Check whether --enable-static or --disable-static was given. | ||
3309 | if test "${enable_static+set}" = set; then | ||
3310 | enableval="$enable_static" | ||
3311 | p=${PACKAGE-default} | ||
3312 | case $enableval in | ||
3313 | yes) enable_static=yes ;; | ||
3314 | no) enable_static=no ;; | ||
3315 | *) | ||
3316 | enable_static=no | ||
3317 | # Look at the argument we got. We use all the common list separators. | ||
3318 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3319 | for pkg in $enableval; do | ||
3320 | IFS="$lt_save_ifs" | ||
3321 | if test "X$pkg" = "X$p"; then | ||
3322 | enable_static=yes | ||
3323 | fi | ||
3324 | done | ||
3325 | IFS="$lt_save_ifs" | ||
3326 | ;; | ||
3327 | esac | ||
3328 | else | ||
3329 | enable_static=yes | ||
3330 | fi; | ||
3331 | |||
3332 | # Check whether --enable-fast-install or --disable-fast-install was given. | ||
3333 | if test "${enable_fast_install+set}" = set; then | ||
3334 | enableval="$enable_fast_install" | ||
3335 | p=${PACKAGE-default} | ||
3336 | case $enableval in | ||
3337 | yes) enable_fast_install=yes ;; | ||
3338 | no) enable_fast_install=no ;; | ||
3339 | *) | ||
3340 | enable_fast_install=no | ||
3341 | # Look at the argument we got. We use all the common list separators. | ||
3342 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
3343 | for pkg in $enableval; do | ||
3344 | IFS="$lt_save_ifs" | ||
3345 | if test "X$pkg" = "X$p"; then | ||
3346 | enable_fast_install=yes | ||
3347 | fi | ||
3348 | done | ||
3349 | IFS="$lt_save_ifs" | ||
3350 | ;; | ||
3351 | esac | ||
3352 | else | ||
3353 | enable_fast_install=yes | ||
3354 | fi; | ||
3355 | |||
3356 | # Make sure we can run config.sub. | ||
3357 | $ac_config_sub sun4 >/dev/null 2>&1 || | ||
3358 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | ||
3359 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | ||
3360 | { (exit 1); exit 1; }; } | ||
3361 | |||
3362 | echo "$as_me:$LINENO: checking build system type" >&5 | ||
3363 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | ||
3364 | if test "${ac_cv_build+set}" = set; then | ||
3365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3366 | else | ||
3367 | ac_cv_build_alias=$build_alias | ||
3368 | test -z "$ac_cv_build_alias" && | ||
3369 | ac_cv_build_alias=`$ac_config_guess` | ||
3370 | test -z "$ac_cv_build_alias" && | ||
3371 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
3372 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
3373 | { (exit 1); exit 1; }; } | ||
3374 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | ||
3375 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | ||
3376 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | ||
3377 | { (exit 1); exit 1; }; } | ||
3378 | |||
3379 | fi | ||
3380 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
3381 | echo "${ECHO_T}$ac_cv_build" >&6 | ||
3382 | build=$ac_cv_build | ||
3383 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
3384 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
3385 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
3386 | |||
3387 | |||
3388 | echo "$as_me:$LINENO: checking host system type" >&5 | ||
3389 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | ||
3390 | if test "${ac_cv_host+set}" = set; then | ||
3391 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3392 | else | ||
3393 | ac_cv_host_alias=$host_alias | ||
3394 | test -z "$ac_cv_host_alias" && | ||
3395 | ac_cv_host_alias=$ac_cv_build_alias | ||
3396 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | ||
3397 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | ||
3398 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | ||
3399 | { (exit 1); exit 1; }; } | ||
3400 | |||
3401 | fi | ||
3402 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
3403 | echo "${ECHO_T}$ac_cv_host" >&6 | ||
3404 | host=$ac_cv_host | ||
3405 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | ||
3406 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | ||
3407 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | ||
3408 | |||
3409 | |||
3410 | echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | ||
3411 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 | ||
3412 | if test "${lt_cv_path_SED+set}" = set; then | ||
3413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3414 | else | ||
3415 | # Loop through the user's path and test for sed and gsed. | ||
3416 | # Then use that list of sed's as ones to test for truncation. | ||
3417 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3418 | for as_dir in $PATH | ||
3419 | do | ||
3420 | IFS=$as_save_IFS | ||
3421 | test -z "$as_dir" && as_dir=. | ||
3422 | for lt_ac_prog in sed gsed; do | ||
3423 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3424 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | ||
3425 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | ||
3426 | fi | ||
3427 | done | ||
3428 | done | ||
3429 | done | ||
3430 | lt_ac_max=0 | ||
3431 | lt_ac_count=0 | ||
3432 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | ||
3433 | # along with /bin/sed that truncates output. | ||
3434 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | ||
3435 | test ! -f $lt_ac_sed && break | ||
3436 | cat /dev/null > conftest.in | ||
3437 | lt_ac_count=0 | ||
3438 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | ||
3439 | # Check for GNU sed and select it if it is found. | ||
3440 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | ||
3441 | lt_cv_path_SED=$lt_ac_sed | ||
3442 | break | ||
3443 | fi | ||
3444 | while true; do | ||
3445 | cat conftest.in conftest.in >conftest.tmp | ||
3446 | mv conftest.tmp conftest.in | ||
3447 | cp conftest.in conftest.nl | ||
3448 | echo >>conftest.nl | ||
3449 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | ||
3450 | cmp -s conftest.out conftest.nl || break | ||
3451 | # 10000 chars as input seems more than enough | ||
3452 | test $lt_ac_count -gt 10 && break | ||
3453 | lt_ac_count=`expr $lt_ac_count + 1` | ||
3454 | if test $lt_ac_count -gt $lt_ac_max; then | ||
3455 | lt_ac_max=$lt_ac_count | ||
3456 | lt_cv_path_SED=$lt_ac_sed | ||
3457 | fi | ||
3458 | done | ||
3459 | done | ||
3460 | SED=$lt_cv_path_SED | ||
3461 | |||
3462 | fi | ||
3463 | |||
3464 | echo "$as_me:$LINENO: result: $SED" >&5 | ||
3465 | echo "${ECHO_T}$SED" >&6 | ||
3466 | |||
3467 | echo "$as_me:$LINENO: checking for egrep" >&5 | ||
3468 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | ||
3469 | if test "${ac_cv_prog_egrep+set}" = set; then | ||
3470 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3471 | else | ||
3472 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | ||
3473 | then ac_cv_prog_egrep='grep -E' | ||
3474 | else ac_cv_prog_egrep='egrep' | ||
3475 | fi | ||
3476 | fi | ||
3477 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | ||
3478 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | ||
3479 | EGREP=$ac_cv_prog_egrep | ||
3480 | |||
3481 | |||
3482 | |||
3483 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | ||
3484 | if test "${with_gnu_ld+set}" = set; then | ||
3485 | withval="$with_gnu_ld" | ||
3486 | test "$withval" = no || with_gnu_ld=yes | ||
3487 | else | ||
3488 | with_gnu_ld=no | ||
3489 | fi; | ||
3490 | ac_prog=ld | ||
3491 | if test "$GCC" = yes; then | ||
3492 | # Check if gcc -print-prog-name=ld gives a path. | ||
3493 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | ||
3494 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | ||
3495 | case $host in | ||
3496 | *-*-mingw*) | ||
3497 | # gcc leaves a trailing carriage return which upsets mingw | ||
3498 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
3499 | *) | ||
3500 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
3501 | esac | ||
3502 | case $ac_prog in | ||
3503 | # Accept absolute paths. | ||
3504 | [\\/]* | ?:[\\/]*) | ||
3505 | re_direlt='/[^/][^/]*/\.\./' | ||
3506 | # Canonicalize the pathname of ld | ||
3507 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | ||
3508 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
3509 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | ||
3510 | done | ||
3511 | test -z "$LD" && LD="$ac_prog" | ||
3512 | ;; | ||
3513 | "") | ||
3514 | # If it fails, then pretend we aren't using GCC. | ||
3515 | ac_prog=ld | ||
3516 | ;; | ||
3517 | *) | ||
3518 | # If it is relative, then search for the first ld in PATH. | ||
3519 | with_gnu_ld=unknown | ||
3520 | ;; | ||
3521 | esac | ||
3522 | elif test "$with_gnu_ld" = yes; then | ||
3523 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | ||
3524 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | ||
3525 | else | ||
3526 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | ||
3527 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | ||
3528 | fi | ||
3529 | if test "${lt_cv_path_LD+set}" = set; then | ||
3530 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3531 | else | ||
3532 | if test -z "$LD"; then | ||
3533 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
3534 | for ac_dir in $PATH; do | ||
3535 | IFS="$lt_save_ifs" | ||
3536 | test -z "$ac_dir" && ac_dir=. | ||
3537 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
3538 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
3539 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
3540 | # but apparently some GNU ld's only accept -v. | ||
3541 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
3542 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
3543 | *GNU* | *'with BFD'*) | ||
3544 | test "$with_gnu_ld" != no && break | ||
3545 | ;; | ||
3546 | *) | ||
3547 | test "$with_gnu_ld" != yes && break | ||
3548 | ;; | ||
3549 | esac | ||
3550 | fi | ||
3551 | done | ||
3552 | IFS="$lt_save_ifs" | ||
3553 | else | ||
3554 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
3555 | fi | ||
3556 | fi | ||
3557 | |||
3558 | LD="$lt_cv_path_LD" | ||
3559 | if test -n "$LD"; then | ||
3560 | echo "$as_me:$LINENO: result: $LD" >&5 | ||
3561 | echo "${ECHO_T}$LD" >&6 | ||
3562 | else | ||
3563 | echo "$as_me:$LINENO: result: no" >&5 | ||
3564 | echo "${ECHO_T}no" >&6 | ||
3565 | fi | ||
3566 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | ||
3567 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | ||
3568 | { (exit 1); exit 1; }; } | ||
3569 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | ||
3570 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | ||
3571 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | ||
3572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3573 | else | ||
3574 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | ||
3575 | case `$LD -v 2>&1 </dev/null` in | ||
3576 | *GNU* | *'with BFD'*) | ||
3577 | lt_cv_prog_gnu_ld=yes | ||
3578 | ;; | ||
3579 | *) | ||
3580 | lt_cv_prog_gnu_ld=no | ||
3581 | ;; | ||
3582 | esac | ||
3583 | fi | ||
3584 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | ||
3585 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | ||
3586 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
3587 | |||
3588 | |||
3589 | echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | ||
3590 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 | ||
3591 | if test "${lt_cv_ld_reload_flag+set}" = set; then | ||
3592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3593 | else | ||
3594 | lt_cv_ld_reload_flag='-r' | ||
3595 | fi | ||
3596 | echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | ||
3597 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 | ||
3598 | reload_flag=$lt_cv_ld_reload_flag | ||
3599 | case $reload_flag in | ||
3600 | "" | " "*) ;; | ||
3601 | *) reload_flag=" $reload_flag" ;; | ||
3602 | esac | ||
3603 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
3604 | |||
3605 | echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | ||
3606 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 | ||
3607 | if test "${lt_cv_path_NM+set}" = set; then | ||
3608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3609 | else | ||
3610 | if test -n "$NM"; then | ||
3611 | # Let the user override the test. | ||
3612 | lt_cv_path_NM="$NM" | ||
3613 | else | ||
3614 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
3615 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | ||
3616 | IFS="$lt_save_ifs" | ||
3617 | test -z "$ac_dir" && ac_dir=. | ||
3618 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" | ||
3619 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
3620 | # Check to see if the nm accepts a BSD-compat flag. | ||
3621 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
3622 | # nm: unknown option "B" ignored | ||
3623 | # Tru64's nm complains that /dev/null is an invalid object file | ||
3624 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
3625 | */dev/null* | *'Invalid file or object type'*) | ||
3626 | lt_cv_path_NM="$tmp_nm -B" | ||
3627 | break | ||
3628 | ;; | ||
3629 | *) | ||
3630 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
3631 | */dev/null*) | ||
3632 | lt_cv_path_NM="$tmp_nm -p" | ||
3633 | break | ||
3634 | ;; | ||
3635 | *) | ||
3636 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
3637 | continue # so that we can try to find one that supports BSD flags | ||
3638 | ;; | ||
3639 | esac | ||
3640 | esac | ||
3641 | fi | ||
3642 | done | ||
3643 | IFS="$lt_save_ifs" | ||
3644 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | ||
3645 | fi | ||
3646 | fi | ||
3647 | echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | ||
3648 | echo "${ECHO_T}$lt_cv_path_NM" >&6 | ||
3649 | NM="$lt_cv_path_NM" | ||
3650 | |||
3651 | echo "$as_me:$LINENO: checking whether ln -s works" >&5 | ||
3652 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 | ||
3653 | LN_S=$as_ln_s | ||
3654 | if test "$LN_S" = "ln -s"; then | ||
3655 | echo "$as_me:$LINENO: result: yes" >&5 | ||
3656 | echo "${ECHO_T}yes" >&6 | ||
3657 | else | ||
3658 | echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | ||
3659 | echo "${ECHO_T}no, using $LN_S" >&6 | ||
3660 | fi | ||
3661 | |||
3662 | echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | ||
3663 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 | ||
3664 | if test "${lt_cv_deplibs_check_method+set}" = set; then | ||
3665 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3666 | else | ||
3667 | lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
3668 | lt_cv_file_magic_test_file= | ||
3669 | lt_cv_deplibs_check_method='unknown' | ||
3670 | # Need to set the preceding variable on all platforms that support | ||
3671 | # interlibrary dependencies. | ||
3672 | # 'none' -- dependencies not supported. | ||
3673 | # `unknown' -- same as none, but documents that we really don't know. | ||
3674 | # 'pass_all' -- all dependencies passed with no checks. | ||
3675 | # 'test_compile' -- check by making test program. | ||
3676 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
3677 | # which responds to the $file_magic_cmd with a given extended regex. | ||
3678 | # If you have `file' or equivalent on your system and you're not sure | ||
3679 | # whether `pass_all' will *always* work, you probably want this one. | ||
3680 | |||
3681 | case $host_os in | ||
3682 | aix4* | aix5*) | ||
3683 | lt_cv_deplibs_check_method=pass_all | ||
3684 | ;; | ||
3685 | |||
3686 | beos*) | ||
3687 | lt_cv_deplibs_check_method=pass_all | ||
3688 | ;; | ||
3689 | |||
3690 | bsdi4*) | ||
3691 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | ||
3692 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
3693 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
3694 | ;; | ||
3695 | |||
3696 | cygwin*) | ||
3697 | # func_win32_libid is a shell function defined in ltmain.sh | ||
3698 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
3699 | lt_cv_file_magic_cmd='func_win32_libid' | ||
3700 | ;; | ||
3701 | |||
3702 | mingw* | pw32*) | ||
3703 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
3704 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. | ||
3705 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
3706 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
3707 | ;; | ||
3708 | |||
3709 | darwin* | rhapsody*) | ||
3710 | lt_cv_deplibs_check_method=pass_all | ||
3711 | ;; | ||
3712 | |||
3713 | freebsd* | kfreebsd*-gnu) | ||
3714 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
3715 | case $host_cpu in | ||
3716 | i*86 ) | ||
3717 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
3718 | # Let's accept both of them until this is cleared up. | ||
3719 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | ||
3720 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3721 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
3722 | ;; | ||
3723 | esac | ||
3724 | else | ||
3725 | lt_cv_deplibs_check_method=pass_all | ||
3726 | fi | ||
3727 | ;; | ||
3728 | |||
3729 | gnu*) | ||
3730 | lt_cv_deplibs_check_method=pass_all | ||
3731 | ;; | ||
3732 | |||
3733 | hpux10.20* | hpux11*) | ||
3734 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3735 | case "$host_cpu" in | ||
3736 | ia64*) | ||
3737 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | ||
3738 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
3739 | ;; | ||
3740 | hppa*64*) | ||
3741 | 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]' | ||
3742 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
3743 | ;; | ||
3744 | *) | ||
3745 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
3746 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
3747 | ;; | ||
3748 | esac | ||
3749 | ;; | ||
3750 | |||
3751 | irix5* | irix6* | nonstopux*) | ||
3752 | case $LD in | ||
3753 | *-32|*"-32 ") libmagic=32-bit;; | ||
3754 | *-n32|*"-n32 ") libmagic=N32;; | ||
3755 | *-64|*"-64 ") libmagic=64-bit;; | ||
3756 | *) libmagic=never-match;; | ||
3757 | esac | ||
3758 | lt_cv_deplibs_check_method=pass_all | ||
3759 | ;; | ||
3760 | |||
3761 | # This must be Linux ELF. | ||
3762 | linux*) | ||
3763 | lt_cv_deplibs_check_method=pass_all | ||
3764 | ;; | ||
3765 | |||
3766 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
3767 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
3768 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
3769 | else | ||
3770 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | ||
3771 | fi | ||
3772 | ;; | ||
3773 | |||
3774 | newos6*) | ||
3775 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | ||
3776 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3777 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
3778 | ;; | ||
3779 | |||
3780 | nto-qnx*) | ||
3781 | lt_cv_deplibs_check_method=unknown | ||
3782 | ;; | ||
3783 | |||
3784 | openbsd*) | ||
3785 | lt_cv_file_magic_cmd=/usr/bin/file | ||
3786 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
3787 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
3788 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' | ||
3789 | else | ||
3790 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' | ||
3791 | fi | ||
3792 | ;; | ||
3793 | |||
3794 | osf3* | osf4* | osf5*) | ||
3795 | lt_cv_deplibs_check_method=pass_all | ||
3796 | ;; | ||
3797 | |||
3798 | sco3.2v5*) | ||
3799 | lt_cv_deplibs_check_method=pass_all | ||
3800 | ;; | ||
3801 | |||
3802 | solaris*) | ||
3803 | lt_cv_deplibs_check_method=pass_all | ||
3804 | ;; | ||
3805 | |||
3806 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
3807 | case $host_vendor in | ||
3808 | motorola) | ||
3809 | 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]' | ||
3810 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
3811 | ;; | ||
3812 | ncr) | ||
3813 | lt_cv_deplibs_check_method=pass_all | ||
3814 | ;; | ||
3815 | sequent) | ||
3816 | lt_cv_file_magic_cmd='/bin/file' | ||
3817 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | ||
3818 | ;; | ||
3819 | sni) | ||
3820 | lt_cv_file_magic_cmd='/bin/file' | ||
3821 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | ||
3822 | lt_cv_file_magic_test_file=/lib/libc.so | ||
3823 | ;; | ||
3824 | siemens) | ||
3825 | lt_cv_deplibs_check_method=pass_all | ||
3826 | ;; | ||
3827 | esac | ||
3828 | ;; | ||
3829 | |||
3830 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | ||
3831 | lt_cv_deplibs_check_method=pass_all | ||
3832 | ;; | ||
3833 | esac | ||
3834 | |||
3835 | fi | ||
3836 | echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | ||
3837 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 | ||
3838 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
3839 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
3840 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
3841 | |||
3842 | |||
3843 | |||
3844 | |||
3845 | # If no C compiler was specified, use CC. | ||
3846 | LTCC=${LTCC-"$CC"} | ||
3847 | |||
3848 | # Allow CC to be a program name with arguments. | ||
3849 | compiler=$CC | ||
3850 | |||
3851 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | ||
3852 | if test "${enable_libtool_lock+set}" = set; then | ||
3853 | enableval="$enable_libtool_lock" | ||
3854 | |||
3855 | fi; | ||
3856 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
3857 | |||
3858 | # Some flags need to be propagated to the compiler or linker for good | ||
3859 | # libtool support. | ||
3860 | case $host in | ||
3861 | ia64-*-hpux*) | ||
3862 | # Find out which ABI we are using. | ||
3863 | echo 'int i;' > conftest.$ac_ext | ||
3864 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3865 | (eval $ac_compile) 2>&5 | ||
3866 | ac_status=$? | ||
3867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3868 | (exit $ac_status); }; then | ||
3869 | case `/usr/bin/file conftest.$ac_objext` in | ||
3870 | *ELF-32*) | ||
3871 | HPUX_IA64_MODE="32" | ||
3872 | ;; | ||
3873 | *ELF-64*) | ||
3874 | HPUX_IA64_MODE="64" | ||
3875 | ;; | ||
3876 | esac | ||
3877 | fi | ||
3878 | rm -rf conftest* | ||
3879 | ;; | ||
3880 | *-*-irix6*) | ||
3881 | # Find out which ABI we are using. | ||
3882 | echo '#line 3882 "configure"' > conftest.$ac_ext | ||
3883 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3884 | (eval $ac_compile) 2>&5 | ||
3885 | ac_status=$? | ||
3886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3887 | (exit $ac_status); }; then | ||
3888 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
3889 | case `/usr/bin/file conftest.$ac_objext` in | ||
3890 | *32-bit*) | ||
3891 | LD="${LD-ld} -melf32bsmip" | ||
3892 | ;; | ||
3893 | *N32*) | ||
3894 | LD="${LD-ld} -melf32bmipn32" | ||
3895 | ;; | ||
3896 | *64-bit*) | ||
3897 | LD="${LD-ld} -melf64bmip" | ||
3898 | ;; | ||
3899 | esac | ||
3900 | else | ||
3901 | case `/usr/bin/file conftest.$ac_objext` in | ||
3902 | *32-bit*) | ||
3903 | LD="${LD-ld} -32" | ||
3904 | ;; | ||
3905 | *N32*) | ||
3906 | LD="${LD-ld} -n32" | ||
3907 | ;; | ||
3908 | *64-bit*) | ||
3909 | LD="${LD-ld} -64" | ||
3910 | ;; | ||
3911 | esac | ||
3912 | fi | ||
3913 | fi | ||
3914 | rm -rf conftest* | ||
3915 | ;; | ||
3916 | |||
3917 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | ||
3918 | # Find out which ABI we are using. | ||
3919 | echo 'int i;' > conftest.$ac_ext | ||
3920 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
3921 | (eval $ac_compile) 2>&5 | ||
3922 | ac_status=$? | ||
3923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3924 | (exit $ac_status); }; then | ||
3925 | case "`/usr/bin/file conftest.o`" in | ||
3926 | *32-bit*) | ||
3927 | case $host in | ||
3928 | x86_64-*linux*) | ||
3929 | LD="${LD-ld} -m elf_i386" | ||
3930 | ;; | ||
3931 | ppc64-*linux*|powerpc64-*linux*) | ||
3932 | LD="${LD-ld} -m elf32ppclinux" | ||
3933 | ;; | ||
3934 | s390x-*linux*) | ||
3935 | LD="${LD-ld} -m elf_s390" | ||
3936 | ;; | ||
3937 | sparc64-*linux*) | ||
3938 | LD="${LD-ld} -m elf32_sparc" | ||
3939 | ;; | ||
3940 | esac | ||
3941 | ;; | ||
3942 | *64-bit*) | ||
3943 | case $host in | ||
3944 | x86_64-*linux*) | ||
3945 | LD="${LD-ld} -m elf_x86_64" | ||
3946 | ;; | ||
3947 | ppc*-*linux*|powerpc*-*linux*) | ||
3948 | LD="${LD-ld} -m elf64ppc" | ||
3949 | ;; | ||
3950 | s390*-*linux*) | ||
3951 | LD="${LD-ld} -m elf64_s390" | ||
3952 | ;; | ||
3953 | sparc*-*linux*) | ||
3954 | LD="${LD-ld} -m elf64_sparc" | ||
3955 | ;; | ||
3956 | esac | ||
3957 | ;; | ||
3958 | esac | ||
3959 | fi | ||
3960 | rm -rf conftest* | ||
3961 | ;; | ||
3962 | |||
3963 | *-*-sco3.2v5*) | ||
3964 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
3965 | SAVE_CFLAGS="$CFLAGS" | ||
3966 | CFLAGS="$CFLAGS -belf" | ||
3967 | echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | ||
3968 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 | ||
3969 | if test "${lt_cv_cc_needs_belf+set}" = set; then | ||
3970 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3971 | else | ||
3972 | ac_ext=c | ||
3973 | ac_cpp='$CPP $CPPFLAGS' | ||
3974 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3975 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3976 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3977 | |||
3978 | cat >conftest.$ac_ext <<_ACEOF | ||
3979 | /* confdefs.h. */ | ||
3980 | _ACEOF | ||
3981 | cat confdefs.h >>conftest.$ac_ext | ||
3982 | cat >>conftest.$ac_ext <<_ACEOF | ||
3983 | /* end confdefs.h. */ | ||
3984 | |||
3985 | int | ||
3986 | main () | ||
3987 | { | ||
3988 | |||
3989 | ; | ||
3990 | return 0; | ||
3991 | } | ||
3992 | _ACEOF | ||
3993 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3994 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
3995 | (eval $ac_link) 2>conftest.er1 | ||
3996 | ac_status=$? | ||
3997 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3998 | rm -f conftest.er1 | ||
3999 | cat conftest.err >&5 | ||
4000 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4001 | (exit $ac_status); } && | ||
4002 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4004 | (eval $ac_try) 2>&5 | ||
4005 | ac_status=$? | ||
4006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4007 | (exit $ac_status); }; } && | ||
4008 | { ac_try='test -s conftest$ac_exeext' | ||
4009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4010 | (eval $ac_try) 2>&5 | ||
4011 | ac_status=$? | ||
4012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4013 | (exit $ac_status); }; }; then | ||
4014 | lt_cv_cc_needs_belf=yes | ||
4015 | else | ||
4016 | echo "$as_me: failed program was:" >&5 | ||
4017 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4018 | |||
4019 | lt_cv_cc_needs_belf=no | ||
4020 | fi | ||
4021 | rm -f conftest.err conftest.$ac_objext \ | ||
4022 | conftest$ac_exeext conftest.$ac_ext | ||
4023 | ac_ext=c | ||
4024 | ac_cpp='$CPP $CPPFLAGS' | ||
4025 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4026 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4027 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4028 | |||
4029 | fi | ||
4030 | echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | ||
4031 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 | ||
4032 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
4033 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
4034 | CFLAGS="$SAVE_CFLAGS" | ||
4035 | fi | ||
4036 | ;; | ||
4037 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) | ||
4038 | if test -n "$ac_tool_prefix"; then | ||
4039 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
4040 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
4041 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4042 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
4043 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | ||
4044 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4045 | else | ||
4046 | if test -n "$DLLTOOL"; then | ||
4047 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
4048 | else | ||
4049 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4050 | for as_dir in $PATH | ||
4051 | do | ||
4052 | IFS=$as_save_IFS | ||
4053 | test -z "$as_dir" && as_dir=. | ||
4054 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4055 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4056 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
4057 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4058 | break 2 | ||
4059 | fi | ||
4060 | done | ||
4061 | done | ||
4062 | |||
4063 | fi | ||
4064 | fi | ||
4065 | DLLTOOL=$ac_cv_prog_DLLTOOL | ||
4066 | if test -n "$DLLTOOL"; then | ||
4067 | echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | ||
4068 | echo "${ECHO_T}$DLLTOOL" >&6 | ||
4069 | else | ||
4070 | echo "$as_me:$LINENO: result: no" >&5 | ||
4071 | echo "${ECHO_T}no" >&6 | ||
4072 | fi | ||
4073 | |||
4074 | fi | ||
4075 | if test -z "$ac_cv_prog_DLLTOOL"; then | ||
4076 | ac_ct_DLLTOOL=$DLLTOOL | ||
4077 | # Extract the first word of "dlltool", so it can be a program name with args. | ||
4078 | set dummy dlltool; ac_word=$2 | ||
4079 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
4081 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | ||
4082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4083 | else | ||
4084 | if test -n "$ac_ct_DLLTOOL"; then | ||
4085 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
4086 | else | ||
4087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4088 | for as_dir in $PATH | ||
4089 | do | ||
4090 | IFS=$as_save_IFS | ||
4091 | test -z "$as_dir" && as_dir=. | ||
4092 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4093 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4094 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
4095 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4096 | break 2 | ||
4097 | fi | ||
4098 | done | ||
4099 | done | ||
4100 | |||
4101 | test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false" | ||
4102 | fi | ||
4103 | fi | ||
4104 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
4105 | if test -n "$ac_ct_DLLTOOL"; then | ||
4106 | echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | ||
4107 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6 | ||
4108 | else | ||
4109 | echo "$as_me:$LINENO: result: no" >&5 | ||
4110 | echo "${ECHO_T}no" >&6 | ||
4111 | fi | ||
4112 | |||
4113 | DLLTOOL=$ac_ct_DLLTOOL | ||
4114 | else | ||
4115 | DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
4116 | fi | ||
4117 | |||
4118 | if test -n "$ac_tool_prefix"; then | ||
4119 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | ||
4120 | set dummy ${ac_tool_prefix}as; ac_word=$2 | ||
4121 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4122 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
4123 | if test "${ac_cv_prog_AS+set}" = set; then | ||
4124 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4125 | else | ||
4126 | if test -n "$AS"; then | ||
4127 | ac_cv_prog_AS="$AS" # Let the user override the test. | ||
4128 | else | ||
4129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4130 | for as_dir in $PATH | ||
4131 | do | ||
4132 | IFS=$as_save_IFS | ||
4133 | test -z "$as_dir" && as_dir=. | ||
4134 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4135 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4136 | ac_cv_prog_AS="${ac_tool_prefix}as" | ||
4137 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4138 | break 2 | ||
4139 | fi | ||
4140 | done | ||
4141 | done | ||
4142 | |||
4143 | fi | ||
4144 | fi | ||
4145 | AS=$ac_cv_prog_AS | ||
4146 | if test -n "$AS"; then | ||
4147 | echo "$as_me:$LINENO: result: $AS" >&5 | ||
4148 | echo "${ECHO_T}$AS" >&6 | ||
4149 | else | ||
4150 | echo "$as_me:$LINENO: result: no" >&5 | ||
4151 | echo "${ECHO_T}no" >&6 | ||
4152 | fi | ||
4153 | |||
4154 | fi | ||
4155 | if test -z "$ac_cv_prog_AS"; then | ||
4156 | ac_ct_AS=$AS | ||
4157 | # Extract the first word of "as", so it can be a program name with args. | ||
4158 | set dummy as; ac_word=$2 | ||
4159 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4160 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
4161 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then | ||
4162 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4163 | else | ||
4164 | if test -n "$ac_ct_AS"; then | ||
4165 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | ||
4166 | else | ||
4167 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4168 | for as_dir in $PATH | ||
4169 | do | ||
4170 | IFS=$as_save_IFS | ||
4171 | test -z "$as_dir" && as_dir=. | ||
4172 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4173 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4174 | ac_cv_prog_ac_ct_AS="as" | ||
4175 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4176 | break 2 | ||
4177 | fi | ||
4178 | done | ||
4179 | done | ||
4180 | |||
4181 | test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false" | ||
4182 | fi | ||
4183 | fi | ||
4184 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | ||
4185 | if test -n "$ac_ct_AS"; then | ||
4186 | echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 | ||
4187 | echo "${ECHO_T}$ac_ct_AS" >&6 | ||
4188 | else | ||
4189 | echo "$as_me:$LINENO: result: no" >&5 | ||
4190 | echo "${ECHO_T}no" >&6 | ||
4191 | fi | ||
4192 | |||
4193 | AS=$ac_ct_AS | ||
4194 | else | ||
4195 | AS="$ac_cv_prog_AS" | ||
4196 | fi | ||
4197 | |||
4198 | if test -n "$ac_tool_prefix"; then | ||
4199 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
4200 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
4201 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4202 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
4203 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | ||
4204 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4205 | else | ||
4206 | if test -n "$OBJDUMP"; then | ||
4207 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
4208 | else | ||
4209 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4210 | for as_dir in $PATH | ||
4211 | do | ||
4212 | IFS=$as_save_IFS | ||
4213 | test -z "$as_dir" && as_dir=. | ||
4214 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4215 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4216 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
4217 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4218 | break 2 | ||
4219 | fi | ||
4220 | done | ||
4221 | done | ||
4222 | |||
4223 | fi | ||
4224 | fi | ||
4225 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
4226 | if test -n "$OBJDUMP"; then | ||
4227 | echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | ||
4228 | echo "${ECHO_T}$OBJDUMP" >&6 | ||
4229 | else | ||
4230 | echo "$as_me:$LINENO: result: no" >&5 | ||
4231 | echo "${ECHO_T}no" >&6 | ||
4232 | fi | ||
4233 | |||
4234 | fi | ||
4235 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
4236 | ac_ct_OBJDUMP=$OBJDUMP | ||
4237 | # Extract the first word of "objdump", so it can be a program name with args. | ||
4238 | set dummy objdump; ac_word=$2 | ||
4239 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4240 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
4241 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | ||
4242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4243 | else | ||
4244 | if test -n "$ac_ct_OBJDUMP"; then | ||
4245 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
4246 | else | ||
4247 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4248 | for as_dir in $PATH | ||
4249 | do | ||
4250 | IFS=$as_save_IFS | ||
4251 | test -z "$as_dir" && as_dir=. | ||
4252 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4253 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4254 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
4255 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4256 | break 2 | ||
4257 | fi | ||
4258 | done | ||
4259 | done | ||
4260 | |||
4261 | test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false" | ||
4262 | fi | ||
4263 | fi | ||
4264 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
4265 | if test -n "$ac_ct_OBJDUMP"; then | ||
4266 | echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | ||
4267 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6 | ||
4268 | else | ||
4269 | echo "$as_me:$LINENO: result: no" >&5 | ||
4270 | echo "${ECHO_T}no" >&6 | ||
4271 | fi | ||
4272 | |||
4273 | OBJDUMP=$ac_ct_OBJDUMP | ||
4274 | else | ||
4275 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
4276 | fi | ||
4277 | |||
4278 | ;; | ||
4279 | |||
4280 | esac | ||
4281 | |||
4282 | need_locks="$enable_libtool_lock" | ||
4283 | |||
4284 | |||
4285 | ac_ext=c | ||
4286 | ac_cpp='$CPP $CPPFLAGS' | ||
4287 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4288 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4289 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4290 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
4291 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | ||
4292 | # On Suns, sometimes $CPP names a directory. | ||
4293 | if test -n "$CPP" && test -d "$CPP"; then | ||
4294 | CPP= | ||
4295 | fi | ||
4296 | if test -z "$CPP"; then | ||
4297 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
4298 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4299 | else | ||
4300 | # Double quotes because CPP needs to be expanded | ||
4301 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
4302 | do | ||
4303 | ac_preproc_ok=false | ||
4304 | for ac_c_preproc_warn_flag in '' yes | ||
4305 | do | ||
4306 | # Use a header file that comes with gcc, so configuring glibc | ||
4307 | # with a fresh cross-compiler works. | ||
4308 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4309 | # <limits.h> exists even on freestanding compilers. | ||
4310 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4311 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4312 | cat >conftest.$ac_ext <<_ACEOF | ||
4313 | /* confdefs.h. */ | ||
4314 | _ACEOF | ||
4315 | cat confdefs.h >>conftest.$ac_ext | ||
4316 | cat >>conftest.$ac_ext <<_ACEOF | ||
4317 | /* end confdefs.h. */ | ||
4318 | #ifdef __STDC__ | ||
4319 | # include <limits.h> | ||
4320 | #else | ||
4321 | # include <assert.h> | ||
4322 | #endif | ||
4323 | Syntax error | ||
4324 | _ACEOF | ||
4325 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
4326 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
4327 | ac_status=$? | ||
4328 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4329 | rm -f conftest.er1 | ||
4330 | cat conftest.err >&5 | ||
4331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4332 | (exit $ac_status); } >/dev/null; then | ||
4333 | if test -s conftest.err; then | ||
4334 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4335 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
4336 | else | ||
4337 | ac_cpp_err= | ||
4338 | fi | ||
4339 | else | ||
4340 | ac_cpp_err=yes | ||
4341 | fi | ||
4342 | if test -z "$ac_cpp_err"; then | ||
4343 | : | ||
4344 | else | ||
4345 | echo "$as_me: failed program was:" >&5 | ||
4346 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4347 | |||
4348 | # Broken: fails on valid input. | ||
4349 | continue | ||
4350 | fi | ||
4351 | rm -f conftest.err conftest.$ac_ext | ||
4352 | |||
4353 | # OK, works on sane cases. Now check whether non-existent headers | ||
4354 | # can be detected and how. | ||
4355 | cat >conftest.$ac_ext <<_ACEOF | ||
4356 | /* confdefs.h. */ | ||
4357 | _ACEOF | ||
4358 | cat confdefs.h >>conftest.$ac_ext | ||
4359 | cat >>conftest.$ac_ext <<_ACEOF | ||
4360 | /* end confdefs.h. */ | ||
4361 | #include <ac_nonexistent.h> | ||
4362 | _ACEOF | ||
4363 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
4364 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
4365 | ac_status=$? | ||
4366 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4367 | rm -f conftest.er1 | ||
4368 | cat conftest.err >&5 | ||
4369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4370 | (exit $ac_status); } >/dev/null; then | ||
4371 | if test -s conftest.err; then | ||
4372 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4373 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
4374 | else | ||
4375 | ac_cpp_err= | ||
4376 | fi | ||
4377 | else | ||
4378 | ac_cpp_err=yes | ||
4379 | fi | ||
4380 | if test -z "$ac_cpp_err"; then | ||
4381 | # Broken: success on invalid input. | ||
4382 | continue | ||
4383 | else | ||
4384 | echo "$as_me: failed program was:" >&5 | ||
4385 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4386 | |||
4387 | # Passes both tests. | ||
4388 | ac_preproc_ok=: | ||
4389 | break | ||
4390 | fi | ||
4391 | rm -f conftest.err conftest.$ac_ext | ||
4392 | |||
4393 | done | ||
4394 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4395 | rm -f conftest.err conftest.$ac_ext | ||
4396 | if $ac_preproc_ok; then | ||
4397 | break | ||
4398 | fi | ||
4399 | |||
4400 | done | ||
4401 | ac_cv_prog_CPP=$CPP | ||
4402 | |||
4403 | fi | ||
4404 | CPP=$ac_cv_prog_CPP | ||
4405 | else | ||
4406 | ac_cv_prog_CPP=$CPP | ||
4407 | fi | ||
4408 | echo "$as_me:$LINENO: result: $CPP" >&5 | ||
4409 | echo "${ECHO_T}$CPP" >&6 | ||
4410 | ac_preproc_ok=false | ||
4411 | for ac_c_preproc_warn_flag in '' yes | ||
4412 | do | ||
4413 | # Use a header file that comes with gcc, so configuring glibc | ||
4414 | # with a fresh cross-compiler works. | ||
4415 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
4416 | # <limits.h> exists even on freestanding compilers. | ||
4417 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
4418 | # not just through cpp. "Syntax error" is here to catch this case. | ||
4419 | cat >conftest.$ac_ext <<_ACEOF | ||
4420 | /* confdefs.h. */ | ||
4421 | _ACEOF | ||
4422 | cat confdefs.h >>conftest.$ac_ext | ||
4423 | cat >>conftest.$ac_ext <<_ACEOF | ||
4424 | /* end confdefs.h. */ | ||
4425 | #ifdef __STDC__ | ||
4426 | # include <limits.h> | ||
4427 | #else | ||
4428 | # include <assert.h> | ||
4429 | #endif | ||
4430 | Syntax error | ||
4431 | _ACEOF | ||
4432 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
4433 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
4434 | ac_status=$? | ||
4435 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4436 | rm -f conftest.er1 | ||
4437 | cat conftest.err >&5 | ||
4438 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4439 | (exit $ac_status); } >/dev/null; then | ||
4440 | if test -s conftest.err; then | ||
4441 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4442 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
4443 | else | ||
4444 | ac_cpp_err= | ||
4445 | fi | ||
4446 | else | ||
4447 | ac_cpp_err=yes | ||
4448 | fi | ||
4449 | if test -z "$ac_cpp_err"; then | ||
4450 | : | ||
4451 | else | ||
4452 | echo "$as_me: failed program was:" >&5 | ||
4453 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4454 | |||
4455 | # Broken: fails on valid input. | ||
4456 | continue | ||
4457 | fi | ||
4458 | rm -f conftest.err conftest.$ac_ext | ||
4459 | |||
4460 | # OK, works on sane cases. Now check whether non-existent headers | ||
4461 | # can be detected and how. | ||
4462 | cat >conftest.$ac_ext <<_ACEOF | ||
4463 | /* confdefs.h. */ | ||
4464 | _ACEOF | ||
4465 | cat confdefs.h >>conftest.$ac_ext | ||
4466 | cat >>conftest.$ac_ext <<_ACEOF | ||
4467 | /* end confdefs.h. */ | ||
4468 | #include <ac_nonexistent.h> | ||
4469 | _ACEOF | ||
4470 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
4471 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
4472 | ac_status=$? | ||
4473 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4474 | rm -f conftest.er1 | ||
4475 | cat conftest.err >&5 | ||
4476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4477 | (exit $ac_status); } >/dev/null; then | ||
4478 | if test -s conftest.err; then | ||
4479 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4480 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
4481 | else | ||
4482 | ac_cpp_err= | ||
4483 | fi | ||
4484 | else | ||
4485 | ac_cpp_err=yes | ||
4486 | fi | ||
4487 | if test -z "$ac_cpp_err"; then | ||
4488 | # Broken: success on invalid input. | ||
4489 | continue | ||
4490 | else | ||
4491 | echo "$as_me: failed program was:" >&5 | ||
4492 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4493 | |||
4494 | # Passes both tests. | ||
4495 | ac_preproc_ok=: | ||
4496 | break | ||
4497 | fi | ||
4498 | rm -f conftest.err conftest.$ac_ext | ||
4499 | |||
4500 | done | ||
4501 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
4502 | rm -f conftest.err conftest.$ac_ext | ||
4503 | if $ac_preproc_ok; then | ||
4504 | : | ||
4505 | else | ||
4506 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
4507 | See \`config.log' for more details." >&5 | ||
4508 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
4509 | See \`config.log' for more details." >&2;} | ||
4510 | { (exit 1); exit 1; }; } | ||
4511 | fi | ||
4512 | |||
4513 | ac_ext=c | ||
4514 | ac_cpp='$CPP $CPPFLAGS' | ||
4515 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4516 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4517 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4518 | |||
4519 | |||
4520 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
4521 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | ||
4522 | if test "${ac_cv_header_stdc+set}" = set; then | ||
4523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4524 | else | ||
4525 | cat >conftest.$ac_ext <<_ACEOF | ||
4526 | /* confdefs.h. */ | ||
4527 | _ACEOF | ||
4528 | cat confdefs.h >>conftest.$ac_ext | ||
4529 | cat >>conftest.$ac_ext <<_ACEOF | ||
4530 | /* end confdefs.h. */ | ||
4531 | #include <stdlib.h> | ||
4532 | #include <stdarg.h> | ||
4533 | #include <string.h> | ||
4534 | #include <float.h> | ||
4535 | |||
4536 | int | ||
4537 | main () | ||
4538 | { | ||
4539 | |||
4540 | ; | ||
4541 | return 0; | ||
4542 | } | ||
4543 | _ACEOF | ||
4544 | rm -f conftest.$ac_objext | ||
4545 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4546 | (eval $ac_compile) 2>conftest.er1 | ||
4547 | ac_status=$? | ||
4548 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4549 | rm -f conftest.er1 | ||
4550 | cat conftest.err >&5 | ||
4551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4552 | (exit $ac_status); } && | ||
4553 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4554 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4555 | (eval $ac_try) 2>&5 | ||
4556 | ac_status=$? | ||
4557 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4558 | (exit $ac_status); }; } && | ||
4559 | { ac_try='test -s conftest.$ac_objext' | ||
4560 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4561 | (eval $ac_try) 2>&5 | ||
4562 | ac_status=$? | ||
4563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4564 | (exit $ac_status); }; }; then | ||
4565 | ac_cv_header_stdc=yes | ||
4566 | else | ||
4567 | echo "$as_me: failed program was:" >&5 | ||
4568 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4569 | |||
4570 | ac_cv_header_stdc=no | ||
4571 | fi | ||
4572 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4573 | |||
4574 | if test $ac_cv_header_stdc = yes; then | ||
4575 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
4576 | cat >conftest.$ac_ext <<_ACEOF | ||
4577 | /* confdefs.h. */ | ||
4578 | _ACEOF | ||
4579 | cat confdefs.h >>conftest.$ac_ext | ||
4580 | cat >>conftest.$ac_ext <<_ACEOF | ||
4581 | /* end confdefs.h. */ | ||
4582 | #include <string.h> | ||
4583 | |||
4584 | _ACEOF | ||
4585 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4586 | $EGREP "memchr" >/dev/null 2>&1; then | ||
4587 | : | ||
4588 | else | ||
4589 | ac_cv_header_stdc=no | ||
4590 | fi | ||
4591 | rm -f conftest* | ||
4592 | |||
4593 | fi | ||
4594 | |||
4595 | if test $ac_cv_header_stdc = yes; then | ||
4596 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
4597 | cat >conftest.$ac_ext <<_ACEOF | ||
4598 | /* confdefs.h. */ | ||
4599 | _ACEOF | ||
4600 | cat confdefs.h >>conftest.$ac_ext | ||
4601 | cat >>conftest.$ac_ext <<_ACEOF | ||
4602 | /* end confdefs.h. */ | ||
4603 | #include <stdlib.h> | ||
4604 | |||
4605 | _ACEOF | ||
4606 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4607 | $EGREP "free" >/dev/null 2>&1; then | ||
4608 | : | ||
4609 | else | ||
4610 | ac_cv_header_stdc=no | ||
4611 | fi | ||
4612 | rm -f conftest* | ||
4613 | |||
4614 | fi | ||
4615 | |||
4616 | if test $ac_cv_header_stdc = yes; then | ||
4617 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
4618 | if test "$cross_compiling" = yes; then | ||
4619 | : | ||
4620 | else | ||
4621 | cat >conftest.$ac_ext <<_ACEOF | ||
4622 | /* confdefs.h. */ | ||
4623 | _ACEOF | ||
4624 | cat confdefs.h >>conftest.$ac_ext | ||
4625 | cat >>conftest.$ac_ext <<_ACEOF | ||
4626 | /* end confdefs.h. */ | ||
4627 | #include <ctype.h> | ||
4628 | #if ((' ' & 0x0FF) == 0x020) | ||
4629 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
4630 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
4631 | #else | ||
4632 | # define ISLOWER(c) \ | ||
4633 | (('a' <= (c) && (c) <= 'i') \ | ||
4634 | || ('j' <= (c) && (c) <= 'r') \ | ||
4635 | || ('s' <= (c) && (c) <= 'z')) | ||
4636 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
4637 | #endif | ||
4638 | |||
4639 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
4640 | int | ||
4641 | main () | ||
4642 | { | ||
4643 | int i; | ||
4644 | for (i = 0; i < 256; i++) | ||
4645 | if (XOR (islower (i), ISLOWER (i)) | ||
4646 | || toupper (i) != TOUPPER (i)) | ||
4647 | exit(2); | ||
4648 | exit (0); | ||
4649 | } | ||
4650 | _ACEOF | ||
4651 | rm -f conftest$ac_exeext | ||
4652 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
4653 | (eval $ac_link) 2>&5 | ||
4654 | ac_status=$? | ||
4655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4656 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
4657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4658 | (eval $ac_try) 2>&5 | ||
4659 | ac_status=$? | ||
4660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4661 | (exit $ac_status); }; }; then | ||
4662 | : | ||
4663 | else | ||
4664 | echo "$as_me: program exited with status $ac_status" >&5 | ||
4665 | echo "$as_me: failed program was:" >&5 | ||
4666 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4667 | |||
4668 | ( exit $ac_status ) | ||
4669 | ac_cv_header_stdc=no | ||
4670 | fi | ||
4671 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
4672 | fi | ||
4673 | fi | ||
4674 | fi | ||
4675 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
4676 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | ||
4677 | if test $ac_cv_header_stdc = yes; then | ||
4678 | |||
4679 | cat >>confdefs.h <<\_ACEOF | ||
4680 | #define STDC_HEADERS 1 | ||
4681 | _ACEOF | ||
4682 | |||
4683 | fi | ||
4684 | |||
4685 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
4686 | |||
4687 | |||
4688 | |||
4689 | |||
4690 | |||
4691 | |||
4692 | |||
4693 | |||
4694 | |||
4695 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
4696 | inttypes.h stdint.h unistd.h | ||
4697 | do | ||
4698 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4699 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
4700 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
4701 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4702 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4703 | else | ||
4704 | cat >conftest.$ac_ext <<_ACEOF | ||
4705 | /* confdefs.h. */ | ||
4706 | _ACEOF | ||
4707 | cat confdefs.h >>conftest.$ac_ext | ||
4708 | cat >>conftest.$ac_ext <<_ACEOF | ||
4709 | /* end confdefs.h. */ | ||
4710 | $ac_includes_default | ||
4711 | |||
4712 | #include <$ac_header> | ||
4713 | _ACEOF | ||
4714 | rm -f conftest.$ac_objext | ||
4715 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4716 | (eval $ac_compile) 2>conftest.er1 | ||
4717 | ac_status=$? | ||
4718 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4719 | rm -f conftest.er1 | ||
4720 | cat conftest.err >&5 | ||
4721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4722 | (exit $ac_status); } && | ||
4723 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4725 | (eval $ac_try) 2>&5 | ||
4726 | ac_status=$? | ||
4727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4728 | (exit $ac_status); }; } && | ||
4729 | { ac_try='test -s conftest.$ac_objext' | ||
4730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4731 | (eval $ac_try) 2>&5 | ||
4732 | ac_status=$? | ||
4733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4734 | (exit $ac_status); }; }; then | ||
4735 | eval "$as_ac_Header=yes" | ||
4736 | else | ||
4737 | echo "$as_me: failed program was:" >&5 | ||
4738 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4739 | |||
4740 | eval "$as_ac_Header=no" | ||
4741 | fi | ||
4742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4743 | fi | ||
4744 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
4745 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
4746 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
4747 | cat >>confdefs.h <<_ACEOF | ||
4748 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4749 | _ACEOF | ||
4750 | |||
4751 | fi | ||
4752 | |||
4753 | done | ||
4754 | |||
4755 | |||
4756 | |||
4757 | for ac_header in dlfcn.h | ||
4758 | do | ||
4759 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
4760 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4761 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
4762 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
4763 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4764 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4765 | fi | ||
4766 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
4767 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
4768 | else | ||
4769 | # Is the header compilable? | ||
4770 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
4771 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
4772 | cat >conftest.$ac_ext <<_ACEOF | ||
4773 | /* confdefs.h. */ | ||
4774 | _ACEOF | ||
4775 | cat confdefs.h >>conftest.$ac_ext | ||
4776 | cat >>conftest.$ac_ext <<_ACEOF | ||
4777 | /* end confdefs.h. */ | ||
4778 | $ac_includes_default | ||
4779 | #include <$ac_header> | ||
4780 | _ACEOF | ||
4781 | rm -f conftest.$ac_objext | ||
4782 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4783 | (eval $ac_compile) 2>conftest.er1 | ||
4784 | ac_status=$? | ||
4785 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4786 | rm -f conftest.er1 | ||
4787 | cat conftest.err >&5 | ||
4788 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4789 | (exit $ac_status); } && | ||
4790 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
4791 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4792 | (eval $ac_try) 2>&5 | ||
4793 | ac_status=$? | ||
4794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4795 | (exit $ac_status); }; } && | ||
4796 | { ac_try='test -s conftest.$ac_objext' | ||
4797 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
4798 | (eval $ac_try) 2>&5 | ||
4799 | ac_status=$? | ||
4800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4801 | (exit $ac_status); }; }; then | ||
4802 | ac_header_compiler=yes | ||
4803 | else | ||
4804 | echo "$as_me: failed program was:" >&5 | ||
4805 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4806 | |||
4807 | ac_header_compiler=no | ||
4808 | fi | ||
4809 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4810 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
4811 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
4812 | |||
4813 | # Is the header present? | ||
4814 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
4815 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
4816 | cat >conftest.$ac_ext <<_ACEOF | ||
4817 | /* confdefs.h. */ | ||
4818 | _ACEOF | ||
4819 | cat confdefs.h >>conftest.$ac_ext | ||
4820 | cat >>conftest.$ac_ext <<_ACEOF | ||
4821 | /* end confdefs.h. */ | ||
4822 | #include <$ac_header> | ||
4823 | _ACEOF | ||
4824 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
4825 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
4826 | ac_status=$? | ||
4827 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4828 | rm -f conftest.er1 | ||
4829 | cat conftest.err >&5 | ||
4830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4831 | (exit $ac_status); } >/dev/null; then | ||
4832 | if test -s conftest.err; then | ||
4833 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
4834 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
4835 | else | ||
4836 | ac_cpp_err= | ||
4837 | fi | ||
4838 | else | ||
4839 | ac_cpp_err=yes | ||
4840 | fi | ||
4841 | if test -z "$ac_cpp_err"; then | ||
4842 | ac_header_preproc=yes | ||
4843 | else | ||
4844 | echo "$as_me: failed program was:" >&5 | ||
4845 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4846 | |||
4847 | ac_header_preproc=no | ||
4848 | fi | ||
4849 | rm -f conftest.err conftest.$ac_ext | ||
4850 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
4851 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
4852 | |||
4853 | # So? What about this header? | ||
4854 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
4855 | yes:no: ) | ||
4856 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
4857 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
4858 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
4859 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
4860 | ac_header_preproc=yes | ||
4861 | ;; | ||
4862 | no:yes:* ) | ||
4863 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
4864 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
4865 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
4866 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
4867 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
4868 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
4869 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
4870 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
4871 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
4872 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
4873 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
4874 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
4875 | ( | ||
4876 | cat <<\_ASBOX | ||
4877 | ## ---------------------------------- ## | ||
4878 | ## Report this to bug-libtool@gnu.org ## | ||
4879 | ## ---------------------------------- ## | ||
4880 | _ASBOX | ||
4881 | ) | | ||
4882 | sed "s/^/$as_me: WARNING: /" >&2 | ||
4883 | ;; | ||
4884 | esac | ||
4885 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
4886 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
4887 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
4888 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4889 | else | ||
4890 | eval "$as_ac_Header=\$ac_header_preproc" | ||
4891 | fi | ||
4892 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
4893 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
4894 | |||
4895 | fi | ||
4896 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
4897 | cat >>confdefs.h <<_ACEOF | ||
4898 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
4899 | _ACEOF | ||
4900 | |||
4901 | fi | ||
4902 | |||
4903 | done | ||
4904 | |||
4905 | ac_ext=cc | ||
4906 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
4907 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4908 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4909 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
4910 | if test -n "$ac_tool_prefix"; then | ||
4911 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | ||
4912 | do | ||
4913 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
4914 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
4915 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4916 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
4917 | if test "${ac_cv_prog_CXX+set}" = set; then | ||
4918 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4919 | else | ||
4920 | if test -n "$CXX"; then | ||
4921 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
4922 | else | ||
4923 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4924 | for as_dir in $PATH | ||
4925 | do | ||
4926 | IFS=$as_save_IFS | ||
4927 | test -z "$as_dir" && as_dir=. | ||
4928 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4929 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4930 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | ||
4931 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4932 | break 2 | ||
4933 | fi | ||
4934 | done | ||
4935 | done | ||
4936 | |||
4937 | fi | ||
4938 | fi | ||
4939 | CXX=$ac_cv_prog_CXX | ||
4940 | if test -n "$CXX"; then | ||
4941 | echo "$as_me:$LINENO: result: $CXX" >&5 | ||
4942 | echo "${ECHO_T}$CXX" >&6 | ||
4943 | else | ||
4944 | echo "$as_me:$LINENO: result: no" >&5 | ||
4945 | echo "${ECHO_T}no" >&6 | ||
4946 | fi | ||
4947 | |||
4948 | test -n "$CXX" && break | ||
4949 | done | ||
4950 | fi | ||
4951 | if test -z "$CXX"; then | ||
4952 | ac_ct_CXX=$CXX | ||
4953 | for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC | ||
4954 | do | ||
4955 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
4956 | set dummy $ac_prog; ac_word=$2 | ||
4957 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
4958 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
4959 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | ||
4960 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4961 | else | ||
4962 | if test -n "$ac_ct_CXX"; then | ||
4963 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||
4964 | else | ||
4965 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4966 | for as_dir in $PATH | ||
4967 | do | ||
4968 | IFS=$as_save_IFS | ||
4969 | test -z "$as_dir" && as_dir=. | ||
4970 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4971 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
4972 | ac_cv_prog_ac_ct_CXX="$ac_prog" | ||
4973 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
4974 | break 2 | ||
4975 | fi | ||
4976 | done | ||
4977 | done | ||
4978 | |||
4979 | fi | ||
4980 | fi | ||
4981 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||
4982 | if test -n "$ac_ct_CXX"; then | ||
4983 | echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | ||
4984 | echo "${ECHO_T}$ac_ct_CXX" >&6 | ||
4985 | else | ||
4986 | echo "$as_me:$LINENO: result: no" >&5 | ||
4987 | echo "${ECHO_T}no" >&6 | ||
4988 | fi | ||
4989 | |||
4990 | test -n "$ac_ct_CXX" && break | ||
4991 | done | ||
4992 | test -n "$ac_ct_CXX" || ac_ct_CXX="g++" | ||
4993 | |||
4994 | CXX=$ac_ct_CXX | ||
4995 | fi | ||
4996 | |||
4997 | |||
4998 | # Provide some information about the compiler. | ||
4999 | echo "$as_me:$LINENO:" \ | ||
5000 | "checking for C++ compiler version" >&5 | ||
5001 | ac_compiler=`set X $ac_compile; echo $2` | ||
5002 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
5003 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
5004 | ac_status=$? | ||
5005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5006 | (exit $ac_status); } | ||
5007 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
5008 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
5009 | ac_status=$? | ||
5010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5011 | (exit $ac_status); } | ||
5012 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
5013 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
5014 | ac_status=$? | ||
5015 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5016 | (exit $ac_status); } | ||
5017 | |||
5018 | echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | ||
5019 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 | ||
5020 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | ||
5021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5022 | else | ||
5023 | cat >conftest.$ac_ext <<_ACEOF | ||
5024 | /* confdefs.h. */ | ||
5025 | _ACEOF | ||
5026 | cat confdefs.h >>conftest.$ac_ext | ||
5027 | cat >>conftest.$ac_ext <<_ACEOF | ||
5028 | /* end confdefs.h. */ | ||
5029 | |||
5030 | int | ||
5031 | main () | ||
5032 | { | ||
5033 | #ifndef __GNUC__ | ||
5034 | choke me | ||
5035 | #endif | ||
5036 | |||
5037 | ; | ||
5038 | return 0; | ||
5039 | } | ||
5040 | _ACEOF | ||
5041 | rm -f conftest.$ac_objext | ||
5042 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5043 | (eval $ac_compile) 2>conftest.er1 | ||
5044 | ac_status=$? | ||
5045 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5046 | rm -f conftest.er1 | ||
5047 | cat conftest.err >&5 | ||
5048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5049 | (exit $ac_status); } && | ||
5050 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
5051 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5052 | (eval $ac_try) 2>&5 | ||
5053 | ac_status=$? | ||
5054 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5055 | (exit $ac_status); }; } && | ||
5056 | { ac_try='test -s conftest.$ac_objext' | ||
5057 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5058 | (eval $ac_try) 2>&5 | ||
5059 | ac_status=$? | ||
5060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5061 | (exit $ac_status); }; }; then | ||
5062 | ac_compiler_gnu=yes | ||
5063 | else | ||
5064 | echo "$as_me: failed program was:" >&5 | ||
5065 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5066 | |||
5067 | ac_compiler_gnu=no | ||
5068 | fi | ||
5069 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5070 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | ||
5071 | |||
5072 | fi | ||
5073 | echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | ||
5074 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 | ||
5075 | GXX=`test $ac_compiler_gnu = yes && echo yes` | ||
5076 | ac_test_CXXFLAGS=${CXXFLAGS+set} | ||
5077 | ac_save_CXXFLAGS=$CXXFLAGS | ||
5078 | CXXFLAGS="-g" | ||
5079 | echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | ||
5080 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 | ||
5081 | if test "${ac_cv_prog_cxx_g+set}" = set; then | ||
5082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5083 | else | ||
5084 | cat >conftest.$ac_ext <<_ACEOF | ||
5085 | /* confdefs.h. */ | ||
5086 | _ACEOF | ||
5087 | cat confdefs.h >>conftest.$ac_ext | ||
5088 | cat >>conftest.$ac_ext <<_ACEOF | ||
5089 | /* end confdefs.h. */ | ||
5090 | |||
5091 | int | ||
5092 | main () | ||
5093 | { | ||
5094 | |||
5095 | ; | ||
5096 | return 0; | ||
5097 | } | ||
5098 | _ACEOF | ||
5099 | rm -f conftest.$ac_objext | ||
5100 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5101 | (eval $ac_compile) 2>conftest.er1 | ||
5102 | ac_status=$? | ||
5103 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5104 | rm -f conftest.er1 | ||
5105 | cat conftest.err >&5 | ||
5106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5107 | (exit $ac_status); } && | ||
5108 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
5109 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5110 | (eval $ac_try) 2>&5 | ||
5111 | ac_status=$? | ||
5112 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5113 | (exit $ac_status); }; } && | ||
5114 | { ac_try='test -s conftest.$ac_objext' | ||
5115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5116 | (eval $ac_try) 2>&5 | ||
5117 | ac_status=$? | ||
5118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5119 | (exit $ac_status); }; }; then | ||
5120 | ac_cv_prog_cxx_g=yes | ||
5121 | else | ||
5122 | echo "$as_me: failed program was:" >&5 | ||
5123 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5124 | |||
5125 | ac_cv_prog_cxx_g=no | ||
5126 | fi | ||
5127 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5128 | fi | ||
5129 | echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | ||
5130 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 | ||
5131 | if test "$ac_test_CXXFLAGS" = set; then | ||
5132 | CXXFLAGS=$ac_save_CXXFLAGS | ||
5133 | elif test $ac_cv_prog_cxx_g = yes; then | ||
5134 | if test "$GXX" = yes; then | ||
5135 | CXXFLAGS="-g -O2" | ||
5136 | else | ||
5137 | CXXFLAGS="-g" | ||
5138 | fi | ||
5139 | else | ||
5140 | if test "$GXX" = yes; then | ||
5141 | CXXFLAGS="-O2" | ||
5142 | else | ||
5143 | CXXFLAGS= | ||
5144 | fi | ||
5145 | fi | ||
5146 | for ac_declaration in \ | ||
5147 | '' \ | ||
5148 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | ||
5149 | 'extern "C" void std::exit (int); using std::exit;' \ | ||
5150 | 'extern "C" void exit (int) throw ();' \ | ||
5151 | 'extern "C" void exit (int);' \ | ||
5152 | 'void exit (int);' | ||
5153 | do | ||
5154 | cat >conftest.$ac_ext <<_ACEOF | ||
5155 | /* confdefs.h. */ | ||
5156 | _ACEOF | ||
5157 | cat confdefs.h >>conftest.$ac_ext | ||
5158 | cat >>conftest.$ac_ext <<_ACEOF | ||
5159 | /* end confdefs.h. */ | ||
5160 | $ac_declaration | ||
5161 | #include <stdlib.h> | ||
5162 | int | ||
5163 | main () | ||
5164 | { | ||
5165 | exit (42); | ||
5166 | ; | ||
5167 | return 0; | ||
5168 | } | ||
5169 | _ACEOF | ||
5170 | rm -f conftest.$ac_objext | ||
5171 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5172 | (eval $ac_compile) 2>conftest.er1 | ||
5173 | ac_status=$? | ||
5174 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5175 | rm -f conftest.er1 | ||
5176 | cat conftest.err >&5 | ||
5177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5178 | (exit $ac_status); } && | ||
5179 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
5180 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5181 | (eval $ac_try) 2>&5 | ||
5182 | ac_status=$? | ||
5183 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5184 | (exit $ac_status); }; } && | ||
5185 | { ac_try='test -s conftest.$ac_objext' | ||
5186 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5187 | (eval $ac_try) 2>&5 | ||
5188 | ac_status=$? | ||
5189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5190 | (exit $ac_status); }; }; then | ||
5191 | : | ||
5192 | else | ||
5193 | echo "$as_me: failed program was:" >&5 | ||
5194 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5195 | |||
5196 | continue | ||
5197 | fi | ||
5198 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5199 | cat >conftest.$ac_ext <<_ACEOF | ||
5200 | /* confdefs.h. */ | ||
5201 | _ACEOF | ||
5202 | cat confdefs.h >>conftest.$ac_ext | ||
5203 | cat >>conftest.$ac_ext <<_ACEOF | ||
5204 | /* end confdefs.h. */ | ||
5205 | $ac_declaration | ||
5206 | int | ||
5207 | main () | ||
5208 | { | ||
5209 | exit (42); | ||
5210 | ; | ||
5211 | return 0; | ||
5212 | } | ||
5213 | _ACEOF | ||
5214 | rm -f conftest.$ac_objext | ||
5215 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5216 | (eval $ac_compile) 2>conftest.er1 | ||
5217 | ac_status=$? | ||
5218 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5219 | rm -f conftest.er1 | ||
5220 | cat conftest.err >&5 | ||
5221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5222 | (exit $ac_status); } && | ||
5223 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
5224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5225 | (eval $ac_try) 2>&5 | ||
5226 | ac_status=$? | ||
5227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5228 | (exit $ac_status); }; } && | ||
5229 | { ac_try='test -s conftest.$ac_objext' | ||
5230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5231 | (eval $ac_try) 2>&5 | ||
5232 | ac_status=$? | ||
5233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5234 | (exit $ac_status); }; }; then | ||
5235 | break | ||
5236 | else | ||
5237 | echo "$as_me: failed program was:" >&5 | ||
5238 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5239 | |||
5240 | fi | ||
5241 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5242 | done | ||
5243 | rm -f conftest* | ||
5244 | if test -n "$ac_declaration"; then | ||
5245 | echo '#ifdef __cplusplus' >>confdefs.h | ||
5246 | echo $ac_declaration >>confdefs.h | ||
5247 | echo '#endif' >>confdefs.h | ||
5248 | fi | ||
5249 | |||
5250 | ac_ext=cc | ||
5251 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
5252 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5253 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5254 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
5255 | |||
5256 | depcc="$CXX" am_compiler_list= | ||
5257 | |||
5258 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | ||
5259 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | ||
5260 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | ||
5261 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5262 | else | ||
5263 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
5264 | # We make a subdir and do the tests there. Otherwise we can end up | ||
5265 | # making bogus files that we don't know about and never remove. For | ||
5266 | # instance it was reported that on HP-UX the gcc test will end up | ||
5267 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
5268 | # in D'. | ||
5269 | mkdir conftest.dir | ||
5270 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
5271 | # using a relative directory. | ||
5272 | cp "$am_depcomp" conftest.dir | ||
5273 | cd conftest.dir | ||
5274 | # We will build objects and dependencies in a subdirectory because | ||
5275 | # it helps to detect inapplicable dependency modes. For instance | ||
5276 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
5277 | # side effect of compilation, but ICC will put the dependencies in | ||
5278 | # the current directory while Tru64 will put them in the object | ||
5279 | # directory. | ||
5280 | mkdir sub | ||
5281 | |||
5282 | am_cv_CXX_dependencies_compiler_type=none | ||
5283 | if test "$am_compiler_list" = ""; then | ||
5284 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
5285 | fi | ||
5286 | for depmode in $am_compiler_list; do | ||
5287 | # Setup a source with many dependencies, because some compilers | ||
5288 | # like to wrap large dependency lists on column 80 (with \), and | ||
5289 | # we should not choose a depcomp mode which is confused by this. | ||
5290 | # | ||
5291 | # We need to recreate these files for each test, as the compiler may | ||
5292 | # overwrite some of them when testing with obscure command lines. | ||
5293 | # This happens at least with the AIX C compiler. | ||
5294 | : > sub/conftest.c | ||
5295 | for i in 1 2 3 4 5 6; do | ||
5296 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
5297 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
5298 | # Solaris 8's {/usr,}/bin/sh. | ||
5299 | touch sub/conftst$i.h | ||
5300 | done | ||
5301 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
5302 | |||
5303 | case $depmode in | ||
5304 | nosideeffect) | ||
5305 | # after this tag, mechanisms are not by side-effect, so they'll | ||
5306 | # only be used when explicitly requested | ||
5307 | if test "x$enable_dependency_tracking" = xyes; then | ||
5308 | continue | ||
5309 | else | ||
5310 | break | ||
5311 | fi | ||
5312 | ;; | ||
5313 | none) break ;; | ||
5314 | esac | ||
5315 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
5316 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
5317 | # handle `-M -o', and we need to detect this. | ||
5318 | if depmode=$depmode \ | ||
5319 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | ||
5320 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
5321 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | ||
5322 | >/dev/null 2>conftest.err && | ||
5323 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
5324 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | ||
5325 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
5326 | # icc doesn't choke on unknown options, it will just issue warnings | ||
5327 | # or remarks (even with -Werror). So we grep stderr for any message | ||
5328 | # that says an option was ignored or not supported. | ||
5329 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
5330 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
5331 | # The diagnosis changed in icc 8.0: | ||
5332 | # icc: Command line remark: option '-MP' not supported | ||
5333 | if (grep 'ignoring option' conftest.err || | ||
5334 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
5335 | am_cv_CXX_dependencies_compiler_type=$depmode | ||
5336 | break | ||
5337 | fi | ||
5338 | fi | ||
5339 | done | ||
5340 | |||
5341 | cd .. | ||
5342 | rm -rf conftest.dir | ||
5343 | else | ||
5344 | am_cv_CXX_dependencies_compiler_type=none | ||
5345 | fi | ||
5346 | |||
5347 | fi | ||
5348 | echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | ||
5349 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6 | ||
5350 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | ||
5351 | |||
5352 | |||
5353 | |||
5354 | if | ||
5355 | test "x$enable_dependency_tracking" != xno \ | ||
5356 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | ||
5357 | am__fastdepCXX_TRUE= | ||
5358 | am__fastdepCXX_FALSE='#' | ||
5359 | else | ||
5360 | am__fastdepCXX_TRUE='#' | ||
5361 | am__fastdepCXX_FALSE= | ||
5362 | fi | ||
5363 | |||
5364 | |||
5365 | ac_ext=cc | ||
5366 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
5367 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5368 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5369 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
5370 | echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | ||
5371 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 | ||
5372 | if test -z "$CXXCPP"; then | ||
5373 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | ||
5374 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5375 | else | ||
5376 | # Double quotes because CXXCPP needs to be expanded | ||
5377 | for CXXCPP in "$CXX -E" "/lib/cpp" | ||
5378 | do | ||
5379 | ac_preproc_ok=false | ||
5380 | for ac_cxx_preproc_warn_flag in '' yes | ||
5381 | do | ||
5382 | # Use a header file that comes with gcc, so configuring glibc | ||
5383 | # with a fresh cross-compiler works. | ||
5384 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5385 | # <limits.h> exists even on freestanding compilers. | ||
5386 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
5387 | # not just through cpp. "Syntax error" is here to catch this case. | ||
5388 | cat >conftest.$ac_ext <<_ACEOF | ||
5389 | /* confdefs.h. */ | ||
5390 | _ACEOF | ||
5391 | cat confdefs.h >>conftest.$ac_ext | ||
5392 | cat >>conftest.$ac_ext <<_ACEOF | ||
5393 | /* end confdefs.h. */ | ||
5394 | #ifdef __STDC__ | ||
5395 | # include <limits.h> | ||
5396 | #else | ||
5397 | # include <assert.h> | ||
5398 | #endif | ||
5399 | Syntax error | ||
5400 | _ACEOF | ||
5401 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5402 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5403 | ac_status=$? | ||
5404 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5405 | rm -f conftest.er1 | ||
5406 | cat conftest.err >&5 | ||
5407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5408 | (exit $ac_status); } >/dev/null; then | ||
5409 | if test -s conftest.err; then | ||
5410 | ac_cpp_err=$ac_cxx_preproc_warn_flag | ||
5411 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | ||
5412 | else | ||
5413 | ac_cpp_err= | ||
5414 | fi | ||
5415 | else | ||
5416 | ac_cpp_err=yes | ||
5417 | fi | ||
5418 | if test -z "$ac_cpp_err"; then | ||
5419 | : | ||
5420 | else | ||
5421 | echo "$as_me: failed program was:" >&5 | ||
5422 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5423 | |||
5424 | # Broken: fails on valid input. | ||
5425 | continue | ||
5426 | fi | ||
5427 | rm -f conftest.err conftest.$ac_ext | ||
5428 | |||
5429 | # OK, works on sane cases. Now check whether non-existent headers | ||
5430 | # can be detected and how. | ||
5431 | cat >conftest.$ac_ext <<_ACEOF | ||
5432 | /* confdefs.h. */ | ||
5433 | _ACEOF | ||
5434 | cat confdefs.h >>conftest.$ac_ext | ||
5435 | cat >>conftest.$ac_ext <<_ACEOF | ||
5436 | /* end confdefs.h. */ | ||
5437 | #include <ac_nonexistent.h> | ||
5438 | _ACEOF | ||
5439 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5440 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5441 | ac_status=$? | ||
5442 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5443 | rm -f conftest.er1 | ||
5444 | cat conftest.err >&5 | ||
5445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5446 | (exit $ac_status); } >/dev/null; then | ||
5447 | if test -s conftest.err; then | ||
5448 | ac_cpp_err=$ac_cxx_preproc_warn_flag | ||
5449 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | ||
5450 | else | ||
5451 | ac_cpp_err= | ||
5452 | fi | ||
5453 | else | ||
5454 | ac_cpp_err=yes | ||
5455 | fi | ||
5456 | if test -z "$ac_cpp_err"; then | ||
5457 | # Broken: success on invalid input. | ||
5458 | continue | ||
5459 | else | ||
5460 | echo "$as_me: failed program was:" >&5 | ||
5461 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5462 | |||
5463 | # Passes both tests. | ||
5464 | ac_preproc_ok=: | ||
5465 | break | ||
5466 | fi | ||
5467 | rm -f conftest.err conftest.$ac_ext | ||
5468 | |||
5469 | done | ||
5470 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
5471 | rm -f conftest.err conftest.$ac_ext | ||
5472 | if $ac_preproc_ok; then | ||
5473 | break | ||
5474 | fi | ||
5475 | |||
5476 | done | ||
5477 | ac_cv_prog_CXXCPP=$CXXCPP | ||
5478 | |||
5479 | fi | ||
5480 | CXXCPP=$ac_cv_prog_CXXCPP | ||
5481 | else | ||
5482 | ac_cv_prog_CXXCPP=$CXXCPP | ||
5483 | fi | ||
5484 | echo "$as_me:$LINENO: result: $CXXCPP" >&5 | ||
5485 | echo "${ECHO_T}$CXXCPP" >&6 | ||
5486 | ac_preproc_ok=false | ||
5487 | for ac_cxx_preproc_warn_flag in '' yes | ||
5488 | do | ||
5489 | # Use a header file that comes with gcc, so configuring glibc | ||
5490 | # with a fresh cross-compiler works. | ||
5491 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
5492 | # <limits.h> exists even on freestanding compilers. | ||
5493 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
5494 | # not just through cpp. "Syntax error" is here to catch this case. | ||
5495 | cat >conftest.$ac_ext <<_ACEOF | ||
5496 | /* confdefs.h. */ | ||
5497 | _ACEOF | ||
5498 | cat confdefs.h >>conftest.$ac_ext | ||
5499 | cat >>conftest.$ac_ext <<_ACEOF | ||
5500 | /* end confdefs.h. */ | ||
5501 | #ifdef __STDC__ | ||
5502 | # include <limits.h> | ||
5503 | #else | ||
5504 | # include <assert.h> | ||
5505 | #endif | ||
5506 | Syntax error | ||
5507 | _ACEOF | ||
5508 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5509 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5510 | ac_status=$? | ||
5511 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5512 | rm -f conftest.er1 | ||
5513 | cat conftest.err >&5 | ||
5514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5515 | (exit $ac_status); } >/dev/null; then | ||
5516 | if test -s conftest.err; then | ||
5517 | ac_cpp_err=$ac_cxx_preproc_warn_flag | ||
5518 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | ||
5519 | else | ||
5520 | ac_cpp_err= | ||
5521 | fi | ||
5522 | else | ||
5523 | ac_cpp_err=yes | ||
5524 | fi | ||
5525 | if test -z "$ac_cpp_err"; then | ||
5526 | : | ||
5527 | else | ||
5528 | echo "$as_me: failed program was:" >&5 | ||
5529 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5530 | |||
5531 | # Broken: fails on valid input. | ||
5532 | continue | ||
5533 | fi | ||
5534 | rm -f conftest.err conftest.$ac_ext | ||
5535 | |||
5536 | # OK, works on sane cases. Now check whether non-existent headers | ||
5537 | # can be detected and how. | ||
5538 | cat >conftest.$ac_ext <<_ACEOF | ||
5539 | /* confdefs.h. */ | ||
5540 | _ACEOF | ||
5541 | cat confdefs.h >>conftest.$ac_ext | ||
5542 | cat >>conftest.$ac_ext <<_ACEOF | ||
5543 | /* end confdefs.h. */ | ||
5544 | #include <ac_nonexistent.h> | ||
5545 | _ACEOF | ||
5546 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
5547 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
5548 | ac_status=$? | ||
5549 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5550 | rm -f conftest.er1 | ||
5551 | cat conftest.err >&5 | ||
5552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5553 | (exit $ac_status); } >/dev/null; then | ||
5554 | if test -s conftest.err; then | ||
5555 | ac_cpp_err=$ac_cxx_preproc_warn_flag | ||
5556 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag | ||
5557 | else | ||
5558 | ac_cpp_err= | ||
5559 | fi | ||
5560 | else | ||
5561 | ac_cpp_err=yes | ||
5562 | fi | ||
5563 | if test -z "$ac_cpp_err"; then | ||
5564 | # Broken: success on invalid input. | ||
5565 | continue | ||
5566 | else | ||
5567 | echo "$as_me: failed program was:" >&5 | ||
5568 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5569 | |||
5570 | # Passes both tests. | ||
5571 | ac_preproc_ok=: | ||
5572 | break | ||
5573 | fi | ||
5574 | rm -f conftest.err conftest.$ac_ext | ||
5575 | |||
5576 | done | ||
5577 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
5578 | rm -f conftest.err conftest.$ac_ext | ||
5579 | if $ac_preproc_ok; then | ||
5580 | : | ||
5581 | else | ||
5582 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | ||
5583 | See \`config.log' for more details." >&5 | ||
5584 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | ||
5585 | See \`config.log' for more details." >&2;} | ||
5586 | { (exit 1); exit 1; }; } | ||
5587 | fi | ||
5588 | |||
5589 | ac_ext=cc | ||
5590 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
5591 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5592 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5593 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
5594 | |||
5595 | |||
5596 | ac_ext=f | ||
5597 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | ||
5598 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5599 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | ||
5600 | if test -n "$ac_tool_prefix"; then | ||
5601 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran | ||
5602 | do | ||
5603 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
5604 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
5605 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5606 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
5607 | if test "${ac_cv_prog_F77+set}" = set; then | ||
5608 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5609 | else | ||
5610 | if test -n "$F77"; then | ||
5611 | ac_cv_prog_F77="$F77" # Let the user override the test. | ||
5612 | else | ||
5613 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5614 | for as_dir in $PATH | ||
5615 | do | ||
5616 | IFS=$as_save_IFS | ||
5617 | test -z "$as_dir" && as_dir=. | ||
5618 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5619 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5620 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | ||
5621 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5622 | break 2 | ||
5623 | fi | ||
5624 | done | ||
5625 | done | ||
5626 | |||
5627 | fi | ||
5628 | fi | ||
5629 | F77=$ac_cv_prog_F77 | ||
5630 | if test -n "$F77"; then | ||
5631 | echo "$as_me:$LINENO: result: $F77" >&5 | ||
5632 | echo "${ECHO_T}$F77" >&6 | ||
5633 | else | ||
5634 | echo "$as_me:$LINENO: result: no" >&5 | ||
5635 | echo "${ECHO_T}no" >&6 | ||
5636 | fi | ||
5637 | |||
5638 | test -n "$F77" && break | ||
5639 | done | ||
5640 | fi | ||
5641 | if test -z "$F77"; then | ||
5642 | ac_ct_F77=$F77 | ||
5643 | for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran | ||
5644 | do | ||
5645 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
5646 | set dummy $ac_prog; ac_word=$2 | ||
5647 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5648 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
5649 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | ||
5650 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5651 | else | ||
5652 | if test -n "$ac_ct_F77"; then | ||
5653 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | ||
5654 | else | ||
5655 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5656 | for as_dir in $PATH | ||
5657 | do | ||
5658 | IFS=$as_save_IFS | ||
5659 | test -z "$as_dir" && as_dir=. | ||
5660 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5661 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
5662 | ac_cv_prog_ac_ct_F77="$ac_prog" | ||
5663 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5664 | break 2 | ||
5665 | fi | ||
5666 | done | ||
5667 | done | ||
5668 | |||
5669 | fi | ||
5670 | fi | ||
5671 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | ||
5672 | if test -n "$ac_ct_F77"; then | ||
5673 | echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | ||
5674 | echo "${ECHO_T}$ac_ct_F77" >&6 | ||
5675 | else | ||
5676 | echo "$as_me:$LINENO: result: no" >&5 | ||
5677 | echo "${ECHO_T}no" >&6 | ||
5678 | fi | ||
5679 | |||
5680 | test -n "$ac_ct_F77" && break | ||
5681 | done | ||
5682 | |||
5683 | F77=$ac_ct_F77 | ||
5684 | fi | ||
5685 | |||
5686 | |||
5687 | # Provide some information about the compiler. | ||
5688 | echo "$as_me:5688:" \ | ||
5689 | "checking for Fortran 77 compiler version" >&5 | ||
5690 | ac_compiler=`set X $ac_compile; echo $2` | ||
5691 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | ||
5692 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | ||
5693 | ac_status=$? | ||
5694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5695 | (exit $ac_status); } | ||
5696 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | ||
5697 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | ||
5698 | ac_status=$? | ||
5699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5700 | (exit $ac_status); } | ||
5701 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | ||
5702 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | ||
5703 | ac_status=$? | ||
5704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5705 | (exit $ac_status); } | ||
5706 | rm -f a.out | ||
5707 | |||
5708 | # If we don't use `.F' as extension, the preprocessor is not run on the | ||
5709 | # input file. (Note that this only needs to work for GNU compilers.) | ||
5710 | ac_save_ext=$ac_ext | ||
5711 | ac_ext=F | ||
5712 | echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | ||
5713 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 | ||
5714 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | ||
5715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5716 | else | ||
5717 | cat >conftest.$ac_ext <<_ACEOF | ||
5718 | program main | ||
5719 | #ifndef __GNUC__ | ||
5720 | choke me | ||
5721 | #endif | ||
5722 | |||
5723 | end | ||
5724 | _ACEOF | ||
5725 | rm -f conftest.$ac_objext | ||
5726 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5727 | (eval $ac_compile) 2>conftest.er1 | ||
5728 | ac_status=$? | ||
5729 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5730 | rm -f conftest.er1 | ||
5731 | cat conftest.err >&5 | ||
5732 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5733 | (exit $ac_status); } && | ||
5734 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | ||
5735 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5736 | (eval $ac_try) 2>&5 | ||
5737 | ac_status=$? | ||
5738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5739 | (exit $ac_status); }; } && | ||
5740 | { ac_try='test -s conftest.$ac_objext' | ||
5741 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5742 | (eval $ac_try) 2>&5 | ||
5743 | ac_status=$? | ||
5744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5745 | (exit $ac_status); }; }; then | ||
5746 | ac_compiler_gnu=yes | ||
5747 | else | ||
5748 | echo "$as_me: failed program was:" >&5 | ||
5749 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5750 | |||
5751 | ac_compiler_gnu=no | ||
5752 | fi | ||
5753 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5754 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | ||
5755 | |||
5756 | fi | ||
5757 | echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | ||
5758 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 | ||
5759 | ac_ext=$ac_save_ext | ||
5760 | ac_test_FFLAGS=${FFLAGS+set} | ||
5761 | ac_save_FFLAGS=$FFLAGS | ||
5762 | FFLAGS= | ||
5763 | echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | ||
5764 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 | ||
5765 | if test "${ac_cv_prog_f77_g+set}" = set; then | ||
5766 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5767 | else | ||
5768 | FFLAGS=-g | ||
5769 | cat >conftest.$ac_ext <<_ACEOF | ||
5770 | program main | ||
5771 | |||
5772 | end | ||
5773 | _ACEOF | ||
5774 | rm -f conftest.$ac_objext | ||
5775 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5776 | (eval $ac_compile) 2>conftest.er1 | ||
5777 | ac_status=$? | ||
5778 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5779 | rm -f conftest.er1 | ||
5780 | cat conftest.err >&5 | ||
5781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5782 | (exit $ac_status); } && | ||
5783 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | ||
5784 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5785 | (eval $ac_try) 2>&5 | ||
5786 | ac_status=$? | ||
5787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5788 | (exit $ac_status); }; } && | ||
5789 | { ac_try='test -s conftest.$ac_objext' | ||
5790 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
5791 | (eval $ac_try) 2>&5 | ||
5792 | ac_status=$? | ||
5793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5794 | (exit $ac_status); }; }; then | ||
5795 | ac_cv_prog_f77_g=yes | ||
5796 | else | ||
5797 | echo "$as_me: failed program was:" >&5 | ||
5798 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5799 | |||
5800 | ac_cv_prog_f77_g=no | ||
5801 | fi | ||
5802 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5803 | |||
5804 | fi | ||
5805 | echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | ||
5806 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 | ||
5807 | if test "$ac_test_FFLAGS" = set; then | ||
5808 | FFLAGS=$ac_save_FFLAGS | ||
5809 | elif test $ac_cv_prog_f77_g = yes; then | ||
5810 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | ||
5811 | FFLAGS="-g -O2" | ||
5812 | else | ||
5813 | FFLAGS="-g" | ||
5814 | fi | ||
5815 | else | ||
5816 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | ||
5817 | FFLAGS="-O2" | ||
5818 | else | ||
5819 | FFLAGS= | ||
5820 | fi | ||
5821 | fi | ||
5822 | |||
5823 | G77=`test $ac_compiler_gnu = yes && echo yes` | ||
5824 | ac_ext=c | ||
5825 | ac_cpp='$CPP $CPPFLAGS' | ||
5826 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5827 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5828 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
5829 | |||
5830 | |||
5831 | |||
5832 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | ||
5833 | |||
5834 | # find the maximum length of command line arguments | ||
5835 | echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | ||
5836 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 | ||
5837 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | ||
5838 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5839 | else | ||
5840 | i=0 | ||
5841 | teststring="ABCD" | ||
5842 | |||
5843 | case $build_os in | ||
5844 | msdosdjgpp*) | ||
5845 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
5846 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
5847 | # during glob expansion). Even if it were fixed, the result of this | ||
5848 | # check would be larger than it should be. | ||
5849 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
5850 | ;; | ||
5851 | |||
5852 | gnu*) | ||
5853 | # Under GNU Hurd, this test is not required because there is | ||
5854 | # no limit to the length of command line arguments. | ||
5855 | # Libtool will interpret -1 as no limit whatsoever | ||
5856 | lt_cv_sys_max_cmd_len=-1; | ||
5857 | ;; | ||
5858 | |||
5859 | cygwin* | mingw*) | ||
5860 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
5861 | # about 5 minutes as the teststring grows exponentially. | ||
5862 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
5863 | # you end up with a "frozen" computer, even though with patience | ||
5864 | # the test eventually succeeds (with a max line length of 256k). | ||
5865 | # Instead, let's just punt: use the minimum linelength reported by | ||
5866 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
5867 | lt_cv_sys_max_cmd_len=8192; | ||
5868 | ;; | ||
5869 | |||
5870 | amigaos*) | ||
5871 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
5872 | # So we just punt and use a minimum line length of 8192. | ||
5873 | lt_cv_sys_max_cmd_len=8192; | ||
5874 | ;; | ||
5875 | |||
5876 | *) | ||
5877 | # If test is not a shell built-in, we'll probably end up computing a | ||
5878 | # maximum length that is only half of the actual maximum length, but | ||
5879 | # we can't tell. | ||
5880 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | ||
5881 | = "XX$teststring") >/dev/null 2>&1 && | ||
5882 | new_result=`expr "X$teststring" : ".*" 2>&1` && | ||
5883 | lt_cv_sys_max_cmd_len=$new_result && | ||
5884 | test $i != 17 # 1/2 MB should be enough | ||
5885 | do | ||
5886 | i=`expr $i + 1` | ||
5887 | teststring=$teststring$teststring | ||
5888 | done | ||
5889 | teststring= | ||
5890 | # Add a significant safety factor because C++ compilers can tack on massive | ||
5891 | # amounts of additional arguments before passing them to the linker. | ||
5892 | # It appears as though 1/2 is a usable value. | ||
5893 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
5894 | ;; | ||
5895 | esac | ||
5896 | |||
5897 | fi | ||
5898 | |||
5899 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
5900 | echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | ||
5901 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 | ||
5902 | else | ||
5903 | echo "$as_me:$LINENO: result: none" >&5 | ||
5904 | echo "${ECHO_T}none" >&6 | ||
5905 | fi | ||
5906 | |||
5907 | |||
5908 | |||
5909 | |||
5910 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
5911 | echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | ||
5912 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 | ||
5913 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | ||
5914 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5915 | else | ||
5916 | |||
5917 | # These are sane defaults that work on at least a few old systems. | ||
5918 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
5919 | |||
5920 | # Character class describing NM global symbol codes. | ||
5921 | symcode='[BCDEGRST]' | ||
5922 | |||
5923 | # Regexp to match symbols that can be accessed directly from C. | ||
5924 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | ||
5925 | |||
5926 | # Transform the above into a raw symbol and a C symbol. | ||
5927 | symxfrm='\1 \2\3 \3' | ||
5928 | |||
5929 | # Transform an extracted symbol line into a proper C declaration | ||
5930 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | ||
5931 | |||
5932 | # Transform an extracted symbol line into symbol name and symbol address | ||
5933 | 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'" | ||
5934 | |||
5935 | # Define system-specific variables. | ||
5936 | case $host_os in | ||
5937 | aix*) | ||
5938 | symcode='[BCDT]' | ||
5939 | ;; | ||
5940 | cygwin* | mingw* | pw32*) | ||
5941 | symcode='[ABCDGISTW]' | ||
5942 | ;; | ||
5943 | hpux*) # Its linker distinguishes data from code symbols | ||
5944 | if test "$host_cpu" = ia64; then | ||
5945 | symcode='[ABCDEGRST]' | ||
5946 | fi | ||
5947 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
5948 | 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'" | ||
5949 | ;; | ||
5950 | irix* | nonstopux*) | ||
5951 | symcode='[BCDEGRST]' | ||
5952 | ;; | ||
5953 | osf*) | ||
5954 | symcode='[BCDEGQRST]' | ||
5955 | ;; | ||
5956 | solaris* | sysv5*) | ||
5957 | symcode='[BDRT]' | ||
5958 | ;; | ||
5959 | sysv4) | ||
5960 | symcode='[DFNSTU]' | ||
5961 | ;; | ||
5962 | esac | ||
5963 | |||
5964 | # Handle CRLF in mingw tool chain | ||
5965 | opt_cr= | ||
5966 | case $build_os in | ||
5967 | mingw*) | ||
5968 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
5969 | ;; | ||
5970 | esac | ||
5971 | |||
5972 | # If we're using GNU nm, then use its standard symbol codes. | ||
5973 | case `$NM -V 2>&1` in | ||
5974 | *GNU* | *'with BFD'*) | ||
5975 | symcode='[ABCDGIRSTW]' ;; | ||
5976 | esac | ||
5977 | |||
5978 | # Try without a prefix undercore, then with it. | ||
5979 | for ac_symprfx in "" "_"; do | ||
5980 | |||
5981 | # Write the raw and C identifiers. | ||
5982 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | ||
5983 | |||
5984 | # Check to see that the pipe works correctly. | ||
5985 | pipe_works=no | ||
5986 | |||
5987 | rm -f conftest* | ||
5988 | cat > conftest.$ac_ext <<EOF | ||
5989 | #ifdef __cplusplus | ||
5990 | extern "C" { | ||
5991 | #endif | ||
5992 | char nm_test_var; | ||
5993 | void nm_test_func(){} | ||
5994 | #ifdef __cplusplus | ||
5995 | } | ||
5996 | #endif | ||
5997 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
5998 | EOF | ||
5999 | |||
6000 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6001 | (eval $ac_compile) 2>&5 | ||
6002 | ac_status=$? | ||
6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6004 | (exit $ac_status); }; then | ||
6005 | # Now try to grab the symbols. | ||
6006 | nlist=conftest.nm | ||
6007 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | ||
6008 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
6009 | ac_status=$? | ||
6010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6011 | (exit $ac_status); } && test -s "$nlist"; then | ||
6012 | # Try sorting and uniquifying the output. | ||
6013 | if sort "$nlist" | uniq > "$nlist"T; then | ||
6014 | mv -f "$nlist"T "$nlist" | ||
6015 | else | ||
6016 | rm -f "$nlist"T | ||
6017 | fi | ||
6018 | |||
6019 | # Make sure that we snagged all the symbols we need. | ||
6020 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | ||
6021 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | ||
6022 | cat <<EOF > conftest.$ac_ext | ||
6023 | #ifdef __cplusplus | ||
6024 | extern "C" { | ||
6025 | #endif | ||
6026 | |||
6027 | EOF | ||
6028 | # Now generate the symbol file. | ||
6029 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | ||
6030 | |||
6031 | cat <<EOF >> conftest.$ac_ext | ||
6032 | #if defined (__STDC__) && __STDC__ | ||
6033 | # define lt_ptr_t void * | ||
6034 | #else | ||
6035 | # define lt_ptr_t char * | ||
6036 | # define const | ||
6037 | #endif | ||
6038 | |||
6039 | /* The mapping between symbol names and symbols. */ | ||
6040 | const struct { | ||
6041 | const char *name; | ||
6042 | lt_ptr_t address; | ||
6043 | } | ||
6044 | lt_preloaded_symbols[] = | ||
6045 | { | ||
6046 | EOF | ||
6047 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | ||
6048 | cat <<\EOF >> conftest.$ac_ext | ||
6049 | {0, (lt_ptr_t) 0} | ||
6050 | }; | ||
6051 | |||
6052 | #ifdef __cplusplus | ||
6053 | } | ||
6054 | #endif | ||
6055 | EOF | ||
6056 | # Now try linking the two files. | ||
6057 | mv conftest.$ac_objext conftstm.$ac_objext | ||
6058 | lt_save_LIBS="$LIBS" | ||
6059 | lt_save_CFLAGS="$CFLAGS" | ||
6060 | LIBS="conftstm.$ac_objext" | ||
6061 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
6062 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6063 | (eval $ac_link) 2>&5 | ||
6064 | ac_status=$? | ||
6065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6066 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | ||
6067 | pipe_works=yes | ||
6068 | fi | ||
6069 | LIBS="$lt_save_LIBS" | ||
6070 | CFLAGS="$lt_save_CFLAGS" | ||
6071 | else | ||
6072 | echo "cannot find nm_test_func in $nlist" >&5 | ||
6073 | fi | ||
6074 | else | ||
6075 | echo "cannot find nm_test_var in $nlist" >&5 | ||
6076 | fi | ||
6077 | else | ||
6078 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | ||
6079 | fi | ||
6080 | else | ||
6081 | echo "$progname: failed program was:" >&5 | ||
6082 | cat conftest.$ac_ext >&5 | ||
6083 | fi | ||
6084 | rm -f conftest* conftst* | ||
6085 | |||
6086 | # Do not use the global_symbol_pipe unless it works. | ||
6087 | if test "$pipe_works" = yes; then | ||
6088 | break | ||
6089 | else | ||
6090 | lt_cv_sys_global_symbol_pipe= | ||
6091 | fi | ||
6092 | done | ||
6093 | |||
6094 | fi | ||
6095 | |||
6096 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
6097 | lt_cv_sys_global_symbol_to_cdecl= | ||
6098 | fi | ||
6099 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
6100 | echo "$as_me:$LINENO: result: failed" >&5 | ||
6101 | echo "${ECHO_T}failed" >&6 | ||
6102 | else | ||
6103 | echo "$as_me:$LINENO: result: ok" >&5 | ||
6104 | echo "${ECHO_T}ok" >&6 | ||
6105 | fi | ||
6106 | |||
6107 | echo "$as_me:$LINENO: checking for objdir" >&5 | ||
6108 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | ||
6109 | if test "${lt_cv_objdir+set}" = set; then | ||
6110 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6111 | else | ||
6112 | rm -f .libs 2>/dev/null | ||
6113 | mkdir .libs 2>/dev/null | ||
6114 | if test -d .libs; then | ||
6115 | lt_cv_objdir=.libs | ||
6116 | else | ||
6117 | # MS-DOS does not allow filenames that begin with a dot. | ||
6118 | lt_cv_objdir=_libs | ||
6119 | fi | ||
6120 | rmdir .libs 2>/dev/null | ||
6121 | fi | ||
6122 | echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | ||
6123 | echo "${ECHO_T}$lt_cv_objdir" >&6 | ||
6124 | objdir=$lt_cv_objdir | ||
6125 | |||
6126 | |||
6127 | |||
6128 | |||
6129 | |||
6130 | case $host_os in | ||
6131 | aix3*) | ||
6132 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
6133 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
6134 | # vanish in a puff of smoke. | ||
6135 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
6136 | COLLECT_NAMES= | ||
6137 | export COLLECT_NAMES | ||
6138 | fi | ||
6139 | ;; | ||
6140 | esac | ||
6141 | |||
6142 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
6143 | # metacharacters that are still active within double-quoted strings. | ||
6144 | Xsed='sed -e s/^X//' | ||
6145 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | ||
6146 | |||
6147 | # Same as above, but do not quote variable references. | ||
6148 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | ||
6149 | |||
6150 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
6151 | # double_quote_subst'ed string. | ||
6152 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
6153 | |||
6154 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
6155 | no_glob_subst='s/\*/\\\*/g' | ||
6156 | |||
6157 | # Constants: | ||
6158 | rm="rm -f" | ||
6159 | |||
6160 | # Global variables: | ||
6161 | default_ofile=libtool | ||
6162 | can_build_shared=yes | ||
6163 | |||
6164 | # All known linkers require a `.a' archive for static linking (except M$VC, | ||
6165 | # which needs '.lib'). | ||
6166 | libext=a | ||
6167 | ltmain="$ac_aux_dir/ltmain.sh" | ||
6168 | ofile="$default_ofile" | ||
6169 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
6170 | |||
6171 | if test -n "$ac_tool_prefix"; then | ||
6172 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
6173 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
6174 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6175 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
6176 | if test "${ac_cv_prog_AR+set}" = set; then | ||
6177 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6178 | else | ||
6179 | if test -n "$AR"; then | ||
6180 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
6181 | else | ||
6182 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6183 | for as_dir in $PATH | ||
6184 | do | ||
6185 | IFS=$as_save_IFS | ||
6186 | test -z "$as_dir" && as_dir=. | ||
6187 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6188 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
6189 | ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
6190 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6191 | break 2 | ||
6192 | fi | ||
6193 | done | ||
6194 | done | ||
6195 | |||
6196 | fi | ||
6197 | fi | ||
6198 | AR=$ac_cv_prog_AR | ||
6199 | if test -n "$AR"; then | ||
6200 | echo "$as_me:$LINENO: result: $AR" >&5 | ||
6201 | echo "${ECHO_T}$AR" >&6 | ||
6202 | else | ||
6203 | echo "$as_me:$LINENO: result: no" >&5 | ||
6204 | echo "${ECHO_T}no" >&6 | ||
6205 | fi | ||
6206 | |||
6207 | fi | ||
6208 | if test -z "$ac_cv_prog_AR"; then | ||
6209 | ac_ct_AR=$AR | ||
6210 | # Extract the first word of "ar", so it can be a program name with args. | ||
6211 | set dummy ar; ac_word=$2 | ||
6212 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6213 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
6214 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | ||
6215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6216 | else | ||
6217 | if test -n "$ac_ct_AR"; then | ||
6218 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
6219 | else | ||
6220 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6221 | for as_dir in $PATH | ||
6222 | do | ||
6223 | IFS=$as_save_IFS | ||
6224 | test -z "$as_dir" && as_dir=. | ||
6225 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6226 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
6227 | ac_cv_prog_ac_ct_AR="ar" | ||
6228 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6229 | break 2 | ||
6230 | fi | ||
6231 | done | ||
6232 | done | ||
6233 | |||
6234 | test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" | ||
6235 | fi | ||
6236 | fi | ||
6237 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
6238 | if test -n "$ac_ct_AR"; then | ||
6239 | echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | ||
6240 | echo "${ECHO_T}$ac_ct_AR" >&6 | ||
6241 | else | ||
6242 | echo "$as_me:$LINENO: result: no" >&5 | ||
6243 | echo "${ECHO_T}no" >&6 | ||
6244 | fi | ||
6245 | |||
6246 | AR=$ac_ct_AR | ||
6247 | else | ||
6248 | AR="$ac_cv_prog_AR" | ||
6249 | fi | ||
6250 | |||
6251 | if test -n "$ac_tool_prefix"; then | ||
6252 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
6253 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
6254 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6255 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
6256 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
6257 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6258 | else | ||
6259 | if test -n "$RANLIB"; then | ||
6260 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
6261 | else | ||
6262 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6263 | for as_dir in $PATH | ||
6264 | do | ||
6265 | IFS=$as_save_IFS | ||
6266 | test -z "$as_dir" && as_dir=. | ||
6267 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6268 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
6269 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
6270 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6271 | break 2 | ||
6272 | fi | ||
6273 | done | ||
6274 | done | ||
6275 | |||
6276 | fi | ||
6277 | fi | ||
6278 | RANLIB=$ac_cv_prog_RANLIB | ||
6279 | if test -n "$RANLIB"; then | ||
6280 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
6281 | echo "${ECHO_T}$RANLIB" >&6 | ||
6282 | else | ||
6283 | echo "$as_me:$LINENO: result: no" >&5 | ||
6284 | echo "${ECHO_T}no" >&6 | ||
6285 | fi | ||
6286 | |||
6287 | fi | ||
6288 | if test -z "$ac_cv_prog_RANLIB"; then | ||
6289 | ac_ct_RANLIB=$RANLIB | ||
6290 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
6291 | set dummy ranlib; ac_word=$2 | ||
6292 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6293 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
6294 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
6295 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6296 | else | ||
6297 | if test -n "$ac_ct_RANLIB"; then | ||
6298 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
6299 | else | ||
6300 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6301 | for as_dir in $PATH | ||
6302 | do | ||
6303 | IFS=$as_save_IFS | ||
6304 | test -z "$as_dir" && as_dir=. | ||
6305 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6306 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
6307 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
6308 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6309 | break 2 | ||
6310 | fi | ||
6311 | done | ||
6312 | done | ||
6313 | |||
6314 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | ||
6315 | fi | ||
6316 | fi | ||
6317 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
6318 | if test -n "$ac_ct_RANLIB"; then | ||
6319 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
6320 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | ||
6321 | else | ||
6322 | echo "$as_me:$LINENO: result: no" >&5 | ||
6323 | echo "${ECHO_T}no" >&6 | ||
6324 | fi | ||
6325 | |||
6326 | RANLIB=$ac_ct_RANLIB | ||
6327 | else | ||
6328 | RANLIB="$ac_cv_prog_RANLIB" | ||
6329 | fi | ||
6330 | |||
6331 | if test -n "$ac_tool_prefix"; then | ||
6332 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
6333 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
6334 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6335 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
6336 | if test "${ac_cv_prog_STRIP+set}" = set; then | ||
6337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6338 | else | ||
6339 | if test -n "$STRIP"; then | ||
6340 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
6341 | else | ||
6342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6343 | for as_dir in $PATH | ||
6344 | do | ||
6345 | IFS=$as_save_IFS | ||
6346 | test -z "$as_dir" && as_dir=. | ||
6347 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6348 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
6349 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
6350 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6351 | break 2 | ||
6352 | fi | ||
6353 | done | ||
6354 | done | ||
6355 | |||
6356 | fi | ||
6357 | fi | ||
6358 | STRIP=$ac_cv_prog_STRIP | ||
6359 | if test -n "$STRIP"; then | ||
6360 | echo "$as_me:$LINENO: result: $STRIP" >&5 | ||
6361 | echo "${ECHO_T}$STRIP" >&6 | ||
6362 | else | ||
6363 | echo "$as_me:$LINENO: result: no" >&5 | ||
6364 | echo "${ECHO_T}no" >&6 | ||
6365 | fi | ||
6366 | |||
6367 | fi | ||
6368 | if test -z "$ac_cv_prog_STRIP"; then | ||
6369 | ac_ct_STRIP=$STRIP | ||
6370 | # Extract the first word of "strip", so it can be a program name with args. | ||
6371 | set dummy strip; ac_word=$2 | ||
6372 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | ||
6374 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | ||
6375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6376 | else | ||
6377 | if test -n "$ac_ct_STRIP"; then | ||
6378 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
6379 | else | ||
6380 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6381 | for as_dir in $PATH | ||
6382 | do | ||
6383 | IFS=$as_save_IFS | ||
6384 | test -z "$as_dir" && as_dir=. | ||
6385 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6386 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
6387 | ac_cv_prog_ac_ct_STRIP="strip" | ||
6388 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6389 | break 2 | ||
6390 | fi | ||
6391 | done | ||
6392 | done | ||
6393 | |||
6394 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | ||
6395 | fi | ||
6396 | fi | ||
6397 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
6398 | if test -n "$ac_ct_STRIP"; then | ||
6399 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | ||
6400 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | ||
6401 | else | ||
6402 | echo "$as_me:$LINENO: result: no" >&5 | ||
6403 | echo "${ECHO_T}no" >&6 | ||
6404 | fi | ||
6405 | |||
6406 | STRIP=$ac_ct_STRIP | ||
6407 | else | ||
6408 | STRIP="$ac_cv_prog_STRIP" | ||
6409 | fi | ||
6410 | |||
6411 | |||
6412 | old_CC="$CC" | ||
6413 | old_CFLAGS="$CFLAGS" | ||
6414 | |||
6415 | # Set sane defaults for various variables | ||
6416 | test -z "$AR" && AR=ar | ||
6417 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
6418 | test -z "$AS" && AS=as | ||
6419 | test -z "$CC" && CC=cc | ||
6420 | test -z "$LTCC" && LTCC=$CC | ||
6421 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
6422 | test -z "$LD" && LD=ld | ||
6423 | test -z "$LN_S" && LN_S="ln -s" | ||
6424 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
6425 | test -z "$NM" && NM=nm | ||
6426 | test -z "$SED" && SED=sed | ||
6427 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
6428 | test -z "$RANLIB" && RANLIB=: | ||
6429 | test -z "$STRIP" && STRIP=: | ||
6430 | test -z "$ac_objext" && ac_objext=o | ||
6431 | |||
6432 | # Determine commands to create old-style static archives. | ||
6433 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | ||
6434 | old_postinstall_cmds='chmod 644 $oldlib' | ||
6435 | old_postuninstall_cmds= | ||
6436 | |||
6437 | if test -n "$RANLIB"; then | ||
6438 | case $host_os in | ||
6439 | openbsd*) | ||
6440 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | ||
6441 | ;; | ||
6442 | *) | ||
6443 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | ||
6444 | ;; | ||
6445 | esac | ||
6446 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
6447 | fi | ||
6448 | |||
6449 | # Only perform the check for file, if the check method requires it | ||
6450 | case $deplibs_check_method in | ||
6451 | file_magic*) | ||
6452 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
6453 | echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | ||
6454 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 | ||
6455 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | ||
6456 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6457 | else | ||
6458 | case $MAGIC_CMD in | ||
6459 | [\\/*] | ?:[\\/]*) | ||
6460 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
6461 | ;; | ||
6462 | *) | ||
6463 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
6464 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
6465 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
6466 | for ac_dir in $ac_dummy; do | ||
6467 | IFS="$lt_save_ifs" | ||
6468 | test -z "$ac_dir" && ac_dir=. | ||
6469 | if test -f $ac_dir/${ac_tool_prefix}file; then | ||
6470 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | ||
6471 | if test -n "$file_magic_test_file"; then | ||
6472 | case $deplibs_check_method in | ||
6473 | "file_magic "*) | ||
6474 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | ||
6475 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
6476 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
6477 | $EGREP "$file_magic_regex" > /dev/null; then | ||
6478 | : | ||
6479 | else | ||
6480 | cat <<EOF 1>&2 | ||
6481 | |||
6482 | *** Warning: the command libtool uses to detect shared libraries, | ||
6483 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
6484 | *** The result is that libtool may fail to recognize shared libraries | ||
6485 | *** as such. This will affect the creation of libtool libraries that | ||
6486 | *** depend on shared libraries, but programs linked with such libtool | ||
6487 | *** libraries will work regardless of this problem. Nevertheless, you | ||
6488 | *** may want to report the problem to your system manager and/or to | ||
6489 | *** bug-libtool@gnu.org | ||
6490 | |||
6491 | EOF | ||
6492 | fi ;; | ||
6493 | esac | ||
6494 | fi | ||
6495 | break | ||
6496 | fi | ||
6497 | done | ||
6498 | IFS="$lt_save_ifs" | ||
6499 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
6500 | ;; | ||
6501 | esac | ||
6502 | fi | ||
6503 | |||
6504 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
6505 | if test -n "$MAGIC_CMD"; then | ||
6506 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | ||
6507 | echo "${ECHO_T}$MAGIC_CMD" >&6 | ||
6508 | else | ||
6509 | echo "$as_me:$LINENO: result: no" >&5 | ||
6510 | echo "${ECHO_T}no" >&6 | ||
6511 | fi | ||
6512 | |||
6513 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
6514 | if test -n "$ac_tool_prefix"; then | ||
6515 | echo "$as_me:$LINENO: checking for file" >&5 | ||
6516 | echo $ECHO_N "checking for file... $ECHO_C" >&6 | ||
6517 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | ||
6518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6519 | else | ||
6520 | case $MAGIC_CMD in | ||
6521 | [\\/*] | ?:[\\/]*) | ||
6522 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
6523 | ;; | ||
6524 | *) | ||
6525 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
6526 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
6527 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
6528 | for ac_dir in $ac_dummy; do | ||
6529 | IFS="$lt_save_ifs" | ||
6530 | test -z "$ac_dir" && ac_dir=. | ||
6531 | if test -f $ac_dir/file; then | ||
6532 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | ||
6533 | if test -n "$file_magic_test_file"; then | ||
6534 | case $deplibs_check_method in | ||
6535 | "file_magic "*) | ||
6536 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | ||
6537 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
6538 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
6539 | $EGREP "$file_magic_regex" > /dev/null; then | ||
6540 | : | ||
6541 | else | ||
6542 | cat <<EOF 1>&2 | ||
6543 | |||
6544 | *** Warning: the command libtool uses to detect shared libraries, | ||
6545 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
6546 | *** The result is that libtool may fail to recognize shared libraries | ||
6547 | *** as such. This will affect the creation of libtool libraries that | ||
6548 | *** depend on shared libraries, but programs linked with such libtool | ||
6549 | *** libraries will work regardless of this problem. Nevertheless, you | ||
6550 | *** may want to report the problem to your system manager and/or to | ||
6551 | *** bug-libtool@gnu.org | ||
6552 | |||
6553 | EOF | ||
6554 | fi ;; | ||
6555 | esac | ||
6556 | fi | ||
6557 | break | ||
6558 | fi | ||
6559 | done | ||
6560 | IFS="$lt_save_ifs" | ||
6561 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
6562 | ;; | ||
6563 | esac | ||
6564 | fi | ||
6565 | |||
6566 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
6567 | if test -n "$MAGIC_CMD"; then | ||
6568 | echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | ||
6569 | echo "${ECHO_T}$MAGIC_CMD" >&6 | ||
6570 | else | ||
6571 | echo "$as_me:$LINENO: result: no" >&5 | ||
6572 | echo "${ECHO_T}no" >&6 | ||
6573 | fi | ||
6574 | |||
6575 | else | ||
6576 | MAGIC_CMD=: | ||
6577 | fi | ||
6578 | fi | ||
6579 | |||
6580 | fi | ||
6581 | ;; | ||
6582 | esac | ||
6583 | |||
6584 | enable_dlopen=no | ||
6585 | enable_win32_dll=yes | ||
6586 | |||
6587 | # Check whether --enable-libtool-lock or --disable-libtool-lock was given. | ||
6588 | if test "${enable_libtool_lock+set}" = set; then | ||
6589 | enableval="$enable_libtool_lock" | ||
6590 | |||
6591 | fi; | ||
6592 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
6593 | |||
6594 | |||
6595 | # Check whether --with-pic or --without-pic was given. | ||
6596 | if test "${with_pic+set}" = set; then | ||
6597 | withval="$with_pic" | ||
6598 | pic_mode="$withval" | ||
6599 | else | ||
6600 | pic_mode=default | ||
6601 | fi; | ||
6602 | test -z "$pic_mode" && pic_mode=default | ||
6603 | |||
6604 | # Use C for the default configuration in the libtool script | ||
6605 | tagname= | ||
6606 | lt_save_CC="$CC" | ||
6607 | ac_ext=c | ||
6608 | ac_cpp='$CPP $CPPFLAGS' | ||
6609 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6610 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6611 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
6612 | |||
6613 | |||
6614 | # Source file extension for C test sources. | ||
6615 | ac_ext=c | ||
6616 | |||
6617 | # Object file extension for compiled C test sources. | ||
6618 | objext=o | ||
6619 | objext=$objext | ||
6620 | |||
6621 | # Code to be used in simple compile tests | ||
6622 | lt_simple_compile_test_code="int some_variable = 0;\n" | ||
6623 | |||
6624 | # Code to be used in simple link tests | ||
6625 | lt_simple_link_test_code='int main(){return(0);}\n' | ||
6626 | |||
6627 | |||
6628 | # If no C compiler was specified, use CC. | ||
6629 | LTCC=${LTCC-"$CC"} | ||
6630 | |||
6631 | # Allow CC to be a program name with arguments. | ||
6632 | compiler=$CC | ||
6633 | |||
6634 | |||
6635 | # | ||
6636 | # Check for any special shared library compilation flags. | ||
6637 | # | ||
6638 | lt_prog_cc_shlib= | ||
6639 | if test "$GCC" = no; then | ||
6640 | case $host_os in | ||
6641 | sco3.2v5*) | ||
6642 | lt_prog_cc_shlib='-belf' | ||
6643 | ;; | ||
6644 | esac | ||
6645 | fi | ||
6646 | if test -n "$lt_prog_cc_shlib"; then | ||
6647 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | ||
6648 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | ||
6649 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : | ||
6650 | else | ||
6651 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | ||
6652 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | ||
6653 | lt_cv_prog_cc_can_build_shared=no | ||
6654 | fi | ||
6655 | fi | ||
6656 | |||
6657 | |||
6658 | # | ||
6659 | # Check to make sure the static flag actually works. | ||
6660 | # | ||
6661 | echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | ||
6662 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 | ||
6663 | if test "${lt_prog_compiler_static_works+set}" = set; then | ||
6664 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6665 | else | ||
6666 | lt_prog_compiler_static_works=no | ||
6667 | save_LDFLAGS="$LDFLAGS" | ||
6668 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | ||
6669 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | ||
6670 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
6671 | # The compiler can only warn and ignore the option if not recognized | ||
6672 | # So say no if there are warnings | ||
6673 | if test -s conftest.err; then | ||
6674 | # Append any errors to the config.log. | ||
6675 | cat conftest.err 1>&5 | ||
6676 | else | ||
6677 | lt_prog_compiler_static_works=yes | ||
6678 | fi | ||
6679 | fi | ||
6680 | $rm conftest* | ||
6681 | LDFLAGS="$save_LDFLAGS" | ||
6682 | |||
6683 | fi | ||
6684 | echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | ||
6685 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 | ||
6686 | |||
6687 | if test x"$lt_prog_compiler_static_works" = xyes; then | ||
6688 | : | ||
6689 | else | ||
6690 | lt_prog_compiler_static= | ||
6691 | fi | ||
6692 | |||
6693 | |||
6694 | |||
6695 | |||
6696 | lt_prog_compiler_no_builtin_flag= | ||
6697 | |||
6698 | if test "$GCC" = yes; then | ||
6699 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
6700 | |||
6701 | |||
6702 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
6703 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | ||
6704 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | ||
6705 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6706 | else | ||
6707 | lt_cv_prog_compiler_rtti_exceptions=no | ||
6708 | ac_outfile=conftest.$ac_objext | ||
6709 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
6710 | lt_compiler_flag="-fno-rtti -fno-exceptions" | ||
6711 | # Insert the option either (1) after the last *FLAGS variable, or | ||
6712 | # (2) before a word containing "conftest.", or (3) at the end. | ||
6713 | # Note that $ac_compile itself does not contain backslashes and begins | ||
6714 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
6715 | # The option is referenced via a variable to avoid confusing sed. | ||
6716 | lt_compile=`echo "$ac_compile" | $SED \ | ||
6717 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
6718 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
6719 | -e 's:$: $lt_compiler_flag:'` | ||
6720 | (eval echo "\"\$as_me:6720: $lt_compile\"" >&5) | ||
6721 | (eval "$lt_compile" 2>conftest.err) | ||
6722 | ac_status=$? | ||
6723 | cat conftest.err >&5 | ||
6724 | echo "$as_me:6724: \$? = $ac_status" >&5 | ||
6725 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
6726 | # The compiler can only warn and ignore the option if not recognized | ||
6727 | # So say no if there are warnings | ||
6728 | if test ! -s conftest.err; then | ||
6729 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
6730 | fi | ||
6731 | fi | ||
6732 | $rm conftest* | ||
6733 | |||
6734 | fi | ||
6735 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | ||
6736 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | ||
6737 | |||
6738 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | ||
6739 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | ||
6740 | else | ||
6741 | : | ||
6742 | fi | ||
6743 | |||
6744 | fi | ||
6745 | |||
6746 | lt_prog_compiler_wl= | ||
6747 | lt_prog_compiler_pic= | ||
6748 | lt_prog_compiler_static= | ||
6749 | |||
6750 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | ||
6751 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | ||
6752 | |||
6753 | if test "$GCC" = yes; then | ||
6754 | lt_prog_compiler_wl='-Wl,' | ||
6755 | lt_prog_compiler_static='-static' | ||
6756 | |||
6757 | case $host_os in | ||
6758 | aix*) | ||
6759 | # All AIX code is PIC. | ||
6760 | if test "$host_cpu" = ia64; then | ||
6761 | # AIX 5 now supports IA64 processor | ||
6762 | lt_prog_compiler_static='-Bstatic' | ||
6763 | fi | ||
6764 | ;; | ||
6765 | |||
6766 | amigaos*) | ||
6767 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
6768 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
6769 | # like `-m68040'. | ||
6770 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | ||
6771 | ;; | ||
6772 | |||
6773 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
6774 | # PIC is the default for these OSes. | ||
6775 | ;; | ||
6776 | |||
6777 | mingw* | pw32* | os2*) | ||
6778 | # This hack is so that the source file can tell whether it is being | ||
6779 | # built for inclusion in a dll (and should export symbols for example). | ||
6780 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
6781 | ;; | ||
6782 | |||
6783 | darwin* | rhapsody*) | ||
6784 | # PIC is the default on this platform | ||
6785 | # Common symbols not allowed in MH_DYLIB files | ||
6786 | lt_prog_compiler_pic='-fno-common' | ||
6787 | ;; | ||
6788 | |||
6789 | msdosdjgpp*) | ||
6790 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
6791 | # on systems that don't support them. | ||
6792 | lt_prog_compiler_can_build_shared=no | ||
6793 | enable_shared=no | ||
6794 | ;; | ||
6795 | |||
6796 | sysv4*MP*) | ||
6797 | if test -d /usr/nec; then | ||
6798 | lt_prog_compiler_pic=-Kconform_pic | ||
6799 | fi | ||
6800 | ;; | ||
6801 | |||
6802 | hpux*) | ||
6803 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
6804 | # not for PA HP-UX. | ||
6805 | case "$host_cpu" in | ||
6806 | hppa*64*|ia64*) | ||
6807 | # +Z the default | ||
6808 | ;; | ||
6809 | *) | ||
6810 | lt_prog_compiler_pic='-fPIC' | ||
6811 | ;; | ||
6812 | esac | ||
6813 | ;; | ||
6814 | |||
6815 | *) | ||
6816 | lt_prog_compiler_pic='-fPIC' | ||
6817 | ;; | ||
6818 | esac | ||
6819 | else | ||
6820 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
6821 | case $host_os in | ||
6822 | aix*) | ||
6823 | lt_prog_compiler_wl='-Wl,' | ||
6824 | if test "$host_cpu" = ia64; then | ||
6825 | # AIX 5 now supports IA64 processor | ||
6826 | lt_prog_compiler_static='-Bstatic' | ||
6827 | else | ||
6828 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | ||
6829 | fi | ||
6830 | ;; | ||
6831 | |||
6832 | mingw* | pw32* | os2*) | ||
6833 | # This hack is so that the source file can tell whether it is being | ||
6834 | # built for inclusion in a dll (and should export symbols for example). | ||
6835 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
6836 | ;; | ||
6837 | |||
6838 | hpux9* | hpux10* | hpux11*) | ||
6839 | lt_prog_compiler_wl='-Wl,' | ||
6840 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
6841 | # not for PA HP-UX. | ||
6842 | case "$host_cpu" in | ||
6843 | hppa*64*|ia64*) | ||
6844 | # +Z the default | ||
6845 | ;; | ||
6846 | *) | ||
6847 | lt_prog_compiler_pic='+Z' | ||
6848 | ;; | ||
6849 | esac | ||
6850 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
6851 | lt_prog_compiler_static='${wl}-a ${wl}archive' | ||
6852 | ;; | ||
6853 | |||
6854 | irix5* | irix6* | nonstopux*) | ||
6855 | lt_prog_compiler_wl='-Wl,' | ||
6856 | # PIC (with -KPIC) is the default. | ||
6857 | lt_prog_compiler_static='-non_shared' | ||
6858 | ;; | ||
6859 | |||
6860 | newsos6) | ||
6861 | lt_prog_compiler_pic='-KPIC' | ||
6862 | lt_prog_compiler_static='-Bstatic' | ||
6863 | ;; | ||
6864 | |||
6865 | linux*) | ||
6866 | case $CC in | ||
6867 | icc* | ecc*) | ||
6868 | lt_prog_compiler_wl='-Wl,' | ||
6869 | lt_prog_compiler_pic='-KPIC' | ||
6870 | lt_prog_compiler_static='-static' | ||
6871 | ;; | ||
6872 | ccc*) | ||
6873 | lt_prog_compiler_wl='-Wl,' | ||
6874 | # All Alpha code is PIC. | ||
6875 | lt_prog_compiler_static='-non_shared' | ||
6876 | ;; | ||
6877 | esac | ||
6878 | ;; | ||
6879 | |||
6880 | osf3* | osf4* | osf5*) | ||
6881 | lt_prog_compiler_wl='-Wl,' | ||
6882 | # All OSF/1 code is PIC. | ||
6883 | lt_prog_compiler_static='-non_shared' | ||
6884 | ;; | ||
6885 | |||
6886 | sco3.2v5*) | ||
6887 | lt_prog_compiler_pic='-Kpic' | ||
6888 | lt_prog_compiler_static='-dn' | ||
6889 | ;; | ||
6890 | |||
6891 | solaris*) | ||
6892 | lt_prog_compiler_wl='-Wl,' | ||
6893 | lt_prog_compiler_pic='-KPIC' | ||
6894 | lt_prog_compiler_static='-Bstatic' | ||
6895 | ;; | ||
6896 | |||
6897 | sunos4*) | ||
6898 | lt_prog_compiler_wl='-Qoption ld ' | ||
6899 | lt_prog_compiler_pic='-PIC' | ||
6900 | lt_prog_compiler_static='-Bstatic' | ||
6901 | ;; | ||
6902 | |||
6903 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
6904 | lt_prog_compiler_wl='-Wl,' | ||
6905 | lt_prog_compiler_pic='-KPIC' | ||
6906 | lt_prog_compiler_static='-Bstatic' | ||
6907 | ;; | ||
6908 | |||
6909 | sysv4*MP*) | ||
6910 | if test -d /usr/nec ;then | ||
6911 | lt_prog_compiler_pic='-Kconform_pic' | ||
6912 | lt_prog_compiler_static='-Bstatic' | ||
6913 | fi | ||
6914 | ;; | ||
6915 | |||
6916 | uts4*) | ||
6917 | lt_prog_compiler_pic='-pic' | ||
6918 | lt_prog_compiler_static='-Bstatic' | ||
6919 | ;; | ||
6920 | |||
6921 | *) | ||
6922 | lt_prog_compiler_can_build_shared=no | ||
6923 | ;; | ||
6924 | esac | ||
6925 | fi | ||
6926 | |||
6927 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | ||
6928 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6 | ||
6929 | |||
6930 | # | ||
6931 | # Check to make sure the PIC flag actually works. | ||
6932 | # | ||
6933 | if test -n "$lt_prog_compiler_pic"; then | ||
6934 | |||
6935 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | ||
6936 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 | ||
6937 | if test "${lt_prog_compiler_pic_works+set}" = set; then | ||
6938 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6939 | else | ||
6940 | lt_prog_compiler_pic_works=no | ||
6941 | ac_outfile=conftest.$ac_objext | ||
6942 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
6943 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | ||
6944 | # Insert the option either (1) after the last *FLAGS variable, or | ||
6945 | # (2) before a word containing "conftest.", or (3) at the end. | ||
6946 | # Note that $ac_compile itself does not contain backslashes and begins | ||
6947 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
6948 | # The option is referenced via a variable to avoid confusing sed. | ||
6949 | lt_compile=`echo "$ac_compile" | $SED \ | ||
6950 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
6951 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
6952 | -e 's:$: $lt_compiler_flag:'` | ||
6953 | (eval echo "\"\$as_me:6953: $lt_compile\"" >&5) | ||
6954 | (eval "$lt_compile" 2>conftest.err) | ||
6955 | ac_status=$? | ||
6956 | cat conftest.err >&5 | ||
6957 | echo "$as_me:6957: \$? = $ac_status" >&5 | ||
6958 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
6959 | # The compiler can only warn and ignore the option if not recognized | ||
6960 | # So say no if there are warnings | ||
6961 | if test ! -s conftest.err; then | ||
6962 | lt_prog_compiler_pic_works=yes | ||
6963 | fi | ||
6964 | fi | ||
6965 | $rm conftest* | ||
6966 | |||
6967 | fi | ||
6968 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | ||
6969 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 | ||
6970 | |||
6971 | if test x"$lt_prog_compiler_pic_works" = xyes; then | ||
6972 | case $lt_prog_compiler_pic in | ||
6973 | "" | " "*) ;; | ||
6974 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | ||
6975 | esac | ||
6976 | else | ||
6977 | lt_prog_compiler_pic= | ||
6978 | lt_prog_compiler_can_build_shared=no | ||
6979 | fi | ||
6980 | |||
6981 | fi | ||
6982 | case "$host_os" in | ||
6983 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
6984 | *djgpp*) | ||
6985 | lt_prog_compiler_pic= | ||
6986 | ;; | ||
6987 | *) | ||
6988 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
6989 | ;; | ||
6990 | esac | ||
6991 | |||
6992 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
6993 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | ||
6994 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | ||
6995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6996 | else | ||
6997 | lt_cv_prog_compiler_c_o=no | ||
6998 | $rm -r conftest 2>/dev/null | ||
6999 | mkdir conftest | ||
7000 | cd conftest | ||
7001 | mkdir out | ||
7002 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
7003 | |||
7004 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
7005 | # Insert the option either (1) after the last *FLAGS variable, or | ||
7006 | # (2) before a word containing "conftest.", or (3) at the end. | ||
7007 | # Note that $ac_compile itself does not contain backslashes and begins | ||
7008 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
7009 | lt_compile=`echo "$ac_compile" | $SED \ | ||
7010 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
7011 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
7012 | -e 's:$: $lt_compiler_flag:'` | ||
7013 | (eval echo "\"\$as_me:7013: $lt_compile\"" >&5) | ||
7014 | (eval "$lt_compile" 2>out/conftest.err) | ||
7015 | ac_status=$? | ||
7016 | cat out/conftest.err >&5 | ||
7017 | echo "$as_me:7017: \$? = $ac_status" >&5 | ||
7018 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
7019 | then | ||
7020 | # The compiler can only warn and ignore the option if not recognized | ||
7021 | # So say no if there are warnings | ||
7022 | if test ! -s out/conftest.err; then | ||
7023 | lt_cv_prog_compiler_c_o=yes | ||
7024 | fi | ||
7025 | fi | ||
7026 | chmod u+w . | ||
7027 | $rm conftest* | ||
7028 | # SGI C++ compiler will create directory out/ii_files/ for | ||
7029 | # template instantiation | ||
7030 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | ||
7031 | $rm out/* && rmdir out | ||
7032 | cd .. | ||
7033 | rmdir conftest | ||
7034 | $rm conftest* | ||
7035 | |||
7036 | fi | ||
7037 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | ||
7038 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 | ||
7039 | |||
7040 | |||
7041 | hard_links="nottested" | ||
7042 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | ||
7043 | # do not overwrite the value of need_locks provided by the user | ||
7044 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | ||
7045 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | ||
7046 | hard_links=yes | ||
7047 | $rm conftest* | ||
7048 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
7049 | touch conftest.a | ||
7050 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
7051 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
7052 | echo "$as_me:$LINENO: result: $hard_links" >&5 | ||
7053 | echo "${ECHO_T}$hard_links" >&6 | ||
7054 | if test "$hard_links" = no; then | ||
7055 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
7056 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
7057 | need_locks=warn | ||
7058 | fi | ||
7059 | else | ||
7060 | need_locks=no | ||
7061 | fi | ||
7062 | |||
7063 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
7064 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | ||
7065 | |||
7066 | runpath_var= | ||
7067 | allow_undefined_flag= | ||
7068 | enable_shared_with_static_runtimes=no | ||
7069 | archive_cmds= | ||
7070 | archive_expsym_cmds= | ||
7071 | old_archive_From_new_cmds= | ||
7072 | old_archive_from_expsyms_cmds= | ||
7073 | export_dynamic_flag_spec= | ||
7074 | whole_archive_flag_spec= | ||
7075 | thread_safe_flag_spec= | ||
7076 | hardcode_libdir_flag_spec= | ||
7077 | hardcode_libdir_flag_spec_ld= | ||
7078 | hardcode_libdir_separator= | ||
7079 | hardcode_direct=no | ||
7080 | hardcode_minus_L=no | ||
7081 | hardcode_shlibpath_var=unsupported | ||
7082 | link_all_deplibs=unknown | ||
7083 | hardcode_automatic=no | ||
7084 | module_cmds= | ||
7085 | module_expsym_cmds= | ||
7086 | always_export_symbols=no | ||
7087 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
7088 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
7089 | # included in the symbol list | ||
7090 | include_expsyms= | ||
7091 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
7092 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
7093 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
7094 | # as well as any symbol that contains `d'. | ||
7095 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | ||
7096 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
7097 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
7098 | # the symbol is explicitly referenced. Since portable code cannot | ||
7099 | # rely on this symbol name, it's probably fine to never include it in | ||
7100 | # preloaded symbol tables. | ||
7101 | extract_expsyms_cmds= | ||
7102 | |||
7103 | case $host_os in | ||
7104 | cygwin* | mingw* | pw32*) | ||
7105 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
7106 | # When not using gcc, we currently assume that we are using | ||
7107 | # Microsoft Visual C++. | ||
7108 | if test "$GCC" != yes; then | ||
7109 | with_gnu_ld=no | ||
7110 | fi | ||
7111 | ;; | ||
7112 | openbsd*) | ||
7113 | with_gnu_ld=no | ||
7114 | ;; | ||
7115 | esac | ||
7116 | |||
7117 | ld_shlibs=yes | ||
7118 | if test "$with_gnu_ld" = yes; then | ||
7119 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
7120 | wlarc='${wl}' | ||
7121 | |||
7122 | # See if GNU ld supports shared libraries. | ||
7123 | case $host_os in | ||
7124 | aix3* | aix4* | aix5*) | ||
7125 | # On AIX/PPC, the GNU linker is very broken | ||
7126 | if test "$host_cpu" != ia64; then | ||
7127 | ld_shlibs=no | ||
7128 | cat <<EOF 1>&2 | ||
7129 | |||
7130 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
7131 | *** to be unable to reliably create shared libraries on AIX. | ||
7132 | *** Therefore, libtool is disabling shared libraries support. If you | ||
7133 | *** really care for shared libraries, you may want to modify your PATH | ||
7134 | *** so that a non-GNU linker is found, and then restart. | ||
7135 | |||
7136 | EOF | ||
7137 | fi | ||
7138 | ;; | ||
7139 | |||
7140 | amigaos*) | ||
7141 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | ||
7142 | hardcode_libdir_flag_spec='-L$libdir' | ||
7143 | hardcode_minus_L=yes | ||
7144 | |||
7145 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | ||
7146 | # that the semantics of dynamic libraries on AmigaOS, at least up | ||
7147 | # to version 4, is to share data among multiple programs linked | ||
7148 | # with the same dynamic library. Since this doesn't match the | ||
7149 | # behavior of shared libraries on other platforms, we can't use | ||
7150 | # them. | ||
7151 | ld_shlibs=no | ||
7152 | ;; | ||
7153 | |||
7154 | beos*) | ||
7155 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
7156 | allow_undefined_flag=unsupported | ||
7157 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
7158 | # support --undefined. This deserves some investigation. FIXME | ||
7159 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
7160 | else | ||
7161 | ld_shlibs=no | ||
7162 | fi | ||
7163 | ;; | ||
7164 | |||
7165 | cygwin* | mingw* | pw32*) | ||
7166 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
7167 | # as there is no search path for DLLs. | ||
7168 | hardcode_libdir_flag_spec='-L$libdir' | ||
7169 | allow_undefined_flag=unsupported | ||
7170 | always_export_symbols=no | ||
7171 | enable_shared_with_static_runtimes=yes | ||
7172 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | ||
7173 | |||
7174 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
7175 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | ||
7176 | # If the export-symbols file already is a .def file (1st line | ||
7177 | # is EXPORTS), use it as is; otherwise, prepend... | ||
7178 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
7179 | cp $export_symbols $output_objdir/$soname.def; | ||
7180 | else | ||
7181 | echo EXPORTS > $output_objdir/$soname.def; | ||
7182 | cat $export_symbols >> $output_objdir/$soname.def; | ||
7183 | fi~ | ||
7184 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | ||
7185 | else | ||
7186 | ld_shlibs=no | ||
7187 | fi | ||
7188 | ;; | ||
7189 | |||
7190 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
7191 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
7192 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
7193 | wlarc= | ||
7194 | else | ||
7195 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
7196 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
7197 | fi | ||
7198 | ;; | ||
7199 | |||
7200 | solaris* | sysv5*) | ||
7201 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | ||
7202 | ld_shlibs=no | ||
7203 | cat <<EOF 1>&2 | ||
7204 | |||
7205 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
7206 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
7207 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
7208 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
7209 | *** your PATH or compiler configuration so that the native linker is | ||
7210 | *** used, and then restart. | ||
7211 | |||
7212 | EOF | ||
7213 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
7214 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
7215 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
7216 | else | ||
7217 | ld_shlibs=no | ||
7218 | fi | ||
7219 | ;; | ||
7220 | |||
7221 | sunos4*) | ||
7222 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
7223 | wlarc= | ||
7224 | hardcode_direct=yes | ||
7225 | hardcode_shlibpath_var=no | ||
7226 | ;; | ||
7227 | |||
7228 | linux*) | ||
7229 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
7230 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
7231 | archive_cmds="$tmp_archive_cmds" | ||
7232 | supports_anon_versioning=no | ||
7233 | case `$LD -v 2>/dev/null` in | ||
7234 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
7235 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
7236 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
7237 | *\ 2.11.*) ;; # other 2.11 versions | ||
7238 | *) supports_anon_versioning=yes ;; | ||
7239 | esac | ||
7240 | if test $supports_anon_versioning = yes; then | ||
7241 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | ||
7242 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
7243 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
7244 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
7245 | else | ||
7246 | archive_expsym_cmds="$tmp_archive_cmds" | ||
7247 | fi | ||
7248 | link_all_deplibs=no | ||
7249 | else | ||
7250 | ld_shlibs=no | ||
7251 | fi | ||
7252 | ;; | ||
7253 | |||
7254 | *) | ||
7255 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
7256 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
7257 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
7258 | else | ||
7259 | ld_shlibs=no | ||
7260 | fi | ||
7261 | ;; | ||
7262 | esac | ||
7263 | |||
7264 | if test "$ld_shlibs" = yes; then | ||
7265 | runpath_var=LD_RUN_PATH | ||
7266 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | ||
7267 | export_dynamic_flag_spec='${wl}--export-dynamic' | ||
7268 | # ancient GNU ld didn't support --whole-archive et. al. | ||
7269 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | ||
7270 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
7271 | else | ||
7272 | whole_archive_flag_spec= | ||
7273 | fi | ||
7274 | fi | ||
7275 | else | ||
7276 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
7277 | case $host_os in | ||
7278 | aix3*) | ||
7279 | allow_undefined_flag=unsupported | ||
7280 | always_export_symbols=yes | ||
7281 | archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | ||
7282 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
7283 | # are no directories specified by -L. | ||
7284 | hardcode_minus_L=yes | ||
7285 | if test "$GCC" = yes && test -z "$link_static_flag"; then | ||
7286 | # Neither direct hardcoding nor static linking is supported with a | ||
7287 | # broken collect2. | ||
7288 | hardcode_direct=unsupported | ||
7289 | fi | ||
7290 | ;; | ||
7291 | |||
7292 | aix4* | aix5*) | ||
7293 | if test "$host_cpu" = ia64; then | ||
7294 | # On IA64, the linker does run time linking by default, so we don't | ||
7295 | # have to do anything special. | ||
7296 | aix_use_runtimelinking=no | ||
7297 | exp_sym_flag='-Bexport' | ||
7298 | no_entry_flag="" | ||
7299 | else | ||
7300 | # If we're using GNU nm, then we don't want the "-C" option. | ||
7301 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
7302 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | ||
7303 | export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | ||
7304 | else | ||
7305 | export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | ||
7306 | fi | ||
7307 | aix_use_runtimelinking=no | ||
7308 | |||
7309 | # Test if we are trying to use run time linking or normal | ||
7310 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
7311 | # need to do runtime linking. | ||
7312 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | ||
7313 | for ld_flag in $LDFLAGS; do | ||
7314 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
7315 | aix_use_runtimelinking=yes | ||
7316 | break | ||
7317 | fi | ||
7318 | done | ||
7319 | esac | ||
7320 | |||
7321 | exp_sym_flag='-bexport' | ||
7322 | no_entry_flag='-bnoentry' | ||
7323 | fi | ||
7324 | |||
7325 | # When large executables or shared objects are built, AIX ld can | ||
7326 | # have problems creating the table of contents. If linking a library | ||
7327 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
7328 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
7329 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
7330 | |||
7331 | archive_cmds='' | ||
7332 | hardcode_direct=yes | ||
7333 | hardcode_libdir_separator=':' | ||
7334 | link_all_deplibs=yes | ||
7335 | |||
7336 | if test "$GCC" = yes; then | ||
7337 | case $host_os in aix4.012|aix4.012.*) | ||
7338 | # We only want to do this on AIX 4.2 and lower, the check | ||
7339 | # below for broken collect2 doesn't work under 4.3+ | ||
7340 | collect2name=`${CC} -print-prog-name=collect2` | ||
7341 | if test -f "$collect2name" && \ | ||
7342 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
7343 | then | ||
7344 | # We have reworked collect2 | ||
7345 | hardcode_direct=yes | ||
7346 | else | ||
7347 | # We have old collect2 | ||
7348 | hardcode_direct=unsupported | ||
7349 | # It fails to find uninstalled libraries when the uninstalled | ||
7350 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
7351 | # to unsupported forces relinking | ||
7352 | hardcode_minus_L=yes | ||
7353 | hardcode_libdir_flag_spec='-L$libdir' | ||
7354 | hardcode_libdir_separator= | ||
7355 | fi | ||
7356 | esac | ||
7357 | shared_flag='-shared' | ||
7358 | else | ||
7359 | # not using gcc | ||
7360 | if test "$host_cpu" = ia64; then | ||
7361 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
7362 | # chokes on -Wl,-G. The following line is correct: | ||
7363 | shared_flag='-G' | ||
7364 | else | ||
7365 | if test "$aix_use_runtimelinking" = yes; then | ||
7366 | shared_flag='${wl}-G' | ||
7367 | else | ||
7368 | shared_flag='${wl}-bM:SRE' | ||
7369 | fi | ||
7370 | fi | ||
7371 | fi | ||
7372 | |||
7373 | # It seems that -bexpall does not export symbols beginning with | ||
7374 | # underscore (_), so it is better to generate a list of symbols to export. | ||
7375 | always_export_symbols=yes | ||
7376 | if test "$aix_use_runtimelinking" = yes; then | ||
7377 | # Warning - without using the other runtime loading flags (-brtl), | ||
7378 | # -berok will link without error, but may produce a broken library. | ||
7379 | allow_undefined_flag='-berok' | ||
7380 | # Determine the default libpath from the value encoded in an empty executable. | ||
7381 | cat >conftest.$ac_ext <<_ACEOF | ||
7382 | /* confdefs.h. */ | ||
7383 | _ACEOF | ||
7384 | cat confdefs.h >>conftest.$ac_ext | ||
7385 | cat >>conftest.$ac_ext <<_ACEOF | ||
7386 | /* end confdefs.h. */ | ||
7387 | |||
7388 | int | ||
7389 | main () | ||
7390 | { | ||
7391 | |||
7392 | ; | ||
7393 | return 0; | ||
7394 | } | ||
7395 | _ACEOF | ||
7396 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7397 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7398 | (eval $ac_link) 2>conftest.er1 | ||
7399 | ac_status=$? | ||
7400 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7401 | rm -f conftest.er1 | ||
7402 | cat conftest.err >&5 | ||
7403 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7404 | (exit $ac_status); } && | ||
7405 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7406 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7407 | (eval $ac_try) 2>&5 | ||
7408 | ac_status=$? | ||
7409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7410 | (exit $ac_status); }; } && | ||
7411 | { ac_try='test -s conftest$ac_exeext' | ||
7412 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7413 | (eval $ac_try) 2>&5 | ||
7414 | ac_status=$? | ||
7415 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7416 | (exit $ac_status); }; }; then | ||
7417 | |||
7418 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
7419 | }'` | ||
7420 | # Check for a 64-bit object if we didn't find anything. | ||
7421 | 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; } | ||
7422 | }'`; fi | ||
7423 | else | ||
7424 | echo "$as_me: failed program was:" >&5 | ||
7425 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7426 | |||
7427 | fi | ||
7428 | rm -f conftest.err conftest.$ac_objext \ | ||
7429 | conftest$ac_exeext conftest.$ac_ext | ||
7430 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
7431 | |||
7432 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
7433 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
7434 | else | ||
7435 | if test "$host_cpu" = ia64; then | ||
7436 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
7437 | allow_undefined_flag="-z nodefs" | ||
7438 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | ||
7439 | else | ||
7440 | # Determine the default libpath from the value encoded in an empty executable. | ||
7441 | cat >conftest.$ac_ext <<_ACEOF | ||
7442 | /* confdefs.h. */ | ||
7443 | _ACEOF | ||
7444 | cat confdefs.h >>conftest.$ac_ext | ||
7445 | cat >>conftest.$ac_ext <<_ACEOF | ||
7446 | /* end confdefs.h. */ | ||
7447 | |||
7448 | int | ||
7449 | main () | ||
7450 | { | ||
7451 | |||
7452 | ; | ||
7453 | return 0; | ||
7454 | } | ||
7455 | _ACEOF | ||
7456 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
7457 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
7458 | (eval $ac_link) 2>conftest.er1 | ||
7459 | ac_status=$? | ||
7460 | grep -v '^ *+' conftest.er1 >conftest.err | ||
7461 | rm -f conftest.er1 | ||
7462 | cat conftest.err >&5 | ||
7463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7464 | (exit $ac_status); } && | ||
7465 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
7466 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7467 | (eval $ac_try) 2>&5 | ||
7468 | ac_status=$? | ||
7469 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7470 | (exit $ac_status); }; } && | ||
7471 | { ac_try='test -s conftest$ac_exeext' | ||
7472 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
7473 | (eval $ac_try) 2>&5 | ||
7474 | ac_status=$? | ||
7475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7476 | (exit $ac_status); }; }; then | ||
7477 | |||
7478 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
7479 | }'` | ||
7480 | # Check for a 64-bit object if we didn't find anything. | ||
7481 | 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; } | ||
7482 | }'`; fi | ||
7483 | else | ||
7484 | echo "$as_me: failed program was:" >&5 | ||
7485 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
7486 | |||
7487 | fi | ||
7488 | rm -f conftest.err conftest.$ac_objext \ | ||
7489 | conftest$ac_exeext conftest.$ac_ext | ||
7490 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
7491 | |||
7492 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
7493 | # Warning - without using the other run time loading flags, | ||
7494 | # -berok will link without error, but may produce a broken library. | ||
7495 | no_undefined_flag=' ${wl}-bernotok' | ||
7496 | allow_undefined_flag=' ${wl}-berok' | ||
7497 | # -bexpall does not export symbols beginning with underscore (_) | ||
7498 | always_export_symbols=yes | ||
7499 | # Exported symbols can be pulled into shared objects from archives | ||
7500 | whole_archive_flag_spec=' ' | ||
7501 | archive_cmds_need_lc=yes | ||
7502 | # This is similar to how AIX traditionally builds it's shared libraries. | ||
7503 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
7504 | fi | ||
7505 | fi | ||
7506 | ;; | ||
7507 | |||
7508 | amigaos*) | ||
7509 | archive_cmds='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | ||
7510 | hardcode_libdir_flag_spec='-L$libdir' | ||
7511 | hardcode_minus_L=yes | ||
7512 | # see comment about different semantics on the GNU ld section | ||
7513 | ld_shlibs=no | ||
7514 | ;; | ||
7515 | |||
7516 | bsdi4*) | ||
7517 | export_dynamic_flag_spec=-rdynamic | ||
7518 | ;; | ||
7519 | |||
7520 | cygwin* | mingw* | pw32*) | ||
7521 | # When not using gcc, we currently assume that we are using | ||
7522 | # Microsoft Visual C++. | ||
7523 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
7524 | # no search path for DLLs. | ||
7525 | hardcode_libdir_flag_spec=' ' | ||
7526 | allow_undefined_flag=unsupported | ||
7527 | # Tell ltmain to make .lib files, not .a files. | ||
7528 | libext=lib | ||
7529 | # Tell ltmain to make .dll files, not .so files. | ||
7530 | shrext_cmds=".dll" | ||
7531 | # FIXME: Setting linknames here is a bad hack. | ||
7532 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
7533 | # The linker will automatically build a .lib file if we build a DLL. | ||
7534 | old_archive_From_new_cmds='true' | ||
7535 | # FIXME: Should let the user specify the lib program. | ||
7536 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | ||
7537 | fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
7538 | enable_shared_with_static_runtimes=yes | ||
7539 | ;; | ||
7540 | |||
7541 | darwin* | rhapsody*) | ||
7542 | if test "$GXX" = yes ; then | ||
7543 | archive_cmds_need_lc=no | ||
7544 | case "$host_os" in | ||
7545 | rhapsody* | darwin1.[012]) | ||
7546 | allow_undefined_flag='-undefined suppress' | ||
7547 | ;; | ||
7548 | *) # Darwin 1.3 on | ||
7549 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
7550 | allow_undefined_flag='-flat_namespace -undefined suppress' | ||
7551 | else | ||
7552 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
7553 | 10.[012]) | ||
7554 | allow_undefined_flag='-flat_namespace -undefined suppress' | ||
7555 | ;; | ||
7556 | 10.*) | ||
7557 | allow_undefined_flag='-undefined dynamic_lookup' | ||
7558 | ;; | ||
7559 | esac | ||
7560 | fi | ||
7561 | ;; | ||
7562 | esac | ||
7563 | lt_int_apple_cc_single_mod=no | ||
7564 | output_verbose_link_cmd='echo' | ||
7565 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | ||
7566 | lt_int_apple_cc_single_mod=yes | ||
7567 | fi | ||
7568 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
7569 | archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
7570 | else | ||
7571 | archive_cmds='$CC -r ${wl}-bind_at_load -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' | ||
7572 | fi | ||
7573 | module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
7574 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | ||
7575 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
7576 | archive_expsym_cmds='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}' | ||
7577 | else | ||
7578 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' | ||
7579 | fi | ||
7580 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
7581 | hardcode_direct=no | ||
7582 | hardcode_automatic=yes | ||
7583 | hardcode_shlibpath_var=unsupported | ||
7584 | whole_archive_flag_spec='-all_load $convenience' | ||
7585 | link_all_deplibs=yes | ||
7586 | else | ||
7587 | ld_shlibs=no | ||
7588 | fi | ||
7589 | ;; | ||
7590 | |||
7591 | dgux*) | ||
7592 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7593 | hardcode_libdir_flag_spec='-L$libdir' | ||
7594 | hardcode_shlibpath_var=no | ||
7595 | ;; | ||
7596 | |||
7597 | freebsd1*) | ||
7598 | ld_shlibs=no | ||
7599 | ;; | ||
7600 | |||
7601 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
7602 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
7603 | # does not break anything, and helps significantly (at the cost of a little | ||
7604 | # extra space). | ||
7605 | freebsd2.2*) | ||
7606 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
7607 | hardcode_libdir_flag_spec='-R$libdir' | ||
7608 | hardcode_direct=yes | ||
7609 | hardcode_shlibpath_var=no | ||
7610 | ;; | ||
7611 | |||
7612 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
7613 | freebsd2*) | ||
7614 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
7615 | hardcode_direct=yes | ||
7616 | hardcode_minus_L=yes | ||
7617 | hardcode_shlibpath_var=no | ||
7618 | ;; | ||
7619 | |||
7620 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
7621 | freebsd* | kfreebsd*-gnu) | ||
7622 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
7623 | hardcode_libdir_flag_spec='-R$libdir' | ||
7624 | hardcode_direct=yes | ||
7625 | hardcode_shlibpath_var=no | ||
7626 | ;; | ||
7627 | |||
7628 | hpux9*) | ||
7629 | if test "$GCC" = yes; then | ||
7630 | archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
7631 | else | ||
7632 | archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
7633 | fi | ||
7634 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
7635 | hardcode_libdir_separator=: | ||
7636 | hardcode_direct=yes | ||
7637 | |||
7638 | # hardcode_minus_L: Not really in the search PATH, | ||
7639 | # but as the default location of the library. | ||
7640 | hardcode_minus_L=yes | ||
7641 | export_dynamic_flag_spec='${wl}-E' | ||
7642 | ;; | ||
7643 | |||
7644 | hpux10* | hpux11*) | ||
7645 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
7646 | case "$host_cpu" in | ||
7647 | hppa*64*|ia64*) | ||
7648 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7649 | ;; | ||
7650 | *) | ||
7651 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
7652 | ;; | ||
7653 | esac | ||
7654 | else | ||
7655 | case "$host_cpu" in | ||
7656 | hppa*64*|ia64*) | ||
7657 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7658 | ;; | ||
7659 | *) | ||
7660 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
7661 | ;; | ||
7662 | esac | ||
7663 | fi | ||
7664 | if test "$with_gnu_ld" = no; then | ||
7665 | case "$host_cpu" in | ||
7666 | hppa*64*) | ||
7667 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
7668 | hardcode_libdir_flag_spec_ld='+b $libdir' | ||
7669 | hardcode_libdir_separator=: | ||
7670 | hardcode_direct=no | ||
7671 | hardcode_shlibpath_var=no | ||
7672 | ;; | ||
7673 | ia64*) | ||
7674 | hardcode_libdir_flag_spec='-L$libdir' | ||
7675 | hardcode_direct=no | ||
7676 | hardcode_shlibpath_var=no | ||
7677 | |||
7678 | # hardcode_minus_L: Not really in the search PATH, | ||
7679 | # but as the default location of the library. | ||
7680 | hardcode_minus_L=yes | ||
7681 | ;; | ||
7682 | *) | ||
7683 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
7684 | hardcode_libdir_separator=: | ||
7685 | hardcode_direct=yes | ||
7686 | export_dynamic_flag_spec='${wl}-E' | ||
7687 | |||
7688 | # hardcode_minus_L: Not really in the search PATH, | ||
7689 | # but as the default location of the library. | ||
7690 | hardcode_minus_L=yes | ||
7691 | ;; | ||
7692 | esac | ||
7693 | fi | ||
7694 | ;; | ||
7695 | |||
7696 | irix5* | irix6* | nonstopux*) | ||
7697 | if test "$GCC" = yes; then | ||
7698 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
7699 | else | ||
7700 | archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
7701 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
7702 | fi | ||
7703 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
7704 | hardcode_libdir_separator=: | ||
7705 | link_all_deplibs=yes | ||
7706 | ;; | ||
7707 | |||
7708 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
7709 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
7710 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
7711 | else | ||
7712 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
7713 | fi | ||
7714 | hardcode_libdir_flag_spec='-R$libdir' | ||
7715 | hardcode_direct=yes | ||
7716 | hardcode_shlibpath_var=no | ||
7717 | ;; | ||
7718 | |||
7719 | newsos6) | ||
7720 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7721 | hardcode_direct=yes | ||
7722 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
7723 | hardcode_libdir_separator=: | ||
7724 | hardcode_shlibpath_var=no | ||
7725 | ;; | ||
7726 | |||
7727 | openbsd*) | ||
7728 | hardcode_direct=yes | ||
7729 | hardcode_shlibpath_var=no | ||
7730 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
7731 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
7732 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
7733 | export_dynamic_flag_spec='${wl}-E' | ||
7734 | else | ||
7735 | case $host_os in | ||
7736 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
7737 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
7738 | hardcode_libdir_flag_spec='-R$libdir' | ||
7739 | ;; | ||
7740 | *) | ||
7741 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
7742 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
7743 | ;; | ||
7744 | esac | ||
7745 | fi | ||
7746 | ;; | ||
7747 | |||
7748 | os2*) | ||
7749 | hardcode_libdir_flag_spec='-L$libdir' | ||
7750 | hardcode_minus_L=yes | ||
7751 | allow_undefined_flag=unsupported | ||
7752 | archive_cmds='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
7753 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
7754 | ;; | ||
7755 | |||
7756 | osf3*) | ||
7757 | if test "$GCC" = yes; then | ||
7758 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
7759 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
7760 | else | ||
7761 | allow_undefined_flag=' -expect_unresolved \*' | ||
7762 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
7763 | fi | ||
7764 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
7765 | hardcode_libdir_separator=: | ||
7766 | ;; | ||
7767 | |||
7768 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
7769 | if test "$GCC" = yes; then | ||
7770 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
7771 | archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
7772 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
7773 | else | ||
7774 | allow_undefined_flag=' -expect_unresolved \*' | ||
7775 | archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
7776 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | ||
7777 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' | ||
7778 | |||
7779 | # Both c and cxx compiler support -rpath directly | ||
7780 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
7781 | fi | ||
7782 | hardcode_libdir_separator=: | ||
7783 | ;; | ||
7784 | |||
7785 | sco3.2v5*) | ||
7786 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7787 | hardcode_shlibpath_var=no | ||
7788 | export_dynamic_flag_spec='${wl}-Bexport' | ||
7789 | runpath_var=LD_RUN_PATH | ||
7790 | hardcode_runpath_var=yes | ||
7791 | ;; | ||
7792 | |||
7793 | solaris*) | ||
7794 | no_undefined_flag=' -z text' | ||
7795 | if test "$GCC" = yes; then | ||
7796 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7797 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
7798 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | ||
7799 | else | ||
7800 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7801 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
7802 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
7803 | fi | ||
7804 | hardcode_libdir_flag_spec='-R$libdir' | ||
7805 | hardcode_shlibpath_var=no | ||
7806 | case $host_os in | ||
7807 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
7808 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
7809 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | ||
7810 | esac | ||
7811 | link_all_deplibs=yes | ||
7812 | ;; | ||
7813 | |||
7814 | sunos4*) | ||
7815 | if test "x$host_vendor" = xsequent; then | ||
7816 | # Use $CC to link under sequent, because it throws in some extra .o | ||
7817 | # files that make .init and .fini sections work. | ||
7818 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7819 | else | ||
7820 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
7821 | fi | ||
7822 | hardcode_libdir_flag_spec='-L$libdir' | ||
7823 | hardcode_direct=yes | ||
7824 | hardcode_minus_L=yes | ||
7825 | hardcode_shlibpath_var=no | ||
7826 | ;; | ||
7827 | |||
7828 | sysv4) | ||
7829 | case $host_vendor in | ||
7830 | sni) | ||
7831 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7832 | hardcode_direct=yes # is this really true??? | ||
7833 | ;; | ||
7834 | siemens) | ||
7835 | ## LD is ld it makes a PLAMLIB | ||
7836 | ## CC just makes a GrossModule. | ||
7837 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
7838 | reload_cmds='$CC -r -o $output$reload_objs' | ||
7839 | hardcode_direct=no | ||
7840 | ;; | ||
7841 | motorola) | ||
7842 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7843 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | ||
7844 | ;; | ||
7845 | esac | ||
7846 | runpath_var='LD_RUN_PATH' | ||
7847 | hardcode_shlibpath_var=no | ||
7848 | ;; | ||
7849 | |||
7850 | sysv4.3*) | ||
7851 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7852 | hardcode_shlibpath_var=no | ||
7853 | export_dynamic_flag_spec='-Bexport' | ||
7854 | ;; | ||
7855 | |||
7856 | sysv4*MP*) | ||
7857 | if test -d /usr/nec; then | ||
7858 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7859 | hardcode_shlibpath_var=no | ||
7860 | runpath_var=LD_RUN_PATH | ||
7861 | hardcode_runpath_var=yes | ||
7862 | ld_shlibs=yes | ||
7863 | fi | ||
7864 | ;; | ||
7865 | |||
7866 | sysv4.2uw2*) | ||
7867 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
7868 | hardcode_direct=yes | ||
7869 | hardcode_minus_L=no | ||
7870 | hardcode_shlibpath_var=no | ||
7871 | hardcode_runpath_var=yes | ||
7872 | runpath_var=LD_RUN_PATH | ||
7873 | ;; | ||
7874 | |||
7875 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | ||
7876 | no_undefined_flag='${wl}-z ${wl}text' | ||
7877 | if test "$GCC" = yes; then | ||
7878 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7879 | else | ||
7880 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
7881 | fi | ||
7882 | runpath_var='LD_RUN_PATH' | ||
7883 | hardcode_shlibpath_var=no | ||
7884 | ;; | ||
7885 | |||
7886 | sysv5*) | ||
7887 | no_undefined_flag=' -z text' | ||
7888 | # $CC -shared without GNU ld will not create a library from C++ | ||
7889 | # object files and a static libstdc++, better avoid it by now | ||
7890 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7891 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
7892 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
7893 | hardcode_libdir_flag_spec= | ||
7894 | hardcode_shlibpath_var=no | ||
7895 | runpath_var='LD_RUN_PATH' | ||
7896 | ;; | ||
7897 | |||
7898 | uts4*) | ||
7899 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
7900 | hardcode_libdir_flag_spec='-L$libdir' | ||
7901 | hardcode_shlibpath_var=no | ||
7902 | ;; | ||
7903 | |||
7904 | *) | ||
7905 | ld_shlibs=no | ||
7906 | ;; | ||
7907 | esac | ||
7908 | fi | ||
7909 | |||
7910 | echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | ||
7911 | echo "${ECHO_T}$ld_shlibs" >&6 | ||
7912 | test "$ld_shlibs" = no && can_build_shared=no | ||
7913 | |||
7914 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
7915 | if test "$GCC" = yes; then | ||
7916 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
7917 | fi | ||
7918 | |||
7919 | # | ||
7920 | # Do we need to explicitly link libc? | ||
7921 | # | ||
7922 | case "x$archive_cmds_need_lc" in | ||
7923 | x|xyes) | ||
7924 | # Assume -lc should be added | ||
7925 | archive_cmds_need_lc=yes | ||
7926 | |||
7927 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
7928 | case $archive_cmds in | ||
7929 | *'~'*) | ||
7930 | # FIXME: we may have to deal with multi-command sequences. | ||
7931 | ;; | ||
7932 | '$CC '*) | ||
7933 | # Test whether the compiler implicitly links with -lc since on some | ||
7934 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
7935 | # to ld, don't add -lc before -lgcc. | ||
7936 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | ||
7937 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | ||
7938 | $rm conftest* | ||
7939 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
7940 | |||
7941 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
7942 | (eval $ac_compile) 2>&5 | ||
7943 | ac_status=$? | ||
7944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7945 | (exit $ac_status); } 2>conftest.err; then | ||
7946 | soname=conftest | ||
7947 | lib=conftest | ||
7948 | libobjs=conftest.$ac_objext | ||
7949 | deplibs= | ||
7950 | wl=$lt_prog_compiler_wl | ||
7951 | compiler_flags=-v | ||
7952 | linker_flags=-v | ||
7953 | verstring= | ||
7954 | output_objdir=. | ||
7955 | libname=conftest | ||
7956 | lt_save_allow_undefined_flag=$allow_undefined_flag | ||
7957 | allow_undefined_flag= | ||
7958 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | ||
7959 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
7960 | ac_status=$? | ||
7961 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
7962 | (exit $ac_status); } | ||
7963 | then | ||
7964 | archive_cmds_need_lc=no | ||
7965 | else | ||
7966 | archive_cmds_need_lc=yes | ||
7967 | fi | ||
7968 | allow_undefined_flag=$lt_save_allow_undefined_flag | ||
7969 | else | ||
7970 | cat conftest.err 1>&5 | ||
7971 | fi | ||
7972 | $rm conftest* | ||
7973 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | ||
7974 | echo "${ECHO_T}$archive_cmds_need_lc" >&6 | ||
7975 | ;; | ||
7976 | esac | ||
7977 | fi | ||
7978 | ;; | ||
7979 | esac | ||
7980 | |||
7981 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | ||
7982 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | ||
7983 | library_names_spec= | ||
7984 | libname_spec='lib$name' | ||
7985 | soname_spec= | ||
7986 | shrext_cmds=".so" | ||
7987 | postinstall_cmds= | ||
7988 | postuninstall_cmds= | ||
7989 | finish_cmds= | ||
7990 | finish_eval= | ||
7991 | shlibpath_var= | ||
7992 | shlibpath_overrides_runpath=unknown | ||
7993 | version_type=none | ||
7994 | dynamic_linker="$host_os ld.so" | ||
7995 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
7996 | if test "$GCC" = yes; then | ||
7997 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
7998 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | ||
7999 | # if the path contains ";" then we assume it to be the separator | ||
8000 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
8001 | # assumed that no part of a normal pathname contains ";" but that should | ||
8002 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
8003 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
8004 | else | ||
8005 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
8006 | fi | ||
8007 | else | ||
8008 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
8009 | fi | ||
8010 | need_lib_prefix=unknown | ||
8011 | hardcode_into_libs=no | ||
8012 | |||
8013 | # when you set need_version to no, make sure it does not cause -set_version | ||
8014 | # flags to be left without arguments | ||
8015 | need_version=unknown | ||
8016 | |||
8017 | case $host_os in | ||
8018 | aix3*) | ||
8019 | version_type=linux | ||
8020 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
8021 | shlibpath_var=LIBPATH | ||
8022 | |||
8023 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
8024 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8025 | ;; | ||
8026 | |||
8027 | aix4* | aix5*) | ||
8028 | version_type=linux | ||
8029 | need_lib_prefix=no | ||
8030 | need_version=no | ||
8031 | hardcode_into_libs=yes | ||
8032 | if test "$host_cpu" = ia64; then | ||
8033 | # AIX 5 supports IA64 | ||
8034 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
8035 | shlibpath_var=LD_LIBRARY_PATH | ||
8036 | else | ||
8037 | # With GCC up to 2.95.x, collect2 would create an import file | ||
8038 | # for dependence libraries. The import file would start with | ||
8039 | # the line `#! .'. This would cause the generated library to | ||
8040 | # depend on `.', always an invalid library. This was fixed in | ||
8041 | # development snapshots of GCC prior to 3.0. | ||
8042 | case $host_os in | ||
8043 | aix4 | aix4.[01] | aix4.[01].*) | ||
8044 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
8045 | echo ' yes ' | ||
8046 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | ||
8047 | : | ||
8048 | else | ||
8049 | can_build_shared=no | ||
8050 | fi | ||
8051 | ;; | ||
8052 | esac | ||
8053 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
8054 | # soname into executable. Probably we can add versioning support to | ||
8055 | # collect2, so additional links can be useful in future. | ||
8056 | if test "$aix_use_runtimelinking" = yes; then | ||
8057 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
8058 | # instead of lib<name>.a to let people know that these are not | ||
8059 | # typical AIX shared libraries. | ||
8060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
8061 | else | ||
8062 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
8063 | # and later when we are not doing run time linking. | ||
8064 | library_names_spec='${libname}${release}.a $libname.a' | ||
8065 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8066 | fi | ||
8067 | shlibpath_var=LIBPATH | ||
8068 | fi | ||
8069 | ;; | ||
8070 | |||
8071 | amigaos*) | ||
8072 | library_names_spec='$libname.ixlibrary $libname.a' | ||
8073 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
8074 | 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' | ||
8075 | ;; | ||
8076 | |||
8077 | beos*) | ||
8078 | library_names_spec='${libname}${shared_ext}' | ||
8079 | dynamic_linker="$host_os ld.so" | ||
8080 | shlibpath_var=LIBRARY_PATH | ||
8081 | ;; | ||
8082 | |||
8083 | bsdi4*) | ||
8084 | version_type=linux | ||
8085 | need_version=no | ||
8086 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
8087 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8088 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
8089 | shlibpath_var=LD_LIBRARY_PATH | ||
8090 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
8091 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
8092 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
8093 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
8094 | # libtool to hard-code these into programs | ||
8095 | ;; | ||
8096 | |||
8097 | cygwin* | mingw* | pw32*) | ||
8098 | version_type=windows | ||
8099 | shrext_cmds=".dll" | ||
8100 | need_version=no | ||
8101 | need_lib_prefix=no | ||
8102 | |||
8103 | case $GCC,$host_os in | ||
8104 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
8105 | library_names_spec='$libname.dll.a' | ||
8106 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
8107 | postinstall_cmds='base_file=`basename \${file}`~ | ||
8108 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | ||
8109 | dldir=$destdir/`dirname \$dlpath`~ | ||
8110 | test -d \$dldir || mkdir -p \$dldir~ | ||
8111 | $install_prog $dir/$dlname \$dldir/$dlname' | ||
8112 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
8113 | dlpath=$dir/\$dldll~ | ||
8114 | $rm \$dlpath' | ||
8115 | shlibpath_overrides_runpath=yes | ||
8116 | |||
8117 | case $host_os in | ||
8118 | cygwin*) | ||
8119 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
8120 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
8121 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
8122 | ;; | ||
8123 | mingw*) | ||
8124 | # MinGW DLLs use traditional 'lib' prefix | ||
8125 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
8126 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
8127 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | ||
8128 | # It is most probably a Windows format PATH printed by | ||
8129 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
8130 | # path with ; separators, and with drive letters. We can handle the | ||
8131 | # drive letters (cygwin fileutils understands them), so leave them, | ||
8132 | # especially as we might pass files found there to a mingw objdump, | ||
8133 | # which wouldn't understand a cygwinified path. Ahh. | ||
8134 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
8135 | else | ||
8136 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
8137 | fi | ||
8138 | ;; | ||
8139 | pw32*) | ||
8140 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
8141 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | ||
8142 | ;; | ||
8143 | esac | ||
8144 | ;; | ||
8145 | |||
8146 | *) | ||
8147 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
8148 | ;; | ||
8149 | esac | ||
8150 | dynamic_linker='Win32 ld.exe' | ||
8151 | # FIXME: first we should search . and the directory the executable is in | ||
8152 | shlibpath_var=PATH | ||
8153 | ;; | ||
8154 | |||
8155 | darwin* | rhapsody*) | ||
8156 | dynamic_linker="$host_os dyld" | ||
8157 | version_type=darwin | ||
8158 | need_lib_prefix=no | ||
8159 | need_version=no | ||
8160 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
8161 | soname_spec='${libname}${release}${major}$shared_ext' | ||
8162 | shlibpath_overrides_runpath=yes | ||
8163 | shlibpath_var=DYLD_LIBRARY_PATH | ||
8164 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | ||
8165 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | ||
8166 | if test "$GCC" = yes; then | ||
8167 | 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"` | ||
8168 | else | ||
8169 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | ||
8170 | fi | ||
8171 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
8172 | ;; | ||
8173 | |||
8174 | dgux*) | ||
8175 | version_type=linux | ||
8176 | need_lib_prefix=no | ||
8177 | need_version=no | ||
8178 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
8179 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8180 | shlibpath_var=LD_LIBRARY_PATH | ||
8181 | ;; | ||
8182 | |||
8183 | freebsd1*) | ||
8184 | dynamic_linker=no | ||
8185 | ;; | ||
8186 | |||
8187 | kfreebsd*-gnu) | ||
8188 | version_type=linux | ||
8189 | need_lib_prefix=no | ||
8190 | need_version=no | ||
8191 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
8192 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8193 | shlibpath_var=LD_LIBRARY_PATH | ||
8194 | shlibpath_overrides_runpath=no | ||
8195 | hardcode_into_libs=yes | ||
8196 | dynamic_linker='GNU ld.so' | ||
8197 | ;; | ||
8198 | |||
8199 | freebsd*) | ||
8200 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | ||
8201 | version_type=freebsd-$objformat | ||
8202 | case $version_type in | ||
8203 | freebsd-elf*) | ||
8204 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
8205 | need_version=no | ||
8206 | need_lib_prefix=no | ||
8207 | ;; | ||
8208 | freebsd-*) | ||
8209 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
8210 | need_version=yes | ||
8211 | ;; | ||
8212 | esac | ||
8213 | shlibpath_var=LD_LIBRARY_PATH | ||
8214 | case $host_os in | ||
8215 | freebsd2*) | ||
8216 | shlibpath_overrides_runpath=yes | ||
8217 | ;; | ||
8218 | freebsd3.01* | freebsdelf3.01*) | ||
8219 | shlibpath_overrides_runpath=yes | ||
8220 | hardcode_into_libs=yes | ||
8221 | ;; | ||
8222 | *) # from 3.2 on | ||
8223 | shlibpath_overrides_runpath=no | ||
8224 | hardcode_into_libs=yes | ||
8225 | ;; | ||
8226 | esac | ||
8227 | ;; | ||
8228 | |||
8229 | gnu*) | ||
8230 | version_type=linux | ||
8231 | need_lib_prefix=no | ||
8232 | need_version=no | ||
8233 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
8234 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8235 | shlibpath_var=LD_LIBRARY_PATH | ||
8236 | hardcode_into_libs=yes | ||
8237 | ;; | ||
8238 | |||
8239 | hpux9* | hpux10* | hpux11*) | ||
8240 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
8241 | # link against other versions. | ||
8242 | version_type=sunos | ||
8243 | need_lib_prefix=no | ||
8244 | need_version=no | ||
8245 | case "$host_cpu" in | ||
8246 | ia64*) | ||
8247 | shrext_cmds='.so' | ||
8248 | hardcode_into_libs=yes | ||
8249 | dynamic_linker="$host_os dld.so" | ||
8250 | shlibpath_var=LD_LIBRARY_PATH | ||
8251 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
8252 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
8253 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8254 | if test "X$HPUX_IA64_MODE" = X32; then | ||
8255 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
8256 | else | ||
8257 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
8258 | fi | ||
8259 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
8260 | ;; | ||
8261 | hppa*64*) | ||
8262 | shrext_cmds='.sl' | ||
8263 | hardcode_into_libs=yes | ||
8264 | dynamic_linker="$host_os dld.sl" | ||
8265 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
8266 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
8267 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
8268 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8269 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
8270 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
8271 | ;; | ||
8272 | *) | ||
8273 | shrext_cmds='.sl' | ||
8274 | dynamic_linker="$host_os dld.sl" | ||
8275 | shlibpath_var=SHLIB_PATH | ||
8276 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
8277 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
8278 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8279 | ;; | ||
8280 | esac | ||
8281 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
8282 | postinstall_cmds='chmod 555 $lib' | ||
8283 | ;; | ||
8284 | |||
8285 | irix5* | irix6* | nonstopux*) | ||
8286 | case $host_os in | ||
8287 | nonstopux*) version_type=nonstopux ;; | ||
8288 | *) | ||
8289 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
8290 | version_type=linux | ||
8291 | else | ||
8292 | version_type=irix | ||
8293 | fi ;; | ||
8294 | esac | ||
8295 | need_lib_prefix=no | ||
8296 | need_version=no | ||
8297 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8298 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
8299 | case $host_os in | ||
8300 | irix5* | nonstopux*) | ||
8301 | libsuff= shlibsuff= | ||
8302 | ;; | ||
8303 | *) | ||
8304 | case $LD in # libtool.m4 will add one of these switches to LD | ||
8305 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
8306 | libsuff= shlibsuff= libmagic=32-bit;; | ||
8307 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
8308 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
8309 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
8310 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
8311 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
8312 | esac | ||
8313 | ;; | ||
8314 | esac | ||
8315 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
8316 | shlibpath_overrides_runpath=no | ||
8317 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
8318 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
8319 | hardcode_into_libs=yes | ||
8320 | ;; | ||
8321 | |||
8322 | # No shared lib support for Linux oldld, aout, or coff. | ||
8323 | linux*oldld* | linux*aout* | linux*coff*) | ||
8324 | dynamic_linker=no | ||
8325 | ;; | ||
8326 | |||
8327 | # This must be Linux ELF. | ||
8328 | linux*) | ||
8329 | version_type=linux | ||
8330 | need_lib_prefix=no | ||
8331 | need_version=no | ||
8332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
8333 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8334 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
8335 | shlibpath_var=LD_LIBRARY_PATH | ||
8336 | shlibpath_overrides_runpath=no | ||
8337 | # This implies no fast_install, which is unacceptable. | ||
8338 | # Some rework will be needed to allow for fast_install | ||
8339 | # before this can be enabled. | ||
8340 | hardcode_into_libs=yes | ||
8341 | |||
8342 | # Append ld.so.conf contents to the search path | ||
8343 | if test -f /etc/ld.so.conf; then | ||
8344 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | ||
8345 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
8346 | fi | ||
8347 | |||
8348 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
8349 | # powerpc, because MkLinux only supported shared libraries with the | ||
8350 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
8351 | # most powerpc-linux boxes support dynamic linking these days and | ||
8352 | # people can always --disable-shared, the test was removed, and we | ||
8353 | # assume the GNU/Linux dynamic linker is in use. | ||
8354 | dynamic_linker='GNU/Linux ld.so' | ||
8355 | ;; | ||
8356 | |||
8357 | netbsdelf*-gnu) | ||
8358 | version_type=linux | ||
8359 | need_lib_prefix=no | ||
8360 | need_version=no | ||
8361 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
8362 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8363 | shlibpath_var=LD_LIBRARY_PATH | ||
8364 | shlibpath_overrides_runpath=no | ||
8365 | hardcode_into_libs=yes | ||
8366 | dynamic_linker='NetBSD ld.elf_so' | ||
8367 | ;; | ||
8368 | |||
8369 | knetbsd*-gnu) | ||
8370 | version_type=linux | ||
8371 | need_lib_prefix=no | ||
8372 | need_version=no | ||
8373 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
8374 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8375 | shlibpath_var=LD_LIBRARY_PATH | ||
8376 | shlibpath_overrides_runpath=no | ||
8377 | hardcode_into_libs=yes | ||
8378 | dynamic_linker='GNU ld.so' | ||
8379 | ;; | ||
8380 | |||
8381 | netbsd*) | ||
8382 | version_type=sunos | ||
8383 | need_lib_prefix=no | ||
8384 | need_version=no | ||
8385 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
8386 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
8387 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
8388 | dynamic_linker='NetBSD (a.out) ld.so' | ||
8389 | else | ||
8390 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
8391 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8392 | dynamic_linker='NetBSD ld.elf_so' | ||
8393 | fi | ||
8394 | shlibpath_var=LD_LIBRARY_PATH | ||
8395 | shlibpath_overrides_runpath=yes | ||
8396 | hardcode_into_libs=yes | ||
8397 | ;; | ||
8398 | |||
8399 | newsos6) | ||
8400 | version_type=linux | ||
8401 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
8402 | shlibpath_var=LD_LIBRARY_PATH | ||
8403 | shlibpath_overrides_runpath=yes | ||
8404 | ;; | ||
8405 | |||
8406 | nto-qnx*) | ||
8407 | version_type=linux | ||
8408 | need_lib_prefix=no | ||
8409 | need_version=no | ||
8410 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
8411 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8412 | shlibpath_var=LD_LIBRARY_PATH | ||
8413 | shlibpath_overrides_runpath=yes | ||
8414 | ;; | ||
8415 | |||
8416 | openbsd*) | ||
8417 | version_type=sunos | ||
8418 | need_lib_prefix=no | ||
8419 | need_version=yes | ||
8420 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
8421 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
8422 | shlibpath_var=LD_LIBRARY_PATH | ||
8423 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
8424 | case $host_os in | ||
8425 | openbsd2.[89] | openbsd2.[89].*) | ||
8426 | shlibpath_overrides_runpath=no | ||
8427 | ;; | ||
8428 | *) | ||
8429 | shlibpath_overrides_runpath=yes | ||
8430 | ;; | ||
8431 | esac | ||
8432 | else | ||
8433 | shlibpath_overrides_runpath=yes | ||
8434 | fi | ||
8435 | ;; | ||
8436 | |||
8437 | os2*) | ||
8438 | libname_spec='$name' | ||
8439 | shrext_cmds=".dll" | ||
8440 | need_lib_prefix=no | ||
8441 | library_names_spec='$libname${shared_ext} $libname.a' | ||
8442 | dynamic_linker='OS/2 ld.exe' | ||
8443 | shlibpath_var=LIBPATH | ||
8444 | ;; | ||
8445 | |||
8446 | osf3* | osf4* | osf5*) | ||
8447 | version_type=osf | ||
8448 | need_lib_prefix=no | ||
8449 | need_version=no | ||
8450 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8451 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
8452 | shlibpath_var=LD_LIBRARY_PATH | ||
8453 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
8454 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
8455 | ;; | ||
8456 | |||
8457 | sco3.2v5*) | ||
8458 | version_type=osf | ||
8459 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8460 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
8461 | shlibpath_var=LD_LIBRARY_PATH | ||
8462 | ;; | ||
8463 | |||
8464 | solaris*) | ||
8465 | version_type=linux | ||
8466 | need_lib_prefix=no | ||
8467 | need_version=no | ||
8468 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
8469 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8470 | shlibpath_var=LD_LIBRARY_PATH | ||
8471 | shlibpath_overrides_runpath=yes | ||
8472 | hardcode_into_libs=yes | ||
8473 | # ldd complains unless libraries are executable | ||
8474 | postinstall_cmds='chmod +x $lib' | ||
8475 | ;; | ||
8476 | |||
8477 | sunos4*) | ||
8478 | version_type=sunos | ||
8479 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
8480 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
8481 | shlibpath_var=LD_LIBRARY_PATH | ||
8482 | shlibpath_overrides_runpath=yes | ||
8483 | if test "$with_gnu_ld" = yes; then | ||
8484 | need_lib_prefix=no | ||
8485 | fi | ||
8486 | need_version=yes | ||
8487 | ;; | ||
8488 | |||
8489 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
8490 | version_type=linux | ||
8491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
8492 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8493 | shlibpath_var=LD_LIBRARY_PATH | ||
8494 | case $host_vendor in | ||
8495 | sni) | ||
8496 | shlibpath_overrides_runpath=no | ||
8497 | need_lib_prefix=no | ||
8498 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
8499 | runpath_var=LD_RUN_PATH | ||
8500 | ;; | ||
8501 | siemens) | ||
8502 | need_lib_prefix=no | ||
8503 | ;; | ||
8504 | motorola) | ||
8505 | need_lib_prefix=no | ||
8506 | need_version=no | ||
8507 | shlibpath_overrides_runpath=no | ||
8508 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
8509 | ;; | ||
8510 | esac | ||
8511 | ;; | ||
8512 | |||
8513 | sysv4*MP*) | ||
8514 | if test -d /usr/nec ;then | ||
8515 | version_type=linux | ||
8516 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
8517 | soname_spec='$libname${shared_ext}.$major' | ||
8518 | shlibpath_var=LD_LIBRARY_PATH | ||
8519 | fi | ||
8520 | ;; | ||
8521 | |||
8522 | uts4*) | ||
8523 | version_type=linux | ||
8524 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
8525 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8526 | shlibpath_var=LD_LIBRARY_PATH | ||
8527 | ;; | ||
8528 | |||
8529 | *) | ||
8530 | dynamic_linker=no | ||
8531 | ;; | ||
8532 | esac | ||
8533 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | ||
8534 | echo "${ECHO_T}$dynamic_linker" >&6 | ||
8535 | test "$dynamic_linker" = no && can_build_shared=no | ||
8536 | |||
8537 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | ||
8538 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | ||
8539 | hardcode_action= | ||
8540 | if test -n "$hardcode_libdir_flag_spec" || \ | ||
8541 | test -n "$runpath_var " || \ | ||
8542 | test "X$hardcode_automatic"="Xyes" ; then | ||
8543 | |||
8544 | # We can hardcode non-existant directories. | ||
8545 | if test "$hardcode_direct" != no && | ||
8546 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
8547 | # have to relink, otherwise we might link with an installed library | ||
8548 | # when we should be linking with a yet-to-be-installed one | ||
8549 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | ||
8550 | test "$hardcode_minus_L" != no; then | ||
8551 | # Linking always hardcodes the temporary library directory. | ||
8552 | hardcode_action=relink | ||
8553 | else | ||
8554 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
8555 | hardcode_action=immediate | ||
8556 | fi | ||
8557 | else | ||
8558 | # We cannot hardcode anything, or else we can only hardcode existing | ||
8559 | # directories. | ||
8560 | hardcode_action=unsupported | ||
8561 | fi | ||
8562 | echo "$as_me:$LINENO: result: $hardcode_action" >&5 | ||
8563 | echo "${ECHO_T}$hardcode_action" >&6 | ||
8564 | |||
8565 | if test "$hardcode_action" = relink; then | ||
8566 | # Fast installation is not supported | ||
8567 | enable_fast_install=no | ||
8568 | elif test "$shlibpath_overrides_runpath" = yes || | ||
8569 | test "$enable_shared" = no; then | ||
8570 | # Fast installation is not necessary | ||
8571 | enable_fast_install=needless | ||
8572 | fi | ||
8573 | |||
8574 | striplib= | ||
8575 | old_striplib= | ||
8576 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | ||
8577 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | ||
8578 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
8579 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
8580 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
8581 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8582 | echo "${ECHO_T}yes" >&6 | ||
8583 | else | ||
8584 | # FIXME - insert some real tests, host_os isn't really good enough | ||
8585 | case $host_os in | ||
8586 | darwin*) | ||
8587 | if test -n "$STRIP" ; then | ||
8588 | striplib="$STRIP -x" | ||
8589 | echo "$as_me:$LINENO: result: yes" >&5 | ||
8590 | echo "${ECHO_T}yes" >&6 | ||
8591 | else | ||
8592 | echo "$as_me:$LINENO: result: no" >&5 | ||
8593 | echo "${ECHO_T}no" >&6 | ||
8594 | fi | ||
8595 | ;; | ||
8596 | *) | ||
8597 | echo "$as_me:$LINENO: result: no" >&5 | ||
8598 | echo "${ECHO_T}no" >&6 | ||
8599 | ;; | ||
8600 | esac | ||
8601 | fi | ||
8602 | |||
8603 | if test "x$enable_dlopen" != xyes; then | ||
8604 | enable_dlopen=unknown | ||
8605 | enable_dlopen_self=unknown | ||
8606 | enable_dlopen_self_static=unknown | ||
8607 | else | ||
8608 | lt_cv_dlopen=no | ||
8609 | lt_cv_dlopen_libs= | ||
8610 | |||
8611 | case $host_os in | ||
8612 | beos*) | ||
8613 | lt_cv_dlopen="load_add_on" | ||
8614 | lt_cv_dlopen_libs= | ||
8615 | lt_cv_dlopen_self=yes | ||
8616 | ;; | ||
8617 | |||
8618 | mingw* | pw32*) | ||
8619 | lt_cv_dlopen="LoadLibrary" | ||
8620 | lt_cv_dlopen_libs= | ||
8621 | ;; | ||
8622 | |||
8623 | cygwin*) | ||
8624 | lt_cv_dlopen="dlopen" | ||
8625 | lt_cv_dlopen_libs= | ||
8626 | ;; | ||
8627 | |||
8628 | darwin*) | ||
8629 | # if libdl is installed we need to link against it | ||
8630 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
8631 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
8632 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
8633 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8634 | else | ||
8635 | ac_check_lib_save_LIBS=$LIBS | ||
8636 | LIBS="-ldl $LIBS" | ||
8637 | cat >conftest.$ac_ext <<_ACEOF | ||
8638 | /* confdefs.h. */ | ||
8639 | _ACEOF | ||
8640 | cat confdefs.h >>conftest.$ac_ext | ||
8641 | cat >>conftest.$ac_ext <<_ACEOF | ||
8642 | /* end confdefs.h. */ | ||
8643 | |||
8644 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8645 | #ifdef __cplusplus | ||
8646 | extern "C" | ||
8647 | #endif | ||
8648 | /* We use char because int might match the return type of a gcc2 | ||
8649 | builtin and then its argument prototype would still apply. */ | ||
8650 | char dlopen (); | ||
8651 | int | ||
8652 | main () | ||
8653 | { | ||
8654 | dlopen (); | ||
8655 | ; | ||
8656 | return 0; | ||
8657 | } | ||
8658 | _ACEOF | ||
8659 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8660 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8661 | (eval $ac_link) 2>conftest.er1 | ||
8662 | ac_status=$? | ||
8663 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8664 | rm -f conftest.er1 | ||
8665 | cat conftest.err >&5 | ||
8666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8667 | (exit $ac_status); } && | ||
8668 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8669 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8670 | (eval $ac_try) 2>&5 | ||
8671 | ac_status=$? | ||
8672 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8673 | (exit $ac_status); }; } && | ||
8674 | { ac_try='test -s conftest$ac_exeext' | ||
8675 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8676 | (eval $ac_try) 2>&5 | ||
8677 | ac_status=$? | ||
8678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8679 | (exit $ac_status); }; }; then | ||
8680 | ac_cv_lib_dl_dlopen=yes | ||
8681 | else | ||
8682 | echo "$as_me: failed program was:" >&5 | ||
8683 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8684 | |||
8685 | ac_cv_lib_dl_dlopen=no | ||
8686 | fi | ||
8687 | rm -f conftest.err conftest.$ac_objext \ | ||
8688 | conftest$ac_exeext conftest.$ac_ext | ||
8689 | LIBS=$ac_check_lib_save_LIBS | ||
8690 | fi | ||
8691 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
8692 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
8693 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
8694 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
8695 | else | ||
8696 | |||
8697 | lt_cv_dlopen="dyld" | ||
8698 | lt_cv_dlopen_libs= | ||
8699 | lt_cv_dlopen_self=yes | ||
8700 | |||
8701 | fi | ||
8702 | |||
8703 | ;; | ||
8704 | |||
8705 | *) | ||
8706 | echo "$as_me:$LINENO: checking for shl_load" >&5 | ||
8707 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | ||
8708 | if test "${ac_cv_func_shl_load+set}" = set; then | ||
8709 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8710 | else | ||
8711 | cat >conftest.$ac_ext <<_ACEOF | ||
8712 | /* confdefs.h. */ | ||
8713 | _ACEOF | ||
8714 | cat confdefs.h >>conftest.$ac_ext | ||
8715 | cat >>conftest.$ac_ext <<_ACEOF | ||
8716 | /* end confdefs.h. */ | ||
8717 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | ||
8718 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8719 | #define shl_load innocuous_shl_load | ||
8720 | |||
8721 | /* System header to define __stub macros and hopefully few prototypes, | ||
8722 | which can conflict with char shl_load (); below. | ||
8723 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8724 | <limits.h> exists even on freestanding compilers. */ | ||
8725 | |||
8726 | #ifdef __STDC__ | ||
8727 | # include <limits.h> | ||
8728 | #else | ||
8729 | # include <assert.h> | ||
8730 | #endif | ||
8731 | |||
8732 | #undef shl_load | ||
8733 | |||
8734 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8735 | #ifdef __cplusplus | ||
8736 | extern "C" | ||
8737 | { | ||
8738 | #endif | ||
8739 | /* We use char because int might match the return type of a gcc2 | ||
8740 | builtin and then its argument prototype would still apply. */ | ||
8741 | char shl_load (); | ||
8742 | /* The GNU C library defines this for functions which it implements | ||
8743 | to always fail with ENOSYS. Some functions are actually named | ||
8744 | something starting with __ and the normal name is an alias. */ | ||
8745 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | ||
8746 | choke me | ||
8747 | #else | ||
8748 | char (*f) () = shl_load; | ||
8749 | #endif | ||
8750 | #ifdef __cplusplus | ||
8751 | } | ||
8752 | #endif | ||
8753 | |||
8754 | int | ||
8755 | main () | ||
8756 | { | ||
8757 | return f != shl_load; | ||
8758 | ; | ||
8759 | return 0; | ||
8760 | } | ||
8761 | _ACEOF | ||
8762 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8764 | (eval $ac_link) 2>conftest.er1 | ||
8765 | ac_status=$? | ||
8766 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8767 | rm -f conftest.er1 | ||
8768 | cat conftest.err >&5 | ||
8769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8770 | (exit $ac_status); } && | ||
8771 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8772 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8773 | (eval $ac_try) 2>&5 | ||
8774 | ac_status=$? | ||
8775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8776 | (exit $ac_status); }; } && | ||
8777 | { ac_try='test -s conftest$ac_exeext' | ||
8778 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8779 | (eval $ac_try) 2>&5 | ||
8780 | ac_status=$? | ||
8781 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8782 | (exit $ac_status); }; }; then | ||
8783 | ac_cv_func_shl_load=yes | ||
8784 | else | ||
8785 | echo "$as_me: failed program was:" >&5 | ||
8786 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8787 | |||
8788 | ac_cv_func_shl_load=no | ||
8789 | fi | ||
8790 | rm -f conftest.err conftest.$ac_objext \ | ||
8791 | conftest$ac_exeext conftest.$ac_ext | ||
8792 | fi | ||
8793 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | ||
8794 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | ||
8795 | if test $ac_cv_func_shl_load = yes; then | ||
8796 | lt_cv_dlopen="shl_load" | ||
8797 | else | ||
8798 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | ||
8799 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | ||
8800 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | ||
8801 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8802 | else | ||
8803 | ac_check_lib_save_LIBS=$LIBS | ||
8804 | LIBS="-ldld $LIBS" | ||
8805 | cat >conftest.$ac_ext <<_ACEOF | ||
8806 | /* confdefs.h. */ | ||
8807 | _ACEOF | ||
8808 | cat confdefs.h >>conftest.$ac_ext | ||
8809 | cat >>conftest.$ac_ext <<_ACEOF | ||
8810 | /* end confdefs.h. */ | ||
8811 | |||
8812 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8813 | #ifdef __cplusplus | ||
8814 | extern "C" | ||
8815 | #endif | ||
8816 | /* We use char because int might match the return type of a gcc2 | ||
8817 | builtin and then its argument prototype would still apply. */ | ||
8818 | char shl_load (); | ||
8819 | int | ||
8820 | main () | ||
8821 | { | ||
8822 | shl_load (); | ||
8823 | ; | ||
8824 | return 0; | ||
8825 | } | ||
8826 | _ACEOF | ||
8827 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8828 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8829 | (eval $ac_link) 2>conftest.er1 | ||
8830 | ac_status=$? | ||
8831 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8832 | rm -f conftest.er1 | ||
8833 | cat conftest.err >&5 | ||
8834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8835 | (exit $ac_status); } && | ||
8836 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8838 | (eval $ac_try) 2>&5 | ||
8839 | ac_status=$? | ||
8840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8841 | (exit $ac_status); }; } && | ||
8842 | { ac_try='test -s conftest$ac_exeext' | ||
8843 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8844 | (eval $ac_try) 2>&5 | ||
8845 | ac_status=$? | ||
8846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8847 | (exit $ac_status); }; }; then | ||
8848 | ac_cv_lib_dld_shl_load=yes | ||
8849 | else | ||
8850 | echo "$as_me: failed program was:" >&5 | ||
8851 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8852 | |||
8853 | ac_cv_lib_dld_shl_load=no | ||
8854 | fi | ||
8855 | rm -f conftest.err conftest.$ac_objext \ | ||
8856 | conftest$ac_exeext conftest.$ac_ext | ||
8857 | LIBS=$ac_check_lib_save_LIBS | ||
8858 | fi | ||
8859 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | ||
8860 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | ||
8861 | if test $ac_cv_lib_dld_shl_load = yes; then | ||
8862 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | ||
8863 | else | ||
8864 | echo "$as_me:$LINENO: checking for dlopen" >&5 | ||
8865 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | ||
8866 | if test "${ac_cv_func_dlopen+set}" = set; then | ||
8867 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8868 | else | ||
8869 | cat >conftest.$ac_ext <<_ACEOF | ||
8870 | /* confdefs.h. */ | ||
8871 | _ACEOF | ||
8872 | cat confdefs.h >>conftest.$ac_ext | ||
8873 | cat >>conftest.$ac_ext <<_ACEOF | ||
8874 | /* end confdefs.h. */ | ||
8875 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | ||
8876 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
8877 | #define dlopen innocuous_dlopen | ||
8878 | |||
8879 | /* System header to define __stub macros and hopefully few prototypes, | ||
8880 | which can conflict with char dlopen (); below. | ||
8881 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
8882 | <limits.h> exists even on freestanding compilers. */ | ||
8883 | |||
8884 | #ifdef __STDC__ | ||
8885 | # include <limits.h> | ||
8886 | #else | ||
8887 | # include <assert.h> | ||
8888 | #endif | ||
8889 | |||
8890 | #undef dlopen | ||
8891 | |||
8892 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8893 | #ifdef __cplusplus | ||
8894 | extern "C" | ||
8895 | { | ||
8896 | #endif | ||
8897 | /* We use char because int might match the return type of a gcc2 | ||
8898 | builtin and then its argument prototype would still apply. */ | ||
8899 | char dlopen (); | ||
8900 | /* The GNU C library defines this for functions which it implements | ||
8901 | to always fail with ENOSYS. Some functions are actually named | ||
8902 | something starting with __ and the normal name is an alias. */ | ||
8903 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | ||
8904 | choke me | ||
8905 | #else | ||
8906 | char (*f) () = dlopen; | ||
8907 | #endif | ||
8908 | #ifdef __cplusplus | ||
8909 | } | ||
8910 | #endif | ||
8911 | |||
8912 | int | ||
8913 | main () | ||
8914 | { | ||
8915 | return f != dlopen; | ||
8916 | ; | ||
8917 | return 0; | ||
8918 | } | ||
8919 | _ACEOF | ||
8920 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8921 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8922 | (eval $ac_link) 2>conftest.er1 | ||
8923 | ac_status=$? | ||
8924 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8925 | rm -f conftest.er1 | ||
8926 | cat conftest.err >&5 | ||
8927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8928 | (exit $ac_status); } && | ||
8929 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8930 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8931 | (eval $ac_try) 2>&5 | ||
8932 | ac_status=$? | ||
8933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8934 | (exit $ac_status); }; } && | ||
8935 | { ac_try='test -s conftest$ac_exeext' | ||
8936 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8937 | (eval $ac_try) 2>&5 | ||
8938 | ac_status=$? | ||
8939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8940 | (exit $ac_status); }; }; then | ||
8941 | ac_cv_func_dlopen=yes | ||
8942 | else | ||
8943 | echo "$as_me: failed program was:" >&5 | ||
8944 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8945 | |||
8946 | ac_cv_func_dlopen=no | ||
8947 | fi | ||
8948 | rm -f conftest.err conftest.$ac_objext \ | ||
8949 | conftest$ac_exeext conftest.$ac_ext | ||
8950 | fi | ||
8951 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | ||
8952 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | ||
8953 | if test $ac_cv_func_dlopen = yes; then | ||
8954 | lt_cv_dlopen="dlopen" | ||
8955 | else | ||
8956 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
8957 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
8958 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
8959 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
8960 | else | ||
8961 | ac_check_lib_save_LIBS=$LIBS | ||
8962 | LIBS="-ldl $LIBS" | ||
8963 | cat >conftest.$ac_ext <<_ACEOF | ||
8964 | /* confdefs.h. */ | ||
8965 | _ACEOF | ||
8966 | cat confdefs.h >>conftest.$ac_ext | ||
8967 | cat >>conftest.$ac_ext <<_ACEOF | ||
8968 | /* end confdefs.h. */ | ||
8969 | |||
8970 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
8971 | #ifdef __cplusplus | ||
8972 | extern "C" | ||
8973 | #endif | ||
8974 | /* We use char because int might match the return type of a gcc2 | ||
8975 | builtin and then its argument prototype would still apply. */ | ||
8976 | char dlopen (); | ||
8977 | int | ||
8978 | main () | ||
8979 | { | ||
8980 | dlopen (); | ||
8981 | ; | ||
8982 | return 0; | ||
8983 | } | ||
8984 | _ACEOF | ||
8985 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8986 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
8987 | (eval $ac_link) 2>conftest.er1 | ||
8988 | ac_status=$? | ||
8989 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8990 | rm -f conftest.er1 | ||
8991 | cat conftest.err >&5 | ||
8992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8993 | (exit $ac_status); } && | ||
8994 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
8995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
8996 | (eval $ac_try) 2>&5 | ||
8997 | ac_status=$? | ||
8998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8999 | (exit $ac_status); }; } && | ||
9000 | { ac_try='test -s conftest$ac_exeext' | ||
9001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9002 | (eval $ac_try) 2>&5 | ||
9003 | ac_status=$? | ||
9004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9005 | (exit $ac_status); }; }; then | ||
9006 | ac_cv_lib_dl_dlopen=yes | ||
9007 | else | ||
9008 | echo "$as_me: failed program was:" >&5 | ||
9009 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9010 | |||
9011 | ac_cv_lib_dl_dlopen=no | ||
9012 | fi | ||
9013 | rm -f conftest.err conftest.$ac_objext \ | ||
9014 | conftest$ac_exeext conftest.$ac_ext | ||
9015 | LIBS=$ac_check_lib_save_LIBS | ||
9016 | fi | ||
9017 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
9018 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
9019 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
9020 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
9021 | else | ||
9022 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | ||
9023 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | ||
9024 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | ||
9025 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9026 | else | ||
9027 | ac_check_lib_save_LIBS=$LIBS | ||
9028 | LIBS="-lsvld $LIBS" | ||
9029 | cat >conftest.$ac_ext <<_ACEOF | ||
9030 | /* confdefs.h. */ | ||
9031 | _ACEOF | ||
9032 | cat confdefs.h >>conftest.$ac_ext | ||
9033 | cat >>conftest.$ac_ext <<_ACEOF | ||
9034 | /* end confdefs.h. */ | ||
9035 | |||
9036 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9037 | #ifdef __cplusplus | ||
9038 | extern "C" | ||
9039 | #endif | ||
9040 | /* We use char because int might match the return type of a gcc2 | ||
9041 | builtin and then its argument prototype would still apply. */ | ||
9042 | char dlopen (); | ||
9043 | int | ||
9044 | main () | ||
9045 | { | ||
9046 | dlopen (); | ||
9047 | ; | ||
9048 | return 0; | ||
9049 | } | ||
9050 | _ACEOF | ||
9051 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9052 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9053 | (eval $ac_link) 2>conftest.er1 | ||
9054 | ac_status=$? | ||
9055 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9056 | rm -f conftest.er1 | ||
9057 | cat conftest.err >&5 | ||
9058 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9059 | (exit $ac_status); } && | ||
9060 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
9061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9062 | (eval $ac_try) 2>&5 | ||
9063 | ac_status=$? | ||
9064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9065 | (exit $ac_status); }; } && | ||
9066 | { ac_try='test -s conftest$ac_exeext' | ||
9067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9068 | (eval $ac_try) 2>&5 | ||
9069 | ac_status=$? | ||
9070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9071 | (exit $ac_status); }; }; then | ||
9072 | ac_cv_lib_svld_dlopen=yes | ||
9073 | else | ||
9074 | echo "$as_me: failed program was:" >&5 | ||
9075 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9076 | |||
9077 | ac_cv_lib_svld_dlopen=no | ||
9078 | fi | ||
9079 | rm -f conftest.err conftest.$ac_objext \ | ||
9080 | conftest$ac_exeext conftest.$ac_ext | ||
9081 | LIBS=$ac_check_lib_save_LIBS | ||
9082 | fi | ||
9083 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | ||
9084 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | ||
9085 | if test $ac_cv_lib_svld_dlopen = yes; then | ||
9086 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
9087 | else | ||
9088 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | ||
9089 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | ||
9090 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | ||
9091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9092 | else | ||
9093 | ac_check_lib_save_LIBS=$LIBS | ||
9094 | LIBS="-ldld $LIBS" | ||
9095 | cat >conftest.$ac_ext <<_ACEOF | ||
9096 | /* confdefs.h. */ | ||
9097 | _ACEOF | ||
9098 | cat confdefs.h >>conftest.$ac_ext | ||
9099 | cat >>conftest.$ac_ext <<_ACEOF | ||
9100 | /* end confdefs.h. */ | ||
9101 | |||
9102 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
9103 | #ifdef __cplusplus | ||
9104 | extern "C" | ||
9105 | #endif | ||
9106 | /* We use char because int might match the return type of a gcc2 | ||
9107 | builtin and then its argument prototype would still apply. */ | ||
9108 | char dld_link (); | ||
9109 | int | ||
9110 | main () | ||
9111 | { | ||
9112 | dld_link (); | ||
9113 | ; | ||
9114 | return 0; | ||
9115 | } | ||
9116 | _ACEOF | ||
9117 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9118 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9119 | (eval $ac_link) 2>conftest.er1 | ||
9120 | ac_status=$? | ||
9121 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9122 | rm -f conftest.er1 | ||
9123 | cat conftest.err >&5 | ||
9124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9125 | (exit $ac_status); } && | ||
9126 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
9127 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9128 | (eval $ac_try) 2>&5 | ||
9129 | ac_status=$? | ||
9130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9131 | (exit $ac_status); }; } && | ||
9132 | { ac_try='test -s conftest$ac_exeext' | ||
9133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
9134 | (eval $ac_try) 2>&5 | ||
9135 | ac_status=$? | ||
9136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9137 | (exit $ac_status); }; }; then | ||
9138 | ac_cv_lib_dld_dld_link=yes | ||
9139 | else | ||
9140 | echo "$as_me: failed program was:" >&5 | ||
9141 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9142 | |||
9143 | ac_cv_lib_dld_dld_link=no | ||
9144 | fi | ||
9145 | rm -f conftest.err conftest.$ac_objext \ | ||
9146 | conftest$ac_exeext conftest.$ac_ext | ||
9147 | LIBS=$ac_check_lib_save_LIBS | ||
9148 | fi | ||
9149 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | ||
9150 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | ||
9151 | if test $ac_cv_lib_dld_dld_link = yes; then | ||
9152 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | ||
9153 | fi | ||
9154 | |||
9155 | |||
9156 | fi | ||
9157 | |||
9158 | |||
9159 | fi | ||
9160 | |||
9161 | |||
9162 | fi | ||
9163 | |||
9164 | |||
9165 | fi | ||
9166 | |||
9167 | |||
9168 | fi | ||
9169 | |||
9170 | ;; | ||
9171 | esac | ||
9172 | |||
9173 | if test "x$lt_cv_dlopen" != xno; then | ||
9174 | enable_dlopen=yes | ||
9175 | else | ||
9176 | enable_dlopen=no | ||
9177 | fi | ||
9178 | |||
9179 | case $lt_cv_dlopen in | ||
9180 | dlopen) | ||
9181 | save_CPPFLAGS="$CPPFLAGS" | ||
9182 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
9183 | |||
9184 | save_LDFLAGS="$LDFLAGS" | ||
9185 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
9186 | |||
9187 | save_LIBS="$LIBS" | ||
9188 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
9189 | |||
9190 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | ||
9191 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | ||
9192 | if test "${lt_cv_dlopen_self+set}" = set; then | ||
9193 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9194 | else | ||
9195 | if test "$cross_compiling" = yes; then : | ||
9196 | lt_cv_dlopen_self=cross | ||
9197 | else | ||
9198 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
9199 | lt_status=$lt_dlunknown | ||
9200 | cat > conftest.$ac_ext <<EOF | ||
9201 | #line 9201 "configure" | ||
9202 | #include "confdefs.h" | ||
9203 | |||
9204 | #if HAVE_DLFCN_H | ||
9205 | #include <dlfcn.h> | ||
9206 | #endif | ||
9207 | |||
9208 | #include <stdio.h> | ||
9209 | |||
9210 | #ifdef RTLD_GLOBAL | ||
9211 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
9212 | #else | ||
9213 | # ifdef DL_GLOBAL | ||
9214 | # define LT_DLGLOBAL DL_GLOBAL | ||
9215 | # else | ||
9216 | # define LT_DLGLOBAL 0 | ||
9217 | # endif | ||
9218 | #endif | ||
9219 | |||
9220 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
9221 | find out it does not work in some platform. */ | ||
9222 | #ifndef LT_DLLAZY_OR_NOW | ||
9223 | # ifdef RTLD_LAZY | ||
9224 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
9225 | # else | ||
9226 | # ifdef DL_LAZY | ||
9227 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
9228 | # else | ||
9229 | # ifdef RTLD_NOW | ||
9230 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
9231 | # else | ||
9232 | # ifdef DL_NOW | ||
9233 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
9234 | # else | ||
9235 | # define LT_DLLAZY_OR_NOW 0 | ||
9236 | # endif | ||
9237 | # endif | ||
9238 | # endif | ||
9239 | # endif | ||
9240 | #endif | ||
9241 | |||
9242 | #ifdef __cplusplus | ||
9243 | extern "C" void exit (int); | ||
9244 | #endif | ||
9245 | |||
9246 | void fnord() { int i=42;} | ||
9247 | int main () | ||
9248 | { | ||
9249 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
9250 | int status = $lt_dlunknown; | ||
9251 | |||
9252 | if (self) | ||
9253 | { | ||
9254 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
9255 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
9256 | /* dlclose (self); */ | ||
9257 | } | ||
9258 | |||
9259 | exit (status); | ||
9260 | } | ||
9261 | EOF | ||
9262 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9263 | (eval $ac_link) 2>&5 | ||
9264 | ac_status=$? | ||
9265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9266 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
9267 | (./conftest; exit; ) 2>/dev/null | ||
9268 | lt_status=$? | ||
9269 | case x$lt_status in | ||
9270 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
9271 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
9272 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | ||
9273 | esac | ||
9274 | else : | ||
9275 | # compilation failed | ||
9276 | lt_cv_dlopen_self=no | ||
9277 | fi | ||
9278 | fi | ||
9279 | rm -fr conftest* | ||
9280 | |||
9281 | |||
9282 | fi | ||
9283 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | ||
9284 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | ||
9285 | |||
9286 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
9287 | LDFLAGS="$LDFLAGS $link_static_flag" | ||
9288 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | ||
9289 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | ||
9290 | if test "${lt_cv_dlopen_self_static+set}" = set; then | ||
9291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9292 | else | ||
9293 | if test "$cross_compiling" = yes; then : | ||
9294 | lt_cv_dlopen_self_static=cross | ||
9295 | else | ||
9296 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
9297 | lt_status=$lt_dlunknown | ||
9298 | cat > conftest.$ac_ext <<EOF | ||
9299 | #line 9299 "configure" | ||
9300 | #include "confdefs.h" | ||
9301 | |||
9302 | #if HAVE_DLFCN_H | ||
9303 | #include <dlfcn.h> | ||
9304 | #endif | ||
9305 | |||
9306 | #include <stdio.h> | ||
9307 | |||
9308 | #ifdef RTLD_GLOBAL | ||
9309 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
9310 | #else | ||
9311 | # ifdef DL_GLOBAL | ||
9312 | # define LT_DLGLOBAL DL_GLOBAL | ||
9313 | # else | ||
9314 | # define LT_DLGLOBAL 0 | ||
9315 | # endif | ||
9316 | #endif | ||
9317 | |||
9318 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
9319 | find out it does not work in some platform. */ | ||
9320 | #ifndef LT_DLLAZY_OR_NOW | ||
9321 | # ifdef RTLD_LAZY | ||
9322 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
9323 | # else | ||
9324 | # ifdef DL_LAZY | ||
9325 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
9326 | # else | ||
9327 | # ifdef RTLD_NOW | ||
9328 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
9329 | # else | ||
9330 | # ifdef DL_NOW | ||
9331 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
9332 | # else | ||
9333 | # define LT_DLLAZY_OR_NOW 0 | ||
9334 | # endif | ||
9335 | # endif | ||
9336 | # endif | ||
9337 | # endif | ||
9338 | #endif | ||
9339 | |||
9340 | #ifdef __cplusplus | ||
9341 | extern "C" void exit (int); | ||
9342 | #endif | ||
9343 | |||
9344 | void fnord() { int i=42;} | ||
9345 | int main () | ||
9346 | { | ||
9347 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
9348 | int status = $lt_dlunknown; | ||
9349 | |||
9350 | if (self) | ||
9351 | { | ||
9352 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
9353 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
9354 | /* dlclose (self); */ | ||
9355 | } | ||
9356 | |||
9357 | exit (status); | ||
9358 | } | ||
9359 | EOF | ||
9360 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
9361 | (eval $ac_link) 2>&5 | ||
9362 | ac_status=$? | ||
9363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9364 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
9365 | (./conftest; exit; ) 2>/dev/null | ||
9366 | lt_status=$? | ||
9367 | case x$lt_status in | ||
9368 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
9369 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
9370 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | ||
9371 | esac | ||
9372 | else : | ||
9373 | # compilation failed | ||
9374 | lt_cv_dlopen_self_static=no | ||
9375 | fi | ||
9376 | fi | ||
9377 | rm -fr conftest* | ||
9378 | |||
9379 | |||
9380 | fi | ||
9381 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | ||
9382 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | ||
9383 | fi | ||
9384 | |||
9385 | CPPFLAGS="$save_CPPFLAGS" | ||
9386 | LDFLAGS="$save_LDFLAGS" | ||
9387 | LIBS="$save_LIBS" | ||
9388 | ;; | ||
9389 | esac | ||
9390 | |||
9391 | case $lt_cv_dlopen_self in | ||
9392 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
9393 | *) enable_dlopen_self=unknown ;; | ||
9394 | esac | ||
9395 | |||
9396 | case $lt_cv_dlopen_self_static in | ||
9397 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
9398 | *) enable_dlopen_self_static=unknown ;; | ||
9399 | esac | ||
9400 | fi | ||
9401 | |||
9402 | |||
9403 | # Report which librarie types wil actually be built | ||
9404 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | ||
9405 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | ||
9406 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | ||
9407 | echo "${ECHO_T}$can_build_shared" >&6 | ||
9408 | |||
9409 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | ||
9410 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | ||
9411 | test "$can_build_shared" = "no" && enable_shared=no | ||
9412 | |||
9413 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
9414 | # are all built from PIC. | ||
9415 | case "$host_os" in | ||
9416 | aix3*) | ||
9417 | test "$enable_shared" = yes && enable_static=no | ||
9418 | if test -n "$RANLIB"; then | ||
9419 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
9420 | postinstall_cmds='$RANLIB $lib' | ||
9421 | fi | ||
9422 | ;; | ||
9423 | |||
9424 | aix4* | aix5*) | ||
9425 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
9426 | test "$enable_shared" = yes && enable_static=no | ||
9427 | fi | ||
9428 | ;; | ||
9429 | darwin* | rhapsody*) | ||
9430 | if test "$GCC" = yes; then | ||
9431 | archive_cmds_need_lc=no | ||
9432 | case "$host_os" in | ||
9433 | rhapsody* | darwin1.[012]) | ||
9434 | allow_undefined_flag='-undefined suppress' | ||
9435 | ;; | ||
9436 | *) # Darwin 1.3 on | ||
9437 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
9438 | allow_undefined_flag='-flat_namespace -undefined suppress' | ||
9439 | else | ||
9440 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
9441 | 10.[012]) | ||
9442 | allow_undefined_flag='-flat_namespace -undefined suppress' | ||
9443 | ;; | ||
9444 | 10.*) | ||
9445 | allow_undefined_flag='-undefined dynamic_lookup' | ||
9446 | ;; | ||
9447 | esac | ||
9448 | fi | ||
9449 | ;; | ||
9450 | esac | ||
9451 | output_verbose_link_cmd='echo' | ||
9452 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' | ||
9453 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
9454 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | ||
9455 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
9456 | module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
9457 | hardcode_direct=no | ||
9458 | hardcode_automatic=yes | ||
9459 | hardcode_shlibpath_var=unsupported | ||
9460 | whole_archive_flag_spec='-all_load $convenience' | ||
9461 | link_all_deplibs=yes | ||
9462 | else | ||
9463 | ld_shlibs=no | ||
9464 | fi | ||
9465 | ;; | ||
9466 | esac | ||
9467 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | ||
9468 | echo "${ECHO_T}$enable_shared" >&6 | ||
9469 | |||
9470 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | ||
9471 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | ||
9472 | # Make sure either enable_shared or enable_static is yes. | ||
9473 | test "$enable_shared" = yes || enable_static=yes | ||
9474 | echo "$as_me:$LINENO: result: $enable_static" >&5 | ||
9475 | echo "${ECHO_T}$enable_static" >&6 | ||
9476 | |||
9477 | # The else clause should only fire when bootstrapping the | ||
9478 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
9479 | # with your package, and you will get complaints that there are | ||
9480 | # no rules to generate ltmain.sh. | ||
9481 | if test -f "$ltmain"; then | ||
9482 | # See if we are running on zsh, and set the options which allow our commands through | ||
9483 | # without removal of \ escapes. | ||
9484 | if test -n "${ZSH_VERSION+set}" ; then | ||
9485 | setopt NO_GLOB_SUBST | ||
9486 | fi | ||
9487 | # Now quote all the things that may contain metacharacters while being | ||
9488 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
9489 | # variables and quote the copies for generation of the libtool script. | ||
9490 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | ||
9491 | SED SHELL STRIP \ | ||
9492 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
9493 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
9494 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
9495 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
9496 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
9497 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
9498 | old_postinstall_cmds old_postuninstall_cmds \ | ||
9499 | compiler \ | ||
9500 | CC \ | ||
9501 | LD \ | ||
9502 | lt_prog_compiler_wl \ | ||
9503 | lt_prog_compiler_pic \ | ||
9504 | lt_prog_compiler_static \ | ||
9505 | lt_prog_compiler_no_builtin_flag \ | ||
9506 | export_dynamic_flag_spec \ | ||
9507 | thread_safe_flag_spec \ | ||
9508 | whole_archive_flag_spec \ | ||
9509 | enable_shared_with_static_runtimes \ | ||
9510 | old_archive_cmds \ | ||
9511 | old_archive_from_new_cmds \ | ||
9512 | predep_objects \ | ||
9513 | postdep_objects \ | ||
9514 | predeps \ | ||
9515 | postdeps \ | ||
9516 | compiler_lib_search_path \ | ||
9517 | archive_cmds \ | ||
9518 | archive_expsym_cmds \ | ||
9519 | postinstall_cmds \ | ||
9520 | postuninstall_cmds \ | ||
9521 | old_archive_from_expsyms_cmds \ | ||
9522 | allow_undefined_flag \ | ||
9523 | no_undefined_flag \ | ||
9524 | export_symbols_cmds \ | ||
9525 | hardcode_libdir_flag_spec \ | ||
9526 | hardcode_libdir_flag_spec_ld \ | ||
9527 | hardcode_libdir_separator \ | ||
9528 | hardcode_automatic \ | ||
9529 | module_cmds \ | ||
9530 | module_expsym_cmds \ | ||
9531 | lt_cv_prog_compiler_c_o \ | ||
9532 | exclude_expsyms \ | ||
9533 | include_expsyms; do | ||
9534 | |||
9535 | case $var in | ||
9536 | old_archive_cmds | \ | ||
9537 | old_archive_from_new_cmds | \ | ||
9538 | archive_cmds | \ | ||
9539 | archive_expsym_cmds | \ | ||
9540 | module_cmds | \ | ||
9541 | module_expsym_cmds | \ | ||
9542 | old_archive_from_expsyms_cmds | \ | ||
9543 | export_symbols_cmds | \ | ||
9544 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
9545 | postinstall_cmds | postuninstall_cmds | \ | ||
9546 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
9547 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
9548 | # Double-quote double-evaled strings. | ||
9549 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
9550 | ;; | ||
9551 | *) | ||
9552 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
9553 | ;; | ||
9554 | esac | ||
9555 | done | ||
9556 | |||
9557 | case $lt_echo in | ||
9558 | *'\$0 --fallback-echo"') | ||
9559 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | ||
9560 | ;; | ||
9561 | esac | ||
9562 | |||
9563 | cfgfile="${ofile}T" | ||
9564 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | ||
9565 | $rm -f "$cfgfile" | ||
9566 | { echo "$as_me:$LINENO: creating $ofile" >&5 | ||
9567 | echo "$as_me: creating $ofile" >&6;} | ||
9568 | |||
9569 | cat <<__EOF__ >> "$cfgfile" | ||
9570 | #! $SHELL | ||
9571 | |||
9572 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
9573 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | ||
9574 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
9575 | # | ||
9576 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | ||
9577 | # Free Software Foundation, Inc. | ||
9578 | # | ||
9579 | # This file is part of GNU Libtool: | ||
9580 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | ||
9581 | # | ||
9582 | # This program is free software; you can redistribute it and/or modify | ||
9583 | # it under the terms of the GNU General Public License as published by | ||
9584 | # the Free Software Foundation; either version 2 of the License, or | ||
9585 | # (at your option) any later version. | ||
9586 | # | ||
9587 | # This program is distributed in the hope that it will be useful, but | ||
9588 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
9589 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
9590 | # General Public License for more details. | ||
9591 | # | ||
9592 | # You should have received a copy of the GNU General Public License | ||
9593 | # along with this program; if not, write to the Free Software | ||
9594 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
9595 | # | ||
9596 | # As a special exception to the GNU General Public License, if you | ||
9597 | # distribute this file as part of a program that contains a | ||
9598 | # configuration script generated by Autoconf, you may include it under | ||
9599 | # the same distribution terms that you use for the rest of that program. | ||
9600 | |||
9601 | # A sed program that does not truncate output. | ||
9602 | SED=$lt_SED | ||
9603 | |||
9604 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | ||
9605 | Xsed="$SED -e s/^X//" | ||
9606 | |||
9607 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
9608 | # if CDPATH is set. | ||
9609 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | ||
9610 | |||
9611 | # The names of the tagged configurations supported by this script. | ||
9612 | available_tags= | ||
9613 | |||
9614 | # ### BEGIN LIBTOOL CONFIG | ||
9615 | |||
9616 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
9617 | |||
9618 | # Shell to use when invoking shell scripts. | ||
9619 | SHELL=$lt_SHELL | ||
9620 | |||
9621 | # Whether or not to build shared libraries. | ||
9622 | build_libtool_libs=$enable_shared | ||
9623 | |||
9624 | # Whether or not to build static libraries. | ||
9625 | build_old_libs=$enable_static | ||
9626 | |||
9627 | # Whether or not to add -lc for building shared libraries. | ||
9628 | build_libtool_need_lc=$archive_cmds_need_lc | ||
9629 | |||
9630 | # Whether or not to disallow shared libs when runtime libs are static | ||
9631 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | ||
9632 | |||
9633 | # Whether or not to optimize for fast installation. | ||
9634 | fast_install=$enable_fast_install | ||
9635 | |||
9636 | # The host system. | ||
9637 | host_alias=$host_alias | ||
9638 | host=$host | ||
9639 | |||
9640 | # An echo program that does not interpret backslashes. | ||
9641 | echo=$lt_echo | ||
9642 | |||
9643 | # The archiver. | ||
9644 | AR=$lt_AR | ||
9645 | AR_FLAGS=$lt_AR_FLAGS | ||
9646 | |||
9647 | # A C compiler. | ||
9648 | LTCC=$lt_LTCC | ||
9649 | |||
9650 | # A language-specific compiler. | ||
9651 | CC=$lt_compiler | ||
9652 | |||
9653 | # Is the compiler the GNU C compiler? | ||
9654 | with_gcc=$GCC | ||
9655 | |||
9656 | # An ERE matcher. | ||
9657 | EGREP=$lt_EGREP | ||
9658 | |||
9659 | # The linker used to build libraries. | ||
9660 | LD=$lt_LD | ||
9661 | |||
9662 | # Whether we need hard or soft links. | ||
9663 | LN_S=$lt_LN_S | ||
9664 | |||
9665 | # A BSD-compatible nm program. | ||
9666 | NM=$lt_NM | ||
9667 | |||
9668 | # A symbol stripping program | ||
9669 | STRIP=$lt_STRIP | ||
9670 | |||
9671 | # Used to examine libraries when file_magic_cmd begins "file" | ||
9672 | MAGIC_CMD=$MAGIC_CMD | ||
9673 | |||
9674 | # Used on cygwin: DLL creation program. | ||
9675 | DLLTOOL="$DLLTOOL" | ||
9676 | |||
9677 | # Used on cygwin: object dumper. | ||
9678 | OBJDUMP="$OBJDUMP" | ||
9679 | |||
9680 | # Used on cygwin: assembler. | ||
9681 | AS="$AS" | ||
9682 | |||
9683 | # The name of the directory that contains temporary libtool files. | ||
9684 | objdir=$objdir | ||
9685 | |||
9686 | # How to create reloadable object files. | ||
9687 | reload_flag=$lt_reload_flag | ||
9688 | reload_cmds=$lt_reload_cmds | ||
9689 | |||
9690 | # How to pass a linker flag through the compiler. | ||
9691 | wl=$lt_lt_prog_compiler_wl | ||
9692 | |||
9693 | # Object file suffix (normally "o"). | ||
9694 | objext="$ac_objext" | ||
9695 | |||
9696 | # Old archive suffix (normally "a"). | ||
9697 | libext="$libext" | ||
9698 | |||
9699 | # Shared library suffix (normally ".so"). | ||
9700 | shrext_cmds='$shrext_cmds' | ||
9701 | |||
9702 | # Executable file suffix (normally ""). | ||
9703 | exeext="$exeext" | ||
9704 | |||
9705 | # Additional compiler flags for building library objects. | ||
9706 | pic_flag=$lt_lt_prog_compiler_pic | ||
9707 | pic_mode=$pic_mode | ||
9708 | |||
9709 | # What is the maximum length of a command? | ||
9710 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
9711 | |||
9712 | # Does compiler simultaneously support -c and -o options? | ||
9713 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | ||
9714 | |||
9715 | # Must we lock files when doing compilation ? | ||
9716 | need_locks=$lt_need_locks | ||
9717 | |||
9718 | # Do we need the lib prefix for modules? | ||
9719 | need_lib_prefix=$need_lib_prefix | ||
9720 | |||
9721 | # Do we need a version for libraries? | ||
9722 | need_version=$need_version | ||
9723 | |||
9724 | # Whether dlopen is supported. | ||
9725 | dlopen_support=$enable_dlopen | ||
9726 | |||
9727 | # Whether dlopen of programs is supported. | ||
9728 | dlopen_self=$enable_dlopen_self | ||
9729 | |||
9730 | # Whether dlopen of statically linked programs is supported. | ||
9731 | dlopen_self_static=$enable_dlopen_self_static | ||
9732 | |||
9733 | # Compiler flag to prevent dynamic linking. | ||
9734 | link_static_flag=$lt_lt_prog_compiler_static | ||
9735 | |||
9736 | # Compiler flag to turn off builtin functions. | ||
9737 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
9738 | |||
9739 | # Compiler flag to allow reflexive dlopens. | ||
9740 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | ||
9741 | |||
9742 | # Compiler flag to generate shared objects directly from archives. | ||
9743 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | ||
9744 | |||
9745 | # Compiler flag to generate thread-safe objects. | ||
9746 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | ||
9747 | |||
9748 | # Library versioning type. | ||
9749 | version_type=$version_type | ||
9750 | |||
9751 | # Format of library name prefix. | ||
9752 | libname_spec=$lt_libname_spec | ||
9753 | |||
9754 | # List of archive names. First name is the real one, the rest are links. | ||
9755 | # The last name is the one that the linker finds with -lNAME. | ||
9756 | library_names_spec=$lt_library_names_spec | ||
9757 | |||
9758 | # The coded name of the library, if different from the real name. | ||
9759 | soname_spec=$lt_soname_spec | ||
9760 | |||
9761 | # Commands used to build and install an old-style archive. | ||
9762 | RANLIB=$lt_RANLIB | ||
9763 | old_archive_cmds=$lt_old_archive_cmds | ||
9764 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
9765 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
9766 | |||
9767 | # Create an old-style archive from a shared archive. | ||
9768 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | ||
9769 | |||
9770 | # Create a temporary old-style archive to link instead of a shared archive. | ||
9771 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | ||
9772 | |||
9773 | # Commands used to build and install a shared archive. | ||
9774 | archive_cmds=$lt_archive_cmds | ||
9775 | archive_expsym_cmds=$lt_archive_expsym_cmds | ||
9776 | postinstall_cmds=$lt_postinstall_cmds | ||
9777 | postuninstall_cmds=$lt_postuninstall_cmds | ||
9778 | |||
9779 | # Commands used to build a loadable module (assumed same as above if empty) | ||
9780 | module_cmds=$lt_module_cmds | ||
9781 | module_expsym_cmds=$lt_module_expsym_cmds | ||
9782 | |||
9783 | # Commands to strip libraries. | ||
9784 | old_striplib=$lt_old_striplib | ||
9785 | striplib=$lt_striplib | ||
9786 | |||
9787 | # Dependencies to place before the objects being linked to create a | ||
9788 | # shared library. | ||
9789 | predep_objects=$lt_predep_objects | ||
9790 | |||
9791 | # Dependencies to place after the objects being linked to create a | ||
9792 | # shared library. | ||
9793 | postdep_objects=$lt_postdep_objects | ||
9794 | |||
9795 | # Dependencies to place before the objects being linked to create a | ||
9796 | # shared library. | ||
9797 | predeps=$lt_predeps | ||
9798 | |||
9799 | # Dependencies to place after the objects being linked to create a | ||
9800 | # shared library. | ||
9801 | postdeps=$lt_postdeps | ||
9802 | |||
9803 | # The library search path used internally by the compiler when linking | ||
9804 | # a shared library. | ||
9805 | compiler_lib_search_path=$lt_compiler_lib_search_path | ||
9806 | |||
9807 | # Method to check whether dependent libraries are shared objects. | ||
9808 | deplibs_check_method=$lt_deplibs_check_method | ||
9809 | |||
9810 | # Command to use when deplibs_check_method == file_magic. | ||
9811 | file_magic_cmd=$lt_file_magic_cmd | ||
9812 | |||
9813 | # Flag that allows shared libraries with undefined symbols to be built. | ||
9814 | allow_undefined_flag=$lt_allow_undefined_flag | ||
9815 | |||
9816 | # Flag that forces no undefined symbols. | ||
9817 | no_undefined_flag=$lt_no_undefined_flag | ||
9818 | |||
9819 | # Commands used to finish a libtool library installation in a directory. | ||
9820 | finish_cmds=$lt_finish_cmds | ||
9821 | |||
9822 | # Same as above, but a single script fragment to be evaled but not shown. | ||
9823 | finish_eval=$lt_finish_eval | ||
9824 | |||
9825 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
9826 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
9827 | |||
9828 | # Transform the output of nm in a proper C declaration | ||
9829 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
9830 | |||
9831 | # Transform the output of nm in a C name address pair | ||
9832 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
9833 | |||
9834 | # This is the shared library runtime path variable. | ||
9835 | runpath_var=$runpath_var | ||
9836 | |||
9837 | # This is the shared library path variable. | ||
9838 | shlibpath_var=$shlibpath_var | ||
9839 | |||
9840 | # Is shlibpath searched before the hard-coded library search path? | ||
9841 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
9842 | |||
9843 | # How to hardcode a shared library path into an executable. | ||
9844 | hardcode_action=$hardcode_action | ||
9845 | |||
9846 | # Whether we should hardcode library paths into libraries. | ||
9847 | hardcode_into_libs=$hardcode_into_libs | ||
9848 | |||
9849 | # Flag to hardcode \$libdir into a binary during linking. | ||
9850 | # This must work even if \$libdir does not exist. | ||
9851 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | ||
9852 | |||
9853 | # If ld is used when linking, flag to hardcode \$libdir into | ||
9854 | # a binary during linking. This must work even if \$libdir does | ||
9855 | # not exist. | ||
9856 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | ||
9857 | |||
9858 | # Whether we need a single -rpath flag with a separated argument. | ||
9859 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | ||
9860 | |||
9861 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
9862 | # resulting binary. | ||
9863 | hardcode_direct=$hardcode_direct | ||
9864 | |||
9865 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
9866 | # resulting binary. | ||
9867 | hardcode_minus_L=$hardcode_minus_L | ||
9868 | |||
9869 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
9870 | # the resulting binary. | ||
9871 | hardcode_shlibpath_var=$hardcode_shlibpath_var | ||
9872 | |||
9873 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
9874 | # and all subsequent libraries and executables linked against it. | ||
9875 | hardcode_automatic=$hardcode_automatic | ||
9876 | |||
9877 | # Variables whose values should be saved in libtool wrapper scripts and | ||
9878 | # restored at relink time. | ||
9879 | variables_saved_for_relink="$variables_saved_for_relink" | ||
9880 | |||
9881 | # Whether libtool must link a program against all its dependency libraries. | ||
9882 | link_all_deplibs=$link_all_deplibs | ||
9883 | |||
9884 | # Compile-time system search path for libraries | ||
9885 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
9886 | |||
9887 | # Run-time system search path for libraries | ||
9888 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
9889 | |||
9890 | # Fix the shell variable \$srcfile for the compiler. | ||
9891 | fix_srcfile_path="$fix_srcfile_path" | ||
9892 | |||
9893 | # Set to yes if exported symbols are required. | ||
9894 | always_export_symbols=$always_export_symbols | ||
9895 | |||
9896 | # The commands to list exported symbols. | ||
9897 | export_symbols_cmds=$lt_export_symbols_cmds | ||
9898 | |||
9899 | # The commands to extract the exported symbol list from a shared archive. | ||
9900 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
9901 | |||
9902 | # Symbols that should not be listed in the preloaded symbols. | ||
9903 | exclude_expsyms=$lt_exclude_expsyms | ||
9904 | |||
9905 | # Symbols that must always be exported. | ||
9906 | include_expsyms=$lt_include_expsyms | ||
9907 | |||
9908 | # ### END LIBTOOL CONFIG | ||
9909 | |||
9910 | __EOF__ | ||
9911 | |||
9912 | |||
9913 | case $host_os in | ||
9914 | aix3*) | ||
9915 | cat <<\EOF >> "$cfgfile" | ||
9916 | |||
9917 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
9918 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
9919 | # vanish in a puff of smoke. | ||
9920 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
9921 | COLLECT_NAMES= | ||
9922 | export COLLECT_NAMES | ||
9923 | fi | ||
9924 | EOF | ||
9925 | ;; | ||
9926 | esac | ||
9927 | |||
9928 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
9929 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
9930 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
9931 | # is reportedly fixed, but why not run on old versions too? | ||
9932 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | ||
9933 | |||
9934 | mv -f "$cfgfile" "$ofile" || \ | ||
9935 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
9936 | chmod +x "$ofile" | ||
9937 | |||
9938 | else | ||
9939 | # If there is no Makefile yet, we rely on a make rule to execute | ||
9940 | # `config.status --recheck' to rerun these tests and create the | ||
9941 | # libtool script then. | ||
9942 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
9943 | if test -f "$ltmain_in"; then | ||
9944 | test -f Makefile && make "$ltmain" | ||
9945 | fi | ||
9946 | fi | ||
9947 | |||
9948 | |||
9949 | ac_ext=c | ||
9950 | ac_cpp='$CPP $CPPFLAGS' | ||
9951 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
9952 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
9953 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
9954 | |||
9955 | CC="$lt_save_CC" | ||
9956 | |||
9957 | |||
9958 | # Check whether --with-tags or --without-tags was given. | ||
9959 | if test "${with_tags+set}" = set; then | ||
9960 | withval="$with_tags" | ||
9961 | tagnames="$withval" | ||
9962 | fi; | ||
9963 | |||
9964 | if test -f "$ltmain" && test -n "$tagnames"; then | ||
9965 | if test ! -f "${ofile}"; then | ||
9966 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | ||
9967 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | ||
9968 | fi | ||
9969 | |||
9970 | if test -z "$LTCC"; then | ||
9971 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | ||
9972 | if test -z "$LTCC"; then | ||
9973 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | ||
9974 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | ||
9975 | else | ||
9976 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | ||
9977 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | ||
9978 | fi | ||
9979 | fi | ||
9980 | |||
9981 | # Extract list of available tagged configurations in $ofile. | ||
9982 | # Note that this assumes the entire list is on one line. | ||
9983 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | ||
9984 | |||
9985 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
9986 | for tagname in $tagnames; do | ||
9987 | IFS="$lt_save_ifs" | ||
9988 | # Check whether tagname contains only valid characters | ||
9989 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | ||
9990 | "") ;; | ||
9991 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | ||
9992 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | ||
9993 | { (exit 1); exit 1; }; } | ||
9994 | ;; | ||
9995 | esac | ||
9996 | |||
9997 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | ||
9998 | then | ||
9999 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | ||
10000 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | ||
10001 | { (exit 1); exit 1; }; } | ||
10002 | fi | ||
10003 | |||
10004 | # Update the list of available tags. | ||
10005 | if test -n "$tagname"; then | ||
10006 | echo appending configuration tag \"$tagname\" to $ofile | ||
10007 | |||
10008 | case $tagname in | ||
10009 | CXX) | ||
10010 | if test -n "$CXX" && test "X$CXX" != "Xno"; then | ||
10011 | ac_ext=cc | ||
10012 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
10013 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
10014 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
10015 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
10016 | |||
10017 | |||
10018 | |||
10019 | |||
10020 | archive_cmds_need_lc_CXX=no | ||
10021 | allow_undefined_flag_CXX= | ||
10022 | always_export_symbols_CXX=no | ||
10023 | archive_expsym_cmds_CXX= | ||
10024 | export_dynamic_flag_spec_CXX= | ||
10025 | hardcode_direct_CXX=no | ||
10026 | hardcode_libdir_flag_spec_CXX= | ||
10027 | hardcode_libdir_flag_spec_ld_CXX= | ||
10028 | hardcode_libdir_separator_CXX= | ||
10029 | hardcode_minus_L_CXX=no | ||
10030 | hardcode_automatic_CXX=no | ||
10031 | module_cmds_CXX= | ||
10032 | module_expsym_cmds_CXX= | ||
10033 | link_all_deplibs_CXX=unknown | ||
10034 | old_archive_cmds_CXX=$old_archive_cmds | ||
10035 | no_undefined_flag_CXX= | ||
10036 | whole_archive_flag_spec_CXX= | ||
10037 | enable_shared_with_static_runtimes_CXX=no | ||
10038 | |||
10039 | # Dependencies to place before and after the object being linked: | ||
10040 | predep_objects_CXX= | ||
10041 | postdep_objects_CXX= | ||
10042 | predeps_CXX= | ||
10043 | postdeps_CXX= | ||
10044 | compiler_lib_search_path_CXX= | ||
10045 | |||
10046 | # Source file extension for C++ test sources. | ||
10047 | ac_ext=cc | ||
10048 | |||
10049 | # Object file extension for compiled C++ test sources. | ||
10050 | objext=o | ||
10051 | objext_CXX=$objext | ||
10052 | |||
10053 | # Code to be used in simple compile tests | ||
10054 | lt_simple_compile_test_code="int some_variable = 0;\n" | ||
10055 | |||
10056 | # Code to be used in simple link tests | ||
10057 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' | ||
10058 | |||
10059 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
10060 | |||
10061 | # If no C compiler was specified, use CC. | ||
10062 | LTCC=${LTCC-"$CC"} | ||
10063 | |||
10064 | # Allow CC to be a program name with arguments. | ||
10065 | compiler=$CC | ||
10066 | |||
10067 | |||
10068 | # Allow CC to be a program name with arguments. | ||
10069 | lt_save_CC=$CC | ||
10070 | lt_save_LD=$LD | ||
10071 | lt_save_GCC=$GCC | ||
10072 | GCC=$GXX | ||
10073 | lt_save_with_gnu_ld=$with_gnu_ld | ||
10074 | lt_save_path_LD=$lt_cv_path_LD | ||
10075 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | ||
10076 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | ||
10077 | else | ||
10078 | unset lt_cv_prog_gnu_ld | ||
10079 | fi | ||
10080 | if test -n "${lt_cv_path_LDCXX+set}"; then | ||
10081 | lt_cv_path_LD=$lt_cv_path_LDCXX | ||
10082 | else | ||
10083 | unset lt_cv_path_LD | ||
10084 | fi | ||
10085 | test -z "${LDCXX+set}" || LD=$LDCXX | ||
10086 | CC=${CXX-"c++"} | ||
10087 | compiler=$CC | ||
10088 | compiler_CXX=$CC | ||
10089 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | ||
10090 | |||
10091 | # We don't want -fno-exception wen compiling C++ code, so set the | ||
10092 | # no_builtin_flag separately | ||
10093 | if test "$GXX" = yes; then | ||
10094 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | ||
10095 | else | ||
10096 | lt_prog_compiler_no_builtin_flag_CXX= | ||
10097 | fi | ||
10098 | |||
10099 | if test "$GXX" = yes; then | ||
10100 | # Set up default GNU C++ configuration | ||
10101 | |||
10102 | |||
10103 | # Check whether --with-gnu-ld or --without-gnu-ld was given. | ||
10104 | if test "${with_gnu_ld+set}" = set; then | ||
10105 | withval="$with_gnu_ld" | ||
10106 | test "$withval" = no || with_gnu_ld=yes | ||
10107 | else | ||
10108 | with_gnu_ld=no | ||
10109 | fi; | ||
10110 | ac_prog=ld | ||
10111 | if test "$GCC" = yes; then | ||
10112 | # Check if gcc -print-prog-name=ld gives a path. | ||
10113 | echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | ||
10114 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 | ||
10115 | case $host in | ||
10116 | *-*-mingw*) | ||
10117 | # gcc leaves a trailing carriage return which upsets mingw | ||
10118 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
10119 | *) | ||
10120 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
10121 | esac | ||
10122 | case $ac_prog in | ||
10123 | # Accept absolute paths. | ||
10124 | [\\/]* | ?:[\\/]*) | ||
10125 | re_direlt='/[^/][^/]*/\.\./' | ||
10126 | # Canonicalize the pathname of ld | ||
10127 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | ||
10128 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
10129 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | ||
10130 | done | ||
10131 | test -z "$LD" && LD="$ac_prog" | ||
10132 | ;; | ||
10133 | "") | ||
10134 | # If it fails, then pretend we aren't using GCC. | ||
10135 | ac_prog=ld | ||
10136 | ;; | ||
10137 | *) | ||
10138 | # If it is relative, then search for the first ld in PATH. | ||
10139 | with_gnu_ld=unknown | ||
10140 | ;; | ||
10141 | esac | ||
10142 | elif test "$with_gnu_ld" = yes; then | ||
10143 | echo "$as_me:$LINENO: checking for GNU ld" >&5 | ||
10144 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 | ||
10145 | else | ||
10146 | echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | ||
10147 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 | ||
10148 | fi | ||
10149 | if test "${lt_cv_path_LD+set}" = set; then | ||
10150 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10151 | else | ||
10152 | if test -z "$LD"; then | ||
10153 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
10154 | for ac_dir in $PATH; do | ||
10155 | IFS="$lt_save_ifs" | ||
10156 | test -z "$ac_dir" && ac_dir=. | ||
10157 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
10158 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
10159 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
10160 | # but apparently some GNU ld's only accept -v. | ||
10161 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
10162 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
10163 | *GNU* | *'with BFD'*) | ||
10164 | test "$with_gnu_ld" != no && break | ||
10165 | ;; | ||
10166 | *) | ||
10167 | test "$with_gnu_ld" != yes && break | ||
10168 | ;; | ||
10169 | esac | ||
10170 | fi | ||
10171 | done | ||
10172 | IFS="$lt_save_ifs" | ||
10173 | else | ||
10174 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
10175 | fi | ||
10176 | fi | ||
10177 | |||
10178 | LD="$lt_cv_path_LD" | ||
10179 | if test -n "$LD"; then | ||
10180 | echo "$as_me:$LINENO: result: $LD" >&5 | ||
10181 | echo "${ECHO_T}$LD" >&6 | ||
10182 | else | ||
10183 | echo "$as_me:$LINENO: result: no" >&5 | ||
10184 | echo "${ECHO_T}no" >&6 | ||
10185 | fi | ||
10186 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | ||
10187 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | ||
10188 | { (exit 1); exit 1; }; } | ||
10189 | echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | ||
10190 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 | ||
10191 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | ||
10192 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10193 | else | ||
10194 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | ||
10195 | case `$LD -v 2>&1 </dev/null` in | ||
10196 | *GNU* | *'with BFD'*) | ||
10197 | lt_cv_prog_gnu_ld=yes | ||
10198 | ;; | ||
10199 | *) | ||
10200 | lt_cv_prog_gnu_ld=no | ||
10201 | ;; | ||
10202 | esac | ||
10203 | fi | ||
10204 | echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | ||
10205 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 | ||
10206 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
10207 | |||
10208 | |||
10209 | |||
10210 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | ||
10211 | # archiving commands below assume that GNU ld is being used. | ||
10212 | if test "$with_gnu_ld" = yes; then | ||
10213 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
10214 | archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
10215 | |||
10216 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | ||
10217 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
10218 | |||
10219 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
10220 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | ||
10221 | # investigate it a little bit more. (MM) | ||
10222 | wlarc='${wl}' | ||
10223 | |||
10224 | # ancient GNU ld didn't support --whole-archive et. al. | ||
10225 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | ||
10226 | grep 'no-whole-archive' > /dev/null; then | ||
10227 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
10228 | else | ||
10229 | whole_archive_flag_spec_CXX= | ||
10230 | fi | ||
10231 | else | ||
10232 | with_gnu_ld=no | ||
10233 | wlarc= | ||
10234 | |||
10235 | # A generic and very simple default shared library creation | ||
10236 | # command for GNU C++ for the case where it uses the native | ||
10237 | # linker, instead of GNU ld. If possible, this setting should | ||
10238 | # overridden to take advantage of the native linker features on | ||
10239 | # the platform it is being used on. | ||
10240 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
10241 | fi | ||
10242 | |||
10243 | # Commands to make compiler produce verbose output that lists | ||
10244 | # what "hidden" libraries, object files and flags are used when | ||
10245 | # linking a shared library. | ||
10246 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
10247 | |||
10248 | else | ||
10249 | GXX=no | ||
10250 | with_gnu_ld=no | ||
10251 | wlarc= | ||
10252 | fi | ||
10253 | |||
10254 | # PORTME: fill in a description of your system's C++ link characteristics | ||
10255 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
10256 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | ||
10257 | ld_shlibs_CXX=yes | ||
10258 | case $host_os in | ||
10259 | aix3*) | ||
10260 | # FIXME: insert proper C++ library support | ||
10261 | ld_shlibs_CXX=no | ||
10262 | ;; | ||
10263 | aix4* | aix5*) | ||
10264 | if test "$host_cpu" = ia64; then | ||
10265 | # On IA64, the linker does run time linking by default, so we don't | ||
10266 | # have to do anything special. | ||
10267 | aix_use_runtimelinking=no | ||
10268 | exp_sym_flag='-Bexport' | ||
10269 | no_entry_flag="" | ||
10270 | else | ||
10271 | aix_use_runtimelinking=no | ||
10272 | |||
10273 | # Test if we are trying to use run time linking or normal | ||
10274 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
10275 | # need to do runtime linking. | ||
10276 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | ||
10277 | for ld_flag in $LDFLAGS; do | ||
10278 | case $ld_flag in | ||
10279 | *-brtl*) | ||
10280 | aix_use_runtimelinking=yes | ||
10281 | break | ||
10282 | ;; | ||
10283 | esac | ||
10284 | done | ||
10285 | esac | ||
10286 | |||
10287 | exp_sym_flag='-bexport' | ||
10288 | no_entry_flag='-bnoentry' | ||
10289 | fi | ||
10290 | |||
10291 | # When large executables or shared objects are built, AIX ld can | ||
10292 | # have problems creating the table of contents. If linking a library | ||
10293 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
10294 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
10295 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
10296 | |||
10297 | archive_cmds_CXX='' | ||
10298 | hardcode_direct_CXX=yes | ||
10299 | hardcode_libdir_separator_CXX=':' | ||
10300 | link_all_deplibs_CXX=yes | ||
10301 | |||
10302 | if test "$GXX" = yes; then | ||
10303 | case $host_os in aix4.012|aix4.012.*) | ||
10304 | # We only want to do this on AIX 4.2 and lower, the check | ||
10305 | # below for broken collect2 doesn't work under 4.3+ | ||
10306 | collect2name=`${CC} -print-prog-name=collect2` | ||
10307 | if test -f "$collect2name" && \ | ||
10308 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
10309 | then | ||
10310 | # We have reworked collect2 | ||
10311 | hardcode_direct_CXX=yes | ||
10312 | else | ||
10313 | # We have old collect2 | ||
10314 | hardcode_direct_CXX=unsupported | ||
10315 | # It fails to find uninstalled libraries when the uninstalled | ||
10316 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
10317 | # to unsupported forces relinking | ||
10318 | hardcode_minus_L_CXX=yes | ||
10319 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
10320 | hardcode_libdir_separator_CXX= | ||
10321 | fi | ||
10322 | esac | ||
10323 | shared_flag='-shared' | ||
10324 | else | ||
10325 | # not using gcc | ||
10326 | if test "$host_cpu" = ia64; then | ||
10327 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
10328 | # chokes on -Wl,-G. The following line is correct: | ||
10329 | shared_flag='-G' | ||
10330 | else | ||
10331 | if test "$aix_use_runtimelinking" = yes; then | ||
10332 | shared_flag='${wl}-G' | ||
10333 | else | ||
10334 | shared_flag='${wl}-bM:SRE' | ||
10335 | fi | ||
10336 | fi | ||
10337 | fi | ||
10338 | |||
10339 | # It seems that -bexpall does not export symbols beginning with | ||
10340 | # underscore (_), so it is better to generate a list of symbols to export. | ||
10341 | always_export_symbols_CXX=yes | ||
10342 | if test "$aix_use_runtimelinking" = yes; then | ||
10343 | # Warning - without using the other runtime loading flags (-brtl), | ||
10344 | # -berok will link without error, but may produce a broken library. | ||
10345 | allow_undefined_flag_CXX='-berok' | ||
10346 | # Determine the default libpath from the value encoded in an empty executable. | ||
10347 | cat >conftest.$ac_ext <<_ACEOF | ||
10348 | /* confdefs.h. */ | ||
10349 | _ACEOF | ||
10350 | cat confdefs.h >>conftest.$ac_ext | ||
10351 | cat >>conftest.$ac_ext <<_ACEOF | ||
10352 | /* end confdefs.h. */ | ||
10353 | |||
10354 | int | ||
10355 | main () | ||
10356 | { | ||
10357 | |||
10358 | ; | ||
10359 | return 0; | ||
10360 | } | ||
10361 | _ACEOF | ||
10362 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10363 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10364 | (eval $ac_link) 2>conftest.er1 | ||
10365 | ac_status=$? | ||
10366 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10367 | rm -f conftest.er1 | ||
10368 | cat conftest.err >&5 | ||
10369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10370 | (exit $ac_status); } && | ||
10371 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
10372 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10373 | (eval $ac_try) 2>&5 | ||
10374 | ac_status=$? | ||
10375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10376 | (exit $ac_status); }; } && | ||
10377 | { ac_try='test -s conftest$ac_exeext' | ||
10378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10379 | (eval $ac_try) 2>&5 | ||
10380 | ac_status=$? | ||
10381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10382 | (exit $ac_status); }; }; then | ||
10383 | |||
10384 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
10385 | }'` | ||
10386 | # Check for a 64-bit object if we didn't find anything. | ||
10387 | 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; } | ||
10388 | }'`; fi | ||
10389 | else | ||
10390 | echo "$as_me: failed program was:" >&5 | ||
10391 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10392 | |||
10393 | fi | ||
10394 | rm -f conftest.err conftest.$ac_objext \ | ||
10395 | conftest$ac_exeext conftest.$ac_ext | ||
10396 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
10397 | |||
10398 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
10399 | |||
10400 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
10401 | else | ||
10402 | if test "$host_cpu" = ia64; then | ||
10403 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | ||
10404 | allow_undefined_flag_CXX="-z nodefs" | ||
10405 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | ||
10406 | else | ||
10407 | # Determine the default libpath from the value encoded in an empty executable. | ||
10408 | cat >conftest.$ac_ext <<_ACEOF | ||
10409 | /* confdefs.h. */ | ||
10410 | _ACEOF | ||
10411 | cat confdefs.h >>conftest.$ac_ext | ||
10412 | cat >>conftest.$ac_ext <<_ACEOF | ||
10413 | /* end confdefs.h. */ | ||
10414 | |||
10415 | int | ||
10416 | main () | ||
10417 | { | ||
10418 | |||
10419 | ; | ||
10420 | return 0; | ||
10421 | } | ||
10422 | _ACEOF | ||
10423 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
10424 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10425 | (eval $ac_link) 2>conftest.er1 | ||
10426 | ac_status=$? | ||
10427 | grep -v '^ *+' conftest.er1 >conftest.err | ||
10428 | rm -f conftest.er1 | ||
10429 | cat conftest.err >&5 | ||
10430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10431 | (exit $ac_status); } && | ||
10432 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
10433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10434 | (eval $ac_try) 2>&5 | ||
10435 | ac_status=$? | ||
10436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10437 | (exit $ac_status); }; } && | ||
10438 | { ac_try='test -s conftest$ac_exeext' | ||
10439 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
10440 | (eval $ac_try) 2>&5 | ||
10441 | ac_status=$? | ||
10442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10443 | (exit $ac_status); }; }; then | ||
10444 | |||
10445 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
10446 | }'` | ||
10447 | # Check for a 64-bit object if we didn't find anything. | ||
10448 | 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; } | ||
10449 | }'`; fi | ||
10450 | else | ||
10451 | echo "$as_me: failed program was:" >&5 | ||
10452 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
10453 | |||
10454 | fi | ||
10455 | rm -f conftest.err conftest.$ac_objext \ | ||
10456 | conftest$ac_exeext conftest.$ac_ext | ||
10457 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
10458 | |||
10459 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
10460 | # Warning - without using the other run time loading flags, | ||
10461 | # -berok will link without error, but may produce a broken library. | ||
10462 | no_undefined_flag_CXX=' ${wl}-bernotok' | ||
10463 | allow_undefined_flag_CXX=' ${wl}-berok' | ||
10464 | # -bexpall does not export symbols beginning with underscore (_) | ||
10465 | always_export_symbols_CXX=yes | ||
10466 | # Exported symbols can be pulled into shared objects from archives | ||
10467 | whole_archive_flag_spec_CXX=' ' | ||
10468 | archive_cmds_need_lc_CXX=yes | ||
10469 | # This is similar to how AIX traditionally builds it's shared libraries. | ||
10470 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
10471 | fi | ||
10472 | fi | ||
10473 | ;; | ||
10474 | chorus*) | ||
10475 | case $cc_basename in | ||
10476 | *) | ||
10477 | # FIXME: insert proper C++ library support | ||
10478 | ld_shlibs_CXX=no | ||
10479 | ;; | ||
10480 | esac | ||
10481 | ;; | ||
10482 | |||
10483 | cygwin* | mingw* | pw32*) | ||
10484 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | ||
10485 | # as there is no search path for DLLs. | ||
10486 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
10487 | allow_undefined_flag_CXX=unsupported | ||
10488 | always_export_symbols_CXX=no | ||
10489 | enable_shared_with_static_runtimes_CXX=yes | ||
10490 | |||
10491 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
10492 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | ||
10493 | # If the export-symbols file already is a .def file (1st line | ||
10494 | # is EXPORTS), use it as is; otherwise, prepend... | ||
10495 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
10496 | cp $export_symbols $output_objdir/$soname.def; | ||
10497 | else | ||
10498 | echo EXPORTS > $output_objdir/$soname.def; | ||
10499 | cat $export_symbols >> $output_objdir/$soname.def; | ||
10500 | fi~ | ||
10501 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | ||
10502 | else | ||
10503 | ld_shlibs_CXX=no | ||
10504 | fi | ||
10505 | ;; | ||
10506 | |||
10507 | darwin* | rhapsody*) | ||
10508 | if test "$GXX" = yes; then | ||
10509 | archive_cmds_need_lc_CXX=no | ||
10510 | case "$host_os" in | ||
10511 | rhapsody* | darwin1.[012]) | ||
10512 | allow_undefined_flag_CXX='-undefined suppress' | ||
10513 | ;; | ||
10514 | *) # Darwin 1.3 on | ||
10515 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
10516 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' | ||
10517 | else | ||
10518 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
10519 | 10.[012]) | ||
10520 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' | ||
10521 | ;; | ||
10522 | 10.*) | ||
10523 | allow_undefined_flag_CXX='-undefined dynamic_lookup' | ||
10524 | ;; | ||
10525 | esac | ||
10526 | fi | ||
10527 | ;; | ||
10528 | esac | ||
10529 | lt_int_apple_cc_single_mod=no | ||
10530 | output_verbose_link_cmd='echo' | ||
10531 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | ||
10532 | lt_int_apple_cc_single_mod=yes | ||
10533 | fi | ||
10534 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
10535 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
10536 | else | ||
10537 | archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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' | ||
10538 | fi | ||
10539 | module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
10540 | |||
10541 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | ||
10542 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
10543 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
10544 | else | ||
10545 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' | ||
10546 | fi | ||
10547 | module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
10548 | hardcode_direct_CXX=no | ||
10549 | hardcode_automatic_CXX=yes | ||
10550 | hardcode_shlibpath_var_CXX=unsupported | ||
10551 | whole_archive_flag_spec_CXX='-all_load $convenience' | ||
10552 | link_all_deplibs_CXX=yes | ||
10553 | else | ||
10554 | ld_shlibs_CXX=no | ||
10555 | fi | ||
10556 | ;; | ||
10557 | |||
10558 | dgux*) | ||
10559 | case $cc_basename in | ||
10560 | ec++) | ||
10561 | # FIXME: insert proper C++ library support | ||
10562 | ld_shlibs_CXX=no | ||
10563 | ;; | ||
10564 | ghcx) | ||
10565 | # Green Hills C++ Compiler | ||
10566 | # FIXME: insert proper C++ library support | ||
10567 | ld_shlibs_CXX=no | ||
10568 | ;; | ||
10569 | *) | ||
10570 | # FIXME: insert proper C++ library support | ||
10571 | ld_shlibs_CXX=no | ||
10572 | ;; | ||
10573 | esac | ||
10574 | ;; | ||
10575 | freebsd12*) | ||
10576 | # C++ shared libraries reported to be fairly broken before switch to ELF | ||
10577 | ld_shlibs_CXX=no | ||
10578 | ;; | ||
10579 | freebsd-elf*) | ||
10580 | archive_cmds_need_lc_CXX=no | ||
10581 | ;; | ||
10582 | freebsd* | kfreebsd*-gnu) | ||
10583 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | ||
10584 | # conventions | ||
10585 | ld_shlibs_CXX=yes | ||
10586 | ;; | ||
10587 | gnu*) | ||
10588 | ;; | ||
10589 | hpux9*) | ||
10590 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
10591 | hardcode_libdir_separator_CXX=: | ||
10592 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
10593 | hardcode_direct_CXX=yes | ||
10594 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
10595 | # but as the default | ||
10596 | # location of the library. | ||
10597 | |||
10598 | case $cc_basename in | ||
10599 | CC) | ||
10600 | # FIXME: insert proper C++ library support | ||
10601 | ld_shlibs_CXX=no | ||
10602 | ;; | ||
10603 | aCC) | ||
10604 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
10605 | # Commands to make compiler produce verbose output that lists | ||
10606 | # what "hidden" libraries, object files and flags are used when | ||
10607 | # linking a shared library. | ||
10608 | # | ||
10609 | # There doesn't appear to be a way to prevent this compiler from | ||
10610 | # explicitly linking system object files so we need to strip them | ||
10611 | # from the output so that they don't get included in the library | ||
10612 | # dependencies. | ||
10613 | 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' | ||
10614 | ;; | ||
10615 | *) | ||
10616 | if test "$GXX" = yes; then | ||
10617 | archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
10618 | else | ||
10619 | # FIXME: insert proper C++ library support | ||
10620 | ld_shlibs_CXX=no | ||
10621 | fi | ||
10622 | ;; | ||
10623 | esac | ||
10624 | ;; | ||
10625 | hpux10*|hpux11*) | ||
10626 | if test $with_gnu_ld = no; then | ||
10627 | case "$host_cpu" in | ||
10628 | hppa*64*) | ||
10629 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
10630 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | ||
10631 | hardcode_libdir_separator_CXX=: | ||
10632 | ;; | ||
10633 | ia64*) | ||
10634 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
10635 | ;; | ||
10636 | *) | ||
10637 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
10638 | hardcode_libdir_separator_CXX=: | ||
10639 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
10640 | ;; | ||
10641 | esac | ||
10642 | fi | ||
10643 | case "$host_cpu" in | ||
10644 | hppa*64*) | ||
10645 | hardcode_direct_CXX=no | ||
10646 | hardcode_shlibpath_var_CXX=no | ||
10647 | ;; | ||
10648 | ia64*) | ||
10649 | hardcode_direct_CXX=no | ||
10650 | hardcode_shlibpath_var_CXX=no | ||
10651 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
10652 | # but as the default | ||
10653 | # location of the library. | ||
10654 | ;; | ||
10655 | *) | ||
10656 | hardcode_direct_CXX=yes | ||
10657 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
10658 | # but as the default | ||
10659 | # location of the library. | ||
10660 | ;; | ||
10661 | esac | ||
10662 | |||
10663 | case $cc_basename in | ||
10664 | CC) | ||
10665 | # FIXME: insert proper C++ library support | ||
10666 | ld_shlibs_CXX=no | ||
10667 | ;; | ||
10668 | aCC) | ||
10669 | case "$host_cpu" in | ||
10670 | hppa*64*|ia64*) | ||
10671 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | ||
10672 | ;; | ||
10673 | *) | ||
10674 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
10675 | ;; | ||
10676 | esac | ||
10677 | # Commands to make compiler produce verbose output that lists | ||
10678 | # what "hidden" libraries, object files and flags are used when | ||
10679 | # linking a shared library. | ||
10680 | # | ||
10681 | # There doesn't appear to be a way to prevent this compiler from | ||
10682 | # explicitly linking system object files so we need to strip them | ||
10683 | # from the output so that they don't get included in the library | ||
10684 | # dependencies. | ||
10685 | 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' | ||
10686 | ;; | ||
10687 | *) | ||
10688 | if test "$GXX" = yes; then | ||
10689 | if test $with_gnu_ld = no; then | ||
10690 | case "$host_cpu" in | ||
10691 | ia64*|hppa*64*) | ||
10692 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | ||
10693 | ;; | ||
10694 | *) | ||
10695 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
10696 | ;; | ||
10697 | esac | ||
10698 | fi | ||
10699 | else | ||
10700 | # FIXME: insert proper C++ library support | ||
10701 | ld_shlibs_CXX=no | ||
10702 | fi | ||
10703 | ;; | ||
10704 | esac | ||
10705 | ;; | ||
10706 | irix5* | irix6*) | ||
10707 | case $cc_basename in | ||
10708 | CC) | ||
10709 | # SGI C++ | ||
10710 | archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | ||
10711 | |||
10712 | # Archives containing C++ object files must be created using | ||
10713 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | ||
10714 | # necessary to make sure instantiated templates are included | ||
10715 | # in the archive. | ||
10716 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | ||
10717 | ;; | ||
10718 | *) | ||
10719 | if test "$GXX" = yes; then | ||
10720 | if test "$with_gnu_ld" = no; then | ||
10721 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | ||
10722 | else | ||
10723 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' | ||
10724 | fi | ||
10725 | fi | ||
10726 | link_all_deplibs_CXX=yes | ||
10727 | ;; | ||
10728 | esac | ||
10729 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
10730 | hardcode_libdir_separator_CXX=: | ||
10731 | ;; | ||
10732 | linux*) | ||
10733 | case $cc_basename in | ||
10734 | KCC) | ||
10735 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
10736 | |||
10737 | # KCC will only create a shared library if the output file | ||
10738 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
10739 | # to its proper name (with version) after linking. | ||
10740 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | ||
10741 | archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' | ||
10742 | # Commands to make compiler produce verbose output that lists | ||
10743 | # what "hidden" libraries, object files and flags are used when | ||
10744 | # linking a shared library. | ||
10745 | # | ||
10746 | # There doesn't appear to be a way to prevent this compiler from | ||
10747 | # explicitly linking system object files so we need to strip them | ||
10748 | # from the output so that they don't get included in the library | ||
10749 | # dependencies. | ||
10750 | 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' | ||
10751 | |||
10752 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | ||
10753 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
10754 | |||
10755 | # Archives containing C++ object files must be created using | ||
10756 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
10757 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | ||
10758 | ;; | ||
10759 | icpc) | ||
10760 | # Intel C++ | ||
10761 | with_gnu_ld=yes | ||
10762 | archive_cmds_need_lc_CXX=no | ||
10763 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
10764 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
10765 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
10766 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
10767 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
10768 | ;; | ||
10769 | cxx) | ||
10770 | # Compaq C++ | ||
10771 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
10772 | archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' | ||
10773 | |||
10774 | runpath_var=LD_RUN_PATH | ||
10775 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | ||
10776 | hardcode_libdir_separator_CXX=: | ||
10777 | |||
10778 | # Commands to make compiler produce verbose output that lists | ||
10779 | # what "hidden" libraries, object files and flags are used when | ||
10780 | # linking a shared library. | ||
10781 | # | ||
10782 | # There doesn't appear to be a way to prevent this compiler from | ||
10783 | # explicitly linking system object files so we need to strip them | ||
10784 | # from the output so that they don't get included in the library | ||
10785 | # dependencies. | ||
10786 | 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' | ||
10787 | ;; | ||
10788 | esac | ||
10789 | ;; | ||
10790 | lynxos*) | ||
10791 | # FIXME: insert proper C++ library support | ||
10792 | ld_shlibs_CXX=no | ||
10793 | ;; | ||
10794 | m88k*) | ||
10795 | # FIXME: insert proper C++ library support | ||
10796 | ld_shlibs_CXX=no | ||
10797 | ;; | ||
10798 | mvs*) | ||
10799 | case $cc_basename in | ||
10800 | cxx) | ||
10801 | # FIXME: insert proper C++ library support | ||
10802 | ld_shlibs_CXX=no | ||
10803 | ;; | ||
10804 | *) | ||
10805 | # FIXME: insert proper C++ library support | ||
10806 | ld_shlibs_CXX=no | ||
10807 | ;; | ||
10808 | esac | ||
10809 | ;; | ||
10810 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
10811 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
10812 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | ||
10813 | wlarc= | ||
10814 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
10815 | hardcode_direct_CXX=yes | ||
10816 | hardcode_shlibpath_var_CXX=no | ||
10817 | fi | ||
10818 | # Workaround some broken pre-1.5 toolchains | ||
10819 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | ||
10820 | ;; | ||
10821 | osf3*) | ||
10822 | case $cc_basename in | ||
10823 | KCC) | ||
10824 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
10825 | |||
10826 | # KCC will only create a shared library if the output file | ||
10827 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
10828 | # to its proper name (with version) after linking. | ||
10829 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | ||
10830 | |||
10831 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
10832 | hardcode_libdir_separator_CXX=: | ||
10833 | |||
10834 | # Archives containing C++ object files must be created using | ||
10835 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
10836 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | ||
10837 | |||
10838 | ;; | ||
10839 | RCC) | ||
10840 | # Rational C++ 2.4.1 | ||
10841 | # FIXME: insert proper C++ library support | ||
10842 | ld_shlibs_CXX=no | ||
10843 | ;; | ||
10844 | cxx) | ||
10845 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
10846 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | ||
10847 | |||
10848 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
10849 | hardcode_libdir_separator_CXX=: | ||
10850 | |||
10851 | # Commands to make compiler produce verbose output that lists | ||
10852 | # what "hidden" libraries, object files and flags are used when | ||
10853 | # linking a shared library. | ||
10854 | # | ||
10855 | # There doesn't appear to be a way to prevent this compiler from | ||
10856 | # explicitly linking system object files so we need to strip them | ||
10857 | # from the output so that they don't get included in the library | ||
10858 | # dependencies. | ||
10859 | 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' | ||
10860 | ;; | ||
10861 | *) | ||
10862 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
10863 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
10864 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | ||
10865 | |||
10866 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
10867 | hardcode_libdir_separator_CXX=: | ||
10868 | |||
10869 | # Commands to make compiler produce verbose output that lists | ||
10870 | # what "hidden" libraries, object files and flags are used when | ||
10871 | # linking a shared library. | ||
10872 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
10873 | |||
10874 | else | ||
10875 | # FIXME: insert proper C++ library support | ||
10876 | ld_shlibs_CXX=no | ||
10877 | fi | ||
10878 | ;; | ||
10879 | esac | ||
10880 | ;; | ||
10881 | osf4* | osf5*) | ||
10882 | case $cc_basename in | ||
10883 | KCC) | ||
10884 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
10885 | |||
10886 | # KCC will only create a shared library if the output file | ||
10887 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
10888 | # to its proper name (with version) after linking. | ||
10889 | archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' | ||
10890 | |||
10891 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
10892 | hardcode_libdir_separator_CXX=: | ||
10893 | |||
10894 | # Archives containing C++ object files must be created using | ||
10895 | # the KAI C++ compiler. | ||
10896 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | ||
10897 | ;; | ||
10898 | RCC) | ||
10899 | # Rational C++ 2.4.1 | ||
10900 | # FIXME: insert proper C++ library support | ||
10901 | ld_shlibs_CXX=no | ||
10902 | ;; | ||
10903 | cxx) | ||
10904 | allow_undefined_flag_CXX=' -expect_unresolved \*' | ||
10905 | archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' | ||
10906 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | ||
10907 | echo "-hidden">> $lib.exp~ | ||
10908 | $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 $objdir/so_locations -o $lib~ | ||
10909 | $rm $lib.exp' | ||
10910 | |||
10911 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | ||
10912 | hardcode_libdir_separator_CXX=: | ||
10913 | |||
10914 | # Commands to make compiler produce verbose output that lists | ||
10915 | # what "hidden" libraries, object files and flags are used when | ||
10916 | # linking a shared library. | ||
10917 | # | ||
10918 | # There doesn't appear to be a way to prevent this compiler from | ||
10919 | # explicitly linking system object files so we need to strip them | ||
10920 | # from the output so that they don't get included in the library | ||
10921 | # dependencies. | ||
10922 | 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' | ||
10923 | ;; | ||
10924 | *) | ||
10925 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
10926 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
10927 | archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' | ||
10928 | |||
10929 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
10930 | hardcode_libdir_separator_CXX=: | ||
10931 | |||
10932 | # Commands to make compiler produce verbose output that lists | ||
10933 | # what "hidden" libraries, object files and flags are used when | ||
10934 | # linking a shared library. | ||
10935 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
10936 | |||
10937 | else | ||
10938 | # FIXME: insert proper C++ library support | ||
10939 | ld_shlibs_CXX=no | ||
10940 | fi | ||
10941 | ;; | ||
10942 | esac | ||
10943 | ;; | ||
10944 | psos*) | ||
10945 | # FIXME: insert proper C++ library support | ||
10946 | ld_shlibs_CXX=no | ||
10947 | ;; | ||
10948 | sco*) | ||
10949 | archive_cmds_need_lc_CXX=no | ||
10950 | case $cc_basename in | ||
10951 | CC) | ||
10952 | # FIXME: insert proper C++ library support | ||
10953 | ld_shlibs_CXX=no | ||
10954 | ;; | ||
10955 | *) | ||
10956 | # FIXME: insert proper C++ library support | ||
10957 | ld_shlibs_CXX=no | ||
10958 | ;; | ||
10959 | esac | ||
10960 | ;; | ||
10961 | sunos4*) | ||
10962 | case $cc_basename in | ||
10963 | CC) | ||
10964 | # Sun C++ 4.x | ||
10965 | # FIXME: insert proper C++ library support | ||
10966 | ld_shlibs_CXX=no | ||
10967 | ;; | ||
10968 | lcc) | ||
10969 | # Lucid | ||
10970 | # FIXME: insert proper C++ library support | ||
10971 | ld_shlibs_CXX=no | ||
10972 | ;; | ||
10973 | *) | ||
10974 | # FIXME: insert proper C++ library support | ||
10975 | ld_shlibs_CXX=no | ||
10976 | ;; | ||
10977 | esac | ||
10978 | ;; | ||
10979 | solaris*) | ||
10980 | case $cc_basename in | ||
10981 | CC) | ||
10982 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
10983 | no_undefined_flag_CXX=' -zdefs' | ||
10984 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
10985 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
10986 | $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
10987 | |||
10988 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
10989 | hardcode_shlibpath_var_CXX=no | ||
10990 | case $host_os in | ||
10991 | solaris2.0-5 | solaris2.0-5.*) ;; | ||
10992 | *) | ||
10993 | # The C++ compiler is used as linker so we must use $wl | ||
10994 | # flag to pass the commands to the underlying system | ||
10995 | # linker. | ||
10996 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
10997 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
10998 | ;; | ||
10999 | esac | ||
11000 | link_all_deplibs_CXX=yes | ||
11001 | |||
11002 | # Commands to make compiler produce verbose output that lists | ||
11003 | # what "hidden" libraries, object files and flags are used when | ||
11004 | # linking a shared library. | ||
11005 | # | ||
11006 | # There doesn't appear to be a way to prevent this compiler from | ||
11007 | # explicitly linking system object files so we need to strip them | ||
11008 | # from the output so that they don't get included in the library | ||
11009 | # dependencies. | ||
11010 | output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' | ||
11011 | |||
11012 | # Archives containing C++ object files must be created using | ||
11013 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
11014 | # necessary to make sure instantiated templates are included | ||
11015 | # in the archive. | ||
11016 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | ||
11017 | ;; | ||
11018 | gcx) | ||
11019 | # Green Hills C++ Compiler | ||
11020 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
11021 | |||
11022 | # The C++ compiler must be used to create the archive. | ||
11023 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | ||
11024 | ;; | ||
11025 | *) | ||
11026 | # GNU C++ compiler with Solaris linker | ||
11027 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
11028 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | ||
11029 | if $CC --version | grep -v '^2\.7' > /dev/null; then | ||
11030 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
11031 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
11032 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
11033 | |||
11034 | # Commands to make compiler produce verbose output that lists | ||
11035 | # what "hidden" libraries, object files and flags are used when | ||
11036 | # linking a shared library. | ||
11037 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | ||
11038 | else | ||
11039 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | ||
11040 | # platform. | ||
11041 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
11042 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
11043 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
11044 | |||
11045 | # Commands to make compiler produce verbose output that lists | ||
11046 | # what "hidden" libraries, object files and flags are used when | ||
11047 | # linking a shared library. | ||
11048 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | ||
11049 | fi | ||
11050 | |||
11051 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | ||
11052 | fi | ||
11053 | ;; | ||
11054 | esac | ||
11055 | ;; | ||
11056 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | ||
11057 | archive_cmds_need_lc_CXX=no | ||
11058 | ;; | ||
11059 | tandem*) | ||
11060 | case $cc_basename in | ||
11061 | NCC) | ||
11062 | # NonStop-UX NCC 3.20 | ||
11063 | # FIXME: insert proper C++ library support | ||
11064 | ld_shlibs_CXX=no | ||
11065 | ;; | ||
11066 | *) | ||
11067 | # FIXME: insert proper C++ library support | ||
11068 | ld_shlibs_CXX=no | ||
11069 | ;; | ||
11070 | esac | ||
11071 | ;; | ||
11072 | vxworks*) | ||
11073 | # FIXME: insert proper C++ library support | ||
11074 | ld_shlibs_CXX=no | ||
11075 | ;; | ||
11076 | *) | ||
11077 | # FIXME: insert proper C++ library support | ||
11078 | ld_shlibs_CXX=no | ||
11079 | ;; | ||
11080 | esac | ||
11081 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | ||
11082 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | ||
11083 | test "$ld_shlibs_CXX" = no && can_build_shared=no | ||
11084 | |||
11085 | GCC_CXX="$GXX" | ||
11086 | LD_CXX="$LD" | ||
11087 | |||
11088 | |||
11089 | cat > conftest.$ac_ext <<EOF | ||
11090 | class Foo | ||
11091 | { | ||
11092 | public: | ||
11093 | Foo (void) { a = 0; } | ||
11094 | private: | ||
11095 | int a; | ||
11096 | }; | ||
11097 | EOF | ||
11098 | |||
11099 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11100 | (eval $ac_compile) 2>&5 | ||
11101 | ac_status=$? | ||
11102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11103 | (exit $ac_status); }; then | ||
11104 | # Parse the compiler output and extract the necessary | ||
11105 | # objects, libraries and library flags. | ||
11106 | |||
11107 | # Sentinel used to keep track of whether or not we are before | ||
11108 | # the conftest object file. | ||
11109 | pre_test_object_deps_done=no | ||
11110 | |||
11111 | # The `*' in the case matches for architectures that use `case' in | ||
11112 | # $output_verbose_cmd can trigger glob expansion during the loop | ||
11113 | # eval without this substitution. | ||
11114 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | ||
11115 | |||
11116 | for p in `eval $output_verbose_link_cmd`; do | ||
11117 | case $p in | ||
11118 | |||
11119 | -L* | -R* | -l*) | ||
11120 | # Some compilers place space between "-{L,R}" and the path. | ||
11121 | # Remove the space. | ||
11122 | if test $p = "-L" \ | ||
11123 | || test $p = "-R"; then | ||
11124 | prev=$p | ||
11125 | continue | ||
11126 | else | ||
11127 | prev= | ||
11128 | fi | ||
11129 | |||
11130 | if test "$pre_test_object_deps_done" = no; then | ||
11131 | case $p in | ||
11132 | -L* | -R*) | ||
11133 | # Internal compiler library paths should come after those | ||
11134 | # provided the user. The postdeps already come after the | ||
11135 | # user supplied libs so there is no need to process them. | ||
11136 | if test -z "$compiler_lib_search_path_CXX"; then | ||
11137 | compiler_lib_search_path_CXX="${prev}${p}" | ||
11138 | else | ||
11139 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | ||
11140 | fi | ||
11141 | ;; | ||
11142 | # The "-l" case would never come before the object being | ||
11143 | # linked, so don't bother handling this case. | ||
11144 | esac | ||
11145 | else | ||
11146 | if test -z "$postdeps_CXX"; then | ||
11147 | postdeps_CXX="${prev}${p}" | ||
11148 | else | ||
11149 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | ||
11150 | fi | ||
11151 | fi | ||
11152 | ;; | ||
11153 | |||
11154 | *.$objext) | ||
11155 | # This assumes that the test object file only shows up | ||
11156 | # once in the compiler output. | ||
11157 | if test "$p" = "conftest.$objext"; then | ||
11158 | pre_test_object_deps_done=yes | ||
11159 | continue | ||
11160 | fi | ||
11161 | |||
11162 | if test "$pre_test_object_deps_done" = no; then | ||
11163 | if test -z "$predep_objects_CXX"; then | ||
11164 | predep_objects_CXX="$p" | ||
11165 | else | ||
11166 | predep_objects_CXX="$predep_objects_CXX $p" | ||
11167 | fi | ||
11168 | else | ||
11169 | if test -z "$postdep_objects_CXX"; then | ||
11170 | postdep_objects_CXX="$p" | ||
11171 | else | ||
11172 | postdep_objects_CXX="$postdep_objects_CXX $p" | ||
11173 | fi | ||
11174 | fi | ||
11175 | ;; | ||
11176 | |||
11177 | *) ;; # Ignore the rest. | ||
11178 | |||
11179 | esac | ||
11180 | done | ||
11181 | |||
11182 | # Clean up. | ||
11183 | rm -f a.out a.exe | ||
11184 | else | ||
11185 | echo "libtool.m4: error: problem compiling CXX test program" | ||
11186 | fi | ||
11187 | |||
11188 | $rm -f confest.$objext | ||
11189 | |||
11190 | case " $postdeps_CXX " in | ||
11191 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | ||
11192 | esac | ||
11193 | |||
11194 | lt_prog_compiler_wl_CXX= | ||
11195 | lt_prog_compiler_pic_CXX= | ||
11196 | lt_prog_compiler_static_CXX= | ||
11197 | |||
11198 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | ||
11199 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | ||
11200 | |||
11201 | # C++ specific cases for pic, static, wl, etc. | ||
11202 | if test "$GXX" = yes; then | ||
11203 | lt_prog_compiler_wl_CXX='-Wl,' | ||
11204 | lt_prog_compiler_static_CXX='-static' | ||
11205 | |||
11206 | case $host_os in | ||
11207 | aix*) | ||
11208 | # All AIX code is PIC. | ||
11209 | if test "$host_cpu" = ia64; then | ||
11210 | # AIX 5 now supports IA64 processor | ||
11211 | lt_prog_compiler_static_CXX='-Bstatic' | ||
11212 | fi | ||
11213 | ;; | ||
11214 | amigaos*) | ||
11215 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
11216 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
11217 | # like `-m68040'. | ||
11218 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | ||
11219 | ;; | ||
11220 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
11221 | # PIC is the default for these OSes. | ||
11222 | ;; | ||
11223 | mingw* | os2* | pw32*) | ||
11224 | # This hack is so that the source file can tell whether it is being | ||
11225 | # built for inclusion in a dll (and should export symbols for example). | ||
11226 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | ||
11227 | ;; | ||
11228 | darwin* | rhapsody*) | ||
11229 | # PIC is the default on this platform | ||
11230 | # Common symbols not allowed in MH_DYLIB files | ||
11231 | lt_prog_compiler_pic_CXX='-fno-common' | ||
11232 | ;; | ||
11233 | *djgpp*) | ||
11234 | # DJGPP does not support shared libraries at all | ||
11235 | lt_prog_compiler_pic_CXX= | ||
11236 | ;; | ||
11237 | sysv4*MP*) | ||
11238 | if test -d /usr/nec; then | ||
11239 | lt_prog_compiler_pic_CXX=-Kconform_pic | ||
11240 | fi | ||
11241 | ;; | ||
11242 | hpux*) | ||
11243 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
11244 | # not for PA HP-UX. | ||
11245 | case "$host_cpu" in | ||
11246 | hppa*64*|ia64*) | ||
11247 | ;; | ||
11248 | *) | ||
11249 | lt_prog_compiler_pic_CXX='-fPIC' | ||
11250 | ;; | ||
11251 | esac | ||
11252 | ;; | ||
11253 | *) | ||
11254 | lt_prog_compiler_pic_CXX='-fPIC' | ||
11255 | ;; | ||
11256 | esac | ||
11257 | else | ||
11258 | case $host_os in | ||
11259 | aix4* | aix5*) | ||
11260 | # All AIX code is PIC. | ||
11261 | if test "$host_cpu" = ia64; then | ||
11262 | # AIX 5 now supports IA64 processor | ||
11263 | lt_prog_compiler_static_CXX='-Bstatic' | ||
11264 | else | ||
11265 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | ||
11266 | fi | ||
11267 | ;; | ||
11268 | chorus*) | ||
11269 | case $cc_basename in | ||
11270 | cxch68) | ||
11271 | # Green Hills C++ Compiler | ||
11272 | # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" | ||
11273 | ;; | ||
11274 | esac | ||
11275 | ;; | ||
11276 | dgux*) | ||
11277 | case $cc_basename in | ||
11278 | ec++) | ||
11279 | lt_prog_compiler_pic_CXX='-KPIC' | ||
11280 | ;; | ||
11281 | ghcx) | ||
11282 | # Green Hills C++ Compiler | ||
11283 | lt_prog_compiler_pic_CXX='-pic' | ||
11284 | ;; | ||
11285 | *) | ||
11286 | ;; | ||
11287 | esac | ||
11288 | ;; | ||
11289 | freebsd* | kfreebsd*-gnu) | ||
11290 | # FreeBSD uses GNU C++ | ||
11291 | ;; | ||
11292 | hpux9* | hpux10* | hpux11*) | ||
11293 | case $cc_basename in | ||
11294 | CC) | ||
11295 | lt_prog_compiler_wl_CXX='-Wl,' | ||
11296 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | ||
11297 | if test "$host_cpu" != ia64; then | ||
11298 | lt_prog_compiler_pic_CXX='+Z' | ||
11299 | fi | ||
11300 | ;; | ||
11301 | aCC) | ||
11302 | lt_prog_compiler_wl_CXX='-Wl,' | ||
11303 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | ||
11304 | case "$host_cpu" in | ||
11305 | hppa*64*|ia64*) | ||
11306 | # +Z the default | ||
11307 | ;; | ||
11308 | *) | ||
11309 | lt_prog_compiler_pic_CXX='+Z' | ||
11310 | ;; | ||
11311 | esac | ||
11312 | ;; | ||
11313 | *) | ||
11314 | ;; | ||
11315 | esac | ||
11316 | ;; | ||
11317 | irix5* | irix6* | nonstopux*) | ||
11318 | case $cc_basename in | ||
11319 | CC) | ||
11320 | lt_prog_compiler_wl_CXX='-Wl,' | ||
11321 | lt_prog_compiler_static_CXX='-non_shared' | ||
11322 | # CC pic flag -KPIC is the default. | ||
11323 | ;; | ||
11324 | *) | ||
11325 | ;; | ||
11326 | esac | ||
11327 | ;; | ||
11328 | linux*) | ||
11329 | case $cc_basename in | ||
11330 | KCC) | ||
11331 | # KAI C++ Compiler | ||
11332 | lt_prog_compiler_wl_CXX='--backend -Wl,' | ||
11333 | lt_prog_compiler_pic_CXX='-fPIC' | ||
11334 | ;; | ||
11335 | icpc) | ||
11336 | # Intel C++ | ||
11337 | lt_prog_compiler_wl_CXX='-Wl,' | ||
11338 | lt_prog_compiler_pic_CXX='-KPIC' | ||
11339 | lt_prog_compiler_static_CXX='-static' | ||
11340 | ;; | ||
11341 | cxx) | ||
11342 | # Compaq C++ | ||
11343 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
11344 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
11345 | lt_prog_compiler_pic_CXX= | ||
11346 | lt_prog_compiler_static_CXX='-non_shared' | ||
11347 | ;; | ||
11348 | *) | ||
11349 | ;; | ||
11350 | esac | ||
11351 | ;; | ||
11352 | lynxos*) | ||
11353 | ;; | ||
11354 | m88k*) | ||
11355 | ;; | ||
11356 | mvs*) | ||
11357 | case $cc_basename in | ||
11358 | cxx) | ||
11359 | lt_prog_compiler_pic_CXX='-W c,exportall' | ||
11360 | ;; | ||
11361 | *) | ||
11362 | ;; | ||
11363 | esac | ||
11364 | ;; | ||
11365 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
11366 | ;; | ||
11367 | osf3* | osf4* | osf5*) | ||
11368 | case $cc_basename in | ||
11369 | KCC) | ||
11370 | lt_prog_compiler_wl_CXX='--backend -Wl,' | ||
11371 | ;; | ||
11372 | RCC) | ||
11373 | # Rational C++ 2.4.1 | ||
11374 | lt_prog_compiler_pic_CXX='-pic' | ||
11375 | ;; | ||
11376 | cxx) | ||
11377 | # Digital/Compaq C++ | ||
11378 | lt_prog_compiler_wl_CXX='-Wl,' | ||
11379 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
11380 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
11381 | lt_prog_compiler_pic_CXX= | ||
11382 | lt_prog_compiler_static_CXX='-non_shared' | ||
11383 | ;; | ||
11384 | *) | ||
11385 | ;; | ||
11386 | esac | ||
11387 | ;; | ||
11388 | psos*) | ||
11389 | ;; | ||
11390 | sco*) | ||
11391 | case $cc_basename in | ||
11392 | CC) | ||
11393 | lt_prog_compiler_pic_CXX='-fPIC' | ||
11394 | ;; | ||
11395 | *) | ||
11396 | ;; | ||
11397 | esac | ||
11398 | ;; | ||
11399 | solaris*) | ||
11400 | case $cc_basename in | ||
11401 | CC) | ||
11402 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
11403 | lt_prog_compiler_pic_CXX='-KPIC' | ||
11404 | lt_prog_compiler_static_CXX='-Bstatic' | ||
11405 | lt_prog_compiler_wl_CXX='-Qoption ld ' | ||
11406 | ;; | ||
11407 | gcx) | ||
11408 | # Green Hills C++ Compiler | ||
11409 | lt_prog_compiler_pic_CXX='-PIC' | ||
11410 | ;; | ||
11411 | *) | ||
11412 | ;; | ||
11413 | esac | ||
11414 | ;; | ||
11415 | sunos4*) | ||
11416 | case $cc_basename in | ||
11417 | CC) | ||
11418 | # Sun C++ 4.x | ||
11419 | lt_prog_compiler_pic_CXX='-pic' | ||
11420 | lt_prog_compiler_static_CXX='-Bstatic' | ||
11421 | ;; | ||
11422 | lcc) | ||
11423 | # Lucid | ||
11424 | lt_prog_compiler_pic_CXX='-pic' | ||
11425 | ;; | ||
11426 | *) | ||
11427 | ;; | ||
11428 | esac | ||
11429 | ;; | ||
11430 | tandem*) | ||
11431 | case $cc_basename in | ||
11432 | NCC) | ||
11433 | # NonStop-UX NCC 3.20 | ||
11434 | lt_prog_compiler_pic_CXX='-KPIC' | ||
11435 | ;; | ||
11436 | *) | ||
11437 | ;; | ||
11438 | esac | ||
11439 | ;; | ||
11440 | unixware*) | ||
11441 | ;; | ||
11442 | vxworks*) | ||
11443 | ;; | ||
11444 | *) | ||
11445 | lt_prog_compiler_can_build_shared_CXX=no | ||
11446 | ;; | ||
11447 | esac | ||
11448 | fi | ||
11449 | |||
11450 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | ||
11451 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 | ||
11452 | |||
11453 | # | ||
11454 | # Check to make sure the PIC flag actually works. | ||
11455 | # | ||
11456 | if test -n "$lt_prog_compiler_pic_CXX"; then | ||
11457 | |||
11458 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | ||
11459 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 | ||
11460 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | ||
11461 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11462 | else | ||
11463 | lt_prog_compiler_pic_works_CXX=no | ||
11464 | ac_outfile=conftest.$ac_objext | ||
11465 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
11466 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | ||
11467 | # Insert the option either (1) after the last *FLAGS variable, or | ||
11468 | # (2) before a word containing "conftest.", or (3) at the end. | ||
11469 | # Note that $ac_compile itself does not contain backslashes and begins | ||
11470 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
11471 | # The option is referenced via a variable to avoid confusing sed. | ||
11472 | lt_compile=`echo "$ac_compile" | $SED \ | ||
11473 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
11474 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
11475 | -e 's:$: $lt_compiler_flag:'` | ||
11476 | (eval echo "\"\$as_me:11476: $lt_compile\"" >&5) | ||
11477 | (eval "$lt_compile" 2>conftest.err) | ||
11478 | ac_status=$? | ||
11479 | cat conftest.err >&5 | ||
11480 | echo "$as_me:11480: \$? = $ac_status" >&5 | ||
11481 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
11482 | # The compiler can only warn and ignore the option if not recognized | ||
11483 | # So say no if there are warnings | ||
11484 | if test ! -s conftest.err; then | ||
11485 | lt_prog_compiler_pic_works_CXX=yes | ||
11486 | fi | ||
11487 | fi | ||
11488 | $rm conftest* | ||
11489 | |||
11490 | fi | ||
11491 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | ||
11492 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 | ||
11493 | |||
11494 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | ||
11495 | case $lt_prog_compiler_pic_CXX in | ||
11496 | "" | " "*) ;; | ||
11497 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | ||
11498 | esac | ||
11499 | else | ||
11500 | lt_prog_compiler_pic_CXX= | ||
11501 | lt_prog_compiler_can_build_shared_CXX=no | ||
11502 | fi | ||
11503 | |||
11504 | fi | ||
11505 | case "$host_os" in | ||
11506 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
11507 | *djgpp*) | ||
11508 | lt_prog_compiler_pic_CXX= | ||
11509 | ;; | ||
11510 | *) | ||
11511 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | ||
11512 | ;; | ||
11513 | esac | ||
11514 | |||
11515 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
11516 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | ||
11517 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | ||
11518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11519 | else | ||
11520 | lt_cv_prog_compiler_c_o_CXX=no | ||
11521 | $rm -r conftest 2>/dev/null | ||
11522 | mkdir conftest | ||
11523 | cd conftest | ||
11524 | mkdir out | ||
11525 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
11526 | |||
11527 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
11528 | # Insert the option either (1) after the last *FLAGS variable, or | ||
11529 | # (2) before a word containing "conftest.", or (3) at the end. | ||
11530 | # Note that $ac_compile itself does not contain backslashes and begins | ||
11531 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
11532 | lt_compile=`echo "$ac_compile" | $SED \ | ||
11533 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
11534 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
11535 | -e 's:$: $lt_compiler_flag:'` | ||
11536 | (eval echo "\"\$as_me:11536: $lt_compile\"" >&5) | ||
11537 | (eval "$lt_compile" 2>out/conftest.err) | ||
11538 | ac_status=$? | ||
11539 | cat out/conftest.err >&5 | ||
11540 | echo "$as_me:11540: \$? = $ac_status" >&5 | ||
11541 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
11542 | then | ||
11543 | # The compiler can only warn and ignore the option if not recognized | ||
11544 | # So say no if there are warnings | ||
11545 | if test ! -s out/conftest.err; then | ||
11546 | lt_cv_prog_compiler_c_o_CXX=yes | ||
11547 | fi | ||
11548 | fi | ||
11549 | chmod u+w . | ||
11550 | $rm conftest* | ||
11551 | # SGI C++ compiler will create directory out/ii_files/ for | ||
11552 | # template instantiation | ||
11553 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | ||
11554 | $rm out/* && rmdir out | ||
11555 | cd .. | ||
11556 | rmdir conftest | ||
11557 | $rm conftest* | ||
11558 | |||
11559 | fi | ||
11560 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | ||
11561 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 | ||
11562 | |||
11563 | |||
11564 | hard_links="nottested" | ||
11565 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | ||
11566 | # do not overwrite the value of need_locks provided by the user | ||
11567 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | ||
11568 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | ||
11569 | hard_links=yes | ||
11570 | $rm conftest* | ||
11571 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
11572 | touch conftest.a | ||
11573 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
11574 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
11575 | echo "$as_me:$LINENO: result: $hard_links" >&5 | ||
11576 | echo "${ECHO_T}$hard_links" >&6 | ||
11577 | if test "$hard_links" = no; then | ||
11578 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
11579 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
11580 | need_locks=warn | ||
11581 | fi | ||
11582 | else | ||
11583 | need_locks=no | ||
11584 | fi | ||
11585 | |||
11586 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
11587 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | ||
11588 | |||
11589 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
11590 | case $host_os in | ||
11591 | aix4* | aix5*) | ||
11592 | # If we're using GNU nm, then we don't want the "-C" option. | ||
11593 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
11594 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | ||
11595 | export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | ||
11596 | else | ||
11597 | export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | ||
11598 | fi | ||
11599 | ;; | ||
11600 | pw32*) | ||
11601 | export_symbols_cmds_CXX="$ltdll_cmds" | ||
11602 | ;; | ||
11603 | cygwin* | mingw*) | ||
11604 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | ||
11605 | ;; | ||
11606 | linux*) | ||
11607 | link_all_deplibs_CXX=no | ||
11608 | ;; | ||
11609 | *) | ||
11610 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
11611 | ;; | ||
11612 | esac | ||
11613 | |||
11614 | echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | ||
11615 | echo "${ECHO_T}$ld_shlibs_CXX" >&6 | ||
11616 | test "$ld_shlibs_CXX" = no && can_build_shared=no | ||
11617 | |||
11618 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
11619 | if test "$GCC" = yes; then | ||
11620 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
11621 | fi | ||
11622 | |||
11623 | # | ||
11624 | # Do we need to explicitly link libc? | ||
11625 | # | ||
11626 | case "x$archive_cmds_need_lc_CXX" in | ||
11627 | x|xyes) | ||
11628 | # Assume -lc should be added | ||
11629 | archive_cmds_need_lc_CXX=yes | ||
11630 | |||
11631 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
11632 | case $archive_cmds_CXX in | ||
11633 | *'~'*) | ||
11634 | # FIXME: we may have to deal with multi-command sequences. | ||
11635 | ;; | ||
11636 | '$CC '*) | ||
11637 | # Test whether the compiler implicitly links with -lc since on some | ||
11638 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
11639 | # to ld, don't add -lc before -lgcc. | ||
11640 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | ||
11641 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | ||
11642 | $rm conftest* | ||
11643 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
11644 | |||
11645 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11646 | (eval $ac_compile) 2>&5 | ||
11647 | ac_status=$? | ||
11648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11649 | (exit $ac_status); } 2>conftest.err; then | ||
11650 | soname=conftest | ||
11651 | lib=conftest | ||
11652 | libobjs=conftest.$ac_objext | ||
11653 | deplibs= | ||
11654 | wl=$lt_prog_compiler_wl_CXX | ||
11655 | compiler_flags=-v | ||
11656 | linker_flags=-v | ||
11657 | verstring= | ||
11658 | output_objdir=. | ||
11659 | libname=conftest | ||
11660 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | ||
11661 | allow_undefined_flag_CXX= | ||
11662 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | ||
11663 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
11664 | ac_status=$? | ||
11665 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11666 | (exit $ac_status); } | ||
11667 | then | ||
11668 | archive_cmds_need_lc_CXX=no | ||
11669 | else | ||
11670 | archive_cmds_need_lc_CXX=yes | ||
11671 | fi | ||
11672 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | ||
11673 | else | ||
11674 | cat conftest.err 1>&5 | ||
11675 | fi | ||
11676 | $rm conftest* | ||
11677 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | ||
11678 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 | ||
11679 | ;; | ||
11680 | esac | ||
11681 | fi | ||
11682 | ;; | ||
11683 | esac | ||
11684 | |||
11685 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | ||
11686 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | ||
11687 | library_names_spec= | ||
11688 | libname_spec='lib$name' | ||
11689 | soname_spec= | ||
11690 | shrext_cmds=".so" | ||
11691 | postinstall_cmds= | ||
11692 | postuninstall_cmds= | ||
11693 | finish_cmds= | ||
11694 | finish_eval= | ||
11695 | shlibpath_var= | ||
11696 | shlibpath_overrides_runpath=unknown | ||
11697 | version_type=none | ||
11698 | dynamic_linker="$host_os ld.so" | ||
11699 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
11700 | if test "$GCC" = yes; then | ||
11701 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
11702 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | ||
11703 | # if the path contains ";" then we assume it to be the separator | ||
11704 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
11705 | # assumed that no part of a normal pathname contains ";" but that should | ||
11706 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
11707 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
11708 | else | ||
11709 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
11710 | fi | ||
11711 | else | ||
11712 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
11713 | fi | ||
11714 | need_lib_prefix=unknown | ||
11715 | hardcode_into_libs=no | ||
11716 | |||
11717 | # when you set need_version to no, make sure it does not cause -set_version | ||
11718 | # flags to be left without arguments | ||
11719 | need_version=unknown | ||
11720 | |||
11721 | case $host_os in | ||
11722 | aix3*) | ||
11723 | version_type=linux | ||
11724 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
11725 | shlibpath_var=LIBPATH | ||
11726 | |||
11727 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
11728 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11729 | ;; | ||
11730 | |||
11731 | aix4* | aix5*) | ||
11732 | version_type=linux | ||
11733 | need_lib_prefix=no | ||
11734 | need_version=no | ||
11735 | hardcode_into_libs=yes | ||
11736 | if test "$host_cpu" = ia64; then | ||
11737 | # AIX 5 supports IA64 | ||
11738 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
11739 | shlibpath_var=LD_LIBRARY_PATH | ||
11740 | else | ||
11741 | # With GCC up to 2.95.x, collect2 would create an import file | ||
11742 | # for dependence libraries. The import file would start with | ||
11743 | # the line `#! .'. This would cause the generated library to | ||
11744 | # depend on `.', always an invalid library. This was fixed in | ||
11745 | # development snapshots of GCC prior to 3.0. | ||
11746 | case $host_os in | ||
11747 | aix4 | aix4.[01] | aix4.[01].*) | ||
11748 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
11749 | echo ' yes ' | ||
11750 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | ||
11751 | : | ||
11752 | else | ||
11753 | can_build_shared=no | ||
11754 | fi | ||
11755 | ;; | ||
11756 | esac | ||
11757 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
11758 | # soname into executable. Probably we can add versioning support to | ||
11759 | # collect2, so additional links can be useful in future. | ||
11760 | if test "$aix_use_runtimelinking" = yes; then | ||
11761 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
11762 | # instead of lib<name>.a to let people know that these are not | ||
11763 | # typical AIX shared libraries. | ||
11764 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11765 | else | ||
11766 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
11767 | # and later when we are not doing run time linking. | ||
11768 | library_names_spec='${libname}${release}.a $libname.a' | ||
11769 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11770 | fi | ||
11771 | shlibpath_var=LIBPATH | ||
11772 | fi | ||
11773 | ;; | ||
11774 | |||
11775 | amigaos*) | ||
11776 | library_names_spec='$libname.ixlibrary $libname.a' | ||
11777 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
11778 | 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' | ||
11779 | ;; | ||
11780 | |||
11781 | beos*) | ||
11782 | library_names_spec='${libname}${shared_ext}' | ||
11783 | dynamic_linker="$host_os ld.so" | ||
11784 | shlibpath_var=LIBRARY_PATH | ||
11785 | ;; | ||
11786 | |||
11787 | bsdi4*) | ||
11788 | version_type=linux | ||
11789 | need_version=no | ||
11790 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11791 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11792 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
11793 | shlibpath_var=LD_LIBRARY_PATH | ||
11794 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
11795 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
11796 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
11797 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
11798 | # libtool to hard-code these into programs | ||
11799 | ;; | ||
11800 | |||
11801 | cygwin* | mingw* | pw32*) | ||
11802 | version_type=windows | ||
11803 | shrext_cmds=".dll" | ||
11804 | need_version=no | ||
11805 | need_lib_prefix=no | ||
11806 | |||
11807 | case $GCC,$host_os in | ||
11808 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
11809 | library_names_spec='$libname.dll.a' | ||
11810 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
11811 | postinstall_cmds='base_file=`basename \${file}`~ | ||
11812 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | ||
11813 | dldir=$destdir/`dirname \$dlpath`~ | ||
11814 | test -d \$dldir || mkdir -p \$dldir~ | ||
11815 | $install_prog $dir/$dlname \$dldir/$dlname' | ||
11816 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
11817 | dlpath=$dir/\$dldll~ | ||
11818 | $rm \$dlpath' | ||
11819 | shlibpath_overrides_runpath=yes | ||
11820 | |||
11821 | case $host_os in | ||
11822 | cygwin*) | ||
11823 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
11824 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
11825 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
11826 | ;; | ||
11827 | mingw*) | ||
11828 | # MinGW DLLs use traditional 'lib' prefix | ||
11829 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
11830 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
11831 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | ||
11832 | # It is most probably a Windows format PATH printed by | ||
11833 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
11834 | # path with ; separators, and with drive letters. We can handle the | ||
11835 | # drive letters (cygwin fileutils understands them), so leave them, | ||
11836 | # especially as we might pass files found there to a mingw objdump, | ||
11837 | # which wouldn't understand a cygwinified path. Ahh. | ||
11838 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
11839 | else | ||
11840 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
11841 | fi | ||
11842 | ;; | ||
11843 | pw32*) | ||
11844 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
11845 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | ||
11846 | ;; | ||
11847 | esac | ||
11848 | ;; | ||
11849 | |||
11850 | *) | ||
11851 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
11852 | ;; | ||
11853 | esac | ||
11854 | dynamic_linker='Win32 ld.exe' | ||
11855 | # FIXME: first we should search . and the directory the executable is in | ||
11856 | shlibpath_var=PATH | ||
11857 | ;; | ||
11858 | |||
11859 | darwin* | rhapsody*) | ||
11860 | dynamic_linker="$host_os dyld" | ||
11861 | version_type=darwin | ||
11862 | need_lib_prefix=no | ||
11863 | need_version=no | ||
11864 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
11865 | soname_spec='${libname}${release}${major}$shared_ext' | ||
11866 | shlibpath_overrides_runpath=yes | ||
11867 | shlibpath_var=DYLD_LIBRARY_PATH | ||
11868 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | ||
11869 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | ||
11870 | if test "$GCC" = yes; then | ||
11871 | 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"` | ||
11872 | else | ||
11873 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | ||
11874 | fi | ||
11875 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
11876 | ;; | ||
11877 | |||
11878 | dgux*) | ||
11879 | version_type=linux | ||
11880 | need_lib_prefix=no | ||
11881 | need_version=no | ||
11882 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
11883 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11884 | shlibpath_var=LD_LIBRARY_PATH | ||
11885 | ;; | ||
11886 | |||
11887 | freebsd1*) | ||
11888 | dynamic_linker=no | ||
11889 | ;; | ||
11890 | |||
11891 | kfreebsd*-gnu) | ||
11892 | version_type=linux | ||
11893 | need_lib_prefix=no | ||
11894 | need_version=no | ||
11895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
11896 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11897 | shlibpath_var=LD_LIBRARY_PATH | ||
11898 | shlibpath_overrides_runpath=no | ||
11899 | hardcode_into_libs=yes | ||
11900 | dynamic_linker='GNU ld.so' | ||
11901 | ;; | ||
11902 | |||
11903 | freebsd*) | ||
11904 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | ||
11905 | version_type=freebsd-$objformat | ||
11906 | case $version_type in | ||
11907 | freebsd-elf*) | ||
11908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
11909 | need_version=no | ||
11910 | need_lib_prefix=no | ||
11911 | ;; | ||
11912 | freebsd-*) | ||
11913 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
11914 | need_version=yes | ||
11915 | ;; | ||
11916 | esac | ||
11917 | shlibpath_var=LD_LIBRARY_PATH | ||
11918 | case $host_os in | ||
11919 | freebsd2*) | ||
11920 | shlibpath_overrides_runpath=yes | ||
11921 | ;; | ||
11922 | freebsd3.01* | freebsdelf3.01*) | ||
11923 | shlibpath_overrides_runpath=yes | ||
11924 | hardcode_into_libs=yes | ||
11925 | ;; | ||
11926 | *) # from 3.2 on | ||
11927 | shlibpath_overrides_runpath=no | ||
11928 | hardcode_into_libs=yes | ||
11929 | ;; | ||
11930 | esac | ||
11931 | ;; | ||
11932 | |||
11933 | gnu*) | ||
11934 | version_type=linux | ||
11935 | need_lib_prefix=no | ||
11936 | need_version=no | ||
11937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
11938 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11939 | shlibpath_var=LD_LIBRARY_PATH | ||
11940 | hardcode_into_libs=yes | ||
11941 | ;; | ||
11942 | |||
11943 | hpux9* | hpux10* | hpux11*) | ||
11944 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
11945 | # link against other versions. | ||
11946 | version_type=sunos | ||
11947 | need_lib_prefix=no | ||
11948 | need_version=no | ||
11949 | case "$host_cpu" in | ||
11950 | ia64*) | ||
11951 | shrext_cmds='.so' | ||
11952 | hardcode_into_libs=yes | ||
11953 | dynamic_linker="$host_os dld.so" | ||
11954 | shlibpath_var=LD_LIBRARY_PATH | ||
11955 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
11956 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11957 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11958 | if test "X$HPUX_IA64_MODE" = X32; then | ||
11959 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
11960 | else | ||
11961 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
11962 | fi | ||
11963 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
11964 | ;; | ||
11965 | hppa*64*) | ||
11966 | shrext_cmds='.sl' | ||
11967 | hardcode_into_libs=yes | ||
11968 | dynamic_linker="$host_os dld.sl" | ||
11969 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
11970 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
11971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11972 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11973 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
11974 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
11975 | ;; | ||
11976 | *) | ||
11977 | shrext_cmds='.sl' | ||
11978 | dynamic_linker="$host_os dld.sl" | ||
11979 | shlibpath_var=SHLIB_PATH | ||
11980 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
11981 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
11982 | soname_spec='${libname}${release}${shared_ext}$major' | ||
11983 | ;; | ||
11984 | esac | ||
11985 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
11986 | postinstall_cmds='chmod 555 $lib' | ||
11987 | ;; | ||
11988 | |||
11989 | irix5* | irix6* | nonstopux*) | ||
11990 | case $host_os in | ||
11991 | nonstopux*) version_type=nonstopux ;; | ||
11992 | *) | ||
11993 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
11994 | version_type=linux | ||
11995 | else | ||
11996 | version_type=irix | ||
11997 | fi ;; | ||
11998 | esac | ||
11999 | need_lib_prefix=no | ||
12000 | need_version=no | ||
12001 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12002 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
12003 | case $host_os in | ||
12004 | irix5* | nonstopux*) | ||
12005 | libsuff= shlibsuff= | ||
12006 | ;; | ||
12007 | *) | ||
12008 | case $LD in # libtool.m4 will add one of these switches to LD | ||
12009 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
12010 | libsuff= shlibsuff= libmagic=32-bit;; | ||
12011 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
12012 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
12013 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
12014 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
12015 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
12016 | esac | ||
12017 | ;; | ||
12018 | esac | ||
12019 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
12020 | shlibpath_overrides_runpath=no | ||
12021 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
12022 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
12023 | hardcode_into_libs=yes | ||
12024 | ;; | ||
12025 | |||
12026 | # No shared lib support for Linux oldld, aout, or coff. | ||
12027 | linux*oldld* | linux*aout* | linux*coff*) | ||
12028 | dynamic_linker=no | ||
12029 | ;; | ||
12030 | |||
12031 | # This must be Linux ELF. | ||
12032 | linux*) | ||
12033 | version_type=linux | ||
12034 | need_lib_prefix=no | ||
12035 | need_version=no | ||
12036 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12037 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12038 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
12039 | shlibpath_var=LD_LIBRARY_PATH | ||
12040 | shlibpath_overrides_runpath=no | ||
12041 | # This implies no fast_install, which is unacceptable. | ||
12042 | # Some rework will be needed to allow for fast_install | ||
12043 | # before this can be enabled. | ||
12044 | hardcode_into_libs=yes | ||
12045 | |||
12046 | # Append ld.so.conf contents to the search path | ||
12047 | if test -f /etc/ld.so.conf; then | ||
12048 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | ||
12049 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
12050 | fi | ||
12051 | |||
12052 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
12053 | # powerpc, because MkLinux only supported shared libraries with the | ||
12054 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
12055 | # most powerpc-linux boxes support dynamic linking these days and | ||
12056 | # people can always --disable-shared, the test was removed, and we | ||
12057 | # assume the GNU/Linux dynamic linker is in use. | ||
12058 | dynamic_linker='GNU/Linux ld.so' | ||
12059 | ;; | ||
12060 | |||
12061 | netbsdelf*-gnu) | ||
12062 | version_type=linux | ||
12063 | need_lib_prefix=no | ||
12064 | need_version=no | ||
12065 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
12066 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12067 | shlibpath_var=LD_LIBRARY_PATH | ||
12068 | shlibpath_overrides_runpath=no | ||
12069 | hardcode_into_libs=yes | ||
12070 | dynamic_linker='NetBSD ld.elf_so' | ||
12071 | ;; | ||
12072 | |||
12073 | knetbsd*-gnu) | ||
12074 | version_type=linux | ||
12075 | need_lib_prefix=no | ||
12076 | need_version=no | ||
12077 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
12078 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12079 | shlibpath_var=LD_LIBRARY_PATH | ||
12080 | shlibpath_overrides_runpath=no | ||
12081 | hardcode_into_libs=yes | ||
12082 | dynamic_linker='GNU ld.so' | ||
12083 | ;; | ||
12084 | |||
12085 | netbsd*) | ||
12086 | version_type=sunos | ||
12087 | need_lib_prefix=no | ||
12088 | need_version=no | ||
12089 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
12090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
12091 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
12092 | dynamic_linker='NetBSD (a.out) ld.so' | ||
12093 | else | ||
12094 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
12095 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12096 | dynamic_linker='NetBSD ld.elf_so' | ||
12097 | fi | ||
12098 | shlibpath_var=LD_LIBRARY_PATH | ||
12099 | shlibpath_overrides_runpath=yes | ||
12100 | hardcode_into_libs=yes | ||
12101 | ;; | ||
12102 | |||
12103 | newsos6) | ||
12104 | version_type=linux | ||
12105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12106 | shlibpath_var=LD_LIBRARY_PATH | ||
12107 | shlibpath_overrides_runpath=yes | ||
12108 | ;; | ||
12109 | |||
12110 | nto-qnx*) | ||
12111 | version_type=linux | ||
12112 | need_lib_prefix=no | ||
12113 | need_version=no | ||
12114 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12115 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12116 | shlibpath_var=LD_LIBRARY_PATH | ||
12117 | shlibpath_overrides_runpath=yes | ||
12118 | ;; | ||
12119 | |||
12120 | openbsd*) | ||
12121 | version_type=sunos | ||
12122 | need_lib_prefix=no | ||
12123 | need_version=yes | ||
12124 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
12125 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
12126 | shlibpath_var=LD_LIBRARY_PATH | ||
12127 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
12128 | case $host_os in | ||
12129 | openbsd2.[89] | openbsd2.[89].*) | ||
12130 | shlibpath_overrides_runpath=no | ||
12131 | ;; | ||
12132 | *) | ||
12133 | shlibpath_overrides_runpath=yes | ||
12134 | ;; | ||
12135 | esac | ||
12136 | else | ||
12137 | shlibpath_overrides_runpath=yes | ||
12138 | fi | ||
12139 | ;; | ||
12140 | |||
12141 | os2*) | ||
12142 | libname_spec='$name' | ||
12143 | shrext_cmds=".dll" | ||
12144 | need_lib_prefix=no | ||
12145 | library_names_spec='$libname${shared_ext} $libname.a' | ||
12146 | dynamic_linker='OS/2 ld.exe' | ||
12147 | shlibpath_var=LIBPATH | ||
12148 | ;; | ||
12149 | |||
12150 | osf3* | osf4* | osf5*) | ||
12151 | version_type=osf | ||
12152 | need_lib_prefix=no | ||
12153 | need_version=no | ||
12154 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12155 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12156 | shlibpath_var=LD_LIBRARY_PATH | ||
12157 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
12158 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
12159 | ;; | ||
12160 | |||
12161 | sco3.2v5*) | ||
12162 | version_type=osf | ||
12163 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12164 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12165 | shlibpath_var=LD_LIBRARY_PATH | ||
12166 | ;; | ||
12167 | |||
12168 | solaris*) | ||
12169 | version_type=linux | ||
12170 | need_lib_prefix=no | ||
12171 | need_version=no | ||
12172 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12173 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12174 | shlibpath_var=LD_LIBRARY_PATH | ||
12175 | shlibpath_overrides_runpath=yes | ||
12176 | hardcode_into_libs=yes | ||
12177 | # ldd complains unless libraries are executable | ||
12178 | postinstall_cmds='chmod +x $lib' | ||
12179 | ;; | ||
12180 | |||
12181 | sunos4*) | ||
12182 | version_type=sunos | ||
12183 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
12184 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
12185 | shlibpath_var=LD_LIBRARY_PATH | ||
12186 | shlibpath_overrides_runpath=yes | ||
12187 | if test "$with_gnu_ld" = yes; then | ||
12188 | need_lib_prefix=no | ||
12189 | fi | ||
12190 | need_version=yes | ||
12191 | ;; | ||
12192 | |||
12193 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
12194 | version_type=linux | ||
12195 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12196 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12197 | shlibpath_var=LD_LIBRARY_PATH | ||
12198 | case $host_vendor in | ||
12199 | sni) | ||
12200 | shlibpath_overrides_runpath=no | ||
12201 | need_lib_prefix=no | ||
12202 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
12203 | runpath_var=LD_RUN_PATH | ||
12204 | ;; | ||
12205 | siemens) | ||
12206 | need_lib_prefix=no | ||
12207 | ;; | ||
12208 | motorola) | ||
12209 | need_lib_prefix=no | ||
12210 | need_version=no | ||
12211 | shlibpath_overrides_runpath=no | ||
12212 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
12213 | ;; | ||
12214 | esac | ||
12215 | ;; | ||
12216 | |||
12217 | sysv4*MP*) | ||
12218 | if test -d /usr/nec ;then | ||
12219 | version_type=linux | ||
12220 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
12221 | soname_spec='$libname${shared_ext}.$major' | ||
12222 | shlibpath_var=LD_LIBRARY_PATH | ||
12223 | fi | ||
12224 | ;; | ||
12225 | |||
12226 | uts4*) | ||
12227 | version_type=linux | ||
12228 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12229 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12230 | shlibpath_var=LD_LIBRARY_PATH | ||
12231 | ;; | ||
12232 | |||
12233 | *) | ||
12234 | dynamic_linker=no | ||
12235 | ;; | ||
12236 | esac | ||
12237 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | ||
12238 | echo "${ECHO_T}$dynamic_linker" >&6 | ||
12239 | test "$dynamic_linker" = no && can_build_shared=no | ||
12240 | |||
12241 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | ||
12242 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | ||
12243 | hardcode_action_CXX= | ||
12244 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | ||
12245 | test -n "$runpath_var CXX" || \ | ||
12246 | test "X$hardcode_automatic_CXX"="Xyes" ; then | ||
12247 | |||
12248 | # We can hardcode non-existant directories. | ||
12249 | if test "$hardcode_direct_CXX" != no && | ||
12250 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
12251 | # have to relink, otherwise we might link with an installed library | ||
12252 | # when we should be linking with a yet-to-be-installed one | ||
12253 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | ||
12254 | test "$hardcode_minus_L_CXX" != no; then | ||
12255 | # Linking always hardcodes the temporary library directory. | ||
12256 | hardcode_action_CXX=relink | ||
12257 | else | ||
12258 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
12259 | hardcode_action_CXX=immediate | ||
12260 | fi | ||
12261 | else | ||
12262 | # We cannot hardcode anything, or else we can only hardcode existing | ||
12263 | # directories. | ||
12264 | hardcode_action_CXX=unsupported | ||
12265 | fi | ||
12266 | echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | ||
12267 | echo "${ECHO_T}$hardcode_action_CXX" >&6 | ||
12268 | |||
12269 | if test "$hardcode_action_CXX" = relink; then | ||
12270 | # Fast installation is not supported | ||
12271 | enable_fast_install=no | ||
12272 | elif test "$shlibpath_overrides_runpath" = yes || | ||
12273 | test "$enable_shared" = no; then | ||
12274 | # Fast installation is not necessary | ||
12275 | enable_fast_install=needless | ||
12276 | fi | ||
12277 | |||
12278 | striplib= | ||
12279 | old_striplib= | ||
12280 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | ||
12281 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | ||
12282 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
12283 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
12284 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
12285 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12286 | echo "${ECHO_T}yes" >&6 | ||
12287 | else | ||
12288 | # FIXME - insert some real tests, host_os isn't really good enough | ||
12289 | case $host_os in | ||
12290 | darwin*) | ||
12291 | if test -n "$STRIP" ; then | ||
12292 | striplib="$STRIP -x" | ||
12293 | echo "$as_me:$LINENO: result: yes" >&5 | ||
12294 | echo "${ECHO_T}yes" >&6 | ||
12295 | else | ||
12296 | echo "$as_me:$LINENO: result: no" >&5 | ||
12297 | echo "${ECHO_T}no" >&6 | ||
12298 | fi | ||
12299 | ;; | ||
12300 | *) | ||
12301 | echo "$as_me:$LINENO: result: no" >&5 | ||
12302 | echo "${ECHO_T}no" >&6 | ||
12303 | ;; | ||
12304 | esac | ||
12305 | fi | ||
12306 | |||
12307 | if test "x$enable_dlopen" != xyes; then | ||
12308 | enable_dlopen=unknown | ||
12309 | enable_dlopen_self=unknown | ||
12310 | enable_dlopen_self_static=unknown | ||
12311 | else | ||
12312 | lt_cv_dlopen=no | ||
12313 | lt_cv_dlopen_libs= | ||
12314 | |||
12315 | case $host_os in | ||
12316 | beos*) | ||
12317 | lt_cv_dlopen="load_add_on" | ||
12318 | lt_cv_dlopen_libs= | ||
12319 | lt_cv_dlopen_self=yes | ||
12320 | ;; | ||
12321 | |||
12322 | mingw* | pw32*) | ||
12323 | lt_cv_dlopen="LoadLibrary" | ||
12324 | lt_cv_dlopen_libs= | ||
12325 | ;; | ||
12326 | |||
12327 | cygwin*) | ||
12328 | lt_cv_dlopen="dlopen" | ||
12329 | lt_cv_dlopen_libs= | ||
12330 | ;; | ||
12331 | |||
12332 | darwin*) | ||
12333 | # if libdl is installed we need to link against it | ||
12334 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
12335 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
12336 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
12337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12338 | else | ||
12339 | ac_check_lib_save_LIBS=$LIBS | ||
12340 | LIBS="-ldl $LIBS" | ||
12341 | cat >conftest.$ac_ext <<_ACEOF | ||
12342 | /* confdefs.h. */ | ||
12343 | _ACEOF | ||
12344 | cat confdefs.h >>conftest.$ac_ext | ||
12345 | cat >>conftest.$ac_ext <<_ACEOF | ||
12346 | /* end confdefs.h. */ | ||
12347 | |||
12348 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12349 | #ifdef __cplusplus | ||
12350 | extern "C" | ||
12351 | #endif | ||
12352 | /* We use char because int might match the return type of a gcc2 | ||
12353 | builtin and then its argument prototype would still apply. */ | ||
12354 | char dlopen (); | ||
12355 | int | ||
12356 | main () | ||
12357 | { | ||
12358 | dlopen (); | ||
12359 | ; | ||
12360 | return 0; | ||
12361 | } | ||
12362 | _ACEOF | ||
12363 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12364 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12365 | (eval $ac_link) 2>conftest.er1 | ||
12366 | ac_status=$? | ||
12367 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12368 | rm -f conftest.er1 | ||
12369 | cat conftest.err >&5 | ||
12370 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12371 | (exit $ac_status); } && | ||
12372 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
12373 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12374 | (eval $ac_try) 2>&5 | ||
12375 | ac_status=$? | ||
12376 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12377 | (exit $ac_status); }; } && | ||
12378 | { ac_try='test -s conftest$ac_exeext' | ||
12379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12380 | (eval $ac_try) 2>&5 | ||
12381 | ac_status=$? | ||
12382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12383 | (exit $ac_status); }; }; then | ||
12384 | ac_cv_lib_dl_dlopen=yes | ||
12385 | else | ||
12386 | echo "$as_me: failed program was:" >&5 | ||
12387 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12388 | |||
12389 | ac_cv_lib_dl_dlopen=no | ||
12390 | fi | ||
12391 | rm -f conftest.err conftest.$ac_objext \ | ||
12392 | conftest$ac_exeext conftest.$ac_ext | ||
12393 | LIBS=$ac_check_lib_save_LIBS | ||
12394 | fi | ||
12395 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
12396 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
12397 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
12398 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
12399 | else | ||
12400 | |||
12401 | lt_cv_dlopen="dyld" | ||
12402 | lt_cv_dlopen_libs= | ||
12403 | lt_cv_dlopen_self=yes | ||
12404 | |||
12405 | fi | ||
12406 | |||
12407 | ;; | ||
12408 | |||
12409 | *) | ||
12410 | echo "$as_me:$LINENO: checking for shl_load" >&5 | ||
12411 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | ||
12412 | if test "${ac_cv_func_shl_load+set}" = set; then | ||
12413 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12414 | else | ||
12415 | cat >conftest.$ac_ext <<_ACEOF | ||
12416 | /* confdefs.h. */ | ||
12417 | _ACEOF | ||
12418 | cat confdefs.h >>conftest.$ac_ext | ||
12419 | cat >>conftest.$ac_ext <<_ACEOF | ||
12420 | /* end confdefs.h. */ | ||
12421 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | ||
12422 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12423 | #define shl_load innocuous_shl_load | ||
12424 | |||
12425 | /* System header to define __stub macros and hopefully few prototypes, | ||
12426 | which can conflict with char shl_load (); below. | ||
12427 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12428 | <limits.h> exists even on freestanding compilers. */ | ||
12429 | |||
12430 | #ifdef __STDC__ | ||
12431 | # include <limits.h> | ||
12432 | #else | ||
12433 | # include <assert.h> | ||
12434 | #endif | ||
12435 | |||
12436 | #undef shl_load | ||
12437 | |||
12438 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12439 | #ifdef __cplusplus | ||
12440 | extern "C" | ||
12441 | { | ||
12442 | #endif | ||
12443 | /* We use char because int might match the return type of a gcc2 | ||
12444 | builtin and then its argument prototype would still apply. */ | ||
12445 | char shl_load (); | ||
12446 | /* The GNU C library defines this for functions which it implements | ||
12447 | to always fail with ENOSYS. Some functions are actually named | ||
12448 | something starting with __ and the normal name is an alias. */ | ||
12449 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | ||
12450 | choke me | ||
12451 | #else | ||
12452 | char (*f) () = shl_load; | ||
12453 | #endif | ||
12454 | #ifdef __cplusplus | ||
12455 | } | ||
12456 | #endif | ||
12457 | |||
12458 | int | ||
12459 | main () | ||
12460 | { | ||
12461 | return f != shl_load; | ||
12462 | ; | ||
12463 | return 0; | ||
12464 | } | ||
12465 | _ACEOF | ||
12466 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12467 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12468 | (eval $ac_link) 2>conftest.er1 | ||
12469 | ac_status=$? | ||
12470 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12471 | rm -f conftest.er1 | ||
12472 | cat conftest.err >&5 | ||
12473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12474 | (exit $ac_status); } && | ||
12475 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
12476 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12477 | (eval $ac_try) 2>&5 | ||
12478 | ac_status=$? | ||
12479 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12480 | (exit $ac_status); }; } && | ||
12481 | { ac_try='test -s conftest$ac_exeext' | ||
12482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12483 | (eval $ac_try) 2>&5 | ||
12484 | ac_status=$? | ||
12485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12486 | (exit $ac_status); }; }; then | ||
12487 | ac_cv_func_shl_load=yes | ||
12488 | else | ||
12489 | echo "$as_me: failed program was:" >&5 | ||
12490 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12491 | |||
12492 | ac_cv_func_shl_load=no | ||
12493 | fi | ||
12494 | rm -f conftest.err conftest.$ac_objext \ | ||
12495 | conftest$ac_exeext conftest.$ac_ext | ||
12496 | fi | ||
12497 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | ||
12498 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | ||
12499 | if test $ac_cv_func_shl_load = yes; then | ||
12500 | lt_cv_dlopen="shl_load" | ||
12501 | else | ||
12502 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | ||
12503 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | ||
12504 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | ||
12505 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12506 | else | ||
12507 | ac_check_lib_save_LIBS=$LIBS | ||
12508 | LIBS="-ldld $LIBS" | ||
12509 | cat >conftest.$ac_ext <<_ACEOF | ||
12510 | /* confdefs.h. */ | ||
12511 | _ACEOF | ||
12512 | cat confdefs.h >>conftest.$ac_ext | ||
12513 | cat >>conftest.$ac_ext <<_ACEOF | ||
12514 | /* end confdefs.h. */ | ||
12515 | |||
12516 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12517 | #ifdef __cplusplus | ||
12518 | extern "C" | ||
12519 | #endif | ||
12520 | /* We use char because int might match the return type of a gcc2 | ||
12521 | builtin and then its argument prototype would still apply. */ | ||
12522 | char shl_load (); | ||
12523 | int | ||
12524 | main () | ||
12525 | { | ||
12526 | shl_load (); | ||
12527 | ; | ||
12528 | return 0; | ||
12529 | } | ||
12530 | _ACEOF | ||
12531 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12532 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12533 | (eval $ac_link) 2>conftest.er1 | ||
12534 | ac_status=$? | ||
12535 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12536 | rm -f conftest.er1 | ||
12537 | cat conftest.err >&5 | ||
12538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12539 | (exit $ac_status); } && | ||
12540 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
12541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12542 | (eval $ac_try) 2>&5 | ||
12543 | ac_status=$? | ||
12544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12545 | (exit $ac_status); }; } && | ||
12546 | { ac_try='test -s conftest$ac_exeext' | ||
12547 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12548 | (eval $ac_try) 2>&5 | ||
12549 | ac_status=$? | ||
12550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12551 | (exit $ac_status); }; }; then | ||
12552 | ac_cv_lib_dld_shl_load=yes | ||
12553 | else | ||
12554 | echo "$as_me: failed program was:" >&5 | ||
12555 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12556 | |||
12557 | ac_cv_lib_dld_shl_load=no | ||
12558 | fi | ||
12559 | rm -f conftest.err conftest.$ac_objext \ | ||
12560 | conftest$ac_exeext conftest.$ac_ext | ||
12561 | LIBS=$ac_check_lib_save_LIBS | ||
12562 | fi | ||
12563 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | ||
12564 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | ||
12565 | if test $ac_cv_lib_dld_shl_load = yes; then | ||
12566 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | ||
12567 | else | ||
12568 | echo "$as_me:$LINENO: checking for dlopen" >&5 | ||
12569 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | ||
12570 | if test "${ac_cv_func_dlopen+set}" = set; then | ||
12571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12572 | else | ||
12573 | cat >conftest.$ac_ext <<_ACEOF | ||
12574 | /* confdefs.h. */ | ||
12575 | _ACEOF | ||
12576 | cat confdefs.h >>conftest.$ac_ext | ||
12577 | cat >>conftest.$ac_ext <<_ACEOF | ||
12578 | /* end confdefs.h. */ | ||
12579 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | ||
12580 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
12581 | #define dlopen innocuous_dlopen | ||
12582 | |||
12583 | /* System header to define __stub macros and hopefully few prototypes, | ||
12584 | which can conflict with char dlopen (); below. | ||
12585 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
12586 | <limits.h> exists even on freestanding compilers. */ | ||
12587 | |||
12588 | #ifdef __STDC__ | ||
12589 | # include <limits.h> | ||
12590 | #else | ||
12591 | # include <assert.h> | ||
12592 | #endif | ||
12593 | |||
12594 | #undef dlopen | ||
12595 | |||
12596 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12597 | #ifdef __cplusplus | ||
12598 | extern "C" | ||
12599 | { | ||
12600 | #endif | ||
12601 | /* We use char because int might match the return type of a gcc2 | ||
12602 | builtin and then its argument prototype would still apply. */ | ||
12603 | char dlopen (); | ||
12604 | /* The GNU C library defines this for functions which it implements | ||
12605 | to always fail with ENOSYS. Some functions are actually named | ||
12606 | something starting with __ and the normal name is an alias. */ | ||
12607 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | ||
12608 | choke me | ||
12609 | #else | ||
12610 | char (*f) () = dlopen; | ||
12611 | #endif | ||
12612 | #ifdef __cplusplus | ||
12613 | } | ||
12614 | #endif | ||
12615 | |||
12616 | int | ||
12617 | main () | ||
12618 | { | ||
12619 | return f != dlopen; | ||
12620 | ; | ||
12621 | return 0; | ||
12622 | } | ||
12623 | _ACEOF | ||
12624 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12625 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12626 | (eval $ac_link) 2>conftest.er1 | ||
12627 | ac_status=$? | ||
12628 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12629 | rm -f conftest.er1 | ||
12630 | cat conftest.err >&5 | ||
12631 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12632 | (exit $ac_status); } && | ||
12633 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
12634 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12635 | (eval $ac_try) 2>&5 | ||
12636 | ac_status=$? | ||
12637 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12638 | (exit $ac_status); }; } && | ||
12639 | { ac_try='test -s conftest$ac_exeext' | ||
12640 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12641 | (eval $ac_try) 2>&5 | ||
12642 | ac_status=$? | ||
12643 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12644 | (exit $ac_status); }; }; then | ||
12645 | ac_cv_func_dlopen=yes | ||
12646 | else | ||
12647 | echo "$as_me: failed program was:" >&5 | ||
12648 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12649 | |||
12650 | ac_cv_func_dlopen=no | ||
12651 | fi | ||
12652 | rm -f conftest.err conftest.$ac_objext \ | ||
12653 | conftest$ac_exeext conftest.$ac_ext | ||
12654 | fi | ||
12655 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | ||
12656 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | ||
12657 | if test $ac_cv_func_dlopen = yes; then | ||
12658 | lt_cv_dlopen="dlopen" | ||
12659 | else | ||
12660 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
12661 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
12662 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
12663 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12664 | else | ||
12665 | ac_check_lib_save_LIBS=$LIBS | ||
12666 | LIBS="-ldl $LIBS" | ||
12667 | cat >conftest.$ac_ext <<_ACEOF | ||
12668 | /* confdefs.h. */ | ||
12669 | _ACEOF | ||
12670 | cat confdefs.h >>conftest.$ac_ext | ||
12671 | cat >>conftest.$ac_ext <<_ACEOF | ||
12672 | /* end confdefs.h. */ | ||
12673 | |||
12674 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12675 | #ifdef __cplusplus | ||
12676 | extern "C" | ||
12677 | #endif | ||
12678 | /* We use char because int might match the return type of a gcc2 | ||
12679 | builtin and then its argument prototype would still apply. */ | ||
12680 | char dlopen (); | ||
12681 | int | ||
12682 | main () | ||
12683 | { | ||
12684 | dlopen (); | ||
12685 | ; | ||
12686 | return 0; | ||
12687 | } | ||
12688 | _ACEOF | ||
12689 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12690 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12691 | (eval $ac_link) 2>conftest.er1 | ||
12692 | ac_status=$? | ||
12693 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12694 | rm -f conftest.er1 | ||
12695 | cat conftest.err >&5 | ||
12696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12697 | (exit $ac_status); } && | ||
12698 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
12699 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12700 | (eval $ac_try) 2>&5 | ||
12701 | ac_status=$? | ||
12702 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12703 | (exit $ac_status); }; } && | ||
12704 | { ac_try='test -s conftest$ac_exeext' | ||
12705 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12706 | (eval $ac_try) 2>&5 | ||
12707 | ac_status=$? | ||
12708 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12709 | (exit $ac_status); }; }; then | ||
12710 | ac_cv_lib_dl_dlopen=yes | ||
12711 | else | ||
12712 | echo "$as_me: failed program was:" >&5 | ||
12713 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12714 | |||
12715 | ac_cv_lib_dl_dlopen=no | ||
12716 | fi | ||
12717 | rm -f conftest.err conftest.$ac_objext \ | ||
12718 | conftest$ac_exeext conftest.$ac_ext | ||
12719 | LIBS=$ac_check_lib_save_LIBS | ||
12720 | fi | ||
12721 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
12722 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
12723 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
12724 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
12725 | else | ||
12726 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | ||
12727 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | ||
12728 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | ||
12729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12730 | else | ||
12731 | ac_check_lib_save_LIBS=$LIBS | ||
12732 | LIBS="-lsvld $LIBS" | ||
12733 | cat >conftest.$ac_ext <<_ACEOF | ||
12734 | /* confdefs.h. */ | ||
12735 | _ACEOF | ||
12736 | cat confdefs.h >>conftest.$ac_ext | ||
12737 | cat >>conftest.$ac_ext <<_ACEOF | ||
12738 | /* end confdefs.h. */ | ||
12739 | |||
12740 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12741 | #ifdef __cplusplus | ||
12742 | extern "C" | ||
12743 | #endif | ||
12744 | /* We use char because int might match the return type of a gcc2 | ||
12745 | builtin and then its argument prototype would still apply. */ | ||
12746 | char dlopen (); | ||
12747 | int | ||
12748 | main () | ||
12749 | { | ||
12750 | dlopen (); | ||
12751 | ; | ||
12752 | return 0; | ||
12753 | } | ||
12754 | _ACEOF | ||
12755 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12757 | (eval $ac_link) 2>conftest.er1 | ||
12758 | ac_status=$? | ||
12759 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12760 | rm -f conftest.er1 | ||
12761 | cat conftest.err >&5 | ||
12762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12763 | (exit $ac_status); } && | ||
12764 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
12765 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12766 | (eval $ac_try) 2>&5 | ||
12767 | ac_status=$? | ||
12768 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12769 | (exit $ac_status); }; } && | ||
12770 | { ac_try='test -s conftest$ac_exeext' | ||
12771 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12772 | (eval $ac_try) 2>&5 | ||
12773 | ac_status=$? | ||
12774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12775 | (exit $ac_status); }; }; then | ||
12776 | ac_cv_lib_svld_dlopen=yes | ||
12777 | else | ||
12778 | echo "$as_me: failed program was:" >&5 | ||
12779 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12780 | |||
12781 | ac_cv_lib_svld_dlopen=no | ||
12782 | fi | ||
12783 | rm -f conftest.err conftest.$ac_objext \ | ||
12784 | conftest$ac_exeext conftest.$ac_ext | ||
12785 | LIBS=$ac_check_lib_save_LIBS | ||
12786 | fi | ||
12787 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | ||
12788 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | ||
12789 | if test $ac_cv_lib_svld_dlopen = yes; then | ||
12790 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
12791 | else | ||
12792 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | ||
12793 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | ||
12794 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | ||
12795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12796 | else | ||
12797 | ac_check_lib_save_LIBS=$LIBS | ||
12798 | LIBS="-ldld $LIBS" | ||
12799 | cat >conftest.$ac_ext <<_ACEOF | ||
12800 | /* confdefs.h. */ | ||
12801 | _ACEOF | ||
12802 | cat confdefs.h >>conftest.$ac_ext | ||
12803 | cat >>conftest.$ac_ext <<_ACEOF | ||
12804 | /* end confdefs.h. */ | ||
12805 | |||
12806 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
12807 | #ifdef __cplusplus | ||
12808 | extern "C" | ||
12809 | #endif | ||
12810 | /* We use char because int might match the return type of a gcc2 | ||
12811 | builtin and then its argument prototype would still apply. */ | ||
12812 | char dld_link (); | ||
12813 | int | ||
12814 | main () | ||
12815 | { | ||
12816 | dld_link (); | ||
12817 | ; | ||
12818 | return 0; | ||
12819 | } | ||
12820 | _ACEOF | ||
12821 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
12822 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12823 | (eval $ac_link) 2>conftest.er1 | ||
12824 | ac_status=$? | ||
12825 | grep -v '^ *+' conftest.er1 >conftest.err | ||
12826 | rm -f conftest.er1 | ||
12827 | cat conftest.err >&5 | ||
12828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12829 | (exit $ac_status); } && | ||
12830 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' | ||
12831 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12832 | (eval $ac_try) 2>&5 | ||
12833 | ac_status=$? | ||
12834 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12835 | (exit $ac_status); }; } && | ||
12836 | { ac_try='test -s conftest$ac_exeext' | ||
12837 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
12838 | (eval $ac_try) 2>&5 | ||
12839 | ac_status=$? | ||
12840 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12841 | (exit $ac_status); }; }; then | ||
12842 | ac_cv_lib_dld_dld_link=yes | ||
12843 | else | ||
12844 | echo "$as_me: failed program was:" >&5 | ||
12845 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
12846 | |||
12847 | ac_cv_lib_dld_dld_link=no | ||
12848 | fi | ||
12849 | rm -f conftest.err conftest.$ac_objext \ | ||
12850 | conftest$ac_exeext conftest.$ac_ext | ||
12851 | LIBS=$ac_check_lib_save_LIBS | ||
12852 | fi | ||
12853 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | ||
12854 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | ||
12855 | if test $ac_cv_lib_dld_dld_link = yes; then | ||
12856 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | ||
12857 | fi | ||
12858 | |||
12859 | |||
12860 | fi | ||
12861 | |||
12862 | |||
12863 | fi | ||
12864 | |||
12865 | |||
12866 | fi | ||
12867 | |||
12868 | |||
12869 | fi | ||
12870 | |||
12871 | |||
12872 | fi | ||
12873 | |||
12874 | ;; | ||
12875 | esac | ||
12876 | |||
12877 | if test "x$lt_cv_dlopen" != xno; then | ||
12878 | enable_dlopen=yes | ||
12879 | else | ||
12880 | enable_dlopen=no | ||
12881 | fi | ||
12882 | |||
12883 | case $lt_cv_dlopen in | ||
12884 | dlopen) | ||
12885 | save_CPPFLAGS="$CPPFLAGS" | ||
12886 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
12887 | |||
12888 | save_LDFLAGS="$LDFLAGS" | ||
12889 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
12890 | |||
12891 | save_LIBS="$LIBS" | ||
12892 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
12893 | |||
12894 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | ||
12895 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | ||
12896 | if test "${lt_cv_dlopen_self+set}" = set; then | ||
12897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12898 | else | ||
12899 | if test "$cross_compiling" = yes; then : | ||
12900 | lt_cv_dlopen_self=cross | ||
12901 | else | ||
12902 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
12903 | lt_status=$lt_dlunknown | ||
12904 | cat > conftest.$ac_ext <<EOF | ||
12905 | #line 12905 "configure" | ||
12906 | #include "confdefs.h" | ||
12907 | |||
12908 | #if HAVE_DLFCN_H | ||
12909 | #include <dlfcn.h> | ||
12910 | #endif | ||
12911 | |||
12912 | #include <stdio.h> | ||
12913 | |||
12914 | #ifdef RTLD_GLOBAL | ||
12915 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
12916 | #else | ||
12917 | # ifdef DL_GLOBAL | ||
12918 | # define LT_DLGLOBAL DL_GLOBAL | ||
12919 | # else | ||
12920 | # define LT_DLGLOBAL 0 | ||
12921 | # endif | ||
12922 | #endif | ||
12923 | |||
12924 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
12925 | find out it does not work in some platform. */ | ||
12926 | #ifndef LT_DLLAZY_OR_NOW | ||
12927 | # ifdef RTLD_LAZY | ||
12928 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
12929 | # else | ||
12930 | # ifdef DL_LAZY | ||
12931 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
12932 | # else | ||
12933 | # ifdef RTLD_NOW | ||
12934 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
12935 | # else | ||
12936 | # ifdef DL_NOW | ||
12937 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
12938 | # else | ||
12939 | # define LT_DLLAZY_OR_NOW 0 | ||
12940 | # endif | ||
12941 | # endif | ||
12942 | # endif | ||
12943 | # endif | ||
12944 | #endif | ||
12945 | |||
12946 | #ifdef __cplusplus | ||
12947 | extern "C" void exit (int); | ||
12948 | #endif | ||
12949 | |||
12950 | void fnord() { int i=42;} | ||
12951 | int main () | ||
12952 | { | ||
12953 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
12954 | int status = $lt_dlunknown; | ||
12955 | |||
12956 | if (self) | ||
12957 | { | ||
12958 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
12959 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
12960 | /* dlclose (self); */ | ||
12961 | } | ||
12962 | |||
12963 | exit (status); | ||
12964 | } | ||
12965 | EOF | ||
12966 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
12967 | (eval $ac_link) 2>&5 | ||
12968 | ac_status=$? | ||
12969 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12970 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
12971 | (./conftest; exit; ) 2>/dev/null | ||
12972 | lt_status=$? | ||
12973 | case x$lt_status in | ||
12974 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
12975 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
12976 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | ||
12977 | esac | ||
12978 | else : | ||
12979 | # compilation failed | ||
12980 | lt_cv_dlopen_self=no | ||
12981 | fi | ||
12982 | fi | ||
12983 | rm -fr conftest* | ||
12984 | |||
12985 | |||
12986 | fi | ||
12987 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | ||
12988 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | ||
12989 | |||
12990 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
12991 | LDFLAGS="$LDFLAGS $link_static_flag" | ||
12992 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | ||
12993 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | ||
12994 | if test "${lt_cv_dlopen_self_static+set}" = set; then | ||
12995 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12996 | else | ||
12997 | if test "$cross_compiling" = yes; then : | ||
12998 | lt_cv_dlopen_self_static=cross | ||
12999 | else | ||
13000 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
13001 | lt_status=$lt_dlunknown | ||
13002 | cat > conftest.$ac_ext <<EOF | ||
13003 | #line 13003 "configure" | ||
13004 | #include "confdefs.h" | ||
13005 | |||
13006 | #if HAVE_DLFCN_H | ||
13007 | #include <dlfcn.h> | ||
13008 | #endif | ||
13009 | |||
13010 | #include <stdio.h> | ||
13011 | |||
13012 | #ifdef RTLD_GLOBAL | ||
13013 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
13014 | #else | ||
13015 | # ifdef DL_GLOBAL | ||
13016 | # define LT_DLGLOBAL DL_GLOBAL | ||
13017 | # else | ||
13018 | # define LT_DLGLOBAL 0 | ||
13019 | # endif | ||
13020 | #endif | ||
13021 | |||
13022 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
13023 | find out it does not work in some platform. */ | ||
13024 | #ifndef LT_DLLAZY_OR_NOW | ||
13025 | # ifdef RTLD_LAZY | ||
13026 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
13027 | # else | ||
13028 | # ifdef DL_LAZY | ||
13029 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
13030 | # else | ||
13031 | # ifdef RTLD_NOW | ||
13032 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
13033 | # else | ||
13034 | # ifdef DL_NOW | ||
13035 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
13036 | # else | ||
13037 | # define LT_DLLAZY_OR_NOW 0 | ||
13038 | # endif | ||
13039 | # endif | ||
13040 | # endif | ||
13041 | # endif | ||
13042 | #endif | ||
13043 | |||
13044 | #ifdef __cplusplus | ||
13045 | extern "C" void exit (int); | ||
13046 | #endif | ||
13047 | |||
13048 | void fnord() { int i=42;} | ||
13049 | int main () | ||
13050 | { | ||
13051 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
13052 | int status = $lt_dlunknown; | ||
13053 | |||
13054 | if (self) | ||
13055 | { | ||
13056 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
13057 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
13058 | /* dlclose (self); */ | ||
13059 | } | ||
13060 | |||
13061 | exit (status); | ||
13062 | } | ||
13063 | EOF | ||
13064 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13065 | (eval $ac_link) 2>&5 | ||
13066 | ac_status=$? | ||
13067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13068 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
13069 | (./conftest; exit; ) 2>/dev/null | ||
13070 | lt_status=$? | ||
13071 | case x$lt_status in | ||
13072 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
13073 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
13074 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | ||
13075 | esac | ||
13076 | else : | ||
13077 | # compilation failed | ||
13078 | lt_cv_dlopen_self_static=no | ||
13079 | fi | ||
13080 | fi | ||
13081 | rm -fr conftest* | ||
13082 | |||
13083 | |||
13084 | fi | ||
13085 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | ||
13086 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | ||
13087 | fi | ||
13088 | |||
13089 | CPPFLAGS="$save_CPPFLAGS" | ||
13090 | LDFLAGS="$save_LDFLAGS" | ||
13091 | LIBS="$save_LIBS" | ||
13092 | ;; | ||
13093 | esac | ||
13094 | |||
13095 | case $lt_cv_dlopen_self in | ||
13096 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
13097 | *) enable_dlopen_self=unknown ;; | ||
13098 | esac | ||
13099 | |||
13100 | case $lt_cv_dlopen_self_static in | ||
13101 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
13102 | *) enable_dlopen_self_static=unknown ;; | ||
13103 | esac | ||
13104 | fi | ||
13105 | |||
13106 | |||
13107 | # The else clause should only fire when bootstrapping the | ||
13108 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
13109 | # with your package, and you will get complaints that there are | ||
13110 | # no rules to generate ltmain.sh. | ||
13111 | if test -f "$ltmain"; then | ||
13112 | # See if we are running on zsh, and set the options which allow our commands through | ||
13113 | # without removal of \ escapes. | ||
13114 | if test -n "${ZSH_VERSION+set}" ; then | ||
13115 | setopt NO_GLOB_SUBST | ||
13116 | fi | ||
13117 | # Now quote all the things that may contain metacharacters while being | ||
13118 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
13119 | # variables and quote the copies for generation of the libtool script. | ||
13120 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | ||
13121 | SED SHELL STRIP \ | ||
13122 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
13123 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
13124 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
13125 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
13126 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
13127 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
13128 | old_postinstall_cmds old_postuninstall_cmds \ | ||
13129 | compiler_CXX \ | ||
13130 | CC_CXX \ | ||
13131 | LD_CXX \ | ||
13132 | lt_prog_compiler_wl_CXX \ | ||
13133 | lt_prog_compiler_pic_CXX \ | ||
13134 | lt_prog_compiler_static_CXX \ | ||
13135 | lt_prog_compiler_no_builtin_flag_CXX \ | ||
13136 | export_dynamic_flag_spec_CXX \ | ||
13137 | thread_safe_flag_spec_CXX \ | ||
13138 | whole_archive_flag_spec_CXX \ | ||
13139 | enable_shared_with_static_runtimes_CXX \ | ||
13140 | old_archive_cmds_CXX \ | ||
13141 | old_archive_from_new_cmds_CXX \ | ||
13142 | predep_objects_CXX \ | ||
13143 | postdep_objects_CXX \ | ||
13144 | predeps_CXX \ | ||
13145 | postdeps_CXX \ | ||
13146 | compiler_lib_search_path_CXX \ | ||
13147 | archive_cmds_CXX \ | ||
13148 | archive_expsym_cmds_CXX \ | ||
13149 | postinstall_cmds_CXX \ | ||
13150 | postuninstall_cmds_CXX \ | ||
13151 | old_archive_from_expsyms_cmds_CXX \ | ||
13152 | allow_undefined_flag_CXX \ | ||
13153 | no_undefined_flag_CXX \ | ||
13154 | export_symbols_cmds_CXX \ | ||
13155 | hardcode_libdir_flag_spec_CXX \ | ||
13156 | hardcode_libdir_flag_spec_ld_CXX \ | ||
13157 | hardcode_libdir_separator_CXX \ | ||
13158 | hardcode_automatic_CXX \ | ||
13159 | module_cmds_CXX \ | ||
13160 | module_expsym_cmds_CXX \ | ||
13161 | lt_cv_prog_compiler_c_o_CXX \ | ||
13162 | exclude_expsyms_CXX \ | ||
13163 | include_expsyms_CXX; do | ||
13164 | |||
13165 | case $var in | ||
13166 | old_archive_cmds_CXX | \ | ||
13167 | old_archive_from_new_cmds_CXX | \ | ||
13168 | archive_cmds_CXX | \ | ||
13169 | archive_expsym_cmds_CXX | \ | ||
13170 | module_cmds_CXX | \ | ||
13171 | module_expsym_cmds_CXX | \ | ||
13172 | old_archive_from_expsyms_cmds_CXX | \ | ||
13173 | export_symbols_cmds_CXX | \ | ||
13174 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
13175 | postinstall_cmds | postuninstall_cmds | \ | ||
13176 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
13177 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
13178 | # Double-quote double-evaled strings. | ||
13179 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
13180 | ;; | ||
13181 | *) | ||
13182 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
13183 | ;; | ||
13184 | esac | ||
13185 | done | ||
13186 | |||
13187 | case $lt_echo in | ||
13188 | *'\$0 --fallback-echo"') | ||
13189 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | ||
13190 | ;; | ||
13191 | esac | ||
13192 | |||
13193 | cfgfile="$ofile" | ||
13194 | |||
13195 | cat <<__EOF__ >> "$cfgfile" | ||
13196 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | ||
13197 | |||
13198 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
13199 | |||
13200 | # Shell to use when invoking shell scripts. | ||
13201 | SHELL=$lt_SHELL | ||
13202 | |||
13203 | # Whether or not to build shared libraries. | ||
13204 | build_libtool_libs=$enable_shared | ||
13205 | |||
13206 | # Whether or not to build static libraries. | ||
13207 | build_old_libs=$enable_static | ||
13208 | |||
13209 | # Whether or not to add -lc for building shared libraries. | ||
13210 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | ||
13211 | |||
13212 | # Whether or not to disallow shared libs when runtime libs are static | ||
13213 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | ||
13214 | |||
13215 | # Whether or not to optimize for fast installation. | ||
13216 | fast_install=$enable_fast_install | ||
13217 | |||
13218 | # The host system. | ||
13219 | host_alias=$host_alias | ||
13220 | host=$host | ||
13221 | |||
13222 | # An echo program that does not interpret backslashes. | ||
13223 | echo=$lt_echo | ||
13224 | |||
13225 | # The archiver. | ||
13226 | AR=$lt_AR | ||
13227 | AR_FLAGS=$lt_AR_FLAGS | ||
13228 | |||
13229 | # A C compiler. | ||
13230 | LTCC=$lt_LTCC | ||
13231 | |||
13232 | # A language-specific compiler. | ||
13233 | CC=$lt_compiler_CXX | ||
13234 | |||
13235 | # Is the compiler the GNU C compiler? | ||
13236 | with_gcc=$GCC_CXX | ||
13237 | |||
13238 | # An ERE matcher. | ||
13239 | EGREP=$lt_EGREP | ||
13240 | |||
13241 | # The linker used to build libraries. | ||
13242 | LD=$lt_LD_CXX | ||
13243 | |||
13244 | # Whether we need hard or soft links. | ||
13245 | LN_S=$lt_LN_S | ||
13246 | |||
13247 | # A BSD-compatible nm program. | ||
13248 | NM=$lt_NM | ||
13249 | |||
13250 | # A symbol stripping program | ||
13251 | STRIP=$lt_STRIP | ||
13252 | |||
13253 | # Used to examine libraries when file_magic_cmd begins "file" | ||
13254 | MAGIC_CMD=$MAGIC_CMD | ||
13255 | |||
13256 | # Used on cygwin: DLL creation program. | ||
13257 | DLLTOOL="$DLLTOOL" | ||
13258 | |||
13259 | # Used on cygwin: object dumper. | ||
13260 | OBJDUMP="$OBJDUMP" | ||
13261 | |||
13262 | # Used on cygwin: assembler. | ||
13263 | AS="$AS" | ||
13264 | |||
13265 | # The name of the directory that contains temporary libtool files. | ||
13266 | objdir=$objdir | ||
13267 | |||
13268 | # How to create reloadable object files. | ||
13269 | reload_flag=$lt_reload_flag | ||
13270 | reload_cmds=$lt_reload_cmds | ||
13271 | |||
13272 | # How to pass a linker flag through the compiler. | ||
13273 | wl=$lt_lt_prog_compiler_wl_CXX | ||
13274 | |||
13275 | # Object file suffix (normally "o"). | ||
13276 | objext="$ac_objext" | ||
13277 | |||
13278 | # Old archive suffix (normally "a"). | ||
13279 | libext="$libext" | ||
13280 | |||
13281 | # Shared library suffix (normally ".so"). | ||
13282 | shrext_cmds='$shrext_cmds' | ||
13283 | |||
13284 | # Executable file suffix (normally ""). | ||
13285 | exeext="$exeext" | ||
13286 | |||
13287 | # Additional compiler flags for building library objects. | ||
13288 | pic_flag=$lt_lt_prog_compiler_pic_CXX | ||
13289 | pic_mode=$pic_mode | ||
13290 | |||
13291 | # What is the maximum length of a command? | ||
13292 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
13293 | |||
13294 | # Does compiler simultaneously support -c and -o options? | ||
13295 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | ||
13296 | |||
13297 | # Must we lock files when doing compilation ? | ||
13298 | need_locks=$lt_need_locks | ||
13299 | |||
13300 | # Do we need the lib prefix for modules? | ||
13301 | need_lib_prefix=$need_lib_prefix | ||
13302 | |||
13303 | # Do we need a version for libraries? | ||
13304 | need_version=$need_version | ||
13305 | |||
13306 | # Whether dlopen is supported. | ||
13307 | dlopen_support=$enable_dlopen | ||
13308 | |||
13309 | # Whether dlopen of programs is supported. | ||
13310 | dlopen_self=$enable_dlopen_self | ||
13311 | |||
13312 | # Whether dlopen of statically linked programs is supported. | ||
13313 | dlopen_self_static=$enable_dlopen_self_static | ||
13314 | |||
13315 | # Compiler flag to prevent dynamic linking. | ||
13316 | link_static_flag=$lt_lt_prog_compiler_static_CXX | ||
13317 | |||
13318 | # Compiler flag to turn off builtin functions. | ||
13319 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | ||
13320 | |||
13321 | # Compiler flag to allow reflexive dlopens. | ||
13322 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | ||
13323 | |||
13324 | # Compiler flag to generate shared objects directly from archives. | ||
13325 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | ||
13326 | |||
13327 | # Compiler flag to generate thread-safe objects. | ||
13328 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | ||
13329 | |||
13330 | # Library versioning type. | ||
13331 | version_type=$version_type | ||
13332 | |||
13333 | # Format of library name prefix. | ||
13334 | libname_spec=$lt_libname_spec | ||
13335 | |||
13336 | # List of archive names. First name is the real one, the rest are links. | ||
13337 | # The last name is the one that the linker finds with -lNAME. | ||
13338 | library_names_spec=$lt_library_names_spec | ||
13339 | |||
13340 | # The coded name of the library, if different from the real name. | ||
13341 | soname_spec=$lt_soname_spec | ||
13342 | |||
13343 | # Commands used to build and install an old-style archive. | ||
13344 | RANLIB=$lt_RANLIB | ||
13345 | old_archive_cmds=$lt_old_archive_cmds_CXX | ||
13346 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
13347 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
13348 | |||
13349 | # Create an old-style archive from a shared archive. | ||
13350 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | ||
13351 | |||
13352 | # Create a temporary old-style archive to link instead of a shared archive. | ||
13353 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | ||
13354 | |||
13355 | # Commands used to build and install a shared archive. | ||
13356 | archive_cmds=$lt_archive_cmds_CXX | ||
13357 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | ||
13358 | postinstall_cmds=$lt_postinstall_cmds | ||
13359 | postuninstall_cmds=$lt_postuninstall_cmds | ||
13360 | |||
13361 | # Commands used to build a loadable module (assumed same as above if empty) | ||
13362 | module_cmds=$lt_module_cmds_CXX | ||
13363 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | ||
13364 | |||
13365 | # Commands to strip libraries. | ||
13366 | old_striplib=$lt_old_striplib | ||
13367 | striplib=$lt_striplib | ||
13368 | |||
13369 | # Dependencies to place before the objects being linked to create a | ||
13370 | # shared library. | ||
13371 | predep_objects=$lt_predep_objects_CXX | ||
13372 | |||
13373 | # Dependencies to place after the objects being linked to create a | ||
13374 | # shared library. | ||
13375 | postdep_objects=$lt_postdep_objects_CXX | ||
13376 | |||
13377 | # Dependencies to place before the objects being linked to create a | ||
13378 | # shared library. | ||
13379 | predeps=$lt_predeps_CXX | ||
13380 | |||
13381 | # Dependencies to place after the objects being linked to create a | ||
13382 | # shared library. | ||
13383 | postdeps=$lt_postdeps_CXX | ||
13384 | |||
13385 | # The library search path used internally by the compiler when linking | ||
13386 | # a shared library. | ||
13387 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | ||
13388 | |||
13389 | # Method to check whether dependent libraries are shared objects. | ||
13390 | deplibs_check_method=$lt_deplibs_check_method | ||
13391 | |||
13392 | # Command to use when deplibs_check_method == file_magic. | ||
13393 | file_magic_cmd=$lt_file_magic_cmd | ||
13394 | |||
13395 | # Flag that allows shared libraries with undefined symbols to be built. | ||
13396 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | ||
13397 | |||
13398 | # Flag that forces no undefined symbols. | ||
13399 | no_undefined_flag=$lt_no_undefined_flag_CXX | ||
13400 | |||
13401 | # Commands used to finish a libtool library installation in a directory. | ||
13402 | finish_cmds=$lt_finish_cmds | ||
13403 | |||
13404 | # Same as above, but a single script fragment to be evaled but not shown. | ||
13405 | finish_eval=$lt_finish_eval | ||
13406 | |||
13407 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
13408 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
13409 | |||
13410 | # Transform the output of nm in a proper C declaration | ||
13411 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
13412 | |||
13413 | # Transform the output of nm in a C name address pair | ||
13414 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
13415 | |||
13416 | # This is the shared library runtime path variable. | ||
13417 | runpath_var=$runpath_var | ||
13418 | |||
13419 | # This is the shared library path variable. | ||
13420 | shlibpath_var=$shlibpath_var | ||
13421 | |||
13422 | # Is shlibpath searched before the hard-coded library search path? | ||
13423 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
13424 | |||
13425 | # How to hardcode a shared library path into an executable. | ||
13426 | hardcode_action=$hardcode_action_CXX | ||
13427 | |||
13428 | # Whether we should hardcode library paths into libraries. | ||
13429 | hardcode_into_libs=$hardcode_into_libs | ||
13430 | |||
13431 | # Flag to hardcode \$libdir into a binary during linking. | ||
13432 | # This must work even if \$libdir does not exist. | ||
13433 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | ||
13434 | |||
13435 | # If ld is used when linking, flag to hardcode \$libdir into | ||
13436 | # a binary during linking. This must work even if \$libdir does | ||
13437 | # not exist. | ||
13438 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | ||
13439 | |||
13440 | # Whether we need a single -rpath flag with a separated argument. | ||
13441 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | ||
13442 | |||
13443 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
13444 | # resulting binary. | ||
13445 | hardcode_direct=$hardcode_direct_CXX | ||
13446 | |||
13447 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
13448 | # resulting binary. | ||
13449 | hardcode_minus_L=$hardcode_minus_L_CXX | ||
13450 | |||
13451 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
13452 | # the resulting binary. | ||
13453 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | ||
13454 | |||
13455 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
13456 | # and all subsequent libraries and executables linked against it. | ||
13457 | hardcode_automatic=$hardcode_automatic_CXX | ||
13458 | |||
13459 | # Variables whose values should be saved in libtool wrapper scripts and | ||
13460 | # restored at relink time. | ||
13461 | variables_saved_for_relink="$variables_saved_for_relink" | ||
13462 | |||
13463 | # Whether libtool must link a program against all its dependency libraries. | ||
13464 | link_all_deplibs=$link_all_deplibs_CXX | ||
13465 | |||
13466 | # Compile-time system search path for libraries | ||
13467 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
13468 | |||
13469 | # Run-time system search path for libraries | ||
13470 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
13471 | |||
13472 | # Fix the shell variable \$srcfile for the compiler. | ||
13473 | fix_srcfile_path="$fix_srcfile_path_CXX" | ||
13474 | |||
13475 | # Set to yes if exported symbols are required. | ||
13476 | always_export_symbols=$always_export_symbols_CXX | ||
13477 | |||
13478 | # The commands to list exported symbols. | ||
13479 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | ||
13480 | |||
13481 | # The commands to extract the exported symbol list from a shared archive. | ||
13482 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
13483 | |||
13484 | # Symbols that should not be listed in the preloaded symbols. | ||
13485 | exclude_expsyms=$lt_exclude_expsyms_CXX | ||
13486 | |||
13487 | # Symbols that must always be exported. | ||
13488 | include_expsyms=$lt_include_expsyms_CXX | ||
13489 | |||
13490 | # ### END LIBTOOL TAG CONFIG: $tagname | ||
13491 | |||
13492 | __EOF__ | ||
13493 | |||
13494 | |||
13495 | else | ||
13496 | # If there is no Makefile yet, we rely on a make rule to execute | ||
13497 | # `config.status --recheck' to rerun these tests and create the | ||
13498 | # libtool script then. | ||
13499 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
13500 | if test -f "$ltmain_in"; then | ||
13501 | test -f Makefile && make "$ltmain" | ||
13502 | fi | ||
13503 | fi | ||
13504 | |||
13505 | |||
13506 | ac_ext=c | ||
13507 | ac_cpp='$CPP $CPPFLAGS' | ||
13508 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
13509 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13510 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
13511 | |||
13512 | CC=$lt_save_CC | ||
13513 | LDCXX=$LD | ||
13514 | LD=$lt_save_LD | ||
13515 | GCC=$lt_save_GCC | ||
13516 | with_gnu_ldcxx=$with_gnu_ld | ||
13517 | with_gnu_ld=$lt_save_with_gnu_ld | ||
13518 | lt_cv_path_LDCXX=$lt_cv_path_LD | ||
13519 | lt_cv_path_LD=$lt_save_path_LD | ||
13520 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | ||
13521 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | ||
13522 | |||
13523 | else | ||
13524 | tagname="" | ||
13525 | fi | ||
13526 | ;; | ||
13527 | |||
13528 | F77) | ||
13529 | if test -n "$F77" && test "X$F77" != "Xno"; then | ||
13530 | |||
13531 | ac_ext=f | ||
13532 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | ||
13533 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
13534 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | ||
13535 | |||
13536 | |||
13537 | archive_cmds_need_lc_F77=no | ||
13538 | allow_undefined_flag_F77= | ||
13539 | always_export_symbols_F77=no | ||
13540 | archive_expsym_cmds_F77= | ||
13541 | export_dynamic_flag_spec_F77= | ||
13542 | hardcode_direct_F77=no | ||
13543 | hardcode_libdir_flag_spec_F77= | ||
13544 | hardcode_libdir_flag_spec_ld_F77= | ||
13545 | hardcode_libdir_separator_F77= | ||
13546 | hardcode_minus_L_F77=no | ||
13547 | hardcode_automatic_F77=no | ||
13548 | module_cmds_F77= | ||
13549 | module_expsym_cmds_F77= | ||
13550 | link_all_deplibs_F77=unknown | ||
13551 | old_archive_cmds_F77=$old_archive_cmds | ||
13552 | no_undefined_flag_F77= | ||
13553 | whole_archive_flag_spec_F77= | ||
13554 | enable_shared_with_static_runtimes_F77=no | ||
13555 | |||
13556 | # Source file extension for f77 test sources. | ||
13557 | ac_ext=f | ||
13558 | |||
13559 | # Object file extension for compiled f77 test sources. | ||
13560 | objext=o | ||
13561 | objext_F77=$objext | ||
13562 | |||
13563 | # Code to be used in simple compile tests | ||
13564 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" | ||
13565 | |||
13566 | # Code to be used in simple link tests | ||
13567 | lt_simple_link_test_code=" program t\n end\n" | ||
13568 | |||
13569 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
13570 | |||
13571 | # If no C compiler was specified, use CC. | ||
13572 | LTCC=${LTCC-"$CC"} | ||
13573 | |||
13574 | # Allow CC to be a program name with arguments. | ||
13575 | compiler=$CC | ||
13576 | |||
13577 | |||
13578 | # Allow CC to be a program name with arguments. | ||
13579 | lt_save_CC="$CC" | ||
13580 | CC=${F77-"f77"} | ||
13581 | compiler=$CC | ||
13582 | compiler_F77=$CC | ||
13583 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | ||
13584 | |||
13585 | echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | ||
13586 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 | ||
13587 | echo "$as_me:$LINENO: result: $can_build_shared" >&5 | ||
13588 | echo "${ECHO_T}$can_build_shared" >&6 | ||
13589 | |||
13590 | echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | ||
13591 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 | ||
13592 | test "$can_build_shared" = "no" && enable_shared=no | ||
13593 | |||
13594 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
13595 | # are all built from PIC. | ||
13596 | case "$host_os" in | ||
13597 | aix3*) | ||
13598 | test "$enable_shared" = yes && enable_static=no | ||
13599 | if test -n "$RANLIB"; then | ||
13600 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
13601 | postinstall_cmds='$RANLIB $lib' | ||
13602 | fi | ||
13603 | ;; | ||
13604 | aix4* | aix5*) | ||
13605 | test "$enable_shared" = yes && enable_static=no | ||
13606 | ;; | ||
13607 | esac | ||
13608 | echo "$as_me:$LINENO: result: $enable_shared" >&5 | ||
13609 | echo "${ECHO_T}$enable_shared" >&6 | ||
13610 | |||
13611 | echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | ||
13612 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 | ||
13613 | # Make sure either enable_shared or enable_static is yes. | ||
13614 | test "$enable_shared" = yes || enable_static=yes | ||
13615 | echo "$as_me:$LINENO: result: $enable_static" >&5 | ||
13616 | echo "${ECHO_T}$enable_static" >&6 | ||
13617 | |||
13618 | test "$ld_shlibs_F77" = no && can_build_shared=no | ||
13619 | |||
13620 | GCC_F77="$G77" | ||
13621 | LD_F77="$LD" | ||
13622 | |||
13623 | lt_prog_compiler_wl_F77= | ||
13624 | lt_prog_compiler_pic_F77= | ||
13625 | lt_prog_compiler_static_F77= | ||
13626 | |||
13627 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | ||
13628 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | ||
13629 | |||
13630 | if test "$GCC" = yes; then | ||
13631 | lt_prog_compiler_wl_F77='-Wl,' | ||
13632 | lt_prog_compiler_static_F77='-static' | ||
13633 | |||
13634 | case $host_os in | ||
13635 | aix*) | ||
13636 | # All AIX code is PIC. | ||
13637 | if test "$host_cpu" = ia64; then | ||
13638 | # AIX 5 now supports IA64 processor | ||
13639 | lt_prog_compiler_static_F77='-Bstatic' | ||
13640 | fi | ||
13641 | ;; | ||
13642 | |||
13643 | amigaos*) | ||
13644 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
13645 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
13646 | # like `-m68040'. | ||
13647 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | ||
13648 | ;; | ||
13649 | |||
13650 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
13651 | # PIC is the default for these OSes. | ||
13652 | ;; | ||
13653 | |||
13654 | mingw* | pw32* | os2*) | ||
13655 | # This hack is so that the source file can tell whether it is being | ||
13656 | # built for inclusion in a dll (and should export symbols for example). | ||
13657 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | ||
13658 | ;; | ||
13659 | |||
13660 | darwin* | rhapsody*) | ||
13661 | # PIC is the default on this platform | ||
13662 | # Common symbols not allowed in MH_DYLIB files | ||
13663 | lt_prog_compiler_pic_F77='-fno-common' | ||
13664 | ;; | ||
13665 | |||
13666 | msdosdjgpp*) | ||
13667 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
13668 | # on systems that don't support them. | ||
13669 | lt_prog_compiler_can_build_shared_F77=no | ||
13670 | enable_shared=no | ||
13671 | ;; | ||
13672 | |||
13673 | sysv4*MP*) | ||
13674 | if test -d /usr/nec; then | ||
13675 | lt_prog_compiler_pic_F77=-Kconform_pic | ||
13676 | fi | ||
13677 | ;; | ||
13678 | |||
13679 | hpux*) | ||
13680 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
13681 | # not for PA HP-UX. | ||
13682 | case "$host_cpu" in | ||
13683 | hppa*64*|ia64*) | ||
13684 | # +Z the default | ||
13685 | ;; | ||
13686 | *) | ||
13687 | lt_prog_compiler_pic_F77='-fPIC' | ||
13688 | ;; | ||
13689 | esac | ||
13690 | ;; | ||
13691 | |||
13692 | *) | ||
13693 | lt_prog_compiler_pic_F77='-fPIC' | ||
13694 | ;; | ||
13695 | esac | ||
13696 | else | ||
13697 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
13698 | case $host_os in | ||
13699 | aix*) | ||
13700 | lt_prog_compiler_wl_F77='-Wl,' | ||
13701 | if test "$host_cpu" = ia64; then | ||
13702 | # AIX 5 now supports IA64 processor | ||
13703 | lt_prog_compiler_static_F77='-Bstatic' | ||
13704 | else | ||
13705 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | ||
13706 | fi | ||
13707 | ;; | ||
13708 | |||
13709 | mingw* | pw32* | os2*) | ||
13710 | # This hack is so that the source file can tell whether it is being | ||
13711 | # built for inclusion in a dll (and should export symbols for example). | ||
13712 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | ||
13713 | ;; | ||
13714 | |||
13715 | hpux9* | hpux10* | hpux11*) | ||
13716 | lt_prog_compiler_wl_F77='-Wl,' | ||
13717 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
13718 | # not for PA HP-UX. | ||
13719 | case "$host_cpu" in | ||
13720 | hppa*64*|ia64*) | ||
13721 | # +Z the default | ||
13722 | ;; | ||
13723 | *) | ||
13724 | lt_prog_compiler_pic_F77='+Z' | ||
13725 | ;; | ||
13726 | esac | ||
13727 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
13728 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | ||
13729 | ;; | ||
13730 | |||
13731 | irix5* | irix6* | nonstopux*) | ||
13732 | lt_prog_compiler_wl_F77='-Wl,' | ||
13733 | # PIC (with -KPIC) is the default. | ||
13734 | lt_prog_compiler_static_F77='-non_shared' | ||
13735 | ;; | ||
13736 | |||
13737 | newsos6) | ||
13738 | lt_prog_compiler_pic_F77='-KPIC' | ||
13739 | lt_prog_compiler_static_F77='-Bstatic' | ||
13740 | ;; | ||
13741 | |||
13742 | linux*) | ||
13743 | case $CC in | ||
13744 | icc* | ecc*) | ||
13745 | lt_prog_compiler_wl_F77='-Wl,' | ||
13746 | lt_prog_compiler_pic_F77='-KPIC' | ||
13747 | lt_prog_compiler_static_F77='-static' | ||
13748 | ;; | ||
13749 | ccc*) | ||
13750 | lt_prog_compiler_wl_F77='-Wl,' | ||
13751 | # All Alpha code is PIC. | ||
13752 | lt_prog_compiler_static_F77='-non_shared' | ||
13753 | ;; | ||
13754 | esac | ||
13755 | ;; | ||
13756 | |||
13757 | osf3* | osf4* | osf5*) | ||
13758 | lt_prog_compiler_wl_F77='-Wl,' | ||
13759 | # All OSF/1 code is PIC. | ||
13760 | lt_prog_compiler_static_F77='-non_shared' | ||
13761 | ;; | ||
13762 | |||
13763 | sco3.2v5*) | ||
13764 | lt_prog_compiler_pic_F77='-Kpic' | ||
13765 | lt_prog_compiler_static_F77='-dn' | ||
13766 | ;; | ||
13767 | |||
13768 | solaris*) | ||
13769 | lt_prog_compiler_wl_F77='-Wl,' | ||
13770 | lt_prog_compiler_pic_F77='-KPIC' | ||
13771 | lt_prog_compiler_static_F77='-Bstatic' | ||
13772 | ;; | ||
13773 | |||
13774 | sunos4*) | ||
13775 | lt_prog_compiler_wl_F77='-Qoption ld ' | ||
13776 | lt_prog_compiler_pic_F77='-PIC' | ||
13777 | lt_prog_compiler_static_F77='-Bstatic' | ||
13778 | ;; | ||
13779 | |||
13780 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
13781 | lt_prog_compiler_wl_F77='-Wl,' | ||
13782 | lt_prog_compiler_pic_F77='-KPIC' | ||
13783 | lt_prog_compiler_static_F77='-Bstatic' | ||
13784 | ;; | ||
13785 | |||
13786 | sysv4*MP*) | ||
13787 | if test -d /usr/nec ;then | ||
13788 | lt_prog_compiler_pic_F77='-Kconform_pic' | ||
13789 | lt_prog_compiler_static_F77='-Bstatic' | ||
13790 | fi | ||
13791 | ;; | ||
13792 | |||
13793 | uts4*) | ||
13794 | lt_prog_compiler_pic_F77='-pic' | ||
13795 | lt_prog_compiler_static_F77='-Bstatic' | ||
13796 | ;; | ||
13797 | |||
13798 | *) | ||
13799 | lt_prog_compiler_can_build_shared_F77=no | ||
13800 | ;; | ||
13801 | esac | ||
13802 | fi | ||
13803 | |||
13804 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | ||
13805 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 | ||
13806 | |||
13807 | # | ||
13808 | # Check to make sure the PIC flag actually works. | ||
13809 | # | ||
13810 | if test -n "$lt_prog_compiler_pic_F77"; then | ||
13811 | |||
13812 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | ||
13813 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 | ||
13814 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | ||
13815 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13816 | else | ||
13817 | lt_prog_compiler_pic_works_F77=no | ||
13818 | ac_outfile=conftest.$ac_objext | ||
13819 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
13820 | lt_compiler_flag="$lt_prog_compiler_pic_F77" | ||
13821 | # Insert the option either (1) after the last *FLAGS variable, or | ||
13822 | # (2) before a word containing "conftest.", or (3) at the end. | ||
13823 | # Note that $ac_compile itself does not contain backslashes and begins | ||
13824 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
13825 | # The option is referenced via a variable to avoid confusing sed. | ||
13826 | lt_compile=`echo "$ac_compile" | $SED \ | ||
13827 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
13828 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
13829 | -e 's:$: $lt_compiler_flag:'` | ||
13830 | (eval echo "\"\$as_me:13830: $lt_compile\"" >&5) | ||
13831 | (eval "$lt_compile" 2>conftest.err) | ||
13832 | ac_status=$? | ||
13833 | cat conftest.err >&5 | ||
13834 | echo "$as_me:13834: \$? = $ac_status" >&5 | ||
13835 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
13836 | # The compiler can only warn and ignore the option if not recognized | ||
13837 | # So say no if there are warnings | ||
13838 | if test ! -s conftest.err; then | ||
13839 | lt_prog_compiler_pic_works_F77=yes | ||
13840 | fi | ||
13841 | fi | ||
13842 | $rm conftest* | ||
13843 | |||
13844 | fi | ||
13845 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | ||
13846 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 | ||
13847 | |||
13848 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | ||
13849 | case $lt_prog_compiler_pic_F77 in | ||
13850 | "" | " "*) ;; | ||
13851 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | ||
13852 | esac | ||
13853 | else | ||
13854 | lt_prog_compiler_pic_F77= | ||
13855 | lt_prog_compiler_can_build_shared_F77=no | ||
13856 | fi | ||
13857 | |||
13858 | fi | ||
13859 | case "$host_os" in | ||
13860 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
13861 | *djgpp*) | ||
13862 | lt_prog_compiler_pic_F77= | ||
13863 | ;; | ||
13864 | *) | ||
13865 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | ||
13866 | ;; | ||
13867 | esac | ||
13868 | |||
13869 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
13870 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | ||
13871 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | ||
13872 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13873 | else | ||
13874 | lt_cv_prog_compiler_c_o_F77=no | ||
13875 | $rm -r conftest 2>/dev/null | ||
13876 | mkdir conftest | ||
13877 | cd conftest | ||
13878 | mkdir out | ||
13879 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
13880 | |||
13881 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
13882 | # Insert the option either (1) after the last *FLAGS variable, or | ||
13883 | # (2) before a word containing "conftest.", or (3) at the end. | ||
13884 | # Note that $ac_compile itself does not contain backslashes and begins | ||
13885 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
13886 | lt_compile=`echo "$ac_compile" | $SED \ | ||
13887 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
13888 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
13889 | -e 's:$: $lt_compiler_flag:'` | ||
13890 | (eval echo "\"\$as_me:13890: $lt_compile\"" >&5) | ||
13891 | (eval "$lt_compile" 2>out/conftest.err) | ||
13892 | ac_status=$? | ||
13893 | cat out/conftest.err >&5 | ||
13894 | echo "$as_me:13894: \$? = $ac_status" >&5 | ||
13895 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
13896 | then | ||
13897 | # The compiler can only warn and ignore the option if not recognized | ||
13898 | # So say no if there are warnings | ||
13899 | if test ! -s out/conftest.err; then | ||
13900 | lt_cv_prog_compiler_c_o_F77=yes | ||
13901 | fi | ||
13902 | fi | ||
13903 | chmod u+w . | ||
13904 | $rm conftest* | ||
13905 | # SGI C++ compiler will create directory out/ii_files/ for | ||
13906 | # template instantiation | ||
13907 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | ||
13908 | $rm out/* && rmdir out | ||
13909 | cd .. | ||
13910 | rmdir conftest | ||
13911 | $rm conftest* | ||
13912 | |||
13913 | fi | ||
13914 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | ||
13915 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 | ||
13916 | |||
13917 | |||
13918 | hard_links="nottested" | ||
13919 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | ||
13920 | # do not overwrite the value of need_locks provided by the user | ||
13921 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | ||
13922 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | ||
13923 | hard_links=yes | ||
13924 | $rm conftest* | ||
13925 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
13926 | touch conftest.a | ||
13927 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
13928 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
13929 | echo "$as_me:$LINENO: result: $hard_links" >&5 | ||
13930 | echo "${ECHO_T}$hard_links" >&6 | ||
13931 | if test "$hard_links" = no; then | ||
13932 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
13933 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
13934 | need_locks=warn | ||
13935 | fi | ||
13936 | else | ||
13937 | need_locks=no | ||
13938 | fi | ||
13939 | |||
13940 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
13941 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | ||
13942 | |||
13943 | runpath_var= | ||
13944 | allow_undefined_flag_F77= | ||
13945 | enable_shared_with_static_runtimes_F77=no | ||
13946 | archive_cmds_F77= | ||
13947 | archive_expsym_cmds_F77= | ||
13948 | old_archive_From_new_cmds_F77= | ||
13949 | old_archive_from_expsyms_cmds_F77= | ||
13950 | export_dynamic_flag_spec_F77= | ||
13951 | whole_archive_flag_spec_F77= | ||
13952 | thread_safe_flag_spec_F77= | ||
13953 | hardcode_libdir_flag_spec_F77= | ||
13954 | hardcode_libdir_flag_spec_ld_F77= | ||
13955 | hardcode_libdir_separator_F77= | ||
13956 | hardcode_direct_F77=no | ||
13957 | hardcode_minus_L_F77=no | ||
13958 | hardcode_shlibpath_var_F77=unsupported | ||
13959 | link_all_deplibs_F77=unknown | ||
13960 | hardcode_automatic_F77=no | ||
13961 | module_cmds_F77= | ||
13962 | module_expsym_cmds_F77= | ||
13963 | always_export_symbols_F77=no | ||
13964 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
13965 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
13966 | # included in the symbol list | ||
13967 | include_expsyms_F77= | ||
13968 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
13969 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
13970 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
13971 | # as well as any symbol that contains `d'. | ||
13972 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | ||
13973 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
13974 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
13975 | # the symbol is explicitly referenced. Since portable code cannot | ||
13976 | # rely on this symbol name, it's probably fine to never include it in | ||
13977 | # preloaded symbol tables. | ||
13978 | extract_expsyms_cmds= | ||
13979 | |||
13980 | case $host_os in | ||
13981 | cygwin* | mingw* | pw32*) | ||
13982 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
13983 | # When not using gcc, we currently assume that we are using | ||
13984 | # Microsoft Visual C++. | ||
13985 | if test "$GCC" != yes; then | ||
13986 | with_gnu_ld=no | ||
13987 | fi | ||
13988 | ;; | ||
13989 | openbsd*) | ||
13990 | with_gnu_ld=no | ||
13991 | ;; | ||
13992 | esac | ||
13993 | |||
13994 | ld_shlibs_F77=yes | ||
13995 | if test "$with_gnu_ld" = yes; then | ||
13996 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
13997 | wlarc='${wl}' | ||
13998 | |||
13999 | # See if GNU ld supports shared libraries. | ||
14000 | case $host_os in | ||
14001 | aix3* | aix4* | aix5*) | ||
14002 | # On AIX/PPC, the GNU linker is very broken | ||
14003 | if test "$host_cpu" != ia64; then | ||
14004 | ld_shlibs_F77=no | ||
14005 | cat <<EOF 1>&2 | ||
14006 | |||
14007 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
14008 | *** to be unable to reliably create shared libraries on AIX. | ||
14009 | *** Therefore, libtool is disabling shared libraries support. If you | ||
14010 | *** really care for shared libraries, you may want to modify your PATH | ||
14011 | *** so that a non-GNU linker is found, and then restart. | ||
14012 | |||
14013 | EOF | ||
14014 | fi | ||
14015 | ;; | ||
14016 | |||
14017 | amigaos*) | ||
14018 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | ||
14019 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
14020 | hardcode_minus_L_F77=yes | ||
14021 | |||
14022 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | ||
14023 | # that the semantics of dynamic libraries on AmigaOS, at least up | ||
14024 | # to version 4, is to share data among multiple programs linked | ||
14025 | # with the same dynamic library. Since this doesn't match the | ||
14026 | # behavior of shared libraries on other platforms, we can't use | ||
14027 | # them. | ||
14028 | ld_shlibs_F77=no | ||
14029 | ;; | ||
14030 | |||
14031 | beos*) | ||
14032 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
14033 | allow_undefined_flag_F77=unsupported | ||
14034 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
14035 | # support --undefined. This deserves some investigation. FIXME | ||
14036 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14037 | else | ||
14038 | ld_shlibs_F77=no | ||
14039 | fi | ||
14040 | ;; | ||
14041 | |||
14042 | cygwin* | mingw* | pw32*) | ||
14043 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | ||
14044 | # as there is no search path for DLLs. | ||
14045 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
14046 | allow_undefined_flag_F77=unsupported | ||
14047 | always_export_symbols_F77=no | ||
14048 | enable_shared_with_static_runtimes_F77=yes | ||
14049 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | ||
14050 | |||
14051 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
14052 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | ||
14053 | # If the export-symbols file already is a .def file (1st line | ||
14054 | # is EXPORTS), use it as is; otherwise, prepend... | ||
14055 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
14056 | cp $export_symbols $output_objdir/$soname.def; | ||
14057 | else | ||
14058 | echo EXPORTS > $output_objdir/$soname.def; | ||
14059 | cat $export_symbols >> $output_objdir/$soname.def; | ||
14060 | fi~ | ||
14061 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | ||
14062 | else | ||
14063 | ld_shlibs=no | ||
14064 | fi | ||
14065 | ;; | ||
14066 | |||
14067 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
14068 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
14069 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
14070 | wlarc= | ||
14071 | else | ||
14072 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14073 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
14074 | fi | ||
14075 | ;; | ||
14076 | |||
14077 | solaris* | sysv5*) | ||
14078 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | ||
14079 | ld_shlibs_F77=no | ||
14080 | cat <<EOF 1>&2 | ||
14081 | |||
14082 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
14083 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
14084 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
14085 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
14086 | *** your PATH or compiler configuration so that the native linker is | ||
14087 | *** used, and then restart. | ||
14088 | |||
14089 | EOF | ||
14090 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
14091 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14092 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
14093 | else | ||
14094 | ld_shlibs_F77=no | ||
14095 | fi | ||
14096 | ;; | ||
14097 | |||
14098 | sunos4*) | ||
14099 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
14100 | wlarc= | ||
14101 | hardcode_direct_F77=yes | ||
14102 | hardcode_shlibpath_var_F77=no | ||
14103 | ;; | ||
14104 | |||
14105 | linux*) | ||
14106 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
14107 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14108 | archive_cmds_F77="$tmp_archive_cmds" | ||
14109 | supports_anon_versioning=no | ||
14110 | case `$LD -v 2>/dev/null` in | ||
14111 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
14112 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
14113 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
14114 | *\ 2.11.*) ;; # other 2.11 versions | ||
14115 | *) supports_anon_versioning=yes ;; | ||
14116 | esac | ||
14117 | if test $supports_anon_versioning = yes; then | ||
14118 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | ||
14119 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
14120 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
14121 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
14122 | else | ||
14123 | archive_expsym_cmds_F77="$tmp_archive_cmds" | ||
14124 | fi | ||
14125 | link_all_deplibs_F77=no | ||
14126 | else | ||
14127 | ld_shlibs_F77=no | ||
14128 | fi | ||
14129 | ;; | ||
14130 | |||
14131 | *) | ||
14132 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
14133 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14134 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
14135 | else | ||
14136 | ld_shlibs_F77=no | ||
14137 | fi | ||
14138 | ;; | ||
14139 | esac | ||
14140 | |||
14141 | if test "$ld_shlibs_F77" = yes; then | ||
14142 | runpath_var=LD_RUN_PATH | ||
14143 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | ||
14144 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' | ||
14145 | # ancient GNU ld didn't support --whole-archive et. al. | ||
14146 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | ||
14147 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
14148 | else | ||
14149 | whole_archive_flag_spec_F77= | ||
14150 | fi | ||
14151 | fi | ||
14152 | else | ||
14153 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
14154 | case $host_os in | ||
14155 | aix3*) | ||
14156 | allow_undefined_flag_F77=unsupported | ||
14157 | always_export_symbols_F77=yes | ||
14158 | archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | ||
14159 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
14160 | # are no directories specified by -L. | ||
14161 | hardcode_minus_L_F77=yes | ||
14162 | if test "$GCC" = yes && test -z "$link_static_flag"; then | ||
14163 | # Neither direct hardcoding nor static linking is supported with a | ||
14164 | # broken collect2. | ||
14165 | hardcode_direct_F77=unsupported | ||
14166 | fi | ||
14167 | ;; | ||
14168 | |||
14169 | aix4* | aix5*) | ||
14170 | if test "$host_cpu" = ia64; then | ||
14171 | # On IA64, the linker does run time linking by default, so we don't | ||
14172 | # have to do anything special. | ||
14173 | aix_use_runtimelinking=no | ||
14174 | exp_sym_flag='-Bexport' | ||
14175 | no_entry_flag="" | ||
14176 | else | ||
14177 | # If we're using GNU nm, then we don't want the "-C" option. | ||
14178 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
14179 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | ||
14180 | export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | ||
14181 | else | ||
14182 | export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | ||
14183 | fi | ||
14184 | aix_use_runtimelinking=no | ||
14185 | |||
14186 | # Test if we are trying to use run time linking or normal | ||
14187 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
14188 | # need to do runtime linking. | ||
14189 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | ||
14190 | for ld_flag in $LDFLAGS; do | ||
14191 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
14192 | aix_use_runtimelinking=yes | ||
14193 | break | ||
14194 | fi | ||
14195 | done | ||
14196 | esac | ||
14197 | |||
14198 | exp_sym_flag='-bexport' | ||
14199 | no_entry_flag='-bnoentry' | ||
14200 | fi | ||
14201 | |||
14202 | # When large executables or shared objects are built, AIX ld can | ||
14203 | # have problems creating the table of contents. If linking a library | ||
14204 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
14205 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
14206 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
14207 | |||
14208 | archive_cmds_F77='' | ||
14209 | hardcode_direct_F77=yes | ||
14210 | hardcode_libdir_separator_F77=':' | ||
14211 | link_all_deplibs_F77=yes | ||
14212 | |||
14213 | if test "$GCC" = yes; then | ||
14214 | case $host_os in aix4.012|aix4.012.*) | ||
14215 | # We only want to do this on AIX 4.2 and lower, the check | ||
14216 | # below for broken collect2 doesn't work under 4.3+ | ||
14217 | collect2name=`${CC} -print-prog-name=collect2` | ||
14218 | if test -f "$collect2name" && \ | ||
14219 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
14220 | then | ||
14221 | # We have reworked collect2 | ||
14222 | hardcode_direct_F77=yes | ||
14223 | else | ||
14224 | # We have old collect2 | ||
14225 | hardcode_direct_F77=unsupported | ||
14226 | # It fails to find uninstalled libraries when the uninstalled | ||
14227 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
14228 | # to unsupported forces relinking | ||
14229 | hardcode_minus_L_F77=yes | ||
14230 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
14231 | hardcode_libdir_separator_F77= | ||
14232 | fi | ||
14233 | esac | ||
14234 | shared_flag='-shared' | ||
14235 | else | ||
14236 | # not using gcc | ||
14237 | if test "$host_cpu" = ia64; then | ||
14238 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
14239 | # chokes on -Wl,-G. The following line is correct: | ||
14240 | shared_flag='-G' | ||
14241 | else | ||
14242 | if test "$aix_use_runtimelinking" = yes; then | ||
14243 | shared_flag='${wl}-G' | ||
14244 | else | ||
14245 | shared_flag='${wl}-bM:SRE' | ||
14246 | fi | ||
14247 | fi | ||
14248 | fi | ||
14249 | |||
14250 | # It seems that -bexpall does not export symbols beginning with | ||
14251 | # underscore (_), so it is better to generate a list of symbols to export. | ||
14252 | always_export_symbols_F77=yes | ||
14253 | if test "$aix_use_runtimelinking" = yes; then | ||
14254 | # Warning - without using the other runtime loading flags (-brtl), | ||
14255 | # -berok will link without error, but may produce a broken library. | ||
14256 | allow_undefined_flag_F77='-berok' | ||
14257 | # Determine the default libpath from the value encoded in an empty executable. | ||
14258 | cat >conftest.$ac_ext <<_ACEOF | ||
14259 | program main | ||
14260 | |||
14261 | end | ||
14262 | _ACEOF | ||
14263 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14264 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14265 | (eval $ac_link) 2>conftest.er1 | ||
14266 | ac_status=$? | ||
14267 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14268 | rm -f conftest.er1 | ||
14269 | cat conftest.err >&5 | ||
14270 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14271 | (exit $ac_status); } && | ||
14272 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | ||
14273 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14274 | (eval $ac_try) 2>&5 | ||
14275 | ac_status=$? | ||
14276 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14277 | (exit $ac_status); }; } && | ||
14278 | { ac_try='test -s conftest$ac_exeext' | ||
14279 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14280 | (eval $ac_try) 2>&5 | ||
14281 | ac_status=$? | ||
14282 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14283 | (exit $ac_status); }; }; then | ||
14284 | |||
14285 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
14286 | }'` | ||
14287 | # Check for a 64-bit object if we didn't find anything. | ||
14288 | 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; } | ||
14289 | }'`; fi | ||
14290 | else | ||
14291 | echo "$as_me: failed program was:" >&5 | ||
14292 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14293 | |||
14294 | fi | ||
14295 | rm -f conftest.err conftest.$ac_objext \ | ||
14296 | conftest$ac_exeext conftest.$ac_ext | ||
14297 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
14298 | |||
14299 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
14300 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
14301 | else | ||
14302 | if test "$host_cpu" = ia64; then | ||
14303 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | ||
14304 | allow_undefined_flag_F77="-z nodefs" | ||
14305 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | ||
14306 | else | ||
14307 | # Determine the default libpath from the value encoded in an empty executable. | ||
14308 | cat >conftest.$ac_ext <<_ACEOF | ||
14309 | program main | ||
14310 | |||
14311 | end | ||
14312 | _ACEOF | ||
14313 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
14314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
14315 | (eval $ac_link) 2>conftest.er1 | ||
14316 | ac_status=$? | ||
14317 | grep -v '^ *+' conftest.er1 >conftest.err | ||
14318 | rm -f conftest.er1 | ||
14319 | cat conftest.err >&5 | ||
14320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14321 | (exit $ac_status); } && | ||
14322 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' | ||
14323 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14324 | (eval $ac_try) 2>&5 | ||
14325 | ac_status=$? | ||
14326 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14327 | (exit $ac_status); }; } && | ||
14328 | { ac_try='test -s conftest$ac_exeext' | ||
14329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
14330 | (eval $ac_try) 2>&5 | ||
14331 | ac_status=$? | ||
14332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14333 | (exit $ac_status); }; }; then | ||
14334 | |||
14335 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
14336 | }'` | ||
14337 | # Check for a 64-bit object if we didn't find anything. | ||
14338 | 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; } | ||
14339 | }'`; fi | ||
14340 | else | ||
14341 | echo "$as_me: failed program was:" >&5 | ||
14342 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
14343 | |||
14344 | fi | ||
14345 | rm -f conftest.err conftest.$ac_objext \ | ||
14346 | conftest$ac_exeext conftest.$ac_ext | ||
14347 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
14348 | |||
14349 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
14350 | # Warning - without using the other run time loading flags, | ||
14351 | # -berok will link without error, but may produce a broken library. | ||
14352 | no_undefined_flag_F77=' ${wl}-bernotok' | ||
14353 | allow_undefined_flag_F77=' ${wl}-berok' | ||
14354 | # -bexpall does not export symbols beginning with underscore (_) | ||
14355 | always_export_symbols_F77=yes | ||
14356 | # Exported symbols can be pulled into shared objects from archives | ||
14357 | whole_archive_flag_spec_F77=' ' | ||
14358 | archive_cmds_need_lc_F77=yes | ||
14359 | # This is similar to how AIX traditionally builds it's shared libraries. | ||
14360 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
14361 | fi | ||
14362 | fi | ||
14363 | ;; | ||
14364 | |||
14365 | amigaos*) | ||
14366 | archive_cmds_F77='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | ||
14367 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
14368 | hardcode_minus_L_F77=yes | ||
14369 | # see comment about different semantics on the GNU ld section | ||
14370 | ld_shlibs_F77=no | ||
14371 | ;; | ||
14372 | |||
14373 | bsdi4*) | ||
14374 | export_dynamic_flag_spec_F77=-rdynamic | ||
14375 | ;; | ||
14376 | |||
14377 | cygwin* | mingw* | pw32*) | ||
14378 | # When not using gcc, we currently assume that we are using | ||
14379 | # Microsoft Visual C++. | ||
14380 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
14381 | # no search path for DLLs. | ||
14382 | hardcode_libdir_flag_spec_F77=' ' | ||
14383 | allow_undefined_flag_F77=unsupported | ||
14384 | # Tell ltmain to make .lib files, not .a files. | ||
14385 | libext=lib | ||
14386 | # Tell ltmain to make .dll files, not .so files. | ||
14387 | shrext_cmds=".dll" | ||
14388 | # FIXME: Setting linknames here is a bad hack. | ||
14389 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
14390 | # The linker will automatically build a .lib file if we build a DLL. | ||
14391 | old_archive_From_new_cmds_F77='true' | ||
14392 | # FIXME: Should let the user specify the lib program. | ||
14393 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | ||
14394 | fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
14395 | enable_shared_with_static_runtimes_F77=yes | ||
14396 | ;; | ||
14397 | |||
14398 | darwin* | rhapsody*) | ||
14399 | if test "$GXX" = yes ; then | ||
14400 | archive_cmds_need_lc_F77=no | ||
14401 | case "$host_os" in | ||
14402 | rhapsody* | darwin1.[012]) | ||
14403 | allow_undefined_flag_F77='-undefined suppress' | ||
14404 | ;; | ||
14405 | *) # Darwin 1.3 on | ||
14406 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
14407 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' | ||
14408 | else | ||
14409 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
14410 | 10.[012]) | ||
14411 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' | ||
14412 | ;; | ||
14413 | 10.*) | ||
14414 | allow_undefined_flag_F77='-undefined dynamic_lookup' | ||
14415 | ;; | ||
14416 | esac | ||
14417 | fi | ||
14418 | ;; | ||
14419 | esac | ||
14420 | lt_int_apple_cc_single_mod=no | ||
14421 | output_verbose_link_cmd='echo' | ||
14422 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | ||
14423 | lt_int_apple_cc_single_mod=yes | ||
14424 | fi | ||
14425 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
14426 | archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
14427 | else | ||
14428 | archive_cmds_F77='$CC -r ${wl}-bind_at_load -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' | ||
14429 | fi | ||
14430 | module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
14431 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | ||
14432 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
14433 | archive_expsym_cmds_F77='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}' | ||
14434 | else | ||
14435 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' | ||
14436 | fi | ||
14437 | module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
14438 | hardcode_direct_F77=no | ||
14439 | hardcode_automatic_F77=yes | ||
14440 | hardcode_shlibpath_var_F77=unsupported | ||
14441 | whole_archive_flag_spec_F77='-all_load $convenience' | ||
14442 | link_all_deplibs_F77=yes | ||
14443 | else | ||
14444 | ld_shlibs_F77=no | ||
14445 | fi | ||
14446 | ;; | ||
14447 | |||
14448 | dgux*) | ||
14449 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
14450 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
14451 | hardcode_shlibpath_var_F77=no | ||
14452 | ;; | ||
14453 | |||
14454 | freebsd1*) | ||
14455 | ld_shlibs_F77=no | ||
14456 | ;; | ||
14457 | |||
14458 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
14459 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
14460 | # does not break anything, and helps significantly (at the cost of a little | ||
14461 | # extra space). | ||
14462 | freebsd2.2*) | ||
14463 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
14464 | hardcode_libdir_flag_spec_F77='-R$libdir' | ||
14465 | hardcode_direct_F77=yes | ||
14466 | hardcode_shlibpath_var_F77=no | ||
14467 | ;; | ||
14468 | |||
14469 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
14470 | freebsd2*) | ||
14471 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
14472 | hardcode_direct_F77=yes | ||
14473 | hardcode_minus_L_F77=yes | ||
14474 | hardcode_shlibpath_var_F77=no | ||
14475 | ;; | ||
14476 | |||
14477 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
14478 | freebsd* | kfreebsd*-gnu) | ||
14479 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
14480 | hardcode_libdir_flag_spec_F77='-R$libdir' | ||
14481 | hardcode_direct_F77=yes | ||
14482 | hardcode_shlibpath_var_F77=no | ||
14483 | ;; | ||
14484 | |||
14485 | hpux9*) | ||
14486 | if test "$GCC" = yes; then | ||
14487 | archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
14488 | else | ||
14489 | archive_cmds_F77='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
14490 | fi | ||
14491 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | ||
14492 | hardcode_libdir_separator_F77=: | ||
14493 | hardcode_direct_F77=yes | ||
14494 | |||
14495 | # hardcode_minus_L: Not really in the search PATH, | ||
14496 | # but as the default location of the library. | ||
14497 | hardcode_minus_L_F77=yes | ||
14498 | export_dynamic_flag_spec_F77='${wl}-E' | ||
14499 | ;; | ||
14500 | |||
14501 | hpux10* | hpux11*) | ||
14502 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
14503 | case "$host_cpu" in | ||
14504 | hppa*64*|ia64*) | ||
14505 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14506 | ;; | ||
14507 | *) | ||
14508 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
14509 | ;; | ||
14510 | esac | ||
14511 | else | ||
14512 | case "$host_cpu" in | ||
14513 | hppa*64*|ia64*) | ||
14514 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
14515 | ;; | ||
14516 | *) | ||
14517 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
14518 | ;; | ||
14519 | esac | ||
14520 | fi | ||
14521 | if test "$with_gnu_ld" = no; then | ||
14522 | case "$host_cpu" in | ||
14523 | hppa*64*) | ||
14524 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | ||
14525 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' | ||
14526 | hardcode_libdir_separator_F77=: | ||
14527 | hardcode_direct_F77=no | ||
14528 | hardcode_shlibpath_var_F77=no | ||
14529 | ;; | ||
14530 | ia64*) | ||
14531 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
14532 | hardcode_direct_F77=no | ||
14533 | hardcode_shlibpath_var_F77=no | ||
14534 | |||
14535 | # hardcode_minus_L: Not really in the search PATH, | ||
14536 | # but as the default location of the library. | ||
14537 | hardcode_minus_L_F77=yes | ||
14538 | ;; | ||
14539 | *) | ||
14540 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | ||
14541 | hardcode_libdir_separator_F77=: | ||
14542 | hardcode_direct_F77=yes | ||
14543 | export_dynamic_flag_spec_F77='${wl}-E' | ||
14544 | |||
14545 | # hardcode_minus_L: Not really in the search PATH, | ||
14546 | # but as the default location of the library. | ||
14547 | hardcode_minus_L_F77=yes | ||
14548 | ;; | ||
14549 | esac | ||
14550 | fi | ||
14551 | ;; | ||
14552 | |||
14553 | irix5* | irix6* | nonstopux*) | ||
14554 | if test "$GCC" = yes; then | ||
14555 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
14556 | else | ||
14557 | archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
14558 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | ||
14559 | fi | ||
14560 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | ||
14561 | hardcode_libdir_separator_F77=: | ||
14562 | link_all_deplibs_F77=yes | ||
14563 | ;; | ||
14564 | |||
14565 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
14566 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
14567 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
14568 | else | ||
14569 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
14570 | fi | ||
14571 | hardcode_libdir_flag_spec_F77='-R$libdir' | ||
14572 | hardcode_direct_F77=yes | ||
14573 | hardcode_shlibpath_var_F77=no | ||
14574 | ;; | ||
14575 | |||
14576 | newsos6) | ||
14577 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
14578 | hardcode_direct_F77=yes | ||
14579 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | ||
14580 | hardcode_libdir_separator_F77=: | ||
14581 | hardcode_shlibpath_var_F77=no | ||
14582 | ;; | ||
14583 | |||
14584 | openbsd*) | ||
14585 | hardcode_direct_F77=yes | ||
14586 | hardcode_shlibpath_var_F77=no | ||
14587 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
14588 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
14589 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | ||
14590 | export_dynamic_flag_spec_F77='${wl}-E' | ||
14591 | else | ||
14592 | case $host_os in | ||
14593 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
14594 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
14595 | hardcode_libdir_flag_spec_F77='-R$libdir' | ||
14596 | ;; | ||
14597 | *) | ||
14598 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
14599 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | ||
14600 | ;; | ||
14601 | esac | ||
14602 | fi | ||
14603 | ;; | ||
14604 | |||
14605 | os2*) | ||
14606 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
14607 | hardcode_minus_L_F77=yes | ||
14608 | allow_undefined_flag_F77=unsupported | ||
14609 | archive_cmds_F77='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
14610 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
14611 | ;; | ||
14612 | |||
14613 | osf3*) | ||
14614 | if test "$GCC" = yes; then | ||
14615 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | ||
14616 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
14617 | else | ||
14618 | allow_undefined_flag_F77=' -expect_unresolved \*' | ||
14619 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
14620 | fi | ||
14621 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | ||
14622 | hardcode_libdir_separator_F77=: | ||
14623 | ;; | ||
14624 | |||
14625 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
14626 | if test "$GCC" = yes; then | ||
14627 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | ||
14628 | archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
14629 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | ||
14630 | else | ||
14631 | allow_undefined_flag_F77=' -expect_unresolved \*' | ||
14632 | archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
14633 | archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | ||
14634 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' | ||
14635 | |||
14636 | # Both c and cxx compiler support -rpath directly | ||
14637 | hardcode_libdir_flag_spec_F77='-rpath $libdir' | ||
14638 | fi | ||
14639 | hardcode_libdir_separator_F77=: | ||
14640 | ;; | ||
14641 | |||
14642 | sco3.2v5*) | ||
14643 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
14644 | hardcode_shlibpath_var_F77=no | ||
14645 | export_dynamic_flag_spec_F77='${wl}-Bexport' | ||
14646 | runpath_var=LD_RUN_PATH | ||
14647 | hardcode_runpath_var=yes | ||
14648 | ;; | ||
14649 | |||
14650 | solaris*) | ||
14651 | no_undefined_flag_F77=' -z text' | ||
14652 | if test "$GCC" = yes; then | ||
14653 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14654 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
14655 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | ||
14656 | else | ||
14657 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
14658 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
14659 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
14660 | fi | ||
14661 | hardcode_libdir_flag_spec_F77='-R$libdir' | ||
14662 | hardcode_shlibpath_var_F77=no | ||
14663 | case $host_os in | ||
14664 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
14665 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
14666 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | ||
14667 | esac | ||
14668 | link_all_deplibs_F77=yes | ||
14669 | ;; | ||
14670 | |||
14671 | sunos4*) | ||
14672 | if test "x$host_vendor" = xsequent; then | ||
14673 | # Use $CC to link under sequent, because it throws in some extra .o | ||
14674 | # files that make .init and .fini sections work. | ||
14675 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14676 | else | ||
14677 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
14678 | fi | ||
14679 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
14680 | hardcode_direct_F77=yes | ||
14681 | hardcode_minus_L_F77=yes | ||
14682 | hardcode_shlibpath_var_F77=no | ||
14683 | ;; | ||
14684 | |||
14685 | sysv4) | ||
14686 | case $host_vendor in | ||
14687 | sni) | ||
14688 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
14689 | hardcode_direct_F77=yes # is this really true??? | ||
14690 | ;; | ||
14691 | siemens) | ||
14692 | ## LD is ld it makes a PLAMLIB | ||
14693 | ## CC just makes a GrossModule. | ||
14694 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
14695 | reload_cmds_F77='$CC -r -o $output$reload_objs' | ||
14696 | hardcode_direct_F77=no | ||
14697 | ;; | ||
14698 | motorola) | ||
14699 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
14700 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | ||
14701 | ;; | ||
14702 | esac | ||
14703 | runpath_var='LD_RUN_PATH' | ||
14704 | hardcode_shlibpath_var_F77=no | ||
14705 | ;; | ||
14706 | |||
14707 | sysv4.3*) | ||
14708 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
14709 | hardcode_shlibpath_var_F77=no | ||
14710 | export_dynamic_flag_spec_F77='-Bexport' | ||
14711 | ;; | ||
14712 | |||
14713 | sysv4*MP*) | ||
14714 | if test -d /usr/nec; then | ||
14715 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
14716 | hardcode_shlibpath_var_F77=no | ||
14717 | runpath_var=LD_RUN_PATH | ||
14718 | hardcode_runpath_var=yes | ||
14719 | ld_shlibs_F77=yes | ||
14720 | fi | ||
14721 | ;; | ||
14722 | |||
14723 | sysv4.2uw2*) | ||
14724 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
14725 | hardcode_direct_F77=yes | ||
14726 | hardcode_minus_L_F77=no | ||
14727 | hardcode_shlibpath_var_F77=no | ||
14728 | hardcode_runpath_var=yes | ||
14729 | runpath_var=LD_RUN_PATH | ||
14730 | ;; | ||
14731 | |||
14732 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | ||
14733 | no_undefined_flag_F77='${wl}-z ${wl}text' | ||
14734 | if test "$GCC" = yes; then | ||
14735 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14736 | else | ||
14737 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
14738 | fi | ||
14739 | runpath_var='LD_RUN_PATH' | ||
14740 | hardcode_shlibpath_var_F77=no | ||
14741 | ;; | ||
14742 | |||
14743 | sysv5*) | ||
14744 | no_undefined_flag_F77=' -z text' | ||
14745 | # $CC -shared without GNU ld will not create a library from C++ | ||
14746 | # object files and a static libstdc++, better avoid it by now | ||
14747 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
14748 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
14749 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
14750 | hardcode_libdir_flag_spec_F77= | ||
14751 | hardcode_shlibpath_var_F77=no | ||
14752 | runpath_var='LD_RUN_PATH' | ||
14753 | ;; | ||
14754 | |||
14755 | uts4*) | ||
14756 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
14757 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
14758 | hardcode_shlibpath_var_F77=no | ||
14759 | ;; | ||
14760 | |||
14761 | *) | ||
14762 | ld_shlibs_F77=no | ||
14763 | ;; | ||
14764 | esac | ||
14765 | fi | ||
14766 | |||
14767 | echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | ||
14768 | echo "${ECHO_T}$ld_shlibs_F77" >&6 | ||
14769 | test "$ld_shlibs_F77" = no && can_build_shared=no | ||
14770 | |||
14771 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
14772 | if test "$GCC" = yes; then | ||
14773 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
14774 | fi | ||
14775 | |||
14776 | # | ||
14777 | # Do we need to explicitly link libc? | ||
14778 | # | ||
14779 | case "x$archive_cmds_need_lc_F77" in | ||
14780 | x|xyes) | ||
14781 | # Assume -lc should be added | ||
14782 | archive_cmds_need_lc_F77=yes | ||
14783 | |||
14784 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
14785 | case $archive_cmds_F77 in | ||
14786 | *'~'*) | ||
14787 | # FIXME: we may have to deal with multi-command sequences. | ||
14788 | ;; | ||
14789 | '$CC '*) | ||
14790 | # Test whether the compiler implicitly links with -lc since on some | ||
14791 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
14792 | # to ld, don't add -lc before -lgcc. | ||
14793 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | ||
14794 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | ||
14795 | $rm conftest* | ||
14796 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
14797 | |||
14798 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
14799 | (eval $ac_compile) 2>&5 | ||
14800 | ac_status=$? | ||
14801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14802 | (exit $ac_status); } 2>conftest.err; then | ||
14803 | soname=conftest | ||
14804 | lib=conftest | ||
14805 | libobjs=conftest.$ac_objext | ||
14806 | deplibs= | ||
14807 | wl=$lt_prog_compiler_wl_F77 | ||
14808 | compiler_flags=-v | ||
14809 | linker_flags=-v | ||
14810 | verstring= | ||
14811 | output_objdir=. | ||
14812 | libname=conftest | ||
14813 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | ||
14814 | allow_undefined_flag_F77= | ||
14815 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | ||
14816 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
14817 | ac_status=$? | ||
14818 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
14819 | (exit $ac_status); } | ||
14820 | then | ||
14821 | archive_cmds_need_lc_F77=no | ||
14822 | else | ||
14823 | archive_cmds_need_lc_F77=yes | ||
14824 | fi | ||
14825 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag | ||
14826 | else | ||
14827 | cat conftest.err 1>&5 | ||
14828 | fi | ||
14829 | $rm conftest* | ||
14830 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | ||
14831 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 | ||
14832 | ;; | ||
14833 | esac | ||
14834 | fi | ||
14835 | ;; | ||
14836 | esac | ||
14837 | |||
14838 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | ||
14839 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | ||
14840 | library_names_spec= | ||
14841 | libname_spec='lib$name' | ||
14842 | soname_spec= | ||
14843 | shrext_cmds=".so" | ||
14844 | postinstall_cmds= | ||
14845 | postuninstall_cmds= | ||
14846 | finish_cmds= | ||
14847 | finish_eval= | ||
14848 | shlibpath_var= | ||
14849 | shlibpath_overrides_runpath=unknown | ||
14850 | version_type=none | ||
14851 | dynamic_linker="$host_os ld.so" | ||
14852 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
14853 | if test "$GCC" = yes; then | ||
14854 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
14855 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | ||
14856 | # if the path contains ";" then we assume it to be the separator | ||
14857 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
14858 | # assumed that no part of a normal pathname contains ";" but that should | ||
14859 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
14860 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
14861 | else | ||
14862 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
14863 | fi | ||
14864 | else | ||
14865 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
14866 | fi | ||
14867 | need_lib_prefix=unknown | ||
14868 | hardcode_into_libs=no | ||
14869 | |||
14870 | # when you set need_version to no, make sure it does not cause -set_version | ||
14871 | # flags to be left without arguments | ||
14872 | need_version=unknown | ||
14873 | |||
14874 | case $host_os in | ||
14875 | aix3*) | ||
14876 | version_type=linux | ||
14877 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
14878 | shlibpath_var=LIBPATH | ||
14879 | |||
14880 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
14881 | soname_spec='${libname}${release}${shared_ext}$major' | ||
14882 | ;; | ||
14883 | |||
14884 | aix4* | aix5*) | ||
14885 | version_type=linux | ||
14886 | need_lib_prefix=no | ||
14887 | need_version=no | ||
14888 | hardcode_into_libs=yes | ||
14889 | if test "$host_cpu" = ia64; then | ||
14890 | # AIX 5 supports IA64 | ||
14891 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
14892 | shlibpath_var=LD_LIBRARY_PATH | ||
14893 | else | ||
14894 | # With GCC up to 2.95.x, collect2 would create an import file | ||
14895 | # for dependence libraries. The import file would start with | ||
14896 | # the line `#! .'. This would cause the generated library to | ||
14897 | # depend on `.', always an invalid library. This was fixed in | ||
14898 | # development snapshots of GCC prior to 3.0. | ||
14899 | case $host_os in | ||
14900 | aix4 | aix4.[01] | aix4.[01].*) | ||
14901 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
14902 | echo ' yes ' | ||
14903 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | ||
14904 | : | ||
14905 | else | ||
14906 | can_build_shared=no | ||
14907 | fi | ||
14908 | ;; | ||
14909 | esac | ||
14910 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
14911 | # soname into executable. Probably we can add versioning support to | ||
14912 | # collect2, so additional links can be useful in future. | ||
14913 | if test "$aix_use_runtimelinking" = yes; then | ||
14914 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
14915 | # instead of lib<name>.a to let people know that these are not | ||
14916 | # typical AIX shared libraries. | ||
14917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
14918 | else | ||
14919 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
14920 | # and later when we are not doing run time linking. | ||
14921 | library_names_spec='${libname}${release}.a $libname.a' | ||
14922 | soname_spec='${libname}${release}${shared_ext}$major' | ||
14923 | fi | ||
14924 | shlibpath_var=LIBPATH | ||
14925 | fi | ||
14926 | ;; | ||
14927 | |||
14928 | amigaos*) | ||
14929 | library_names_spec='$libname.ixlibrary $libname.a' | ||
14930 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
14931 | 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' | ||
14932 | ;; | ||
14933 | |||
14934 | beos*) | ||
14935 | library_names_spec='${libname}${shared_ext}' | ||
14936 | dynamic_linker="$host_os ld.so" | ||
14937 | shlibpath_var=LIBRARY_PATH | ||
14938 | ;; | ||
14939 | |||
14940 | bsdi4*) | ||
14941 | version_type=linux | ||
14942 | need_version=no | ||
14943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
14944 | soname_spec='${libname}${release}${shared_ext}$major' | ||
14945 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
14946 | shlibpath_var=LD_LIBRARY_PATH | ||
14947 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
14948 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
14949 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
14950 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
14951 | # libtool to hard-code these into programs | ||
14952 | ;; | ||
14953 | |||
14954 | cygwin* | mingw* | pw32*) | ||
14955 | version_type=windows | ||
14956 | shrext_cmds=".dll" | ||
14957 | need_version=no | ||
14958 | need_lib_prefix=no | ||
14959 | |||
14960 | case $GCC,$host_os in | ||
14961 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
14962 | library_names_spec='$libname.dll.a' | ||
14963 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
14964 | postinstall_cmds='base_file=`basename \${file}`~ | ||
14965 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | ||
14966 | dldir=$destdir/`dirname \$dlpath`~ | ||
14967 | test -d \$dldir || mkdir -p \$dldir~ | ||
14968 | $install_prog $dir/$dlname \$dldir/$dlname' | ||
14969 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
14970 | dlpath=$dir/\$dldll~ | ||
14971 | $rm \$dlpath' | ||
14972 | shlibpath_overrides_runpath=yes | ||
14973 | |||
14974 | case $host_os in | ||
14975 | cygwin*) | ||
14976 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
14977 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
14978 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
14979 | ;; | ||
14980 | mingw*) | ||
14981 | # MinGW DLLs use traditional 'lib' prefix | ||
14982 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
14983 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
14984 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | ||
14985 | # It is most probably a Windows format PATH printed by | ||
14986 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
14987 | # path with ; separators, and with drive letters. We can handle the | ||
14988 | # drive letters (cygwin fileutils understands them), so leave them, | ||
14989 | # especially as we might pass files found there to a mingw objdump, | ||
14990 | # which wouldn't understand a cygwinified path. Ahh. | ||
14991 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
14992 | else | ||
14993 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
14994 | fi | ||
14995 | ;; | ||
14996 | pw32*) | ||
14997 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
14998 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | ||
14999 | ;; | ||
15000 | esac | ||
15001 | ;; | ||
15002 | |||
15003 | *) | ||
15004 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
15005 | ;; | ||
15006 | esac | ||
15007 | dynamic_linker='Win32 ld.exe' | ||
15008 | # FIXME: first we should search . and the directory the executable is in | ||
15009 | shlibpath_var=PATH | ||
15010 | ;; | ||
15011 | |||
15012 | darwin* | rhapsody*) | ||
15013 | dynamic_linker="$host_os dyld" | ||
15014 | version_type=darwin | ||
15015 | need_lib_prefix=no | ||
15016 | need_version=no | ||
15017 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
15018 | soname_spec='${libname}${release}${major}$shared_ext' | ||
15019 | shlibpath_overrides_runpath=yes | ||
15020 | shlibpath_var=DYLD_LIBRARY_PATH | ||
15021 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | ||
15022 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | ||
15023 | if test "$GCC" = yes; then | ||
15024 | 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"` | ||
15025 | else | ||
15026 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | ||
15027 | fi | ||
15028 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
15029 | ;; | ||
15030 | |||
15031 | dgux*) | ||
15032 | version_type=linux | ||
15033 | need_lib_prefix=no | ||
15034 | need_version=no | ||
15035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
15036 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15037 | shlibpath_var=LD_LIBRARY_PATH | ||
15038 | ;; | ||
15039 | |||
15040 | freebsd1*) | ||
15041 | dynamic_linker=no | ||
15042 | ;; | ||
15043 | |||
15044 | kfreebsd*-gnu) | ||
15045 | version_type=linux | ||
15046 | need_lib_prefix=no | ||
15047 | need_version=no | ||
15048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
15049 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15050 | shlibpath_var=LD_LIBRARY_PATH | ||
15051 | shlibpath_overrides_runpath=no | ||
15052 | hardcode_into_libs=yes | ||
15053 | dynamic_linker='GNU ld.so' | ||
15054 | ;; | ||
15055 | |||
15056 | freebsd*) | ||
15057 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | ||
15058 | version_type=freebsd-$objformat | ||
15059 | case $version_type in | ||
15060 | freebsd-elf*) | ||
15061 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
15062 | need_version=no | ||
15063 | need_lib_prefix=no | ||
15064 | ;; | ||
15065 | freebsd-*) | ||
15066 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
15067 | need_version=yes | ||
15068 | ;; | ||
15069 | esac | ||
15070 | shlibpath_var=LD_LIBRARY_PATH | ||
15071 | case $host_os in | ||
15072 | freebsd2*) | ||
15073 | shlibpath_overrides_runpath=yes | ||
15074 | ;; | ||
15075 | freebsd3.01* | freebsdelf3.01*) | ||
15076 | shlibpath_overrides_runpath=yes | ||
15077 | hardcode_into_libs=yes | ||
15078 | ;; | ||
15079 | *) # from 3.2 on | ||
15080 | shlibpath_overrides_runpath=no | ||
15081 | hardcode_into_libs=yes | ||
15082 | ;; | ||
15083 | esac | ||
15084 | ;; | ||
15085 | |||
15086 | gnu*) | ||
15087 | version_type=linux | ||
15088 | need_lib_prefix=no | ||
15089 | need_version=no | ||
15090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
15091 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15092 | shlibpath_var=LD_LIBRARY_PATH | ||
15093 | hardcode_into_libs=yes | ||
15094 | ;; | ||
15095 | |||
15096 | hpux9* | hpux10* | hpux11*) | ||
15097 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
15098 | # link against other versions. | ||
15099 | version_type=sunos | ||
15100 | need_lib_prefix=no | ||
15101 | need_version=no | ||
15102 | case "$host_cpu" in | ||
15103 | ia64*) | ||
15104 | shrext_cmds='.so' | ||
15105 | hardcode_into_libs=yes | ||
15106 | dynamic_linker="$host_os dld.so" | ||
15107 | shlibpath_var=LD_LIBRARY_PATH | ||
15108 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
15109 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15110 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15111 | if test "X$HPUX_IA64_MODE" = X32; then | ||
15112 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
15113 | else | ||
15114 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
15115 | fi | ||
15116 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
15117 | ;; | ||
15118 | hppa*64*) | ||
15119 | shrext_cmds='.sl' | ||
15120 | hardcode_into_libs=yes | ||
15121 | dynamic_linker="$host_os dld.sl" | ||
15122 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
15123 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
15124 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15125 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15126 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
15127 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
15128 | ;; | ||
15129 | *) | ||
15130 | shrext_cmds='.sl' | ||
15131 | dynamic_linker="$host_os dld.sl" | ||
15132 | shlibpath_var=SHLIB_PATH | ||
15133 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
15134 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15135 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15136 | ;; | ||
15137 | esac | ||
15138 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
15139 | postinstall_cmds='chmod 555 $lib' | ||
15140 | ;; | ||
15141 | |||
15142 | irix5* | irix6* | nonstopux*) | ||
15143 | case $host_os in | ||
15144 | nonstopux*) version_type=nonstopux ;; | ||
15145 | *) | ||
15146 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
15147 | version_type=linux | ||
15148 | else | ||
15149 | version_type=irix | ||
15150 | fi ;; | ||
15151 | esac | ||
15152 | need_lib_prefix=no | ||
15153 | need_version=no | ||
15154 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15155 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
15156 | case $host_os in | ||
15157 | irix5* | nonstopux*) | ||
15158 | libsuff= shlibsuff= | ||
15159 | ;; | ||
15160 | *) | ||
15161 | case $LD in # libtool.m4 will add one of these switches to LD | ||
15162 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
15163 | libsuff= shlibsuff= libmagic=32-bit;; | ||
15164 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
15165 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
15166 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
15167 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
15168 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
15169 | esac | ||
15170 | ;; | ||
15171 | esac | ||
15172 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
15173 | shlibpath_overrides_runpath=no | ||
15174 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
15175 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
15176 | hardcode_into_libs=yes | ||
15177 | ;; | ||
15178 | |||
15179 | # No shared lib support for Linux oldld, aout, or coff. | ||
15180 | linux*oldld* | linux*aout* | linux*coff*) | ||
15181 | dynamic_linker=no | ||
15182 | ;; | ||
15183 | |||
15184 | # This must be Linux ELF. | ||
15185 | linux*) | ||
15186 | version_type=linux | ||
15187 | need_lib_prefix=no | ||
15188 | need_version=no | ||
15189 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15190 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15191 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
15192 | shlibpath_var=LD_LIBRARY_PATH | ||
15193 | shlibpath_overrides_runpath=no | ||
15194 | # This implies no fast_install, which is unacceptable. | ||
15195 | # Some rework will be needed to allow for fast_install | ||
15196 | # before this can be enabled. | ||
15197 | hardcode_into_libs=yes | ||
15198 | |||
15199 | # Append ld.so.conf contents to the search path | ||
15200 | if test -f /etc/ld.so.conf; then | ||
15201 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | ||
15202 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
15203 | fi | ||
15204 | |||
15205 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
15206 | # powerpc, because MkLinux only supported shared libraries with the | ||
15207 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
15208 | # most powerpc-linux boxes support dynamic linking these days and | ||
15209 | # people can always --disable-shared, the test was removed, and we | ||
15210 | # assume the GNU/Linux dynamic linker is in use. | ||
15211 | dynamic_linker='GNU/Linux ld.so' | ||
15212 | ;; | ||
15213 | |||
15214 | netbsdelf*-gnu) | ||
15215 | version_type=linux | ||
15216 | need_lib_prefix=no | ||
15217 | need_version=no | ||
15218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
15219 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15220 | shlibpath_var=LD_LIBRARY_PATH | ||
15221 | shlibpath_overrides_runpath=no | ||
15222 | hardcode_into_libs=yes | ||
15223 | dynamic_linker='NetBSD ld.elf_so' | ||
15224 | ;; | ||
15225 | |||
15226 | knetbsd*-gnu) | ||
15227 | version_type=linux | ||
15228 | need_lib_prefix=no | ||
15229 | need_version=no | ||
15230 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
15231 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15232 | shlibpath_var=LD_LIBRARY_PATH | ||
15233 | shlibpath_overrides_runpath=no | ||
15234 | hardcode_into_libs=yes | ||
15235 | dynamic_linker='GNU ld.so' | ||
15236 | ;; | ||
15237 | |||
15238 | netbsd*) | ||
15239 | version_type=sunos | ||
15240 | need_lib_prefix=no | ||
15241 | need_version=no | ||
15242 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
15243 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
15244 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
15245 | dynamic_linker='NetBSD (a.out) ld.so' | ||
15246 | else | ||
15247 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
15248 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15249 | dynamic_linker='NetBSD ld.elf_so' | ||
15250 | fi | ||
15251 | shlibpath_var=LD_LIBRARY_PATH | ||
15252 | shlibpath_overrides_runpath=yes | ||
15253 | hardcode_into_libs=yes | ||
15254 | ;; | ||
15255 | |||
15256 | newsos6) | ||
15257 | version_type=linux | ||
15258 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15259 | shlibpath_var=LD_LIBRARY_PATH | ||
15260 | shlibpath_overrides_runpath=yes | ||
15261 | ;; | ||
15262 | |||
15263 | nto-qnx*) | ||
15264 | version_type=linux | ||
15265 | need_lib_prefix=no | ||
15266 | need_version=no | ||
15267 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15268 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15269 | shlibpath_var=LD_LIBRARY_PATH | ||
15270 | shlibpath_overrides_runpath=yes | ||
15271 | ;; | ||
15272 | |||
15273 | openbsd*) | ||
15274 | version_type=sunos | ||
15275 | need_lib_prefix=no | ||
15276 | need_version=yes | ||
15277 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
15278 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
15279 | shlibpath_var=LD_LIBRARY_PATH | ||
15280 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
15281 | case $host_os in | ||
15282 | openbsd2.[89] | openbsd2.[89].*) | ||
15283 | shlibpath_overrides_runpath=no | ||
15284 | ;; | ||
15285 | *) | ||
15286 | shlibpath_overrides_runpath=yes | ||
15287 | ;; | ||
15288 | esac | ||
15289 | else | ||
15290 | shlibpath_overrides_runpath=yes | ||
15291 | fi | ||
15292 | ;; | ||
15293 | |||
15294 | os2*) | ||
15295 | libname_spec='$name' | ||
15296 | shrext_cmds=".dll" | ||
15297 | need_lib_prefix=no | ||
15298 | library_names_spec='$libname${shared_ext} $libname.a' | ||
15299 | dynamic_linker='OS/2 ld.exe' | ||
15300 | shlibpath_var=LIBPATH | ||
15301 | ;; | ||
15302 | |||
15303 | osf3* | osf4* | osf5*) | ||
15304 | version_type=osf | ||
15305 | need_lib_prefix=no | ||
15306 | need_version=no | ||
15307 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15308 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15309 | shlibpath_var=LD_LIBRARY_PATH | ||
15310 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
15311 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
15312 | ;; | ||
15313 | |||
15314 | sco3.2v5*) | ||
15315 | version_type=osf | ||
15316 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15318 | shlibpath_var=LD_LIBRARY_PATH | ||
15319 | ;; | ||
15320 | |||
15321 | solaris*) | ||
15322 | version_type=linux | ||
15323 | need_lib_prefix=no | ||
15324 | need_version=no | ||
15325 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15326 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15327 | shlibpath_var=LD_LIBRARY_PATH | ||
15328 | shlibpath_overrides_runpath=yes | ||
15329 | hardcode_into_libs=yes | ||
15330 | # ldd complains unless libraries are executable | ||
15331 | postinstall_cmds='chmod +x $lib' | ||
15332 | ;; | ||
15333 | |||
15334 | sunos4*) | ||
15335 | version_type=sunos | ||
15336 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
15337 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
15338 | shlibpath_var=LD_LIBRARY_PATH | ||
15339 | shlibpath_overrides_runpath=yes | ||
15340 | if test "$with_gnu_ld" = yes; then | ||
15341 | need_lib_prefix=no | ||
15342 | fi | ||
15343 | need_version=yes | ||
15344 | ;; | ||
15345 | |||
15346 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
15347 | version_type=linux | ||
15348 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15349 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15350 | shlibpath_var=LD_LIBRARY_PATH | ||
15351 | case $host_vendor in | ||
15352 | sni) | ||
15353 | shlibpath_overrides_runpath=no | ||
15354 | need_lib_prefix=no | ||
15355 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
15356 | runpath_var=LD_RUN_PATH | ||
15357 | ;; | ||
15358 | siemens) | ||
15359 | need_lib_prefix=no | ||
15360 | ;; | ||
15361 | motorola) | ||
15362 | need_lib_prefix=no | ||
15363 | need_version=no | ||
15364 | shlibpath_overrides_runpath=no | ||
15365 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
15366 | ;; | ||
15367 | esac | ||
15368 | ;; | ||
15369 | |||
15370 | sysv4*MP*) | ||
15371 | if test -d /usr/nec ;then | ||
15372 | version_type=linux | ||
15373 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
15374 | soname_spec='$libname${shared_ext}.$major' | ||
15375 | shlibpath_var=LD_LIBRARY_PATH | ||
15376 | fi | ||
15377 | ;; | ||
15378 | |||
15379 | uts4*) | ||
15380 | version_type=linux | ||
15381 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15382 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15383 | shlibpath_var=LD_LIBRARY_PATH | ||
15384 | ;; | ||
15385 | |||
15386 | *) | ||
15387 | dynamic_linker=no | ||
15388 | ;; | ||
15389 | esac | ||
15390 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | ||
15391 | echo "${ECHO_T}$dynamic_linker" >&6 | ||
15392 | test "$dynamic_linker" = no && can_build_shared=no | ||
15393 | |||
15394 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | ||
15395 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | ||
15396 | hardcode_action_F77= | ||
15397 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | ||
15398 | test -n "$runpath_var F77" || \ | ||
15399 | test "X$hardcode_automatic_F77"="Xyes" ; then | ||
15400 | |||
15401 | # We can hardcode non-existant directories. | ||
15402 | if test "$hardcode_direct_F77" != no && | ||
15403 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
15404 | # have to relink, otherwise we might link with an installed library | ||
15405 | # when we should be linking with a yet-to-be-installed one | ||
15406 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | ||
15407 | test "$hardcode_minus_L_F77" != no; then | ||
15408 | # Linking always hardcodes the temporary library directory. | ||
15409 | hardcode_action_F77=relink | ||
15410 | else | ||
15411 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
15412 | hardcode_action_F77=immediate | ||
15413 | fi | ||
15414 | else | ||
15415 | # We cannot hardcode anything, or else we can only hardcode existing | ||
15416 | # directories. | ||
15417 | hardcode_action_F77=unsupported | ||
15418 | fi | ||
15419 | echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | ||
15420 | echo "${ECHO_T}$hardcode_action_F77" >&6 | ||
15421 | |||
15422 | if test "$hardcode_action_F77" = relink; then | ||
15423 | # Fast installation is not supported | ||
15424 | enable_fast_install=no | ||
15425 | elif test "$shlibpath_overrides_runpath" = yes || | ||
15426 | test "$enable_shared" = no; then | ||
15427 | # Fast installation is not necessary | ||
15428 | enable_fast_install=needless | ||
15429 | fi | ||
15430 | |||
15431 | striplib= | ||
15432 | old_striplib= | ||
15433 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | ||
15434 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | ||
15435 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
15436 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
15437 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
15438 | echo "$as_me:$LINENO: result: yes" >&5 | ||
15439 | echo "${ECHO_T}yes" >&6 | ||
15440 | else | ||
15441 | # FIXME - insert some real tests, host_os isn't really good enough | ||
15442 | case $host_os in | ||
15443 | darwin*) | ||
15444 | if test -n "$STRIP" ; then | ||
15445 | striplib="$STRIP -x" | ||
15446 | echo "$as_me:$LINENO: result: yes" >&5 | ||
15447 | echo "${ECHO_T}yes" >&6 | ||
15448 | else | ||
15449 | echo "$as_me:$LINENO: result: no" >&5 | ||
15450 | echo "${ECHO_T}no" >&6 | ||
15451 | fi | ||
15452 | ;; | ||
15453 | *) | ||
15454 | echo "$as_me:$LINENO: result: no" >&5 | ||
15455 | echo "${ECHO_T}no" >&6 | ||
15456 | ;; | ||
15457 | esac | ||
15458 | fi | ||
15459 | |||
15460 | |||
15461 | |||
15462 | # The else clause should only fire when bootstrapping the | ||
15463 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
15464 | # with your package, and you will get complaints that there are | ||
15465 | # no rules to generate ltmain.sh. | ||
15466 | if test -f "$ltmain"; then | ||
15467 | # See if we are running on zsh, and set the options which allow our commands through | ||
15468 | # without removal of \ escapes. | ||
15469 | if test -n "${ZSH_VERSION+set}" ; then | ||
15470 | setopt NO_GLOB_SUBST | ||
15471 | fi | ||
15472 | # Now quote all the things that may contain metacharacters while being | ||
15473 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
15474 | # variables and quote the copies for generation of the libtool script. | ||
15475 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | ||
15476 | SED SHELL STRIP \ | ||
15477 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
15478 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
15479 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
15480 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
15481 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
15482 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
15483 | old_postinstall_cmds old_postuninstall_cmds \ | ||
15484 | compiler_F77 \ | ||
15485 | CC_F77 \ | ||
15486 | LD_F77 \ | ||
15487 | lt_prog_compiler_wl_F77 \ | ||
15488 | lt_prog_compiler_pic_F77 \ | ||
15489 | lt_prog_compiler_static_F77 \ | ||
15490 | lt_prog_compiler_no_builtin_flag_F77 \ | ||
15491 | export_dynamic_flag_spec_F77 \ | ||
15492 | thread_safe_flag_spec_F77 \ | ||
15493 | whole_archive_flag_spec_F77 \ | ||
15494 | enable_shared_with_static_runtimes_F77 \ | ||
15495 | old_archive_cmds_F77 \ | ||
15496 | old_archive_from_new_cmds_F77 \ | ||
15497 | predep_objects_F77 \ | ||
15498 | postdep_objects_F77 \ | ||
15499 | predeps_F77 \ | ||
15500 | postdeps_F77 \ | ||
15501 | compiler_lib_search_path_F77 \ | ||
15502 | archive_cmds_F77 \ | ||
15503 | archive_expsym_cmds_F77 \ | ||
15504 | postinstall_cmds_F77 \ | ||
15505 | postuninstall_cmds_F77 \ | ||
15506 | old_archive_from_expsyms_cmds_F77 \ | ||
15507 | allow_undefined_flag_F77 \ | ||
15508 | no_undefined_flag_F77 \ | ||
15509 | export_symbols_cmds_F77 \ | ||
15510 | hardcode_libdir_flag_spec_F77 \ | ||
15511 | hardcode_libdir_flag_spec_ld_F77 \ | ||
15512 | hardcode_libdir_separator_F77 \ | ||
15513 | hardcode_automatic_F77 \ | ||
15514 | module_cmds_F77 \ | ||
15515 | module_expsym_cmds_F77 \ | ||
15516 | lt_cv_prog_compiler_c_o_F77 \ | ||
15517 | exclude_expsyms_F77 \ | ||
15518 | include_expsyms_F77; do | ||
15519 | |||
15520 | case $var in | ||
15521 | old_archive_cmds_F77 | \ | ||
15522 | old_archive_from_new_cmds_F77 | \ | ||
15523 | archive_cmds_F77 | \ | ||
15524 | archive_expsym_cmds_F77 | \ | ||
15525 | module_cmds_F77 | \ | ||
15526 | module_expsym_cmds_F77 | \ | ||
15527 | old_archive_from_expsyms_cmds_F77 | \ | ||
15528 | export_symbols_cmds_F77 | \ | ||
15529 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
15530 | postinstall_cmds | postuninstall_cmds | \ | ||
15531 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
15532 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
15533 | # Double-quote double-evaled strings. | ||
15534 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
15535 | ;; | ||
15536 | *) | ||
15537 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
15538 | ;; | ||
15539 | esac | ||
15540 | done | ||
15541 | |||
15542 | case $lt_echo in | ||
15543 | *'\$0 --fallback-echo"') | ||
15544 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | ||
15545 | ;; | ||
15546 | esac | ||
15547 | |||
15548 | cfgfile="$ofile" | ||
15549 | |||
15550 | cat <<__EOF__ >> "$cfgfile" | ||
15551 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | ||
15552 | |||
15553 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
15554 | |||
15555 | # Shell to use when invoking shell scripts. | ||
15556 | SHELL=$lt_SHELL | ||
15557 | |||
15558 | # Whether or not to build shared libraries. | ||
15559 | build_libtool_libs=$enable_shared | ||
15560 | |||
15561 | # Whether or not to build static libraries. | ||
15562 | build_old_libs=$enable_static | ||
15563 | |||
15564 | # Whether or not to add -lc for building shared libraries. | ||
15565 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | ||
15566 | |||
15567 | # Whether or not to disallow shared libs when runtime libs are static | ||
15568 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | ||
15569 | |||
15570 | # Whether or not to optimize for fast installation. | ||
15571 | fast_install=$enable_fast_install | ||
15572 | |||
15573 | # The host system. | ||
15574 | host_alias=$host_alias | ||
15575 | host=$host | ||
15576 | |||
15577 | # An echo program that does not interpret backslashes. | ||
15578 | echo=$lt_echo | ||
15579 | |||
15580 | # The archiver. | ||
15581 | AR=$lt_AR | ||
15582 | AR_FLAGS=$lt_AR_FLAGS | ||
15583 | |||
15584 | # A C compiler. | ||
15585 | LTCC=$lt_LTCC | ||
15586 | |||
15587 | # A language-specific compiler. | ||
15588 | CC=$lt_compiler_F77 | ||
15589 | |||
15590 | # Is the compiler the GNU C compiler? | ||
15591 | with_gcc=$GCC_F77 | ||
15592 | |||
15593 | # An ERE matcher. | ||
15594 | EGREP=$lt_EGREP | ||
15595 | |||
15596 | # The linker used to build libraries. | ||
15597 | LD=$lt_LD_F77 | ||
15598 | |||
15599 | # Whether we need hard or soft links. | ||
15600 | LN_S=$lt_LN_S | ||
15601 | |||
15602 | # A BSD-compatible nm program. | ||
15603 | NM=$lt_NM | ||
15604 | |||
15605 | # A symbol stripping program | ||
15606 | STRIP=$lt_STRIP | ||
15607 | |||
15608 | # Used to examine libraries when file_magic_cmd begins "file" | ||
15609 | MAGIC_CMD=$MAGIC_CMD | ||
15610 | |||
15611 | # Used on cygwin: DLL creation program. | ||
15612 | DLLTOOL="$DLLTOOL" | ||
15613 | |||
15614 | # Used on cygwin: object dumper. | ||
15615 | OBJDUMP="$OBJDUMP" | ||
15616 | |||
15617 | # Used on cygwin: assembler. | ||
15618 | AS="$AS" | ||
15619 | |||
15620 | # The name of the directory that contains temporary libtool files. | ||
15621 | objdir=$objdir | ||
15622 | |||
15623 | # How to create reloadable object files. | ||
15624 | reload_flag=$lt_reload_flag | ||
15625 | reload_cmds=$lt_reload_cmds | ||
15626 | |||
15627 | # How to pass a linker flag through the compiler. | ||
15628 | wl=$lt_lt_prog_compiler_wl_F77 | ||
15629 | |||
15630 | # Object file suffix (normally "o"). | ||
15631 | objext="$ac_objext" | ||
15632 | |||
15633 | # Old archive suffix (normally "a"). | ||
15634 | libext="$libext" | ||
15635 | |||
15636 | # Shared library suffix (normally ".so"). | ||
15637 | shrext_cmds='$shrext_cmds' | ||
15638 | |||
15639 | # Executable file suffix (normally ""). | ||
15640 | exeext="$exeext" | ||
15641 | |||
15642 | # Additional compiler flags for building library objects. | ||
15643 | pic_flag=$lt_lt_prog_compiler_pic_F77 | ||
15644 | pic_mode=$pic_mode | ||
15645 | |||
15646 | # What is the maximum length of a command? | ||
15647 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
15648 | |||
15649 | # Does compiler simultaneously support -c and -o options? | ||
15650 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | ||
15651 | |||
15652 | # Must we lock files when doing compilation ? | ||
15653 | need_locks=$lt_need_locks | ||
15654 | |||
15655 | # Do we need the lib prefix for modules? | ||
15656 | need_lib_prefix=$need_lib_prefix | ||
15657 | |||
15658 | # Do we need a version for libraries? | ||
15659 | need_version=$need_version | ||
15660 | |||
15661 | # Whether dlopen is supported. | ||
15662 | dlopen_support=$enable_dlopen | ||
15663 | |||
15664 | # Whether dlopen of programs is supported. | ||
15665 | dlopen_self=$enable_dlopen_self | ||
15666 | |||
15667 | # Whether dlopen of statically linked programs is supported. | ||
15668 | dlopen_self_static=$enable_dlopen_self_static | ||
15669 | |||
15670 | # Compiler flag to prevent dynamic linking. | ||
15671 | link_static_flag=$lt_lt_prog_compiler_static_F77 | ||
15672 | |||
15673 | # Compiler flag to turn off builtin functions. | ||
15674 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | ||
15675 | |||
15676 | # Compiler flag to allow reflexive dlopens. | ||
15677 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | ||
15678 | |||
15679 | # Compiler flag to generate shared objects directly from archives. | ||
15680 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | ||
15681 | |||
15682 | # Compiler flag to generate thread-safe objects. | ||
15683 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | ||
15684 | |||
15685 | # Library versioning type. | ||
15686 | version_type=$version_type | ||
15687 | |||
15688 | # Format of library name prefix. | ||
15689 | libname_spec=$lt_libname_spec | ||
15690 | |||
15691 | # List of archive names. First name is the real one, the rest are links. | ||
15692 | # The last name is the one that the linker finds with -lNAME. | ||
15693 | library_names_spec=$lt_library_names_spec | ||
15694 | |||
15695 | # The coded name of the library, if different from the real name. | ||
15696 | soname_spec=$lt_soname_spec | ||
15697 | |||
15698 | # Commands used to build and install an old-style archive. | ||
15699 | RANLIB=$lt_RANLIB | ||
15700 | old_archive_cmds=$lt_old_archive_cmds_F77 | ||
15701 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
15702 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
15703 | |||
15704 | # Create an old-style archive from a shared archive. | ||
15705 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | ||
15706 | |||
15707 | # Create a temporary old-style archive to link instead of a shared archive. | ||
15708 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | ||
15709 | |||
15710 | # Commands used to build and install a shared archive. | ||
15711 | archive_cmds=$lt_archive_cmds_F77 | ||
15712 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | ||
15713 | postinstall_cmds=$lt_postinstall_cmds | ||
15714 | postuninstall_cmds=$lt_postuninstall_cmds | ||
15715 | |||
15716 | # Commands used to build a loadable module (assumed same as above if empty) | ||
15717 | module_cmds=$lt_module_cmds_F77 | ||
15718 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | ||
15719 | |||
15720 | # Commands to strip libraries. | ||
15721 | old_striplib=$lt_old_striplib | ||
15722 | striplib=$lt_striplib | ||
15723 | |||
15724 | # Dependencies to place before the objects being linked to create a | ||
15725 | # shared library. | ||
15726 | predep_objects=$lt_predep_objects_F77 | ||
15727 | |||
15728 | # Dependencies to place after the objects being linked to create a | ||
15729 | # shared library. | ||
15730 | postdep_objects=$lt_postdep_objects_F77 | ||
15731 | |||
15732 | # Dependencies to place before the objects being linked to create a | ||
15733 | # shared library. | ||
15734 | predeps=$lt_predeps_F77 | ||
15735 | |||
15736 | # Dependencies to place after the objects being linked to create a | ||
15737 | # shared library. | ||
15738 | postdeps=$lt_postdeps_F77 | ||
15739 | |||
15740 | # The library search path used internally by the compiler when linking | ||
15741 | # a shared library. | ||
15742 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | ||
15743 | |||
15744 | # Method to check whether dependent libraries are shared objects. | ||
15745 | deplibs_check_method=$lt_deplibs_check_method | ||
15746 | |||
15747 | # Command to use when deplibs_check_method == file_magic. | ||
15748 | file_magic_cmd=$lt_file_magic_cmd | ||
15749 | |||
15750 | # Flag that allows shared libraries with undefined symbols to be built. | ||
15751 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | ||
15752 | |||
15753 | # Flag that forces no undefined symbols. | ||
15754 | no_undefined_flag=$lt_no_undefined_flag_F77 | ||
15755 | |||
15756 | # Commands used to finish a libtool library installation in a directory. | ||
15757 | finish_cmds=$lt_finish_cmds | ||
15758 | |||
15759 | # Same as above, but a single script fragment to be evaled but not shown. | ||
15760 | finish_eval=$lt_finish_eval | ||
15761 | |||
15762 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
15763 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
15764 | |||
15765 | # Transform the output of nm in a proper C declaration | ||
15766 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
15767 | |||
15768 | # Transform the output of nm in a C name address pair | ||
15769 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
15770 | |||
15771 | # This is the shared library runtime path variable. | ||
15772 | runpath_var=$runpath_var | ||
15773 | |||
15774 | # This is the shared library path variable. | ||
15775 | shlibpath_var=$shlibpath_var | ||
15776 | |||
15777 | # Is shlibpath searched before the hard-coded library search path? | ||
15778 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
15779 | |||
15780 | # How to hardcode a shared library path into an executable. | ||
15781 | hardcode_action=$hardcode_action_F77 | ||
15782 | |||
15783 | # Whether we should hardcode library paths into libraries. | ||
15784 | hardcode_into_libs=$hardcode_into_libs | ||
15785 | |||
15786 | # Flag to hardcode \$libdir into a binary during linking. | ||
15787 | # This must work even if \$libdir does not exist. | ||
15788 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | ||
15789 | |||
15790 | # If ld is used when linking, flag to hardcode \$libdir into | ||
15791 | # a binary during linking. This must work even if \$libdir does | ||
15792 | # not exist. | ||
15793 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | ||
15794 | |||
15795 | # Whether we need a single -rpath flag with a separated argument. | ||
15796 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | ||
15797 | |||
15798 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
15799 | # resulting binary. | ||
15800 | hardcode_direct=$hardcode_direct_F77 | ||
15801 | |||
15802 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
15803 | # resulting binary. | ||
15804 | hardcode_minus_L=$hardcode_minus_L_F77 | ||
15805 | |||
15806 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
15807 | # the resulting binary. | ||
15808 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | ||
15809 | |||
15810 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
15811 | # and all subsequent libraries and executables linked against it. | ||
15812 | hardcode_automatic=$hardcode_automatic_F77 | ||
15813 | |||
15814 | # Variables whose values should be saved in libtool wrapper scripts and | ||
15815 | # restored at relink time. | ||
15816 | variables_saved_for_relink="$variables_saved_for_relink" | ||
15817 | |||
15818 | # Whether libtool must link a program against all its dependency libraries. | ||
15819 | link_all_deplibs=$link_all_deplibs_F77 | ||
15820 | |||
15821 | # Compile-time system search path for libraries | ||
15822 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
15823 | |||
15824 | # Run-time system search path for libraries | ||
15825 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
15826 | |||
15827 | # Fix the shell variable \$srcfile for the compiler. | ||
15828 | fix_srcfile_path="$fix_srcfile_path_F77" | ||
15829 | |||
15830 | # Set to yes if exported symbols are required. | ||
15831 | always_export_symbols=$always_export_symbols_F77 | ||
15832 | |||
15833 | # The commands to list exported symbols. | ||
15834 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | ||
15835 | |||
15836 | # The commands to extract the exported symbol list from a shared archive. | ||
15837 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
15838 | |||
15839 | # Symbols that should not be listed in the preloaded symbols. | ||
15840 | exclude_expsyms=$lt_exclude_expsyms_F77 | ||
15841 | |||
15842 | # Symbols that must always be exported. | ||
15843 | include_expsyms=$lt_include_expsyms_F77 | ||
15844 | |||
15845 | # ### END LIBTOOL TAG CONFIG: $tagname | ||
15846 | |||
15847 | __EOF__ | ||
15848 | |||
15849 | |||
15850 | else | ||
15851 | # If there is no Makefile yet, we rely on a make rule to execute | ||
15852 | # `config.status --recheck' to rerun these tests and create the | ||
15853 | # libtool script then. | ||
15854 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
15855 | if test -f "$ltmain_in"; then | ||
15856 | test -f Makefile && make "$ltmain" | ||
15857 | fi | ||
15858 | fi | ||
15859 | |||
15860 | |||
15861 | ac_ext=c | ||
15862 | ac_cpp='$CPP $CPPFLAGS' | ||
15863 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
15864 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
15865 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
15866 | |||
15867 | CC="$lt_save_CC" | ||
15868 | |||
15869 | else | ||
15870 | tagname="" | ||
15871 | fi | ||
15872 | ;; | ||
15873 | |||
15874 | GCJ) | ||
15875 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | ||
15876 | |||
15877 | |||
15878 | |||
15879 | # Source file extension for Java test sources. | ||
15880 | ac_ext=java | ||
15881 | |||
15882 | # Object file extension for compiled Java test sources. | ||
15883 | objext=o | ||
15884 | objext_GCJ=$objext | ||
15885 | |||
15886 | # Code to be used in simple compile tests | ||
15887 | lt_simple_compile_test_code="class foo {}\n" | ||
15888 | |||
15889 | # Code to be used in simple link tests | ||
15890 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' | ||
15891 | |||
15892 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
15893 | |||
15894 | # If no C compiler was specified, use CC. | ||
15895 | LTCC=${LTCC-"$CC"} | ||
15896 | |||
15897 | # Allow CC to be a program name with arguments. | ||
15898 | compiler=$CC | ||
15899 | |||
15900 | |||
15901 | # Allow CC to be a program name with arguments. | ||
15902 | lt_save_CC="$CC" | ||
15903 | CC=${GCJ-"gcj"} | ||
15904 | compiler=$CC | ||
15905 | compiler_GCJ=$CC | ||
15906 | |||
15907 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | ||
15908 | archive_cmds_need_lc_GCJ=no | ||
15909 | |||
15910 | |||
15911 | lt_prog_compiler_no_builtin_flag_GCJ= | ||
15912 | |||
15913 | if test "$GCC" = yes; then | ||
15914 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | ||
15915 | |||
15916 | |||
15917 | echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
15918 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 | ||
15919 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | ||
15920 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
15921 | else | ||
15922 | lt_cv_prog_compiler_rtti_exceptions=no | ||
15923 | ac_outfile=conftest.$ac_objext | ||
15924 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
15925 | lt_compiler_flag="-fno-rtti -fno-exceptions" | ||
15926 | # Insert the option either (1) after the last *FLAGS variable, or | ||
15927 | # (2) before a word containing "conftest.", or (3) at the end. | ||
15928 | # Note that $ac_compile itself does not contain backslashes and begins | ||
15929 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
15930 | # The option is referenced via a variable to avoid confusing sed. | ||
15931 | lt_compile=`echo "$ac_compile" | $SED \ | ||
15932 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
15933 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
15934 | -e 's:$: $lt_compiler_flag:'` | ||
15935 | (eval echo "\"\$as_me:15935: $lt_compile\"" >&5) | ||
15936 | (eval "$lt_compile" 2>conftest.err) | ||
15937 | ac_status=$? | ||
15938 | cat conftest.err >&5 | ||
15939 | echo "$as_me:15939: \$? = $ac_status" >&5 | ||
15940 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
15941 | # The compiler can only warn and ignore the option if not recognized | ||
15942 | # So say no if there are warnings | ||
15943 | if test ! -s conftest.err; then | ||
15944 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
15945 | fi | ||
15946 | fi | ||
15947 | $rm conftest* | ||
15948 | |||
15949 | fi | ||
15950 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | ||
15951 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 | ||
15952 | |||
15953 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | ||
15954 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | ||
15955 | else | ||
15956 | : | ||
15957 | fi | ||
15958 | |||
15959 | fi | ||
15960 | |||
15961 | lt_prog_compiler_wl_GCJ= | ||
15962 | lt_prog_compiler_pic_GCJ= | ||
15963 | lt_prog_compiler_static_GCJ= | ||
15964 | |||
15965 | echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | ||
15966 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 | ||
15967 | |||
15968 | if test "$GCC" = yes; then | ||
15969 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
15970 | lt_prog_compiler_static_GCJ='-static' | ||
15971 | |||
15972 | case $host_os in | ||
15973 | aix*) | ||
15974 | # All AIX code is PIC. | ||
15975 | if test "$host_cpu" = ia64; then | ||
15976 | # AIX 5 now supports IA64 processor | ||
15977 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
15978 | fi | ||
15979 | ;; | ||
15980 | |||
15981 | amigaos*) | ||
15982 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
15983 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
15984 | # like `-m68040'. | ||
15985 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | ||
15986 | ;; | ||
15987 | |||
15988 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
15989 | # PIC is the default for these OSes. | ||
15990 | ;; | ||
15991 | |||
15992 | mingw* | pw32* | os2*) | ||
15993 | # This hack is so that the source file can tell whether it is being | ||
15994 | # built for inclusion in a dll (and should export symbols for example). | ||
15995 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | ||
15996 | ;; | ||
15997 | |||
15998 | darwin* | rhapsody*) | ||
15999 | # PIC is the default on this platform | ||
16000 | # Common symbols not allowed in MH_DYLIB files | ||
16001 | lt_prog_compiler_pic_GCJ='-fno-common' | ||
16002 | ;; | ||
16003 | |||
16004 | msdosdjgpp*) | ||
16005 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
16006 | # on systems that don't support them. | ||
16007 | lt_prog_compiler_can_build_shared_GCJ=no | ||
16008 | enable_shared=no | ||
16009 | ;; | ||
16010 | |||
16011 | sysv4*MP*) | ||
16012 | if test -d /usr/nec; then | ||
16013 | lt_prog_compiler_pic_GCJ=-Kconform_pic | ||
16014 | fi | ||
16015 | ;; | ||
16016 | |||
16017 | hpux*) | ||
16018 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
16019 | # not for PA HP-UX. | ||
16020 | case "$host_cpu" in | ||
16021 | hppa*64*|ia64*) | ||
16022 | # +Z the default | ||
16023 | ;; | ||
16024 | *) | ||
16025 | lt_prog_compiler_pic_GCJ='-fPIC' | ||
16026 | ;; | ||
16027 | esac | ||
16028 | ;; | ||
16029 | |||
16030 | *) | ||
16031 | lt_prog_compiler_pic_GCJ='-fPIC' | ||
16032 | ;; | ||
16033 | esac | ||
16034 | else | ||
16035 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
16036 | case $host_os in | ||
16037 | aix*) | ||
16038 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
16039 | if test "$host_cpu" = ia64; then | ||
16040 | # AIX 5 now supports IA64 processor | ||
16041 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
16042 | else | ||
16043 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | ||
16044 | fi | ||
16045 | ;; | ||
16046 | |||
16047 | mingw* | pw32* | os2*) | ||
16048 | # This hack is so that the source file can tell whether it is being | ||
16049 | # built for inclusion in a dll (and should export symbols for example). | ||
16050 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | ||
16051 | ;; | ||
16052 | |||
16053 | hpux9* | hpux10* | hpux11*) | ||
16054 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
16055 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
16056 | # not for PA HP-UX. | ||
16057 | case "$host_cpu" in | ||
16058 | hppa*64*|ia64*) | ||
16059 | # +Z the default | ||
16060 | ;; | ||
16061 | *) | ||
16062 | lt_prog_compiler_pic_GCJ='+Z' | ||
16063 | ;; | ||
16064 | esac | ||
16065 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
16066 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | ||
16067 | ;; | ||
16068 | |||
16069 | irix5* | irix6* | nonstopux*) | ||
16070 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
16071 | # PIC (with -KPIC) is the default. | ||
16072 | lt_prog_compiler_static_GCJ='-non_shared' | ||
16073 | ;; | ||
16074 | |||
16075 | newsos6) | ||
16076 | lt_prog_compiler_pic_GCJ='-KPIC' | ||
16077 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
16078 | ;; | ||
16079 | |||
16080 | linux*) | ||
16081 | case $CC in | ||
16082 | icc* | ecc*) | ||
16083 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
16084 | lt_prog_compiler_pic_GCJ='-KPIC' | ||
16085 | lt_prog_compiler_static_GCJ='-static' | ||
16086 | ;; | ||
16087 | ccc*) | ||
16088 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
16089 | # All Alpha code is PIC. | ||
16090 | lt_prog_compiler_static_GCJ='-non_shared' | ||
16091 | ;; | ||
16092 | esac | ||
16093 | ;; | ||
16094 | |||
16095 | osf3* | osf4* | osf5*) | ||
16096 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
16097 | # All OSF/1 code is PIC. | ||
16098 | lt_prog_compiler_static_GCJ='-non_shared' | ||
16099 | ;; | ||
16100 | |||
16101 | sco3.2v5*) | ||
16102 | lt_prog_compiler_pic_GCJ='-Kpic' | ||
16103 | lt_prog_compiler_static_GCJ='-dn' | ||
16104 | ;; | ||
16105 | |||
16106 | solaris*) | ||
16107 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
16108 | lt_prog_compiler_pic_GCJ='-KPIC' | ||
16109 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
16110 | ;; | ||
16111 | |||
16112 | sunos4*) | ||
16113 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | ||
16114 | lt_prog_compiler_pic_GCJ='-PIC' | ||
16115 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
16116 | ;; | ||
16117 | |||
16118 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
16119 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
16120 | lt_prog_compiler_pic_GCJ='-KPIC' | ||
16121 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
16122 | ;; | ||
16123 | |||
16124 | sysv4*MP*) | ||
16125 | if test -d /usr/nec ;then | ||
16126 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | ||
16127 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
16128 | fi | ||
16129 | ;; | ||
16130 | |||
16131 | uts4*) | ||
16132 | lt_prog_compiler_pic_GCJ='-pic' | ||
16133 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
16134 | ;; | ||
16135 | |||
16136 | *) | ||
16137 | lt_prog_compiler_can_build_shared_GCJ=no | ||
16138 | ;; | ||
16139 | esac | ||
16140 | fi | ||
16141 | |||
16142 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | ||
16143 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 | ||
16144 | |||
16145 | # | ||
16146 | # Check to make sure the PIC flag actually works. | ||
16147 | # | ||
16148 | if test -n "$lt_prog_compiler_pic_GCJ"; then | ||
16149 | |||
16150 | echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | ||
16151 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 | ||
16152 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | ||
16153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16154 | else | ||
16155 | lt_prog_compiler_pic_works_GCJ=no | ||
16156 | ac_outfile=conftest.$ac_objext | ||
16157 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
16158 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | ||
16159 | # Insert the option either (1) after the last *FLAGS variable, or | ||
16160 | # (2) before a word containing "conftest.", or (3) at the end. | ||
16161 | # Note that $ac_compile itself does not contain backslashes and begins | ||
16162 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
16163 | # The option is referenced via a variable to avoid confusing sed. | ||
16164 | lt_compile=`echo "$ac_compile" | $SED \ | ||
16165 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
16166 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
16167 | -e 's:$: $lt_compiler_flag:'` | ||
16168 | (eval echo "\"\$as_me:16168: $lt_compile\"" >&5) | ||
16169 | (eval "$lt_compile" 2>conftest.err) | ||
16170 | ac_status=$? | ||
16171 | cat conftest.err >&5 | ||
16172 | echo "$as_me:16172: \$? = $ac_status" >&5 | ||
16173 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
16174 | # The compiler can only warn and ignore the option if not recognized | ||
16175 | # So say no if there are warnings | ||
16176 | if test ! -s conftest.err; then | ||
16177 | lt_prog_compiler_pic_works_GCJ=yes | ||
16178 | fi | ||
16179 | fi | ||
16180 | $rm conftest* | ||
16181 | |||
16182 | fi | ||
16183 | echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | ||
16184 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 | ||
16185 | |||
16186 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | ||
16187 | case $lt_prog_compiler_pic_GCJ in | ||
16188 | "" | " "*) ;; | ||
16189 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | ||
16190 | esac | ||
16191 | else | ||
16192 | lt_prog_compiler_pic_GCJ= | ||
16193 | lt_prog_compiler_can_build_shared_GCJ=no | ||
16194 | fi | ||
16195 | |||
16196 | fi | ||
16197 | case "$host_os" in | ||
16198 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
16199 | *djgpp*) | ||
16200 | lt_prog_compiler_pic_GCJ= | ||
16201 | ;; | ||
16202 | *) | ||
16203 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | ||
16204 | ;; | ||
16205 | esac | ||
16206 | |||
16207 | echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
16208 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 | ||
16209 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | ||
16210 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16211 | else | ||
16212 | lt_cv_prog_compiler_c_o_GCJ=no | ||
16213 | $rm -r conftest 2>/dev/null | ||
16214 | mkdir conftest | ||
16215 | cd conftest | ||
16216 | mkdir out | ||
16217 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
16218 | |||
16219 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
16220 | # Insert the option either (1) after the last *FLAGS variable, or | ||
16221 | # (2) before a word containing "conftest.", or (3) at the end. | ||
16222 | # Note that $ac_compile itself does not contain backslashes and begins | ||
16223 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
16224 | lt_compile=`echo "$ac_compile" | $SED \ | ||
16225 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
16226 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
16227 | -e 's:$: $lt_compiler_flag:'` | ||
16228 | (eval echo "\"\$as_me:16228: $lt_compile\"" >&5) | ||
16229 | (eval "$lt_compile" 2>out/conftest.err) | ||
16230 | ac_status=$? | ||
16231 | cat out/conftest.err >&5 | ||
16232 | echo "$as_me:16232: \$? = $ac_status" >&5 | ||
16233 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
16234 | then | ||
16235 | # The compiler can only warn and ignore the option if not recognized | ||
16236 | # So say no if there are warnings | ||
16237 | if test ! -s out/conftest.err; then | ||
16238 | lt_cv_prog_compiler_c_o_GCJ=yes | ||
16239 | fi | ||
16240 | fi | ||
16241 | chmod u+w . | ||
16242 | $rm conftest* | ||
16243 | # SGI C++ compiler will create directory out/ii_files/ for | ||
16244 | # template instantiation | ||
16245 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | ||
16246 | $rm out/* && rmdir out | ||
16247 | cd .. | ||
16248 | rmdir conftest | ||
16249 | $rm conftest* | ||
16250 | |||
16251 | fi | ||
16252 | echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | ||
16253 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 | ||
16254 | |||
16255 | |||
16256 | hard_links="nottested" | ||
16257 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | ||
16258 | # do not overwrite the value of need_locks provided by the user | ||
16259 | echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | ||
16260 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 | ||
16261 | hard_links=yes | ||
16262 | $rm conftest* | ||
16263 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
16264 | touch conftest.a | ||
16265 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
16266 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
16267 | echo "$as_me:$LINENO: result: $hard_links" >&5 | ||
16268 | echo "${ECHO_T}$hard_links" >&6 | ||
16269 | if test "$hard_links" = no; then | ||
16270 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
16271 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
16272 | need_locks=warn | ||
16273 | fi | ||
16274 | else | ||
16275 | need_locks=no | ||
16276 | fi | ||
16277 | |||
16278 | echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
16279 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 | ||
16280 | |||
16281 | runpath_var= | ||
16282 | allow_undefined_flag_GCJ= | ||
16283 | enable_shared_with_static_runtimes_GCJ=no | ||
16284 | archive_cmds_GCJ= | ||
16285 | archive_expsym_cmds_GCJ= | ||
16286 | old_archive_From_new_cmds_GCJ= | ||
16287 | old_archive_from_expsyms_cmds_GCJ= | ||
16288 | export_dynamic_flag_spec_GCJ= | ||
16289 | whole_archive_flag_spec_GCJ= | ||
16290 | thread_safe_flag_spec_GCJ= | ||
16291 | hardcode_libdir_flag_spec_GCJ= | ||
16292 | hardcode_libdir_flag_spec_ld_GCJ= | ||
16293 | hardcode_libdir_separator_GCJ= | ||
16294 | hardcode_direct_GCJ=no | ||
16295 | hardcode_minus_L_GCJ=no | ||
16296 | hardcode_shlibpath_var_GCJ=unsupported | ||
16297 | link_all_deplibs_GCJ=unknown | ||
16298 | hardcode_automatic_GCJ=no | ||
16299 | module_cmds_GCJ= | ||
16300 | module_expsym_cmds_GCJ= | ||
16301 | always_export_symbols_GCJ=no | ||
16302 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
16303 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
16304 | # included in the symbol list | ||
16305 | include_expsyms_GCJ= | ||
16306 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
16307 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
16308 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
16309 | # as well as any symbol that contains `d'. | ||
16310 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | ||
16311 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
16312 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
16313 | # the symbol is explicitly referenced. Since portable code cannot | ||
16314 | # rely on this symbol name, it's probably fine to never include it in | ||
16315 | # preloaded symbol tables. | ||
16316 | extract_expsyms_cmds= | ||
16317 | |||
16318 | case $host_os in | ||
16319 | cygwin* | mingw* | pw32*) | ||
16320 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
16321 | # When not using gcc, we currently assume that we are using | ||
16322 | # Microsoft Visual C++. | ||
16323 | if test "$GCC" != yes; then | ||
16324 | with_gnu_ld=no | ||
16325 | fi | ||
16326 | ;; | ||
16327 | openbsd*) | ||
16328 | with_gnu_ld=no | ||
16329 | ;; | ||
16330 | esac | ||
16331 | |||
16332 | ld_shlibs_GCJ=yes | ||
16333 | if test "$with_gnu_ld" = yes; then | ||
16334 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
16335 | wlarc='${wl}' | ||
16336 | |||
16337 | # See if GNU ld supports shared libraries. | ||
16338 | case $host_os in | ||
16339 | aix3* | aix4* | aix5*) | ||
16340 | # On AIX/PPC, the GNU linker is very broken | ||
16341 | if test "$host_cpu" != ia64; then | ||
16342 | ld_shlibs_GCJ=no | ||
16343 | cat <<EOF 1>&2 | ||
16344 | |||
16345 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
16346 | *** to be unable to reliably create shared libraries on AIX. | ||
16347 | *** Therefore, libtool is disabling shared libraries support. If you | ||
16348 | *** really care for shared libraries, you may want to modify your PATH | ||
16349 | *** so that a non-GNU linker is found, and then restart. | ||
16350 | |||
16351 | EOF | ||
16352 | fi | ||
16353 | ;; | ||
16354 | |||
16355 | amigaos*) | ||
16356 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | ||
16357 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
16358 | hardcode_minus_L_GCJ=yes | ||
16359 | |||
16360 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | ||
16361 | # that the semantics of dynamic libraries on AmigaOS, at least up | ||
16362 | # to version 4, is to share data among multiple programs linked | ||
16363 | # with the same dynamic library. Since this doesn't match the | ||
16364 | # behavior of shared libraries on other platforms, we can't use | ||
16365 | # them. | ||
16366 | ld_shlibs_GCJ=no | ||
16367 | ;; | ||
16368 | |||
16369 | beos*) | ||
16370 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
16371 | allow_undefined_flag_GCJ=unsupported | ||
16372 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
16373 | # support --undefined. This deserves some investigation. FIXME | ||
16374 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
16375 | else | ||
16376 | ld_shlibs_GCJ=no | ||
16377 | fi | ||
16378 | ;; | ||
16379 | |||
16380 | cygwin* | mingw* | pw32*) | ||
16381 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | ||
16382 | # as there is no search path for DLLs. | ||
16383 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
16384 | allow_undefined_flag_GCJ=unsupported | ||
16385 | always_export_symbols_GCJ=no | ||
16386 | enable_shared_with_static_runtimes_GCJ=yes | ||
16387 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | ||
16388 | |||
16389 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
16390 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | ||
16391 | # If the export-symbols file already is a .def file (1st line | ||
16392 | # is EXPORTS), use it as is; otherwise, prepend... | ||
16393 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
16394 | cp $export_symbols $output_objdir/$soname.def; | ||
16395 | else | ||
16396 | echo EXPORTS > $output_objdir/$soname.def; | ||
16397 | cat $export_symbols >> $output_objdir/$soname.def; | ||
16398 | fi~ | ||
16399 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | ||
16400 | else | ||
16401 | ld_shlibs=no | ||
16402 | fi | ||
16403 | ;; | ||
16404 | |||
16405 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
16406 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
16407 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
16408 | wlarc= | ||
16409 | else | ||
16410 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
16411 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
16412 | fi | ||
16413 | ;; | ||
16414 | |||
16415 | solaris* | sysv5*) | ||
16416 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | ||
16417 | ld_shlibs_GCJ=no | ||
16418 | cat <<EOF 1>&2 | ||
16419 | |||
16420 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
16421 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
16422 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
16423 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
16424 | *** your PATH or compiler configuration so that the native linker is | ||
16425 | *** used, and then restart. | ||
16426 | |||
16427 | EOF | ||
16428 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
16429 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
16430 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
16431 | else | ||
16432 | ld_shlibs_GCJ=no | ||
16433 | fi | ||
16434 | ;; | ||
16435 | |||
16436 | sunos4*) | ||
16437 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
16438 | wlarc= | ||
16439 | hardcode_direct_GCJ=yes | ||
16440 | hardcode_shlibpath_var_GCJ=no | ||
16441 | ;; | ||
16442 | |||
16443 | linux*) | ||
16444 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
16445 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
16446 | archive_cmds_GCJ="$tmp_archive_cmds" | ||
16447 | supports_anon_versioning=no | ||
16448 | case `$LD -v 2>/dev/null` in | ||
16449 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
16450 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
16451 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
16452 | *\ 2.11.*) ;; # other 2.11 versions | ||
16453 | *) supports_anon_versioning=yes ;; | ||
16454 | esac | ||
16455 | if test $supports_anon_versioning = yes; then | ||
16456 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | ||
16457 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
16458 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
16459 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
16460 | else | ||
16461 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" | ||
16462 | fi | ||
16463 | link_all_deplibs_GCJ=no | ||
16464 | else | ||
16465 | ld_shlibs_GCJ=no | ||
16466 | fi | ||
16467 | ;; | ||
16468 | |||
16469 | *) | ||
16470 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
16471 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
16472 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
16473 | else | ||
16474 | ld_shlibs_GCJ=no | ||
16475 | fi | ||
16476 | ;; | ||
16477 | esac | ||
16478 | |||
16479 | if test "$ld_shlibs_GCJ" = yes; then | ||
16480 | runpath_var=LD_RUN_PATH | ||
16481 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | ||
16482 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | ||
16483 | # ancient GNU ld didn't support --whole-archive et. al. | ||
16484 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | ||
16485 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
16486 | else | ||
16487 | whole_archive_flag_spec_GCJ= | ||
16488 | fi | ||
16489 | fi | ||
16490 | else | ||
16491 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
16492 | case $host_os in | ||
16493 | aix3*) | ||
16494 | allow_undefined_flag_GCJ=unsupported | ||
16495 | always_export_symbols_GCJ=yes | ||
16496 | archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' | ||
16497 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
16498 | # are no directories specified by -L. | ||
16499 | hardcode_minus_L_GCJ=yes | ||
16500 | if test "$GCC" = yes && test -z "$link_static_flag"; then | ||
16501 | # Neither direct hardcoding nor static linking is supported with a | ||
16502 | # broken collect2. | ||
16503 | hardcode_direct_GCJ=unsupported | ||
16504 | fi | ||
16505 | ;; | ||
16506 | |||
16507 | aix4* | aix5*) | ||
16508 | if test "$host_cpu" = ia64; then | ||
16509 | # On IA64, the linker does run time linking by default, so we don't | ||
16510 | # have to do anything special. | ||
16511 | aix_use_runtimelinking=no | ||
16512 | exp_sym_flag='-Bexport' | ||
16513 | no_entry_flag="" | ||
16514 | else | ||
16515 | # If we're using GNU nm, then we don't want the "-C" option. | ||
16516 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
16517 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | ||
16518 | export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | ||
16519 | else | ||
16520 | export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' | ||
16521 | fi | ||
16522 | aix_use_runtimelinking=no | ||
16523 | |||
16524 | # Test if we are trying to use run time linking or normal | ||
16525 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
16526 | # need to do runtime linking. | ||
16527 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | ||
16528 | for ld_flag in $LDFLAGS; do | ||
16529 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
16530 | aix_use_runtimelinking=yes | ||
16531 | break | ||
16532 | fi | ||
16533 | done | ||
16534 | esac | ||
16535 | |||
16536 | exp_sym_flag='-bexport' | ||
16537 | no_entry_flag='-bnoentry' | ||
16538 | fi | ||
16539 | |||
16540 | # When large executables or shared objects are built, AIX ld can | ||
16541 | # have problems creating the table of contents. If linking a library | ||
16542 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
16543 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
16544 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
16545 | |||
16546 | archive_cmds_GCJ='' | ||
16547 | hardcode_direct_GCJ=yes | ||
16548 | hardcode_libdir_separator_GCJ=':' | ||
16549 | link_all_deplibs_GCJ=yes | ||
16550 | |||
16551 | if test "$GCC" = yes; then | ||
16552 | case $host_os in aix4.012|aix4.012.*) | ||
16553 | # We only want to do this on AIX 4.2 and lower, the check | ||
16554 | # below for broken collect2 doesn't work under 4.3+ | ||
16555 | collect2name=`${CC} -print-prog-name=collect2` | ||
16556 | if test -f "$collect2name" && \ | ||
16557 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
16558 | then | ||
16559 | # We have reworked collect2 | ||
16560 | hardcode_direct_GCJ=yes | ||
16561 | else | ||
16562 | # We have old collect2 | ||
16563 | hardcode_direct_GCJ=unsupported | ||
16564 | # It fails to find uninstalled libraries when the uninstalled | ||
16565 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
16566 | # to unsupported forces relinking | ||
16567 | hardcode_minus_L_GCJ=yes | ||
16568 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
16569 | hardcode_libdir_separator_GCJ= | ||
16570 | fi | ||
16571 | esac | ||
16572 | shared_flag='-shared' | ||
16573 | else | ||
16574 | # not using gcc | ||
16575 | if test "$host_cpu" = ia64; then | ||
16576 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
16577 | # chokes on -Wl,-G. The following line is correct: | ||
16578 | shared_flag='-G' | ||
16579 | else | ||
16580 | if test "$aix_use_runtimelinking" = yes; then | ||
16581 | shared_flag='${wl}-G' | ||
16582 | else | ||
16583 | shared_flag='${wl}-bM:SRE' | ||
16584 | fi | ||
16585 | fi | ||
16586 | fi | ||
16587 | |||
16588 | # It seems that -bexpall does not export symbols beginning with | ||
16589 | # underscore (_), so it is better to generate a list of symbols to export. | ||
16590 | always_export_symbols_GCJ=yes | ||
16591 | if test "$aix_use_runtimelinking" = yes; then | ||
16592 | # Warning - without using the other runtime loading flags (-brtl), | ||
16593 | # -berok will link without error, but may produce a broken library. | ||
16594 | allow_undefined_flag_GCJ='-berok' | ||
16595 | # Determine the default libpath from the value encoded in an empty executable. | ||
16596 | cat >conftest.$ac_ext <<_ACEOF | ||
16597 | /* confdefs.h. */ | ||
16598 | _ACEOF | ||
16599 | cat confdefs.h >>conftest.$ac_ext | ||
16600 | cat >>conftest.$ac_ext <<_ACEOF | ||
16601 | /* end confdefs.h. */ | ||
16602 | |||
16603 | int | ||
16604 | main () | ||
16605 | { | ||
16606 | |||
16607 | ; | ||
16608 | return 0; | ||
16609 | } | ||
16610 | _ACEOF | ||
16611 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16612 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
16613 | (eval $ac_link) 2>conftest.er1 | ||
16614 | ac_status=$? | ||
16615 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16616 | rm -f conftest.er1 | ||
16617 | cat conftest.err >&5 | ||
16618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16619 | (exit $ac_status); } && | ||
16620 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
16621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16622 | (eval $ac_try) 2>&5 | ||
16623 | ac_status=$? | ||
16624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16625 | (exit $ac_status); }; } && | ||
16626 | { ac_try='test -s conftest$ac_exeext' | ||
16627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16628 | (eval $ac_try) 2>&5 | ||
16629 | ac_status=$? | ||
16630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16631 | (exit $ac_status); }; }; then | ||
16632 | |||
16633 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
16634 | }'` | ||
16635 | # Check for a 64-bit object if we didn't find anything. | ||
16636 | 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; } | ||
16637 | }'`; fi | ||
16638 | else | ||
16639 | echo "$as_me: failed program was:" >&5 | ||
16640 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16641 | |||
16642 | fi | ||
16643 | rm -f conftest.err conftest.$ac_objext \ | ||
16644 | conftest$ac_exeext conftest.$ac_ext | ||
16645 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
16646 | |||
16647 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
16648 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" | ||
16649 | else | ||
16650 | if test "$host_cpu" = ia64; then | ||
16651 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | ||
16652 | allow_undefined_flag_GCJ="-z nodefs" | ||
16653 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" | ||
16654 | else | ||
16655 | # Determine the default libpath from the value encoded in an empty executable. | ||
16656 | cat >conftest.$ac_ext <<_ACEOF | ||
16657 | /* confdefs.h. */ | ||
16658 | _ACEOF | ||
16659 | cat confdefs.h >>conftest.$ac_ext | ||
16660 | cat >>conftest.$ac_ext <<_ACEOF | ||
16661 | /* end confdefs.h. */ | ||
16662 | |||
16663 | int | ||
16664 | main () | ||
16665 | { | ||
16666 | |||
16667 | ; | ||
16668 | return 0; | ||
16669 | } | ||
16670 | _ACEOF | ||
16671 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
16672 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
16673 | (eval $ac_link) 2>conftest.er1 | ||
16674 | ac_status=$? | ||
16675 | grep -v '^ *+' conftest.er1 >conftest.err | ||
16676 | rm -f conftest.er1 | ||
16677 | cat conftest.err >&5 | ||
16678 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16679 | (exit $ac_status); } && | ||
16680 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
16681 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16682 | (eval $ac_try) 2>&5 | ||
16683 | ac_status=$? | ||
16684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16685 | (exit $ac_status); }; } && | ||
16686 | { ac_try='test -s conftest$ac_exeext' | ||
16687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
16688 | (eval $ac_try) 2>&5 | ||
16689 | ac_status=$? | ||
16690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
16691 | (exit $ac_status); }; }; then | ||
16692 | |||
16693 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
16694 | }'` | ||
16695 | # Check for a 64-bit object if we didn't find anything. | ||
16696 | 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; } | ||
16697 | }'`; fi | ||
16698 | else | ||
16699 | echo "$as_me: failed program was:" >&5 | ||
16700 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
16701 | |||
16702 | fi | ||
16703 | rm -f conftest.err conftest.$ac_objext \ | ||
16704 | conftest$ac_exeext conftest.$ac_ext | ||
16705 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
16706 | |||
16707 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
16708 | # Warning - without using the other run time loading flags, | ||
16709 | # -berok will link without error, but may produce a broken library. | ||
16710 | no_undefined_flag_GCJ=' ${wl}-bernotok' | ||
16711 | allow_undefined_flag_GCJ=' ${wl}-berok' | ||
16712 | # -bexpall does not export symbols beginning with underscore (_) | ||
16713 | always_export_symbols_GCJ=yes | ||
16714 | # Exported symbols can be pulled into shared objects from archives | ||
16715 | whole_archive_flag_spec_GCJ=' ' | ||
16716 | archive_cmds_need_lc_GCJ=yes | ||
16717 | # This is similar to how AIX traditionally builds it's shared libraries. | ||
16718 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | ||
16719 | fi | ||
16720 | fi | ||
16721 | ;; | ||
16722 | |||
16723 | amigaos*) | ||
16724 | archive_cmds_GCJ='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)' | ||
16725 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
16726 | hardcode_minus_L_GCJ=yes | ||
16727 | # see comment about different semantics on the GNU ld section | ||
16728 | ld_shlibs_GCJ=no | ||
16729 | ;; | ||
16730 | |||
16731 | bsdi4*) | ||
16732 | export_dynamic_flag_spec_GCJ=-rdynamic | ||
16733 | ;; | ||
16734 | |||
16735 | cygwin* | mingw* | pw32*) | ||
16736 | # When not using gcc, we currently assume that we are using | ||
16737 | # Microsoft Visual C++. | ||
16738 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
16739 | # no search path for DLLs. | ||
16740 | hardcode_libdir_flag_spec_GCJ=' ' | ||
16741 | allow_undefined_flag_GCJ=unsupported | ||
16742 | # Tell ltmain to make .lib files, not .a files. | ||
16743 | libext=lib | ||
16744 | # Tell ltmain to make .dll files, not .so files. | ||
16745 | shrext_cmds=".dll" | ||
16746 | # FIXME: Setting linknames here is a bad hack. | ||
16747 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
16748 | # The linker will automatically build a .lib file if we build a DLL. | ||
16749 | old_archive_From_new_cmds_GCJ='true' | ||
16750 | # FIXME: Should let the user specify the lib program. | ||
16751 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | ||
16752 | fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
16753 | enable_shared_with_static_runtimes_GCJ=yes | ||
16754 | ;; | ||
16755 | |||
16756 | darwin* | rhapsody*) | ||
16757 | if test "$GXX" = yes ; then | ||
16758 | archive_cmds_need_lc_GCJ=no | ||
16759 | case "$host_os" in | ||
16760 | rhapsody* | darwin1.[012]) | ||
16761 | allow_undefined_flag_GCJ='-undefined suppress' | ||
16762 | ;; | ||
16763 | *) # Darwin 1.3 on | ||
16764 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
16765 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' | ||
16766 | else | ||
16767 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
16768 | 10.[012]) | ||
16769 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' | ||
16770 | ;; | ||
16771 | 10.*) | ||
16772 | allow_undefined_flag_GCJ='-undefined dynamic_lookup' | ||
16773 | ;; | ||
16774 | esac | ||
16775 | fi | ||
16776 | ;; | ||
16777 | esac | ||
16778 | lt_int_apple_cc_single_mod=no | ||
16779 | output_verbose_link_cmd='echo' | ||
16780 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | ||
16781 | lt_int_apple_cc_single_mod=yes | ||
16782 | fi | ||
16783 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
16784 | archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
16785 | else | ||
16786 | archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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' | ||
16787 | fi | ||
16788 | module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
16789 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | ||
16790 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
16791 | archive_expsym_cmds_GCJ='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}' | ||
16792 | else | ||
16793 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}' | ||
16794 | fi | ||
16795 | module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | ||
16796 | hardcode_direct_GCJ=no | ||
16797 | hardcode_automatic_GCJ=yes | ||
16798 | hardcode_shlibpath_var_GCJ=unsupported | ||
16799 | whole_archive_flag_spec_GCJ='-all_load $convenience' | ||
16800 | link_all_deplibs_GCJ=yes | ||
16801 | else | ||
16802 | ld_shlibs_GCJ=no | ||
16803 | fi | ||
16804 | ;; | ||
16805 | |||
16806 | dgux*) | ||
16807 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
16808 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
16809 | hardcode_shlibpath_var_GCJ=no | ||
16810 | ;; | ||
16811 | |||
16812 | freebsd1*) | ||
16813 | ld_shlibs_GCJ=no | ||
16814 | ;; | ||
16815 | |||
16816 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
16817 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
16818 | # does not break anything, and helps significantly (at the cost of a little | ||
16819 | # extra space). | ||
16820 | freebsd2.2*) | ||
16821 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
16822 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | ||
16823 | hardcode_direct_GCJ=yes | ||
16824 | hardcode_shlibpath_var_GCJ=no | ||
16825 | ;; | ||
16826 | |||
16827 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
16828 | freebsd2*) | ||
16829 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
16830 | hardcode_direct_GCJ=yes | ||
16831 | hardcode_minus_L_GCJ=yes | ||
16832 | hardcode_shlibpath_var_GCJ=no | ||
16833 | ;; | ||
16834 | |||
16835 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
16836 | freebsd* | kfreebsd*-gnu) | ||
16837 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
16838 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | ||
16839 | hardcode_direct_GCJ=yes | ||
16840 | hardcode_shlibpath_var_GCJ=no | ||
16841 | ;; | ||
16842 | |||
16843 | hpux9*) | ||
16844 | if test "$GCC" = yes; then | ||
16845 | archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
16846 | else | ||
16847 | archive_cmds_GCJ='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' | ||
16848 | fi | ||
16849 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | ||
16850 | hardcode_libdir_separator_GCJ=: | ||
16851 | hardcode_direct_GCJ=yes | ||
16852 | |||
16853 | # hardcode_minus_L: Not really in the search PATH, | ||
16854 | # but as the default location of the library. | ||
16855 | hardcode_minus_L_GCJ=yes | ||
16856 | export_dynamic_flag_spec_GCJ='${wl}-E' | ||
16857 | ;; | ||
16858 | |||
16859 | hpux10* | hpux11*) | ||
16860 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
16861 | case "$host_cpu" in | ||
16862 | hppa*64*|ia64*) | ||
16863 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
16864 | ;; | ||
16865 | *) | ||
16866 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
16867 | ;; | ||
16868 | esac | ||
16869 | else | ||
16870 | case "$host_cpu" in | ||
16871 | hppa*64*|ia64*) | ||
16872 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
16873 | ;; | ||
16874 | *) | ||
16875 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
16876 | ;; | ||
16877 | esac | ||
16878 | fi | ||
16879 | if test "$with_gnu_ld" = no; then | ||
16880 | case "$host_cpu" in | ||
16881 | hppa*64*) | ||
16882 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | ||
16883 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | ||
16884 | hardcode_libdir_separator_GCJ=: | ||
16885 | hardcode_direct_GCJ=no | ||
16886 | hardcode_shlibpath_var_GCJ=no | ||
16887 | ;; | ||
16888 | ia64*) | ||
16889 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
16890 | hardcode_direct_GCJ=no | ||
16891 | hardcode_shlibpath_var_GCJ=no | ||
16892 | |||
16893 | # hardcode_minus_L: Not really in the search PATH, | ||
16894 | # but as the default location of the library. | ||
16895 | hardcode_minus_L_GCJ=yes | ||
16896 | ;; | ||
16897 | *) | ||
16898 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | ||
16899 | hardcode_libdir_separator_GCJ=: | ||
16900 | hardcode_direct_GCJ=yes | ||
16901 | export_dynamic_flag_spec_GCJ='${wl}-E' | ||
16902 | |||
16903 | # hardcode_minus_L: Not really in the search PATH, | ||
16904 | # but as the default location of the library. | ||
16905 | hardcode_minus_L_GCJ=yes | ||
16906 | ;; | ||
16907 | esac | ||
16908 | fi | ||
16909 | ;; | ||
16910 | |||
16911 | irix5* | irix6* | nonstopux*) | ||
16912 | if test "$GCC" = yes; then | ||
16913 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
16914 | else | ||
16915 | archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
16916 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | ||
16917 | fi | ||
16918 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | ||
16919 | hardcode_libdir_separator_GCJ=: | ||
16920 | link_all_deplibs_GCJ=yes | ||
16921 | ;; | ||
16922 | |||
16923 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
16924 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
16925 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
16926 | else | ||
16927 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
16928 | fi | ||
16929 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | ||
16930 | hardcode_direct_GCJ=yes | ||
16931 | hardcode_shlibpath_var_GCJ=no | ||
16932 | ;; | ||
16933 | |||
16934 | newsos6) | ||
16935 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
16936 | hardcode_direct_GCJ=yes | ||
16937 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | ||
16938 | hardcode_libdir_separator_GCJ=: | ||
16939 | hardcode_shlibpath_var_GCJ=no | ||
16940 | ;; | ||
16941 | |||
16942 | openbsd*) | ||
16943 | hardcode_direct_GCJ=yes | ||
16944 | hardcode_shlibpath_var_GCJ=no | ||
16945 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
16946 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
16947 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | ||
16948 | export_dynamic_flag_spec_GCJ='${wl}-E' | ||
16949 | else | ||
16950 | case $host_os in | ||
16951 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
16952 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
16953 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | ||
16954 | ;; | ||
16955 | *) | ||
16956 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
16957 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | ||
16958 | ;; | ||
16959 | esac | ||
16960 | fi | ||
16961 | ;; | ||
16962 | |||
16963 | os2*) | ||
16964 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
16965 | hardcode_minus_L_GCJ=yes | ||
16966 | allow_undefined_flag_GCJ=unsupported | ||
16967 | archive_cmds_GCJ='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def' | ||
16968 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
16969 | ;; | ||
16970 | |||
16971 | osf3*) | ||
16972 | if test "$GCC" = yes; then | ||
16973 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | ||
16974 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
16975 | else | ||
16976 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | ||
16977 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
16978 | fi | ||
16979 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | ||
16980 | hardcode_libdir_separator_GCJ=: | ||
16981 | ;; | ||
16982 | |||
16983 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
16984 | if test "$GCC" = yes; then | ||
16985 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | ||
16986 | archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' | ||
16987 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | ||
16988 | else | ||
16989 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | ||
16990 | archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' | ||
16991 | archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | ||
16992 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' | ||
16993 | |||
16994 | # Both c and cxx compiler support -rpath directly | ||
16995 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | ||
16996 | fi | ||
16997 | hardcode_libdir_separator_GCJ=: | ||
16998 | ;; | ||
16999 | |||
17000 | sco3.2v5*) | ||
17001 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17002 | hardcode_shlibpath_var_GCJ=no | ||
17003 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | ||
17004 | runpath_var=LD_RUN_PATH | ||
17005 | hardcode_runpath_var=yes | ||
17006 | ;; | ||
17007 | |||
17008 | solaris*) | ||
17009 | no_undefined_flag_GCJ=' -z text' | ||
17010 | if test "$GCC" = yes; then | ||
17011 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17012 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
17013 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | ||
17014 | else | ||
17015 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17016 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
17017 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
17018 | fi | ||
17019 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | ||
17020 | hardcode_shlibpath_var_GCJ=no | ||
17021 | case $host_os in | ||
17022 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
17023 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
17024 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | ||
17025 | esac | ||
17026 | link_all_deplibs_GCJ=yes | ||
17027 | ;; | ||
17028 | |||
17029 | sunos4*) | ||
17030 | if test "x$host_vendor" = xsequent; then | ||
17031 | # Use $CC to link under sequent, because it throws in some extra .o | ||
17032 | # files that make .init and .fini sections work. | ||
17033 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17034 | else | ||
17035 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
17036 | fi | ||
17037 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
17038 | hardcode_direct_GCJ=yes | ||
17039 | hardcode_minus_L_GCJ=yes | ||
17040 | hardcode_shlibpath_var_GCJ=no | ||
17041 | ;; | ||
17042 | |||
17043 | sysv4) | ||
17044 | case $host_vendor in | ||
17045 | sni) | ||
17046 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17047 | hardcode_direct_GCJ=yes # is this really true??? | ||
17048 | ;; | ||
17049 | siemens) | ||
17050 | ## LD is ld it makes a PLAMLIB | ||
17051 | ## CC just makes a GrossModule. | ||
17052 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
17053 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' | ||
17054 | hardcode_direct_GCJ=no | ||
17055 | ;; | ||
17056 | motorola) | ||
17057 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17058 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | ||
17059 | ;; | ||
17060 | esac | ||
17061 | runpath_var='LD_RUN_PATH' | ||
17062 | hardcode_shlibpath_var_GCJ=no | ||
17063 | ;; | ||
17064 | |||
17065 | sysv4.3*) | ||
17066 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17067 | hardcode_shlibpath_var_GCJ=no | ||
17068 | export_dynamic_flag_spec_GCJ='-Bexport' | ||
17069 | ;; | ||
17070 | |||
17071 | sysv4*MP*) | ||
17072 | if test -d /usr/nec; then | ||
17073 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17074 | hardcode_shlibpath_var_GCJ=no | ||
17075 | runpath_var=LD_RUN_PATH | ||
17076 | hardcode_runpath_var=yes | ||
17077 | ld_shlibs_GCJ=yes | ||
17078 | fi | ||
17079 | ;; | ||
17080 | |||
17081 | sysv4.2uw2*) | ||
17082 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
17083 | hardcode_direct_GCJ=yes | ||
17084 | hardcode_minus_L_GCJ=no | ||
17085 | hardcode_shlibpath_var_GCJ=no | ||
17086 | hardcode_runpath_var=yes | ||
17087 | runpath_var=LD_RUN_PATH | ||
17088 | ;; | ||
17089 | |||
17090 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | ||
17091 | no_undefined_flag_GCJ='${wl}-z ${wl}text' | ||
17092 | if test "$GCC" = yes; then | ||
17093 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17094 | else | ||
17095 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17096 | fi | ||
17097 | runpath_var='LD_RUN_PATH' | ||
17098 | hardcode_shlibpath_var_GCJ=no | ||
17099 | ;; | ||
17100 | |||
17101 | sysv5*) | ||
17102 | no_undefined_flag_GCJ=' -z text' | ||
17103 | # $CC -shared without GNU ld will not create a library from C++ | ||
17104 | # object files and a static libstdc++, better avoid it by now | ||
17105 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17106 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
17107 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
17108 | hardcode_libdir_flag_spec_GCJ= | ||
17109 | hardcode_shlibpath_var_GCJ=no | ||
17110 | runpath_var='LD_RUN_PATH' | ||
17111 | ;; | ||
17112 | |||
17113 | uts4*) | ||
17114 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17115 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
17116 | hardcode_shlibpath_var_GCJ=no | ||
17117 | ;; | ||
17118 | |||
17119 | *) | ||
17120 | ld_shlibs_GCJ=no | ||
17121 | ;; | ||
17122 | esac | ||
17123 | fi | ||
17124 | |||
17125 | echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | ||
17126 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6 | ||
17127 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | ||
17128 | |||
17129 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
17130 | if test "$GCC" = yes; then | ||
17131 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
17132 | fi | ||
17133 | |||
17134 | # | ||
17135 | # Do we need to explicitly link libc? | ||
17136 | # | ||
17137 | case "x$archive_cmds_need_lc_GCJ" in | ||
17138 | x|xyes) | ||
17139 | # Assume -lc should be added | ||
17140 | archive_cmds_need_lc_GCJ=yes | ||
17141 | |||
17142 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
17143 | case $archive_cmds_GCJ in | ||
17144 | *'~'*) | ||
17145 | # FIXME: we may have to deal with multi-command sequences. | ||
17146 | ;; | ||
17147 | '$CC '*) | ||
17148 | # Test whether the compiler implicitly links with -lc since on some | ||
17149 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
17150 | # to ld, don't add -lc before -lgcc. | ||
17151 | echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | ||
17152 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 | ||
17153 | $rm conftest* | ||
17154 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
17155 | |||
17156 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17157 | (eval $ac_compile) 2>&5 | ||
17158 | ac_status=$? | ||
17159 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17160 | (exit $ac_status); } 2>conftest.err; then | ||
17161 | soname=conftest | ||
17162 | lib=conftest | ||
17163 | libobjs=conftest.$ac_objext | ||
17164 | deplibs= | ||
17165 | wl=$lt_prog_compiler_wl_GCJ | ||
17166 | compiler_flags=-v | ||
17167 | linker_flags=-v | ||
17168 | verstring= | ||
17169 | output_objdir=. | ||
17170 | libname=conftest | ||
17171 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | ||
17172 | allow_undefined_flag_GCJ= | ||
17173 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | ||
17174 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
17175 | ac_status=$? | ||
17176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17177 | (exit $ac_status); } | ||
17178 | then | ||
17179 | archive_cmds_need_lc_GCJ=no | ||
17180 | else | ||
17181 | archive_cmds_need_lc_GCJ=yes | ||
17182 | fi | ||
17183 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | ||
17184 | else | ||
17185 | cat conftest.err 1>&5 | ||
17186 | fi | ||
17187 | $rm conftest* | ||
17188 | echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | ||
17189 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 | ||
17190 | ;; | ||
17191 | esac | ||
17192 | fi | ||
17193 | ;; | ||
17194 | esac | ||
17195 | |||
17196 | echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | ||
17197 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 | ||
17198 | library_names_spec= | ||
17199 | libname_spec='lib$name' | ||
17200 | soname_spec= | ||
17201 | shrext_cmds=".so" | ||
17202 | postinstall_cmds= | ||
17203 | postuninstall_cmds= | ||
17204 | finish_cmds= | ||
17205 | finish_eval= | ||
17206 | shlibpath_var= | ||
17207 | shlibpath_overrides_runpath=unknown | ||
17208 | version_type=none | ||
17209 | dynamic_linker="$host_os ld.so" | ||
17210 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
17211 | if test "$GCC" = yes; then | ||
17212 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
17213 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | ||
17214 | # if the path contains ";" then we assume it to be the separator | ||
17215 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
17216 | # assumed that no part of a normal pathname contains ";" but that should | ||
17217 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
17218 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
17219 | else | ||
17220 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
17221 | fi | ||
17222 | else | ||
17223 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
17224 | fi | ||
17225 | need_lib_prefix=unknown | ||
17226 | hardcode_into_libs=no | ||
17227 | |||
17228 | # when you set need_version to no, make sure it does not cause -set_version | ||
17229 | # flags to be left without arguments | ||
17230 | need_version=unknown | ||
17231 | |||
17232 | case $host_os in | ||
17233 | aix3*) | ||
17234 | version_type=linux | ||
17235 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
17236 | shlibpath_var=LIBPATH | ||
17237 | |||
17238 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
17239 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17240 | ;; | ||
17241 | |||
17242 | aix4* | aix5*) | ||
17243 | version_type=linux | ||
17244 | need_lib_prefix=no | ||
17245 | need_version=no | ||
17246 | hardcode_into_libs=yes | ||
17247 | if test "$host_cpu" = ia64; then | ||
17248 | # AIX 5 supports IA64 | ||
17249 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
17250 | shlibpath_var=LD_LIBRARY_PATH | ||
17251 | else | ||
17252 | # With GCC up to 2.95.x, collect2 would create an import file | ||
17253 | # for dependence libraries. The import file would start with | ||
17254 | # the line `#! .'. This would cause the generated library to | ||
17255 | # depend on `.', always an invalid library. This was fixed in | ||
17256 | # development snapshots of GCC prior to 3.0. | ||
17257 | case $host_os in | ||
17258 | aix4 | aix4.[01] | aix4.[01].*) | ||
17259 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
17260 | echo ' yes ' | ||
17261 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | ||
17262 | : | ||
17263 | else | ||
17264 | can_build_shared=no | ||
17265 | fi | ||
17266 | ;; | ||
17267 | esac | ||
17268 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
17269 | # soname into executable. Probably we can add versioning support to | ||
17270 | # collect2, so additional links can be useful in future. | ||
17271 | if test "$aix_use_runtimelinking" = yes; then | ||
17272 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
17273 | # instead of lib<name>.a to let people know that these are not | ||
17274 | # typical AIX shared libraries. | ||
17275 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
17276 | else | ||
17277 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
17278 | # and later when we are not doing run time linking. | ||
17279 | library_names_spec='${libname}${release}.a $libname.a' | ||
17280 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17281 | fi | ||
17282 | shlibpath_var=LIBPATH | ||
17283 | fi | ||
17284 | ;; | ||
17285 | |||
17286 | amigaos*) | ||
17287 | library_names_spec='$libname.ixlibrary $libname.a' | ||
17288 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
17289 | 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' | ||
17290 | ;; | ||
17291 | |||
17292 | beos*) | ||
17293 | library_names_spec='${libname}${shared_ext}' | ||
17294 | dynamic_linker="$host_os ld.so" | ||
17295 | shlibpath_var=LIBRARY_PATH | ||
17296 | ;; | ||
17297 | |||
17298 | bsdi4*) | ||
17299 | version_type=linux | ||
17300 | need_version=no | ||
17301 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
17302 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17303 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
17304 | shlibpath_var=LD_LIBRARY_PATH | ||
17305 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
17306 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
17307 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
17308 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
17309 | # libtool to hard-code these into programs | ||
17310 | ;; | ||
17311 | |||
17312 | cygwin* | mingw* | pw32*) | ||
17313 | version_type=windows | ||
17314 | shrext_cmds=".dll" | ||
17315 | need_version=no | ||
17316 | need_lib_prefix=no | ||
17317 | |||
17318 | case $GCC,$host_os in | ||
17319 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
17320 | library_names_spec='$libname.dll.a' | ||
17321 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
17322 | postinstall_cmds='base_file=`basename \${file}`~ | ||
17323 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | ||
17324 | dldir=$destdir/`dirname \$dlpath`~ | ||
17325 | test -d \$dldir || mkdir -p \$dldir~ | ||
17326 | $install_prog $dir/$dlname \$dldir/$dlname' | ||
17327 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
17328 | dlpath=$dir/\$dldll~ | ||
17329 | $rm \$dlpath' | ||
17330 | shlibpath_overrides_runpath=yes | ||
17331 | |||
17332 | case $host_os in | ||
17333 | cygwin*) | ||
17334 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
17335 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
17336 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
17337 | ;; | ||
17338 | mingw*) | ||
17339 | # MinGW DLLs use traditional 'lib' prefix | ||
17340 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
17341 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
17342 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | ||
17343 | # It is most probably a Windows format PATH printed by | ||
17344 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
17345 | # path with ; separators, and with drive letters. We can handle the | ||
17346 | # drive letters (cygwin fileutils understands them), so leave them, | ||
17347 | # especially as we might pass files found there to a mingw objdump, | ||
17348 | # which wouldn't understand a cygwinified path. Ahh. | ||
17349 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
17350 | else | ||
17351 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
17352 | fi | ||
17353 | ;; | ||
17354 | pw32*) | ||
17355 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
17356 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | ||
17357 | ;; | ||
17358 | esac | ||
17359 | ;; | ||
17360 | |||
17361 | *) | ||
17362 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
17363 | ;; | ||
17364 | esac | ||
17365 | dynamic_linker='Win32 ld.exe' | ||
17366 | # FIXME: first we should search . and the directory the executable is in | ||
17367 | shlibpath_var=PATH | ||
17368 | ;; | ||
17369 | |||
17370 | darwin* | rhapsody*) | ||
17371 | dynamic_linker="$host_os dyld" | ||
17372 | version_type=darwin | ||
17373 | need_lib_prefix=no | ||
17374 | need_version=no | ||
17375 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
17376 | soname_spec='${libname}${release}${major}$shared_ext' | ||
17377 | shlibpath_overrides_runpath=yes | ||
17378 | shlibpath_var=DYLD_LIBRARY_PATH | ||
17379 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | ||
17380 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | ||
17381 | if test "$GCC" = yes; then | ||
17382 | 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"` | ||
17383 | else | ||
17384 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | ||
17385 | fi | ||
17386 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
17387 | ;; | ||
17388 | |||
17389 | dgux*) | ||
17390 | version_type=linux | ||
17391 | need_lib_prefix=no | ||
17392 | need_version=no | ||
17393 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
17394 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17395 | shlibpath_var=LD_LIBRARY_PATH | ||
17396 | ;; | ||
17397 | |||
17398 | freebsd1*) | ||
17399 | dynamic_linker=no | ||
17400 | ;; | ||
17401 | |||
17402 | kfreebsd*-gnu) | ||
17403 | version_type=linux | ||
17404 | need_lib_prefix=no | ||
17405 | need_version=no | ||
17406 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
17407 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17408 | shlibpath_var=LD_LIBRARY_PATH | ||
17409 | shlibpath_overrides_runpath=no | ||
17410 | hardcode_into_libs=yes | ||
17411 | dynamic_linker='GNU ld.so' | ||
17412 | ;; | ||
17413 | |||
17414 | freebsd*) | ||
17415 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | ||
17416 | version_type=freebsd-$objformat | ||
17417 | case $version_type in | ||
17418 | freebsd-elf*) | ||
17419 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
17420 | need_version=no | ||
17421 | need_lib_prefix=no | ||
17422 | ;; | ||
17423 | freebsd-*) | ||
17424 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
17425 | need_version=yes | ||
17426 | ;; | ||
17427 | esac | ||
17428 | shlibpath_var=LD_LIBRARY_PATH | ||
17429 | case $host_os in | ||
17430 | freebsd2*) | ||
17431 | shlibpath_overrides_runpath=yes | ||
17432 | ;; | ||
17433 | freebsd3.01* | freebsdelf3.01*) | ||
17434 | shlibpath_overrides_runpath=yes | ||
17435 | hardcode_into_libs=yes | ||
17436 | ;; | ||
17437 | *) # from 3.2 on | ||
17438 | shlibpath_overrides_runpath=no | ||
17439 | hardcode_into_libs=yes | ||
17440 | ;; | ||
17441 | esac | ||
17442 | ;; | ||
17443 | |||
17444 | gnu*) | ||
17445 | version_type=linux | ||
17446 | need_lib_prefix=no | ||
17447 | need_version=no | ||
17448 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
17449 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17450 | shlibpath_var=LD_LIBRARY_PATH | ||
17451 | hardcode_into_libs=yes | ||
17452 | ;; | ||
17453 | |||
17454 | hpux9* | hpux10* | hpux11*) | ||
17455 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
17456 | # link against other versions. | ||
17457 | version_type=sunos | ||
17458 | need_lib_prefix=no | ||
17459 | need_version=no | ||
17460 | case "$host_cpu" in | ||
17461 | ia64*) | ||
17462 | shrext_cmds='.so' | ||
17463 | hardcode_into_libs=yes | ||
17464 | dynamic_linker="$host_os dld.so" | ||
17465 | shlibpath_var=LD_LIBRARY_PATH | ||
17466 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
17467 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
17468 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17469 | if test "X$HPUX_IA64_MODE" = X32; then | ||
17470 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
17471 | else | ||
17472 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
17473 | fi | ||
17474 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
17475 | ;; | ||
17476 | hppa*64*) | ||
17477 | shrext_cmds='.sl' | ||
17478 | hardcode_into_libs=yes | ||
17479 | dynamic_linker="$host_os dld.sl" | ||
17480 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
17481 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
17482 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
17483 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17484 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
17485 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
17486 | ;; | ||
17487 | *) | ||
17488 | shrext_cmds='.sl' | ||
17489 | dynamic_linker="$host_os dld.sl" | ||
17490 | shlibpath_var=SHLIB_PATH | ||
17491 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
17492 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
17493 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17494 | ;; | ||
17495 | esac | ||
17496 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
17497 | postinstall_cmds='chmod 555 $lib' | ||
17498 | ;; | ||
17499 | |||
17500 | irix5* | irix6* | nonstopux*) | ||
17501 | case $host_os in | ||
17502 | nonstopux*) version_type=nonstopux ;; | ||
17503 | *) | ||
17504 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
17505 | version_type=linux | ||
17506 | else | ||
17507 | version_type=irix | ||
17508 | fi ;; | ||
17509 | esac | ||
17510 | need_lib_prefix=no | ||
17511 | need_version=no | ||
17512 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17513 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
17514 | case $host_os in | ||
17515 | irix5* | nonstopux*) | ||
17516 | libsuff= shlibsuff= | ||
17517 | ;; | ||
17518 | *) | ||
17519 | case $LD in # libtool.m4 will add one of these switches to LD | ||
17520 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
17521 | libsuff= shlibsuff= libmagic=32-bit;; | ||
17522 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
17523 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
17524 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
17525 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
17526 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
17527 | esac | ||
17528 | ;; | ||
17529 | esac | ||
17530 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
17531 | shlibpath_overrides_runpath=no | ||
17532 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
17533 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
17534 | hardcode_into_libs=yes | ||
17535 | ;; | ||
17536 | |||
17537 | # No shared lib support for Linux oldld, aout, or coff. | ||
17538 | linux*oldld* | linux*aout* | linux*coff*) | ||
17539 | dynamic_linker=no | ||
17540 | ;; | ||
17541 | |||
17542 | # This must be Linux ELF. | ||
17543 | linux*) | ||
17544 | version_type=linux | ||
17545 | need_lib_prefix=no | ||
17546 | need_version=no | ||
17547 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
17548 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17549 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
17550 | shlibpath_var=LD_LIBRARY_PATH | ||
17551 | shlibpath_overrides_runpath=no | ||
17552 | # This implies no fast_install, which is unacceptable. | ||
17553 | # Some rework will be needed to allow for fast_install | ||
17554 | # before this can be enabled. | ||
17555 | hardcode_into_libs=yes | ||
17556 | |||
17557 | # Append ld.so.conf contents to the search path | ||
17558 | if test -f /etc/ld.so.conf; then | ||
17559 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | ||
17560 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
17561 | fi | ||
17562 | |||
17563 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
17564 | # powerpc, because MkLinux only supported shared libraries with the | ||
17565 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
17566 | # most powerpc-linux boxes support dynamic linking these days and | ||
17567 | # people can always --disable-shared, the test was removed, and we | ||
17568 | # assume the GNU/Linux dynamic linker is in use. | ||
17569 | dynamic_linker='GNU/Linux ld.so' | ||
17570 | ;; | ||
17571 | |||
17572 | netbsdelf*-gnu) | ||
17573 | version_type=linux | ||
17574 | need_lib_prefix=no | ||
17575 | need_version=no | ||
17576 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
17577 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17578 | shlibpath_var=LD_LIBRARY_PATH | ||
17579 | shlibpath_overrides_runpath=no | ||
17580 | hardcode_into_libs=yes | ||
17581 | dynamic_linker='NetBSD ld.elf_so' | ||
17582 | ;; | ||
17583 | |||
17584 | knetbsd*-gnu) | ||
17585 | version_type=linux | ||
17586 | need_lib_prefix=no | ||
17587 | need_version=no | ||
17588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
17589 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17590 | shlibpath_var=LD_LIBRARY_PATH | ||
17591 | shlibpath_overrides_runpath=no | ||
17592 | hardcode_into_libs=yes | ||
17593 | dynamic_linker='GNU ld.so' | ||
17594 | ;; | ||
17595 | |||
17596 | netbsd*) | ||
17597 | version_type=sunos | ||
17598 | need_lib_prefix=no | ||
17599 | need_version=no | ||
17600 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
17601 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
17602 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
17603 | dynamic_linker='NetBSD (a.out) ld.so' | ||
17604 | else | ||
17605 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
17606 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17607 | dynamic_linker='NetBSD ld.elf_so' | ||
17608 | fi | ||
17609 | shlibpath_var=LD_LIBRARY_PATH | ||
17610 | shlibpath_overrides_runpath=yes | ||
17611 | hardcode_into_libs=yes | ||
17612 | ;; | ||
17613 | |||
17614 | newsos6) | ||
17615 | version_type=linux | ||
17616 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
17617 | shlibpath_var=LD_LIBRARY_PATH | ||
17618 | shlibpath_overrides_runpath=yes | ||
17619 | ;; | ||
17620 | |||
17621 | nto-qnx*) | ||
17622 | version_type=linux | ||
17623 | need_lib_prefix=no | ||
17624 | need_version=no | ||
17625 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
17626 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17627 | shlibpath_var=LD_LIBRARY_PATH | ||
17628 | shlibpath_overrides_runpath=yes | ||
17629 | ;; | ||
17630 | |||
17631 | openbsd*) | ||
17632 | version_type=sunos | ||
17633 | need_lib_prefix=no | ||
17634 | need_version=yes | ||
17635 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
17636 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
17637 | shlibpath_var=LD_LIBRARY_PATH | ||
17638 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
17639 | case $host_os in | ||
17640 | openbsd2.[89] | openbsd2.[89].*) | ||
17641 | shlibpath_overrides_runpath=no | ||
17642 | ;; | ||
17643 | *) | ||
17644 | shlibpath_overrides_runpath=yes | ||
17645 | ;; | ||
17646 | esac | ||
17647 | else | ||
17648 | shlibpath_overrides_runpath=yes | ||
17649 | fi | ||
17650 | ;; | ||
17651 | |||
17652 | os2*) | ||
17653 | libname_spec='$name' | ||
17654 | shrext_cmds=".dll" | ||
17655 | need_lib_prefix=no | ||
17656 | library_names_spec='$libname${shared_ext} $libname.a' | ||
17657 | dynamic_linker='OS/2 ld.exe' | ||
17658 | shlibpath_var=LIBPATH | ||
17659 | ;; | ||
17660 | |||
17661 | osf3* | osf4* | osf5*) | ||
17662 | version_type=osf | ||
17663 | need_lib_prefix=no | ||
17664 | need_version=no | ||
17665 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17666 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
17667 | shlibpath_var=LD_LIBRARY_PATH | ||
17668 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
17669 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
17670 | ;; | ||
17671 | |||
17672 | sco3.2v5*) | ||
17673 | version_type=osf | ||
17674 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17675 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
17676 | shlibpath_var=LD_LIBRARY_PATH | ||
17677 | ;; | ||
17678 | |||
17679 | solaris*) | ||
17680 | version_type=linux | ||
17681 | need_lib_prefix=no | ||
17682 | need_version=no | ||
17683 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
17684 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17685 | shlibpath_var=LD_LIBRARY_PATH | ||
17686 | shlibpath_overrides_runpath=yes | ||
17687 | hardcode_into_libs=yes | ||
17688 | # ldd complains unless libraries are executable | ||
17689 | postinstall_cmds='chmod +x $lib' | ||
17690 | ;; | ||
17691 | |||
17692 | sunos4*) | ||
17693 | version_type=sunos | ||
17694 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
17695 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
17696 | shlibpath_var=LD_LIBRARY_PATH | ||
17697 | shlibpath_overrides_runpath=yes | ||
17698 | if test "$with_gnu_ld" = yes; then | ||
17699 | need_lib_prefix=no | ||
17700 | fi | ||
17701 | need_version=yes | ||
17702 | ;; | ||
17703 | |||
17704 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
17705 | version_type=linux | ||
17706 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
17707 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17708 | shlibpath_var=LD_LIBRARY_PATH | ||
17709 | case $host_vendor in | ||
17710 | sni) | ||
17711 | shlibpath_overrides_runpath=no | ||
17712 | need_lib_prefix=no | ||
17713 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
17714 | runpath_var=LD_RUN_PATH | ||
17715 | ;; | ||
17716 | siemens) | ||
17717 | need_lib_prefix=no | ||
17718 | ;; | ||
17719 | motorola) | ||
17720 | need_lib_prefix=no | ||
17721 | need_version=no | ||
17722 | shlibpath_overrides_runpath=no | ||
17723 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
17724 | ;; | ||
17725 | esac | ||
17726 | ;; | ||
17727 | |||
17728 | sysv4*MP*) | ||
17729 | if test -d /usr/nec ;then | ||
17730 | version_type=linux | ||
17731 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
17732 | soname_spec='$libname${shared_ext}.$major' | ||
17733 | shlibpath_var=LD_LIBRARY_PATH | ||
17734 | fi | ||
17735 | ;; | ||
17736 | |||
17737 | uts4*) | ||
17738 | version_type=linux | ||
17739 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
17740 | soname_spec='${libname}${release}${shared_ext}$major' | ||
17741 | shlibpath_var=LD_LIBRARY_PATH | ||
17742 | ;; | ||
17743 | |||
17744 | *) | ||
17745 | dynamic_linker=no | ||
17746 | ;; | ||
17747 | esac | ||
17748 | echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | ||
17749 | echo "${ECHO_T}$dynamic_linker" >&6 | ||
17750 | test "$dynamic_linker" = no && can_build_shared=no | ||
17751 | |||
17752 | echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | ||
17753 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 | ||
17754 | hardcode_action_GCJ= | ||
17755 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | ||
17756 | test -n "$runpath_var GCJ" || \ | ||
17757 | test "X$hardcode_automatic_GCJ"="Xyes" ; then | ||
17758 | |||
17759 | # We can hardcode non-existant directories. | ||
17760 | if test "$hardcode_direct_GCJ" != no && | ||
17761 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
17762 | # have to relink, otherwise we might link with an installed library | ||
17763 | # when we should be linking with a yet-to-be-installed one | ||
17764 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | ||
17765 | test "$hardcode_minus_L_GCJ" != no; then | ||
17766 | # Linking always hardcodes the temporary library directory. | ||
17767 | hardcode_action_GCJ=relink | ||
17768 | else | ||
17769 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
17770 | hardcode_action_GCJ=immediate | ||
17771 | fi | ||
17772 | else | ||
17773 | # We cannot hardcode anything, or else we can only hardcode existing | ||
17774 | # directories. | ||
17775 | hardcode_action_GCJ=unsupported | ||
17776 | fi | ||
17777 | echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | ||
17778 | echo "${ECHO_T}$hardcode_action_GCJ" >&6 | ||
17779 | |||
17780 | if test "$hardcode_action_GCJ" = relink; then | ||
17781 | # Fast installation is not supported | ||
17782 | enable_fast_install=no | ||
17783 | elif test "$shlibpath_overrides_runpath" = yes || | ||
17784 | test "$enable_shared" = no; then | ||
17785 | # Fast installation is not necessary | ||
17786 | enable_fast_install=needless | ||
17787 | fi | ||
17788 | |||
17789 | striplib= | ||
17790 | old_striplib= | ||
17791 | echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | ||
17792 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 | ||
17793 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
17794 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
17795 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
17796 | echo "$as_me:$LINENO: result: yes" >&5 | ||
17797 | echo "${ECHO_T}yes" >&6 | ||
17798 | else | ||
17799 | # FIXME - insert some real tests, host_os isn't really good enough | ||
17800 | case $host_os in | ||
17801 | darwin*) | ||
17802 | if test -n "$STRIP" ; then | ||
17803 | striplib="$STRIP -x" | ||
17804 | echo "$as_me:$LINENO: result: yes" >&5 | ||
17805 | echo "${ECHO_T}yes" >&6 | ||
17806 | else | ||
17807 | echo "$as_me:$LINENO: result: no" >&5 | ||
17808 | echo "${ECHO_T}no" >&6 | ||
17809 | fi | ||
17810 | ;; | ||
17811 | *) | ||
17812 | echo "$as_me:$LINENO: result: no" >&5 | ||
17813 | echo "${ECHO_T}no" >&6 | ||
17814 | ;; | ||
17815 | esac | ||
17816 | fi | ||
17817 | |||
17818 | if test "x$enable_dlopen" != xyes; then | ||
17819 | enable_dlopen=unknown | ||
17820 | enable_dlopen_self=unknown | ||
17821 | enable_dlopen_self_static=unknown | ||
17822 | else | ||
17823 | lt_cv_dlopen=no | ||
17824 | lt_cv_dlopen_libs= | ||
17825 | |||
17826 | case $host_os in | ||
17827 | beos*) | ||
17828 | lt_cv_dlopen="load_add_on" | ||
17829 | lt_cv_dlopen_libs= | ||
17830 | lt_cv_dlopen_self=yes | ||
17831 | ;; | ||
17832 | |||
17833 | mingw* | pw32*) | ||
17834 | lt_cv_dlopen="LoadLibrary" | ||
17835 | lt_cv_dlopen_libs= | ||
17836 | ;; | ||
17837 | |||
17838 | cygwin*) | ||
17839 | lt_cv_dlopen="dlopen" | ||
17840 | lt_cv_dlopen_libs= | ||
17841 | ;; | ||
17842 | |||
17843 | darwin*) | ||
17844 | # if libdl is installed we need to link against it | ||
17845 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
17846 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
17847 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
17848 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17849 | else | ||
17850 | ac_check_lib_save_LIBS=$LIBS | ||
17851 | LIBS="-ldl $LIBS" | ||
17852 | cat >conftest.$ac_ext <<_ACEOF | ||
17853 | /* confdefs.h. */ | ||
17854 | _ACEOF | ||
17855 | cat confdefs.h >>conftest.$ac_ext | ||
17856 | cat >>conftest.$ac_ext <<_ACEOF | ||
17857 | /* end confdefs.h. */ | ||
17858 | |||
17859 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
17860 | #ifdef __cplusplus | ||
17861 | extern "C" | ||
17862 | #endif | ||
17863 | /* We use char because int might match the return type of a gcc2 | ||
17864 | builtin and then its argument prototype would still apply. */ | ||
17865 | char dlopen (); | ||
17866 | int | ||
17867 | main () | ||
17868 | { | ||
17869 | dlopen (); | ||
17870 | ; | ||
17871 | return 0; | ||
17872 | } | ||
17873 | _ACEOF | ||
17874 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17875 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
17876 | (eval $ac_link) 2>conftest.er1 | ||
17877 | ac_status=$? | ||
17878 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17879 | rm -f conftest.er1 | ||
17880 | cat conftest.err >&5 | ||
17881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17882 | (exit $ac_status); } && | ||
17883 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
17884 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17885 | (eval $ac_try) 2>&5 | ||
17886 | ac_status=$? | ||
17887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17888 | (exit $ac_status); }; } && | ||
17889 | { ac_try='test -s conftest$ac_exeext' | ||
17890 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17891 | (eval $ac_try) 2>&5 | ||
17892 | ac_status=$? | ||
17893 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17894 | (exit $ac_status); }; }; then | ||
17895 | ac_cv_lib_dl_dlopen=yes | ||
17896 | else | ||
17897 | echo "$as_me: failed program was:" >&5 | ||
17898 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17899 | |||
17900 | ac_cv_lib_dl_dlopen=no | ||
17901 | fi | ||
17902 | rm -f conftest.err conftest.$ac_objext \ | ||
17903 | conftest$ac_exeext conftest.$ac_ext | ||
17904 | LIBS=$ac_check_lib_save_LIBS | ||
17905 | fi | ||
17906 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
17907 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
17908 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
17909 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
17910 | else | ||
17911 | |||
17912 | lt_cv_dlopen="dyld" | ||
17913 | lt_cv_dlopen_libs= | ||
17914 | lt_cv_dlopen_self=yes | ||
17915 | |||
17916 | fi | ||
17917 | |||
17918 | ;; | ||
17919 | |||
17920 | *) | ||
17921 | echo "$as_me:$LINENO: checking for shl_load" >&5 | ||
17922 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | ||
17923 | if test "${ac_cv_func_shl_load+set}" = set; then | ||
17924 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17925 | else | ||
17926 | cat >conftest.$ac_ext <<_ACEOF | ||
17927 | /* confdefs.h. */ | ||
17928 | _ACEOF | ||
17929 | cat confdefs.h >>conftest.$ac_ext | ||
17930 | cat >>conftest.$ac_ext <<_ACEOF | ||
17931 | /* end confdefs.h. */ | ||
17932 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | ||
17933 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
17934 | #define shl_load innocuous_shl_load | ||
17935 | |||
17936 | /* System header to define __stub macros and hopefully few prototypes, | ||
17937 | which can conflict with char shl_load (); below. | ||
17938 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
17939 | <limits.h> exists even on freestanding compilers. */ | ||
17940 | |||
17941 | #ifdef __STDC__ | ||
17942 | # include <limits.h> | ||
17943 | #else | ||
17944 | # include <assert.h> | ||
17945 | #endif | ||
17946 | |||
17947 | #undef shl_load | ||
17948 | |||
17949 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
17950 | #ifdef __cplusplus | ||
17951 | extern "C" | ||
17952 | { | ||
17953 | #endif | ||
17954 | /* We use char because int might match the return type of a gcc2 | ||
17955 | builtin and then its argument prototype would still apply. */ | ||
17956 | char shl_load (); | ||
17957 | /* The GNU C library defines this for functions which it implements | ||
17958 | to always fail with ENOSYS. Some functions are actually named | ||
17959 | something starting with __ and the normal name is an alias. */ | ||
17960 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | ||
17961 | choke me | ||
17962 | #else | ||
17963 | char (*f) () = shl_load; | ||
17964 | #endif | ||
17965 | #ifdef __cplusplus | ||
17966 | } | ||
17967 | #endif | ||
17968 | |||
17969 | int | ||
17970 | main () | ||
17971 | { | ||
17972 | return f != shl_load; | ||
17973 | ; | ||
17974 | return 0; | ||
17975 | } | ||
17976 | _ACEOF | ||
17977 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17978 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
17979 | (eval $ac_link) 2>conftest.er1 | ||
17980 | ac_status=$? | ||
17981 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17982 | rm -f conftest.er1 | ||
17983 | cat conftest.err >&5 | ||
17984 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17985 | (exit $ac_status); } && | ||
17986 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
17987 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17988 | (eval $ac_try) 2>&5 | ||
17989 | ac_status=$? | ||
17990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17991 | (exit $ac_status); }; } && | ||
17992 | { ac_try='test -s conftest$ac_exeext' | ||
17993 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
17994 | (eval $ac_try) 2>&5 | ||
17995 | ac_status=$? | ||
17996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17997 | (exit $ac_status); }; }; then | ||
17998 | ac_cv_func_shl_load=yes | ||
17999 | else | ||
18000 | echo "$as_me: failed program was:" >&5 | ||
18001 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18002 | |||
18003 | ac_cv_func_shl_load=no | ||
18004 | fi | ||
18005 | rm -f conftest.err conftest.$ac_objext \ | ||
18006 | conftest$ac_exeext conftest.$ac_ext | ||
18007 | fi | ||
18008 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | ||
18009 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | ||
18010 | if test $ac_cv_func_shl_load = yes; then | ||
18011 | lt_cv_dlopen="shl_load" | ||
18012 | else | ||
18013 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | ||
18014 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | ||
18015 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | ||
18016 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18017 | else | ||
18018 | ac_check_lib_save_LIBS=$LIBS | ||
18019 | LIBS="-ldld $LIBS" | ||
18020 | cat >conftest.$ac_ext <<_ACEOF | ||
18021 | /* confdefs.h. */ | ||
18022 | _ACEOF | ||
18023 | cat confdefs.h >>conftest.$ac_ext | ||
18024 | cat >>conftest.$ac_ext <<_ACEOF | ||
18025 | /* end confdefs.h. */ | ||
18026 | |||
18027 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
18028 | #ifdef __cplusplus | ||
18029 | extern "C" | ||
18030 | #endif | ||
18031 | /* We use char because int might match the return type of a gcc2 | ||
18032 | builtin and then its argument prototype would still apply. */ | ||
18033 | char shl_load (); | ||
18034 | int | ||
18035 | main () | ||
18036 | { | ||
18037 | shl_load (); | ||
18038 | ; | ||
18039 | return 0; | ||
18040 | } | ||
18041 | _ACEOF | ||
18042 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18043 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
18044 | (eval $ac_link) 2>conftest.er1 | ||
18045 | ac_status=$? | ||
18046 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18047 | rm -f conftest.er1 | ||
18048 | cat conftest.err >&5 | ||
18049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18050 | (exit $ac_status); } && | ||
18051 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
18052 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18053 | (eval $ac_try) 2>&5 | ||
18054 | ac_status=$? | ||
18055 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18056 | (exit $ac_status); }; } && | ||
18057 | { ac_try='test -s conftest$ac_exeext' | ||
18058 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18059 | (eval $ac_try) 2>&5 | ||
18060 | ac_status=$? | ||
18061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18062 | (exit $ac_status); }; }; then | ||
18063 | ac_cv_lib_dld_shl_load=yes | ||
18064 | else | ||
18065 | echo "$as_me: failed program was:" >&5 | ||
18066 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18067 | |||
18068 | ac_cv_lib_dld_shl_load=no | ||
18069 | fi | ||
18070 | rm -f conftest.err conftest.$ac_objext \ | ||
18071 | conftest$ac_exeext conftest.$ac_ext | ||
18072 | LIBS=$ac_check_lib_save_LIBS | ||
18073 | fi | ||
18074 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | ||
18075 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | ||
18076 | if test $ac_cv_lib_dld_shl_load = yes; then | ||
18077 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | ||
18078 | else | ||
18079 | echo "$as_me:$LINENO: checking for dlopen" >&5 | ||
18080 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 | ||
18081 | if test "${ac_cv_func_dlopen+set}" = set; then | ||
18082 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18083 | else | ||
18084 | cat >conftest.$ac_ext <<_ACEOF | ||
18085 | /* confdefs.h. */ | ||
18086 | _ACEOF | ||
18087 | cat confdefs.h >>conftest.$ac_ext | ||
18088 | cat >>conftest.$ac_ext <<_ACEOF | ||
18089 | /* end confdefs.h. */ | ||
18090 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | ||
18091 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18092 | #define dlopen innocuous_dlopen | ||
18093 | |||
18094 | /* System header to define __stub macros and hopefully few prototypes, | ||
18095 | which can conflict with char dlopen (); below. | ||
18096 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18097 | <limits.h> exists even on freestanding compilers. */ | ||
18098 | |||
18099 | #ifdef __STDC__ | ||
18100 | # include <limits.h> | ||
18101 | #else | ||
18102 | # include <assert.h> | ||
18103 | #endif | ||
18104 | |||
18105 | #undef dlopen | ||
18106 | |||
18107 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
18108 | #ifdef __cplusplus | ||
18109 | extern "C" | ||
18110 | { | ||
18111 | #endif | ||
18112 | /* We use char because int might match the return type of a gcc2 | ||
18113 | builtin and then its argument prototype would still apply. */ | ||
18114 | char dlopen (); | ||
18115 | /* The GNU C library defines this for functions which it implements | ||
18116 | to always fail with ENOSYS. Some functions are actually named | ||
18117 | something starting with __ and the normal name is an alias. */ | ||
18118 | #if defined (__stub_dlopen) || defined (__stub___dlopen) | ||
18119 | choke me | ||
18120 | #else | ||
18121 | char (*f) () = dlopen; | ||
18122 | #endif | ||
18123 | #ifdef __cplusplus | ||
18124 | } | ||
18125 | #endif | ||
18126 | |||
18127 | int | ||
18128 | main () | ||
18129 | { | ||
18130 | return f != dlopen; | ||
18131 | ; | ||
18132 | return 0; | ||
18133 | } | ||
18134 | _ACEOF | ||
18135 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18136 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
18137 | (eval $ac_link) 2>conftest.er1 | ||
18138 | ac_status=$? | ||
18139 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18140 | rm -f conftest.er1 | ||
18141 | cat conftest.err >&5 | ||
18142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18143 | (exit $ac_status); } && | ||
18144 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
18145 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18146 | (eval $ac_try) 2>&5 | ||
18147 | ac_status=$? | ||
18148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18149 | (exit $ac_status); }; } && | ||
18150 | { ac_try='test -s conftest$ac_exeext' | ||
18151 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18152 | (eval $ac_try) 2>&5 | ||
18153 | ac_status=$? | ||
18154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18155 | (exit $ac_status); }; }; then | ||
18156 | ac_cv_func_dlopen=yes | ||
18157 | else | ||
18158 | echo "$as_me: failed program was:" >&5 | ||
18159 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18160 | |||
18161 | ac_cv_func_dlopen=no | ||
18162 | fi | ||
18163 | rm -f conftest.err conftest.$ac_objext \ | ||
18164 | conftest$ac_exeext conftest.$ac_ext | ||
18165 | fi | ||
18166 | echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | ||
18167 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6 | ||
18168 | if test $ac_cv_func_dlopen = yes; then | ||
18169 | lt_cv_dlopen="dlopen" | ||
18170 | else | ||
18171 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
18172 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
18173 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
18174 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18175 | else | ||
18176 | ac_check_lib_save_LIBS=$LIBS | ||
18177 | LIBS="-ldl $LIBS" | ||
18178 | cat >conftest.$ac_ext <<_ACEOF | ||
18179 | /* confdefs.h. */ | ||
18180 | _ACEOF | ||
18181 | cat confdefs.h >>conftest.$ac_ext | ||
18182 | cat >>conftest.$ac_ext <<_ACEOF | ||
18183 | /* end confdefs.h. */ | ||
18184 | |||
18185 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
18186 | #ifdef __cplusplus | ||
18187 | extern "C" | ||
18188 | #endif | ||
18189 | /* We use char because int might match the return type of a gcc2 | ||
18190 | builtin and then its argument prototype would still apply. */ | ||
18191 | char dlopen (); | ||
18192 | int | ||
18193 | main () | ||
18194 | { | ||
18195 | dlopen (); | ||
18196 | ; | ||
18197 | return 0; | ||
18198 | } | ||
18199 | _ACEOF | ||
18200 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18201 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
18202 | (eval $ac_link) 2>conftest.er1 | ||
18203 | ac_status=$? | ||
18204 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18205 | rm -f conftest.er1 | ||
18206 | cat conftest.err >&5 | ||
18207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18208 | (exit $ac_status); } && | ||
18209 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
18210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18211 | (eval $ac_try) 2>&5 | ||
18212 | ac_status=$? | ||
18213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18214 | (exit $ac_status); }; } && | ||
18215 | { ac_try='test -s conftest$ac_exeext' | ||
18216 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18217 | (eval $ac_try) 2>&5 | ||
18218 | ac_status=$? | ||
18219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18220 | (exit $ac_status); }; }; then | ||
18221 | ac_cv_lib_dl_dlopen=yes | ||
18222 | else | ||
18223 | echo "$as_me: failed program was:" >&5 | ||
18224 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18225 | |||
18226 | ac_cv_lib_dl_dlopen=no | ||
18227 | fi | ||
18228 | rm -f conftest.err conftest.$ac_objext \ | ||
18229 | conftest$ac_exeext conftest.$ac_ext | ||
18230 | LIBS=$ac_check_lib_save_LIBS | ||
18231 | fi | ||
18232 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
18233 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
18234 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
18235 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
18236 | else | ||
18237 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | ||
18238 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | ||
18239 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | ||
18240 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18241 | else | ||
18242 | ac_check_lib_save_LIBS=$LIBS | ||
18243 | LIBS="-lsvld $LIBS" | ||
18244 | cat >conftest.$ac_ext <<_ACEOF | ||
18245 | /* confdefs.h. */ | ||
18246 | _ACEOF | ||
18247 | cat confdefs.h >>conftest.$ac_ext | ||
18248 | cat >>conftest.$ac_ext <<_ACEOF | ||
18249 | /* end confdefs.h. */ | ||
18250 | |||
18251 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
18252 | #ifdef __cplusplus | ||
18253 | extern "C" | ||
18254 | #endif | ||
18255 | /* We use char because int might match the return type of a gcc2 | ||
18256 | builtin and then its argument prototype would still apply. */ | ||
18257 | char dlopen (); | ||
18258 | int | ||
18259 | main () | ||
18260 | { | ||
18261 | dlopen (); | ||
18262 | ; | ||
18263 | return 0; | ||
18264 | } | ||
18265 | _ACEOF | ||
18266 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18267 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
18268 | (eval $ac_link) 2>conftest.er1 | ||
18269 | ac_status=$? | ||
18270 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18271 | rm -f conftest.er1 | ||
18272 | cat conftest.err >&5 | ||
18273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18274 | (exit $ac_status); } && | ||
18275 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
18276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18277 | (eval $ac_try) 2>&5 | ||
18278 | ac_status=$? | ||
18279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18280 | (exit $ac_status); }; } && | ||
18281 | { ac_try='test -s conftest$ac_exeext' | ||
18282 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18283 | (eval $ac_try) 2>&5 | ||
18284 | ac_status=$? | ||
18285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18286 | (exit $ac_status); }; }; then | ||
18287 | ac_cv_lib_svld_dlopen=yes | ||
18288 | else | ||
18289 | echo "$as_me: failed program was:" >&5 | ||
18290 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18291 | |||
18292 | ac_cv_lib_svld_dlopen=no | ||
18293 | fi | ||
18294 | rm -f conftest.err conftest.$ac_objext \ | ||
18295 | conftest$ac_exeext conftest.$ac_ext | ||
18296 | LIBS=$ac_check_lib_save_LIBS | ||
18297 | fi | ||
18298 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | ||
18299 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | ||
18300 | if test $ac_cv_lib_svld_dlopen = yes; then | ||
18301 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
18302 | else | ||
18303 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | ||
18304 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | ||
18305 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | ||
18306 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18307 | else | ||
18308 | ac_check_lib_save_LIBS=$LIBS | ||
18309 | LIBS="-ldld $LIBS" | ||
18310 | cat >conftest.$ac_ext <<_ACEOF | ||
18311 | /* confdefs.h. */ | ||
18312 | _ACEOF | ||
18313 | cat confdefs.h >>conftest.$ac_ext | ||
18314 | cat >>conftest.$ac_ext <<_ACEOF | ||
18315 | /* end confdefs.h. */ | ||
18316 | |||
18317 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
18318 | #ifdef __cplusplus | ||
18319 | extern "C" | ||
18320 | #endif | ||
18321 | /* We use char because int might match the return type of a gcc2 | ||
18322 | builtin and then its argument prototype would still apply. */ | ||
18323 | char dld_link (); | ||
18324 | int | ||
18325 | main () | ||
18326 | { | ||
18327 | dld_link (); | ||
18328 | ; | ||
18329 | return 0; | ||
18330 | } | ||
18331 | _ACEOF | ||
18332 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18333 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
18334 | (eval $ac_link) 2>conftest.er1 | ||
18335 | ac_status=$? | ||
18336 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18337 | rm -f conftest.er1 | ||
18338 | cat conftest.err >&5 | ||
18339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18340 | (exit $ac_status); } && | ||
18341 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
18342 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18343 | (eval $ac_try) 2>&5 | ||
18344 | ac_status=$? | ||
18345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18346 | (exit $ac_status); }; } && | ||
18347 | { ac_try='test -s conftest$ac_exeext' | ||
18348 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
18349 | (eval $ac_try) 2>&5 | ||
18350 | ac_status=$? | ||
18351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18352 | (exit $ac_status); }; }; then | ||
18353 | ac_cv_lib_dld_dld_link=yes | ||
18354 | else | ||
18355 | echo "$as_me: failed program was:" >&5 | ||
18356 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18357 | |||
18358 | ac_cv_lib_dld_dld_link=no | ||
18359 | fi | ||
18360 | rm -f conftest.err conftest.$ac_objext \ | ||
18361 | conftest$ac_exeext conftest.$ac_ext | ||
18362 | LIBS=$ac_check_lib_save_LIBS | ||
18363 | fi | ||
18364 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | ||
18365 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | ||
18366 | if test $ac_cv_lib_dld_dld_link = yes; then | ||
18367 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | ||
18368 | fi | ||
18369 | |||
18370 | |||
18371 | fi | ||
18372 | |||
18373 | |||
18374 | fi | ||
18375 | |||
18376 | |||
18377 | fi | ||
18378 | |||
18379 | |||
18380 | fi | ||
18381 | |||
18382 | |||
18383 | fi | ||
18384 | |||
18385 | ;; | ||
18386 | esac | ||
18387 | |||
18388 | if test "x$lt_cv_dlopen" != xno; then | ||
18389 | enable_dlopen=yes | ||
18390 | else | ||
18391 | enable_dlopen=no | ||
18392 | fi | ||
18393 | |||
18394 | case $lt_cv_dlopen in | ||
18395 | dlopen) | ||
18396 | save_CPPFLAGS="$CPPFLAGS" | ||
18397 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
18398 | |||
18399 | save_LDFLAGS="$LDFLAGS" | ||
18400 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
18401 | |||
18402 | save_LIBS="$LIBS" | ||
18403 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
18404 | |||
18405 | echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | ||
18406 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 | ||
18407 | if test "${lt_cv_dlopen_self+set}" = set; then | ||
18408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18409 | else | ||
18410 | if test "$cross_compiling" = yes; then : | ||
18411 | lt_cv_dlopen_self=cross | ||
18412 | else | ||
18413 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
18414 | lt_status=$lt_dlunknown | ||
18415 | cat > conftest.$ac_ext <<EOF | ||
18416 | #line 18416 "configure" | ||
18417 | #include "confdefs.h" | ||
18418 | |||
18419 | #if HAVE_DLFCN_H | ||
18420 | #include <dlfcn.h> | ||
18421 | #endif | ||
18422 | |||
18423 | #include <stdio.h> | ||
18424 | |||
18425 | #ifdef RTLD_GLOBAL | ||
18426 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
18427 | #else | ||
18428 | # ifdef DL_GLOBAL | ||
18429 | # define LT_DLGLOBAL DL_GLOBAL | ||
18430 | # else | ||
18431 | # define LT_DLGLOBAL 0 | ||
18432 | # endif | ||
18433 | #endif | ||
18434 | |||
18435 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
18436 | find out it does not work in some platform. */ | ||
18437 | #ifndef LT_DLLAZY_OR_NOW | ||
18438 | # ifdef RTLD_LAZY | ||
18439 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
18440 | # else | ||
18441 | # ifdef DL_LAZY | ||
18442 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
18443 | # else | ||
18444 | # ifdef RTLD_NOW | ||
18445 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
18446 | # else | ||
18447 | # ifdef DL_NOW | ||
18448 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
18449 | # else | ||
18450 | # define LT_DLLAZY_OR_NOW 0 | ||
18451 | # endif | ||
18452 | # endif | ||
18453 | # endif | ||
18454 | # endif | ||
18455 | #endif | ||
18456 | |||
18457 | #ifdef __cplusplus | ||
18458 | extern "C" void exit (int); | ||
18459 | #endif | ||
18460 | |||
18461 | void fnord() { int i=42;} | ||
18462 | int main () | ||
18463 | { | ||
18464 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
18465 | int status = $lt_dlunknown; | ||
18466 | |||
18467 | if (self) | ||
18468 | { | ||
18469 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
18470 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
18471 | /* dlclose (self); */ | ||
18472 | } | ||
18473 | |||
18474 | exit (status); | ||
18475 | } | ||
18476 | EOF | ||
18477 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
18478 | (eval $ac_link) 2>&5 | ||
18479 | ac_status=$? | ||
18480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18481 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
18482 | (./conftest; exit; ) 2>/dev/null | ||
18483 | lt_status=$? | ||
18484 | case x$lt_status in | ||
18485 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
18486 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
18487 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | ||
18488 | esac | ||
18489 | else : | ||
18490 | # compilation failed | ||
18491 | lt_cv_dlopen_self=no | ||
18492 | fi | ||
18493 | fi | ||
18494 | rm -fr conftest* | ||
18495 | |||
18496 | |||
18497 | fi | ||
18498 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | ||
18499 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6 | ||
18500 | |||
18501 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
18502 | LDFLAGS="$LDFLAGS $link_static_flag" | ||
18503 | echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | ||
18504 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 | ||
18505 | if test "${lt_cv_dlopen_self_static+set}" = set; then | ||
18506 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18507 | else | ||
18508 | if test "$cross_compiling" = yes; then : | ||
18509 | lt_cv_dlopen_self_static=cross | ||
18510 | else | ||
18511 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
18512 | lt_status=$lt_dlunknown | ||
18513 | cat > conftest.$ac_ext <<EOF | ||
18514 | #line 18514 "configure" | ||
18515 | #include "confdefs.h" | ||
18516 | |||
18517 | #if HAVE_DLFCN_H | ||
18518 | #include <dlfcn.h> | ||
18519 | #endif | ||
18520 | |||
18521 | #include <stdio.h> | ||
18522 | |||
18523 | #ifdef RTLD_GLOBAL | ||
18524 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
18525 | #else | ||
18526 | # ifdef DL_GLOBAL | ||
18527 | # define LT_DLGLOBAL DL_GLOBAL | ||
18528 | # else | ||
18529 | # define LT_DLGLOBAL 0 | ||
18530 | # endif | ||
18531 | #endif | ||
18532 | |||
18533 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
18534 | find out it does not work in some platform. */ | ||
18535 | #ifndef LT_DLLAZY_OR_NOW | ||
18536 | # ifdef RTLD_LAZY | ||
18537 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
18538 | # else | ||
18539 | # ifdef DL_LAZY | ||
18540 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
18541 | # else | ||
18542 | # ifdef RTLD_NOW | ||
18543 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
18544 | # else | ||
18545 | # ifdef DL_NOW | ||
18546 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
18547 | # else | ||
18548 | # define LT_DLLAZY_OR_NOW 0 | ||
18549 | # endif | ||
18550 | # endif | ||
18551 | # endif | ||
18552 | # endif | ||
18553 | #endif | ||
18554 | |||
18555 | #ifdef __cplusplus | ||
18556 | extern "C" void exit (int); | ||
18557 | #endif | ||
18558 | |||
18559 | void fnord() { int i=42;} | ||
18560 | int main () | ||
18561 | { | ||
18562 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
18563 | int status = $lt_dlunknown; | ||
18564 | |||
18565 | if (self) | ||
18566 | { | ||
18567 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
18568 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
18569 | /* dlclose (self); */ | ||
18570 | } | ||
18571 | |||
18572 | exit (status); | ||
18573 | } | ||
18574 | EOF | ||
18575 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
18576 | (eval $ac_link) 2>&5 | ||
18577 | ac_status=$? | ||
18578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18579 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
18580 | (./conftest; exit; ) 2>/dev/null | ||
18581 | lt_status=$? | ||
18582 | case x$lt_status in | ||
18583 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
18584 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
18585 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | ||
18586 | esac | ||
18587 | else : | ||
18588 | # compilation failed | ||
18589 | lt_cv_dlopen_self_static=no | ||
18590 | fi | ||
18591 | fi | ||
18592 | rm -fr conftest* | ||
18593 | |||
18594 | |||
18595 | fi | ||
18596 | echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | ||
18597 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 | ||
18598 | fi | ||
18599 | |||
18600 | CPPFLAGS="$save_CPPFLAGS" | ||
18601 | LDFLAGS="$save_LDFLAGS" | ||
18602 | LIBS="$save_LIBS" | ||
18603 | ;; | ||
18604 | esac | ||
18605 | |||
18606 | case $lt_cv_dlopen_self in | ||
18607 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
18608 | *) enable_dlopen_self=unknown ;; | ||
18609 | esac | ||
18610 | |||
18611 | case $lt_cv_dlopen_self_static in | ||
18612 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
18613 | *) enable_dlopen_self_static=unknown ;; | ||
18614 | esac | ||
18615 | fi | ||
18616 | |||
18617 | |||
18618 | # The else clause should only fire when bootstrapping the | ||
18619 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
18620 | # with your package, and you will get complaints that there are | ||
18621 | # no rules to generate ltmain.sh. | ||
18622 | if test -f "$ltmain"; then | ||
18623 | # See if we are running on zsh, and set the options which allow our commands through | ||
18624 | # without removal of \ escapes. | ||
18625 | if test -n "${ZSH_VERSION+set}" ; then | ||
18626 | setopt NO_GLOB_SUBST | ||
18627 | fi | ||
18628 | # Now quote all the things that may contain metacharacters while being | ||
18629 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
18630 | # variables and quote the copies for generation of the libtool script. | ||
18631 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | ||
18632 | SED SHELL STRIP \ | ||
18633 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
18634 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
18635 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
18636 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
18637 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
18638 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
18639 | old_postinstall_cmds old_postuninstall_cmds \ | ||
18640 | compiler_GCJ \ | ||
18641 | CC_GCJ \ | ||
18642 | LD_GCJ \ | ||
18643 | lt_prog_compiler_wl_GCJ \ | ||
18644 | lt_prog_compiler_pic_GCJ \ | ||
18645 | lt_prog_compiler_static_GCJ \ | ||
18646 | lt_prog_compiler_no_builtin_flag_GCJ \ | ||
18647 | export_dynamic_flag_spec_GCJ \ | ||
18648 | thread_safe_flag_spec_GCJ \ | ||
18649 | whole_archive_flag_spec_GCJ \ | ||
18650 | enable_shared_with_static_runtimes_GCJ \ | ||
18651 | old_archive_cmds_GCJ \ | ||
18652 | old_archive_from_new_cmds_GCJ \ | ||
18653 | predep_objects_GCJ \ | ||
18654 | postdep_objects_GCJ \ | ||
18655 | predeps_GCJ \ | ||
18656 | postdeps_GCJ \ | ||
18657 | compiler_lib_search_path_GCJ \ | ||
18658 | archive_cmds_GCJ \ | ||
18659 | archive_expsym_cmds_GCJ \ | ||
18660 | postinstall_cmds_GCJ \ | ||
18661 | postuninstall_cmds_GCJ \ | ||
18662 | old_archive_from_expsyms_cmds_GCJ \ | ||
18663 | allow_undefined_flag_GCJ \ | ||
18664 | no_undefined_flag_GCJ \ | ||
18665 | export_symbols_cmds_GCJ \ | ||
18666 | hardcode_libdir_flag_spec_GCJ \ | ||
18667 | hardcode_libdir_flag_spec_ld_GCJ \ | ||
18668 | hardcode_libdir_separator_GCJ \ | ||
18669 | hardcode_automatic_GCJ \ | ||
18670 | module_cmds_GCJ \ | ||
18671 | module_expsym_cmds_GCJ \ | ||
18672 | lt_cv_prog_compiler_c_o_GCJ \ | ||
18673 | exclude_expsyms_GCJ \ | ||
18674 | include_expsyms_GCJ; do | ||
18675 | |||
18676 | case $var in | ||
18677 | old_archive_cmds_GCJ | \ | ||
18678 | old_archive_from_new_cmds_GCJ | \ | ||
18679 | archive_cmds_GCJ | \ | ||
18680 | archive_expsym_cmds_GCJ | \ | ||
18681 | module_cmds_GCJ | \ | ||
18682 | module_expsym_cmds_GCJ | \ | ||
18683 | old_archive_from_expsyms_cmds_GCJ | \ | ||
18684 | export_symbols_cmds_GCJ | \ | ||
18685 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
18686 | postinstall_cmds | postuninstall_cmds | \ | ||
18687 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
18688 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
18689 | # Double-quote double-evaled strings. | ||
18690 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
18691 | ;; | ||
18692 | *) | ||
18693 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
18694 | ;; | ||
18695 | esac | ||
18696 | done | ||
18697 | |||
18698 | case $lt_echo in | ||
18699 | *'\$0 --fallback-echo"') | ||
18700 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | ||
18701 | ;; | ||
18702 | esac | ||
18703 | |||
18704 | cfgfile="$ofile" | ||
18705 | |||
18706 | cat <<__EOF__ >> "$cfgfile" | ||
18707 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | ||
18708 | |||
18709 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
18710 | |||
18711 | # Shell to use when invoking shell scripts. | ||
18712 | SHELL=$lt_SHELL | ||
18713 | |||
18714 | # Whether or not to build shared libraries. | ||
18715 | build_libtool_libs=$enable_shared | ||
18716 | |||
18717 | # Whether or not to build static libraries. | ||
18718 | build_old_libs=$enable_static | ||
18719 | |||
18720 | # Whether or not to add -lc for building shared libraries. | ||
18721 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | ||
18722 | |||
18723 | # Whether or not to disallow shared libs when runtime libs are static | ||
18724 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | ||
18725 | |||
18726 | # Whether or not to optimize for fast installation. | ||
18727 | fast_install=$enable_fast_install | ||
18728 | |||
18729 | # The host system. | ||
18730 | host_alias=$host_alias | ||
18731 | host=$host | ||
18732 | |||
18733 | # An echo program that does not interpret backslashes. | ||
18734 | echo=$lt_echo | ||
18735 | |||
18736 | # The archiver. | ||
18737 | AR=$lt_AR | ||
18738 | AR_FLAGS=$lt_AR_FLAGS | ||
18739 | |||
18740 | # A C compiler. | ||
18741 | LTCC=$lt_LTCC | ||
18742 | |||
18743 | # A language-specific compiler. | ||
18744 | CC=$lt_compiler_GCJ | ||
18745 | |||
18746 | # Is the compiler the GNU C compiler? | ||
18747 | with_gcc=$GCC_GCJ | ||
18748 | |||
18749 | # An ERE matcher. | ||
18750 | EGREP=$lt_EGREP | ||
18751 | |||
18752 | # The linker used to build libraries. | ||
18753 | LD=$lt_LD_GCJ | ||
18754 | |||
18755 | # Whether we need hard or soft links. | ||
18756 | LN_S=$lt_LN_S | ||
18757 | |||
18758 | # A BSD-compatible nm program. | ||
18759 | NM=$lt_NM | ||
18760 | |||
18761 | # A symbol stripping program | ||
18762 | STRIP=$lt_STRIP | ||
18763 | |||
18764 | # Used to examine libraries when file_magic_cmd begins "file" | ||
18765 | MAGIC_CMD=$MAGIC_CMD | ||
18766 | |||
18767 | # Used on cygwin: DLL creation program. | ||
18768 | DLLTOOL="$DLLTOOL" | ||
18769 | |||
18770 | # Used on cygwin: object dumper. | ||
18771 | OBJDUMP="$OBJDUMP" | ||
18772 | |||
18773 | # Used on cygwin: assembler. | ||
18774 | AS="$AS" | ||
18775 | |||
18776 | # The name of the directory that contains temporary libtool files. | ||
18777 | objdir=$objdir | ||
18778 | |||
18779 | # How to create reloadable object files. | ||
18780 | reload_flag=$lt_reload_flag | ||
18781 | reload_cmds=$lt_reload_cmds | ||
18782 | |||
18783 | # How to pass a linker flag through the compiler. | ||
18784 | wl=$lt_lt_prog_compiler_wl_GCJ | ||
18785 | |||
18786 | # Object file suffix (normally "o"). | ||
18787 | objext="$ac_objext" | ||
18788 | |||
18789 | # Old archive suffix (normally "a"). | ||
18790 | libext="$libext" | ||
18791 | |||
18792 | # Shared library suffix (normally ".so"). | ||
18793 | shrext_cmds='$shrext_cmds' | ||
18794 | |||
18795 | # Executable file suffix (normally ""). | ||
18796 | exeext="$exeext" | ||
18797 | |||
18798 | # Additional compiler flags for building library objects. | ||
18799 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | ||
18800 | pic_mode=$pic_mode | ||
18801 | |||
18802 | # What is the maximum length of a command? | ||
18803 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
18804 | |||
18805 | # Does compiler simultaneously support -c and -o options? | ||
18806 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | ||
18807 | |||
18808 | # Must we lock files when doing compilation ? | ||
18809 | need_locks=$lt_need_locks | ||
18810 | |||
18811 | # Do we need the lib prefix for modules? | ||
18812 | need_lib_prefix=$need_lib_prefix | ||
18813 | |||
18814 | # Do we need a version for libraries? | ||
18815 | need_version=$need_version | ||
18816 | |||
18817 | # Whether dlopen is supported. | ||
18818 | dlopen_support=$enable_dlopen | ||
18819 | |||
18820 | # Whether dlopen of programs is supported. | ||
18821 | dlopen_self=$enable_dlopen_self | ||
18822 | |||
18823 | # Whether dlopen of statically linked programs is supported. | ||
18824 | dlopen_self_static=$enable_dlopen_self_static | ||
18825 | |||
18826 | # Compiler flag to prevent dynamic linking. | ||
18827 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | ||
18828 | |||
18829 | # Compiler flag to turn off builtin functions. | ||
18830 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | ||
18831 | |||
18832 | # Compiler flag to allow reflexive dlopens. | ||
18833 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | ||
18834 | |||
18835 | # Compiler flag to generate shared objects directly from archives. | ||
18836 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | ||
18837 | |||
18838 | # Compiler flag to generate thread-safe objects. | ||
18839 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | ||
18840 | |||
18841 | # Library versioning type. | ||
18842 | version_type=$version_type | ||
18843 | |||
18844 | # Format of library name prefix. | ||
18845 | libname_spec=$lt_libname_spec | ||
18846 | |||
18847 | # List of archive names. First name is the real one, the rest are links. | ||
18848 | # The last name is the one that the linker finds with -lNAME. | ||
18849 | library_names_spec=$lt_library_names_spec | ||
18850 | |||
18851 | # The coded name of the library, if different from the real name. | ||
18852 | soname_spec=$lt_soname_spec | ||
18853 | |||
18854 | # Commands used to build and install an old-style archive. | ||
18855 | RANLIB=$lt_RANLIB | ||
18856 | old_archive_cmds=$lt_old_archive_cmds_GCJ | ||
18857 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
18858 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
18859 | |||
18860 | # Create an old-style archive from a shared archive. | ||
18861 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | ||
18862 | |||
18863 | # Create a temporary old-style archive to link instead of a shared archive. | ||
18864 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | ||
18865 | |||
18866 | # Commands used to build and install a shared archive. | ||
18867 | archive_cmds=$lt_archive_cmds_GCJ | ||
18868 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | ||
18869 | postinstall_cmds=$lt_postinstall_cmds | ||
18870 | postuninstall_cmds=$lt_postuninstall_cmds | ||
18871 | |||
18872 | # Commands used to build a loadable module (assumed same as above if empty) | ||
18873 | module_cmds=$lt_module_cmds_GCJ | ||
18874 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | ||
18875 | |||
18876 | # Commands to strip libraries. | ||
18877 | old_striplib=$lt_old_striplib | ||
18878 | striplib=$lt_striplib | ||
18879 | |||
18880 | # Dependencies to place before the objects being linked to create a | ||
18881 | # shared library. | ||
18882 | predep_objects=$lt_predep_objects_GCJ | ||
18883 | |||
18884 | # Dependencies to place after the objects being linked to create a | ||
18885 | # shared library. | ||
18886 | postdep_objects=$lt_postdep_objects_GCJ | ||
18887 | |||
18888 | # Dependencies to place before the objects being linked to create a | ||
18889 | # shared library. | ||
18890 | predeps=$lt_predeps_GCJ | ||
18891 | |||
18892 | # Dependencies to place after the objects being linked to create a | ||
18893 | # shared library. | ||
18894 | postdeps=$lt_postdeps_GCJ | ||
18895 | |||
18896 | # The library search path used internally by the compiler when linking | ||
18897 | # a shared library. | ||
18898 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | ||
18899 | |||
18900 | # Method to check whether dependent libraries are shared objects. | ||
18901 | deplibs_check_method=$lt_deplibs_check_method | ||
18902 | |||
18903 | # Command to use when deplibs_check_method == file_magic. | ||
18904 | file_magic_cmd=$lt_file_magic_cmd | ||
18905 | |||
18906 | # Flag that allows shared libraries with undefined symbols to be built. | ||
18907 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | ||
18908 | |||
18909 | # Flag that forces no undefined symbols. | ||
18910 | no_undefined_flag=$lt_no_undefined_flag_GCJ | ||
18911 | |||
18912 | # Commands used to finish a libtool library installation in a directory. | ||
18913 | finish_cmds=$lt_finish_cmds | ||
18914 | |||
18915 | # Same as above, but a single script fragment to be evaled but not shown. | ||
18916 | finish_eval=$lt_finish_eval | ||
18917 | |||
18918 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
18919 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
18920 | |||
18921 | # Transform the output of nm in a proper C declaration | ||
18922 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
18923 | |||
18924 | # Transform the output of nm in a C name address pair | ||
18925 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
18926 | |||
18927 | # This is the shared library runtime path variable. | ||
18928 | runpath_var=$runpath_var | ||
18929 | |||
18930 | # This is the shared library path variable. | ||
18931 | shlibpath_var=$shlibpath_var | ||
18932 | |||
18933 | # Is shlibpath searched before the hard-coded library search path? | ||
18934 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
18935 | |||
18936 | # How to hardcode a shared library path into an executable. | ||
18937 | hardcode_action=$hardcode_action_GCJ | ||
18938 | |||
18939 | # Whether we should hardcode library paths into libraries. | ||
18940 | hardcode_into_libs=$hardcode_into_libs | ||
18941 | |||
18942 | # Flag to hardcode \$libdir into a binary during linking. | ||
18943 | # This must work even if \$libdir does not exist. | ||
18944 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | ||
18945 | |||
18946 | # If ld is used when linking, flag to hardcode \$libdir into | ||
18947 | # a binary during linking. This must work even if \$libdir does | ||
18948 | # not exist. | ||
18949 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | ||
18950 | |||
18951 | # Whether we need a single -rpath flag with a separated argument. | ||
18952 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | ||
18953 | |||
18954 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
18955 | # resulting binary. | ||
18956 | hardcode_direct=$hardcode_direct_GCJ | ||
18957 | |||
18958 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
18959 | # resulting binary. | ||
18960 | hardcode_minus_L=$hardcode_minus_L_GCJ | ||
18961 | |||
18962 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
18963 | # the resulting binary. | ||
18964 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | ||
18965 | |||
18966 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
18967 | # and all subsequent libraries and executables linked against it. | ||
18968 | hardcode_automatic=$hardcode_automatic_GCJ | ||
18969 | |||
18970 | # Variables whose values should be saved in libtool wrapper scripts and | ||
18971 | # restored at relink time. | ||
18972 | variables_saved_for_relink="$variables_saved_for_relink" | ||
18973 | |||
18974 | # Whether libtool must link a program against all its dependency libraries. | ||
18975 | link_all_deplibs=$link_all_deplibs_GCJ | ||
18976 | |||
18977 | # Compile-time system search path for libraries | ||
18978 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
18979 | |||
18980 | # Run-time system search path for libraries | ||
18981 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
18982 | |||
18983 | # Fix the shell variable \$srcfile for the compiler. | ||
18984 | fix_srcfile_path="$fix_srcfile_path_GCJ" | ||
18985 | |||
18986 | # Set to yes if exported symbols are required. | ||
18987 | always_export_symbols=$always_export_symbols_GCJ | ||
18988 | |||
18989 | # The commands to list exported symbols. | ||
18990 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | ||
18991 | |||
18992 | # The commands to extract the exported symbol list from a shared archive. | ||
18993 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
18994 | |||
18995 | # Symbols that should not be listed in the preloaded symbols. | ||
18996 | exclude_expsyms=$lt_exclude_expsyms_GCJ | ||
18997 | |||
18998 | # Symbols that must always be exported. | ||
18999 | include_expsyms=$lt_include_expsyms_GCJ | ||
19000 | |||
19001 | # ### END LIBTOOL TAG CONFIG: $tagname | ||
19002 | |||
19003 | __EOF__ | ||
19004 | |||
19005 | |||
19006 | else | ||
19007 | # If there is no Makefile yet, we rely on a make rule to execute | ||
19008 | # `config.status --recheck' to rerun these tests and create the | ||
19009 | # libtool script then. | ||
19010 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
19011 | if test -f "$ltmain_in"; then | ||
19012 | test -f Makefile && make "$ltmain" | ||
19013 | fi | ||
19014 | fi | ||
19015 | |||
19016 | |||
19017 | ac_ext=c | ||
19018 | ac_cpp='$CPP $CPPFLAGS' | ||
19019 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
19020 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
19021 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
19022 | |||
19023 | CC="$lt_save_CC" | ||
19024 | |||
19025 | else | ||
19026 | tagname="" | ||
19027 | fi | ||
19028 | ;; | ||
19029 | |||
19030 | RC) | ||
19031 | |||
19032 | |||
19033 | |||
19034 | # Source file extension for RC test sources. | ||
19035 | ac_ext=rc | ||
19036 | |||
19037 | # Object file extension for compiled RC test sources. | ||
19038 | objext=o | ||
19039 | objext_RC=$objext | ||
19040 | |||
19041 | # Code to be used in simple compile tests | ||
19042 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | ||
19043 | |||
19044 | # Code to be used in simple link tests | ||
19045 | lt_simple_link_test_code="$lt_simple_compile_test_code" | ||
19046 | |||
19047 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
19048 | |||
19049 | # If no C compiler was specified, use CC. | ||
19050 | LTCC=${LTCC-"$CC"} | ||
19051 | |||
19052 | # Allow CC to be a program name with arguments. | ||
19053 | compiler=$CC | ||
19054 | |||
19055 | |||
19056 | # Allow CC to be a program name with arguments. | ||
19057 | lt_save_CC="$CC" | ||
19058 | CC=${RC-"windres"} | ||
19059 | compiler=$CC | ||
19060 | compiler_RC=$CC | ||
19061 | lt_cv_prog_compiler_c_o_RC=yes | ||
19062 | |||
19063 | # The else clause should only fire when bootstrapping the | ||
19064 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
19065 | # with your package, and you will get complaints that there are | ||
19066 | # no rules to generate ltmain.sh. | ||
19067 | if test -f "$ltmain"; then | ||
19068 | # See if we are running on zsh, and set the options which allow our commands through | ||
19069 | # without removal of \ escapes. | ||
19070 | if test -n "${ZSH_VERSION+set}" ; then | ||
19071 | setopt NO_GLOB_SUBST | ||
19072 | fi | ||
19073 | # Now quote all the things that may contain metacharacters while being | ||
19074 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
19075 | # variables and quote the copies for generation of the libtool script. | ||
19076 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | ||
19077 | SED SHELL STRIP \ | ||
19078 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
19079 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
19080 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
19081 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
19082 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
19083 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
19084 | old_postinstall_cmds old_postuninstall_cmds \ | ||
19085 | compiler_RC \ | ||
19086 | CC_RC \ | ||
19087 | LD_RC \ | ||
19088 | lt_prog_compiler_wl_RC \ | ||
19089 | lt_prog_compiler_pic_RC \ | ||
19090 | lt_prog_compiler_static_RC \ | ||
19091 | lt_prog_compiler_no_builtin_flag_RC \ | ||
19092 | export_dynamic_flag_spec_RC \ | ||
19093 | thread_safe_flag_spec_RC \ | ||
19094 | whole_archive_flag_spec_RC \ | ||
19095 | enable_shared_with_static_runtimes_RC \ | ||
19096 | old_archive_cmds_RC \ | ||
19097 | old_archive_from_new_cmds_RC \ | ||
19098 | predep_objects_RC \ | ||
19099 | postdep_objects_RC \ | ||
19100 | predeps_RC \ | ||
19101 | postdeps_RC \ | ||
19102 | compiler_lib_search_path_RC \ | ||
19103 | archive_cmds_RC \ | ||
19104 | archive_expsym_cmds_RC \ | ||
19105 | postinstall_cmds_RC \ | ||
19106 | postuninstall_cmds_RC \ | ||
19107 | old_archive_from_expsyms_cmds_RC \ | ||
19108 | allow_undefined_flag_RC \ | ||
19109 | no_undefined_flag_RC \ | ||
19110 | export_symbols_cmds_RC \ | ||
19111 | hardcode_libdir_flag_spec_RC \ | ||
19112 | hardcode_libdir_flag_spec_ld_RC \ | ||
19113 | hardcode_libdir_separator_RC \ | ||
19114 | hardcode_automatic_RC \ | ||
19115 | module_cmds_RC \ | ||
19116 | module_expsym_cmds_RC \ | ||
19117 | lt_cv_prog_compiler_c_o_RC \ | ||
19118 | exclude_expsyms_RC \ | ||
19119 | include_expsyms_RC; do | ||
19120 | |||
19121 | case $var in | ||
19122 | old_archive_cmds_RC | \ | ||
19123 | old_archive_from_new_cmds_RC | \ | ||
19124 | archive_cmds_RC | \ | ||
19125 | archive_expsym_cmds_RC | \ | ||
19126 | module_cmds_RC | \ | ||
19127 | module_expsym_cmds_RC | \ | ||
19128 | old_archive_from_expsyms_cmds_RC | \ | ||
19129 | export_symbols_cmds_RC | \ | ||
19130 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
19131 | postinstall_cmds | postuninstall_cmds | \ | ||
19132 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
19133 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
19134 | # Double-quote double-evaled strings. | ||
19135 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
19136 | ;; | ||
19137 | *) | ||
19138 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
19139 | ;; | ||
19140 | esac | ||
19141 | done | ||
19142 | |||
19143 | case $lt_echo in | ||
19144 | *'\$0 --fallback-echo"') | ||
19145 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | ||
19146 | ;; | ||
19147 | esac | ||
19148 | |||
19149 | cfgfile="$ofile" | ||
19150 | |||
19151 | cat <<__EOF__ >> "$cfgfile" | ||
19152 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | ||
19153 | |||
19154 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
19155 | |||
19156 | # Shell to use when invoking shell scripts. | ||
19157 | SHELL=$lt_SHELL | ||
19158 | |||
19159 | # Whether or not to build shared libraries. | ||
19160 | build_libtool_libs=$enable_shared | ||
19161 | |||
19162 | # Whether or not to build static libraries. | ||
19163 | build_old_libs=$enable_static | ||
19164 | |||
19165 | # Whether or not to add -lc for building shared libraries. | ||
19166 | build_libtool_need_lc=$archive_cmds_need_lc_RC | ||
19167 | |||
19168 | # Whether or not to disallow shared libs when runtime libs are static | ||
19169 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | ||
19170 | |||
19171 | # Whether or not to optimize for fast installation. | ||
19172 | fast_install=$enable_fast_install | ||
19173 | |||
19174 | # The host system. | ||
19175 | host_alias=$host_alias | ||
19176 | host=$host | ||
19177 | |||
19178 | # An echo program that does not interpret backslashes. | ||
19179 | echo=$lt_echo | ||
19180 | |||
19181 | # The archiver. | ||
19182 | AR=$lt_AR | ||
19183 | AR_FLAGS=$lt_AR_FLAGS | ||
19184 | |||
19185 | # A C compiler. | ||
19186 | LTCC=$lt_LTCC | ||
19187 | |||
19188 | # A language-specific compiler. | ||
19189 | CC=$lt_compiler_RC | ||
19190 | |||
19191 | # Is the compiler the GNU C compiler? | ||
19192 | with_gcc=$GCC_RC | ||
19193 | |||
19194 | # An ERE matcher. | ||
19195 | EGREP=$lt_EGREP | ||
19196 | |||
19197 | # The linker used to build libraries. | ||
19198 | LD=$lt_LD_RC | ||
19199 | |||
19200 | # Whether we need hard or soft links. | ||
19201 | LN_S=$lt_LN_S | ||
19202 | |||
19203 | # A BSD-compatible nm program. | ||
19204 | NM=$lt_NM | ||
19205 | |||
19206 | # A symbol stripping program | ||
19207 | STRIP=$lt_STRIP | ||
19208 | |||
19209 | # Used to examine libraries when file_magic_cmd begins "file" | ||
19210 | MAGIC_CMD=$MAGIC_CMD | ||
19211 | |||
19212 | # Used on cygwin: DLL creation program. | ||
19213 | DLLTOOL="$DLLTOOL" | ||
19214 | |||
19215 | # Used on cygwin: object dumper. | ||
19216 | OBJDUMP="$OBJDUMP" | ||
19217 | |||
19218 | # Used on cygwin: assembler. | ||
19219 | AS="$AS" | ||
19220 | |||
19221 | # The name of the directory that contains temporary libtool files. | ||
19222 | objdir=$objdir | ||
19223 | |||
19224 | # How to create reloadable object files. | ||
19225 | reload_flag=$lt_reload_flag | ||
19226 | reload_cmds=$lt_reload_cmds | ||
19227 | |||
19228 | # How to pass a linker flag through the compiler. | ||
19229 | wl=$lt_lt_prog_compiler_wl_RC | ||
19230 | |||
19231 | # Object file suffix (normally "o"). | ||
19232 | objext="$ac_objext" | ||
19233 | |||
19234 | # Old archive suffix (normally "a"). | ||
19235 | libext="$libext" | ||
19236 | |||
19237 | # Shared library suffix (normally ".so"). | ||
19238 | shrext_cmds='$shrext_cmds' | ||
19239 | |||
19240 | # Executable file suffix (normally ""). | ||
19241 | exeext="$exeext" | ||
19242 | |||
19243 | # Additional compiler flags for building library objects. | ||
19244 | pic_flag=$lt_lt_prog_compiler_pic_RC | ||
19245 | pic_mode=$pic_mode | ||
19246 | |||
19247 | # What is the maximum length of a command? | ||
19248 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
19249 | |||
19250 | # Does compiler simultaneously support -c and -o options? | ||
19251 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | ||
19252 | |||
19253 | # Must we lock files when doing compilation ? | ||
19254 | need_locks=$lt_need_locks | ||
19255 | |||
19256 | # Do we need the lib prefix for modules? | ||
19257 | need_lib_prefix=$need_lib_prefix | ||
19258 | |||
19259 | # Do we need a version for libraries? | ||
19260 | need_version=$need_version | ||
19261 | |||
19262 | # Whether dlopen is supported. | ||
19263 | dlopen_support=$enable_dlopen | ||
19264 | |||
19265 | # Whether dlopen of programs is supported. | ||
19266 | dlopen_self=$enable_dlopen_self | ||
19267 | |||
19268 | # Whether dlopen of statically linked programs is supported. | ||
19269 | dlopen_self_static=$enable_dlopen_self_static | ||
19270 | |||
19271 | # Compiler flag to prevent dynamic linking. | ||
19272 | link_static_flag=$lt_lt_prog_compiler_static_RC | ||
19273 | |||
19274 | # Compiler flag to turn off builtin functions. | ||
19275 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | ||
19276 | |||
19277 | # Compiler flag to allow reflexive dlopens. | ||
19278 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | ||
19279 | |||
19280 | # Compiler flag to generate shared objects directly from archives. | ||
19281 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | ||
19282 | |||
19283 | # Compiler flag to generate thread-safe objects. | ||
19284 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | ||
19285 | |||
19286 | # Library versioning type. | ||
19287 | version_type=$version_type | ||
19288 | |||
19289 | # Format of library name prefix. | ||
19290 | libname_spec=$lt_libname_spec | ||
19291 | |||
19292 | # List of archive names. First name is the real one, the rest are links. | ||
19293 | # The last name is the one that the linker finds with -lNAME. | ||
19294 | library_names_spec=$lt_library_names_spec | ||
19295 | |||
19296 | # The coded name of the library, if different from the real name. | ||
19297 | soname_spec=$lt_soname_spec | ||
19298 | |||
19299 | # Commands used to build and install an old-style archive. | ||
19300 | RANLIB=$lt_RANLIB | ||
19301 | old_archive_cmds=$lt_old_archive_cmds_RC | ||
19302 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
19303 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
19304 | |||
19305 | # Create an old-style archive from a shared archive. | ||
19306 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | ||
19307 | |||
19308 | # Create a temporary old-style archive to link instead of a shared archive. | ||
19309 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | ||
19310 | |||
19311 | # Commands used to build and install a shared archive. | ||
19312 | archive_cmds=$lt_archive_cmds_RC | ||
19313 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | ||
19314 | postinstall_cmds=$lt_postinstall_cmds | ||
19315 | postuninstall_cmds=$lt_postuninstall_cmds | ||
19316 | |||
19317 | # Commands used to build a loadable module (assumed same as above if empty) | ||
19318 | module_cmds=$lt_module_cmds_RC | ||
19319 | module_expsym_cmds=$lt_module_expsym_cmds_RC | ||
19320 | |||
19321 | # Commands to strip libraries. | ||
19322 | old_striplib=$lt_old_striplib | ||
19323 | striplib=$lt_striplib | ||
19324 | |||
19325 | # Dependencies to place before the objects being linked to create a | ||
19326 | # shared library. | ||
19327 | predep_objects=$lt_predep_objects_RC | ||
19328 | |||
19329 | # Dependencies to place after the objects being linked to create a | ||
19330 | # shared library. | ||
19331 | postdep_objects=$lt_postdep_objects_RC | ||
19332 | |||
19333 | # Dependencies to place before the objects being linked to create a | ||
19334 | # shared library. | ||
19335 | predeps=$lt_predeps_RC | ||
19336 | |||
19337 | # Dependencies to place after the objects being linked to create a | ||
19338 | # shared library. | ||
19339 | postdeps=$lt_postdeps_RC | ||
19340 | |||
19341 | # The library search path used internally by the compiler when linking | ||
19342 | # a shared library. | ||
19343 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | ||
19344 | |||
19345 | # Method to check whether dependent libraries are shared objects. | ||
19346 | deplibs_check_method=$lt_deplibs_check_method | ||
19347 | |||
19348 | # Command to use when deplibs_check_method == file_magic. | ||
19349 | file_magic_cmd=$lt_file_magic_cmd | ||
19350 | |||
19351 | # Flag that allows shared libraries with undefined symbols to be built. | ||
19352 | allow_undefined_flag=$lt_allow_undefined_flag_RC | ||
19353 | |||
19354 | # Flag that forces no undefined symbols. | ||
19355 | no_undefined_flag=$lt_no_undefined_flag_RC | ||
19356 | |||
19357 | # Commands used to finish a libtool library installation in a directory. | ||
19358 | finish_cmds=$lt_finish_cmds | ||
19359 | |||
19360 | # Same as above, but a single script fragment to be evaled but not shown. | ||
19361 | finish_eval=$lt_finish_eval | ||
19362 | |||
19363 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
19364 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
19365 | |||
19366 | # Transform the output of nm in a proper C declaration | ||
19367 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
19368 | |||
19369 | # Transform the output of nm in a C name address pair | ||
19370 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
19371 | |||
19372 | # This is the shared library runtime path variable. | ||
19373 | runpath_var=$runpath_var | ||
19374 | |||
19375 | # This is the shared library path variable. | ||
19376 | shlibpath_var=$shlibpath_var | ||
19377 | |||
19378 | # Is shlibpath searched before the hard-coded library search path? | ||
19379 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
19380 | |||
19381 | # How to hardcode a shared library path into an executable. | ||
19382 | hardcode_action=$hardcode_action_RC | ||
19383 | |||
19384 | # Whether we should hardcode library paths into libraries. | ||
19385 | hardcode_into_libs=$hardcode_into_libs | ||
19386 | |||
19387 | # Flag to hardcode \$libdir into a binary during linking. | ||
19388 | # This must work even if \$libdir does not exist. | ||
19389 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | ||
19390 | |||
19391 | # If ld is used when linking, flag to hardcode \$libdir into | ||
19392 | # a binary during linking. This must work even if \$libdir does | ||
19393 | # not exist. | ||
19394 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | ||
19395 | |||
19396 | # Whether we need a single -rpath flag with a separated argument. | ||
19397 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | ||
19398 | |||
19399 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
19400 | # resulting binary. | ||
19401 | hardcode_direct=$hardcode_direct_RC | ||
19402 | |||
19403 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
19404 | # resulting binary. | ||
19405 | hardcode_minus_L=$hardcode_minus_L_RC | ||
19406 | |||
19407 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
19408 | # the resulting binary. | ||
19409 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | ||
19410 | |||
19411 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
19412 | # and all subsequent libraries and executables linked against it. | ||
19413 | hardcode_automatic=$hardcode_automatic_RC | ||
19414 | |||
19415 | # Variables whose values should be saved in libtool wrapper scripts and | ||
19416 | # restored at relink time. | ||
19417 | variables_saved_for_relink="$variables_saved_for_relink" | ||
19418 | |||
19419 | # Whether libtool must link a program against all its dependency libraries. | ||
19420 | link_all_deplibs=$link_all_deplibs_RC | ||
19421 | |||
19422 | # Compile-time system search path for libraries | ||
19423 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
19424 | |||
19425 | # Run-time system search path for libraries | ||
19426 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
19427 | |||
19428 | # Fix the shell variable \$srcfile for the compiler. | ||
19429 | fix_srcfile_path="$fix_srcfile_path_RC" | ||
19430 | |||
19431 | # Set to yes if exported symbols are required. | ||
19432 | always_export_symbols=$always_export_symbols_RC | ||
19433 | |||
19434 | # The commands to list exported symbols. | ||
19435 | export_symbols_cmds=$lt_export_symbols_cmds_RC | ||
19436 | |||
19437 | # The commands to extract the exported symbol list from a shared archive. | ||
19438 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
19439 | |||
19440 | # Symbols that should not be listed in the preloaded symbols. | ||
19441 | exclude_expsyms=$lt_exclude_expsyms_RC | ||
19442 | |||
19443 | # Symbols that must always be exported. | ||
19444 | include_expsyms=$lt_include_expsyms_RC | ||
19445 | |||
19446 | # ### END LIBTOOL TAG CONFIG: $tagname | ||
19447 | |||
19448 | __EOF__ | ||
19449 | |||
19450 | |||
19451 | else | ||
19452 | # If there is no Makefile yet, we rely on a make rule to execute | ||
19453 | # `config.status --recheck' to rerun these tests and create the | ||
19454 | # libtool script then. | ||
19455 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
19456 | if test -f "$ltmain_in"; then | ||
19457 | test -f Makefile && make "$ltmain" | ||
19458 | fi | ||
19459 | fi | ||
19460 | |||
19461 | |||
19462 | ac_ext=c | ||
19463 | ac_cpp='$CPP $CPPFLAGS' | ||
19464 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
19465 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
19466 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
19467 | |||
19468 | CC="$lt_save_CC" | ||
19469 | |||
19470 | ;; | ||
19471 | |||
19472 | *) | ||
19473 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | ||
19474 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | ||
19475 | { (exit 1); exit 1; }; } | ||
19476 | ;; | ||
19477 | esac | ||
19478 | |||
19479 | # Append the new tag name to the list of available tags. | ||
19480 | if test -n "$tagname" ; then | ||
19481 | available_tags="$available_tags $tagname" | ||
19482 | fi | ||
19483 | fi | ||
19484 | done | ||
19485 | IFS="$lt_save_ifs" | ||
19486 | |||
19487 | # Now substitute the updated list of available tags. | ||
19488 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | ||
19489 | mv "${ofile}T" "$ofile" | ||
19490 | chmod +x "$ofile" | ||
19491 | else | ||
19492 | rm -f "${ofile}T" | ||
19493 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | ||
19494 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | ||
19495 | { (exit 1); exit 1; }; } | ||
19496 | fi | ||
19497 | fi | ||
19498 | |||
19499 | |||
19500 | |||
19501 | # This can be used to rebuild libtool when needed | ||
19502 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | ||
19503 | |||
19504 | # Always use our own libtool. | ||
19505 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
19506 | |||
19507 | # Prevent multiple expansion | ||
19508 | |||
19509 | |||
19510 | |||
19511 | |||
19512 | |||
19513 | |||
19514 | |||
19515 | |||
19516 | |||
19517 | |||
19518 | |||
19519 | |||
19520 | |||
19521 | |||
19522 | |||
19523 | |||
19524 | |||
19525 | |||
19526 | |||
19527 | |||
19528 | |||
19529 | |||
19530 | |||
19531 | |||
19532 | |||
19533 | |||
19534 | |||
19535 | ac_header_dirent=no | ||
19536 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do | ||
19537 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | ||
19538 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | ||
19539 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | ||
19540 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
19541 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19542 | else | ||
19543 | cat >conftest.$ac_ext <<_ACEOF | ||
19544 | /* confdefs.h. */ | ||
19545 | _ACEOF | ||
19546 | cat confdefs.h >>conftest.$ac_ext | ||
19547 | cat >>conftest.$ac_ext <<_ACEOF | ||
19548 | /* end confdefs.h. */ | ||
19549 | #include <sys/types.h> | ||
19550 | #include <$ac_hdr> | ||
19551 | |||
19552 | int | ||
19553 | main () | ||
19554 | { | ||
19555 | if ((DIR *) 0) | ||
19556 | return 0; | ||
19557 | ; | ||
19558 | return 0; | ||
19559 | } | ||
19560 | _ACEOF | ||
19561 | rm -f conftest.$ac_objext | ||
19562 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
19563 | (eval $ac_compile) 2>conftest.er1 | ||
19564 | ac_status=$? | ||
19565 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19566 | rm -f conftest.er1 | ||
19567 | cat conftest.err >&5 | ||
19568 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19569 | (exit $ac_status); } && | ||
19570 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
19571 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19572 | (eval $ac_try) 2>&5 | ||
19573 | ac_status=$? | ||
19574 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19575 | (exit $ac_status); }; } && | ||
19576 | { ac_try='test -s conftest.$ac_objext' | ||
19577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19578 | (eval $ac_try) 2>&5 | ||
19579 | ac_status=$? | ||
19580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19581 | (exit $ac_status); }; }; then | ||
19582 | eval "$as_ac_Header=yes" | ||
19583 | else | ||
19584 | echo "$as_me: failed program was:" >&5 | ||
19585 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19586 | |||
19587 | eval "$as_ac_Header=no" | ||
19588 | fi | ||
19589 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
19590 | fi | ||
19591 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
19592 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
19593 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
19594 | cat >>confdefs.h <<_ACEOF | ||
19595 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | ||
19596 | _ACEOF | ||
19597 | |||
19598 | ac_header_dirent=$ac_hdr; break | ||
19599 | fi | ||
19600 | |||
19601 | done | ||
19602 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | ||
19603 | if test $ac_header_dirent = dirent.h; then | ||
19604 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | ||
19605 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | ||
19606 | if test "${ac_cv_search_opendir+set}" = set; then | ||
19607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19608 | else | ||
19609 | ac_func_search_save_LIBS=$LIBS | ||
19610 | ac_cv_search_opendir=no | ||
19611 | cat >conftest.$ac_ext <<_ACEOF | ||
19612 | /* confdefs.h. */ | ||
19613 | _ACEOF | ||
19614 | cat confdefs.h >>conftest.$ac_ext | ||
19615 | cat >>conftest.$ac_ext <<_ACEOF | ||
19616 | /* end confdefs.h. */ | ||
19617 | |||
19618 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
19619 | #ifdef __cplusplus | ||
19620 | extern "C" | ||
19621 | #endif | ||
19622 | /* We use char because int might match the return type of a gcc2 | ||
19623 | builtin and then its argument prototype would still apply. */ | ||
19624 | char opendir (); | ||
19625 | int | ||
19626 | main () | ||
19627 | { | ||
19628 | opendir (); | ||
19629 | ; | ||
19630 | return 0; | ||
19631 | } | ||
19632 | _ACEOF | ||
19633 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19634 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
19635 | (eval $ac_link) 2>conftest.er1 | ||
19636 | ac_status=$? | ||
19637 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19638 | rm -f conftest.er1 | ||
19639 | cat conftest.err >&5 | ||
19640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19641 | (exit $ac_status); } && | ||
19642 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
19643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19644 | (eval $ac_try) 2>&5 | ||
19645 | ac_status=$? | ||
19646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19647 | (exit $ac_status); }; } && | ||
19648 | { ac_try='test -s conftest$ac_exeext' | ||
19649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19650 | (eval $ac_try) 2>&5 | ||
19651 | ac_status=$? | ||
19652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19653 | (exit $ac_status); }; }; then | ||
19654 | ac_cv_search_opendir="none required" | ||
19655 | else | ||
19656 | echo "$as_me: failed program was:" >&5 | ||
19657 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19658 | |||
19659 | fi | ||
19660 | rm -f conftest.err conftest.$ac_objext \ | ||
19661 | conftest$ac_exeext conftest.$ac_ext | ||
19662 | if test "$ac_cv_search_opendir" = no; then | ||
19663 | for ac_lib in dir; do | ||
19664 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
19665 | cat >conftest.$ac_ext <<_ACEOF | ||
19666 | /* confdefs.h. */ | ||
19667 | _ACEOF | ||
19668 | cat confdefs.h >>conftest.$ac_ext | ||
19669 | cat >>conftest.$ac_ext <<_ACEOF | ||
19670 | /* end confdefs.h. */ | ||
19671 | |||
19672 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
19673 | #ifdef __cplusplus | ||
19674 | extern "C" | ||
19675 | #endif | ||
19676 | /* We use char because int might match the return type of a gcc2 | ||
19677 | builtin and then its argument prototype would still apply. */ | ||
19678 | char opendir (); | ||
19679 | int | ||
19680 | main () | ||
19681 | { | ||
19682 | opendir (); | ||
19683 | ; | ||
19684 | return 0; | ||
19685 | } | ||
19686 | _ACEOF | ||
19687 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19688 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
19689 | (eval $ac_link) 2>conftest.er1 | ||
19690 | ac_status=$? | ||
19691 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19692 | rm -f conftest.er1 | ||
19693 | cat conftest.err >&5 | ||
19694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19695 | (exit $ac_status); } && | ||
19696 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
19697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19698 | (eval $ac_try) 2>&5 | ||
19699 | ac_status=$? | ||
19700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19701 | (exit $ac_status); }; } && | ||
19702 | { ac_try='test -s conftest$ac_exeext' | ||
19703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19704 | (eval $ac_try) 2>&5 | ||
19705 | ac_status=$? | ||
19706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19707 | (exit $ac_status); }; }; then | ||
19708 | ac_cv_search_opendir="-l$ac_lib" | ||
19709 | break | ||
19710 | else | ||
19711 | echo "$as_me: failed program was:" >&5 | ||
19712 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19713 | |||
19714 | fi | ||
19715 | rm -f conftest.err conftest.$ac_objext \ | ||
19716 | conftest$ac_exeext conftest.$ac_ext | ||
19717 | done | ||
19718 | fi | ||
19719 | LIBS=$ac_func_search_save_LIBS | ||
19720 | fi | ||
19721 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | ||
19722 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | ||
19723 | if test "$ac_cv_search_opendir" != no; then | ||
19724 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | ||
19725 | |||
19726 | fi | ||
19727 | |||
19728 | else | ||
19729 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 | ||
19730 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | ||
19731 | if test "${ac_cv_search_opendir+set}" = set; then | ||
19732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19733 | else | ||
19734 | ac_func_search_save_LIBS=$LIBS | ||
19735 | ac_cv_search_opendir=no | ||
19736 | cat >conftest.$ac_ext <<_ACEOF | ||
19737 | /* confdefs.h. */ | ||
19738 | _ACEOF | ||
19739 | cat confdefs.h >>conftest.$ac_ext | ||
19740 | cat >>conftest.$ac_ext <<_ACEOF | ||
19741 | /* end confdefs.h. */ | ||
19742 | |||
19743 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
19744 | #ifdef __cplusplus | ||
19745 | extern "C" | ||
19746 | #endif | ||
19747 | /* We use char because int might match the return type of a gcc2 | ||
19748 | builtin and then its argument prototype would still apply. */ | ||
19749 | char opendir (); | ||
19750 | int | ||
19751 | main () | ||
19752 | { | ||
19753 | opendir (); | ||
19754 | ; | ||
19755 | return 0; | ||
19756 | } | ||
19757 | _ACEOF | ||
19758 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19759 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
19760 | (eval $ac_link) 2>conftest.er1 | ||
19761 | ac_status=$? | ||
19762 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19763 | rm -f conftest.er1 | ||
19764 | cat conftest.err >&5 | ||
19765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19766 | (exit $ac_status); } && | ||
19767 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
19768 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19769 | (eval $ac_try) 2>&5 | ||
19770 | ac_status=$? | ||
19771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19772 | (exit $ac_status); }; } && | ||
19773 | { ac_try='test -s conftest$ac_exeext' | ||
19774 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19775 | (eval $ac_try) 2>&5 | ||
19776 | ac_status=$? | ||
19777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19778 | (exit $ac_status); }; }; then | ||
19779 | ac_cv_search_opendir="none required" | ||
19780 | else | ||
19781 | echo "$as_me: failed program was:" >&5 | ||
19782 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19783 | |||
19784 | fi | ||
19785 | rm -f conftest.err conftest.$ac_objext \ | ||
19786 | conftest$ac_exeext conftest.$ac_ext | ||
19787 | if test "$ac_cv_search_opendir" = no; then | ||
19788 | for ac_lib in x; do | ||
19789 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | ||
19790 | cat >conftest.$ac_ext <<_ACEOF | ||
19791 | /* confdefs.h. */ | ||
19792 | _ACEOF | ||
19793 | cat confdefs.h >>conftest.$ac_ext | ||
19794 | cat >>conftest.$ac_ext <<_ACEOF | ||
19795 | /* end confdefs.h. */ | ||
19796 | |||
19797 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
19798 | #ifdef __cplusplus | ||
19799 | extern "C" | ||
19800 | #endif | ||
19801 | /* We use char because int might match the return type of a gcc2 | ||
19802 | builtin and then its argument prototype would still apply. */ | ||
19803 | char opendir (); | ||
19804 | int | ||
19805 | main () | ||
19806 | { | ||
19807 | opendir (); | ||
19808 | ; | ||
19809 | return 0; | ||
19810 | } | ||
19811 | _ACEOF | ||
19812 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19813 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
19814 | (eval $ac_link) 2>conftest.er1 | ||
19815 | ac_status=$? | ||
19816 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19817 | rm -f conftest.er1 | ||
19818 | cat conftest.err >&5 | ||
19819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19820 | (exit $ac_status); } && | ||
19821 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
19822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19823 | (eval $ac_try) 2>&5 | ||
19824 | ac_status=$? | ||
19825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19826 | (exit $ac_status); }; } && | ||
19827 | { ac_try='test -s conftest$ac_exeext' | ||
19828 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
19829 | (eval $ac_try) 2>&5 | ||
19830 | ac_status=$? | ||
19831 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19832 | (exit $ac_status); }; }; then | ||
19833 | ac_cv_search_opendir="-l$ac_lib" | ||
19834 | break | ||
19835 | else | ||
19836 | echo "$as_me: failed program was:" >&5 | ||
19837 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19838 | |||
19839 | fi | ||
19840 | rm -f conftest.err conftest.$ac_objext \ | ||
19841 | conftest$ac_exeext conftest.$ac_ext | ||
19842 | done | ||
19843 | fi | ||
19844 | LIBS=$ac_func_search_save_LIBS | ||
19845 | fi | ||
19846 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | ||
19847 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | ||
19848 | if test "$ac_cv_search_opendir" != no; then | ||
19849 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | ||
19850 | |||
19851 | fi | ||
19852 | |||
19853 | fi | ||
19854 | |||
19855 | # Check whether --enable-ltdl-install or --disable-ltdl-install was given. | ||
19856 | if test "${enable_ltdl_install+set}" = set; then | ||
19857 | enableval="$enable_ltdl_install" | ||
19858 | |||
19859 | fi; | ||
19860 | |||
19861 | |||
19862 | |||
19863 | if test x"${enable_ltdl_install-no}" != xno; then | ||
19864 | INSTALL_LTDL_TRUE= | ||
19865 | INSTALL_LTDL_FALSE='#' | ||
19866 | else | ||
19867 | INSTALL_LTDL_TRUE='#' | ||
19868 | INSTALL_LTDL_FALSE= | ||
19869 | fi | ||
19870 | |||
19871 | |||
19872 | |||
19873 | if test x"${enable_ltdl_convenience-no}" != xno; then | ||
19874 | CONVENIENCE_LTDL_TRUE= | ||
19875 | CONVENIENCE_LTDL_FALSE='#' | ||
19876 | else | ||
19877 | CONVENIENCE_LTDL_TRUE='#' | ||
19878 | CONVENIENCE_LTDL_FALSE= | ||
19879 | fi | ||
19880 | |||
19881 | |||
19882 | |||
19883 | echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5 | ||
19884 | echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6 | ||
19885 | if test "${libltdl_cv_shlibext+set}" = set; then | ||
19886 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19887 | else | ||
19888 | |||
19889 | module=yes | ||
19890 | eval libltdl_cv_shlibext=$shrext_cmds | ||
19891 | |||
19892 | fi | ||
19893 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5 | ||
19894 | echo "${ECHO_T}$libltdl_cv_shlibext" >&6 | ||
19895 | if test -n "$libltdl_cv_shlibext"; then | ||
19896 | |||
19897 | cat >>confdefs.h <<_ACEOF | ||
19898 | #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext" | ||
19899 | _ACEOF | ||
19900 | |||
19901 | fi | ||
19902 | |||
19903 | |||
19904 | echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5 | ||
19905 | echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6 | ||
19906 | if test "${libltdl_cv_shlibpath_var+set}" = set; then | ||
19907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19908 | else | ||
19909 | libltdl_cv_shlibpath_var="$shlibpath_var" | ||
19910 | fi | ||
19911 | echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5 | ||
19912 | echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6 | ||
19913 | if test -n "$libltdl_cv_shlibpath_var"; then | ||
19914 | |||
19915 | cat >>confdefs.h <<_ACEOF | ||
19916 | #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var" | ||
19917 | _ACEOF | ||
19918 | |||
19919 | fi | ||
19920 | |||
19921 | |||
19922 | echo "$as_me:$LINENO: checking for the default library search path" >&5 | ||
19923 | echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6 | ||
19924 | if test "${libltdl_cv_sys_search_path+set}" = set; then | ||
19925 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19926 | else | ||
19927 | libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec" | ||
19928 | fi | ||
19929 | echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5 | ||
19930 | echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6 | ||
19931 | if test -n "$libltdl_cv_sys_search_path"; then | ||
19932 | sys_search_path= | ||
19933 | for dir in $libltdl_cv_sys_search_path; do | ||
19934 | if test -z "$sys_search_path"; then | ||
19935 | sys_search_path="$dir" | ||
19936 | else | ||
19937 | sys_search_path="$sys_search_path$PATH_SEPARATOR$dir" | ||
19938 | fi | ||
19939 | done | ||
19940 | |||
19941 | cat >>confdefs.h <<_ACEOF | ||
19942 | #define LTDL_SYSSEARCHPATH "$sys_search_path" | ||
19943 | _ACEOF | ||
19944 | |||
19945 | fi | ||
19946 | |||
19947 | echo "$as_me:$LINENO: checking for objdir" >&5 | ||
19948 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6 | ||
19949 | if test "${libltdl_cv_objdir+set}" = set; then | ||
19950 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19951 | else | ||
19952 | libltdl_cv_objdir="$objdir" | ||
19953 | if test -n "$objdir"; then | ||
19954 | : | ||
19955 | else | ||
19956 | rm -f .libs 2>/dev/null | ||
19957 | mkdir .libs 2>/dev/null | ||
19958 | if test -d .libs; then | ||
19959 | libltdl_cv_objdir=.libs | ||
19960 | else | ||
19961 | # MS-DOS does not allow filenames that begin with a dot. | ||
19962 | libltdl_cv_objdir=_libs | ||
19963 | fi | ||
19964 | rmdir .libs 2>/dev/null | ||
19965 | fi | ||
19966 | |||
19967 | fi | ||
19968 | echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5 | ||
19969 | echo "${ECHO_T}$libltdl_cv_objdir" >&6 | ||
19970 | |||
19971 | cat >>confdefs.h <<_ACEOF | ||
19972 | #define LTDL_OBJDIR "$libltdl_cv_objdir/" | ||
19973 | _ACEOF | ||
19974 | |||
19975 | |||
19976 | |||
19977 | echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5 | ||
19978 | echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6 | ||
19979 | if test "${libltdl_cv_preloaded_symbols+set}" = set; then | ||
19980 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19981 | else | ||
19982 | if test -n "$lt_cv_sys_global_symbol_pipe"; then | ||
19983 | libltdl_cv_preloaded_symbols=yes | ||
19984 | else | ||
19985 | libltdl_cv_preloaded_symbols=no | ||
19986 | fi | ||
19987 | |||
19988 | fi | ||
19989 | echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5 | ||
19990 | echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6 | ||
19991 | if test x"$libltdl_cv_preloaded_symbols" = xyes; then | ||
19992 | |||
19993 | cat >>confdefs.h <<\_ACEOF | ||
19994 | #define HAVE_PRELOADED_SYMBOLS 1 | ||
19995 | _ACEOF | ||
19996 | |||
19997 | fi | ||
19998 | |||
19999 | LIBADD_DL= | ||
20000 | |||
20001 | ac_ext=c | ||
20002 | ac_cpp='$CPP $CPPFLAGS' | ||
20003 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
20004 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
20005 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
20006 | |||
20007 | |||
20008 | echo "$as_me:$LINENO: checking for shl_load" >&5 | ||
20009 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 | ||
20010 | if test "${ac_cv_func_shl_load+set}" = set; then | ||
20011 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20012 | else | ||
20013 | cat >conftest.$ac_ext <<_ACEOF | ||
20014 | /* confdefs.h. */ | ||
20015 | _ACEOF | ||
20016 | cat confdefs.h >>conftest.$ac_ext | ||
20017 | cat >>conftest.$ac_ext <<_ACEOF | ||
20018 | /* end confdefs.h. */ | ||
20019 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | ||
20020 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
20021 | #define shl_load innocuous_shl_load | ||
20022 | |||
20023 | /* System header to define __stub macros and hopefully few prototypes, | ||
20024 | which can conflict with char shl_load (); below. | ||
20025 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
20026 | <limits.h> exists even on freestanding compilers. */ | ||
20027 | |||
20028 | #ifdef __STDC__ | ||
20029 | # include <limits.h> | ||
20030 | #else | ||
20031 | # include <assert.h> | ||
20032 | #endif | ||
20033 | |||
20034 | #undef shl_load | ||
20035 | |||
20036 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
20037 | #ifdef __cplusplus | ||
20038 | extern "C" | ||
20039 | { | ||
20040 | #endif | ||
20041 | /* We use char because int might match the return type of a gcc2 | ||
20042 | builtin and then its argument prototype would still apply. */ | ||
20043 | char shl_load (); | ||
20044 | /* The GNU C library defines this for functions which it implements | ||
20045 | to always fail with ENOSYS. Some functions are actually named | ||
20046 | something starting with __ and the normal name is an alias. */ | ||
20047 | #if defined (__stub_shl_load) || defined (__stub___shl_load) | ||
20048 | choke me | ||
20049 | #else | ||
20050 | char (*f) () = shl_load; | ||
20051 | #endif | ||
20052 | #ifdef __cplusplus | ||
20053 | } | ||
20054 | #endif | ||
20055 | |||
20056 | int | ||
20057 | main () | ||
20058 | { | ||
20059 | return f != shl_load; | ||
20060 | ; | ||
20061 | return 0; | ||
20062 | } | ||
20063 | _ACEOF | ||
20064 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20065 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20066 | (eval $ac_link) 2>conftest.er1 | ||
20067 | ac_status=$? | ||
20068 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20069 | rm -f conftest.er1 | ||
20070 | cat conftest.err >&5 | ||
20071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20072 | (exit $ac_status); } && | ||
20073 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
20074 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20075 | (eval $ac_try) 2>&5 | ||
20076 | ac_status=$? | ||
20077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20078 | (exit $ac_status); }; } && | ||
20079 | { ac_try='test -s conftest$ac_exeext' | ||
20080 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20081 | (eval $ac_try) 2>&5 | ||
20082 | ac_status=$? | ||
20083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20084 | (exit $ac_status); }; }; then | ||
20085 | ac_cv_func_shl_load=yes | ||
20086 | else | ||
20087 | echo "$as_me: failed program was:" >&5 | ||
20088 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20089 | |||
20090 | ac_cv_func_shl_load=no | ||
20091 | fi | ||
20092 | rm -f conftest.err conftest.$ac_objext \ | ||
20093 | conftest$ac_exeext conftest.$ac_ext | ||
20094 | fi | ||
20095 | echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | ||
20096 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6 | ||
20097 | if test $ac_cv_func_shl_load = yes; then | ||
20098 | |||
20099 | cat >>confdefs.h <<\_ACEOF | ||
20100 | #define HAVE_SHL_LOAD 1 | ||
20101 | _ACEOF | ||
20102 | |||
20103 | else | ||
20104 | echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | ||
20105 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 | ||
20106 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | ||
20107 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20108 | else | ||
20109 | ac_check_lib_save_LIBS=$LIBS | ||
20110 | LIBS="-ldld $LIBS" | ||
20111 | cat >conftest.$ac_ext <<_ACEOF | ||
20112 | /* confdefs.h. */ | ||
20113 | _ACEOF | ||
20114 | cat confdefs.h >>conftest.$ac_ext | ||
20115 | cat >>conftest.$ac_ext <<_ACEOF | ||
20116 | /* end confdefs.h. */ | ||
20117 | |||
20118 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
20119 | #ifdef __cplusplus | ||
20120 | extern "C" | ||
20121 | #endif | ||
20122 | /* We use char because int might match the return type of a gcc2 | ||
20123 | builtin and then its argument prototype would still apply. */ | ||
20124 | char shl_load (); | ||
20125 | int | ||
20126 | main () | ||
20127 | { | ||
20128 | shl_load (); | ||
20129 | ; | ||
20130 | return 0; | ||
20131 | } | ||
20132 | _ACEOF | ||
20133 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20134 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20135 | (eval $ac_link) 2>conftest.er1 | ||
20136 | ac_status=$? | ||
20137 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20138 | rm -f conftest.er1 | ||
20139 | cat conftest.err >&5 | ||
20140 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20141 | (exit $ac_status); } && | ||
20142 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
20143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20144 | (eval $ac_try) 2>&5 | ||
20145 | ac_status=$? | ||
20146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20147 | (exit $ac_status); }; } && | ||
20148 | { ac_try='test -s conftest$ac_exeext' | ||
20149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20150 | (eval $ac_try) 2>&5 | ||
20151 | ac_status=$? | ||
20152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20153 | (exit $ac_status); }; }; then | ||
20154 | ac_cv_lib_dld_shl_load=yes | ||
20155 | else | ||
20156 | echo "$as_me: failed program was:" >&5 | ||
20157 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20158 | |||
20159 | ac_cv_lib_dld_shl_load=no | ||
20160 | fi | ||
20161 | rm -f conftest.err conftest.$ac_objext \ | ||
20162 | conftest$ac_exeext conftest.$ac_ext | ||
20163 | LIBS=$ac_check_lib_save_LIBS | ||
20164 | fi | ||
20165 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | ||
20166 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 | ||
20167 | if test $ac_cv_lib_dld_shl_load = yes; then | ||
20168 | |||
20169 | cat >>confdefs.h <<\_ACEOF | ||
20170 | #define HAVE_SHL_LOAD 1 | ||
20171 | _ACEOF | ||
20172 | |||
20173 | LIBADD_DL="$LIBADD_DL -ldld" | ||
20174 | else | ||
20175 | echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
20176 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 | ||
20177 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
20178 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20179 | else | ||
20180 | ac_check_lib_save_LIBS=$LIBS | ||
20181 | LIBS="-ldl $LIBS" | ||
20182 | cat >conftest.$ac_ext <<_ACEOF | ||
20183 | /* confdefs.h. */ | ||
20184 | _ACEOF | ||
20185 | cat confdefs.h >>conftest.$ac_ext | ||
20186 | cat >>conftest.$ac_ext <<_ACEOF | ||
20187 | /* end confdefs.h. */ | ||
20188 | |||
20189 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
20190 | #ifdef __cplusplus | ||
20191 | extern "C" | ||
20192 | #endif | ||
20193 | /* We use char because int might match the return type of a gcc2 | ||
20194 | builtin and then its argument prototype would still apply. */ | ||
20195 | char dlopen (); | ||
20196 | int | ||
20197 | main () | ||
20198 | { | ||
20199 | dlopen (); | ||
20200 | ; | ||
20201 | return 0; | ||
20202 | } | ||
20203 | _ACEOF | ||
20204 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20205 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20206 | (eval $ac_link) 2>conftest.er1 | ||
20207 | ac_status=$? | ||
20208 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20209 | rm -f conftest.er1 | ||
20210 | cat conftest.err >&5 | ||
20211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20212 | (exit $ac_status); } && | ||
20213 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
20214 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20215 | (eval $ac_try) 2>&5 | ||
20216 | ac_status=$? | ||
20217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20218 | (exit $ac_status); }; } && | ||
20219 | { ac_try='test -s conftest$ac_exeext' | ||
20220 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20221 | (eval $ac_try) 2>&5 | ||
20222 | ac_status=$? | ||
20223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20224 | (exit $ac_status); }; }; then | ||
20225 | ac_cv_lib_dl_dlopen=yes | ||
20226 | else | ||
20227 | echo "$as_me: failed program was:" >&5 | ||
20228 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20229 | |||
20230 | ac_cv_lib_dl_dlopen=no | ||
20231 | fi | ||
20232 | rm -f conftest.err conftest.$ac_objext \ | ||
20233 | conftest$ac_exeext conftest.$ac_ext | ||
20234 | LIBS=$ac_check_lib_save_LIBS | ||
20235 | fi | ||
20236 | echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
20237 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 | ||
20238 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
20239 | |||
20240 | cat >>confdefs.h <<\_ACEOF | ||
20241 | #define HAVE_LIBDL 1 | ||
20242 | _ACEOF | ||
20243 | |||
20244 | LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes" | ||
20245 | else | ||
20246 | cat >conftest.$ac_ext <<_ACEOF | ||
20247 | /* confdefs.h. */ | ||
20248 | _ACEOF | ||
20249 | cat confdefs.h >>conftest.$ac_ext | ||
20250 | cat >>conftest.$ac_ext <<_ACEOF | ||
20251 | /* end confdefs.h. */ | ||
20252 | #if HAVE_DLFCN_H | ||
20253 | # include <dlfcn.h> | ||
20254 | #endif | ||
20255 | |||
20256 | int | ||
20257 | main () | ||
20258 | { | ||
20259 | dlopen(0, 0); | ||
20260 | ; | ||
20261 | return 0; | ||
20262 | } | ||
20263 | _ACEOF | ||
20264 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20265 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20266 | (eval $ac_link) 2>conftest.er1 | ||
20267 | ac_status=$? | ||
20268 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20269 | rm -f conftest.er1 | ||
20270 | cat conftest.err >&5 | ||
20271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20272 | (exit $ac_status); } && | ||
20273 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
20274 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20275 | (eval $ac_try) 2>&5 | ||
20276 | ac_status=$? | ||
20277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20278 | (exit $ac_status); }; } && | ||
20279 | { ac_try='test -s conftest$ac_exeext' | ||
20280 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20281 | (eval $ac_try) 2>&5 | ||
20282 | ac_status=$? | ||
20283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20284 | (exit $ac_status); }; }; then | ||
20285 | |||
20286 | cat >>confdefs.h <<\_ACEOF | ||
20287 | #define HAVE_LIBDL 1 | ||
20288 | _ACEOF | ||
20289 | libltdl_cv_func_dlopen="yes" | ||
20290 | else | ||
20291 | echo "$as_me: failed program was:" >&5 | ||
20292 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20293 | |||
20294 | echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | ||
20295 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 | ||
20296 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | ||
20297 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20298 | else | ||
20299 | ac_check_lib_save_LIBS=$LIBS | ||
20300 | LIBS="-lsvld $LIBS" | ||
20301 | cat >conftest.$ac_ext <<_ACEOF | ||
20302 | /* confdefs.h. */ | ||
20303 | _ACEOF | ||
20304 | cat confdefs.h >>conftest.$ac_ext | ||
20305 | cat >>conftest.$ac_ext <<_ACEOF | ||
20306 | /* end confdefs.h. */ | ||
20307 | |||
20308 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
20309 | #ifdef __cplusplus | ||
20310 | extern "C" | ||
20311 | #endif | ||
20312 | /* We use char because int might match the return type of a gcc2 | ||
20313 | builtin and then its argument prototype would still apply. */ | ||
20314 | char dlopen (); | ||
20315 | int | ||
20316 | main () | ||
20317 | { | ||
20318 | dlopen (); | ||
20319 | ; | ||
20320 | return 0; | ||
20321 | } | ||
20322 | _ACEOF | ||
20323 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20324 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20325 | (eval $ac_link) 2>conftest.er1 | ||
20326 | ac_status=$? | ||
20327 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20328 | rm -f conftest.er1 | ||
20329 | cat conftest.err >&5 | ||
20330 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20331 | (exit $ac_status); } && | ||
20332 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
20333 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20334 | (eval $ac_try) 2>&5 | ||
20335 | ac_status=$? | ||
20336 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20337 | (exit $ac_status); }; } && | ||
20338 | { ac_try='test -s conftest$ac_exeext' | ||
20339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20340 | (eval $ac_try) 2>&5 | ||
20341 | ac_status=$? | ||
20342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20343 | (exit $ac_status); }; }; then | ||
20344 | ac_cv_lib_svld_dlopen=yes | ||
20345 | else | ||
20346 | echo "$as_me: failed program was:" >&5 | ||
20347 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20348 | |||
20349 | ac_cv_lib_svld_dlopen=no | ||
20350 | fi | ||
20351 | rm -f conftest.err conftest.$ac_objext \ | ||
20352 | conftest$ac_exeext conftest.$ac_ext | ||
20353 | LIBS=$ac_check_lib_save_LIBS | ||
20354 | fi | ||
20355 | echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | ||
20356 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 | ||
20357 | if test $ac_cv_lib_svld_dlopen = yes; then | ||
20358 | |||
20359 | cat >>confdefs.h <<\_ACEOF | ||
20360 | #define HAVE_LIBDL 1 | ||
20361 | _ACEOF | ||
20362 | |||
20363 | LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes" | ||
20364 | else | ||
20365 | echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | ||
20366 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 | ||
20367 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | ||
20368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20369 | else | ||
20370 | ac_check_lib_save_LIBS=$LIBS | ||
20371 | LIBS="-ldld $LIBS" | ||
20372 | cat >conftest.$ac_ext <<_ACEOF | ||
20373 | /* confdefs.h. */ | ||
20374 | _ACEOF | ||
20375 | cat confdefs.h >>conftest.$ac_ext | ||
20376 | cat >>conftest.$ac_ext <<_ACEOF | ||
20377 | /* end confdefs.h. */ | ||
20378 | |||
20379 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
20380 | #ifdef __cplusplus | ||
20381 | extern "C" | ||
20382 | #endif | ||
20383 | /* We use char because int might match the return type of a gcc2 | ||
20384 | builtin and then its argument prototype would still apply. */ | ||
20385 | char dld_link (); | ||
20386 | int | ||
20387 | main () | ||
20388 | { | ||
20389 | dld_link (); | ||
20390 | ; | ||
20391 | return 0; | ||
20392 | } | ||
20393 | _ACEOF | ||
20394 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20395 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20396 | (eval $ac_link) 2>conftest.er1 | ||
20397 | ac_status=$? | ||
20398 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20399 | rm -f conftest.er1 | ||
20400 | cat conftest.err >&5 | ||
20401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20402 | (exit $ac_status); } && | ||
20403 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
20404 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20405 | (eval $ac_try) 2>&5 | ||
20406 | ac_status=$? | ||
20407 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20408 | (exit $ac_status); }; } && | ||
20409 | { ac_try='test -s conftest$ac_exeext' | ||
20410 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20411 | (eval $ac_try) 2>&5 | ||
20412 | ac_status=$? | ||
20413 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20414 | (exit $ac_status); }; }; then | ||
20415 | ac_cv_lib_dld_dld_link=yes | ||
20416 | else | ||
20417 | echo "$as_me: failed program was:" >&5 | ||
20418 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20419 | |||
20420 | ac_cv_lib_dld_dld_link=no | ||
20421 | fi | ||
20422 | rm -f conftest.err conftest.$ac_objext \ | ||
20423 | conftest$ac_exeext conftest.$ac_ext | ||
20424 | LIBS=$ac_check_lib_save_LIBS | ||
20425 | fi | ||
20426 | echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | ||
20427 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 | ||
20428 | if test $ac_cv_lib_dld_dld_link = yes; then | ||
20429 | |||
20430 | cat >>confdefs.h <<\_ACEOF | ||
20431 | #define HAVE_DLD 1 | ||
20432 | _ACEOF | ||
20433 | |||
20434 | LIBADD_DL="$LIBADD_DL -ldld" | ||
20435 | else | ||
20436 | echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5 | ||
20437 | echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6 | ||
20438 | if test "${ac_cv_func__dyld_func_lookup+set}" = set; then | ||
20439 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20440 | else | ||
20441 | cat >conftest.$ac_ext <<_ACEOF | ||
20442 | /* confdefs.h. */ | ||
20443 | _ACEOF | ||
20444 | cat confdefs.h >>conftest.$ac_ext | ||
20445 | cat >>conftest.$ac_ext <<_ACEOF | ||
20446 | /* end confdefs.h. */ | ||
20447 | /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup. | ||
20448 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
20449 | #define _dyld_func_lookup innocuous__dyld_func_lookup | ||
20450 | |||
20451 | /* System header to define __stub macros and hopefully few prototypes, | ||
20452 | which can conflict with char _dyld_func_lookup (); below. | ||
20453 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
20454 | <limits.h> exists even on freestanding compilers. */ | ||
20455 | |||
20456 | #ifdef __STDC__ | ||
20457 | # include <limits.h> | ||
20458 | #else | ||
20459 | # include <assert.h> | ||
20460 | #endif | ||
20461 | |||
20462 | #undef _dyld_func_lookup | ||
20463 | |||
20464 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
20465 | #ifdef __cplusplus | ||
20466 | extern "C" | ||
20467 | { | ||
20468 | #endif | ||
20469 | /* We use char because int might match the return type of a gcc2 | ||
20470 | builtin and then its argument prototype would still apply. */ | ||
20471 | char _dyld_func_lookup (); | ||
20472 | /* The GNU C library defines this for functions which it implements | ||
20473 | to always fail with ENOSYS. Some functions are actually named | ||
20474 | something starting with __ and the normal name is an alias. */ | ||
20475 | #if defined (__stub__dyld_func_lookup) || defined (__stub____dyld_func_lookup) | ||
20476 | choke me | ||
20477 | #else | ||
20478 | char (*f) () = _dyld_func_lookup; | ||
20479 | #endif | ||
20480 | #ifdef __cplusplus | ||
20481 | } | ||
20482 | #endif | ||
20483 | |||
20484 | int | ||
20485 | main () | ||
20486 | { | ||
20487 | return f != _dyld_func_lookup; | ||
20488 | ; | ||
20489 | return 0; | ||
20490 | } | ||
20491 | _ACEOF | ||
20492 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20493 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20494 | (eval $ac_link) 2>conftest.er1 | ||
20495 | ac_status=$? | ||
20496 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20497 | rm -f conftest.er1 | ||
20498 | cat conftest.err >&5 | ||
20499 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20500 | (exit $ac_status); } && | ||
20501 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
20502 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20503 | (eval $ac_try) 2>&5 | ||
20504 | ac_status=$? | ||
20505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20506 | (exit $ac_status); }; } && | ||
20507 | { ac_try='test -s conftest$ac_exeext' | ||
20508 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20509 | (eval $ac_try) 2>&5 | ||
20510 | ac_status=$? | ||
20511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20512 | (exit $ac_status); }; }; then | ||
20513 | ac_cv_func__dyld_func_lookup=yes | ||
20514 | else | ||
20515 | echo "$as_me: failed program was:" >&5 | ||
20516 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20517 | |||
20518 | ac_cv_func__dyld_func_lookup=no | ||
20519 | fi | ||
20520 | rm -f conftest.err conftest.$ac_objext \ | ||
20521 | conftest$ac_exeext conftest.$ac_ext | ||
20522 | fi | ||
20523 | echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5 | ||
20524 | echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6 | ||
20525 | if test $ac_cv_func__dyld_func_lookup = yes; then | ||
20526 | |||
20527 | cat >>confdefs.h <<\_ACEOF | ||
20528 | #define HAVE_DYLD 1 | ||
20529 | _ACEOF | ||
20530 | |||
20531 | fi | ||
20532 | |||
20533 | |||
20534 | fi | ||
20535 | |||
20536 | |||
20537 | fi | ||
20538 | |||
20539 | |||
20540 | fi | ||
20541 | rm -f conftest.err conftest.$ac_objext \ | ||
20542 | conftest$ac_exeext conftest.$ac_ext | ||
20543 | |||
20544 | fi | ||
20545 | |||
20546 | |||
20547 | fi | ||
20548 | |||
20549 | |||
20550 | fi | ||
20551 | |||
20552 | |||
20553 | if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes | ||
20554 | then | ||
20555 | lt_save_LIBS="$LIBS" | ||
20556 | LIBS="$LIBS $LIBADD_DL" | ||
20557 | |||
20558 | for ac_func in dlerror | ||
20559 | do | ||
20560 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
20561 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
20562 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
20563 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
20564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20565 | else | ||
20566 | cat >conftest.$ac_ext <<_ACEOF | ||
20567 | /* confdefs.h. */ | ||
20568 | _ACEOF | ||
20569 | cat confdefs.h >>conftest.$ac_ext | ||
20570 | cat >>conftest.$ac_ext <<_ACEOF | ||
20571 | /* end confdefs.h. */ | ||
20572 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
20573 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
20574 | #define $ac_func innocuous_$ac_func | ||
20575 | |||
20576 | /* System header to define __stub macros and hopefully few prototypes, | ||
20577 | which can conflict with char $ac_func (); below. | ||
20578 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
20579 | <limits.h> exists even on freestanding compilers. */ | ||
20580 | |||
20581 | #ifdef __STDC__ | ||
20582 | # include <limits.h> | ||
20583 | #else | ||
20584 | # include <assert.h> | ||
20585 | #endif | ||
20586 | |||
20587 | #undef $ac_func | ||
20588 | |||
20589 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
20590 | #ifdef __cplusplus | ||
20591 | extern "C" | ||
20592 | { | ||
20593 | #endif | ||
20594 | /* We use char because int might match the return type of a gcc2 | ||
20595 | builtin and then its argument prototype would still apply. */ | ||
20596 | char $ac_func (); | ||
20597 | /* The GNU C library defines this for functions which it implements | ||
20598 | to always fail with ENOSYS. Some functions are actually named | ||
20599 | something starting with __ and the normal name is an alias. */ | ||
20600 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
20601 | choke me | ||
20602 | #else | ||
20603 | char (*f) () = $ac_func; | ||
20604 | #endif | ||
20605 | #ifdef __cplusplus | ||
20606 | } | ||
20607 | #endif | ||
20608 | |||
20609 | int | ||
20610 | main () | ||
20611 | { | ||
20612 | return f != $ac_func; | ||
20613 | ; | ||
20614 | return 0; | ||
20615 | } | ||
20616 | _ACEOF | ||
20617 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20618 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20619 | (eval $ac_link) 2>conftest.er1 | ||
20620 | ac_status=$? | ||
20621 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20622 | rm -f conftest.er1 | ||
20623 | cat conftest.err >&5 | ||
20624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20625 | (exit $ac_status); } && | ||
20626 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
20627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20628 | (eval $ac_try) 2>&5 | ||
20629 | ac_status=$? | ||
20630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20631 | (exit $ac_status); }; } && | ||
20632 | { ac_try='test -s conftest$ac_exeext' | ||
20633 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20634 | (eval $ac_try) 2>&5 | ||
20635 | ac_status=$? | ||
20636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20637 | (exit $ac_status); }; }; then | ||
20638 | eval "$as_ac_var=yes" | ||
20639 | else | ||
20640 | echo "$as_me: failed program was:" >&5 | ||
20641 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20642 | |||
20643 | eval "$as_ac_var=no" | ||
20644 | fi | ||
20645 | rm -f conftest.err conftest.$ac_objext \ | ||
20646 | conftest$ac_exeext conftest.$ac_ext | ||
20647 | fi | ||
20648 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
20649 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
20650 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
20651 | cat >>confdefs.h <<_ACEOF | ||
20652 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
20653 | _ACEOF | ||
20654 | |||
20655 | fi | ||
20656 | done | ||
20657 | |||
20658 | LIBS="$lt_save_LIBS" | ||
20659 | fi | ||
20660 | ac_ext=c | ||
20661 | ac_cpp='$CPP $CPPFLAGS' | ||
20662 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
20663 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
20664 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
20665 | |||
20666 | |||
20667 | |||
20668 | echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5 | ||
20669 | echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6 | ||
20670 | if test "${ac_cv_sys_symbol_underscore+set}" = set; then | ||
20671 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20672 | else | ||
20673 | ac_cv_sys_symbol_underscore=no | ||
20674 | cat > conftest.$ac_ext <<EOF | ||
20675 | void nm_test_func(){} | ||
20676 | int main(){nm_test_func;return 0;} | ||
20677 | EOF | ||
20678 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20679 | (eval $ac_compile) 2>&5 | ||
20680 | ac_status=$? | ||
20681 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20682 | (exit $ac_status); }; then | ||
20683 | # Now try to grab the symbols. | ||
20684 | ac_nlist=conftest.nm | ||
20685 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5 | ||
20686 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5 | ||
20687 | ac_status=$? | ||
20688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20689 | (exit $ac_status); } && test -s "$ac_nlist"; then | ||
20690 | # See whether the symbols have a leading underscore. | ||
20691 | if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then | ||
20692 | ac_cv_sys_symbol_underscore=yes | ||
20693 | else | ||
20694 | if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then | ||
20695 | : | ||
20696 | else | ||
20697 | echo "configure: cannot find nm_test_func in $ac_nlist" >&5 | ||
20698 | fi | ||
20699 | fi | ||
20700 | else | ||
20701 | echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5 | ||
20702 | fi | ||
20703 | else | ||
20704 | echo "configure: failed program was:" >&5 | ||
20705 | cat conftest.c >&5 | ||
20706 | fi | ||
20707 | rm -rf conftest* | ||
20708 | |||
20709 | fi | ||
20710 | echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5 | ||
20711 | echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6 | ||
20712 | |||
20713 | |||
20714 | if test x"$ac_cv_sys_symbol_underscore" = xyes; then | ||
20715 | if test x"$libltdl_cv_func_dlopen" = xyes || | ||
20716 | test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then | ||
20717 | echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5 | ||
20718 | echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6 | ||
20719 | if test "${libltdl_cv_need_uscore+set}" = set; then | ||
20720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20721 | else | ||
20722 | libltdl_cv_need_uscore=unknown | ||
20723 | save_LIBS="$LIBS" | ||
20724 | LIBS="$LIBS $LIBADD_DL" | ||
20725 | if test "$cross_compiling" = yes; then : | ||
20726 | libltdl_cv_need_uscore=cross | ||
20727 | else | ||
20728 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
20729 | lt_status=$lt_dlunknown | ||
20730 | cat > conftest.$ac_ext <<EOF | ||
20731 | #line 20731 "configure" | ||
20732 | #include "confdefs.h" | ||
20733 | |||
20734 | #if HAVE_DLFCN_H | ||
20735 | #include <dlfcn.h> | ||
20736 | #endif | ||
20737 | |||
20738 | #include <stdio.h> | ||
20739 | |||
20740 | #ifdef RTLD_GLOBAL | ||
20741 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
20742 | #else | ||
20743 | # ifdef DL_GLOBAL | ||
20744 | # define LT_DLGLOBAL DL_GLOBAL | ||
20745 | # else | ||
20746 | # define LT_DLGLOBAL 0 | ||
20747 | # endif | ||
20748 | #endif | ||
20749 | |||
20750 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
20751 | find out it does not work in some platform. */ | ||
20752 | #ifndef LT_DLLAZY_OR_NOW | ||
20753 | # ifdef RTLD_LAZY | ||
20754 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
20755 | # else | ||
20756 | # ifdef DL_LAZY | ||
20757 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
20758 | # else | ||
20759 | # ifdef RTLD_NOW | ||
20760 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
20761 | # else | ||
20762 | # ifdef DL_NOW | ||
20763 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
20764 | # else | ||
20765 | # define LT_DLLAZY_OR_NOW 0 | ||
20766 | # endif | ||
20767 | # endif | ||
20768 | # endif | ||
20769 | # endif | ||
20770 | #endif | ||
20771 | |||
20772 | #ifdef __cplusplus | ||
20773 | extern "C" void exit (int); | ||
20774 | #endif | ||
20775 | |||
20776 | void fnord() { int i=42;} | ||
20777 | int main () | ||
20778 | { | ||
20779 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
20780 | int status = $lt_dlunknown; | ||
20781 | |||
20782 | if (self) | ||
20783 | { | ||
20784 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
20785 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
20786 | /* dlclose (self); */ | ||
20787 | } | ||
20788 | |||
20789 | exit (status); | ||
20790 | } | ||
20791 | EOF | ||
20792 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
20793 | (eval $ac_link) 2>&5 | ||
20794 | ac_status=$? | ||
20795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20796 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
20797 | (./conftest; exit; ) 2>/dev/null | ||
20798 | lt_status=$? | ||
20799 | case x$lt_status in | ||
20800 | x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;; | ||
20801 | x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;; | ||
20802 | x$lt_unknown|x*) ;; | ||
20803 | esac | ||
20804 | else : | ||
20805 | # compilation failed | ||
20806 | |||
20807 | fi | ||
20808 | fi | ||
20809 | rm -fr conftest* | ||
20810 | |||
20811 | LIBS="$save_LIBS" | ||
20812 | |||
20813 | fi | ||
20814 | echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5 | ||
20815 | echo "${ECHO_T}$libltdl_cv_need_uscore" >&6 | ||
20816 | fi | ||
20817 | fi | ||
20818 | |||
20819 | if test x"$libltdl_cv_need_uscore" = xyes; then | ||
20820 | |||
20821 | cat >>confdefs.h <<\_ACEOF | ||
20822 | #define NEED_USCORE 1 | ||
20823 | _ACEOF | ||
20824 | |||
20825 | fi | ||
20826 | |||
20827 | |||
20828 | echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5 | ||
20829 | echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6 | ||
20830 | if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then | ||
20831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20832 | else | ||
20833 | # PORTME does your system automatically load deplibs for dlopen? | ||
20834 | # or its logical equivalent (e.g. shl_load for HP-UX < 11) | ||
20835 | # For now, we just catch OSes we know something about -- in the | ||
20836 | # future, we'll try test this programmatically. | ||
20837 | libltdl_cv_sys_dlopen_deplibs=unknown | ||
20838 | case "$host_os" in | ||
20839 | aix3*|aix4.1.*|aix4.2.*) | ||
20840 | # Unknown whether this is true for these versions of AIX, but | ||
20841 | # we want this `case' here to explicitly catch those versions. | ||
20842 | libltdl_cv_sys_dlopen_deplibs=unknown | ||
20843 | ;; | ||
20844 | aix[45]*) | ||
20845 | libltdl_cv_sys_dlopen_deplibs=yes | ||
20846 | ;; | ||
20847 | darwin*) | ||
20848 | # Assuming the user has installed a libdl from somewhere, this is true | ||
20849 | # If you are looking for one http://www.opendarwin.org/projects/dlcompat | ||
20850 | libltdl_cv_sys_dlopen_deplibs=yes | ||
20851 | ;; | ||
20852 | gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu) | ||
20853 | # GNU and its variants, using gnu ld.so (Glibc) | ||
20854 | libltdl_cv_sys_dlopen_deplibs=yes | ||
20855 | ;; | ||
20856 | hpux10*|hpux11*) | ||
20857 | libltdl_cv_sys_dlopen_deplibs=yes | ||
20858 | ;; | ||
20859 | irix[12345]*|irix6.[01]*) | ||
20860 | # Catch all versions of IRIX before 6.2, and indicate that we don't | ||
20861 | # know how it worked for any of those versions. | ||
20862 | libltdl_cv_sys_dlopen_deplibs=unknown | ||
20863 | ;; | ||
20864 | irix*) | ||
20865 | # The case above catches anything before 6.2, and it's known that | ||
20866 | # at 6.2 and later dlopen does load deplibs. | ||
20867 | libltdl_cv_sys_dlopen_deplibs=yes | ||
20868 | ;; | ||
20869 | netbsd* | netbsdelf*-gnu) | ||
20870 | libltdl_cv_sys_dlopen_deplibs=yes | ||
20871 | ;; | ||
20872 | openbsd*) | ||
20873 | libltdl_cv_sys_dlopen_deplibs=yes | ||
20874 | ;; | ||
20875 | osf[1234]*) | ||
20876 | # dlopen did load deplibs (at least at 4.x), but until the 5.x series, | ||
20877 | # it did *not* use an RPATH in a shared library to find objects the | ||
20878 | # library depends on, so we explictly say `no'. | ||
20879 | libltdl_cv_sys_dlopen_deplibs=no | ||
20880 | ;; | ||
20881 | osf5.0|osf5.0a|osf5.1) | ||
20882 | # dlopen *does* load deplibs and with the right loader patch applied | ||
20883 | # it even uses RPATH in a shared library to search for shared objects | ||
20884 | # that the library depends on, but there's no easy way to know if that | ||
20885 | # patch is installed. Since this is the case, all we can really | ||
20886 | # say is unknown -- it depends on the patch being installed. If | ||
20887 | # it is, this changes to `yes'. Without it, it would be `no'. | ||
20888 | libltdl_cv_sys_dlopen_deplibs=unknown | ||
20889 | ;; | ||
20890 | osf*) | ||
20891 | # the two cases above should catch all versions of osf <= 5.1. Read | ||
20892 | # the comments above for what we know about them. | ||
20893 | # At > 5.1, deplibs are loaded *and* any RPATH in a shared library | ||
20894 | # is used to find them so we can finally say `yes'. | ||
20895 | libltdl_cv_sys_dlopen_deplibs=yes | ||
20896 | ;; | ||
20897 | solaris*) | ||
20898 | libltdl_cv_sys_dlopen_deplibs=yes | ||
20899 | ;; | ||
20900 | esac | ||
20901 | |||
20902 | fi | ||
20903 | echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5 | ||
20904 | echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6 | ||
20905 | if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then | ||
20906 | |||
20907 | cat >>confdefs.h <<\_ACEOF | ||
20908 | #define LTDL_DLOPEN_DEPLIBS 1 | ||
20909 | _ACEOF | ||
20910 | |||
20911 | fi | ||
20912 | |||
20913 | |||
20914 | for ac_header in argz.h | ||
20915 | do | ||
20916 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
20917 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
20918 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
20919 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
20920 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
20921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20922 | fi | ||
20923 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
20924 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
20925 | else | ||
20926 | # Is the header compilable? | ||
20927 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
20928 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
20929 | cat >conftest.$ac_ext <<_ACEOF | ||
20930 | /* confdefs.h. */ | ||
20931 | _ACEOF | ||
20932 | cat confdefs.h >>conftest.$ac_ext | ||
20933 | cat >>conftest.$ac_ext <<_ACEOF | ||
20934 | /* end confdefs.h. */ | ||
20935 | $ac_includes_default | ||
20936 | #include <$ac_header> | ||
20937 | _ACEOF | ||
20938 | rm -f conftest.$ac_objext | ||
20939 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
20940 | (eval $ac_compile) 2>conftest.er1 | ||
20941 | ac_status=$? | ||
20942 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20943 | rm -f conftest.er1 | ||
20944 | cat conftest.err >&5 | ||
20945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20946 | (exit $ac_status); } && | ||
20947 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
20948 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20949 | (eval $ac_try) 2>&5 | ||
20950 | ac_status=$? | ||
20951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20952 | (exit $ac_status); }; } && | ||
20953 | { ac_try='test -s conftest.$ac_objext' | ||
20954 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
20955 | (eval $ac_try) 2>&5 | ||
20956 | ac_status=$? | ||
20957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20958 | (exit $ac_status); }; }; then | ||
20959 | ac_header_compiler=yes | ||
20960 | else | ||
20961 | echo "$as_me: failed program was:" >&5 | ||
20962 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20963 | |||
20964 | ac_header_compiler=no | ||
20965 | fi | ||
20966 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
20967 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
20968 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
20969 | |||
20970 | # Is the header present? | ||
20971 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
20972 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
20973 | cat >conftest.$ac_ext <<_ACEOF | ||
20974 | /* confdefs.h. */ | ||
20975 | _ACEOF | ||
20976 | cat confdefs.h >>conftest.$ac_ext | ||
20977 | cat >>conftest.$ac_ext <<_ACEOF | ||
20978 | /* end confdefs.h. */ | ||
20979 | #include <$ac_header> | ||
20980 | _ACEOF | ||
20981 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
20982 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
20983 | ac_status=$? | ||
20984 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20985 | rm -f conftest.er1 | ||
20986 | cat conftest.err >&5 | ||
20987 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20988 | (exit $ac_status); } >/dev/null; then | ||
20989 | if test -s conftest.err; then | ||
20990 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
20991 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
20992 | else | ||
20993 | ac_cpp_err= | ||
20994 | fi | ||
20995 | else | ||
20996 | ac_cpp_err=yes | ||
20997 | fi | ||
20998 | if test -z "$ac_cpp_err"; then | ||
20999 | ac_header_preproc=yes | ||
21000 | else | ||
21001 | echo "$as_me: failed program was:" >&5 | ||
21002 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21003 | |||
21004 | ac_header_preproc=no | ||
21005 | fi | ||
21006 | rm -f conftest.err conftest.$ac_ext | ||
21007 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
21008 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
21009 | |||
21010 | # So? What about this header? | ||
21011 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
21012 | yes:no: ) | ||
21013 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
21014 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
21015 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
21016 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
21017 | ac_header_preproc=yes | ||
21018 | ;; | ||
21019 | no:yes:* ) | ||
21020 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
21021 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
21022 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
21023 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
21024 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
21025 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
21026 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
21027 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
21028 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
21029 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
21030 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
21031 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
21032 | ( | ||
21033 | cat <<\_ASBOX | ||
21034 | ## ---------------------------------- ## | ||
21035 | ## Report this to bug-libtool@gnu.org ## | ||
21036 | ## ---------------------------------- ## | ||
21037 | _ASBOX | ||
21038 | ) | | ||
21039 | sed "s/^/$as_me: WARNING: /" >&2 | ||
21040 | ;; | ||
21041 | esac | ||
21042 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
21043 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
21044 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21045 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21046 | else | ||
21047 | eval "$as_ac_Header=\$ac_header_preproc" | ||
21048 | fi | ||
21049 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
21050 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
21051 | |||
21052 | fi | ||
21053 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
21054 | cat >>confdefs.h <<_ACEOF | ||
21055 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
21056 | _ACEOF | ||
21057 | |||
21058 | fi | ||
21059 | |||
21060 | done | ||
21061 | |||
21062 | |||
21063 | echo "$as_me:$LINENO: checking for error_t" >&5 | ||
21064 | echo $ECHO_N "checking for error_t... $ECHO_C" >&6 | ||
21065 | if test "${ac_cv_type_error_t+set}" = set; then | ||
21066 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21067 | else | ||
21068 | cat >conftest.$ac_ext <<_ACEOF | ||
21069 | /* confdefs.h. */ | ||
21070 | _ACEOF | ||
21071 | cat confdefs.h >>conftest.$ac_ext | ||
21072 | cat >>conftest.$ac_ext <<_ACEOF | ||
21073 | /* end confdefs.h. */ | ||
21074 | #if HAVE_ARGZ_H | ||
21075 | # include <argz.h> | ||
21076 | #endif | ||
21077 | |||
21078 | int | ||
21079 | main () | ||
21080 | { | ||
21081 | if ((error_t *) 0) | ||
21082 | return 0; | ||
21083 | if (sizeof (error_t)) | ||
21084 | return 0; | ||
21085 | ; | ||
21086 | return 0; | ||
21087 | } | ||
21088 | _ACEOF | ||
21089 | rm -f conftest.$ac_objext | ||
21090 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21091 | (eval $ac_compile) 2>conftest.er1 | ||
21092 | ac_status=$? | ||
21093 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21094 | rm -f conftest.er1 | ||
21095 | cat conftest.err >&5 | ||
21096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21097 | (exit $ac_status); } && | ||
21098 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
21099 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21100 | (eval $ac_try) 2>&5 | ||
21101 | ac_status=$? | ||
21102 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21103 | (exit $ac_status); }; } && | ||
21104 | { ac_try='test -s conftest.$ac_objext' | ||
21105 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21106 | (eval $ac_try) 2>&5 | ||
21107 | ac_status=$? | ||
21108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21109 | (exit $ac_status); }; }; then | ||
21110 | ac_cv_type_error_t=yes | ||
21111 | else | ||
21112 | echo "$as_me: failed program was:" >&5 | ||
21113 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21114 | |||
21115 | ac_cv_type_error_t=no | ||
21116 | fi | ||
21117 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21118 | fi | ||
21119 | echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5 | ||
21120 | echo "${ECHO_T}$ac_cv_type_error_t" >&6 | ||
21121 | if test $ac_cv_type_error_t = yes; then | ||
21122 | |||
21123 | cat >>confdefs.h <<_ACEOF | ||
21124 | #define HAVE_ERROR_T 1 | ||
21125 | _ACEOF | ||
21126 | |||
21127 | |||
21128 | else | ||
21129 | |||
21130 | cat >>confdefs.h <<\_ACEOF | ||
21131 | #define error_t int | ||
21132 | _ACEOF | ||
21133 | |||
21134 | fi | ||
21135 | |||
21136 | |||
21137 | |||
21138 | |||
21139 | |||
21140 | |||
21141 | |||
21142 | for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify | ||
21143 | do | ||
21144 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
21145 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
21146 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
21147 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
21148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21149 | else | ||
21150 | cat >conftest.$ac_ext <<_ACEOF | ||
21151 | /* confdefs.h. */ | ||
21152 | _ACEOF | ||
21153 | cat confdefs.h >>conftest.$ac_ext | ||
21154 | cat >>conftest.$ac_ext <<_ACEOF | ||
21155 | /* end confdefs.h. */ | ||
21156 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
21157 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
21158 | #define $ac_func innocuous_$ac_func | ||
21159 | |||
21160 | /* System header to define __stub macros and hopefully few prototypes, | ||
21161 | which can conflict with char $ac_func (); below. | ||
21162 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
21163 | <limits.h> exists even on freestanding compilers. */ | ||
21164 | |||
21165 | #ifdef __STDC__ | ||
21166 | # include <limits.h> | ||
21167 | #else | ||
21168 | # include <assert.h> | ||
21169 | #endif | ||
21170 | |||
21171 | #undef $ac_func | ||
21172 | |||
21173 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21174 | #ifdef __cplusplus | ||
21175 | extern "C" | ||
21176 | { | ||
21177 | #endif | ||
21178 | /* We use char because int might match the return type of a gcc2 | ||
21179 | builtin and then its argument prototype would still apply. */ | ||
21180 | char $ac_func (); | ||
21181 | /* The GNU C library defines this for functions which it implements | ||
21182 | to always fail with ENOSYS. Some functions are actually named | ||
21183 | something starting with __ and the normal name is an alias. */ | ||
21184 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
21185 | choke me | ||
21186 | #else | ||
21187 | char (*f) () = $ac_func; | ||
21188 | #endif | ||
21189 | #ifdef __cplusplus | ||
21190 | } | ||
21191 | #endif | ||
21192 | |||
21193 | int | ||
21194 | main () | ||
21195 | { | ||
21196 | return f != $ac_func; | ||
21197 | ; | ||
21198 | return 0; | ||
21199 | } | ||
21200 | _ACEOF | ||
21201 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21202 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21203 | (eval $ac_link) 2>conftest.er1 | ||
21204 | ac_status=$? | ||
21205 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21206 | rm -f conftest.er1 | ||
21207 | cat conftest.err >&5 | ||
21208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21209 | (exit $ac_status); } && | ||
21210 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
21211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21212 | (eval $ac_try) 2>&5 | ||
21213 | ac_status=$? | ||
21214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21215 | (exit $ac_status); }; } && | ||
21216 | { ac_try='test -s conftest$ac_exeext' | ||
21217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21218 | (eval $ac_try) 2>&5 | ||
21219 | ac_status=$? | ||
21220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21221 | (exit $ac_status); }; }; then | ||
21222 | eval "$as_ac_var=yes" | ||
21223 | else | ||
21224 | echo "$as_me: failed program was:" >&5 | ||
21225 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21226 | |||
21227 | eval "$as_ac_var=no" | ||
21228 | fi | ||
21229 | rm -f conftest.err conftest.$ac_objext \ | ||
21230 | conftest$ac_exeext conftest.$ac_ext | ||
21231 | fi | ||
21232 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
21233 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
21234 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
21235 | cat >>confdefs.h <<_ACEOF | ||
21236 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
21237 | _ACEOF | ||
21238 | |||
21239 | fi | ||
21240 | done | ||
21241 | |||
21242 | |||
21243 | |||
21244 | |||
21245 | |||
21246 | |||
21247 | |||
21248 | |||
21249 | |||
21250 | |||
21251 | |||
21252 | |||
21253 | |||
21254 | |||
21255 | |||
21256 | |||
21257 | |||
21258 | |||
21259 | |||
21260 | |||
21261 | |||
21262 | |||
21263 | |||
21264 | |||
21265 | |||
21266 | |||
21267 | |||
21268 | |||
21269 | for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \ | ||
21270 | stdio.h unistd.h | ||
21271 | do | ||
21272 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
21273 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21274 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
21275 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
21276 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21278 | fi | ||
21279 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
21280 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
21281 | else | ||
21282 | # Is the header compilable? | ||
21283 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
21284 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
21285 | cat >conftest.$ac_ext <<_ACEOF | ||
21286 | /* confdefs.h. */ | ||
21287 | _ACEOF | ||
21288 | cat confdefs.h >>conftest.$ac_ext | ||
21289 | cat >>conftest.$ac_ext <<_ACEOF | ||
21290 | /* end confdefs.h. */ | ||
21291 | $ac_includes_default | ||
21292 | #include <$ac_header> | ||
21293 | _ACEOF | ||
21294 | rm -f conftest.$ac_objext | ||
21295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21296 | (eval $ac_compile) 2>conftest.er1 | ||
21297 | ac_status=$? | ||
21298 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21299 | rm -f conftest.er1 | ||
21300 | cat conftest.err >&5 | ||
21301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21302 | (exit $ac_status); } && | ||
21303 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
21304 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21305 | (eval $ac_try) 2>&5 | ||
21306 | ac_status=$? | ||
21307 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21308 | (exit $ac_status); }; } && | ||
21309 | { ac_try='test -s conftest.$ac_objext' | ||
21310 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21311 | (eval $ac_try) 2>&5 | ||
21312 | ac_status=$? | ||
21313 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21314 | (exit $ac_status); }; }; then | ||
21315 | ac_header_compiler=yes | ||
21316 | else | ||
21317 | echo "$as_me: failed program was:" >&5 | ||
21318 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21319 | |||
21320 | ac_header_compiler=no | ||
21321 | fi | ||
21322 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21323 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
21324 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
21325 | |||
21326 | # Is the header present? | ||
21327 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
21328 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
21329 | cat >conftest.$ac_ext <<_ACEOF | ||
21330 | /* confdefs.h. */ | ||
21331 | _ACEOF | ||
21332 | cat confdefs.h >>conftest.$ac_ext | ||
21333 | cat >>conftest.$ac_ext <<_ACEOF | ||
21334 | /* end confdefs.h. */ | ||
21335 | #include <$ac_header> | ||
21336 | _ACEOF | ||
21337 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
21338 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
21339 | ac_status=$? | ||
21340 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21341 | rm -f conftest.er1 | ||
21342 | cat conftest.err >&5 | ||
21343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21344 | (exit $ac_status); } >/dev/null; then | ||
21345 | if test -s conftest.err; then | ||
21346 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
21347 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
21348 | else | ||
21349 | ac_cpp_err= | ||
21350 | fi | ||
21351 | else | ||
21352 | ac_cpp_err=yes | ||
21353 | fi | ||
21354 | if test -z "$ac_cpp_err"; then | ||
21355 | ac_header_preproc=yes | ||
21356 | else | ||
21357 | echo "$as_me: failed program was:" >&5 | ||
21358 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21359 | |||
21360 | ac_header_preproc=no | ||
21361 | fi | ||
21362 | rm -f conftest.err conftest.$ac_ext | ||
21363 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
21364 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
21365 | |||
21366 | # So? What about this header? | ||
21367 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
21368 | yes:no: ) | ||
21369 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
21370 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
21371 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
21372 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
21373 | ac_header_preproc=yes | ||
21374 | ;; | ||
21375 | no:yes:* ) | ||
21376 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
21377 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
21378 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
21379 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
21380 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
21381 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
21382 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
21383 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
21384 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
21385 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
21386 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
21387 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
21388 | ( | ||
21389 | cat <<\_ASBOX | ||
21390 | ## ---------------------------------- ## | ||
21391 | ## Report this to bug-libtool@gnu.org ## | ||
21392 | ## ---------------------------------- ## | ||
21393 | _ASBOX | ||
21394 | ) | | ||
21395 | sed "s/^/$as_me: WARNING: /" >&2 | ||
21396 | ;; | ||
21397 | esac | ||
21398 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
21399 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
21400 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21401 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21402 | else | ||
21403 | eval "$as_ac_Header=\$ac_header_preproc" | ||
21404 | fi | ||
21405 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
21406 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
21407 | |||
21408 | fi | ||
21409 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
21410 | cat >>confdefs.h <<_ACEOF | ||
21411 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
21412 | _ACEOF | ||
21413 | |||
21414 | fi | ||
21415 | |||
21416 | done | ||
21417 | |||
21418 | |||
21419 | |||
21420 | |||
21421 | |||
21422 | for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h | ||
21423 | do | ||
21424 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
21425 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21426 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
21427 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
21428 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21430 | fi | ||
21431 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
21432 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
21433 | else | ||
21434 | # Is the header compilable? | ||
21435 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
21436 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
21437 | cat >conftest.$ac_ext <<_ACEOF | ||
21438 | /* confdefs.h. */ | ||
21439 | _ACEOF | ||
21440 | cat confdefs.h >>conftest.$ac_ext | ||
21441 | cat >>conftest.$ac_ext <<_ACEOF | ||
21442 | /* end confdefs.h. */ | ||
21443 | $ac_includes_default | ||
21444 | #include <$ac_header> | ||
21445 | _ACEOF | ||
21446 | rm -f conftest.$ac_objext | ||
21447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21448 | (eval $ac_compile) 2>conftest.er1 | ||
21449 | ac_status=$? | ||
21450 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21451 | rm -f conftest.er1 | ||
21452 | cat conftest.err >&5 | ||
21453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21454 | (exit $ac_status); } && | ||
21455 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
21456 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21457 | (eval $ac_try) 2>&5 | ||
21458 | ac_status=$? | ||
21459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21460 | (exit $ac_status); }; } && | ||
21461 | { ac_try='test -s conftest.$ac_objext' | ||
21462 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21463 | (eval $ac_try) 2>&5 | ||
21464 | ac_status=$? | ||
21465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21466 | (exit $ac_status); }; }; then | ||
21467 | ac_header_compiler=yes | ||
21468 | else | ||
21469 | echo "$as_me: failed program was:" >&5 | ||
21470 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21471 | |||
21472 | ac_header_compiler=no | ||
21473 | fi | ||
21474 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21475 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
21476 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
21477 | |||
21478 | # Is the header present? | ||
21479 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
21480 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
21481 | cat >conftest.$ac_ext <<_ACEOF | ||
21482 | /* confdefs.h. */ | ||
21483 | _ACEOF | ||
21484 | cat confdefs.h >>conftest.$ac_ext | ||
21485 | cat >>conftest.$ac_ext <<_ACEOF | ||
21486 | /* end confdefs.h. */ | ||
21487 | #include <$ac_header> | ||
21488 | _ACEOF | ||
21489 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
21490 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
21491 | ac_status=$? | ||
21492 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21493 | rm -f conftest.er1 | ||
21494 | cat conftest.err >&5 | ||
21495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21496 | (exit $ac_status); } >/dev/null; then | ||
21497 | if test -s conftest.err; then | ||
21498 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
21499 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
21500 | else | ||
21501 | ac_cpp_err= | ||
21502 | fi | ||
21503 | else | ||
21504 | ac_cpp_err=yes | ||
21505 | fi | ||
21506 | if test -z "$ac_cpp_err"; then | ||
21507 | ac_header_preproc=yes | ||
21508 | else | ||
21509 | echo "$as_me: failed program was:" >&5 | ||
21510 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21511 | |||
21512 | ac_header_preproc=no | ||
21513 | fi | ||
21514 | rm -f conftest.err conftest.$ac_ext | ||
21515 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
21516 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
21517 | |||
21518 | # So? What about this header? | ||
21519 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
21520 | yes:no: ) | ||
21521 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
21522 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
21523 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
21524 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
21525 | ac_header_preproc=yes | ||
21526 | ;; | ||
21527 | no:yes:* ) | ||
21528 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
21529 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
21530 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
21531 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
21532 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
21533 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
21534 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
21535 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
21536 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
21537 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
21538 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
21539 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
21540 | ( | ||
21541 | cat <<\_ASBOX | ||
21542 | ## ---------------------------------- ## | ||
21543 | ## Report this to bug-libtool@gnu.org ## | ||
21544 | ## ---------------------------------- ## | ||
21545 | _ASBOX | ||
21546 | ) | | ||
21547 | sed "s/^/$as_me: WARNING: /" >&2 | ||
21548 | ;; | ||
21549 | esac | ||
21550 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
21551 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
21552 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21553 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21554 | else | ||
21555 | eval "$as_ac_Header=\$ac_header_preproc" | ||
21556 | fi | ||
21557 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
21558 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
21559 | |||
21560 | fi | ||
21561 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
21562 | cat >>confdefs.h <<_ACEOF | ||
21563 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
21564 | _ACEOF | ||
21565 | |||
21566 | fi | ||
21567 | |||
21568 | done | ||
21569 | |||
21570 | |||
21571 | |||
21572 | for ac_header in string.h strings.h | ||
21573 | do | ||
21574 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
21575 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21576 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
21577 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
21578 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21580 | fi | ||
21581 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
21582 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
21583 | else | ||
21584 | # Is the header compilable? | ||
21585 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
21586 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | ||
21587 | cat >conftest.$ac_ext <<_ACEOF | ||
21588 | /* confdefs.h. */ | ||
21589 | _ACEOF | ||
21590 | cat confdefs.h >>conftest.$ac_ext | ||
21591 | cat >>conftest.$ac_ext <<_ACEOF | ||
21592 | /* end confdefs.h. */ | ||
21593 | $ac_includes_default | ||
21594 | #include <$ac_header> | ||
21595 | _ACEOF | ||
21596 | rm -f conftest.$ac_objext | ||
21597 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
21598 | (eval $ac_compile) 2>conftest.er1 | ||
21599 | ac_status=$? | ||
21600 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21601 | rm -f conftest.er1 | ||
21602 | cat conftest.err >&5 | ||
21603 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21604 | (exit $ac_status); } && | ||
21605 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
21606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21607 | (eval $ac_try) 2>&5 | ||
21608 | ac_status=$? | ||
21609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21610 | (exit $ac_status); }; } && | ||
21611 | { ac_try='test -s conftest.$ac_objext' | ||
21612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21613 | (eval $ac_try) 2>&5 | ||
21614 | ac_status=$? | ||
21615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21616 | (exit $ac_status); }; }; then | ||
21617 | ac_header_compiler=yes | ||
21618 | else | ||
21619 | echo "$as_me: failed program was:" >&5 | ||
21620 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21621 | |||
21622 | ac_header_compiler=no | ||
21623 | fi | ||
21624 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21625 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
21626 | echo "${ECHO_T}$ac_header_compiler" >&6 | ||
21627 | |||
21628 | # Is the header present? | ||
21629 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
21630 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | ||
21631 | cat >conftest.$ac_ext <<_ACEOF | ||
21632 | /* confdefs.h. */ | ||
21633 | _ACEOF | ||
21634 | cat confdefs.h >>conftest.$ac_ext | ||
21635 | cat >>conftest.$ac_ext <<_ACEOF | ||
21636 | /* end confdefs.h. */ | ||
21637 | #include <$ac_header> | ||
21638 | _ACEOF | ||
21639 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | ||
21640 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | ||
21641 | ac_status=$? | ||
21642 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21643 | rm -f conftest.er1 | ||
21644 | cat conftest.err >&5 | ||
21645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21646 | (exit $ac_status); } >/dev/null; then | ||
21647 | if test -s conftest.err; then | ||
21648 | ac_cpp_err=$ac_c_preproc_warn_flag | ||
21649 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | ||
21650 | else | ||
21651 | ac_cpp_err= | ||
21652 | fi | ||
21653 | else | ||
21654 | ac_cpp_err=yes | ||
21655 | fi | ||
21656 | if test -z "$ac_cpp_err"; then | ||
21657 | ac_header_preproc=yes | ||
21658 | else | ||
21659 | echo "$as_me: failed program was:" >&5 | ||
21660 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21661 | |||
21662 | ac_header_preproc=no | ||
21663 | fi | ||
21664 | rm -f conftest.err conftest.$ac_ext | ||
21665 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
21666 | echo "${ECHO_T}$ac_header_preproc" >&6 | ||
21667 | |||
21668 | # So? What about this header? | ||
21669 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
21670 | yes:no: ) | ||
21671 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
21672 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
21673 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
21674 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
21675 | ac_header_preproc=yes | ||
21676 | ;; | ||
21677 | no:yes:* ) | ||
21678 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
21679 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
21680 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
21681 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
21682 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
21683 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
21684 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
21685 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
21686 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
21687 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
21688 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
21689 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
21690 | ( | ||
21691 | cat <<\_ASBOX | ||
21692 | ## ---------------------------------- ## | ||
21693 | ## Report this to bug-libtool@gnu.org ## | ||
21694 | ## ---------------------------------- ## | ||
21695 | _ASBOX | ||
21696 | ) | | ||
21697 | sed "s/^/$as_me: WARNING: /" >&2 | ||
21698 | ;; | ||
21699 | esac | ||
21700 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
21701 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | ||
21702 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | ||
21703 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21704 | else | ||
21705 | eval "$as_ac_Header=\$ac_header_preproc" | ||
21706 | fi | ||
21707 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | ||
21708 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | ||
21709 | |||
21710 | fi | ||
21711 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
21712 | cat >>confdefs.h <<_ACEOF | ||
21713 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
21714 | _ACEOF | ||
21715 | break | ||
21716 | fi | ||
21717 | |||
21718 | done | ||
21719 | |||
21720 | |||
21721 | |||
21722 | |||
21723 | for ac_func in strchr index | ||
21724 | do | ||
21725 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
21726 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
21727 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
21728 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
21729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21730 | else | ||
21731 | cat >conftest.$ac_ext <<_ACEOF | ||
21732 | /* confdefs.h. */ | ||
21733 | _ACEOF | ||
21734 | cat confdefs.h >>conftest.$ac_ext | ||
21735 | cat >>conftest.$ac_ext <<_ACEOF | ||
21736 | /* end confdefs.h. */ | ||
21737 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
21738 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
21739 | #define $ac_func innocuous_$ac_func | ||
21740 | |||
21741 | /* System header to define __stub macros and hopefully few prototypes, | ||
21742 | which can conflict with char $ac_func (); below. | ||
21743 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
21744 | <limits.h> exists even on freestanding compilers. */ | ||
21745 | |||
21746 | #ifdef __STDC__ | ||
21747 | # include <limits.h> | ||
21748 | #else | ||
21749 | # include <assert.h> | ||
21750 | #endif | ||
21751 | |||
21752 | #undef $ac_func | ||
21753 | |||
21754 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21755 | #ifdef __cplusplus | ||
21756 | extern "C" | ||
21757 | { | ||
21758 | #endif | ||
21759 | /* We use char because int might match the return type of a gcc2 | ||
21760 | builtin and then its argument prototype would still apply. */ | ||
21761 | char $ac_func (); | ||
21762 | /* The GNU C library defines this for functions which it implements | ||
21763 | to always fail with ENOSYS. Some functions are actually named | ||
21764 | something starting with __ and the normal name is an alias. */ | ||
21765 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
21766 | choke me | ||
21767 | #else | ||
21768 | char (*f) () = $ac_func; | ||
21769 | #endif | ||
21770 | #ifdef __cplusplus | ||
21771 | } | ||
21772 | #endif | ||
21773 | |||
21774 | int | ||
21775 | main () | ||
21776 | { | ||
21777 | return f != $ac_func; | ||
21778 | ; | ||
21779 | return 0; | ||
21780 | } | ||
21781 | _ACEOF | ||
21782 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21783 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21784 | (eval $ac_link) 2>conftest.er1 | ||
21785 | ac_status=$? | ||
21786 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21787 | rm -f conftest.er1 | ||
21788 | cat conftest.err >&5 | ||
21789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21790 | (exit $ac_status); } && | ||
21791 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
21792 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21793 | (eval $ac_try) 2>&5 | ||
21794 | ac_status=$? | ||
21795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21796 | (exit $ac_status); }; } && | ||
21797 | { ac_try='test -s conftest$ac_exeext' | ||
21798 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21799 | (eval $ac_try) 2>&5 | ||
21800 | ac_status=$? | ||
21801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21802 | (exit $ac_status); }; }; then | ||
21803 | eval "$as_ac_var=yes" | ||
21804 | else | ||
21805 | echo "$as_me: failed program was:" >&5 | ||
21806 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21807 | |||
21808 | eval "$as_ac_var=no" | ||
21809 | fi | ||
21810 | rm -f conftest.err conftest.$ac_objext \ | ||
21811 | conftest$ac_exeext conftest.$ac_ext | ||
21812 | fi | ||
21813 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
21814 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
21815 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
21816 | cat >>confdefs.h <<_ACEOF | ||
21817 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
21818 | _ACEOF | ||
21819 | break | ||
21820 | fi | ||
21821 | done | ||
21822 | |||
21823 | |||
21824 | |||
21825 | for ac_func in strrchr rindex | ||
21826 | do | ||
21827 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
21828 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
21829 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
21830 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
21831 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21832 | else | ||
21833 | cat >conftest.$ac_ext <<_ACEOF | ||
21834 | /* confdefs.h. */ | ||
21835 | _ACEOF | ||
21836 | cat confdefs.h >>conftest.$ac_ext | ||
21837 | cat >>conftest.$ac_ext <<_ACEOF | ||
21838 | /* end confdefs.h. */ | ||
21839 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
21840 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
21841 | #define $ac_func innocuous_$ac_func | ||
21842 | |||
21843 | /* System header to define __stub macros and hopefully few prototypes, | ||
21844 | which can conflict with char $ac_func (); below. | ||
21845 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
21846 | <limits.h> exists even on freestanding compilers. */ | ||
21847 | |||
21848 | #ifdef __STDC__ | ||
21849 | # include <limits.h> | ||
21850 | #else | ||
21851 | # include <assert.h> | ||
21852 | #endif | ||
21853 | |||
21854 | #undef $ac_func | ||
21855 | |||
21856 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21857 | #ifdef __cplusplus | ||
21858 | extern "C" | ||
21859 | { | ||
21860 | #endif | ||
21861 | /* We use char because int might match the return type of a gcc2 | ||
21862 | builtin and then its argument prototype would still apply. */ | ||
21863 | char $ac_func (); | ||
21864 | /* The GNU C library defines this for functions which it implements | ||
21865 | to always fail with ENOSYS. Some functions are actually named | ||
21866 | something starting with __ and the normal name is an alias. */ | ||
21867 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
21868 | choke me | ||
21869 | #else | ||
21870 | char (*f) () = $ac_func; | ||
21871 | #endif | ||
21872 | #ifdef __cplusplus | ||
21873 | } | ||
21874 | #endif | ||
21875 | |||
21876 | int | ||
21877 | main () | ||
21878 | { | ||
21879 | return f != $ac_func; | ||
21880 | ; | ||
21881 | return 0; | ||
21882 | } | ||
21883 | _ACEOF | ||
21884 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21885 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21886 | (eval $ac_link) 2>conftest.er1 | ||
21887 | ac_status=$? | ||
21888 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21889 | rm -f conftest.er1 | ||
21890 | cat conftest.err >&5 | ||
21891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21892 | (exit $ac_status); } && | ||
21893 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
21894 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21895 | (eval $ac_try) 2>&5 | ||
21896 | ac_status=$? | ||
21897 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21898 | (exit $ac_status); }; } && | ||
21899 | { ac_try='test -s conftest$ac_exeext' | ||
21900 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21901 | (eval $ac_try) 2>&5 | ||
21902 | ac_status=$? | ||
21903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21904 | (exit $ac_status); }; }; then | ||
21905 | eval "$as_ac_var=yes" | ||
21906 | else | ||
21907 | echo "$as_me: failed program was:" >&5 | ||
21908 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21909 | |||
21910 | eval "$as_ac_var=no" | ||
21911 | fi | ||
21912 | rm -f conftest.err conftest.$ac_objext \ | ||
21913 | conftest$ac_exeext conftest.$ac_ext | ||
21914 | fi | ||
21915 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
21916 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
21917 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
21918 | cat >>confdefs.h <<_ACEOF | ||
21919 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
21920 | _ACEOF | ||
21921 | break | ||
21922 | fi | ||
21923 | done | ||
21924 | |||
21925 | |||
21926 | |||
21927 | for ac_func in memcpy bcopy | ||
21928 | do | ||
21929 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
21930 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
21931 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
21932 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
21933 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21934 | else | ||
21935 | cat >conftest.$ac_ext <<_ACEOF | ||
21936 | /* confdefs.h. */ | ||
21937 | _ACEOF | ||
21938 | cat confdefs.h >>conftest.$ac_ext | ||
21939 | cat >>conftest.$ac_ext <<_ACEOF | ||
21940 | /* end confdefs.h. */ | ||
21941 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
21942 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
21943 | #define $ac_func innocuous_$ac_func | ||
21944 | |||
21945 | /* System header to define __stub macros and hopefully few prototypes, | ||
21946 | which can conflict with char $ac_func (); below. | ||
21947 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
21948 | <limits.h> exists even on freestanding compilers. */ | ||
21949 | |||
21950 | #ifdef __STDC__ | ||
21951 | # include <limits.h> | ||
21952 | #else | ||
21953 | # include <assert.h> | ||
21954 | #endif | ||
21955 | |||
21956 | #undef $ac_func | ||
21957 | |||
21958 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
21959 | #ifdef __cplusplus | ||
21960 | extern "C" | ||
21961 | { | ||
21962 | #endif | ||
21963 | /* We use char because int might match the return type of a gcc2 | ||
21964 | builtin and then its argument prototype would still apply. */ | ||
21965 | char $ac_func (); | ||
21966 | /* The GNU C library defines this for functions which it implements | ||
21967 | to always fail with ENOSYS. Some functions are actually named | ||
21968 | something starting with __ and the normal name is an alias. */ | ||
21969 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
21970 | choke me | ||
21971 | #else | ||
21972 | char (*f) () = $ac_func; | ||
21973 | #endif | ||
21974 | #ifdef __cplusplus | ||
21975 | } | ||
21976 | #endif | ||
21977 | |||
21978 | int | ||
21979 | main () | ||
21980 | { | ||
21981 | return f != $ac_func; | ||
21982 | ; | ||
21983 | return 0; | ||
21984 | } | ||
21985 | _ACEOF | ||
21986 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21987 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
21988 | (eval $ac_link) 2>conftest.er1 | ||
21989 | ac_status=$? | ||
21990 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21991 | rm -f conftest.er1 | ||
21992 | cat conftest.err >&5 | ||
21993 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21994 | (exit $ac_status); } && | ||
21995 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
21996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
21997 | (eval $ac_try) 2>&5 | ||
21998 | ac_status=$? | ||
21999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22000 | (exit $ac_status); }; } && | ||
22001 | { ac_try='test -s conftest$ac_exeext' | ||
22002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22003 | (eval $ac_try) 2>&5 | ||
22004 | ac_status=$? | ||
22005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22006 | (exit $ac_status); }; }; then | ||
22007 | eval "$as_ac_var=yes" | ||
22008 | else | ||
22009 | echo "$as_me: failed program was:" >&5 | ||
22010 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22011 | |||
22012 | eval "$as_ac_var=no" | ||
22013 | fi | ||
22014 | rm -f conftest.err conftest.$ac_objext \ | ||
22015 | conftest$ac_exeext conftest.$ac_ext | ||
22016 | fi | ||
22017 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
22018 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
22019 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22020 | cat >>confdefs.h <<_ACEOF | ||
22021 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22022 | _ACEOF | ||
22023 | break | ||
22024 | fi | ||
22025 | done | ||
22026 | |||
22027 | |||
22028 | |||
22029 | for ac_func in memmove strcmp | ||
22030 | do | ||
22031 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22032 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22033 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
22034 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
22035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22036 | else | ||
22037 | cat >conftest.$ac_ext <<_ACEOF | ||
22038 | /* confdefs.h. */ | ||
22039 | _ACEOF | ||
22040 | cat confdefs.h >>conftest.$ac_ext | ||
22041 | cat >>conftest.$ac_ext <<_ACEOF | ||
22042 | /* end confdefs.h. */ | ||
22043 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22044 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22045 | #define $ac_func innocuous_$ac_func | ||
22046 | |||
22047 | /* System header to define __stub macros and hopefully few prototypes, | ||
22048 | which can conflict with char $ac_func (); below. | ||
22049 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22050 | <limits.h> exists even on freestanding compilers. */ | ||
22051 | |||
22052 | #ifdef __STDC__ | ||
22053 | # include <limits.h> | ||
22054 | #else | ||
22055 | # include <assert.h> | ||
22056 | #endif | ||
22057 | |||
22058 | #undef $ac_func | ||
22059 | |||
22060 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22061 | #ifdef __cplusplus | ||
22062 | extern "C" | ||
22063 | { | ||
22064 | #endif | ||
22065 | /* We use char because int might match the return type of a gcc2 | ||
22066 | builtin and then its argument prototype would still apply. */ | ||
22067 | char $ac_func (); | ||
22068 | /* The GNU C library defines this for functions which it implements | ||
22069 | to always fail with ENOSYS. Some functions are actually named | ||
22070 | something starting with __ and the normal name is an alias. */ | ||
22071 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
22072 | choke me | ||
22073 | #else | ||
22074 | char (*f) () = $ac_func; | ||
22075 | #endif | ||
22076 | #ifdef __cplusplus | ||
22077 | } | ||
22078 | #endif | ||
22079 | |||
22080 | int | ||
22081 | main () | ||
22082 | { | ||
22083 | return f != $ac_func; | ||
22084 | ; | ||
22085 | return 0; | ||
22086 | } | ||
22087 | _ACEOF | ||
22088 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22089 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22090 | (eval $ac_link) 2>conftest.er1 | ||
22091 | ac_status=$? | ||
22092 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22093 | rm -f conftest.er1 | ||
22094 | cat conftest.err >&5 | ||
22095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22096 | (exit $ac_status); } && | ||
22097 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
22098 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22099 | (eval $ac_try) 2>&5 | ||
22100 | ac_status=$? | ||
22101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22102 | (exit $ac_status); }; } && | ||
22103 | { ac_try='test -s conftest$ac_exeext' | ||
22104 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22105 | (eval $ac_try) 2>&5 | ||
22106 | ac_status=$? | ||
22107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22108 | (exit $ac_status); }; }; then | ||
22109 | eval "$as_ac_var=yes" | ||
22110 | else | ||
22111 | echo "$as_me: failed program was:" >&5 | ||
22112 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22113 | |||
22114 | eval "$as_ac_var=no" | ||
22115 | fi | ||
22116 | rm -f conftest.err conftest.$ac_objext \ | ||
22117 | conftest$ac_exeext conftest.$ac_ext | ||
22118 | fi | ||
22119 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
22120 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
22121 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22122 | cat >>confdefs.h <<_ACEOF | ||
22123 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22124 | _ACEOF | ||
22125 | |||
22126 | fi | ||
22127 | done | ||
22128 | |||
22129 | |||
22130 | |||
22131 | |||
22132 | for ac_func in closedir opendir readdir | ||
22133 | do | ||
22134 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | ||
22135 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | ||
22136 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | ||
22137 | if eval "test \"\${$as_ac_var+set}\" = set"; then | ||
22138 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22139 | else | ||
22140 | cat >conftest.$ac_ext <<_ACEOF | ||
22141 | /* confdefs.h. */ | ||
22142 | _ACEOF | ||
22143 | cat confdefs.h >>conftest.$ac_ext | ||
22144 | cat >>conftest.$ac_ext <<_ACEOF | ||
22145 | /* end confdefs.h. */ | ||
22146 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | ||
22147 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
22148 | #define $ac_func innocuous_$ac_func | ||
22149 | |||
22150 | /* System header to define __stub macros and hopefully few prototypes, | ||
22151 | which can conflict with char $ac_func (); below. | ||
22152 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
22153 | <limits.h> exists even on freestanding compilers. */ | ||
22154 | |||
22155 | #ifdef __STDC__ | ||
22156 | # include <limits.h> | ||
22157 | #else | ||
22158 | # include <assert.h> | ||
22159 | #endif | ||
22160 | |||
22161 | #undef $ac_func | ||
22162 | |||
22163 | /* Override any gcc2 internal prototype to avoid an error. */ | ||
22164 | #ifdef __cplusplus | ||
22165 | extern "C" | ||
22166 | { | ||
22167 | #endif | ||
22168 | /* We use char because int might match the return type of a gcc2 | ||
22169 | builtin and then its argument prototype would still apply. */ | ||
22170 | char $ac_func (); | ||
22171 | /* The GNU C library defines this for functions which it implements | ||
22172 | to always fail with ENOSYS. Some functions are actually named | ||
22173 | something starting with __ and the normal name is an alias. */ | ||
22174 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | ||
22175 | choke me | ||
22176 | #else | ||
22177 | char (*f) () = $ac_func; | ||
22178 | #endif | ||
22179 | #ifdef __cplusplus | ||
22180 | } | ||
22181 | #endif | ||
22182 | |||
22183 | int | ||
22184 | main () | ||
22185 | { | ||
22186 | return f != $ac_func; | ||
22187 | ; | ||
22188 | return 0; | ||
22189 | } | ||
22190 | _ACEOF | ||
22191 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22192 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
22193 | (eval $ac_link) 2>conftest.er1 | ||
22194 | ac_status=$? | ||
22195 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22196 | rm -f conftest.er1 | ||
22197 | cat conftest.err >&5 | ||
22198 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22199 | (exit $ac_status); } && | ||
22200 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' | ||
22201 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22202 | (eval $ac_try) 2>&5 | ||
22203 | ac_status=$? | ||
22204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22205 | (exit $ac_status); }; } && | ||
22206 | { ac_try='test -s conftest$ac_exeext' | ||
22207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | ||
22208 | (eval $ac_try) 2>&5 | ||
22209 | ac_status=$? | ||
22210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22211 | (exit $ac_status); }; }; then | ||
22212 | eval "$as_ac_var=yes" | ||
22213 | else | ||
22214 | echo "$as_me: failed program was:" >&5 | ||
22215 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22216 | |||
22217 | eval "$as_ac_var=no" | ||
22218 | fi | ||
22219 | rm -f conftest.err conftest.$ac_objext \ | ||
22220 | conftest$ac_exeext conftest.$ac_ext | ||
22221 | fi | ||
22222 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | ||
22223 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | ||
22224 | if test `eval echo '${'$as_ac_var'}'` = yes; then | ||
22225 | cat >>confdefs.h <<_ACEOF | ||
22226 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | ||
22227 | _ACEOF | ||
22228 | |||
22229 | fi | ||
22230 | done | ||
22231 | |||
22232 | |||
22233 | |||
22234 | |||
22235 | ## -------- ## | ||
22236 | ## Outputs. ## | ||
22237 | ## -------- ## | ||
22238 | ac_config_files="$ac_config_files Makefile" | ||
22239 | |||
22240 | cat >confcache <<\_ACEOF | ||
22241 | # This file is a shell script that caches the results of configure | ||
22242 | # tests run on this system so they can be shared between configure | ||
22243 | # scripts and configure runs, see configure's option --config-cache. | ||
22244 | # It is not useful on other systems. If it contains results you don't | ||
22245 | # want to keep, you may remove or edit it. | ||
22246 | # | ||
22247 | # config.status only pays attention to the cache file if you give it | ||
22248 | # the --recheck option to rerun configure. | ||
22249 | # | ||
22250 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
22251 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
22252 | # following values. | ||
22253 | |||
22254 | _ACEOF | ||
22255 | |||
22256 | # The following way of writing the cache mishandles newlines in values, | ||
22257 | # but we know of no workaround that is simple, portable, and efficient. | ||
22258 | # So, don't put newlines in cache variables' values. | ||
22259 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
22260 | # and sets the high bit in the cache file unless we assign to the vars. | ||
22261 | { | ||
22262 | (set) 2>&1 | | ||
22263 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | ||
22264 | *ac_space=\ *) | ||
22265 | # `set' does not quote correctly, so add quotes (double-quote | ||
22266 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
22267 | sed -n \ | ||
22268 | "s/'/'\\\\''/g; | ||
22269 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
22270 | ;; | ||
22271 | *) | ||
22272 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
22273 | sed -n \ | ||
22274 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | ||
22275 | ;; | ||
22276 | esac; | ||
22277 | } | | ||
22278 | sed ' | ||
22279 | t clear | ||
22280 | : clear | ||
22281 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
22282 | t end | ||
22283 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
22284 | : end' >>confcache | ||
22285 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | ||
22286 | if test -w $cache_file; then | ||
22287 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | ||
22288 | cat confcache >$cache_file | ||
22289 | else | ||
22290 | echo "not updating unwritable cache $cache_file" | ||
22291 | fi | ||
22292 | fi | ||
22293 | rm -f confcache | ||
22294 | |||
22295 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
22296 | # Let make expand exec_prefix. | ||
22297 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
22298 | |||
22299 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
22300 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
22301 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
22302 | # (actually we leave an empty line to preserve line numbers). | ||
22303 | if test "x$srcdir" = x.; then | ||
22304 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
22305 | s/:*\$(srcdir):*/:/; | ||
22306 | s/:*\${srcdir}:*/:/; | ||
22307 | s/:*@srcdir@:*/:/; | ||
22308 | s/^\([^=]*=[ ]*\):*/\1/; | ||
22309 | s/:*$//; | ||
22310 | s/^[^=]*=[ ]*$//; | ||
22311 | }' | ||
22312 | fi | ||
22313 | |||
22314 | DEFS=-DHAVE_CONFIG_H | ||
22315 | |||
22316 | ac_libobjs= | ||
22317 | ac_ltlibobjs= | ||
22318 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
22319 | # 1. Remove the extension, and $U if already installed. | ||
22320 | ac_i=`echo "$ac_i" | | ||
22321 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | ||
22322 | # 2. Add them. | ||
22323 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | ||
22324 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | ||
22325 | done | ||
22326 | LIBOBJS=$ac_libobjs | ||
22327 | |||
22328 | LTLIBOBJS=$ac_ltlibobjs | ||
22329 | |||
22330 | |||
22331 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | ||
22332 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | ||
22333 | Usually this means the macro was only invoked conditionally." >&5 | ||
22334 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | ||
22335 | Usually this means the macro was only invoked conditionally." >&2;} | ||
22336 | { (exit 1); exit 1; }; } | ||
22337 | fi | ||
22338 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
22339 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | ||
22340 | Usually this means the macro was only invoked conditionally." >&5 | ||
22341 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | ||
22342 | Usually this means the macro was only invoked conditionally." >&2;} | ||
22343 | { (exit 1); exit 1; }; } | ||
22344 | fi | ||
22345 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
22346 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | ||
22347 | Usually this means the macro was only invoked conditionally." >&5 | ||
22348 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | ||
22349 | Usually this means the macro was only invoked conditionally." >&2;} | ||
22350 | { (exit 1); exit 1; }; } | ||
22351 | fi | ||
22352 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | ||
22353 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | ||
22354 | Usually this means the macro was only invoked conditionally." >&5 | ||
22355 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | ||
22356 | Usually this means the macro was only invoked conditionally." >&2;} | ||
22357 | { (exit 1); exit 1; }; } | ||
22358 | fi | ||
22359 | if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then | ||
22360 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined. | ||
22361 | Usually this means the macro was only invoked conditionally." >&5 | ||
22362 | echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined. | ||
22363 | Usually this means the macro was only invoked conditionally." >&2;} | ||
22364 | { (exit 1); exit 1; }; } | ||
22365 | fi | ||
22366 | if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then | ||
22367 | { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined. | ||
22368 | Usually this means the macro was only invoked conditionally." >&5 | ||
22369 | echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined. | ||
22370 | Usually this means the macro was only invoked conditionally." >&2;} | ||
22371 | { (exit 1); exit 1; }; } | ||
22372 | fi | ||
22373 | |||
22374 | : ${CONFIG_STATUS=./config.status} | ||
22375 | ac_clean_files_save=$ac_clean_files | ||
22376 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
22377 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
22378 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
22379 | cat >$CONFIG_STATUS <<_ACEOF | ||
22380 | #! $SHELL | ||
22381 | # Generated by $as_me. | ||
22382 | # Run this file to recreate the current configuration. | ||
22383 | # Compiler output produced by configure, useful for debugging | ||
22384 | # configure, is in config.log if it exists. | ||
22385 | |||
22386 | debug=false | ||
22387 | ac_cs_recheck=false | ||
22388 | ac_cs_silent=false | ||
22389 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
22390 | _ACEOF | ||
22391 | |||
22392 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
22393 | ## --------------------- ## | ||
22394 | ## M4sh Initialization. ## | ||
22395 | ## --------------------- ## | ||
22396 | |||
22397 | # Be Bourne compatible | ||
22398 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
22399 | emulate sh | ||
22400 | NULLCMD=: | ||
22401 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
22402 | # is contrary to our usage. Disable this feature. | ||
22403 | alias -g '${1+"$@"}'='"$@"' | ||
22404 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | ||
22405 | set -o posix | ||
22406 | fi | ||
22407 | DUALCASE=1; export DUALCASE # for MKS sh | ||
22408 | |||
22409 | # Support unset when possible. | ||
22410 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
22411 | as_unset=unset | ||
22412 | else | ||
22413 | as_unset=false | ||
22414 | fi | ||
22415 | |||
22416 | |||
22417 | # Work around bugs in pre-3.0 UWIN ksh. | ||
22418 | $as_unset ENV MAIL MAILPATH | ||
22419 | PS1='$ ' | ||
22420 | PS2='> ' | ||
22421 | PS4='+ ' | ||
22422 | |||
22423 | # NLS nuisances. | ||
22424 | for as_var in \ | ||
22425 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
22426 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
22427 | LC_TELEPHONE LC_TIME | ||
22428 | do | ||
22429 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
22430 | eval $as_var=C; export $as_var | ||
22431 | else | ||
22432 | $as_unset $as_var | ||
22433 | fi | ||
22434 | done | ||
22435 | |||
22436 | # Required to use basename. | ||
22437 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
22438 | as_expr=expr | ||
22439 | else | ||
22440 | as_expr=false | ||
22441 | fi | ||
22442 | |||
22443 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | ||
22444 | as_basename=basename | ||
22445 | else | ||
22446 | as_basename=false | ||
22447 | fi | ||
22448 | |||
22449 | |||
22450 | # Name of the executable. | ||
22451 | as_me=`$as_basename "$0" || | ||
22452 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
22453 | X"$0" : 'X\(//\)$' \| \ | ||
22454 | X"$0" : 'X\(/\)$' \| \ | ||
22455 | . : '\(.\)' 2>/dev/null || | ||
22456 | echo X/"$0" | | ||
22457 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | ||
22458 | /^X\/\(\/\/\)$/{ s//\1/; q; } | ||
22459 | /^X\/\(\/\).*/{ s//\1/; q; } | ||
22460 | s/.*/./; q'` | ||
22461 | |||
22462 | |||
22463 | # PATH needs CR, and LINENO needs CR and PATH. | ||
22464 | # Avoid depending upon Character Ranges. | ||
22465 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
22466 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
22467 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
22468 | as_cr_digits='0123456789' | ||
22469 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
22470 | |||
22471 | # The user is always right. | ||
22472 | if test "${PATH_SEPARATOR+set}" != set; then | ||
22473 | echo "#! /bin/sh" >conf$$.sh | ||
22474 | echo "exit 0" >>conf$$.sh | ||
22475 | chmod +x conf$$.sh | ||
22476 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
22477 | PATH_SEPARATOR=';' | ||
22478 | else | ||
22479 | PATH_SEPARATOR=: | ||
22480 | fi | ||
22481 | rm -f conf$$.sh | ||
22482 | fi | ||
22483 | |||
22484 | |||
22485 | as_lineno_1=$LINENO | ||
22486 | as_lineno_2=$LINENO | ||
22487 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
22488 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
22489 | test "x$as_lineno_3" = "x$as_lineno_2" || { | ||
22490 | # Find who we are. Look in the path if we contain no path at all | ||
22491 | # relative or not. | ||
22492 | case $0 in | ||
22493 | *[\\/]* ) as_myself=$0 ;; | ||
22494 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
22495 | for as_dir in $PATH | ||
22496 | do | ||
22497 | IFS=$as_save_IFS | ||
22498 | test -z "$as_dir" && as_dir=. | ||
22499 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
22500 | done | ||
22501 | |||
22502 | ;; | ||
22503 | esac | ||
22504 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
22505 | # in which case we are not to be found in the path. | ||
22506 | if test "x$as_myself" = x; then | ||
22507 | as_myself=$0 | ||
22508 | fi | ||
22509 | if test ! -f "$as_myself"; then | ||
22510 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | ||
22511 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | ||
22512 | { (exit 1); exit 1; }; } | ||
22513 | fi | ||
22514 | case $CONFIG_SHELL in | ||
22515 | '') | ||
22516 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
22517 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
22518 | do | ||
22519 | IFS=$as_save_IFS | ||
22520 | test -z "$as_dir" && as_dir=. | ||
22521 | for as_base in sh bash ksh sh5; do | ||
22522 | case $as_dir in | ||
22523 | /*) | ||
22524 | if ("$as_dir/$as_base" -c ' | ||
22525 | as_lineno_1=$LINENO | ||
22526 | as_lineno_2=$LINENO | ||
22527 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | ||
22528 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
22529 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | ||
22530 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | ||
22531 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | ||
22532 | CONFIG_SHELL=$as_dir/$as_base | ||
22533 | export CONFIG_SHELL | ||
22534 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | ||
22535 | fi;; | ||
22536 | esac | ||
22537 | done | ||
22538 | done | ||
22539 | ;; | ||
22540 | esac | ||
22541 | |||
22542 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
22543 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
22544 | # line-number line before each line; the second 'sed' does the real | ||
22545 | # work. The second script uses 'N' to pair each line-number line | ||
22546 | # with the numbered line, and appends trailing '-' during | ||
22547 | # substitution so that $LINENO is not a special case at line end. | ||
22548 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
22549 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | ||
22550 | sed '=' <$as_myself | | ||
22551 | sed ' | ||
22552 | N | ||
22553 | s,$,-, | ||
22554 | : loop | ||
22555 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | ||
22556 | t loop | ||
22557 | s,-$,, | ||
22558 | s,^['$as_cr_digits']*\n,, | ||
22559 | ' >$as_me.lineno && | ||
22560 | chmod +x $as_me.lineno || | ||
22561 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | ||
22562 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | ||
22563 | { (exit 1); exit 1; }; } | ||
22564 | |||
22565 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
22566 | # (the dirname of $[0] is not the place where we might find the | ||
22567 | # original and so on. Autoconf is especially sensible to this). | ||
22568 | . ./$as_me.lineno | ||
22569 | # Exit status is that of the last command. | ||
22570 | exit | ||
22571 | } | ||
22572 | |||
22573 | |||
22574 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | ||
22575 | *c*,-n*) ECHO_N= ECHO_C=' | ||
22576 | ' ECHO_T=' ' ;; | ||
22577 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | ||
22578 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | ||
22579 | esac | ||
22580 | |||
22581 | if expr a : '\(a\)' >/dev/null 2>&1; then | ||
22582 | as_expr=expr | ||
22583 | else | ||
22584 | as_expr=false | ||
22585 | fi | ||
22586 | |||
22587 | rm -f conf$$ conf$$.exe conf$$.file | ||
22588 | echo >conf$$.file | ||
22589 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
22590 | # We could just check for DJGPP; but this test a) works b) is more generic | ||
22591 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | ||
22592 | if test -f conf$$.exe; then | ||
22593 | # Don't use ln at all; we don't have any links | ||
22594 | as_ln_s='cp -p' | ||
22595 | else | ||
22596 | as_ln_s='ln -s' | ||
22597 | fi | ||
22598 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
22599 | as_ln_s=ln | ||
22600 | else | ||
22601 | as_ln_s='cp -p' | ||
22602 | fi | ||
22603 | rm -f conf$$ conf$$.exe conf$$.file | ||
22604 | |||
22605 | if mkdir -p . 2>/dev/null; then | ||
22606 | as_mkdir_p=: | ||
22607 | else | ||
22608 | test -d ./-p && rmdir ./-p | ||
22609 | as_mkdir_p=false | ||
22610 | fi | ||
22611 | |||
22612 | as_executable_p="test -f" | ||
22613 | |||
22614 | # Sed expression to map a string onto a valid CPP name. | ||
22615 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
22616 | |||
22617 | # Sed expression to map a string onto a valid variable name. | ||
22618 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
22619 | |||
22620 | |||
22621 | # IFS | ||
22622 | # We need space, tab and new line, in precisely that order. | ||
22623 | as_nl=' | ||
22624 | ' | ||
22625 | IFS=" $as_nl" | ||
22626 | |||
22627 | # CDPATH. | ||
22628 | $as_unset CDPATH | ||
22629 | |||
22630 | exec 6>&1 | ||
22631 | |||
22632 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | ||
22633 | # report actual input values of CONFIG_FILES etc. instead of their | ||
22634 | # values after options handling. Logging --version etc. is OK. | ||
22635 | exec 5>>config.log | ||
22636 | { | ||
22637 | echo | ||
22638 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
22639 | ## Running $as_me. ## | ||
22640 | _ASBOX | ||
22641 | } >&5 | ||
22642 | cat >&5 <<_CSEOF | ||
22643 | |||
22644 | This file was extended by libltdl $as_me 1.2, which was | ||
22645 | generated by GNU Autoconf 2.59. Invocation command line was | ||
22646 | |||
22647 | CONFIG_FILES = $CONFIG_FILES | ||
22648 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
22649 | CONFIG_LINKS = $CONFIG_LINKS | ||
22650 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
22651 | $ $0 $@ | ||
22652 | |||
22653 | _CSEOF | ||
22654 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | ||
22655 | echo >&5 | ||
22656 | _ACEOF | ||
22657 | |||
22658 | # Files that config.status was made for. | ||
22659 | if test -n "$ac_config_files"; then | ||
22660 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | ||
22661 | fi | ||
22662 | |||
22663 | if test -n "$ac_config_headers"; then | ||
22664 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | ||
22665 | fi | ||
22666 | |||
22667 | if test -n "$ac_config_links"; then | ||
22668 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | ||
22669 | fi | ||
22670 | |||
22671 | if test -n "$ac_config_commands"; then | ||
22672 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | ||
22673 | fi | ||
22674 | |||
22675 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
22676 | |||
22677 | ac_cs_usage="\ | ||
22678 | \`$as_me' instantiates files from templates according to the | ||
22679 | current configuration. | ||
22680 | |||
22681 | Usage: $0 [OPTIONS] [FILE]... | ||
22682 | |||
22683 | -h, --help print this help, then exit | ||
22684 | -V, --version print version number, then exit | ||
22685 | -q, --quiet do not print progress messages | ||
22686 | -d, --debug don't remove temporary files | ||
22687 | --recheck update $as_me by reconfiguring in the same conditions | ||
22688 | --file=FILE[:TEMPLATE] | ||
22689 | instantiate the configuration file FILE | ||
22690 | --header=FILE[:TEMPLATE] | ||
22691 | instantiate the configuration header FILE | ||
22692 | |||
22693 | Configuration files: | ||
22694 | $config_files | ||
22695 | |||
22696 | Configuration headers: | ||
22697 | $config_headers | ||
22698 | |||
22699 | Configuration commands: | ||
22700 | $config_commands | ||
22701 | |||
22702 | Report bugs to <bug-autoconf@gnu.org>." | ||
22703 | _ACEOF | ||
22704 | |||
22705 | cat >>$CONFIG_STATUS <<_ACEOF | ||
22706 | ac_cs_version="\\ | ||
22707 | libltdl config.status 1.2 | ||
22708 | configured by $0, generated by GNU Autoconf 2.59, | ||
22709 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | ||
22710 | |||
22711 | Copyright (C) 2003 Free Software Foundation, Inc. | ||
22712 | This config.status script is free software; the Free Software Foundation | ||
22713 | gives unlimited permission to copy, distribute and modify it." | ||
22714 | srcdir=$srcdir | ||
22715 | INSTALL="$INSTALL" | ||
22716 | _ACEOF | ||
22717 | |||
22718 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
22719 | # If no file are specified by the user, then we need to provide default | ||
22720 | # value. By we need to know if files were specified by the user. | ||
22721 | ac_need_defaults=: | ||
22722 | while test $# != 0 | ||
22723 | do | ||
22724 | case $1 in | ||
22725 | --*=*) | ||
22726 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | ||
22727 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | ||
22728 | ac_shift=: | ||
22729 | ;; | ||
22730 | -*) | ||
22731 | ac_option=$1 | ||
22732 | ac_optarg=$2 | ||
22733 | ac_shift=shift | ||
22734 | ;; | ||
22735 | *) # This is not an option, so the user has probably given explicit | ||
22736 | # arguments. | ||
22737 | ac_option=$1 | ||
22738 | ac_need_defaults=false;; | ||
22739 | esac | ||
22740 | |||
22741 | case $ac_option in | ||
22742 | # Handling of the options. | ||
22743 | _ACEOF | ||
22744 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
22745 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
22746 | ac_cs_recheck=: ;; | ||
22747 | --version | --vers* | -V ) | ||
22748 | echo "$ac_cs_version"; exit 0 ;; | ||
22749 | --he | --h) | ||
22750 | # Conflict between --help and --header | ||
22751 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | ||
22752 | Try \`$0 --help' for more information." >&5 | ||
22753 | echo "$as_me: error: ambiguous option: $1 | ||
22754 | Try \`$0 --help' for more information." >&2;} | ||
22755 | { (exit 1); exit 1; }; };; | ||
22756 | --help | --hel | -h ) | ||
22757 | echo "$ac_cs_usage"; exit 0 ;; | ||
22758 | --debug | --d* | -d ) | ||
22759 | debug=: ;; | ||
22760 | --file | --fil | --fi | --f ) | ||
22761 | $ac_shift | ||
22762 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
22763 | ac_need_defaults=false;; | ||
22764 | --header | --heade | --head | --hea ) | ||
22765 | $ac_shift | ||
22766 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
22767 | ac_need_defaults=false;; | ||
22768 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
22769 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
22770 | ac_cs_silent=: ;; | ||
22771 | |||
22772 | # This is an error. | ||
22773 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | ||
22774 | Try \`$0 --help' for more information." >&5 | ||
22775 | echo "$as_me: error: unrecognized option: $1 | ||
22776 | Try \`$0 --help' for more information." >&2;} | ||
22777 | { (exit 1); exit 1; }; } ;; | ||
22778 | |||
22779 | *) ac_config_targets="$ac_config_targets $1" ;; | ||
22780 | |||
22781 | esac | ||
22782 | shift | ||
22783 | done | ||
22784 | |||
22785 | ac_configure_extra_args= | ||
22786 | |||
22787 | if $ac_cs_silent; then | ||
22788 | exec 6>/dev/null | ||
22789 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
22790 | fi | ||
22791 | |||
22792 | _ACEOF | ||
22793 | cat >>$CONFIG_STATUS <<_ACEOF | ||
22794 | if \$ac_cs_recheck; then | ||
22795 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
22796 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
22797 | fi | ||
22798 | |||
22799 | _ACEOF | ||
22800 | |||
22801 | cat >>$CONFIG_STATUS <<_ACEOF | ||
22802 | # | ||
22803 | # INIT-COMMANDS section. | ||
22804 | # | ||
22805 | |||
22806 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | ||
22807 | |||
22808 | _ACEOF | ||
22809 | |||
22810 | |||
22811 | |||
22812 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
22813 | for ac_config_target in $ac_config_targets | ||
22814 | do | ||
22815 | case "$ac_config_target" in | ||
22816 | # Handling of arguments. | ||
22817 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
22818 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | ||
22819 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config-h.in" ;; | ||
22820 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
22821 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
22822 | { (exit 1); exit 1; }; };; | ||
22823 | esac | ||
22824 | done | ||
22825 | |||
22826 | # If the user did not use the arguments to specify the items to instantiate, | ||
22827 | # then the envvar interface is used. Set only those that are not. | ||
22828 | # We use the long form for the default assignment because of an extremely | ||
22829 | # bizarre bug on SunOS 4.1.3. | ||
22830 | if $ac_need_defaults; then | ||
22831 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
22832 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
22833 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
22834 | fi | ||
22835 | |||
22836 | # Have a temporary directory for convenience. Make it in the build tree | ||
22837 | # simply because there is no reason to put it here, and in addition, | ||
22838 | # creating and moving files from /tmp can sometimes cause problems. | ||
22839 | # Create a temporary directory, and hook for its removal unless debugging. | ||
22840 | $debug || | ||
22841 | { | ||
22842 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | ||
22843 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
22844 | } | ||
22845 | |||
22846 | # Create a (secure) tmp directory for tmp files. | ||
22847 | |||
22848 | { | ||
22849 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | ||
22850 | test -n "$tmp" && test -d "$tmp" | ||
22851 | } || | ||
22852 | { | ||
22853 | tmp=./confstat$$-$RANDOM | ||
22854 | (umask 077 && mkdir $tmp) | ||
22855 | } || | ||
22856 | { | ||
22857 | echo "$me: cannot create a temporary directory in ." >&2 | ||
22858 | { (exit 1); exit 1; } | ||
22859 | } | ||
22860 | |||
22861 | _ACEOF | ||
22862 | |||
22863 | cat >>$CONFIG_STATUS <<_ACEOF | ||
22864 | |||
22865 | # | ||
22866 | # CONFIG_FILES section. | ||
22867 | # | ||
22868 | |||
22869 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
22870 | # This happens for instance when ./config.status config.h | ||
22871 | if test -n "\$CONFIG_FILES"; then | ||
22872 | # Protect against being on the right side of a sed subst in config.status. | ||
22873 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | ||
22874 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | ||
22875 | s,@SHELL@,$SHELL,;t t | ||
22876 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | ||
22877 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | ||
22878 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | ||
22879 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | ||
22880 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | ||
22881 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | ||
22882 | s,@exec_prefix@,$exec_prefix,;t t | ||
22883 | s,@prefix@,$prefix,;t t | ||
22884 | s,@program_transform_name@,$program_transform_name,;t t | ||
22885 | s,@bindir@,$bindir,;t t | ||
22886 | s,@sbindir@,$sbindir,;t t | ||
22887 | s,@libexecdir@,$libexecdir,;t t | ||
22888 | s,@datadir@,$datadir,;t t | ||
22889 | s,@sysconfdir@,$sysconfdir,;t t | ||
22890 | s,@sharedstatedir@,$sharedstatedir,;t t | ||
22891 | s,@localstatedir@,$localstatedir,;t t | ||
22892 | s,@libdir@,$libdir,;t t | ||
22893 | s,@includedir@,$includedir,;t t | ||
22894 | s,@oldincludedir@,$oldincludedir,;t t | ||
22895 | s,@infodir@,$infodir,;t t | ||
22896 | s,@mandir@,$mandir,;t t | ||
22897 | s,@build_alias@,$build_alias,;t t | ||
22898 | s,@host_alias@,$host_alias,;t t | ||
22899 | s,@target_alias@,$target_alias,;t t | ||
22900 | s,@DEFS@,$DEFS,;t t | ||
22901 | s,@ECHO_C@,$ECHO_C,;t t | ||
22902 | s,@ECHO_N@,$ECHO_N,;t t | ||
22903 | s,@ECHO_T@,$ECHO_T,;t t | ||
22904 | s,@LIBS@,$LIBS,;t t | ||
22905 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | ||
22906 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | ||
22907 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | ||
22908 | s,@CYGPATH_W@,$CYGPATH_W,;t t | ||
22909 | s,@PACKAGE@,$PACKAGE,;t t | ||
22910 | s,@VERSION@,$VERSION,;t t | ||
22911 | s,@ACLOCAL@,$ACLOCAL,;t t | ||
22912 | s,@AUTOCONF@,$AUTOCONF,;t t | ||
22913 | s,@AUTOMAKE@,$AUTOMAKE,;t t | ||
22914 | s,@AUTOHEADER@,$AUTOHEADER,;t t | ||
22915 | s,@MAKEINFO@,$MAKEINFO,;t t | ||
22916 | s,@install_sh@,$install_sh,;t t | ||
22917 | s,@STRIP@,$STRIP,;t t | ||
22918 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | ||
22919 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | ||
22920 | s,@mkdir_p@,$mkdir_p,;t t | ||
22921 | s,@AWK@,$AWK,;t t | ||
22922 | s,@SET_MAKE@,$SET_MAKE,;t t | ||
22923 | s,@am__leading_dot@,$am__leading_dot,;t t | ||
22924 | s,@AMTAR@,$AMTAR,;t t | ||
22925 | s,@am__tar@,$am__tar,;t t | ||
22926 | s,@am__untar@,$am__untar,;t t | ||
22927 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | ||
22928 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | ||
22929 | s,@MAINT@,$MAINT,;t t | ||
22930 | s,@CC@,$CC,;t t | ||
22931 | s,@CFLAGS@,$CFLAGS,;t t | ||
22932 | s,@LDFLAGS@,$LDFLAGS,;t t | ||
22933 | s,@CPPFLAGS@,$CPPFLAGS,;t t | ||
22934 | s,@ac_ct_CC@,$ac_ct_CC,;t t | ||
22935 | s,@EXEEXT@,$EXEEXT,;t t | ||
22936 | s,@OBJEXT@,$OBJEXT,;t t | ||
22937 | s,@DEPDIR@,$DEPDIR,;t t | ||
22938 | s,@am__include@,$am__include,;t t | ||
22939 | s,@am__quote@,$am__quote,;t t | ||
22940 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | ||
22941 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | ||
22942 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | ||
22943 | s,@CCDEPMODE@,$CCDEPMODE,;t t | ||
22944 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | ||
22945 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | ||
22946 | s,@build@,$build,;t t | ||
22947 | s,@build_cpu@,$build_cpu,;t t | ||
22948 | s,@build_vendor@,$build_vendor,;t t | ||
22949 | s,@build_os@,$build_os,;t t | ||
22950 | s,@host@,$host,;t t | ||
22951 | s,@host_cpu@,$host_cpu,;t t | ||
22952 | s,@host_vendor@,$host_vendor,;t t | ||
22953 | s,@host_os@,$host_os,;t t | ||
22954 | s,@EGREP@,$EGREP,;t t | ||
22955 | s,@LN_S@,$LN_S,;t t | ||
22956 | s,@ECHO@,$ECHO,;t t | ||
22957 | s,@AR@,$AR,;t t | ||
22958 | s,@ac_ct_AR@,$ac_ct_AR,;t t | ||
22959 | s,@RANLIB@,$RANLIB,;t t | ||
22960 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | ||
22961 | s,@DLLTOOL@,$DLLTOOL,;t t | ||
22962 | s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t | ||
22963 | s,@AS@,$AS,;t t | ||
22964 | s,@ac_ct_AS@,$ac_ct_AS,;t t | ||
22965 | s,@OBJDUMP@,$OBJDUMP,;t t | ||
22966 | s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t | ||
22967 | s,@CPP@,$CPP,;t t | ||
22968 | s,@CXX@,$CXX,;t t | ||
22969 | s,@CXXFLAGS@,$CXXFLAGS,;t t | ||
22970 | s,@ac_ct_CXX@,$ac_ct_CXX,;t t | ||
22971 | s,@CXXDEPMODE@,$CXXDEPMODE,;t t | ||
22972 | s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t | ||
22973 | s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t | ||
22974 | s,@CXXCPP@,$CXXCPP,;t t | ||
22975 | s,@F77@,$F77,;t t | ||
22976 | s,@FFLAGS@,$FFLAGS,;t t | ||
22977 | s,@ac_ct_F77@,$ac_ct_F77,;t t | ||
22978 | s,@LIBTOOL@,$LIBTOOL,;t t | ||
22979 | s,@LIBTOOL_DEPS@,$LIBTOOL_DEPS,;t t | ||
22980 | s,@INSTALL_LTDL_TRUE@,$INSTALL_LTDL_TRUE,;t t | ||
22981 | s,@INSTALL_LTDL_FALSE@,$INSTALL_LTDL_FALSE,;t t | ||
22982 | s,@CONVENIENCE_LTDL_TRUE@,$CONVENIENCE_LTDL_TRUE,;t t | ||
22983 | s,@CONVENIENCE_LTDL_FALSE@,$CONVENIENCE_LTDL_FALSE,;t t | ||
22984 | s,@LIBADD_DL@,$LIBADD_DL,;t t | ||
22985 | s,@LIBOBJS@,$LIBOBJS,;t t | ||
22986 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | ||
22987 | CEOF | ||
22988 | |||
22989 | _ACEOF | ||
22990 | |||
22991 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
22992 | # Split the substitutions into bite-sized pieces for seds with | ||
22993 | # small command number limits, like on Digital OSF/1 and HP-UX. | ||
22994 | ac_max_sed_lines=48 | ||
22995 | ac_sed_frag=1 # Number of current file. | ||
22996 | ac_beg=1 # First line for current file. | ||
22997 | ac_end=$ac_max_sed_lines # Line after last line for current file. | ||
22998 | ac_more_lines=: | ||
22999 | ac_sed_cmds= | ||
23000 | while $ac_more_lines; do | ||
23001 | if test $ac_beg -gt 1; then | ||
23002 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
23003 | else | ||
23004 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | ||
23005 | fi | ||
23006 | if test ! -s $tmp/subs.frag; then | ||
23007 | ac_more_lines=false | ||
23008 | else | ||
23009 | # The purpose of the label and of the branching condition is to | ||
23010 | # speed up the sed processing (if there are no `@' at all, there | ||
23011 | # is no need to browse any of the substitutions). | ||
23012 | # These are the two extra sed commands mentioned above. | ||
23013 | (echo ':t | ||
23014 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | ||
23015 | if test -z "$ac_sed_cmds"; then | ||
23016 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | ||
23017 | else | ||
23018 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | ||
23019 | fi | ||
23020 | ac_sed_frag=`expr $ac_sed_frag + 1` | ||
23021 | ac_beg=$ac_end | ||
23022 | ac_end=`expr $ac_end + $ac_max_sed_lines` | ||
23023 | fi | ||
23024 | done | ||
23025 | if test -z "$ac_sed_cmds"; then | ||
23026 | ac_sed_cmds=cat | ||
23027 | fi | ||
23028 | fi # test -n "$CONFIG_FILES" | ||
23029 | |||
23030 | _ACEOF | ||
23031 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
23032 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | ||
23033 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
23034 | case $ac_file in | ||
23035 | - | *:- | *:-:* ) # input from stdin | ||
23036 | cat >$tmp/stdin | ||
23037 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
23038 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
23039 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
23040 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
23041 | * ) ac_file_in=$ac_file.in ;; | ||
23042 | esac | ||
23043 | |||
23044 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | ||
23045 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
23046 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
23047 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
23048 | X"$ac_file" : 'X\(//\)$' \| \ | ||
23049 | X"$ac_file" : 'X\(/\)' \| \ | ||
23050 | . : '\(.\)' 2>/dev/null || | ||
23051 | echo X"$ac_file" | | ||
23052 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
23053 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
23054 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
23055 | /^X\(\/\).*/{ s//\1/; q; } | ||
23056 | s/.*/./; q'` | ||
23057 | { if $as_mkdir_p; then | ||
23058 | mkdir -p "$ac_dir" | ||
23059 | else | ||
23060 | as_dir="$ac_dir" | ||
23061 | as_dirs= | ||
23062 | while test ! -d "$as_dir"; do | ||
23063 | as_dirs="$as_dir $as_dirs" | ||
23064 | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
23065 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
23066 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
23067 | X"$as_dir" : 'X\(//\)$' \| \ | ||
23068 | X"$as_dir" : 'X\(/\)' \| \ | ||
23069 | . : '\(.\)' 2>/dev/null || | ||
23070 | echo X"$as_dir" | | ||
23071 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
23072 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
23073 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
23074 | /^X\(\/\).*/{ s//\1/; q; } | ||
23075 | s/.*/./; q'` | ||
23076 | done | ||
23077 | test ! -n "$as_dirs" || mkdir $as_dirs | ||
23078 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | ||
23079 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
23080 | { (exit 1); exit 1; }; }; } | ||
23081 | |||
23082 | ac_builddir=. | ||
23083 | |||
23084 | if test "$ac_dir" != .; then | ||
23085 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
23086 | # A "../" for each directory in $ac_dir_suffix. | ||
23087 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
23088 | else | ||
23089 | ac_dir_suffix= ac_top_builddir= | ||
23090 | fi | ||
23091 | |||
23092 | case $srcdir in | ||
23093 | .) # No --srcdir option. We are building in place. | ||
23094 | ac_srcdir=. | ||
23095 | if test -z "$ac_top_builddir"; then | ||
23096 | ac_top_srcdir=. | ||
23097 | else | ||
23098 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
23099 | fi ;; | ||
23100 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
23101 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
23102 | ac_top_srcdir=$srcdir ;; | ||
23103 | *) # Relative path. | ||
23104 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
23105 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
23106 | esac | ||
23107 | |||
23108 | # Do not use `cd foo && pwd` to compute absolute paths, because | ||
23109 | # the directories may not exist. | ||
23110 | case `pwd` in | ||
23111 | .) ac_abs_builddir="$ac_dir";; | ||
23112 | *) | ||
23113 | case "$ac_dir" in | ||
23114 | .) ac_abs_builddir=`pwd`;; | ||
23115 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | ||
23116 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | ||
23117 | esac;; | ||
23118 | esac | ||
23119 | case $ac_abs_builddir in | ||
23120 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
23121 | *) | ||
23122 | case ${ac_top_builddir}. in | ||
23123 | .) ac_abs_top_builddir=$ac_abs_builddir;; | ||
23124 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
23125 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | ||
23126 | esac;; | ||
23127 | esac | ||
23128 | case $ac_abs_builddir in | ||
23129 | .) ac_abs_srcdir=$ac_srcdir;; | ||
23130 | *) | ||
23131 | case $ac_srcdir in | ||
23132 | .) ac_abs_srcdir=$ac_abs_builddir;; | ||
23133 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | ||
23134 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | ||
23135 | esac;; | ||
23136 | esac | ||
23137 | case $ac_abs_builddir in | ||
23138 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
23139 | *) | ||
23140 | case $ac_top_srcdir in | ||
23141 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | ||
23142 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
23143 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | ||
23144 | esac;; | ||
23145 | esac | ||
23146 | |||
23147 | |||
23148 | case $INSTALL in | ||
23149 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
23150 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | ||
23151 | esac | ||
23152 | |||
23153 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
23154 | # use $as_me), people would be surprised to read: | ||
23155 | # /* config.h. Generated by config.status. */ | ||
23156 | if test x"$ac_file" = x-; then | ||
23157 | configure_input= | ||
23158 | else | ||
23159 | configure_input="$ac_file. " | ||
23160 | fi | ||
23161 | configure_input=$configure_input"Generated from `echo $ac_file_in | | ||
23162 | sed 's,.*/,,'` by configure." | ||
23163 | |||
23164 | # First look for the input files in the build tree, otherwise in the | ||
23165 | # src tree. | ||
23166 | ac_file_inputs=`IFS=: | ||
23167 | for f in $ac_file_in; do | ||
23168 | case $f in | ||
23169 | -) echo $tmp/stdin ;; | ||
23170 | [\\/$]*) | ||
23171 | # Absolute (can't be DOS-style, as IFS=:) | ||
23172 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
23173 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
23174 | { (exit 1); exit 1; }; } | ||
23175 | echo "$f";; | ||
23176 | *) # Relative | ||
23177 | if test -f "$f"; then | ||
23178 | # Build tree | ||
23179 | echo "$f" | ||
23180 | elif test -f "$srcdir/$f"; then | ||
23181 | # Source tree | ||
23182 | echo "$srcdir/$f" | ||
23183 | else | ||
23184 | # /dev/null tree | ||
23185 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
23186 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
23187 | { (exit 1); exit 1; }; } | ||
23188 | fi;; | ||
23189 | esac | ||
23190 | done` || { (exit 1); exit 1; } | ||
23191 | |||
23192 | if test x"$ac_file" != x-; then | ||
23193 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
23194 | echo "$as_me: creating $ac_file" >&6;} | ||
23195 | rm -f "$ac_file" | ||
23196 | fi | ||
23197 | _ACEOF | ||
23198 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23199 | sed "$ac_vpsub | ||
23200 | $extrasub | ||
23201 | _ACEOF | ||
23202 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
23203 | :t | ||
23204 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
23205 | s,@configure_input@,$configure_input,;t t | ||
23206 | s,@srcdir@,$ac_srcdir,;t t | ||
23207 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | ||
23208 | s,@top_srcdir@,$ac_top_srcdir,;t t | ||
23209 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | ||
23210 | s,@builddir@,$ac_builddir,;t t | ||
23211 | s,@abs_builddir@,$ac_abs_builddir,;t t | ||
23212 | s,@top_builddir@,$ac_top_builddir,;t t | ||
23213 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | ||
23214 | s,@INSTALL@,$ac_INSTALL,;t t | ||
23215 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | ||
23216 | rm -f $tmp/stdin | ||
23217 | if test x"$ac_file" != x-; then | ||
23218 | mv $tmp/out $ac_file | ||
23219 | else | ||
23220 | cat $tmp/out | ||
23221 | rm -f $tmp/out | ||
23222 | fi | ||
23223 | |||
23224 | done | ||
23225 | _ACEOF | ||
23226 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
23227 | |||
23228 | # | ||
23229 | # CONFIG_HEADER section. | ||
23230 | # | ||
23231 | |||
23232 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | ||
23233 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | ||
23234 | # | ||
23235 | # ac_d sets the value in "#define NAME VALUE" lines. | ||
23236 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | ||
23237 | ac_dB='[ ].*$,\1#\2' | ||
23238 | ac_dC=' ' | ||
23239 | ac_dD=',;t' | ||
23240 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | ||
23241 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | ||
23242 | ac_uB='$,\1#\2define\3' | ||
23243 | ac_uC=' ' | ||
23244 | ac_uD=',;t' | ||
23245 | |||
23246 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | ||
23247 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | ||
23248 | case $ac_file in | ||
23249 | - | *:- | *:-:* ) # input from stdin | ||
23250 | cat >$tmp/stdin | ||
23251 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
23252 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
23253 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
23254 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | ||
23255 | * ) ac_file_in=$ac_file.in ;; | ||
23256 | esac | ||
23257 | |||
23258 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
23259 | echo "$as_me: creating $ac_file" >&6;} | ||
23260 | |||
23261 | # First look for the input files in the build tree, otherwise in the | ||
23262 | # src tree. | ||
23263 | ac_file_inputs=`IFS=: | ||
23264 | for f in $ac_file_in; do | ||
23265 | case $f in | ||
23266 | -) echo $tmp/stdin ;; | ||
23267 | [\\/$]*) | ||
23268 | # Absolute (can't be DOS-style, as IFS=:) | ||
23269 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
23270 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
23271 | { (exit 1); exit 1; }; } | ||
23272 | # Do quote $f, to prevent DOS paths from being IFS'd. | ||
23273 | echo "$f";; | ||
23274 | *) # Relative | ||
23275 | if test -f "$f"; then | ||
23276 | # Build tree | ||
23277 | echo "$f" | ||
23278 | elif test -f "$srcdir/$f"; then | ||
23279 | # Source tree | ||
23280 | echo "$srcdir/$f" | ||
23281 | else | ||
23282 | # /dev/null tree | ||
23283 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | ||
23284 | echo "$as_me: error: cannot find input file: $f" >&2;} | ||
23285 | { (exit 1); exit 1; }; } | ||
23286 | fi;; | ||
23287 | esac | ||
23288 | done` || { (exit 1); exit 1; } | ||
23289 | # Remove the trailing spaces. | ||
23290 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | ||
23291 | |||
23292 | _ACEOF | ||
23293 | |||
23294 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | ||
23295 | # `conftest.undefs', that substitutes the proper values into | ||
23296 | # config.h.in to produce config.h. The first handles `#define' | ||
23297 | # templates, and the second `#undef' templates. | ||
23298 | # And first: Protect against being on the right side of a sed subst in | ||
23299 | # config.status. Protect against being in an unquoted here document | ||
23300 | # in config.status. | ||
23301 | rm -f conftest.defines conftest.undefs | ||
23302 | # Using a here document instead of a string reduces the quoting nightmare. | ||
23303 | # Putting comments in sed scripts is not portable. | ||
23304 | # | ||
23305 | # `end' is used to avoid that the second main sed command (meant for | ||
23306 | # 0-ary CPP macros) applies to n-ary macro definitions. | ||
23307 | # See the Autoconf documentation for `clear'. | ||
23308 | cat >confdef2sed.sed <<\_ACEOF | ||
23309 | s/[\\&,]/\\&/g | ||
23310 | s,[\\$`],\\&,g | ||
23311 | t clear | ||
23312 | : clear | ||
23313 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | ||
23314 | t end | ||
23315 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | ||
23316 | : end | ||
23317 | _ACEOF | ||
23318 | # If some macros were called several times there might be several times | ||
23319 | # the same #defines, which is useless. Nevertheless, we may not want to | ||
23320 | # sort them, since we want the *last* AC-DEFINE to be honored. | ||
23321 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | ||
23322 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | ||
23323 | rm -f confdef2sed.sed | ||
23324 | |||
23325 | # This sed command replaces #undef with comments. This is necessary, for | ||
23326 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
23327 | # on some systems where configure will not decide to define it. | ||
23328 | cat >>conftest.undefs <<\_ACEOF | ||
23329 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | ||
23330 | _ACEOF | ||
23331 | |||
23332 | # Break up conftest.defines because some shells have a limit on the size | ||
23333 | # of here documents, and old seds have small limits too (100 cmds). | ||
23334 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | ||
23335 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | ||
23336 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | ||
23337 | echo ' :' >>$CONFIG_STATUS | ||
23338 | rm -f conftest.tail | ||
23339 | while grep . conftest.defines >/dev/null | ||
23340 | do | ||
23341 | # Write a limited-size here document to $tmp/defines.sed. | ||
23342 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | ||
23343 | # Speed up: don't consider the non `#define' lines. | ||
23344 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | ||
23345 | # Work around the forget-to-reset-the-flag bug. | ||
23346 | echo 't clr' >>$CONFIG_STATUS | ||
23347 | echo ': clr' >>$CONFIG_STATUS | ||
23348 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | ||
23349 | echo 'CEOF | ||
23350 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | ||
23351 | rm -f $tmp/in | ||
23352 | mv $tmp/out $tmp/in | ||
23353 | ' >>$CONFIG_STATUS | ||
23354 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | ||
23355 | rm -f conftest.defines | ||
23356 | mv conftest.tail conftest.defines | ||
23357 | done | ||
23358 | rm -f conftest.defines | ||
23359 | echo ' fi # grep' >>$CONFIG_STATUS | ||
23360 | echo >>$CONFIG_STATUS | ||
23361 | |||
23362 | # Break up conftest.undefs because some shells have a limit on the size | ||
23363 | # of here documents, and old seds have small limits too (100 cmds). | ||
23364 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | ||
23365 | rm -f conftest.tail | ||
23366 | while grep . conftest.undefs >/dev/null | ||
23367 | do | ||
23368 | # Write a limited-size here document to $tmp/undefs.sed. | ||
23369 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | ||
23370 | # Speed up: don't consider the non `#undef' | ||
23371 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | ||
23372 | # Work around the forget-to-reset-the-flag bug. | ||
23373 | echo 't clr' >>$CONFIG_STATUS | ||
23374 | echo ': clr' >>$CONFIG_STATUS | ||
23375 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | ||
23376 | echo 'CEOF | ||
23377 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | ||
23378 | rm -f $tmp/in | ||
23379 | mv $tmp/out $tmp/in | ||
23380 | ' >>$CONFIG_STATUS | ||
23381 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | ||
23382 | rm -f conftest.undefs | ||
23383 | mv conftest.tail conftest.undefs | ||
23384 | done | ||
23385 | rm -f conftest.undefs | ||
23386 | |||
23387 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
23388 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
23389 | # use $as_me), people would be surprised to read: | ||
23390 | # /* config.h. Generated by config.status. */ | ||
23391 | if test x"$ac_file" = x-; then | ||
23392 | echo "/* Generated by configure. */" >$tmp/config.h | ||
23393 | else | ||
23394 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | ||
23395 | fi | ||
23396 | cat $tmp/in >>$tmp/config.h | ||
23397 | rm -f $tmp/in | ||
23398 | if test x"$ac_file" != x-; then | ||
23399 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | ||
23400 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
23401 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
23402 | else | ||
23403 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | ||
23404 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
23405 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
23406 | X"$ac_file" : 'X\(//\)$' \| \ | ||
23407 | X"$ac_file" : 'X\(/\)' \| \ | ||
23408 | . : '\(.\)' 2>/dev/null || | ||
23409 | echo X"$ac_file" | | ||
23410 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
23411 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
23412 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
23413 | /^X\(\/\).*/{ s//\1/; q; } | ||
23414 | s/.*/./; q'` | ||
23415 | { if $as_mkdir_p; then | ||
23416 | mkdir -p "$ac_dir" | ||
23417 | else | ||
23418 | as_dir="$ac_dir" | ||
23419 | as_dirs= | ||
23420 | while test ! -d "$as_dir"; do | ||
23421 | as_dirs="$as_dir $as_dirs" | ||
23422 | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
23423 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
23424 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
23425 | X"$as_dir" : 'X\(//\)$' \| \ | ||
23426 | X"$as_dir" : 'X\(/\)' \| \ | ||
23427 | . : '\(.\)' 2>/dev/null || | ||
23428 | echo X"$as_dir" | | ||
23429 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
23430 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
23431 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
23432 | /^X\(\/\).*/{ s//\1/; q; } | ||
23433 | s/.*/./; q'` | ||
23434 | done | ||
23435 | test ! -n "$as_dirs" || mkdir $as_dirs | ||
23436 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | ||
23437 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
23438 | { (exit 1); exit 1; }; }; } | ||
23439 | |||
23440 | rm -f $ac_file | ||
23441 | mv $tmp/config.h $ac_file | ||
23442 | fi | ||
23443 | else | ||
23444 | cat $tmp/config.h | ||
23445 | rm -f $tmp/config.h | ||
23446 | fi | ||
23447 | # Compute $ac_file's index in $config_headers. | ||
23448 | _am_stamp_count=1 | ||
23449 | for _am_header in $config_headers :; do | ||
23450 | case $_am_header in | ||
23451 | $ac_file | $ac_file:* ) | ||
23452 | break ;; | ||
23453 | * ) | ||
23454 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
23455 | esac | ||
23456 | done | ||
23457 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | ||
23458 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
23459 | X$ac_file : 'X\(//\)[^/]' \| \ | ||
23460 | X$ac_file : 'X\(//\)$' \| \ | ||
23461 | X$ac_file : 'X\(/\)' \| \ | ||
23462 | . : '\(.\)' 2>/dev/null || | ||
23463 | echo X$ac_file | | ||
23464 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
23465 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
23466 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
23467 | /^X\(\/\).*/{ s//\1/; q; } | ||
23468 | s/.*/./; q'`/stamp-h$_am_stamp_count | ||
23469 | done | ||
23470 | _ACEOF | ||
23471 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
23472 | |||
23473 | # | ||
23474 | # CONFIG_COMMANDS section. | ||
23475 | # | ||
23476 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | ||
23477 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | ||
23478 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | ||
23479 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | ||
23480 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
23481 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | ||
23482 | X"$ac_dest" : 'X\(//\)$' \| \ | ||
23483 | X"$ac_dest" : 'X\(/\)' \| \ | ||
23484 | . : '\(.\)' 2>/dev/null || | ||
23485 | echo X"$ac_dest" | | ||
23486 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
23487 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
23488 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
23489 | /^X\(\/\).*/{ s//\1/; q; } | ||
23490 | s/.*/./; q'` | ||
23491 | { if $as_mkdir_p; then | ||
23492 | mkdir -p "$ac_dir" | ||
23493 | else | ||
23494 | as_dir="$ac_dir" | ||
23495 | as_dirs= | ||
23496 | while test ! -d "$as_dir"; do | ||
23497 | as_dirs="$as_dir $as_dirs" | ||
23498 | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
23499 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
23500 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
23501 | X"$as_dir" : 'X\(//\)$' \| \ | ||
23502 | X"$as_dir" : 'X\(/\)' \| \ | ||
23503 | . : '\(.\)' 2>/dev/null || | ||
23504 | echo X"$as_dir" | | ||
23505 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
23506 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
23507 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
23508 | /^X\(\/\).*/{ s//\1/; q; } | ||
23509 | s/.*/./; q'` | ||
23510 | done | ||
23511 | test ! -n "$as_dirs" || mkdir $as_dirs | ||
23512 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | ||
23513 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | ||
23514 | { (exit 1); exit 1; }; }; } | ||
23515 | |||
23516 | ac_builddir=. | ||
23517 | |||
23518 | if test "$ac_dir" != .; then | ||
23519 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
23520 | # A "../" for each directory in $ac_dir_suffix. | ||
23521 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | ||
23522 | else | ||
23523 | ac_dir_suffix= ac_top_builddir= | ||
23524 | fi | ||
23525 | |||
23526 | case $srcdir in | ||
23527 | .) # No --srcdir option. We are building in place. | ||
23528 | ac_srcdir=. | ||
23529 | if test -z "$ac_top_builddir"; then | ||
23530 | ac_top_srcdir=. | ||
23531 | else | ||
23532 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | ||
23533 | fi ;; | ||
23534 | [\\/]* | ?:[\\/]* ) # Absolute path. | ||
23535 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
23536 | ac_top_srcdir=$srcdir ;; | ||
23537 | *) # Relative path. | ||
23538 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | ||
23539 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | ||
23540 | esac | ||
23541 | |||
23542 | # Do not use `cd foo && pwd` to compute absolute paths, because | ||
23543 | # the directories may not exist. | ||
23544 | case `pwd` in | ||
23545 | .) ac_abs_builddir="$ac_dir";; | ||
23546 | *) | ||
23547 | case "$ac_dir" in | ||
23548 | .) ac_abs_builddir=`pwd`;; | ||
23549 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | ||
23550 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | ||
23551 | esac;; | ||
23552 | esac | ||
23553 | case $ac_abs_builddir in | ||
23554 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
23555 | *) | ||
23556 | case ${ac_top_builddir}. in | ||
23557 | .) ac_abs_top_builddir=$ac_abs_builddir;; | ||
23558 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | ||
23559 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | ||
23560 | esac;; | ||
23561 | esac | ||
23562 | case $ac_abs_builddir in | ||
23563 | .) ac_abs_srcdir=$ac_srcdir;; | ||
23564 | *) | ||
23565 | case $ac_srcdir in | ||
23566 | .) ac_abs_srcdir=$ac_abs_builddir;; | ||
23567 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | ||
23568 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | ||
23569 | esac;; | ||
23570 | esac | ||
23571 | case $ac_abs_builddir in | ||
23572 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
23573 | *) | ||
23574 | case $ac_top_srcdir in | ||
23575 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | ||
23576 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | ||
23577 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | ||
23578 | esac;; | ||
23579 | esac | ||
23580 | |||
23581 | |||
23582 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | ||
23583 | echo "$as_me: executing $ac_dest commands" >&6;} | ||
23584 | case $ac_dest in | ||
23585 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | ||
23586 | # Strip MF so we end up with the name of the file. | ||
23587 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
23588 | # Check whether this is an Automake generated Makefile or not. | ||
23589 | # We used to match only the files named `Makefile.in', but | ||
23590 | # some people rename them; so instead we look at the file content. | ||
23591 | # Grep'ing the first line is not enough: some people post-process | ||
23592 | # each Makefile.in and add a new line on top of each file to say so. | ||
23593 | # So let's grep whole file. | ||
23594 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | ||
23595 | dirpart=`(dirname "$mf") 2>/dev/null || | ||
23596 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
23597 | X"$mf" : 'X\(//\)[^/]' \| \ | ||
23598 | X"$mf" : 'X\(//\)$' \| \ | ||
23599 | X"$mf" : 'X\(/\)' \| \ | ||
23600 | . : '\(.\)' 2>/dev/null || | ||
23601 | echo X"$mf" | | ||
23602 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
23603 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
23604 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
23605 | /^X\(\/\).*/{ s//\1/; q; } | ||
23606 | s/.*/./; q'` | ||
23607 | else | ||
23608 | continue | ||
23609 | fi | ||
23610 | # Extract the definition of DEPDIR, am__include, and am__quote | ||
23611 | # from the Makefile without running `make'. | ||
23612 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | ||
23613 | test -z "$DEPDIR" && continue | ||
23614 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | ||
23615 | test -z "am__include" && continue | ||
23616 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | ||
23617 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
23618 | U=`sed -n 's/^U = //p' < "$mf"` | ||
23619 | # Find all dependency output files, they are included files with | ||
23620 | # $(DEPDIR) in their names. We invoke sed twice because it is the | ||
23621 | # simplest approach to changing $(DEPDIR) to its actual value in the | ||
23622 | # expansion. | ||
23623 | for file in `sed -n " | ||
23624 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | ||
23625 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
23626 | # Make sure the directory exists. | ||
23627 | test -f "$dirpart/$file" && continue | ||
23628 | fdir=`(dirname "$file") 2>/dev/null || | ||
23629 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
23630 | X"$file" : 'X\(//\)[^/]' \| \ | ||
23631 | X"$file" : 'X\(//\)$' \| \ | ||
23632 | X"$file" : 'X\(/\)' \| \ | ||
23633 | . : '\(.\)' 2>/dev/null || | ||
23634 | echo X"$file" | | ||
23635 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
23636 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
23637 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
23638 | /^X\(\/\).*/{ s//\1/; q; } | ||
23639 | s/.*/./; q'` | ||
23640 | { if $as_mkdir_p; then | ||
23641 | mkdir -p $dirpart/$fdir | ||
23642 | else | ||
23643 | as_dir=$dirpart/$fdir | ||
23644 | as_dirs= | ||
23645 | while test ! -d "$as_dir"; do | ||
23646 | as_dirs="$as_dir $as_dirs" | ||
23647 | as_dir=`(dirname "$as_dir") 2>/dev/null || | ||
23648 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
23649 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
23650 | X"$as_dir" : 'X\(//\)$' \| \ | ||
23651 | X"$as_dir" : 'X\(/\)' \| \ | ||
23652 | . : '\(.\)' 2>/dev/null || | ||
23653 | echo X"$as_dir" | | ||
23654 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | ||
23655 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | ||
23656 | /^X\(\/\/\)$/{ s//\1/; q; } | ||
23657 | /^X\(\/\).*/{ s//\1/; q; } | ||
23658 | s/.*/./; q'` | ||
23659 | done | ||
23660 | test ! -n "$as_dirs" || mkdir $as_dirs | ||
23661 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | ||
23662 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | ||
23663 | { (exit 1); exit 1; }; }; } | ||
23664 | |||
23665 | # echo "creating $dirpart/$file" | ||
23666 | echo '# dummy' > "$dirpart/$file" | ||
23667 | done | ||
23668 | done | ||
23669 | ;; | ||
23670 | esac | ||
23671 | done | ||
23672 | _ACEOF | ||
23673 | |||
23674 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
23675 | |||
23676 | { (exit 0); exit 0; } | ||
23677 | _ACEOF | ||
23678 | chmod +x $CONFIG_STATUS | ||
23679 | ac_clean_files=$ac_clean_files_save | ||
23680 | |||
23681 | |||
23682 | # configure is writing to config.log, and then calls config.status. | ||
23683 | # config.status does its own redirection, appending to config.log. | ||
23684 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
23685 | # by configure, so config.status won't be able to write to it; its | ||
23686 | # output is simply discarded. So we exec the FD to /dev/null, | ||
23687 | # effectively closing config.log, so it can be properly (re)opened and | ||
23688 | # appended to by config.status. When coming back to configure, we | ||
23689 | # need to make the FD available again. | ||
23690 | if test "$no_create" != yes; then | ||
23691 | ac_cs_success=: | ||
23692 | ac_config_status_args= | ||
23693 | test "$silent" = yes && | ||
23694 | ac_config_status_args="$ac_config_status_args --quiet" | ||
23695 | exec 5>/dev/null | ||
23696 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
23697 | exec 5>>config.log | ||
23698 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
23699 | # would make configure fail if this is the last instruction. | ||
23700 | $ac_cs_success || { (exit 1); exit 1; } | ||
23701 | fi | ||
23702 | |||