diff options
Diffstat (limited to 'src/others/mimesh/libg3d-0.0.8/configure')
-rwxr-xr-x | src/others/mimesh/libg3d-0.0.8/configure | 23776 |
1 files changed, 23776 insertions, 0 deletions
diff --git a/src/others/mimesh/libg3d-0.0.8/configure b/src/others/mimesh/libg3d-0.0.8/configure new file mode 100755 index 0000000..9265598 --- /dev/null +++ b/src/others/mimesh/libg3d-0.0.8/configure | |||
@@ -0,0 +1,23776 @@ | |||
1 | #! /bin/sh | ||
2 | # Guess values for system-dependent variables and create Makefiles. | ||
3 | # Generated by GNU Autoconf 2.61. | ||
4 | # | ||
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
7 | # This configure script is free software; the Free Software Foundation | ||
8 | # gives unlimited permission to copy, distribute and modify it. | ||
9 | ## --------------------- ## | ||
10 | ## M4sh Initialization. ## | ||
11 | ## --------------------- ## | ||
12 | |||
13 | # Be more Bourne compatible | ||
14 | DUALCASE=1; export DUALCASE # for MKS sh | ||
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 | setopt NO_GLOB_SUBST | ||
22 | else | ||
23 | case `(set -o) 2>/dev/null` in | ||
24 | *posix*) set -o posix ;; | ||
25 | esac | ||
26 | |||
27 | fi | ||
28 | |||
29 | |||
30 | |||
31 | |||
32 | # PATH needs CR | ||
33 | # Avoid depending upon Character Ranges. | ||
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
37 | as_cr_digits='0123456789' | ||
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
39 | |||
40 | # The user is always right. | ||
41 | if test "${PATH_SEPARATOR+set}" != set; then | ||
42 | echo "#! /bin/sh" >conf$$.sh | ||
43 | echo "exit 0" >>conf$$.sh | ||
44 | chmod +x conf$$.sh | ||
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
46 | PATH_SEPARATOR=';' | ||
47 | else | ||
48 | PATH_SEPARATOR=: | ||
49 | fi | ||
50 | rm -f conf$$.sh | ||
51 | fi | ||
52 | |||
53 | # Support unset when possible. | ||
54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
55 | as_unset=unset | ||
56 | else | ||
57 | as_unset=false | ||
58 | fi | ||
59 | |||
60 | |||
61 | # IFS | ||
62 | # We need space, tab and new line, in precisely that order. Quoting is | ||
63 | # there to prevent editors from complaining about space-tab. | ||
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
65 | # splitting by setting IFS to empty value.) | ||
66 | as_nl=' | ||
67 | ' | ||
68 | IFS=" "" $as_nl" | ||
69 | |||
70 | # Find who we are. Look in the path if we contain no directory separator. | ||
71 | case $0 in | ||
72 | *[\\/]* ) as_myself=$0 ;; | ||
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
74 | for as_dir in $PATH | ||
75 | do | ||
76 | IFS=$as_save_IFS | ||
77 | test -z "$as_dir" && as_dir=. | ||
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
79 | done | ||
80 | IFS=$as_save_IFS | ||
81 | |||
82 | ;; | ||
83 | esac | ||
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
85 | # in which case we are not to be found in the path. | ||
86 | if test "x$as_myself" = x; then | ||
87 | as_myself=$0 | ||
88 | fi | ||
89 | if test ! -f "$as_myself"; then | ||
90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
91 | { (exit 1); exit 1; } | ||
92 | fi | ||
93 | |||
94 | # Work around bugs in pre-3.0 UWIN ksh. | ||
95 | for as_var in ENV MAIL MAILPATH | ||
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
97 | done | ||
98 | PS1='$ ' | ||
99 | PS2='> ' | ||
100 | PS4='+ ' | ||
101 | |||
102 | # NLS nuisances. | ||
103 | for as_var in \ | ||
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
106 | LC_TELEPHONE LC_TIME | ||
107 | do | ||
108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
109 | eval $as_var=C; export $as_var | ||
110 | else | ||
111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
112 | fi | ||
113 | done | ||
114 | |||
115 | # Required to use basename. | ||
116 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
118 | as_expr=expr | ||
119 | else | ||
120 | as_expr=false | ||
121 | fi | ||
122 | |||
123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
124 | as_basename=basename | ||
125 | else | ||
126 | as_basename=false | ||
127 | fi | ||
128 | |||
129 | |||
130 | # Name of the executable. | ||
131 | as_me=`$as_basename -- "$0" || | ||
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
133 | X"$0" : 'X\(//\)$' \| \ | ||
134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
135 | echo X/"$0" | | ||
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
137 | s//\1/ | ||
138 | q | ||
139 | } | ||
140 | /^X\/\(\/\/\)$/{ | ||
141 | s//\1/ | ||
142 | q | ||
143 | } | ||
144 | /^X\/\(\/\).*/{ | ||
145 | s//\1/ | ||
146 | q | ||
147 | } | ||
148 | s/.*/./; q'` | ||
149 | |||
150 | # CDPATH. | ||
151 | $as_unset CDPATH | ||
152 | |||
153 | |||
154 | if test "x$CONFIG_SHELL" = x; then | ||
155 | if (eval ":") 2>/dev/null; then | ||
156 | as_have_required=yes | ||
157 | else | ||
158 | as_have_required=no | ||
159 | fi | ||
160 | |||
161 | if test $as_have_required = yes && (eval ": | ||
162 | (as_func_return () { | ||
163 | (exit \$1) | ||
164 | } | ||
165 | as_func_success () { | ||
166 | as_func_return 0 | ||
167 | } | ||
168 | as_func_failure () { | ||
169 | as_func_return 1 | ||
170 | } | ||
171 | as_func_ret_success () { | ||
172 | return 0 | ||
173 | } | ||
174 | as_func_ret_failure () { | ||
175 | return 1 | ||
176 | } | ||
177 | |||
178 | exitcode=0 | ||
179 | if as_func_success; then | ||
180 | : | ||
181 | else | ||
182 | exitcode=1 | ||
183 | echo as_func_success failed. | ||
184 | fi | ||
185 | |||
186 | if as_func_failure; then | ||
187 | exitcode=1 | ||
188 | echo as_func_failure succeeded. | ||
189 | fi | ||
190 | |||
191 | if as_func_ret_success; then | ||
192 | : | ||
193 | else | ||
194 | exitcode=1 | ||
195 | echo as_func_ret_success failed. | ||
196 | fi | ||
197 | |||
198 | if as_func_ret_failure; then | ||
199 | exitcode=1 | ||
200 | echo as_func_ret_failure succeeded. | ||
201 | fi | ||
202 | |||
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
204 | : | ||
205 | else | ||
206 | exitcode=1 | ||
207 | echo positional parameters were not saved. | ||
208 | fi | ||
209 | |||
210 | test \$exitcode = 0) || { (exit 1); exit 1; } | ||
211 | |||
212 | ( | ||
213 | as_lineno_1=\$LINENO | ||
214 | as_lineno_2=\$LINENO | ||
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | ||
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | ||
217 | ") 2> /dev/null; then | ||
218 | : | ||
219 | else | ||
220 | as_candidate_shells= | ||
221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | ||
223 | do | ||
224 | IFS=$as_save_IFS | ||
225 | test -z "$as_dir" && as_dir=. | ||
226 | case $as_dir in | ||
227 | /*) | ||
228 | for as_base in sh bash ksh sh5; do | ||
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | ||
230 | done;; | ||
231 | esac | ||
232 | done | ||
233 | IFS=$as_save_IFS | ||
234 | |||
235 | |||
236 | for as_shell in $as_candidate_shells $SHELL; do | ||
237 | # Try only shells that exist, to save several forks. | ||
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | ||
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF | ||
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
241 | emulate sh | ||
242 | NULLCMD=: | ||
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
244 | # is contrary to our usage. Disable this feature. | ||
245 | alias -g '${1+"$@"}'='"$@"' | ||
246 | setopt NO_GLOB_SUBST | ||
247 | else | ||
248 | case `(set -o) 2>/dev/null` in | ||
249 | *posix*) set -o posix ;; | ||
250 | esac | ||
251 | |||
252 | fi | ||
253 | |||
254 | |||
255 | : | ||
256 | _ASEOF | ||
257 | }; then | ||
258 | CONFIG_SHELL=$as_shell | ||
259 | as_have_required=yes | ||
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF | ||
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
262 | emulate sh | ||
263 | NULLCMD=: | ||
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
265 | # is contrary to our usage. Disable this feature. | ||
266 | alias -g '${1+"$@"}'='"$@"' | ||
267 | setopt NO_GLOB_SUBST | ||
268 | else | ||
269 | case `(set -o) 2>/dev/null` in | ||
270 | *posix*) set -o posix ;; | ||
271 | esac | ||
272 | |||
273 | fi | ||
274 | |||
275 | |||
276 | : | ||
277 | (as_func_return () { | ||
278 | (exit $1) | ||
279 | } | ||
280 | as_func_success () { | ||
281 | as_func_return 0 | ||
282 | } | ||
283 | as_func_failure () { | ||
284 | as_func_return 1 | ||
285 | } | ||
286 | as_func_ret_success () { | ||
287 | return 0 | ||
288 | } | ||
289 | as_func_ret_failure () { | ||
290 | return 1 | ||
291 | } | ||
292 | |||
293 | exitcode=0 | ||
294 | if as_func_success; then | ||
295 | : | ||
296 | else | ||
297 | exitcode=1 | ||
298 | echo as_func_success failed. | ||
299 | fi | ||
300 | |||
301 | if as_func_failure; then | ||
302 | exitcode=1 | ||
303 | echo as_func_failure succeeded. | ||
304 | fi | ||
305 | |||
306 | if as_func_ret_success; then | ||
307 | : | ||
308 | else | ||
309 | exitcode=1 | ||
310 | echo as_func_ret_success failed. | ||
311 | fi | ||
312 | |||
313 | if as_func_ret_failure; then | ||
314 | exitcode=1 | ||
315 | echo as_func_ret_failure succeeded. | ||
316 | fi | ||
317 | |||
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then | ||
319 | : | ||
320 | else | ||
321 | exitcode=1 | ||
322 | echo positional parameters were not saved. | ||
323 | fi | ||
324 | |||
325 | test $exitcode = 0) || { (exit 1); exit 1; } | ||
326 | |||
327 | ( | ||
328 | as_lineno_1=$LINENO | ||
329 | as_lineno_2=$LINENO | ||
330 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | ||
332 | |||
333 | _ASEOF | ||
334 | }; then | ||
335 | break | ||
336 | fi | ||
337 | |||
338 | fi | ||
339 | |||
340 | done | ||
341 | |||
342 | if test "x$CONFIG_SHELL" != x; then | ||
343 | for as_var in BASH_ENV ENV | ||
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
345 | done | ||
346 | export CONFIG_SHELL | ||
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | ||
348 | fi | ||
349 | |||
350 | |||
351 | if test $as_have_required = no; then | ||
352 | echo This script requires a shell more modern than all the | ||
353 | echo shells that I found on your system. Please install a | ||
354 | echo modern shell, or manually run the script under such a | ||
355 | echo shell if you do have one. | ||
356 | { (exit 1); exit 1; } | ||
357 | fi | ||
358 | |||
359 | |||
360 | fi | ||
361 | |||
362 | fi | ||
363 | |||
364 | |||
365 | |||
366 | (eval "as_func_return () { | ||
367 | (exit \$1) | ||
368 | } | ||
369 | as_func_success () { | ||
370 | as_func_return 0 | ||
371 | } | ||
372 | as_func_failure () { | ||
373 | as_func_return 1 | ||
374 | } | ||
375 | as_func_ret_success () { | ||
376 | return 0 | ||
377 | } | ||
378 | as_func_ret_failure () { | ||
379 | return 1 | ||
380 | } | ||
381 | |||
382 | exitcode=0 | ||
383 | if as_func_success; then | ||
384 | : | ||
385 | else | ||
386 | exitcode=1 | ||
387 | echo as_func_success failed. | ||
388 | fi | ||
389 | |||
390 | if as_func_failure; then | ||
391 | exitcode=1 | ||
392 | echo as_func_failure succeeded. | ||
393 | fi | ||
394 | |||
395 | if as_func_ret_success; then | ||
396 | : | ||
397 | else | ||
398 | exitcode=1 | ||
399 | echo as_func_ret_success failed. | ||
400 | fi | ||
401 | |||
402 | if as_func_ret_failure; then | ||
403 | exitcode=1 | ||
404 | echo as_func_ret_failure succeeded. | ||
405 | fi | ||
406 | |||
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | ||
408 | : | ||
409 | else | ||
410 | exitcode=1 | ||
411 | echo positional parameters were not saved. | ||
412 | fi | ||
413 | |||
414 | test \$exitcode = 0") || { | ||
415 | echo No shell found that supports shell functions. | ||
416 | echo Please tell autoconf@gnu.org about your system, | ||
417 | echo including any error possibly output before this | ||
418 | echo message | ||
419 | } | ||
420 | |||
421 | |||
422 | |||
423 | as_lineno_1=$LINENO | ||
424 | as_lineno_2=$LINENO | ||
425 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
427 | |||
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
429 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
430 | # line-number line after each line using $LINENO; the second 'sed' | ||
431 | # does the real work. The second script uses 'N' to pair each | ||
432 | # line-number line with the line containing $LINENO, and appends | ||
433 | # trailing '-' during substitution so that $LINENO is not a special | ||
434 | # case at line end. | ||
435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
437 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
438 | sed -n ' | ||
439 | p | ||
440 | /[$]LINENO/= | ||
441 | ' <$as_myself | | ||
442 | sed ' | ||
443 | s/[$]LINENO.*/&-/ | ||
444 | t lineno | ||
445 | b | ||
446 | :lineno | ||
447 | N | ||
448 | :loop | ||
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
450 | t loop | ||
451 | s/-\n.*// | ||
452 | ' >$as_me.lineno && | ||
453 | chmod +x "$as_me.lineno" || | ||
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
455 | { (exit 1); exit 1; }; } | ||
456 | |||
457 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
458 | # (the dirname of $[0] is not the place where we might find the | ||
459 | # original and so on. Autoconf is especially sensitive to this). | ||
460 | . "./$as_me.lineno" | ||
461 | # Exit status is that of the last command. | ||
462 | exit | ||
463 | } | ||
464 | |||
465 | |||
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
467 | as_dirname=dirname | ||
468 | else | ||
469 | as_dirname=false | ||
470 | fi | ||
471 | |||
472 | ECHO_C= ECHO_N= ECHO_T= | ||
473 | case `echo -n x` in | ||
474 | -n*) | ||
475 | case `echo 'x\c'` in | ||
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
477 | *) ECHO_C='\c';; | ||
478 | esac;; | ||
479 | *) | ||
480 | ECHO_N='-n';; | ||
481 | esac | ||
482 | |||
483 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
485 | as_expr=expr | ||
486 | else | ||
487 | as_expr=false | ||
488 | fi | ||
489 | |||
490 | rm -f conf$$ conf$$.exe conf$$.file | ||
491 | if test -d conf$$.dir; then | ||
492 | rm -f conf$$.dir/conf$$.file | ||
493 | else | ||
494 | rm -f conf$$.dir | ||
495 | mkdir conf$$.dir | ||
496 | fi | ||
497 | echo >conf$$.file | ||
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
499 | as_ln_s='ln -s' | ||
500 | # ... but there are two gotchas: | ||
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
503 | # In both cases, we have to default to `cp -p'. | ||
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
505 | as_ln_s='cp -p' | ||
506 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
507 | as_ln_s=ln | ||
508 | else | ||
509 | as_ln_s='cp -p' | ||
510 | fi | ||
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
512 | rmdir conf$$.dir 2>/dev/null | ||
513 | |||
514 | if mkdir -p . 2>/dev/null; then | ||
515 | as_mkdir_p=: | ||
516 | else | ||
517 | test -d ./-p && rmdir ./-p | ||
518 | as_mkdir_p=false | ||
519 | fi | ||
520 | |||
521 | if test -x / >/dev/null 2>&1; then | ||
522 | as_test_x='test -x' | ||
523 | else | ||
524 | if ls -dL / >/dev/null 2>&1; then | ||
525 | as_ls_L_option=L | ||
526 | else | ||
527 | as_ls_L_option= | ||
528 | fi | ||
529 | as_test_x=' | ||
530 | eval sh -c '\'' | ||
531 | if test -d "$1"; then | ||
532 | test -d "$1/."; | ||
533 | else | ||
534 | case $1 in | ||
535 | -*)set "./$1";; | ||
536 | esac; | ||
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | ||
538 | ???[sx]*):;;*)false;;esac;fi | ||
539 | '\'' sh | ||
540 | ' | ||
541 | fi | ||
542 | as_executable_p=$as_test_x | ||
543 | |||
544 | # Sed expression to map a string onto a valid CPP name. | ||
545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
546 | |||
547 | # Sed expression to map a string onto a valid variable name. | ||
548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
549 | |||
550 | |||
551 | |||
552 | |||
553 | # Check that we are running under the correct shell. | ||
554 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
555 | |||
556 | case X$ECHO in | ||
557 | X*--fallback-echo) | ||
558 | # Remove one level of quotation (which was required for Make). | ||
559 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | ||
560 | ;; | ||
561 | esac | ||
562 | |||
563 | echo=${ECHO-echo} | ||
564 | if test "X$1" = X--no-reexec; then | ||
565 | # Discard the --no-reexec flag, and continue. | ||
566 | shift | ||
567 | elif test "X$1" = X--fallback-echo; then | ||
568 | # Avoid inline document here, it may be left over | ||
569 | : | ||
570 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | ||
571 | # Yippee, $echo works! | ||
572 | : | ||
573 | else | ||
574 | # Restart under the correct shell. | ||
575 | exec $SHELL "$0" --no-reexec ${1+"$@"} | ||
576 | fi | ||
577 | |||
578 | if test "X$1" = X--fallback-echo; then | ||
579 | # used as fallback echo | ||
580 | shift | ||
581 | cat <<EOF | ||
582 | $* | ||
583 | EOF | ||
584 | exit 0 | ||
585 | fi | ||
586 | |||
587 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
588 | # if CDPATH is set. | ||
589 | if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | ||
590 | |||
591 | if test -z "$ECHO"; then | ||
592 | if test "X${echo_test_string+set}" != Xset; then | ||
593 | # find a string as large as possible, as long as the shell can cope with it | ||
594 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | ||
595 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | ||
596 | if (echo_test_string="`eval $cmd`") 2>/dev/null && | ||
597 | echo_test_string="`eval $cmd`" && | ||
598 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | ||
599 | then | ||
600 | break | ||
601 | fi | ||
602 | done | ||
603 | fi | ||
604 | |||
605 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
606 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
607 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
608 | : | ||
609 | else | ||
610 | # The Solaris, AIX, and Digital Unix default echo programs unquote | ||
611 | # backslashes. This makes it impossible to quote backslashes using | ||
612 | # echo "$something" | sed 's/\\/\\\\/g' | ||
613 | # | ||
614 | # So, first we look for a working echo in the user's PATH. | ||
615 | |||
616 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
617 | for dir in $PATH /usr/ucb; do | ||
618 | IFS="$lt_save_ifs" | ||
619 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | ||
620 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | ||
621 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | ||
622 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
623 | echo="$dir/echo" | ||
624 | break | ||
625 | fi | ||
626 | done | ||
627 | IFS="$lt_save_ifs" | ||
628 | |||
629 | if test "X$echo" = Xecho; then | ||
630 | # We didn't find a better echo, so look for alternatives. | ||
631 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | ||
632 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | ||
633 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
634 | # This shell has a builtin print -r that does the trick. | ||
635 | echo='print -r' | ||
636 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | ||
637 | test "X$CONFIG_SHELL" != X/bin/ksh; then | ||
638 | # If we have ksh, try running configure again with it. | ||
639 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | ||
640 | export ORIGINAL_CONFIG_SHELL | ||
641 | CONFIG_SHELL=/bin/ksh | ||
642 | export CONFIG_SHELL | ||
643 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | ||
644 | else | ||
645 | # Try using printf. | ||
646 | echo='printf %s\n' | ||
647 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | ||
648 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | ||
649 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
650 | # Cool, printf works | ||
651 | : | ||
652 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
653 | test "X$echo_testing_string" = 'X\t' && | ||
654 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
655 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
656 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | ||
657 | export CONFIG_SHELL | ||
658 | SHELL="$CONFIG_SHELL" | ||
659 | export SHELL | ||
660 | echo="$CONFIG_SHELL $0 --fallback-echo" | ||
661 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | ||
662 | test "X$echo_testing_string" = 'X\t' && | ||
663 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | ||
664 | test "X$echo_testing_string" = "X$echo_test_string"; then | ||
665 | echo="$CONFIG_SHELL $0 --fallback-echo" | ||
666 | else | ||
667 | # maybe with a smaller string... | ||
668 | prev=: | ||
669 | |||
670 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | ||
671 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | ||
672 | then | ||
673 | break | ||
674 | fi | ||
675 | prev="$cmd" | ||
676 | done | ||
677 | |||
678 | if test "$prev" != 'sed 50q "$0"'; then | ||
679 | echo_test_string=`eval $prev` | ||
680 | export echo_test_string | ||
681 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | ||
682 | else | ||
683 | # Oops. We lost completely, so just stick with echo. | ||
684 | echo=echo | ||
685 | fi | ||
686 | fi | ||
687 | fi | ||
688 | fi | ||
689 | fi | ||
690 | fi | ||
691 | |||
692 | # Copy echo and quote the copy suitably for passing to libtool from | ||
693 | # the Makefile, instead of quoting the original, which is used later. | ||
694 | ECHO=$echo | ||
695 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | ||
696 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | ||
697 | fi | ||
698 | |||
699 | |||
700 | |||
701 | |||
702 | tagnames=${tagnames+${tagnames},}CXX | ||
703 | |||
704 | tagnames=${tagnames+${tagnames},}F77 | ||
705 | |||
706 | exec 7<&0 </dev/null 6>&1 | ||
707 | |||
708 | # Name of the host. | ||
709 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | ||
710 | # so uname gets run too. | ||
711 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | ||
712 | |||
713 | # | ||
714 | # Initializations. | ||
715 | # | ||
716 | ac_default_prefix=/usr/local | ||
717 | ac_clean_files= | ||
718 | ac_config_libobj_dir=. | ||
719 | LIBOBJS= | ||
720 | cross_compiling=no | ||
721 | subdirs= | ||
722 | MFLAGS= | ||
723 | MAKEFLAGS= | ||
724 | SHELL=${CONFIG_SHELL-/bin/sh} | ||
725 | |||
726 | # Identity of this package. | ||
727 | PACKAGE_NAME= | ||
728 | PACKAGE_TARNAME= | ||
729 | PACKAGE_VERSION= | ||
730 | PACKAGE_STRING= | ||
731 | PACKAGE_BUGREPORT= | ||
732 | |||
733 | ac_unique_file="configure.in" | ||
734 | # Factoring default headers for most tests. | ||
735 | ac_includes_default="\ | ||
736 | #include <stdio.h> | ||
737 | #ifdef HAVE_SYS_TYPES_H | ||
738 | # include <sys/types.h> | ||
739 | #endif | ||
740 | #ifdef HAVE_SYS_STAT_H | ||
741 | # include <sys/stat.h> | ||
742 | #endif | ||
743 | #ifdef STDC_HEADERS | ||
744 | # include <stdlib.h> | ||
745 | # include <stddef.h> | ||
746 | #else | ||
747 | # ifdef HAVE_STDLIB_H | ||
748 | # include <stdlib.h> | ||
749 | # endif | ||
750 | #endif | ||
751 | #ifdef HAVE_STRING_H | ||
752 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | ||
753 | # include <memory.h> | ||
754 | # endif | ||
755 | # include <string.h> | ||
756 | #endif | ||
757 | #ifdef HAVE_STRINGS_H | ||
758 | # include <strings.h> | ||
759 | #endif | ||
760 | #ifdef HAVE_INTTYPES_H | ||
761 | # include <inttypes.h> | ||
762 | #endif | ||
763 | #ifdef HAVE_STDINT_H | ||
764 | # include <stdint.h> | ||
765 | #endif | ||
766 | #ifdef HAVE_UNISTD_H | ||
767 | # include <unistd.h> | ||
768 | #endif" | ||
769 | |||
770 | ac_subst_vars='SHELL | ||
771 | PATH_SEPARATOR | ||
772 | PACKAGE_NAME | ||
773 | PACKAGE_TARNAME | ||
774 | PACKAGE_VERSION | ||
775 | PACKAGE_STRING | ||
776 | PACKAGE_BUGREPORT | ||
777 | exec_prefix | ||
778 | prefix | ||
779 | program_transform_name | ||
780 | bindir | ||
781 | sbindir | ||
782 | libexecdir | ||
783 | datarootdir | ||
784 | datadir | ||
785 | sysconfdir | ||
786 | sharedstatedir | ||
787 | localstatedir | ||
788 | includedir | ||
789 | oldincludedir | ||
790 | docdir | ||
791 | infodir | ||
792 | htmldir | ||
793 | dvidir | ||
794 | pdfdir | ||
795 | psdir | ||
796 | libdir | ||
797 | localedir | ||
798 | mandir | ||
799 | DEFS | ||
800 | ECHO_C | ||
801 | ECHO_N | ||
802 | ECHO_T | ||
803 | LIBS | ||
804 | build_alias | ||
805 | host_alias | ||
806 | target_alias | ||
807 | INSTALL_PROGRAM | ||
808 | INSTALL_SCRIPT | ||
809 | INSTALL_DATA | ||
810 | am__isrc | ||
811 | CYGPATH_W | ||
812 | PACKAGE | ||
813 | VERSION | ||
814 | ACLOCAL | ||
815 | AUTOCONF | ||
816 | AUTOMAKE | ||
817 | AUTOHEADER | ||
818 | MAKEINFO | ||
819 | install_sh | ||
820 | STRIP | ||
821 | INSTALL_STRIP_PROGRAM | ||
822 | mkdir_p | ||
823 | AWK | ||
824 | SET_MAKE | ||
825 | am__leading_dot | ||
826 | AMTAR | ||
827 | am__tar | ||
828 | am__untar | ||
829 | LTVERSION | ||
830 | CC | ||
831 | CFLAGS | ||
832 | LDFLAGS | ||
833 | CPPFLAGS | ||
834 | ac_ct_CC | ||
835 | EXEEXT | ||
836 | OBJEXT | ||
837 | DEPDIR | ||
838 | am__include | ||
839 | am__quote | ||
840 | AMDEP_TRUE | ||
841 | AMDEP_FALSE | ||
842 | AMDEPBACKSLASH | ||
843 | CCDEPMODE | ||
844 | am__fastdepCC_TRUE | ||
845 | am__fastdepCC_FALSE | ||
846 | LEX | ||
847 | LEX_OUTPUT_ROOT | ||
848 | LEXLIB | ||
849 | CPP | ||
850 | GREP | ||
851 | EGREP | ||
852 | OS_WIN32_TRUE | ||
853 | OS_WIN32_FALSE | ||
854 | build | ||
855 | build_cpu | ||
856 | build_vendor | ||
857 | build_os | ||
858 | host | ||
859 | host_cpu | ||
860 | host_vendor | ||
861 | host_os | ||
862 | LN_S | ||
863 | ECHO | ||
864 | AR | ||
865 | RANLIB | ||
866 | DLLTOOL | ||
867 | AS | ||
868 | OBJDUMP | ||
869 | CXX | ||
870 | CXXFLAGS | ||
871 | ac_ct_CXX | ||
872 | CXXDEPMODE | ||
873 | am__fastdepCXX_TRUE | ||
874 | am__fastdepCXX_FALSE | ||
875 | CXXCPP | ||
876 | F77 | ||
877 | FFLAGS | ||
878 | ac_ct_F77 | ||
879 | LIBTOOL | ||
880 | HTML_DIR | ||
881 | PKG_CONFIG | ||
882 | GTKDOC_CHECK | ||
883 | ENABLE_GTK_DOC_TRUE | ||
884 | ENABLE_GTK_DOC_FALSE | ||
885 | GTK_DOC_USE_LIBTOOL_TRUE | ||
886 | GTK_DOC_USE_LIBTOOL_FALSE | ||
887 | GLIB_CFLAGS | ||
888 | GLIB_LIBS | ||
889 | GLIB_GENMARSHAL | ||
890 | GOBJECT_QUERY | ||
891 | GLIB_MKENUMS | ||
892 | GTK_CFLAGS | ||
893 | GTK_LIBS | ||
894 | GDKPIXBUF_CFLAGS | ||
895 | GDKPIXBUF_LIBS | ||
896 | HAVE_GDKPIXBUF_TRUE | ||
897 | HAVE_GDKPIXBUF_FALSE | ||
898 | XML2_CONFIG | ||
899 | XML_CPPFLAGS | ||
900 | XML_LIBS | ||
901 | LIBXML2_CFLAGS | ||
902 | LIBXML2_LIBS | ||
903 | HAVE_LIBXML2_TRUE | ||
904 | HAVE_LIBXML2_FALSE | ||
905 | LIBGSF_CFLAGS | ||
906 | LIBGSF_LIBS | ||
907 | HAVE_LIBGSF_TRUE | ||
908 | HAVE_LIBGSF_FALSE | ||
909 | MAGIC_LIBS | ||
910 | MATH_LIBS | ||
911 | Z_CFLAGS | ||
912 | Z_LIBS | ||
913 | HAVE_ZLIB_TRUE | ||
914 | HAVE_ZLIB_FALSE | ||
915 | DEBUG | ||
916 | EXPERIMENTAL_TRUE | ||
917 | EXPERIMENTAL_FALSE | ||
918 | HAVE_CXX_TRUE | ||
919 | HAVE_CXX_FALSE | ||
920 | DBG_CFLAGS | ||
921 | PLUGINS_LDFLAGS | ||
922 | LIBOBJS | ||
923 | LTLIBOBJS' | ||
924 | ac_subst_files='' | ||
925 | ac_precious_vars='build_alias | ||
926 | host_alias | ||
927 | target_alias | ||
928 | CC | ||
929 | CFLAGS | ||
930 | LDFLAGS | ||
931 | LIBS | ||
932 | CPPFLAGS | ||
933 | CPP | ||
934 | CXX | ||
935 | CXXFLAGS | ||
936 | CCC | ||
937 | CXXCPP | ||
938 | F77 | ||
939 | FFLAGS | ||
940 | PKG_CONFIG | ||
941 | LIBGSF_CFLAGS | ||
942 | LIBGSF_LIBS' | ||
943 | |||
944 | |||
945 | # Initialize some variables set by options. | ||
946 | ac_init_help= | ||
947 | ac_init_version=false | ||
948 | # The variables have the same names as the options, with | ||
949 | # dashes changed to underlines. | ||
950 | cache_file=/dev/null | ||
951 | exec_prefix=NONE | ||
952 | no_create= | ||
953 | no_recursion= | ||
954 | prefix=NONE | ||
955 | program_prefix=NONE | ||
956 | program_suffix=NONE | ||
957 | program_transform_name=s,x,x, | ||
958 | silent= | ||
959 | site= | ||
960 | srcdir= | ||
961 | verbose= | ||
962 | x_includes=NONE | ||
963 | x_libraries=NONE | ||
964 | |||
965 | # Installation directory options. | ||
966 | # These are left unexpanded so users can "make install exec_prefix=/foo" | ||
967 | # and all the variables that are supposed to be based on exec_prefix | ||
968 | # by default will actually change. | ||
969 | # Use braces instead of parens because sh, perl, etc. also accept them. | ||
970 | # (The list follows the same order as the GNU Coding Standards.) | ||
971 | bindir='${exec_prefix}/bin' | ||
972 | sbindir='${exec_prefix}/sbin' | ||
973 | libexecdir='${exec_prefix}/libexec' | ||
974 | datarootdir='${prefix}/share' | ||
975 | datadir='${datarootdir}' | ||
976 | sysconfdir='${prefix}/etc' | ||
977 | sharedstatedir='${prefix}/com' | ||
978 | localstatedir='${prefix}/var' | ||
979 | includedir='${prefix}/include' | ||
980 | oldincludedir='/usr/include' | ||
981 | docdir='${datarootdir}/doc/${PACKAGE}' | ||
982 | infodir='${datarootdir}/info' | ||
983 | htmldir='${docdir}' | ||
984 | dvidir='${docdir}' | ||
985 | pdfdir='${docdir}' | ||
986 | psdir='${docdir}' | ||
987 | libdir='${exec_prefix}/lib' | ||
988 | localedir='${datarootdir}/locale' | ||
989 | mandir='${datarootdir}/man' | ||
990 | |||
991 | ac_prev= | ||
992 | ac_dashdash= | ||
993 | for ac_option | ||
994 | do | ||
995 | # If the previous option needs an argument, assign it. | ||
996 | if test -n "$ac_prev"; then | ||
997 | eval $ac_prev=\$ac_option | ||
998 | ac_prev= | ||
999 | continue | ||
1000 | fi | ||
1001 | |||
1002 | case $ac_option in | ||
1003 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | ||
1004 | *) ac_optarg=yes ;; | ||
1005 | esac | ||
1006 | |||
1007 | # Accept the important Cygnus configure options, so we can diagnose typos. | ||
1008 | |||
1009 | case $ac_dashdash$ac_option in | ||
1010 | --) | ||
1011 | ac_dashdash=yes ;; | ||
1012 | |||
1013 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | ||
1014 | ac_prev=bindir ;; | ||
1015 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | ||
1016 | bindir=$ac_optarg ;; | ||
1017 | |||
1018 | -build | --build | --buil | --bui | --bu) | ||
1019 | ac_prev=build_alias ;; | ||
1020 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | ||
1021 | build_alias=$ac_optarg ;; | ||
1022 | |||
1023 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | ||
1024 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | ||
1025 | ac_prev=cache_file ;; | ||
1026 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | ||
1027 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | ||
1028 | cache_file=$ac_optarg ;; | ||
1029 | |||
1030 | --config-cache | -C) | ||
1031 | cache_file=config.cache ;; | ||
1032 | |||
1033 | -datadir | --datadir | --datadi | --datad) | ||
1034 | ac_prev=datadir ;; | ||
1035 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | ||
1036 | datadir=$ac_optarg ;; | ||
1037 | |||
1038 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | ||
1039 | | --dataroo | --dataro | --datar) | ||
1040 | ac_prev=datarootdir ;; | ||
1041 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | ||
1042 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | ||
1043 | datarootdir=$ac_optarg ;; | ||
1044 | |||
1045 | -disable-* | --disable-*) | ||
1046 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | ||
1047 | # Reject names that are not valid shell variable names. | ||
1048 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1049 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
1050 | { (exit 1); exit 1; }; } | ||
1051 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | ||
1052 | eval enable_$ac_feature=no ;; | ||
1053 | |||
1054 | -docdir | --docdir | --docdi | --doc | --do) | ||
1055 | ac_prev=docdir ;; | ||
1056 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | ||
1057 | docdir=$ac_optarg ;; | ||
1058 | |||
1059 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | ||
1060 | ac_prev=dvidir ;; | ||
1061 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | ||
1062 | dvidir=$ac_optarg ;; | ||
1063 | |||
1064 | -enable-* | --enable-*) | ||
1065 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | ||
1066 | # Reject names that are not valid shell variable names. | ||
1067 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1068 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | ||
1069 | { (exit 1); exit 1; }; } | ||
1070 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | ||
1071 | eval enable_$ac_feature=\$ac_optarg ;; | ||
1072 | |||
1073 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | ||
1074 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | ||
1075 | | --exec | --exe | --ex) | ||
1076 | ac_prev=exec_prefix ;; | ||
1077 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | ||
1078 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | ||
1079 | | --exec=* | --exe=* | --ex=*) | ||
1080 | exec_prefix=$ac_optarg ;; | ||
1081 | |||
1082 | -gas | --gas | --ga | --g) | ||
1083 | # Obsolete; use --with-gas. | ||
1084 | with_gas=yes ;; | ||
1085 | |||
1086 | -help | --help | --hel | --he | -h) | ||
1087 | ac_init_help=long ;; | ||
1088 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | ||
1089 | ac_init_help=recursive ;; | ||
1090 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | ||
1091 | ac_init_help=short ;; | ||
1092 | |||
1093 | -host | --host | --hos | --ho) | ||
1094 | ac_prev=host_alias ;; | ||
1095 | -host=* | --host=* | --hos=* | --ho=*) | ||
1096 | host_alias=$ac_optarg ;; | ||
1097 | |||
1098 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | ||
1099 | ac_prev=htmldir ;; | ||
1100 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | ||
1101 | | --ht=*) | ||
1102 | htmldir=$ac_optarg ;; | ||
1103 | |||
1104 | -includedir | --includedir | --includedi | --included | --include \ | ||
1105 | | --includ | --inclu | --incl | --inc) | ||
1106 | ac_prev=includedir ;; | ||
1107 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | ||
1108 | | --includ=* | --inclu=* | --incl=* | --inc=*) | ||
1109 | includedir=$ac_optarg ;; | ||
1110 | |||
1111 | -infodir | --infodir | --infodi | --infod | --info | --inf) | ||
1112 | ac_prev=infodir ;; | ||
1113 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | ||
1114 | infodir=$ac_optarg ;; | ||
1115 | |||
1116 | -libdir | --libdir | --libdi | --libd) | ||
1117 | ac_prev=libdir ;; | ||
1118 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | ||
1119 | libdir=$ac_optarg ;; | ||
1120 | |||
1121 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | ||
1122 | | --libexe | --libex | --libe) | ||
1123 | ac_prev=libexecdir ;; | ||
1124 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | ||
1125 | | --libexe=* | --libex=* | --libe=*) | ||
1126 | libexecdir=$ac_optarg ;; | ||
1127 | |||
1128 | -localedir | --localedir | --localedi | --localed | --locale) | ||
1129 | ac_prev=localedir ;; | ||
1130 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | ||
1131 | localedir=$ac_optarg ;; | ||
1132 | |||
1133 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | ||
1134 | | --localstate | --localstat | --localsta | --localst | --locals) | ||
1135 | ac_prev=localstatedir ;; | ||
1136 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | ||
1137 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | ||
1138 | localstatedir=$ac_optarg ;; | ||
1139 | |||
1140 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | ||
1141 | ac_prev=mandir ;; | ||
1142 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | ||
1143 | mandir=$ac_optarg ;; | ||
1144 | |||
1145 | -nfp | --nfp | --nf) | ||
1146 | # Obsolete; use --without-fp. | ||
1147 | with_fp=no ;; | ||
1148 | |||
1149 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | ||
1150 | | --no-cr | --no-c | -n) | ||
1151 | no_create=yes ;; | ||
1152 | |||
1153 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | ||
1154 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | ||
1155 | no_recursion=yes ;; | ||
1156 | |||
1157 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | ||
1158 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | ||
1159 | | --oldin | --oldi | --old | --ol | --o) | ||
1160 | ac_prev=oldincludedir ;; | ||
1161 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | ||
1162 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | ||
1163 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | ||
1164 | oldincludedir=$ac_optarg ;; | ||
1165 | |||
1166 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | ||
1167 | ac_prev=prefix ;; | ||
1168 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | ||
1169 | prefix=$ac_optarg ;; | ||
1170 | |||
1171 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | ||
1172 | | --program-pre | --program-pr | --program-p) | ||
1173 | ac_prev=program_prefix ;; | ||
1174 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | ||
1175 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | ||
1176 | program_prefix=$ac_optarg ;; | ||
1177 | |||
1178 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | ||
1179 | | --program-suf | --program-su | --program-s) | ||
1180 | ac_prev=program_suffix ;; | ||
1181 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | ||
1182 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | ||
1183 | program_suffix=$ac_optarg ;; | ||
1184 | |||
1185 | -program-transform-name | --program-transform-name \ | ||
1186 | | --program-transform-nam | --program-transform-na \ | ||
1187 | | --program-transform-n | --program-transform- \ | ||
1188 | | --program-transform | --program-transfor \ | ||
1189 | | --program-transfo | --program-transf \ | ||
1190 | | --program-trans | --program-tran \ | ||
1191 | | --progr-tra | --program-tr | --program-t) | ||
1192 | ac_prev=program_transform_name ;; | ||
1193 | -program-transform-name=* | --program-transform-name=* \ | ||
1194 | | --program-transform-nam=* | --program-transform-na=* \ | ||
1195 | | --program-transform-n=* | --program-transform-=* \ | ||
1196 | | --program-transform=* | --program-transfor=* \ | ||
1197 | | --program-transfo=* | --program-transf=* \ | ||
1198 | | --program-trans=* | --program-tran=* \ | ||
1199 | | --progr-tra=* | --program-tr=* | --program-t=*) | ||
1200 | program_transform_name=$ac_optarg ;; | ||
1201 | |||
1202 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | ||
1203 | ac_prev=pdfdir ;; | ||
1204 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | ||
1205 | pdfdir=$ac_optarg ;; | ||
1206 | |||
1207 | -psdir | --psdir | --psdi | --psd | --ps) | ||
1208 | ac_prev=psdir ;; | ||
1209 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | ||
1210 | psdir=$ac_optarg ;; | ||
1211 | |||
1212 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1213 | | -silent | --silent | --silen | --sile | --sil) | ||
1214 | silent=yes ;; | ||
1215 | |||
1216 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | ||
1217 | ac_prev=sbindir ;; | ||
1218 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | ||
1219 | | --sbi=* | --sb=*) | ||
1220 | sbindir=$ac_optarg ;; | ||
1221 | |||
1222 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | ||
1223 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | ||
1224 | | --sharedst | --shareds | --shared | --share | --shar \ | ||
1225 | | --sha | --sh) | ||
1226 | ac_prev=sharedstatedir ;; | ||
1227 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | ||
1228 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | ||
1229 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | ||
1230 | | --sha=* | --sh=*) | ||
1231 | sharedstatedir=$ac_optarg ;; | ||
1232 | |||
1233 | -site | --site | --sit) | ||
1234 | ac_prev=site ;; | ||
1235 | -site=* | --site=* | --sit=*) | ||
1236 | site=$ac_optarg ;; | ||
1237 | |||
1238 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | ||
1239 | ac_prev=srcdir ;; | ||
1240 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | ||
1241 | srcdir=$ac_optarg ;; | ||
1242 | |||
1243 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | ||
1244 | | --syscon | --sysco | --sysc | --sys | --sy) | ||
1245 | ac_prev=sysconfdir ;; | ||
1246 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | ||
1247 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | ||
1248 | sysconfdir=$ac_optarg ;; | ||
1249 | |||
1250 | -target | --target | --targe | --targ | --tar | --ta | --t) | ||
1251 | ac_prev=target_alias ;; | ||
1252 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | ||
1253 | target_alias=$ac_optarg ;; | ||
1254 | |||
1255 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | ||
1256 | verbose=yes ;; | ||
1257 | |||
1258 | -version | --version | --versio | --versi | --vers | -V) | ||
1259 | ac_init_version=: ;; | ||
1260 | |||
1261 | -with-* | --with-*) | ||
1262 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | ||
1263 | # Reject names that are not valid shell variable names. | ||
1264 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1265 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1266 | { (exit 1); exit 1; }; } | ||
1267 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | ||
1268 | eval with_$ac_package=\$ac_optarg ;; | ||
1269 | |||
1270 | -without-* | --without-*) | ||
1271 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | ||
1272 | # Reject names that are not valid shell variable names. | ||
1273 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1274 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | ||
1275 | { (exit 1); exit 1; }; } | ||
1276 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | ||
1277 | eval with_$ac_package=no ;; | ||
1278 | |||
1279 | --x) | ||
1280 | # Obsolete; use --with-x. | ||
1281 | with_x=yes ;; | ||
1282 | |||
1283 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | ||
1284 | | --x-incl | --x-inc | --x-in | --x-i) | ||
1285 | ac_prev=x_includes ;; | ||
1286 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | ||
1287 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | ||
1288 | x_includes=$ac_optarg ;; | ||
1289 | |||
1290 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | ||
1291 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | ||
1292 | ac_prev=x_libraries ;; | ||
1293 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | ||
1294 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | ||
1295 | x_libraries=$ac_optarg ;; | ||
1296 | |||
1297 | -*) { echo "$as_me: error: unrecognized option: $ac_option | ||
1298 | Try \`$0 --help' for more information." >&2 | ||
1299 | { (exit 1); exit 1; }; } | ||
1300 | ;; | ||
1301 | |||
1302 | *=*) | ||
1303 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | ||
1304 | # Reject names that are not valid shell variable names. | ||
1305 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | ||
1306 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | ||
1307 | { (exit 1); exit 1; }; } | ||
1308 | eval $ac_envvar=\$ac_optarg | ||
1309 | export $ac_envvar ;; | ||
1310 | |||
1311 | *) | ||
1312 | # FIXME: should be removed in autoconf 3.0. | ||
1313 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | ||
1314 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | ||
1315 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | ||
1316 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | ||
1317 | ;; | ||
1318 | |||
1319 | esac | ||
1320 | done | ||
1321 | |||
1322 | if test -n "$ac_prev"; then | ||
1323 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | ||
1324 | { echo "$as_me: error: missing argument to $ac_option" >&2 | ||
1325 | { (exit 1); exit 1; }; } | ||
1326 | fi | ||
1327 | |||
1328 | # Be sure to have absolute directory names. | ||
1329 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | ||
1330 | datadir sysconfdir sharedstatedir localstatedir includedir \ | ||
1331 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | ||
1332 | libdir localedir mandir | ||
1333 | do | ||
1334 | eval ac_val=\$$ac_var | ||
1335 | case $ac_val in | ||
1336 | [\\/$]* | ?:[\\/]* ) continue;; | ||
1337 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | ||
1338 | esac | ||
1339 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | ||
1340 | { (exit 1); exit 1; }; } | ||
1341 | done | ||
1342 | |||
1343 | # There might be people who depend on the old broken behavior: `$host' | ||
1344 | # used to hold the argument of --host etc. | ||
1345 | # FIXME: To remove some day. | ||
1346 | build=$build_alias | ||
1347 | host=$host_alias | ||
1348 | target=$target_alias | ||
1349 | |||
1350 | # FIXME: To remove some day. | ||
1351 | if test "x$host_alias" != x; then | ||
1352 | if test "x$build_alias" = x; then | ||
1353 | cross_compiling=maybe | ||
1354 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | ||
1355 | If a cross compiler is detected then cross compile mode will be used." >&2 | ||
1356 | elif test "x$build_alias" != "x$host_alias"; then | ||
1357 | cross_compiling=yes | ||
1358 | fi | ||
1359 | fi | ||
1360 | |||
1361 | ac_tool_prefix= | ||
1362 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | ||
1363 | |||
1364 | test "$silent" = yes && exec 6>/dev/null | ||
1365 | |||
1366 | |||
1367 | ac_pwd=`pwd` && test -n "$ac_pwd" && | ||
1368 | ac_ls_di=`ls -di .` && | ||
1369 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | ||
1370 | { echo "$as_me: error: Working directory cannot be determined" >&2 | ||
1371 | { (exit 1); exit 1; }; } | ||
1372 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | ||
1373 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | ||
1374 | { (exit 1); exit 1; }; } | ||
1375 | |||
1376 | |||
1377 | # Find the source files, if location was not specified. | ||
1378 | if test -z "$srcdir"; then | ||
1379 | ac_srcdir_defaulted=yes | ||
1380 | # Try the directory containing this script, then the parent directory. | ||
1381 | ac_confdir=`$as_dirname -- "$0" || | ||
1382 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
1383 | X"$0" : 'X\(//\)[^/]' \| \ | ||
1384 | X"$0" : 'X\(//\)$' \| \ | ||
1385 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
1386 | echo X"$0" | | ||
1387 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
1388 | s//\1/ | ||
1389 | q | ||
1390 | } | ||
1391 | /^X\(\/\/\)[^/].*/{ | ||
1392 | s//\1/ | ||
1393 | q | ||
1394 | } | ||
1395 | /^X\(\/\/\)$/{ | ||
1396 | s//\1/ | ||
1397 | q | ||
1398 | } | ||
1399 | /^X\(\/\).*/{ | ||
1400 | s//\1/ | ||
1401 | q | ||
1402 | } | ||
1403 | s/.*/./; q'` | ||
1404 | srcdir=$ac_confdir | ||
1405 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1406 | srcdir=.. | ||
1407 | fi | ||
1408 | else | ||
1409 | ac_srcdir_defaulted=no | ||
1410 | fi | ||
1411 | if test ! -r "$srcdir/$ac_unique_file"; then | ||
1412 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | ||
1413 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | ||
1414 | { (exit 1); exit 1; }; } | ||
1415 | fi | ||
1416 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | ||
1417 | ac_abs_confdir=`( | ||
1418 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | ||
1419 | { (exit 1); exit 1; }; } | ||
1420 | pwd)` | ||
1421 | # When building in place, set srcdir=. | ||
1422 | if test "$ac_abs_confdir" = "$ac_pwd"; then | ||
1423 | srcdir=. | ||
1424 | fi | ||
1425 | # Remove unnecessary trailing slashes from srcdir. | ||
1426 | # Double slashes in file names in object file debugging info | ||
1427 | # mess up M-x gdb in Emacs. | ||
1428 | case $srcdir in | ||
1429 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | ||
1430 | esac | ||
1431 | for ac_var in $ac_precious_vars; do | ||
1432 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | ||
1433 | eval ac_env_${ac_var}_value=\$${ac_var} | ||
1434 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | ||
1435 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | ||
1436 | done | ||
1437 | |||
1438 | # | ||
1439 | # Report the --help message. | ||
1440 | # | ||
1441 | if test "$ac_init_help" = "long"; then | ||
1442 | # Omit some internal or obsolete options to make the list less imposing. | ||
1443 | # This message is too long to be a string in the A/UX 3.1 sh. | ||
1444 | cat <<_ACEOF | ||
1445 | \`configure' configures this package to adapt to many kinds of systems. | ||
1446 | |||
1447 | Usage: $0 [OPTION]... [VAR=VALUE]... | ||
1448 | |||
1449 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | ||
1450 | VAR=VALUE. See below for descriptions of some of the useful variables. | ||
1451 | |||
1452 | Defaults for the options are specified in brackets. | ||
1453 | |||
1454 | Configuration: | ||
1455 | -h, --help display this help and exit | ||
1456 | --help=short display options specific to this package | ||
1457 | --help=recursive display the short help of all the included packages | ||
1458 | -V, --version display version information and exit | ||
1459 | -q, --quiet, --silent do not print \`checking...' messages | ||
1460 | --cache-file=FILE cache test results in FILE [disabled] | ||
1461 | -C, --config-cache alias for \`--cache-file=config.cache' | ||
1462 | -n, --no-create do not create output files | ||
1463 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | ||
1464 | |||
1465 | Installation directories: | ||
1466 | --prefix=PREFIX install architecture-independent files in PREFIX | ||
1467 | [$ac_default_prefix] | ||
1468 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | ||
1469 | [PREFIX] | ||
1470 | |||
1471 | By default, \`make install' will install all the files in | ||
1472 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | ||
1473 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | ||
1474 | for instance \`--prefix=\$HOME'. | ||
1475 | |||
1476 | For better control, use the options below. | ||
1477 | |||
1478 | Fine tuning of the installation directories: | ||
1479 | --bindir=DIR user executables [EPREFIX/bin] | ||
1480 | --sbindir=DIR system admin executables [EPREFIX/sbin] | ||
1481 | --libexecdir=DIR program executables [EPREFIX/libexec] | ||
1482 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | ||
1483 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | ||
1484 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | ||
1485 | --libdir=DIR object code libraries [EPREFIX/lib] | ||
1486 | --includedir=DIR C header files [PREFIX/include] | ||
1487 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | ||
1488 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | ||
1489 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | ||
1490 | --infodir=DIR info documentation [DATAROOTDIR/info] | ||
1491 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | ||
1492 | --mandir=DIR man documentation [DATAROOTDIR/man] | ||
1493 | --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] | ||
1494 | --htmldir=DIR html documentation [DOCDIR] | ||
1495 | --dvidir=DIR dvi documentation [DOCDIR] | ||
1496 | --pdfdir=DIR pdf documentation [DOCDIR] | ||
1497 | --psdir=DIR ps documentation [DOCDIR] | ||
1498 | _ACEOF | ||
1499 | |||
1500 | cat <<\_ACEOF | ||
1501 | |||
1502 | Program names: | ||
1503 | --program-prefix=PREFIX prepend PREFIX to installed program names | ||
1504 | --program-suffix=SUFFIX append SUFFIX to installed program names | ||
1505 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | ||
1506 | |||
1507 | System types: | ||
1508 | --build=BUILD configure for building on BUILD [guessed] | ||
1509 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | ||
1510 | _ACEOF | ||
1511 | fi | ||
1512 | |||
1513 | if test -n "$ac_init_help"; then | ||
1514 | |||
1515 | cat <<\_ACEOF | ||
1516 | |||
1517 | Optional Features: | ||
1518 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | ||
1519 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | ||
1520 | --disable-dependency-tracking speeds up one-time build | ||
1521 | --enable-dependency-tracking do not reject slow dependency extractors | ||
1522 | --enable-static[=PKGS] build static libraries [default=no] | ||
1523 | --enable-shared[=PKGS] build shared libraries [default=yes] | ||
1524 | --enable-fast-install[=PKGS] | ||
1525 | optimize for fast installation [default=yes] | ||
1526 | --disable-libtool-lock avoid locking (might break parallel builds) | ||
1527 | --enable-gtk-doc use gtk-doc to build documentation [default=no] | ||
1528 | --disable-glibtest do not try to compile and run a test GLIB program | ||
1529 | --disable-gtktest do not try to compile and run a test GTK+ program | ||
1530 | --disable-xmltest Do not try to compile and run a test LIBXML program | ||
1531 | --disable-libmagic disable file type detection using libmagic | ||
1532 | --enable-debug[=LVL] enable debug level LVL or 1 (default is 0) | ||
1533 | --enable-experimental enable experimental and unfinished plugins | ||
1534 | --enable-cxxtest enable C++ test | ||
1535 | --enable-profile enable gprof profiling | ||
1536 | |||
1537 | Optional Packages: | ||
1538 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | ||
1539 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | ||
1540 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | ||
1541 | --with-pic try to use only PIC/non-PIC objects [default=use | ||
1542 | both] | ||
1543 | --with-tags[=TAGS] include additional configurations [automatic] | ||
1544 | --with-html-dir=PATH path to installed docs | ||
1545 | --with-xml-prefix=PFX Prefix where libxml is installed (optional) | ||
1546 | --with-xml-exec-prefix=PFX Exec prefix where libxml is installed (optional) | ||
1547 | --with-zlib=DIR use libz in DIR | ||
1548 | |||
1549 | Some influential environment variables: | ||
1550 | CC C compiler command | ||
1551 | CFLAGS C compiler flags | ||
1552 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | ||
1553 | nonstandard directory <lib dir> | ||
1554 | LIBS libraries to pass to the linker, e.g. -l<library> | ||
1555 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | ||
1556 | you have headers in a nonstandard directory <include dir> | ||
1557 | CPP C preprocessor | ||
1558 | CXX C++ compiler command | ||
1559 | CXXFLAGS C++ compiler flags | ||
1560 | CXXCPP C++ preprocessor | ||
1561 | F77 Fortran 77 compiler command | ||
1562 | FFLAGS Fortran 77 compiler flags | ||
1563 | PKG_CONFIG path to pkg-config utility | ||
1564 | LIBGSF_CFLAGS | ||
1565 | C compiler flags for LIBGSF, overriding pkg-config | ||
1566 | LIBGSF_LIBS linker flags for LIBGSF, overriding pkg-config | ||
1567 | |||
1568 | Use these variables to override the choices made by `configure' or to help | ||
1569 | it to find libraries and programs with nonstandard names/locations. | ||
1570 | |||
1571 | _ACEOF | ||
1572 | ac_status=$? | ||
1573 | fi | ||
1574 | |||
1575 | if test "$ac_init_help" = "recursive"; then | ||
1576 | # If there are subdirs, report their specific --help. | ||
1577 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | ||
1578 | test -d "$ac_dir" || continue | ||
1579 | ac_builddir=. | ||
1580 | |||
1581 | case "$ac_dir" in | ||
1582 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1583 | *) | ||
1584 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
1585 | # A ".." for each directory in $ac_dir_suffix. | ||
1586 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
1587 | case $ac_top_builddir_sub in | ||
1588 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
1589 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
1590 | esac ;; | ||
1591 | esac | ||
1592 | ac_abs_top_builddir=$ac_pwd | ||
1593 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
1594 | # for backward compatibility: | ||
1595 | ac_top_builddir=$ac_top_build_prefix | ||
1596 | |||
1597 | case $srcdir in | ||
1598 | .) # We are building in place. | ||
1599 | ac_srcdir=. | ||
1600 | ac_top_srcdir=$ac_top_builddir_sub | ||
1601 | ac_abs_top_srcdir=$ac_pwd ;; | ||
1602 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
1603 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
1604 | ac_top_srcdir=$srcdir | ||
1605 | ac_abs_top_srcdir=$srcdir ;; | ||
1606 | *) # Relative name. | ||
1607 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
1608 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
1609 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
1610 | esac | ||
1611 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
1612 | |||
1613 | cd "$ac_dir" || { ac_status=$?; continue; } | ||
1614 | # Check for guested configure. | ||
1615 | if test -f "$ac_srcdir/configure.gnu"; then | ||
1616 | echo && | ||
1617 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | ||
1618 | elif test -f "$ac_srcdir/configure"; then | ||
1619 | echo && | ||
1620 | $SHELL "$ac_srcdir/configure" --help=recursive | ||
1621 | else | ||
1622 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | ||
1623 | fi || ac_status=$? | ||
1624 | cd "$ac_pwd" || { ac_status=$?; break; } | ||
1625 | done | ||
1626 | fi | ||
1627 | |||
1628 | test -n "$ac_init_help" && exit $ac_status | ||
1629 | if $ac_init_version; then | ||
1630 | cat <<\_ACEOF | ||
1631 | configure | ||
1632 | generated by GNU Autoconf 2.61 | ||
1633 | |||
1634 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | ||
1635 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | ||
1636 | This configure script is free software; the Free Software Foundation | ||
1637 | gives unlimited permission to copy, distribute and modify it. | ||
1638 | _ACEOF | ||
1639 | exit | ||
1640 | fi | ||
1641 | cat >config.log <<_ACEOF | ||
1642 | This file contains any messages produced by compilers while | ||
1643 | running configure, to aid debugging if configure makes a mistake. | ||
1644 | |||
1645 | It was created by $as_me, which was | ||
1646 | generated by GNU Autoconf 2.61. Invocation command line was | ||
1647 | |||
1648 | $ $0 $@ | ||
1649 | |||
1650 | _ACEOF | ||
1651 | exec 5>>config.log | ||
1652 | { | ||
1653 | cat <<_ASUNAME | ||
1654 | ## --------- ## | ||
1655 | ## Platform. ## | ||
1656 | ## --------- ## | ||
1657 | |||
1658 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
1659 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | ||
1660 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | ||
1661 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | ||
1662 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | ||
1663 | |||
1664 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | ||
1665 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | ||
1666 | |||
1667 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | ||
1668 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | ||
1669 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | ||
1670 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | ||
1671 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | ||
1672 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | ||
1673 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | ||
1674 | |||
1675 | _ASUNAME | ||
1676 | |||
1677 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
1678 | for as_dir in $PATH | ||
1679 | do | ||
1680 | IFS=$as_save_IFS | ||
1681 | test -z "$as_dir" && as_dir=. | ||
1682 | echo "PATH: $as_dir" | ||
1683 | done | ||
1684 | IFS=$as_save_IFS | ||
1685 | |||
1686 | } >&5 | ||
1687 | |||
1688 | cat >&5 <<_ACEOF | ||
1689 | |||
1690 | |||
1691 | ## ----------- ## | ||
1692 | ## Core tests. ## | ||
1693 | ## ----------- ## | ||
1694 | |||
1695 | _ACEOF | ||
1696 | |||
1697 | |||
1698 | # Keep a trace of the command line. | ||
1699 | # Strip out --no-create and --no-recursion so they do not pile up. | ||
1700 | # Strip out --silent because we don't want to record it for future runs. | ||
1701 | # Also quote any args containing shell meta-characters. | ||
1702 | # Make two passes to allow for proper duplicate-argument suppression. | ||
1703 | ac_configure_args= | ||
1704 | ac_configure_args0= | ||
1705 | ac_configure_args1= | ||
1706 | ac_must_keep_next=false | ||
1707 | for ac_pass in 1 2 | ||
1708 | do | ||
1709 | for ac_arg | ||
1710 | do | ||
1711 | case $ac_arg in | ||
1712 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | ||
1713 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
1714 | | -silent | --silent | --silen | --sile | --sil) | ||
1715 | continue ;; | ||
1716 | *\'*) | ||
1717 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1718 | esac | ||
1719 | case $ac_pass in | ||
1720 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | ||
1721 | 2) | ||
1722 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | ||
1723 | if test $ac_must_keep_next = true; then | ||
1724 | ac_must_keep_next=false # Got value, back to normal. | ||
1725 | else | ||
1726 | case $ac_arg in | ||
1727 | *=* | --config-cache | -C | -disable-* | --disable-* \ | ||
1728 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | ||
1729 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | ||
1730 | | -with-* | --with-* | -without-* | --without-* | --x) | ||
1731 | case "$ac_configure_args0 " in | ||
1732 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | ||
1733 | esac | ||
1734 | ;; | ||
1735 | -* ) ac_must_keep_next=true ;; | ||
1736 | esac | ||
1737 | fi | ||
1738 | ac_configure_args="$ac_configure_args '$ac_arg'" | ||
1739 | ;; | ||
1740 | esac | ||
1741 | done | ||
1742 | done | ||
1743 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | ||
1744 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | ||
1745 | |||
1746 | # When interrupted or exit'd, cleanup temporary files, and complete | ||
1747 | # config.log. We remove comments because anyway the quotes in there | ||
1748 | # would cause problems or look ugly. | ||
1749 | # WARNING: Use '\'' to represent an apostrophe within the trap. | ||
1750 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | ||
1751 | trap 'exit_status=$? | ||
1752 | # Save into config.log some information that might help in debugging. | ||
1753 | { | ||
1754 | echo | ||
1755 | |||
1756 | cat <<\_ASBOX | ||
1757 | ## ---------------- ## | ||
1758 | ## Cache variables. ## | ||
1759 | ## ---------------- ## | ||
1760 | _ASBOX | ||
1761 | echo | ||
1762 | # The following way of writing the cache mishandles newlines in values, | ||
1763 | ( | ||
1764 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | ||
1765 | eval ac_val=\$$ac_var | ||
1766 | case $ac_val in #( | ||
1767 | *${as_nl}*) | ||
1768 | case $ac_var in #( | ||
1769 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
1770 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
1771 | esac | ||
1772 | case $ac_var in #( | ||
1773 | _ | IFS | as_nl) ;; #( | ||
1774 | *) $as_unset $ac_var ;; | ||
1775 | esac ;; | ||
1776 | esac | ||
1777 | done | ||
1778 | (set) 2>&1 | | ||
1779 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | ||
1780 | *${as_nl}ac_space=\ *) | ||
1781 | sed -n \ | ||
1782 | "s/'\''/'\''\\\\'\'''\''/g; | ||
1783 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | ||
1784 | ;; #( | ||
1785 | *) | ||
1786 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
1787 | ;; | ||
1788 | esac | | ||
1789 | sort | ||
1790 | ) | ||
1791 | echo | ||
1792 | |||
1793 | cat <<\_ASBOX | ||
1794 | ## ----------------- ## | ||
1795 | ## Output variables. ## | ||
1796 | ## ----------------- ## | ||
1797 | _ASBOX | ||
1798 | echo | ||
1799 | for ac_var in $ac_subst_vars | ||
1800 | do | ||
1801 | eval ac_val=\$$ac_var | ||
1802 | case $ac_val in | ||
1803 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1804 | esac | ||
1805 | echo "$ac_var='\''$ac_val'\''" | ||
1806 | done | sort | ||
1807 | echo | ||
1808 | |||
1809 | if test -n "$ac_subst_files"; then | ||
1810 | cat <<\_ASBOX | ||
1811 | ## ------------------- ## | ||
1812 | ## File substitutions. ## | ||
1813 | ## ------------------- ## | ||
1814 | _ASBOX | ||
1815 | echo | ||
1816 | for ac_var in $ac_subst_files | ||
1817 | do | ||
1818 | eval ac_val=\$$ac_var | ||
1819 | case $ac_val in | ||
1820 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | ||
1821 | esac | ||
1822 | echo "$ac_var='\''$ac_val'\''" | ||
1823 | done | sort | ||
1824 | echo | ||
1825 | fi | ||
1826 | |||
1827 | if test -s confdefs.h; then | ||
1828 | cat <<\_ASBOX | ||
1829 | ## ----------- ## | ||
1830 | ## confdefs.h. ## | ||
1831 | ## ----------- ## | ||
1832 | _ASBOX | ||
1833 | echo | ||
1834 | cat confdefs.h | ||
1835 | echo | ||
1836 | fi | ||
1837 | test "$ac_signal" != 0 && | ||
1838 | echo "$as_me: caught signal $ac_signal" | ||
1839 | echo "$as_me: exit $exit_status" | ||
1840 | } >&5 | ||
1841 | rm -f core *.core core.conftest.* && | ||
1842 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | ||
1843 | exit $exit_status | ||
1844 | ' 0 | ||
1845 | for ac_signal in 1 2 13 15; do | ||
1846 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | ||
1847 | done | ||
1848 | ac_signal=0 | ||
1849 | |||
1850 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | ||
1851 | rm -f -r conftest* confdefs.h | ||
1852 | |||
1853 | # Predefined preprocessor variables. | ||
1854 | |||
1855 | cat >>confdefs.h <<_ACEOF | ||
1856 | #define PACKAGE_NAME "$PACKAGE_NAME" | ||
1857 | _ACEOF | ||
1858 | |||
1859 | |||
1860 | cat >>confdefs.h <<_ACEOF | ||
1861 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | ||
1862 | _ACEOF | ||
1863 | |||
1864 | |||
1865 | cat >>confdefs.h <<_ACEOF | ||
1866 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | ||
1867 | _ACEOF | ||
1868 | |||
1869 | |||
1870 | cat >>confdefs.h <<_ACEOF | ||
1871 | #define PACKAGE_STRING "$PACKAGE_STRING" | ||
1872 | _ACEOF | ||
1873 | |||
1874 | |||
1875 | cat >>confdefs.h <<_ACEOF | ||
1876 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | ||
1877 | _ACEOF | ||
1878 | |||
1879 | |||
1880 | # Let the site file select an alternate cache file if it wants to. | ||
1881 | # Prefer explicitly selected file to automatically selected ones. | ||
1882 | if test -n "$CONFIG_SITE"; then | ||
1883 | set x "$CONFIG_SITE" | ||
1884 | elif test "x$prefix" != xNONE; then | ||
1885 | set x "$prefix/share/config.site" "$prefix/etc/config.site" | ||
1886 | else | ||
1887 | set x "$ac_default_prefix/share/config.site" \ | ||
1888 | "$ac_default_prefix/etc/config.site" | ||
1889 | fi | ||
1890 | shift | ||
1891 | for ac_site_file | ||
1892 | do | ||
1893 | if test -r "$ac_site_file"; then | ||
1894 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | ||
1895 | echo "$as_me: loading site script $ac_site_file" >&6;} | ||
1896 | sed 's/^/| /' "$ac_site_file" >&5 | ||
1897 | . "$ac_site_file" | ||
1898 | fi | ||
1899 | done | ||
1900 | |||
1901 | if test -r "$cache_file"; then | ||
1902 | # Some versions of bash will fail to source /dev/null (special | ||
1903 | # files actually), so we avoid doing that. | ||
1904 | if test -f "$cache_file"; then | ||
1905 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | ||
1906 | echo "$as_me: loading cache $cache_file" >&6;} | ||
1907 | case $cache_file in | ||
1908 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | ||
1909 | *) . "./$cache_file";; | ||
1910 | esac | ||
1911 | fi | ||
1912 | else | ||
1913 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | ||
1914 | echo "$as_me: creating cache $cache_file" >&6;} | ||
1915 | >$cache_file | ||
1916 | fi | ||
1917 | |||
1918 | # Check that the precious variables saved in the cache have kept the same | ||
1919 | # value. | ||
1920 | ac_cache_corrupted=false | ||
1921 | for ac_var in $ac_precious_vars; do | ||
1922 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | ||
1923 | eval ac_new_set=\$ac_env_${ac_var}_set | ||
1924 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | ||
1925 | eval ac_new_val=\$ac_env_${ac_var}_value | ||
1926 | case $ac_old_set,$ac_new_set in | ||
1927 | set,) | ||
1928 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | ||
1929 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | ||
1930 | ac_cache_corrupted=: ;; | ||
1931 | ,set) | ||
1932 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | ||
1933 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | ||
1934 | ac_cache_corrupted=: ;; | ||
1935 | ,);; | ||
1936 | *) | ||
1937 | if test "x$ac_old_val" != "x$ac_new_val"; then | ||
1938 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | ||
1939 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | ||
1940 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | ||
1941 | echo "$as_me: former value: $ac_old_val" >&2;} | ||
1942 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | ||
1943 | echo "$as_me: current value: $ac_new_val" >&2;} | ||
1944 | ac_cache_corrupted=: | ||
1945 | fi;; | ||
1946 | esac | ||
1947 | # Pass precious variables to config.status. | ||
1948 | if test "$ac_new_set" = set; then | ||
1949 | case $ac_new_val in | ||
1950 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | ||
1951 | *) ac_arg=$ac_var=$ac_new_val ;; | ||
1952 | esac | ||
1953 | case " $ac_configure_args " in | ||
1954 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | ||
1955 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | ||
1956 | esac | ||
1957 | fi | ||
1958 | done | ||
1959 | if $ac_cache_corrupted; then | ||
1960 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | ||
1961 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | ||
1962 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | ||
1963 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | ||
1964 | { (exit 1); exit 1; }; } | ||
1965 | fi | ||
1966 | |||
1967 | |||
1968 | |||
1969 | |||
1970 | |||
1971 | |||
1972 | |||
1973 | |||
1974 | |||
1975 | |||
1976 | |||
1977 | |||
1978 | |||
1979 | |||
1980 | |||
1981 | |||
1982 | |||
1983 | ac_ext=c | ||
1984 | ac_cpp='$CPP $CPPFLAGS' | ||
1985 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
1986 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
1987 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
1988 | |||
1989 | |||
1990 | ac_aux_dir= | ||
1991 | for ac_dir in config "$srcdir"/config; do | ||
1992 | if test -f "$ac_dir/install-sh"; then | ||
1993 | ac_aux_dir=$ac_dir | ||
1994 | ac_install_sh="$ac_aux_dir/install-sh -c" | ||
1995 | break | ||
1996 | elif test -f "$ac_dir/install.sh"; then | ||
1997 | ac_aux_dir=$ac_dir | ||
1998 | ac_install_sh="$ac_aux_dir/install.sh -c" | ||
1999 | break | ||
2000 | elif test -f "$ac_dir/shtool"; then | ||
2001 | ac_aux_dir=$ac_dir | ||
2002 | ac_install_sh="$ac_aux_dir/shtool install -c" | ||
2003 | break | ||
2004 | fi | ||
2005 | done | ||
2006 | if test -z "$ac_aux_dir"; then | ||
2007 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&5 | ||
2008 | echo "$as_me: error: cannot find install-sh or install.sh in config \"$srcdir\"/config" >&2;} | ||
2009 | { (exit 1); exit 1; }; } | ||
2010 | fi | ||
2011 | |||
2012 | # These three variables are undocumented and unsupported, | ||
2013 | # and are intended to be withdrawn in a future Autoconf release. | ||
2014 | # They can cause serious problems if a builder's source tree is in a directory | ||
2015 | # whose full name contains unusual characters. | ||
2016 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | ||
2017 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | ||
2018 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | ||
2019 | |||
2020 | |||
2021 | |||
2022 | # versioning stuff | ||
2023 | |||
2024 | |||
2025 | |||
2026 | |||
2027 | |||
2028 | |||
2029 | VERSION=0.0.8 | ||
2030 | |||
2031 | |||
2032 | |||
2033 | |||
2034 | LTVERSION="0:8:0" | ||
2035 | |||
2036 | PACKAGE=libg3d | ||
2037 | |||
2038 | am__api_version='1.10' | ||
2039 | |||
2040 | # Find a good install program. We prefer a C program (faster), | ||
2041 | # so one script is as good as another. But avoid the broken or | ||
2042 | # incompatible versions: | ||
2043 | # SysV /etc/install, /usr/sbin/install | ||
2044 | # SunOS /usr/etc/install | ||
2045 | # IRIX /sbin/install | ||
2046 | # AIX /bin/install | ||
2047 | # AmigaOS /C/install, which installs bootblocks on floppy discs | ||
2048 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | ||
2049 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | ||
2050 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | ||
2051 | # OS/2's system install, which has a completely different semantic | ||
2052 | # ./install, which can be erroneously created by make from ./install.sh. | ||
2053 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | ||
2054 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | ||
2055 | if test -z "$INSTALL"; then | ||
2056 | if test "${ac_cv_path_install+set}" = set; then | ||
2057 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2058 | else | ||
2059 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2060 | for as_dir in $PATH | ||
2061 | do | ||
2062 | IFS=$as_save_IFS | ||
2063 | test -z "$as_dir" && as_dir=. | ||
2064 | # Account for people who put trailing slashes in PATH elements. | ||
2065 | case $as_dir/ in | ||
2066 | ./ | .// | /cC/* | \ | ||
2067 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | ||
2068 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | ||
2069 | /usr/ucb/* ) ;; | ||
2070 | *) | ||
2071 | # OSF1 and SCO ODT 3.0 have their own names for install. | ||
2072 | # Don't use installbsd from OSF since it installs stuff as root | ||
2073 | # by default. | ||
2074 | for ac_prog in ginstall scoinst install; do | ||
2075 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2076 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | ||
2077 | if test $ac_prog = install && | ||
2078 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2079 | # AIX install. It has an incompatible calling convention. | ||
2080 | : | ||
2081 | elif test $ac_prog = install && | ||
2082 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | ||
2083 | # program-specific install script used by HP pwplus--don't use. | ||
2084 | : | ||
2085 | else | ||
2086 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | ||
2087 | break 3 | ||
2088 | fi | ||
2089 | fi | ||
2090 | done | ||
2091 | done | ||
2092 | ;; | ||
2093 | esac | ||
2094 | done | ||
2095 | IFS=$as_save_IFS | ||
2096 | |||
2097 | |||
2098 | fi | ||
2099 | if test "${ac_cv_path_install+set}" = set; then | ||
2100 | INSTALL=$ac_cv_path_install | ||
2101 | else | ||
2102 | # As a last resort, use the slow shell script. Don't cache a | ||
2103 | # value for INSTALL within a source directory, because that will | ||
2104 | # break other packages using the cache if that directory is | ||
2105 | # removed, or if the value is a relative name. | ||
2106 | INSTALL=$ac_install_sh | ||
2107 | fi | ||
2108 | fi | ||
2109 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | ||
2110 | echo "${ECHO_T}$INSTALL" >&6; } | ||
2111 | |||
2112 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | ||
2113 | # It thinks the first close brace ends the variable substitution. | ||
2114 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | ||
2115 | |||
2116 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | ||
2117 | |||
2118 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | ||
2119 | |||
2120 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | ||
2121 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | ||
2122 | # Just in case | ||
2123 | sleep 1 | ||
2124 | echo timestamp > conftest.file | ||
2125 | # Do `set' in a subshell so we don't clobber the current shell's | ||
2126 | # arguments. Must try -L first in case configure is actually a | ||
2127 | # symlink; some systems play weird games with the mod time of symlinks | ||
2128 | # (eg FreeBSD returns the mod time of the symlink's containing | ||
2129 | # directory). | ||
2130 | if ( | ||
2131 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | ||
2132 | if test "$*" = "X"; then | ||
2133 | # -L didn't work. | ||
2134 | set X `ls -t $srcdir/configure conftest.file` | ||
2135 | fi | ||
2136 | rm -f conftest.file | ||
2137 | if test "$*" != "X $srcdir/configure conftest.file" \ | ||
2138 | && test "$*" != "X conftest.file $srcdir/configure"; then | ||
2139 | |||
2140 | # If neither matched, then we have a broken ls. This can happen | ||
2141 | # if, for instance, CONFIG_SHELL is bash and it inherits a | ||
2142 | # broken ls alias from the environment. This has actually | ||
2143 | # happened. Such a system could not be considered "sane". | ||
2144 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | ||
2145 | alias in your environment" >&5 | ||
2146 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | ||
2147 | alias in your environment" >&2;} | ||
2148 | { (exit 1); exit 1; }; } | ||
2149 | fi | ||
2150 | |||
2151 | test "$2" = conftest.file | ||
2152 | ) | ||
2153 | then | ||
2154 | # Ok. | ||
2155 | : | ||
2156 | else | ||
2157 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | ||
2158 | Check your system clock" >&5 | ||
2159 | echo "$as_me: error: newly created file is older than distributed files! | ||
2160 | Check your system clock" >&2;} | ||
2161 | { (exit 1); exit 1; }; } | ||
2162 | fi | ||
2163 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2164 | echo "${ECHO_T}yes" >&6; } | ||
2165 | test "$program_prefix" != NONE && | ||
2166 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | ||
2167 | # Use a double $ so make ignores it. | ||
2168 | test "$program_suffix" != NONE && | ||
2169 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | ||
2170 | # Double any \ or $. echo might interpret backslashes. | ||
2171 | # By default was `s,x,x', remove it if useless. | ||
2172 | cat <<\_ACEOF >conftest.sed | ||
2173 | s/[\\$]/&&/g;s/;s,x,x,$// | ||
2174 | _ACEOF | ||
2175 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | ||
2176 | rm -f conftest.sed | ||
2177 | |||
2178 | # expand $ac_aux_dir to an absolute path | ||
2179 | am_aux_dir=`cd $ac_aux_dir && pwd` | ||
2180 | |||
2181 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | ||
2182 | # Use eval to expand $SHELL | ||
2183 | if eval "$MISSING --run true"; then | ||
2184 | am_missing_run="$MISSING --run " | ||
2185 | else | ||
2186 | am_missing_run= | ||
2187 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | ||
2188 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | ||
2189 | fi | ||
2190 | |||
2191 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 | ||
2192 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } | ||
2193 | if test -z "$MKDIR_P"; then | ||
2194 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
2195 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2196 | else | ||
2197 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2198 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | ||
2199 | do | ||
2200 | IFS=$as_save_IFS | ||
2201 | test -z "$as_dir" && as_dir=. | ||
2202 | for ac_prog in mkdir gmkdir; do | ||
2203 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2204 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue | ||
2205 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | ||
2206 | 'mkdir (GNU coreutils) '* | \ | ||
2207 | 'mkdir (coreutils) '* | \ | ||
2208 | 'mkdir (fileutils) '4.1*) | ||
2209 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | ||
2210 | break 3;; | ||
2211 | esac | ||
2212 | done | ||
2213 | done | ||
2214 | done | ||
2215 | IFS=$as_save_IFS | ||
2216 | |||
2217 | fi | ||
2218 | |||
2219 | if test "${ac_cv_path_mkdir+set}" = set; then | ||
2220 | MKDIR_P="$ac_cv_path_mkdir -p" | ||
2221 | else | ||
2222 | # As a last resort, use the slow shell script. Don't cache a | ||
2223 | # value for MKDIR_P within a source directory, because that will | ||
2224 | # break other packages using the cache if that directory is | ||
2225 | # removed, or if the value is a relative name. | ||
2226 | test -d ./--version && rmdir ./--version | ||
2227 | MKDIR_P="$ac_install_sh -d" | ||
2228 | fi | ||
2229 | fi | ||
2230 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 | ||
2231 | echo "${ECHO_T}$MKDIR_P" >&6; } | ||
2232 | |||
2233 | mkdir_p="$MKDIR_P" | ||
2234 | case $mkdir_p in | ||
2235 | [\\/$]* | ?:[\\/]*) ;; | ||
2236 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; | ||
2237 | esac | ||
2238 | |||
2239 | for ac_prog in gawk mawk nawk awk | ||
2240 | do | ||
2241 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2242 | set dummy $ac_prog; ac_word=$2 | ||
2243 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2244 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2245 | if test "${ac_cv_prog_AWK+set}" = set; then | ||
2246 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2247 | else | ||
2248 | if test -n "$AWK"; then | ||
2249 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | ||
2250 | else | ||
2251 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2252 | for as_dir in $PATH | ||
2253 | do | ||
2254 | IFS=$as_save_IFS | ||
2255 | test -z "$as_dir" && as_dir=. | ||
2256 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2257 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2258 | ac_cv_prog_AWK="$ac_prog" | ||
2259 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2260 | break 2 | ||
2261 | fi | ||
2262 | done | ||
2263 | done | ||
2264 | IFS=$as_save_IFS | ||
2265 | |||
2266 | fi | ||
2267 | fi | ||
2268 | AWK=$ac_cv_prog_AWK | ||
2269 | if test -n "$AWK"; then | ||
2270 | { echo "$as_me:$LINENO: result: $AWK" >&5 | ||
2271 | echo "${ECHO_T}$AWK" >&6; } | ||
2272 | else | ||
2273 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2274 | echo "${ECHO_T}no" >&6; } | ||
2275 | fi | ||
2276 | |||
2277 | |||
2278 | test -n "$AWK" && break | ||
2279 | done | ||
2280 | |||
2281 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | ||
2282 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | ||
2283 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | ||
2284 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | ||
2285 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2286 | else | ||
2287 | cat >conftest.make <<\_ACEOF | ||
2288 | SHELL = /bin/sh | ||
2289 | all: | ||
2290 | @echo '@@@%%%=$(MAKE)=@@@%%%' | ||
2291 | _ACEOF | ||
2292 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | ||
2293 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | ||
2294 | *@@@%%%=?*=@@@%%%*) | ||
2295 | eval ac_cv_prog_make_${ac_make}_set=yes;; | ||
2296 | *) | ||
2297 | eval ac_cv_prog_make_${ac_make}_set=no;; | ||
2298 | esac | ||
2299 | rm -f conftest.make | ||
2300 | fi | ||
2301 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | ||
2302 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2303 | echo "${ECHO_T}yes" >&6; } | ||
2304 | SET_MAKE= | ||
2305 | else | ||
2306 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2307 | echo "${ECHO_T}no" >&6; } | ||
2308 | SET_MAKE="MAKE=${MAKE-make}" | ||
2309 | fi | ||
2310 | |||
2311 | rm -rf .tst 2>/dev/null | ||
2312 | mkdir .tst 2>/dev/null | ||
2313 | if test -d .tst; then | ||
2314 | am__leading_dot=. | ||
2315 | else | ||
2316 | am__leading_dot=_ | ||
2317 | fi | ||
2318 | rmdir .tst 2>/dev/null | ||
2319 | |||
2320 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | ||
2321 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | ||
2322 | # is not polluted with repeated "-I." | ||
2323 | am__isrc=' -I$(srcdir)' | ||
2324 | # test to see if srcdir already configured | ||
2325 | if test -f $srcdir/config.status; then | ||
2326 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | ||
2327 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | ||
2328 | { (exit 1); exit 1; }; } | ||
2329 | fi | ||
2330 | fi | ||
2331 | |||
2332 | # test whether we have cygpath | ||
2333 | if test -z "$CYGPATH_W"; then | ||
2334 | if (cygpath --version) >/dev/null 2>/dev/null; then | ||
2335 | CYGPATH_W='cygpath -w' | ||
2336 | else | ||
2337 | CYGPATH_W=echo | ||
2338 | fi | ||
2339 | fi | ||
2340 | |||
2341 | |||
2342 | # Define the identity of the package. | ||
2343 | PACKAGE=$PACKAGE | ||
2344 | VERSION=$VERSION | ||
2345 | |||
2346 | |||
2347 | # Some tools Automake needs. | ||
2348 | |||
2349 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | ||
2350 | |||
2351 | |||
2352 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | ||
2353 | |||
2354 | |||
2355 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | ||
2356 | |||
2357 | |||
2358 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | ||
2359 | |||
2360 | |||
2361 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | ||
2362 | |||
2363 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} | ||
2364 | |||
2365 | # Installed binaries are usually stripped using `strip' when the user | ||
2366 | # run `make install-strip'. However `strip' might not be the right | ||
2367 | # tool to use in cross-compilation environments, therefore Automake | ||
2368 | # will honor the `STRIP' environment variable to overrule this program. | ||
2369 | if test "$cross_compiling" != no; then | ||
2370 | if test -n "$ac_tool_prefix"; then | ||
2371 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
2372 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
2373 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2374 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2375 | if test "${ac_cv_prog_STRIP+set}" = set; then | ||
2376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2377 | else | ||
2378 | if test -n "$STRIP"; then | ||
2379 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
2380 | else | ||
2381 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2382 | for as_dir in $PATH | ||
2383 | do | ||
2384 | IFS=$as_save_IFS | ||
2385 | test -z "$as_dir" && as_dir=. | ||
2386 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2387 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2388 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
2389 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2390 | break 2 | ||
2391 | fi | ||
2392 | done | ||
2393 | done | ||
2394 | IFS=$as_save_IFS | ||
2395 | |||
2396 | fi | ||
2397 | fi | ||
2398 | STRIP=$ac_cv_prog_STRIP | ||
2399 | if test -n "$STRIP"; then | ||
2400 | { echo "$as_me:$LINENO: result: $STRIP" >&5 | ||
2401 | echo "${ECHO_T}$STRIP" >&6; } | ||
2402 | else | ||
2403 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2404 | echo "${ECHO_T}no" >&6; } | ||
2405 | fi | ||
2406 | |||
2407 | |||
2408 | fi | ||
2409 | if test -z "$ac_cv_prog_STRIP"; then | ||
2410 | ac_ct_STRIP=$STRIP | ||
2411 | # Extract the first word of "strip", so it can be a program name with args. | ||
2412 | set dummy strip; ac_word=$2 | ||
2413 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2414 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2415 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | ||
2416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2417 | else | ||
2418 | if test -n "$ac_ct_STRIP"; then | ||
2419 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
2420 | else | ||
2421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2422 | for as_dir in $PATH | ||
2423 | do | ||
2424 | IFS=$as_save_IFS | ||
2425 | test -z "$as_dir" && as_dir=. | ||
2426 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2427 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2428 | ac_cv_prog_ac_ct_STRIP="strip" | ||
2429 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2430 | break 2 | ||
2431 | fi | ||
2432 | done | ||
2433 | done | ||
2434 | IFS=$as_save_IFS | ||
2435 | |||
2436 | fi | ||
2437 | fi | ||
2438 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
2439 | if test -n "$ac_ct_STRIP"; then | ||
2440 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | ||
2441 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | ||
2442 | else | ||
2443 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2444 | echo "${ECHO_T}no" >&6; } | ||
2445 | fi | ||
2446 | |||
2447 | if test "x$ac_ct_STRIP" = x; then | ||
2448 | STRIP=":" | ||
2449 | else | ||
2450 | case $cross_compiling:$ac_tool_warned in | ||
2451 | yes:) | ||
2452 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2453 | whose name does not start with the host triplet. If you think this | ||
2454 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2455 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2456 | whose name does not start with the host triplet. If you think this | ||
2457 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2458 | ac_tool_warned=yes ;; | ||
2459 | esac | ||
2460 | STRIP=$ac_ct_STRIP | ||
2461 | fi | ||
2462 | else | ||
2463 | STRIP="$ac_cv_prog_STRIP" | ||
2464 | fi | ||
2465 | |||
2466 | fi | ||
2467 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | ||
2468 | |||
2469 | # We need awk for the "check" target. The system "awk" is bad on | ||
2470 | # some platforms. | ||
2471 | # Always define AMTAR for backward compatibility. | ||
2472 | |||
2473 | AMTAR=${AMTAR-"${am_missing_run}tar"} | ||
2474 | |||
2475 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | ||
2476 | |||
2477 | |||
2478 | |||
2479 | |||
2480 | |||
2481 | |||
2482 | |||
2483 | |||
2484 | ac_config_headers="$ac_config_headers include/g3d/config.h" | ||
2485 | |||
2486 | |||
2487 | ac_ext=c | ||
2488 | ac_cpp='$CPP $CPPFLAGS' | ||
2489 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
2490 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
2491 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
2492 | if test -n "$ac_tool_prefix"; then | ||
2493 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | ||
2494 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | ||
2495 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2496 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2497 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2498 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2499 | else | ||
2500 | if test -n "$CC"; then | ||
2501 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2502 | else | ||
2503 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2504 | for as_dir in $PATH | ||
2505 | do | ||
2506 | IFS=$as_save_IFS | ||
2507 | test -z "$as_dir" && as_dir=. | ||
2508 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2509 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2510 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | ||
2511 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2512 | break 2 | ||
2513 | fi | ||
2514 | done | ||
2515 | done | ||
2516 | IFS=$as_save_IFS | ||
2517 | |||
2518 | fi | ||
2519 | fi | ||
2520 | CC=$ac_cv_prog_CC | ||
2521 | if test -n "$CC"; then | ||
2522 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2523 | echo "${ECHO_T}$CC" >&6; } | ||
2524 | else | ||
2525 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2526 | echo "${ECHO_T}no" >&6; } | ||
2527 | fi | ||
2528 | |||
2529 | |||
2530 | fi | ||
2531 | if test -z "$ac_cv_prog_CC"; then | ||
2532 | ac_ct_CC=$CC | ||
2533 | # Extract the first word of "gcc", so it can be a program name with args. | ||
2534 | set dummy gcc; ac_word=$2 | ||
2535 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2536 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2537 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2539 | else | ||
2540 | if test -n "$ac_ct_CC"; then | ||
2541 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2542 | else | ||
2543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2544 | for as_dir in $PATH | ||
2545 | do | ||
2546 | IFS=$as_save_IFS | ||
2547 | test -z "$as_dir" && as_dir=. | ||
2548 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2549 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2550 | ac_cv_prog_ac_ct_CC="gcc" | ||
2551 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2552 | break 2 | ||
2553 | fi | ||
2554 | done | ||
2555 | done | ||
2556 | IFS=$as_save_IFS | ||
2557 | |||
2558 | fi | ||
2559 | fi | ||
2560 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2561 | if test -n "$ac_ct_CC"; then | ||
2562 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2563 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2564 | else | ||
2565 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2566 | echo "${ECHO_T}no" >&6; } | ||
2567 | fi | ||
2568 | |||
2569 | if test "x$ac_ct_CC" = x; then | ||
2570 | CC="" | ||
2571 | else | ||
2572 | case $cross_compiling:$ac_tool_warned in | ||
2573 | yes:) | ||
2574 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2575 | whose name does not start with the host triplet. If you think this | ||
2576 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2577 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2578 | whose name does not start with the host triplet. If you think this | ||
2579 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2580 | ac_tool_warned=yes ;; | ||
2581 | esac | ||
2582 | CC=$ac_ct_CC | ||
2583 | fi | ||
2584 | else | ||
2585 | CC="$ac_cv_prog_CC" | ||
2586 | fi | ||
2587 | |||
2588 | if test -z "$CC"; then | ||
2589 | if test -n "$ac_tool_prefix"; then | ||
2590 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | ||
2591 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | ||
2592 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2593 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2594 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2596 | else | ||
2597 | if test -n "$CC"; then | ||
2598 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2599 | else | ||
2600 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2601 | for as_dir in $PATH | ||
2602 | do | ||
2603 | IFS=$as_save_IFS | ||
2604 | test -z "$as_dir" && as_dir=. | ||
2605 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2606 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2607 | ac_cv_prog_CC="${ac_tool_prefix}cc" | ||
2608 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2609 | break 2 | ||
2610 | fi | ||
2611 | done | ||
2612 | done | ||
2613 | IFS=$as_save_IFS | ||
2614 | |||
2615 | fi | ||
2616 | fi | ||
2617 | CC=$ac_cv_prog_CC | ||
2618 | if test -n "$CC"; then | ||
2619 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2620 | echo "${ECHO_T}$CC" >&6; } | ||
2621 | else | ||
2622 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2623 | echo "${ECHO_T}no" >&6; } | ||
2624 | fi | ||
2625 | |||
2626 | |||
2627 | fi | ||
2628 | fi | ||
2629 | if test -z "$CC"; then | ||
2630 | # Extract the first word of "cc", so it can be a program name with args. | ||
2631 | set dummy cc; ac_word=$2 | ||
2632 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2633 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2634 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2636 | else | ||
2637 | if test -n "$CC"; then | ||
2638 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2639 | else | ||
2640 | ac_prog_rejected=no | ||
2641 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2642 | for as_dir in $PATH | ||
2643 | do | ||
2644 | IFS=$as_save_IFS | ||
2645 | test -z "$as_dir" && as_dir=. | ||
2646 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2647 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2648 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | ||
2649 | ac_prog_rejected=yes | ||
2650 | continue | ||
2651 | fi | ||
2652 | ac_cv_prog_CC="cc" | ||
2653 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2654 | break 2 | ||
2655 | fi | ||
2656 | done | ||
2657 | done | ||
2658 | IFS=$as_save_IFS | ||
2659 | |||
2660 | if test $ac_prog_rejected = yes; then | ||
2661 | # We found a bogon in the path, so make sure we never use it. | ||
2662 | set dummy $ac_cv_prog_CC | ||
2663 | shift | ||
2664 | if test $# != 0; then | ||
2665 | # We chose a different compiler from the bogus one. | ||
2666 | # However, it has the same basename, so the bogon will be chosen | ||
2667 | # first if we set CC to just the basename; use the full file name. | ||
2668 | shift | ||
2669 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | ||
2670 | fi | ||
2671 | fi | ||
2672 | fi | ||
2673 | fi | ||
2674 | CC=$ac_cv_prog_CC | ||
2675 | if test -n "$CC"; then | ||
2676 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2677 | echo "${ECHO_T}$CC" >&6; } | ||
2678 | else | ||
2679 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2680 | echo "${ECHO_T}no" >&6; } | ||
2681 | fi | ||
2682 | |||
2683 | |||
2684 | fi | ||
2685 | if test -z "$CC"; then | ||
2686 | if test -n "$ac_tool_prefix"; then | ||
2687 | for ac_prog in cl.exe | ||
2688 | do | ||
2689 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
2690 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
2691 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2692 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2693 | if test "${ac_cv_prog_CC+set}" = set; then | ||
2694 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2695 | else | ||
2696 | if test -n "$CC"; then | ||
2697 | ac_cv_prog_CC="$CC" # Let the user override the test. | ||
2698 | else | ||
2699 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2700 | for as_dir in $PATH | ||
2701 | do | ||
2702 | IFS=$as_save_IFS | ||
2703 | test -z "$as_dir" && as_dir=. | ||
2704 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2705 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2706 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | ||
2707 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2708 | break 2 | ||
2709 | fi | ||
2710 | done | ||
2711 | done | ||
2712 | IFS=$as_save_IFS | ||
2713 | |||
2714 | fi | ||
2715 | fi | ||
2716 | CC=$ac_cv_prog_CC | ||
2717 | if test -n "$CC"; then | ||
2718 | { echo "$as_me:$LINENO: result: $CC" >&5 | ||
2719 | echo "${ECHO_T}$CC" >&6; } | ||
2720 | else | ||
2721 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2722 | echo "${ECHO_T}no" >&6; } | ||
2723 | fi | ||
2724 | |||
2725 | |||
2726 | test -n "$CC" && break | ||
2727 | done | ||
2728 | fi | ||
2729 | if test -z "$CC"; then | ||
2730 | ac_ct_CC=$CC | ||
2731 | for ac_prog in cl.exe | ||
2732 | do | ||
2733 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
2734 | set dummy $ac_prog; ac_word=$2 | ||
2735 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
2736 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
2737 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | ||
2738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
2739 | else | ||
2740 | if test -n "$ac_ct_CC"; then | ||
2741 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | ||
2742 | else | ||
2743 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
2744 | for as_dir in $PATH | ||
2745 | do | ||
2746 | IFS=$as_save_IFS | ||
2747 | test -z "$as_dir" && as_dir=. | ||
2748 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
2749 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
2750 | ac_cv_prog_ac_ct_CC="$ac_prog" | ||
2751 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
2752 | break 2 | ||
2753 | fi | ||
2754 | done | ||
2755 | done | ||
2756 | IFS=$as_save_IFS | ||
2757 | |||
2758 | fi | ||
2759 | fi | ||
2760 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | ||
2761 | if test -n "$ac_ct_CC"; then | ||
2762 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | ||
2763 | echo "${ECHO_T}$ac_ct_CC" >&6; } | ||
2764 | else | ||
2765 | { echo "$as_me:$LINENO: result: no" >&5 | ||
2766 | echo "${ECHO_T}no" >&6; } | ||
2767 | fi | ||
2768 | |||
2769 | |||
2770 | test -n "$ac_ct_CC" && break | ||
2771 | done | ||
2772 | |||
2773 | if test "x$ac_ct_CC" = x; then | ||
2774 | CC="" | ||
2775 | else | ||
2776 | case $cross_compiling:$ac_tool_warned in | ||
2777 | yes:) | ||
2778 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
2779 | whose name does not start with the host triplet. If you think this | ||
2780 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
2781 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
2782 | whose name does not start with the host triplet. If you think this | ||
2783 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
2784 | ac_tool_warned=yes ;; | ||
2785 | esac | ||
2786 | CC=$ac_ct_CC | ||
2787 | fi | ||
2788 | fi | ||
2789 | |||
2790 | fi | ||
2791 | |||
2792 | |||
2793 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | ||
2794 | See \`config.log' for more details." >&5 | ||
2795 | echo "$as_me: error: no acceptable C compiler found in \$PATH | ||
2796 | See \`config.log' for more details." >&2;} | ||
2797 | { (exit 1); exit 1; }; } | ||
2798 | |||
2799 | # Provide some information about the compiler. | ||
2800 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | ||
2801 | ac_compiler=`set X $ac_compile; echo $2` | ||
2802 | { (ac_try="$ac_compiler --version >&5" | ||
2803 | case "(($ac_try" in | ||
2804 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2805 | *) ac_try_echo=$ac_try;; | ||
2806 | esac | ||
2807 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2808 | (eval "$ac_compiler --version >&5") 2>&5 | ||
2809 | ac_status=$? | ||
2810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2811 | (exit $ac_status); } | ||
2812 | { (ac_try="$ac_compiler -v >&5" | ||
2813 | case "(($ac_try" in | ||
2814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2815 | *) ac_try_echo=$ac_try;; | ||
2816 | esac | ||
2817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2818 | (eval "$ac_compiler -v >&5") 2>&5 | ||
2819 | ac_status=$? | ||
2820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2821 | (exit $ac_status); } | ||
2822 | { (ac_try="$ac_compiler -V >&5" | ||
2823 | case "(($ac_try" in | ||
2824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2825 | *) ac_try_echo=$ac_try;; | ||
2826 | esac | ||
2827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2828 | (eval "$ac_compiler -V >&5") 2>&5 | ||
2829 | ac_status=$? | ||
2830 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2831 | (exit $ac_status); } | ||
2832 | |||
2833 | cat >conftest.$ac_ext <<_ACEOF | ||
2834 | /* confdefs.h. */ | ||
2835 | _ACEOF | ||
2836 | cat confdefs.h >>conftest.$ac_ext | ||
2837 | cat >>conftest.$ac_ext <<_ACEOF | ||
2838 | /* end confdefs.h. */ | ||
2839 | |||
2840 | int | ||
2841 | main () | ||
2842 | { | ||
2843 | |||
2844 | ; | ||
2845 | return 0; | ||
2846 | } | ||
2847 | _ACEOF | ||
2848 | ac_clean_files_save=$ac_clean_files | ||
2849 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | ||
2850 | # Try to create an executable without -o first, disregard a.out. | ||
2851 | # It will help us diagnose broken compilers, and finding out an intuition | ||
2852 | # of exeext. | ||
2853 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | ||
2854 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | ||
2855 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | ||
2856 | # | ||
2857 | # List of possible output files, starting from the most likely. | ||
2858 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | ||
2859 | # only as a last resort. b.out is created by i960 compilers. | ||
2860 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | ||
2861 | # | ||
2862 | # The IRIX 6 linker writes into existing files which may not be | ||
2863 | # executable, retaining their permissions. Remove them first so a | ||
2864 | # subsequent execution test works. | ||
2865 | ac_rmfiles= | ||
2866 | for ac_file in $ac_files | ||
2867 | do | ||
2868 | case $ac_file in | ||
2869 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
2870 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | ||
2871 | esac | ||
2872 | done | ||
2873 | rm -f $ac_rmfiles | ||
2874 | |||
2875 | if { (ac_try="$ac_link_default" | ||
2876 | case "(($ac_try" in | ||
2877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2878 | *) ac_try_echo=$ac_try;; | ||
2879 | esac | ||
2880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2881 | (eval "$ac_link_default") 2>&5 | ||
2882 | ac_status=$? | ||
2883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2884 | (exit $ac_status); }; then | ||
2885 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | ||
2886 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | ||
2887 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | ||
2888 | # so that the user can short-circuit this test for compilers unknown to | ||
2889 | # Autoconf. | ||
2890 | for ac_file in $ac_files '' | ||
2891 | do | ||
2892 | test -f "$ac_file" || continue | ||
2893 | case $ac_file in | ||
2894 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | ||
2895 | ;; | ||
2896 | [ab].out ) | ||
2897 | # We found the default executable, but exeext='' is most | ||
2898 | # certainly right. | ||
2899 | break;; | ||
2900 | *.* ) | ||
2901 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | ||
2902 | then :; else | ||
2903 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
2904 | fi | ||
2905 | # We set ac_cv_exeext here because the later test for it is not | ||
2906 | # safe: cross compilers may not add the suffix if given an `-o' | ||
2907 | # argument, so we may need to know it at that point already. | ||
2908 | # Even if this section looks crufty: it has the advantage of | ||
2909 | # actually working. | ||
2910 | break;; | ||
2911 | * ) | ||
2912 | break;; | ||
2913 | esac | ||
2914 | done | ||
2915 | test "$ac_cv_exeext" = no && ac_cv_exeext= | ||
2916 | |||
2917 | else | ||
2918 | ac_file='' | ||
2919 | fi | ||
2920 | |||
2921 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | ||
2922 | echo "${ECHO_T}$ac_file" >&6; } | ||
2923 | if test -z "$ac_file"; then | ||
2924 | echo "$as_me: failed program was:" >&5 | ||
2925 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
2926 | |||
2927 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | ||
2928 | See \`config.log' for more details." >&5 | ||
2929 | echo "$as_me: error: C compiler cannot create executables | ||
2930 | See \`config.log' for more details." >&2;} | ||
2931 | { (exit 77); exit 77; }; } | ||
2932 | fi | ||
2933 | |||
2934 | ac_exeext=$ac_cv_exeext | ||
2935 | |||
2936 | # Check that the compiler produces executables we can run. If not, either | ||
2937 | # the compiler is broken, or we cross compile. | ||
2938 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | ||
2939 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | ||
2940 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | ||
2941 | # If not cross compiling, check that we can run a simple program. | ||
2942 | if test "$cross_compiling" != yes; then | ||
2943 | if { ac_try='./$ac_file' | ||
2944 | { (case "(($ac_try" in | ||
2945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2946 | *) ac_try_echo=$ac_try;; | ||
2947 | esac | ||
2948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2949 | (eval "$ac_try") 2>&5 | ||
2950 | ac_status=$? | ||
2951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2952 | (exit $ac_status); }; }; then | ||
2953 | cross_compiling=no | ||
2954 | else | ||
2955 | if test "$cross_compiling" = maybe; then | ||
2956 | cross_compiling=yes | ||
2957 | else | ||
2958 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | ||
2959 | If you meant to cross compile, use \`--host'. | ||
2960 | See \`config.log' for more details." >&5 | ||
2961 | echo "$as_me: error: cannot run C compiled programs. | ||
2962 | If you meant to cross compile, use \`--host'. | ||
2963 | See \`config.log' for more details." >&2;} | ||
2964 | { (exit 1); exit 1; }; } | ||
2965 | fi | ||
2966 | fi | ||
2967 | fi | ||
2968 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
2969 | echo "${ECHO_T}yes" >&6; } | ||
2970 | |||
2971 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | ||
2972 | ac_clean_files=$ac_clean_files_save | ||
2973 | # Check that the compiler produces executables we can run. If not, either | ||
2974 | # the compiler is broken, or we cross compile. | ||
2975 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | ||
2976 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | ||
2977 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | ||
2978 | echo "${ECHO_T}$cross_compiling" >&6; } | ||
2979 | |||
2980 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | ||
2981 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | ||
2982 | if { (ac_try="$ac_link" | ||
2983 | case "(($ac_try" in | ||
2984 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
2985 | *) ac_try_echo=$ac_try;; | ||
2986 | esac | ||
2987 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
2988 | (eval "$ac_link") 2>&5 | ||
2989 | ac_status=$? | ||
2990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
2991 | (exit $ac_status); }; then | ||
2992 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | ||
2993 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | ||
2994 | # work properly (i.e., refer to `conftest.exe'), while it won't with | ||
2995 | # `rm'. | ||
2996 | for ac_file in conftest.exe conftest conftest.*; do | ||
2997 | test -f "$ac_file" || continue | ||
2998 | case $ac_file in | ||
2999 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | ||
3000 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | ||
3001 | break;; | ||
3002 | * ) break;; | ||
3003 | esac | ||
3004 | done | ||
3005 | else | ||
3006 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | ||
3007 | See \`config.log' for more details." >&5 | ||
3008 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | ||
3009 | See \`config.log' for more details." >&2;} | ||
3010 | { (exit 1); exit 1; }; } | ||
3011 | fi | ||
3012 | |||
3013 | rm -f conftest$ac_cv_exeext | ||
3014 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | ||
3015 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | ||
3016 | |||
3017 | rm -f conftest.$ac_ext | ||
3018 | EXEEXT=$ac_cv_exeext | ||
3019 | ac_exeext=$EXEEXT | ||
3020 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | ||
3021 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | ||
3022 | if test "${ac_cv_objext+set}" = set; then | ||
3023 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3024 | else | ||
3025 | cat >conftest.$ac_ext <<_ACEOF | ||
3026 | /* confdefs.h. */ | ||
3027 | _ACEOF | ||
3028 | cat confdefs.h >>conftest.$ac_ext | ||
3029 | cat >>conftest.$ac_ext <<_ACEOF | ||
3030 | /* end confdefs.h. */ | ||
3031 | |||
3032 | int | ||
3033 | main () | ||
3034 | { | ||
3035 | |||
3036 | ; | ||
3037 | return 0; | ||
3038 | } | ||
3039 | _ACEOF | ||
3040 | rm -f conftest.o conftest.obj | ||
3041 | if { (ac_try="$ac_compile" | ||
3042 | case "(($ac_try" in | ||
3043 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3044 | *) ac_try_echo=$ac_try;; | ||
3045 | esac | ||
3046 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3047 | (eval "$ac_compile") 2>&5 | ||
3048 | ac_status=$? | ||
3049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3050 | (exit $ac_status); }; then | ||
3051 | for ac_file in conftest.o conftest.obj conftest.*; do | ||
3052 | test -f "$ac_file" || continue; | ||
3053 | case $ac_file in | ||
3054 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | ||
3055 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | ||
3056 | break;; | ||
3057 | esac | ||
3058 | done | ||
3059 | else | ||
3060 | echo "$as_me: failed program was:" >&5 | ||
3061 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3062 | |||
3063 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | ||
3064 | See \`config.log' for more details." >&5 | ||
3065 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | ||
3066 | See \`config.log' for more details." >&2;} | ||
3067 | { (exit 1); exit 1; }; } | ||
3068 | fi | ||
3069 | |||
3070 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | ||
3071 | fi | ||
3072 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | ||
3073 | echo "${ECHO_T}$ac_cv_objext" >&6; } | ||
3074 | OBJEXT=$ac_cv_objext | ||
3075 | ac_objext=$OBJEXT | ||
3076 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | ||
3077 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | ||
3078 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | ||
3079 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3080 | else | ||
3081 | cat >conftest.$ac_ext <<_ACEOF | ||
3082 | /* confdefs.h. */ | ||
3083 | _ACEOF | ||
3084 | cat confdefs.h >>conftest.$ac_ext | ||
3085 | cat >>conftest.$ac_ext <<_ACEOF | ||
3086 | /* end confdefs.h. */ | ||
3087 | |||
3088 | int | ||
3089 | main () | ||
3090 | { | ||
3091 | #ifndef __GNUC__ | ||
3092 | choke me | ||
3093 | #endif | ||
3094 | |||
3095 | ; | ||
3096 | return 0; | ||
3097 | } | ||
3098 | _ACEOF | ||
3099 | rm -f conftest.$ac_objext | ||
3100 | if { (ac_try="$ac_compile" | ||
3101 | case "(($ac_try" in | ||
3102 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3103 | *) ac_try_echo=$ac_try;; | ||
3104 | esac | ||
3105 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3106 | (eval "$ac_compile") 2>conftest.er1 | ||
3107 | ac_status=$? | ||
3108 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3109 | rm -f conftest.er1 | ||
3110 | cat conftest.err >&5 | ||
3111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3112 | (exit $ac_status); } && { | ||
3113 | test -z "$ac_c_werror_flag" || | ||
3114 | test ! -s conftest.err | ||
3115 | } && test -s conftest.$ac_objext; then | ||
3116 | ac_compiler_gnu=yes | ||
3117 | else | ||
3118 | echo "$as_me: failed program was:" >&5 | ||
3119 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3120 | |||
3121 | ac_compiler_gnu=no | ||
3122 | fi | ||
3123 | |||
3124 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3125 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | ||
3126 | |||
3127 | fi | ||
3128 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | ||
3129 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | ||
3130 | GCC=`test $ac_compiler_gnu = yes && echo yes` | ||
3131 | ac_test_CFLAGS=${CFLAGS+set} | ||
3132 | ac_save_CFLAGS=$CFLAGS | ||
3133 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | ||
3134 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | ||
3135 | if test "${ac_cv_prog_cc_g+set}" = set; then | ||
3136 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3137 | else | ||
3138 | ac_save_c_werror_flag=$ac_c_werror_flag | ||
3139 | ac_c_werror_flag=yes | ||
3140 | ac_cv_prog_cc_g=no | ||
3141 | CFLAGS="-g" | ||
3142 | cat >conftest.$ac_ext <<_ACEOF | ||
3143 | /* confdefs.h. */ | ||
3144 | _ACEOF | ||
3145 | cat confdefs.h >>conftest.$ac_ext | ||
3146 | cat >>conftest.$ac_ext <<_ACEOF | ||
3147 | /* end confdefs.h. */ | ||
3148 | |||
3149 | int | ||
3150 | main () | ||
3151 | { | ||
3152 | |||
3153 | ; | ||
3154 | return 0; | ||
3155 | } | ||
3156 | _ACEOF | ||
3157 | rm -f conftest.$ac_objext | ||
3158 | if { (ac_try="$ac_compile" | ||
3159 | case "(($ac_try" in | ||
3160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3161 | *) ac_try_echo=$ac_try;; | ||
3162 | esac | ||
3163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3164 | (eval "$ac_compile") 2>conftest.er1 | ||
3165 | ac_status=$? | ||
3166 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3167 | rm -f conftest.er1 | ||
3168 | cat conftest.err >&5 | ||
3169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3170 | (exit $ac_status); } && { | ||
3171 | test -z "$ac_c_werror_flag" || | ||
3172 | test ! -s conftest.err | ||
3173 | } && test -s conftest.$ac_objext; then | ||
3174 | ac_cv_prog_cc_g=yes | ||
3175 | else | ||
3176 | echo "$as_me: failed program was:" >&5 | ||
3177 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3178 | |||
3179 | CFLAGS="" | ||
3180 | cat >conftest.$ac_ext <<_ACEOF | ||
3181 | /* confdefs.h. */ | ||
3182 | _ACEOF | ||
3183 | cat confdefs.h >>conftest.$ac_ext | ||
3184 | cat >>conftest.$ac_ext <<_ACEOF | ||
3185 | /* end confdefs.h. */ | ||
3186 | |||
3187 | int | ||
3188 | main () | ||
3189 | { | ||
3190 | |||
3191 | ; | ||
3192 | return 0; | ||
3193 | } | ||
3194 | _ACEOF | ||
3195 | rm -f conftest.$ac_objext | ||
3196 | if { (ac_try="$ac_compile" | ||
3197 | case "(($ac_try" in | ||
3198 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3199 | *) ac_try_echo=$ac_try;; | ||
3200 | esac | ||
3201 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3202 | (eval "$ac_compile") 2>conftest.er1 | ||
3203 | ac_status=$? | ||
3204 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3205 | rm -f conftest.er1 | ||
3206 | cat conftest.err >&5 | ||
3207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3208 | (exit $ac_status); } && { | ||
3209 | test -z "$ac_c_werror_flag" || | ||
3210 | test ! -s conftest.err | ||
3211 | } && test -s conftest.$ac_objext; then | ||
3212 | : | ||
3213 | else | ||
3214 | echo "$as_me: failed program was:" >&5 | ||
3215 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3216 | |||
3217 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3218 | CFLAGS="-g" | ||
3219 | cat >conftest.$ac_ext <<_ACEOF | ||
3220 | /* confdefs.h. */ | ||
3221 | _ACEOF | ||
3222 | cat confdefs.h >>conftest.$ac_ext | ||
3223 | cat >>conftest.$ac_ext <<_ACEOF | ||
3224 | /* end confdefs.h. */ | ||
3225 | |||
3226 | int | ||
3227 | main () | ||
3228 | { | ||
3229 | |||
3230 | ; | ||
3231 | return 0; | ||
3232 | } | ||
3233 | _ACEOF | ||
3234 | rm -f conftest.$ac_objext | ||
3235 | if { (ac_try="$ac_compile" | ||
3236 | case "(($ac_try" in | ||
3237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3238 | *) ac_try_echo=$ac_try;; | ||
3239 | esac | ||
3240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3241 | (eval "$ac_compile") 2>conftest.er1 | ||
3242 | ac_status=$? | ||
3243 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3244 | rm -f conftest.er1 | ||
3245 | cat conftest.err >&5 | ||
3246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3247 | (exit $ac_status); } && { | ||
3248 | test -z "$ac_c_werror_flag" || | ||
3249 | test ! -s conftest.err | ||
3250 | } && test -s conftest.$ac_objext; then | ||
3251 | ac_cv_prog_cc_g=yes | ||
3252 | else | ||
3253 | echo "$as_me: failed program was:" >&5 | ||
3254 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3255 | |||
3256 | |||
3257 | fi | ||
3258 | |||
3259 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3260 | fi | ||
3261 | |||
3262 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3263 | fi | ||
3264 | |||
3265 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
3266 | ac_c_werror_flag=$ac_save_c_werror_flag | ||
3267 | fi | ||
3268 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | ||
3269 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | ||
3270 | if test "$ac_test_CFLAGS" = set; then | ||
3271 | CFLAGS=$ac_save_CFLAGS | ||
3272 | elif test $ac_cv_prog_cc_g = yes; then | ||
3273 | if test "$GCC" = yes; then | ||
3274 | CFLAGS="-g -O2" | ||
3275 | else | ||
3276 | CFLAGS="-g" | ||
3277 | fi | ||
3278 | else | ||
3279 | if test "$GCC" = yes; then | ||
3280 | CFLAGS="-O2" | ||
3281 | else | ||
3282 | CFLAGS= | ||
3283 | fi | ||
3284 | fi | ||
3285 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | ||
3286 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | ||
3287 | if test "${ac_cv_prog_cc_c89+set}" = set; then | ||
3288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3289 | else | ||
3290 | ac_cv_prog_cc_c89=no | ||
3291 | ac_save_CC=$CC | ||
3292 | cat >conftest.$ac_ext <<_ACEOF | ||
3293 | /* confdefs.h. */ | ||
3294 | _ACEOF | ||
3295 | cat confdefs.h >>conftest.$ac_ext | ||
3296 | cat >>conftest.$ac_ext <<_ACEOF | ||
3297 | /* end confdefs.h. */ | ||
3298 | #include <stdarg.h> | ||
3299 | #include <stdio.h> | ||
3300 | #include <sys/types.h> | ||
3301 | #include <sys/stat.h> | ||
3302 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | ||
3303 | struct buf { int x; }; | ||
3304 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | ||
3305 | static char *e (p, i) | ||
3306 | char **p; | ||
3307 | int i; | ||
3308 | { | ||
3309 | return p[i]; | ||
3310 | } | ||
3311 | static char *f (char * (*g) (char **, int), char **p, ...) | ||
3312 | { | ||
3313 | char *s; | ||
3314 | va_list v; | ||
3315 | va_start (v,p); | ||
3316 | s = g (p, va_arg (v,int)); | ||
3317 | va_end (v); | ||
3318 | return s; | ||
3319 | } | ||
3320 | |||
3321 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | ||
3322 | function prototypes and stuff, but not '\xHH' hex character constants. | ||
3323 | These don't provoke an error unfortunately, instead are silently treated | ||
3324 | as 'x'. The following induces an error, until -std is added to get | ||
3325 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | ||
3326 | array size at least. It's necessary to write '\x00'==0 to get something | ||
3327 | that's true only with -std. */ | ||
3328 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | ||
3329 | |||
3330 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | ||
3331 | inside strings and character constants. */ | ||
3332 | #define FOO(x) 'x' | ||
3333 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | ||
3334 | |||
3335 | int test (int i, double x); | ||
3336 | struct s1 {int (*f) (int a);}; | ||
3337 | struct s2 {int (*f) (double a);}; | ||
3338 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | ||
3339 | int argc; | ||
3340 | char **argv; | ||
3341 | int | ||
3342 | main () | ||
3343 | { | ||
3344 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | ||
3345 | ; | ||
3346 | return 0; | ||
3347 | } | ||
3348 | _ACEOF | ||
3349 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | ||
3350 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | ||
3351 | do | ||
3352 | CC="$ac_save_CC $ac_arg" | ||
3353 | rm -f conftest.$ac_objext | ||
3354 | if { (ac_try="$ac_compile" | ||
3355 | case "(($ac_try" in | ||
3356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3357 | *) ac_try_echo=$ac_try;; | ||
3358 | esac | ||
3359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3360 | (eval "$ac_compile") 2>conftest.er1 | ||
3361 | ac_status=$? | ||
3362 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3363 | rm -f conftest.er1 | ||
3364 | cat conftest.err >&5 | ||
3365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3366 | (exit $ac_status); } && { | ||
3367 | test -z "$ac_c_werror_flag" || | ||
3368 | test ! -s conftest.err | ||
3369 | } && test -s conftest.$ac_objext; then | ||
3370 | ac_cv_prog_cc_c89=$ac_arg | ||
3371 | else | ||
3372 | echo "$as_me: failed program was:" >&5 | ||
3373 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3374 | |||
3375 | |||
3376 | fi | ||
3377 | |||
3378 | rm -f core conftest.err conftest.$ac_objext | ||
3379 | test "x$ac_cv_prog_cc_c89" != "xno" && break | ||
3380 | done | ||
3381 | rm -f conftest.$ac_ext | ||
3382 | CC=$ac_save_CC | ||
3383 | |||
3384 | fi | ||
3385 | # AC_CACHE_VAL | ||
3386 | case "x$ac_cv_prog_cc_c89" in | ||
3387 | x) | ||
3388 | { echo "$as_me:$LINENO: result: none needed" >&5 | ||
3389 | echo "${ECHO_T}none needed" >&6; } ;; | ||
3390 | xno) | ||
3391 | { echo "$as_me:$LINENO: result: unsupported" >&5 | ||
3392 | echo "${ECHO_T}unsupported" >&6; } ;; | ||
3393 | *) | ||
3394 | CC="$CC $ac_cv_prog_cc_c89" | ||
3395 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | ||
3396 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | ||
3397 | esac | ||
3398 | |||
3399 | |||
3400 | ac_ext=c | ||
3401 | ac_cpp='$CPP $CPPFLAGS' | ||
3402 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3403 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3404 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3405 | DEPDIR="${am__leading_dot}deps" | ||
3406 | |||
3407 | ac_config_commands="$ac_config_commands depfiles" | ||
3408 | |||
3409 | |||
3410 | am_make=${MAKE-make} | ||
3411 | cat > confinc << 'END' | ||
3412 | am__doit: | ||
3413 | @echo done | ||
3414 | .PHONY: am__doit | ||
3415 | END | ||
3416 | # If we don't find an include directive, just comment out the code. | ||
3417 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | ||
3418 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | ||
3419 | am__include="#" | ||
3420 | am__quote= | ||
3421 | _am_result=none | ||
3422 | # First try GNU make style include. | ||
3423 | echo "include confinc" > confmf | ||
3424 | # We grep out `Entering directory' and `Leaving directory' | ||
3425 | # messages which can occur if `w' ends up in MAKEFLAGS. | ||
3426 | # In particular we don't look at `^make:' because GNU make might | ||
3427 | # be invoked under some other name (usually "gmake"), in which | ||
3428 | # case it prints its new name instead of `make'. | ||
3429 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | ||
3430 | am__include=include | ||
3431 | am__quote= | ||
3432 | _am_result=GNU | ||
3433 | fi | ||
3434 | # Now try BSD make style include. | ||
3435 | if test "$am__include" = "#"; then | ||
3436 | echo '.include "confinc"' > confmf | ||
3437 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | ||
3438 | am__include=.include | ||
3439 | am__quote="\"" | ||
3440 | _am_result=BSD | ||
3441 | fi | ||
3442 | fi | ||
3443 | |||
3444 | |||
3445 | { echo "$as_me:$LINENO: result: $_am_result" >&5 | ||
3446 | echo "${ECHO_T}$_am_result" >&6; } | ||
3447 | rm -f confinc confmf | ||
3448 | |||
3449 | # Check whether --enable-dependency-tracking was given. | ||
3450 | if test "${enable_dependency_tracking+set}" = set; then | ||
3451 | enableval=$enable_dependency_tracking; | ||
3452 | fi | ||
3453 | |||
3454 | if test "x$enable_dependency_tracking" != xno; then | ||
3455 | am_depcomp="$ac_aux_dir/depcomp" | ||
3456 | AMDEPBACKSLASH='\' | ||
3457 | fi | ||
3458 | if test "x$enable_dependency_tracking" != xno; then | ||
3459 | AMDEP_TRUE= | ||
3460 | AMDEP_FALSE='#' | ||
3461 | else | ||
3462 | AMDEP_TRUE='#' | ||
3463 | AMDEP_FALSE= | ||
3464 | fi | ||
3465 | |||
3466 | |||
3467 | |||
3468 | depcc="$CC" am_compiler_list= | ||
3469 | |||
3470 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | ||
3471 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | ||
3472 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | ||
3473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3474 | else | ||
3475 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
3476 | # We make a subdir and do the tests there. Otherwise we can end up | ||
3477 | # making bogus files that we don't know about and never remove. For | ||
3478 | # instance it was reported that on HP-UX the gcc test will end up | ||
3479 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
3480 | # in D'. | ||
3481 | mkdir conftest.dir | ||
3482 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
3483 | # using a relative directory. | ||
3484 | cp "$am_depcomp" conftest.dir | ||
3485 | cd conftest.dir | ||
3486 | # We will build objects and dependencies in a subdirectory because | ||
3487 | # it helps to detect inapplicable dependency modes. For instance | ||
3488 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
3489 | # side effect of compilation, but ICC will put the dependencies in | ||
3490 | # the current directory while Tru64 will put them in the object | ||
3491 | # directory. | ||
3492 | mkdir sub | ||
3493 | |||
3494 | am_cv_CC_dependencies_compiler_type=none | ||
3495 | if test "$am_compiler_list" = ""; then | ||
3496 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
3497 | fi | ||
3498 | for depmode in $am_compiler_list; do | ||
3499 | # Setup a source with many dependencies, because some compilers | ||
3500 | # like to wrap large dependency lists on column 80 (with \), and | ||
3501 | # we should not choose a depcomp mode which is confused by this. | ||
3502 | # | ||
3503 | # We need to recreate these files for each test, as the compiler may | ||
3504 | # overwrite some of them when testing with obscure command lines. | ||
3505 | # This happens at least with the AIX C compiler. | ||
3506 | : > sub/conftest.c | ||
3507 | for i in 1 2 3 4 5 6; do | ||
3508 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
3509 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
3510 | # Solaris 8's {/usr,}/bin/sh. | ||
3511 | touch sub/conftst$i.h | ||
3512 | done | ||
3513 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
3514 | |||
3515 | case $depmode in | ||
3516 | nosideeffect) | ||
3517 | # after this tag, mechanisms are not by side-effect, so they'll | ||
3518 | # only be used when explicitly requested | ||
3519 | if test "x$enable_dependency_tracking" = xyes; then | ||
3520 | continue | ||
3521 | else | ||
3522 | break | ||
3523 | fi | ||
3524 | ;; | ||
3525 | none) break ;; | ||
3526 | esac | ||
3527 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
3528 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
3529 | # handle `-M -o', and we need to detect this. | ||
3530 | if depmode=$depmode \ | ||
3531 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | ||
3532 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
3533 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | ||
3534 | >/dev/null 2>conftest.err && | ||
3535 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
3536 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
3537 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | ||
3538 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
3539 | # icc doesn't choke on unknown options, it will just issue warnings | ||
3540 | # or remarks (even with -Werror). So we grep stderr for any message | ||
3541 | # that says an option was ignored or not supported. | ||
3542 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
3543 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
3544 | # The diagnosis changed in icc 8.0: | ||
3545 | # icc: Command line remark: option '-MP' not supported | ||
3546 | if (grep 'ignoring option' conftest.err || | ||
3547 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
3548 | am_cv_CC_dependencies_compiler_type=$depmode | ||
3549 | break | ||
3550 | fi | ||
3551 | fi | ||
3552 | done | ||
3553 | |||
3554 | cd .. | ||
3555 | rm -rf conftest.dir | ||
3556 | else | ||
3557 | am_cv_CC_dependencies_compiler_type=none | ||
3558 | fi | ||
3559 | |||
3560 | fi | ||
3561 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | ||
3562 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | ||
3563 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | ||
3564 | |||
3565 | if | ||
3566 | test "x$enable_dependency_tracking" != xno \ | ||
3567 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | ||
3568 | am__fastdepCC_TRUE= | ||
3569 | am__fastdepCC_FALSE='#' | ||
3570 | else | ||
3571 | am__fastdepCC_TRUE='#' | ||
3572 | am__fastdepCC_FALSE= | ||
3573 | fi | ||
3574 | |||
3575 | |||
3576 | |||
3577 | for ac_prog in flex lex | ||
3578 | do | ||
3579 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
3580 | set dummy $ac_prog; ac_word=$2 | ||
3581 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
3582 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
3583 | if test "${ac_cv_prog_LEX+set}" = set; then | ||
3584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3585 | else | ||
3586 | if test -n "$LEX"; then | ||
3587 | ac_cv_prog_LEX="$LEX" # Let the user override the test. | ||
3588 | else | ||
3589 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
3590 | for as_dir in $PATH | ||
3591 | do | ||
3592 | IFS=$as_save_IFS | ||
3593 | test -z "$as_dir" && as_dir=. | ||
3594 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
3595 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
3596 | ac_cv_prog_LEX="$ac_prog" | ||
3597 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
3598 | break 2 | ||
3599 | fi | ||
3600 | done | ||
3601 | done | ||
3602 | IFS=$as_save_IFS | ||
3603 | |||
3604 | fi | ||
3605 | fi | ||
3606 | LEX=$ac_cv_prog_LEX | ||
3607 | if test -n "$LEX"; then | ||
3608 | { echo "$as_me:$LINENO: result: $LEX" >&5 | ||
3609 | echo "${ECHO_T}$LEX" >&6; } | ||
3610 | else | ||
3611 | { echo "$as_me:$LINENO: result: no" >&5 | ||
3612 | echo "${ECHO_T}no" >&6; } | ||
3613 | fi | ||
3614 | |||
3615 | |||
3616 | test -n "$LEX" && break | ||
3617 | done | ||
3618 | test -n "$LEX" || LEX=":" | ||
3619 | |||
3620 | if test "x$LEX" != "x:"; then | ||
3621 | cat >conftest.l <<_ACEOF | ||
3622 | %% | ||
3623 | a { ECHO; } | ||
3624 | b { REJECT; } | ||
3625 | c { yymore (); } | ||
3626 | d { yyless (1); } | ||
3627 | e { yyless (input () != 0); } | ||
3628 | f { unput (yytext[0]); } | ||
3629 | . { BEGIN INITIAL; } | ||
3630 | %% | ||
3631 | #ifdef YYTEXT_POINTER | ||
3632 | extern char *yytext; | ||
3633 | #endif | ||
3634 | int | ||
3635 | main (void) | ||
3636 | { | ||
3637 | return ! yylex () + ! yywrap (); | ||
3638 | } | ||
3639 | _ACEOF | ||
3640 | { (ac_try="$LEX conftest.l" | ||
3641 | case "(($ac_try" in | ||
3642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3643 | *) ac_try_echo=$ac_try;; | ||
3644 | esac | ||
3645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3646 | (eval "$LEX conftest.l") 2>&5 | ||
3647 | ac_status=$? | ||
3648 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3649 | (exit $ac_status); } | ||
3650 | { echo "$as_me:$LINENO: checking lex output file root" >&5 | ||
3651 | echo $ECHO_N "checking lex output file root... $ECHO_C" >&6; } | ||
3652 | if test "${ac_cv_prog_lex_root+set}" = set; then | ||
3653 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3654 | else | ||
3655 | |||
3656 | if test -f lex.yy.c; then | ||
3657 | ac_cv_prog_lex_root=lex.yy | ||
3658 | elif test -f lexyy.c; then | ||
3659 | ac_cv_prog_lex_root=lexyy | ||
3660 | else | ||
3661 | { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5 | ||
3662 | echo "$as_me: error: cannot find output from $LEX; giving up" >&2;} | ||
3663 | { (exit 1); exit 1; }; } | ||
3664 | fi | ||
3665 | fi | ||
3666 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5 | ||
3667 | echo "${ECHO_T}$ac_cv_prog_lex_root" >&6; } | ||
3668 | LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root | ||
3669 | |||
3670 | if test -z "${LEXLIB+set}"; then | ||
3671 | { echo "$as_me:$LINENO: checking lex library" >&5 | ||
3672 | echo $ECHO_N "checking lex library... $ECHO_C" >&6; } | ||
3673 | if test "${ac_cv_lib_lex+set}" = set; then | ||
3674 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3675 | else | ||
3676 | |||
3677 | ac_save_LIBS=$LIBS | ||
3678 | ac_cv_lib_lex='none needed' | ||
3679 | for ac_lib in '' -lfl -ll; do | ||
3680 | LIBS="$ac_lib $ac_save_LIBS" | ||
3681 | cat >conftest.$ac_ext <<_ACEOF | ||
3682 | `cat $LEX_OUTPUT_ROOT.c` | ||
3683 | _ACEOF | ||
3684 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3685 | if { (ac_try="$ac_link" | ||
3686 | case "(($ac_try" in | ||
3687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3688 | *) ac_try_echo=$ac_try;; | ||
3689 | esac | ||
3690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3691 | (eval "$ac_link") 2>conftest.er1 | ||
3692 | ac_status=$? | ||
3693 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3694 | rm -f conftest.er1 | ||
3695 | cat conftest.err >&5 | ||
3696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3697 | (exit $ac_status); } && { | ||
3698 | test -z "$ac_c_werror_flag" || | ||
3699 | test ! -s conftest.err | ||
3700 | } && test -s conftest$ac_exeext && | ||
3701 | $as_test_x conftest$ac_exeext; then | ||
3702 | ac_cv_lib_lex=$ac_lib | ||
3703 | else | ||
3704 | echo "$as_me: failed program was:" >&5 | ||
3705 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3706 | |||
3707 | |||
3708 | fi | ||
3709 | |||
3710 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
3711 | conftest$ac_exeext conftest.$ac_ext | ||
3712 | test "$ac_cv_lib_lex" != 'none needed' && break | ||
3713 | done | ||
3714 | LIBS=$ac_save_LIBS | ||
3715 | |||
3716 | fi | ||
3717 | { echo "$as_me:$LINENO: result: $ac_cv_lib_lex" >&5 | ||
3718 | echo "${ECHO_T}$ac_cv_lib_lex" >&6; } | ||
3719 | test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex | ||
3720 | fi | ||
3721 | |||
3722 | |||
3723 | { echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5 | ||
3724 | echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6; } | ||
3725 | if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then | ||
3726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3727 | else | ||
3728 | # POSIX says lex can declare yytext either as a pointer or an array; the | ||
3729 | # default is implementation-dependent. Figure out which it is, since | ||
3730 | # not all implementations provide the %pointer and %array declarations. | ||
3731 | ac_cv_prog_lex_yytext_pointer=no | ||
3732 | ac_save_LIBS=$LIBS | ||
3733 | LIBS="$LEXLIB $ac_save_LIBS" | ||
3734 | cat >conftest.$ac_ext <<_ACEOF | ||
3735 | #define YYTEXT_POINTER 1 | ||
3736 | `cat $LEX_OUTPUT_ROOT.c` | ||
3737 | _ACEOF | ||
3738 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
3739 | if { (ac_try="$ac_link" | ||
3740 | case "(($ac_try" in | ||
3741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3742 | *) ac_try_echo=$ac_try;; | ||
3743 | esac | ||
3744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3745 | (eval "$ac_link") 2>conftest.er1 | ||
3746 | ac_status=$? | ||
3747 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3748 | rm -f conftest.er1 | ||
3749 | cat conftest.err >&5 | ||
3750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3751 | (exit $ac_status); } && { | ||
3752 | test -z "$ac_c_werror_flag" || | ||
3753 | test ! -s conftest.err | ||
3754 | } && test -s conftest$ac_exeext && | ||
3755 | $as_test_x conftest$ac_exeext; then | ||
3756 | ac_cv_prog_lex_yytext_pointer=yes | ||
3757 | else | ||
3758 | echo "$as_me: failed program was:" >&5 | ||
3759 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3760 | |||
3761 | |||
3762 | fi | ||
3763 | |||
3764 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
3765 | conftest$ac_exeext conftest.$ac_ext | ||
3766 | LIBS=$ac_save_LIBS | ||
3767 | |||
3768 | fi | ||
3769 | { echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5 | ||
3770 | echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6; } | ||
3771 | if test $ac_cv_prog_lex_yytext_pointer = yes; then | ||
3772 | |||
3773 | cat >>confdefs.h <<\_ACEOF | ||
3774 | #define YYTEXT_POINTER 1 | ||
3775 | _ACEOF | ||
3776 | |||
3777 | fi | ||
3778 | rm -f conftest.l $LEX_OUTPUT_ROOT.c | ||
3779 | |||
3780 | fi | ||
3781 | if test "$LEX" = :; then | ||
3782 | LEX=${am_missing_run}flex | ||
3783 | fi | ||
3784 | ac_ext=c | ||
3785 | ac_cpp='$CPP $CPPFLAGS' | ||
3786 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
3787 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
3788 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
3789 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | ||
3790 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | ||
3791 | # On Suns, sometimes $CPP names a directory. | ||
3792 | if test -n "$CPP" && test -d "$CPP"; then | ||
3793 | CPP= | ||
3794 | fi | ||
3795 | if test -z "$CPP"; then | ||
3796 | if test "${ac_cv_prog_CPP+set}" = set; then | ||
3797 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
3798 | else | ||
3799 | # Double quotes because CPP needs to be expanded | ||
3800 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | ||
3801 | do | ||
3802 | ac_preproc_ok=false | ||
3803 | for ac_c_preproc_warn_flag in '' yes | ||
3804 | do | ||
3805 | # Use a header file that comes with gcc, so configuring glibc | ||
3806 | # with a fresh cross-compiler works. | ||
3807 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3808 | # <limits.h> exists even on freestanding compilers. | ||
3809 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3810 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3811 | cat >conftest.$ac_ext <<_ACEOF | ||
3812 | /* confdefs.h. */ | ||
3813 | _ACEOF | ||
3814 | cat confdefs.h >>conftest.$ac_ext | ||
3815 | cat >>conftest.$ac_ext <<_ACEOF | ||
3816 | /* end confdefs.h. */ | ||
3817 | #ifdef __STDC__ | ||
3818 | # include <limits.h> | ||
3819 | #else | ||
3820 | # include <assert.h> | ||
3821 | #endif | ||
3822 | Syntax error | ||
3823 | _ACEOF | ||
3824 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3825 | case "(($ac_try" in | ||
3826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3827 | *) ac_try_echo=$ac_try;; | ||
3828 | esac | ||
3829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3830 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3831 | ac_status=$? | ||
3832 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3833 | rm -f conftest.er1 | ||
3834 | cat conftest.err >&5 | ||
3835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3836 | (exit $ac_status); } >/dev/null && { | ||
3837 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3838 | test ! -s conftest.err | ||
3839 | }; then | ||
3840 | : | ||
3841 | else | ||
3842 | echo "$as_me: failed program was:" >&5 | ||
3843 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3844 | |||
3845 | # Broken: fails on valid input. | ||
3846 | continue | ||
3847 | fi | ||
3848 | |||
3849 | rm -f conftest.err conftest.$ac_ext | ||
3850 | |||
3851 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3852 | # can be detected and how. | ||
3853 | cat >conftest.$ac_ext <<_ACEOF | ||
3854 | /* confdefs.h. */ | ||
3855 | _ACEOF | ||
3856 | cat confdefs.h >>conftest.$ac_ext | ||
3857 | cat >>conftest.$ac_ext <<_ACEOF | ||
3858 | /* end confdefs.h. */ | ||
3859 | #include <ac_nonexistent.h> | ||
3860 | _ACEOF | ||
3861 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3862 | case "(($ac_try" in | ||
3863 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3864 | *) ac_try_echo=$ac_try;; | ||
3865 | esac | ||
3866 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3867 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3868 | ac_status=$? | ||
3869 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3870 | rm -f conftest.er1 | ||
3871 | cat conftest.err >&5 | ||
3872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3873 | (exit $ac_status); } >/dev/null && { | ||
3874 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3875 | test ! -s conftest.err | ||
3876 | }; then | ||
3877 | # Broken: success on invalid input. | ||
3878 | continue | ||
3879 | else | ||
3880 | echo "$as_me: failed program was:" >&5 | ||
3881 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3882 | |||
3883 | # Passes both tests. | ||
3884 | ac_preproc_ok=: | ||
3885 | break | ||
3886 | fi | ||
3887 | |||
3888 | rm -f conftest.err conftest.$ac_ext | ||
3889 | |||
3890 | done | ||
3891 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3892 | rm -f conftest.err conftest.$ac_ext | ||
3893 | if $ac_preproc_ok; then | ||
3894 | break | ||
3895 | fi | ||
3896 | |||
3897 | done | ||
3898 | ac_cv_prog_CPP=$CPP | ||
3899 | |||
3900 | fi | ||
3901 | CPP=$ac_cv_prog_CPP | ||
3902 | else | ||
3903 | ac_cv_prog_CPP=$CPP | ||
3904 | fi | ||
3905 | { echo "$as_me:$LINENO: result: $CPP" >&5 | ||
3906 | echo "${ECHO_T}$CPP" >&6; } | ||
3907 | ac_preproc_ok=false | ||
3908 | for ac_c_preproc_warn_flag in '' yes | ||
3909 | do | ||
3910 | # Use a header file that comes with gcc, so configuring glibc | ||
3911 | # with a fresh cross-compiler works. | ||
3912 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
3913 | # <limits.h> exists even on freestanding compilers. | ||
3914 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
3915 | # not just through cpp. "Syntax error" is here to catch this case. | ||
3916 | cat >conftest.$ac_ext <<_ACEOF | ||
3917 | /* confdefs.h. */ | ||
3918 | _ACEOF | ||
3919 | cat confdefs.h >>conftest.$ac_ext | ||
3920 | cat >>conftest.$ac_ext <<_ACEOF | ||
3921 | /* end confdefs.h. */ | ||
3922 | #ifdef __STDC__ | ||
3923 | # include <limits.h> | ||
3924 | #else | ||
3925 | # include <assert.h> | ||
3926 | #endif | ||
3927 | Syntax error | ||
3928 | _ACEOF | ||
3929 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3930 | case "(($ac_try" in | ||
3931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3932 | *) ac_try_echo=$ac_try;; | ||
3933 | esac | ||
3934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3935 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3936 | ac_status=$? | ||
3937 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3938 | rm -f conftest.er1 | ||
3939 | cat conftest.err >&5 | ||
3940 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3941 | (exit $ac_status); } >/dev/null && { | ||
3942 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3943 | test ! -s conftest.err | ||
3944 | }; then | ||
3945 | : | ||
3946 | else | ||
3947 | echo "$as_me: failed program was:" >&5 | ||
3948 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3949 | |||
3950 | # Broken: fails on valid input. | ||
3951 | continue | ||
3952 | fi | ||
3953 | |||
3954 | rm -f conftest.err conftest.$ac_ext | ||
3955 | |||
3956 | # OK, works on sane cases. Now check whether nonexistent headers | ||
3957 | # can be detected and how. | ||
3958 | cat >conftest.$ac_ext <<_ACEOF | ||
3959 | /* confdefs.h. */ | ||
3960 | _ACEOF | ||
3961 | cat confdefs.h >>conftest.$ac_ext | ||
3962 | cat >>conftest.$ac_ext <<_ACEOF | ||
3963 | /* end confdefs.h. */ | ||
3964 | #include <ac_nonexistent.h> | ||
3965 | _ACEOF | ||
3966 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
3967 | case "(($ac_try" in | ||
3968 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
3969 | *) ac_try_echo=$ac_try;; | ||
3970 | esac | ||
3971 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
3972 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
3973 | ac_status=$? | ||
3974 | grep -v '^ *+' conftest.er1 >conftest.err | ||
3975 | rm -f conftest.er1 | ||
3976 | cat conftest.err >&5 | ||
3977 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
3978 | (exit $ac_status); } >/dev/null && { | ||
3979 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
3980 | test ! -s conftest.err | ||
3981 | }; then | ||
3982 | # Broken: success on invalid input. | ||
3983 | continue | ||
3984 | else | ||
3985 | echo "$as_me: failed program was:" >&5 | ||
3986 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
3987 | |||
3988 | # Passes both tests. | ||
3989 | ac_preproc_ok=: | ||
3990 | break | ||
3991 | fi | ||
3992 | |||
3993 | rm -f conftest.err conftest.$ac_ext | ||
3994 | |||
3995 | done | ||
3996 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
3997 | rm -f conftest.err conftest.$ac_ext | ||
3998 | if $ac_preproc_ok; then | ||
3999 | : | ||
4000 | else | ||
4001 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | ||
4002 | See \`config.log' for more details." >&5 | ||
4003 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | ||
4004 | See \`config.log' for more details." >&2;} | ||
4005 | { (exit 1); exit 1; }; } | ||
4006 | fi | ||
4007 | |||
4008 | ac_ext=c | ||
4009 | ac_cpp='$CPP $CPPFLAGS' | ||
4010 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
4011 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
4012 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
4013 | |||
4014 | |||
4015 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | ||
4016 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | ||
4017 | if test "${ac_cv_path_GREP+set}" = set; then | ||
4018 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4019 | else | ||
4020 | # Extract the first word of "grep ggrep" to use in msg output | ||
4021 | if test -z "$GREP"; then | ||
4022 | set dummy grep ggrep; ac_prog_name=$2 | ||
4023 | if test "${ac_cv_path_GREP+set}" = set; then | ||
4024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4025 | else | ||
4026 | ac_path_GREP_found=false | ||
4027 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4028 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4029 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4030 | do | ||
4031 | IFS=$as_save_IFS | ||
4032 | test -z "$as_dir" && as_dir=. | ||
4033 | for ac_prog in grep ggrep; do | ||
4034 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4035 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4036 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | ||
4037 | # Check for GNU ac_path_GREP and select it if it is found. | ||
4038 | # Check for GNU $ac_path_GREP | ||
4039 | case `"$ac_path_GREP" --version 2>&1` in | ||
4040 | *GNU*) | ||
4041 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | ||
4042 | *) | ||
4043 | ac_count=0 | ||
4044 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
4045 | while : | ||
4046 | do | ||
4047 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4048 | mv "conftest.tmp" "conftest.in" | ||
4049 | cp "conftest.in" "conftest.nl" | ||
4050 | echo 'GREP' >> "conftest.nl" | ||
4051 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4052 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4053 | ac_count=`expr $ac_count + 1` | ||
4054 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | ||
4055 | # Best one so far, save it but keep looking for a better one | ||
4056 | ac_cv_path_GREP="$ac_path_GREP" | ||
4057 | ac_path_GREP_max=$ac_count | ||
4058 | fi | ||
4059 | # 10*(2^10) chars as input seems more than enough | ||
4060 | test $ac_count -gt 10 && break | ||
4061 | done | ||
4062 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4063 | esac | ||
4064 | |||
4065 | |||
4066 | $ac_path_GREP_found && break 3 | ||
4067 | done | ||
4068 | done | ||
4069 | |||
4070 | done | ||
4071 | IFS=$as_save_IFS | ||
4072 | |||
4073 | |||
4074 | fi | ||
4075 | |||
4076 | GREP="$ac_cv_path_GREP" | ||
4077 | if test -z "$GREP"; then | ||
4078 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
4079 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
4080 | { (exit 1); exit 1; }; } | ||
4081 | fi | ||
4082 | |||
4083 | else | ||
4084 | ac_cv_path_GREP=$GREP | ||
4085 | fi | ||
4086 | |||
4087 | |||
4088 | fi | ||
4089 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | ||
4090 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | ||
4091 | GREP="$ac_cv_path_GREP" | ||
4092 | |||
4093 | |||
4094 | { echo "$as_me:$LINENO: checking for egrep" >&5 | ||
4095 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | ||
4096 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4097 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4098 | else | ||
4099 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | ||
4100 | then ac_cv_path_EGREP="$GREP -E" | ||
4101 | else | ||
4102 | # Extract the first word of "egrep" to use in msg output | ||
4103 | if test -z "$EGREP"; then | ||
4104 | set dummy egrep; ac_prog_name=$2 | ||
4105 | if test "${ac_cv_path_EGREP+set}" = set; then | ||
4106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4107 | else | ||
4108 | ac_path_EGREP_found=false | ||
4109 | # Loop through the user's path and test for each of PROGNAME-LIST | ||
4110 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4111 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | ||
4112 | do | ||
4113 | IFS=$as_save_IFS | ||
4114 | test -z "$as_dir" && as_dir=. | ||
4115 | for ac_prog in egrep; do | ||
4116 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4117 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | ||
4118 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | ||
4119 | # Check for GNU ac_path_EGREP and select it if it is found. | ||
4120 | # Check for GNU $ac_path_EGREP | ||
4121 | case `"$ac_path_EGREP" --version 2>&1` in | ||
4122 | *GNU*) | ||
4123 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | ||
4124 | *) | ||
4125 | ac_count=0 | ||
4126 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | ||
4127 | while : | ||
4128 | do | ||
4129 | cat "conftest.in" "conftest.in" >"conftest.tmp" | ||
4130 | mv "conftest.tmp" "conftest.in" | ||
4131 | cp "conftest.in" "conftest.nl" | ||
4132 | echo 'EGREP' >> "conftest.nl" | ||
4133 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | ||
4134 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | ||
4135 | ac_count=`expr $ac_count + 1` | ||
4136 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | ||
4137 | # Best one so far, save it but keep looking for a better one | ||
4138 | ac_cv_path_EGREP="$ac_path_EGREP" | ||
4139 | ac_path_EGREP_max=$ac_count | ||
4140 | fi | ||
4141 | # 10*(2^10) chars as input seems more than enough | ||
4142 | test $ac_count -gt 10 && break | ||
4143 | done | ||
4144 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | ||
4145 | esac | ||
4146 | |||
4147 | |||
4148 | $ac_path_EGREP_found && break 3 | ||
4149 | done | ||
4150 | done | ||
4151 | |||
4152 | done | ||
4153 | IFS=$as_save_IFS | ||
4154 | |||
4155 | |||
4156 | fi | ||
4157 | |||
4158 | EGREP="$ac_cv_path_EGREP" | ||
4159 | if test -z "$EGREP"; then | ||
4160 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | ||
4161 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | ||
4162 | { (exit 1); exit 1; }; } | ||
4163 | fi | ||
4164 | |||
4165 | else | ||
4166 | ac_cv_path_EGREP=$EGREP | ||
4167 | fi | ||
4168 | |||
4169 | |||
4170 | fi | ||
4171 | fi | ||
4172 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | ||
4173 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | ||
4174 | EGREP="$ac_cv_path_EGREP" | ||
4175 | |||
4176 | |||
4177 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | ||
4178 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | ||
4179 | if test "${ac_cv_header_stdc+set}" = set; then | ||
4180 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4181 | else | ||
4182 | cat >conftest.$ac_ext <<_ACEOF | ||
4183 | /* confdefs.h. */ | ||
4184 | _ACEOF | ||
4185 | cat confdefs.h >>conftest.$ac_ext | ||
4186 | cat >>conftest.$ac_ext <<_ACEOF | ||
4187 | /* end confdefs.h. */ | ||
4188 | #include <stdlib.h> | ||
4189 | #include <stdarg.h> | ||
4190 | #include <string.h> | ||
4191 | #include <float.h> | ||
4192 | |||
4193 | int | ||
4194 | main () | ||
4195 | { | ||
4196 | |||
4197 | ; | ||
4198 | return 0; | ||
4199 | } | ||
4200 | _ACEOF | ||
4201 | rm -f conftest.$ac_objext | ||
4202 | if { (ac_try="$ac_compile" | ||
4203 | case "(($ac_try" in | ||
4204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4205 | *) ac_try_echo=$ac_try;; | ||
4206 | esac | ||
4207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4208 | (eval "$ac_compile") 2>conftest.er1 | ||
4209 | ac_status=$? | ||
4210 | grep -v '^ *+' conftest.er1 >conftest.err | ||
4211 | rm -f conftest.er1 | ||
4212 | cat conftest.err >&5 | ||
4213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4214 | (exit $ac_status); } && { | ||
4215 | test -z "$ac_c_werror_flag" || | ||
4216 | test ! -s conftest.err | ||
4217 | } && test -s conftest.$ac_objext; then | ||
4218 | ac_cv_header_stdc=yes | ||
4219 | else | ||
4220 | echo "$as_me: failed program was:" >&5 | ||
4221 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4222 | |||
4223 | ac_cv_header_stdc=no | ||
4224 | fi | ||
4225 | |||
4226 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
4227 | |||
4228 | if test $ac_cv_header_stdc = yes; then | ||
4229 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | ||
4230 | cat >conftest.$ac_ext <<_ACEOF | ||
4231 | /* confdefs.h. */ | ||
4232 | _ACEOF | ||
4233 | cat confdefs.h >>conftest.$ac_ext | ||
4234 | cat >>conftest.$ac_ext <<_ACEOF | ||
4235 | /* end confdefs.h. */ | ||
4236 | #include <string.h> | ||
4237 | |||
4238 | _ACEOF | ||
4239 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4240 | $EGREP "memchr" >/dev/null 2>&1; then | ||
4241 | : | ||
4242 | else | ||
4243 | ac_cv_header_stdc=no | ||
4244 | fi | ||
4245 | rm -f conftest* | ||
4246 | |||
4247 | fi | ||
4248 | |||
4249 | if test $ac_cv_header_stdc = yes; then | ||
4250 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | ||
4251 | cat >conftest.$ac_ext <<_ACEOF | ||
4252 | /* confdefs.h. */ | ||
4253 | _ACEOF | ||
4254 | cat confdefs.h >>conftest.$ac_ext | ||
4255 | cat >>conftest.$ac_ext <<_ACEOF | ||
4256 | /* end confdefs.h. */ | ||
4257 | #include <stdlib.h> | ||
4258 | |||
4259 | _ACEOF | ||
4260 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | ||
4261 | $EGREP "free" >/dev/null 2>&1; then | ||
4262 | : | ||
4263 | else | ||
4264 | ac_cv_header_stdc=no | ||
4265 | fi | ||
4266 | rm -f conftest* | ||
4267 | |||
4268 | fi | ||
4269 | |||
4270 | if test $ac_cv_header_stdc = yes; then | ||
4271 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | ||
4272 | if test "$cross_compiling" = yes; then | ||
4273 | : | ||
4274 | else | ||
4275 | cat >conftest.$ac_ext <<_ACEOF | ||
4276 | /* confdefs.h. */ | ||
4277 | _ACEOF | ||
4278 | cat confdefs.h >>conftest.$ac_ext | ||
4279 | cat >>conftest.$ac_ext <<_ACEOF | ||
4280 | /* end confdefs.h. */ | ||
4281 | #include <ctype.h> | ||
4282 | #include <stdlib.h> | ||
4283 | #if ((' ' & 0x0FF) == 0x020) | ||
4284 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | ||
4285 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | ||
4286 | #else | ||
4287 | # define ISLOWER(c) \ | ||
4288 | (('a' <= (c) && (c) <= 'i') \ | ||
4289 | || ('j' <= (c) && (c) <= 'r') \ | ||
4290 | || ('s' <= (c) && (c) <= 'z')) | ||
4291 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | ||
4292 | #endif | ||
4293 | |||
4294 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | ||
4295 | int | ||
4296 | main () | ||
4297 | { | ||
4298 | int i; | ||
4299 | for (i = 0; i < 256; i++) | ||
4300 | if (XOR (islower (i), ISLOWER (i)) | ||
4301 | || toupper (i) != TOUPPER (i)) | ||
4302 | return 2; | ||
4303 | return 0; | ||
4304 | } | ||
4305 | _ACEOF | ||
4306 | rm -f conftest$ac_exeext | ||
4307 | if { (ac_try="$ac_link" | ||
4308 | case "(($ac_try" in | ||
4309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4310 | *) ac_try_echo=$ac_try;; | ||
4311 | esac | ||
4312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4313 | (eval "$ac_link") 2>&5 | ||
4314 | ac_status=$? | ||
4315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4316 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
4317 | { (case "(($ac_try" in | ||
4318 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
4319 | *) ac_try_echo=$ac_try;; | ||
4320 | esac | ||
4321 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
4322 | (eval "$ac_try") 2>&5 | ||
4323 | ac_status=$? | ||
4324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4325 | (exit $ac_status); }; }; then | ||
4326 | : | ||
4327 | else | ||
4328 | echo "$as_me: program exited with status $ac_status" >&5 | ||
4329 | echo "$as_me: failed program was:" >&5 | ||
4330 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
4331 | |||
4332 | ( exit $ac_status ) | ||
4333 | ac_cv_header_stdc=no | ||
4334 | fi | ||
4335 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
4336 | fi | ||
4337 | |||
4338 | |||
4339 | fi | ||
4340 | fi | ||
4341 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | ||
4342 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | ||
4343 | if test $ac_cv_header_stdc = yes; then | ||
4344 | |||
4345 | cat >>confdefs.h <<\_ACEOF | ||
4346 | #define STDC_HEADERS 1 | ||
4347 | _ACEOF | ||
4348 | |||
4349 | fi | ||
4350 | |||
4351 | |||
4352 | # Check whether --enable-static was given. | ||
4353 | if test "${enable_static+set}" = set; then | ||
4354 | enableval=$enable_static; p=${PACKAGE-default} | ||
4355 | case $enableval in | ||
4356 | yes) enable_static=yes ;; | ||
4357 | no) enable_static=no ;; | ||
4358 | *) | ||
4359 | enable_static=no | ||
4360 | # Look at the argument we got. We use all the common list separators. | ||
4361 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
4362 | for pkg in $enableval; do | ||
4363 | IFS="$lt_save_ifs" | ||
4364 | if test "X$pkg" = "X$p"; then | ||
4365 | enable_static=yes | ||
4366 | fi | ||
4367 | done | ||
4368 | IFS="$lt_save_ifs" | ||
4369 | ;; | ||
4370 | esac | ||
4371 | else | ||
4372 | enable_static=no | ||
4373 | fi | ||
4374 | |||
4375 | |||
4376 | |||
4377 | |||
4378 | |||
4379 | { echo "$as_me:$LINENO: checking for Win32" >&5 | ||
4380 | echo $ECHO_N "checking for Win32... $ECHO_C" >&6; } | ||
4381 | case "$host" in | ||
4382 | *-mingw*) | ||
4383 | os_win32=yes | ||
4384 | ;; | ||
4385 | *) | ||
4386 | os_win32=no | ||
4387 | ;; | ||
4388 | esac | ||
4389 | { echo "$as_me:$LINENO: result: $os_win32" >&5 | ||
4390 | echo "${ECHO_T}$os_win32" >&6; } | ||
4391 | if test "$os_win32" = "yes"; then | ||
4392 | if test x$enable_static = xyes -o x$enable_static = x; then | ||
4393 | { echo "$as_me:$LINENO: WARNING: Disabling static library build, must build as DLL on Windows." >&5 | ||
4394 | echo "$as_me: WARNING: Disabling static library build, must build as DLL on Windows." >&2;} | ||
4395 | fi | ||
4396 | if test x$enable_shared = xno; then | ||
4397 | { echo "$as_me:$LINENO: WARNING: Enabling shared library build, must build as DLL on Windows." >&5 | ||
4398 | echo "$as_me: WARNING: Enabling shared library build, must build as DLL on Windows." >&2;} | ||
4399 | fi | ||
4400 | enable_static=no | ||
4401 | enable_shared=yes | ||
4402 | fi | ||
4403 | |||
4404 | if test "$os_win32" = yes; then | ||
4405 | OS_WIN32_TRUE= | ||
4406 | OS_WIN32_FALSE='#' | ||
4407 | else | ||
4408 | OS_WIN32_TRUE='#' | ||
4409 | OS_WIN32_FALSE= | ||
4410 | fi | ||
4411 | |||
4412 | |||
4413 | |||
4414 | |||
4415 | # Check whether --enable-shared was given. | ||
4416 | if test "${enable_shared+set}" = set; then | ||
4417 | enableval=$enable_shared; p=${PACKAGE-default} | ||
4418 | case $enableval in | ||
4419 | yes) enable_shared=yes ;; | ||
4420 | no) enable_shared=no ;; | ||
4421 | *) | ||
4422 | enable_shared=no | ||
4423 | # Look at the argument we got. We use all the common list separators. | ||
4424 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
4425 | for pkg in $enableval; do | ||
4426 | IFS="$lt_save_ifs" | ||
4427 | if test "X$pkg" = "X$p"; then | ||
4428 | enable_shared=yes | ||
4429 | fi | ||
4430 | done | ||
4431 | IFS="$lt_save_ifs" | ||
4432 | ;; | ||
4433 | esac | ||
4434 | else | ||
4435 | enable_shared=yes | ||
4436 | fi | ||
4437 | |||
4438 | |||
4439 | # Check whether --enable-fast-install was given. | ||
4440 | if test "${enable_fast_install+set}" = set; then | ||
4441 | enableval=$enable_fast_install; p=${PACKAGE-default} | ||
4442 | case $enableval in | ||
4443 | yes) enable_fast_install=yes ;; | ||
4444 | no) enable_fast_install=no ;; | ||
4445 | *) | ||
4446 | enable_fast_install=no | ||
4447 | # Look at the argument we got. We use all the common list separators. | ||
4448 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
4449 | for pkg in $enableval; do | ||
4450 | IFS="$lt_save_ifs" | ||
4451 | if test "X$pkg" = "X$p"; then | ||
4452 | enable_fast_install=yes | ||
4453 | fi | ||
4454 | done | ||
4455 | IFS="$lt_save_ifs" | ||
4456 | ;; | ||
4457 | esac | ||
4458 | else | ||
4459 | enable_fast_install=yes | ||
4460 | fi | ||
4461 | |||
4462 | |||
4463 | # Make sure we can run config.sub. | ||
4464 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | ||
4465 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | ||
4466 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | ||
4467 | { (exit 1); exit 1; }; } | ||
4468 | |||
4469 | { echo "$as_me:$LINENO: checking build system type" >&5 | ||
4470 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | ||
4471 | if test "${ac_cv_build+set}" = set; then | ||
4472 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4473 | else | ||
4474 | ac_build_alias=$build_alias | ||
4475 | test "x$ac_build_alias" = x && | ||
4476 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | ||
4477 | test "x$ac_build_alias" = x && | ||
4478 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | ||
4479 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | ||
4480 | { (exit 1); exit 1; }; } | ||
4481 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | ||
4482 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | ||
4483 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | ||
4484 | { (exit 1); exit 1; }; } | ||
4485 | |||
4486 | fi | ||
4487 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | ||
4488 | echo "${ECHO_T}$ac_cv_build" >&6; } | ||
4489 | case $ac_cv_build in | ||
4490 | *-*-*) ;; | ||
4491 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | ||
4492 | echo "$as_me: error: invalid value of canonical build" >&2;} | ||
4493 | { (exit 1); exit 1; }; };; | ||
4494 | esac | ||
4495 | build=$ac_cv_build | ||
4496 | ac_save_IFS=$IFS; IFS='-' | ||
4497 | set x $ac_cv_build | ||
4498 | shift | ||
4499 | build_cpu=$1 | ||
4500 | build_vendor=$2 | ||
4501 | shift; shift | ||
4502 | # Remember, the first character of IFS is used to create $*, | ||
4503 | # except with old shells: | ||
4504 | build_os=$* | ||
4505 | IFS=$ac_save_IFS | ||
4506 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | ||
4507 | |||
4508 | |||
4509 | { echo "$as_me:$LINENO: checking host system type" >&5 | ||
4510 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | ||
4511 | if test "${ac_cv_host+set}" = set; then | ||
4512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4513 | else | ||
4514 | if test "x$host_alias" = x; then | ||
4515 | ac_cv_host=$ac_cv_build | ||
4516 | else | ||
4517 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | ||
4518 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | ||
4519 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | ||
4520 | { (exit 1); exit 1; }; } | ||
4521 | fi | ||
4522 | |||
4523 | fi | ||
4524 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | ||
4525 | echo "${ECHO_T}$ac_cv_host" >&6; } | ||
4526 | case $ac_cv_host in | ||
4527 | *-*-*) ;; | ||
4528 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | ||
4529 | echo "$as_me: error: invalid value of canonical host" >&2;} | ||
4530 | { (exit 1); exit 1; }; };; | ||
4531 | esac | ||
4532 | host=$ac_cv_host | ||
4533 | ac_save_IFS=$IFS; IFS='-' | ||
4534 | set x $ac_cv_host | ||
4535 | shift | ||
4536 | host_cpu=$1 | ||
4537 | host_vendor=$2 | ||
4538 | shift; shift | ||
4539 | # Remember, the first character of IFS is used to create $*, | ||
4540 | # except with old shells: | ||
4541 | host_os=$* | ||
4542 | IFS=$ac_save_IFS | ||
4543 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | ||
4544 | |||
4545 | |||
4546 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | ||
4547 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | ||
4548 | if test "${lt_cv_path_SED+set}" = set; then | ||
4549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4550 | else | ||
4551 | # Loop through the user's path and test for sed and gsed. | ||
4552 | # Then use that list of sed's as ones to test for truncation. | ||
4553 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
4554 | for as_dir in $PATH | ||
4555 | do | ||
4556 | IFS=$as_save_IFS | ||
4557 | test -z "$as_dir" && as_dir=. | ||
4558 | for lt_ac_prog in sed gsed; do | ||
4559 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
4560 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | ||
4561 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | ||
4562 | fi | ||
4563 | done | ||
4564 | done | ||
4565 | done | ||
4566 | lt_ac_max=0 | ||
4567 | lt_ac_count=0 | ||
4568 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | ||
4569 | # along with /bin/sed that truncates output. | ||
4570 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | ||
4571 | test ! -f $lt_ac_sed && break | ||
4572 | cat /dev/null > conftest.in | ||
4573 | lt_ac_count=0 | ||
4574 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | ||
4575 | # Check for GNU sed and select it if it is found. | ||
4576 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | ||
4577 | lt_cv_path_SED=$lt_ac_sed | ||
4578 | break | ||
4579 | fi | ||
4580 | while true; do | ||
4581 | cat conftest.in conftest.in >conftest.tmp | ||
4582 | mv conftest.tmp conftest.in | ||
4583 | cp conftest.in conftest.nl | ||
4584 | echo >>conftest.nl | ||
4585 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | ||
4586 | cmp -s conftest.out conftest.nl || break | ||
4587 | # 10000 chars as input seems more than enough | ||
4588 | test $lt_ac_count -gt 10 && break | ||
4589 | lt_ac_count=`expr $lt_ac_count + 1` | ||
4590 | if test $lt_ac_count -gt $lt_ac_max; then | ||
4591 | lt_ac_max=$lt_ac_count | ||
4592 | lt_cv_path_SED=$lt_ac_sed | ||
4593 | fi | ||
4594 | done | ||
4595 | done | ||
4596 | SED=$lt_cv_path_SED | ||
4597 | |||
4598 | fi | ||
4599 | |||
4600 | { echo "$as_me:$LINENO: result: $SED" >&5 | ||
4601 | echo "${ECHO_T}$SED" >&6; } | ||
4602 | |||
4603 | |||
4604 | # Check whether --with-gnu-ld was given. | ||
4605 | if test "${with_gnu_ld+set}" = set; then | ||
4606 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
4607 | else | ||
4608 | with_gnu_ld=no | ||
4609 | fi | ||
4610 | |||
4611 | ac_prog=ld | ||
4612 | if test "$GCC" = yes; then | ||
4613 | # Check if gcc -print-prog-name=ld gives a path. | ||
4614 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | ||
4615 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | ||
4616 | case $host in | ||
4617 | *-*-mingw*) | ||
4618 | # gcc leaves a trailing carriage return which upsets mingw | ||
4619 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
4620 | *) | ||
4621 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
4622 | esac | ||
4623 | case $ac_prog in | ||
4624 | # Accept absolute paths. | ||
4625 | [\\/]* | ?:[\\/]*) | ||
4626 | re_direlt='/[^/][^/]*/\.\./' | ||
4627 | # Canonicalize the pathname of ld | ||
4628 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | ||
4629 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
4630 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | ||
4631 | done | ||
4632 | test -z "$LD" && LD="$ac_prog" | ||
4633 | ;; | ||
4634 | "") | ||
4635 | # If it fails, then pretend we aren't using GCC. | ||
4636 | ac_prog=ld | ||
4637 | ;; | ||
4638 | *) | ||
4639 | # If it is relative, then search for the first ld in PATH. | ||
4640 | with_gnu_ld=unknown | ||
4641 | ;; | ||
4642 | esac | ||
4643 | elif test "$with_gnu_ld" = yes; then | ||
4644 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 | ||
4645 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | ||
4646 | else | ||
4647 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | ||
4648 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | ||
4649 | fi | ||
4650 | if test "${lt_cv_path_LD+set}" = set; then | ||
4651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4652 | else | ||
4653 | if test -z "$LD"; then | ||
4654 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
4655 | for ac_dir in $PATH; do | ||
4656 | IFS="$lt_save_ifs" | ||
4657 | test -z "$ac_dir" && ac_dir=. | ||
4658 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
4659 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
4660 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
4661 | # but apparently some GNU ld's only accept -v. | ||
4662 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
4663 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
4664 | *GNU* | *'with BFD'*) | ||
4665 | test "$with_gnu_ld" != no && break | ||
4666 | ;; | ||
4667 | *) | ||
4668 | test "$with_gnu_ld" != yes && break | ||
4669 | ;; | ||
4670 | esac | ||
4671 | fi | ||
4672 | done | ||
4673 | IFS="$lt_save_ifs" | ||
4674 | else | ||
4675 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
4676 | fi | ||
4677 | fi | ||
4678 | |||
4679 | LD="$lt_cv_path_LD" | ||
4680 | if test -n "$LD"; then | ||
4681 | { echo "$as_me:$LINENO: result: $LD" >&5 | ||
4682 | echo "${ECHO_T}$LD" >&6; } | ||
4683 | else | ||
4684 | { echo "$as_me:$LINENO: result: no" >&5 | ||
4685 | echo "${ECHO_T}no" >&6; } | ||
4686 | fi | ||
4687 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | ||
4688 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | ||
4689 | { (exit 1); exit 1; }; } | ||
4690 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | ||
4691 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | ||
4692 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | ||
4693 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4694 | else | ||
4695 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | ||
4696 | case `$LD -v 2>&1 </dev/null` in | ||
4697 | *GNU* | *'with BFD'*) | ||
4698 | lt_cv_prog_gnu_ld=yes | ||
4699 | ;; | ||
4700 | *) | ||
4701 | lt_cv_prog_gnu_ld=no | ||
4702 | ;; | ||
4703 | esac | ||
4704 | fi | ||
4705 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | ||
4706 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | ||
4707 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
4708 | |||
4709 | |||
4710 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | ||
4711 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } | ||
4712 | if test "${lt_cv_ld_reload_flag+set}" = set; then | ||
4713 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4714 | else | ||
4715 | lt_cv_ld_reload_flag='-r' | ||
4716 | fi | ||
4717 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | ||
4718 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } | ||
4719 | reload_flag=$lt_cv_ld_reload_flag | ||
4720 | case $reload_flag in | ||
4721 | "" | " "*) ;; | ||
4722 | *) reload_flag=" $reload_flag" ;; | ||
4723 | esac | ||
4724 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | ||
4725 | |||
4726 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | ||
4727 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } | ||
4728 | if test "${lt_cv_path_NM+set}" = set; then | ||
4729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4730 | else | ||
4731 | if test -n "$NM"; then | ||
4732 | # Let the user override the test. | ||
4733 | lt_cv_path_NM="$NM" | ||
4734 | else | ||
4735 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
4736 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do | ||
4737 | IFS="$lt_save_ifs" | ||
4738 | test -z "$ac_dir" && ac_dir=. | ||
4739 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" | ||
4740 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | ||
4741 | # Check to see if the nm accepts a BSD-compat flag. | ||
4742 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | ||
4743 | # nm: unknown option "B" ignored | ||
4744 | # Tru64's nm complains that /dev/null is an invalid object file | ||
4745 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | ||
4746 | */dev/null* | *'Invalid file or object type'*) | ||
4747 | lt_cv_path_NM="$tmp_nm -B" | ||
4748 | break | ||
4749 | ;; | ||
4750 | *) | ||
4751 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | ||
4752 | */dev/null*) | ||
4753 | lt_cv_path_NM="$tmp_nm -p" | ||
4754 | break | ||
4755 | ;; | ||
4756 | *) | ||
4757 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | ||
4758 | continue # so that we can try to find one that supports BSD flags | ||
4759 | ;; | ||
4760 | esac | ||
4761 | esac | ||
4762 | fi | ||
4763 | done | ||
4764 | IFS="$lt_save_ifs" | ||
4765 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | ||
4766 | fi | ||
4767 | fi | ||
4768 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | ||
4769 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } | ||
4770 | NM="$lt_cv_path_NM" | ||
4771 | |||
4772 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 | ||
4773 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | ||
4774 | LN_S=$as_ln_s | ||
4775 | if test "$LN_S" = "ln -s"; then | ||
4776 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
4777 | echo "${ECHO_T}yes" >&6; } | ||
4778 | else | ||
4779 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | ||
4780 | echo "${ECHO_T}no, using $LN_S" >&6; } | ||
4781 | fi | ||
4782 | |||
4783 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | ||
4784 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } | ||
4785 | if test "${lt_cv_deplibs_check_method+set}" = set; then | ||
4786 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
4787 | else | ||
4788 | lt_cv_file_magic_cmd='$MAGIC_CMD' | ||
4789 | lt_cv_file_magic_test_file= | ||
4790 | lt_cv_deplibs_check_method='unknown' | ||
4791 | # Need to set the preceding variable on all platforms that support | ||
4792 | # interlibrary dependencies. | ||
4793 | # 'none' -- dependencies not supported. | ||
4794 | # `unknown' -- same as none, but documents that we really don't know. | ||
4795 | # 'pass_all' -- all dependencies passed with no checks. | ||
4796 | # 'test_compile' -- check by making test program. | ||
4797 | # 'file_magic [[regex]]' -- check by looking for files in library path | ||
4798 | # which responds to the $file_magic_cmd with a given extended regex. | ||
4799 | # If you have `file' or equivalent on your system and you're not sure | ||
4800 | # whether `pass_all' will *always* work, you probably want this one. | ||
4801 | |||
4802 | case $host_os in | ||
4803 | aix4* | aix5*) | ||
4804 | lt_cv_deplibs_check_method=pass_all | ||
4805 | ;; | ||
4806 | |||
4807 | beos*) | ||
4808 | lt_cv_deplibs_check_method=pass_all | ||
4809 | ;; | ||
4810 | |||
4811 | bsdi4*) | ||
4812 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | ||
4813 | lt_cv_file_magic_cmd='/usr/bin/file -L' | ||
4814 | lt_cv_file_magic_test_file=/shlib/libc.so | ||
4815 | ;; | ||
4816 | |||
4817 | cygwin*) | ||
4818 | # func_win32_libid is a shell function defined in ltmain.sh | ||
4819 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | ||
4820 | lt_cv_file_magic_cmd='func_win32_libid' | ||
4821 | ;; | ||
4822 | |||
4823 | mingw* | pw32*) | ||
4824 | # Base MSYS/MinGW do not provide the 'file' command needed by | ||
4825 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. | ||
4826 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | ||
4827 | lt_cv_file_magic_cmd='$OBJDUMP -f' | ||
4828 | ;; | ||
4829 | |||
4830 | darwin* | rhapsody*) | ||
4831 | lt_cv_deplibs_check_method=pass_all | ||
4832 | ;; | ||
4833 | |||
4834 | freebsd* | kfreebsd*-gnu) | ||
4835 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
4836 | case $host_cpu in | ||
4837 | i*86 ) | ||
4838 | # Not sure whether the presence of OpenBSD here was a mistake. | ||
4839 | # Let's accept both of them until this is cleared up. | ||
4840 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' | ||
4841 | lt_cv_file_magic_cmd=/usr/bin/file | ||
4842 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
4843 | ;; | ||
4844 | esac | ||
4845 | else | ||
4846 | lt_cv_deplibs_check_method=pass_all | ||
4847 | fi | ||
4848 | ;; | ||
4849 | |||
4850 | gnu*) | ||
4851 | lt_cv_deplibs_check_method=pass_all | ||
4852 | ;; | ||
4853 | |||
4854 | hpux10.20* | hpux11*) | ||
4855 | lt_cv_file_magic_cmd=/usr/bin/file | ||
4856 | case "$host_cpu" in | ||
4857 | ia64*) | ||
4858 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | ||
4859 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | ||
4860 | ;; | ||
4861 | hppa*64*) | ||
4862 | 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]' | ||
4863 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | ||
4864 | ;; | ||
4865 | *) | ||
4866 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | ||
4867 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | ||
4868 | ;; | ||
4869 | esac | ||
4870 | ;; | ||
4871 | |||
4872 | irix5* | irix6* | nonstopux*) | ||
4873 | case $LD in | ||
4874 | *-32|*"-32 ") libmagic=32-bit;; | ||
4875 | *-n32|*"-n32 ") libmagic=N32;; | ||
4876 | *-64|*"-64 ") libmagic=64-bit;; | ||
4877 | *) libmagic=never-match;; | ||
4878 | esac | ||
4879 | lt_cv_deplibs_check_method=pass_all | ||
4880 | ;; | ||
4881 | |||
4882 | # This must be Linux ELF. | ||
4883 | linux*) | ||
4884 | lt_cv_deplibs_check_method=pass_all | ||
4885 | ;; | ||
4886 | |||
4887 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
4888 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | ||
4889 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | ||
4890 | else | ||
4891 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | ||
4892 | fi | ||
4893 | ;; | ||
4894 | |||
4895 | newos6*) | ||
4896 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | ||
4897 | lt_cv_file_magic_cmd=/usr/bin/file | ||
4898 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | ||
4899 | ;; | ||
4900 | |||
4901 | nto-qnx*) | ||
4902 | lt_cv_deplibs_check_method=unknown | ||
4903 | ;; | ||
4904 | |||
4905 | openbsd*) | ||
4906 | lt_cv_file_magic_cmd=/usr/bin/file | ||
4907 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | ||
4908 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
4909 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' | ||
4910 | else | ||
4911 | lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' | ||
4912 | fi | ||
4913 | ;; | ||
4914 | |||
4915 | osf3* | osf4* | osf5*) | ||
4916 | lt_cv_deplibs_check_method=pass_all | ||
4917 | ;; | ||
4918 | |||
4919 | sco3.2v5*) | ||
4920 | lt_cv_deplibs_check_method=pass_all | ||
4921 | ;; | ||
4922 | |||
4923 | solaris*) | ||
4924 | lt_cv_deplibs_check_method=pass_all | ||
4925 | ;; | ||
4926 | |||
4927 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
4928 | case $host_vendor in | ||
4929 | motorola) | ||
4930 | 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]' | ||
4931 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | ||
4932 | ;; | ||
4933 | ncr) | ||
4934 | lt_cv_deplibs_check_method=pass_all | ||
4935 | ;; | ||
4936 | sequent) | ||
4937 | lt_cv_file_magic_cmd='/bin/file' | ||
4938 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | ||
4939 | ;; | ||
4940 | sni) | ||
4941 | lt_cv_file_magic_cmd='/bin/file' | ||
4942 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | ||
4943 | lt_cv_file_magic_test_file=/lib/libc.so | ||
4944 | ;; | ||
4945 | siemens) | ||
4946 | lt_cv_deplibs_check_method=pass_all | ||
4947 | ;; | ||
4948 | esac | ||
4949 | ;; | ||
4950 | |||
4951 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) | ||
4952 | lt_cv_deplibs_check_method=pass_all | ||
4953 | ;; | ||
4954 | esac | ||
4955 | |||
4956 | fi | ||
4957 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | ||
4958 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } | ||
4959 | file_magic_cmd=$lt_cv_file_magic_cmd | ||
4960 | deplibs_check_method=$lt_cv_deplibs_check_method | ||
4961 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | ||
4962 | |||
4963 | |||
4964 | |||
4965 | |||
4966 | # If no C compiler was specified, use CC. | ||
4967 | LTCC=${LTCC-"$CC"} | ||
4968 | |||
4969 | # Allow CC to be a program name with arguments. | ||
4970 | compiler=$CC | ||
4971 | |||
4972 | # Check whether --enable-libtool-lock was given. | ||
4973 | if test "${enable_libtool_lock+set}" = set; then | ||
4974 | enableval=$enable_libtool_lock; | ||
4975 | fi | ||
4976 | |||
4977 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
4978 | |||
4979 | # Some flags need to be propagated to the compiler or linker for good | ||
4980 | # libtool support. | ||
4981 | case $host in | ||
4982 | ia64-*-hpux*) | ||
4983 | # Find out which ABI we are using. | ||
4984 | echo 'int i;' > conftest.$ac_ext | ||
4985 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
4986 | (eval $ac_compile) 2>&5 | ||
4987 | ac_status=$? | ||
4988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
4989 | (exit $ac_status); }; then | ||
4990 | case `/usr/bin/file conftest.$ac_objext` in | ||
4991 | *ELF-32*) | ||
4992 | HPUX_IA64_MODE="32" | ||
4993 | ;; | ||
4994 | *ELF-64*) | ||
4995 | HPUX_IA64_MODE="64" | ||
4996 | ;; | ||
4997 | esac | ||
4998 | fi | ||
4999 | rm -rf conftest* | ||
5000 | ;; | ||
5001 | *-*-irix6*) | ||
5002 | # Find out which ABI we are using. | ||
5003 | echo '#line 5003 "configure"' > conftest.$ac_ext | ||
5004 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5005 | (eval $ac_compile) 2>&5 | ||
5006 | ac_status=$? | ||
5007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5008 | (exit $ac_status); }; then | ||
5009 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
5010 | case `/usr/bin/file conftest.$ac_objext` in | ||
5011 | *32-bit*) | ||
5012 | LD="${LD-ld} -melf32bsmip" | ||
5013 | ;; | ||
5014 | *N32*) | ||
5015 | LD="${LD-ld} -melf32bmipn32" | ||
5016 | ;; | ||
5017 | *64-bit*) | ||
5018 | LD="${LD-ld} -melf64bmip" | ||
5019 | ;; | ||
5020 | esac | ||
5021 | else | ||
5022 | case `/usr/bin/file conftest.$ac_objext` in | ||
5023 | *32-bit*) | ||
5024 | LD="${LD-ld} -32" | ||
5025 | ;; | ||
5026 | *N32*) | ||
5027 | LD="${LD-ld} -n32" | ||
5028 | ;; | ||
5029 | *64-bit*) | ||
5030 | LD="${LD-ld} -64" | ||
5031 | ;; | ||
5032 | esac | ||
5033 | fi | ||
5034 | fi | ||
5035 | rm -rf conftest* | ||
5036 | ;; | ||
5037 | |||
5038 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | ||
5039 | # Find out which ABI we are using. | ||
5040 | echo 'int i;' > conftest.$ac_ext | ||
5041 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
5042 | (eval $ac_compile) 2>&5 | ||
5043 | ac_status=$? | ||
5044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5045 | (exit $ac_status); }; then | ||
5046 | case "`/usr/bin/file conftest.o`" in | ||
5047 | *32-bit*) | ||
5048 | case $host in | ||
5049 | x86_64-*linux*) | ||
5050 | LD="${LD-ld} -m elf_i386" | ||
5051 | ;; | ||
5052 | ppc64-*linux*|powerpc64-*linux*) | ||
5053 | LD="${LD-ld} -m elf32ppclinux" | ||
5054 | ;; | ||
5055 | s390x-*linux*) | ||
5056 | LD="${LD-ld} -m elf_s390" | ||
5057 | ;; | ||
5058 | sparc64-*linux*) | ||
5059 | LD="${LD-ld} -m elf32_sparc" | ||
5060 | ;; | ||
5061 | esac | ||
5062 | ;; | ||
5063 | *64-bit*) | ||
5064 | case $host in | ||
5065 | x86_64-*linux*) | ||
5066 | LD="${LD-ld} -m elf_x86_64" | ||
5067 | ;; | ||
5068 | ppc*-*linux*|powerpc*-*linux*) | ||
5069 | LD="${LD-ld} -m elf64ppc" | ||
5070 | ;; | ||
5071 | s390*-*linux*) | ||
5072 | LD="${LD-ld} -m elf64_s390" | ||
5073 | ;; | ||
5074 | sparc*-*linux*) | ||
5075 | LD="${LD-ld} -m elf64_sparc" | ||
5076 | ;; | ||
5077 | esac | ||
5078 | ;; | ||
5079 | esac | ||
5080 | fi | ||
5081 | rm -rf conftest* | ||
5082 | ;; | ||
5083 | |||
5084 | *-*-sco3.2v5*) | ||
5085 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | ||
5086 | SAVE_CFLAGS="$CFLAGS" | ||
5087 | CFLAGS="$CFLAGS -belf" | ||
5088 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | ||
5089 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } | ||
5090 | if test "${lt_cv_cc_needs_belf+set}" = set; then | ||
5091 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5092 | else | ||
5093 | ac_ext=c | ||
5094 | ac_cpp='$CPP $CPPFLAGS' | ||
5095 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5096 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5097 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
5098 | |||
5099 | cat >conftest.$ac_ext <<_ACEOF | ||
5100 | /* confdefs.h. */ | ||
5101 | _ACEOF | ||
5102 | cat confdefs.h >>conftest.$ac_ext | ||
5103 | cat >>conftest.$ac_ext <<_ACEOF | ||
5104 | /* end confdefs.h. */ | ||
5105 | |||
5106 | int | ||
5107 | main () | ||
5108 | { | ||
5109 | |||
5110 | ; | ||
5111 | return 0; | ||
5112 | } | ||
5113 | _ACEOF | ||
5114 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
5115 | if { (ac_try="$ac_link" | ||
5116 | case "(($ac_try" in | ||
5117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5118 | *) ac_try_echo=$ac_try;; | ||
5119 | esac | ||
5120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5121 | (eval "$ac_link") 2>conftest.er1 | ||
5122 | ac_status=$? | ||
5123 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5124 | rm -f conftest.er1 | ||
5125 | cat conftest.err >&5 | ||
5126 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5127 | (exit $ac_status); } && { | ||
5128 | test -z "$ac_c_werror_flag" || | ||
5129 | test ! -s conftest.err | ||
5130 | } && test -s conftest$ac_exeext && | ||
5131 | $as_test_x conftest$ac_exeext; then | ||
5132 | lt_cv_cc_needs_belf=yes | ||
5133 | else | ||
5134 | echo "$as_me: failed program was:" >&5 | ||
5135 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5136 | |||
5137 | lt_cv_cc_needs_belf=no | ||
5138 | fi | ||
5139 | |||
5140 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
5141 | conftest$ac_exeext conftest.$ac_ext | ||
5142 | ac_ext=c | ||
5143 | ac_cpp='$CPP $CPPFLAGS' | ||
5144 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5145 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5146 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
5147 | |||
5148 | fi | ||
5149 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | ||
5150 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } | ||
5151 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | ||
5152 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | ||
5153 | CFLAGS="$SAVE_CFLAGS" | ||
5154 | fi | ||
5155 | ;; | ||
5156 | *-*-cygwin* | *-*-mingw* | *-*-pw32*) | ||
5157 | if test -n "$ac_tool_prefix"; then | ||
5158 | # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. | ||
5159 | set dummy ${ac_tool_prefix}dlltool; ac_word=$2 | ||
5160 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5161 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5162 | if test "${ac_cv_prog_DLLTOOL+set}" = set; then | ||
5163 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5164 | else | ||
5165 | if test -n "$DLLTOOL"; then | ||
5166 | ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. | ||
5167 | else | ||
5168 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5169 | for as_dir in $PATH | ||
5170 | do | ||
5171 | IFS=$as_save_IFS | ||
5172 | test -z "$as_dir" && as_dir=. | ||
5173 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5174 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5175 | ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" | ||
5176 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5177 | break 2 | ||
5178 | fi | ||
5179 | done | ||
5180 | done | ||
5181 | IFS=$as_save_IFS | ||
5182 | |||
5183 | fi | ||
5184 | fi | ||
5185 | DLLTOOL=$ac_cv_prog_DLLTOOL | ||
5186 | if test -n "$DLLTOOL"; then | ||
5187 | { echo "$as_me:$LINENO: result: $DLLTOOL" >&5 | ||
5188 | echo "${ECHO_T}$DLLTOOL" >&6; } | ||
5189 | else | ||
5190 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5191 | echo "${ECHO_T}no" >&6; } | ||
5192 | fi | ||
5193 | |||
5194 | |||
5195 | fi | ||
5196 | if test -z "$ac_cv_prog_DLLTOOL"; then | ||
5197 | ac_ct_DLLTOOL=$DLLTOOL | ||
5198 | # Extract the first word of "dlltool", so it can be a program name with args. | ||
5199 | set dummy dlltool; ac_word=$2 | ||
5200 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5201 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5202 | if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then | ||
5203 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5204 | else | ||
5205 | if test -n "$ac_ct_DLLTOOL"; then | ||
5206 | ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. | ||
5207 | else | ||
5208 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5209 | for as_dir in $PATH | ||
5210 | do | ||
5211 | IFS=$as_save_IFS | ||
5212 | test -z "$as_dir" && as_dir=. | ||
5213 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5214 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5215 | ac_cv_prog_ac_ct_DLLTOOL="dlltool" | ||
5216 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5217 | break 2 | ||
5218 | fi | ||
5219 | done | ||
5220 | done | ||
5221 | IFS=$as_save_IFS | ||
5222 | |||
5223 | fi | ||
5224 | fi | ||
5225 | ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL | ||
5226 | if test -n "$ac_ct_DLLTOOL"; then | ||
5227 | { echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5 | ||
5228 | echo "${ECHO_T}$ac_ct_DLLTOOL" >&6; } | ||
5229 | else | ||
5230 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5231 | echo "${ECHO_T}no" >&6; } | ||
5232 | fi | ||
5233 | |||
5234 | if test "x$ac_ct_DLLTOOL" = x; then | ||
5235 | DLLTOOL="false" | ||
5236 | else | ||
5237 | case $cross_compiling:$ac_tool_warned in | ||
5238 | yes:) | ||
5239 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
5240 | whose name does not start with the host triplet. If you think this | ||
5241 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
5242 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
5243 | whose name does not start with the host triplet. If you think this | ||
5244 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
5245 | ac_tool_warned=yes ;; | ||
5246 | esac | ||
5247 | DLLTOOL=$ac_ct_DLLTOOL | ||
5248 | fi | ||
5249 | else | ||
5250 | DLLTOOL="$ac_cv_prog_DLLTOOL" | ||
5251 | fi | ||
5252 | |||
5253 | if test -n "$ac_tool_prefix"; then | ||
5254 | # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. | ||
5255 | set dummy ${ac_tool_prefix}as; ac_word=$2 | ||
5256 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5257 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5258 | if test "${ac_cv_prog_AS+set}" = set; then | ||
5259 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5260 | else | ||
5261 | if test -n "$AS"; then | ||
5262 | ac_cv_prog_AS="$AS" # Let the user override the test. | ||
5263 | else | ||
5264 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5265 | for as_dir in $PATH | ||
5266 | do | ||
5267 | IFS=$as_save_IFS | ||
5268 | test -z "$as_dir" && as_dir=. | ||
5269 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5270 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5271 | ac_cv_prog_AS="${ac_tool_prefix}as" | ||
5272 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5273 | break 2 | ||
5274 | fi | ||
5275 | done | ||
5276 | done | ||
5277 | IFS=$as_save_IFS | ||
5278 | |||
5279 | fi | ||
5280 | fi | ||
5281 | AS=$ac_cv_prog_AS | ||
5282 | if test -n "$AS"; then | ||
5283 | { echo "$as_me:$LINENO: result: $AS" >&5 | ||
5284 | echo "${ECHO_T}$AS" >&6; } | ||
5285 | else | ||
5286 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5287 | echo "${ECHO_T}no" >&6; } | ||
5288 | fi | ||
5289 | |||
5290 | |||
5291 | fi | ||
5292 | if test -z "$ac_cv_prog_AS"; then | ||
5293 | ac_ct_AS=$AS | ||
5294 | # Extract the first word of "as", so it can be a program name with args. | ||
5295 | set dummy as; ac_word=$2 | ||
5296 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5298 | if test "${ac_cv_prog_ac_ct_AS+set}" = set; then | ||
5299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5300 | else | ||
5301 | if test -n "$ac_ct_AS"; then | ||
5302 | ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. | ||
5303 | else | ||
5304 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5305 | for as_dir in $PATH | ||
5306 | do | ||
5307 | IFS=$as_save_IFS | ||
5308 | test -z "$as_dir" && as_dir=. | ||
5309 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5310 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5311 | ac_cv_prog_ac_ct_AS="as" | ||
5312 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5313 | break 2 | ||
5314 | fi | ||
5315 | done | ||
5316 | done | ||
5317 | IFS=$as_save_IFS | ||
5318 | |||
5319 | fi | ||
5320 | fi | ||
5321 | ac_ct_AS=$ac_cv_prog_ac_ct_AS | ||
5322 | if test -n "$ac_ct_AS"; then | ||
5323 | { echo "$as_me:$LINENO: result: $ac_ct_AS" >&5 | ||
5324 | echo "${ECHO_T}$ac_ct_AS" >&6; } | ||
5325 | else | ||
5326 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5327 | echo "${ECHO_T}no" >&6; } | ||
5328 | fi | ||
5329 | |||
5330 | if test "x$ac_ct_AS" = x; then | ||
5331 | AS="false" | ||
5332 | else | ||
5333 | case $cross_compiling:$ac_tool_warned in | ||
5334 | yes:) | ||
5335 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
5336 | whose name does not start with the host triplet. If you think this | ||
5337 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
5338 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
5339 | whose name does not start with the host triplet. If you think this | ||
5340 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
5341 | ac_tool_warned=yes ;; | ||
5342 | esac | ||
5343 | AS=$ac_ct_AS | ||
5344 | fi | ||
5345 | else | ||
5346 | AS="$ac_cv_prog_AS" | ||
5347 | fi | ||
5348 | |||
5349 | if test -n "$ac_tool_prefix"; then | ||
5350 | # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. | ||
5351 | set dummy ${ac_tool_prefix}objdump; ac_word=$2 | ||
5352 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5353 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5354 | if test "${ac_cv_prog_OBJDUMP+set}" = set; then | ||
5355 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5356 | else | ||
5357 | if test -n "$OBJDUMP"; then | ||
5358 | ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. | ||
5359 | else | ||
5360 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5361 | for as_dir in $PATH | ||
5362 | do | ||
5363 | IFS=$as_save_IFS | ||
5364 | test -z "$as_dir" && as_dir=. | ||
5365 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5366 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5367 | ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" | ||
5368 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5369 | break 2 | ||
5370 | fi | ||
5371 | done | ||
5372 | done | ||
5373 | IFS=$as_save_IFS | ||
5374 | |||
5375 | fi | ||
5376 | fi | ||
5377 | OBJDUMP=$ac_cv_prog_OBJDUMP | ||
5378 | if test -n "$OBJDUMP"; then | ||
5379 | { echo "$as_me:$LINENO: result: $OBJDUMP" >&5 | ||
5380 | echo "${ECHO_T}$OBJDUMP" >&6; } | ||
5381 | else | ||
5382 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5383 | echo "${ECHO_T}no" >&6; } | ||
5384 | fi | ||
5385 | |||
5386 | |||
5387 | fi | ||
5388 | if test -z "$ac_cv_prog_OBJDUMP"; then | ||
5389 | ac_ct_OBJDUMP=$OBJDUMP | ||
5390 | # Extract the first word of "objdump", so it can be a program name with args. | ||
5391 | set dummy objdump; ac_word=$2 | ||
5392 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5393 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5394 | if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then | ||
5395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5396 | else | ||
5397 | if test -n "$ac_ct_OBJDUMP"; then | ||
5398 | ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. | ||
5399 | else | ||
5400 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5401 | for as_dir in $PATH | ||
5402 | do | ||
5403 | IFS=$as_save_IFS | ||
5404 | test -z "$as_dir" && as_dir=. | ||
5405 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5406 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5407 | ac_cv_prog_ac_ct_OBJDUMP="objdump" | ||
5408 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5409 | break 2 | ||
5410 | fi | ||
5411 | done | ||
5412 | done | ||
5413 | IFS=$as_save_IFS | ||
5414 | |||
5415 | fi | ||
5416 | fi | ||
5417 | ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP | ||
5418 | if test -n "$ac_ct_OBJDUMP"; then | ||
5419 | { echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5 | ||
5420 | echo "${ECHO_T}$ac_ct_OBJDUMP" >&6; } | ||
5421 | else | ||
5422 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5423 | echo "${ECHO_T}no" >&6; } | ||
5424 | fi | ||
5425 | |||
5426 | if test "x$ac_ct_OBJDUMP" = x; then | ||
5427 | OBJDUMP="false" | ||
5428 | else | ||
5429 | case $cross_compiling:$ac_tool_warned in | ||
5430 | yes:) | ||
5431 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
5432 | whose name does not start with the host triplet. If you think this | ||
5433 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
5434 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
5435 | whose name does not start with the host triplet. If you think this | ||
5436 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
5437 | ac_tool_warned=yes ;; | ||
5438 | esac | ||
5439 | OBJDUMP=$ac_ct_OBJDUMP | ||
5440 | fi | ||
5441 | else | ||
5442 | OBJDUMP="$ac_cv_prog_OBJDUMP" | ||
5443 | fi | ||
5444 | |||
5445 | ;; | ||
5446 | |||
5447 | esac | ||
5448 | |||
5449 | need_locks="$enable_libtool_lock" | ||
5450 | |||
5451 | |||
5452 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | ||
5453 | |||
5454 | |||
5455 | |||
5456 | |||
5457 | |||
5458 | |||
5459 | |||
5460 | |||
5461 | |||
5462 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | ||
5463 | inttypes.h stdint.h unistd.h | ||
5464 | do | ||
5465 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5466 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5467 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5468 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5470 | else | ||
5471 | cat >conftest.$ac_ext <<_ACEOF | ||
5472 | /* confdefs.h. */ | ||
5473 | _ACEOF | ||
5474 | cat confdefs.h >>conftest.$ac_ext | ||
5475 | cat >>conftest.$ac_ext <<_ACEOF | ||
5476 | /* end confdefs.h. */ | ||
5477 | $ac_includes_default | ||
5478 | |||
5479 | #include <$ac_header> | ||
5480 | _ACEOF | ||
5481 | rm -f conftest.$ac_objext | ||
5482 | if { (ac_try="$ac_compile" | ||
5483 | case "(($ac_try" in | ||
5484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5485 | *) ac_try_echo=$ac_try;; | ||
5486 | esac | ||
5487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5488 | (eval "$ac_compile") 2>conftest.er1 | ||
5489 | ac_status=$? | ||
5490 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5491 | rm -f conftest.er1 | ||
5492 | cat conftest.err >&5 | ||
5493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5494 | (exit $ac_status); } && { | ||
5495 | test -z "$ac_c_werror_flag" || | ||
5496 | test ! -s conftest.err | ||
5497 | } && test -s conftest.$ac_objext; then | ||
5498 | eval "$as_ac_Header=yes" | ||
5499 | else | ||
5500 | echo "$as_me: failed program was:" >&5 | ||
5501 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5502 | |||
5503 | eval "$as_ac_Header=no" | ||
5504 | fi | ||
5505 | |||
5506 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5507 | fi | ||
5508 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5509 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5510 | echo "${ECHO_T}$ac_res" >&6; } | ||
5511 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5512 | cat >>confdefs.h <<_ACEOF | ||
5513 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5514 | _ACEOF | ||
5515 | |||
5516 | fi | ||
5517 | |||
5518 | done | ||
5519 | |||
5520 | |||
5521 | |||
5522 | for ac_header in dlfcn.h | ||
5523 | do | ||
5524 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | ||
5525 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5526 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5527 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5528 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5530 | fi | ||
5531 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5532 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5533 | echo "${ECHO_T}$ac_res" >&6; } | ||
5534 | else | ||
5535 | # Is the header compilable? | ||
5536 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | ||
5537 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | ||
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 | $ac_includes_default | ||
5545 | #include <$ac_header> | ||
5546 | _ACEOF | ||
5547 | rm -f conftest.$ac_objext | ||
5548 | if { (ac_try="$ac_compile" | ||
5549 | case "(($ac_try" in | ||
5550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5551 | *) ac_try_echo=$ac_try;; | ||
5552 | esac | ||
5553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5554 | (eval "$ac_compile") 2>conftest.er1 | ||
5555 | ac_status=$? | ||
5556 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5557 | rm -f conftest.er1 | ||
5558 | cat conftest.err >&5 | ||
5559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5560 | (exit $ac_status); } && { | ||
5561 | test -z "$ac_c_werror_flag" || | ||
5562 | test ! -s conftest.err | ||
5563 | } && test -s conftest.$ac_objext; then | ||
5564 | ac_header_compiler=yes | ||
5565 | else | ||
5566 | echo "$as_me: failed program was:" >&5 | ||
5567 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5568 | |||
5569 | ac_header_compiler=no | ||
5570 | fi | ||
5571 | |||
5572 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5573 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
5574 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
5575 | |||
5576 | # Is the header present? | ||
5577 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | ||
5578 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | ||
5579 | cat >conftest.$ac_ext <<_ACEOF | ||
5580 | /* confdefs.h. */ | ||
5581 | _ACEOF | ||
5582 | cat confdefs.h >>conftest.$ac_ext | ||
5583 | cat >>conftest.$ac_ext <<_ACEOF | ||
5584 | /* end confdefs.h. */ | ||
5585 | #include <$ac_header> | ||
5586 | _ACEOF | ||
5587 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
5588 | case "(($ac_try" in | ||
5589 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5590 | *) ac_try_echo=$ac_try;; | ||
5591 | esac | ||
5592 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5593 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
5594 | ac_status=$? | ||
5595 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5596 | rm -f conftest.er1 | ||
5597 | cat conftest.err >&5 | ||
5598 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5599 | (exit $ac_status); } >/dev/null && { | ||
5600 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
5601 | test ! -s conftest.err | ||
5602 | }; then | ||
5603 | ac_header_preproc=yes | ||
5604 | else | ||
5605 | echo "$as_me: failed program was:" >&5 | ||
5606 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5607 | |||
5608 | ac_header_preproc=no | ||
5609 | fi | ||
5610 | |||
5611 | rm -f conftest.err conftest.$ac_ext | ||
5612 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
5613 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
5614 | |||
5615 | # So? What about this header? | ||
5616 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
5617 | yes:no: ) | ||
5618 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
5619 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
5620 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | ||
5621 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | ||
5622 | ac_header_preproc=yes | ||
5623 | ;; | ||
5624 | no:yes:* ) | ||
5625 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | ||
5626 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | ||
5627 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | ||
5628 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | ||
5629 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | ||
5630 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | ||
5631 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | ||
5632 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | ||
5633 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | ||
5634 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | ||
5635 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | ||
5636 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | ||
5637 | |||
5638 | ;; | ||
5639 | esac | ||
5640 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | ||
5641 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | ||
5642 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | ||
5643 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5644 | else | ||
5645 | eval "$as_ac_Header=\$ac_header_preproc" | ||
5646 | fi | ||
5647 | ac_res=`eval echo '${'$as_ac_Header'}'` | ||
5648 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | ||
5649 | echo "${ECHO_T}$ac_res" >&6; } | ||
5650 | |||
5651 | fi | ||
5652 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | ||
5653 | cat >>confdefs.h <<_ACEOF | ||
5654 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | ||
5655 | _ACEOF | ||
5656 | |||
5657 | fi | ||
5658 | |||
5659 | done | ||
5660 | |||
5661 | ac_ext=cpp | ||
5662 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
5663 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
5664 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
5665 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
5666 | if test -z "$CXX"; then | ||
5667 | if test -n "$CCC"; then | ||
5668 | CXX=$CCC | ||
5669 | else | ||
5670 | if test -n "$ac_tool_prefix"; then | ||
5671 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
5672 | do | ||
5673 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
5674 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
5675 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5676 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5677 | if test "${ac_cv_prog_CXX+set}" = set; then | ||
5678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5679 | else | ||
5680 | if test -n "$CXX"; then | ||
5681 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | ||
5682 | else | ||
5683 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5684 | for as_dir in $PATH | ||
5685 | do | ||
5686 | IFS=$as_save_IFS | ||
5687 | test -z "$as_dir" && as_dir=. | ||
5688 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5689 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5690 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | ||
5691 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5692 | break 2 | ||
5693 | fi | ||
5694 | done | ||
5695 | done | ||
5696 | IFS=$as_save_IFS | ||
5697 | |||
5698 | fi | ||
5699 | fi | ||
5700 | CXX=$ac_cv_prog_CXX | ||
5701 | if test -n "$CXX"; then | ||
5702 | { echo "$as_me:$LINENO: result: $CXX" >&5 | ||
5703 | echo "${ECHO_T}$CXX" >&6; } | ||
5704 | else | ||
5705 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5706 | echo "${ECHO_T}no" >&6; } | ||
5707 | fi | ||
5708 | |||
5709 | |||
5710 | test -n "$CXX" && break | ||
5711 | done | ||
5712 | fi | ||
5713 | if test -z "$CXX"; then | ||
5714 | ac_ct_CXX=$CXX | ||
5715 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | ||
5716 | do | ||
5717 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
5718 | set dummy $ac_prog; ac_word=$2 | ||
5719 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
5720 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
5721 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | ||
5722 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5723 | else | ||
5724 | if test -n "$ac_ct_CXX"; then | ||
5725 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | ||
5726 | else | ||
5727 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
5728 | for as_dir in $PATH | ||
5729 | do | ||
5730 | IFS=$as_save_IFS | ||
5731 | test -z "$as_dir" && as_dir=. | ||
5732 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
5733 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
5734 | ac_cv_prog_ac_ct_CXX="$ac_prog" | ||
5735 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
5736 | break 2 | ||
5737 | fi | ||
5738 | done | ||
5739 | done | ||
5740 | IFS=$as_save_IFS | ||
5741 | |||
5742 | fi | ||
5743 | fi | ||
5744 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | ||
5745 | if test -n "$ac_ct_CXX"; then | ||
5746 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | ||
5747 | echo "${ECHO_T}$ac_ct_CXX" >&6; } | ||
5748 | else | ||
5749 | { echo "$as_me:$LINENO: result: no" >&5 | ||
5750 | echo "${ECHO_T}no" >&6; } | ||
5751 | fi | ||
5752 | |||
5753 | |||
5754 | test -n "$ac_ct_CXX" && break | ||
5755 | done | ||
5756 | |||
5757 | if test "x$ac_ct_CXX" = x; then | ||
5758 | CXX="g++" | ||
5759 | else | ||
5760 | case $cross_compiling:$ac_tool_warned in | ||
5761 | yes:) | ||
5762 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
5763 | whose name does not start with the host triplet. If you think this | ||
5764 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
5765 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
5766 | whose name does not start with the host triplet. If you think this | ||
5767 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
5768 | ac_tool_warned=yes ;; | ||
5769 | esac | ||
5770 | CXX=$ac_ct_CXX | ||
5771 | fi | ||
5772 | fi | ||
5773 | |||
5774 | fi | ||
5775 | fi | ||
5776 | # Provide some information about the compiler. | ||
5777 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 | ||
5778 | ac_compiler=`set X $ac_compile; echo $2` | ||
5779 | { (ac_try="$ac_compiler --version >&5" | ||
5780 | case "(($ac_try" in | ||
5781 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5782 | *) ac_try_echo=$ac_try;; | ||
5783 | esac | ||
5784 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5785 | (eval "$ac_compiler --version >&5") 2>&5 | ||
5786 | ac_status=$? | ||
5787 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5788 | (exit $ac_status); } | ||
5789 | { (ac_try="$ac_compiler -v >&5" | ||
5790 | case "(($ac_try" in | ||
5791 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5792 | *) ac_try_echo=$ac_try;; | ||
5793 | esac | ||
5794 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5795 | (eval "$ac_compiler -v >&5") 2>&5 | ||
5796 | ac_status=$? | ||
5797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5798 | (exit $ac_status); } | ||
5799 | { (ac_try="$ac_compiler -V >&5" | ||
5800 | case "(($ac_try" in | ||
5801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5802 | *) ac_try_echo=$ac_try;; | ||
5803 | esac | ||
5804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5805 | (eval "$ac_compiler -V >&5") 2>&5 | ||
5806 | ac_status=$? | ||
5807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5808 | (exit $ac_status); } | ||
5809 | |||
5810 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | ||
5811 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | ||
5812 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | ||
5813 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5814 | else | ||
5815 | cat >conftest.$ac_ext <<_ACEOF | ||
5816 | /* confdefs.h. */ | ||
5817 | _ACEOF | ||
5818 | cat confdefs.h >>conftest.$ac_ext | ||
5819 | cat >>conftest.$ac_ext <<_ACEOF | ||
5820 | /* end confdefs.h. */ | ||
5821 | |||
5822 | int | ||
5823 | main () | ||
5824 | { | ||
5825 | #ifndef __GNUC__ | ||
5826 | choke me | ||
5827 | #endif | ||
5828 | |||
5829 | ; | ||
5830 | return 0; | ||
5831 | } | ||
5832 | _ACEOF | ||
5833 | rm -f conftest.$ac_objext | ||
5834 | if { (ac_try="$ac_compile" | ||
5835 | case "(($ac_try" in | ||
5836 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5837 | *) ac_try_echo=$ac_try;; | ||
5838 | esac | ||
5839 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5840 | (eval "$ac_compile") 2>conftest.er1 | ||
5841 | ac_status=$? | ||
5842 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5843 | rm -f conftest.er1 | ||
5844 | cat conftest.err >&5 | ||
5845 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5846 | (exit $ac_status); } && { | ||
5847 | test -z "$ac_cxx_werror_flag" || | ||
5848 | test ! -s conftest.err | ||
5849 | } && test -s conftest.$ac_objext; then | ||
5850 | ac_compiler_gnu=yes | ||
5851 | else | ||
5852 | echo "$as_me: failed program was:" >&5 | ||
5853 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5854 | |||
5855 | ac_compiler_gnu=no | ||
5856 | fi | ||
5857 | |||
5858 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5859 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | ||
5860 | |||
5861 | fi | ||
5862 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | ||
5863 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | ||
5864 | GXX=`test $ac_compiler_gnu = yes && echo yes` | ||
5865 | ac_test_CXXFLAGS=${CXXFLAGS+set} | ||
5866 | ac_save_CXXFLAGS=$CXXFLAGS | ||
5867 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | ||
5868 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | ||
5869 | if test "${ac_cv_prog_cxx_g+set}" = set; then | ||
5870 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
5871 | else | ||
5872 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | ||
5873 | ac_cxx_werror_flag=yes | ||
5874 | ac_cv_prog_cxx_g=no | ||
5875 | CXXFLAGS="-g" | ||
5876 | cat >conftest.$ac_ext <<_ACEOF | ||
5877 | /* confdefs.h. */ | ||
5878 | _ACEOF | ||
5879 | cat confdefs.h >>conftest.$ac_ext | ||
5880 | cat >>conftest.$ac_ext <<_ACEOF | ||
5881 | /* end confdefs.h. */ | ||
5882 | |||
5883 | int | ||
5884 | main () | ||
5885 | { | ||
5886 | |||
5887 | ; | ||
5888 | return 0; | ||
5889 | } | ||
5890 | _ACEOF | ||
5891 | rm -f conftest.$ac_objext | ||
5892 | if { (ac_try="$ac_compile" | ||
5893 | case "(($ac_try" in | ||
5894 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5895 | *) ac_try_echo=$ac_try;; | ||
5896 | esac | ||
5897 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5898 | (eval "$ac_compile") 2>conftest.er1 | ||
5899 | ac_status=$? | ||
5900 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5901 | rm -f conftest.er1 | ||
5902 | cat conftest.err >&5 | ||
5903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5904 | (exit $ac_status); } && { | ||
5905 | test -z "$ac_cxx_werror_flag" || | ||
5906 | test ! -s conftest.err | ||
5907 | } && test -s conftest.$ac_objext; then | ||
5908 | ac_cv_prog_cxx_g=yes | ||
5909 | else | ||
5910 | echo "$as_me: failed program was:" >&5 | ||
5911 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5912 | |||
5913 | CXXFLAGS="" | ||
5914 | cat >conftest.$ac_ext <<_ACEOF | ||
5915 | /* confdefs.h. */ | ||
5916 | _ACEOF | ||
5917 | cat confdefs.h >>conftest.$ac_ext | ||
5918 | cat >>conftest.$ac_ext <<_ACEOF | ||
5919 | /* end confdefs.h. */ | ||
5920 | |||
5921 | int | ||
5922 | main () | ||
5923 | { | ||
5924 | |||
5925 | ; | ||
5926 | return 0; | ||
5927 | } | ||
5928 | _ACEOF | ||
5929 | rm -f conftest.$ac_objext | ||
5930 | if { (ac_try="$ac_compile" | ||
5931 | case "(($ac_try" in | ||
5932 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5933 | *) ac_try_echo=$ac_try;; | ||
5934 | esac | ||
5935 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5936 | (eval "$ac_compile") 2>conftest.er1 | ||
5937 | ac_status=$? | ||
5938 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5939 | rm -f conftest.er1 | ||
5940 | cat conftest.err >&5 | ||
5941 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5942 | (exit $ac_status); } && { | ||
5943 | test -z "$ac_cxx_werror_flag" || | ||
5944 | test ! -s conftest.err | ||
5945 | } && test -s conftest.$ac_objext; then | ||
5946 | : | ||
5947 | else | ||
5948 | echo "$as_me: failed program was:" >&5 | ||
5949 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5950 | |||
5951 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
5952 | CXXFLAGS="-g" | ||
5953 | cat >conftest.$ac_ext <<_ACEOF | ||
5954 | /* confdefs.h. */ | ||
5955 | _ACEOF | ||
5956 | cat confdefs.h >>conftest.$ac_ext | ||
5957 | cat >>conftest.$ac_ext <<_ACEOF | ||
5958 | /* end confdefs.h. */ | ||
5959 | |||
5960 | int | ||
5961 | main () | ||
5962 | { | ||
5963 | |||
5964 | ; | ||
5965 | return 0; | ||
5966 | } | ||
5967 | _ACEOF | ||
5968 | rm -f conftest.$ac_objext | ||
5969 | if { (ac_try="$ac_compile" | ||
5970 | case "(($ac_try" in | ||
5971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
5972 | *) ac_try_echo=$ac_try;; | ||
5973 | esac | ||
5974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
5975 | (eval "$ac_compile") 2>conftest.er1 | ||
5976 | ac_status=$? | ||
5977 | grep -v '^ *+' conftest.er1 >conftest.err | ||
5978 | rm -f conftest.er1 | ||
5979 | cat conftest.err >&5 | ||
5980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
5981 | (exit $ac_status); } && { | ||
5982 | test -z "$ac_cxx_werror_flag" || | ||
5983 | test ! -s conftest.err | ||
5984 | } && test -s conftest.$ac_objext; then | ||
5985 | ac_cv_prog_cxx_g=yes | ||
5986 | else | ||
5987 | echo "$as_me: failed program was:" >&5 | ||
5988 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
5989 | |||
5990 | |||
5991 | fi | ||
5992 | |||
5993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5994 | fi | ||
5995 | |||
5996 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
5997 | fi | ||
5998 | |||
5999 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6000 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | ||
6001 | fi | ||
6002 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | ||
6003 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | ||
6004 | if test "$ac_test_CXXFLAGS" = set; then | ||
6005 | CXXFLAGS=$ac_save_CXXFLAGS | ||
6006 | elif test $ac_cv_prog_cxx_g = yes; then | ||
6007 | if test "$GXX" = yes; then | ||
6008 | CXXFLAGS="-g -O2" | ||
6009 | else | ||
6010 | CXXFLAGS="-g" | ||
6011 | fi | ||
6012 | else | ||
6013 | if test "$GXX" = yes; then | ||
6014 | CXXFLAGS="-O2" | ||
6015 | else | ||
6016 | CXXFLAGS= | ||
6017 | fi | ||
6018 | fi | ||
6019 | ac_ext=cpp | ||
6020 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
6021 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6022 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6023 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
6024 | |||
6025 | depcc="$CXX" am_compiler_list= | ||
6026 | |||
6027 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | ||
6028 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | ||
6029 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | ||
6030 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6031 | else | ||
6032 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | ||
6033 | # We make a subdir and do the tests there. Otherwise we can end up | ||
6034 | # making bogus files that we don't know about and never remove. For | ||
6035 | # instance it was reported that on HP-UX the gcc test will end up | ||
6036 | # making a dummy file named `D' -- because `-MD' means `put the output | ||
6037 | # in D'. | ||
6038 | mkdir conftest.dir | ||
6039 | # Copy depcomp to subdir because otherwise we won't find it if we're | ||
6040 | # using a relative directory. | ||
6041 | cp "$am_depcomp" conftest.dir | ||
6042 | cd conftest.dir | ||
6043 | # We will build objects and dependencies in a subdirectory because | ||
6044 | # it helps to detect inapplicable dependency modes. For instance | ||
6045 | # both Tru64's cc and ICC support -MD to output dependencies as a | ||
6046 | # side effect of compilation, but ICC will put the dependencies in | ||
6047 | # the current directory while Tru64 will put them in the object | ||
6048 | # directory. | ||
6049 | mkdir sub | ||
6050 | |||
6051 | am_cv_CXX_dependencies_compiler_type=none | ||
6052 | if test "$am_compiler_list" = ""; then | ||
6053 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | ||
6054 | fi | ||
6055 | for depmode in $am_compiler_list; do | ||
6056 | # Setup a source with many dependencies, because some compilers | ||
6057 | # like to wrap large dependency lists on column 80 (with \), and | ||
6058 | # we should not choose a depcomp mode which is confused by this. | ||
6059 | # | ||
6060 | # We need to recreate these files for each test, as the compiler may | ||
6061 | # overwrite some of them when testing with obscure command lines. | ||
6062 | # This happens at least with the AIX C compiler. | ||
6063 | : > sub/conftest.c | ||
6064 | for i in 1 2 3 4 5 6; do | ||
6065 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | ||
6066 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | ||
6067 | # Solaris 8's {/usr,}/bin/sh. | ||
6068 | touch sub/conftst$i.h | ||
6069 | done | ||
6070 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | ||
6071 | |||
6072 | case $depmode in | ||
6073 | nosideeffect) | ||
6074 | # after this tag, mechanisms are not by side-effect, so they'll | ||
6075 | # only be used when explicitly requested | ||
6076 | if test "x$enable_dependency_tracking" = xyes; then | ||
6077 | continue | ||
6078 | else | ||
6079 | break | ||
6080 | fi | ||
6081 | ;; | ||
6082 | none) break ;; | ||
6083 | esac | ||
6084 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | ||
6085 | # mode. It turns out that the SunPro C++ compiler does not properly | ||
6086 | # handle `-M -o', and we need to detect this. | ||
6087 | if depmode=$depmode \ | ||
6088 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | ||
6089 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | ||
6090 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | ||
6091 | >/dev/null 2>conftest.err && | ||
6092 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | ||
6093 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | ||
6094 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | ||
6095 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | ||
6096 | # icc doesn't choke on unknown options, it will just issue warnings | ||
6097 | # or remarks (even with -Werror). So we grep stderr for any message | ||
6098 | # that says an option was ignored or not supported. | ||
6099 | # When given -MP, icc 7.0 and 7.1 complain thusly: | ||
6100 | # icc: Command line warning: ignoring option '-M'; no argument required | ||
6101 | # The diagnosis changed in icc 8.0: | ||
6102 | # icc: Command line remark: option '-MP' not supported | ||
6103 | if (grep 'ignoring option' conftest.err || | ||
6104 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | ||
6105 | am_cv_CXX_dependencies_compiler_type=$depmode | ||
6106 | break | ||
6107 | fi | ||
6108 | fi | ||
6109 | done | ||
6110 | |||
6111 | cd .. | ||
6112 | rm -rf conftest.dir | ||
6113 | else | ||
6114 | am_cv_CXX_dependencies_compiler_type=none | ||
6115 | fi | ||
6116 | |||
6117 | fi | ||
6118 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | ||
6119 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } | ||
6120 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | ||
6121 | |||
6122 | if | ||
6123 | test "x$enable_dependency_tracking" != xno \ | ||
6124 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | ||
6125 | am__fastdepCXX_TRUE= | ||
6126 | am__fastdepCXX_FALSE='#' | ||
6127 | else | ||
6128 | am__fastdepCXX_TRUE='#' | ||
6129 | am__fastdepCXX_FALSE= | ||
6130 | fi | ||
6131 | |||
6132 | |||
6133 | ac_ext=cpp | ||
6134 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
6135 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6136 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6137 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
6138 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | ||
6139 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } | ||
6140 | if test -z "$CXXCPP"; then | ||
6141 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | ||
6142 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6143 | else | ||
6144 | # Double quotes because CXXCPP needs to be expanded | ||
6145 | for CXXCPP in "$CXX -E" "/lib/cpp" | ||
6146 | do | ||
6147 | ac_preproc_ok=false | ||
6148 | for ac_cxx_preproc_warn_flag in '' yes | ||
6149 | do | ||
6150 | # Use a header file that comes with gcc, so configuring glibc | ||
6151 | # with a fresh cross-compiler works. | ||
6152 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6153 | # <limits.h> exists even on freestanding compilers. | ||
6154 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
6155 | # not just through cpp. "Syntax error" is here to catch this case. | ||
6156 | cat >conftest.$ac_ext <<_ACEOF | ||
6157 | /* confdefs.h. */ | ||
6158 | _ACEOF | ||
6159 | cat confdefs.h >>conftest.$ac_ext | ||
6160 | cat >>conftest.$ac_ext <<_ACEOF | ||
6161 | /* end confdefs.h. */ | ||
6162 | #ifdef __STDC__ | ||
6163 | # include <limits.h> | ||
6164 | #else | ||
6165 | # include <assert.h> | ||
6166 | #endif | ||
6167 | Syntax error | ||
6168 | _ACEOF | ||
6169 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
6170 | case "(($ac_try" in | ||
6171 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6172 | *) ac_try_echo=$ac_try;; | ||
6173 | esac | ||
6174 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6175 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
6176 | ac_status=$? | ||
6177 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6178 | rm -f conftest.er1 | ||
6179 | cat conftest.err >&5 | ||
6180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6181 | (exit $ac_status); } >/dev/null && { | ||
6182 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | ||
6183 | test ! -s conftest.err | ||
6184 | }; then | ||
6185 | : | ||
6186 | else | ||
6187 | echo "$as_me: failed program was:" >&5 | ||
6188 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6189 | |||
6190 | # Broken: fails on valid input. | ||
6191 | continue | ||
6192 | fi | ||
6193 | |||
6194 | rm -f conftest.err conftest.$ac_ext | ||
6195 | |||
6196 | # OK, works on sane cases. Now check whether nonexistent headers | ||
6197 | # can be detected and how. | ||
6198 | cat >conftest.$ac_ext <<_ACEOF | ||
6199 | /* confdefs.h. */ | ||
6200 | _ACEOF | ||
6201 | cat confdefs.h >>conftest.$ac_ext | ||
6202 | cat >>conftest.$ac_ext <<_ACEOF | ||
6203 | /* end confdefs.h. */ | ||
6204 | #include <ac_nonexistent.h> | ||
6205 | _ACEOF | ||
6206 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
6207 | case "(($ac_try" in | ||
6208 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6209 | *) ac_try_echo=$ac_try;; | ||
6210 | esac | ||
6211 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6212 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
6213 | ac_status=$? | ||
6214 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6215 | rm -f conftest.er1 | ||
6216 | cat conftest.err >&5 | ||
6217 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6218 | (exit $ac_status); } >/dev/null && { | ||
6219 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | ||
6220 | test ! -s conftest.err | ||
6221 | }; then | ||
6222 | # Broken: success on invalid input. | ||
6223 | continue | ||
6224 | else | ||
6225 | echo "$as_me: failed program was:" >&5 | ||
6226 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6227 | |||
6228 | # Passes both tests. | ||
6229 | ac_preproc_ok=: | ||
6230 | break | ||
6231 | fi | ||
6232 | |||
6233 | rm -f conftest.err conftest.$ac_ext | ||
6234 | |||
6235 | done | ||
6236 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
6237 | rm -f conftest.err conftest.$ac_ext | ||
6238 | if $ac_preproc_ok; then | ||
6239 | break | ||
6240 | fi | ||
6241 | |||
6242 | done | ||
6243 | ac_cv_prog_CXXCPP=$CXXCPP | ||
6244 | |||
6245 | fi | ||
6246 | CXXCPP=$ac_cv_prog_CXXCPP | ||
6247 | else | ||
6248 | ac_cv_prog_CXXCPP=$CXXCPP | ||
6249 | fi | ||
6250 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 | ||
6251 | echo "${ECHO_T}$CXXCPP" >&6; } | ||
6252 | ac_preproc_ok=false | ||
6253 | for ac_cxx_preproc_warn_flag in '' yes | ||
6254 | do | ||
6255 | # Use a header file that comes with gcc, so configuring glibc | ||
6256 | # with a fresh cross-compiler works. | ||
6257 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
6258 | # <limits.h> exists even on freestanding compilers. | ||
6259 | # On the NeXT, cc -E runs the code through the compiler's parser, | ||
6260 | # not just through cpp. "Syntax error" is here to catch this case. | ||
6261 | cat >conftest.$ac_ext <<_ACEOF | ||
6262 | /* confdefs.h. */ | ||
6263 | _ACEOF | ||
6264 | cat confdefs.h >>conftest.$ac_ext | ||
6265 | cat >>conftest.$ac_ext <<_ACEOF | ||
6266 | /* end confdefs.h. */ | ||
6267 | #ifdef __STDC__ | ||
6268 | # include <limits.h> | ||
6269 | #else | ||
6270 | # include <assert.h> | ||
6271 | #endif | ||
6272 | Syntax error | ||
6273 | _ACEOF | ||
6274 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
6275 | case "(($ac_try" in | ||
6276 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6277 | *) ac_try_echo=$ac_try;; | ||
6278 | esac | ||
6279 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6280 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
6281 | ac_status=$? | ||
6282 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6283 | rm -f conftest.er1 | ||
6284 | cat conftest.err >&5 | ||
6285 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6286 | (exit $ac_status); } >/dev/null && { | ||
6287 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | ||
6288 | test ! -s conftest.err | ||
6289 | }; then | ||
6290 | : | ||
6291 | else | ||
6292 | echo "$as_me: failed program was:" >&5 | ||
6293 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6294 | |||
6295 | # Broken: fails on valid input. | ||
6296 | continue | ||
6297 | fi | ||
6298 | |||
6299 | rm -f conftest.err conftest.$ac_ext | ||
6300 | |||
6301 | # OK, works on sane cases. Now check whether nonexistent headers | ||
6302 | # can be detected and how. | ||
6303 | cat >conftest.$ac_ext <<_ACEOF | ||
6304 | /* confdefs.h. */ | ||
6305 | _ACEOF | ||
6306 | cat confdefs.h >>conftest.$ac_ext | ||
6307 | cat >>conftest.$ac_ext <<_ACEOF | ||
6308 | /* end confdefs.h. */ | ||
6309 | #include <ac_nonexistent.h> | ||
6310 | _ACEOF | ||
6311 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
6312 | case "(($ac_try" in | ||
6313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6314 | *) ac_try_echo=$ac_try;; | ||
6315 | esac | ||
6316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6317 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
6318 | ac_status=$? | ||
6319 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6320 | rm -f conftest.er1 | ||
6321 | cat conftest.err >&5 | ||
6322 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6323 | (exit $ac_status); } >/dev/null && { | ||
6324 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | ||
6325 | test ! -s conftest.err | ||
6326 | }; then | ||
6327 | # Broken: success on invalid input. | ||
6328 | continue | ||
6329 | else | ||
6330 | echo "$as_me: failed program was:" >&5 | ||
6331 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6332 | |||
6333 | # Passes both tests. | ||
6334 | ac_preproc_ok=: | ||
6335 | break | ||
6336 | fi | ||
6337 | |||
6338 | rm -f conftest.err conftest.$ac_ext | ||
6339 | |||
6340 | done | ||
6341 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | ||
6342 | rm -f conftest.err conftest.$ac_ext | ||
6343 | if $ac_preproc_ok; then | ||
6344 | : | ||
6345 | else | ||
6346 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | ||
6347 | See \`config.log' for more details." >&5 | ||
6348 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | ||
6349 | See \`config.log' for more details." >&2;} | ||
6350 | { (exit 1); exit 1; }; } | ||
6351 | fi | ||
6352 | |||
6353 | ac_ext=cpp | ||
6354 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
6355 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6356 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6357 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
6358 | |||
6359 | |||
6360 | ac_ext=f | ||
6361 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | ||
6362 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6363 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | ||
6364 | if test -n "$ac_tool_prefix"; then | ||
6365 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn | ||
6366 | do | ||
6367 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | ||
6368 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | ||
6369 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6370 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
6371 | if test "${ac_cv_prog_F77+set}" = set; then | ||
6372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6373 | else | ||
6374 | if test -n "$F77"; then | ||
6375 | ac_cv_prog_F77="$F77" # Let the user override the test. | ||
6376 | else | ||
6377 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6378 | for as_dir in $PATH | ||
6379 | do | ||
6380 | IFS=$as_save_IFS | ||
6381 | test -z "$as_dir" && as_dir=. | ||
6382 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6383 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6384 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | ||
6385 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6386 | break 2 | ||
6387 | fi | ||
6388 | done | ||
6389 | done | ||
6390 | IFS=$as_save_IFS | ||
6391 | |||
6392 | fi | ||
6393 | fi | ||
6394 | F77=$ac_cv_prog_F77 | ||
6395 | if test -n "$F77"; then | ||
6396 | { echo "$as_me:$LINENO: result: $F77" >&5 | ||
6397 | echo "${ECHO_T}$F77" >&6; } | ||
6398 | else | ||
6399 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6400 | echo "${ECHO_T}no" >&6; } | ||
6401 | fi | ||
6402 | |||
6403 | |||
6404 | test -n "$F77" && break | ||
6405 | done | ||
6406 | fi | ||
6407 | if test -z "$F77"; then | ||
6408 | ac_ct_F77=$F77 | ||
6409 | for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn | ||
6410 | do | ||
6411 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
6412 | set dummy $ac_prog; ac_word=$2 | ||
6413 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6414 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
6415 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | ||
6416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6417 | else | ||
6418 | if test -n "$ac_ct_F77"; then | ||
6419 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | ||
6420 | else | ||
6421 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6422 | for as_dir in $PATH | ||
6423 | do | ||
6424 | IFS=$as_save_IFS | ||
6425 | test -z "$as_dir" && as_dir=. | ||
6426 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6427 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6428 | ac_cv_prog_ac_ct_F77="$ac_prog" | ||
6429 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6430 | break 2 | ||
6431 | fi | ||
6432 | done | ||
6433 | done | ||
6434 | IFS=$as_save_IFS | ||
6435 | |||
6436 | fi | ||
6437 | fi | ||
6438 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | ||
6439 | if test -n "$ac_ct_F77"; then | ||
6440 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | ||
6441 | echo "${ECHO_T}$ac_ct_F77" >&6; } | ||
6442 | else | ||
6443 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6444 | echo "${ECHO_T}no" >&6; } | ||
6445 | fi | ||
6446 | |||
6447 | |||
6448 | test -n "$ac_ct_F77" && break | ||
6449 | done | ||
6450 | |||
6451 | if test "x$ac_ct_F77" = x; then | ||
6452 | F77="" | ||
6453 | else | ||
6454 | case $cross_compiling:$ac_tool_warned in | ||
6455 | yes:) | ||
6456 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
6457 | whose name does not start with the host triplet. If you think this | ||
6458 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
6459 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
6460 | whose name does not start with the host triplet. If you think this | ||
6461 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
6462 | ac_tool_warned=yes ;; | ||
6463 | esac | ||
6464 | F77=$ac_ct_F77 | ||
6465 | fi | ||
6466 | fi | ||
6467 | |||
6468 | |||
6469 | # Provide some information about the compiler. | ||
6470 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 | ||
6471 | ac_compiler=`set X $ac_compile; echo $2` | ||
6472 | { (ac_try="$ac_compiler --version >&5" | ||
6473 | case "(($ac_try" in | ||
6474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6475 | *) ac_try_echo=$ac_try;; | ||
6476 | esac | ||
6477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6478 | (eval "$ac_compiler --version >&5") 2>&5 | ||
6479 | ac_status=$? | ||
6480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6481 | (exit $ac_status); } | ||
6482 | { (ac_try="$ac_compiler -v >&5" | ||
6483 | case "(($ac_try" in | ||
6484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6485 | *) ac_try_echo=$ac_try;; | ||
6486 | esac | ||
6487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6488 | (eval "$ac_compiler -v >&5") 2>&5 | ||
6489 | ac_status=$? | ||
6490 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6491 | (exit $ac_status); } | ||
6492 | { (ac_try="$ac_compiler -V >&5" | ||
6493 | case "(($ac_try" in | ||
6494 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6495 | *) ac_try_echo=$ac_try;; | ||
6496 | esac | ||
6497 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6498 | (eval "$ac_compiler -V >&5") 2>&5 | ||
6499 | ac_status=$? | ||
6500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6501 | (exit $ac_status); } | ||
6502 | rm -f a.out | ||
6503 | |||
6504 | # If we don't use `.F' as extension, the preprocessor is not run on the | ||
6505 | # input file. (Note that this only needs to work for GNU compilers.) | ||
6506 | ac_save_ext=$ac_ext | ||
6507 | ac_ext=F | ||
6508 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | ||
6509 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } | ||
6510 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | ||
6511 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6512 | else | ||
6513 | cat >conftest.$ac_ext <<_ACEOF | ||
6514 | program main | ||
6515 | #ifndef __GNUC__ | ||
6516 | choke me | ||
6517 | #endif | ||
6518 | |||
6519 | end | ||
6520 | _ACEOF | ||
6521 | rm -f conftest.$ac_objext | ||
6522 | if { (ac_try="$ac_compile" | ||
6523 | case "(($ac_try" in | ||
6524 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6525 | *) ac_try_echo=$ac_try;; | ||
6526 | esac | ||
6527 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6528 | (eval "$ac_compile") 2>conftest.er1 | ||
6529 | ac_status=$? | ||
6530 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6531 | rm -f conftest.er1 | ||
6532 | cat conftest.err >&5 | ||
6533 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6534 | (exit $ac_status); } && { | ||
6535 | test -z "$ac_f77_werror_flag" || | ||
6536 | test ! -s conftest.err | ||
6537 | } && test -s conftest.$ac_objext; then | ||
6538 | ac_compiler_gnu=yes | ||
6539 | else | ||
6540 | echo "$as_me: failed program was:" >&5 | ||
6541 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6542 | |||
6543 | ac_compiler_gnu=no | ||
6544 | fi | ||
6545 | |||
6546 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6547 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | ||
6548 | |||
6549 | fi | ||
6550 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | ||
6551 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } | ||
6552 | ac_ext=$ac_save_ext | ||
6553 | ac_test_FFLAGS=${FFLAGS+set} | ||
6554 | ac_save_FFLAGS=$FFLAGS | ||
6555 | FFLAGS= | ||
6556 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | ||
6557 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } | ||
6558 | if test "${ac_cv_prog_f77_g+set}" = set; then | ||
6559 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6560 | else | ||
6561 | FFLAGS=-g | ||
6562 | cat >conftest.$ac_ext <<_ACEOF | ||
6563 | program main | ||
6564 | |||
6565 | end | ||
6566 | _ACEOF | ||
6567 | rm -f conftest.$ac_objext | ||
6568 | if { (ac_try="$ac_compile" | ||
6569 | case "(($ac_try" in | ||
6570 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
6571 | *) ac_try_echo=$ac_try;; | ||
6572 | esac | ||
6573 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
6574 | (eval "$ac_compile") 2>conftest.er1 | ||
6575 | ac_status=$? | ||
6576 | grep -v '^ *+' conftest.er1 >conftest.err | ||
6577 | rm -f conftest.er1 | ||
6578 | cat conftest.err >&5 | ||
6579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6580 | (exit $ac_status); } && { | ||
6581 | test -z "$ac_f77_werror_flag" || | ||
6582 | test ! -s conftest.err | ||
6583 | } && test -s conftest.$ac_objext; then | ||
6584 | ac_cv_prog_f77_g=yes | ||
6585 | else | ||
6586 | echo "$as_me: failed program was:" >&5 | ||
6587 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
6588 | |||
6589 | ac_cv_prog_f77_g=no | ||
6590 | fi | ||
6591 | |||
6592 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
6593 | |||
6594 | fi | ||
6595 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | ||
6596 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } | ||
6597 | if test "$ac_test_FFLAGS" = set; then | ||
6598 | FFLAGS=$ac_save_FFLAGS | ||
6599 | elif test $ac_cv_prog_f77_g = yes; then | ||
6600 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | ||
6601 | FFLAGS="-g -O2" | ||
6602 | else | ||
6603 | FFLAGS="-g" | ||
6604 | fi | ||
6605 | else | ||
6606 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | ||
6607 | FFLAGS="-O2" | ||
6608 | else | ||
6609 | FFLAGS= | ||
6610 | fi | ||
6611 | fi | ||
6612 | |||
6613 | G77=`test $ac_compiler_gnu = yes && echo yes` | ||
6614 | ac_ext=c | ||
6615 | ac_cpp='$CPP $CPPFLAGS' | ||
6616 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
6617 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
6618 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
6619 | |||
6620 | |||
6621 | |||
6622 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | ||
6623 | |||
6624 | # find the maximum length of command line arguments | ||
6625 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | ||
6626 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } | ||
6627 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | ||
6628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6629 | else | ||
6630 | i=0 | ||
6631 | teststring="ABCD" | ||
6632 | |||
6633 | case $build_os in | ||
6634 | msdosdjgpp*) | ||
6635 | # On DJGPP, this test can blow up pretty badly due to problems in libc | ||
6636 | # (any single argument exceeding 2000 bytes causes a buffer overrun | ||
6637 | # during glob expansion). Even if it were fixed, the result of this | ||
6638 | # check would be larger than it should be. | ||
6639 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | ||
6640 | ;; | ||
6641 | |||
6642 | gnu*) | ||
6643 | # Under GNU Hurd, this test is not required because there is | ||
6644 | # no limit to the length of command line arguments. | ||
6645 | # Libtool will interpret -1 as no limit whatsoever | ||
6646 | lt_cv_sys_max_cmd_len=-1; | ||
6647 | ;; | ||
6648 | |||
6649 | cygwin* | mingw*) | ||
6650 | # On Win9x/ME, this test blows up -- it succeeds, but takes | ||
6651 | # about 5 minutes as the teststring grows exponentially. | ||
6652 | # Worse, since 9x/ME are not pre-emptively multitasking, | ||
6653 | # you end up with a "frozen" computer, even though with patience | ||
6654 | # the test eventually succeeds (with a max line length of 256k). | ||
6655 | # Instead, let's just punt: use the minimum linelength reported by | ||
6656 | # all of the supported platforms: 8192 (on NT/2K/XP). | ||
6657 | lt_cv_sys_max_cmd_len=8192; | ||
6658 | ;; | ||
6659 | |||
6660 | amigaos*) | ||
6661 | # On AmigaOS with pdksh, this test takes hours, literally. | ||
6662 | # So we just punt and use a minimum line length of 8192. | ||
6663 | lt_cv_sys_max_cmd_len=8192; | ||
6664 | ;; | ||
6665 | |||
6666 | *) | ||
6667 | # If test is not a shell built-in, we'll probably end up computing a | ||
6668 | # maximum length that is only half of the actual maximum length, but | ||
6669 | # we can't tell. | ||
6670 | while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | ||
6671 | = "XX$teststring") >/dev/null 2>&1 && | ||
6672 | new_result=`expr "X$teststring" : ".*" 2>&1` && | ||
6673 | lt_cv_sys_max_cmd_len=$new_result && | ||
6674 | test $i != 17 # 1/2 MB should be enough | ||
6675 | do | ||
6676 | i=`expr $i + 1` | ||
6677 | teststring=$teststring$teststring | ||
6678 | done | ||
6679 | teststring= | ||
6680 | # Add a significant safety factor because C++ compilers can tack on massive | ||
6681 | # amounts of additional arguments before passing them to the linker. | ||
6682 | # It appears as though 1/2 is a usable value. | ||
6683 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | ||
6684 | ;; | ||
6685 | esac | ||
6686 | |||
6687 | fi | ||
6688 | |||
6689 | if test -n $lt_cv_sys_max_cmd_len ; then | ||
6690 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | ||
6691 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } | ||
6692 | else | ||
6693 | { echo "$as_me:$LINENO: result: none" >&5 | ||
6694 | echo "${ECHO_T}none" >&6; } | ||
6695 | fi | ||
6696 | |||
6697 | |||
6698 | |||
6699 | |||
6700 | # Check for command to grab the raw symbol name followed by C symbol from nm. | ||
6701 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | ||
6702 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } | ||
6703 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | ||
6704 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6705 | else | ||
6706 | |||
6707 | # These are sane defaults that work on at least a few old systems. | ||
6708 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | ||
6709 | |||
6710 | # Character class describing NM global symbol codes. | ||
6711 | symcode='[BCDEGRST]' | ||
6712 | |||
6713 | # Regexp to match symbols that can be accessed directly from C. | ||
6714 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | ||
6715 | |||
6716 | # Transform the above into a raw symbol and a C symbol. | ||
6717 | symxfrm='\1 \2\3 \3' | ||
6718 | |||
6719 | # Transform an extracted symbol line into a proper C declaration | ||
6720 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | ||
6721 | |||
6722 | # Transform an extracted symbol line into symbol name and symbol address | ||
6723 | 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'" | ||
6724 | |||
6725 | # Define system-specific variables. | ||
6726 | case $host_os in | ||
6727 | aix*) | ||
6728 | symcode='[BCDT]' | ||
6729 | ;; | ||
6730 | cygwin* | mingw* | pw32*) | ||
6731 | symcode='[ABCDGISTW]' | ||
6732 | ;; | ||
6733 | hpux*) # Its linker distinguishes data from code symbols | ||
6734 | if test "$host_cpu" = ia64; then | ||
6735 | symcode='[ABCDEGRST]' | ||
6736 | fi | ||
6737 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | ||
6738 | 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'" | ||
6739 | ;; | ||
6740 | irix* | nonstopux*) | ||
6741 | symcode='[BCDEGRST]' | ||
6742 | ;; | ||
6743 | osf*) | ||
6744 | symcode='[BCDEGQRST]' | ||
6745 | ;; | ||
6746 | solaris* | sysv5*) | ||
6747 | symcode='[BDRT]' | ||
6748 | ;; | ||
6749 | sysv4) | ||
6750 | symcode='[DFNSTU]' | ||
6751 | ;; | ||
6752 | esac | ||
6753 | |||
6754 | # Handle CRLF in mingw tool chain | ||
6755 | opt_cr= | ||
6756 | case $build_os in | ||
6757 | mingw*) | ||
6758 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | ||
6759 | ;; | ||
6760 | esac | ||
6761 | |||
6762 | # If we're using GNU nm, then use its standard symbol codes. | ||
6763 | case `$NM -V 2>&1` in | ||
6764 | *GNU* | *'with BFD'*) | ||
6765 | symcode='[ABCDGIRSTW]' ;; | ||
6766 | esac | ||
6767 | |||
6768 | # Try without a prefix undercore, then with it. | ||
6769 | for ac_symprfx in "" "_"; do | ||
6770 | |||
6771 | # Write the raw and C identifiers. | ||
6772 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" | ||
6773 | |||
6774 | # Check to see that the pipe works correctly. | ||
6775 | pipe_works=no | ||
6776 | |||
6777 | rm -f conftest* | ||
6778 | cat > conftest.$ac_ext <<EOF | ||
6779 | #ifdef __cplusplus | ||
6780 | extern "C" { | ||
6781 | #endif | ||
6782 | char nm_test_var; | ||
6783 | void nm_test_func(){} | ||
6784 | #ifdef __cplusplus | ||
6785 | } | ||
6786 | #endif | ||
6787 | int main(){nm_test_var='a';nm_test_func();return(0);} | ||
6788 | EOF | ||
6789 | |||
6790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
6791 | (eval $ac_compile) 2>&5 | ||
6792 | ac_status=$? | ||
6793 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6794 | (exit $ac_status); }; then | ||
6795 | # Now try to grab the symbols. | ||
6796 | nlist=conftest.nm | ||
6797 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | ||
6798 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | ||
6799 | ac_status=$? | ||
6800 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6801 | (exit $ac_status); } && test -s "$nlist"; then | ||
6802 | # Try sorting and uniquifying the output. | ||
6803 | if sort "$nlist" | uniq > "$nlist"T; then | ||
6804 | mv -f "$nlist"T "$nlist" | ||
6805 | else | ||
6806 | rm -f "$nlist"T | ||
6807 | fi | ||
6808 | |||
6809 | # Make sure that we snagged all the symbols we need. | ||
6810 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | ||
6811 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | ||
6812 | cat <<EOF > conftest.$ac_ext | ||
6813 | #ifdef __cplusplus | ||
6814 | extern "C" { | ||
6815 | #endif | ||
6816 | |||
6817 | EOF | ||
6818 | # Now generate the symbol file. | ||
6819 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | ||
6820 | |||
6821 | cat <<EOF >> conftest.$ac_ext | ||
6822 | #if defined (__STDC__) && __STDC__ | ||
6823 | # define lt_ptr_t void * | ||
6824 | #else | ||
6825 | # define lt_ptr_t char * | ||
6826 | # define const | ||
6827 | #endif | ||
6828 | |||
6829 | /* The mapping between symbol names and symbols. */ | ||
6830 | const struct { | ||
6831 | const char *name; | ||
6832 | lt_ptr_t address; | ||
6833 | } | ||
6834 | lt_preloaded_symbols[] = | ||
6835 | { | ||
6836 | EOF | ||
6837 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | ||
6838 | cat <<\EOF >> conftest.$ac_ext | ||
6839 | {0, (lt_ptr_t) 0} | ||
6840 | }; | ||
6841 | |||
6842 | #ifdef __cplusplus | ||
6843 | } | ||
6844 | #endif | ||
6845 | EOF | ||
6846 | # Now try linking the two files. | ||
6847 | mv conftest.$ac_objext conftstm.$ac_objext | ||
6848 | lt_save_LIBS="$LIBS" | ||
6849 | lt_save_CFLAGS="$CFLAGS" | ||
6850 | LIBS="conftstm.$ac_objext" | ||
6851 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | ||
6852 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
6853 | (eval $ac_link) 2>&5 | ||
6854 | ac_status=$? | ||
6855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
6856 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | ||
6857 | pipe_works=yes | ||
6858 | fi | ||
6859 | LIBS="$lt_save_LIBS" | ||
6860 | CFLAGS="$lt_save_CFLAGS" | ||
6861 | else | ||
6862 | echo "cannot find nm_test_func in $nlist" >&5 | ||
6863 | fi | ||
6864 | else | ||
6865 | echo "cannot find nm_test_var in $nlist" >&5 | ||
6866 | fi | ||
6867 | else | ||
6868 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | ||
6869 | fi | ||
6870 | else | ||
6871 | echo "$progname: failed program was:" >&5 | ||
6872 | cat conftest.$ac_ext >&5 | ||
6873 | fi | ||
6874 | rm -f conftest* conftst* | ||
6875 | |||
6876 | # Do not use the global_symbol_pipe unless it works. | ||
6877 | if test "$pipe_works" = yes; then | ||
6878 | break | ||
6879 | else | ||
6880 | lt_cv_sys_global_symbol_pipe= | ||
6881 | fi | ||
6882 | done | ||
6883 | |||
6884 | fi | ||
6885 | |||
6886 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | ||
6887 | lt_cv_sys_global_symbol_to_cdecl= | ||
6888 | fi | ||
6889 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | ||
6890 | { echo "$as_me:$LINENO: result: failed" >&5 | ||
6891 | echo "${ECHO_T}failed" >&6; } | ||
6892 | else | ||
6893 | { echo "$as_me:$LINENO: result: ok" >&5 | ||
6894 | echo "${ECHO_T}ok" >&6; } | ||
6895 | fi | ||
6896 | |||
6897 | { echo "$as_me:$LINENO: checking for objdir" >&5 | ||
6898 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } | ||
6899 | if test "${lt_cv_objdir+set}" = set; then | ||
6900 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6901 | else | ||
6902 | rm -f .libs 2>/dev/null | ||
6903 | mkdir .libs 2>/dev/null | ||
6904 | if test -d .libs; then | ||
6905 | lt_cv_objdir=.libs | ||
6906 | else | ||
6907 | # MS-DOS does not allow filenames that begin with a dot. | ||
6908 | lt_cv_objdir=_libs | ||
6909 | fi | ||
6910 | rmdir .libs 2>/dev/null | ||
6911 | fi | ||
6912 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | ||
6913 | echo "${ECHO_T}$lt_cv_objdir" >&6; } | ||
6914 | objdir=$lt_cv_objdir | ||
6915 | |||
6916 | |||
6917 | |||
6918 | |||
6919 | |||
6920 | case $host_os in | ||
6921 | aix3*) | ||
6922 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
6923 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
6924 | # vanish in a puff of smoke. | ||
6925 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
6926 | COLLECT_NAMES= | ||
6927 | export COLLECT_NAMES | ||
6928 | fi | ||
6929 | ;; | ||
6930 | esac | ||
6931 | |||
6932 | # Sed substitution that helps us do robust quoting. It backslashifies | ||
6933 | # metacharacters that are still active within double-quoted strings. | ||
6934 | Xsed='sed -e s/^X//' | ||
6935 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | ||
6936 | |||
6937 | # Same as above, but do not quote variable references. | ||
6938 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | ||
6939 | |||
6940 | # Sed substitution to delay expansion of an escaped shell variable in a | ||
6941 | # double_quote_subst'ed string. | ||
6942 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | ||
6943 | |||
6944 | # Sed substitution to avoid accidental globbing in evaled expressions | ||
6945 | no_glob_subst='s/\*/\\\*/g' | ||
6946 | |||
6947 | # Constants: | ||
6948 | rm="rm -f" | ||
6949 | |||
6950 | # Global variables: | ||
6951 | default_ofile=libtool | ||
6952 | can_build_shared=yes | ||
6953 | |||
6954 | # All known linkers require a `.a' archive for static linking (except M$VC, | ||
6955 | # which needs '.lib'). | ||
6956 | libext=a | ||
6957 | ltmain="$ac_aux_dir/ltmain.sh" | ||
6958 | ofile="$default_ofile" | ||
6959 | with_gnu_ld="$lt_cv_prog_gnu_ld" | ||
6960 | |||
6961 | if test -n "$ac_tool_prefix"; then | ||
6962 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | ||
6963 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | ||
6964 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
6965 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
6966 | if test "${ac_cv_prog_AR+set}" = set; then | ||
6967 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
6968 | else | ||
6969 | if test -n "$AR"; then | ||
6970 | ac_cv_prog_AR="$AR" # Let the user override the test. | ||
6971 | else | ||
6972 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
6973 | for as_dir in $PATH | ||
6974 | do | ||
6975 | IFS=$as_save_IFS | ||
6976 | test -z "$as_dir" && as_dir=. | ||
6977 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
6978 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
6979 | ac_cv_prog_AR="${ac_tool_prefix}ar" | ||
6980 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
6981 | break 2 | ||
6982 | fi | ||
6983 | done | ||
6984 | done | ||
6985 | IFS=$as_save_IFS | ||
6986 | |||
6987 | fi | ||
6988 | fi | ||
6989 | AR=$ac_cv_prog_AR | ||
6990 | if test -n "$AR"; then | ||
6991 | { echo "$as_me:$LINENO: result: $AR" >&5 | ||
6992 | echo "${ECHO_T}$AR" >&6; } | ||
6993 | else | ||
6994 | { echo "$as_me:$LINENO: result: no" >&5 | ||
6995 | echo "${ECHO_T}no" >&6; } | ||
6996 | fi | ||
6997 | |||
6998 | |||
6999 | fi | ||
7000 | if test -z "$ac_cv_prog_AR"; then | ||
7001 | ac_ct_AR=$AR | ||
7002 | # Extract the first word of "ar", so it can be a program name with args. | ||
7003 | set dummy ar; ac_word=$2 | ||
7004 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
7005 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
7006 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | ||
7007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7008 | else | ||
7009 | if test -n "$ac_ct_AR"; then | ||
7010 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | ||
7011 | else | ||
7012 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7013 | for as_dir in $PATH | ||
7014 | do | ||
7015 | IFS=$as_save_IFS | ||
7016 | test -z "$as_dir" && as_dir=. | ||
7017 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7018 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7019 | ac_cv_prog_ac_ct_AR="ar" | ||
7020 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7021 | break 2 | ||
7022 | fi | ||
7023 | done | ||
7024 | done | ||
7025 | IFS=$as_save_IFS | ||
7026 | |||
7027 | fi | ||
7028 | fi | ||
7029 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | ||
7030 | if test -n "$ac_ct_AR"; then | ||
7031 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | ||
7032 | echo "${ECHO_T}$ac_ct_AR" >&6; } | ||
7033 | else | ||
7034 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7035 | echo "${ECHO_T}no" >&6; } | ||
7036 | fi | ||
7037 | |||
7038 | if test "x$ac_ct_AR" = x; then | ||
7039 | AR="false" | ||
7040 | else | ||
7041 | case $cross_compiling:$ac_tool_warned in | ||
7042 | yes:) | ||
7043 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
7044 | whose name does not start with the host triplet. If you think this | ||
7045 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
7046 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
7047 | whose name does not start with the host triplet. If you think this | ||
7048 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
7049 | ac_tool_warned=yes ;; | ||
7050 | esac | ||
7051 | AR=$ac_ct_AR | ||
7052 | fi | ||
7053 | else | ||
7054 | AR="$ac_cv_prog_AR" | ||
7055 | fi | ||
7056 | |||
7057 | if test -n "$ac_tool_prefix"; then | ||
7058 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | ||
7059 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | ||
7060 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
7061 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
7062 | if test "${ac_cv_prog_RANLIB+set}" = set; then | ||
7063 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7064 | else | ||
7065 | if test -n "$RANLIB"; then | ||
7066 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | ||
7067 | else | ||
7068 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7069 | for as_dir in $PATH | ||
7070 | do | ||
7071 | IFS=$as_save_IFS | ||
7072 | test -z "$as_dir" && as_dir=. | ||
7073 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7074 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7075 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | ||
7076 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7077 | break 2 | ||
7078 | fi | ||
7079 | done | ||
7080 | done | ||
7081 | IFS=$as_save_IFS | ||
7082 | |||
7083 | fi | ||
7084 | fi | ||
7085 | RANLIB=$ac_cv_prog_RANLIB | ||
7086 | if test -n "$RANLIB"; then | ||
7087 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | ||
7088 | echo "${ECHO_T}$RANLIB" >&6; } | ||
7089 | else | ||
7090 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7091 | echo "${ECHO_T}no" >&6; } | ||
7092 | fi | ||
7093 | |||
7094 | |||
7095 | fi | ||
7096 | if test -z "$ac_cv_prog_RANLIB"; then | ||
7097 | ac_ct_RANLIB=$RANLIB | ||
7098 | # Extract the first word of "ranlib", so it can be a program name with args. | ||
7099 | set dummy ranlib; ac_word=$2 | ||
7100 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
7101 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
7102 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | ||
7103 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7104 | else | ||
7105 | if test -n "$ac_ct_RANLIB"; then | ||
7106 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | ||
7107 | else | ||
7108 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7109 | for as_dir in $PATH | ||
7110 | do | ||
7111 | IFS=$as_save_IFS | ||
7112 | test -z "$as_dir" && as_dir=. | ||
7113 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7114 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7115 | ac_cv_prog_ac_ct_RANLIB="ranlib" | ||
7116 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7117 | break 2 | ||
7118 | fi | ||
7119 | done | ||
7120 | done | ||
7121 | IFS=$as_save_IFS | ||
7122 | |||
7123 | fi | ||
7124 | fi | ||
7125 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | ||
7126 | if test -n "$ac_ct_RANLIB"; then | ||
7127 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | ||
7128 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | ||
7129 | else | ||
7130 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7131 | echo "${ECHO_T}no" >&6; } | ||
7132 | fi | ||
7133 | |||
7134 | if test "x$ac_ct_RANLIB" = x; then | ||
7135 | RANLIB=":" | ||
7136 | else | ||
7137 | case $cross_compiling:$ac_tool_warned in | ||
7138 | yes:) | ||
7139 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
7140 | whose name does not start with the host triplet. If you think this | ||
7141 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
7142 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
7143 | whose name does not start with the host triplet. If you think this | ||
7144 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
7145 | ac_tool_warned=yes ;; | ||
7146 | esac | ||
7147 | RANLIB=$ac_ct_RANLIB | ||
7148 | fi | ||
7149 | else | ||
7150 | RANLIB="$ac_cv_prog_RANLIB" | ||
7151 | fi | ||
7152 | |||
7153 | if test -n "$ac_tool_prefix"; then | ||
7154 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | ||
7155 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | ||
7156 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
7157 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
7158 | if test "${ac_cv_prog_STRIP+set}" = set; then | ||
7159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7160 | else | ||
7161 | if test -n "$STRIP"; then | ||
7162 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | ||
7163 | else | ||
7164 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7165 | for as_dir in $PATH | ||
7166 | do | ||
7167 | IFS=$as_save_IFS | ||
7168 | test -z "$as_dir" && as_dir=. | ||
7169 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7170 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7171 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | ||
7172 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7173 | break 2 | ||
7174 | fi | ||
7175 | done | ||
7176 | done | ||
7177 | IFS=$as_save_IFS | ||
7178 | |||
7179 | fi | ||
7180 | fi | ||
7181 | STRIP=$ac_cv_prog_STRIP | ||
7182 | if test -n "$STRIP"; then | ||
7183 | { echo "$as_me:$LINENO: result: $STRIP" >&5 | ||
7184 | echo "${ECHO_T}$STRIP" >&6; } | ||
7185 | else | ||
7186 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7187 | echo "${ECHO_T}no" >&6; } | ||
7188 | fi | ||
7189 | |||
7190 | |||
7191 | fi | ||
7192 | if test -z "$ac_cv_prog_STRIP"; then | ||
7193 | ac_ct_STRIP=$STRIP | ||
7194 | # Extract the first word of "strip", so it can be a program name with args. | ||
7195 | set dummy strip; ac_word=$2 | ||
7196 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
7197 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
7198 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | ||
7199 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7200 | else | ||
7201 | if test -n "$ac_ct_STRIP"; then | ||
7202 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | ||
7203 | else | ||
7204 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
7205 | for as_dir in $PATH | ||
7206 | do | ||
7207 | IFS=$as_save_IFS | ||
7208 | test -z "$as_dir" && as_dir=. | ||
7209 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
7210 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
7211 | ac_cv_prog_ac_ct_STRIP="strip" | ||
7212 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
7213 | break 2 | ||
7214 | fi | ||
7215 | done | ||
7216 | done | ||
7217 | IFS=$as_save_IFS | ||
7218 | |||
7219 | fi | ||
7220 | fi | ||
7221 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | ||
7222 | if test -n "$ac_ct_STRIP"; then | ||
7223 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | ||
7224 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | ||
7225 | else | ||
7226 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7227 | echo "${ECHO_T}no" >&6; } | ||
7228 | fi | ||
7229 | |||
7230 | if test "x$ac_ct_STRIP" = x; then | ||
7231 | STRIP=":" | ||
7232 | else | ||
7233 | case $cross_compiling:$ac_tool_warned in | ||
7234 | yes:) | ||
7235 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
7236 | whose name does not start with the host triplet. If you think this | ||
7237 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
7238 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
7239 | whose name does not start with the host triplet. If you think this | ||
7240 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
7241 | ac_tool_warned=yes ;; | ||
7242 | esac | ||
7243 | STRIP=$ac_ct_STRIP | ||
7244 | fi | ||
7245 | else | ||
7246 | STRIP="$ac_cv_prog_STRIP" | ||
7247 | fi | ||
7248 | |||
7249 | |||
7250 | old_CC="$CC" | ||
7251 | old_CFLAGS="$CFLAGS" | ||
7252 | |||
7253 | # Set sane defaults for various variables | ||
7254 | test -z "$AR" && AR=ar | ||
7255 | test -z "$AR_FLAGS" && AR_FLAGS=cru | ||
7256 | test -z "$AS" && AS=as | ||
7257 | test -z "$CC" && CC=cc | ||
7258 | test -z "$LTCC" && LTCC=$CC | ||
7259 | test -z "$DLLTOOL" && DLLTOOL=dlltool | ||
7260 | test -z "$LD" && LD=ld | ||
7261 | test -z "$LN_S" && LN_S="ln -s" | ||
7262 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | ||
7263 | test -z "$NM" && NM=nm | ||
7264 | test -z "$SED" && SED=sed | ||
7265 | test -z "$OBJDUMP" && OBJDUMP=objdump | ||
7266 | test -z "$RANLIB" && RANLIB=: | ||
7267 | test -z "$STRIP" && STRIP=: | ||
7268 | test -z "$ac_objext" && ac_objext=o | ||
7269 | |||
7270 | # Determine commands to create old-style static archives. | ||
7271 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | ||
7272 | old_postinstall_cmds='chmod 644 $oldlib' | ||
7273 | old_postuninstall_cmds= | ||
7274 | |||
7275 | if test -n "$RANLIB"; then | ||
7276 | case $host_os in | ||
7277 | openbsd*) | ||
7278 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" | ||
7279 | ;; | ||
7280 | *) | ||
7281 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" | ||
7282 | ;; | ||
7283 | esac | ||
7284 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | ||
7285 | fi | ||
7286 | |||
7287 | # Only perform the check for file, if the check method requires it | ||
7288 | case $deplibs_check_method in | ||
7289 | file_magic*) | ||
7290 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | ||
7291 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | ||
7292 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } | ||
7293 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | ||
7294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7295 | else | ||
7296 | case $MAGIC_CMD in | ||
7297 | [\\/*] | ?:[\\/]*) | ||
7298 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
7299 | ;; | ||
7300 | *) | ||
7301 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
7302 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
7303 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
7304 | for ac_dir in $ac_dummy; do | ||
7305 | IFS="$lt_save_ifs" | ||
7306 | test -z "$ac_dir" && ac_dir=. | ||
7307 | if test -f $ac_dir/${ac_tool_prefix}file; then | ||
7308 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | ||
7309 | if test -n "$file_magic_test_file"; then | ||
7310 | case $deplibs_check_method in | ||
7311 | "file_magic "*) | ||
7312 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | ||
7313 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7314 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
7315 | $EGREP "$file_magic_regex" > /dev/null; then | ||
7316 | : | ||
7317 | else | ||
7318 | cat <<EOF 1>&2 | ||
7319 | |||
7320 | *** Warning: the command libtool uses to detect shared libraries, | ||
7321 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
7322 | *** The result is that libtool may fail to recognize shared libraries | ||
7323 | *** as such. This will affect the creation of libtool libraries that | ||
7324 | *** depend on shared libraries, but programs linked with such libtool | ||
7325 | *** libraries will work regardless of this problem. Nevertheless, you | ||
7326 | *** may want to report the problem to your system manager and/or to | ||
7327 | *** bug-libtool@gnu.org | ||
7328 | |||
7329 | EOF | ||
7330 | fi ;; | ||
7331 | esac | ||
7332 | fi | ||
7333 | break | ||
7334 | fi | ||
7335 | done | ||
7336 | IFS="$lt_save_ifs" | ||
7337 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
7338 | ;; | ||
7339 | esac | ||
7340 | fi | ||
7341 | |||
7342 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7343 | if test -n "$MAGIC_CMD"; then | ||
7344 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | ||
7345 | echo "${ECHO_T}$MAGIC_CMD" >&6; } | ||
7346 | else | ||
7347 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7348 | echo "${ECHO_T}no" >&6; } | ||
7349 | fi | ||
7350 | |||
7351 | if test -z "$lt_cv_path_MAGIC_CMD"; then | ||
7352 | if test -n "$ac_tool_prefix"; then | ||
7353 | { echo "$as_me:$LINENO: checking for file" >&5 | ||
7354 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } | ||
7355 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | ||
7356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7357 | else | ||
7358 | case $MAGIC_CMD in | ||
7359 | [\\/*] | ?:[\\/]*) | ||
7360 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | ||
7361 | ;; | ||
7362 | *) | ||
7363 | lt_save_MAGIC_CMD="$MAGIC_CMD" | ||
7364 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
7365 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | ||
7366 | for ac_dir in $ac_dummy; do | ||
7367 | IFS="$lt_save_ifs" | ||
7368 | test -z "$ac_dir" && ac_dir=. | ||
7369 | if test -f $ac_dir/file; then | ||
7370 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | ||
7371 | if test -n "$file_magic_test_file"; then | ||
7372 | case $deplibs_check_method in | ||
7373 | "file_magic "*) | ||
7374 | file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" | ||
7375 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7376 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | ||
7377 | $EGREP "$file_magic_regex" > /dev/null; then | ||
7378 | : | ||
7379 | else | ||
7380 | cat <<EOF 1>&2 | ||
7381 | |||
7382 | *** Warning: the command libtool uses to detect shared libraries, | ||
7383 | *** $file_magic_cmd, produces output that libtool cannot recognize. | ||
7384 | *** The result is that libtool may fail to recognize shared libraries | ||
7385 | *** as such. This will affect the creation of libtool libraries that | ||
7386 | *** depend on shared libraries, but programs linked with such libtool | ||
7387 | *** libraries will work regardless of this problem. Nevertheless, you | ||
7388 | *** may want to report the problem to your system manager and/or to | ||
7389 | *** bug-libtool@gnu.org | ||
7390 | |||
7391 | EOF | ||
7392 | fi ;; | ||
7393 | esac | ||
7394 | fi | ||
7395 | break | ||
7396 | fi | ||
7397 | done | ||
7398 | IFS="$lt_save_ifs" | ||
7399 | MAGIC_CMD="$lt_save_MAGIC_CMD" | ||
7400 | ;; | ||
7401 | esac | ||
7402 | fi | ||
7403 | |||
7404 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | ||
7405 | if test -n "$MAGIC_CMD"; then | ||
7406 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | ||
7407 | echo "${ECHO_T}$MAGIC_CMD" >&6; } | ||
7408 | else | ||
7409 | { echo "$as_me:$LINENO: result: no" >&5 | ||
7410 | echo "${ECHO_T}no" >&6; } | ||
7411 | fi | ||
7412 | |||
7413 | else | ||
7414 | MAGIC_CMD=: | ||
7415 | fi | ||
7416 | fi | ||
7417 | |||
7418 | fi | ||
7419 | ;; | ||
7420 | esac | ||
7421 | |||
7422 | enable_dlopen=no | ||
7423 | enable_win32_dll=yes | ||
7424 | |||
7425 | # Check whether --enable-libtool-lock was given. | ||
7426 | if test "${enable_libtool_lock+set}" = set; then | ||
7427 | enableval=$enable_libtool_lock; | ||
7428 | fi | ||
7429 | |||
7430 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | ||
7431 | |||
7432 | |||
7433 | # Check whether --with-pic was given. | ||
7434 | if test "${with_pic+set}" = set; then | ||
7435 | withval=$with_pic; pic_mode="$withval" | ||
7436 | else | ||
7437 | pic_mode=default | ||
7438 | fi | ||
7439 | |||
7440 | test -z "$pic_mode" && pic_mode=default | ||
7441 | |||
7442 | # Use C for the default configuration in the libtool script | ||
7443 | tagname= | ||
7444 | lt_save_CC="$CC" | ||
7445 | ac_ext=c | ||
7446 | ac_cpp='$CPP $CPPFLAGS' | ||
7447 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
7448 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
7449 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
7450 | |||
7451 | |||
7452 | # Source file extension for C test sources. | ||
7453 | ac_ext=c | ||
7454 | |||
7455 | # Object file extension for compiled C test sources. | ||
7456 | objext=o | ||
7457 | objext=$objext | ||
7458 | |||
7459 | # Code to be used in simple compile tests | ||
7460 | lt_simple_compile_test_code="int some_variable = 0;\n" | ||
7461 | |||
7462 | # Code to be used in simple link tests | ||
7463 | lt_simple_link_test_code='int main(){return(0);}\n' | ||
7464 | |||
7465 | |||
7466 | # If no C compiler was specified, use CC. | ||
7467 | LTCC=${LTCC-"$CC"} | ||
7468 | |||
7469 | # Allow CC to be a program name with arguments. | ||
7470 | compiler=$CC | ||
7471 | |||
7472 | |||
7473 | # | ||
7474 | # Check for any special shared library compilation flags. | ||
7475 | # | ||
7476 | lt_prog_cc_shlib= | ||
7477 | if test "$GCC" = no; then | ||
7478 | case $host_os in | ||
7479 | sco3.2v5*) | ||
7480 | lt_prog_cc_shlib='-belf' | ||
7481 | ;; | ||
7482 | esac | ||
7483 | fi | ||
7484 | if test -n "$lt_prog_cc_shlib"; then | ||
7485 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 | ||
7486 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} | ||
7487 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : | ||
7488 | else | ||
7489 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 | ||
7490 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} | ||
7491 | lt_cv_prog_cc_can_build_shared=no | ||
7492 | fi | ||
7493 | fi | ||
7494 | |||
7495 | |||
7496 | # | ||
7497 | # Check to make sure the static flag actually works. | ||
7498 | # | ||
7499 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 | ||
7500 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; } | ||
7501 | if test "${lt_prog_compiler_static_works+set}" = set; then | ||
7502 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7503 | else | ||
7504 | lt_prog_compiler_static_works=no | ||
7505 | save_LDFLAGS="$LDFLAGS" | ||
7506 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" | ||
7507 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | ||
7508 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | ||
7509 | # The compiler can only warn and ignore the option if not recognized | ||
7510 | # So say no if there are warnings | ||
7511 | if test -s conftest.err; then | ||
7512 | # Append any errors to the config.log. | ||
7513 | cat conftest.err 1>&5 | ||
7514 | else | ||
7515 | lt_prog_compiler_static_works=yes | ||
7516 | fi | ||
7517 | fi | ||
7518 | $rm conftest* | ||
7519 | LDFLAGS="$save_LDFLAGS" | ||
7520 | |||
7521 | fi | ||
7522 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | ||
7523 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } | ||
7524 | |||
7525 | if test x"$lt_prog_compiler_static_works" = xyes; then | ||
7526 | : | ||
7527 | else | ||
7528 | lt_prog_compiler_static= | ||
7529 | fi | ||
7530 | |||
7531 | |||
7532 | |||
7533 | ## CAVEAT EMPTOR: | ||
7534 | ## There is no encapsulation within the following macros, do not change | ||
7535 | ## the running order or otherwise move them around unless you know exactly | ||
7536 | ## what you are doing... | ||
7537 | |||
7538 | lt_prog_compiler_no_builtin_flag= | ||
7539 | |||
7540 | if test "$GCC" = yes; then | ||
7541 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | ||
7542 | |||
7543 | |||
7544 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
7545 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | ||
7546 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | ||
7547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7548 | else | ||
7549 | lt_cv_prog_compiler_rtti_exceptions=no | ||
7550 | ac_outfile=conftest.$ac_objext | ||
7551 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
7552 | lt_compiler_flag="-fno-rtti -fno-exceptions" | ||
7553 | # Insert the option either (1) after the last *FLAGS variable, or | ||
7554 | # (2) before a word containing "conftest.", or (3) at the end. | ||
7555 | # Note that $ac_compile itself does not contain backslashes and begins | ||
7556 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
7557 | # The option is referenced via a variable to avoid confusing sed. | ||
7558 | lt_compile=`echo "$ac_compile" | $SED \ | ||
7559 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
7560 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
7561 | -e 's:$: $lt_compiler_flag:'` | ||
7562 | (eval echo "\"\$as_me:7562: $lt_compile\"" >&5) | ||
7563 | (eval "$lt_compile" 2>conftest.err) | ||
7564 | ac_status=$? | ||
7565 | cat conftest.err >&5 | ||
7566 | echo "$as_me:7566: \$? = $ac_status" >&5 | ||
7567 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
7568 | # The compiler can only warn and ignore the option if not recognized | ||
7569 | # So say no if there are warnings | ||
7570 | if test ! -s conftest.err; then | ||
7571 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
7572 | fi | ||
7573 | fi | ||
7574 | $rm conftest* | ||
7575 | |||
7576 | fi | ||
7577 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | ||
7578 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | ||
7579 | |||
7580 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | ||
7581 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | ||
7582 | else | ||
7583 | : | ||
7584 | fi | ||
7585 | |||
7586 | fi | ||
7587 | |||
7588 | lt_prog_compiler_wl= | ||
7589 | lt_prog_compiler_pic= | ||
7590 | lt_prog_compiler_static= | ||
7591 | |||
7592 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | ||
7593 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | ||
7594 | |||
7595 | if test "$GCC" = yes; then | ||
7596 | lt_prog_compiler_wl='-Wl,' | ||
7597 | lt_prog_compiler_static='-static' | ||
7598 | |||
7599 | case $host_os in | ||
7600 | aix*) | ||
7601 | # All AIX code is PIC. | ||
7602 | if test "$host_cpu" = ia64; then | ||
7603 | # AIX 5 now supports IA64 processor | ||
7604 | lt_prog_compiler_static='-Bstatic' | ||
7605 | fi | ||
7606 | ;; | ||
7607 | |||
7608 | amigaos*) | ||
7609 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
7610 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
7611 | # like `-m68040'. | ||
7612 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | ||
7613 | ;; | ||
7614 | |||
7615 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
7616 | # PIC is the default for these OSes. | ||
7617 | ;; | ||
7618 | |||
7619 | mingw* | pw32* | os2*) | ||
7620 | # This hack is so that the source file can tell whether it is being | ||
7621 | # built for inclusion in a dll (and should export symbols for example). | ||
7622 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
7623 | ;; | ||
7624 | |||
7625 | darwin* | rhapsody*) | ||
7626 | # PIC is the default on this platform | ||
7627 | # Common symbols not allowed in MH_DYLIB files | ||
7628 | lt_prog_compiler_pic='-fno-common' | ||
7629 | ;; | ||
7630 | |||
7631 | msdosdjgpp*) | ||
7632 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
7633 | # on systems that don't support them. | ||
7634 | lt_prog_compiler_can_build_shared=no | ||
7635 | enable_shared=no | ||
7636 | ;; | ||
7637 | |||
7638 | sysv4*MP*) | ||
7639 | if test -d /usr/nec; then | ||
7640 | lt_prog_compiler_pic=-Kconform_pic | ||
7641 | fi | ||
7642 | ;; | ||
7643 | |||
7644 | hpux*) | ||
7645 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
7646 | # not for PA HP-UX. | ||
7647 | case "$host_cpu" in | ||
7648 | hppa*64*|ia64*) | ||
7649 | # +Z the default | ||
7650 | ;; | ||
7651 | *) | ||
7652 | lt_prog_compiler_pic='-fPIC' | ||
7653 | ;; | ||
7654 | esac | ||
7655 | ;; | ||
7656 | |||
7657 | *) | ||
7658 | lt_prog_compiler_pic='-fPIC' | ||
7659 | ;; | ||
7660 | esac | ||
7661 | else | ||
7662 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
7663 | case $host_os in | ||
7664 | aix*) | ||
7665 | lt_prog_compiler_wl='-Wl,' | ||
7666 | if test "$host_cpu" = ia64; then | ||
7667 | # AIX 5 now supports IA64 processor | ||
7668 | lt_prog_compiler_static='-Bstatic' | ||
7669 | else | ||
7670 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | ||
7671 | fi | ||
7672 | ;; | ||
7673 | |||
7674 | mingw* | pw32* | os2*) | ||
7675 | # This hack is so that the source file can tell whether it is being | ||
7676 | # built for inclusion in a dll (and should export symbols for example). | ||
7677 | lt_prog_compiler_pic='-DDLL_EXPORT' | ||
7678 | ;; | ||
7679 | |||
7680 | hpux9* | hpux10* | hpux11*) | ||
7681 | lt_prog_compiler_wl='-Wl,' | ||
7682 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
7683 | # not for PA HP-UX. | ||
7684 | case "$host_cpu" in | ||
7685 | hppa*64*|ia64*) | ||
7686 | # +Z the default | ||
7687 | ;; | ||
7688 | *) | ||
7689 | lt_prog_compiler_pic='+Z' | ||
7690 | ;; | ||
7691 | esac | ||
7692 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
7693 | lt_prog_compiler_static='${wl}-a ${wl}archive' | ||
7694 | ;; | ||
7695 | |||
7696 | irix5* | irix6* | nonstopux*) | ||
7697 | lt_prog_compiler_wl='-Wl,' | ||
7698 | # PIC (with -KPIC) is the default. | ||
7699 | lt_prog_compiler_static='-non_shared' | ||
7700 | ;; | ||
7701 | |||
7702 | newsos6) | ||
7703 | lt_prog_compiler_pic='-KPIC' | ||
7704 | lt_prog_compiler_static='-Bstatic' | ||
7705 | ;; | ||
7706 | |||
7707 | linux*) | ||
7708 | case $CC in | ||
7709 | icc* | ecc*) | ||
7710 | lt_prog_compiler_wl='-Wl,' | ||
7711 | lt_prog_compiler_pic='-KPIC' | ||
7712 | lt_prog_compiler_static='-static' | ||
7713 | ;; | ||
7714 | ccc*) | ||
7715 | lt_prog_compiler_wl='-Wl,' | ||
7716 | # All Alpha code is PIC. | ||
7717 | lt_prog_compiler_static='-non_shared' | ||
7718 | ;; | ||
7719 | esac | ||
7720 | ;; | ||
7721 | |||
7722 | osf3* | osf4* | osf5*) | ||
7723 | lt_prog_compiler_wl='-Wl,' | ||
7724 | # All OSF/1 code is PIC. | ||
7725 | lt_prog_compiler_static='-non_shared' | ||
7726 | ;; | ||
7727 | |||
7728 | sco3.2v5*) | ||
7729 | lt_prog_compiler_pic='-Kpic' | ||
7730 | lt_prog_compiler_static='-dn' | ||
7731 | ;; | ||
7732 | |||
7733 | solaris*) | ||
7734 | lt_prog_compiler_wl='-Wl,' | ||
7735 | lt_prog_compiler_pic='-KPIC' | ||
7736 | lt_prog_compiler_static='-Bstatic' | ||
7737 | ;; | ||
7738 | |||
7739 | sunos4*) | ||
7740 | lt_prog_compiler_wl='-Qoption ld ' | ||
7741 | lt_prog_compiler_pic='-PIC' | ||
7742 | lt_prog_compiler_static='-Bstatic' | ||
7743 | ;; | ||
7744 | |||
7745 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
7746 | lt_prog_compiler_wl='-Wl,' | ||
7747 | lt_prog_compiler_pic='-KPIC' | ||
7748 | lt_prog_compiler_static='-Bstatic' | ||
7749 | ;; | ||
7750 | |||
7751 | sysv4*MP*) | ||
7752 | if test -d /usr/nec ;then | ||
7753 | lt_prog_compiler_pic='-Kconform_pic' | ||
7754 | lt_prog_compiler_static='-Bstatic' | ||
7755 | fi | ||
7756 | ;; | ||
7757 | |||
7758 | uts4*) | ||
7759 | lt_prog_compiler_pic='-pic' | ||
7760 | lt_prog_compiler_static='-Bstatic' | ||
7761 | ;; | ||
7762 | |||
7763 | *) | ||
7764 | lt_prog_compiler_can_build_shared=no | ||
7765 | ;; | ||
7766 | esac | ||
7767 | fi | ||
7768 | |||
7769 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | ||
7770 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } | ||
7771 | |||
7772 | # | ||
7773 | # Check to make sure the PIC flag actually works. | ||
7774 | # | ||
7775 | if test -n "$lt_prog_compiler_pic"; then | ||
7776 | |||
7777 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | ||
7778 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } | ||
7779 | if test "${lt_prog_compiler_pic_works+set}" = set; then | ||
7780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7781 | else | ||
7782 | lt_prog_compiler_pic_works=no | ||
7783 | ac_outfile=conftest.$ac_objext | ||
7784 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
7785 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | ||
7786 | # Insert the option either (1) after the last *FLAGS variable, or | ||
7787 | # (2) before a word containing "conftest.", or (3) at the end. | ||
7788 | # Note that $ac_compile itself does not contain backslashes and begins | ||
7789 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
7790 | # The option is referenced via a variable to avoid confusing sed. | ||
7791 | lt_compile=`echo "$ac_compile" | $SED \ | ||
7792 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
7793 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
7794 | -e 's:$: $lt_compiler_flag:'` | ||
7795 | (eval echo "\"\$as_me:7795: $lt_compile\"" >&5) | ||
7796 | (eval "$lt_compile" 2>conftest.err) | ||
7797 | ac_status=$? | ||
7798 | cat conftest.err >&5 | ||
7799 | echo "$as_me:7799: \$? = $ac_status" >&5 | ||
7800 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
7801 | # The compiler can only warn and ignore the option if not recognized | ||
7802 | # So say no if there are warnings | ||
7803 | if test ! -s conftest.err; then | ||
7804 | lt_prog_compiler_pic_works=yes | ||
7805 | fi | ||
7806 | fi | ||
7807 | $rm conftest* | ||
7808 | |||
7809 | fi | ||
7810 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | ||
7811 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } | ||
7812 | |||
7813 | if test x"$lt_prog_compiler_pic_works" = xyes; then | ||
7814 | case $lt_prog_compiler_pic in | ||
7815 | "" | " "*) ;; | ||
7816 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | ||
7817 | esac | ||
7818 | else | ||
7819 | lt_prog_compiler_pic= | ||
7820 | lt_prog_compiler_can_build_shared=no | ||
7821 | fi | ||
7822 | |||
7823 | fi | ||
7824 | case "$host_os" in | ||
7825 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
7826 | *djgpp*) | ||
7827 | lt_prog_compiler_pic= | ||
7828 | ;; | ||
7829 | *) | ||
7830 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | ||
7831 | ;; | ||
7832 | esac | ||
7833 | |||
7834 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
7835 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | ||
7836 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | ||
7837 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
7838 | else | ||
7839 | lt_cv_prog_compiler_c_o=no | ||
7840 | $rm -r conftest 2>/dev/null | ||
7841 | mkdir conftest | ||
7842 | cd conftest | ||
7843 | mkdir out | ||
7844 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
7845 | |||
7846 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
7847 | # Insert the option either (1) after the last *FLAGS variable, or | ||
7848 | # (2) before a word containing "conftest.", or (3) at the end. | ||
7849 | # Note that $ac_compile itself does not contain backslashes and begins | ||
7850 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
7851 | lt_compile=`echo "$ac_compile" | $SED \ | ||
7852 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
7853 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
7854 | -e 's:$: $lt_compiler_flag:'` | ||
7855 | (eval echo "\"\$as_me:7855: $lt_compile\"" >&5) | ||
7856 | (eval "$lt_compile" 2>out/conftest.err) | ||
7857 | ac_status=$? | ||
7858 | cat out/conftest.err >&5 | ||
7859 | echo "$as_me:7859: \$? = $ac_status" >&5 | ||
7860 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
7861 | then | ||
7862 | # The compiler can only warn and ignore the option if not recognized | ||
7863 | # So say no if there are warnings | ||
7864 | if test ! -s out/conftest.err; then | ||
7865 | lt_cv_prog_compiler_c_o=yes | ||
7866 | fi | ||
7867 | fi | ||
7868 | chmod u+w . | ||
7869 | $rm conftest* | ||
7870 | # SGI C++ compiler will create directory out/ii_files/ for | ||
7871 | # template instantiation | ||
7872 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | ||
7873 | $rm out/* && rmdir out | ||
7874 | cd .. | ||
7875 | rmdir conftest | ||
7876 | $rm conftest* | ||
7877 | |||
7878 | fi | ||
7879 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | ||
7880 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } | ||
7881 | |||
7882 | |||
7883 | hard_links="nottested" | ||
7884 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | ||
7885 | # do not overwrite the value of need_locks provided by the user | ||
7886 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | ||
7887 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | ||
7888 | hard_links=yes | ||
7889 | $rm conftest* | ||
7890 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
7891 | touch conftest.a | ||
7892 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
7893 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
7894 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | ||
7895 | echo "${ECHO_T}$hard_links" >&6; } | ||
7896 | if test "$hard_links" = no; then | ||
7897 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
7898 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
7899 | need_locks=warn | ||
7900 | fi | ||
7901 | else | ||
7902 | need_locks=no | ||
7903 | fi | ||
7904 | |||
7905 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
7906 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | ||
7907 | |||
7908 | runpath_var= | ||
7909 | allow_undefined_flag= | ||
7910 | enable_shared_with_static_runtimes=no | ||
7911 | archive_cmds= | ||
7912 | archive_expsym_cmds= | ||
7913 | old_archive_From_new_cmds= | ||
7914 | old_archive_from_expsyms_cmds= | ||
7915 | export_dynamic_flag_spec= | ||
7916 | whole_archive_flag_spec= | ||
7917 | thread_safe_flag_spec= | ||
7918 | hardcode_libdir_flag_spec= | ||
7919 | hardcode_libdir_flag_spec_ld= | ||
7920 | hardcode_libdir_separator= | ||
7921 | hardcode_direct=no | ||
7922 | hardcode_minus_L=no | ||
7923 | hardcode_shlibpath_var=unsupported | ||
7924 | link_all_deplibs=unknown | ||
7925 | hardcode_automatic=no | ||
7926 | module_cmds= | ||
7927 | module_expsym_cmds= | ||
7928 | always_export_symbols=no | ||
7929 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
7930 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
7931 | # included in the symbol list | ||
7932 | include_expsyms= | ||
7933 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
7934 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
7935 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
7936 | # as well as any symbol that contains `d'. | ||
7937 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | ||
7938 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
7939 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
7940 | # the symbol is explicitly referenced. Since portable code cannot | ||
7941 | # rely on this symbol name, it's probably fine to never include it in | ||
7942 | # preloaded symbol tables. | ||
7943 | extract_expsyms_cmds= | ||
7944 | |||
7945 | case $host_os in | ||
7946 | cygwin* | mingw* | pw32*) | ||
7947 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
7948 | # When not using gcc, we currently assume that we are using | ||
7949 | # Microsoft Visual C++. | ||
7950 | if test "$GCC" != yes; then | ||
7951 | with_gnu_ld=no | ||
7952 | fi | ||
7953 | ;; | ||
7954 | openbsd*) | ||
7955 | with_gnu_ld=no | ||
7956 | ;; | ||
7957 | esac | ||
7958 | |||
7959 | ld_shlibs=yes | ||
7960 | if test "$with_gnu_ld" = yes; then | ||
7961 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
7962 | wlarc='${wl}' | ||
7963 | |||
7964 | # See if GNU ld supports shared libraries. | ||
7965 | case $host_os in | ||
7966 | aix3* | aix4* | aix5*) | ||
7967 | # On AIX/PPC, the GNU linker is very broken | ||
7968 | if test "$host_cpu" != ia64; then | ||
7969 | ld_shlibs=no | ||
7970 | cat <<EOF 1>&2 | ||
7971 | |||
7972 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
7973 | *** to be unable to reliably create shared libraries on AIX. | ||
7974 | *** Therefore, libtool is disabling shared libraries support. If you | ||
7975 | *** really care for shared libraries, you may want to modify your PATH | ||
7976 | *** so that a non-GNU linker is found, and then restart. | ||
7977 | |||
7978 | EOF | ||
7979 | fi | ||
7980 | ;; | ||
7981 | |||
7982 | amigaos*) | ||
7983 | 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)' | ||
7984 | hardcode_libdir_flag_spec='-L$libdir' | ||
7985 | hardcode_minus_L=yes | ||
7986 | |||
7987 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | ||
7988 | # that the semantics of dynamic libraries on AmigaOS, at least up | ||
7989 | # to version 4, is to share data among multiple programs linked | ||
7990 | # with the same dynamic library. Since this doesn't match the | ||
7991 | # behavior of shared libraries on other platforms, we can't use | ||
7992 | # them. | ||
7993 | ld_shlibs=no | ||
7994 | ;; | ||
7995 | |||
7996 | beos*) | ||
7997 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
7998 | allow_undefined_flag=unsupported | ||
7999 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
8000 | # support --undefined. This deserves some investigation. FIXME | ||
8001 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8002 | else | ||
8003 | ld_shlibs=no | ||
8004 | fi | ||
8005 | ;; | ||
8006 | |||
8007 | cygwin* | mingw* | pw32*) | ||
8008 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | ||
8009 | # as there is no search path for DLLs. | ||
8010 | hardcode_libdir_flag_spec='-L$libdir' | ||
8011 | allow_undefined_flag=unsupported | ||
8012 | always_export_symbols=no | ||
8013 | enable_shared_with_static_runtimes=yes | ||
8014 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | ||
8015 | |||
8016 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
8017 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | ||
8018 | # If the export-symbols file already is a .def file (1st line | ||
8019 | # is EXPORTS), use it as is; otherwise, prepend... | ||
8020 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
8021 | cp $export_symbols $output_objdir/$soname.def; | ||
8022 | else | ||
8023 | echo EXPORTS > $output_objdir/$soname.def; | ||
8024 | cat $export_symbols >> $output_objdir/$soname.def; | ||
8025 | fi~ | ||
8026 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | ||
8027 | else | ||
8028 | ld_shlibs=no | ||
8029 | fi | ||
8030 | ;; | ||
8031 | |||
8032 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
8033 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
8034 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
8035 | wlarc= | ||
8036 | else | ||
8037 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8038 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8039 | fi | ||
8040 | ;; | ||
8041 | |||
8042 | solaris* | sysv5*) | ||
8043 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | ||
8044 | ld_shlibs=no | ||
8045 | cat <<EOF 1>&2 | ||
8046 | |||
8047 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
8048 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
8049 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
8050 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
8051 | *** your PATH or compiler configuration so that the native linker is | ||
8052 | *** used, and then restart. | ||
8053 | |||
8054 | EOF | ||
8055 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
8056 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8057 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8058 | else | ||
8059 | ld_shlibs=no | ||
8060 | fi | ||
8061 | ;; | ||
8062 | |||
8063 | sunos4*) | ||
8064 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
8065 | wlarc= | ||
8066 | hardcode_direct=yes | ||
8067 | hardcode_shlibpath_var=no | ||
8068 | ;; | ||
8069 | |||
8070 | linux*) | ||
8071 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
8072 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8073 | archive_cmds="$tmp_archive_cmds" | ||
8074 | supports_anon_versioning=no | ||
8075 | case `$LD -v 2>/dev/null` in | ||
8076 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
8077 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
8078 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
8079 | *\ 2.11.*) ;; # other 2.11 versions | ||
8080 | *) supports_anon_versioning=yes ;; | ||
8081 | esac | ||
8082 | if test $supports_anon_versioning = yes; then | ||
8083 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | ||
8084 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
8085 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
8086 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
8087 | else | ||
8088 | archive_expsym_cmds="$tmp_archive_cmds" | ||
8089 | fi | ||
8090 | link_all_deplibs=no | ||
8091 | else | ||
8092 | ld_shlibs=no | ||
8093 | fi | ||
8094 | ;; | ||
8095 | |||
8096 | *) | ||
8097 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
8098 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
8099 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
8100 | else | ||
8101 | ld_shlibs=no | ||
8102 | fi | ||
8103 | ;; | ||
8104 | esac | ||
8105 | |||
8106 | if test "$ld_shlibs" = yes; then | ||
8107 | runpath_var=LD_RUN_PATH | ||
8108 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | ||
8109 | export_dynamic_flag_spec='${wl}--export-dynamic' | ||
8110 | # ancient GNU ld didn't support --whole-archive et. al. | ||
8111 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | ||
8112 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
8113 | else | ||
8114 | whole_archive_flag_spec= | ||
8115 | fi | ||
8116 | fi | ||
8117 | else | ||
8118 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
8119 | case $host_os in | ||
8120 | aix3*) | ||
8121 | allow_undefined_flag=unsupported | ||
8122 | always_export_symbols=yes | ||
8123 | 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' | ||
8124 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
8125 | # are no directories specified by -L. | ||
8126 | hardcode_minus_L=yes | ||
8127 | if test "$GCC" = yes && test -z "$link_static_flag"; then | ||
8128 | # Neither direct hardcoding nor static linking is supported with a | ||
8129 | # broken collect2. | ||
8130 | hardcode_direct=unsupported | ||
8131 | fi | ||
8132 | ;; | ||
8133 | |||
8134 | aix4* | aix5*) | ||
8135 | if test "$host_cpu" = ia64; then | ||
8136 | # On IA64, the linker does run time linking by default, so we don't | ||
8137 | # have to do anything special. | ||
8138 | aix_use_runtimelinking=no | ||
8139 | exp_sym_flag='-Bexport' | ||
8140 | no_entry_flag="" | ||
8141 | else | ||
8142 | # If we're using GNU nm, then we don't want the "-C" option. | ||
8143 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
8144 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | ||
8145 | 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' | ||
8146 | else | ||
8147 | 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' | ||
8148 | fi | ||
8149 | aix_use_runtimelinking=no | ||
8150 | |||
8151 | # Test if we are trying to use run time linking or normal | ||
8152 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
8153 | # need to do runtime linking. | ||
8154 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | ||
8155 | for ld_flag in $LDFLAGS; do | ||
8156 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
8157 | aix_use_runtimelinking=yes | ||
8158 | break | ||
8159 | fi | ||
8160 | done | ||
8161 | esac | ||
8162 | |||
8163 | exp_sym_flag='-bexport' | ||
8164 | no_entry_flag='-bnoentry' | ||
8165 | fi | ||
8166 | |||
8167 | # When large executables or shared objects are built, AIX ld can | ||
8168 | # have problems creating the table of contents. If linking a library | ||
8169 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
8170 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
8171 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
8172 | |||
8173 | archive_cmds='' | ||
8174 | hardcode_direct=yes | ||
8175 | hardcode_libdir_separator=':' | ||
8176 | link_all_deplibs=yes | ||
8177 | |||
8178 | if test "$GCC" = yes; then | ||
8179 | case $host_os in aix4.012|aix4.012.*) | ||
8180 | # We only want to do this on AIX 4.2 and lower, the check | ||
8181 | # below for broken collect2 doesn't work under 4.3+ | ||
8182 | collect2name=`${CC} -print-prog-name=collect2` | ||
8183 | if test -f "$collect2name" && \ | ||
8184 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
8185 | then | ||
8186 | # We have reworked collect2 | ||
8187 | hardcode_direct=yes | ||
8188 | else | ||
8189 | # We have old collect2 | ||
8190 | hardcode_direct=unsupported | ||
8191 | # It fails to find uninstalled libraries when the uninstalled | ||
8192 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
8193 | # to unsupported forces relinking | ||
8194 | hardcode_minus_L=yes | ||
8195 | hardcode_libdir_flag_spec='-L$libdir' | ||
8196 | hardcode_libdir_separator= | ||
8197 | fi | ||
8198 | esac | ||
8199 | shared_flag='-shared' | ||
8200 | else | ||
8201 | # not using gcc | ||
8202 | if test "$host_cpu" = ia64; then | ||
8203 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
8204 | # chokes on -Wl,-G. The following line is correct: | ||
8205 | shared_flag='-G' | ||
8206 | else | ||
8207 | if test "$aix_use_runtimelinking" = yes; then | ||
8208 | shared_flag='${wl}-G' | ||
8209 | else | ||
8210 | shared_flag='${wl}-bM:SRE' | ||
8211 | fi | ||
8212 | fi | ||
8213 | fi | ||
8214 | |||
8215 | # It seems that -bexpall does not export symbols beginning with | ||
8216 | # underscore (_), so it is better to generate a list of symbols to export. | ||
8217 | always_export_symbols=yes | ||
8218 | if test "$aix_use_runtimelinking" = yes; then | ||
8219 | # Warning - without using the other runtime loading flags (-brtl), | ||
8220 | # -berok will link without error, but may produce a broken library. | ||
8221 | allow_undefined_flag='-berok' | ||
8222 | # Determine the default libpath from the value encoded in an empty executable. | ||
8223 | cat >conftest.$ac_ext <<_ACEOF | ||
8224 | /* confdefs.h. */ | ||
8225 | _ACEOF | ||
8226 | cat confdefs.h >>conftest.$ac_ext | ||
8227 | cat >>conftest.$ac_ext <<_ACEOF | ||
8228 | /* end confdefs.h. */ | ||
8229 | |||
8230 | int | ||
8231 | main () | ||
8232 | { | ||
8233 | |||
8234 | ; | ||
8235 | return 0; | ||
8236 | } | ||
8237 | _ACEOF | ||
8238 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8239 | if { (ac_try="$ac_link" | ||
8240 | case "(($ac_try" in | ||
8241 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8242 | *) ac_try_echo=$ac_try;; | ||
8243 | esac | ||
8244 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8245 | (eval "$ac_link") 2>conftest.er1 | ||
8246 | ac_status=$? | ||
8247 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8248 | rm -f conftest.er1 | ||
8249 | cat conftest.err >&5 | ||
8250 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8251 | (exit $ac_status); } && { | ||
8252 | test -z "$ac_c_werror_flag" || | ||
8253 | test ! -s conftest.err | ||
8254 | } && test -s conftest$ac_exeext && | ||
8255 | $as_test_x conftest$ac_exeext; then | ||
8256 | |||
8257 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
8258 | }'` | ||
8259 | # Check for a 64-bit object if we didn't find anything. | ||
8260 | 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; } | ||
8261 | }'`; fi | ||
8262 | else | ||
8263 | echo "$as_me: failed program was:" >&5 | ||
8264 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8265 | |||
8266 | |||
8267 | fi | ||
8268 | |||
8269 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8270 | conftest$ac_exeext conftest.$ac_ext | ||
8271 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8272 | |||
8273 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
8274 | 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" | ||
8275 | else | ||
8276 | if test "$host_cpu" = ia64; then | ||
8277 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | ||
8278 | allow_undefined_flag="-z nodefs" | ||
8279 | 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" | ||
8280 | else | ||
8281 | # Determine the default libpath from the value encoded in an empty executable. | ||
8282 | cat >conftest.$ac_ext <<_ACEOF | ||
8283 | /* confdefs.h. */ | ||
8284 | _ACEOF | ||
8285 | cat confdefs.h >>conftest.$ac_ext | ||
8286 | cat >>conftest.$ac_ext <<_ACEOF | ||
8287 | /* end confdefs.h. */ | ||
8288 | |||
8289 | int | ||
8290 | main () | ||
8291 | { | ||
8292 | |||
8293 | ; | ||
8294 | return 0; | ||
8295 | } | ||
8296 | _ACEOF | ||
8297 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
8298 | if { (ac_try="$ac_link" | ||
8299 | case "(($ac_try" in | ||
8300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
8301 | *) ac_try_echo=$ac_try;; | ||
8302 | esac | ||
8303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
8304 | (eval "$ac_link") 2>conftest.er1 | ||
8305 | ac_status=$? | ||
8306 | grep -v '^ *+' conftest.er1 >conftest.err | ||
8307 | rm -f conftest.er1 | ||
8308 | cat conftest.err >&5 | ||
8309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8310 | (exit $ac_status); } && { | ||
8311 | test -z "$ac_c_werror_flag" || | ||
8312 | test ! -s conftest.err | ||
8313 | } && test -s conftest$ac_exeext && | ||
8314 | $as_test_x conftest$ac_exeext; then | ||
8315 | |||
8316 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
8317 | }'` | ||
8318 | # Check for a 64-bit object if we didn't find anything. | ||
8319 | 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; } | ||
8320 | }'`; fi | ||
8321 | else | ||
8322 | echo "$as_me: failed program was:" >&5 | ||
8323 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
8324 | |||
8325 | |||
8326 | fi | ||
8327 | |||
8328 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
8329 | conftest$ac_exeext conftest.$ac_ext | ||
8330 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
8331 | |||
8332 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
8333 | # Warning - without using the other run time loading flags, | ||
8334 | # -berok will link without error, but may produce a broken library. | ||
8335 | no_undefined_flag=' ${wl}-bernotok' | ||
8336 | allow_undefined_flag=' ${wl}-berok' | ||
8337 | # -bexpall does not export symbols beginning with underscore (_) | ||
8338 | always_export_symbols=yes | ||
8339 | # Exported symbols can be pulled into shared objects from archives | ||
8340 | whole_archive_flag_spec=' ' | ||
8341 | archive_cmds_need_lc=yes | ||
8342 | # This is similar to how AIX traditionally builds it's shared libraries. | ||
8343 | 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' | ||
8344 | fi | ||
8345 | fi | ||
8346 | ;; | ||
8347 | |||
8348 | amigaos*) | ||
8349 | 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)' | ||
8350 | hardcode_libdir_flag_spec='-L$libdir' | ||
8351 | hardcode_minus_L=yes | ||
8352 | # see comment about different semantics on the GNU ld section | ||
8353 | ld_shlibs=no | ||
8354 | ;; | ||
8355 | |||
8356 | bsdi4*) | ||
8357 | export_dynamic_flag_spec=-rdynamic | ||
8358 | ;; | ||
8359 | |||
8360 | cygwin* | mingw* | pw32*) | ||
8361 | # When not using gcc, we currently assume that we are using | ||
8362 | # Microsoft Visual C++. | ||
8363 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
8364 | # no search path for DLLs. | ||
8365 | hardcode_libdir_flag_spec=' ' | ||
8366 | allow_undefined_flag=unsupported | ||
8367 | # Tell ltmain to make .lib files, not .a files. | ||
8368 | libext=lib | ||
8369 | # Tell ltmain to make .dll files, not .so files. | ||
8370 | shrext_cmds=".dll" | ||
8371 | # FIXME: Setting linknames here is a bad hack. | ||
8372 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
8373 | # The linker will automatically build a .lib file if we build a DLL. | ||
8374 | old_archive_From_new_cmds='true' | ||
8375 | # FIXME: Should let the user specify the lib program. | ||
8376 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | ||
8377 | fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
8378 | enable_shared_with_static_runtimes=yes | ||
8379 | ;; | ||
8380 | |||
8381 | darwin* | rhapsody*) | ||
8382 | if test "$GXX" = yes ; then | ||
8383 | archive_cmds_need_lc=no | ||
8384 | case "$host_os" in | ||
8385 | rhapsody* | darwin1.[012]) | ||
8386 | allow_undefined_flag='-undefined suppress' | ||
8387 | ;; | ||
8388 | *) # Darwin 1.3 on | ||
8389 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
8390 | allow_undefined_flag='-flat_namespace -undefined suppress' | ||
8391 | else | ||
8392 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
8393 | 10.[012]) | ||
8394 | allow_undefined_flag='-flat_namespace -undefined suppress' | ||
8395 | ;; | ||
8396 | 10.*) | ||
8397 | allow_undefined_flag='-undefined dynamic_lookup' | ||
8398 | ;; | ||
8399 | esac | ||
8400 | fi | ||
8401 | ;; | ||
8402 | esac | ||
8403 | lt_int_apple_cc_single_mod=no | ||
8404 | output_verbose_link_cmd='echo' | ||
8405 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | ||
8406 | lt_int_apple_cc_single_mod=yes | ||
8407 | fi | ||
8408 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
8409 | archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
8410 | else | ||
8411 | 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' | ||
8412 | fi | ||
8413 | module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
8414 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | ||
8415 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
8416 | 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}' | ||
8417 | else | ||
8418 | 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}' | ||
8419 | fi | ||
8420 | 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}' | ||
8421 | hardcode_direct=no | ||
8422 | hardcode_automatic=yes | ||
8423 | hardcode_shlibpath_var=unsupported | ||
8424 | whole_archive_flag_spec='-all_load $convenience' | ||
8425 | link_all_deplibs=yes | ||
8426 | else | ||
8427 | ld_shlibs=no | ||
8428 | fi | ||
8429 | ;; | ||
8430 | |||
8431 | dgux*) | ||
8432 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8433 | hardcode_libdir_flag_spec='-L$libdir' | ||
8434 | hardcode_shlibpath_var=no | ||
8435 | ;; | ||
8436 | |||
8437 | freebsd1*) | ||
8438 | ld_shlibs=no | ||
8439 | ;; | ||
8440 | |||
8441 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
8442 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
8443 | # does not break anything, and helps significantly (at the cost of a little | ||
8444 | # extra space). | ||
8445 | freebsd2.2*) | ||
8446 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
8447 | hardcode_libdir_flag_spec='-R$libdir' | ||
8448 | hardcode_direct=yes | ||
8449 | hardcode_shlibpath_var=no | ||
8450 | ;; | ||
8451 | |||
8452 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
8453 | freebsd2*) | ||
8454 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
8455 | hardcode_direct=yes | ||
8456 | hardcode_minus_L=yes | ||
8457 | hardcode_shlibpath_var=no | ||
8458 | ;; | ||
8459 | |||
8460 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
8461 | freebsd* | kfreebsd*-gnu) | ||
8462 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
8463 | hardcode_libdir_flag_spec='-R$libdir' | ||
8464 | hardcode_direct=yes | ||
8465 | hardcode_shlibpath_var=no | ||
8466 | ;; | ||
8467 | |||
8468 | hpux9*) | ||
8469 | if test "$GCC" = yes; then | ||
8470 | 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' | ||
8471 | else | ||
8472 | 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' | ||
8473 | fi | ||
8474 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
8475 | hardcode_libdir_separator=: | ||
8476 | hardcode_direct=yes | ||
8477 | |||
8478 | # hardcode_minus_L: Not really in the search PATH, | ||
8479 | # but as the default location of the library. | ||
8480 | hardcode_minus_L=yes | ||
8481 | export_dynamic_flag_spec='${wl}-E' | ||
8482 | ;; | ||
8483 | |||
8484 | hpux10* | hpux11*) | ||
8485 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
8486 | case "$host_cpu" in | ||
8487 | hppa*64*|ia64*) | ||
8488 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8489 | ;; | ||
8490 | *) | ||
8491 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
8492 | ;; | ||
8493 | esac | ||
8494 | else | ||
8495 | case "$host_cpu" in | ||
8496 | hppa*64*|ia64*) | ||
8497 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8498 | ;; | ||
8499 | *) | ||
8500 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
8501 | ;; | ||
8502 | esac | ||
8503 | fi | ||
8504 | if test "$with_gnu_ld" = no; then | ||
8505 | case "$host_cpu" in | ||
8506 | hppa*64*) | ||
8507 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
8508 | hardcode_libdir_flag_spec_ld='+b $libdir' | ||
8509 | hardcode_libdir_separator=: | ||
8510 | hardcode_direct=no | ||
8511 | hardcode_shlibpath_var=no | ||
8512 | ;; | ||
8513 | ia64*) | ||
8514 | hardcode_libdir_flag_spec='-L$libdir' | ||
8515 | hardcode_direct=no | ||
8516 | hardcode_shlibpath_var=no | ||
8517 | |||
8518 | # hardcode_minus_L: Not really in the search PATH, | ||
8519 | # but as the default location of the library. | ||
8520 | hardcode_minus_L=yes | ||
8521 | ;; | ||
8522 | *) | ||
8523 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | ||
8524 | hardcode_libdir_separator=: | ||
8525 | hardcode_direct=yes | ||
8526 | export_dynamic_flag_spec='${wl}-E' | ||
8527 | |||
8528 | # hardcode_minus_L: Not really in the search PATH, | ||
8529 | # but as the default location of the library. | ||
8530 | hardcode_minus_L=yes | ||
8531 | ;; | ||
8532 | esac | ||
8533 | fi | ||
8534 | ;; | ||
8535 | |||
8536 | irix5* | irix6* | nonstopux*) | ||
8537 | if test "$GCC" = yes; then | ||
8538 | 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' | ||
8539 | else | ||
8540 | 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' | ||
8541 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | ||
8542 | fi | ||
8543 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8544 | hardcode_libdir_separator=: | ||
8545 | link_all_deplibs=yes | ||
8546 | ;; | ||
8547 | |||
8548 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
8549 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
8550 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
8551 | else | ||
8552 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
8553 | fi | ||
8554 | hardcode_libdir_flag_spec='-R$libdir' | ||
8555 | hardcode_direct=yes | ||
8556 | hardcode_shlibpath_var=no | ||
8557 | ;; | ||
8558 | |||
8559 | newsos6) | ||
8560 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8561 | hardcode_direct=yes | ||
8562 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8563 | hardcode_libdir_separator=: | ||
8564 | hardcode_shlibpath_var=no | ||
8565 | ;; | ||
8566 | |||
8567 | openbsd*) | ||
8568 | hardcode_direct=yes | ||
8569 | hardcode_shlibpath_var=no | ||
8570 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
8571 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
8572 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
8573 | export_dynamic_flag_spec='${wl}-E' | ||
8574 | else | ||
8575 | case $host_os in | ||
8576 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
8577 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
8578 | hardcode_libdir_flag_spec='-R$libdir' | ||
8579 | ;; | ||
8580 | *) | ||
8581 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
8582 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | ||
8583 | ;; | ||
8584 | esac | ||
8585 | fi | ||
8586 | ;; | ||
8587 | |||
8588 | os2*) | ||
8589 | hardcode_libdir_flag_spec='-L$libdir' | ||
8590 | hardcode_minus_L=yes | ||
8591 | allow_undefined_flag=unsupported | ||
8592 | 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' | ||
8593 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
8594 | ;; | ||
8595 | |||
8596 | osf3*) | ||
8597 | if test "$GCC" = yes; then | ||
8598 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
8599 | 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' | ||
8600 | else | ||
8601 | allow_undefined_flag=' -expect_unresolved \*' | ||
8602 | 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' | ||
8603 | fi | ||
8604 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8605 | hardcode_libdir_separator=: | ||
8606 | ;; | ||
8607 | |||
8608 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
8609 | if test "$GCC" = yes; then | ||
8610 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | ||
8611 | 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' | ||
8612 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | ||
8613 | else | ||
8614 | allow_undefined_flag=' -expect_unresolved \*' | ||
8615 | 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' | ||
8616 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | ||
8617 | $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' | ||
8618 | |||
8619 | # Both c and cxx compiler support -rpath directly | ||
8620 | hardcode_libdir_flag_spec='-rpath $libdir' | ||
8621 | fi | ||
8622 | hardcode_libdir_separator=: | ||
8623 | ;; | ||
8624 | |||
8625 | sco3.2v5*) | ||
8626 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8627 | hardcode_shlibpath_var=no | ||
8628 | export_dynamic_flag_spec='${wl}-Bexport' | ||
8629 | runpath_var=LD_RUN_PATH | ||
8630 | hardcode_runpath_var=yes | ||
8631 | ;; | ||
8632 | |||
8633 | solaris*) | ||
8634 | no_undefined_flag=' -z text' | ||
8635 | if test "$GCC" = yes; then | ||
8636 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8637 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
8638 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | ||
8639 | else | ||
8640 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8641 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
8642 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
8643 | fi | ||
8644 | hardcode_libdir_flag_spec='-R$libdir' | ||
8645 | hardcode_shlibpath_var=no | ||
8646 | case $host_os in | ||
8647 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
8648 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
8649 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | ||
8650 | esac | ||
8651 | link_all_deplibs=yes | ||
8652 | ;; | ||
8653 | |||
8654 | sunos4*) | ||
8655 | if test "x$host_vendor" = xsequent; then | ||
8656 | # Use $CC to link under sequent, because it throws in some extra .o | ||
8657 | # files that make .init and .fini sections work. | ||
8658 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8659 | else | ||
8660 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
8661 | fi | ||
8662 | hardcode_libdir_flag_spec='-L$libdir' | ||
8663 | hardcode_direct=yes | ||
8664 | hardcode_minus_L=yes | ||
8665 | hardcode_shlibpath_var=no | ||
8666 | ;; | ||
8667 | |||
8668 | sysv4) | ||
8669 | case $host_vendor in | ||
8670 | sni) | ||
8671 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8672 | hardcode_direct=yes # is this really true??? | ||
8673 | ;; | ||
8674 | siemens) | ||
8675 | ## LD is ld it makes a PLAMLIB | ||
8676 | ## CC just makes a GrossModule. | ||
8677 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
8678 | reload_cmds='$CC -r -o $output$reload_objs' | ||
8679 | hardcode_direct=no | ||
8680 | ;; | ||
8681 | motorola) | ||
8682 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8683 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | ||
8684 | ;; | ||
8685 | esac | ||
8686 | runpath_var='LD_RUN_PATH' | ||
8687 | hardcode_shlibpath_var=no | ||
8688 | ;; | ||
8689 | |||
8690 | sysv4.3*) | ||
8691 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8692 | hardcode_shlibpath_var=no | ||
8693 | export_dynamic_flag_spec='-Bexport' | ||
8694 | ;; | ||
8695 | |||
8696 | sysv4*MP*) | ||
8697 | if test -d /usr/nec; then | ||
8698 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8699 | hardcode_shlibpath_var=no | ||
8700 | runpath_var=LD_RUN_PATH | ||
8701 | hardcode_runpath_var=yes | ||
8702 | ld_shlibs=yes | ||
8703 | fi | ||
8704 | ;; | ||
8705 | |||
8706 | sysv4.2uw2*) | ||
8707 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
8708 | hardcode_direct=yes | ||
8709 | hardcode_minus_L=no | ||
8710 | hardcode_shlibpath_var=no | ||
8711 | hardcode_runpath_var=yes | ||
8712 | runpath_var=LD_RUN_PATH | ||
8713 | ;; | ||
8714 | |||
8715 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | ||
8716 | no_undefined_flag='${wl}-z ${wl}text' | ||
8717 | if test "$GCC" = yes; then | ||
8718 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8719 | else | ||
8720 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
8721 | fi | ||
8722 | runpath_var='LD_RUN_PATH' | ||
8723 | hardcode_shlibpath_var=no | ||
8724 | ;; | ||
8725 | |||
8726 | sysv5*) | ||
8727 | no_undefined_flag=' -z text' | ||
8728 | # $CC -shared without GNU ld will not create a library from C++ | ||
8729 | # object files and a static libstdc++, better avoid it by now | ||
8730 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8731 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
8732 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
8733 | hardcode_libdir_flag_spec= | ||
8734 | hardcode_shlibpath_var=no | ||
8735 | runpath_var='LD_RUN_PATH' | ||
8736 | ;; | ||
8737 | |||
8738 | uts4*) | ||
8739 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
8740 | hardcode_libdir_flag_spec='-L$libdir' | ||
8741 | hardcode_shlibpath_var=no | ||
8742 | ;; | ||
8743 | |||
8744 | *) | ||
8745 | ld_shlibs=no | ||
8746 | ;; | ||
8747 | esac | ||
8748 | fi | ||
8749 | |||
8750 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | ||
8751 | echo "${ECHO_T}$ld_shlibs" >&6; } | ||
8752 | test "$ld_shlibs" = no && can_build_shared=no | ||
8753 | |||
8754 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
8755 | if test "$GCC" = yes; then | ||
8756 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
8757 | fi | ||
8758 | |||
8759 | # | ||
8760 | # Do we need to explicitly link libc? | ||
8761 | # | ||
8762 | case "x$archive_cmds_need_lc" in | ||
8763 | x|xyes) | ||
8764 | # Assume -lc should be added | ||
8765 | archive_cmds_need_lc=yes | ||
8766 | |||
8767 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
8768 | case $archive_cmds in | ||
8769 | *'~'*) | ||
8770 | # FIXME: we may have to deal with multi-command sequences. | ||
8771 | ;; | ||
8772 | '$CC '*) | ||
8773 | # Test whether the compiler implicitly links with -lc since on some | ||
8774 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
8775 | # to ld, don't add -lc before -lgcc. | ||
8776 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | ||
8777 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | ||
8778 | $rm conftest* | ||
8779 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
8780 | |||
8781 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
8782 | (eval $ac_compile) 2>&5 | ||
8783 | ac_status=$? | ||
8784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8785 | (exit $ac_status); } 2>conftest.err; then | ||
8786 | soname=conftest | ||
8787 | lib=conftest | ||
8788 | libobjs=conftest.$ac_objext | ||
8789 | deplibs= | ||
8790 | wl=$lt_prog_compiler_wl | ||
8791 | compiler_flags=-v | ||
8792 | linker_flags=-v | ||
8793 | verstring= | ||
8794 | output_objdir=. | ||
8795 | libname=conftest | ||
8796 | lt_save_allow_undefined_flag=$allow_undefined_flag | ||
8797 | allow_undefined_flag= | ||
8798 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | ||
8799 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
8800 | ac_status=$? | ||
8801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
8802 | (exit $ac_status); } | ||
8803 | then | ||
8804 | archive_cmds_need_lc=no | ||
8805 | else | ||
8806 | archive_cmds_need_lc=yes | ||
8807 | fi | ||
8808 | allow_undefined_flag=$lt_save_allow_undefined_flag | ||
8809 | else | ||
8810 | cat conftest.err 1>&5 | ||
8811 | fi | ||
8812 | $rm conftest* | ||
8813 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | ||
8814 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } | ||
8815 | ;; | ||
8816 | esac | ||
8817 | fi | ||
8818 | ;; | ||
8819 | esac | ||
8820 | |||
8821 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | ||
8822 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | ||
8823 | library_names_spec= | ||
8824 | libname_spec='lib$name' | ||
8825 | soname_spec= | ||
8826 | shrext_cmds=".so" | ||
8827 | postinstall_cmds= | ||
8828 | postuninstall_cmds= | ||
8829 | finish_cmds= | ||
8830 | finish_eval= | ||
8831 | shlibpath_var= | ||
8832 | shlibpath_overrides_runpath=unknown | ||
8833 | version_type=none | ||
8834 | dynamic_linker="$host_os ld.so" | ||
8835 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
8836 | if test "$GCC" = yes; then | ||
8837 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
8838 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | ||
8839 | # if the path contains ";" then we assume it to be the separator | ||
8840 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
8841 | # assumed that no part of a normal pathname contains ";" but that should | ||
8842 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
8843 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
8844 | else | ||
8845 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
8846 | fi | ||
8847 | else | ||
8848 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
8849 | fi | ||
8850 | need_lib_prefix=unknown | ||
8851 | hardcode_into_libs=no | ||
8852 | |||
8853 | # when you set need_version to no, make sure it does not cause -set_version | ||
8854 | # flags to be left without arguments | ||
8855 | need_version=unknown | ||
8856 | |||
8857 | case $host_os in | ||
8858 | aix3*) | ||
8859 | version_type=linux | ||
8860 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
8861 | shlibpath_var=LIBPATH | ||
8862 | |||
8863 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
8864 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8865 | ;; | ||
8866 | |||
8867 | aix4* | aix5*) | ||
8868 | version_type=linux | ||
8869 | need_lib_prefix=no | ||
8870 | need_version=no | ||
8871 | hardcode_into_libs=yes | ||
8872 | if test "$host_cpu" = ia64; then | ||
8873 | # AIX 5 supports IA64 | ||
8874 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
8875 | shlibpath_var=LD_LIBRARY_PATH | ||
8876 | else | ||
8877 | # With GCC up to 2.95.x, collect2 would create an import file | ||
8878 | # for dependence libraries. The import file would start with | ||
8879 | # the line `#! .'. This would cause the generated library to | ||
8880 | # depend on `.', always an invalid library. This was fixed in | ||
8881 | # development snapshots of GCC prior to 3.0. | ||
8882 | case $host_os in | ||
8883 | aix4 | aix4.[01] | aix4.[01].*) | ||
8884 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
8885 | echo ' yes ' | ||
8886 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | ||
8887 | : | ||
8888 | else | ||
8889 | can_build_shared=no | ||
8890 | fi | ||
8891 | ;; | ||
8892 | esac | ||
8893 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
8894 | # soname into executable. Probably we can add versioning support to | ||
8895 | # collect2, so additional links can be useful in future. | ||
8896 | if test "$aix_use_runtimelinking" = yes; then | ||
8897 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
8898 | # instead of lib<name>.a to let people know that these are not | ||
8899 | # typical AIX shared libraries. | ||
8900 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
8901 | else | ||
8902 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
8903 | # and later when we are not doing run time linking. | ||
8904 | library_names_spec='${libname}${release}.a $libname.a' | ||
8905 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8906 | fi | ||
8907 | shlibpath_var=LIBPATH | ||
8908 | fi | ||
8909 | ;; | ||
8910 | |||
8911 | amigaos*) | ||
8912 | library_names_spec='$libname.ixlibrary $libname.a' | ||
8913 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
8914 | 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' | ||
8915 | ;; | ||
8916 | |||
8917 | beos*) | ||
8918 | library_names_spec='${libname}${shared_ext}' | ||
8919 | dynamic_linker="$host_os ld.so" | ||
8920 | shlibpath_var=LIBRARY_PATH | ||
8921 | ;; | ||
8922 | |||
8923 | bsdi4*) | ||
8924 | version_type=linux | ||
8925 | need_version=no | ||
8926 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
8927 | soname_spec='${libname}${release}${shared_ext}$major' | ||
8928 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
8929 | shlibpath_var=LD_LIBRARY_PATH | ||
8930 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
8931 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
8932 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
8933 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
8934 | # libtool to hard-code these into programs | ||
8935 | ;; | ||
8936 | |||
8937 | cygwin* | mingw* | pw32*) | ||
8938 | version_type=windows | ||
8939 | shrext_cmds=".dll" | ||
8940 | need_version=no | ||
8941 | need_lib_prefix=no | ||
8942 | |||
8943 | case $GCC,$host_os in | ||
8944 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
8945 | library_names_spec='$libname.dll.a' | ||
8946 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
8947 | postinstall_cmds='base_file=`basename \${file}`~ | ||
8948 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | ||
8949 | dldir=$destdir/`dirname \$dlpath`~ | ||
8950 | test -d \$dldir || mkdir -p \$dldir~ | ||
8951 | $install_prog $dir/$dlname \$dldir/$dlname' | ||
8952 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
8953 | dlpath=$dir/\$dldll~ | ||
8954 | $rm \$dlpath' | ||
8955 | shlibpath_overrides_runpath=yes | ||
8956 | |||
8957 | case $host_os in | ||
8958 | cygwin*) | ||
8959 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
8960 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
8961 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
8962 | ;; | ||
8963 | mingw*) | ||
8964 | # MinGW DLLs use traditional 'lib' prefix | ||
8965 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
8966 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
8967 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | ||
8968 | # It is most probably a Windows format PATH printed by | ||
8969 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
8970 | # path with ; separators, and with drive letters. We can handle the | ||
8971 | # drive letters (cygwin fileutils understands them), so leave them, | ||
8972 | # especially as we might pass files found there to a mingw objdump, | ||
8973 | # which wouldn't understand a cygwinified path. Ahh. | ||
8974 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
8975 | else | ||
8976 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
8977 | fi | ||
8978 | ;; | ||
8979 | pw32*) | ||
8980 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
8981 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | ||
8982 | ;; | ||
8983 | esac | ||
8984 | ;; | ||
8985 | |||
8986 | *) | ||
8987 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
8988 | ;; | ||
8989 | esac | ||
8990 | dynamic_linker='Win32 ld.exe' | ||
8991 | # FIXME: first we should search . and the directory the executable is in | ||
8992 | shlibpath_var=PATH | ||
8993 | ;; | ||
8994 | |||
8995 | darwin* | rhapsody*) | ||
8996 | dynamic_linker="$host_os dyld" | ||
8997 | version_type=darwin | ||
8998 | need_lib_prefix=no | ||
8999 | need_version=no | ||
9000 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
9001 | soname_spec='${libname}${release}${major}$shared_ext' | ||
9002 | shlibpath_overrides_runpath=yes | ||
9003 | shlibpath_var=DYLD_LIBRARY_PATH | ||
9004 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | ||
9005 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | ||
9006 | if test "$GCC" = yes; then | ||
9007 | 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"` | ||
9008 | else | ||
9009 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | ||
9010 | fi | ||
9011 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
9012 | ;; | ||
9013 | |||
9014 | dgux*) | ||
9015 | version_type=linux | ||
9016 | need_lib_prefix=no | ||
9017 | need_version=no | ||
9018 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
9019 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9020 | shlibpath_var=LD_LIBRARY_PATH | ||
9021 | ;; | ||
9022 | |||
9023 | freebsd1*) | ||
9024 | dynamic_linker=no | ||
9025 | ;; | ||
9026 | |||
9027 | kfreebsd*-gnu) | ||
9028 | version_type=linux | ||
9029 | need_lib_prefix=no | ||
9030 | need_version=no | ||
9031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9032 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9033 | shlibpath_var=LD_LIBRARY_PATH | ||
9034 | shlibpath_overrides_runpath=no | ||
9035 | hardcode_into_libs=yes | ||
9036 | dynamic_linker='GNU ld.so' | ||
9037 | ;; | ||
9038 | |||
9039 | freebsd*) | ||
9040 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | ||
9041 | version_type=freebsd-$objformat | ||
9042 | case $version_type in | ||
9043 | freebsd-elf*) | ||
9044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
9045 | need_version=no | ||
9046 | need_lib_prefix=no | ||
9047 | ;; | ||
9048 | freebsd-*) | ||
9049 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
9050 | need_version=yes | ||
9051 | ;; | ||
9052 | esac | ||
9053 | shlibpath_var=LD_LIBRARY_PATH | ||
9054 | case $host_os in | ||
9055 | freebsd2*) | ||
9056 | shlibpath_overrides_runpath=yes | ||
9057 | ;; | ||
9058 | freebsd3.01* | freebsdelf3.01*) | ||
9059 | shlibpath_overrides_runpath=yes | ||
9060 | hardcode_into_libs=yes | ||
9061 | ;; | ||
9062 | *) # from 3.2 on | ||
9063 | shlibpath_overrides_runpath=no | ||
9064 | hardcode_into_libs=yes | ||
9065 | ;; | ||
9066 | esac | ||
9067 | ;; | ||
9068 | |||
9069 | gnu*) | ||
9070 | version_type=linux | ||
9071 | need_lib_prefix=no | ||
9072 | need_version=no | ||
9073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
9074 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9075 | shlibpath_var=LD_LIBRARY_PATH | ||
9076 | hardcode_into_libs=yes | ||
9077 | ;; | ||
9078 | |||
9079 | hpux9* | hpux10* | hpux11*) | ||
9080 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
9081 | # link against other versions. | ||
9082 | version_type=sunos | ||
9083 | need_lib_prefix=no | ||
9084 | need_version=no | ||
9085 | case "$host_cpu" in | ||
9086 | ia64*) | ||
9087 | shrext_cmds='.so' | ||
9088 | hardcode_into_libs=yes | ||
9089 | dynamic_linker="$host_os dld.so" | ||
9090 | shlibpath_var=LD_LIBRARY_PATH | ||
9091 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
9092 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9093 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9094 | if test "X$HPUX_IA64_MODE" = X32; then | ||
9095 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
9096 | else | ||
9097 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
9098 | fi | ||
9099 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
9100 | ;; | ||
9101 | hppa*64*) | ||
9102 | shrext_cmds='.sl' | ||
9103 | hardcode_into_libs=yes | ||
9104 | dynamic_linker="$host_os dld.sl" | ||
9105 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
9106 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
9107 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9108 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9109 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
9110 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
9111 | ;; | ||
9112 | *) | ||
9113 | shrext_cmds='.sl' | ||
9114 | dynamic_linker="$host_os dld.sl" | ||
9115 | shlibpath_var=SHLIB_PATH | ||
9116 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
9117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9118 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9119 | ;; | ||
9120 | esac | ||
9121 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
9122 | postinstall_cmds='chmod 555 $lib' | ||
9123 | ;; | ||
9124 | |||
9125 | irix5* | irix6* | nonstopux*) | ||
9126 | case $host_os in | ||
9127 | nonstopux*) version_type=nonstopux ;; | ||
9128 | *) | ||
9129 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
9130 | version_type=linux | ||
9131 | else | ||
9132 | version_type=irix | ||
9133 | fi ;; | ||
9134 | esac | ||
9135 | need_lib_prefix=no | ||
9136 | need_version=no | ||
9137 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9138 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
9139 | case $host_os in | ||
9140 | irix5* | nonstopux*) | ||
9141 | libsuff= shlibsuff= | ||
9142 | ;; | ||
9143 | *) | ||
9144 | case $LD in # libtool.m4 will add one of these switches to LD | ||
9145 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
9146 | libsuff= shlibsuff= libmagic=32-bit;; | ||
9147 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
9148 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
9149 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
9150 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
9151 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
9152 | esac | ||
9153 | ;; | ||
9154 | esac | ||
9155 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
9156 | shlibpath_overrides_runpath=no | ||
9157 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
9158 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
9159 | hardcode_into_libs=yes | ||
9160 | ;; | ||
9161 | |||
9162 | # No shared lib support for Linux oldld, aout, or coff. | ||
9163 | linux*oldld* | linux*aout* | linux*coff*) | ||
9164 | dynamic_linker=no | ||
9165 | ;; | ||
9166 | |||
9167 | # This must be Linux ELF. | ||
9168 | linux*) | ||
9169 | version_type=linux | ||
9170 | need_lib_prefix=no | ||
9171 | need_version=no | ||
9172 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9173 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9174 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
9175 | shlibpath_var=LD_LIBRARY_PATH | ||
9176 | shlibpath_overrides_runpath=no | ||
9177 | # This implies no fast_install, which is unacceptable. | ||
9178 | # Some rework will be needed to allow for fast_install | ||
9179 | # before this can be enabled. | ||
9180 | hardcode_into_libs=yes | ||
9181 | |||
9182 | # Append ld.so.conf contents to the search path | ||
9183 | if test -f /etc/ld.so.conf; then | ||
9184 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | ||
9185 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
9186 | fi | ||
9187 | |||
9188 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
9189 | # powerpc, because MkLinux only supported shared libraries with the | ||
9190 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
9191 | # most powerpc-linux boxes support dynamic linking these days and | ||
9192 | # people can always --disable-shared, the test was removed, and we | ||
9193 | # assume the GNU/Linux dynamic linker is in use. | ||
9194 | dynamic_linker='GNU/Linux ld.so' | ||
9195 | ;; | ||
9196 | |||
9197 | netbsdelf*-gnu) | ||
9198 | version_type=linux | ||
9199 | need_lib_prefix=no | ||
9200 | need_version=no | ||
9201 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9202 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9203 | shlibpath_var=LD_LIBRARY_PATH | ||
9204 | shlibpath_overrides_runpath=no | ||
9205 | hardcode_into_libs=yes | ||
9206 | dynamic_linker='NetBSD ld.elf_so' | ||
9207 | ;; | ||
9208 | |||
9209 | knetbsd*-gnu) | ||
9210 | version_type=linux | ||
9211 | need_lib_prefix=no | ||
9212 | need_version=no | ||
9213 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9214 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9215 | shlibpath_var=LD_LIBRARY_PATH | ||
9216 | shlibpath_overrides_runpath=no | ||
9217 | hardcode_into_libs=yes | ||
9218 | dynamic_linker='GNU ld.so' | ||
9219 | ;; | ||
9220 | |||
9221 | netbsd*) | ||
9222 | version_type=sunos | ||
9223 | need_lib_prefix=no | ||
9224 | need_version=no | ||
9225 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
9226 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
9227 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
9228 | dynamic_linker='NetBSD (a.out) ld.so' | ||
9229 | else | ||
9230 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
9231 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9232 | dynamic_linker='NetBSD ld.elf_so' | ||
9233 | fi | ||
9234 | shlibpath_var=LD_LIBRARY_PATH | ||
9235 | shlibpath_overrides_runpath=yes | ||
9236 | hardcode_into_libs=yes | ||
9237 | ;; | ||
9238 | |||
9239 | newsos6) | ||
9240 | version_type=linux | ||
9241 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9242 | shlibpath_var=LD_LIBRARY_PATH | ||
9243 | shlibpath_overrides_runpath=yes | ||
9244 | ;; | ||
9245 | |||
9246 | nto-qnx*) | ||
9247 | version_type=linux | ||
9248 | need_lib_prefix=no | ||
9249 | need_version=no | ||
9250 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9251 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9252 | shlibpath_var=LD_LIBRARY_PATH | ||
9253 | shlibpath_overrides_runpath=yes | ||
9254 | ;; | ||
9255 | |||
9256 | openbsd*) | ||
9257 | version_type=sunos | ||
9258 | need_lib_prefix=no | ||
9259 | need_version=yes | ||
9260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
9261 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
9262 | shlibpath_var=LD_LIBRARY_PATH | ||
9263 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
9264 | case $host_os in | ||
9265 | openbsd2.[89] | openbsd2.[89].*) | ||
9266 | shlibpath_overrides_runpath=no | ||
9267 | ;; | ||
9268 | *) | ||
9269 | shlibpath_overrides_runpath=yes | ||
9270 | ;; | ||
9271 | esac | ||
9272 | else | ||
9273 | shlibpath_overrides_runpath=yes | ||
9274 | fi | ||
9275 | ;; | ||
9276 | |||
9277 | os2*) | ||
9278 | libname_spec='$name' | ||
9279 | shrext_cmds=".dll" | ||
9280 | need_lib_prefix=no | ||
9281 | library_names_spec='$libname${shared_ext} $libname.a' | ||
9282 | dynamic_linker='OS/2 ld.exe' | ||
9283 | shlibpath_var=LIBPATH | ||
9284 | ;; | ||
9285 | |||
9286 | osf3* | osf4* | osf5*) | ||
9287 | version_type=osf | ||
9288 | need_lib_prefix=no | ||
9289 | need_version=no | ||
9290 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9291 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9292 | shlibpath_var=LD_LIBRARY_PATH | ||
9293 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
9294 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
9295 | ;; | ||
9296 | |||
9297 | sco3.2v5*) | ||
9298 | version_type=osf | ||
9299 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9300 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9301 | shlibpath_var=LD_LIBRARY_PATH | ||
9302 | ;; | ||
9303 | |||
9304 | solaris*) | ||
9305 | version_type=linux | ||
9306 | need_lib_prefix=no | ||
9307 | need_version=no | ||
9308 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9309 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9310 | shlibpath_var=LD_LIBRARY_PATH | ||
9311 | shlibpath_overrides_runpath=yes | ||
9312 | hardcode_into_libs=yes | ||
9313 | # ldd complains unless libraries are executable | ||
9314 | postinstall_cmds='chmod +x $lib' | ||
9315 | ;; | ||
9316 | |||
9317 | sunos4*) | ||
9318 | version_type=sunos | ||
9319 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
9320 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
9321 | shlibpath_var=LD_LIBRARY_PATH | ||
9322 | shlibpath_overrides_runpath=yes | ||
9323 | if test "$with_gnu_ld" = yes; then | ||
9324 | need_lib_prefix=no | ||
9325 | fi | ||
9326 | need_version=yes | ||
9327 | ;; | ||
9328 | |||
9329 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
9330 | version_type=linux | ||
9331 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9332 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9333 | shlibpath_var=LD_LIBRARY_PATH | ||
9334 | case $host_vendor in | ||
9335 | sni) | ||
9336 | shlibpath_overrides_runpath=no | ||
9337 | need_lib_prefix=no | ||
9338 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
9339 | runpath_var=LD_RUN_PATH | ||
9340 | ;; | ||
9341 | siemens) | ||
9342 | need_lib_prefix=no | ||
9343 | ;; | ||
9344 | motorola) | ||
9345 | need_lib_prefix=no | ||
9346 | need_version=no | ||
9347 | shlibpath_overrides_runpath=no | ||
9348 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
9349 | ;; | ||
9350 | esac | ||
9351 | ;; | ||
9352 | |||
9353 | sysv4*MP*) | ||
9354 | if test -d /usr/nec ;then | ||
9355 | version_type=linux | ||
9356 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
9357 | soname_spec='$libname${shared_ext}.$major' | ||
9358 | shlibpath_var=LD_LIBRARY_PATH | ||
9359 | fi | ||
9360 | ;; | ||
9361 | |||
9362 | uts4*) | ||
9363 | version_type=linux | ||
9364 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
9365 | soname_spec='${libname}${release}${shared_ext}$major' | ||
9366 | shlibpath_var=LD_LIBRARY_PATH | ||
9367 | ;; | ||
9368 | |||
9369 | *) | ||
9370 | dynamic_linker=no | ||
9371 | ;; | ||
9372 | esac | ||
9373 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | ||
9374 | echo "${ECHO_T}$dynamic_linker" >&6; } | ||
9375 | test "$dynamic_linker" = no && can_build_shared=no | ||
9376 | |||
9377 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | ||
9378 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | ||
9379 | hardcode_action= | ||
9380 | if test -n "$hardcode_libdir_flag_spec" || \ | ||
9381 | test -n "$runpath_var " || \ | ||
9382 | test "X$hardcode_automatic"="Xyes" ; then | ||
9383 | |||
9384 | # We can hardcode non-existant directories. | ||
9385 | if test "$hardcode_direct" != no && | ||
9386 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
9387 | # have to relink, otherwise we might link with an installed library | ||
9388 | # when we should be linking with a yet-to-be-installed one | ||
9389 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | ||
9390 | test "$hardcode_minus_L" != no; then | ||
9391 | # Linking always hardcodes the temporary library directory. | ||
9392 | hardcode_action=relink | ||
9393 | else | ||
9394 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
9395 | hardcode_action=immediate | ||
9396 | fi | ||
9397 | else | ||
9398 | # We cannot hardcode anything, or else we can only hardcode existing | ||
9399 | # directories. | ||
9400 | hardcode_action=unsupported | ||
9401 | fi | ||
9402 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 | ||
9403 | echo "${ECHO_T}$hardcode_action" >&6; } | ||
9404 | |||
9405 | if test "$hardcode_action" = relink; then | ||
9406 | # Fast installation is not supported | ||
9407 | enable_fast_install=no | ||
9408 | elif test "$shlibpath_overrides_runpath" = yes || | ||
9409 | test "$enable_shared" = no; then | ||
9410 | # Fast installation is not necessary | ||
9411 | enable_fast_install=needless | ||
9412 | fi | ||
9413 | |||
9414 | striplib= | ||
9415 | old_striplib= | ||
9416 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | ||
9417 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } | ||
9418 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
9419 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
9420 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
9421 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
9422 | echo "${ECHO_T}yes" >&6; } | ||
9423 | else | ||
9424 | # FIXME - insert some real tests, host_os isn't really good enough | ||
9425 | case $host_os in | ||
9426 | darwin*) | ||
9427 | if test -n "$STRIP" ; then | ||
9428 | striplib="$STRIP -x" | ||
9429 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
9430 | echo "${ECHO_T}yes" >&6; } | ||
9431 | else | ||
9432 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9433 | echo "${ECHO_T}no" >&6; } | ||
9434 | fi | ||
9435 | ;; | ||
9436 | *) | ||
9437 | { echo "$as_me:$LINENO: result: no" >&5 | ||
9438 | echo "${ECHO_T}no" >&6; } | ||
9439 | ;; | ||
9440 | esac | ||
9441 | fi | ||
9442 | |||
9443 | if test "x$enable_dlopen" != xyes; then | ||
9444 | enable_dlopen=unknown | ||
9445 | enable_dlopen_self=unknown | ||
9446 | enable_dlopen_self_static=unknown | ||
9447 | else | ||
9448 | lt_cv_dlopen=no | ||
9449 | lt_cv_dlopen_libs= | ||
9450 | |||
9451 | case $host_os in | ||
9452 | beos*) | ||
9453 | lt_cv_dlopen="load_add_on" | ||
9454 | lt_cv_dlopen_libs= | ||
9455 | lt_cv_dlopen_self=yes | ||
9456 | ;; | ||
9457 | |||
9458 | mingw* | pw32*) | ||
9459 | lt_cv_dlopen="LoadLibrary" | ||
9460 | lt_cv_dlopen_libs= | ||
9461 | ;; | ||
9462 | |||
9463 | cygwin*) | ||
9464 | lt_cv_dlopen="dlopen" | ||
9465 | lt_cv_dlopen_libs= | ||
9466 | ;; | ||
9467 | |||
9468 | darwin*) | ||
9469 | # if libdl is installed we need to link against it | ||
9470 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
9471 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
9472 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
9473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9474 | else | ||
9475 | ac_check_lib_save_LIBS=$LIBS | ||
9476 | LIBS="-ldl $LIBS" | ||
9477 | cat >conftest.$ac_ext <<_ACEOF | ||
9478 | /* confdefs.h. */ | ||
9479 | _ACEOF | ||
9480 | cat confdefs.h >>conftest.$ac_ext | ||
9481 | cat >>conftest.$ac_ext <<_ACEOF | ||
9482 | /* end confdefs.h. */ | ||
9483 | |||
9484 | /* Override any GCC internal prototype to avoid an error. | ||
9485 | Use char because int might match the return type of a GCC | ||
9486 | builtin and then its argument prototype would still apply. */ | ||
9487 | #ifdef __cplusplus | ||
9488 | extern "C" | ||
9489 | #endif | ||
9490 | char dlopen (); | ||
9491 | int | ||
9492 | main () | ||
9493 | { | ||
9494 | return dlopen (); | ||
9495 | ; | ||
9496 | return 0; | ||
9497 | } | ||
9498 | _ACEOF | ||
9499 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9500 | if { (ac_try="$ac_link" | ||
9501 | case "(($ac_try" in | ||
9502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9503 | *) ac_try_echo=$ac_try;; | ||
9504 | esac | ||
9505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9506 | (eval "$ac_link") 2>conftest.er1 | ||
9507 | ac_status=$? | ||
9508 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9509 | rm -f conftest.er1 | ||
9510 | cat conftest.err >&5 | ||
9511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9512 | (exit $ac_status); } && { | ||
9513 | test -z "$ac_c_werror_flag" || | ||
9514 | test ! -s conftest.err | ||
9515 | } && test -s conftest$ac_exeext && | ||
9516 | $as_test_x conftest$ac_exeext; then | ||
9517 | ac_cv_lib_dl_dlopen=yes | ||
9518 | else | ||
9519 | echo "$as_me: failed program was:" >&5 | ||
9520 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9521 | |||
9522 | ac_cv_lib_dl_dlopen=no | ||
9523 | fi | ||
9524 | |||
9525 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9526 | conftest$ac_exeext conftest.$ac_ext | ||
9527 | LIBS=$ac_check_lib_save_LIBS | ||
9528 | fi | ||
9529 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
9530 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
9531 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
9532 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
9533 | else | ||
9534 | |||
9535 | lt_cv_dlopen="dyld" | ||
9536 | lt_cv_dlopen_libs= | ||
9537 | lt_cv_dlopen_self=yes | ||
9538 | |||
9539 | fi | ||
9540 | |||
9541 | ;; | ||
9542 | |||
9543 | *) | ||
9544 | { echo "$as_me:$LINENO: checking for shl_load" >&5 | ||
9545 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } | ||
9546 | if test "${ac_cv_func_shl_load+set}" = set; then | ||
9547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9548 | else | ||
9549 | cat >conftest.$ac_ext <<_ACEOF | ||
9550 | /* confdefs.h. */ | ||
9551 | _ACEOF | ||
9552 | cat confdefs.h >>conftest.$ac_ext | ||
9553 | cat >>conftest.$ac_ext <<_ACEOF | ||
9554 | /* end confdefs.h. */ | ||
9555 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | ||
9556 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9557 | #define shl_load innocuous_shl_load | ||
9558 | |||
9559 | /* System header to define __stub macros and hopefully few prototypes, | ||
9560 | which can conflict with char shl_load (); below. | ||
9561 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9562 | <limits.h> exists even on freestanding compilers. */ | ||
9563 | |||
9564 | #ifdef __STDC__ | ||
9565 | # include <limits.h> | ||
9566 | #else | ||
9567 | # include <assert.h> | ||
9568 | #endif | ||
9569 | |||
9570 | #undef shl_load | ||
9571 | |||
9572 | /* Override any GCC internal prototype to avoid an error. | ||
9573 | Use char because int might match the return type of a GCC | ||
9574 | builtin and then its argument prototype would still apply. */ | ||
9575 | #ifdef __cplusplus | ||
9576 | extern "C" | ||
9577 | #endif | ||
9578 | char shl_load (); | ||
9579 | /* The GNU C library defines this for functions which it implements | ||
9580 | to always fail with ENOSYS. Some functions are actually named | ||
9581 | something starting with __ and the normal name is an alias. */ | ||
9582 | #if defined __stub_shl_load || defined __stub___shl_load | ||
9583 | choke me | ||
9584 | #endif | ||
9585 | |||
9586 | int | ||
9587 | main () | ||
9588 | { | ||
9589 | return shl_load (); | ||
9590 | ; | ||
9591 | return 0; | ||
9592 | } | ||
9593 | _ACEOF | ||
9594 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9595 | if { (ac_try="$ac_link" | ||
9596 | case "(($ac_try" in | ||
9597 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9598 | *) ac_try_echo=$ac_try;; | ||
9599 | esac | ||
9600 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9601 | (eval "$ac_link") 2>conftest.er1 | ||
9602 | ac_status=$? | ||
9603 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9604 | rm -f conftest.er1 | ||
9605 | cat conftest.err >&5 | ||
9606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9607 | (exit $ac_status); } && { | ||
9608 | test -z "$ac_c_werror_flag" || | ||
9609 | test ! -s conftest.err | ||
9610 | } && test -s conftest$ac_exeext && | ||
9611 | $as_test_x conftest$ac_exeext; then | ||
9612 | ac_cv_func_shl_load=yes | ||
9613 | else | ||
9614 | echo "$as_me: failed program was:" >&5 | ||
9615 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9616 | |||
9617 | ac_cv_func_shl_load=no | ||
9618 | fi | ||
9619 | |||
9620 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9621 | conftest$ac_exeext conftest.$ac_ext | ||
9622 | fi | ||
9623 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | ||
9624 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } | ||
9625 | if test $ac_cv_func_shl_load = yes; then | ||
9626 | lt_cv_dlopen="shl_load" | ||
9627 | else | ||
9628 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | ||
9629 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } | ||
9630 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | ||
9631 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9632 | else | ||
9633 | ac_check_lib_save_LIBS=$LIBS | ||
9634 | LIBS="-ldld $LIBS" | ||
9635 | cat >conftest.$ac_ext <<_ACEOF | ||
9636 | /* confdefs.h. */ | ||
9637 | _ACEOF | ||
9638 | cat confdefs.h >>conftest.$ac_ext | ||
9639 | cat >>conftest.$ac_ext <<_ACEOF | ||
9640 | /* end confdefs.h. */ | ||
9641 | |||
9642 | /* Override any GCC internal prototype to avoid an error. | ||
9643 | Use char because int might match the return type of a GCC | ||
9644 | builtin and then its argument prototype would still apply. */ | ||
9645 | #ifdef __cplusplus | ||
9646 | extern "C" | ||
9647 | #endif | ||
9648 | char shl_load (); | ||
9649 | int | ||
9650 | main () | ||
9651 | { | ||
9652 | return shl_load (); | ||
9653 | ; | ||
9654 | return 0; | ||
9655 | } | ||
9656 | _ACEOF | ||
9657 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9658 | if { (ac_try="$ac_link" | ||
9659 | case "(($ac_try" in | ||
9660 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9661 | *) ac_try_echo=$ac_try;; | ||
9662 | esac | ||
9663 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9664 | (eval "$ac_link") 2>conftest.er1 | ||
9665 | ac_status=$? | ||
9666 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9667 | rm -f conftest.er1 | ||
9668 | cat conftest.err >&5 | ||
9669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9670 | (exit $ac_status); } && { | ||
9671 | test -z "$ac_c_werror_flag" || | ||
9672 | test ! -s conftest.err | ||
9673 | } && test -s conftest$ac_exeext && | ||
9674 | $as_test_x conftest$ac_exeext; then | ||
9675 | ac_cv_lib_dld_shl_load=yes | ||
9676 | else | ||
9677 | echo "$as_me: failed program was:" >&5 | ||
9678 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9679 | |||
9680 | ac_cv_lib_dld_shl_load=no | ||
9681 | fi | ||
9682 | |||
9683 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9684 | conftest$ac_exeext conftest.$ac_ext | ||
9685 | LIBS=$ac_check_lib_save_LIBS | ||
9686 | fi | ||
9687 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | ||
9688 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } | ||
9689 | if test $ac_cv_lib_dld_shl_load = yes; then | ||
9690 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | ||
9691 | else | ||
9692 | { echo "$as_me:$LINENO: checking for dlopen" >&5 | ||
9693 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } | ||
9694 | if test "${ac_cv_func_dlopen+set}" = set; then | ||
9695 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9696 | else | ||
9697 | cat >conftest.$ac_ext <<_ACEOF | ||
9698 | /* confdefs.h. */ | ||
9699 | _ACEOF | ||
9700 | cat confdefs.h >>conftest.$ac_ext | ||
9701 | cat >>conftest.$ac_ext <<_ACEOF | ||
9702 | /* end confdefs.h. */ | ||
9703 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | ||
9704 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
9705 | #define dlopen innocuous_dlopen | ||
9706 | |||
9707 | /* System header to define __stub macros and hopefully few prototypes, | ||
9708 | which can conflict with char dlopen (); below. | ||
9709 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
9710 | <limits.h> exists even on freestanding compilers. */ | ||
9711 | |||
9712 | #ifdef __STDC__ | ||
9713 | # include <limits.h> | ||
9714 | #else | ||
9715 | # include <assert.h> | ||
9716 | #endif | ||
9717 | |||
9718 | #undef dlopen | ||
9719 | |||
9720 | /* Override any GCC internal prototype to avoid an error. | ||
9721 | Use char because int might match the return type of a GCC | ||
9722 | builtin and then its argument prototype would still apply. */ | ||
9723 | #ifdef __cplusplus | ||
9724 | extern "C" | ||
9725 | #endif | ||
9726 | char dlopen (); | ||
9727 | /* The GNU C library defines this for functions which it implements | ||
9728 | to always fail with ENOSYS. Some functions are actually named | ||
9729 | something starting with __ and the normal name is an alias. */ | ||
9730 | #if defined __stub_dlopen || defined __stub___dlopen | ||
9731 | choke me | ||
9732 | #endif | ||
9733 | |||
9734 | int | ||
9735 | main () | ||
9736 | { | ||
9737 | return dlopen (); | ||
9738 | ; | ||
9739 | return 0; | ||
9740 | } | ||
9741 | _ACEOF | ||
9742 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9743 | if { (ac_try="$ac_link" | ||
9744 | case "(($ac_try" in | ||
9745 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9746 | *) ac_try_echo=$ac_try;; | ||
9747 | esac | ||
9748 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9749 | (eval "$ac_link") 2>conftest.er1 | ||
9750 | ac_status=$? | ||
9751 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9752 | rm -f conftest.er1 | ||
9753 | cat conftest.err >&5 | ||
9754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9755 | (exit $ac_status); } && { | ||
9756 | test -z "$ac_c_werror_flag" || | ||
9757 | test ! -s conftest.err | ||
9758 | } && test -s conftest$ac_exeext && | ||
9759 | $as_test_x conftest$ac_exeext; then | ||
9760 | ac_cv_func_dlopen=yes | ||
9761 | else | ||
9762 | echo "$as_me: failed program was:" >&5 | ||
9763 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9764 | |||
9765 | ac_cv_func_dlopen=no | ||
9766 | fi | ||
9767 | |||
9768 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9769 | conftest$ac_exeext conftest.$ac_ext | ||
9770 | fi | ||
9771 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | ||
9772 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } | ||
9773 | if test $ac_cv_func_dlopen = yes; then | ||
9774 | lt_cv_dlopen="dlopen" | ||
9775 | else | ||
9776 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
9777 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
9778 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
9779 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9780 | else | ||
9781 | ac_check_lib_save_LIBS=$LIBS | ||
9782 | LIBS="-ldl $LIBS" | ||
9783 | cat >conftest.$ac_ext <<_ACEOF | ||
9784 | /* confdefs.h. */ | ||
9785 | _ACEOF | ||
9786 | cat confdefs.h >>conftest.$ac_ext | ||
9787 | cat >>conftest.$ac_ext <<_ACEOF | ||
9788 | /* end confdefs.h. */ | ||
9789 | |||
9790 | /* Override any GCC internal prototype to avoid an error. | ||
9791 | Use char because int might match the return type of a GCC | ||
9792 | builtin and then its argument prototype would still apply. */ | ||
9793 | #ifdef __cplusplus | ||
9794 | extern "C" | ||
9795 | #endif | ||
9796 | char dlopen (); | ||
9797 | int | ||
9798 | main () | ||
9799 | { | ||
9800 | return dlopen (); | ||
9801 | ; | ||
9802 | return 0; | ||
9803 | } | ||
9804 | _ACEOF | ||
9805 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9806 | if { (ac_try="$ac_link" | ||
9807 | case "(($ac_try" in | ||
9808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9809 | *) ac_try_echo=$ac_try;; | ||
9810 | esac | ||
9811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9812 | (eval "$ac_link") 2>conftest.er1 | ||
9813 | ac_status=$? | ||
9814 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9815 | rm -f conftest.er1 | ||
9816 | cat conftest.err >&5 | ||
9817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9818 | (exit $ac_status); } && { | ||
9819 | test -z "$ac_c_werror_flag" || | ||
9820 | test ! -s conftest.err | ||
9821 | } && test -s conftest$ac_exeext && | ||
9822 | $as_test_x conftest$ac_exeext; then | ||
9823 | ac_cv_lib_dl_dlopen=yes | ||
9824 | else | ||
9825 | echo "$as_me: failed program was:" >&5 | ||
9826 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9827 | |||
9828 | ac_cv_lib_dl_dlopen=no | ||
9829 | fi | ||
9830 | |||
9831 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9832 | conftest$ac_exeext conftest.$ac_ext | ||
9833 | LIBS=$ac_check_lib_save_LIBS | ||
9834 | fi | ||
9835 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
9836 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
9837 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
9838 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
9839 | else | ||
9840 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | ||
9841 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } | ||
9842 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | ||
9843 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9844 | else | ||
9845 | ac_check_lib_save_LIBS=$LIBS | ||
9846 | LIBS="-lsvld $LIBS" | ||
9847 | cat >conftest.$ac_ext <<_ACEOF | ||
9848 | /* confdefs.h. */ | ||
9849 | _ACEOF | ||
9850 | cat confdefs.h >>conftest.$ac_ext | ||
9851 | cat >>conftest.$ac_ext <<_ACEOF | ||
9852 | /* end confdefs.h. */ | ||
9853 | |||
9854 | /* Override any GCC internal prototype to avoid an error. | ||
9855 | Use char because int might match the return type of a GCC | ||
9856 | builtin and then its argument prototype would still apply. */ | ||
9857 | #ifdef __cplusplus | ||
9858 | extern "C" | ||
9859 | #endif | ||
9860 | char dlopen (); | ||
9861 | int | ||
9862 | main () | ||
9863 | { | ||
9864 | return dlopen (); | ||
9865 | ; | ||
9866 | return 0; | ||
9867 | } | ||
9868 | _ACEOF | ||
9869 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9870 | if { (ac_try="$ac_link" | ||
9871 | case "(($ac_try" in | ||
9872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9873 | *) ac_try_echo=$ac_try;; | ||
9874 | esac | ||
9875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9876 | (eval "$ac_link") 2>conftest.er1 | ||
9877 | ac_status=$? | ||
9878 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9879 | rm -f conftest.er1 | ||
9880 | cat conftest.err >&5 | ||
9881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9882 | (exit $ac_status); } && { | ||
9883 | test -z "$ac_c_werror_flag" || | ||
9884 | test ! -s conftest.err | ||
9885 | } && test -s conftest$ac_exeext && | ||
9886 | $as_test_x conftest$ac_exeext; then | ||
9887 | ac_cv_lib_svld_dlopen=yes | ||
9888 | else | ||
9889 | echo "$as_me: failed program was:" >&5 | ||
9890 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9891 | |||
9892 | ac_cv_lib_svld_dlopen=no | ||
9893 | fi | ||
9894 | |||
9895 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9896 | conftest$ac_exeext conftest.$ac_ext | ||
9897 | LIBS=$ac_check_lib_save_LIBS | ||
9898 | fi | ||
9899 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | ||
9900 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } | ||
9901 | if test $ac_cv_lib_svld_dlopen = yes; then | ||
9902 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
9903 | else | ||
9904 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | ||
9905 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } | ||
9906 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | ||
9907 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
9908 | else | ||
9909 | ac_check_lib_save_LIBS=$LIBS | ||
9910 | LIBS="-ldld $LIBS" | ||
9911 | cat >conftest.$ac_ext <<_ACEOF | ||
9912 | /* confdefs.h. */ | ||
9913 | _ACEOF | ||
9914 | cat confdefs.h >>conftest.$ac_ext | ||
9915 | cat >>conftest.$ac_ext <<_ACEOF | ||
9916 | /* end confdefs.h. */ | ||
9917 | |||
9918 | /* Override any GCC internal prototype to avoid an error. | ||
9919 | Use char because int might match the return type of a GCC | ||
9920 | builtin and then its argument prototype would still apply. */ | ||
9921 | #ifdef __cplusplus | ||
9922 | extern "C" | ||
9923 | #endif | ||
9924 | char dld_link (); | ||
9925 | int | ||
9926 | main () | ||
9927 | { | ||
9928 | return dld_link (); | ||
9929 | ; | ||
9930 | return 0; | ||
9931 | } | ||
9932 | _ACEOF | ||
9933 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
9934 | if { (ac_try="$ac_link" | ||
9935 | case "(($ac_try" in | ||
9936 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
9937 | *) ac_try_echo=$ac_try;; | ||
9938 | esac | ||
9939 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
9940 | (eval "$ac_link") 2>conftest.er1 | ||
9941 | ac_status=$? | ||
9942 | grep -v '^ *+' conftest.er1 >conftest.err | ||
9943 | rm -f conftest.er1 | ||
9944 | cat conftest.err >&5 | ||
9945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
9946 | (exit $ac_status); } && { | ||
9947 | test -z "$ac_c_werror_flag" || | ||
9948 | test ! -s conftest.err | ||
9949 | } && test -s conftest$ac_exeext && | ||
9950 | $as_test_x conftest$ac_exeext; then | ||
9951 | ac_cv_lib_dld_dld_link=yes | ||
9952 | else | ||
9953 | echo "$as_me: failed program was:" >&5 | ||
9954 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
9955 | |||
9956 | ac_cv_lib_dld_dld_link=no | ||
9957 | fi | ||
9958 | |||
9959 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
9960 | conftest$ac_exeext conftest.$ac_ext | ||
9961 | LIBS=$ac_check_lib_save_LIBS | ||
9962 | fi | ||
9963 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | ||
9964 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } | ||
9965 | if test $ac_cv_lib_dld_dld_link = yes; then | ||
9966 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | ||
9967 | fi | ||
9968 | |||
9969 | |||
9970 | fi | ||
9971 | |||
9972 | |||
9973 | fi | ||
9974 | |||
9975 | |||
9976 | fi | ||
9977 | |||
9978 | |||
9979 | fi | ||
9980 | |||
9981 | |||
9982 | fi | ||
9983 | |||
9984 | ;; | ||
9985 | esac | ||
9986 | |||
9987 | if test "x$lt_cv_dlopen" != xno; then | ||
9988 | enable_dlopen=yes | ||
9989 | else | ||
9990 | enable_dlopen=no | ||
9991 | fi | ||
9992 | |||
9993 | case $lt_cv_dlopen in | ||
9994 | dlopen) | ||
9995 | save_CPPFLAGS="$CPPFLAGS" | ||
9996 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
9997 | |||
9998 | save_LDFLAGS="$LDFLAGS" | ||
9999 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
10000 | |||
10001 | save_LIBS="$LIBS" | ||
10002 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
10003 | |||
10004 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | ||
10005 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } | ||
10006 | if test "${lt_cv_dlopen_self+set}" = set; then | ||
10007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10008 | else | ||
10009 | if test "$cross_compiling" = yes; then : | ||
10010 | lt_cv_dlopen_self=cross | ||
10011 | else | ||
10012 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
10013 | lt_status=$lt_dlunknown | ||
10014 | cat > conftest.$ac_ext <<EOF | ||
10015 | #line 10015 "configure" | ||
10016 | #include "confdefs.h" | ||
10017 | |||
10018 | #if HAVE_DLFCN_H | ||
10019 | #include <dlfcn.h> | ||
10020 | #endif | ||
10021 | |||
10022 | #include <stdio.h> | ||
10023 | |||
10024 | #ifdef RTLD_GLOBAL | ||
10025 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
10026 | #else | ||
10027 | # ifdef DL_GLOBAL | ||
10028 | # define LT_DLGLOBAL DL_GLOBAL | ||
10029 | # else | ||
10030 | # define LT_DLGLOBAL 0 | ||
10031 | # endif | ||
10032 | #endif | ||
10033 | |||
10034 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
10035 | find out it does not work in some platform. */ | ||
10036 | #ifndef LT_DLLAZY_OR_NOW | ||
10037 | # ifdef RTLD_LAZY | ||
10038 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
10039 | # else | ||
10040 | # ifdef DL_LAZY | ||
10041 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
10042 | # else | ||
10043 | # ifdef RTLD_NOW | ||
10044 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
10045 | # else | ||
10046 | # ifdef DL_NOW | ||
10047 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
10048 | # else | ||
10049 | # define LT_DLLAZY_OR_NOW 0 | ||
10050 | # endif | ||
10051 | # endif | ||
10052 | # endif | ||
10053 | # endif | ||
10054 | #endif | ||
10055 | |||
10056 | #ifdef __cplusplus | ||
10057 | extern "C" void exit (int); | ||
10058 | #endif | ||
10059 | |||
10060 | void fnord() { int i=42;} | ||
10061 | int main () | ||
10062 | { | ||
10063 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
10064 | int status = $lt_dlunknown; | ||
10065 | |||
10066 | if (self) | ||
10067 | { | ||
10068 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
10069 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
10070 | /* dlclose (self); */ | ||
10071 | } | ||
10072 | |||
10073 | exit (status); | ||
10074 | } | ||
10075 | EOF | ||
10076 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10077 | (eval $ac_link) 2>&5 | ||
10078 | ac_status=$? | ||
10079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10080 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
10081 | (./conftest; exit; ) 2>/dev/null | ||
10082 | lt_status=$? | ||
10083 | case x$lt_status in | ||
10084 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
10085 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
10086 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | ||
10087 | esac | ||
10088 | else : | ||
10089 | # compilation failed | ||
10090 | lt_cv_dlopen_self=no | ||
10091 | fi | ||
10092 | fi | ||
10093 | rm -fr conftest* | ||
10094 | |||
10095 | |||
10096 | fi | ||
10097 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | ||
10098 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } | ||
10099 | |||
10100 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
10101 | LDFLAGS="$LDFLAGS $link_static_flag" | ||
10102 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | ||
10103 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } | ||
10104 | if test "${lt_cv_dlopen_self_static+set}" = set; then | ||
10105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10106 | else | ||
10107 | if test "$cross_compiling" = yes; then : | ||
10108 | lt_cv_dlopen_self_static=cross | ||
10109 | else | ||
10110 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
10111 | lt_status=$lt_dlunknown | ||
10112 | cat > conftest.$ac_ext <<EOF | ||
10113 | #line 10113 "configure" | ||
10114 | #include "confdefs.h" | ||
10115 | |||
10116 | #if HAVE_DLFCN_H | ||
10117 | #include <dlfcn.h> | ||
10118 | #endif | ||
10119 | |||
10120 | #include <stdio.h> | ||
10121 | |||
10122 | #ifdef RTLD_GLOBAL | ||
10123 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
10124 | #else | ||
10125 | # ifdef DL_GLOBAL | ||
10126 | # define LT_DLGLOBAL DL_GLOBAL | ||
10127 | # else | ||
10128 | # define LT_DLGLOBAL 0 | ||
10129 | # endif | ||
10130 | #endif | ||
10131 | |||
10132 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
10133 | find out it does not work in some platform. */ | ||
10134 | #ifndef LT_DLLAZY_OR_NOW | ||
10135 | # ifdef RTLD_LAZY | ||
10136 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
10137 | # else | ||
10138 | # ifdef DL_LAZY | ||
10139 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
10140 | # else | ||
10141 | # ifdef RTLD_NOW | ||
10142 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
10143 | # else | ||
10144 | # ifdef DL_NOW | ||
10145 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
10146 | # else | ||
10147 | # define LT_DLLAZY_OR_NOW 0 | ||
10148 | # endif | ||
10149 | # endif | ||
10150 | # endif | ||
10151 | # endif | ||
10152 | #endif | ||
10153 | |||
10154 | #ifdef __cplusplus | ||
10155 | extern "C" void exit (int); | ||
10156 | #endif | ||
10157 | |||
10158 | void fnord() { int i=42;} | ||
10159 | int main () | ||
10160 | { | ||
10161 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
10162 | int status = $lt_dlunknown; | ||
10163 | |||
10164 | if (self) | ||
10165 | { | ||
10166 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
10167 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
10168 | /* dlclose (self); */ | ||
10169 | } | ||
10170 | |||
10171 | exit (status); | ||
10172 | } | ||
10173 | EOF | ||
10174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
10175 | (eval $ac_link) 2>&5 | ||
10176 | ac_status=$? | ||
10177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
10178 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
10179 | (./conftest; exit; ) 2>/dev/null | ||
10180 | lt_status=$? | ||
10181 | case x$lt_status in | ||
10182 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
10183 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
10184 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | ||
10185 | esac | ||
10186 | else : | ||
10187 | # compilation failed | ||
10188 | lt_cv_dlopen_self_static=no | ||
10189 | fi | ||
10190 | fi | ||
10191 | rm -fr conftest* | ||
10192 | |||
10193 | |||
10194 | fi | ||
10195 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | ||
10196 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } | ||
10197 | fi | ||
10198 | |||
10199 | CPPFLAGS="$save_CPPFLAGS" | ||
10200 | LDFLAGS="$save_LDFLAGS" | ||
10201 | LIBS="$save_LIBS" | ||
10202 | ;; | ||
10203 | esac | ||
10204 | |||
10205 | case $lt_cv_dlopen_self in | ||
10206 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
10207 | *) enable_dlopen_self=unknown ;; | ||
10208 | esac | ||
10209 | |||
10210 | case $lt_cv_dlopen_self_static in | ||
10211 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
10212 | *) enable_dlopen_self_static=unknown ;; | ||
10213 | esac | ||
10214 | fi | ||
10215 | |||
10216 | |||
10217 | # Report which librarie types wil actually be built | ||
10218 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | ||
10219 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | ||
10220 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | ||
10221 | echo "${ECHO_T}$can_build_shared" >&6; } | ||
10222 | |||
10223 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | ||
10224 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | ||
10225 | test "$can_build_shared" = "no" && enable_shared=no | ||
10226 | |||
10227 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
10228 | # are all built from PIC. | ||
10229 | case "$host_os" in | ||
10230 | aix3*) | ||
10231 | test "$enable_shared" = yes && enable_static=no | ||
10232 | if test -n "$RANLIB"; then | ||
10233 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
10234 | postinstall_cmds='$RANLIB $lib' | ||
10235 | fi | ||
10236 | ;; | ||
10237 | |||
10238 | aix4* | aix5*) | ||
10239 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | ||
10240 | test "$enable_shared" = yes && enable_static=no | ||
10241 | fi | ||
10242 | ;; | ||
10243 | darwin* | rhapsody*) | ||
10244 | if test "$GCC" = yes; then | ||
10245 | archive_cmds_need_lc=no | ||
10246 | case "$host_os" in | ||
10247 | rhapsody* | darwin1.[012]) | ||
10248 | allow_undefined_flag='-undefined suppress' | ||
10249 | ;; | ||
10250 | *) # Darwin 1.3 on | ||
10251 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
10252 | allow_undefined_flag='-flat_namespace -undefined suppress' | ||
10253 | else | ||
10254 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
10255 | 10.[012]) | ||
10256 | allow_undefined_flag='-flat_namespace -undefined suppress' | ||
10257 | ;; | ||
10258 | 10.*) | ||
10259 | allow_undefined_flag='-undefined dynamic_lookup' | ||
10260 | ;; | ||
10261 | esac | ||
10262 | fi | ||
10263 | ;; | ||
10264 | esac | ||
10265 | output_verbose_link_cmd='echo' | ||
10266 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' | ||
10267 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
10268 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | ||
10269 | 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}' | ||
10270 | 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}' | ||
10271 | hardcode_direct=no | ||
10272 | hardcode_automatic=yes | ||
10273 | hardcode_shlibpath_var=unsupported | ||
10274 | whole_archive_flag_spec='-all_load $convenience' | ||
10275 | link_all_deplibs=yes | ||
10276 | else | ||
10277 | ld_shlibs=no | ||
10278 | fi | ||
10279 | ;; | ||
10280 | esac | ||
10281 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 | ||
10282 | echo "${ECHO_T}$enable_shared" >&6; } | ||
10283 | |||
10284 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | ||
10285 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | ||
10286 | # Make sure either enable_shared or enable_static is yes. | ||
10287 | test "$enable_shared" = yes || enable_static=yes | ||
10288 | { echo "$as_me:$LINENO: result: $enable_static" >&5 | ||
10289 | echo "${ECHO_T}$enable_static" >&6; } | ||
10290 | |||
10291 | # The else clause should only fire when bootstrapping the | ||
10292 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
10293 | # with your package, and you will get complaints that there are | ||
10294 | # no rules to generate ltmain.sh. | ||
10295 | if test -f "$ltmain"; then | ||
10296 | # See if we are running on zsh, and set the options which allow our commands through | ||
10297 | # without removal of \ escapes. | ||
10298 | if test -n "${ZSH_VERSION+set}" ; then | ||
10299 | setopt NO_GLOB_SUBST | ||
10300 | fi | ||
10301 | # Now quote all the things that may contain metacharacters while being | ||
10302 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
10303 | # variables and quote the copies for generation of the libtool script. | ||
10304 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | ||
10305 | SED SHELL STRIP \ | ||
10306 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
10307 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
10308 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
10309 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
10310 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
10311 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
10312 | old_postinstall_cmds old_postuninstall_cmds \ | ||
10313 | compiler \ | ||
10314 | CC \ | ||
10315 | LD \ | ||
10316 | lt_prog_compiler_wl \ | ||
10317 | lt_prog_compiler_pic \ | ||
10318 | lt_prog_compiler_static \ | ||
10319 | lt_prog_compiler_no_builtin_flag \ | ||
10320 | export_dynamic_flag_spec \ | ||
10321 | thread_safe_flag_spec \ | ||
10322 | whole_archive_flag_spec \ | ||
10323 | enable_shared_with_static_runtimes \ | ||
10324 | old_archive_cmds \ | ||
10325 | old_archive_from_new_cmds \ | ||
10326 | predep_objects \ | ||
10327 | postdep_objects \ | ||
10328 | predeps \ | ||
10329 | postdeps \ | ||
10330 | compiler_lib_search_path \ | ||
10331 | archive_cmds \ | ||
10332 | archive_expsym_cmds \ | ||
10333 | postinstall_cmds \ | ||
10334 | postuninstall_cmds \ | ||
10335 | old_archive_from_expsyms_cmds \ | ||
10336 | allow_undefined_flag \ | ||
10337 | no_undefined_flag \ | ||
10338 | export_symbols_cmds \ | ||
10339 | hardcode_libdir_flag_spec \ | ||
10340 | hardcode_libdir_flag_spec_ld \ | ||
10341 | hardcode_libdir_separator \ | ||
10342 | hardcode_automatic \ | ||
10343 | module_cmds \ | ||
10344 | module_expsym_cmds \ | ||
10345 | lt_cv_prog_compiler_c_o \ | ||
10346 | exclude_expsyms \ | ||
10347 | include_expsyms; do | ||
10348 | |||
10349 | case $var in | ||
10350 | old_archive_cmds | \ | ||
10351 | old_archive_from_new_cmds | \ | ||
10352 | archive_cmds | \ | ||
10353 | archive_expsym_cmds | \ | ||
10354 | module_cmds | \ | ||
10355 | module_expsym_cmds | \ | ||
10356 | old_archive_from_expsyms_cmds | \ | ||
10357 | export_symbols_cmds | \ | ||
10358 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
10359 | postinstall_cmds | postuninstall_cmds | \ | ||
10360 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
10361 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
10362 | # Double-quote double-evaled strings. | ||
10363 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
10364 | ;; | ||
10365 | *) | ||
10366 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
10367 | ;; | ||
10368 | esac | ||
10369 | done | ||
10370 | |||
10371 | case $lt_echo in | ||
10372 | *'\$0 --fallback-echo"') | ||
10373 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | ||
10374 | ;; | ||
10375 | esac | ||
10376 | |||
10377 | cfgfile="${ofile}T" | ||
10378 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | ||
10379 | $rm -f "$cfgfile" | ||
10380 | { echo "$as_me:$LINENO: creating $ofile" >&5 | ||
10381 | echo "$as_me: creating $ofile" >&6;} | ||
10382 | |||
10383 | cat <<__EOF__ >> "$cfgfile" | ||
10384 | #! $SHELL | ||
10385 | |||
10386 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | ||
10387 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | ||
10388 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | ||
10389 | # | ||
10390 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | ||
10391 | # Free Software Foundation, Inc. | ||
10392 | # | ||
10393 | # This file is part of GNU Libtool: | ||
10394 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | ||
10395 | # | ||
10396 | # This program is free software; you can redistribute it and/or modify | ||
10397 | # it under the terms of the GNU General Public License as published by | ||
10398 | # the Free Software Foundation; either version 2 of the License, or | ||
10399 | # (at your option) any later version. | ||
10400 | # | ||
10401 | # This program is distributed in the hope that it will be useful, but | ||
10402 | # WITHOUT ANY WARRANTY; without even the implied warranty of | ||
10403 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
10404 | # General Public License for more details. | ||
10405 | # | ||
10406 | # You should have received a copy of the GNU General Public License | ||
10407 | # along with this program; if not, write to the Free Software | ||
10408 | # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | ||
10409 | # | ||
10410 | # As a special exception to the GNU General Public License, if you | ||
10411 | # distribute this file as part of a program that contains a | ||
10412 | # configuration script generated by Autoconf, you may include it under | ||
10413 | # the same distribution terms that you use for the rest of that program. | ||
10414 | |||
10415 | # A sed program that does not truncate output. | ||
10416 | SED=$lt_SED | ||
10417 | |||
10418 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | ||
10419 | Xsed="$SED -e s/^X//" | ||
10420 | |||
10421 | # The HP-UX ksh and POSIX shell print the target directory to stdout | ||
10422 | # if CDPATH is set. | ||
10423 | if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi | ||
10424 | |||
10425 | # The names of the tagged configurations supported by this script. | ||
10426 | available_tags= | ||
10427 | |||
10428 | # ### BEGIN LIBTOOL CONFIG | ||
10429 | |||
10430 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
10431 | |||
10432 | # Shell to use when invoking shell scripts. | ||
10433 | SHELL=$lt_SHELL | ||
10434 | |||
10435 | # Whether or not to build shared libraries. | ||
10436 | build_libtool_libs=$enable_shared | ||
10437 | |||
10438 | # Whether or not to build static libraries. | ||
10439 | build_old_libs=$enable_static | ||
10440 | |||
10441 | # Whether or not to add -lc for building shared libraries. | ||
10442 | build_libtool_need_lc=$archive_cmds_need_lc | ||
10443 | |||
10444 | # Whether or not to disallow shared libs when runtime libs are static | ||
10445 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | ||
10446 | |||
10447 | # Whether or not to optimize for fast installation. | ||
10448 | fast_install=$enable_fast_install | ||
10449 | |||
10450 | # The host system. | ||
10451 | host_alias=$host_alias | ||
10452 | host=$host | ||
10453 | |||
10454 | # An echo program that does not interpret backslashes. | ||
10455 | echo=$lt_echo | ||
10456 | |||
10457 | # The archiver. | ||
10458 | AR=$lt_AR | ||
10459 | AR_FLAGS=$lt_AR_FLAGS | ||
10460 | |||
10461 | # A C compiler. | ||
10462 | LTCC=$lt_LTCC | ||
10463 | |||
10464 | # A language-specific compiler. | ||
10465 | CC=$lt_compiler | ||
10466 | |||
10467 | # Is the compiler the GNU C compiler? | ||
10468 | with_gcc=$GCC | ||
10469 | |||
10470 | # An ERE matcher. | ||
10471 | EGREP=$lt_EGREP | ||
10472 | |||
10473 | # The linker used to build libraries. | ||
10474 | LD=$lt_LD | ||
10475 | |||
10476 | # Whether we need hard or soft links. | ||
10477 | LN_S=$lt_LN_S | ||
10478 | |||
10479 | # A BSD-compatible nm program. | ||
10480 | NM=$lt_NM | ||
10481 | |||
10482 | # A symbol stripping program | ||
10483 | STRIP=$lt_STRIP | ||
10484 | |||
10485 | # Used to examine libraries when file_magic_cmd begins "file" | ||
10486 | MAGIC_CMD=$MAGIC_CMD | ||
10487 | |||
10488 | # Used on cygwin: DLL creation program. | ||
10489 | DLLTOOL="$DLLTOOL" | ||
10490 | |||
10491 | # Used on cygwin: object dumper. | ||
10492 | OBJDUMP="$OBJDUMP" | ||
10493 | |||
10494 | # Used on cygwin: assembler. | ||
10495 | AS="$AS" | ||
10496 | |||
10497 | # The name of the directory that contains temporary libtool files. | ||
10498 | objdir=$objdir | ||
10499 | |||
10500 | # How to create reloadable object files. | ||
10501 | reload_flag=$lt_reload_flag | ||
10502 | reload_cmds=$lt_reload_cmds | ||
10503 | |||
10504 | # How to pass a linker flag through the compiler. | ||
10505 | wl=$lt_lt_prog_compiler_wl | ||
10506 | |||
10507 | # Object file suffix (normally "o"). | ||
10508 | objext="$ac_objext" | ||
10509 | |||
10510 | # Old archive suffix (normally "a"). | ||
10511 | libext="$libext" | ||
10512 | |||
10513 | # Shared library suffix (normally ".so"). | ||
10514 | shrext_cmds='$shrext_cmds' | ||
10515 | |||
10516 | # Executable file suffix (normally ""). | ||
10517 | exeext="$exeext" | ||
10518 | |||
10519 | # Additional compiler flags for building library objects. | ||
10520 | pic_flag=$lt_lt_prog_compiler_pic | ||
10521 | pic_mode=$pic_mode | ||
10522 | |||
10523 | # What is the maximum length of a command? | ||
10524 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
10525 | |||
10526 | # Does compiler simultaneously support -c and -o options? | ||
10527 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | ||
10528 | |||
10529 | # Must we lock files when doing compilation ? | ||
10530 | need_locks=$lt_need_locks | ||
10531 | |||
10532 | # Do we need the lib prefix for modules? | ||
10533 | need_lib_prefix=$need_lib_prefix | ||
10534 | |||
10535 | # Do we need a version for libraries? | ||
10536 | need_version=$need_version | ||
10537 | |||
10538 | # Whether dlopen is supported. | ||
10539 | dlopen_support=$enable_dlopen | ||
10540 | |||
10541 | # Whether dlopen of programs is supported. | ||
10542 | dlopen_self=$enable_dlopen_self | ||
10543 | |||
10544 | # Whether dlopen of statically linked programs is supported. | ||
10545 | dlopen_self_static=$enable_dlopen_self_static | ||
10546 | |||
10547 | # Compiler flag to prevent dynamic linking. | ||
10548 | link_static_flag=$lt_lt_prog_compiler_static | ||
10549 | |||
10550 | # Compiler flag to turn off builtin functions. | ||
10551 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | ||
10552 | |||
10553 | # Compiler flag to allow reflexive dlopens. | ||
10554 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | ||
10555 | |||
10556 | # Compiler flag to generate shared objects directly from archives. | ||
10557 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | ||
10558 | |||
10559 | # Compiler flag to generate thread-safe objects. | ||
10560 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | ||
10561 | |||
10562 | # Library versioning type. | ||
10563 | version_type=$version_type | ||
10564 | |||
10565 | # Format of library name prefix. | ||
10566 | libname_spec=$lt_libname_spec | ||
10567 | |||
10568 | # List of archive names. First name is the real one, the rest are links. | ||
10569 | # The last name is the one that the linker finds with -lNAME. | ||
10570 | library_names_spec=$lt_library_names_spec | ||
10571 | |||
10572 | # The coded name of the library, if different from the real name. | ||
10573 | soname_spec=$lt_soname_spec | ||
10574 | |||
10575 | # Commands used to build and install an old-style archive. | ||
10576 | RANLIB=$lt_RANLIB | ||
10577 | old_archive_cmds=$lt_old_archive_cmds | ||
10578 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
10579 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
10580 | |||
10581 | # Create an old-style archive from a shared archive. | ||
10582 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | ||
10583 | |||
10584 | # Create a temporary old-style archive to link instead of a shared archive. | ||
10585 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | ||
10586 | |||
10587 | # Commands used to build and install a shared archive. | ||
10588 | archive_cmds=$lt_archive_cmds | ||
10589 | archive_expsym_cmds=$lt_archive_expsym_cmds | ||
10590 | postinstall_cmds=$lt_postinstall_cmds | ||
10591 | postuninstall_cmds=$lt_postuninstall_cmds | ||
10592 | |||
10593 | # Commands used to build a loadable module (assumed same as above if empty) | ||
10594 | module_cmds=$lt_module_cmds | ||
10595 | module_expsym_cmds=$lt_module_expsym_cmds | ||
10596 | |||
10597 | # Commands to strip libraries. | ||
10598 | old_striplib=$lt_old_striplib | ||
10599 | striplib=$lt_striplib | ||
10600 | |||
10601 | # Dependencies to place before the objects being linked to create a | ||
10602 | # shared library. | ||
10603 | predep_objects=$lt_predep_objects | ||
10604 | |||
10605 | # Dependencies to place after the objects being linked to create a | ||
10606 | # shared library. | ||
10607 | postdep_objects=$lt_postdep_objects | ||
10608 | |||
10609 | # Dependencies to place before the objects being linked to create a | ||
10610 | # shared library. | ||
10611 | predeps=$lt_predeps | ||
10612 | |||
10613 | # Dependencies to place after the objects being linked to create a | ||
10614 | # shared library. | ||
10615 | postdeps=$lt_postdeps | ||
10616 | |||
10617 | # The library search path used internally by the compiler when linking | ||
10618 | # a shared library. | ||
10619 | compiler_lib_search_path=$lt_compiler_lib_search_path | ||
10620 | |||
10621 | # Method to check whether dependent libraries are shared objects. | ||
10622 | deplibs_check_method=$lt_deplibs_check_method | ||
10623 | |||
10624 | # Command to use when deplibs_check_method == file_magic. | ||
10625 | file_magic_cmd=$lt_file_magic_cmd | ||
10626 | |||
10627 | # Flag that allows shared libraries with undefined symbols to be built. | ||
10628 | allow_undefined_flag=$lt_allow_undefined_flag | ||
10629 | |||
10630 | # Flag that forces no undefined symbols. | ||
10631 | no_undefined_flag=$lt_no_undefined_flag | ||
10632 | |||
10633 | # Commands used to finish a libtool library installation in a directory. | ||
10634 | finish_cmds=$lt_finish_cmds | ||
10635 | |||
10636 | # Same as above, but a single script fragment to be evaled but not shown. | ||
10637 | finish_eval=$lt_finish_eval | ||
10638 | |||
10639 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
10640 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
10641 | |||
10642 | # Transform the output of nm in a proper C declaration | ||
10643 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
10644 | |||
10645 | # Transform the output of nm in a C name address pair | ||
10646 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
10647 | |||
10648 | # This is the shared library runtime path variable. | ||
10649 | runpath_var=$runpath_var | ||
10650 | |||
10651 | # This is the shared library path variable. | ||
10652 | shlibpath_var=$shlibpath_var | ||
10653 | |||
10654 | # Is shlibpath searched before the hard-coded library search path? | ||
10655 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
10656 | |||
10657 | # How to hardcode a shared library path into an executable. | ||
10658 | hardcode_action=$hardcode_action | ||
10659 | |||
10660 | # Whether we should hardcode library paths into libraries. | ||
10661 | hardcode_into_libs=$hardcode_into_libs | ||
10662 | |||
10663 | # Flag to hardcode \$libdir into a binary during linking. | ||
10664 | # This must work even if \$libdir does not exist. | ||
10665 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | ||
10666 | |||
10667 | # If ld is used when linking, flag to hardcode \$libdir into | ||
10668 | # a binary during linking. This must work even if \$libdir does | ||
10669 | # not exist. | ||
10670 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | ||
10671 | |||
10672 | # Whether we need a single -rpath flag with a separated argument. | ||
10673 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | ||
10674 | |||
10675 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
10676 | # resulting binary. | ||
10677 | hardcode_direct=$hardcode_direct | ||
10678 | |||
10679 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
10680 | # resulting binary. | ||
10681 | hardcode_minus_L=$hardcode_minus_L | ||
10682 | |||
10683 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
10684 | # the resulting binary. | ||
10685 | hardcode_shlibpath_var=$hardcode_shlibpath_var | ||
10686 | |||
10687 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
10688 | # and all subsequent libraries and executables linked against it. | ||
10689 | hardcode_automatic=$hardcode_automatic | ||
10690 | |||
10691 | # Variables whose values should be saved in libtool wrapper scripts and | ||
10692 | # restored at relink time. | ||
10693 | variables_saved_for_relink="$variables_saved_for_relink" | ||
10694 | |||
10695 | # Whether libtool must link a program against all its dependency libraries. | ||
10696 | link_all_deplibs=$link_all_deplibs | ||
10697 | |||
10698 | # Compile-time system search path for libraries | ||
10699 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
10700 | |||
10701 | # Run-time system search path for libraries | ||
10702 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
10703 | |||
10704 | # Fix the shell variable \$srcfile for the compiler. | ||
10705 | fix_srcfile_path="$fix_srcfile_path" | ||
10706 | |||
10707 | # Set to yes if exported symbols are required. | ||
10708 | always_export_symbols=$always_export_symbols | ||
10709 | |||
10710 | # The commands to list exported symbols. | ||
10711 | export_symbols_cmds=$lt_export_symbols_cmds | ||
10712 | |||
10713 | # The commands to extract the exported symbol list from a shared archive. | ||
10714 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
10715 | |||
10716 | # Symbols that should not be listed in the preloaded symbols. | ||
10717 | exclude_expsyms=$lt_exclude_expsyms | ||
10718 | |||
10719 | # Symbols that must always be exported. | ||
10720 | include_expsyms=$lt_include_expsyms | ||
10721 | |||
10722 | # ### END LIBTOOL CONFIG | ||
10723 | |||
10724 | __EOF__ | ||
10725 | |||
10726 | |||
10727 | case $host_os in | ||
10728 | aix3*) | ||
10729 | cat <<\EOF >> "$cfgfile" | ||
10730 | |||
10731 | # AIX sometimes has problems with the GCC collect2 program. For some | ||
10732 | # reason, if we set the COLLECT_NAMES environment variable, the problems | ||
10733 | # vanish in a puff of smoke. | ||
10734 | if test "X${COLLECT_NAMES+set}" != Xset; then | ||
10735 | COLLECT_NAMES= | ||
10736 | export COLLECT_NAMES | ||
10737 | fi | ||
10738 | EOF | ||
10739 | ;; | ||
10740 | esac | ||
10741 | |||
10742 | # We use sed instead of cat because bash on DJGPP gets confused if | ||
10743 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | ||
10744 | # text mode, it properly converts lines to CR/LF. This bash problem | ||
10745 | # is reportedly fixed, but why not run on old versions too? | ||
10746 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | ||
10747 | |||
10748 | mv -f "$cfgfile" "$ofile" || \ | ||
10749 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | ||
10750 | chmod +x "$ofile" | ||
10751 | |||
10752 | else | ||
10753 | # If there is no Makefile yet, we rely on a make rule to execute | ||
10754 | # `config.status --recheck' to rerun these tests and create the | ||
10755 | # libtool script then. | ||
10756 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
10757 | if test -f "$ltmain_in"; then | ||
10758 | test -f Makefile && make "$ltmain" | ||
10759 | fi | ||
10760 | fi | ||
10761 | |||
10762 | |||
10763 | ac_ext=c | ||
10764 | ac_cpp='$CPP $CPPFLAGS' | ||
10765 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
10766 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
10767 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
10768 | |||
10769 | CC="$lt_save_CC" | ||
10770 | |||
10771 | |||
10772 | # Check whether --with-tags was given. | ||
10773 | if test "${with_tags+set}" = set; then | ||
10774 | withval=$with_tags; tagnames="$withval" | ||
10775 | fi | ||
10776 | |||
10777 | |||
10778 | if test -f "$ltmain" && test -n "$tagnames"; then | ||
10779 | if test ! -f "${ofile}"; then | ||
10780 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | ||
10781 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | ||
10782 | fi | ||
10783 | |||
10784 | if test -z "$LTCC"; then | ||
10785 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | ||
10786 | if test -z "$LTCC"; then | ||
10787 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | ||
10788 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | ||
10789 | else | ||
10790 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | ||
10791 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | ||
10792 | fi | ||
10793 | fi | ||
10794 | |||
10795 | # Extract list of available tagged configurations in $ofile. | ||
10796 | # Note that this assumes the entire list is on one line. | ||
10797 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | ||
10798 | |||
10799 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | ||
10800 | for tagname in $tagnames; do | ||
10801 | IFS="$lt_save_ifs" | ||
10802 | # Check whether tagname contains only valid characters | ||
10803 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | ||
10804 | "") ;; | ||
10805 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | ||
10806 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | ||
10807 | { (exit 1); exit 1; }; } | ||
10808 | ;; | ||
10809 | esac | ||
10810 | |||
10811 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | ||
10812 | then | ||
10813 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | ||
10814 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | ||
10815 | { (exit 1); exit 1; }; } | ||
10816 | fi | ||
10817 | |||
10818 | # Update the list of available tags. | ||
10819 | if test -n "$tagname"; then | ||
10820 | echo appending configuration tag \"$tagname\" to $ofile | ||
10821 | |||
10822 | case $tagname in | ||
10823 | CXX) | ||
10824 | if test -n "$CXX" && test "X$CXX" != "Xno"; then | ||
10825 | ac_ext=cpp | ||
10826 | ac_cpp='$CXXCPP $CPPFLAGS' | ||
10827 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
10828 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
10829 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | ||
10830 | |||
10831 | |||
10832 | |||
10833 | |||
10834 | archive_cmds_need_lc_CXX=no | ||
10835 | allow_undefined_flag_CXX= | ||
10836 | always_export_symbols_CXX=no | ||
10837 | archive_expsym_cmds_CXX= | ||
10838 | export_dynamic_flag_spec_CXX= | ||
10839 | hardcode_direct_CXX=no | ||
10840 | hardcode_libdir_flag_spec_CXX= | ||
10841 | hardcode_libdir_flag_spec_ld_CXX= | ||
10842 | hardcode_libdir_separator_CXX= | ||
10843 | hardcode_minus_L_CXX=no | ||
10844 | hardcode_automatic_CXX=no | ||
10845 | module_cmds_CXX= | ||
10846 | module_expsym_cmds_CXX= | ||
10847 | link_all_deplibs_CXX=unknown | ||
10848 | old_archive_cmds_CXX=$old_archive_cmds | ||
10849 | no_undefined_flag_CXX= | ||
10850 | whole_archive_flag_spec_CXX= | ||
10851 | enable_shared_with_static_runtimes_CXX=no | ||
10852 | |||
10853 | # Dependencies to place before and after the object being linked: | ||
10854 | predep_objects_CXX= | ||
10855 | postdep_objects_CXX= | ||
10856 | predeps_CXX= | ||
10857 | postdeps_CXX= | ||
10858 | compiler_lib_search_path_CXX= | ||
10859 | |||
10860 | # Source file extension for C++ test sources. | ||
10861 | ac_ext=cc | ||
10862 | |||
10863 | # Object file extension for compiled C++ test sources. | ||
10864 | objext=o | ||
10865 | objext_CXX=$objext | ||
10866 | |||
10867 | # Code to be used in simple compile tests | ||
10868 | lt_simple_compile_test_code="int some_variable = 0;\n" | ||
10869 | |||
10870 | # Code to be used in simple link tests | ||
10871 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' | ||
10872 | |||
10873 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
10874 | |||
10875 | # If no C compiler was specified, use CC. | ||
10876 | LTCC=${LTCC-"$CC"} | ||
10877 | |||
10878 | # Allow CC to be a program name with arguments. | ||
10879 | compiler=$CC | ||
10880 | |||
10881 | |||
10882 | # Allow CC to be a program name with arguments. | ||
10883 | lt_save_CC=$CC | ||
10884 | lt_save_LD=$LD | ||
10885 | lt_save_GCC=$GCC | ||
10886 | GCC=$GXX | ||
10887 | lt_save_with_gnu_ld=$with_gnu_ld | ||
10888 | lt_save_path_LD=$lt_cv_path_LD | ||
10889 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | ||
10890 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | ||
10891 | else | ||
10892 | unset lt_cv_prog_gnu_ld | ||
10893 | fi | ||
10894 | if test -n "${lt_cv_path_LDCXX+set}"; then | ||
10895 | lt_cv_path_LD=$lt_cv_path_LDCXX | ||
10896 | else | ||
10897 | unset lt_cv_path_LD | ||
10898 | fi | ||
10899 | test -z "${LDCXX+set}" || LD=$LDCXX | ||
10900 | CC=${CXX-"c++"} | ||
10901 | compiler=$CC | ||
10902 | compiler_CXX=$CC | ||
10903 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | ||
10904 | |||
10905 | # We don't want -fno-exception wen compiling C++ code, so set the | ||
10906 | # no_builtin_flag separately | ||
10907 | if test "$GXX" = yes; then | ||
10908 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | ||
10909 | else | ||
10910 | lt_prog_compiler_no_builtin_flag_CXX= | ||
10911 | fi | ||
10912 | |||
10913 | if test "$GXX" = yes; then | ||
10914 | # Set up default GNU C++ configuration | ||
10915 | |||
10916 | |||
10917 | # Check whether --with-gnu-ld was given. | ||
10918 | if test "${with_gnu_ld+set}" = set; then | ||
10919 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | ||
10920 | else | ||
10921 | with_gnu_ld=no | ||
10922 | fi | ||
10923 | |||
10924 | ac_prog=ld | ||
10925 | if test "$GCC" = yes; then | ||
10926 | # Check if gcc -print-prog-name=ld gives a path. | ||
10927 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | ||
10928 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | ||
10929 | case $host in | ||
10930 | *-*-mingw*) | ||
10931 | # gcc leaves a trailing carriage return which upsets mingw | ||
10932 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | ||
10933 | *) | ||
10934 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | ||
10935 | esac | ||
10936 | case $ac_prog in | ||
10937 | # Accept absolute paths. | ||
10938 | [\\/]* | ?:[\\/]*) | ||
10939 | re_direlt='/[^/][^/]*/\.\./' | ||
10940 | # Canonicalize the pathname of ld | ||
10941 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | ||
10942 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | ||
10943 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | ||
10944 | done | ||
10945 | test -z "$LD" && LD="$ac_prog" | ||
10946 | ;; | ||
10947 | "") | ||
10948 | # If it fails, then pretend we aren't using GCC. | ||
10949 | ac_prog=ld | ||
10950 | ;; | ||
10951 | *) | ||
10952 | # If it is relative, then search for the first ld in PATH. | ||
10953 | with_gnu_ld=unknown | ||
10954 | ;; | ||
10955 | esac | ||
10956 | elif test "$with_gnu_ld" = yes; then | ||
10957 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 | ||
10958 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | ||
10959 | else | ||
10960 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | ||
10961 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | ||
10962 | fi | ||
10963 | if test "${lt_cv_path_LD+set}" = set; then | ||
10964 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
10965 | else | ||
10966 | if test -z "$LD"; then | ||
10967 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | ||
10968 | for ac_dir in $PATH; do | ||
10969 | IFS="$lt_save_ifs" | ||
10970 | test -z "$ac_dir" && ac_dir=. | ||
10971 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | ||
10972 | lt_cv_path_LD="$ac_dir/$ac_prog" | ||
10973 | # Check to see if the program is GNU ld. I'd rather use --version, | ||
10974 | # but apparently some GNU ld's only accept -v. | ||
10975 | # Break only if it was the GNU/non-GNU ld that we prefer. | ||
10976 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | ||
10977 | *GNU* | *'with BFD'*) | ||
10978 | test "$with_gnu_ld" != no && break | ||
10979 | ;; | ||
10980 | *) | ||
10981 | test "$with_gnu_ld" != yes && break | ||
10982 | ;; | ||
10983 | esac | ||
10984 | fi | ||
10985 | done | ||
10986 | IFS="$lt_save_ifs" | ||
10987 | else | ||
10988 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | ||
10989 | fi | ||
10990 | fi | ||
10991 | |||
10992 | LD="$lt_cv_path_LD" | ||
10993 | if test -n "$LD"; then | ||
10994 | { echo "$as_me:$LINENO: result: $LD" >&5 | ||
10995 | echo "${ECHO_T}$LD" >&6; } | ||
10996 | else | ||
10997 | { echo "$as_me:$LINENO: result: no" >&5 | ||
10998 | echo "${ECHO_T}no" >&6; } | ||
10999 | fi | ||
11000 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | ||
11001 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | ||
11002 | { (exit 1); exit 1; }; } | ||
11003 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | ||
11004 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | ||
11005 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | ||
11006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
11007 | else | ||
11008 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. | ||
11009 | case `$LD -v 2>&1 </dev/null` in | ||
11010 | *GNU* | *'with BFD'*) | ||
11011 | lt_cv_prog_gnu_ld=yes | ||
11012 | ;; | ||
11013 | *) | ||
11014 | lt_cv_prog_gnu_ld=no | ||
11015 | ;; | ||
11016 | esac | ||
11017 | fi | ||
11018 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | ||
11019 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | ||
11020 | with_gnu_ld=$lt_cv_prog_gnu_ld | ||
11021 | |||
11022 | |||
11023 | |||
11024 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | ||
11025 | # archiving commands below assume that GNU ld is being used. | ||
11026 | if test "$with_gnu_ld" = yes; then | ||
11027 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
11028 | 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' | ||
11029 | |||
11030 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | ||
11031 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
11032 | |||
11033 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
11034 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | ||
11035 | # investigate it a little bit more. (MM) | ||
11036 | wlarc='${wl}' | ||
11037 | |||
11038 | # ancient GNU ld didn't support --whole-archive et. al. | ||
11039 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | ||
11040 | grep 'no-whole-archive' > /dev/null; then | ||
11041 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
11042 | else | ||
11043 | whole_archive_flag_spec_CXX= | ||
11044 | fi | ||
11045 | else | ||
11046 | with_gnu_ld=no | ||
11047 | wlarc= | ||
11048 | |||
11049 | # A generic and very simple default shared library creation | ||
11050 | # command for GNU C++ for the case where it uses the native | ||
11051 | # linker, instead of GNU ld. If possible, this setting should | ||
11052 | # overridden to take advantage of the native linker features on | ||
11053 | # the platform it is being used on. | ||
11054 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | ||
11055 | fi | ||
11056 | |||
11057 | # Commands to make compiler produce verbose output that lists | ||
11058 | # what "hidden" libraries, object files and flags are used when | ||
11059 | # linking a shared library. | ||
11060 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
11061 | |||
11062 | else | ||
11063 | GXX=no | ||
11064 | with_gnu_ld=no | ||
11065 | wlarc= | ||
11066 | fi | ||
11067 | |||
11068 | # PORTME: fill in a description of your system's C++ link characteristics | ||
11069 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
11070 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | ||
11071 | ld_shlibs_CXX=yes | ||
11072 | case $host_os in | ||
11073 | aix3*) | ||
11074 | # FIXME: insert proper C++ library support | ||
11075 | ld_shlibs_CXX=no | ||
11076 | ;; | ||
11077 | aix4* | aix5*) | ||
11078 | if test "$host_cpu" = ia64; then | ||
11079 | # On IA64, the linker does run time linking by default, so we don't | ||
11080 | # have to do anything special. | ||
11081 | aix_use_runtimelinking=no | ||
11082 | exp_sym_flag='-Bexport' | ||
11083 | no_entry_flag="" | ||
11084 | else | ||
11085 | aix_use_runtimelinking=no | ||
11086 | |||
11087 | # Test if we are trying to use run time linking or normal | ||
11088 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
11089 | # need to do runtime linking. | ||
11090 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | ||
11091 | for ld_flag in $LDFLAGS; do | ||
11092 | case $ld_flag in | ||
11093 | *-brtl*) | ||
11094 | aix_use_runtimelinking=yes | ||
11095 | break | ||
11096 | ;; | ||
11097 | esac | ||
11098 | done | ||
11099 | esac | ||
11100 | |||
11101 | exp_sym_flag='-bexport' | ||
11102 | no_entry_flag='-bnoentry' | ||
11103 | fi | ||
11104 | |||
11105 | # When large executables or shared objects are built, AIX ld can | ||
11106 | # have problems creating the table of contents. If linking a library | ||
11107 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
11108 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
11109 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
11110 | |||
11111 | archive_cmds_CXX='' | ||
11112 | hardcode_direct_CXX=yes | ||
11113 | hardcode_libdir_separator_CXX=':' | ||
11114 | link_all_deplibs_CXX=yes | ||
11115 | |||
11116 | if test "$GXX" = yes; then | ||
11117 | case $host_os in aix4.012|aix4.012.*) | ||
11118 | # We only want to do this on AIX 4.2 and lower, the check | ||
11119 | # below for broken collect2 doesn't work under 4.3+ | ||
11120 | collect2name=`${CC} -print-prog-name=collect2` | ||
11121 | if test -f "$collect2name" && \ | ||
11122 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
11123 | then | ||
11124 | # We have reworked collect2 | ||
11125 | hardcode_direct_CXX=yes | ||
11126 | else | ||
11127 | # We have old collect2 | ||
11128 | hardcode_direct_CXX=unsupported | ||
11129 | # It fails to find uninstalled libraries when the uninstalled | ||
11130 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
11131 | # to unsupported forces relinking | ||
11132 | hardcode_minus_L_CXX=yes | ||
11133 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
11134 | hardcode_libdir_separator_CXX= | ||
11135 | fi | ||
11136 | esac | ||
11137 | shared_flag='-shared' | ||
11138 | else | ||
11139 | # not using gcc | ||
11140 | if test "$host_cpu" = ia64; then | ||
11141 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
11142 | # chokes on -Wl,-G. The following line is correct: | ||
11143 | shared_flag='-G' | ||
11144 | else | ||
11145 | if test "$aix_use_runtimelinking" = yes; then | ||
11146 | shared_flag='${wl}-G' | ||
11147 | else | ||
11148 | shared_flag='${wl}-bM:SRE' | ||
11149 | fi | ||
11150 | fi | ||
11151 | fi | ||
11152 | |||
11153 | # It seems that -bexpall does not export symbols beginning with | ||
11154 | # underscore (_), so it is better to generate a list of symbols to export. | ||
11155 | always_export_symbols_CXX=yes | ||
11156 | if test "$aix_use_runtimelinking" = yes; then | ||
11157 | # Warning - without using the other runtime loading flags (-brtl), | ||
11158 | # -berok will link without error, but may produce a broken library. | ||
11159 | allow_undefined_flag_CXX='-berok' | ||
11160 | # Determine the default libpath from the value encoded in an empty executable. | ||
11161 | cat >conftest.$ac_ext <<_ACEOF | ||
11162 | /* confdefs.h. */ | ||
11163 | _ACEOF | ||
11164 | cat confdefs.h >>conftest.$ac_ext | ||
11165 | cat >>conftest.$ac_ext <<_ACEOF | ||
11166 | /* end confdefs.h. */ | ||
11167 | |||
11168 | int | ||
11169 | main () | ||
11170 | { | ||
11171 | |||
11172 | ; | ||
11173 | return 0; | ||
11174 | } | ||
11175 | _ACEOF | ||
11176 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11177 | if { (ac_try="$ac_link" | ||
11178 | case "(($ac_try" in | ||
11179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11180 | *) ac_try_echo=$ac_try;; | ||
11181 | esac | ||
11182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11183 | (eval "$ac_link") 2>conftest.er1 | ||
11184 | ac_status=$? | ||
11185 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11186 | rm -f conftest.er1 | ||
11187 | cat conftest.err >&5 | ||
11188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11189 | (exit $ac_status); } && { | ||
11190 | test -z "$ac_cxx_werror_flag" || | ||
11191 | test ! -s conftest.err | ||
11192 | } && test -s conftest$ac_exeext && | ||
11193 | $as_test_x conftest$ac_exeext; then | ||
11194 | |||
11195 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
11196 | }'` | ||
11197 | # Check for a 64-bit object if we didn't find anything. | ||
11198 | 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; } | ||
11199 | }'`; fi | ||
11200 | else | ||
11201 | echo "$as_me: failed program was:" >&5 | ||
11202 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11203 | |||
11204 | |||
11205 | fi | ||
11206 | |||
11207 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11208 | conftest$ac_exeext conftest.$ac_ext | ||
11209 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
11210 | |||
11211 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
11212 | |||
11213 | 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" | ||
11214 | else | ||
11215 | if test "$host_cpu" = ia64; then | ||
11216 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | ||
11217 | allow_undefined_flag_CXX="-z nodefs" | ||
11218 | 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" | ||
11219 | else | ||
11220 | # Determine the default libpath from the value encoded in an empty executable. | ||
11221 | cat >conftest.$ac_ext <<_ACEOF | ||
11222 | /* confdefs.h. */ | ||
11223 | _ACEOF | ||
11224 | cat confdefs.h >>conftest.$ac_ext | ||
11225 | cat >>conftest.$ac_ext <<_ACEOF | ||
11226 | /* end confdefs.h. */ | ||
11227 | |||
11228 | int | ||
11229 | main () | ||
11230 | { | ||
11231 | |||
11232 | ; | ||
11233 | return 0; | ||
11234 | } | ||
11235 | _ACEOF | ||
11236 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
11237 | if { (ac_try="$ac_link" | ||
11238 | case "(($ac_try" in | ||
11239 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
11240 | *) ac_try_echo=$ac_try;; | ||
11241 | esac | ||
11242 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
11243 | (eval "$ac_link") 2>conftest.er1 | ||
11244 | ac_status=$? | ||
11245 | grep -v '^ *+' conftest.er1 >conftest.err | ||
11246 | rm -f conftest.er1 | ||
11247 | cat conftest.err >&5 | ||
11248 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11249 | (exit $ac_status); } && { | ||
11250 | test -z "$ac_cxx_werror_flag" || | ||
11251 | test ! -s conftest.err | ||
11252 | } && test -s conftest$ac_exeext && | ||
11253 | $as_test_x conftest$ac_exeext; then | ||
11254 | |||
11255 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
11256 | }'` | ||
11257 | # Check for a 64-bit object if we didn't find anything. | ||
11258 | 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; } | ||
11259 | }'`; fi | ||
11260 | else | ||
11261 | echo "$as_me: failed program was:" >&5 | ||
11262 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
11263 | |||
11264 | |||
11265 | fi | ||
11266 | |||
11267 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
11268 | conftest$ac_exeext conftest.$ac_ext | ||
11269 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
11270 | |||
11271 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
11272 | # Warning - without using the other run time loading flags, | ||
11273 | # -berok will link without error, but may produce a broken library. | ||
11274 | no_undefined_flag_CXX=' ${wl}-bernotok' | ||
11275 | allow_undefined_flag_CXX=' ${wl}-berok' | ||
11276 | # -bexpall does not export symbols beginning with underscore (_) | ||
11277 | always_export_symbols_CXX=yes | ||
11278 | # Exported symbols can be pulled into shared objects from archives | ||
11279 | whole_archive_flag_spec_CXX=' ' | ||
11280 | archive_cmds_need_lc_CXX=yes | ||
11281 | # This is similar to how AIX traditionally builds it's shared libraries. | ||
11282 | 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' | ||
11283 | fi | ||
11284 | fi | ||
11285 | ;; | ||
11286 | chorus*) | ||
11287 | case $cc_basename in | ||
11288 | *) | ||
11289 | # FIXME: insert proper C++ library support | ||
11290 | ld_shlibs_CXX=no | ||
11291 | ;; | ||
11292 | esac | ||
11293 | ;; | ||
11294 | |||
11295 | cygwin* | mingw* | pw32*) | ||
11296 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | ||
11297 | # as there is no search path for DLLs. | ||
11298 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
11299 | allow_undefined_flag_CXX=unsupported | ||
11300 | always_export_symbols_CXX=no | ||
11301 | enable_shared_with_static_runtimes_CXX=yes | ||
11302 | |||
11303 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
11304 | 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' | ||
11305 | # If the export-symbols file already is a .def file (1st line | ||
11306 | # is EXPORTS), use it as is; otherwise, prepend... | ||
11307 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
11308 | cp $export_symbols $output_objdir/$soname.def; | ||
11309 | else | ||
11310 | echo EXPORTS > $output_objdir/$soname.def; | ||
11311 | cat $export_symbols >> $output_objdir/$soname.def; | ||
11312 | fi~ | ||
11313 | $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' | ||
11314 | else | ||
11315 | ld_shlibs_CXX=no | ||
11316 | fi | ||
11317 | ;; | ||
11318 | |||
11319 | darwin* | rhapsody*) | ||
11320 | if test "$GXX" = yes; then | ||
11321 | archive_cmds_need_lc_CXX=no | ||
11322 | case "$host_os" in | ||
11323 | rhapsody* | darwin1.[012]) | ||
11324 | allow_undefined_flag_CXX='-undefined suppress' | ||
11325 | ;; | ||
11326 | *) # Darwin 1.3 on | ||
11327 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
11328 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' | ||
11329 | else | ||
11330 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
11331 | 10.[012]) | ||
11332 | allow_undefined_flag_CXX='-flat_namespace -undefined suppress' | ||
11333 | ;; | ||
11334 | 10.*) | ||
11335 | allow_undefined_flag_CXX='-undefined dynamic_lookup' | ||
11336 | ;; | ||
11337 | esac | ||
11338 | fi | ||
11339 | ;; | ||
11340 | esac | ||
11341 | lt_int_apple_cc_single_mod=no | ||
11342 | output_verbose_link_cmd='echo' | ||
11343 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | ||
11344 | lt_int_apple_cc_single_mod=yes | ||
11345 | fi | ||
11346 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
11347 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
11348 | else | ||
11349 | 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' | ||
11350 | fi | ||
11351 | module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
11352 | |||
11353 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | ||
11354 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
11355 | 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}' | ||
11356 | else | ||
11357 | 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}' | ||
11358 | fi | ||
11359 | 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}' | ||
11360 | hardcode_direct_CXX=no | ||
11361 | hardcode_automatic_CXX=yes | ||
11362 | hardcode_shlibpath_var_CXX=unsupported | ||
11363 | whole_archive_flag_spec_CXX='-all_load $convenience' | ||
11364 | link_all_deplibs_CXX=yes | ||
11365 | else | ||
11366 | ld_shlibs_CXX=no | ||
11367 | fi | ||
11368 | ;; | ||
11369 | |||
11370 | dgux*) | ||
11371 | case $cc_basename in | ||
11372 | ec++) | ||
11373 | # FIXME: insert proper C++ library support | ||
11374 | ld_shlibs_CXX=no | ||
11375 | ;; | ||
11376 | ghcx) | ||
11377 | # Green Hills C++ Compiler | ||
11378 | # FIXME: insert proper C++ library support | ||
11379 | ld_shlibs_CXX=no | ||
11380 | ;; | ||
11381 | *) | ||
11382 | # FIXME: insert proper C++ library support | ||
11383 | ld_shlibs_CXX=no | ||
11384 | ;; | ||
11385 | esac | ||
11386 | ;; | ||
11387 | freebsd12*) | ||
11388 | # C++ shared libraries reported to be fairly broken before switch to ELF | ||
11389 | ld_shlibs_CXX=no | ||
11390 | ;; | ||
11391 | freebsd-elf*) | ||
11392 | archive_cmds_need_lc_CXX=no | ||
11393 | ;; | ||
11394 | freebsd* | kfreebsd*-gnu) | ||
11395 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | ||
11396 | # conventions | ||
11397 | ld_shlibs_CXX=yes | ||
11398 | ;; | ||
11399 | gnu*) | ||
11400 | ;; | ||
11401 | hpux9*) | ||
11402 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
11403 | hardcode_libdir_separator_CXX=: | ||
11404 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
11405 | hardcode_direct_CXX=yes | ||
11406 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
11407 | # but as the default | ||
11408 | # location of the library. | ||
11409 | |||
11410 | case $cc_basename in | ||
11411 | CC) | ||
11412 | # FIXME: insert proper C++ library support | ||
11413 | ld_shlibs_CXX=no | ||
11414 | ;; | ||
11415 | aCC) | ||
11416 | 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' | ||
11417 | # Commands to make compiler produce verbose output that lists | ||
11418 | # what "hidden" libraries, object files and flags are used when | ||
11419 | # linking a shared library. | ||
11420 | # | ||
11421 | # There doesn't appear to be a way to prevent this compiler from | ||
11422 | # explicitly linking system object files so we need to strip them | ||
11423 | # from the output so that they don't get included in the library | ||
11424 | # dependencies. | ||
11425 | 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' | ||
11426 | ;; | ||
11427 | *) | ||
11428 | if test "$GXX" = yes; then | ||
11429 | 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' | ||
11430 | else | ||
11431 | # FIXME: insert proper C++ library support | ||
11432 | ld_shlibs_CXX=no | ||
11433 | fi | ||
11434 | ;; | ||
11435 | esac | ||
11436 | ;; | ||
11437 | hpux10*|hpux11*) | ||
11438 | if test $with_gnu_ld = no; then | ||
11439 | case "$host_cpu" in | ||
11440 | hppa*64*) | ||
11441 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
11442 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | ||
11443 | hardcode_libdir_separator_CXX=: | ||
11444 | ;; | ||
11445 | ia64*) | ||
11446 | hardcode_libdir_flag_spec_CXX='-L$libdir' | ||
11447 | ;; | ||
11448 | *) | ||
11449 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | ||
11450 | hardcode_libdir_separator_CXX=: | ||
11451 | export_dynamic_flag_spec_CXX='${wl}-E' | ||
11452 | ;; | ||
11453 | esac | ||
11454 | fi | ||
11455 | case "$host_cpu" in | ||
11456 | hppa*64*) | ||
11457 | hardcode_direct_CXX=no | ||
11458 | hardcode_shlibpath_var_CXX=no | ||
11459 | ;; | ||
11460 | ia64*) | ||
11461 | hardcode_direct_CXX=no | ||
11462 | hardcode_shlibpath_var_CXX=no | ||
11463 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
11464 | # but as the default | ||
11465 | # location of the library. | ||
11466 | ;; | ||
11467 | *) | ||
11468 | hardcode_direct_CXX=yes | ||
11469 | hardcode_minus_L_CXX=yes # Not in the search PATH, | ||
11470 | # but as the default | ||
11471 | # location of the library. | ||
11472 | ;; | ||
11473 | esac | ||
11474 | |||
11475 | case $cc_basename in | ||
11476 | CC) | ||
11477 | # FIXME: insert proper C++ library support | ||
11478 | ld_shlibs_CXX=no | ||
11479 | ;; | ||
11480 | aCC) | ||
11481 | case "$host_cpu" in | ||
11482 | hppa*64*|ia64*) | ||
11483 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | ||
11484 | ;; | ||
11485 | *) | ||
11486 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
11487 | ;; | ||
11488 | esac | ||
11489 | # Commands to make compiler produce verbose output that lists | ||
11490 | # what "hidden" libraries, object files and flags are used when | ||
11491 | # linking a shared library. | ||
11492 | # | ||
11493 | # There doesn't appear to be a way to prevent this compiler from | ||
11494 | # explicitly linking system object files so we need to strip them | ||
11495 | # from the output so that they don't get included in the library | ||
11496 | # dependencies. | ||
11497 | 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' | ||
11498 | ;; | ||
11499 | *) | ||
11500 | if test "$GXX" = yes; then | ||
11501 | if test $with_gnu_ld = no; then | ||
11502 | case "$host_cpu" in | ||
11503 | ia64*|hppa*64*) | ||
11504 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' | ||
11505 | ;; | ||
11506 | *) | ||
11507 | 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' | ||
11508 | ;; | ||
11509 | esac | ||
11510 | fi | ||
11511 | else | ||
11512 | # FIXME: insert proper C++ library support | ||
11513 | ld_shlibs_CXX=no | ||
11514 | fi | ||
11515 | ;; | ||
11516 | esac | ||
11517 | ;; | ||
11518 | irix5* | irix6*) | ||
11519 | case $cc_basename in | ||
11520 | CC) | ||
11521 | # SGI C++ | ||
11522 | 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' | ||
11523 | |||
11524 | # Archives containing C++ object files must be created using | ||
11525 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | ||
11526 | # necessary to make sure instantiated templates are included | ||
11527 | # in the archive. | ||
11528 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | ||
11529 | ;; | ||
11530 | *) | ||
11531 | if test "$GXX" = yes; then | ||
11532 | if test "$with_gnu_ld" = no; then | ||
11533 | 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' | ||
11534 | else | ||
11535 | 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' | ||
11536 | fi | ||
11537 | fi | ||
11538 | link_all_deplibs_CXX=yes | ||
11539 | ;; | ||
11540 | esac | ||
11541 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
11542 | hardcode_libdir_separator_CXX=: | ||
11543 | ;; | ||
11544 | linux*) | ||
11545 | case $cc_basename in | ||
11546 | KCC) | ||
11547 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
11548 | |||
11549 | # KCC will only create a shared library if the output file | ||
11550 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
11551 | # to its proper name (with version) after linking. | ||
11552 | 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' | ||
11553 | 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' | ||
11554 | # Commands to make compiler produce verbose output that lists | ||
11555 | # what "hidden" libraries, object files and flags are used when | ||
11556 | # linking a shared library. | ||
11557 | # | ||
11558 | # There doesn't appear to be a way to prevent this compiler from | ||
11559 | # explicitly linking system object files so we need to strip them | ||
11560 | # from the output so that they don't get included in the library | ||
11561 | # dependencies. | ||
11562 | 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' | ||
11563 | |||
11564 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | ||
11565 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
11566 | |||
11567 | # Archives containing C++ object files must be created using | ||
11568 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
11569 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | ||
11570 | ;; | ||
11571 | icpc) | ||
11572 | # Intel C++ | ||
11573 | with_gnu_ld=yes | ||
11574 | archive_cmds_need_lc_CXX=no | ||
11575 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
11576 | 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' | ||
11577 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
11578 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | ||
11579 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | ||
11580 | ;; | ||
11581 | cxx) | ||
11582 | # Compaq C++ | ||
11583 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
11584 | 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' | ||
11585 | |||
11586 | runpath_var=LD_RUN_PATH | ||
11587 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | ||
11588 | hardcode_libdir_separator_CXX=: | ||
11589 | |||
11590 | # Commands to make compiler produce verbose output that lists | ||
11591 | # what "hidden" libraries, object files and flags are used when | ||
11592 | # linking a shared library. | ||
11593 | # | ||
11594 | # There doesn't appear to be a way to prevent this compiler from | ||
11595 | # explicitly linking system object files so we need to strip them | ||
11596 | # from the output so that they don't get included in the library | ||
11597 | # dependencies. | ||
11598 | 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' | ||
11599 | ;; | ||
11600 | esac | ||
11601 | ;; | ||
11602 | lynxos*) | ||
11603 | # FIXME: insert proper C++ library support | ||
11604 | ld_shlibs_CXX=no | ||
11605 | ;; | ||
11606 | m88k*) | ||
11607 | # FIXME: insert proper C++ library support | ||
11608 | ld_shlibs_CXX=no | ||
11609 | ;; | ||
11610 | mvs*) | ||
11611 | case $cc_basename in | ||
11612 | cxx) | ||
11613 | # FIXME: insert proper C++ library support | ||
11614 | ld_shlibs_CXX=no | ||
11615 | ;; | ||
11616 | *) | ||
11617 | # FIXME: insert proper C++ library support | ||
11618 | ld_shlibs_CXX=no | ||
11619 | ;; | ||
11620 | esac | ||
11621 | ;; | ||
11622 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
11623 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
11624 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | ||
11625 | wlarc= | ||
11626 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
11627 | hardcode_direct_CXX=yes | ||
11628 | hardcode_shlibpath_var_CXX=no | ||
11629 | fi | ||
11630 | # Workaround some broken pre-1.5 toolchains | ||
11631 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | ||
11632 | ;; | ||
11633 | osf3*) | ||
11634 | case $cc_basename in | ||
11635 | KCC) | ||
11636 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
11637 | |||
11638 | # KCC will only create a shared library if the output file | ||
11639 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
11640 | # to its proper name (with version) after linking. | ||
11641 | 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' | ||
11642 | |||
11643 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
11644 | hardcode_libdir_separator_CXX=: | ||
11645 | |||
11646 | # Archives containing C++ object files must be created using | ||
11647 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | ||
11648 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | ||
11649 | |||
11650 | ;; | ||
11651 | RCC) | ||
11652 | # Rational C++ 2.4.1 | ||
11653 | # FIXME: insert proper C++ library support | ||
11654 | ld_shlibs_CXX=no | ||
11655 | ;; | ||
11656 | cxx) | ||
11657 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
11658 | 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' | ||
11659 | |||
11660 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
11661 | hardcode_libdir_separator_CXX=: | ||
11662 | |||
11663 | # Commands to make compiler produce verbose output that lists | ||
11664 | # what "hidden" libraries, object files and flags are used when | ||
11665 | # linking a shared library. | ||
11666 | # | ||
11667 | # There doesn't appear to be a way to prevent this compiler from | ||
11668 | # explicitly linking system object files so we need to strip them | ||
11669 | # from the output so that they don't get included in the library | ||
11670 | # dependencies. | ||
11671 | 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' | ||
11672 | ;; | ||
11673 | *) | ||
11674 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
11675 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
11676 | 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' | ||
11677 | |||
11678 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
11679 | hardcode_libdir_separator_CXX=: | ||
11680 | |||
11681 | # Commands to make compiler produce verbose output that lists | ||
11682 | # what "hidden" libraries, object files and flags are used when | ||
11683 | # linking a shared library. | ||
11684 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
11685 | |||
11686 | else | ||
11687 | # FIXME: insert proper C++ library support | ||
11688 | ld_shlibs_CXX=no | ||
11689 | fi | ||
11690 | ;; | ||
11691 | esac | ||
11692 | ;; | ||
11693 | osf4* | osf5*) | ||
11694 | case $cc_basename in | ||
11695 | KCC) | ||
11696 | # Kuck and Associates, Inc. (KAI) C++ Compiler | ||
11697 | |||
11698 | # KCC will only create a shared library if the output file | ||
11699 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | ||
11700 | # to its proper name (with version) after linking. | ||
11701 | 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' | ||
11702 | |||
11703 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | ||
11704 | hardcode_libdir_separator_CXX=: | ||
11705 | |||
11706 | # Archives containing C++ object files must be created using | ||
11707 | # the KAI C++ compiler. | ||
11708 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | ||
11709 | ;; | ||
11710 | RCC) | ||
11711 | # Rational C++ 2.4.1 | ||
11712 | # FIXME: insert proper C++ library support | ||
11713 | ld_shlibs_CXX=no | ||
11714 | ;; | ||
11715 | cxx) | ||
11716 | allow_undefined_flag_CXX=' -expect_unresolved \*' | ||
11717 | 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' | ||
11718 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | ||
11719 | echo "-hidden">> $lib.exp~ | ||
11720 | $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~ | ||
11721 | $rm $lib.exp' | ||
11722 | |||
11723 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | ||
11724 | hardcode_libdir_separator_CXX=: | ||
11725 | |||
11726 | # Commands to make compiler produce verbose output that lists | ||
11727 | # what "hidden" libraries, object files and flags are used when | ||
11728 | # linking a shared library. | ||
11729 | # | ||
11730 | # There doesn't appear to be a way to prevent this compiler from | ||
11731 | # explicitly linking system object files so we need to strip them | ||
11732 | # from the output so that they don't get included in the library | ||
11733 | # dependencies. | ||
11734 | 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' | ||
11735 | ;; | ||
11736 | *) | ||
11737 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
11738 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | ||
11739 | 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' | ||
11740 | |||
11741 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | ||
11742 | hardcode_libdir_separator_CXX=: | ||
11743 | |||
11744 | # Commands to make compiler produce verbose output that lists | ||
11745 | # what "hidden" libraries, object files and flags are used when | ||
11746 | # linking a shared library. | ||
11747 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | ||
11748 | |||
11749 | else | ||
11750 | # FIXME: insert proper C++ library support | ||
11751 | ld_shlibs_CXX=no | ||
11752 | fi | ||
11753 | ;; | ||
11754 | esac | ||
11755 | ;; | ||
11756 | psos*) | ||
11757 | # FIXME: insert proper C++ library support | ||
11758 | ld_shlibs_CXX=no | ||
11759 | ;; | ||
11760 | sco*) | ||
11761 | archive_cmds_need_lc_CXX=no | ||
11762 | case $cc_basename in | ||
11763 | CC) | ||
11764 | # FIXME: insert proper C++ library support | ||
11765 | ld_shlibs_CXX=no | ||
11766 | ;; | ||
11767 | *) | ||
11768 | # FIXME: insert proper C++ library support | ||
11769 | ld_shlibs_CXX=no | ||
11770 | ;; | ||
11771 | esac | ||
11772 | ;; | ||
11773 | sunos4*) | ||
11774 | case $cc_basename in | ||
11775 | CC) | ||
11776 | # Sun C++ 4.x | ||
11777 | # FIXME: insert proper C++ library support | ||
11778 | ld_shlibs_CXX=no | ||
11779 | ;; | ||
11780 | lcc) | ||
11781 | # Lucid | ||
11782 | # FIXME: insert proper C++ library support | ||
11783 | ld_shlibs_CXX=no | ||
11784 | ;; | ||
11785 | *) | ||
11786 | # FIXME: insert proper C++ library support | ||
11787 | ld_shlibs_CXX=no | ||
11788 | ;; | ||
11789 | esac | ||
11790 | ;; | ||
11791 | solaris*) | ||
11792 | case $cc_basename in | ||
11793 | CC) | ||
11794 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
11795 | no_undefined_flag_CXX=' -zdefs' | ||
11796 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | ||
11797 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
11798 | $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' | ||
11799 | |||
11800 | hardcode_libdir_flag_spec_CXX='-R$libdir' | ||
11801 | hardcode_shlibpath_var_CXX=no | ||
11802 | case $host_os in | ||
11803 | solaris2.0-5 | solaris2.0-5.*) ;; | ||
11804 | *) | ||
11805 | # The C++ compiler is used as linker so we must use $wl | ||
11806 | # flag to pass the commands to the underlying system | ||
11807 | # linker. | ||
11808 | # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
11809 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' | ||
11810 | ;; | ||
11811 | esac | ||
11812 | link_all_deplibs_CXX=yes | ||
11813 | |||
11814 | # Commands to make compiler produce verbose output that lists | ||
11815 | # what "hidden" libraries, object files and flags are used when | ||
11816 | # linking a shared library. | ||
11817 | # | ||
11818 | # There doesn't appear to be a way to prevent this compiler from | ||
11819 | # explicitly linking system object files so we need to strip them | ||
11820 | # from the output so that they don't get included in the library | ||
11821 | # dependencies. | ||
11822 | 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' | ||
11823 | |||
11824 | # Archives containing C++ object files must be created using | ||
11825 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | ||
11826 | # necessary to make sure instantiated templates are included | ||
11827 | # in the archive. | ||
11828 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | ||
11829 | ;; | ||
11830 | gcx) | ||
11831 | # Green Hills C++ Compiler | ||
11832 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
11833 | |||
11834 | # The C++ compiler must be used to create the archive. | ||
11835 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | ||
11836 | ;; | ||
11837 | *) | ||
11838 | # GNU C++ compiler with Solaris linker | ||
11839 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | ||
11840 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | ||
11841 | if $CC --version | grep -v '^2\.7' > /dev/null; then | ||
11842 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
11843 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
11844 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
11845 | |||
11846 | # Commands to make compiler produce verbose output that lists | ||
11847 | # what "hidden" libraries, object files and flags are used when | ||
11848 | # linking a shared library. | ||
11849 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | ||
11850 | else | ||
11851 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | ||
11852 | # platform. | ||
11853 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | ||
11854 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
11855 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | ||
11856 | |||
11857 | # Commands to make compiler produce verbose output that lists | ||
11858 | # what "hidden" libraries, object files and flags are used when | ||
11859 | # linking a shared library. | ||
11860 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | ||
11861 | fi | ||
11862 | |||
11863 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | ||
11864 | fi | ||
11865 | ;; | ||
11866 | esac | ||
11867 | ;; | ||
11868 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | ||
11869 | archive_cmds_need_lc_CXX=no | ||
11870 | ;; | ||
11871 | tandem*) | ||
11872 | case $cc_basename in | ||
11873 | NCC) | ||
11874 | # NonStop-UX NCC 3.20 | ||
11875 | # FIXME: insert proper C++ library support | ||
11876 | ld_shlibs_CXX=no | ||
11877 | ;; | ||
11878 | *) | ||
11879 | # FIXME: insert proper C++ library support | ||
11880 | ld_shlibs_CXX=no | ||
11881 | ;; | ||
11882 | esac | ||
11883 | ;; | ||
11884 | vxworks*) | ||
11885 | # FIXME: insert proper C++ library support | ||
11886 | ld_shlibs_CXX=no | ||
11887 | ;; | ||
11888 | *) | ||
11889 | # FIXME: insert proper C++ library support | ||
11890 | ld_shlibs_CXX=no | ||
11891 | ;; | ||
11892 | esac | ||
11893 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | ||
11894 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | ||
11895 | test "$ld_shlibs_CXX" = no && can_build_shared=no | ||
11896 | |||
11897 | GCC_CXX="$GXX" | ||
11898 | LD_CXX="$LD" | ||
11899 | |||
11900 | ## CAVEAT EMPTOR: | ||
11901 | ## There is no encapsulation within the following macros, do not change | ||
11902 | ## the running order or otherwise move them around unless you know exactly | ||
11903 | ## what you are doing... | ||
11904 | |||
11905 | cat > conftest.$ac_ext <<EOF | ||
11906 | class Foo | ||
11907 | { | ||
11908 | public: | ||
11909 | Foo (void) { a = 0; } | ||
11910 | private: | ||
11911 | int a; | ||
11912 | }; | ||
11913 | EOF | ||
11914 | |||
11915 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
11916 | (eval $ac_compile) 2>&5 | ||
11917 | ac_status=$? | ||
11918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
11919 | (exit $ac_status); }; then | ||
11920 | # Parse the compiler output and extract the necessary | ||
11921 | # objects, libraries and library flags. | ||
11922 | |||
11923 | # Sentinel used to keep track of whether or not we are before | ||
11924 | # the conftest object file. | ||
11925 | pre_test_object_deps_done=no | ||
11926 | |||
11927 | # The `*' in the case matches for architectures that use `case' in | ||
11928 | # $output_verbose_cmd can trigger glob expansion during the loop | ||
11929 | # eval without this substitution. | ||
11930 | output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" | ||
11931 | |||
11932 | for p in `eval $output_verbose_link_cmd`; do | ||
11933 | case $p in | ||
11934 | |||
11935 | -L* | -R* | -l*) | ||
11936 | # Some compilers place space between "-{L,R}" and the path. | ||
11937 | # Remove the space. | ||
11938 | if test $p = "-L" \ | ||
11939 | || test $p = "-R"; then | ||
11940 | prev=$p | ||
11941 | continue | ||
11942 | else | ||
11943 | prev= | ||
11944 | fi | ||
11945 | |||
11946 | if test "$pre_test_object_deps_done" = no; then | ||
11947 | case $p in | ||
11948 | -L* | -R*) | ||
11949 | # Internal compiler library paths should come after those | ||
11950 | # provided the user. The postdeps already come after the | ||
11951 | # user supplied libs so there is no need to process them. | ||
11952 | if test -z "$compiler_lib_search_path_CXX"; then | ||
11953 | compiler_lib_search_path_CXX="${prev}${p}" | ||
11954 | else | ||
11955 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | ||
11956 | fi | ||
11957 | ;; | ||
11958 | # The "-l" case would never come before the object being | ||
11959 | # linked, so don't bother handling this case. | ||
11960 | esac | ||
11961 | else | ||
11962 | if test -z "$postdeps_CXX"; then | ||
11963 | postdeps_CXX="${prev}${p}" | ||
11964 | else | ||
11965 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | ||
11966 | fi | ||
11967 | fi | ||
11968 | ;; | ||
11969 | |||
11970 | *.$objext) | ||
11971 | # This assumes that the test object file only shows up | ||
11972 | # once in the compiler output. | ||
11973 | if test "$p" = "conftest.$objext"; then | ||
11974 | pre_test_object_deps_done=yes | ||
11975 | continue | ||
11976 | fi | ||
11977 | |||
11978 | if test "$pre_test_object_deps_done" = no; then | ||
11979 | if test -z "$predep_objects_CXX"; then | ||
11980 | predep_objects_CXX="$p" | ||
11981 | else | ||
11982 | predep_objects_CXX="$predep_objects_CXX $p" | ||
11983 | fi | ||
11984 | else | ||
11985 | if test -z "$postdep_objects_CXX"; then | ||
11986 | postdep_objects_CXX="$p" | ||
11987 | else | ||
11988 | postdep_objects_CXX="$postdep_objects_CXX $p" | ||
11989 | fi | ||
11990 | fi | ||
11991 | ;; | ||
11992 | |||
11993 | *) ;; # Ignore the rest. | ||
11994 | |||
11995 | esac | ||
11996 | done | ||
11997 | |||
11998 | # Clean up. | ||
11999 | rm -f a.out a.exe | ||
12000 | else | ||
12001 | echo "libtool.m4: error: problem compiling CXX test program" | ||
12002 | fi | ||
12003 | |||
12004 | $rm -f confest.$objext | ||
12005 | |||
12006 | case " $postdeps_CXX " in | ||
12007 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | ||
12008 | esac | ||
12009 | |||
12010 | lt_prog_compiler_wl_CXX= | ||
12011 | lt_prog_compiler_pic_CXX= | ||
12012 | lt_prog_compiler_static_CXX= | ||
12013 | |||
12014 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | ||
12015 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | ||
12016 | |||
12017 | # C++ specific cases for pic, static, wl, etc. | ||
12018 | if test "$GXX" = yes; then | ||
12019 | lt_prog_compiler_wl_CXX='-Wl,' | ||
12020 | lt_prog_compiler_static_CXX='-static' | ||
12021 | |||
12022 | case $host_os in | ||
12023 | aix*) | ||
12024 | # All AIX code is PIC. | ||
12025 | if test "$host_cpu" = ia64; then | ||
12026 | # AIX 5 now supports IA64 processor | ||
12027 | lt_prog_compiler_static_CXX='-Bstatic' | ||
12028 | fi | ||
12029 | ;; | ||
12030 | amigaos*) | ||
12031 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
12032 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
12033 | # like `-m68040'. | ||
12034 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | ||
12035 | ;; | ||
12036 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
12037 | # PIC is the default for these OSes. | ||
12038 | ;; | ||
12039 | mingw* | os2* | pw32*) | ||
12040 | # This hack is so that the source file can tell whether it is being | ||
12041 | # built for inclusion in a dll (and should export symbols for example). | ||
12042 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | ||
12043 | ;; | ||
12044 | darwin* | rhapsody*) | ||
12045 | # PIC is the default on this platform | ||
12046 | # Common symbols not allowed in MH_DYLIB files | ||
12047 | lt_prog_compiler_pic_CXX='-fno-common' | ||
12048 | ;; | ||
12049 | *djgpp*) | ||
12050 | # DJGPP does not support shared libraries at all | ||
12051 | lt_prog_compiler_pic_CXX= | ||
12052 | ;; | ||
12053 | sysv4*MP*) | ||
12054 | if test -d /usr/nec; then | ||
12055 | lt_prog_compiler_pic_CXX=-Kconform_pic | ||
12056 | fi | ||
12057 | ;; | ||
12058 | hpux*) | ||
12059 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
12060 | # not for PA HP-UX. | ||
12061 | case "$host_cpu" in | ||
12062 | hppa*64*|ia64*) | ||
12063 | ;; | ||
12064 | *) | ||
12065 | lt_prog_compiler_pic_CXX='-fPIC' | ||
12066 | ;; | ||
12067 | esac | ||
12068 | ;; | ||
12069 | *) | ||
12070 | lt_prog_compiler_pic_CXX='-fPIC' | ||
12071 | ;; | ||
12072 | esac | ||
12073 | else | ||
12074 | case $host_os in | ||
12075 | aix4* | aix5*) | ||
12076 | # All AIX code is PIC. | ||
12077 | if test "$host_cpu" = ia64; then | ||
12078 | # AIX 5 now supports IA64 processor | ||
12079 | lt_prog_compiler_static_CXX='-Bstatic' | ||
12080 | else | ||
12081 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | ||
12082 | fi | ||
12083 | ;; | ||
12084 | chorus*) | ||
12085 | case $cc_basename in | ||
12086 | cxch68) | ||
12087 | # Green Hills C++ Compiler | ||
12088 | # _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" | ||
12089 | ;; | ||
12090 | esac | ||
12091 | ;; | ||
12092 | dgux*) | ||
12093 | case $cc_basename in | ||
12094 | ec++) | ||
12095 | lt_prog_compiler_pic_CXX='-KPIC' | ||
12096 | ;; | ||
12097 | ghcx) | ||
12098 | # Green Hills C++ Compiler | ||
12099 | lt_prog_compiler_pic_CXX='-pic' | ||
12100 | ;; | ||
12101 | *) | ||
12102 | ;; | ||
12103 | esac | ||
12104 | ;; | ||
12105 | freebsd* | kfreebsd*-gnu) | ||
12106 | # FreeBSD uses GNU C++ | ||
12107 | ;; | ||
12108 | hpux9* | hpux10* | hpux11*) | ||
12109 | case $cc_basename in | ||
12110 | CC) | ||
12111 | lt_prog_compiler_wl_CXX='-Wl,' | ||
12112 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | ||
12113 | if test "$host_cpu" != ia64; then | ||
12114 | lt_prog_compiler_pic_CXX='+Z' | ||
12115 | fi | ||
12116 | ;; | ||
12117 | aCC) | ||
12118 | lt_prog_compiler_wl_CXX='-Wl,' | ||
12119 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" | ||
12120 | case "$host_cpu" in | ||
12121 | hppa*64*|ia64*) | ||
12122 | # +Z the default | ||
12123 | ;; | ||
12124 | *) | ||
12125 | lt_prog_compiler_pic_CXX='+Z' | ||
12126 | ;; | ||
12127 | esac | ||
12128 | ;; | ||
12129 | *) | ||
12130 | ;; | ||
12131 | esac | ||
12132 | ;; | ||
12133 | irix5* | irix6* | nonstopux*) | ||
12134 | case $cc_basename in | ||
12135 | CC) | ||
12136 | lt_prog_compiler_wl_CXX='-Wl,' | ||
12137 | lt_prog_compiler_static_CXX='-non_shared' | ||
12138 | # CC pic flag -KPIC is the default. | ||
12139 | ;; | ||
12140 | *) | ||
12141 | ;; | ||
12142 | esac | ||
12143 | ;; | ||
12144 | linux*) | ||
12145 | case $cc_basename in | ||
12146 | KCC) | ||
12147 | # KAI C++ Compiler | ||
12148 | lt_prog_compiler_wl_CXX='--backend -Wl,' | ||
12149 | lt_prog_compiler_pic_CXX='-fPIC' | ||
12150 | ;; | ||
12151 | icpc) | ||
12152 | # Intel C++ | ||
12153 | lt_prog_compiler_wl_CXX='-Wl,' | ||
12154 | lt_prog_compiler_pic_CXX='-KPIC' | ||
12155 | lt_prog_compiler_static_CXX='-static' | ||
12156 | ;; | ||
12157 | cxx) | ||
12158 | # Compaq C++ | ||
12159 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
12160 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
12161 | lt_prog_compiler_pic_CXX= | ||
12162 | lt_prog_compiler_static_CXX='-non_shared' | ||
12163 | ;; | ||
12164 | *) | ||
12165 | ;; | ||
12166 | esac | ||
12167 | ;; | ||
12168 | lynxos*) | ||
12169 | ;; | ||
12170 | m88k*) | ||
12171 | ;; | ||
12172 | mvs*) | ||
12173 | case $cc_basename in | ||
12174 | cxx) | ||
12175 | lt_prog_compiler_pic_CXX='-W c,exportall' | ||
12176 | ;; | ||
12177 | *) | ||
12178 | ;; | ||
12179 | esac | ||
12180 | ;; | ||
12181 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
12182 | ;; | ||
12183 | osf3* | osf4* | osf5*) | ||
12184 | case $cc_basename in | ||
12185 | KCC) | ||
12186 | lt_prog_compiler_wl_CXX='--backend -Wl,' | ||
12187 | ;; | ||
12188 | RCC) | ||
12189 | # Rational C++ 2.4.1 | ||
12190 | lt_prog_compiler_pic_CXX='-pic' | ||
12191 | ;; | ||
12192 | cxx) | ||
12193 | # Digital/Compaq C++ | ||
12194 | lt_prog_compiler_wl_CXX='-Wl,' | ||
12195 | # Make sure the PIC flag is empty. It appears that all Alpha | ||
12196 | # Linux and Compaq Tru64 Unix objects are PIC. | ||
12197 | lt_prog_compiler_pic_CXX= | ||
12198 | lt_prog_compiler_static_CXX='-non_shared' | ||
12199 | ;; | ||
12200 | *) | ||
12201 | ;; | ||
12202 | esac | ||
12203 | ;; | ||
12204 | psos*) | ||
12205 | ;; | ||
12206 | sco*) | ||
12207 | case $cc_basename in | ||
12208 | CC) | ||
12209 | lt_prog_compiler_pic_CXX='-fPIC' | ||
12210 | ;; | ||
12211 | *) | ||
12212 | ;; | ||
12213 | esac | ||
12214 | ;; | ||
12215 | solaris*) | ||
12216 | case $cc_basename in | ||
12217 | CC) | ||
12218 | # Sun C++ 4.2, 5.x and Centerline C++ | ||
12219 | lt_prog_compiler_pic_CXX='-KPIC' | ||
12220 | lt_prog_compiler_static_CXX='-Bstatic' | ||
12221 | lt_prog_compiler_wl_CXX='-Qoption ld ' | ||
12222 | ;; | ||
12223 | gcx) | ||
12224 | # Green Hills C++ Compiler | ||
12225 | lt_prog_compiler_pic_CXX='-PIC' | ||
12226 | ;; | ||
12227 | *) | ||
12228 | ;; | ||
12229 | esac | ||
12230 | ;; | ||
12231 | sunos4*) | ||
12232 | case $cc_basename in | ||
12233 | CC) | ||
12234 | # Sun C++ 4.x | ||
12235 | lt_prog_compiler_pic_CXX='-pic' | ||
12236 | lt_prog_compiler_static_CXX='-Bstatic' | ||
12237 | ;; | ||
12238 | lcc) | ||
12239 | # Lucid | ||
12240 | lt_prog_compiler_pic_CXX='-pic' | ||
12241 | ;; | ||
12242 | *) | ||
12243 | ;; | ||
12244 | esac | ||
12245 | ;; | ||
12246 | tandem*) | ||
12247 | case $cc_basename in | ||
12248 | NCC) | ||
12249 | # NonStop-UX NCC 3.20 | ||
12250 | lt_prog_compiler_pic_CXX='-KPIC' | ||
12251 | ;; | ||
12252 | *) | ||
12253 | ;; | ||
12254 | esac | ||
12255 | ;; | ||
12256 | unixware*) | ||
12257 | ;; | ||
12258 | vxworks*) | ||
12259 | ;; | ||
12260 | *) | ||
12261 | lt_prog_compiler_can_build_shared_CXX=no | ||
12262 | ;; | ||
12263 | esac | ||
12264 | fi | ||
12265 | |||
12266 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | ||
12267 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } | ||
12268 | |||
12269 | # | ||
12270 | # Check to make sure the PIC flag actually works. | ||
12271 | # | ||
12272 | if test -n "$lt_prog_compiler_pic_CXX"; then | ||
12273 | |||
12274 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | ||
12275 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } | ||
12276 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | ||
12277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12278 | else | ||
12279 | lt_prog_compiler_pic_works_CXX=no | ||
12280 | ac_outfile=conftest.$ac_objext | ||
12281 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
12282 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | ||
12283 | # Insert the option either (1) after the last *FLAGS variable, or | ||
12284 | # (2) before a word containing "conftest.", or (3) at the end. | ||
12285 | # Note that $ac_compile itself does not contain backslashes and begins | ||
12286 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
12287 | # The option is referenced via a variable to avoid confusing sed. | ||
12288 | lt_compile=`echo "$ac_compile" | $SED \ | ||
12289 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
12290 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
12291 | -e 's:$: $lt_compiler_flag:'` | ||
12292 | (eval echo "\"\$as_me:12292: $lt_compile\"" >&5) | ||
12293 | (eval "$lt_compile" 2>conftest.err) | ||
12294 | ac_status=$? | ||
12295 | cat conftest.err >&5 | ||
12296 | echo "$as_me:12296: \$? = $ac_status" >&5 | ||
12297 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
12298 | # The compiler can only warn and ignore the option if not recognized | ||
12299 | # So say no if there are warnings | ||
12300 | if test ! -s conftest.err; then | ||
12301 | lt_prog_compiler_pic_works_CXX=yes | ||
12302 | fi | ||
12303 | fi | ||
12304 | $rm conftest* | ||
12305 | |||
12306 | fi | ||
12307 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | ||
12308 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } | ||
12309 | |||
12310 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | ||
12311 | case $lt_prog_compiler_pic_CXX in | ||
12312 | "" | " "*) ;; | ||
12313 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | ||
12314 | esac | ||
12315 | else | ||
12316 | lt_prog_compiler_pic_CXX= | ||
12317 | lt_prog_compiler_can_build_shared_CXX=no | ||
12318 | fi | ||
12319 | |||
12320 | fi | ||
12321 | case "$host_os" in | ||
12322 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
12323 | *djgpp*) | ||
12324 | lt_prog_compiler_pic_CXX= | ||
12325 | ;; | ||
12326 | *) | ||
12327 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | ||
12328 | ;; | ||
12329 | esac | ||
12330 | |||
12331 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
12332 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | ||
12333 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | ||
12334 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
12335 | else | ||
12336 | lt_cv_prog_compiler_c_o_CXX=no | ||
12337 | $rm -r conftest 2>/dev/null | ||
12338 | mkdir conftest | ||
12339 | cd conftest | ||
12340 | mkdir out | ||
12341 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
12342 | |||
12343 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
12344 | # Insert the option either (1) after the last *FLAGS variable, or | ||
12345 | # (2) before a word containing "conftest.", or (3) at the end. | ||
12346 | # Note that $ac_compile itself does not contain backslashes and begins | ||
12347 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
12348 | lt_compile=`echo "$ac_compile" | $SED \ | ||
12349 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
12350 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
12351 | -e 's:$: $lt_compiler_flag:'` | ||
12352 | (eval echo "\"\$as_me:12352: $lt_compile\"" >&5) | ||
12353 | (eval "$lt_compile" 2>out/conftest.err) | ||
12354 | ac_status=$? | ||
12355 | cat out/conftest.err >&5 | ||
12356 | echo "$as_me:12356: \$? = $ac_status" >&5 | ||
12357 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
12358 | then | ||
12359 | # The compiler can only warn and ignore the option if not recognized | ||
12360 | # So say no if there are warnings | ||
12361 | if test ! -s out/conftest.err; then | ||
12362 | lt_cv_prog_compiler_c_o_CXX=yes | ||
12363 | fi | ||
12364 | fi | ||
12365 | chmod u+w . | ||
12366 | $rm conftest* | ||
12367 | # SGI C++ compiler will create directory out/ii_files/ for | ||
12368 | # template instantiation | ||
12369 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | ||
12370 | $rm out/* && rmdir out | ||
12371 | cd .. | ||
12372 | rmdir conftest | ||
12373 | $rm conftest* | ||
12374 | |||
12375 | fi | ||
12376 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | ||
12377 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } | ||
12378 | |||
12379 | |||
12380 | hard_links="nottested" | ||
12381 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | ||
12382 | # do not overwrite the value of need_locks provided by the user | ||
12383 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | ||
12384 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | ||
12385 | hard_links=yes | ||
12386 | $rm conftest* | ||
12387 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
12388 | touch conftest.a | ||
12389 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
12390 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
12391 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | ||
12392 | echo "${ECHO_T}$hard_links" >&6; } | ||
12393 | if test "$hard_links" = no; then | ||
12394 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
12395 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
12396 | need_locks=warn | ||
12397 | fi | ||
12398 | else | ||
12399 | need_locks=no | ||
12400 | fi | ||
12401 | |||
12402 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
12403 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | ||
12404 | |||
12405 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
12406 | case $host_os in | ||
12407 | aix4* | aix5*) | ||
12408 | # If we're using GNU nm, then we don't want the "-C" option. | ||
12409 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
12410 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | ||
12411 | 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' | ||
12412 | else | ||
12413 | 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' | ||
12414 | fi | ||
12415 | ;; | ||
12416 | pw32*) | ||
12417 | export_symbols_cmds_CXX="$ltdll_cmds" | ||
12418 | ;; | ||
12419 | cygwin* | mingw*) | ||
12420 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | ||
12421 | ;; | ||
12422 | linux*) | ||
12423 | link_all_deplibs_CXX=no | ||
12424 | ;; | ||
12425 | *) | ||
12426 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
12427 | ;; | ||
12428 | esac | ||
12429 | |||
12430 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | ||
12431 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | ||
12432 | test "$ld_shlibs_CXX" = no && can_build_shared=no | ||
12433 | |||
12434 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
12435 | if test "$GCC" = yes; then | ||
12436 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
12437 | fi | ||
12438 | |||
12439 | # | ||
12440 | # Do we need to explicitly link libc? | ||
12441 | # | ||
12442 | case "x$archive_cmds_need_lc_CXX" in | ||
12443 | x|xyes) | ||
12444 | # Assume -lc should be added | ||
12445 | archive_cmds_need_lc_CXX=yes | ||
12446 | |||
12447 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
12448 | case $archive_cmds_CXX in | ||
12449 | *'~'*) | ||
12450 | # FIXME: we may have to deal with multi-command sequences. | ||
12451 | ;; | ||
12452 | '$CC '*) | ||
12453 | # Test whether the compiler implicitly links with -lc since on some | ||
12454 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
12455 | # to ld, don't add -lc before -lgcc. | ||
12456 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | ||
12457 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | ||
12458 | $rm conftest* | ||
12459 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
12460 | |||
12461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
12462 | (eval $ac_compile) 2>&5 | ||
12463 | ac_status=$? | ||
12464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12465 | (exit $ac_status); } 2>conftest.err; then | ||
12466 | soname=conftest | ||
12467 | lib=conftest | ||
12468 | libobjs=conftest.$ac_objext | ||
12469 | deplibs= | ||
12470 | wl=$lt_prog_compiler_wl_CXX | ||
12471 | compiler_flags=-v | ||
12472 | linker_flags=-v | ||
12473 | verstring= | ||
12474 | output_objdir=. | ||
12475 | libname=conftest | ||
12476 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | ||
12477 | allow_undefined_flag_CXX= | ||
12478 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | ||
12479 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
12480 | ac_status=$? | ||
12481 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
12482 | (exit $ac_status); } | ||
12483 | then | ||
12484 | archive_cmds_need_lc_CXX=no | ||
12485 | else | ||
12486 | archive_cmds_need_lc_CXX=yes | ||
12487 | fi | ||
12488 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | ||
12489 | else | ||
12490 | cat conftest.err 1>&5 | ||
12491 | fi | ||
12492 | $rm conftest* | ||
12493 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | ||
12494 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } | ||
12495 | ;; | ||
12496 | esac | ||
12497 | fi | ||
12498 | ;; | ||
12499 | esac | ||
12500 | |||
12501 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | ||
12502 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | ||
12503 | library_names_spec= | ||
12504 | libname_spec='lib$name' | ||
12505 | soname_spec= | ||
12506 | shrext_cmds=".so" | ||
12507 | postinstall_cmds= | ||
12508 | postuninstall_cmds= | ||
12509 | finish_cmds= | ||
12510 | finish_eval= | ||
12511 | shlibpath_var= | ||
12512 | shlibpath_overrides_runpath=unknown | ||
12513 | version_type=none | ||
12514 | dynamic_linker="$host_os ld.so" | ||
12515 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
12516 | if test "$GCC" = yes; then | ||
12517 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
12518 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | ||
12519 | # if the path contains ";" then we assume it to be the separator | ||
12520 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
12521 | # assumed that no part of a normal pathname contains ";" but that should | ||
12522 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
12523 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
12524 | else | ||
12525 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
12526 | fi | ||
12527 | else | ||
12528 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
12529 | fi | ||
12530 | need_lib_prefix=unknown | ||
12531 | hardcode_into_libs=no | ||
12532 | |||
12533 | # when you set need_version to no, make sure it does not cause -set_version | ||
12534 | # flags to be left without arguments | ||
12535 | need_version=unknown | ||
12536 | |||
12537 | case $host_os in | ||
12538 | aix3*) | ||
12539 | version_type=linux | ||
12540 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
12541 | shlibpath_var=LIBPATH | ||
12542 | |||
12543 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
12544 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12545 | ;; | ||
12546 | |||
12547 | aix4* | aix5*) | ||
12548 | version_type=linux | ||
12549 | need_lib_prefix=no | ||
12550 | need_version=no | ||
12551 | hardcode_into_libs=yes | ||
12552 | if test "$host_cpu" = ia64; then | ||
12553 | # AIX 5 supports IA64 | ||
12554 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
12555 | shlibpath_var=LD_LIBRARY_PATH | ||
12556 | else | ||
12557 | # With GCC up to 2.95.x, collect2 would create an import file | ||
12558 | # for dependence libraries. The import file would start with | ||
12559 | # the line `#! .'. This would cause the generated library to | ||
12560 | # depend on `.', always an invalid library. This was fixed in | ||
12561 | # development snapshots of GCC prior to 3.0. | ||
12562 | case $host_os in | ||
12563 | aix4 | aix4.[01] | aix4.[01].*) | ||
12564 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
12565 | echo ' yes ' | ||
12566 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | ||
12567 | : | ||
12568 | else | ||
12569 | can_build_shared=no | ||
12570 | fi | ||
12571 | ;; | ||
12572 | esac | ||
12573 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
12574 | # soname into executable. Probably we can add versioning support to | ||
12575 | # collect2, so additional links can be useful in future. | ||
12576 | if test "$aix_use_runtimelinking" = yes; then | ||
12577 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
12578 | # instead of lib<name>.a to let people know that these are not | ||
12579 | # typical AIX shared libraries. | ||
12580 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12581 | else | ||
12582 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
12583 | # and later when we are not doing run time linking. | ||
12584 | library_names_spec='${libname}${release}.a $libname.a' | ||
12585 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12586 | fi | ||
12587 | shlibpath_var=LIBPATH | ||
12588 | fi | ||
12589 | ;; | ||
12590 | |||
12591 | amigaos*) | ||
12592 | library_names_spec='$libname.ixlibrary $libname.a' | ||
12593 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
12594 | 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' | ||
12595 | ;; | ||
12596 | |||
12597 | beos*) | ||
12598 | library_names_spec='${libname}${shared_ext}' | ||
12599 | dynamic_linker="$host_os ld.so" | ||
12600 | shlibpath_var=LIBRARY_PATH | ||
12601 | ;; | ||
12602 | |||
12603 | bsdi4*) | ||
12604 | version_type=linux | ||
12605 | need_version=no | ||
12606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12607 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12608 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
12609 | shlibpath_var=LD_LIBRARY_PATH | ||
12610 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
12611 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
12612 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
12613 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
12614 | # libtool to hard-code these into programs | ||
12615 | ;; | ||
12616 | |||
12617 | cygwin* | mingw* | pw32*) | ||
12618 | version_type=windows | ||
12619 | shrext_cmds=".dll" | ||
12620 | need_version=no | ||
12621 | need_lib_prefix=no | ||
12622 | |||
12623 | case $GCC,$host_os in | ||
12624 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
12625 | library_names_spec='$libname.dll.a' | ||
12626 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
12627 | postinstall_cmds='base_file=`basename \${file}`~ | ||
12628 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | ||
12629 | dldir=$destdir/`dirname \$dlpath`~ | ||
12630 | test -d \$dldir || mkdir -p \$dldir~ | ||
12631 | $install_prog $dir/$dlname \$dldir/$dlname' | ||
12632 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
12633 | dlpath=$dir/\$dldll~ | ||
12634 | $rm \$dlpath' | ||
12635 | shlibpath_overrides_runpath=yes | ||
12636 | |||
12637 | case $host_os in | ||
12638 | cygwin*) | ||
12639 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
12640 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
12641 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
12642 | ;; | ||
12643 | mingw*) | ||
12644 | # MinGW DLLs use traditional 'lib' prefix | ||
12645 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
12646 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
12647 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | ||
12648 | # It is most probably a Windows format PATH printed by | ||
12649 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
12650 | # path with ; separators, and with drive letters. We can handle the | ||
12651 | # drive letters (cygwin fileutils understands them), so leave them, | ||
12652 | # especially as we might pass files found there to a mingw objdump, | ||
12653 | # which wouldn't understand a cygwinified path. Ahh. | ||
12654 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
12655 | else | ||
12656 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
12657 | fi | ||
12658 | ;; | ||
12659 | pw32*) | ||
12660 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
12661 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | ||
12662 | ;; | ||
12663 | esac | ||
12664 | ;; | ||
12665 | |||
12666 | *) | ||
12667 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
12668 | ;; | ||
12669 | esac | ||
12670 | dynamic_linker='Win32 ld.exe' | ||
12671 | # FIXME: first we should search . and the directory the executable is in | ||
12672 | shlibpath_var=PATH | ||
12673 | ;; | ||
12674 | |||
12675 | darwin* | rhapsody*) | ||
12676 | dynamic_linker="$host_os dyld" | ||
12677 | version_type=darwin | ||
12678 | need_lib_prefix=no | ||
12679 | need_version=no | ||
12680 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
12681 | soname_spec='${libname}${release}${major}$shared_ext' | ||
12682 | shlibpath_overrides_runpath=yes | ||
12683 | shlibpath_var=DYLD_LIBRARY_PATH | ||
12684 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | ||
12685 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | ||
12686 | if test "$GCC" = yes; then | ||
12687 | 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"` | ||
12688 | else | ||
12689 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | ||
12690 | fi | ||
12691 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
12692 | ;; | ||
12693 | |||
12694 | dgux*) | ||
12695 | version_type=linux | ||
12696 | need_lib_prefix=no | ||
12697 | need_version=no | ||
12698 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
12699 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12700 | shlibpath_var=LD_LIBRARY_PATH | ||
12701 | ;; | ||
12702 | |||
12703 | freebsd1*) | ||
12704 | dynamic_linker=no | ||
12705 | ;; | ||
12706 | |||
12707 | kfreebsd*-gnu) | ||
12708 | version_type=linux | ||
12709 | need_lib_prefix=no | ||
12710 | need_version=no | ||
12711 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
12712 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12713 | shlibpath_var=LD_LIBRARY_PATH | ||
12714 | shlibpath_overrides_runpath=no | ||
12715 | hardcode_into_libs=yes | ||
12716 | dynamic_linker='GNU ld.so' | ||
12717 | ;; | ||
12718 | |||
12719 | freebsd*) | ||
12720 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | ||
12721 | version_type=freebsd-$objformat | ||
12722 | case $version_type in | ||
12723 | freebsd-elf*) | ||
12724 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
12725 | need_version=no | ||
12726 | need_lib_prefix=no | ||
12727 | ;; | ||
12728 | freebsd-*) | ||
12729 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
12730 | need_version=yes | ||
12731 | ;; | ||
12732 | esac | ||
12733 | shlibpath_var=LD_LIBRARY_PATH | ||
12734 | case $host_os in | ||
12735 | freebsd2*) | ||
12736 | shlibpath_overrides_runpath=yes | ||
12737 | ;; | ||
12738 | freebsd3.01* | freebsdelf3.01*) | ||
12739 | shlibpath_overrides_runpath=yes | ||
12740 | hardcode_into_libs=yes | ||
12741 | ;; | ||
12742 | *) # from 3.2 on | ||
12743 | shlibpath_overrides_runpath=no | ||
12744 | hardcode_into_libs=yes | ||
12745 | ;; | ||
12746 | esac | ||
12747 | ;; | ||
12748 | |||
12749 | gnu*) | ||
12750 | version_type=linux | ||
12751 | need_lib_prefix=no | ||
12752 | need_version=no | ||
12753 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
12754 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12755 | shlibpath_var=LD_LIBRARY_PATH | ||
12756 | hardcode_into_libs=yes | ||
12757 | ;; | ||
12758 | |||
12759 | hpux9* | hpux10* | hpux11*) | ||
12760 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
12761 | # link against other versions. | ||
12762 | version_type=sunos | ||
12763 | need_lib_prefix=no | ||
12764 | need_version=no | ||
12765 | case "$host_cpu" in | ||
12766 | ia64*) | ||
12767 | shrext_cmds='.so' | ||
12768 | hardcode_into_libs=yes | ||
12769 | dynamic_linker="$host_os dld.so" | ||
12770 | shlibpath_var=LD_LIBRARY_PATH | ||
12771 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
12772 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12773 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12774 | if test "X$HPUX_IA64_MODE" = X32; then | ||
12775 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
12776 | else | ||
12777 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
12778 | fi | ||
12779 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
12780 | ;; | ||
12781 | hppa*64*) | ||
12782 | shrext_cmds='.sl' | ||
12783 | hardcode_into_libs=yes | ||
12784 | dynamic_linker="$host_os dld.sl" | ||
12785 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
12786 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
12787 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12788 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12789 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
12790 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
12791 | ;; | ||
12792 | *) | ||
12793 | shrext_cmds='.sl' | ||
12794 | dynamic_linker="$host_os dld.sl" | ||
12795 | shlibpath_var=SHLIB_PATH | ||
12796 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
12797 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12798 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12799 | ;; | ||
12800 | esac | ||
12801 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
12802 | postinstall_cmds='chmod 555 $lib' | ||
12803 | ;; | ||
12804 | |||
12805 | irix5* | irix6* | nonstopux*) | ||
12806 | case $host_os in | ||
12807 | nonstopux*) version_type=nonstopux ;; | ||
12808 | *) | ||
12809 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
12810 | version_type=linux | ||
12811 | else | ||
12812 | version_type=irix | ||
12813 | fi ;; | ||
12814 | esac | ||
12815 | need_lib_prefix=no | ||
12816 | need_version=no | ||
12817 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12818 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
12819 | case $host_os in | ||
12820 | irix5* | nonstopux*) | ||
12821 | libsuff= shlibsuff= | ||
12822 | ;; | ||
12823 | *) | ||
12824 | case $LD in # libtool.m4 will add one of these switches to LD | ||
12825 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
12826 | libsuff= shlibsuff= libmagic=32-bit;; | ||
12827 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
12828 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
12829 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
12830 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
12831 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
12832 | esac | ||
12833 | ;; | ||
12834 | esac | ||
12835 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
12836 | shlibpath_overrides_runpath=no | ||
12837 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
12838 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
12839 | hardcode_into_libs=yes | ||
12840 | ;; | ||
12841 | |||
12842 | # No shared lib support for Linux oldld, aout, or coff. | ||
12843 | linux*oldld* | linux*aout* | linux*coff*) | ||
12844 | dynamic_linker=no | ||
12845 | ;; | ||
12846 | |||
12847 | # This must be Linux ELF. | ||
12848 | linux*) | ||
12849 | version_type=linux | ||
12850 | need_lib_prefix=no | ||
12851 | need_version=no | ||
12852 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12853 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12854 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
12855 | shlibpath_var=LD_LIBRARY_PATH | ||
12856 | shlibpath_overrides_runpath=no | ||
12857 | # This implies no fast_install, which is unacceptable. | ||
12858 | # Some rework will be needed to allow for fast_install | ||
12859 | # before this can be enabled. | ||
12860 | hardcode_into_libs=yes | ||
12861 | |||
12862 | # Append ld.so.conf contents to the search path | ||
12863 | if test -f /etc/ld.so.conf; then | ||
12864 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | ||
12865 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
12866 | fi | ||
12867 | |||
12868 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
12869 | # powerpc, because MkLinux only supported shared libraries with the | ||
12870 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
12871 | # most powerpc-linux boxes support dynamic linking these days and | ||
12872 | # people can always --disable-shared, the test was removed, and we | ||
12873 | # assume the GNU/Linux dynamic linker is in use. | ||
12874 | dynamic_linker='GNU/Linux ld.so' | ||
12875 | ;; | ||
12876 | |||
12877 | netbsdelf*-gnu) | ||
12878 | version_type=linux | ||
12879 | need_lib_prefix=no | ||
12880 | need_version=no | ||
12881 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
12882 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12883 | shlibpath_var=LD_LIBRARY_PATH | ||
12884 | shlibpath_overrides_runpath=no | ||
12885 | hardcode_into_libs=yes | ||
12886 | dynamic_linker='NetBSD ld.elf_so' | ||
12887 | ;; | ||
12888 | |||
12889 | knetbsd*-gnu) | ||
12890 | version_type=linux | ||
12891 | need_lib_prefix=no | ||
12892 | need_version=no | ||
12893 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
12894 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12895 | shlibpath_var=LD_LIBRARY_PATH | ||
12896 | shlibpath_overrides_runpath=no | ||
12897 | hardcode_into_libs=yes | ||
12898 | dynamic_linker='GNU ld.so' | ||
12899 | ;; | ||
12900 | |||
12901 | netbsd*) | ||
12902 | version_type=sunos | ||
12903 | need_lib_prefix=no | ||
12904 | need_version=no | ||
12905 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
12906 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
12907 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
12908 | dynamic_linker='NetBSD (a.out) ld.so' | ||
12909 | else | ||
12910 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
12911 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12912 | dynamic_linker='NetBSD ld.elf_so' | ||
12913 | fi | ||
12914 | shlibpath_var=LD_LIBRARY_PATH | ||
12915 | shlibpath_overrides_runpath=yes | ||
12916 | hardcode_into_libs=yes | ||
12917 | ;; | ||
12918 | |||
12919 | newsos6) | ||
12920 | version_type=linux | ||
12921 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12922 | shlibpath_var=LD_LIBRARY_PATH | ||
12923 | shlibpath_overrides_runpath=yes | ||
12924 | ;; | ||
12925 | |||
12926 | nto-qnx*) | ||
12927 | version_type=linux | ||
12928 | need_lib_prefix=no | ||
12929 | need_version=no | ||
12930 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12931 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12932 | shlibpath_var=LD_LIBRARY_PATH | ||
12933 | shlibpath_overrides_runpath=yes | ||
12934 | ;; | ||
12935 | |||
12936 | openbsd*) | ||
12937 | version_type=sunos | ||
12938 | need_lib_prefix=no | ||
12939 | need_version=yes | ||
12940 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
12941 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
12942 | shlibpath_var=LD_LIBRARY_PATH | ||
12943 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
12944 | case $host_os in | ||
12945 | openbsd2.[89] | openbsd2.[89].*) | ||
12946 | shlibpath_overrides_runpath=no | ||
12947 | ;; | ||
12948 | *) | ||
12949 | shlibpath_overrides_runpath=yes | ||
12950 | ;; | ||
12951 | esac | ||
12952 | else | ||
12953 | shlibpath_overrides_runpath=yes | ||
12954 | fi | ||
12955 | ;; | ||
12956 | |||
12957 | os2*) | ||
12958 | libname_spec='$name' | ||
12959 | shrext_cmds=".dll" | ||
12960 | need_lib_prefix=no | ||
12961 | library_names_spec='$libname${shared_ext} $libname.a' | ||
12962 | dynamic_linker='OS/2 ld.exe' | ||
12963 | shlibpath_var=LIBPATH | ||
12964 | ;; | ||
12965 | |||
12966 | osf3* | osf4* | osf5*) | ||
12967 | version_type=osf | ||
12968 | need_lib_prefix=no | ||
12969 | need_version=no | ||
12970 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12971 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12972 | shlibpath_var=LD_LIBRARY_PATH | ||
12973 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
12974 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
12975 | ;; | ||
12976 | |||
12977 | sco3.2v5*) | ||
12978 | version_type=osf | ||
12979 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12981 | shlibpath_var=LD_LIBRARY_PATH | ||
12982 | ;; | ||
12983 | |||
12984 | solaris*) | ||
12985 | version_type=linux | ||
12986 | need_lib_prefix=no | ||
12987 | need_version=no | ||
12988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
12989 | soname_spec='${libname}${release}${shared_ext}$major' | ||
12990 | shlibpath_var=LD_LIBRARY_PATH | ||
12991 | shlibpath_overrides_runpath=yes | ||
12992 | hardcode_into_libs=yes | ||
12993 | # ldd complains unless libraries are executable | ||
12994 | postinstall_cmds='chmod +x $lib' | ||
12995 | ;; | ||
12996 | |||
12997 | sunos4*) | ||
12998 | version_type=sunos | ||
12999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
13000 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
13001 | shlibpath_var=LD_LIBRARY_PATH | ||
13002 | shlibpath_overrides_runpath=yes | ||
13003 | if test "$with_gnu_ld" = yes; then | ||
13004 | need_lib_prefix=no | ||
13005 | fi | ||
13006 | need_version=yes | ||
13007 | ;; | ||
13008 | |||
13009 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
13010 | version_type=linux | ||
13011 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
13012 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13013 | shlibpath_var=LD_LIBRARY_PATH | ||
13014 | case $host_vendor in | ||
13015 | sni) | ||
13016 | shlibpath_overrides_runpath=no | ||
13017 | need_lib_prefix=no | ||
13018 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
13019 | runpath_var=LD_RUN_PATH | ||
13020 | ;; | ||
13021 | siemens) | ||
13022 | need_lib_prefix=no | ||
13023 | ;; | ||
13024 | motorola) | ||
13025 | need_lib_prefix=no | ||
13026 | need_version=no | ||
13027 | shlibpath_overrides_runpath=no | ||
13028 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
13029 | ;; | ||
13030 | esac | ||
13031 | ;; | ||
13032 | |||
13033 | sysv4*MP*) | ||
13034 | if test -d /usr/nec ;then | ||
13035 | version_type=linux | ||
13036 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
13037 | soname_spec='$libname${shared_ext}.$major' | ||
13038 | shlibpath_var=LD_LIBRARY_PATH | ||
13039 | fi | ||
13040 | ;; | ||
13041 | |||
13042 | uts4*) | ||
13043 | version_type=linux | ||
13044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
13045 | soname_spec='${libname}${release}${shared_ext}$major' | ||
13046 | shlibpath_var=LD_LIBRARY_PATH | ||
13047 | ;; | ||
13048 | |||
13049 | *) | ||
13050 | dynamic_linker=no | ||
13051 | ;; | ||
13052 | esac | ||
13053 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | ||
13054 | echo "${ECHO_T}$dynamic_linker" >&6; } | ||
13055 | test "$dynamic_linker" = no && can_build_shared=no | ||
13056 | |||
13057 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | ||
13058 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | ||
13059 | hardcode_action_CXX= | ||
13060 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | ||
13061 | test -n "$runpath_var CXX" || \ | ||
13062 | test "X$hardcode_automatic_CXX"="Xyes" ; then | ||
13063 | |||
13064 | # We can hardcode non-existant directories. | ||
13065 | if test "$hardcode_direct_CXX" != no && | ||
13066 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
13067 | # have to relink, otherwise we might link with an installed library | ||
13068 | # when we should be linking with a yet-to-be-installed one | ||
13069 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | ||
13070 | test "$hardcode_minus_L_CXX" != no; then | ||
13071 | # Linking always hardcodes the temporary library directory. | ||
13072 | hardcode_action_CXX=relink | ||
13073 | else | ||
13074 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
13075 | hardcode_action_CXX=immediate | ||
13076 | fi | ||
13077 | else | ||
13078 | # We cannot hardcode anything, or else we can only hardcode existing | ||
13079 | # directories. | ||
13080 | hardcode_action_CXX=unsupported | ||
13081 | fi | ||
13082 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | ||
13083 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } | ||
13084 | |||
13085 | if test "$hardcode_action_CXX" = relink; then | ||
13086 | # Fast installation is not supported | ||
13087 | enable_fast_install=no | ||
13088 | elif test "$shlibpath_overrides_runpath" = yes || | ||
13089 | test "$enable_shared" = no; then | ||
13090 | # Fast installation is not necessary | ||
13091 | enable_fast_install=needless | ||
13092 | fi | ||
13093 | |||
13094 | striplib= | ||
13095 | old_striplib= | ||
13096 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | ||
13097 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } | ||
13098 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
13099 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
13100 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
13101 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
13102 | echo "${ECHO_T}yes" >&6; } | ||
13103 | else | ||
13104 | # FIXME - insert some real tests, host_os isn't really good enough | ||
13105 | case $host_os in | ||
13106 | darwin*) | ||
13107 | if test -n "$STRIP" ; then | ||
13108 | striplib="$STRIP -x" | ||
13109 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
13110 | echo "${ECHO_T}yes" >&6; } | ||
13111 | else | ||
13112 | { echo "$as_me:$LINENO: result: no" >&5 | ||
13113 | echo "${ECHO_T}no" >&6; } | ||
13114 | fi | ||
13115 | ;; | ||
13116 | *) | ||
13117 | { echo "$as_me:$LINENO: result: no" >&5 | ||
13118 | echo "${ECHO_T}no" >&6; } | ||
13119 | ;; | ||
13120 | esac | ||
13121 | fi | ||
13122 | |||
13123 | if test "x$enable_dlopen" != xyes; then | ||
13124 | enable_dlopen=unknown | ||
13125 | enable_dlopen_self=unknown | ||
13126 | enable_dlopen_self_static=unknown | ||
13127 | else | ||
13128 | lt_cv_dlopen=no | ||
13129 | lt_cv_dlopen_libs= | ||
13130 | |||
13131 | case $host_os in | ||
13132 | beos*) | ||
13133 | lt_cv_dlopen="load_add_on" | ||
13134 | lt_cv_dlopen_libs= | ||
13135 | lt_cv_dlopen_self=yes | ||
13136 | ;; | ||
13137 | |||
13138 | mingw* | pw32*) | ||
13139 | lt_cv_dlopen="LoadLibrary" | ||
13140 | lt_cv_dlopen_libs= | ||
13141 | ;; | ||
13142 | |||
13143 | cygwin*) | ||
13144 | lt_cv_dlopen="dlopen" | ||
13145 | lt_cv_dlopen_libs= | ||
13146 | ;; | ||
13147 | |||
13148 | darwin*) | ||
13149 | # if libdl is installed we need to link against it | ||
13150 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
13151 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
13152 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
13153 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13154 | else | ||
13155 | ac_check_lib_save_LIBS=$LIBS | ||
13156 | LIBS="-ldl $LIBS" | ||
13157 | cat >conftest.$ac_ext <<_ACEOF | ||
13158 | /* confdefs.h. */ | ||
13159 | _ACEOF | ||
13160 | cat confdefs.h >>conftest.$ac_ext | ||
13161 | cat >>conftest.$ac_ext <<_ACEOF | ||
13162 | /* end confdefs.h. */ | ||
13163 | |||
13164 | /* Override any GCC internal prototype to avoid an error. | ||
13165 | Use char because int might match the return type of a GCC | ||
13166 | builtin and then its argument prototype would still apply. */ | ||
13167 | #ifdef __cplusplus | ||
13168 | extern "C" | ||
13169 | #endif | ||
13170 | char dlopen (); | ||
13171 | int | ||
13172 | main () | ||
13173 | { | ||
13174 | return dlopen (); | ||
13175 | ; | ||
13176 | return 0; | ||
13177 | } | ||
13178 | _ACEOF | ||
13179 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13180 | if { (ac_try="$ac_link" | ||
13181 | case "(($ac_try" in | ||
13182 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13183 | *) ac_try_echo=$ac_try;; | ||
13184 | esac | ||
13185 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13186 | (eval "$ac_link") 2>conftest.er1 | ||
13187 | ac_status=$? | ||
13188 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13189 | rm -f conftest.er1 | ||
13190 | cat conftest.err >&5 | ||
13191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13192 | (exit $ac_status); } && { | ||
13193 | test -z "$ac_cxx_werror_flag" || | ||
13194 | test ! -s conftest.err | ||
13195 | } && test -s conftest$ac_exeext && | ||
13196 | $as_test_x conftest$ac_exeext; then | ||
13197 | ac_cv_lib_dl_dlopen=yes | ||
13198 | else | ||
13199 | echo "$as_me: failed program was:" >&5 | ||
13200 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13201 | |||
13202 | ac_cv_lib_dl_dlopen=no | ||
13203 | fi | ||
13204 | |||
13205 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13206 | conftest$ac_exeext conftest.$ac_ext | ||
13207 | LIBS=$ac_check_lib_save_LIBS | ||
13208 | fi | ||
13209 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
13210 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
13211 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
13212 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
13213 | else | ||
13214 | |||
13215 | lt_cv_dlopen="dyld" | ||
13216 | lt_cv_dlopen_libs= | ||
13217 | lt_cv_dlopen_self=yes | ||
13218 | |||
13219 | fi | ||
13220 | |||
13221 | ;; | ||
13222 | |||
13223 | *) | ||
13224 | { echo "$as_me:$LINENO: checking for shl_load" >&5 | ||
13225 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } | ||
13226 | if test "${ac_cv_func_shl_load+set}" = set; then | ||
13227 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13228 | else | ||
13229 | cat >conftest.$ac_ext <<_ACEOF | ||
13230 | /* confdefs.h. */ | ||
13231 | _ACEOF | ||
13232 | cat confdefs.h >>conftest.$ac_ext | ||
13233 | cat >>conftest.$ac_ext <<_ACEOF | ||
13234 | /* end confdefs.h. */ | ||
13235 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | ||
13236 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13237 | #define shl_load innocuous_shl_load | ||
13238 | |||
13239 | /* System header to define __stub macros and hopefully few prototypes, | ||
13240 | which can conflict with char shl_load (); below. | ||
13241 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13242 | <limits.h> exists even on freestanding compilers. */ | ||
13243 | |||
13244 | #ifdef __STDC__ | ||
13245 | # include <limits.h> | ||
13246 | #else | ||
13247 | # include <assert.h> | ||
13248 | #endif | ||
13249 | |||
13250 | #undef shl_load | ||
13251 | |||
13252 | /* Override any GCC internal prototype to avoid an error. | ||
13253 | Use char because int might match the return type of a GCC | ||
13254 | builtin and then its argument prototype would still apply. */ | ||
13255 | #ifdef __cplusplus | ||
13256 | extern "C" | ||
13257 | #endif | ||
13258 | char shl_load (); | ||
13259 | /* The GNU C library defines this for functions which it implements | ||
13260 | to always fail with ENOSYS. Some functions are actually named | ||
13261 | something starting with __ and the normal name is an alias. */ | ||
13262 | #if defined __stub_shl_load || defined __stub___shl_load | ||
13263 | choke me | ||
13264 | #endif | ||
13265 | |||
13266 | int | ||
13267 | main () | ||
13268 | { | ||
13269 | return shl_load (); | ||
13270 | ; | ||
13271 | return 0; | ||
13272 | } | ||
13273 | _ACEOF | ||
13274 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13275 | if { (ac_try="$ac_link" | ||
13276 | case "(($ac_try" in | ||
13277 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13278 | *) ac_try_echo=$ac_try;; | ||
13279 | esac | ||
13280 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13281 | (eval "$ac_link") 2>conftest.er1 | ||
13282 | ac_status=$? | ||
13283 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13284 | rm -f conftest.er1 | ||
13285 | cat conftest.err >&5 | ||
13286 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13287 | (exit $ac_status); } && { | ||
13288 | test -z "$ac_cxx_werror_flag" || | ||
13289 | test ! -s conftest.err | ||
13290 | } && test -s conftest$ac_exeext && | ||
13291 | $as_test_x conftest$ac_exeext; then | ||
13292 | ac_cv_func_shl_load=yes | ||
13293 | else | ||
13294 | echo "$as_me: failed program was:" >&5 | ||
13295 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13296 | |||
13297 | ac_cv_func_shl_load=no | ||
13298 | fi | ||
13299 | |||
13300 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13301 | conftest$ac_exeext conftest.$ac_ext | ||
13302 | fi | ||
13303 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | ||
13304 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } | ||
13305 | if test $ac_cv_func_shl_load = yes; then | ||
13306 | lt_cv_dlopen="shl_load" | ||
13307 | else | ||
13308 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | ||
13309 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } | ||
13310 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | ||
13311 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13312 | else | ||
13313 | ac_check_lib_save_LIBS=$LIBS | ||
13314 | LIBS="-ldld $LIBS" | ||
13315 | cat >conftest.$ac_ext <<_ACEOF | ||
13316 | /* confdefs.h. */ | ||
13317 | _ACEOF | ||
13318 | cat confdefs.h >>conftest.$ac_ext | ||
13319 | cat >>conftest.$ac_ext <<_ACEOF | ||
13320 | /* end confdefs.h. */ | ||
13321 | |||
13322 | /* Override any GCC internal prototype to avoid an error. | ||
13323 | Use char because int might match the return type of a GCC | ||
13324 | builtin and then its argument prototype would still apply. */ | ||
13325 | #ifdef __cplusplus | ||
13326 | extern "C" | ||
13327 | #endif | ||
13328 | char shl_load (); | ||
13329 | int | ||
13330 | main () | ||
13331 | { | ||
13332 | return shl_load (); | ||
13333 | ; | ||
13334 | return 0; | ||
13335 | } | ||
13336 | _ACEOF | ||
13337 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13338 | if { (ac_try="$ac_link" | ||
13339 | case "(($ac_try" in | ||
13340 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13341 | *) ac_try_echo=$ac_try;; | ||
13342 | esac | ||
13343 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13344 | (eval "$ac_link") 2>conftest.er1 | ||
13345 | ac_status=$? | ||
13346 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13347 | rm -f conftest.er1 | ||
13348 | cat conftest.err >&5 | ||
13349 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13350 | (exit $ac_status); } && { | ||
13351 | test -z "$ac_cxx_werror_flag" || | ||
13352 | test ! -s conftest.err | ||
13353 | } && test -s conftest$ac_exeext && | ||
13354 | $as_test_x conftest$ac_exeext; then | ||
13355 | ac_cv_lib_dld_shl_load=yes | ||
13356 | else | ||
13357 | echo "$as_me: failed program was:" >&5 | ||
13358 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13359 | |||
13360 | ac_cv_lib_dld_shl_load=no | ||
13361 | fi | ||
13362 | |||
13363 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13364 | conftest$ac_exeext conftest.$ac_ext | ||
13365 | LIBS=$ac_check_lib_save_LIBS | ||
13366 | fi | ||
13367 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | ||
13368 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } | ||
13369 | if test $ac_cv_lib_dld_shl_load = yes; then | ||
13370 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | ||
13371 | else | ||
13372 | { echo "$as_me:$LINENO: checking for dlopen" >&5 | ||
13373 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } | ||
13374 | if test "${ac_cv_func_dlopen+set}" = set; then | ||
13375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13376 | else | ||
13377 | cat >conftest.$ac_ext <<_ACEOF | ||
13378 | /* confdefs.h. */ | ||
13379 | _ACEOF | ||
13380 | cat confdefs.h >>conftest.$ac_ext | ||
13381 | cat >>conftest.$ac_ext <<_ACEOF | ||
13382 | /* end confdefs.h. */ | ||
13383 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | ||
13384 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
13385 | #define dlopen innocuous_dlopen | ||
13386 | |||
13387 | /* System header to define __stub macros and hopefully few prototypes, | ||
13388 | which can conflict with char dlopen (); below. | ||
13389 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
13390 | <limits.h> exists even on freestanding compilers. */ | ||
13391 | |||
13392 | #ifdef __STDC__ | ||
13393 | # include <limits.h> | ||
13394 | #else | ||
13395 | # include <assert.h> | ||
13396 | #endif | ||
13397 | |||
13398 | #undef dlopen | ||
13399 | |||
13400 | /* Override any GCC internal prototype to avoid an error. | ||
13401 | Use char because int might match the return type of a GCC | ||
13402 | builtin and then its argument prototype would still apply. */ | ||
13403 | #ifdef __cplusplus | ||
13404 | extern "C" | ||
13405 | #endif | ||
13406 | char dlopen (); | ||
13407 | /* The GNU C library defines this for functions which it implements | ||
13408 | to always fail with ENOSYS. Some functions are actually named | ||
13409 | something starting with __ and the normal name is an alias. */ | ||
13410 | #if defined __stub_dlopen || defined __stub___dlopen | ||
13411 | choke me | ||
13412 | #endif | ||
13413 | |||
13414 | int | ||
13415 | main () | ||
13416 | { | ||
13417 | return dlopen (); | ||
13418 | ; | ||
13419 | return 0; | ||
13420 | } | ||
13421 | _ACEOF | ||
13422 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13423 | if { (ac_try="$ac_link" | ||
13424 | case "(($ac_try" in | ||
13425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13426 | *) ac_try_echo=$ac_try;; | ||
13427 | esac | ||
13428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13429 | (eval "$ac_link") 2>conftest.er1 | ||
13430 | ac_status=$? | ||
13431 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13432 | rm -f conftest.er1 | ||
13433 | cat conftest.err >&5 | ||
13434 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13435 | (exit $ac_status); } && { | ||
13436 | test -z "$ac_cxx_werror_flag" || | ||
13437 | test ! -s conftest.err | ||
13438 | } && test -s conftest$ac_exeext && | ||
13439 | $as_test_x conftest$ac_exeext; then | ||
13440 | ac_cv_func_dlopen=yes | ||
13441 | else | ||
13442 | echo "$as_me: failed program was:" >&5 | ||
13443 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13444 | |||
13445 | ac_cv_func_dlopen=no | ||
13446 | fi | ||
13447 | |||
13448 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13449 | conftest$ac_exeext conftest.$ac_ext | ||
13450 | fi | ||
13451 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | ||
13452 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } | ||
13453 | if test $ac_cv_func_dlopen = yes; then | ||
13454 | lt_cv_dlopen="dlopen" | ||
13455 | else | ||
13456 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
13457 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
13458 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
13459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13460 | else | ||
13461 | ac_check_lib_save_LIBS=$LIBS | ||
13462 | LIBS="-ldl $LIBS" | ||
13463 | cat >conftest.$ac_ext <<_ACEOF | ||
13464 | /* confdefs.h. */ | ||
13465 | _ACEOF | ||
13466 | cat confdefs.h >>conftest.$ac_ext | ||
13467 | cat >>conftest.$ac_ext <<_ACEOF | ||
13468 | /* end confdefs.h. */ | ||
13469 | |||
13470 | /* Override any GCC internal prototype to avoid an error. | ||
13471 | Use char because int might match the return type of a GCC | ||
13472 | builtin and then its argument prototype would still apply. */ | ||
13473 | #ifdef __cplusplus | ||
13474 | extern "C" | ||
13475 | #endif | ||
13476 | char dlopen (); | ||
13477 | int | ||
13478 | main () | ||
13479 | { | ||
13480 | return dlopen (); | ||
13481 | ; | ||
13482 | return 0; | ||
13483 | } | ||
13484 | _ACEOF | ||
13485 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13486 | if { (ac_try="$ac_link" | ||
13487 | case "(($ac_try" in | ||
13488 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13489 | *) ac_try_echo=$ac_try;; | ||
13490 | esac | ||
13491 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13492 | (eval "$ac_link") 2>conftest.er1 | ||
13493 | ac_status=$? | ||
13494 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13495 | rm -f conftest.er1 | ||
13496 | cat conftest.err >&5 | ||
13497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13498 | (exit $ac_status); } && { | ||
13499 | test -z "$ac_cxx_werror_flag" || | ||
13500 | test ! -s conftest.err | ||
13501 | } && test -s conftest$ac_exeext && | ||
13502 | $as_test_x conftest$ac_exeext; then | ||
13503 | ac_cv_lib_dl_dlopen=yes | ||
13504 | else | ||
13505 | echo "$as_me: failed program was:" >&5 | ||
13506 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13507 | |||
13508 | ac_cv_lib_dl_dlopen=no | ||
13509 | fi | ||
13510 | |||
13511 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13512 | conftest$ac_exeext conftest.$ac_ext | ||
13513 | LIBS=$ac_check_lib_save_LIBS | ||
13514 | fi | ||
13515 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
13516 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
13517 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
13518 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
13519 | else | ||
13520 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | ||
13521 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } | ||
13522 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | ||
13523 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13524 | else | ||
13525 | ac_check_lib_save_LIBS=$LIBS | ||
13526 | LIBS="-lsvld $LIBS" | ||
13527 | cat >conftest.$ac_ext <<_ACEOF | ||
13528 | /* confdefs.h. */ | ||
13529 | _ACEOF | ||
13530 | cat confdefs.h >>conftest.$ac_ext | ||
13531 | cat >>conftest.$ac_ext <<_ACEOF | ||
13532 | /* end confdefs.h. */ | ||
13533 | |||
13534 | /* Override any GCC internal prototype to avoid an error. | ||
13535 | Use char because int might match the return type of a GCC | ||
13536 | builtin and then its argument prototype would still apply. */ | ||
13537 | #ifdef __cplusplus | ||
13538 | extern "C" | ||
13539 | #endif | ||
13540 | char dlopen (); | ||
13541 | int | ||
13542 | main () | ||
13543 | { | ||
13544 | return dlopen (); | ||
13545 | ; | ||
13546 | return 0; | ||
13547 | } | ||
13548 | _ACEOF | ||
13549 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13550 | if { (ac_try="$ac_link" | ||
13551 | case "(($ac_try" in | ||
13552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13553 | *) ac_try_echo=$ac_try;; | ||
13554 | esac | ||
13555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13556 | (eval "$ac_link") 2>conftest.er1 | ||
13557 | ac_status=$? | ||
13558 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13559 | rm -f conftest.er1 | ||
13560 | cat conftest.err >&5 | ||
13561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13562 | (exit $ac_status); } && { | ||
13563 | test -z "$ac_cxx_werror_flag" || | ||
13564 | test ! -s conftest.err | ||
13565 | } && test -s conftest$ac_exeext && | ||
13566 | $as_test_x conftest$ac_exeext; then | ||
13567 | ac_cv_lib_svld_dlopen=yes | ||
13568 | else | ||
13569 | echo "$as_me: failed program was:" >&5 | ||
13570 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13571 | |||
13572 | ac_cv_lib_svld_dlopen=no | ||
13573 | fi | ||
13574 | |||
13575 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13576 | conftest$ac_exeext conftest.$ac_ext | ||
13577 | LIBS=$ac_check_lib_save_LIBS | ||
13578 | fi | ||
13579 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | ||
13580 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } | ||
13581 | if test $ac_cv_lib_svld_dlopen = yes; then | ||
13582 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
13583 | else | ||
13584 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | ||
13585 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } | ||
13586 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | ||
13587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13588 | else | ||
13589 | ac_check_lib_save_LIBS=$LIBS | ||
13590 | LIBS="-ldld $LIBS" | ||
13591 | cat >conftest.$ac_ext <<_ACEOF | ||
13592 | /* confdefs.h. */ | ||
13593 | _ACEOF | ||
13594 | cat confdefs.h >>conftest.$ac_ext | ||
13595 | cat >>conftest.$ac_ext <<_ACEOF | ||
13596 | /* end confdefs.h. */ | ||
13597 | |||
13598 | /* Override any GCC internal prototype to avoid an error. | ||
13599 | Use char because int might match the return type of a GCC | ||
13600 | builtin and then its argument prototype would still apply. */ | ||
13601 | #ifdef __cplusplus | ||
13602 | extern "C" | ||
13603 | #endif | ||
13604 | char dld_link (); | ||
13605 | int | ||
13606 | main () | ||
13607 | { | ||
13608 | return dld_link (); | ||
13609 | ; | ||
13610 | return 0; | ||
13611 | } | ||
13612 | _ACEOF | ||
13613 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
13614 | if { (ac_try="$ac_link" | ||
13615 | case "(($ac_try" in | ||
13616 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
13617 | *) ac_try_echo=$ac_try;; | ||
13618 | esac | ||
13619 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
13620 | (eval "$ac_link") 2>conftest.er1 | ||
13621 | ac_status=$? | ||
13622 | grep -v '^ *+' conftest.er1 >conftest.err | ||
13623 | rm -f conftest.er1 | ||
13624 | cat conftest.err >&5 | ||
13625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13626 | (exit $ac_status); } && { | ||
13627 | test -z "$ac_cxx_werror_flag" || | ||
13628 | test ! -s conftest.err | ||
13629 | } && test -s conftest$ac_exeext && | ||
13630 | $as_test_x conftest$ac_exeext; then | ||
13631 | ac_cv_lib_dld_dld_link=yes | ||
13632 | else | ||
13633 | echo "$as_me: failed program was:" >&5 | ||
13634 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
13635 | |||
13636 | ac_cv_lib_dld_dld_link=no | ||
13637 | fi | ||
13638 | |||
13639 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
13640 | conftest$ac_exeext conftest.$ac_ext | ||
13641 | LIBS=$ac_check_lib_save_LIBS | ||
13642 | fi | ||
13643 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | ||
13644 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } | ||
13645 | if test $ac_cv_lib_dld_dld_link = yes; then | ||
13646 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | ||
13647 | fi | ||
13648 | |||
13649 | |||
13650 | fi | ||
13651 | |||
13652 | |||
13653 | fi | ||
13654 | |||
13655 | |||
13656 | fi | ||
13657 | |||
13658 | |||
13659 | fi | ||
13660 | |||
13661 | |||
13662 | fi | ||
13663 | |||
13664 | ;; | ||
13665 | esac | ||
13666 | |||
13667 | if test "x$lt_cv_dlopen" != xno; then | ||
13668 | enable_dlopen=yes | ||
13669 | else | ||
13670 | enable_dlopen=no | ||
13671 | fi | ||
13672 | |||
13673 | case $lt_cv_dlopen in | ||
13674 | dlopen) | ||
13675 | save_CPPFLAGS="$CPPFLAGS" | ||
13676 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
13677 | |||
13678 | save_LDFLAGS="$LDFLAGS" | ||
13679 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
13680 | |||
13681 | save_LIBS="$LIBS" | ||
13682 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
13683 | |||
13684 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | ||
13685 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } | ||
13686 | if test "${lt_cv_dlopen_self+set}" = set; then | ||
13687 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13688 | else | ||
13689 | if test "$cross_compiling" = yes; then : | ||
13690 | lt_cv_dlopen_self=cross | ||
13691 | else | ||
13692 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
13693 | lt_status=$lt_dlunknown | ||
13694 | cat > conftest.$ac_ext <<EOF | ||
13695 | #line 13695 "configure" | ||
13696 | #include "confdefs.h" | ||
13697 | |||
13698 | #if HAVE_DLFCN_H | ||
13699 | #include <dlfcn.h> | ||
13700 | #endif | ||
13701 | |||
13702 | #include <stdio.h> | ||
13703 | |||
13704 | #ifdef RTLD_GLOBAL | ||
13705 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
13706 | #else | ||
13707 | # ifdef DL_GLOBAL | ||
13708 | # define LT_DLGLOBAL DL_GLOBAL | ||
13709 | # else | ||
13710 | # define LT_DLGLOBAL 0 | ||
13711 | # endif | ||
13712 | #endif | ||
13713 | |||
13714 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
13715 | find out it does not work in some platform. */ | ||
13716 | #ifndef LT_DLLAZY_OR_NOW | ||
13717 | # ifdef RTLD_LAZY | ||
13718 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
13719 | # else | ||
13720 | # ifdef DL_LAZY | ||
13721 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
13722 | # else | ||
13723 | # ifdef RTLD_NOW | ||
13724 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
13725 | # else | ||
13726 | # ifdef DL_NOW | ||
13727 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
13728 | # else | ||
13729 | # define LT_DLLAZY_OR_NOW 0 | ||
13730 | # endif | ||
13731 | # endif | ||
13732 | # endif | ||
13733 | # endif | ||
13734 | #endif | ||
13735 | |||
13736 | #ifdef __cplusplus | ||
13737 | extern "C" void exit (int); | ||
13738 | #endif | ||
13739 | |||
13740 | void fnord() { int i=42;} | ||
13741 | int main () | ||
13742 | { | ||
13743 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
13744 | int status = $lt_dlunknown; | ||
13745 | |||
13746 | if (self) | ||
13747 | { | ||
13748 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
13749 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
13750 | /* dlclose (self); */ | ||
13751 | } | ||
13752 | |||
13753 | exit (status); | ||
13754 | } | ||
13755 | EOF | ||
13756 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13757 | (eval $ac_link) 2>&5 | ||
13758 | ac_status=$? | ||
13759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13760 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
13761 | (./conftest; exit; ) 2>/dev/null | ||
13762 | lt_status=$? | ||
13763 | case x$lt_status in | ||
13764 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
13765 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
13766 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | ||
13767 | esac | ||
13768 | else : | ||
13769 | # compilation failed | ||
13770 | lt_cv_dlopen_self=no | ||
13771 | fi | ||
13772 | fi | ||
13773 | rm -fr conftest* | ||
13774 | |||
13775 | |||
13776 | fi | ||
13777 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | ||
13778 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } | ||
13779 | |||
13780 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
13781 | LDFLAGS="$LDFLAGS $link_static_flag" | ||
13782 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | ||
13783 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } | ||
13784 | if test "${lt_cv_dlopen_self_static+set}" = set; then | ||
13785 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
13786 | else | ||
13787 | if test "$cross_compiling" = yes; then : | ||
13788 | lt_cv_dlopen_self_static=cross | ||
13789 | else | ||
13790 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
13791 | lt_status=$lt_dlunknown | ||
13792 | cat > conftest.$ac_ext <<EOF | ||
13793 | #line 13793 "configure" | ||
13794 | #include "confdefs.h" | ||
13795 | |||
13796 | #if HAVE_DLFCN_H | ||
13797 | #include <dlfcn.h> | ||
13798 | #endif | ||
13799 | |||
13800 | #include <stdio.h> | ||
13801 | |||
13802 | #ifdef RTLD_GLOBAL | ||
13803 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
13804 | #else | ||
13805 | # ifdef DL_GLOBAL | ||
13806 | # define LT_DLGLOBAL DL_GLOBAL | ||
13807 | # else | ||
13808 | # define LT_DLGLOBAL 0 | ||
13809 | # endif | ||
13810 | #endif | ||
13811 | |||
13812 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
13813 | find out it does not work in some platform. */ | ||
13814 | #ifndef LT_DLLAZY_OR_NOW | ||
13815 | # ifdef RTLD_LAZY | ||
13816 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
13817 | # else | ||
13818 | # ifdef DL_LAZY | ||
13819 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
13820 | # else | ||
13821 | # ifdef RTLD_NOW | ||
13822 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
13823 | # else | ||
13824 | # ifdef DL_NOW | ||
13825 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
13826 | # else | ||
13827 | # define LT_DLLAZY_OR_NOW 0 | ||
13828 | # endif | ||
13829 | # endif | ||
13830 | # endif | ||
13831 | # endif | ||
13832 | #endif | ||
13833 | |||
13834 | #ifdef __cplusplus | ||
13835 | extern "C" void exit (int); | ||
13836 | #endif | ||
13837 | |||
13838 | void fnord() { int i=42;} | ||
13839 | int main () | ||
13840 | { | ||
13841 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
13842 | int status = $lt_dlunknown; | ||
13843 | |||
13844 | if (self) | ||
13845 | { | ||
13846 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
13847 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
13848 | /* dlclose (self); */ | ||
13849 | } | ||
13850 | |||
13851 | exit (status); | ||
13852 | } | ||
13853 | EOF | ||
13854 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
13855 | (eval $ac_link) 2>&5 | ||
13856 | ac_status=$? | ||
13857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
13858 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
13859 | (./conftest; exit; ) 2>/dev/null | ||
13860 | lt_status=$? | ||
13861 | case x$lt_status in | ||
13862 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
13863 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
13864 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | ||
13865 | esac | ||
13866 | else : | ||
13867 | # compilation failed | ||
13868 | lt_cv_dlopen_self_static=no | ||
13869 | fi | ||
13870 | fi | ||
13871 | rm -fr conftest* | ||
13872 | |||
13873 | |||
13874 | fi | ||
13875 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | ||
13876 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } | ||
13877 | fi | ||
13878 | |||
13879 | CPPFLAGS="$save_CPPFLAGS" | ||
13880 | LDFLAGS="$save_LDFLAGS" | ||
13881 | LIBS="$save_LIBS" | ||
13882 | ;; | ||
13883 | esac | ||
13884 | |||
13885 | case $lt_cv_dlopen_self in | ||
13886 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
13887 | *) enable_dlopen_self=unknown ;; | ||
13888 | esac | ||
13889 | |||
13890 | case $lt_cv_dlopen_self_static in | ||
13891 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
13892 | *) enable_dlopen_self_static=unknown ;; | ||
13893 | esac | ||
13894 | fi | ||
13895 | |||
13896 | |||
13897 | # The else clause should only fire when bootstrapping the | ||
13898 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
13899 | # with your package, and you will get complaints that there are | ||
13900 | # no rules to generate ltmain.sh. | ||
13901 | if test -f "$ltmain"; then | ||
13902 | # See if we are running on zsh, and set the options which allow our commands through | ||
13903 | # without removal of \ escapes. | ||
13904 | if test -n "${ZSH_VERSION+set}" ; then | ||
13905 | setopt NO_GLOB_SUBST | ||
13906 | fi | ||
13907 | # Now quote all the things that may contain metacharacters while being | ||
13908 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
13909 | # variables and quote the copies for generation of the libtool script. | ||
13910 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | ||
13911 | SED SHELL STRIP \ | ||
13912 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
13913 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
13914 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
13915 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
13916 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
13917 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
13918 | old_postinstall_cmds old_postuninstall_cmds \ | ||
13919 | compiler_CXX \ | ||
13920 | CC_CXX \ | ||
13921 | LD_CXX \ | ||
13922 | lt_prog_compiler_wl_CXX \ | ||
13923 | lt_prog_compiler_pic_CXX \ | ||
13924 | lt_prog_compiler_static_CXX \ | ||
13925 | lt_prog_compiler_no_builtin_flag_CXX \ | ||
13926 | export_dynamic_flag_spec_CXX \ | ||
13927 | thread_safe_flag_spec_CXX \ | ||
13928 | whole_archive_flag_spec_CXX \ | ||
13929 | enable_shared_with_static_runtimes_CXX \ | ||
13930 | old_archive_cmds_CXX \ | ||
13931 | old_archive_from_new_cmds_CXX \ | ||
13932 | predep_objects_CXX \ | ||
13933 | postdep_objects_CXX \ | ||
13934 | predeps_CXX \ | ||
13935 | postdeps_CXX \ | ||
13936 | compiler_lib_search_path_CXX \ | ||
13937 | archive_cmds_CXX \ | ||
13938 | archive_expsym_cmds_CXX \ | ||
13939 | postinstall_cmds_CXX \ | ||
13940 | postuninstall_cmds_CXX \ | ||
13941 | old_archive_from_expsyms_cmds_CXX \ | ||
13942 | allow_undefined_flag_CXX \ | ||
13943 | no_undefined_flag_CXX \ | ||
13944 | export_symbols_cmds_CXX \ | ||
13945 | hardcode_libdir_flag_spec_CXX \ | ||
13946 | hardcode_libdir_flag_spec_ld_CXX \ | ||
13947 | hardcode_libdir_separator_CXX \ | ||
13948 | hardcode_automatic_CXX \ | ||
13949 | module_cmds_CXX \ | ||
13950 | module_expsym_cmds_CXX \ | ||
13951 | lt_cv_prog_compiler_c_o_CXX \ | ||
13952 | exclude_expsyms_CXX \ | ||
13953 | include_expsyms_CXX; do | ||
13954 | |||
13955 | case $var in | ||
13956 | old_archive_cmds_CXX | \ | ||
13957 | old_archive_from_new_cmds_CXX | \ | ||
13958 | archive_cmds_CXX | \ | ||
13959 | archive_expsym_cmds_CXX | \ | ||
13960 | module_cmds_CXX | \ | ||
13961 | module_expsym_cmds_CXX | \ | ||
13962 | old_archive_from_expsyms_cmds_CXX | \ | ||
13963 | export_symbols_cmds_CXX | \ | ||
13964 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
13965 | postinstall_cmds | postuninstall_cmds | \ | ||
13966 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
13967 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
13968 | # Double-quote double-evaled strings. | ||
13969 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
13970 | ;; | ||
13971 | *) | ||
13972 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
13973 | ;; | ||
13974 | esac | ||
13975 | done | ||
13976 | |||
13977 | case $lt_echo in | ||
13978 | *'\$0 --fallback-echo"') | ||
13979 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | ||
13980 | ;; | ||
13981 | esac | ||
13982 | |||
13983 | cfgfile="$ofile" | ||
13984 | |||
13985 | cat <<__EOF__ >> "$cfgfile" | ||
13986 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | ||
13987 | |||
13988 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
13989 | |||
13990 | # Shell to use when invoking shell scripts. | ||
13991 | SHELL=$lt_SHELL | ||
13992 | |||
13993 | # Whether or not to build shared libraries. | ||
13994 | build_libtool_libs=$enable_shared | ||
13995 | |||
13996 | # Whether or not to build static libraries. | ||
13997 | build_old_libs=$enable_static | ||
13998 | |||
13999 | # Whether or not to add -lc for building shared libraries. | ||
14000 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | ||
14001 | |||
14002 | # Whether or not to disallow shared libs when runtime libs are static | ||
14003 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | ||
14004 | |||
14005 | # Whether or not to optimize for fast installation. | ||
14006 | fast_install=$enable_fast_install | ||
14007 | |||
14008 | # The host system. | ||
14009 | host_alias=$host_alias | ||
14010 | host=$host | ||
14011 | |||
14012 | # An echo program that does not interpret backslashes. | ||
14013 | echo=$lt_echo | ||
14014 | |||
14015 | # The archiver. | ||
14016 | AR=$lt_AR | ||
14017 | AR_FLAGS=$lt_AR_FLAGS | ||
14018 | |||
14019 | # A C compiler. | ||
14020 | LTCC=$lt_LTCC | ||
14021 | |||
14022 | # A language-specific compiler. | ||
14023 | CC=$lt_compiler_CXX | ||
14024 | |||
14025 | # Is the compiler the GNU C compiler? | ||
14026 | with_gcc=$GCC_CXX | ||
14027 | |||
14028 | # An ERE matcher. | ||
14029 | EGREP=$lt_EGREP | ||
14030 | |||
14031 | # The linker used to build libraries. | ||
14032 | LD=$lt_LD_CXX | ||
14033 | |||
14034 | # Whether we need hard or soft links. | ||
14035 | LN_S=$lt_LN_S | ||
14036 | |||
14037 | # A BSD-compatible nm program. | ||
14038 | NM=$lt_NM | ||
14039 | |||
14040 | # A symbol stripping program | ||
14041 | STRIP=$lt_STRIP | ||
14042 | |||
14043 | # Used to examine libraries when file_magic_cmd begins "file" | ||
14044 | MAGIC_CMD=$MAGIC_CMD | ||
14045 | |||
14046 | # Used on cygwin: DLL creation program. | ||
14047 | DLLTOOL="$DLLTOOL" | ||
14048 | |||
14049 | # Used on cygwin: object dumper. | ||
14050 | OBJDUMP="$OBJDUMP" | ||
14051 | |||
14052 | # Used on cygwin: assembler. | ||
14053 | AS="$AS" | ||
14054 | |||
14055 | # The name of the directory that contains temporary libtool files. | ||
14056 | objdir=$objdir | ||
14057 | |||
14058 | # How to create reloadable object files. | ||
14059 | reload_flag=$lt_reload_flag | ||
14060 | reload_cmds=$lt_reload_cmds | ||
14061 | |||
14062 | # How to pass a linker flag through the compiler. | ||
14063 | wl=$lt_lt_prog_compiler_wl_CXX | ||
14064 | |||
14065 | # Object file suffix (normally "o"). | ||
14066 | objext="$ac_objext" | ||
14067 | |||
14068 | # Old archive suffix (normally "a"). | ||
14069 | libext="$libext" | ||
14070 | |||
14071 | # Shared library suffix (normally ".so"). | ||
14072 | shrext_cmds='$shrext_cmds' | ||
14073 | |||
14074 | # Executable file suffix (normally ""). | ||
14075 | exeext="$exeext" | ||
14076 | |||
14077 | # Additional compiler flags for building library objects. | ||
14078 | pic_flag=$lt_lt_prog_compiler_pic_CXX | ||
14079 | pic_mode=$pic_mode | ||
14080 | |||
14081 | # What is the maximum length of a command? | ||
14082 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
14083 | |||
14084 | # Does compiler simultaneously support -c and -o options? | ||
14085 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | ||
14086 | |||
14087 | # Must we lock files when doing compilation ? | ||
14088 | need_locks=$lt_need_locks | ||
14089 | |||
14090 | # Do we need the lib prefix for modules? | ||
14091 | need_lib_prefix=$need_lib_prefix | ||
14092 | |||
14093 | # Do we need a version for libraries? | ||
14094 | need_version=$need_version | ||
14095 | |||
14096 | # Whether dlopen is supported. | ||
14097 | dlopen_support=$enable_dlopen | ||
14098 | |||
14099 | # Whether dlopen of programs is supported. | ||
14100 | dlopen_self=$enable_dlopen_self | ||
14101 | |||
14102 | # Whether dlopen of statically linked programs is supported. | ||
14103 | dlopen_self_static=$enable_dlopen_self_static | ||
14104 | |||
14105 | # Compiler flag to prevent dynamic linking. | ||
14106 | link_static_flag=$lt_lt_prog_compiler_static_CXX | ||
14107 | |||
14108 | # Compiler flag to turn off builtin functions. | ||
14109 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | ||
14110 | |||
14111 | # Compiler flag to allow reflexive dlopens. | ||
14112 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | ||
14113 | |||
14114 | # Compiler flag to generate shared objects directly from archives. | ||
14115 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | ||
14116 | |||
14117 | # Compiler flag to generate thread-safe objects. | ||
14118 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | ||
14119 | |||
14120 | # Library versioning type. | ||
14121 | version_type=$version_type | ||
14122 | |||
14123 | # Format of library name prefix. | ||
14124 | libname_spec=$lt_libname_spec | ||
14125 | |||
14126 | # List of archive names. First name is the real one, the rest are links. | ||
14127 | # The last name is the one that the linker finds with -lNAME. | ||
14128 | library_names_spec=$lt_library_names_spec | ||
14129 | |||
14130 | # The coded name of the library, if different from the real name. | ||
14131 | soname_spec=$lt_soname_spec | ||
14132 | |||
14133 | # Commands used to build and install an old-style archive. | ||
14134 | RANLIB=$lt_RANLIB | ||
14135 | old_archive_cmds=$lt_old_archive_cmds_CXX | ||
14136 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
14137 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
14138 | |||
14139 | # Create an old-style archive from a shared archive. | ||
14140 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | ||
14141 | |||
14142 | # Create a temporary old-style archive to link instead of a shared archive. | ||
14143 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | ||
14144 | |||
14145 | # Commands used to build and install a shared archive. | ||
14146 | archive_cmds=$lt_archive_cmds_CXX | ||
14147 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | ||
14148 | postinstall_cmds=$lt_postinstall_cmds | ||
14149 | postuninstall_cmds=$lt_postuninstall_cmds | ||
14150 | |||
14151 | # Commands used to build a loadable module (assumed same as above if empty) | ||
14152 | module_cmds=$lt_module_cmds_CXX | ||
14153 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | ||
14154 | |||
14155 | # Commands to strip libraries. | ||
14156 | old_striplib=$lt_old_striplib | ||
14157 | striplib=$lt_striplib | ||
14158 | |||
14159 | # Dependencies to place before the objects being linked to create a | ||
14160 | # shared library. | ||
14161 | predep_objects=$lt_predep_objects_CXX | ||
14162 | |||
14163 | # Dependencies to place after the objects being linked to create a | ||
14164 | # shared library. | ||
14165 | postdep_objects=$lt_postdep_objects_CXX | ||
14166 | |||
14167 | # Dependencies to place before the objects being linked to create a | ||
14168 | # shared library. | ||
14169 | predeps=$lt_predeps_CXX | ||
14170 | |||
14171 | # Dependencies to place after the objects being linked to create a | ||
14172 | # shared library. | ||
14173 | postdeps=$lt_postdeps_CXX | ||
14174 | |||
14175 | # The library search path used internally by the compiler when linking | ||
14176 | # a shared library. | ||
14177 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | ||
14178 | |||
14179 | # Method to check whether dependent libraries are shared objects. | ||
14180 | deplibs_check_method=$lt_deplibs_check_method | ||
14181 | |||
14182 | # Command to use when deplibs_check_method == file_magic. | ||
14183 | file_magic_cmd=$lt_file_magic_cmd | ||
14184 | |||
14185 | # Flag that allows shared libraries with undefined symbols to be built. | ||
14186 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | ||
14187 | |||
14188 | # Flag that forces no undefined symbols. | ||
14189 | no_undefined_flag=$lt_no_undefined_flag_CXX | ||
14190 | |||
14191 | # Commands used to finish a libtool library installation in a directory. | ||
14192 | finish_cmds=$lt_finish_cmds | ||
14193 | |||
14194 | # Same as above, but a single script fragment to be evaled but not shown. | ||
14195 | finish_eval=$lt_finish_eval | ||
14196 | |||
14197 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
14198 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
14199 | |||
14200 | # Transform the output of nm in a proper C declaration | ||
14201 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
14202 | |||
14203 | # Transform the output of nm in a C name address pair | ||
14204 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
14205 | |||
14206 | # This is the shared library runtime path variable. | ||
14207 | runpath_var=$runpath_var | ||
14208 | |||
14209 | # This is the shared library path variable. | ||
14210 | shlibpath_var=$shlibpath_var | ||
14211 | |||
14212 | # Is shlibpath searched before the hard-coded library search path? | ||
14213 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
14214 | |||
14215 | # How to hardcode a shared library path into an executable. | ||
14216 | hardcode_action=$hardcode_action_CXX | ||
14217 | |||
14218 | # Whether we should hardcode library paths into libraries. | ||
14219 | hardcode_into_libs=$hardcode_into_libs | ||
14220 | |||
14221 | # Flag to hardcode \$libdir into a binary during linking. | ||
14222 | # This must work even if \$libdir does not exist. | ||
14223 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | ||
14224 | |||
14225 | # If ld is used when linking, flag to hardcode \$libdir into | ||
14226 | # a binary during linking. This must work even if \$libdir does | ||
14227 | # not exist. | ||
14228 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | ||
14229 | |||
14230 | # Whether we need a single -rpath flag with a separated argument. | ||
14231 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | ||
14232 | |||
14233 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
14234 | # resulting binary. | ||
14235 | hardcode_direct=$hardcode_direct_CXX | ||
14236 | |||
14237 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
14238 | # resulting binary. | ||
14239 | hardcode_minus_L=$hardcode_minus_L_CXX | ||
14240 | |||
14241 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
14242 | # the resulting binary. | ||
14243 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | ||
14244 | |||
14245 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
14246 | # and all subsequent libraries and executables linked against it. | ||
14247 | hardcode_automatic=$hardcode_automatic_CXX | ||
14248 | |||
14249 | # Variables whose values should be saved in libtool wrapper scripts and | ||
14250 | # restored at relink time. | ||
14251 | variables_saved_for_relink="$variables_saved_for_relink" | ||
14252 | |||
14253 | # Whether libtool must link a program against all its dependency libraries. | ||
14254 | link_all_deplibs=$link_all_deplibs_CXX | ||
14255 | |||
14256 | # Compile-time system search path for libraries | ||
14257 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
14258 | |||
14259 | # Run-time system search path for libraries | ||
14260 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
14261 | |||
14262 | # Fix the shell variable \$srcfile for the compiler. | ||
14263 | fix_srcfile_path="$fix_srcfile_path_CXX" | ||
14264 | |||
14265 | # Set to yes if exported symbols are required. | ||
14266 | always_export_symbols=$always_export_symbols_CXX | ||
14267 | |||
14268 | # The commands to list exported symbols. | ||
14269 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | ||
14270 | |||
14271 | # The commands to extract the exported symbol list from a shared archive. | ||
14272 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
14273 | |||
14274 | # Symbols that should not be listed in the preloaded symbols. | ||
14275 | exclude_expsyms=$lt_exclude_expsyms_CXX | ||
14276 | |||
14277 | # Symbols that must always be exported. | ||
14278 | include_expsyms=$lt_include_expsyms_CXX | ||
14279 | |||
14280 | # ### END LIBTOOL TAG CONFIG: $tagname | ||
14281 | |||
14282 | __EOF__ | ||
14283 | |||
14284 | |||
14285 | else | ||
14286 | # If there is no Makefile yet, we rely on a make rule to execute | ||
14287 | # `config.status --recheck' to rerun these tests and create the | ||
14288 | # libtool script then. | ||
14289 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
14290 | if test -f "$ltmain_in"; then | ||
14291 | test -f Makefile && make "$ltmain" | ||
14292 | fi | ||
14293 | fi | ||
14294 | |||
14295 | |||
14296 | ac_ext=c | ||
14297 | ac_cpp='$CPP $CPPFLAGS' | ||
14298 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
14299 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
14300 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
14301 | |||
14302 | CC=$lt_save_CC | ||
14303 | LDCXX=$LD | ||
14304 | LD=$lt_save_LD | ||
14305 | GCC=$lt_save_GCC | ||
14306 | with_gnu_ldcxx=$with_gnu_ld | ||
14307 | with_gnu_ld=$lt_save_with_gnu_ld | ||
14308 | lt_cv_path_LDCXX=$lt_cv_path_LD | ||
14309 | lt_cv_path_LD=$lt_save_path_LD | ||
14310 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | ||
14311 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | ||
14312 | |||
14313 | else | ||
14314 | tagname="" | ||
14315 | fi | ||
14316 | ;; | ||
14317 | |||
14318 | F77) | ||
14319 | if test -n "$F77" && test "X$F77" != "Xno"; then | ||
14320 | |||
14321 | ac_ext=f | ||
14322 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | ||
14323 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
14324 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | ||
14325 | |||
14326 | |||
14327 | archive_cmds_need_lc_F77=no | ||
14328 | allow_undefined_flag_F77= | ||
14329 | always_export_symbols_F77=no | ||
14330 | archive_expsym_cmds_F77= | ||
14331 | export_dynamic_flag_spec_F77= | ||
14332 | hardcode_direct_F77=no | ||
14333 | hardcode_libdir_flag_spec_F77= | ||
14334 | hardcode_libdir_flag_spec_ld_F77= | ||
14335 | hardcode_libdir_separator_F77= | ||
14336 | hardcode_minus_L_F77=no | ||
14337 | hardcode_automatic_F77=no | ||
14338 | module_cmds_F77= | ||
14339 | module_expsym_cmds_F77= | ||
14340 | link_all_deplibs_F77=unknown | ||
14341 | old_archive_cmds_F77=$old_archive_cmds | ||
14342 | no_undefined_flag_F77= | ||
14343 | whole_archive_flag_spec_F77= | ||
14344 | enable_shared_with_static_runtimes_F77=no | ||
14345 | |||
14346 | # Source file extension for f77 test sources. | ||
14347 | ac_ext=f | ||
14348 | |||
14349 | # Object file extension for compiled f77 test sources. | ||
14350 | objext=o | ||
14351 | objext_F77=$objext | ||
14352 | |||
14353 | # Code to be used in simple compile tests | ||
14354 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" | ||
14355 | |||
14356 | # Code to be used in simple link tests | ||
14357 | lt_simple_link_test_code=" program t\n end\n" | ||
14358 | |||
14359 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
14360 | |||
14361 | # If no C compiler was specified, use CC. | ||
14362 | LTCC=${LTCC-"$CC"} | ||
14363 | |||
14364 | # Allow CC to be a program name with arguments. | ||
14365 | compiler=$CC | ||
14366 | |||
14367 | |||
14368 | # Allow CC to be a program name with arguments. | ||
14369 | lt_save_CC="$CC" | ||
14370 | CC=${F77-"f77"} | ||
14371 | compiler=$CC | ||
14372 | compiler_F77=$CC | ||
14373 | cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` | ||
14374 | |||
14375 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | ||
14376 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | ||
14377 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | ||
14378 | echo "${ECHO_T}$can_build_shared" >&6; } | ||
14379 | |||
14380 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | ||
14381 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | ||
14382 | test "$can_build_shared" = "no" && enable_shared=no | ||
14383 | |||
14384 | # On AIX, shared libraries and static libraries use the same namespace, and | ||
14385 | # are all built from PIC. | ||
14386 | case "$host_os" in | ||
14387 | aix3*) | ||
14388 | test "$enable_shared" = yes && enable_static=no | ||
14389 | if test -n "$RANLIB"; then | ||
14390 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | ||
14391 | postinstall_cmds='$RANLIB $lib' | ||
14392 | fi | ||
14393 | ;; | ||
14394 | aix4* | aix5*) | ||
14395 | test "$enable_shared" = yes && enable_static=no | ||
14396 | ;; | ||
14397 | esac | ||
14398 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 | ||
14399 | echo "${ECHO_T}$enable_shared" >&6; } | ||
14400 | |||
14401 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | ||
14402 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | ||
14403 | # Make sure either enable_shared or enable_static is yes. | ||
14404 | test "$enable_shared" = yes || enable_static=yes | ||
14405 | { echo "$as_me:$LINENO: result: $enable_static" >&5 | ||
14406 | echo "${ECHO_T}$enable_static" >&6; } | ||
14407 | |||
14408 | test "$ld_shlibs_F77" = no && can_build_shared=no | ||
14409 | |||
14410 | GCC_F77="$G77" | ||
14411 | LD_F77="$LD" | ||
14412 | |||
14413 | lt_prog_compiler_wl_F77= | ||
14414 | lt_prog_compiler_pic_F77= | ||
14415 | lt_prog_compiler_static_F77= | ||
14416 | |||
14417 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | ||
14418 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | ||
14419 | |||
14420 | if test "$GCC" = yes; then | ||
14421 | lt_prog_compiler_wl_F77='-Wl,' | ||
14422 | lt_prog_compiler_static_F77='-static' | ||
14423 | |||
14424 | case $host_os in | ||
14425 | aix*) | ||
14426 | # All AIX code is PIC. | ||
14427 | if test "$host_cpu" = ia64; then | ||
14428 | # AIX 5 now supports IA64 processor | ||
14429 | lt_prog_compiler_static_F77='-Bstatic' | ||
14430 | fi | ||
14431 | ;; | ||
14432 | |||
14433 | amigaos*) | ||
14434 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
14435 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
14436 | # like `-m68040'. | ||
14437 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | ||
14438 | ;; | ||
14439 | |||
14440 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
14441 | # PIC is the default for these OSes. | ||
14442 | ;; | ||
14443 | |||
14444 | mingw* | pw32* | os2*) | ||
14445 | # This hack is so that the source file can tell whether it is being | ||
14446 | # built for inclusion in a dll (and should export symbols for example). | ||
14447 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | ||
14448 | ;; | ||
14449 | |||
14450 | darwin* | rhapsody*) | ||
14451 | # PIC is the default on this platform | ||
14452 | # Common symbols not allowed in MH_DYLIB files | ||
14453 | lt_prog_compiler_pic_F77='-fno-common' | ||
14454 | ;; | ||
14455 | |||
14456 | msdosdjgpp*) | ||
14457 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
14458 | # on systems that don't support them. | ||
14459 | lt_prog_compiler_can_build_shared_F77=no | ||
14460 | enable_shared=no | ||
14461 | ;; | ||
14462 | |||
14463 | sysv4*MP*) | ||
14464 | if test -d /usr/nec; then | ||
14465 | lt_prog_compiler_pic_F77=-Kconform_pic | ||
14466 | fi | ||
14467 | ;; | ||
14468 | |||
14469 | hpux*) | ||
14470 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
14471 | # not for PA HP-UX. | ||
14472 | case "$host_cpu" in | ||
14473 | hppa*64*|ia64*) | ||
14474 | # +Z the default | ||
14475 | ;; | ||
14476 | *) | ||
14477 | lt_prog_compiler_pic_F77='-fPIC' | ||
14478 | ;; | ||
14479 | esac | ||
14480 | ;; | ||
14481 | |||
14482 | *) | ||
14483 | lt_prog_compiler_pic_F77='-fPIC' | ||
14484 | ;; | ||
14485 | esac | ||
14486 | else | ||
14487 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
14488 | case $host_os in | ||
14489 | aix*) | ||
14490 | lt_prog_compiler_wl_F77='-Wl,' | ||
14491 | if test "$host_cpu" = ia64; then | ||
14492 | # AIX 5 now supports IA64 processor | ||
14493 | lt_prog_compiler_static_F77='-Bstatic' | ||
14494 | else | ||
14495 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | ||
14496 | fi | ||
14497 | ;; | ||
14498 | |||
14499 | mingw* | pw32* | os2*) | ||
14500 | # This hack is so that the source file can tell whether it is being | ||
14501 | # built for inclusion in a dll (and should export symbols for example). | ||
14502 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | ||
14503 | ;; | ||
14504 | |||
14505 | hpux9* | hpux10* | hpux11*) | ||
14506 | lt_prog_compiler_wl_F77='-Wl,' | ||
14507 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
14508 | # not for PA HP-UX. | ||
14509 | case "$host_cpu" in | ||
14510 | hppa*64*|ia64*) | ||
14511 | # +Z the default | ||
14512 | ;; | ||
14513 | *) | ||
14514 | lt_prog_compiler_pic_F77='+Z' | ||
14515 | ;; | ||
14516 | esac | ||
14517 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
14518 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | ||
14519 | ;; | ||
14520 | |||
14521 | irix5* | irix6* | nonstopux*) | ||
14522 | lt_prog_compiler_wl_F77='-Wl,' | ||
14523 | # PIC (with -KPIC) is the default. | ||
14524 | lt_prog_compiler_static_F77='-non_shared' | ||
14525 | ;; | ||
14526 | |||
14527 | newsos6) | ||
14528 | lt_prog_compiler_pic_F77='-KPIC' | ||
14529 | lt_prog_compiler_static_F77='-Bstatic' | ||
14530 | ;; | ||
14531 | |||
14532 | linux*) | ||
14533 | case $CC in | ||
14534 | icc* | ecc*) | ||
14535 | lt_prog_compiler_wl_F77='-Wl,' | ||
14536 | lt_prog_compiler_pic_F77='-KPIC' | ||
14537 | lt_prog_compiler_static_F77='-static' | ||
14538 | ;; | ||
14539 | ccc*) | ||
14540 | lt_prog_compiler_wl_F77='-Wl,' | ||
14541 | # All Alpha code is PIC. | ||
14542 | lt_prog_compiler_static_F77='-non_shared' | ||
14543 | ;; | ||
14544 | esac | ||
14545 | ;; | ||
14546 | |||
14547 | osf3* | osf4* | osf5*) | ||
14548 | lt_prog_compiler_wl_F77='-Wl,' | ||
14549 | # All OSF/1 code is PIC. | ||
14550 | lt_prog_compiler_static_F77='-non_shared' | ||
14551 | ;; | ||
14552 | |||
14553 | sco3.2v5*) | ||
14554 | lt_prog_compiler_pic_F77='-Kpic' | ||
14555 | lt_prog_compiler_static_F77='-dn' | ||
14556 | ;; | ||
14557 | |||
14558 | solaris*) | ||
14559 | lt_prog_compiler_wl_F77='-Wl,' | ||
14560 | lt_prog_compiler_pic_F77='-KPIC' | ||
14561 | lt_prog_compiler_static_F77='-Bstatic' | ||
14562 | ;; | ||
14563 | |||
14564 | sunos4*) | ||
14565 | lt_prog_compiler_wl_F77='-Qoption ld ' | ||
14566 | lt_prog_compiler_pic_F77='-PIC' | ||
14567 | lt_prog_compiler_static_F77='-Bstatic' | ||
14568 | ;; | ||
14569 | |||
14570 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
14571 | lt_prog_compiler_wl_F77='-Wl,' | ||
14572 | lt_prog_compiler_pic_F77='-KPIC' | ||
14573 | lt_prog_compiler_static_F77='-Bstatic' | ||
14574 | ;; | ||
14575 | |||
14576 | sysv4*MP*) | ||
14577 | if test -d /usr/nec ;then | ||
14578 | lt_prog_compiler_pic_F77='-Kconform_pic' | ||
14579 | lt_prog_compiler_static_F77='-Bstatic' | ||
14580 | fi | ||
14581 | ;; | ||
14582 | |||
14583 | uts4*) | ||
14584 | lt_prog_compiler_pic_F77='-pic' | ||
14585 | lt_prog_compiler_static_F77='-Bstatic' | ||
14586 | ;; | ||
14587 | |||
14588 | *) | ||
14589 | lt_prog_compiler_can_build_shared_F77=no | ||
14590 | ;; | ||
14591 | esac | ||
14592 | fi | ||
14593 | |||
14594 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | ||
14595 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } | ||
14596 | |||
14597 | # | ||
14598 | # Check to make sure the PIC flag actually works. | ||
14599 | # | ||
14600 | if test -n "$lt_prog_compiler_pic_F77"; then | ||
14601 | |||
14602 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | ||
14603 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } | ||
14604 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | ||
14605 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14606 | else | ||
14607 | lt_prog_compiler_pic_works_F77=no | ||
14608 | ac_outfile=conftest.$ac_objext | ||
14609 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
14610 | lt_compiler_flag="$lt_prog_compiler_pic_F77" | ||
14611 | # Insert the option either (1) after the last *FLAGS variable, or | ||
14612 | # (2) before a word containing "conftest.", or (3) at the end. | ||
14613 | # Note that $ac_compile itself does not contain backslashes and begins | ||
14614 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
14615 | # The option is referenced via a variable to avoid confusing sed. | ||
14616 | lt_compile=`echo "$ac_compile" | $SED \ | ||
14617 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
14618 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
14619 | -e 's:$: $lt_compiler_flag:'` | ||
14620 | (eval echo "\"\$as_me:14620: $lt_compile\"" >&5) | ||
14621 | (eval "$lt_compile" 2>conftest.err) | ||
14622 | ac_status=$? | ||
14623 | cat conftest.err >&5 | ||
14624 | echo "$as_me:14624: \$? = $ac_status" >&5 | ||
14625 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
14626 | # The compiler can only warn and ignore the option if not recognized | ||
14627 | # So say no if there are warnings | ||
14628 | if test ! -s conftest.err; then | ||
14629 | lt_prog_compiler_pic_works_F77=yes | ||
14630 | fi | ||
14631 | fi | ||
14632 | $rm conftest* | ||
14633 | |||
14634 | fi | ||
14635 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | ||
14636 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } | ||
14637 | |||
14638 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | ||
14639 | case $lt_prog_compiler_pic_F77 in | ||
14640 | "" | " "*) ;; | ||
14641 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | ||
14642 | esac | ||
14643 | else | ||
14644 | lt_prog_compiler_pic_F77= | ||
14645 | lt_prog_compiler_can_build_shared_F77=no | ||
14646 | fi | ||
14647 | |||
14648 | fi | ||
14649 | case "$host_os" in | ||
14650 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
14651 | *djgpp*) | ||
14652 | lt_prog_compiler_pic_F77= | ||
14653 | ;; | ||
14654 | *) | ||
14655 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | ||
14656 | ;; | ||
14657 | esac | ||
14658 | |||
14659 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
14660 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | ||
14661 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | ||
14662 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
14663 | else | ||
14664 | lt_cv_prog_compiler_c_o_F77=no | ||
14665 | $rm -r conftest 2>/dev/null | ||
14666 | mkdir conftest | ||
14667 | cd conftest | ||
14668 | mkdir out | ||
14669 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
14670 | |||
14671 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
14672 | # Insert the option either (1) after the last *FLAGS variable, or | ||
14673 | # (2) before a word containing "conftest.", or (3) at the end. | ||
14674 | # Note that $ac_compile itself does not contain backslashes and begins | ||
14675 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
14676 | lt_compile=`echo "$ac_compile" | $SED \ | ||
14677 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
14678 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
14679 | -e 's:$: $lt_compiler_flag:'` | ||
14680 | (eval echo "\"\$as_me:14680: $lt_compile\"" >&5) | ||
14681 | (eval "$lt_compile" 2>out/conftest.err) | ||
14682 | ac_status=$? | ||
14683 | cat out/conftest.err >&5 | ||
14684 | echo "$as_me:14684: \$? = $ac_status" >&5 | ||
14685 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
14686 | then | ||
14687 | # The compiler can only warn and ignore the option if not recognized | ||
14688 | # So say no if there are warnings | ||
14689 | if test ! -s out/conftest.err; then | ||
14690 | lt_cv_prog_compiler_c_o_F77=yes | ||
14691 | fi | ||
14692 | fi | ||
14693 | chmod u+w . | ||
14694 | $rm conftest* | ||
14695 | # SGI C++ compiler will create directory out/ii_files/ for | ||
14696 | # template instantiation | ||
14697 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | ||
14698 | $rm out/* && rmdir out | ||
14699 | cd .. | ||
14700 | rmdir conftest | ||
14701 | $rm conftest* | ||
14702 | |||
14703 | fi | ||
14704 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | ||
14705 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } | ||
14706 | |||
14707 | |||
14708 | hard_links="nottested" | ||
14709 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | ||
14710 | # do not overwrite the value of need_locks provided by the user | ||
14711 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | ||
14712 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | ||
14713 | hard_links=yes | ||
14714 | $rm conftest* | ||
14715 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
14716 | touch conftest.a | ||
14717 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
14718 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
14719 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | ||
14720 | echo "${ECHO_T}$hard_links" >&6; } | ||
14721 | if test "$hard_links" = no; then | ||
14722 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
14723 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
14724 | need_locks=warn | ||
14725 | fi | ||
14726 | else | ||
14727 | need_locks=no | ||
14728 | fi | ||
14729 | |||
14730 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
14731 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | ||
14732 | |||
14733 | runpath_var= | ||
14734 | allow_undefined_flag_F77= | ||
14735 | enable_shared_with_static_runtimes_F77=no | ||
14736 | archive_cmds_F77= | ||
14737 | archive_expsym_cmds_F77= | ||
14738 | old_archive_From_new_cmds_F77= | ||
14739 | old_archive_from_expsyms_cmds_F77= | ||
14740 | export_dynamic_flag_spec_F77= | ||
14741 | whole_archive_flag_spec_F77= | ||
14742 | thread_safe_flag_spec_F77= | ||
14743 | hardcode_libdir_flag_spec_F77= | ||
14744 | hardcode_libdir_flag_spec_ld_F77= | ||
14745 | hardcode_libdir_separator_F77= | ||
14746 | hardcode_direct_F77=no | ||
14747 | hardcode_minus_L_F77=no | ||
14748 | hardcode_shlibpath_var_F77=unsupported | ||
14749 | link_all_deplibs_F77=unknown | ||
14750 | hardcode_automatic_F77=no | ||
14751 | module_cmds_F77= | ||
14752 | module_expsym_cmds_F77= | ||
14753 | always_export_symbols_F77=no | ||
14754 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
14755 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
14756 | # included in the symbol list | ||
14757 | include_expsyms_F77= | ||
14758 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
14759 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
14760 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
14761 | # as well as any symbol that contains `d'. | ||
14762 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | ||
14763 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
14764 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
14765 | # the symbol is explicitly referenced. Since portable code cannot | ||
14766 | # rely on this symbol name, it's probably fine to never include it in | ||
14767 | # preloaded symbol tables. | ||
14768 | extract_expsyms_cmds= | ||
14769 | |||
14770 | case $host_os in | ||
14771 | cygwin* | mingw* | pw32*) | ||
14772 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
14773 | # When not using gcc, we currently assume that we are using | ||
14774 | # Microsoft Visual C++. | ||
14775 | if test "$GCC" != yes; then | ||
14776 | with_gnu_ld=no | ||
14777 | fi | ||
14778 | ;; | ||
14779 | openbsd*) | ||
14780 | with_gnu_ld=no | ||
14781 | ;; | ||
14782 | esac | ||
14783 | |||
14784 | ld_shlibs_F77=yes | ||
14785 | if test "$with_gnu_ld" = yes; then | ||
14786 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
14787 | wlarc='${wl}' | ||
14788 | |||
14789 | # See if GNU ld supports shared libraries. | ||
14790 | case $host_os in | ||
14791 | aix3* | aix4* | aix5*) | ||
14792 | # On AIX/PPC, the GNU linker is very broken | ||
14793 | if test "$host_cpu" != ia64; then | ||
14794 | ld_shlibs_F77=no | ||
14795 | cat <<EOF 1>&2 | ||
14796 | |||
14797 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
14798 | *** to be unable to reliably create shared libraries on AIX. | ||
14799 | *** Therefore, libtool is disabling shared libraries support. If you | ||
14800 | *** really care for shared libraries, you may want to modify your PATH | ||
14801 | *** so that a non-GNU linker is found, and then restart. | ||
14802 | |||
14803 | EOF | ||
14804 | fi | ||
14805 | ;; | ||
14806 | |||
14807 | amigaos*) | ||
14808 | 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)' | ||
14809 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
14810 | hardcode_minus_L_F77=yes | ||
14811 | |||
14812 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | ||
14813 | # that the semantics of dynamic libraries on AmigaOS, at least up | ||
14814 | # to version 4, is to share data among multiple programs linked | ||
14815 | # with the same dynamic library. Since this doesn't match the | ||
14816 | # behavior of shared libraries on other platforms, we can't use | ||
14817 | # them. | ||
14818 | ld_shlibs_F77=no | ||
14819 | ;; | ||
14820 | |||
14821 | beos*) | ||
14822 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
14823 | allow_undefined_flag_F77=unsupported | ||
14824 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
14825 | # support --undefined. This deserves some investigation. FIXME | ||
14826 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14827 | else | ||
14828 | ld_shlibs_F77=no | ||
14829 | fi | ||
14830 | ;; | ||
14831 | |||
14832 | cygwin* | mingw* | pw32*) | ||
14833 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | ||
14834 | # as there is no search path for DLLs. | ||
14835 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
14836 | allow_undefined_flag_F77=unsupported | ||
14837 | always_export_symbols_F77=no | ||
14838 | enable_shared_with_static_runtimes_F77=yes | ||
14839 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | ||
14840 | |||
14841 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
14842 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | ||
14843 | # If the export-symbols file already is a .def file (1st line | ||
14844 | # is EXPORTS), use it as is; otherwise, prepend... | ||
14845 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
14846 | cp $export_symbols $output_objdir/$soname.def; | ||
14847 | else | ||
14848 | echo EXPORTS > $output_objdir/$soname.def; | ||
14849 | cat $export_symbols >> $output_objdir/$soname.def; | ||
14850 | fi~ | ||
14851 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | ||
14852 | else | ||
14853 | ld_shlibs=no | ||
14854 | fi | ||
14855 | ;; | ||
14856 | |||
14857 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
14858 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
14859 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
14860 | wlarc= | ||
14861 | else | ||
14862 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14863 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
14864 | fi | ||
14865 | ;; | ||
14866 | |||
14867 | solaris* | sysv5*) | ||
14868 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | ||
14869 | ld_shlibs_F77=no | ||
14870 | cat <<EOF 1>&2 | ||
14871 | |||
14872 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
14873 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
14874 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
14875 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
14876 | *** your PATH or compiler configuration so that the native linker is | ||
14877 | *** used, and then restart. | ||
14878 | |||
14879 | EOF | ||
14880 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
14881 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14882 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
14883 | else | ||
14884 | ld_shlibs_F77=no | ||
14885 | fi | ||
14886 | ;; | ||
14887 | |||
14888 | sunos4*) | ||
14889 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
14890 | wlarc= | ||
14891 | hardcode_direct_F77=yes | ||
14892 | hardcode_shlibpath_var_F77=no | ||
14893 | ;; | ||
14894 | |||
14895 | linux*) | ||
14896 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
14897 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14898 | archive_cmds_F77="$tmp_archive_cmds" | ||
14899 | supports_anon_versioning=no | ||
14900 | case `$LD -v 2>/dev/null` in | ||
14901 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
14902 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
14903 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
14904 | *\ 2.11.*) ;; # other 2.11 versions | ||
14905 | *) supports_anon_versioning=yes ;; | ||
14906 | esac | ||
14907 | if test $supports_anon_versioning = yes; then | ||
14908 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | ||
14909 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
14910 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
14911 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
14912 | else | ||
14913 | archive_expsym_cmds_F77="$tmp_archive_cmds" | ||
14914 | fi | ||
14915 | link_all_deplibs_F77=no | ||
14916 | else | ||
14917 | ld_shlibs_F77=no | ||
14918 | fi | ||
14919 | ;; | ||
14920 | |||
14921 | *) | ||
14922 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
14923 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
14924 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
14925 | else | ||
14926 | ld_shlibs_F77=no | ||
14927 | fi | ||
14928 | ;; | ||
14929 | esac | ||
14930 | |||
14931 | if test "$ld_shlibs_F77" = yes; then | ||
14932 | runpath_var=LD_RUN_PATH | ||
14933 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | ||
14934 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' | ||
14935 | # ancient GNU ld didn't support --whole-archive et. al. | ||
14936 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | ||
14937 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
14938 | else | ||
14939 | whole_archive_flag_spec_F77= | ||
14940 | fi | ||
14941 | fi | ||
14942 | else | ||
14943 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
14944 | case $host_os in | ||
14945 | aix3*) | ||
14946 | allow_undefined_flag_F77=unsupported | ||
14947 | always_export_symbols_F77=yes | ||
14948 | 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' | ||
14949 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
14950 | # are no directories specified by -L. | ||
14951 | hardcode_minus_L_F77=yes | ||
14952 | if test "$GCC" = yes && test -z "$link_static_flag"; then | ||
14953 | # Neither direct hardcoding nor static linking is supported with a | ||
14954 | # broken collect2. | ||
14955 | hardcode_direct_F77=unsupported | ||
14956 | fi | ||
14957 | ;; | ||
14958 | |||
14959 | aix4* | aix5*) | ||
14960 | if test "$host_cpu" = ia64; then | ||
14961 | # On IA64, the linker does run time linking by default, so we don't | ||
14962 | # have to do anything special. | ||
14963 | aix_use_runtimelinking=no | ||
14964 | exp_sym_flag='-Bexport' | ||
14965 | no_entry_flag="" | ||
14966 | else | ||
14967 | # If we're using GNU nm, then we don't want the "-C" option. | ||
14968 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
14969 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | ||
14970 | 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' | ||
14971 | else | ||
14972 | 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' | ||
14973 | fi | ||
14974 | aix_use_runtimelinking=no | ||
14975 | |||
14976 | # Test if we are trying to use run time linking or normal | ||
14977 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
14978 | # need to do runtime linking. | ||
14979 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | ||
14980 | for ld_flag in $LDFLAGS; do | ||
14981 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
14982 | aix_use_runtimelinking=yes | ||
14983 | break | ||
14984 | fi | ||
14985 | done | ||
14986 | esac | ||
14987 | |||
14988 | exp_sym_flag='-bexport' | ||
14989 | no_entry_flag='-bnoentry' | ||
14990 | fi | ||
14991 | |||
14992 | # When large executables or shared objects are built, AIX ld can | ||
14993 | # have problems creating the table of contents. If linking a library | ||
14994 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
14995 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
14996 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
14997 | |||
14998 | archive_cmds_F77='' | ||
14999 | hardcode_direct_F77=yes | ||
15000 | hardcode_libdir_separator_F77=':' | ||
15001 | link_all_deplibs_F77=yes | ||
15002 | |||
15003 | if test "$GCC" = yes; then | ||
15004 | case $host_os in aix4.012|aix4.012.*) | ||
15005 | # We only want to do this on AIX 4.2 and lower, the check | ||
15006 | # below for broken collect2 doesn't work under 4.3+ | ||
15007 | collect2name=`${CC} -print-prog-name=collect2` | ||
15008 | if test -f "$collect2name" && \ | ||
15009 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
15010 | then | ||
15011 | # We have reworked collect2 | ||
15012 | hardcode_direct_F77=yes | ||
15013 | else | ||
15014 | # We have old collect2 | ||
15015 | hardcode_direct_F77=unsupported | ||
15016 | # It fails to find uninstalled libraries when the uninstalled | ||
15017 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
15018 | # to unsupported forces relinking | ||
15019 | hardcode_minus_L_F77=yes | ||
15020 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
15021 | hardcode_libdir_separator_F77= | ||
15022 | fi | ||
15023 | esac | ||
15024 | shared_flag='-shared' | ||
15025 | else | ||
15026 | # not using gcc | ||
15027 | if test "$host_cpu" = ia64; then | ||
15028 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
15029 | # chokes on -Wl,-G. The following line is correct: | ||
15030 | shared_flag='-G' | ||
15031 | else | ||
15032 | if test "$aix_use_runtimelinking" = yes; then | ||
15033 | shared_flag='${wl}-G' | ||
15034 | else | ||
15035 | shared_flag='${wl}-bM:SRE' | ||
15036 | fi | ||
15037 | fi | ||
15038 | fi | ||
15039 | |||
15040 | # It seems that -bexpall does not export symbols beginning with | ||
15041 | # underscore (_), so it is better to generate a list of symbols to export. | ||
15042 | always_export_symbols_F77=yes | ||
15043 | if test "$aix_use_runtimelinking" = yes; then | ||
15044 | # Warning - without using the other runtime loading flags (-brtl), | ||
15045 | # -berok will link without error, but may produce a broken library. | ||
15046 | allow_undefined_flag_F77='-berok' | ||
15047 | # Determine the default libpath from the value encoded in an empty executable. | ||
15048 | cat >conftest.$ac_ext <<_ACEOF | ||
15049 | program main | ||
15050 | |||
15051 | end | ||
15052 | _ACEOF | ||
15053 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15054 | if { (ac_try="$ac_link" | ||
15055 | case "(($ac_try" in | ||
15056 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15057 | *) ac_try_echo=$ac_try;; | ||
15058 | esac | ||
15059 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15060 | (eval "$ac_link") 2>conftest.er1 | ||
15061 | ac_status=$? | ||
15062 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15063 | rm -f conftest.er1 | ||
15064 | cat conftest.err >&5 | ||
15065 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15066 | (exit $ac_status); } && { | ||
15067 | test -z "$ac_f77_werror_flag" || | ||
15068 | test ! -s conftest.err | ||
15069 | } && test -s conftest$ac_exeext && | ||
15070 | $as_test_x conftest$ac_exeext; then | ||
15071 | |||
15072 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
15073 | }'` | ||
15074 | # Check for a 64-bit object if we didn't find anything. | ||
15075 | 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; } | ||
15076 | }'`; fi | ||
15077 | else | ||
15078 | echo "$as_me: failed program was:" >&5 | ||
15079 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15080 | |||
15081 | |||
15082 | fi | ||
15083 | |||
15084 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15085 | conftest$ac_exeext conftest.$ac_ext | ||
15086 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
15087 | |||
15088 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
15089 | 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" | ||
15090 | else | ||
15091 | if test "$host_cpu" = ia64; then | ||
15092 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | ||
15093 | allow_undefined_flag_F77="-z nodefs" | ||
15094 | 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" | ||
15095 | else | ||
15096 | # Determine the default libpath from the value encoded in an empty executable. | ||
15097 | cat >conftest.$ac_ext <<_ACEOF | ||
15098 | program main | ||
15099 | |||
15100 | end | ||
15101 | _ACEOF | ||
15102 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
15103 | if { (ac_try="$ac_link" | ||
15104 | case "(($ac_try" in | ||
15105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
15106 | *) ac_try_echo=$ac_try;; | ||
15107 | esac | ||
15108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
15109 | (eval "$ac_link") 2>conftest.er1 | ||
15110 | ac_status=$? | ||
15111 | grep -v '^ *+' conftest.er1 >conftest.err | ||
15112 | rm -f conftest.er1 | ||
15113 | cat conftest.err >&5 | ||
15114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15115 | (exit $ac_status); } && { | ||
15116 | test -z "$ac_f77_werror_flag" || | ||
15117 | test ! -s conftest.err | ||
15118 | } && test -s conftest$ac_exeext && | ||
15119 | $as_test_x conftest$ac_exeext; then | ||
15120 | |||
15121 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
15122 | }'` | ||
15123 | # Check for a 64-bit object if we didn't find anything. | ||
15124 | 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; } | ||
15125 | }'`; fi | ||
15126 | else | ||
15127 | echo "$as_me: failed program was:" >&5 | ||
15128 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
15129 | |||
15130 | |||
15131 | fi | ||
15132 | |||
15133 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
15134 | conftest$ac_exeext conftest.$ac_ext | ||
15135 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
15136 | |||
15137 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
15138 | # Warning - without using the other run time loading flags, | ||
15139 | # -berok will link without error, but may produce a broken library. | ||
15140 | no_undefined_flag_F77=' ${wl}-bernotok' | ||
15141 | allow_undefined_flag_F77=' ${wl}-berok' | ||
15142 | # -bexpall does not export symbols beginning with underscore (_) | ||
15143 | always_export_symbols_F77=yes | ||
15144 | # Exported symbols can be pulled into shared objects from archives | ||
15145 | whole_archive_flag_spec_F77=' ' | ||
15146 | archive_cmds_need_lc_F77=yes | ||
15147 | # This is similar to how AIX traditionally builds it's shared libraries. | ||
15148 | 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' | ||
15149 | fi | ||
15150 | fi | ||
15151 | ;; | ||
15152 | |||
15153 | amigaos*) | ||
15154 | 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)' | ||
15155 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
15156 | hardcode_minus_L_F77=yes | ||
15157 | # see comment about different semantics on the GNU ld section | ||
15158 | ld_shlibs_F77=no | ||
15159 | ;; | ||
15160 | |||
15161 | bsdi4*) | ||
15162 | export_dynamic_flag_spec_F77=-rdynamic | ||
15163 | ;; | ||
15164 | |||
15165 | cygwin* | mingw* | pw32*) | ||
15166 | # When not using gcc, we currently assume that we are using | ||
15167 | # Microsoft Visual C++. | ||
15168 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
15169 | # no search path for DLLs. | ||
15170 | hardcode_libdir_flag_spec_F77=' ' | ||
15171 | allow_undefined_flag_F77=unsupported | ||
15172 | # Tell ltmain to make .lib files, not .a files. | ||
15173 | libext=lib | ||
15174 | # Tell ltmain to make .dll files, not .so files. | ||
15175 | shrext_cmds=".dll" | ||
15176 | # FIXME: Setting linknames here is a bad hack. | ||
15177 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
15178 | # The linker will automatically build a .lib file if we build a DLL. | ||
15179 | old_archive_From_new_cmds_F77='true' | ||
15180 | # FIXME: Should let the user specify the lib program. | ||
15181 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | ||
15182 | fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
15183 | enable_shared_with_static_runtimes_F77=yes | ||
15184 | ;; | ||
15185 | |||
15186 | darwin* | rhapsody*) | ||
15187 | if test "$GXX" = yes ; then | ||
15188 | archive_cmds_need_lc_F77=no | ||
15189 | case "$host_os" in | ||
15190 | rhapsody* | darwin1.[012]) | ||
15191 | allow_undefined_flag_F77='-undefined suppress' | ||
15192 | ;; | ||
15193 | *) # Darwin 1.3 on | ||
15194 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
15195 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' | ||
15196 | else | ||
15197 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
15198 | 10.[012]) | ||
15199 | allow_undefined_flag_F77='-flat_namespace -undefined suppress' | ||
15200 | ;; | ||
15201 | 10.*) | ||
15202 | allow_undefined_flag_F77='-undefined dynamic_lookup' | ||
15203 | ;; | ||
15204 | esac | ||
15205 | fi | ||
15206 | ;; | ||
15207 | esac | ||
15208 | lt_int_apple_cc_single_mod=no | ||
15209 | output_verbose_link_cmd='echo' | ||
15210 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | ||
15211 | lt_int_apple_cc_single_mod=yes | ||
15212 | fi | ||
15213 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
15214 | archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
15215 | else | ||
15216 | 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' | ||
15217 | fi | ||
15218 | module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
15219 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | ||
15220 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
15221 | 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}' | ||
15222 | else | ||
15223 | 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}' | ||
15224 | fi | ||
15225 | 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}' | ||
15226 | hardcode_direct_F77=no | ||
15227 | hardcode_automatic_F77=yes | ||
15228 | hardcode_shlibpath_var_F77=unsupported | ||
15229 | whole_archive_flag_spec_F77='-all_load $convenience' | ||
15230 | link_all_deplibs_F77=yes | ||
15231 | else | ||
15232 | ld_shlibs_F77=no | ||
15233 | fi | ||
15234 | ;; | ||
15235 | |||
15236 | dgux*) | ||
15237 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15238 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
15239 | hardcode_shlibpath_var_F77=no | ||
15240 | ;; | ||
15241 | |||
15242 | freebsd1*) | ||
15243 | ld_shlibs_F77=no | ||
15244 | ;; | ||
15245 | |||
15246 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
15247 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
15248 | # does not break anything, and helps significantly (at the cost of a little | ||
15249 | # extra space). | ||
15250 | freebsd2.2*) | ||
15251 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
15252 | hardcode_libdir_flag_spec_F77='-R$libdir' | ||
15253 | hardcode_direct_F77=yes | ||
15254 | hardcode_shlibpath_var_F77=no | ||
15255 | ;; | ||
15256 | |||
15257 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
15258 | freebsd2*) | ||
15259 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
15260 | hardcode_direct_F77=yes | ||
15261 | hardcode_minus_L_F77=yes | ||
15262 | hardcode_shlibpath_var_F77=no | ||
15263 | ;; | ||
15264 | |||
15265 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
15266 | freebsd* | kfreebsd*-gnu) | ||
15267 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
15268 | hardcode_libdir_flag_spec_F77='-R$libdir' | ||
15269 | hardcode_direct_F77=yes | ||
15270 | hardcode_shlibpath_var_F77=no | ||
15271 | ;; | ||
15272 | |||
15273 | hpux9*) | ||
15274 | if test "$GCC" = yes; then | ||
15275 | 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' | ||
15276 | else | ||
15277 | 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' | ||
15278 | fi | ||
15279 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | ||
15280 | hardcode_libdir_separator_F77=: | ||
15281 | hardcode_direct_F77=yes | ||
15282 | |||
15283 | # hardcode_minus_L: Not really in the search PATH, | ||
15284 | # but as the default location of the library. | ||
15285 | hardcode_minus_L_F77=yes | ||
15286 | export_dynamic_flag_spec_F77='${wl}-E' | ||
15287 | ;; | ||
15288 | |||
15289 | hpux10* | hpux11*) | ||
15290 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
15291 | case "$host_cpu" in | ||
15292 | hppa*64*|ia64*) | ||
15293 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15294 | ;; | ||
15295 | *) | ||
15296 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
15297 | ;; | ||
15298 | esac | ||
15299 | else | ||
15300 | case "$host_cpu" in | ||
15301 | hppa*64*|ia64*) | ||
15302 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15303 | ;; | ||
15304 | *) | ||
15305 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
15306 | ;; | ||
15307 | esac | ||
15308 | fi | ||
15309 | if test "$with_gnu_ld" = no; then | ||
15310 | case "$host_cpu" in | ||
15311 | hppa*64*) | ||
15312 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | ||
15313 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' | ||
15314 | hardcode_libdir_separator_F77=: | ||
15315 | hardcode_direct_F77=no | ||
15316 | hardcode_shlibpath_var_F77=no | ||
15317 | ;; | ||
15318 | ia64*) | ||
15319 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
15320 | hardcode_direct_F77=no | ||
15321 | hardcode_shlibpath_var_F77=no | ||
15322 | |||
15323 | # hardcode_minus_L: Not really in the search PATH, | ||
15324 | # but as the default location of the library. | ||
15325 | hardcode_minus_L_F77=yes | ||
15326 | ;; | ||
15327 | *) | ||
15328 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | ||
15329 | hardcode_libdir_separator_F77=: | ||
15330 | hardcode_direct_F77=yes | ||
15331 | export_dynamic_flag_spec_F77='${wl}-E' | ||
15332 | |||
15333 | # hardcode_minus_L: Not really in the search PATH, | ||
15334 | # but as the default location of the library. | ||
15335 | hardcode_minus_L_F77=yes | ||
15336 | ;; | ||
15337 | esac | ||
15338 | fi | ||
15339 | ;; | ||
15340 | |||
15341 | irix5* | irix6* | nonstopux*) | ||
15342 | if test "$GCC" = yes; then | ||
15343 | 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' | ||
15344 | else | ||
15345 | 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' | ||
15346 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | ||
15347 | fi | ||
15348 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | ||
15349 | hardcode_libdir_separator_F77=: | ||
15350 | link_all_deplibs_F77=yes | ||
15351 | ;; | ||
15352 | |||
15353 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
15354 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
15355 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
15356 | else | ||
15357 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
15358 | fi | ||
15359 | hardcode_libdir_flag_spec_F77='-R$libdir' | ||
15360 | hardcode_direct_F77=yes | ||
15361 | hardcode_shlibpath_var_F77=no | ||
15362 | ;; | ||
15363 | |||
15364 | newsos6) | ||
15365 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15366 | hardcode_direct_F77=yes | ||
15367 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | ||
15368 | hardcode_libdir_separator_F77=: | ||
15369 | hardcode_shlibpath_var_F77=no | ||
15370 | ;; | ||
15371 | |||
15372 | openbsd*) | ||
15373 | hardcode_direct_F77=yes | ||
15374 | hardcode_shlibpath_var_F77=no | ||
15375 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
15376 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
15377 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | ||
15378 | export_dynamic_flag_spec_F77='${wl}-E' | ||
15379 | else | ||
15380 | case $host_os in | ||
15381 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
15382 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
15383 | hardcode_libdir_flag_spec_F77='-R$libdir' | ||
15384 | ;; | ||
15385 | *) | ||
15386 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
15387 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | ||
15388 | ;; | ||
15389 | esac | ||
15390 | fi | ||
15391 | ;; | ||
15392 | |||
15393 | os2*) | ||
15394 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
15395 | hardcode_minus_L_F77=yes | ||
15396 | allow_undefined_flag_F77=unsupported | ||
15397 | 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' | ||
15398 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
15399 | ;; | ||
15400 | |||
15401 | osf3*) | ||
15402 | if test "$GCC" = yes; then | ||
15403 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | ||
15404 | 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' | ||
15405 | else | ||
15406 | allow_undefined_flag_F77=' -expect_unresolved \*' | ||
15407 | 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' | ||
15408 | fi | ||
15409 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | ||
15410 | hardcode_libdir_separator_F77=: | ||
15411 | ;; | ||
15412 | |||
15413 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
15414 | if test "$GCC" = yes; then | ||
15415 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | ||
15416 | 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' | ||
15417 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | ||
15418 | else | ||
15419 | allow_undefined_flag_F77=' -expect_unresolved \*' | ||
15420 | 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' | ||
15421 | 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~ | ||
15422 | $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' | ||
15423 | |||
15424 | # Both c and cxx compiler support -rpath directly | ||
15425 | hardcode_libdir_flag_spec_F77='-rpath $libdir' | ||
15426 | fi | ||
15427 | hardcode_libdir_separator_F77=: | ||
15428 | ;; | ||
15429 | |||
15430 | sco3.2v5*) | ||
15431 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15432 | hardcode_shlibpath_var_F77=no | ||
15433 | export_dynamic_flag_spec_F77='${wl}-Bexport' | ||
15434 | runpath_var=LD_RUN_PATH | ||
15435 | hardcode_runpath_var=yes | ||
15436 | ;; | ||
15437 | |||
15438 | solaris*) | ||
15439 | no_undefined_flag_F77=' -z text' | ||
15440 | if test "$GCC" = yes; then | ||
15441 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15442 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
15443 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | ||
15444 | else | ||
15445 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15446 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
15447 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
15448 | fi | ||
15449 | hardcode_libdir_flag_spec_F77='-R$libdir' | ||
15450 | hardcode_shlibpath_var_F77=no | ||
15451 | case $host_os in | ||
15452 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
15453 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
15454 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | ||
15455 | esac | ||
15456 | link_all_deplibs_F77=yes | ||
15457 | ;; | ||
15458 | |||
15459 | sunos4*) | ||
15460 | if test "x$host_vendor" = xsequent; then | ||
15461 | # Use $CC to link under sequent, because it throws in some extra .o | ||
15462 | # files that make .init and .fini sections work. | ||
15463 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15464 | else | ||
15465 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
15466 | fi | ||
15467 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
15468 | hardcode_direct_F77=yes | ||
15469 | hardcode_minus_L_F77=yes | ||
15470 | hardcode_shlibpath_var_F77=no | ||
15471 | ;; | ||
15472 | |||
15473 | sysv4) | ||
15474 | case $host_vendor in | ||
15475 | sni) | ||
15476 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15477 | hardcode_direct_F77=yes # is this really true??? | ||
15478 | ;; | ||
15479 | siemens) | ||
15480 | ## LD is ld it makes a PLAMLIB | ||
15481 | ## CC just makes a GrossModule. | ||
15482 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
15483 | reload_cmds_F77='$CC -r -o $output$reload_objs' | ||
15484 | hardcode_direct_F77=no | ||
15485 | ;; | ||
15486 | motorola) | ||
15487 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15488 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | ||
15489 | ;; | ||
15490 | esac | ||
15491 | runpath_var='LD_RUN_PATH' | ||
15492 | hardcode_shlibpath_var_F77=no | ||
15493 | ;; | ||
15494 | |||
15495 | sysv4.3*) | ||
15496 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15497 | hardcode_shlibpath_var_F77=no | ||
15498 | export_dynamic_flag_spec_F77='-Bexport' | ||
15499 | ;; | ||
15500 | |||
15501 | sysv4*MP*) | ||
15502 | if test -d /usr/nec; then | ||
15503 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15504 | hardcode_shlibpath_var_F77=no | ||
15505 | runpath_var=LD_RUN_PATH | ||
15506 | hardcode_runpath_var=yes | ||
15507 | ld_shlibs_F77=yes | ||
15508 | fi | ||
15509 | ;; | ||
15510 | |||
15511 | sysv4.2uw2*) | ||
15512 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
15513 | hardcode_direct_F77=yes | ||
15514 | hardcode_minus_L_F77=no | ||
15515 | hardcode_shlibpath_var_F77=no | ||
15516 | hardcode_runpath_var=yes | ||
15517 | runpath_var=LD_RUN_PATH | ||
15518 | ;; | ||
15519 | |||
15520 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | ||
15521 | no_undefined_flag_F77='${wl}-z ${wl}text' | ||
15522 | if test "$GCC" = yes; then | ||
15523 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15524 | else | ||
15525 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
15526 | fi | ||
15527 | runpath_var='LD_RUN_PATH' | ||
15528 | hardcode_shlibpath_var_F77=no | ||
15529 | ;; | ||
15530 | |||
15531 | sysv5*) | ||
15532 | no_undefined_flag_F77=' -z text' | ||
15533 | # $CC -shared without GNU ld will not create a library from C++ | ||
15534 | # object files and a static libstdc++, better avoid it by now | ||
15535 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15536 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
15537 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
15538 | hardcode_libdir_flag_spec_F77= | ||
15539 | hardcode_shlibpath_var_F77=no | ||
15540 | runpath_var='LD_RUN_PATH' | ||
15541 | ;; | ||
15542 | |||
15543 | uts4*) | ||
15544 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
15545 | hardcode_libdir_flag_spec_F77='-L$libdir' | ||
15546 | hardcode_shlibpath_var_F77=no | ||
15547 | ;; | ||
15548 | |||
15549 | *) | ||
15550 | ld_shlibs_F77=no | ||
15551 | ;; | ||
15552 | esac | ||
15553 | fi | ||
15554 | |||
15555 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | ||
15556 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } | ||
15557 | test "$ld_shlibs_F77" = no && can_build_shared=no | ||
15558 | |||
15559 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
15560 | if test "$GCC" = yes; then | ||
15561 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
15562 | fi | ||
15563 | |||
15564 | # | ||
15565 | # Do we need to explicitly link libc? | ||
15566 | # | ||
15567 | case "x$archive_cmds_need_lc_F77" in | ||
15568 | x|xyes) | ||
15569 | # Assume -lc should be added | ||
15570 | archive_cmds_need_lc_F77=yes | ||
15571 | |||
15572 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
15573 | case $archive_cmds_F77 in | ||
15574 | *'~'*) | ||
15575 | # FIXME: we may have to deal with multi-command sequences. | ||
15576 | ;; | ||
15577 | '$CC '*) | ||
15578 | # Test whether the compiler implicitly links with -lc since on some | ||
15579 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
15580 | # to ld, don't add -lc before -lgcc. | ||
15581 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | ||
15582 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | ||
15583 | $rm conftest* | ||
15584 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
15585 | |||
15586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
15587 | (eval $ac_compile) 2>&5 | ||
15588 | ac_status=$? | ||
15589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15590 | (exit $ac_status); } 2>conftest.err; then | ||
15591 | soname=conftest | ||
15592 | lib=conftest | ||
15593 | libobjs=conftest.$ac_objext | ||
15594 | deplibs= | ||
15595 | wl=$lt_prog_compiler_wl_F77 | ||
15596 | compiler_flags=-v | ||
15597 | linker_flags=-v | ||
15598 | verstring= | ||
15599 | output_objdir=. | ||
15600 | libname=conftest | ||
15601 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | ||
15602 | allow_undefined_flag_F77= | ||
15603 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | ||
15604 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
15605 | ac_status=$? | ||
15606 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
15607 | (exit $ac_status); } | ||
15608 | then | ||
15609 | archive_cmds_need_lc_F77=no | ||
15610 | else | ||
15611 | archive_cmds_need_lc_F77=yes | ||
15612 | fi | ||
15613 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag | ||
15614 | else | ||
15615 | cat conftest.err 1>&5 | ||
15616 | fi | ||
15617 | $rm conftest* | ||
15618 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | ||
15619 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } | ||
15620 | ;; | ||
15621 | esac | ||
15622 | fi | ||
15623 | ;; | ||
15624 | esac | ||
15625 | |||
15626 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | ||
15627 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | ||
15628 | library_names_spec= | ||
15629 | libname_spec='lib$name' | ||
15630 | soname_spec= | ||
15631 | shrext_cmds=".so" | ||
15632 | postinstall_cmds= | ||
15633 | postuninstall_cmds= | ||
15634 | finish_cmds= | ||
15635 | finish_eval= | ||
15636 | shlibpath_var= | ||
15637 | shlibpath_overrides_runpath=unknown | ||
15638 | version_type=none | ||
15639 | dynamic_linker="$host_os ld.so" | ||
15640 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
15641 | if test "$GCC" = yes; then | ||
15642 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
15643 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | ||
15644 | # if the path contains ";" then we assume it to be the separator | ||
15645 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
15646 | # assumed that no part of a normal pathname contains ";" but that should | ||
15647 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
15648 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
15649 | else | ||
15650 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
15651 | fi | ||
15652 | else | ||
15653 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
15654 | fi | ||
15655 | need_lib_prefix=unknown | ||
15656 | hardcode_into_libs=no | ||
15657 | |||
15658 | # when you set need_version to no, make sure it does not cause -set_version | ||
15659 | # flags to be left without arguments | ||
15660 | need_version=unknown | ||
15661 | |||
15662 | case $host_os in | ||
15663 | aix3*) | ||
15664 | version_type=linux | ||
15665 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
15666 | shlibpath_var=LIBPATH | ||
15667 | |||
15668 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
15669 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15670 | ;; | ||
15671 | |||
15672 | aix4* | aix5*) | ||
15673 | version_type=linux | ||
15674 | need_lib_prefix=no | ||
15675 | need_version=no | ||
15676 | hardcode_into_libs=yes | ||
15677 | if test "$host_cpu" = ia64; then | ||
15678 | # AIX 5 supports IA64 | ||
15679 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
15680 | shlibpath_var=LD_LIBRARY_PATH | ||
15681 | else | ||
15682 | # With GCC up to 2.95.x, collect2 would create an import file | ||
15683 | # for dependence libraries. The import file would start with | ||
15684 | # the line `#! .'. This would cause the generated library to | ||
15685 | # depend on `.', always an invalid library. This was fixed in | ||
15686 | # development snapshots of GCC prior to 3.0. | ||
15687 | case $host_os in | ||
15688 | aix4 | aix4.[01] | aix4.[01].*) | ||
15689 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
15690 | echo ' yes ' | ||
15691 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | ||
15692 | : | ||
15693 | else | ||
15694 | can_build_shared=no | ||
15695 | fi | ||
15696 | ;; | ||
15697 | esac | ||
15698 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
15699 | # soname into executable. Probably we can add versioning support to | ||
15700 | # collect2, so additional links can be useful in future. | ||
15701 | if test "$aix_use_runtimelinking" = yes; then | ||
15702 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
15703 | # instead of lib<name>.a to let people know that these are not | ||
15704 | # typical AIX shared libraries. | ||
15705 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15706 | else | ||
15707 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
15708 | # and later when we are not doing run time linking. | ||
15709 | library_names_spec='${libname}${release}.a $libname.a' | ||
15710 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15711 | fi | ||
15712 | shlibpath_var=LIBPATH | ||
15713 | fi | ||
15714 | ;; | ||
15715 | |||
15716 | amigaos*) | ||
15717 | library_names_spec='$libname.ixlibrary $libname.a' | ||
15718 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
15719 | 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' | ||
15720 | ;; | ||
15721 | |||
15722 | beos*) | ||
15723 | library_names_spec='${libname}${shared_ext}' | ||
15724 | dynamic_linker="$host_os ld.so" | ||
15725 | shlibpath_var=LIBRARY_PATH | ||
15726 | ;; | ||
15727 | |||
15728 | bsdi4*) | ||
15729 | version_type=linux | ||
15730 | need_version=no | ||
15731 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15732 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15733 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
15734 | shlibpath_var=LD_LIBRARY_PATH | ||
15735 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
15736 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
15737 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
15738 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
15739 | # libtool to hard-code these into programs | ||
15740 | ;; | ||
15741 | |||
15742 | cygwin* | mingw* | pw32*) | ||
15743 | version_type=windows | ||
15744 | shrext_cmds=".dll" | ||
15745 | need_version=no | ||
15746 | need_lib_prefix=no | ||
15747 | |||
15748 | case $GCC,$host_os in | ||
15749 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
15750 | library_names_spec='$libname.dll.a' | ||
15751 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
15752 | postinstall_cmds='base_file=`basename \${file}`~ | ||
15753 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | ||
15754 | dldir=$destdir/`dirname \$dlpath`~ | ||
15755 | test -d \$dldir || mkdir -p \$dldir~ | ||
15756 | $install_prog $dir/$dlname \$dldir/$dlname' | ||
15757 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
15758 | dlpath=$dir/\$dldll~ | ||
15759 | $rm \$dlpath' | ||
15760 | shlibpath_overrides_runpath=yes | ||
15761 | |||
15762 | case $host_os in | ||
15763 | cygwin*) | ||
15764 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
15765 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
15766 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
15767 | ;; | ||
15768 | mingw*) | ||
15769 | # MinGW DLLs use traditional 'lib' prefix | ||
15770 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
15771 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
15772 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | ||
15773 | # It is most probably a Windows format PATH printed by | ||
15774 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
15775 | # path with ; separators, and with drive letters. We can handle the | ||
15776 | # drive letters (cygwin fileutils understands them), so leave them, | ||
15777 | # especially as we might pass files found there to a mingw objdump, | ||
15778 | # which wouldn't understand a cygwinified path. Ahh. | ||
15779 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
15780 | else | ||
15781 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
15782 | fi | ||
15783 | ;; | ||
15784 | pw32*) | ||
15785 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
15786 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | ||
15787 | ;; | ||
15788 | esac | ||
15789 | ;; | ||
15790 | |||
15791 | *) | ||
15792 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
15793 | ;; | ||
15794 | esac | ||
15795 | dynamic_linker='Win32 ld.exe' | ||
15796 | # FIXME: first we should search . and the directory the executable is in | ||
15797 | shlibpath_var=PATH | ||
15798 | ;; | ||
15799 | |||
15800 | darwin* | rhapsody*) | ||
15801 | dynamic_linker="$host_os dyld" | ||
15802 | version_type=darwin | ||
15803 | need_lib_prefix=no | ||
15804 | need_version=no | ||
15805 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
15806 | soname_spec='${libname}${release}${major}$shared_ext' | ||
15807 | shlibpath_overrides_runpath=yes | ||
15808 | shlibpath_var=DYLD_LIBRARY_PATH | ||
15809 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | ||
15810 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | ||
15811 | if test "$GCC" = yes; then | ||
15812 | 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"` | ||
15813 | else | ||
15814 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | ||
15815 | fi | ||
15816 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
15817 | ;; | ||
15818 | |||
15819 | dgux*) | ||
15820 | version_type=linux | ||
15821 | need_lib_prefix=no | ||
15822 | need_version=no | ||
15823 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
15824 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15825 | shlibpath_var=LD_LIBRARY_PATH | ||
15826 | ;; | ||
15827 | |||
15828 | freebsd1*) | ||
15829 | dynamic_linker=no | ||
15830 | ;; | ||
15831 | |||
15832 | kfreebsd*-gnu) | ||
15833 | version_type=linux | ||
15834 | need_lib_prefix=no | ||
15835 | need_version=no | ||
15836 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
15837 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15838 | shlibpath_var=LD_LIBRARY_PATH | ||
15839 | shlibpath_overrides_runpath=no | ||
15840 | hardcode_into_libs=yes | ||
15841 | dynamic_linker='GNU ld.so' | ||
15842 | ;; | ||
15843 | |||
15844 | freebsd*) | ||
15845 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | ||
15846 | version_type=freebsd-$objformat | ||
15847 | case $version_type in | ||
15848 | freebsd-elf*) | ||
15849 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
15850 | need_version=no | ||
15851 | need_lib_prefix=no | ||
15852 | ;; | ||
15853 | freebsd-*) | ||
15854 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
15855 | need_version=yes | ||
15856 | ;; | ||
15857 | esac | ||
15858 | shlibpath_var=LD_LIBRARY_PATH | ||
15859 | case $host_os in | ||
15860 | freebsd2*) | ||
15861 | shlibpath_overrides_runpath=yes | ||
15862 | ;; | ||
15863 | freebsd3.01* | freebsdelf3.01*) | ||
15864 | shlibpath_overrides_runpath=yes | ||
15865 | hardcode_into_libs=yes | ||
15866 | ;; | ||
15867 | *) # from 3.2 on | ||
15868 | shlibpath_overrides_runpath=no | ||
15869 | hardcode_into_libs=yes | ||
15870 | ;; | ||
15871 | esac | ||
15872 | ;; | ||
15873 | |||
15874 | gnu*) | ||
15875 | version_type=linux | ||
15876 | need_lib_prefix=no | ||
15877 | need_version=no | ||
15878 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
15879 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15880 | shlibpath_var=LD_LIBRARY_PATH | ||
15881 | hardcode_into_libs=yes | ||
15882 | ;; | ||
15883 | |||
15884 | hpux9* | hpux10* | hpux11*) | ||
15885 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
15886 | # link against other versions. | ||
15887 | version_type=sunos | ||
15888 | need_lib_prefix=no | ||
15889 | need_version=no | ||
15890 | case "$host_cpu" in | ||
15891 | ia64*) | ||
15892 | shrext_cmds='.so' | ||
15893 | hardcode_into_libs=yes | ||
15894 | dynamic_linker="$host_os dld.so" | ||
15895 | shlibpath_var=LD_LIBRARY_PATH | ||
15896 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
15897 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15898 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15899 | if test "X$HPUX_IA64_MODE" = X32; then | ||
15900 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
15901 | else | ||
15902 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
15903 | fi | ||
15904 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
15905 | ;; | ||
15906 | hppa*64*) | ||
15907 | shrext_cmds='.sl' | ||
15908 | hardcode_into_libs=yes | ||
15909 | dynamic_linker="$host_os dld.sl" | ||
15910 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
15911 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
15912 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15913 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15914 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
15915 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
15916 | ;; | ||
15917 | *) | ||
15918 | shrext_cmds='.sl' | ||
15919 | dynamic_linker="$host_os dld.sl" | ||
15920 | shlibpath_var=SHLIB_PATH | ||
15921 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
15922 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15923 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15924 | ;; | ||
15925 | esac | ||
15926 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
15927 | postinstall_cmds='chmod 555 $lib' | ||
15928 | ;; | ||
15929 | |||
15930 | irix5* | irix6* | nonstopux*) | ||
15931 | case $host_os in | ||
15932 | nonstopux*) version_type=nonstopux ;; | ||
15933 | *) | ||
15934 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
15935 | version_type=linux | ||
15936 | else | ||
15937 | version_type=irix | ||
15938 | fi ;; | ||
15939 | esac | ||
15940 | need_lib_prefix=no | ||
15941 | need_version=no | ||
15942 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
15944 | case $host_os in | ||
15945 | irix5* | nonstopux*) | ||
15946 | libsuff= shlibsuff= | ||
15947 | ;; | ||
15948 | *) | ||
15949 | case $LD in # libtool.m4 will add one of these switches to LD | ||
15950 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
15951 | libsuff= shlibsuff= libmagic=32-bit;; | ||
15952 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
15953 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
15954 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
15955 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
15956 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
15957 | esac | ||
15958 | ;; | ||
15959 | esac | ||
15960 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
15961 | shlibpath_overrides_runpath=no | ||
15962 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
15963 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
15964 | hardcode_into_libs=yes | ||
15965 | ;; | ||
15966 | |||
15967 | # No shared lib support for Linux oldld, aout, or coff. | ||
15968 | linux*oldld* | linux*aout* | linux*coff*) | ||
15969 | dynamic_linker=no | ||
15970 | ;; | ||
15971 | |||
15972 | # This must be Linux ELF. | ||
15973 | linux*) | ||
15974 | version_type=linux | ||
15975 | need_lib_prefix=no | ||
15976 | need_version=no | ||
15977 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
15978 | soname_spec='${libname}${release}${shared_ext}$major' | ||
15979 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
15980 | shlibpath_var=LD_LIBRARY_PATH | ||
15981 | shlibpath_overrides_runpath=no | ||
15982 | # This implies no fast_install, which is unacceptable. | ||
15983 | # Some rework will be needed to allow for fast_install | ||
15984 | # before this can be enabled. | ||
15985 | hardcode_into_libs=yes | ||
15986 | |||
15987 | # Append ld.so.conf contents to the search path | ||
15988 | if test -f /etc/ld.so.conf; then | ||
15989 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | ||
15990 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
15991 | fi | ||
15992 | |||
15993 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
15994 | # powerpc, because MkLinux only supported shared libraries with the | ||
15995 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
15996 | # most powerpc-linux boxes support dynamic linking these days and | ||
15997 | # people can always --disable-shared, the test was removed, and we | ||
15998 | # assume the GNU/Linux dynamic linker is in use. | ||
15999 | dynamic_linker='GNU/Linux ld.so' | ||
16000 | ;; | ||
16001 | |||
16002 | netbsdelf*-gnu) | ||
16003 | version_type=linux | ||
16004 | need_lib_prefix=no | ||
16005 | need_version=no | ||
16006 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
16007 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16008 | shlibpath_var=LD_LIBRARY_PATH | ||
16009 | shlibpath_overrides_runpath=no | ||
16010 | hardcode_into_libs=yes | ||
16011 | dynamic_linker='NetBSD ld.elf_so' | ||
16012 | ;; | ||
16013 | |||
16014 | knetbsd*-gnu) | ||
16015 | version_type=linux | ||
16016 | need_lib_prefix=no | ||
16017 | need_version=no | ||
16018 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
16019 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16020 | shlibpath_var=LD_LIBRARY_PATH | ||
16021 | shlibpath_overrides_runpath=no | ||
16022 | hardcode_into_libs=yes | ||
16023 | dynamic_linker='GNU ld.so' | ||
16024 | ;; | ||
16025 | |||
16026 | netbsd*) | ||
16027 | version_type=sunos | ||
16028 | need_lib_prefix=no | ||
16029 | need_version=no | ||
16030 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
16031 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
16032 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
16033 | dynamic_linker='NetBSD (a.out) ld.so' | ||
16034 | else | ||
16035 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
16036 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16037 | dynamic_linker='NetBSD ld.elf_so' | ||
16038 | fi | ||
16039 | shlibpath_var=LD_LIBRARY_PATH | ||
16040 | shlibpath_overrides_runpath=yes | ||
16041 | hardcode_into_libs=yes | ||
16042 | ;; | ||
16043 | |||
16044 | newsos6) | ||
16045 | version_type=linux | ||
16046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16047 | shlibpath_var=LD_LIBRARY_PATH | ||
16048 | shlibpath_overrides_runpath=yes | ||
16049 | ;; | ||
16050 | |||
16051 | nto-qnx*) | ||
16052 | version_type=linux | ||
16053 | need_lib_prefix=no | ||
16054 | need_version=no | ||
16055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16056 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16057 | shlibpath_var=LD_LIBRARY_PATH | ||
16058 | shlibpath_overrides_runpath=yes | ||
16059 | ;; | ||
16060 | |||
16061 | openbsd*) | ||
16062 | version_type=sunos | ||
16063 | need_lib_prefix=no | ||
16064 | need_version=yes | ||
16065 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
16066 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
16067 | shlibpath_var=LD_LIBRARY_PATH | ||
16068 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
16069 | case $host_os in | ||
16070 | openbsd2.[89] | openbsd2.[89].*) | ||
16071 | shlibpath_overrides_runpath=no | ||
16072 | ;; | ||
16073 | *) | ||
16074 | shlibpath_overrides_runpath=yes | ||
16075 | ;; | ||
16076 | esac | ||
16077 | else | ||
16078 | shlibpath_overrides_runpath=yes | ||
16079 | fi | ||
16080 | ;; | ||
16081 | |||
16082 | os2*) | ||
16083 | libname_spec='$name' | ||
16084 | shrext_cmds=".dll" | ||
16085 | need_lib_prefix=no | ||
16086 | library_names_spec='$libname${shared_ext} $libname.a' | ||
16087 | dynamic_linker='OS/2 ld.exe' | ||
16088 | shlibpath_var=LIBPATH | ||
16089 | ;; | ||
16090 | |||
16091 | osf3* | osf4* | osf5*) | ||
16092 | version_type=osf | ||
16093 | need_lib_prefix=no | ||
16094 | need_version=no | ||
16095 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16096 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16097 | shlibpath_var=LD_LIBRARY_PATH | ||
16098 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
16099 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
16100 | ;; | ||
16101 | |||
16102 | sco3.2v5*) | ||
16103 | version_type=osf | ||
16104 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16105 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16106 | shlibpath_var=LD_LIBRARY_PATH | ||
16107 | ;; | ||
16108 | |||
16109 | solaris*) | ||
16110 | version_type=linux | ||
16111 | need_lib_prefix=no | ||
16112 | need_version=no | ||
16113 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16114 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16115 | shlibpath_var=LD_LIBRARY_PATH | ||
16116 | shlibpath_overrides_runpath=yes | ||
16117 | hardcode_into_libs=yes | ||
16118 | # ldd complains unless libraries are executable | ||
16119 | postinstall_cmds='chmod +x $lib' | ||
16120 | ;; | ||
16121 | |||
16122 | sunos4*) | ||
16123 | version_type=sunos | ||
16124 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
16125 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
16126 | shlibpath_var=LD_LIBRARY_PATH | ||
16127 | shlibpath_overrides_runpath=yes | ||
16128 | if test "$with_gnu_ld" = yes; then | ||
16129 | need_lib_prefix=no | ||
16130 | fi | ||
16131 | need_version=yes | ||
16132 | ;; | ||
16133 | |||
16134 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
16135 | version_type=linux | ||
16136 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16137 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16138 | shlibpath_var=LD_LIBRARY_PATH | ||
16139 | case $host_vendor in | ||
16140 | sni) | ||
16141 | shlibpath_overrides_runpath=no | ||
16142 | need_lib_prefix=no | ||
16143 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
16144 | runpath_var=LD_RUN_PATH | ||
16145 | ;; | ||
16146 | siemens) | ||
16147 | need_lib_prefix=no | ||
16148 | ;; | ||
16149 | motorola) | ||
16150 | need_lib_prefix=no | ||
16151 | need_version=no | ||
16152 | shlibpath_overrides_runpath=no | ||
16153 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
16154 | ;; | ||
16155 | esac | ||
16156 | ;; | ||
16157 | |||
16158 | sysv4*MP*) | ||
16159 | if test -d /usr/nec ;then | ||
16160 | version_type=linux | ||
16161 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
16162 | soname_spec='$libname${shared_ext}.$major' | ||
16163 | shlibpath_var=LD_LIBRARY_PATH | ||
16164 | fi | ||
16165 | ;; | ||
16166 | |||
16167 | uts4*) | ||
16168 | version_type=linux | ||
16169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
16170 | soname_spec='${libname}${release}${shared_ext}$major' | ||
16171 | shlibpath_var=LD_LIBRARY_PATH | ||
16172 | ;; | ||
16173 | |||
16174 | *) | ||
16175 | dynamic_linker=no | ||
16176 | ;; | ||
16177 | esac | ||
16178 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | ||
16179 | echo "${ECHO_T}$dynamic_linker" >&6; } | ||
16180 | test "$dynamic_linker" = no && can_build_shared=no | ||
16181 | |||
16182 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | ||
16183 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | ||
16184 | hardcode_action_F77= | ||
16185 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | ||
16186 | test -n "$runpath_var F77" || \ | ||
16187 | test "X$hardcode_automatic_F77"="Xyes" ; then | ||
16188 | |||
16189 | # We can hardcode non-existant directories. | ||
16190 | if test "$hardcode_direct_F77" != no && | ||
16191 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
16192 | # have to relink, otherwise we might link with an installed library | ||
16193 | # when we should be linking with a yet-to-be-installed one | ||
16194 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | ||
16195 | test "$hardcode_minus_L_F77" != no; then | ||
16196 | # Linking always hardcodes the temporary library directory. | ||
16197 | hardcode_action_F77=relink | ||
16198 | else | ||
16199 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
16200 | hardcode_action_F77=immediate | ||
16201 | fi | ||
16202 | else | ||
16203 | # We cannot hardcode anything, or else we can only hardcode existing | ||
16204 | # directories. | ||
16205 | hardcode_action_F77=unsupported | ||
16206 | fi | ||
16207 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | ||
16208 | echo "${ECHO_T}$hardcode_action_F77" >&6; } | ||
16209 | |||
16210 | if test "$hardcode_action_F77" = relink; then | ||
16211 | # Fast installation is not supported | ||
16212 | enable_fast_install=no | ||
16213 | elif test "$shlibpath_overrides_runpath" = yes || | ||
16214 | test "$enable_shared" = no; then | ||
16215 | # Fast installation is not necessary | ||
16216 | enable_fast_install=needless | ||
16217 | fi | ||
16218 | |||
16219 | striplib= | ||
16220 | old_striplib= | ||
16221 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | ||
16222 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } | ||
16223 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
16224 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
16225 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
16226 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16227 | echo "${ECHO_T}yes" >&6; } | ||
16228 | else | ||
16229 | # FIXME - insert some real tests, host_os isn't really good enough | ||
16230 | case $host_os in | ||
16231 | darwin*) | ||
16232 | if test -n "$STRIP" ; then | ||
16233 | striplib="$STRIP -x" | ||
16234 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
16235 | echo "${ECHO_T}yes" >&6; } | ||
16236 | else | ||
16237 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16238 | echo "${ECHO_T}no" >&6; } | ||
16239 | fi | ||
16240 | ;; | ||
16241 | *) | ||
16242 | { echo "$as_me:$LINENO: result: no" >&5 | ||
16243 | echo "${ECHO_T}no" >&6; } | ||
16244 | ;; | ||
16245 | esac | ||
16246 | fi | ||
16247 | |||
16248 | |||
16249 | |||
16250 | # The else clause should only fire when bootstrapping the | ||
16251 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
16252 | # with your package, and you will get complaints that there are | ||
16253 | # no rules to generate ltmain.sh. | ||
16254 | if test -f "$ltmain"; then | ||
16255 | # See if we are running on zsh, and set the options which allow our commands through | ||
16256 | # without removal of \ escapes. | ||
16257 | if test -n "${ZSH_VERSION+set}" ; then | ||
16258 | setopt NO_GLOB_SUBST | ||
16259 | fi | ||
16260 | # Now quote all the things that may contain metacharacters while being | ||
16261 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
16262 | # variables and quote the copies for generation of the libtool script. | ||
16263 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | ||
16264 | SED SHELL STRIP \ | ||
16265 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
16266 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
16267 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
16268 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
16269 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
16270 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
16271 | old_postinstall_cmds old_postuninstall_cmds \ | ||
16272 | compiler_F77 \ | ||
16273 | CC_F77 \ | ||
16274 | LD_F77 \ | ||
16275 | lt_prog_compiler_wl_F77 \ | ||
16276 | lt_prog_compiler_pic_F77 \ | ||
16277 | lt_prog_compiler_static_F77 \ | ||
16278 | lt_prog_compiler_no_builtin_flag_F77 \ | ||
16279 | export_dynamic_flag_spec_F77 \ | ||
16280 | thread_safe_flag_spec_F77 \ | ||
16281 | whole_archive_flag_spec_F77 \ | ||
16282 | enable_shared_with_static_runtimes_F77 \ | ||
16283 | old_archive_cmds_F77 \ | ||
16284 | old_archive_from_new_cmds_F77 \ | ||
16285 | predep_objects_F77 \ | ||
16286 | postdep_objects_F77 \ | ||
16287 | predeps_F77 \ | ||
16288 | postdeps_F77 \ | ||
16289 | compiler_lib_search_path_F77 \ | ||
16290 | archive_cmds_F77 \ | ||
16291 | archive_expsym_cmds_F77 \ | ||
16292 | postinstall_cmds_F77 \ | ||
16293 | postuninstall_cmds_F77 \ | ||
16294 | old_archive_from_expsyms_cmds_F77 \ | ||
16295 | allow_undefined_flag_F77 \ | ||
16296 | no_undefined_flag_F77 \ | ||
16297 | export_symbols_cmds_F77 \ | ||
16298 | hardcode_libdir_flag_spec_F77 \ | ||
16299 | hardcode_libdir_flag_spec_ld_F77 \ | ||
16300 | hardcode_libdir_separator_F77 \ | ||
16301 | hardcode_automatic_F77 \ | ||
16302 | module_cmds_F77 \ | ||
16303 | module_expsym_cmds_F77 \ | ||
16304 | lt_cv_prog_compiler_c_o_F77 \ | ||
16305 | exclude_expsyms_F77 \ | ||
16306 | include_expsyms_F77; do | ||
16307 | |||
16308 | case $var in | ||
16309 | old_archive_cmds_F77 | \ | ||
16310 | old_archive_from_new_cmds_F77 | \ | ||
16311 | archive_cmds_F77 | \ | ||
16312 | archive_expsym_cmds_F77 | \ | ||
16313 | module_cmds_F77 | \ | ||
16314 | module_expsym_cmds_F77 | \ | ||
16315 | old_archive_from_expsyms_cmds_F77 | \ | ||
16316 | export_symbols_cmds_F77 | \ | ||
16317 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
16318 | postinstall_cmds | postuninstall_cmds | \ | ||
16319 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
16320 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
16321 | # Double-quote double-evaled strings. | ||
16322 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
16323 | ;; | ||
16324 | *) | ||
16325 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
16326 | ;; | ||
16327 | esac | ||
16328 | done | ||
16329 | |||
16330 | case $lt_echo in | ||
16331 | *'\$0 --fallback-echo"') | ||
16332 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | ||
16333 | ;; | ||
16334 | esac | ||
16335 | |||
16336 | cfgfile="$ofile" | ||
16337 | |||
16338 | cat <<__EOF__ >> "$cfgfile" | ||
16339 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | ||
16340 | |||
16341 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
16342 | |||
16343 | # Shell to use when invoking shell scripts. | ||
16344 | SHELL=$lt_SHELL | ||
16345 | |||
16346 | # Whether or not to build shared libraries. | ||
16347 | build_libtool_libs=$enable_shared | ||
16348 | |||
16349 | # Whether or not to build static libraries. | ||
16350 | build_old_libs=$enable_static | ||
16351 | |||
16352 | # Whether or not to add -lc for building shared libraries. | ||
16353 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | ||
16354 | |||
16355 | # Whether or not to disallow shared libs when runtime libs are static | ||
16356 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | ||
16357 | |||
16358 | # Whether or not to optimize for fast installation. | ||
16359 | fast_install=$enable_fast_install | ||
16360 | |||
16361 | # The host system. | ||
16362 | host_alias=$host_alias | ||
16363 | host=$host | ||
16364 | |||
16365 | # An echo program that does not interpret backslashes. | ||
16366 | echo=$lt_echo | ||
16367 | |||
16368 | # The archiver. | ||
16369 | AR=$lt_AR | ||
16370 | AR_FLAGS=$lt_AR_FLAGS | ||
16371 | |||
16372 | # A C compiler. | ||
16373 | LTCC=$lt_LTCC | ||
16374 | |||
16375 | # A language-specific compiler. | ||
16376 | CC=$lt_compiler_F77 | ||
16377 | |||
16378 | # Is the compiler the GNU C compiler? | ||
16379 | with_gcc=$GCC_F77 | ||
16380 | |||
16381 | # An ERE matcher. | ||
16382 | EGREP=$lt_EGREP | ||
16383 | |||
16384 | # The linker used to build libraries. | ||
16385 | LD=$lt_LD_F77 | ||
16386 | |||
16387 | # Whether we need hard or soft links. | ||
16388 | LN_S=$lt_LN_S | ||
16389 | |||
16390 | # A BSD-compatible nm program. | ||
16391 | NM=$lt_NM | ||
16392 | |||
16393 | # A symbol stripping program | ||
16394 | STRIP=$lt_STRIP | ||
16395 | |||
16396 | # Used to examine libraries when file_magic_cmd begins "file" | ||
16397 | MAGIC_CMD=$MAGIC_CMD | ||
16398 | |||
16399 | # Used on cygwin: DLL creation program. | ||
16400 | DLLTOOL="$DLLTOOL" | ||
16401 | |||
16402 | # Used on cygwin: object dumper. | ||
16403 | OBJDUMP="$OBJDUMP" | ||
16404 | |||
16405 | # Used on cygwin: assembler. | ||
16406 | AS="$AS" | ||
16407 | |||
16408 | # The name of the directory that contains temporary libtool files. | ||
16409 | objdir=$objdir | ||
16410 | |||
16411 | # How to create reloadable object files. | ||
16412 | reload_flag=$lt_reload_flag | ||
16413 | reload_cmds=$lt_reload_cmds | ||
16414 | |||
16415 | # How to pass a linker flag through the compiler. | ||
16416 | wl=$lt_lt_prog_compiler_wl_F77 | ||
16417 | |||
16418 | # Object file suffix (normally "o"). | ||
16419 | objext="$ac_objext" | ||
16420 | |||
16421 | # Old archive suffix (normally "a"). | ||
16422 | libext="$libext" | ||
16423 | |||
16424 | # Shared library suffix (normally ".so"). | ||
16425 | shrext_cmds='$shrext_cmds' | ||
16426 | |||
16427 | # Executable file suffix (normally ""). | ||
16428 | exeext="$exeext" | ||
16429 | |||
16430 | # Additional compiler flags for building library objects. | ||
16431 | pic_flag=$lt_lt_prog_compiler_pic_F77 | ||
16432 | pic_mode=$pic_mode | ||
16433 | |||
16434 | # What is the maximum length of a command? | ||
16435 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
16436 | |||
16437 | # Does compiler simultaneously support -c and -o options? | ||
16438 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | ||
16439 | |||
16440 | # Must we lock files when doing compilation ? | ||
16441 | need_locks=$lt_need_locks | ||
16442 | |||
16443 | # Do we need the lib prefix for modules? | ||
16444 | need_lib_prefix=$need_lib_prefix | ||
16445 | |||
16446 | # Do we need a version for libraries? | ||
16447 | need_version=$need_version | ||
16448 | |||
16449 | # Whether dlopen is supported. | ||
16450 | dlopen_support=$enable_dlopen | ||
16451 | |||
16452 | # Whether dlopen of programs is supported. | ||
16453 | dlopen_self=$enable_dlopen_self | ||
16454 | |||
16455 | # Whether dlopen of statically linked programs is supported. | ||
16456 | dlopen_self_static=$enable_dlopen_self_static | ||
16457 | |||
16458 | # Compiler flag to prevent dynamic linking. | ||
16459 | link_static_flag=$lt_lt_prog_compiler_static_F77 | ||
16460 | |||
16461 | # Compiler flag to turn off builtin functions. | ||
16462 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | ||
16463 | |||
16464 | # Compiler flag to allow reflexive dlopens. | ||
16465 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | ||
16466 | |||
16467 | # Compiler flag to generate shared objects directly from archives. | ||
16468 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | ||
16469 | |||
16470 | # Compiler flag to generate thread-safe objects. | ||
16471 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | ||
16472 | |||
16473 | # Library versioning type. | ||
16474 | version_type=$version_type | ||
16475 | |||
16476 | # Format of library name prefix. | ||
16477 | libname_spec=$lt_libname_spec | ||
16478 | |||
16479 | # List of archive names. First name is the real one, the rest are links. | ||
16480 | # The last name is the one that the linker finds with -lNAME. | ||
16481 | library_names_spec=$lt_library_names_spec | ||
16482 | |||
16483 | # The coded name of the library, if different from the real name. | ||
16484 | soname_spec=$lt_soname_spec | ||
16485 | |||
16486 | # Commands used to build and install an old-style archive. | ||
16487 | RANLIB=$lt_RANLIB | ||
16488 | old_archive_cmds=$lt_old_archive_cmds_F77 | ||
16489 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
16490 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
16491 | |||
16492 | # Create an old-style archive from a shared archive. | ||
16493 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | ||
16494 | |||
16495 | # Create a temporary old-style archive to link instead of a shared archive. | ||
16496 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | ||
16497 | |||
16498 | # Commands used to build and install a shared archive. | ||
16499 | archive_cmds=$lt_archive_cmds_F77 | ||
16500 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | ||
16501 | postinstall_cmds=$lt_postinstall_cmds | ||
16502 | postuninstall_cmds=$lt_postuninstall_cmds | ||
16503 | |||
16504 | # Commands used to build a loadable module (assumed same as above if empty) | ||
16505 | module_cmds=$lt_module_cmds_F77 | ||
16506 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | ||
16507 | |||
16508 | # Commands to strip libraries. | ||
16509 | old_striplib=$lt_old_striplib | ||
16510 | striplib=$lt_striplib | ||
16511 | |||
16512 | # Dependencies to place before the objects being linked to create a | ||
16513 | # shared library. | ||
16514 | predep_objects=$lt_predep_objects_F77 | ||
16515 | |||
16516 | # Dependencies to place after the objects being linked to create a | ||
16517 | # shared library. | ||
16518 | postdep_objects=$lt_postdep_objects_F77 | ||
16519 | |||
16520 | # Dependencies to place before the objects being linked to create a | ||
16521 | # shared library. | ||
16522 | predeps=$lt_predeps_F77 | ||
16523 | |||
16524 | # Dependencies to place after the objects being linked to create a | ||
16525 | # shared library. | ||
16526 | postdeps=$lt_postdeps_F77 | ||
16527 | |||
16528 | # The library search path used internally by the compiler when linking | ||
16529 | # a shared library. | ||
16530 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | ||
16531 | |||
16532 | # Method to check whether dependent libraries are shared objects. | ||
16533 | deplibs_check_method=$lt_deplibs_check_method | ||
16534 | |||
16535 | # Command to use when deplibs_check_method == file_magic. | ||
16536 | file_magic_cmd=$lt_file_magic_cmd | ||
16537 | |||
16538 | # Flag that allows shared libraries with undefined symbols to be built. | ||
16539 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | ||
16540 | |||
16541 | # Flag that forces no undefined symbols. | ||
16542 | no_undefined_flag=$lt_no_undefined_flag_F77 | ||
16543 | |||
16544 | # Commands used to finish a libtool library installation in a directory. | ||
16545 | finish_cmds=$lt_finish_cmds | ||
16546 | |||
16547 | # Same as above, but a single script fragment to be evaled but not shown. | ||
16548 | finish_eval=$lt_finish_eval | ||
16549 | |||
16550 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
16551 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
16552 | |||
16553 | # Transform the output of nm in a proper C declaration | ||
16554 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
16555 | |||
16556 | # Transform the output of nm in a C name address pair | ||
16557 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
16558 | |||
16559 | # This is the shared library runtime path variable. | ||
16560 | runpath_var=$runpath_var | ||
16561 | |||
16562 | # This is the shared library path variable. | ||
16563 | shlibpath_var=$shlibpath_var | ||
16564 | |||
16565 | # Is shlibpath searched before the hard-coded library search path? | ||
16566 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
16567 | |||
16568 | # How to hardcode a shared library path into an executable. | ||
16569 | hardcode_action=$hardcode_action_F77 | ||
16570 | |||
16571 | # Whether we should hardcode library paths into libraries. | ||
16572 | hardcode_into_libs=$hardcode_into_libs | ||
16573 | |||
16574 | # Flag to hardcode \$libdir into a binary during linking. | ||
16575 | # This must work even if \$libdir does not exist. | ||
16576 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | ||
16577 | |||
16578 | # If ld is used when linking, flag to hardcode \$libdir into | ||
16579 | # a binary during linking. This must work even if \$libdir does | ||
16580 | # not exist. | ||
16581 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | ||
16582 | |||
16583 | # Whether we need a single -rpath flag with a separated argument. | ||
16584 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | ||
16585 | |||
16586 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
16587 | # resulting binary. | ||
16588 | hardcode_direct=$hardcode_direct_F77 | ||
16589 | |||
16590 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
16591 | # resulting binary. | ||
16592 | hardcode_minus_L=$hardcode_minus_L_F77 | ||
16593 | |||
16594 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
16595 | # the resulting binary. | ||
16596 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | ||
16597 | |||
16598 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
16599 | # and all subsequent libraries and executables linked against it. | ||
16600 | hardcode_automatic=$hardcode_automatic_F77 | ||
16601 | |||
16602 | # Variables whose values should be saved in libtool wrapper scripts and | ||
16603 | # restored at relink time. | ||
16604 | variables_saved_for_relink="$variables_saved_for_relink" | ||
16605 | |||
16606 | # Whether libtool must link a program against all its dependency libraries. | ||
16607 | link_all_deplibs=$link_all_deplibs_F77 | ||
16608 | |||
16609 | # Compile-time system search path for libraries | ||
16610 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
16611 | |||
16612 | # Run-time system search path for libraries | ||
16613 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
16614 | |||
16615 | # Fix the shell variable \$srcfile for the compiler. | ||
16616 | fix_srcfile_path="$fix_srcfile_path_F77" | ||
16617 | |||
16618 | # Set to yes if exported symbols are required. | ||
16619 | always_export_symbols=$always_export_symbols_F77 | ||
16620 | |||
16621 | # The commands to list exported symbols. | ||
16622 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | ||
16623 | |||
16624 | # The commands to extract the exported symbol list from a shared archive. | ||
16625 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
16626 | |||
16627 | # Symbols that should not be listed in the preloaded symbols. | ||
16628 | exclude_expsyms=$lt_exclude_expsyms_F77 | ||
16629 | |||
16630 | # Symbols that must always be exported. | ||
16631 | include_expsyms=$lt_include_expsyms_F77 | ||
16632 | |||
16633 | # ### END LIBTOOL TAG CONFIG: $tagname | ||
16634 | |||
16635 | __EOF__ | ||
16636 | |||
16637 | |||
16638 | else | ||
16639 | # If there is no Makefile yet, we rely on a make rule to execute | ||
16640 | # `config.status --recheck' to rerun these tests and create the | ||
16641 | # libtool script then. | ||
16642 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
16643 | if test -f "$ltmain_in"; then | ||
16644 | test -f Makefile && make "$ltmain" | ||
16645 | fi | ||
16646 | fi | ||
16647 | |||
16648 | |||
16649 | ac_ext=c | ||
16650 | ac_cpp='$CPP $CPPFLAGS' | ||
16651 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
16652 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
16653 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
16654 | |||
16655 | CC="$lt_save_CC" | ||
16656 | |||
16657 | else | ||
16658 | tagname="" | ||
16659 | fi | ||
16660 | ;; | ||
16661 | |||
16662 | GCJ) | ||
16663 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | ||
16664 | |||
16665 | |||
16666 | # Source file extension for Java test sources. | ||
16667 | ac_ext=java | ||
16668 | |||
16669 | # Object file extension for compiled Java test sources. | ||
16670 | objext=o | ||
16671 | objext_GCJ=$objext | ||
16672 | |||
16673 | # Code to be used in simple compile tests | ||
16674 | lt_simple_compile_test_code="class foo {}\n" | ||
16675 | |||
16676 | # Code to be used in simple link tests | ||
16677 | lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' | ||
16678 | |||
16679 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
16680 | |||
16681 | # If no C compiler was specified, use CC. | ||
16682 | LTCC=${LTCC-"$CC"} | ||
16683 | |||
16684 | # Allow CC to be a program name with arguments. | ||
16685 | compiler=$CC | ||
16686 | |||
16687 | |||
16688 | # Allow CC to be a program name with arguments. | ||
16689 | lt_save_CC="$CC" | ||
16690 | CC=${GCJ-"gcj"} | ||
16691 | compiler=$CC | ||
16692 | compiler_GCJ=$CC | ||
16693 | |||
16694 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | ||
16695 | archive_cmds_need_lc_GCJ=no | ||
16696 | |||
16697 | ## CAVEAT EMPTOR: | ||
16698 | ## There is no encapsulation within the following macros, do not change | ||
16699 | ## the running order or otherwise move them around unless you know exactly | ||
16700 | ## what you are doing... | ||
16701 | |||
16702 | lt_prog_compiler_no_builtin_flag_GCJ= | ||
16703 | |||
16704 | if test "$GCC" = yes; then | ||
16705 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | ||
16706 | |||
16707 | |||
16708 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | ||
16709 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | ||
16710 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | ||
16711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16712 | else | ||
16713 | lt_cv_prog_compiler_rtti_exceptions=no | ||
16714 | ac_outfile=conftest.$ac_objext | ||
16715 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
16716 | lt_compiler_flag="-fno-rtti -fno-exceptions" | ||
16717 | # Insert the option either (1) after the last *FLAGS variable, or | ||
16718 | # (2) before a word containing "conftest.", or (3) at the end. | ||
16719 | # Note that $ac_compile itself does not contain backslashes and begins | ||
16720 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
16721 | # The option is referenced via a variable to avoid confusing sed. | ||
16722 | lt_compile=`echo "$ac_compile" | $SED \ | ||
16723 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
16724 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
16725 | -e 's:$: $lt_compiler_flag:'` | ||
16726 | (eval echo "\"\$as_me:16726: $lt_compile\"" >&5) | ||
16727 | (eval "$lt_compile" 2>conftest.err) | ||
16728 | ac_status=$? | ||
16729 | cat conftest.err >&5 | ||
16730 | echo "$as_me:16730: \$? = $ac_status" >&5 | ||
16731 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
16732 | # The compiler can only warn and ignore the option if not recognized | ||
16733 | # So say no if there are warnings | ||
16734 | if test ! -s conftest.err; then | ||
16735 | lt_cv_prog_compiler_rtti_exceptions=yes | ||
16736 | fi | ||
16737 | fi | ||
16738 | $rm conftest* | ||
16739 | |||
16740 | fi | ||
16741 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | ||
16742 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | ||
16743 | |||
16744 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | ||
16745 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | ||
16746 | else | ||
16747 | : | ||
16748 | fi | ||
16749 | |||
16750 | fi | ||
16751 | |||
16752 | lt_prog_compiler_wl_GCJ= | ||
16753 | lt_prog_compiler_pic_GCJ= | ||
16754 | lt_prog_compiler_static_GCJ= | ||
16755 | |||
16756 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | ||
16757 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | ||
16758 | |||
16759 | if test "$GCC" = yes; then | ||
16760 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
16761 | lt_prog_compiler_static_GCJ='-static' | ||
16762 | |||
16763 | case $host_os in | ||
16764 | aix*) | ||
16765 | # All AIX code is PIC. | ||
16766 | if test "$host_cpu" = ia64; then | ||
16767 | # AIX 5 now supports IA64 processor | ||
16768 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
16769 | fi | ||
16770 | ;; | ||
16771 | |||
16772 | amigaos*) | ||
16773 | # FIXME: we need at least 68020 code to build shared libraries, but | ||
16774 | # adding the `-m68020' flag to GCC prevents building anything better, | ||
16775 | # like `-m68040'. | ||
16776 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | ||
16777 | ;; | ||
16778 | |||
16779 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | ||
16780 | # PIC is the default for these OSes. | ||
16781 | ;; | ||
16782 | |||
16783 | mingw* | pw32* | os2*) | ||
16784 | # This hack is so that the source file can tell whether it is being | ||
16785 | # built for inclusion in a dll (and should export symbols for example). | ||
16786 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | ||
16787 | ;; | ||
16788 | |||
16789 | darwin* | rhapsody*) | ||
16790 | # PIC is the default on this platform | ||
16791 | # Common symbols not allowed in MH_DYLIB files | ||
16792 | lt_prog_compiler_pic_GCJ='-fno-common' | ||
16793 | ;; | ||
16794 | |||
16795 | msdosdjgpp*) | ||
16796 | # Just because we use GCC doesn't mean we suddenly get shared libraries | ||
16797 | # on systems that don't support them. | ||
16798 | lt_prog_compiler_can_build_shared_GCJ=no | ||
16799 | enable_shared=no | ||
16800 | ;; | ||
16801 | |||
16802 | sysv4*MP*) | ||
16803 | if test -d /usr/nec; then | ||
16804 | lt_prog_compiler_pic_GCJ=-Kconform_pic | ||
16805 | fi | ||
16806 | ;; | ||
16807 | |||
16808 | hpux*) | ||
16809 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
16810 | # not for PA HP-UX. | ||
16811 | case "$host_cpu" in | ||
16812 | hppa*64*|ia64*) | ||
16813 | # +Z the default | ||
16814 | ;; | ||
16815 | *) | ||
16816 | lt_prog_compiler_pic_GCJ='-fPIC' | ||
16817 | ;; | ||
16818 | esac | ||
16819 | ;; | ||
16820 | |||
16821 | *) | ||
16822 | lt_prog_compiler_pic_GCJ='-fPIC' | ||
16823 | ;; | ||
16824 | esac | ||
16825 | else | ||
16826 | # PORTME Check for flag to pass linker flags through the system compiler. | ||
16827 | case $host_os in | ||
16828 | aix*) | ||
16829 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
16830 | if test "$host_cpu" = ia64; then | ||
16831 | # AIX 5 now supports IA64 processor | ||
16832 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
16833 | else | ||
16834 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | ||
16835 | fi | ||
16836 | ;; | ||
16837 | |||
16838 | mingw* | pw32* | os2*) | ||
16839 | # This hack is so that the source file can tell whether it is being | ||
16840 | # built for inclusion in a dll (and should export symbols for example). | ||
16841 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | ||
16842 | ;; | ||
16843 | |||
16844 | hpux9* | hpux10* | hpux11*) | ||
16845 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
16846 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | ||
16847 | # not for PA HP-UX. | ||
16848 | case "$host_cpu" in | ||
16849 | hppa*64*|ia64*) | ||
16850 | # +Z the default | ||
16851 | ;; | ||
16852 | *) | ||
16853 | lt_prog_compiler_pic_GCJ='+Z' | ||
16854 | ;; | ||
16855 | esac | ||
16856 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | ||
16857 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | ||
16858 | ;; | ||
16859 | |||
16860 | irix5* | irix6* | nonstopux*) | ||
16861 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
16862 | # PIC (with -KPIC) is the default. | ||
16863 | lt_prog_compiler_static_GCJ='-non_shared' | ||
16864 | ;; | ||
16865 | |||
16866 | newsos6) | ||
16867 | lt_prog_compiler_pic_GCJ='-KPIC' | ||
16868 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
16869 | ;; | ||
16870 | |||
16871 | linux*) | ||
16872 | case $CC in | ||
16873 | icc* | ecc*) | ||
16874 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
16875 | lt_prog_compiler_pic_GCJ='-KPIC' | ||
16876 | lt_prog_compiler_static_GCJ='-static' | ||
16877 | ;; | ||
16878 | ccc*) | ||
16879 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
16880 | # All Alpha code is PIC. | ||
16881 | lt_prog_compiler_static_GCJ='-non_shared' | ||
16882 | ;; | ||
16883 | esac | ||
16884 | ;; | ||
16885 | |||
16886 | osf3* | osf4* | osf5*) | ||
16887 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
16888 | # All OSF/1 code is PIC. | ||
16889 | lt_prog_compiler_static_GCJ='-non_shared' | ||
16890 | ;; | ||
16891 | |||
16892 | sco3.2v5*) | ||
16893 | lt_prog_compiler_pic_GCJ='-Kpic' | ||
16894 | lt_prog_compiler_static_GCJ='-dn' | ||
16895 | ;; | ||
16896 | |||
16897 | solaris*) | ||
16898 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
16899 | lt_prog_compiler_pic_GCJ='-KPIC' | ||
16900 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
16901 | ;; | ||
16902 | |||
16903 | sunos4*) | ||
16904 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | ||
16905 | lt_prog_compiler_pic_GCJ='-PIC' | ||
16906 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
16907 | ;; | ||
16908 | |||
16909 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
16910 | lt_prog_compiler_wl_GCJ='-Wl,' | ||
16911 | lt_prog_compiler_pic_GCJ='-KPIC' | ||
16912 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
16913 | ;; | ||
16914 | |||
16915 | sysv4*MP*) | ||
16916 | if test -d /usr/nec ;then | ||
16917 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | ||
16918 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
16919 | fi | ||
16920 | ;; | ||
16921 | |||
16922 | uts4*) | ||
16923 | lt_prog_compiler_pic_GCJ='-pic' | ||
16924 | lt_prog_compiler_static_GCJ='-Bstatic' | ||
16925 | ;; | ||
16926 | |||
16927 | *) | ||
16928 | lt_prog_compiler_can_build_shared_GCJ=no | ||
16929 | ;; | ||
16930 | esac | ||
16931 | fi | ||
16932 | |||
16933 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | ||
16934 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } | ||
16935 | |||
16936 | # | ||
16937 | # Check to make sure the PIC flag actually works. | ||
16938 | # | ||
16939 | if test -n "$lt_prog_compiler_pic_GCJ"; then | ||
16940 | |||
16941 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | ||
16942 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } | ||
16943 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | ||
16944 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
16945 | else | ||
16946 | lt_prog_compiler_pic_works_GCJ=no | ||
16947 | ac_outfile=conftest.$ac_objext | ||
16948 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
16949 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | ||
16950 | # Insert the option either (1) after the last *FLAGS variable, or | ||
16951 | # (2) before a word containing "conftest.", or (3) at the end. | ||
16952 | # Note that $ac_compile itself does not contain backslashes and begins | ||
16953 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
16954 | # The option is referenced via a variable to avoid confusing sed. | ||
16955 | lt_compile=`echo "$ac_compile" | $SED \ | ||
16956 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
16957 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
16958 | -e 's:$: $lt_compiler_flag:'` | ||
16959 | (eval echo "\"\$as_me:16959: $lt_compile\"" >&5) | ||
16960 | (eval "$lt_compile" 2>conftest.err) | ||
16961 | ac_status=$? | ||
16962 | cat conftest.err >&5 | ||
16963 | echo "$as_me:16963: \$? = $ac_status" >&5 | ||
16964 | if (exit $ac_status) && test -s "$ac_outfile"; then | ||
16965 | # The compiler can only warn and ignore the option if not recognized | ||
16966 | # So say no if there are warnings | ||
16967 | if test ! -s conftest.err; then | ||
16968 | lt_prog_compiler_pic_works_GCJ=yes | ||
16969 | fi | ||
16970 | fi | ||
16971 | $rm conftest* | ||
16972 | |||
16973 | fi | ||
16974 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | ||
16975 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } | ||
16976 | |||
16977 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | ||
16978 | case $lt_prog_compiler_pic_GCJ in | ||
16979 | "" | " "*) ;; | ||
16980 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | ||
16981 | esac | ||
16982 | else | ||
16983 | lt_prog_compiler_pic_GCJ= | ||
16984 | lt_prog_compiler_can_build_shared_GCJ=no | ||
16985 | fi | ||
16986 | |||
16987 | fi | ||
16988 | case "$host_os" in | ||
16989 | # For platforms which do not support PIC, -DPIC is meaningless: | ||
16990 | *djgpp*) | ||
16991 | lt_prog_compiler_pic_GCJ= | ||
16992 | ;; | ||
16993 | *) | ||
16994 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | ||
16995 | ;; | ||
16996 | esac | ||
16997 | |||
16998 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | ||
16999 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | ||
17000 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | ||
17001 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
17002 | else | ||
17003 | lt_cv_prog_compiler_c_o_GCJ=no | ||
17004 | $rm -r conftest 2>/dev/null | ||
17005 | mkdir conftest | ||
17006 | cd conftest | ||
17007 | mkdir out | ||
17008 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
17009 | |||
17010 | lt_compiler_flag="-o out/conftest2.$ac_objext" | ||
17011 | # Insert the option either (1) after the last *FLAGS variable, or | ||
17012 | # (2) before a word containing "conftest.", or (3) at the end. | ||
17013 | # Note that $ac_compile itself does not contain backslashes and begins | ||
17014 | # with a dollar sign (not a hyphen), so the echo should work correctly. | ||
17015 | lt_compile=`echo "$ac_compile" | $SED \ | ||
17016 | -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ | ||
17017 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | ||
17018 | -e 's:$: $lt_compiler_flag:'` | ||
17019 | (eval echo "\"\$as_me:17019: $lt_compile\"" >&5) | ||
17020 | (eval "$lt_compile" 2>out/conftest.err) | ||
17021 | ac_status=$? | ||
17022 | cat out/conftest.err >&5 | ||
17023 | echo "$as_me:17023: \$? = $ac_status" >&5 | ||
17024 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | ||
17025 | then | ||
17026 | # The compiler can only warn and ignore the option if not recognized | ||
17027 | # So say no if there are warnings | ||
17028 | if test ! -s out/conftest.err; then | ||
17029 | lt_cv_prog_compiler_c_o_GCJ=yes | ||
17030 | fi | ||
17031 | fi | ||
17032 | chmod u+w . | ||
17033 | $rm conftest* | ||
17034 | # SGI C++ compiler will create directory out/ii_files/ for | ||
17035 | # template instantiation | ||
17036 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | ||
17037 | $rm out/* && rmdir out | ||
17038 | cd .. | ||
17039 | rmdir conftest | ||
17040 | $rm conftest* | ||
17041 | |||
17042 | fi | ||
17043 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | ||
17044 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } | ||
17045 | |||
17046 | |||
17047 | hard_links="nottested" | ||
17048 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | ||
17049 | # do not overwrite the value of need_locks provided by the user | ||
17050 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | ||
17051 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | ||
17052 | hard_links=yes | ||
17053 | $rm conftest* | ||
17054 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
17055 | touch conftest.a | ||
17056 | ln conftest.a conftest.b 2>&5 || hard_links=no | ||
17057 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | ||
17058 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | ||
17059 | echo "${ECHO_T}$hard_links" >&6; } | ||
17060 | if test "$hard_links" = no; then | ||
17061 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | ||
17062 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | ||
17063 | need_locks=warn | ||
17064 | fi | ||
17065 | else | ||
17066 | need_locks=no | ||
17067 | fi | ||
17068 | |||
17069 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | ||
17070 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | ||
17071 | |||
17072 | runpath_var= | ||
17073 | allow_undefined_flag_GCJ= | ||
17074 | enable_shared_with_static_runtimes_GCJ=no | ||
17075 | archive_cmds_GCJ= | ||
17076 | archive_expsym_cmds_GCJ= | ||
17077 | old_archive_From_new_cmds_GCJ= | ||
17078 | old_archive_from_expsyms_cmds_GCJ= | ||
17079 | export_dynamic_flag_spec_GCJ= | ||
17080 | whole_archive_flag_spec_GCJ= | ||
17081 | thread_safe_flag_spec_GCJ= | ||
17082 | hardcode_libdir_flag_spec_GCJ= | ||
17083 | hardcode_libdir_flag_spec_ld_GCJ= | ||
17084 | hardcode_libdir_separator_GCJ= | ||
17085 | hardcode_direct_GCJ=no | ||
17086 | hardcode_minus_L_GCJ=no | ||
17087 | hardcode_shlibpath_var_GCJ=unsupported | ||
17088 | link_all_deplibs_GCJ=unknown | ||
17089 | hardcode_automatic_GCJ=no | ||
17090 | module_cmds_GCJ= | ||
17091 | module_expsym_cmds_GCJ= | ||
17092 | always_export_symbols_GCJ=no | ||
17093 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | ||
17094 | # include_expsyms should be a list of space-separated symbols to be *always* | ||
17095 | # included in the symbol list | ||
17096 | include_expsyms_GCJ= | ||
17097 | # exclude_expsyms can be an extended regexp of symbols to exclude | ||
17098 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | ||
17099 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | ||
17100 | # as well as any symbol that contains `d'. | ||
17101 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | ||
17102 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | ||
17103 | # platforms (ab)use it in PIC code, but their linkers get confused if | ||
17104 | # the symbol is explicitly referenced. Since portable code cannot | ||
17105 | # rely on this symbol name, it's probably fine to never include it in | ||
17106 | # preloaded symbol tables. | ||
17107 | extract_expsyms_cmds= | ||
17108 | |||
17109 | case $host_os in | ||
17110 | cygwin* | mingw* | pw32*) | ||
17111 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | ||
17112 | # When not using gcc, we currently assume that we are using | ||
17113 | # Microsoft Visual C++. | ||
17114 | if test "$GCC" != yes; then | ||
17115 | with_gnu_ld=no | ||
17116 | fi | ||
17117 | ;; | ||
17118 | openbsd*) | ||
17119 | with_gnu_ld=no | ||
17120 | ;; | ||
17121 | esac | ||
17122 | |||
17123 | ld_shlibs_GCJ=yes | ||
17124 | if test "$with_gnu_ld" = yes; then | ||
17125 | # If archive_cmds runs LD, not CC, wlarc should be empty | ||
17126 | wlarc='${wl}' | ||
17127 | |||
17128 | # See if GNU ld supports shared libraries. | ||
17129 | case $host_os in | ||
17130 | aix3* | aix4* | aix5*) | ||
17131 | # On AIX/PPC, the GNU linker is very broken | ||
17132 | if test "$host_cpu" != ia64; then | ||
17133 | ld_shlibs_GCJ=no | ||
17134 | cat <<EOF 1>&2 | ||
17135 | |||
17136 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | ||
17137 | *** to be unable to reliably create shared libraries on AIX. | ||
17138 | *** Therefore, libtool is disabling shared libraries support. If you | ||
17139 | *** really care for shared libraries, you may want to modify your PATH | ||
17140 | *** so that a non-GNU linker is found, and then restart. | ||
17141 | |||
17142 | EOF | ||
17143 | fi | ||
17144 | ;; | ||
17145 | |||
17146 | amigaos*) | ||
17147 | 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)' | ||
17148 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
17149 | hardcode_minus_L_GCJ=yes | ||
17150 | |||
17151 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | ||
17152 | # that the semantics of dynamic libraries on AmigaOS, at least up | ||
17153 | # to version 4, is to share data among multiple programs linked | ||
17154 | # with the same dynamic library. Since this doesn't match the | ||
17155 | # behavior of shared libraries on other platforms, we can't use | ||
17156 | # them. | ||
17157 | ld_shlibs_GCJ=no | ||
17158 | ;; | ||
17159 | |||
17160 | beos*) | ||
17161 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
17162 | allow_undefined_flag_GCJ=unsupported | ||
17163 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | ||
17164 | # support --undefined. This deserves some investigation. FIXME | ||
17165 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
17166 | else | ||
17167 | ld_shlibs_GCJ=no | ||
17168 | fi | ||
17169 | ;; | ||
17170 | |||
17171 | cygwin* | mingw* | pw32*) | ||
17172 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | ||
17173 | # as there is no search path for DLLs. | ||
17174 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
17175 | allow_undefined_flag_GCJ=unsupported | ||
17176 | always_export_symbols_GCJ=no | ||
17177 | enable_shared_with_static_runtimes_GCJ=yes | ||
17178 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | ||
17179 | |||
17180 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | ||
17181 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | ||
17182 | # If the export-symbols file already is a .def file (1st line | ||
17183 | # is EXPORTS), use it as is; otherwise, prepend... | ||
17184 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | ||
17185 | cp $export_symbols $output_objdir/$soname.def; | ||
17186 | else | ||
17187 | echo EXPORTS > $output_objdir/$soname.def; | ||
17188 | cat $export_symbols >> $output_objdir/$soname.def; | ||
17189 | fi~ | ||
17190 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' | ||
17191 | else | ||
17192 | ld_shlibs=no | ||
17193 | fi | ||
17194 | ;; | ||
17195 | |||
17196 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
17197 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
17198 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | ||
17199 | wlarc= | ||
17200 | else | ||
17201 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
17202 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
17203 | fi | ||
17204 | ;; | ||
17205 | |||
17206 | solaris* | sysv5*) | ||
17207 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | ||
17208 | ld_shlibs_GCJ=no | ||
17209 | cat <<EOF 1>&2 | ||
17210 | |||
17211 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | ||
17212 | *** create shared libraries on Solaris systems. Therefore, libtool | ||
17213 | *** is disabling shared libraries support. We urge you to upgrade GNU | ||
17214 | *** binutils to release 2.9.1 or newer. Another option is to modify | ||
17215 | *** your PATH or compiler configuration so that the native linker is | ||
17216 | *** used, and then restart. | ||
17217 | |||
17218 | EOF | ||
17219 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
17220 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
17221 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
17222 | else | ||
17223 | ld_shlibs_GCJ=no | ||
17224 | fi | ||
17225 | ;; | ||
17226 | |||
17227 | sunos4*) | ||
17228 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
17229 | wlarc= | ||
17230 | hardcode_direct_GCJ=yes | ||
17231 | hardcode_shlibpath_var_GCJ=no | ||
17232 | ;; | ||
17233 | |||
17234 | linux*) | ||
17235 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
17236 | tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
17237 | archive_cmds_GCJ="$tmp_archive_cmds" | ||
17238 | supports_anon_versioning=no | ||
17239 | case `$LD -v 2>/dev/null` in | ||
17240 | *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | ||
17241 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | ||
17242 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | ||
17243 | *\ 2.11.*) ;; # other 2.11 versions | ||
17244 | *) supports_anon_versioning=yes ;; | ||
17245 | esac | ||
17246 | if test $supports_anon_versioning = yes; then | ||
17247 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | ||
17248 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | ||
17249 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | ||
17250 | $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | ||
17251 | else | ||
17252 | archive_expsym_cmds_GCJ="$tmp_archive_cmds" | ||
17253 | fi | ||
17254 | link_all_deplibs_GCJ=no | ||
17255 | else | ||
17256 | ld_shlibs_GCJ=no | ||
17257 | fi | ||
17258 | ;; | ||
17259 | |||
17260 | *) | ||
17261 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | ||
17262 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | ||
17263 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | ||
17264 | else | ||
17265 | ld_shlibs_GCJ=no | ||
17266 | fi | ||
17267 | ;; | ||
17268 | esac | ||
17269 | |||
17270 | if test "$ld_shlibs_GCJ" = yes; then | ||
17271 | runpath_var=LD_RUN_PATH | ||
17272 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | ||
17273 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | ||
17274 | # ancient GNU ld didn't support --whole-archive et. al. | ||
17275 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | ||
17276 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | ||
17277 | else | ||
17278 | whole_archive_flag_spec_GCJ= | ||
17279 | fi | ||
17280 | fi | ||
17281 | else | ||
17282 | # PORTME fill in a description of your system's linker (not GNU ld) | ||
17283 | case $host_os in | ||
17284 | aix3*) | ||
17285 | allow_undefined_flag_GCJ=unsupported | ||
17286 | always_export_symbols_GCJ=yes | ||
17287 | 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' | ||
17288 | # Note: this linker hardcodes the directories in LIBPATH if there | ||
17289 | # are no directories specified by -L. | ||
17290 | hardcode_minus_L_GCJ=yes | ||
17291 | if test "$GCC" = yes && test -z "$link_static_flag"; then | ||
17292 | # Neither direct hardcoding nor static linking is supported with a | ||
17293 | # broken collect2. | ||
17294 | hardcode_direct_GCJ=unsupported | ||
17295 | fi | ||
17296 | ;; | ||
17297 | |||
17298 | aix4* | aix5*) | ||
17299 | if test "$host_cpu" = ia64; then | ||
17300 | # On IA64, the linker does run time linking by default, so we don't | ||
17301 | # have to do anything special. | ||
17302 | aix_use_runtimelinking=no | ||
17303 | exp_sym_flag='-Bexport' | ||
17304 | no_entry_flag="" | ||
17305 | else | ||
17306 | # If we're using GNU nm, then we don't want the "-C" option. | ||
17307 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | ||
17308 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | ||
17309 | 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' | ||
17310 | else | ||
17311 | 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' | ||
17312 | fi | ||
17313 | aix_use_runtimelinking=no | ||
17314 | |||
17315 | # Test if we are trying to use run time linking or normal | ||
17316 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | ||
17317 | # need to do runtime linking. | ||
17318 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | ||
17319 | for ld_flag in $LDFLAGS; do | ||
17320 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | ||
17321 | aix_use_runtimelinking=yes | ||
17322 | break | ||
17323 | fi | ||
17324 | done | ||
17325 | esac | ||
17326 | |||
17327 | exp_sym_flag='-bexport' | ||
17328 | no_entry_flag='-bnoentry' | ||
17329 | fi | ||
17330 | |||
17331 | # When large executables or shared objects are built, AIX ld can | ||
17332 | # have problems creating the table of contents. If linking a library | ||
17333 | # or program results in "error TOC overflow" add -mminimal-toc to | ||
17334 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | ||
17335 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | ||
17336 | |||
17337 | archive_cmds_GCJ='' | ||
17338 | hardcode_direct_GCJ=yes | ||
17339 | hardcode_libdir_separator_GCJ=':' | ||
17340 | link_all_deplibs_GCJ=yes | ||
17341 | |||
17342 | if test "$GCC" = yes; then | ||
17343 | case $host_os in aix4.012|aix4.012.*) | ||
17344 | # We only want to do this on AIX 4.2 and lower, the check | ||
17345 | # below for broken collect2 doesn't work under 4.3+ | ||
17346 | collect2name=`${CC} -print-prog-name=collect2` | ||
17347 | if test -f "$collect2name" && \ | ||
17348 | strings "$collect2name" | grep resolve_lib_name >/dev/null | ||
17349 | then | ||
17350 | # We have reworked collect2 | ||
17351 | hardcode_direct_GCJ=yes | ||
17352 | else | ||
17353 | # We have old collect2 | ||
17354 | hardcode_direct_GCJ=unsupported | ||
17355 | # It fails to find uninstalled libraries when the uninstalled | ||
17356 | # path is not listed in the libpath. Setting hardcode_minus_L | ||
17357 | # to unsupported forces relinking | ||
17358 | hardcode_minus_L_GCJ=yes | ||
17359 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
17360 | hardcode_libdir_separator_GCJ= | ||
17361 | fi | ||
17362 | esac | ||
17363 | shared_flag='-shared' | ||
17364 | else | ||
17365 | # not using gcc | ||
17366 | if test "$host_cpu" = ia64; then | ||
17367 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | ||
17368 | # chokes on -Wl,-G. The following line is correct: | ||
17369 | shared_flag='-G' | ||
17370 | else | ||
17371 | if test "$aix_use_runtimelinking" = yes; then | ||
17372 | shared_flag='${wl}-G' | ||
17373 | else | ||
17374 | shared_flag='${wl}-bM:SRE' | ||
17375 | fi | ||
17376 | fi | ||
17377 | fi | ||
17378 | |||
17379 | # It seems that -bexpall does not export symbols beginning with | ||
17380 | # underscore (_), so it is better to generate a list of symbols to export. | ||
17381 | always_export_symbols_GCJ=yes | ||
17382 | if test "$aix_use_runtimelinking" = yes; then | ||
17383 | # Warning - without using the other runtime loading flags (-brtl), | ||
17384 | # -berok will link without error, but may produce a broken library. | ||
17385 | allow_undefined_flag_GCJ='-berok' | ||
17386 | # Determine the default libpath from the value encoded in an empty executable. | ||
17387 | cat >conftest.$ac_ext <<_ACEOF | ||
17388 | /* confdefs.h. */ | ||
17389 | _ACEOF | ||
17390 | cat confdefs.h >>conftest.$ac_ext | ||
17391 | cat >>conftest.$ac_ext <<_ACEOF | ||
17392 | /* end confdefs.h. */ | ||
17393 | |||
17394 | int | ||
17395 | main () | ||
17396 | { | ||
17397 | |||
17398 | ; | ||
17399 | return 0; | ||
17400 | } | ||
17401 | _ACEOF | ||
17402 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17403 | if { (ac_try="$ac_link" | ||
17404 | case "(($ac_try" in | ||
17405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17406 | *) ac_try_echo=$ac_try;; | ||
17407 | esac | ||
17408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17409 | (eval "$ac_link") 2>conftest.er1 | ||
17410 | ac_status=$? | ||
17411 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17412 | rm -f conftest.er1 | ||
17413 | cat conftest.err >&5 | ||
17414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17415 | (exit $ac_status); } && { | ||
17416 | test -z "$ac_c_werror_flag" || | ||
17417 | test ! -s conftest.err | ||
17418 | } && test -s conftest$ac_exeext && | ||
17419 | $as_test_x conftest$ac_exeext; then | ||
17420 | |||
17421 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
17422 | }'` | ||
17423 | # Check for a 64-bit object if we didn't find anything. | ||
17424 | 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; } | ||
17425 | }'`; fi | ||
17426 | else | ||
17427 | echo "$as_me: failed program was:" >&5 | ||
17428 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17429 | |||
17430 | |||
17431 | fi | ||
17432 | |||
17433 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17434 | conftest$ac_exeext conftest.$ac_ext | ||
17435 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
17436 | |||
17437 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
17438 | 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" | ||
17439 | else | ||
17440 | if test "$host_cpu" = ia64; then | ||
17441 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | ||
17442 | allow_undefined_flag_GCJ="-z nodefs" | ||
17443 | 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" | ||
17444 | else | ||
17445 | # Determine the default libpath from the value encoded in an empty executable. | ||
17446 | cat >conftest.$ac_ext <<_ACEOF | ||
17447 | /* confdefs.h. */ | ||
17448 | _ACEOF | ||
17449 | cat confdefs.h >>conftest.$ac_ext | ||
17450 | cat >>conftest.$ac_ext <<_ACEOF | ||
17451 | /* end confdefs.h. */ | ||
17452 | |||
17453 | int | ||
17454 | main () | ||
17455 | { | ||
17456 | |||
17457 | ; | ||
17458 | return 0; | ||
17459 | } | ||
17460 | _ACEOF | ||
17461 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
17462 | if { (ac_try="$ac_link" | ||
17463 | case "(($ac_try" in | ||
17464 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
17465 | *) ac_try_echo=$ac_try;; | ||
17466 | esac | ||
17467 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
17468 | (eval "$ac_link") 2>conftest.er1 | ||
17469 | ac_status=$? | ||
17470 | grep -v '^ *+' conftest.er1 >conftest.err | ||
17471 | rm -f conftest.er1 | ||
17472 | cat conftest.err >&5 | ||
17473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17474 | (exit $ac_status); } && { | ||
17475 | test -z "$ac_c_werror_flag" || | ||
17476 | test ! -s conftest.err | ||
17477 | } && test -s conftest$ac_exeext && | ||
17478 | $as_test_x conftest$ac_exeext; then | ||
17479 | |||
17480 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | ||
17481 | }'` | ||
17482 | # Check for a 64-bit object if we didn't find anything. | ||
17483 | 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; } | ||
17484 | }'`; fi | ||
17485 | else | ||
17486 | echo "$as_me: failed program was:" >&5 | ||
17487 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
17488 | |||
17489 | |||
17490 | fi | ||
17491 | |||
17492 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
17493 | conftest$ac_exeext conftest.$ac_ext | ||
17494 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | ||
17495 | |||
17496 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | ||
17497 | # Warning - without using the other run time loading flags, | ||
17498 | # -berok will link without error, but may produce a broken library. | ||
17499 | no_undefined_flag_GCJ=' ${wl}-bernotok' | ||
17500 | allow_undefined_flag_GCJ=' ${wl}-berok' | ||
17501 | # -bexpall does not export symbols beginning with underscore (_) | ||
17502 | always_export_symbols_GCJ=yes | ||
17503 | # Exported symbols can be pulled into shared objects from archives | ||
17504 | whole_archive_flag_spec_GCJ=' ' | ||
17505 | archive_cmds_need_lc_GCJ=yes | ||
17506 | # This is similar to how AIX traditionally builds it's shared libraries. | ||
17507 | 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' | ||
17508 | fi | ||
17509 | fi | ||
17510 | ;; | ||
17511 | |||
17512 | amigaos*) | ||
17513 | 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)' | ||
17514 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
17515 | hardcode_minus_L_GCJ=yes | ||
17516 | # see comment about different semantics on the GNU ld section | ||
17517 | ld_shlibs_GCJ=no | ||
17518 | ;; | ||
17519 | |||
17520 | bsdi4*) | ||
17521 | export_dynamic_flag_spec_GCJ=-rdynamic | ||
17522 | ;; | ||
17523 | |||
17524 | cygwin* | mingw* | pw32*) | ||
17525 | # When not using gcc, we currently assume that we are using | ||
17526 | # Microsoft Visual C++. | ||
17527 | # hardcode_libdir_flag_spec is actually meaningless, as there is | ||
17528 | # no search path for DLLs. | ||
17529 | hardcode_libdir_flag_spec_GCJ=' ' | ||
17530 | allow_undefined_flag_GCJ=unsupported | ||
17531 | # Tell ltmain to make .lib files, not .a files. | ||
17532 | libext=lib | ||
17533 | # Tell ltmain to make .dll files, not .so files. | ||
17534 | shrext_cmds=".dll" | ||
17535 | # FIXME: Setting linknames here is a bad hack. | ||
17536 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | ||
17537 | # The linker will automatically build a .lib file if we build a DLL. | ||
17538 | old_archive_From_new_cmds_GCJ='true' | ||
17539 | # FIXME: Should let the user specify the lib program. | ||
17540 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | ||
17541 | fix_srcfile_path='`cygpath -w "$srcfile"`' | ||
17542 | enable_shared_with_static_runtimes_GCJ=yes | ||
17543 | ;; | ||
17544 | |||
17545 | darwin* | rhapsody*) | ||
17546 | if test "$GXX" = yes ; then | ||
17547 | archive_cmds_need_lc_GCJ=no | ||
17548 | case "$host_os" in | ||
17549 | rhapsody* | darwin1.[012]) | ||
17550 | allow_undefined_flag_GCJ='-undefined suppress' | ||
17551 | ;; | ||
17552 | *) # Darwin 1.3 on | ||
17553 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | ||
17554 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' | ||
17555 | else | ||
17556 | case ${MACOSX_DEPLOYMENT_TARGET} in | ||
17557 | 10.[012]) | ||
17558 | allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' | ||
17559 | ;; | ||
17560 | 10.*) | ||
17561 | allow_undefined_flag_GCJ='-undefined dynamic_lookup' | ||
17562 | ;; | ||
17563 | esac | ||
17564 | fi | ||
17565 | ;; | ||
17566 | esac | ||
17567 | lt_int_apple_cc_single_mod=no | ||
17568 | output_verbose_link_cmd='echo' | ||
17569 | if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then | ||
17570 | lt_int_apple_cc_single_mod=yes | ||
17571 | fi | ||
17572 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
17573 | archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | ||
17574 | else | ||
17575 | 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' | ||
17576 | fi | ||
17577 | module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | ||
17578 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's | ||
17579 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | ||
17580 | 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}' | ||
17581 | else | ||
17582 | 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}' | ||
17583 | fi | ||
17584 | 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}' | ||
17585 | hardcode_direct_GCJ=no | ||
17586 | hardcode_automatic_GCJ=yes | ||
17587 | hardcode_shlibpath_var_GCJ=unsupported | ||
17588 | whole_archive_flag_spec_GCJ='-all_load $convenience' | ||
17589 | link_all_deplibs_GCJ=yes | ||
17590 | else | ||
17591 | ld_shlibs_GCJ=no | ||
17592 | fi | ||
17593 | ;; | ||
17594 | |||
17595 | dgux*) | ||
17596 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17597 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
17598 | hardcode_shlibpath_var_GCJ=no | ||
17599 | ;; | ||
17600 | |||
17601 | freebsd1*) | ||
17602 | ld_shlibs_GCJ=no | ||
17603 | ;; | ||
17604 | |||
17605 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | ||
17606 | # support. Future versions do this automatically, but an explicit c++rt0.o | ||
17607 | # does not break anything, and helps significantly (at the cost of a little | ||
17608 | # extra space). | ||
17609 | freebsd2.2*) | ||
17610 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | ||
17611 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | ||
17612 | hardcode_direct_GCJ=yes | ||
17613 | hardcode_shlibpath_var_GCJ=no | ||
17614 | ;; | ||
17615 | |||
17616 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | ||
17617 | freebsd2*) | ||
17618 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
17619 | hardcode_direct_GCJ=yes | ||
17620 | hardcode_minus_L_GCJ=yes | ||
17621 | hardcode_shlibpath_var_GCJ=no | ||
17622 | ;; | ||
17623 | |||
17624 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | ||
17625 | freebsd* | kfreebsd*-gnu) | ||
17626 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | ||
17627 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | ||
17628 | hardcode_direct_GCJ=yes | ||
17629 | hardcode_shlibpath_var_GCJ=no | ||
17630 | ;; | ||
17631 | |||
17632 | hpux9*) | ||
17633 | if test "$GCC" = yes; then | ||
17634 | 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' | ||
17635 | else | ||
17636 | 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' | ||
17637 | fi | ||
17638 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | ||
17639 | hardcode_libdir_separator_GCJ=: | ||
17640 | hardcode_direct_GCJ=yes | ||
17641 | |||
17642 | # hardcode_minus_L: Not really in the search PATH, | ||
17643 | # but as the default location of the library. | ||
17644 | hardcode_minus_L_GCJ=yes | ||
17645 | export_dynamic_flag_spec_GCJ='${wl}-E' | ||
17646 | ;; | ||
17647 | |||
17648 | hpux10* | hpux11*) | ||
17649 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | ||
17650 | case "$host_cpu" in | ||
17651 | hppa*64*|ia64*) | ||
17652 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17653 | ;; | ||
17654 | *) | ||
17655 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | ||
17656 | ;; | ||
17657 | esac | ||
17658 | else | ||
17659 | case "$host_cpu" in | ||
17660 | hppa*64*|ia64*) | ||
17661 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17662 | ;; | ||
17663 | *) | ||
17664 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | ||
17665 | ;; | ||
17666 | esac | ||
17667 | fi | ||
17668 | if test "$with_gnu_ld" = no; then | ||
17669 | case "$host_cpu" in | ||
17670 | hppa*64*) | ||
17671 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | ||
17672 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | ||
17673 | hardcode_libdir_separator_GCJ=: | ||
17674 | hardcode_direct_GCJ=no | ||
17675 | hardcode_shlibpath_var_GCJ=no | ||
17676 | ;; | ||
17677 | ia64*) | ||
17678 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
17679 | hardcode_direct_GCJ=no | ||
17680 | hardcode_shlibpath_var_GCJ=no | ||
17681 | |||
17682 | # hardcode_minus_L: Not really in the search PATH, | ||
17683 | # but as the default location of the library. | ||
17684 | hardcode_minus_L_GCJ=yes | ||
17685 | ;; | ||
17686 | *) | ||
17687 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | ||
17688 | hardcode_libdir_separator_GCJ=: | ||
17689 | hardcode_direct_GCJ=yes | ||
17690 | export_dynamic_flag_spec_GCJ='${wl}-E' | ||
17691 | |||
17692 | # hardcode_minus_L: Not really in the search PATH, | ||
17693 | # but as the default location of the library. | ||
17694 | hardcode_minus_L_GCJ=yes | ||
17695 | ;; | ||
17696 | esac | ||
17697 | fi | ||
17698 | ;; | ||
17699 | |||
17700 | irix5* | irix6* | nonstopux*) | ||
17701 | if test "$GCC" = yes; then | ||
17702 | 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' | ||
17703 | else | ||
17704 | 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' | ||
17705 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | ||
17706 | fi | ||
17707 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | ||
17708 | hardcode_libdir_separator_GCJ=: | ||
17709 | link_all_deplibs_GCJ=yes | ||
17710 | ;; | ||
17711 | |||
17712 | netbsd* | netbsdelf*-gnu | knetbsd*-gnu) | ||
17713 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
17714 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | ||
17715 | else | ||
17716 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | ||
17717 | fi | ||
17718 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | ||
17719 | hardcode_direct_GCJ=yes | ||
17720 | hardcode_shlibpath_var_GCJ=no | ||
17721 | ;; | ||
17722 | |||
17723 | newsos6) | ||
17724 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17725 | hardcode_direct_GCJ=yes | ||
17726 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | ||
17727 | hardcode_libdir_separator_GCJ=: | ||
17728 | hardcode_shlibpath_var_GCJ=no | ||
17729 | ;; | ||
17730 | |||
17731 | openbsd*) | ||
17732 | hardcode_direct_GCJ=yes | ||
17733 | hardcode_shlibpath_var_GCJ=no | ||
17734 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
17735 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
17736 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | ||
17737 | export_dynamic_flag_spec_GCJ='${wl}-E' | ||
17738 | else | ||
17739 | case $host_os in | ||
17740 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | ||
17741 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | ||
17742 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | ||
17743 | ;; | ||
17744 | *) | ||
17745 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | ||
17746 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | ||
17747 | ;; | ||
17748 | esac | ||
17749 | fi | ||
17750 | ;; | ||
17751 | |||
17752 | os2*) | ||
17753 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
17754 | hardcode_minus_L_GCJ=yes | ||
17755 | allow_undefined_flag_GCJ=unsupported | ||
17756 | 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' | ||
17757 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | ||
17758 | ;; | ||
17759 | |||
17760 | osf3*) | ||
17761 | if test "$GCC" = yes; then | ||
17762 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | ||
17763 | 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' | ||
17764 | else | ||
17765 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | ||
17766 | 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' | ||
17767 | fi | ||
17768 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | ||
17769 | hardcode_libdir_separator_GCJ=: | ||
17770 | ;; | ||
17771 | |||
17772 | osf4* | osf5*) # as osf3* with the addition of -msym flag | ||
17773 | if test "$GCC" = yes; then | ||
17774 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | ||
17775 | 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' | ||
17776 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | ||
17777 | else | ||
17778 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | ||
17779 | 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' | ||
17780 | 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~ | ||
17781 | $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' | ||
17782 | |||
17783 | # Both c and cxx compiler support -rpath directly | ||
17784 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | ||
17785 | fi | ||
17786 | hardcode_libdir_separator_GCJ=: | ||
17787 | ;; | ||
17788 | |||
17789 | sco3.2v5*) | ||
17790 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17791 | hardcode_shlibpath_var_GCJ=no | ||
17792 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | ||
17793 | runpath_var=LD_RUN_PATH | ||
17794 | hardcode_runpath_var=yes | ||
17795 | ;; | ||
17796 | |||
17797 | solaris*) | ||
17798 | no_undefined_flag_GCJ=' -z text' | ||
17799 | if test "$GCC" = yes; then | ||
17800 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17801 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
17802 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | ||
17803 | else | ||
17804 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17805 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
17806 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
17807 | fi | ||
17808 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | ||
17809 | hardcode_shlibpath_var_GCJ=no | ||
17810 | case $host_os in | ||
17811 | solaris2.[0-5] | solaris2.[0-5].*) ;; | ||
17812 | *) # Supported since Solaris 2.6 (maybe 2.5.1?) | ||
17813 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | ||
17814 | esac | ||
17815 | link_all_deplibs_GCJ=yes | ||
17816 | ;; | ||
17817 | |||
17818 | sunos4*) | ||
17819 | if test "x$host_vendor" = xsequent; then | ||
17820 | # Use $CC to link under sequent, because it throws in some extra .o | ||
17821 | # files that make .init and .fini sections work. | ||
17822 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17823 | else | ||
17824 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | ||
17825 | fi | ||
17826 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
17827 | hardcode_direct_GCJ=yes | ||
17828 | hardcode_minus_L_GCJ=yes | ||
17829 | hardcode_shlibpath_var_GCJ=no | ||
17830 | ;; | ||
17831 | |||
17832 | sysv4) | ||
17833 | case $host_vendor in | ||
17834 | sni) | ||
17835 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17836 | hardcode_direct_GCJ=yes # is this really true??? | ||
17837 | ;; | ||
17838 | siemens) | ||
17839 | ## LD is ld it makes a PLAMLIB | ||
17840 | ## CC just makes a GrossModule. | ||
17841 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
17842 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' | ||
17843 | hardcode_direct_GCJ=no | ||
17844 | ;; | ||
17845 | motorola) | ||
17846 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17847 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | ||
17848 | ;; | ||
17849 | esac | ||
17850 | runpath_var='LD_RUN_PATH' | ||
17851 | hardcode_shlibpath_var_GCJ=no | ||
17852 | ;; | ||
17853 | |||
17854 | sysv4.3*) | ||
17855 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17856 | hardcode_shlibpath_var_GCJ=no | ||
17857 | export_dynamic_flag_spec_GCJ='-Bexport' | ||
17858 | ;; | ||
17859 | |||
17860 | sysv4*MP*) | ||
17861 | if test -d /usr/nec; then | ||
17862 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17863 | hardcode_shlibpath_var_GCJ=no | ||
17864 | runpath_var=LD_RUN_PATH | ||
17865 | hardcode_runpath_var=yes | ||
17866 | ld_shlibs_GCJ=yes | ||
17867 | fi | ||
17868 | ;; | ||
17869 | |||
17870 | sysv4.2uw2*) | ||
17871 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | ||
17872 | hardcode_direct_GCJ=yes | ||
17873 | hardcode_minus_L_GCJ=no | ||
17874 | hardcode_shlibpath_var_GCJ=no | ||
17875 | hardcode_runpath_var=yes | ||
17876 | runpath_var=LD_RUN_PATH | ||
17877 | ;; | ||
17878 | |||
17879 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) | ||
17880 | no_undefined_flag_GCJ='${wl}-z ${wl}text' | ||
17881 | if test "$GCC" = yes; then | ||
17882 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17883 | else | ||
17884 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | ||
17885 | fi | ||
17886 | runpath_var='LD_RUN_PATH' | ||
17887 | hardcode_shlibpath_var_GCJ=no | ||
17888 | ;; | ||
17889 | |||
17890 | sysv5*) | ||
17891 | no_undefined_flag_GCJ=' -z text' | ||
17892 | # $CC -shared without GNU ld will not create a library from C++ | ||
17893 | # object files and a static libstdc++, better avoid it by now | ||
17894 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17895 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | ||
17896 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | ||
17897 | hardcode_libdir_flag_spec_GCJ= | ||
17898 | hardcode_shlibpath_var_GCJ=no | ||
17899 | runpath_var='LD_RUN_PATH' | ||
17900 | ;; | ||
17901 | |||
17902 | uts4*) | ||
17903 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | ||
17904 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | ||
17905 | hardcode_shlibpath_var_GCJ=no | ||
17906 | ;; | ||
17907 | |||
17908 | *) | ||
17909 | ld_shlibs_GCJ=no | ||
17910 | ;; | ||
17911 | esac | ||
17912 | fi | ||
17913 | |||
17914 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | ||
17915 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } | ||
17916 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | ||
17917 | |||
17918 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | ||
17919 | if test "$GCC" = yes; then | ||
17920 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | ||
17921 | fi | ||
17922 | |||
17923 | # | ||
17924 | # Do we need to explicitly link libc? | ||
17925 | # | ||
17926 | case "x$archive_cmds_need_lc_GCJ" in | ||
17927 | x|xyes) | ||
17928 | # Assume -lc should be added | ||
17929 | archive_cmds_need_lc_GCJ=yes | ||
17930 | |||
17931 | if test "$enable_shared" = yes && test "$GCC" = yes; then | ||
17932 | case $archive_cmds_GCJ in | ||
17933 | *'~'*) | ||
17934 | # FIXME: we may have to deal with multi-command sequences. | ||
17935 | ;; | ||
17936 | '$CC '*) | ||
17937 | # Test whether the compiler implicitly links with -lc since on some | ||
17938 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | ||
17939 | # to ld, don't add -lc before -lgcc. | ||
17940 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | ||
17941 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | ||
17942 | $rm conftest* | ||
17943 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | ||
17944 | |||
17945 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | ||
17946 | (eval $ac_compile) 2>&5 | ||
17947 | ac_status=$? | ||
17948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17949 | (exit $ac_status); } 2>conftest.err; then | ||
17950 | soname=conftest | ||
17951 | lib=conftest | ||
17952 | libobjs=conftest.$ac_objext | ||
17953 | deplibs= | ||
17954 | wl=$lt_prog_compiler_wl_GCJ | ||
17955 | compiler_flags=-v | ||
17956 | linker_flags=-v | ||
17957 | verstring= | ||
17958 | output_objdir=. | ||
17959 | libname=conftest | ||
17960 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | ||
17961 | allow_undefined_flag_GCJ= | ||
17962 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | ||
17963 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | ||
17964 | ac_status=$? | ||
17965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
17966 | (exit $ac_status); } | ||
17967 | then | ||
17968 | archive_cmds_need_lc_GCJ=no | ||
17969 | else | ||
17970 | archive_cmds_need_lc_GCJ=yes | ||
17971 | fi | ||
17972 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | ||
17973 | else | ||
17974 | cat conftest.err 1>&5 | ||
17975 | fi | ||
17976 | $rm conftest* | ||
17977 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | ||
17978 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } | ||
17979 | ;; | ||
17980 | esac | ||
17981 | fi | ||
17982 | ;; | ||
17983 | esac | ||
17984 | |||
17985 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | ||
17986 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | ||
17987 | library_names_spec= | ||
17988 | libname_spec='lib$name' | ||
17989 | soname_spec= | ||
17990 | shrext_cmds=".so" | ||
17991 | postinstall_cmds= | ||
17992 | postuninstall_cmds= | ||
17993 | finish_cmds= | ||
17994 | finish_eval= | ||
17995 | shlibpath_var= | ||
17996 | shlibpath_overrides_runpath=unknown | ||
17997 | version_type=none | ||
17998 | dynamic_linker="$host_os ld.so" | ||
17999 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | ||
18000 | if test "$GCC" = yes; then | ||
18001 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
18002 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | ||
18003 | # if the path contains ";" then we assume it to be the separator | ||
18004 | # otherwise default to the standard path separator (i.e. ":") - it is | ||
18005 | # assumed that no part of a normal pathname contains ";" but that should | ||
18006 | # okay in the real world where ";" in dirpaths is itself problematic. | ||
18007 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
18008 | else | ||
18009 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
18010 | fi | ||
18011 | else | ||
18012 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | ||
18013 | fi | ||
18014 | need_lib_prefix=unknown | ||
18015 | hardcode_into_libs=no | ||
18016 | |||
18017 | # when you set need_version to no, make sure it does not cause -set_version | ||
18018 | # flags to be left without arguments | ||
18019 | need_version=unknown | ||
18020 | |||
18021 | case $host_os in | ||
18022 | aix3*) | ||
18023 | version_type=linux | ||
18024 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | ||
18025 | shlibpath_var=LIBPATH | ||
18026 | |||
18027 | # AIX 3 has no versioning support, so we append a major version to the name. | ||
18028 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18029 | ;; | ||
18030 | |||
18031 | aix4* | aix5*) | ||
18032 | version_type=linux | ||
18033 | need_lib_prefix=no | ||
18034 | need_version=no | ||
18035 | hardcode_into_libs=yes | ||
18036 | if test "$host_cpu" = ia64; then | ||
18037 | # AIX 5 supports IA64 | ||
18038 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | ||
18039 | shlibpath_var=LD_LIBRARY_PATH | ||
18040 | else | ||
18041 | # With GCC up to 2.95.x, collect2 would create an import file | ||
18042 | # for dependence libraries. The import file would start with | ||
18043 | # the line `#! .'. This would cause the generated library to | ||
18044 | # depend on `.', always an invalid library. This was fixed in | ||
18045 | # development snapshots of GCC prior to 3.0. | ||
18046 | case $host_os in | ||
18047 | aix4 | aix4.[01] | aix4.[01].*) | ||
18048 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | ||
18049 | echo ' yes ' | ||
18050 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | ||
18051 | : | ||
18052 | else | ||
18053 | can_build_shared=no | ||
18054 | fi | ||
18055 | ;; | ||
18056 | esac | ||
18057 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | ||
18058 | # soname into executable. Probably we can add versioning support to | ||
18059 | # collect2, so additional links can be useful in future. | ||
18060 | if test "$aix_use_runtimelinking" = yes; then | ||
18061 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | ||
18062 | # instead of lib<name>.a to let people know that these are not | ||
18063 | # typical AIX shared libraries. | ||
18064 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18065 | else | ||
18066 | # We preserve .a as extension for shared libraries through AIX4.2 | ||
18067 | # and later when we are not doing run time linking. | ||
18068 | library_names_spec='${libname}${release}.a $libname.a' | ||
18069 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18070 | fi | ||
18071 | shlibpath_var=LIBPATH | ||
18072 | fi | ||
18073 | ;; | ||
18074 | |||
18075 | amigaos*) | ||
18076 | library_names_spec='$libname.ixlibrary $libname.a' | ||
18077 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | ||
18078 | 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' | ||
18079 | ;; | ||
18080 | |||
18081 | beos*) | ||
18082 | library_names_spec='${libname}${shared_ext}' | ||
18083 | dynamic_linker="$host_os ld.so" | ||
18084 | shlibpath_var=LIBRARY_PATH | ||
18085 | ;; | ||
18086 | |||
18087 | bsdi4*) | ||
18088 | version_type=linux | ||
18089 | need_version=no | ||
18090 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18091 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18092 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | ||
18093 | shlibpath_var=LD_LIBRARY_PATH | ||
18094 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | ||
18095 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | ||
18096 | # the default ld.so.conf also contains /usr/contrib/lib and | ||
18097 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | ||
18098 | # libtool to hard-code these into programs | ||
18099 | ;; | ||
18100 | |||
18101 | cygwin* | mingw* | pw32*) | ||
18102 | version_type=windows | ||
18103 | shrext_cmds=".dll" | ||
18104 | need_version=no | ||
18105 | need_lib_prefix=no | ||
18106 | |||
18107 | case $GCC,$host_os in | ||
18108 | yes,cygwin* | yes,mingw* | yes,pw32*) | ||
18109 | library_names_spec='$libname.dll.a' | ||
18110 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | ||
18111 | postinstall_cmds='base_file=`basename \${file}`~ | ||
18112 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | ||
18113 | dldir=$destdir/`dirname \$dlpath`~ | ||
18114 | test -d \$dldir || mkdir -p \$dldir~ | ||
18115 | $install_prog $dir/$dlname \$dldir/$dlname' | ||
18116 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | ||
18117 | dlpath=$dir/\$dldll~ | ||
18118 | $rm \$dlpath' | ||
18119 | shlibpath_overrides_runpath=yes | ||
18120 | |||
18121 | case $host_os in | ||
18122 | cygwin*) | ||
18123 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | ||
18124 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
18125 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | ||
18126 | ;; | ||
18127 | mingw*) | ||
18128 | # MinGW DLLs use traditional 'lib' prefix | ||
18129 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | ||
18130 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | ||
18131 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | ||
18132 | # It is most probably a Windows format PATH printed by | ||
18133 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | ||
18134 | # path with ; separators, and with drive letters. We can handle the | ||
18135 | # drive letters (cygwin fileutils understands them), so leave them, | ||
18136 | # especially as we might pass files found there to a mingw objdump, | ||
18137 | # which wouldn't understand a cygwinified path. Ahh. | ||
18138 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | ||
18139 | else | ||
18140 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | ||
18141 | fi | ||
18142 | ;; | ||
18143 | pw32*) | ||
18144 | # pw32 DLLs use 'pw' prefix rather than 'lib' | ||
18145 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' | ||
18146 | ;; | ||
18147 | esac | ||
18148 | ;; | ||
18149 | |||
18150 | *) | ||
18151 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | ||
18152 | ;; | ||
18153 | esac | ||
18154 | dynamic_linker='Win32 ld.exe' | ||
18155 | # FIXME: first we should search . and the directory the executable is in | ||
18156 | shlibpath_var=PATH | ||
18157 | ;; | ||
18158 | |||
18159 | darwin* | rhapsody*) | ||
18160 | dynamic_linker="$host_os dyld" | ||
18161 | version_type=darwin | ||
18162 | need_lib_prefix=no | ||
18163 | need_version=no | ||
18164 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | ||
18165 | soname_spec='${libname}${release}${major}$shared_ext' | ||
18166 | shlibpath_overrides_runpath=yes | ||
18167 | shlibpath_var=DYLD_LIBRARY_PATH | ||
18168 | shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' | ||
18169 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | ||
18170 | if test "$GCC" = yes; then | ||
18171 | 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"` | ||
18172 | else | ||
18173 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | ||
18174 | fi | ||
18175 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | ||
18176 | ;; | ||
18177 | |||
18178 | dgux*) | ||
18179 | version_type=linux | ||
18180 | need_lib_prefix=no | ||
18181 | need_version=no | ||
18182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | ||
18183 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18184 | shlibpath_var=LD_LIBRARY_PATH | ||
18185 | ;; | ||
18186 | |||
18187 | freebsd1*) | ||
18188 | dynamic_linker=no | ||
18189 | ;; | ||
18190 | |||
18191 | kfreebsd*-gnu) | ||
18192 | version_type=linux | ||
18193 | need_lib_prefix=no | ||
18194 | need_version=no | ||
18195 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
18196 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18197 | shlibpath_var=LD_LIBRARY_PATH | ||
18198 | shlibpath_overrides_runpath=no | ||
18199 | hardcode_into_libs=yes | ||
18200 | dynamic_linker='GNU ld.so' | ||
18201 | ;; | ||
18202 | |||
18203 | freebsd*) | ||
18204 | objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` | ||
18205 | version_type=freebsd-$objformat | ||
18206 | case $version_type in | ||
18207 | freebsd-elf*) | ||
18208 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
18209 | need_version=no | ||
18210 | need_lib_prefix=no | ||
18211 | ;; | ||
18212 | freebsd-*) | ||
18213 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | ||
18214 | need_version=yes | ||
18215 | ;; | ||
18216 | esac | ||
18217 | shlibpath_var=LD_LIBRARY_PATH | ||
18218 | case $host_os in | ||
18219 | freebsd2*) | ||
18220 | shlibpath_overrides_runpath=yes | ||
18221 | ;; | ||
18222 | freebsd3.01* | freebsdelf3.01*) | ||
18223 | shlibpath_overrides_runpath=yes | ||
18224 | hardcode_into_libs=yes | ||
18225 | ;; | ||
18226 | *) # from 3.2 on | ||
18227 | shlibpath_overrides_runpath=no | ||
18228 | hardcode_into_libs=yes | ||
18229 | ;; | ||
18230 | esac | ||
18231 | ;; | ||
18232 | |||
18233 | gnu*) | ||
18234 | version_type=linux | ||
18235 | need_lib_prefix=no | ||
18236 | need_version=no | ||
18237 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | ||
18238 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18239 | shlibpath_var=LD_LIBRARY_PATH | ||
18240 | hardcode_into_libs=yes | ||
18241 | ;; | ||
18242 | |||
18243 | hpux9* | hpux10* | hpux11*) | ||
18244 | # Give a soname corresponding to the major version so that dld.sl refuses to | ||
18245 | # link against other versions. | ||
18246 | version_type=sunos | ||
18247 | need_lib_prefix=no | ||
18248 | need_version=no | ||
18249 | case "$host_cpu" in | ||
18250 | ia64*) | ||
18251 | shrext_cmds='.so' | ||
18252 | hardcode_into_libs=yes | ||
18253 | dynamic_linker="$host_os dld.so" | ||
18254 | shlibpath_var=LD_LIBRARY_PATH | ||
18255 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
18256 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18257 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18258 | if test "X$HPUX_IA64_MODE" = X32; then | ||
18259 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | ||
18260 | else | ||
18261 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | ||
18262 | fi | ||
18263 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
18264 | ;; | ||
18265 | hppa*64*) | ||
18266 | shrext_cmds='.sl' | ||
18267 | hardcode_into_libs=yes | ||
18268 | dynamic_linker="$host_os dld.sl" | ||
18269 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | ||
18270 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | ||
18271 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18272 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18273 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | ||
18274 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | ||
18275 | ;; | ||
18276 | *) | ||
18277 | shrext_cmds='.sl' | ||
18278 | dynamic_linker="$host_os dld.sl" | ||
18279 | shlibpath_var=SHLIB_PATH | ||
18280 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | ||
18281 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18282 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18283 | ;; | ||
18284 | esac | ||
18285 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | ||
18286 | postinstall_cmds='chmod 555 $lib' | ||
18287 | ;; | ||
18288 | |||
18289 | irix5* | irix6* | nonstopux*) | ||
18290 | case $host_os in | ||
18291 | nonstopux*) version_type=nonstopux ;; | ||
18292 | *) | ||
18293 | if test "$lt_cv_prog_gnu_ld" = yes; then | ||
18294 | version_type=linux | ||
18295 | else | ||
18296 | version_type=irix | ||
18297 | fi ;; | ||
18298 | esac | ||
18299 | need_lib_prefix=no | ||
18300 | need_version=no | ||
18301 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18302 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | ||
18303 | case $host_os in | ||
18304 | irix5* | nonstopux*) | ||
18305 | libsuff= shlibsuff= | ||
18306 | ;; | ||
18307 | *) | ||
18308 | case $LD in # libtool.m4 will add one of these switches to LD | ||
18309 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | ||
18310 | libsuff= shlibsuff= libmagic=32-bit;; | ||
18311 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | ||
18312 | libsuff=32 shlibsuff=N32 libmagic=N32;; | ||
18313 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | ||
18314 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | ||
18315 | *) libsuff= shlibsuff= libmagic=never-match;; | ||
18316 | esac | ||
18317 | ;; | ||
18318 | esac | ||
18319 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | ||
18320 | shlibpath_overrides_runpath=no | ||
18321 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | ||
18322 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | ||
18323 | hardcode_into_libs=yes | ||
18324 | ;; | ||
18325 | |||
18326 | # No shared lib support for Linux oldld, aout, or coff. | ||
18327 | linux*oldld* | linux*aout* | linux*coff*) | ||
18328 | dynamic_linker=no | ||
18329 | ;; | ||
18330 | |||
18331 | # This must be Linux ELF. | ||
18332 | linux*) | ||
18333 | version_type=linux | ||
18334 | need_lib_prefix=no | ||
18335 | need_version=no | ||
18336 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18337 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18338 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | ||
18339 | shlibpath_var=LD_LIBRARY_PATH | ||
18340 | shlibpath_overrides_runpath=no | ||
18341 | # This implies no fast_install, which is unacceptable. | ||
18342 | # Some rework will be needed to allow for fast_install | ||
18343 | # before this can be enabled. | ||
18344 | hardcode_into_libs=yes | ||
18345 | |||
18346 | # Append ld.so.conf contents to the search path | ||
18347 | if test -f /etc/ld.so.conf; then | ||
18348 | lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` | ||
18349 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | ||
18350 | fi | ||
18351 | |||
18352 | # We used to test for /lib/ld.so.1 and disable shared libraries on | ||
18353 | # powerpc, because MkLinux only supported shared libraries with the | ||
18354 | # GNU dynamic linker. Since this was broken with cross compilers, | ||
18355 | # most powerpc-linux boxes support dynamic linking these days and | ||
18356 | # people can always --disable-shared, the test was removed, and we | ||
18357 | # assume the GNU/Linux dynamic linker is in use. | ||
18358 | dynamic_linker='GNU/Linux ld.so' | ||
18359 | ;; | ||
18360 | |||
18361 | netbsdelf*-gnu) | ||
18362 | version_type=linux | ||
18363 | need_lib_prefix=no | ||
18364 | need_version=no | ||
18365 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
18366 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18367 | shlibpath_var=LD_LIBRARY_PATH | ||
18368 | shlibpath_overrides_runpath=no | ||
18369 | hardcode_into_libs=yes | ||
18370 | dynamic_linker='NetBSD ld.elf_so' | ||
18371 | ;; | ||
18372 | |||
18373 | knetbsd*-gnu) | ||
18374 | version_type=linux | ||
18375 | need_lib_prefix=no | ||
18376 | need_version=no | ||
18377 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
18378 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18379 | shlibpath_var=LD_LIBRARY_PATH | ||
18380 | shlibpath_overrides_runpath=no | ||
18381 | hardcode_into_libs=yes | ||
18382 | dynamic_linker='GNU ld.so' | ||
18383 | ;; | ||
18384 | |||
18385 | netbsd*) | ||
18386 | version_type=sunos | ||
18387 | need_lib_prefix=no | ||
18388 | need_version=no | ||
18389 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | ||
18390 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
18391 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
18392 | dynamic_linker='NetBSD (a.out) ld.so' | ||
18393 | else | ||
18394 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | ||
18395 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18396 | dynamic_linker='NetBSD ld.elf_so' | ||
18397 | fi | ||
18398 | shlibpath_var=LD_LIBRARY_PATH | ||
18399 | shlibpath_overrides_runpath=yes | ||
18400 | hardcode_into_libs=yes | ||
18401 | ;; | ||
18402 | |||
18403 | newsos6) | ||
18404 | version_type=linux | ||
18405 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18406 | shlibpath_var=LD_LIBRARY_PATH | ||
18407 | shlibpath_overrides_runpath=yes | ||
18408 | ;; | ||
18409 | |||
18410 | nto-qnx*) | ||
18411 | version_type=linux | ||
18412 | need_lib_prefix=no | ||
18413 | need_version=no | ||
18414 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18415 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18416 | shlibpath_var=LD_LIBRARY_PATH | ||
18417 | shlibpath_overrides_runpath=yes | ||
18418 | ;; | ||
18419 | |||
18420 | openbsd*) | ||
18421 | version_type=sunos | ||
18422 | need_lib_prefix=no | ||
18423 | need_version=yes | ||
18424 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
18425 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | ||
18426 | shlibpath_var=LD_LIBRARY_PATH | ||
18427 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | ||
18428 | case $host_os in | ||
18429 | openbsd2.[89] | openbsd2.[89].*) | ||
18430 | shlibpath_overrides_runpath=no | ||
18431 | ;; | ||
18432 | *) | ||
18433 | shlibpath_overrides_runpath=yes | ||
18434 | ;; | ||
18435 | esac | ||
18436 | else | ||
18437 | shlibpath_overrides_runpath=yes | ||
18438 | fi | ||
18439 | ;; | ||
18440 | |||
18441 | os2*) | ||
18442 | libname_spec='$name' | ||
18443 | shrext_cmds=".dll" | ||
18444 | need_lib_prefix=no | ||
18445 | library_names_spec='$libname${shared_ext} $libname.a' | ||
18446 | dynamic_linker='OS/2 ld.exe' | ||
18447 | shlibpath_var=LIBPATH | ||
18448 | ;; | ||
18449 | |||
18450 | osf3* | osf4* | osf5*) | ||
18451 | version_type=osf | ||
18452 | need_lib_prefix=no | ||
18453 | need_version=no | ||
18454 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18456 | shlibpath_var=LD_LIBRARY_PATH | ||
18457 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | ||
18458 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | ||
18459 | ;; | ||
18460 | |||
18461 | sco3.2v5*) | ||
18462 | version_type=osf | ||
18463 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18464 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18465 | shlibpath_var=LD_LIBRARY_PATH | ||
18466 | ;; | ||
18467 | |||
18468 | solaris*) | ||
18469 | version_type=linux | ||
18470 | need_lib_prefix=no | ||
18471 | need_version=no | ||
18472 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18473 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18474 | shlibpath_var=LD_LIBRARY_PATH | ||
18475 | shlibpath_overrides_runpath=yes | ||
18476 | hardcode_into_libs=yes | ||
18477 | # ldd complains unless libraries are executable | ||
18478 | postinstall_cmds='chmod +x $lib' | ||
18479 | ;; | ||
18480 | |||
18481 | sunos4*) | ||
18482 | version_type=sunos | ||
18483 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | ||
18484 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | ||
18485 | shlibpath_var=LD_LIBRARY_PATH | ||
18486 | shlibpath_overrides_runpath=yes | ||
18487 | if test "$with_gnu_ld" = yes; then | ||
18488 | need_lib_prefix=no | ||
18489 | fi | ||
18490 | need_version=yes | ||
18491 | ;; | ||
18492 | |||
18493 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) | ||
18494 | version_type=linux | ||
18495 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18496 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18497 | shlibpath_var=LD_LIBRARY_PATH | ||
18498 | case $host_vendor in | ||
18499 | sni) | ||
18500 | shlibpath_overrides_runpath=no | ||
18501 | need_lib_prefix=no | ||
18502 | export_dynamic_flag_spec='${wl}-Blargedynsym' | ||
18503 | runpath_var=LD_RUN_PATH | ||
18504 | ;; | ||
18505 | siemens) | ||
18506 | need_lib_prefix=no | ||
18507 | ;; | ||
18508 | motorola) | ||
18509 | need_lib_prefix=no | ||
18510 | need_version=no | ||
18511 | shlibpath_overrides_runpath=no | ||
18512 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | ||
18513 | ;; | ||
18514 | esac | ||
18515 | ;; | ||
18516 | |||
18517 | sysv4*MP*) | ||
18518 | if test -d /usr/nec ;then | ||
18519 | version_type=linux | ||
18520 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | ||
18521 | soname_spec='$libname${shared_ext}.$major' | ||
18522 | shlibpath_var=LD_LIBRARY_PATH | ||
18523 | fi | ||
18524 | ;; | ||
18525 | |||
18526 | uts4*) | ||
18527 | version_type=linux | ||
18528 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | ||
18529 | soname_spec='${libname}${release}${shared_ext}$major' | ||
18530 | shlibpath_var=LD_LIBRARY_PATH | ||
18531 | ;; | ||
18532 | |||
18533 | *) | ||
18534 | dynamic_linker=no | ||
18535 | ;; | ||
18536 | esac | ||
18537 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | ||
18538 | echo "${ECHO_T}$dynamic_linker" >&6; } | ||
18539 | test "$dynamic_linker" = no && can_build_shared=no | ||
18540 | |||
18541 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | ||
18542 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | ||
18543 | hardcode_action_GCJ= | ||
18544 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | ||
18545 | test -n "$runpath_var GCJ" || \ | ||
18546 | test "X$hardcode_automatic_GCJ"="Xyes" ; then | ||
18547 | |||
18548 | # We can hardcode non-existant directories. | ||
18549 | if test "$hardcode_direct_GCJ" != no && | ||
18550 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | ||
18551 | # have to relink, otherwise we might link with an installed library | ||
18552 | # when we should be linking with a yet-to-be-installed one | ||
18553 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | ||
18554 | test "$hardcode_minus_L_GCJ" != no; then | ||
18555 | # Linking always hardcodes the temporary library directory. | ||
18556 | hardcode_action_GCJ=relink | ||
18557 | else | ||
18558 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | ||
18559 | hardcode_action_GCJ=immediate | ||
18560 | fi | ||
18561 | else | ||
18562 | # We cannot hardcode anything, or else we can only hardcode existing | ||
18563 | # directories. | ||
18564 | hardcode_action_GCJ=unsupported | ||
18565 | fi | ||
18566 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | ||
18567 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } | ||
18568 | |||
18569 | if test "$hardcode_action_GCJ" = relink; then | ||
18570 | # Fast installation is not supported | ||
18571 | enable_fast_install=no | ||
18572 | elif test "$shlibpath_overrides_runpath" = yes || | ||
18573 | test "$enable_shared" = no; then | ||
18574 | # Fast installation is not necessary | ||
18575 | enable_fast_install=needless | ||
18576 | fi | ||
18577 | |||
18578 | striplib= | ||
18579 | old_striplib= | ||
18580 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | ||
18581 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } | ||
18582 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | ||
18583 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | ||
18584 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | ||
18585 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
18586 | echo "${ECHO_T}yes" >&6; } | ||
18587 | else | ||
18588 | # FIXME - insert some real tests, host_os isn't really good enough | ||
18589 | case $host_os in | ||
18590 | darwin*) | ||
18591 | if test -n "$STRIP" ; then | ||
18592 | striplib="$STRIP -x" | ||
18593 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
18594 | echo "${ECHO_T}yes" >&6; } | ||
18595 | else | ||
18596 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18597 | echo "${ECHO_T}no" >&6; } | ||
18598 | fi | ||
18599 | ;; | ||
18600 | *) | ||
18601 | { echo "$as_me:$LINENO: result: no" >&5 | ||
18602 | echo "${ECHO_T}no" >&6; } | ||
18603 | ;; | ||
18604 | esac | ||
18605 | fi | ||
18606 | |||
18607 | if test "x$enable_dlopen" != xyes; then | ||
18608 | enable_dlopen=unknown | ||
18609 | enable_dlopen_self=unknown | ||
18610 | enable_dlopen_self_static=unknown | ||
18611 | else | ||
18612 | lt_cv_dlopen=no | ||
18613 | lt_cv_dlopen_libs= | ||
18614 | |||
18615 | case $host_os in | ||
18616 | beos*) | ||
18617 | lt_cv_dlopen="load_add_on" | ||
18618 | lt_cv_dlopen_libs= | ||
18619 | lt_cv_dlopen_self=yes | ||
18620 | ;; | ||
18621 | |||
18622 | mingw* | pw32*) | ||
18623 | lt_cv_dlopen="LoadLibrary" | ||
18624 | lt_cv_dlopen_libs= | ||
18625 | ;; | ||
18626 | |||
18627 | cygwin*) | ||
18628 | lt_cv_dlopen="dlopen" | ||
18629 | lt_cv_dlopen_libs= | ||
18630 | ;; | ||
18631 | |||
18632 | darwin*) | ||
18633 | # if libdl is installed we need to link against it | ||
18634 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
18635 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
18636 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
18637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18638 | else | ||
18639 | ac_check_lib_save_LIBS=$LIBS | ||
18640 | LIBS="-ldl $LIBS" | ||
18641 | cat >conftest.$ac_ext <<_ACEOF | ||
18642 | /* confdefs.h. */ | ||
18643 | _ACEOF | ||
18644 | cat confdefs.h >>conftest.$ac_ext | ||
18645 | cat >>conftest.$ac_ext <<_ACEOF | ||
18646 | /* end confdefs.h. */ | ||
18647 | |||
18648 | /* Override any GCC internal prototype to avoid an error. | ||
18649 | Use char because int might match the return type of a GCC | ||
18650 | builtin and then its argument prototype would still apply. */ | ||
18651 | #ifdef __cplusplus | ||
18652 | extern "C" | ||
18653 | #endif | ||
18654 | char dlopen (); | ||
18655 | int | ||
18656 | main () | ||
18657 | { | ||
18658 | return dlopen (); | ||
18659 | ; | ||
18660 | return 0; | ||
18661 | } | ||
18662 | _ACEOF | ||
18663 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18664 | if { (ac_try="$ac_link" | ||
18665 | case "(($ac_try" in | ||
18666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18667 | *) ac_try_echo=$ac_try;; | ||
18668 | esac | ||
18669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18670 | (eval "$ac_link") 2>conftest.er1 | ||
18671 | ac_status=$? | ||
18672 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18673 | rm -f conftest.er1 | ||
18674 | cat conftest.err >&5 | ||
18675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18676 | (exit $ac_status); } && { | ||
18677 | test -z "$ac_c_werror_flag" || | ||
18678 | test ! -s conftest.err | ||
18679 | } && test -s conftest$ac_exeext && | ||
18680 | $as_test_x conftest$ac_exeext; then | ||
18681 | ac_cv_lib_dl_dlopen=yes | ||
18682 | else | ||
18683 | echo "$as_me: failed program was:" >&5 | ||
18684 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18685 | |||
18686 | ac_cv_lib_dl_dlopen=no | ||
18687 | fi | ||
18688 | |||
18689 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18690 | conftest$ac_exeext conftest.$ac_ext | ||
18691 | LIBS=$ac_check_lib_save_LIBS | ||
18692 | fi | ||
18693 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
18694 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
18695 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
18696 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
18697 | else | ||
18698 | |||
18699 | lt_cv_dlopen="dyld" | ||
18700 | lt_cv_dlopen_libs= | ||
18701 | lt_cv_dlopen_self=yes | ||
18702 | |||
18703 | fi | ||
18704 | |||
18705 | ;; | ||
18706 | |||
18707 | *) | ||
18708 | { echo "$as_me:$LINENO: checking for shl_load" >&5 | ||
18709 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } | ||
18710 | if test "${ac_cv_func_shl_load+set}" = set; then | ||
18711 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18712 | else | ||
18713 | cat >conftest.$ac_ext <<_ACEOF | ||
18714 | /* confdefs.h. */ | ||
18715 | _ACEOF | ||
18716 | cat confdefs.h >>conftest.$ac_ext | ||
18717 | cat >>conftest.$ac_ext <<_ACEOF | ||
18718 | /* end confdefs.h. */ | ||
18719 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | ||
18720 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18721 | #define shl_load innocuous_shl_load | ||
18722 | |||
18723 | /* System header to define __stub macros and hopefully few prototypes, | ||
18724 | which can conflict with char shl_load (); below. | ||
18725 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18726 | <limits.h> exists even on freestanding compilers. */ | ||
18727 | |||
18728 | #ifdef __STDC__ | ||
18729 | # include <limits.h> | ||
18730 | #else | ||
18731 | # include <assert.h> | ||
18732 | #endif | ||
18733 | |||
18734 | #undef shl_load | ||
18735 | |||
18736 | /* Override any GCC internal prototype to avoid an error. | ||
18737 | Use char because int might match the return type of a GCC | ||
18738 | builtin and then its argument prototype would still apply. */ | ||
18739 | #ifdef __cplusplus | ||
18740 | extern "C" | ||
18741 | #endif | ||
18742 | char shl_load (); | ||
18743 | /* The GNU C library defines this for functions which it implements | ||
18744 | to always fail with ENOSYS. Some functions are actually named | ||
18745 | something starting with __ and the normal name is an alias. */ | ||
18746 | #if defined __stub_shl_load || defined __stub___shl_load | ||
18747 | choke me | ||
18748 | #endif | ||
18749 | |||
18750 | int | ||
18751 | main () | ||
18752 | { | ||
18753 | return shl_load (); | ||
18754 | ; | ||
18755 | return 0; | ||
18756 | } | ||
18757 | _ACEOF | ||
18758 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18759 | if { (ac_try="$ac_link" | ||
18760 | case "(($ac_try" in | ||
18761 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18762 | *) ac_try_echo=$ac_try;; | ||
18763 | esac | ||
18764 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18765 | (eval "$ac_link") 2>conftest.er1 | ||
18766 | ac_status=$? | ||
18767 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18768 | rm -f conftest.er1 | ||
18769 | cat conftest.err >&5 | ||
18770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18771 | (exit $ac_status); } && { | ||
18772 | test -z "$ac_c_werror_flag" || | ||
18773 | test ! -s conftest.err | ||
18774 | } && test -s conftest$ac_exeext && | ||
18775 | $as_test_x conftest$ac_exeext; then | ||
18776 | ac_cv_func_shl_load=yes | ||
18777 | else | ||
18778 | echo "$as_me: failed program was:" >&5 | ||
18779 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18780 | |||
18781 | ac_cv_func_shl_load=no | ||
18782 | fi | ||
18783 | |||
18784 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18785 | conftest$ac_exeext conftest.$ac_ext | ||
18786 | fi | ||
18787 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | ||
18788 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } | ||
18789 | if test $ac_cv_func_shl_load = yes; then | ||
18790 | lt_cv_dlopen="shl_load" | ||
18791 | else | ||
18792 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | ||
18793 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } | ||
18794 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | ||
18795 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18796 | else | ||
18797 | ac_check_lib_save_LIBS=$LIBS | ||
18798 | LIBS="-ldld $LIBS" | ||
18799 | cat >conftest.$ac_ext <<_ACEOF | ||
18800 | /* confdefs.h. */ | ||
18801 | _ACEOF | ||
18802 | cat confdefs.h >>conftest.$ac_ext | ||
18803 | cat >>conftest.$ac_ext <<_ACEOF | ||
18804 | /* end confdefs.h. */ | ||
18805 | |||
18806 | /* Override any GCC internal prototype to avoid an error. | ||
18807 | Use char because int might match the return type of a GCC | ||
18808 | builtin and then its argument prototype would still apply. */ | ||
18809 | #ifdef __cplusplus | ||
18810 | extern "C" | ||
18811 | #endif | ||
18812 | char shl_load (); | ||
18813 | int | ||
18814 | main () | ||
18815 | { | ||
18816 | return shl_load (); | ||
18817 | ; | ||
18818 | return 0; | ||
18819 | } | ||
18820 | _ACEOF | ||
18821 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18822 | if { (ac_try="$ac_link" | ||
18823 | case "(($ac_try" in | ||
18824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18825 | *) ac_try_echo=$ac_try;; | ||
18826 | esac | ||
18827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18828 | (eval "$ac_link") 2>conftest.er1 | ||
18829 | ac_status=$? | ||
18830 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18831 | rm -f conftest.er1 | ||
18832 | cat conftest.err >&5 | ||
18833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18834 | (exit $ac_status); } && { | ||
18835 | test -z "$ac_c_werror_flag" || | ||
18836 | test ! -s conftest.err | ||
18837 | } && test -s conftest$ac_exeext && | ||
18838 | $as_test_x conftest$ac_exeext; then | ||
18839 | ac_cv_lib_dld_shl_load=yes | ||
18840 | else | ||
18841 | echo "$as_me: failed program was:" >&5 | ||
18842 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18843 | |||
18844 | ac_cv_lib_dld_shl_load=no | ||
18845 | fi | ||
18846 | |||
18847 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18848 | conftest$ac_exeext conftest.$ac_ext | ||
18849 | LIBS=$ac_check_lib_save_LIBS | ||
18850 | fi | ||
18851 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | ||
18852 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } | ||
18853 | if test $ac_cv_lib_dld_shl_load = yes; then | ||
18854 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | ||
18855 | else | ||
18856 | { echo "$as_me:$LINENO: checking for dlopen" >&5 | ||
18857 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } | ||
18858 | if test "${ac_cv_func_dlopen+set}" = set; then | ||
18859 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18860 | else | ||
18861 | cat >conftest.$ac_ext <<_ACEOF | ||
18862 | /* confdefs.h. */ | ||
18863 | _ACEOF | ||
18864 | cat confdefs.h >>conftest.$ac_ext | ||
18865 | cat >>conftest.$ac_ext <<_ACEOF | ||
18866 | /* end confdefs.h. */ | ||
18867 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | ||
18868 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | ||
18869 | #define dlopen innocuous_dlopen | ||
18870 | |||
18871 | /* System header to define __stub macros and hopefully few prototypes, | ||
18872 | which can conflict with char dlopen (); below. | ||
18873 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | ||
18874 | <limits.h> exists even on freestanding compilers. */ | ||
18875 | |||
18876 | #ifdef __STDC__ | ||
18877 | # include <limits.h> | ||
18878 | #else | ||
18879 | # include <assert.h> | ||
18880 | #endif | ||
18881 | |||
18882 | #undef dlopen | ||
18883 | |||
18884 | /* Override any GCC internal prototype to avoid an error. | ||
18885 | Use char because int might match the return type of a GCC | ||
18886 | builtin and then its argument prototype would still apply. */ | ||
18887 | #ifdef __cplusplus | ||
18888 | extern "C" | ||
18889 | #endif | ||
18890 | char dlopen (); | ||
18891 | /* The GNU C library defines this for functions which it implements | ||
18892 | to always fail with ENOSYS. Some functions are actually named | ||
18893 | something starting with __ and the normal name is an alias. */ | ||
18894 | #if defined __stub_dlopen || defined __stub___dlopen | ||
18895 | choke me | ||
18896 | #endif | ||
18897 | |||
18898 | int | ||
18899 | main () | ||
18900 | { | ||
18901 | return dlopen (); | ||
18902 | ; | ||
18903 | return 0; | ||
18904 | } | ||
18905 | _ACEOF | ||
18906 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18907 | if { (ac_try="$ac_link" | ||
18908 | case "(($ac_try" in | ||
18909 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18910 | *) ac_try_echo=$ac_try;; | ||
18911 | esac | ||
18912 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18913 | (eval "$ac_link") 2>conftest.er1 | ||
18914 | ac_status=$? | ||
18915 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18916 | rm -f conftest.er1 | ||
18917 | cat conftest.err >&5 | ||
18918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18919 | (exit $ac_status); } && { | ||
18920 | test -z "$ac_c_werror_flag" || | ||
18921 | test ! -s conftest.err | ||
18922 | } && test -s conftest$ac_exeext && | ||
18923 | $as_test_x conftest$ac_exeext; then | ||
18924 | ac_cv_func_dlopen=yes | ||
18925 | else | ||
18926 | echo "$as_me: failed program was:" >&5 | ||
18927 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18928 | |||
18929 | ac_cv_func_dlopen=no | ||
18930 | fi | ||
18931 | |||
18932 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18933 | conftest$ac_exeext conftest.$ac_ext | ||
18934 | fi | ||
18935 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | ||
18936 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } | ||
18937 | if test $ac_cv_func_dlopen = yes; then | ||
18938 | lt_cv_dlopen="dlopen" | ||
18939 | else | ||
18940 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | ||
18941 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | ||
18942 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | ||
18943 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
18944 | else | ||
18945 | ac_check_lib_save_LIBS=$LIBS | ||
18946 | LIBS="-ldl $LIBS" | ||
18947 | cat >conftest.$ac_ext <<_ACEOF | ||
18948 | /* confdefs.h. */ | ||
18949 | _ACEOF | ||
18950 | cat confdefs.h >>conftest.$ac_ext | ||
18951 | cat >>conftest.$ac_ext <<_ACEOF | ||
18952 | /* end confdefs.h. */ | ||
18953 | |||
18954 | /* Override any GCC internal prototype to avoid an error. | ||
18955 | Use char because int might match the return type of a GCC | ||
18956 | builtin and then its argument prototype would still apply. */ | ||
18957 | #ifdef __cplusplus | ||
18958 | extern "C" | ||
18959 | #endif | ||
18960 | char dlopen (); | ||
18961 | int | ||
18962 | main () | ||
18963 | { | ||
18964 | return dlopen (); | ||
18965 | ; | ||
18966 | return 0; | ||
18967 | } | ||
18968 | _ACEOF | ||
18969 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
18970 | if { (ac_try="$ac_link" | ||
18971 | case "(($ac_try" in | ||
18972 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
18973 | *) ac_try_echo=$ac_try;; | ||
18974 | esac | ||
18975 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
18976 | (eval "$ac_link") 2>conftest.er1 | ||
18977 | ac_status=$? | ||
18978 | grep -v '^ *+' conftest.er1 >conftest.err | ||
18979 | rm -f conftest.er1 | ||
18980 | cat conftest.err >&5 | ||
18981 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
18982 | (exit $ac_status); } && { | ||
18983 | test -z "$ac_c_werror_flag" || | ||
18984 | test ! -s conftest.err | ||
18985 | } && test -s conftest$ac_exeext && | ||
18986 | $as_test_x conftest$ac_exeext; then | ||
18987 | ac_cv_lib_dl_dlopen=yes | ||
18988 | else | ||
18989 | echo "$as_me: failed program was:" >&5 | ||
18990 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
18991 | |||
18992 | ac_cv_lib_dl_dlopen=no | ||
18993 | fi | ||
18994 | |||
18995 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
18996 | conftest$ac_exeext conftest.$ac_ext | ||
18997 | LIBS=$ac_check_lib_save_LIBS | ||
18998 | fi | ||
18999 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | ||
19000 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | ||
19001 | if test $ac_cv_lib_dl_dlopen = yes; then | ||
19002 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | ||
19003 | else | ||
19004 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | ||
19005 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } | ||
19006 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | ||
19007 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19008 | else | ||
19009 | ac_check_lib_save_LIBS=$LIBS | ||
19010 | LIBS="-lsvld $LIBS" | ||
19011 | cat >conftest.$ac_ext <<_ACEOF | ||
19012 | /* confdefs.h. */ | ||
19013 | _ACEOF | ||
19014 | cat confdefs.h >>conftest.$ac_ext | ||
19015 | cat >>conftest.$ac_ext <<_ACEOF | ||
19016 | /* end confdefs.h. */ | ||
19017 | |||
19018 | /* Override any GCC internal prototype to avoid an error. | ||
19019 | Use char because int might match the return type of a GCC | ||
19020 | builtin and then its argument prototype would still apply. */ | ||
19021 | #ifdef __cplusplus | ||
19022 | extern "C" | ||
19023 | #endif | ||
19024 | char dlopen (); | ||
19025 | int | ||
19026 | main () | ||
19027 | { | ||
19028 | return dlopen (); | ||
19029 | ; | ||
19030 | return 0; | ||
19031 | } | ||
19032 | _ACEOF | ||
19033 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19034 | if { (ac_try="$ac_link" | ||
19035 | case "(($ac_try" in | ||
19036 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19037 | *) ac_try_echo=$ac_try;; | ||
19038 | esac | ||
19039 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19040 | (eval "$ac_link") 2>conftest.er1 | ||
19041 | ac_status=$? | ||
19042 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19043 | rm -f conftest.er1 | ||
19044 | cat conftest.err >&5 | ||
19045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19046 | (exit $ac_status); } && { | ||
19047 | test -z "$ac_c_werror_flag" || | ||
19048 | test ! -s conftest.err | ||
19049 | } && test -s conftest$ac_exeext && | ||
19050 | $as_test_x conftest$ac_exeext; then | ||
19051 | ac_cv_lib_svld_dlopen=yes | ||
19052 | else | ||
19053 | echo "$as_me: failed program was:" >&5 | ||
19054 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19055 | |||
19056 | ac_cv_lib_svld_dlopen=no | ||
19057 | fi | ||
19058 | |||
19059 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19060 | conftest$ac_exeext conftest.$ac_ext | ||
19061 | LIBS=$ac_check_lib_save_LIBS | ||
19062 | fi | ||
19063 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | ||
19064 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } | ||
19065 | if test $ac_cv_lib_svld_dlopen = yes; then | ||
19066 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | ||
19067 | else | ||
19068 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | ||
19069 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } | ||
19070 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | ||
19071 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19072 | else | ||
19073 | ac_check_lib_save_LIBS=$LIBS | ||
19074 | LIBS="-ldld $LIBS" | ||
19075 | cat >conftest.$ac_ext <<_ACEOF | ||
19076 | /* confdefs.h. */ | ||
19077 | _ACEOF | ||
19078 | cat confdefs.h >>conftest.$ac_ext | ||
19079 | cat >>conftest.$ac_ext <<_ACEOF | ||
19080 | /* end confdefs.h. */ | ||
19081 | |||
19082 | /* Override any GCC internal prototype to avoid an error. | ||
19083 | Use char because int might match the return type of a GCC | ||
19084 | builtin and then its argument prototype would still apply. */ | ||
19085 | #ifdef __cplusplus | ||
19086 | extern "C" | ||
19087 | #endif | ||
19088 | char dld_link (); | ||
19089 | int | ||
19090 | main () | ||
19091 | { | ||
19092 | return dld_link (); | ||
19093 | ; | ||
19094 | return 0; | ||
19095 | } | ||
19096 | _ACEOF | ||
19097 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
19098 | if { (ac_try="$ac_link" | ||
19099 | case "(($ac_try" in | ||
19100 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
19101 | *) ac_try_echo=$ac_try;; | ||
19102 | esac | ||
19103 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
19104 | (eval "$ac_link") 2>conftest.er1 | ||
19105 | ac_status=$? | ||
19106 | grep -v '^ *+' conftest.er1 >conftest.err | ||
19107 | rm -f conftest.er1 | ||
19108 | cat conftest.err >&5 | ||
19109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19110 | (exit $ac_status); } && { | ||
19111 | test -z "$ac_c_werror_flag" || | ||
19112 | test ! -s conftest.err | ||
19113 | } && test -s conftest$ac_exeext && | ||
19114 | $as_test_x conftest$ac_exeext; then | ||
19115 | ac_cv_lib_dld_dld_link=yes | ||
19116 | else | ||
19117 | echo "$as_me: failed program was:" >&5 | ||
19118 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
19119 | |||
19120 | ac_cv_lib_dld_dld_link=no | ||
19121 | fi | ||
19122 | |||
19123 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
19124 | conftest$ac_exeext conftest.$ac_ext | ||
19125 | LIBS=$ac_check_lib_save_LIBS | ||
19126 | fi | ||
19127 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | ||
19128 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } | ||
19129 | if test $ac_cv_lib_dld_dld_link = yes; then | ||
19130 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | ||
19131 | fi | ||
19132 | |||
19133 | |||
19134 | fi | ||
19135 | |||
19136 | |||
19137 | fi | ||
19138 | |||
19139 | |||
19140 | fi | ||
19141 | |||
19142 | |||
19143 | fi | ||
19144 | |||
19145 | |||
19146 | fi | ||
19147 | |||
19148 | ;; | ||
19149 | esac | ||
19150 | |||
19151 | if test "x$lt_cv_dlopen" != xno; then | ||
19152 | enable_dlopen=yes | ||
19153 | else | ||
19154 | enable_dlopen=no | ||
19155 | fi | ||
19156 | |||
19157 | case $lt_cv_dlopen in | ||
19158 | dlopen) | ||
19159 | save_CPPFLAGS="$CPPFLAGS" | ||
19160 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | ||
19161 | |||
19162 | save_LDFLAGS="$LDFLAGS" | ||
19163 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | ||
19164 | |||
19165 | save_LIBS="$LIBS" | ||
19166 | LIBS="$lt_cv_dlopen_libs $LIBS" | ||
19167 | |||
19168 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | ||
19169 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } | ||
19170 | if test "${lt_cv_dlopen_self+set}" = set; then | ||
19171 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19172 | else | ||
19173 | if test "$cross_compiling" = yes; then : | ||
19174 | lt_cv_dlopen_self=cross | ||
19175 | else | ||
19176 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
19177 | lt_status=$lt_dlunknown | ||
19178 | cat > conftest.$ac_ext <<EOF | ||
19179 | #line 19179 "configure" | ||
19180 | #include "confdefs.h" | ||
19181 | |||
19182 | #if HAVE_DLFCN_H | ||
19183 | #include <dlfcn.h> | ||
19184 | #endif | ||
19185 | |||
19186 | #include <stdio.h> | ||
19187 | |||
19188 | #ifdef RTLD_GLOBAL | ||
19189 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
19190 | #else | ||
19191 | # ifdef DL_GLOBAL | ||
19192 | # define LT_DLGLOBAL DL_GLOBAL | ||
19193 | # else | ||
19194 | # define LT_DLGLOBAL 0 | ||
19195 | # endif | ||
19196 | #endif | ||
19197 | |||
19198 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
19199 | find out it does not work in some platform. */ | ||
19200 | #ifndef LT_DLLAZY_OR_NOW | ||
19201 | # ifdef RTLD_LAZY | ||
19202 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
19203 | # else | ||
19204 | # ifdef DL_LAZY | ||
19205 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
19206 | # else | ||
19207 | # ifdef RTLD_NOW | ||
19208 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
19209 | # else | ||
19210 | # ifdef DL_NOW | ||
19211 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
19212 | # else | ||
19213 | # define LT_DLLAZY_OR_NOW 0 | ||
19214 | # endif | ||
19215 | # endif | ||
19216 | # endif | ||
19217 | # endif | ||
19218 | #endif | ||
19219 | |||
19220 | #ifdef __cplusplus | ||
19221 | extern "C" void exit (int); | ||
19222 | #endif | ||
19223 | |||
19224 | void fnord() { int i=42;} | ||
19225 | int main () | ||
19226 | { | ||
19227 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
19228 | int status = $lt_dlunknown; | ||
19229 | |||
19230 | if (self) | ||
19231 | { | ||
19232 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
19233 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
19234 | /* dlclose (self); */ | ||
19235 | } | ||
19236 | |||
19237 | exit (status); | ||
19238 | } | ||
19239 | EOF | ||
19240 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
19241 | (eval $ac_link) 2>&5 | ||
19242 | ac_status=$? | ||
19243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19244 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
19245 | (./conftest; exit; ) 2>/dev/null | ||
19246 | lt_status=$? | ||
19247 | case x$lt_status in | ||
19248 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | ||
19249 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | ||
19250 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; | ||
19251 | esac | ||
19252 | else : | ||
19253 | # compilation failed | ||
19254 | lt_cv_dlopen_self=no | ||
19255 | fi | ||
19256 | fi | ||
19257 | rm -fr conftest* | ||
19258 | |||
19259 | |||
19260 | fi | ||
19261 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | ||
19262 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } | ||
19263 | |||
19264 | if test "x$lt_cv_dlopen_self" = xyes; then | ||
19265 | LDFLAGS="$LDFLAGS $link_static_flag" | ||
19266 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | ||
19267 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } | ||
19268 | if test "${lt_cv_dlopen_self_static+set}" = set; then | ||
19269 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
19270 | else | ||
19271 | if test "$cross_compiling" = yes; then : | ||
19272 | lt_cv_dlopen_self_static=cross | ||
19273 | else | ||
19274 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | ||
19275 | lt_status=$lt_dlunknown | ||
19276 | cat > conftest.$ac_ext <<EOF | ||
19277 | #line 19277 "configure" | ||
19278 | #include "confdefs.h" | ||
19279 | |||
19280 | #if HAVE_DLFCN_H | ||
19281 | #include <dlfcn.h> | ||
19282 | #endif | ||
19283 | |||
19284 | #include <stdio.h> | ||
19285 | |||
19286 | #ifdef RTLD_GLOBAL | ||
19287 | # define LT_DLGLOBAL RTLD_GLOBAL | ||
19288 | #else | ||
19289 | # ifdef DL_GLOBAL | ||
19290 | # define LT_DLGLOBAL DL_GLOBAL | ||
19291 | # else | ||
19292 | # define LT_DLGLOBAL 0 | ||
19293 | # endif | ||
19294 | #endif | ||
19295 | |||
19296 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | ||
19297 | find out it does not work in some platform. */ | ||
19298 | #ifndef LT_DLLAZY_OR_NOW | ||
19299 | # ifdef RTLD_LAZY | ||
19300 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | ||
19301 | # else | ||
19302 | # ifdef DL_LAZY | ||
19303 | # define LT_DLLAZY_OR_NOW DL_LAZY | ||
19304 | # else | ||
19305 | # ifdef RTLD_NOW | ||
19306 | # define LT_DLLAZY_OR_NOW RTLD_NOW | ||
19307 | # else | ||
19308 | # ifdef DL_NOW | ||
19309 | # define LT_DLLAZY_OR_NOW DL_NOW | ||
19310 | # else | ||
19311 | # define LT_DLLAZY_OR_NOW 0 | ||
19312 | # endif | ||
19313 | # endif | ||
19314 | # endif | ||
19315 | # endif | ||
19316 | #endif | ||
19317 | |||
19318 | #ifdef __cplusplus | ||
19319 | extern "C" void exit (int); | ||
19320 | #endif | ||
19321 | |||
19322 | void fnord() { int i=42;} | ||
19323 | int main () | ||
19324 | { | ||
19325 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | ||
19326 | int status = $lt_dlunknown; | ||
19327 | |||
19328 | if (self) | ||
19329 | { | ||
19330 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | ||
19331 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | ||
19332 | /* dlclose (self); */ | ||
19333 | } | ||
19334 | |||
19335 | exit (status); | ||
19336 | } | ||
19337 | EOF | ||
19338 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | ||
19339 | (eval $ac_link) 2>&5 | ||
19340 | ac_status=$? | ||
19341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
19342 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | ||
19343 | (./conftest; exit; ) 2>/dev/null | ||
19344 | lt_status=$? | ||
19345 | case x$lt_status in | ||
19346 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | ||
19347 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | ||
19348 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; | ||
19349 | esac | ||
19350 | else : | ||
19351 | # compilation failed | ||
19352 | lt_cv_dlopen_self_static=no | ||
19353 | fi | ||
19354 | fi | ||
19355 | rm -fr conftest* | ||
19356 | |||
19357 | |||
19358 | fi | ||
19359 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | ||
19360 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } | ||
19361 | fi | ||
19362 | |||
19363 | CPPFLAGS="$save_CPPFLAGS" | ||
19364 | LDFLAGS="$save_LDFLAGS" | ||
19365 | LIBS="$save_LIBS" | ||
19366 | ;; | ||
19367 | esac | ||
19368 | |||
19369 | case $lt_cv_dlopen_self in | ||
19370 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | ||
19371 | *) enable_dlopen_self=unknown ;; | ||
19372 | esac | ||
19373 | |||
19374 | case $lt_cv_dlopen_self_static in | ||
19375 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | ||
19376 | *) enable_dlopen_self_static=unknown ;; | ||
19377 | esac | ||
19378 | fi | ||
19379 | |||
19380 | |||
19381 | # The else clause should only fire when bootstrapping the | ||
19382 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
19383 | # with your package, and you will get complaints that there are | ||
19384 | # no rules to generate ltmain.sh. | ||
19385 | if test -f "$ltmain"; then | ||
19386 | # See if we are running on zsh, and set the options which allow our commands through | ||
19387 | # without removal of \ escapes. | ||
19388 | if test -n "${ZSH_VERSION+set}" ; then | ||
19389 | setopt NO_GLOB_SUBST | ||
19390 | fi | ||
19391 | # Now quote all the things that may contain metacharacters while being | ||
19392 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
19393 | # variables and quote the copies for generation of the libtool script. | ||
19394 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | ||
19395 | SED SHELL STRIP \ | ||
19396 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
19397 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
19398 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
19399 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
19400 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
19401 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
19402 | old_postinstall_cmds old_postuninstall_cmds \ | ||
19403 | compiler_GCJ \ | ||
19404 | CC_GCJ \ | ||
19405 | LD_GCJ \ | ||
19406 | lt_prog_compiler_wl_GCJ \ | ||
19407 | lt_prog_compiler_pic_GCJ \ | ||
19408 | lt_prog_compiler_static_GCJ \ | ||
19409 | lt_prog_compiler_no_builtin_flag_GCJ \ | ||
19410 | export_dynamic_flag_spec_GCJ \ | ||
19411 | thread_safe_flag_spec_GCJ \ | ||
19412 | whole_archive_flag_spec_GCJ \ | ||
19413 | enable_shared_with_static_runtimes_GCJ \ | ||
19414 | old_archive_cmds_GCJ \ | ||
19415 | old_archive_from_new_cmds_GCJ \ | ||
19416 | predep_objects_GCJ \ | ||
19417 | postdep_objects_GCJ \ | ||
19418 | predeps_GCJ \ | ||
19419 | postdeps_GCJ \ | ||
19420 | compiler_lib_search_path_GCJ \ | ||
19421 | archive_cmds_GCJ \ | ||
19422 | archive_expsym_cmds_GCJ \ | ||
19423 | postinstall_cmds_GCJ \ | ||
19424 | postuninstall_cmds_GCJ \ | ||
19425 | old_archive_from_expsyms_cmds_GCJ \ | ||
19426 | allow_undefined_flag_GCJ \ | ||
19427 | no_undefined_flag_GCJ \ | ||
19428 | export_symbols_cmds_GCJ \ | ||
19429 | hardcode_libdir_flag_spec_GCJ \ | ||
19430 | hardcode_libdir_flag_spec_ld_GCJ \ | ||
19431 | hardcode_libdir_separator_GCJ \ | ||
19432 | hardcode_automatic_GCJ \ | ||
19433 | module_cmds_GCJ \ | ||
19434 | module_expsym_cmds_GCJ \ | ||
19435 | lt_cv_prog_compiler_c_o_GCJ \ | ||
19436 | exclude_expsyms_GCJ \ | ||
19437 | include_expsyms_GCJ; do | ||
19438 | |||
19439 | case $var in | ||
19440 | old_archive_cmds_GCJ | \ | ||
19441 | old_archive_from_new_cmds_GCJ | \ | ||
19442 | archive_cmds_GCJ | \ | ||
19443 | archive_expsym_cmds_GCJ | \ | ||
19444 | module_cmds_GCJ | \ | ||
19445 | module_expsym_cmds_GCJ | \ | ||
19446 | old_archive_from_expsyms_cmds_GCJ | \ | ||
19447 | export_symbols_cmds_GCJ | \ | ||
19448 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
19449 | postinstall_cmds | postuninstall_cmds | \ | ||
19450 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
19451 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
19452 | # Double-quote double-evaled strings. | ||
19453 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
19454 | ;; | ||
19455 | *) | ||
19456 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
19457 | ;; | ||
19458 | esac | ||
19459 | done | ||
19460 | |||
19461 | case $lt_echo in | ||
19462 | *'\$0 --fallback-echo"') | ||
19463 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | ||
19464 | ;; | ||
19465 | esac | ||
19466 | |||
19467 | cfgfile="$ofile" | ||
19468 | |||
19469 | cat <<__EOF__ >> "$cfgfile" | ||
19470 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | ||
19471 | |||
19472 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
19473 | |||
19474 | # Shell to use when invoking shell scripts. | ||
19475 | SHELL=$lt_SHELL | ||
19476 | |||
19477 | # Whether or not to build shared libraries. | ||
19478 | build_libtool_libs=$enable_shared | ||
19479 | |||
19480 | # Whether or not to build static libraries. | ||
19481 | build_old_libs=$enable_static | ||
19482 | |||
19483 | # Whether or not to add -lc for building shared libraries. | ||
19484 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | ||
19485 | |||
19486 | # Whether or not to disallow shared libs when runtime libs are static | ||
19487 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | ||
19488 | |||
19489 | # Whether or not to optimize for fast installation. | ||
19490 | fast_install=$enable_fast_install | ||
19491 | |||
19492 | # The host system. | ||
19493 | host_alias=$host_alias | ||
19494 | host=$host | ||
19495 | |||
19496 | # An echo program that does not interpret backslashes. | ||
19497 | echo=$lt_echo | ||
19498 | |||
19499 | # The archiver. | ||
19500 | AR=$lt_AR | ||
19501 | AR_FLAGS=$lt_AR_FLAGS | ||
19502 | |||
19503 | # A C compiler. | ||
19504 | LTCC=$lt_LTCC | ||
19505 | |||
19506 | # A language-specific compiler. | ||
19507 | CC=$lt_compiler_GCJ | ||
19508 | |||
19509 | # Is the compiler the GNU C compiler? | ||
19510 | with_gcc=$GCC_GCJ | ||
19511 | |||
19512 | # An ERE matcher. | ||
19513 | EGREP=$lt_EGREP | ||
19514 | |||
19515 | # The linker used to build libraries. | ||
19516 | LD=$lt_LD_GCJ | ||
19517 | |||
19518 | # Whether we need hard or soft links. | ||
19519 | LN_S=$lt_LN_S | ||
19520 | |||
19521 | # A BSD-compatible nm program. | ||
19522 | NM=$lt_NM | ||
19523 | |||
19524 | # A symbol stripping program | ||
19525 | STRIP=$lt_STRIP | ||
19526 | |||
19527 | # Used to examine libraries when file_magic_cmd begins "file" | ||
19528 | MAGIC_CMD=$MAGIC_CMD | ||
19529 | |||
19530 | # Used on cygwin: DLL creation program. | ||
19531 | DLLTOOL="$DLLTOOL" | ||
19532 | |||
19533 | # Used on cygwin: object dumper. | ||
19534 | OBJDUMP="$OBJDUMP" | ||
19535 | |||
19536 | # Used on cygwin: assembler. | ||
19537 | AS="$AS" | ||
19538 | |||
19539 | # The name of the directory that contains temporary libtool files. | ||
19540 | objdir=$objdir | ||
19541 | |||
19542 | # How to create reloadable object files. | ||
19543 | reload_flag=$lt_reload_flag | ||
19544 | reload_cmds=$lt_reload_cmds | ||
19545 | |||
19546 | # How to pass a linker flag through the compiler. | ||
19547 | wl=$lt_lt_prog_compiler_wl_GCJ | ||
19548 | |||
19549 | # Object file suffix (normally "o"). | ||
19550 | objext="$ac_objext" | ||
19551 | |||
19552 | # Old archive suffix (normally "a"). | ||
19553 | libext="$libext" | ||
19554 | |||
19555 | # Shared library suffix (normally ".so"). | ||
19556 | shrext_cmds='$shrext_cmds' | ||
19557 | |||
19558 | # Executable file suffix (normally ""). | ||
19559 | exeext="$exeext" | ||
19560 | |||
19561 | # Additional compiler flags for building library objects. | ||
19562 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | ||
19563 | pic_mode=$pic_mode | ||
19564 | |||
19565 | # What is the maximum length of a command? | ||
19566 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
19567 | |||
19568 | # Does compiler simultaneously support -c and -o options? | ||
19569 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | ||
19570 | |||
19571 | # Must we lock files when doing compilation ? | ||
19572 | need_locks=$lt_need_locks | ||
19573 | |||
19574 | # Do we need the lib prefix for modules? | ||
19575 | need_lib_prefix=$need_lib_prefix | ||
19576 | |||
19577 | # Do we need a version for libraries? | ||
19578 | need_version=$need_version | ||
19579 | |||
19580 | # Whether dlopen is supported. | ||
19581 | dlopen_support=$enable_dlopen | ||
19582 | |||
19583 | # Whether dlopen of programs is supported. | ||
19584 | dlopen_self=$enable_dlopen_self | ||
19585 | |||
19586 | # Whether dlopen of statically linked programs is supported. | ||
19587 | dlopen_self_static=$enable_dlopen_self_static | ||
19588 | |||
19589 | # Compiler flag to prevent dynamic linking. | ||
19590 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | ||
19591 | |||
19592 | # Compiler flag to turn off builtin functions. | ||
19593 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | ||
19594 | |||
19595 | # Compiler flag to allow reflexive dlopens. | ||
19596 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | ||
19597 | |||
19598 | # Compiler flag to generate shared objects directly from archives. | ||
19599 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | ||
19600 | |||
19601 | # Compiler flag to generate thread-safe objects. | ||
19602 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | ||
19603 | |||
19604 | # Library versioning type. | ||
19605 | version_type=$version_type | ||
19606 | |||
19607 | # Format of library name prefix. | ||
19608 | libname_spec=$lt_libname_spec | ||
19609 | |||
19610 | # List of archive names. First name is the real one, the rest are links. | ||
19611 | # The last name is the one that the linker finds with -lNAME. | ||
19612 | library_names_spec=$lt_library_names_spec | ||
19613 | |||
19614 | # The coded name of the library, if different from the real name. | ||
19615 | soname_spec=$lt_soname_spec | ||
19616 | |||
19617 | # Commands used to build and install an old-style archive. | ||
19618 | RANLIB=$lt_RANLIB | ||
19619 | old_archive_cmds=$lt_old_archive_cmds_GCJ | ||
19620 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
19621 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
19622 | |||
19623 | # Create an old-style archive from a shared archive. | ||
19624 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | ||
19625 | |||
19626 | # Create a temporary old-style archive to link instead of a shared archive. | ||
19627 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | ||
19628 | |||
19629 | # Commands used to build and install a shared archive. | ||
19630 | archive_cmds=$lt_archive_cmds_GCJ | ||
19631 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | ||
19632 | postinstall_cmds=$lt_postinstall_cmds | ||
19633 | postuninstall_cmds=$lt_postuninstall_cmds | ||
19634 | |||
19635 | # Commands used to build a loadable module (assumed same as above if empty) | ||
19636 | module_cmds=$lt_module_cmds_GCJ | ||
19637 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | ||
19638 | |||
19639 | # Commands to strip libraries. | ||
19640 | old_striplib=$lt_old_striplib | ||
19641 | striplib=$lt_striplib | ||
19642 | |||
19643 | # Dependencies to place before the objects being linked to create a | ||
19644 | # shared library. | ||
19645 | predep_objects=$lt_predep_objects_GCJ | ||
19646 | |||
19647 | # Dependencies to place after the objects being linked to create a | ||
19648 | # shared library. | ||
19649 | postdep_objects=$lt_postdep_objects_GCJ | ||
19650 | |||
19651 | # Dependencies to place before the objects being linked to create a | ||
19652 | # shared library. | ||
19653 | predeps=$lt_predeps_GCJ | ||
19654 | |||
19655 | # Dependencies to place after the objects being linked to create a | ||
19656 | # shared library. | ||
19657 | postdeps=$lt_postdeps_GCJ | ||
19658 | |||
19659 | # The library search path used internally by the compiler when linking | ||
19660 | # a shared library. | ||
19661 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | ||
19662 | |||
19663 | # Method to check whether dependent libraries are shared objects. | ||
19664 | deplibs_check_method=$lt_deplibs_check_method | ||
19665 | |||
19666 | # Command to use when deplibs_check_method == file_magic. | ||
19667 | file_magic_cmd=$lt_file_magic_cmd | ||
19668 | |||
19669 | # Flag that allows shared libraries with undefined symbols to be built. | ||
19670 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | ||
19671 | |||
19672 | # Flag that forces no undefined symbols. | ||
19673 | no_undefined_flag=$lt_no_undefined_flag_GCJ | ||
19674 | |||
19675 | # Commands used to finish a libtool library installation in a directory. | ||
19676 | finish_cmds=$lt_finish_cmds | ||
19677 | |||
19678 | # Same as above, but a single script fragment to be evaled but not shown. | ||
19679 | finish_eval=$lt_finish_eval | ||
19680 | |||
19681 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
19682 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
19683 | |||
19684 | # Transform the output of nm in a proper C declaration | ||
19685 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
19686 | |||
19687 | # Transform the output of nm in a C name address pair | ||
19688 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
19689 | |||
19690 | # This is the shared library runtime path variable. | ||
19691 | runpath_var=$runpath_var | ||
19692 | |||
19693 | # This is the shared library path variable. | ||
19694 | shlibpath_var=$shlibpath_var | ||
19695 | |||
19696 | # Is shlibpath searched before the hard-coded library search path? | ||
19697 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
19698 | |||
19699 | # How to hardcode a shared library path into an executable. | ||
19700 | hardcode_action=$hardcode_action_GCJ | ||
19701 | |||
19702 | # Whether we should hardcode library paths into libraries. | ||
19703 | hardcode_into_libs=$hardcode_into_libs | ||
19704 | |||
19705 | # Flag to hardcode \$libdir into a binary during linking. | ||
19706 | # This must work even if \$libdir does not exist. | ||
19707 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | ||
19708 | |||
19709 | # If ld is used when linking, flag to hardcode \$libdir into | ||
19710 | # a binary during linking. This must work even if \$libdir does | ||
19711 | # not exist. | ||
19712 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | ||
19713 | |||
19714 | # Whether we need a single -rpath flag with a separated argument. | ||
19715 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | ||
19716 | |||
19717 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
19718 | # resulting binary. | ||
19719 | hardcode_direct=$hardcode_direct_GCJ | ||
19720 | |||
19721 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
19722 | # resulting binary. | ||
19723 | hardcode_minus_L=$hardcode_minus_L_GCJ | ||
19724 | |||
19725 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
19726 | # the resulting binary. | ||
19727 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | ||
19728 | |||
19729 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
19730 | # and all subsequent libraries and executables linked against it. | ||
19731 | hardcode_automatic=$hardcode_automatic_GCJ | ||
19732 | |||
19733 | # Variables whose values should be saved in libtool wrapper scripts and | ||
19734 | # restored at relink time. | ||
19735 | variables_saved_for_relink="$variables_saved_for_relink" | ||
19736 | |||
19737 | # Whether libtool must link a program against all its dependency libraries. | ||
19738 | link_all_deplibs=$link_all_deplibs_GCJ | ||
19739 | |||
19740 | # Compile-time system search path for libraries | ||
19741 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
19742 | |||
19743 | # Run-time system search path for libraries | ||
19744 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
19745 | |||
19746 | # Fix the shell variable \$srcfile for the compiler. | ||
19747 | fix_srcfile_path="$fix_srcfile_path_GCJ" | ||
19748 | |||
19749 | # Set to yes if exported symbols are required. | ||
19750 | always_export_symbols=$always_export_symbols_GCJ | ||
19751 | |||
19752 | # The commands to list exported symbols. | ||
19753 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | ||
19754 | |||
19755 | # The commands to extract the exported symbol list from a shared archive. | ||
19756 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
19757 | |||
19758 | # Symbols that should not be listed in the preloaded symbols. | ||
19759 | exclude_expsyms=$lt_exclude_expsyms_GCJ | ||
19760 | |||
19761 | # Symbols that must always be exported. | ||
19762 | include_expsyms=$lt_include_expsyms_GCJ | ||
19763 | |||
19764 | # ### END LIBTOOL TAG CONFIG: $tagname | ||
19765 | |||
19766 | __EOF__ | ||
19767 | |||
19768 | |||
19769 | else | ||
19770 | # If there is no Makefile yet, we rely on a make rule to execute | ||
19771 | # `config.status --recheck' to rerun these tests and create the | ||
19772 | # libtool script then. | ||
19773 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
19774 | if test -f "$ltmain_in"; then | ||
19775 | test -f Makefile && make "$ltmain" | ||
19776 | fi | ||
19777 | fi | ||
19778 | |||
19779 | |||
19780 | ac_ext=c | ||
19781 | ac_cpp='$CPP $CPPFLAGS' | ||
19782 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
19783 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
19784 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
19785 | |||
19786 | CC="$lt_save_CC" | ||
19787 | |||
19788 | else | ||
19789 | tagname="" | ||
19790 | fi | ||
19791 | ;; | ||
19792 | |||
19793 | RC) | ||
19794 | |||
19795 | |||
19796 | # Source file extension for RC test sources. | ||
19797 | ac_ext=rc | ||
19798 | |||
19799 | # Object file extension for compiled RC test sources. | ||
19800 | objext=o | ||
19801 | objext_RC=$objext | ||
19802 | |||
19803 | # Code to be used in simple compile tests | ||
19804 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | ||
19805 | |||
19806 | # Code to be used in simple link tests | ||
19807 | lt_simple_link_test_code="$lt_simple_compile_test_code" | ||
19808 | |||
19809 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | ||
19810 | |||
19811 | # If no C compiler was specified, use CC. | ||
19812 | LTCC=${LTCC-"$CC"} | ||
19813 | |||
19814 | # Allow CC to be a program name with arguments. | ||
19815 | compiler=$CC | ||
19816 | |||
19817 | |||
19818 | # Allow CC to be a program name with arguments. | ||
19819 | lt_save_CC="$CC" | ||
19820 | CC=${RC-"windres"} | ||
19821 | compiler=$CC | ||
19822 | compiler_RC=$CC | ||
19823 | lt_cv_prog_compiler_c_o_RC=yes | ||
19824 | |||
19825 | # The else clause should only fire when bootstrapping the | ||
19826 | # libtool distribution, otherwise you forgot to ship ltmain.sh | ||
19827 | # with your package, and you will get complaints that there are | ||
19828 | # no rules to generate ltmain.sh. | ||
19829 | if test -f "$ltmain"; then | ||
19830 | # See if we are running on zsh, and set the options which allow our commands through | ||
19831 | # without removal of \ escapes. | ||
19832 | if test -n "${ZSH_VERSION+set}" ; then | ||
19833 | setopt NO_GLOB_SUBST | ||
19834 | fi | ||
19835 | # Now quote all the things that may contain metacharacters while being | ||
19836 | # careful not to overquote the AC_SUBSTed values. We take copies of the | ||
19837 | # variables and quote the copies for generation of the libtool script. | ||
19838 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ | ||
19839 | SED SHELL STRIP \ | ||
19840 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | ||
19841 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | ||
19842 | deplibs_check_method reload_flag reload_cmds need_locks \ | ||
19843 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | ||
19844 | lt_cv_sys_global_symbol_to_c_name_address \ | ||
19845 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | ||
19846 | old_postinstall_cmds old_postuninstall_cmds \ | ||
19847 | compiler_RC \ | ||
19848 | CC_RC \ | ||
19849 | LD_RC \ | ||
19850 | lt_prog_compiler_wl_RC \ | ||
19851 | lt_prog_compiler_pic_RC \ | ||
19852 | lt_prog_compiler_static_RC \ | ||
19853 | lt_prog_compiler_no_builtin_flag_RC \ | ||
19854 | export_dynamic_flag_spec_RC \ | ||
19855 | thread_safe_flag_spec_RC \ | ||
19856 | whole_archive_flag_spec_RC \ | ||
19857 | enable_shared_with_static_runtimes_RC \ | ||
19858 | old_archive_cmds_RC \ | ||
19859 | old_archive_from_new_cmds_RC \ | ||
19860 | predep_objects_RC \ | ||
19861 | postdep_objects_RC \ | ||
19862 | predeps_RC \ | ||
19863 | postdeps_RC \ | ||
19864 | compiler_lib_search_path_RC \ | ||
19865 | archive_cmds_RC \ | ||
19866 | archive_expsym_cmds_RC \ | ||
19867 | postinstall_cmds_RC \ | ||
19868 | postuninstall_cmds_RC \ | ||
19869 | old_archive_from_expsyms_cmds_RC \ | ||
19870 | allow_undefined_flag_RC \ | ||
19871 | no_undefined_flag_RC \ | ||
19872 | export_symbols_cmds_RC \ | ||
19873 | hardcode_libdir_flag_spec_RC \ | ||
19874 | hardcode_libdir_flag_spec_ld_RC \ | ||
19875 | hardcode_libdir_separator_RC \ | ||
19876 | hardcode_automatic_RC \ | ||
19877 | module_cmds_RC \ | ||
19878 | module_expsym_cmds_RC \ | ||
19879 | lt_cv_prog_compiler_c_o_RC \ | ||
19880 | exclude_expsyms_RC \ | ||
19881 | include_expsyms_RC; do | ||
19882 | |||
19883 | case $var in | ||
19884 | old_archive_cmds_RC | \ | ||
19885 | old_archive_from_new_cmds_RC | \ | ||
19886 | archive_cmds_RC | \ | ||
19887 | archive_expsym_cmds_RC | \ | ||
19888 | module_cmds_RC | \ | ||
19889 | module_expsym_cmds_RC | \ | ||
19890 | old_archive_from_expsyms_cmds_RC | \ | ||
19891 | export_symbols_cmds_RC | \ | ||
19892 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | ||
19893 | postinstall_cmds | postuninstall_cmds | \ | ||
19894 | old_postinstall_cmds | old_postuninstall_cmds | \ | ||
19895 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | ||
19896 | # Double-quote double-evaled strings. | ||
19897 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | ||
19898 | ;; | ||
19899 | *) | ||
19900 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | ||
19901 | ;; | ||
19902 | esac | ||
19903 | done | ||
19904 | |||
19905 | case $lt_echo in | ||
19906 | *'\$0 --fallback-echo"') | ||
19907 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | ||
19908 | ;; | ||
19909 | esac | ||
19910 | |||
19911 | cfgfile="$ofile" | ||
19912 | |||
19913 | cat <<__EOF__ >> "$cfgfile" | ||
19914 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | ||
19915 | |||
19916 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | ||
19917 | |||
19918 | # Shell to use when invoking shell scripts. | ||
19919 | SHELL=$lt_SHELL | ||
19920 | |||
19921 | # Whether or not to build shared libraries. | ||
19922 | build_libtool_libs=$enable_shared | ||
19923 | |||
19924 | # Whether or not to build static libraries. | ||
19925 | build_old_libs=$enable_static | ||
19926 | |||
19927 | # Whether or not to add -lc for building shared libraries. | ||
19928 | build_libtool_need_lc=$archive_cmds_need_lc_RC | ||
19929 | |||
19930 | # Whether or not to disallow shared libs when runtime libs are static | ||
19931 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | ||
19932 | |||
19933 | # Whether or not to optimize for fast installation. | ||
19934 | fast_install=$enable_fast_install | ||
19935 | |||
19936 | # The host system. | ||
19937 | host_alias=$host_alias | ||
19938 | host=$host | ||
19939 | |||
19940 | # An echo program that does not interpret backslashes. | ||
19941 | echo=$lt_echo | ||
19942 | |||
19943 | # The archiver. | ||
19944 | AR=$lt_AR | ||
19945 | AR_FLAGS=$lt_AR_FLAGS | ||
19946 | |||
19947 | # A C compiler. | ||
19948 | LTCC=$lt_LTCC | ||
19949 | |||
19950 | # A language-specific compiler. | ||
19951 | CC=$lt_compiler_RC | ||
19952 | |||
19953 | # Is the compiler the GNU C compiler? | ||
19954 | with_gcc=$GCC_RC | ||
19955 | |||
19956 | # An ERE matcher. | ||
19957 | EGREP=$lt_EGREP | ||
19958 | |||
19959 | # The linker used to build libraries. | ||
19960 | LD=$lt_LD_RC | ||
19961 | |||
19962 | # Whether we need hard or soft links. | ||
19963 | LN_S=$lt_LN_S | ||
19964 | |||
19965 | # A BSD-compatible nm program. | ||
19966 | NM=$lt_NM | ||
19967 | |||
19968 | # A symbol stripping program | ||
19969 | STRIP=$lt_STRIP | ||
19970 | |||
19971 | # Used to examine libraries when file_magic_cmd begins "file" | ||
19972 | MAGIC_CMD=$MAGIC_CMD | ||
19973 | |||
19974 | # Used on cygwin: DLL creation program. | ||
19975 | DLLTOOL="$DLLTOOL" | ||
19976 | |||
19977 | # Used on cygwin: object dumper. | ||
19978 | OBJDUMP="$OBJDUMP" | ||
19979 | |||
19980 | # Used on cygwin: assembler. | ||
19981 | AS="$AS" | ||
19982 | |||
19983 | # The name of the directory that contains temporary libtool files. | ||
19984 | objdir=$objdir | ||
19985 | |||
19986 | # How to create reloadable object files. | ||
19987 | reload_flag=$lt_reload_flag | ||
19988 | reload_cmds=$lt_reload_cmds | ||
19989 | |||
19990 | # How to pass a linker flag through the compiler. | ||
19991 | wl=$lt_lt_prog_compiler_wl_RC | ||
19992 | |||
19993 | # Object file suffix (normally "o"). | ||
19994 | objext="$ac_objext" | ||
19995 | |||
19996 | # Old archive suffix (normally "a"). | ||
19997 | libext="$libext" | ||
19998 | |||
19999 | # Shared library suffix (normally ".so"). | ||
20000 | shrext_cmds='$shrext_cmds' | ||
20001 | |||
20002 | # Executable file suffix (normally ""). | ||
20003 | exeext="$exeext" | ||
20004 | |||
20005 | # Additional compiler flags for building library objects. | ||
20006 | pic_flag=$lt_lt_prog_compiler_pic_RC | ||
20007 | pic_mode=$pic_mode | ||
20008 | |||
20009 | # What is the maximum length of a command? | ||
20010 | max_cmd_len=$lt_cv_sys_max_cmd_len | ||
20011 | |||
20012 | # Does compiler simultaneously support -c and -o options? | ||
20013 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | ||
20014 | |||
20015 | # Must we lock files when doing compilation ? | ||
20016 | need_locks=$lt_need_locks | ||
20017 | |||
20018 | # Do we need the lib prefix for modules? | ||
20019 | need_lib_prefix=$need_lib_prefix | ||
20020 | |||
20021 | # Do we need a version for libraries? | ||
20022 | need_version=$need_version | ||
20023 | |||
20024 | # Whether dlopen is supported. | ||
20025 | dlopen_support=$enable_dlopen | ||
20026 | |||
20027 | # Whether dlopen of programs is supported. | ||
20028 | dlopen_self=$enable_dlopen_self | ||
20029 | |||
20030 | # Whether dlopen of statically linked programs is supported. | ||
20031 | dlopen_self_static=$enable_dlopen_self_static | ||
20032 | |||
20033 | # Compiler flag to prevent dynamic linking. | ||
20034 | link_static_flag=$lt_lt_prog_compiler_static_RC | ||
20035 | |||
20036 | # Compiler flag to turn off builtin functions. | ||
20037 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | ||
20038 | |||
20039 | # Compiler flag to allow reflexive dlopens. | ||
20040 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | ||
20041 | |||
20042 | # Compiler flag to generate shared objects directly from archives. | ||
20043 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | ||
20044 | |||
20045 | # Compiler flag to generate thread-safe objects. | ||
20046 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | ||
20047 | |||
20048 | # Library versioning type. | ||
20049 | version_type=$version_type | ||
20050 | |||
20051 | # Format of library name prefix. | ||
20052 | libname_spec=$lt_libname_spec | ||
20053 | |||
20054 | # List of archive names. First name is the real one, the rest are links. | ||
20055 | # The last name is the one that the linker finds with -lNAME. | ||
20056 | library_names_spec=$lt_library_names_spec | ||
20057 | |||
20058 | # The coded name of the library, if different from the real name. | ||
20059 | soname_spec=$lt_soname_spec | ||
20060 | |||
20061 | # Commands used to build and install an old-style archive. | ||
20062 | RANLIB=$lt_RANLIB | ||
20063 | old_archive_cmds=$lt_old_archive_cmds_RC | ||
20064 | old_postinstall_cmds=$lt_old_postinstall_cmds | ||
20065 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | ||
20066 | |||
20067 | # Create an old-style archive from a shared archive. | ||
20068 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | ||
20069 | |||
20070 | # Create a temporary old-style archive to link instead of a shared archive. | ||
20071 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | ||
20072 | |||
20073 | # Commands used to build and install a shared archive. | ||
20074 | archive_cmds=$lt_archive_cmds_RC | ||
20075 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | ||
20076 | postinstall_cmds=$lt_postinstall_cmds | ||
20077 | postuninstall_cmds=$lt_postuninstall_cmds | ||
20078 | |||
20079 | # Commands used to build a loadable module (assumed same as above if empty) | ||
20080 | module_cmds=$lt_module_cmds_RC | ||
20081 | module_expsym_cmds=$lt_module_expsym_cmds_RC | ||
20082 | |||
20083 | # Commands to strip libraries. | ||
20084 | old_striplib=$lt_old_striplib | ||
20085 | striplib=$lt_striplib | ||
20086 | |||
20087 | # Dependencies to place before the objects being linked to create a | ||
20088 | # shared library. | ||
20089 | predep_objects=$lt_predep_objects_RC | ||
20090 | |||
20091 | # Dependencies to place after the objects being linked to create a | ||
20092 | # shared library. | ||
20093 | postdep_objects=$lt_postdep_objects_RC | ||
20094 | |||
20095 | # Dependencies to place before the objects being linked to create a | ||
20096 | # shared library. | ||
20097 | predeps=$lt_predeps_RC | ||
20098 | |||
20099 | # Dependencies to place after the objects being linked to create a | ||
20100 | # shared library. | ||
20101 | postdeps=$lt_postdeps_RC | ||
20102 | |||
20103 | # The library search path used internally by the compiler when linking | ||
20104 | # a shared library. | ||
20105 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | ||
20106 | |||
20107 | # Method to check whether dependent libraries are shared objects. | ||
20108 | deplibs_check_method=$lt_deplibs_check_method | ||
20109 | |||
20110 | # Command to use when deplibs_check_method == file_magic. | ||
20111 | file_magic_cmd=$lt_file_magic_cmd | ||
20112 | |||
20113 | # Flag that allows shared libraries with undefined symbols to be built. | ||
20114 | allow_undefined_flag=$lt_allow_undefined_flag_RC | ||
20115 | |||
20116 | # Flag that forces no undefined symbols. | ||
20117 | no_undefined_flag=$lt_no_undefined_flag_RC | ||
20118 | |||
20119 | # Commands used to finish a libtool library installation in a directory. | ||
20120 | finish_cmds=$lt_finish_cmds | ||
20121 | |||
20122 | # Same as above, but a single script fragment to be evaled but not shown. | ||
20123 | finish_eval=$lt_finish_eval | ||
20124 | |||
20125 | # Take the output of nm and produce a listing of raw symbols and C names. | ||
20126 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | ||
20127 | |||
20128 | # Transform the output of nm in a proper C declaration | ||
20129 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | ||
20130 | |||
20131 | # Transform the output of nm in a C name address pair | ||
20132 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | ||
20133 | |||
20134 | # This is the shared library runtime path variable. | ||
20135 | runpath_var=$runpath_var | ||
20136 | |||
20137 | # This is the shared library path variable. | ||
20138 | shlibpath_var=$shlibpath_var | ||
20139 | |||
20140 | # Is shlibpath searched before the hard-coded library search path? | ||
20141 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | ||
20142 | |||
20143 | # How to hardcode a shared library path into an executable. | ||
20144 | hardcode_action=$hardcode_action_RC | ||
20145 | |||
20146 | # Whether we should hardcode library paths into libraries. | ||
20147 | hardcode_into_libs=$hardcode_into_libs | ||
20148 | |||
20149 | # Flag to hardcode \$libdir into a binary during linking. | ||
20150 | # This must work even if \$libdir does not exist. | ||
20151 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | ||
20152 | |||
20153 | # If ld is used when linking, flag to hardcode \$libdir into | ||
20154 | # a binary during linking. This must work even if \$libdir does | ||
20155 | # not exist. | ||
20156 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | ||
20157 | |||
20158 | # Whether we need a single -rpath flag with a separated argument. | ||
20159 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | ||
20160 | |||
20161 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | ||
20162 | # resulting binary. | ||
20163 | hardcode_direct=$hardcode_direct_RC | ||
20164 | |||
20165 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | ||
20166 | # resulting binary. | ||
20167 | hardcode_minus_L=$hardcode_minus_L_RC | ||
20168 | |||
20169 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | ||
20170 | # the resulting binary. | ||
20171 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | ||
20172 | |||
20173 | # Set to yes if building a shared library automatically hardcodes DIR into the library | ||
20174 | # and all subsequent libraries and executables linked against it. | ||
20175 | hardcode_automatic=$hardcode_automatic_RC | ||
20176 | |||
20177 | # Variables whose values should be saved in libtool wrapper scripts and | ||
20178 | # restored at relink time. | ||
20179 | variables_saved_for_relink="$variables_saved_for_relink" | ||
20180 | |||
20181 | # Whether libtool must link a program against all its dependency libraries. | ||
20182 | link_all_deplibs=$link_all_deplibs_RC | ||
20183 | |||
20184 | # Compile-time system search path for libraries | ||
20185 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | ||
20186 | |||
20187 | # Run-time system search path for libraries | ||
20188 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | ||
20189 | |||
20190 | # Fix the shell variable \$srcfile for the compiler. | ||
20191 | fix_srcfile_path="$fix_srcfile_path_RC" | ||
20192 | |||
20193 | # Set to yes if exported symbols are required. | ||
20194 | always_export_symbols=$always_export_symbols_RC | ||
20195 | |||
20196 | # The commands to list exported symbols. | ||
20197 | export_symbols_cmds=$lt_export_symbols_cmds_RC | ||
20198 | |||
20199 | # The commands to extract the exported symbol list from a shared archive. | ||
20200 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | ||
20201 | |||
20202 | # Symbols that should not be listed in the preloaded symbols. | ||
20203 | exclude_expsyms=$lt_exclude_expsyms_RC | ||
20204 | |||
20205 | # Symbols that must always be exported. | ||
20206 | include_expsyms=$lt_include_expsyms_RC | ||
20207 | |||
20208 | # ### END LIBTOOL TAG CONFIG: $tagname | ||
20209 | |||
20210 | __EOF__ | ||
20211 | |||
20212 | |||
20213 | else | ||
20214 | # If there is no Makefile yet, we rely on a make rule to execute | ||
20215 | # `config.status --recheck' to rerun these tests and create the | ||
20216 | # libtool script then. | ||
20217 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | ||
20218 | if test -f "$ltmain_in"; then | ||
20219 | test -f Makefile && make "$ltmain" | ||
20220 | fi | ||
20221 | fi | ||
20222 | |||
20223 | |||
20224 | ac_ext=c | ||
20225 | ac_cpp='$CPP $CPPFLAGS' | ||
20226 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | ||
20227 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | ||
20228 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | ||
20229 | |||
20230 | CC="$lt_save_CC" | ||
20231 | |||
20232 | ;; | ||
20233 | |||
20234 | *) | ||
20235 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | ||
20236 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | ||
20237 | { (exit 1); exit 1; }; } | ||
20238 | ;; | ||
20239 | esac | ||
20240 | |||
20241 | # Append the new tag name to the list of available tags. | ||
20242 | if test -n "$tagname" ; then | ||
20243 | available_tags="$available_tags $tagname" | ||
20244 | fi | ||
20245 | fi | ||
20246 | done | ||
20247 | IFS="$lt_save_ifs" | ||
20248 | |||
20249 | # Now substitute the updated list of available tags. | ||
20250 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | ||
20251 | mv "${ofile}T" "$ofile" | ||
20252 | chmod +x "$ofile" | ||
20253 | else | ||
20254 | rm -f "${ofile}T" | ||
20255 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | ||
20256 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | ||
20257 | { (exit 1); exit 1; }; } | ||
20258 | fi | ||
20259 | fi | ||
20260 | |||
20261 | |||
20262 | |||
20263 | # This can be used to rebuild libtool when needed | ||
20264 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | ||
20265 | |||
20266 | # Always use our own libtool. | ||
20267 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | ||
20268 | |||
20269 | # Prevent multiple expansion | ||
20270 | |||
20271 | |||
20272 | |||
20273 | |||
20274 | |||
20275 | |||
20276 | |||
20277 | |||
20278 | |||
20279 | |||
20280 | |||
20281 | |||
20282 | |||
20283 | |||
20284 | |||
20285 | |||
20286 | |||
20287 | |||
20288 | |||
20289 | |||
20290 | |||
20291 | # gtk-doc | ||
20292 | |||
20293 | |||
20294 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | ||
20295 | if test -n "$ac_tool_prefix"; then | ||
20296 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | ||
20297 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | ||
20298 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
20299 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
20300 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | ||
20301 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20302 | else | ||
20303 | case $PKG_CONFIG in | ||
20304 | [\\/]* | ?:[\\/]*) | ||
20305 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
20306 | ;; | ||
20307 | *) | ||
20308 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
20309 | for as_dir in $PATH | ||
20310 | do | ||
20311 | IFS=$as_save_IFS | ||
20312 | test -z "$as_dir" && as_dir=. | ||
20313 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
20314 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
20315 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
20316 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
20317 | break 2 | ||
20318 | fi | ||
20319 | done | ||
20320 | done | ||
20321 | IFS=$as_save_IFS | ||
20322 | |||
20323 | ;; | ||
20324 | esac | ||
20325 | fi | ||
20326 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
20327 | if test -n "$PKG_CONFIG"; then | ||
20328 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | ||
20329 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | ||
20330 | else | ||
20331 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20332 | echo "${ECHO_T}no" >&6; } | ||
20333 | fi | ||
20334 | |||
20335 | |||
20336 | fi | ||
20337 | if test -z "$ac_cv_path_PKG_CONFIG"; then | ||
20338 | ac_pt_PKG_CONFIG=$PKG_CONFIG | ||
20339 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
20340 | set dummy pkg-config; ac_word=$2 | ||
20341 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
20342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
20343 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then | ||
20344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20345 | else | ||
20346 | case $ac_pt_PKG_CONFIG in | ||
20347 | [\\/]* | ?:[\\/]*) | ||
20348 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | ||
20349 | ;; | ||
20350 | *) | ||
20351 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
20352 | for as_dir in $PATH | ||
20353 | do | ||
20354 | IFS=$as_save_IFS | ||
20355 | test -z "$as_dir" && as_dir=. | ||
20356 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
20357 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
20358 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
20359 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
20360 | break 2 | ||
20361 | fi | ||
20362 | done | ||
20363 | done | ||
20364 | IFS=$as_save_IFS | ||
20365 | |||
20366 | ;; | ||
20367 | esac | ||
20368 | fi | ||
20369 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | ||
20370 | if test -n "$ac_pt_PKG_CONFIG"; then | ||
20371 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 | ||
20372 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } | ||
20373 | else | ||
20374 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20375 | echo "${ECHO_T}no" >&6; } | ||
20376 | fi | ||
20377 | |||
20378 | if test "x$ac_pt_PKG_CONFIG" = x; then | ||
20379 | PKG_CONFIG="" | ||
20380 | else | ||
20381 | case $cross_compiling:$ac_tool_warned in | ||
20382 | yes:) | ||
20383 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | ||
20384 | whose name does not start with the host triplet. If you think this | ||
20385 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | ||
20386 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | ||
20387 | whose name does not start with the host triplet. If you think this | ||
20388 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | ||
20389 | ac_tool_warned=yes ;; | ||
20390 | esac | ||
20391 | PKG_CONFIG=$ac_pt_PKG_CONFIG | ||
20392 | fi | ||
20393 | else | ||
20394 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | ||
20395 | fi | ||
20396 | |||
20397 | fi | ||
20398 | if test -n "$PKG_CONFIG"; then | ||
20399 | _pkg_min_version=0.9.0 | ||
20400 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 | ||
20401 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } | ||
20402 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | ||
20403 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
20404 | echo "${ECHO_T}yes" >&6; } | ||
20405 | else | ||
20406 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20407 | echo "${ECHO_T}no" >&6; } | ||
20408 | PKG_CONFIG="" | ||
20409 | fi | ||
20410 | |||
20411 | fi | ||
20412 | |||
20413 | |||
20414 | # Check whether --with-html-dir was given. | ||
20415 | if test "${with_html_dir+set}" = set; then | ||
20416 | withval=$with_html_dir; | ||
20417 | else | ||
20418 | with_html_dir='${datadir}/gtk-doc/html' | ||
20419 | fi | ||
20420 | |||
20421 | HTML_DIR="$with_html_dir" | ||
20422 | |||
20423 | |||
20424 | # Check whether --enable-gtk-doc was given. | ||
20425 | if test "${enable_gtk_doc+set}" = set; then | ||
20426 | enableval=$enable_gtk_doc; | ||
20427 | else | ||
20428 | enable_gtk_doc=no | ||
20429 | fi | ||
20430 | |||
20431 | |||
20432 | if test x$enable_gtk_doc = xyes; then | ||
20433 | if test -n "$PKG_CONFIG" && \ | ||
20434 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"gtk-doc\"") >&5 | ||
20435 | ($PKG_CONFIG --exists --print-errors "gtk-doc") 2>&5 | ||
20436 | ac_status=$? | ||
20437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20438 | (exit $ac_status); }; then | ||
20439 | : | ||
20440 | else | ||
20441 | { { echo "$as_me:$LINENO: error: gtk-doc not installed and --enable-gtk-doc requested" >&5 | ||
20442 | echo "$as_me: error: gtk-doc not installed and --enable-gtk-doc requested" >&2;} | ||
20443 | { (exit 1); exit 1; }; } | ||
20444 | fi | ||
20445 | fi | ||
20446 | |||
20447 | { echo "$as_me:$LINENO: checking whether to build gtk-doc documentation" >&5 | ||
20448 | echo $ECHO_N "checking whether to build gtk-doc documentation... $ECHO_C" >&6; } | ||
20449 | { echo "$as_me:$LINENO: result: $enable_gtk_doc" >&5 | ||
20450 | echo "${ECHO_T}$enable_gtk_doc" >&6; } | ||
20451 | |||
20452 | for ac_prog in gtkdoc-check | ||
20453 | do | ||
20454 | # Extract the first word of "$ac_prog", so it can be a program name with args. | ||
20455 | set dummy $ac_prog; ac_word=$2 | ||
20456 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
20457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
20458 | if test "${ac_cv_path_GTKDOC_CHECK+set}" = set; then | ||
20459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20460 | else | ||
20461 | case $GTKDOC_CHECK in | ||
20462 | [\\/]* | ?:[\\/]*) | ||
20463 | ac_cv_path_GTKDOC_CHECK="$GTKDOC_CHECK" # Let the user override the test with a path. | ||
20464 | ;; | ||
20465 | *) | ||
20466 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
20467 | for as_dir in $PATH | ||
20468 | do | ||
20469 | IFS=$as_save_IFS | ||
20470 | test -z "$as_dir" && as_dir=. | ||
20471 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
20472 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
20473 | ac_cv_path_GTKDOC_CHECK="$as_dir/$ac_word$ac_exec_ext" | ||
20474 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
20475 | break 2 | ||
20476 | fi | ||
20477 | done | ||
20478 | done | ||
20479 | IFS=$as_save_IFS | ||
20480 | |||
20481 | ;; | ||
20482 | esac | ||
20483 | fi | ||
20484 | GTKDOC_CHECK=$ac_cv_path_GTKDOC_CHECK | ||
20485 | if test -n "$GTKDOC_CHECK"; then | ||
20486 | { echo "$as_me:$LINENO: result: $GTKDOC_CHECK" >&5 | ||
20487 | echo "${ECHO_T}$GTKDOC_CHECK" >&6; } | ||
20488 | else | ||
20489 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20490 | echo "${ECHO_T}no" >&6; } | ||
20491 | fi | ||
20492 | |||
20493 | |||
20494 | test -n "$GTKDOC_CHECK" && break | ||
20495 | done | ||
20496 | |||
20497 | |||
20498 | if test x$enable_gtk_doc = xyes; then | ||
20499 | ENABLE_GTK_DOC_TRUE= | ||
20500 | ENABLE_GTK_DOC_FALSE='#' | ||
20501 | else | ||
20502 | ENABLE_GTK_DOC_TRUE='#' | ||
20503 | ENABLE_GTK_DOC_FALSE= | ||
20504 | fi | ||
20505 | |||
20506 | if test -n "$LIBTOOL"; then | ||
20507 | GTK_DOC_USE_LIBTOOL_TRUE= | ||
20508 | GTK_DOC_USE_LIBTOOL_FALSE='#' | ||
20509 | else | ||
20510 | GTK_DOC_USE_LIBTOOL_TRUE='#' | ||
20511 | GTK_DOC_USE_LIBTOOL_FALSE= | ||
20512 | fi | ||
20513 | |||
20514 | |||
20515 | |||
20516 | # glib | ||
20517 | # Check whether --enable-glibtest was given. | ||
20518 | if test "${enable_glibtest+set}" = set; then | ||
20519 | enableval=$enable_glibtest; | ||
20520 | else | ||
20521 | enable_glibtest=yes | ||
20522 | fi | ||
20523 | |||
20524 | |||
20525 | pkg_config_args=glib-2.0 | ||
20526 | for module in . gmodule gobject | ||
20527 | do | ||
20528 | case "$module" in | ||
20529 | gmodule) | ||
20530 | pkg_config_args="$pkg_config_args gmodule-2.0" | ||
20531 | ;; | ||
20532 | gmodule-no-export) | ||
20533 | pkg_config_args="$pkg_config_args gmodule-no-export-2.0" | ||
20534 | ;; | ||
20535 | gobject) | ||
20536 | pkg_config_args="$pkg_config_args gobject-2.0" | ||
20537 | ;; | ||
20538 | gthread) | ||
20539 | pkg_config_args="$pkg_config_args gthread-2.0" | ||
20540 | ;; | ||
20541 | esac | ||
20542 | done | ||
20543 | |||
20544 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
20545 | set dummy pkg-config; ac_word=$2 | ||
20546 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
20547 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
20548 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | ||
20549 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20550 | else | ||
20551 | case $PKG_CONFIG in | ||
20552 | [\\/]* | ?:[\\/]*) | ||
20553 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
20554 | ;; | ||
20555 | *) | ||
20556 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
20557 | for as_dir in $PATH | ||
20558 | do | ||
20559 | IFS=$as_save_IFS | ||
20560 | test -z "$as_dir" && as_dir=. | ||
20561 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
20562 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
20563 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
20564 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
20565 | break 2 | ||
20566 | fi | ||
20567 | done | ||
20568 | done | ||
20569 | IFS=$as_save_IFS | ||
20570 | |||
20571 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
20572 | ;; | ||
20573 | esac | ||
20574 | fi | ||
20575 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
20576 | if test -n "$PKG_CONFIG"; then | ||
20577 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | ||
20578 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | ||
20579 | else | ||
20580 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20581 | echo "${ECHO_T}no" >&6; } | ||
20582 | fi | ||
20583 | |||
20584 | |||
20585 | |||
20586 | no_glib="" | ||
20587 | |||
20588 | if test x$PKG_CONFIG != xno ; then | ||
20589 | if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then | ||
20590 | : | ||
20591 | else | ||
20592 | echo *** pkg-config too old; version 0.7 or better required. | ||
20593 | no_glib=yes | ||
20594 | PKG_CONFIG=no | ||
20595 | fi | ||
20596 | else | ||
20597 | no_glib=yes | ||
20598 | fi | ||
20599 | |||
20600 | min_glib_version=2.0.0 | ||
20601 | { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5 | ||
20602 | echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; } | ||
20603 | |||
20604 | if test x$PKG_CONFIG != xno ; then | ||
20605 | ## don't try to run the test against uninstalled libtool libs | ||
20606 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | ||
20607 | echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" | ||
20608 | enable_glibtest=no | ||
20609 | fi | ||
20610 | |||
20611 | if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then | ||
20612 | : | ||
20613 | else | ||
20614 | no_glib=yes | ||
20615 | fi | ||
20616 | fi | ||
20617 | |||
20618 | if test x"$no_glib" = x ; then | ||
20619 | GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` | ||
20620 | GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` | ||
20621 | GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` | ||
20622 | |||
20623 | GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` | ||
20624 | GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` | ||
20625 | glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ | ||
20626 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | ||
20627 | glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ | ||
20628 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | ||
20629 | glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ | ||
20630 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | ||
20631 | if test "x$enable_glibtest" = "xyes" ; then | ||
20632 | ac_save_CFLAGS="$CFLAGS" | ||
20633 | ac_save_LIBS="$LIBS" | ||
20634 | CFLAGS="$CFLAGS $GLIB_CFLAGS" | ||
20635 | LIBS="$GLIB_LIBS $LIBS" | ||
20636 | rm -f conf.glibtest | ||
20637 | if test "$cross_compiling" = yes; then | ||
20638 | echo $ac_n "cross compiling; assumed OK... $ac_c" | ||
20639 | else | ||
20640 | cat >conftest.$ac_ext <<_ACEOF | ||
20641 | /* confdefs.h. */ | ||
20642 | _ACEOF | ||
20643 | cat confdefs.h >>conftest.$ac_ext | ||
20644 | cat >>conftest.$ac_ext <<_ACEOF | ||
20645 | /* end confdefs.h. */ | ||
20646 | |||
20647 | #include <glib.h> | ||
20648 | #include <stdio.h> | ||
20649 | #include <stdlib.h> | ||
20650 | |||
20651 | int | ||
20652 | main () | ||
20653 | { | ||
20654 | int major, minor, micro; | ||
20655 | char *tmp_version; | ||
20656 | |||
20657 | system ("touch conf.glibtest"); | ||
20658 | |||
20659 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | ||
20660 | tmp_version = g_strdup("$min_glib_version"); | ||
20661 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | ||
20662 | printf("%s, bad version string\n", "$min_glib_version"); | ||
20663 | exit(1); | ||
20664 | } | ||
20665 | |||
20666 | if ((glib_major_version != $glib_config_major_version) || | ||
20667 | (glib_minor_version != $glib_config_minor_version) || | ||
20668 | (glib_micro_version != $glib_config_micro_version)) | ||
20669 | { | ||
20670 | printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", | ||
20671 | $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, | ||
20672 | glib_major_version, glib_minor_version, glib_micro_version); | ||
20673 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | ||
20674 | printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); | ||
20675 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | ||
20676 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | ||
20677 | printf("*** required on your system.\n"); | ||
20678 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | ||
20679 | printf("*** to point to the correct configuration files\n"); | ||
20680 | } | ||
20681 | else if ((glib_major_version != GLIB_MAJOR_VERSION) || | ||
20682 | (glib_minor_version != GLIB_MINOR_VERSION) || | ||
20683 | (glib_micro_version != GLIB_MICRO_VERSION)) | ||
20684 | { | ||
20685 | printf("*** GLIB header files (version %d.%d.%d) do not match\n", | ||
20686 | GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); | ||
20687 | printf("*** library (version %d.%d.%d)\n", | ||
20688 | glib_major_version, glib_minor_version, glib_micro_version); | ||
20689 | } | ||
20690 | else | ||
20691 | { | ||
20692 | if ((glib_major_version > major) || | ||
20693 | ((glib_major_version == major) && (glib_minor_version > minor)) || | ||
20694 | ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) | ||
20695 | { | ||
20696 | return 0; | ||
20697 | } | ||
20698 | else | ||
20699 | { | ||
20700 | printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", | ||
20701 | glib_major_version, glib_minor_version, glib_micro_version); | ||
20702 | printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", | ||
20703 | major, minor, micro); | ||
20704 | printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); | ||
20705 | printf("***\n"); | ||
20706 | printf("*** If you have already installed a sufficiently new version, this error\n"); | ||
20707 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | ||
20708 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | ||
20709 | printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); | ||
20710 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | ||
20711 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | ||
20712 | printf("*** so that the correct libraries are found at run-time))\n"); | ||
20713 | } | ||
20714 | } | ||
20715 | return 1; | ||
20716 | } | ||
20717 | |||
20718 | _ACEOF | ||
20719 | rm -f conftest$ac_exeext | ||
20720 | if { (ac_try="$ac_link" | ||
20721 | case "(($ac_try" in | ||
20722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20723 | *) ac_try_echo=$ac_try;; | ||
20724 | esac | ||
20725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20726 | (eval "$ac_link") 2>&5 | ||
20727 | ac_status=$? | ||
20728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20729 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
20730 | { (case "(($ac_try" in | ||
20731 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20732 | *) ac_try_echo=$ac_try;; | ||
20733 | esac | ||
20734 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20735 | (eval "$ac_try") 2>&5 | ||
20736 | ac_status=$? | ||
20737 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20738 | (exit $ac_status); }; }; then | ||
20739 | : | ||
20740 | else | ||
20741 | echo "$as_me: program exited with status $ac_status" >&5 | ||
20742 | echo "$as_me: failed program was:" >&5 | ||
20743 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20744 | |||
20745 | ( exit $ac_status ) | ||
20746 | no_glib=yes | ||
20747 | fi | ||
20748 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
20749 | fi | ||
20750 | |||
20751 | |||
20752 | CFLAGS="$ac_save_CFLAGS" | ||
20753 | LIBS="$ac_save_LIBS" | ||
20754 | fi | ||
20755 | fi | ||
20756 | if test "x$no_glib" = x ; then | ||
20757 | { echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 | ||
20758 | echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; } | ||
20759 | : | ||
20760 | else | ||
20761 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20762 | echo "${ECHO_T}no" >&6; } | ||
20763 | if test "$PKG_CONFIG" = "no" ; then | ||
20764 | echo "*** A new enough version of pkg-config was not found." | ||
20765 | echo "*** See http://www.freedesktop.org/software/pkgconfig/" | ||
20766 | else | ||
20767 | if test -f conf.glibtest ; then | ||
20768 | : | ||
20769 | else | ||
20770 | echo "*** Could not run GLIB test program, checking why..." | ||
20771 | ac_save_CFLAGS="$CFLAGS" | ||
20772 | ac_save_LIBS="$LIBS" | ||
20773 | CFLAGS="$CFLAGS $GLIB_CFLAGS" | ||
20774 | LIBS="$LIBS $GLIB_LIBS" | ||
20775 | cat >conftest.$ac_ext <<_ACEOF | ||
20776 | /* confdefs.h. */ | ||
20777 | _ACEOF | ||
20778 | cat confdefs.h >>conftest.$ac_ext | ||
20779 | cat >>conftest.$ac_ext <<_ACEOF | ||
20780 | /* end confdefs.h. */ | ||
20781 | |||
20782 | #include <glib.h> | ||
20783 | #include <stdio.h> | ||
20784 | |||
20785 | int | ||
20786 | main () | ||
20787 | { | ||
20788 | return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); | ||
20789 | ; | ||
20790 | return 0; | ||
20791 | } | ||
20792 | _ACEOF | ||
20793 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
20794 | if { (ac_try="$ac_link" | ||
20795 | case "(($ac_try" in | ||
20796 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
20797 | *) ac_try_echo=$ac_try;; | ||
20798 | esac | ||
20799 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
20800 | (eval "$ac_link") 2>conftest.er1 | ||
20801 | ac_status=$? | ||
20802 | grep -v '^ *+' conftest.er1 >conftest.err | ||
20803 | rm -f conftest.er1 | ||
20804 | cat conftest.err >&5 | ||
20805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
20806 | (exit $ac_status); } && { | ||
20807 | test -z "$ac_c_werror_flag" || | ||
20808 | test ! -s conftest.err | ||
20809 | } && test -s conftest$ac_exeext && | ||
20810 | $as_test_x conftest$ac_exeext; then | ||
20811 | echo "*** The test program compiled, but did not run. This usually means" | ||
20812 | echo "*** that the run-time linker is not finding GLIB or finding the wrong" | ||
20813 | echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" | ||
20814 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | ||
20815 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | ||
20816 | echo "*** is required on your system" | ||
20817 | echo "***" | ||
20818 | echo "*** If you have an old version installed, it is best to remove it, although" | ||
20819 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | ||
20820 | else | ||
20821 | echo "$as_me: failed program was:" >&5 | ||
20822 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
20823 | |||
20824 | echo "*** The test program failed to compile or link. See the file config.log for the" | ||
20825 | echo "*** exact error that occured. This usually means GLIB is incorrectly installed." | ||
20826 | fi | ||
20827 | |||
20828 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
20829 | conftest$ac_exeext conftest.$ac_ext | ||
20830 | CFLAGS="$ac_save_CFLAGS" | ||
20831 | LIBS="$ac_save_LIBS" | ||
20832 | fi | ||
20833 | fi | ||
20834 | GLIB_CFLAGS="" | ||
20835 | GLIB_LIBS="" | ||
20836 | GLIB_GENMARSHAL="" | ||
20837 | GOBJECT_QUERY="" | ||
20838 | GLIB_MKENUMS="" | ||
20839 | { { echo "$as_me:$LINENO: error: glib >= 2.0 is needed" >&5 | ||
20840 | echo "$as_me: error: glib >= 2.0 is needed" >&2;} | ||
20841 | { (exit 1); exit 1; }; } | ||
20842 | fi | ||
20843 | |||
20844 | |||
20845 | |||
20846 | |||
20847 | |||
20848 | rm -f conf.glibtest | ||
20849 | |||
20850 | |||
20851 | # gdk-pixbuf | ||
20852 | # Check whether --enable-gtktest was given. | ||
20853 | if test "${enable_gtktest+set}" = set; then | ||
20854 | enableval=$enable_gtktest; | ||
20855 | else | ||
20856 | enable_gtktest=yes | ||
20857 | fi | ||
20858 | |||
20859 | |||
20860 | pkg_config_args=gtk+-2.0 | ||
20861 | for module in . | ||
20862 | do | ||
20863 | case "$module" in | ||
20864 | gthread) | ||
20865 | pkg_config_args="$pkg_config_args gthread-2.0" | ||
20866 | ;; | ||
20867 | esac | ||
20868 | done | ||
20869 | |||
20870 | no_gtk="" | ||
20871 | |||
20872 | # Extract the first word of "pkg-config", so it can be a program name with args. | ||
20873 | set dummy pkg-config; ac_word=$2 | ||
20874 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
20875 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
20876 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then | ||
20877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
20878 | else | ||
20879 | case $PKG_CONFIG in | ||
20880 | [\\/]* | ?:[\\/]*) | ||
20881 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | ||
20882 | ;; | ||
20883 | *) | ||
20884 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
20885 | for as_dir in $PATH | ||
20886 | do | ||
20887 | IFS=$as_save_IFS | ||
20888 | test -z "$as_dir" && as_dir=. | ||
20889 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
20890 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
20891 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
20892 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
20893 | break 2 | ||
20894 | fi | ||
20895 | done | ||
20896 | done | ||
20897 | IFS=$as_save_IFS | ||
20898 | |||
20899 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" | ||
20900 | ;; | ||
20901 | esac | ||
20902 | fi | ||
20903 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | ||
20904 | if test -n "$PKG_CONFIG"; then | ||
20905 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 | ||
20906 | echo "${ECHO_T}$PKG_CONFIG" >&6; } | ||
20907 | else | ||
20908 | { echo "$as_me:$LINENO: result: no" >&5 | ||
20909 | echo "${ECHO_T}no" >&6; } | ||
20910 | fi | ||
20911 | |||
20912 | |||
20913 | |||
20914 | if test x$PKG_CONFIG != xno ; then | ||
20915 | if pkg-config --atleast-pkgconfig-version 0.7 ; then | ||
20916 | : | ||
20917 | else | ||
20918 | echo "*** pkg-config too old; version 0.7 or better required." | ||
20919 | no_gtk=yes | ||
20920 | PKG_CONFIG=no | ||
20921 | fi | ||
20922 | else | ||
20923 | no_gtk=yes | ||
20924 | fi | ||
20925 | |||
20926 | min_gtk_version=2.0.0 | ||
20927 | { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 | ||
20928 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; } | ||
20929 | |||
20930 | if test x$PKG_CONFIG != xno ; then | ||
20931 | ## don't try to run the test against uninstalled libtool libs | ||
20932 | if $PKG_CONFIG --uninstalled $pkg_config_args; then | ||
20933 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" | ||
20934 | enable_gtktest=no | ||
20935 | fi | ||
20936 | |||
20937 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then | ||
20938 | : | ||
20939 | else | ||
20940 | no_gtk=yes | ||
20941 | fi | ||
20942 | fi | ||
20943 | |||
20944 | if test x"$no_gtk" = x ; then | ||
20945 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` | ||
20946 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` | ||
20947 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | ||
20948 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | ||
20949 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | ||
20950 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | ||
20951 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ | ||
20952 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | ||
20953 | if test "x$enable_gtktest" = "xyes" ; then | ||
20954 | ac_save_CFLAGS="$CFLAGS" | ||
20955 | ac_save_LIBS="$LIBS" | ||
20956 | CFLAGS="$CFLAGS $GTK_CFLAGS" | ||
20957 | LIBS="$GTK_LIBS $LIBS" | ||
20958 | rm -f conf.gtktest | ||
20959 | if test "$cross_compiling" = yes; then | ||
20960 | echo $ac_n "cross compiling; assumed OK... $ac_c" | ||
20961 | else | ||
20962 | cat >conftest.$ac_ext <<_ACEOF | ||
20963 | /* confdefs.h. */ | ||
20964 | _ACEOF | ||
20965 | cat confdefs.h >>conftest.$ac_ext | ||
20966 | cat >>conftest.$ac_ext <<_ACEOF | ||
20967 | /* end confdefs.h. */ | ||
20968 | |||
20969 | #include <gtk/gtk.h> | ||
20970 | #include <stdio.h> | ||
20971 | #include <stdlib.h> | ||
20972 | |||
20973 | int | ||
20974 | main () | ||
20975 | { | ||
20976 | int major, minor, micro; | ||
20977 | char *tmp_version; | ||
20978 | |||
20979 | system ("touch conf.gtktest"); | ||
20980 | |||
20981 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | ||
20982 | tmp_version = g_strdup("$min_gtk_version"); | ||
20983 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | ||
20984 | printf("%s, bad version string\n", "$min_gtk_version"); | ||
20985 | exit(1); | ||
20986 | } | ||
20987 | |||
20988 | if ((gtk_major_version != $gtk_config_major_version) || | ||
20989 | (gtk_minor_version != $gtk_config_minor_version) || | ||
20990 | (gtk_micro_version != $gtk_config_micro_version)) | ||
20991 | { | ||
20992 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", | ||
20993 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, | ||
20994 | gtk_major_version, gtk_minor_version, gtk_micro_version); | ||
20995 | printf ("*** was found! If pkg-config was correct, then it is best\n"); | ||
20996 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); | ||
20997 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); | ||
20998 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); | ||
20999 | printf("*** required on your system.\n"); | ||
21000 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); | ||
21001 | printf("*** to point to the correct configuration files\n"); | ||
21002 | } | ||
21003 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || | ||
21004 | (gtk_minor_version != GTK_MINOR_VERSION) || | ||
21005 | (gtk_micro_version != GTK_MICRO_VERSION)) | ||
21006 | { | ||
21007 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", | ||
21008 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); | ||
21009 | printf("*** library (version %d.%d.%d)\n", | ||
21010 | gtk_major_version, gtk_minor_version, gtk_micro_version); | ||
21011 | } | ||
21012 | else | ||
21013 | { | ||
21014 | if ((gtk_major_version > major) || | ||
21015 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || | ||
21016 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) | ||
21017 | { | ||
21018 | return 0; | ||
21019 | } | ||
21020 | else | ||
21021 | { | ||
21022 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", | ||
21023 | gtk_major_version, gtk_minor_version, gtk_micro_version); | ||
21024 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", | ||
21025 | major, minor, micro); | ||
21026 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); | ||
21027 | printf("***\n"); | ||
21028 | printf("*** If you have already installed a sufficiently new version, this error\n"); | ||
21029 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); | ||
21030 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | ||
21031 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); | ||
21032 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); | ||
21033 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | ||
21034 | printf("*** so that the correct libraries are found at run-time))\n"); | ||
21035 | } | ||
21036 | } | ||
21037 | return 1; | ||
21038 | } | ||
21039 | |||
21040 | _ACEOF | ||
21041 | rm -f conftest$ac_exeext | ||
21042 | if { (ac_try="$ac_link" | ||
21043 | case "(($ac_try" in | ||
21044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21045 | *) ac_try_echo=$ac_try;; | ||
21046 | esac | ||
21047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21048 | (eval "$ac_link") 2>&5 | ||
21049 | ac_status=$? | ||
21050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21051 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21052 | { (case "(($ac_try" in | ||
21053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21054 | *) ac_try_echo=$ac_try;; | ||
21055 | esac | ||
21056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21057 | (eval "$ac_try") 2>&5 | ||
21058 | ac_status=$? | ||
21059 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21060 | (exit $ac_status); }; }; then | ||
21061 | : | ||
21062 | else | ||
21063 | echo "$as_me: program exited with status $ac_status" >&5 | ||
21064 | echo "$as_me: failed program was:" >&5 | ||
21065 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21066 | |||
21067 | ( exit $ac_status ) | ||
21068 | no_gtk=yes | ||
21069 | fi | ||
21070 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21071 | fi | ||
21072 | |||
21073 | |||
21074 | CFLAGS="$ac_save_CFLAGS" | ||
21075 | LIBS="$ac_save_LIBS" | ||
21076 | fi | ||
21077 | fi | ||
21078 | if test "x$no_gtk" = x ; then | ||
21079 | { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 | ||
21080 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } | ||
21081 | have_gtk2=true | ||
21082 | else | ||
21083 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21084 | echo "${ECHO_T}no" >&6; } | ||
21085 | if test "$PKG_CONFIG" = "no" ; then | ||
21086 | echo "*** A new enough version of pkg-config was not found." | ||
21087 | echo "*** See http://pkgconfig.sourceforge.net" | ||
21088 | else | ||
21089 | if test -f conf.gtktest ; then | ||
21090 | : | ||
21091 | else | ||
21092 | echo "*** Could not run GTK+ test program, checking why..." | ||
21093 | ac_save_CFLAGS="$CFLAGS" | ||
21094 | ac_save_LIBS="$LIBS" | ||
21095 | CFLAGS="$CFLAGS $GTK_CFLAGS" | ||
21096 | LIBS="$LIBS $GTK_LIBS" | ||
21097 | cat >conftest.$ac_ext <<_ACEOF | ||
21098 | /* confdefs.h. */ | ||
21099 | _ACEOF | ||
21100 | cat confdefs.h >>conftest.$ac_ext | ||
21101 | cat >>conftest.$ac_ext <<_ACEOF | ||
21102 | /* end confdefs.h. */ | ||
21103 | |||
21104 | #include <gtk/gtk.h> | ||
21105 | #include <stdio.h> | ||
21106 | |||
21107 | int | ||
21108 | main () | ||
21109 | { | ||
21110 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); | ||
21111 | ; | ||
21112 | return 0; | ||
21113 | } | ||
21114 | _ACEOF | ||
21115 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21116 | if { (ac_try="$ac_link" | ||
21117 | case "(($ac_try" in | ||
21118 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21119 | *) ac_try_echo=$ac_try;; | ||
21120 | esac | ||
21121 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21122 | (eval "$ac_link") 2>conftest.er1 | ||
21123 | ac_status=$? | ||
21124 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21125 | rm -f conftest.er1 | ||
21126 | cat conftest.err >&5 | ||
21127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21128 | (exit $ac_status); } && { | ||
21129 | test -z "$ac_c_werror_flag" || | ||
21130 | test ! -s conftest.err | ||
21131 | } && test -s conftest$ac_exeext && | ||
21132 | $as_test_x conftest$ac_exeext; then | ||
21133 | echo "*** The test program compiled, but did not run. This usually means" | ||
21134 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" | ||
21135 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" | ||
21136 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | ||
21137 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | ||
21138 | echo "*** is required on your system" | ||
21139 | echo "***" | ||
21140 | echo "*** If you have an old version installed, it is best to remove it, although" | ||
21141 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | ||
21142 | else | ||
21143 | echo "$as_me: failed program was:" >&5 | ||
21144 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21145 | |||
21146 | echo "*** The test program failed to compile or link. See the file config.log for the" | ||
21147 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." | ||
21148 | fi | ||
21149 | |||
21150 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21151 | conftest$ac_exeext conftest.$ac_ext | ||
21152 | CFLAGS="$ac_save_CFLAGS" | ||
21153 | LIBS="$ac_save_LIBS" | ||
21154 | fi | ||
21155 | fi | ||
21156 | GTK_CFLAGS="" | ||
21157 | GTK_LIBS="" | ||
21158 | : | ||
21159 | fi | ||
21160 | |||
21161 | |||
21162 | rm -f conf.gtktest | ||
21163 | |||
21164 | if test "x$have_gtk2" = "xtrue" ; then | ||
21165 | GDKPIXBUF_CFLAGS=$GTK_CFLAGS | ||
21166 | GDKPIXBUF_LIBS=$GTK_LIBS | ||
21167 | |||
21168 | |||
21169 | fi | ||
21170 | if test "x$have_gtk2" = "xtrue"; then | ||
21171 | HAVE_GDKPIXBUF_TRUE= | ||
21172 | HAVE_GDKPIXBUF_FALSE='#' | ||
21173 | else | ||
21174 | HAVE_GDKPIXBUF_TRUE='#' | ||
21175 | HAVE_GDKPIXBUF_FALSE= | ||
21176 | fi | ||
21177 | |||
21178 | |||
21179 | # libxml2 | ||
21180 | |||
21181 | |||
21182 | # Check whether --with-xml-prefix was given. | ||
21183 | if test "${with_xml_prefix+set}" = set; then | ||
21184 | withval=$with_xml_prefix; xml_config_prefix="$withval" | ||
21185 | else | ||
21186 | xml_config_prefix="" | ||
21187 | fi | ||
21188 | |||
21189 | |||
21190 | # Check whether --with-xml-exec-prefix was given. | ||
21191 | if test "${with_xml_exec_prefix+set}" = set; then | ||
21192 | withval=$with_xml_exec_prefix; xml_config_exec_prefix="$withval" | ||
21193 | else | ||
21194 | xml_config_exec_prefix="" | ||
21195 | fi | ||
21196 | |||
21197 | # Check whether --enable-xmltest was given. | ||
21198 | if test "${enable_xmltest+set}" = set; then | ||
21199 | enableval=$enable_xmltest; | ||
21200 | else | ||
21201 | enable_xmltest=yes | ||
21202 | fi | ||
21203 | |||
21204 | |||
21205 | if test x$xml_config_exec_prefix != x ; then | ||
21206 | xml_config_args="$xml_config_args" | ||
21207 | if test x${XML2_CONFIG+set} != xset ; then | ||
21208 | XML2_CONFIG=$xml_config_exec_prefix/bin/xml2-config | ||
21209 | fi | ||
21210 | fi | ||
21211 | if test x$xml_config_prefix != x ; then | ||
21212 | xml_config_args="$xml_config_args --prefix=$xml_config_prefix" | ||
21213 | if test x${XML2_CONFIG+set} != xset ; then | ||
21214 | XML2_CONFIG=$xml_config_prefix/bin/xml2-config | ||
21215 | fi | ||
21216 | fi | ||
21217 | |||
21218 | # Extract the first word of "xml2-config", so it can be a program name with args. | ||
21219 | set dummy xml2-config; ac_word=$2 | ||
21220 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | ||
21221 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | ||
21222 | if test "${ac_cv_path_XML2_CONFIG+set}" = set; then | ||
21223 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21224 | else | ||
21225 | case $XML2_CONFIG in | ||
21226 | [\\/]* | ?:[\\/]*) | ||
21227 | ac_cv_path_XML2_CONFIG="$XML2_CONFIG" # Let the user override the test with a path. | ||
21228 | ;; | ||
21229 | *) | ||
21230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
21231 | for as_dir in $PATH | ||
21232 | do | ||
21233 | IFS=$as_save_IFS | ||
21234 | test -z "$as_dir" && as_dir=. | ||
21235 | for ac_exec_ext in '' $ac_executable_extensions; do | ||
21236 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | ||
21237 | ac_cv_path_XML2_CONFIG="$as_dir/$ac_word$ac_exec_ext" | ||
21238 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
21239 | break 2 | ||
21240 | fi | ||
21241 | done | ||
21242 | done | ||
21243 | IFS=$as_save_IFS | ||
21244 | |||
21245 | test -z "$ac_cv_path_XML2_CONFIG" && ac_cv_path_XML2_CONFIG="no" | ||
21246 | ;; | ||
21247 | esac | ||
21248 | fi | ||
21249 | XML2_CONFIG=$ac_cv_path_XML2_CONFIG | ||
21250 | if test -n "$XML2_CONFIG"; then | ||
21251 | { echo "$as_me:$LINENO: result: $XML2_CONFIG" >&5 | ||
21252 | echo "${ECHO_T}$XML2_CONFIG" >&6; } | ||
21253 | else | ||
21254 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21255 | echo "${ECHO_T}no" >&6; } | ||
21256 | fi | ||
21257 | |||
21258 | |||
21259 | min_xml_version=2.0.0 | ||
21260 | { echo "$as_me:$LINENO: checking for libxml - version >= $min_xml_version" >&5 | ||
21261 | echo $ECHO_N "checking for libxml - version >= $min_xml_version... $ECHO_C" >&6; } | ||
21262 | no_xml="" | ||
21263 | if test "$XML2_CONFIG" = "no" ; then | ||
21264 | no_xml=yes | ||
21265 | else | ||
21266 | XML_CPPFLAGS=`$XML2_CONFIG $xml_config_args --cflags` | ||
21267 | XML_LIBS=`$XML2_CONFIG $xml_config_args --libs` | ||
21268 | xml_config_major_version=`$XML2_CONFIG $xml_config_args --version | \ | ||
21269 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` | ||
21270 | xml_config_minor_version=`$XML2_CONFIG $xml_config_args --version | \ | ||
21271 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` | ||
21272 | xml_config_micro_version=`$XML2_CONFIG $xml_config_args --version | \ | ||
21273 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` | ||
21274 | if test "x$enable_xmltest" = "xyes" ; then | ||
21275 | ac_save_CPPFLAGS="$CPPFLAGS" | ||
21276 | ac_save_LIBS="$LIBS" | ||
21277 | CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS" | ||
21278 | LIBS="$XML_LIBS $LIBS" | ||
21279 | rm -f conf.xmltest | ||
21280 | if test "$cross_compiling" = yes; then | ||
21281 | echo $ac_n "cross compiling; assumed OK... $ac_c" | ||
21282 | else | ||
21283 | cat >conftest.$ac_ext <<_ACEOF | ||
21284 | /* confdefs.h. */ | ||
21285 | _ACEOF | ||
21286 | cat confdefs.h >>conftest.$ac_ext | ||
21287 | cat >>conftest.$ac_ext <<_ACEOF | ||
21288 | /* end confdefs.h. */ | ||
21289 | |||
21290 | #include <stdlib.h> | ||
21291 | #include <stdio.h> | ||
21292 | #include <string.h> | ||
21293 | #include <libxml/xmlversion.h> | ||
21294 | |||
21295 | int | ||
21296 | main() | ||
21297 | { | ||
21298 | int xml_major_version, xml_minor_version, xml_micro_version; | ||
21299 | int major, minor, micro; | ||
21300 | char *tmp_version; | ||
21301 | |||
21302 | system("touch conf.xmltest"); | ||
21303 | |||
21304 | /* Capture xml2-config output via autoconf/configure variables */ | ||
21305 | /* HP/UX 9 (%@#!) writes to sscanf strings */ | ||
21306 | tmp_version = (char *)strdup("$min_xml_version"); | ||
21307 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { | ||
21308 | printf("%s, bad version string from xml2-config\n", "$min_xml_version"); | ||
21309 | exit(1); | ||
21310 | } | ||
21311 | free(tmp_version); | ||
21312 | |||
21313 | /* Capture the version information from the header files */ | ||
21314 | tmp_version = (char *)strdup(LIBXML_DOTTED_VERSION); | ||
21315 | if (sscanf(tmp_version, "%d.%d.%d", &xml_major_version, &xml_minor_version, &xml_micro_version) != 3) { | ||
21316 | printf("%s, bad version string from libxml includes\n", "LIBXML_DOTTED_VERSION"); | ||
21317 | exit(1); | ||
21318 | } | ||
21319 | free(tmp_version); | ||
21320 | |||
21321 | /* Compare xml2-config output to the libxml headers */ | ||
21322 | if ((xml_major_version != $xml_config_major_version) || | ||
21323 | (xml_minor_version != $xml_config_minor_version) || | ||
21324 | (xml_micro_version != $xml_config_micro_version)) | ||
21325 | { | ||
21326 | printf("*** libxml header files (version %d.%d.%d) do not match\n", | ||
21327 | xml_major_version, xml_minor_version, xml_micro_version); | ||
21328 | printf("*** xml2-config (version %d.%d.%d)\n", | ||
21329 | $xml_config_major_version, $xml_config_minor_version, $xml_config_micro_version); | ||
21330 | return 1; | ||
21331 | } | ||
21332 | /* Compare the headers to the library to make sure we match */ | ||
21333 | /* Less than ideal -- doesn't provide us with return value feedback, | ||
21334 | * only exits if there's a serious mismatch between header and library. | ||
21335 | */ | ||
21336 | LIBXML_TEST_VERSION; | ||
21337 | |||
21338 | /* Test that the library is greater than our minimum version */ | ||
21339 | if ((xml_major_version > major) || | ||
21340 | ((xml_major_version == major) && (xml_minor_version > minor)) || | ||
21341 | ((xml_major_version == major) && (xml_minor_version == minor) && | ||
21342 | (xml_micro_version >= micro))) | ||
21343 | { | ||
21344 | return 0; | ||
21345 | } | ||
21346 | else | ||
21347 | { | ||
21348 | printf("\n*** An old version of libxml (%d.%d.%d) was found.\n", | ||
21349 | xml_major_version, xml_minor_version, xml_micro_version); | ||
21350 | printf("*** You need a version of libxml newer than %d.%d.%d. The latest version of\n", | ||
21351 | major, minor, micro); | ||
21352 | printf("*** libxml is always available from ftp://ftp.xmlsoft.org.\n"); | ||
21353 | printf("***\n"); | ||
21354 | printf("*** If you have already installed a sufficiently new version, this error\n"); | ||
21355 | printf("*** probably means that the wrong copy of the xml2-config shell script is\n"); | ||
21356 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); | ||
21357 | printf("*** of LIBXML, but you can also set the XML2_CONFIG environment to point to the\n"); | ||
21358 | printf("*** correct copy of xml2-config. (In this case, you will have to\n"); | ||
21359 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); | ||
21360 | printf("*** so that the correct libraries are found at run-time))\n"); | ||
21361 | } | ||
21362 | return 1; | ||
21363 | } | ||
21364 | |||
21365 | _ACEOF | ||
21366 | rm -f conftest$ac_exeext | ||
21367 | if { (ac_try="$ac_link" | ||
21368 | case "(($ac_try" in | ||
21369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21370 | *) ac_try_echo=$ac_try;; | ||
21371 | esac | ||
21372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21373 | (eval "$ac_link") 2>&5 | ||
21374 | ac_status=$? | ||
21375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21376 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | ||
21377 | { (case "(($ac_try" in | ||
21378 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21379 | *) ac_try_echo=$ac_try;; | ||
21380 | esac | ||
21381 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21382 | (eval "$ac_try") 2>&5 | ||
21383 | ac_status=$? | ||
21384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21385 | (exit $ac_status); }; }; then | ||
21386 | : | ||
21387 | else | ||
21388 | echo "$as_me: program exited with status $ac_status" >&5 | ||
21389 | echo "$as_me: failed program was:" >&5 | ||
21390 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21391 | |||
21392 | ( exit $ac_status ) | ||
21393 | no_xml=yes | ||
21394 | fi | ||
21395 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | ||
21396 | fi | ||
21397 | |||
21398 | |||
21399 | CPPFLAGS="$ac_save_CPPFLAGS" | ||
21400 | LIBS="$ac_save_LIBS" | ||
21401 | fi | ||
21402 | fi | ||
21403 | |||
21404 | if test "x$no_xml" = x ; then | ||
21405 | { echo "$as_me:$LINENO: result: yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&5 | ||
21406 | echo "${ECHO_T}yes (version $xml_config_major_version.$xml_config_minor_version.$xml_config_micro_version)" >&6; } | ||
21407 | have_libxml2=true | ||
21408 | else | ||
21409 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21410 | echo "${ECHO_T}no" >&6; } | ||
21411 | if test "$XML2_CONFIG" = "no" ; then | ||
21412 | echo "*** The xml2-config script installed by LIBXML could not be found" | ||
21413 | echo "*** If libxml was installed in PREFIX, make sure PREFIX/bin is in" | ||
21414 | echo "*** your path, or set the XML2_CONFIG environment variable to the" | ||
21415 | echo "*** full path to xml2-config." | ||
21416 | else | ||
21417 | if test -f conf.xmltest ; then | ||
21418 | : | ||
21419 | else | ||
21420 | echo "*** Could not run libxml test program, checking why..." | ||
21421 | CPPFLAGS="$CPPFLAGS $XML_CPPFLAGS" | ||
21422 | LIBS="$LIBS $XML_LIBS" | ||
21423 | cat >conftest.$ac_ext <<_ACEOF | ||
21424 | /* confdefs.h. */ | ||
21425 | _ACEOF | ||
21426 | cat confdefs.h >>conftest.$ac_ext | ||
21427 | cat >>conftest.$ac_ext <<_ACEOF | ||
21428 | /* end confdefs.h. */ | ||
21429 | |||
21430 | #include <libxml/xmlversion.h> | ||
21431 | #include <stdio.h> | ||
21432 | |||
21433 | int | ||
21434 | main () | ||
21435 | { | ||
21436 | LIBXML_TEST_VERSION; return 0; | ||
21437 | ; | ||
21438 | return 0; | ||
21439 | } | ||
21440 | _ACEOF | ||
21441 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21442 | if { (ac_try="$ac_link" | ||
21443 | case "(($ac_try" in | ||
21444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21445 | *) ac_try_echo=$ac_try;; | ||
21446 | esac | ||
21447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21448 | (eval "$ac_link") 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 | test -z "$ac_c_werror_flag" || | ||
21456 | test ! -s conftest.err | ||
21457 | } && test -s conftest$ac_exeext && | ||
21458 | $as_test_x conftest$ac_exeext; then | ||
21459 | echo "*** The test program compiled, but did not run. This usually means" | ||
21460 | echo "*** that the run-time linker is not finding LIBXML or finding the wrong" | ||
21461 | echo "*** version of LIBXML. If it is not finding LIBXML, you'll need to set your" | ||
21462 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" | ||
21463 | echo "*** to the installed location Also, make sure you have run ldconfig if that" | ||
21464 | echo "*** is required on your system" | ||
21465 | echo "***" | ||
21466 | echo "*** If you have an old version installed, it is best to remove it, although" | ||
21467 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" | ||
21468 | else | ||
21469 | echo "$as_me: failed program was:" >&5 | ||
21470 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21471 | |||
21472 | echo "*** The test program failed to compile or link. See the file config.log for the" | ||
21473 | echo "*** exact error that occured. This usually means LIBXML was incorrectly installed" | ||
21474 | echo "*** or that you have moved LIBXML since it was installed. In the latter case, you" | ||
21475 | echo "*** may want to edit the xml2-config script: $XML2_CONFIG" | ||
21476 | fi | ||
21477 | |||
21478 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21479 | conftest$ac_exeext conftest.$ac_ext | ||
21480 | CPPFLAGS="$ac_save_CPPFLAGS" | ||
21481 | LIBS="$ac_save_LIBS" | ||
21482 | fi | ||
21483 | fi | ||
21484 | |||
21485 | XML_CPPFLAGS="" | ||
21486 | XML_LIBS="" | ||
21487 | : | ||
21488 | fi | ||
21489 | |||
21490 | |||
21491 | rm -f conf.xmltest | ||
21492 | |||
21493 | if test "x$have_libxml2" = "xtrue" ; then | ||
21494 | LIBXML2_CFLAGS=$XML_CPPFLAGS | ||
21495 | LIBXML2_LIBS=$XML_LIBS | ||
21496 | |||
21497 | |||
21498 | fi | ||
21499 | if test "x$have_libxml2" = "xtrue"; then | ||
21500 | HAVE_LIBXML2_TRUE= | ||
21501 | HAVE_LIBXML2_FALSE='#' | ||
21502 | else | ||
21503 | HAVE_LIBXML2_TRUE='#' | ||
21504 | HAVE_LIBXML2_FALSE= | ||
21505 | fi | ||
21506 | |||
21507 | |||
21508 | # libgsf | ||
21509 | |||
21510 | pkg_failed=no | ||
21511 | { echo "$as_me:$LINENO: checking for LIBGSF" >&5 | ||
21512 | echo $ECHO_N "checking for LIBGSF... $ECHO_C" >&6; } | ||
21513 | |||
21514 | if test -n "$PKG_CONFIG"; then | ||
21515 | if test -n "$LIBGSF_CFLAGS"; then | ||
21516 | pkg_cv_LIBGSF_CFLAGS="$LIBGSF_CFLAGS" | ||
21517 | else | ||
21518 | if test -n "$PKG_CONFIG" && \ | ||
21519 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgsf-1 >= 1.0.0\"") >&5 | ||
21520 | ($PKG_CONFIG --exists --print-errors "libgsf-1 >= 1.0.0") 2>&5 | ||
21521 | ac_status=$? | ||
21522 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21523 | (exit $ac_status); }; then | ||
21524 | pkg_cv_LIBGSF_CFLAGS=`$PKG_CONFIG --cflags "libgsf-1 >= 1.0.0" 2>/dev/null` | ||
21525 | else | ||
21526 | pkg_failed=yes | ||
21527 | fi | ||
21528 | fi | ||
21529 | else | ||
21530 | pkg_failed=untried | ||
21531 | fi | ||
21532 | if test -n "$PKG_CONFIG"; then | ||
21533 | if test -n "$LIBGSF_LIBS"; then | ||
21534 | pkg_cv_LIBGSF_LIBS="$LIBGSF_LIBS" | ||
21535 | else | ||
21536 | if test -n "$PKG_CONFIG" && \ | ||
21537 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"libgsf-1 >= 1.0.0\"") >&5 | ||
21538 | ($PKG_CONFIG --exists --print-errors "libgsf-1 >= 1.0.0") 2>&5 | ||
21539 | ac_status=$? | ||
21540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21541 | (exit $ac_status); }; then | ||
21542 | pkg_cv_LIBGSF_LIBS=`$PKG_CONFIG --libs "libgsf-1 >= 1.0.0" 2>/dev/null` | ||
21543 | else | ||
21544 | pkg_failed=yes | ||
21545 | fi | ||
21546 | fi | ||
21547 | else | ||
21548 | pkg_failed=untried | ||
21549 | fi | ||
21550 | |||
21551 | |||
21552 | |||
21553 | if test $pkg_failed = yes; then | ||
21554 | |||
21555 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then | ||
21556 | _pkg_short_errors_supported=yes | ||
21557 | else | ||
21558 | _pkg_short_errors_supported=no | ||
21559 | fi | ||
21560 | if test $_pkg_short_errors_supported = yes; then | ||
21561 | LIBGSF_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "libgsf-1 >= 1.0.0"` | ||
21562 | else | ||
21563 | LIBGSF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libgsf-1 >= 1.0.0"` | ||
21564 | fi | ||
21565 | # Put the nasty error message in config.log where it belongs | ||
21566 | echo "$LIBGSF_PKG_ERRORS" >&5 | ||
21567 | |||
21568 | { echo "$as_me:$LINENO: result: no" >&5 | ||
21569 | echo "${ECHO_T}no" >&6; } | ||
21570 | have_libgsf=false | ||
21571 | elif test $pkg_failed = untried; then | ||
21572 | have_libgsf=false | ||
21573 | else | ||
21574 | LIBGSF_CFLAGS=$pkg_cv_LIBGSF_CFLAGS | ||
21575 | LIBGSF_LIBS=$pkg_cv_LIBGSF_LIBS | ||
21576 | { echo "$as_me:$LINENO: result: yes" >&5 | ||
21577 | echo "${ECHO_T}yes" >&6; } | ||
21578 | have_libgsf=true | ||
21579 | fi | ||
21580 | if test "x$have_libgsf" = "xtrue" ; then | ||
21581 | |||
21582 | cat >>confdefs.h <<\_ACEOF | ||
21583 | #define HAVE_LIBGSF 1 | ||
21584 | _ACEOF | ||
21585 | |||
21586 | fi | ||
21587 | if test "x$have_libgsf" = "xtrue"; then | ||
21588 | HAVE_LIBGSF_TRUE= | ||
21589 | HAVE_LIBGSF_FALSE='#' | ||
21590 | else | ||
21591 | HAVE_LIBGSF_TRUE='#' | ||
21592 | HAVE_LIBGSF_FALSE= | ||
21593 | fi | ||
21594 | |||
21595 | |||
21596 | # libmagic | ||
21597 | # Check whether --enable-libmagic was given. | ||
21598 | if test "${enable_libmagic+set}" = set; then | ||
21599 | enableval=$enable_libmagic; if test "$enableval" = "no" ; then disable_libmagic=true ; fi | ||
21600 | fi | ||
21601 | |||
21602 | if test "x$disable_libmagic" != "xtrue" ; then | ||
21603 | if test "${ac_cv_header_magic_h+set}" = set; then | ||
21604 | { echo "$as_me:$LINENO: checking for magic.h" >&5 | ||
21605 | echo $ECHO_N "checking for magic.h... $ECHO_C" >&6; } | ||
21606 | if test "${ac_cv_header_magic_h+set}" = set; then | ||
21607 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21608 | fi | ||
21609 | { echo "$as_me:$LINENO: result: $ac_cv_header_magic_h" >&5 | ||
21610 | echo "${ECHO_T}$ac_cv_header_magic_h" >&6; } | ||
21611 | else | ||
21612 | # Is the header compilable? | ||
21613 | { echo "$as_me:$LINENO: checking magic.h usability" >&5 | ||
21614 | echo $ECHO_N "checking magic.h usability... $ECHO_C" >&6; } | ||
21615 | cat >conftest.$ac_ext <<_ACEOF | ||
21616 | /* confdefs.h. */ | ||
21617 | _ACEOF | ||
21618 | cat confdefs.h >>conftest.$ac_ext | ||
21619 | cat >>conftest.$ac_ext <<_ACEOF | ||
21620 | /* end confdefs.h. */ | ||
21621 | $ac_includes_default | ||
21622 | #include <magic.h> | ||
21623 | _ACEOF | ||
21624 | rm -f conftest.$ac_objext | ||
21625 | if { (ac_try="$ac_compile" | ||
21626 | case "(($ac_try" in | ||
21627 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21628 | *) ac_try_echo=$ac_try;; | ||
21629 | esac | ||
21630 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21631 | (eval "$ac_compile") 2>conftest.er1 | ||
21632 | ac_status=$? | ||
21633 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21634 | rm -f conftest.er1 | ||
21635 | cat conftest.err >&5 | ||
21636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21637 | (exit $ac_status); } && { | ||
21638 | test -z "$ac_c_werror_flag" || | ||
21639 | test ! -s conftest.err | ||
21640 | } && test -s conftest.$ac_objext; then | ||
21641 | ac_header_compiler=yes | ||
21642 | else | ||
21643 | echo "$as_me: failed program was:" >&5 | ||
21644 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21645 | |||
21646 | ac_header_compiler=no | ||
21647 | fi | ||
21648 | |||
21649 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21650 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
21651 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
21652 | |||
21653 | # Is the header present? | ||
21654 | { echo "$as_me:$LINENO: checking magic.h presence" >&5 | ||
21655 | echo $ECHO_N "checking magic.h presence... $ECHO_C" >&6; } | ||
21656 | cat >conftest.$ac_ext <<_ACEOF | ||
21657 | /* confdefs.h. */ | ||
21658 | _ACEOF | ||
21659 | cat confdefs.h >>conftest.$ac_ext | ||
21660 | cat >>conftest.$ac_ext <<_ACEOF | ||
21661 | /* end confdefs.h. */ | ||
21662 | #include <magic.h> | ||
21663 | _ACEOF | ||
21664 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
21665 | case "(($ac_try" in | ||
21666 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21667 | *) ac_try_echo=$ac_try;; | ||
21668 | esac | ||
21669 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21670 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
21671 | ac_status=$? | ||
21672 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21673 | rm -f conftest.er1 | ||
21674 | cat conftest.err >&5 | ||
21675 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21676 | (exit $ac_status); } >/dev/null && { | ||
21677 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
21678 | test ! -s conftest.err | ||
21679 | }; then | ||
21680 | ac_header_preproc=yes | ||
21681 | else | ||
21682 | echo "$as_me: failed program was:" >&5 | ||
21683 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21684 | |||
21685 | ac_header_preproc=no | ||
21686 | fi | ||
21687 | |||
21688 | rm -f conftest.err conftest.$ac_ext | ||
21689 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
21690 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
21691 | |||
21692 | # So? What about this header? | ||
21693 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
21694 | yes:no: ) | ||
21695 | { echo "$as_me:$LINENO: WARNING: magic.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
21696 | echo "$as_me: WARNING: magic.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
21697 | { echo "$as_me:$LINENO: WARNING: magic.h: proceeding with the compiler's result" >&5 | ||
21698 | echo "$as_me: WARNING: magic.h: proceeding with the compiler's result" >&2;} | ||
21699 | ac_header_preproc=yes | ||
21700 | ;; | ||
21701 | no:yes:* ) | ||
21702 | { echo "$as_me:$LINENO: WARNING: magic.h: present but cannot be compiled" >&5 | ||
21703 | echo "$as_me: WARNING: magic.h: present but cannot be compiled" >&2;} | ||
21704 | { echo "$as_me:$LINENO: WARNING: magic.h: check for missing prerequisite headers?" >&5 | ||
21705 | echo "$as_me: WARNING: magic.h: check for missing prerequisite headers?" >&2;} | ||
21706 | { echo "$as_me:$LINENO: WARNING: magic.h: see the Autoconf documentation" >&5 | ||
21707 | echo "$as_me: WARNING: magic.h: see the Autoconf documentation" >&2;} | ||
21708 | { echo "$as_me:$LINENO: WARNING: magic.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
21709 | echo "$as_me: WARNING: magic.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
21710 | { echo "$as_me:$LINENO: WARNING: magic.h: proceeding with the preprocessor's result" >&5 | ||
21711 | echo "$as_me: WARNING: magic.h: proceeding with the preprocessor's result" >&2;} | ||
21712 | { echo "$as_me:$LINENO: WARNING: magic.h: in the future, the compiler will take precedence" >&5 | ||
21713 | echo "$as_me: WARNING: magic.h: in the future, the compiler will take precedence" >&2;} | ||
21714 | |||
21715 | ;; | ||
21716 | esac | ||
21717 | { echo "$as_me:$LINENO: checking for magic.h" >&5 | ||
21718 | echo $ECHO_N "checking for magic.h... $ECHO_C" >&6; } | ||
21719 | if test "${ac_cv_header_magic_h+set}" = set; then | ||
21720 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21721 | else | ||
21722 | ac_cv_header_magic_h=$ac_header_preproc | ||
21723 | fi | ||
21724 | { echo "$as_me:$LINENO: result: $ac_cv_header_magic_h" >&5 | ||
21725 | echo "${ECHO_T}$ac_cv_header_magic_h" >&6; } | ||
21726 | |||
21727 | fi | ||
21728 | if test $ac_cv_header_magic_h = yes; then | ||
21729 | have_magic_h=true | ||
21730 | fi | ||
21731 | |||
21732 | |||
21733 | { echo "$as_me:$LINENO: checking for magic_open in -lmagic" >&5 | ||
21734 | echo $ECHO_N "checking for magic_open in -lmagic... $ECHO_C" >&6; } | ||
21735 | if test "${ac_cv_lib_magic_magic_open+set}" = set; then | ||
21736 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21737 | else | ||
21738 | ac_check_lib_save_LIBS=$LIBS | ||
21739 | LIBS="-lmagic $LIBS" | ||
21740 | cat >conftest.$ac_ext <<_ACEOF | ||
21741 | /* confdefs.h. */ | ||
21742 | _ACEOF | ||
21743 | cat confdefs.h >>conftest.$ac_ext | ||
21744 | cat >>conftest.$ac_ext <<_ACEOF | ||
21745 | /* end confdefs.h. */ | ||
21746 | |||
21747 | /* Override any GCC internal prototype to avoid an error. | ||
21748 | Use char because int might match the return type of a GCC | ||
21749 | builtin and then its argument prototype would still apply. */ | ||
21750 | #ifdef __cplusplus | ||
21751 | extern "C" | ||
21752 | #endif | ||
21753 | char magic_open (); | ||
21754 | int | ||
21755 | main () | ||
21756 | { | ||
21757 | return magic_open (); | ||
21758 | ; | ||
21759 | return 0; | ||
21760 | } | ||
21761 | _ACEOF | ||
21762 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21763 | if { (ac_try="$ac_link" | ||
21764 | case "(($ac_try" in | ||
21765 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21766 | *) ac_try_echo=$ac_try;; | ||
21767 | esac | ||
21768 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21769 | (eval "$ac_link") 2>conftest.er1 | ||
21770 | ac_status=$? | ||
21771 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21772 | rm -f conftest.er1 | ||
21773 | cat conftest.err >&5 | ||
21774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21775 | (exit $ac_status); } && { | ||
21776 | test -z "$ac_c_werror_flag" || | ||
21777 | test ! -s conftest.err | ||
21778 | } && test -s conftest$ac_exeext && | ||
21779 | $as_test_x conftest$ac_exeext; then | ||
21780 | ac_cv_lib_magic_magic_open=yes | ||
21781 | else | ||
21782 | echo "$as_me: failed program was:" >&5 | ||
21783 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21784 | |||
21785 | ac_cv_lib_magic_magic_open=no | ||
21786 | fi | ||
21787 | |||
21788 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21789 | conftest$ac_exeext conftest.$ac_ext | ||
21790 | LIBS=$ac_check_lib_save_LIBS | ||
21791 | fi | ||
21792 | { echo "$as_me:$LINENO: result: $ac_cv_lib_magic_magic_open" >&5 | ||
21793 | echo "${ECHO_T}$ac_cv_lib_magic_magic_open" >&6; } | ||
21794 | if test $ac_cv_lib_magic_magic_open = yes; then | ||
21795 | have_magic_open=true | ||
21796 | fi | ||
21797 | |||
21798 | if test "x$have_magic_h" = "xtrue" && test "x$have_magic_open" = "xtrue"; then | ||
21799 | have_libmagic=true | ||
21800 | |||
21801 | cat >>confdefs.h <<\_ACEOF | ||
21802 | #define USE_LIBMAGIC 1 | ||
21803 | _ACEOF | ||
21804 | |||
21805 | |||
21806 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | ||
21807 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
21808 | ac_define_dir=`eval echo $libdir/$PACKAGE/libg3d.magic` | ||
21809 | ac_define_dir=`eval echo $ac_define_dir` | ||
21810 | |||
21811 | cat >>confdefs.h <<_ACEOF | ||
21812 | #define MAGIC_FILENAME "$ac_define_dir" | ||
21813 | _ACEOF | ||
21814 | |||
21815 | |||
21816 | MAGIC_LIBS=-lmagic | ||
21817 | fi | ||
21818 | fi | ||
21819 | |||
21820 | #AM_CONDITIONAL([USE_LIBMAGIC], test "x$have_libmagic" = "xtrue") | ||
21821 | |||
21822 | # libm | ||
21823 | |||
21824 | { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5 | ||
21825 | echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; } | ||
21826 | if test "${ac_cv_lib_m_sqrt+set}" = set; then | ||
21827 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21828 | else | ||
21829 | ac_check_lib_save_LIBS=$LIBS | ||
21830 | LIBS="-lm $LIBS" | ||
21831 | cat >conftest.$ac_ext <<_ACEOF | ||
21832 | /* confdefs.h. */ | ||
21833 | _ACEOF | ||
21834 | cat confdefs.h >>conftest.$ac_ext | ||
21835 | cat >>conftest.$ac_ext <<_ACEOF | ||
21836 | /* end confdefs.h. */ | ||
21837 | |||
21838 | /* Override any GCC internal prototype to avoid an error. | ||
21839 | Use char because int might match the return type of a GCC | ||
21840 | builtin and then its argument prototype would still apply. */ | ||
21841 | #ifdef __cplusplus | ||
21842 | extern "C" | ||
21843 | #endif | ||
21844 | char sqrt (); | ||
21845 | int | ||
21846 | main () | ||
21847 | { | ||
21848 | return sqrt (); | ||
21849 | ; | ||
21850 | return 0; | ||
21851 | } | ||
21852 | _ACEOF | ||
21853 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
21854 | if { (ac_try="$ac_link" | ||
21855 | case "(($ac_try" in | ||
21856 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21857 | *) ac_try_echo=$ac_try;; | ||
21858 | esac | ||
21859 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21860 | (eval "$ac_link") 2>conftest.er1 | ||
21861 | ac_status=$? | ||
21862 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21863 | rm -f conftest.er1 | ||
21864 | cat conftest.err >&5 | ||
21865 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21866 | (exit $ac_status); } && { | ||
21867 | test -z "$ac_c_werror_flag" || | ||
21868 | test ! -s conftest.err | ||
21869 | } && test -s conftest$ac_exeext && | ||
21870 | $as_test_x conftest$ac_exeext; then | ||
21871 | ac_cv_lib_m_sqrt=yes | ||
21872 | else | ||
21873 | echo "$as_me: failed program was:" >&5 | ||
21874 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21875 | |||
21876 | ac_cv_lib_m_sqrt=no | ||
21877 | fi | ||
21878 | |||
21879 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
21880 | conftest$ac_exeext conftest.$ac_ext | ||
21881 | LIBS=$ac_check_lib_save_LIBS | ||
21882 | fi | ||
21883 | { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5 | ||
21884 | echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; } | ||
21885 | if test $ac_cv_lib_m_sqrt = yes; then | ||
21886 | cat >>confdefs.h <<_ACEOF | ||
21887 | #define HAVE_LIBM 1 | ||
21888 | _ACEOF | ||
21889 | |||
21890 | LIBS="-lm $LIBS" | ||
21891 | |||
21892 | else | ||
21893 | { { echo "$as_me:$LINENO: error: requires math library" >&5 | ||
21894 | echo "$as_me: error: requires math library" >&2;} | ||
21895 | { (exit 1); exit 1; }; } | ||
21896 | fi | ||
21897 | |||
21898 | MATH_LIBS=-lm | ||
21899 | |||
21900 | |||
21901 | # zlib | ||
21902 | Z_DIR= Z_LIBS= Z_CFLAGS= | ||
21903 | |||
21904 | # Check whether --with-zlib was given. | ||
21905 | if test "${with_zlib+set}" = set; then | ||
21906 | withval=$with_zlib; case $withval in | ||
21907 | yes|no) ;; | ||
21908 | *) Z_DIR=$withval | ||
21909 | CPPFLAGS="${CPPFLAGS} -I$withval/include" | ||
21910 | LDFLAGS="${LDFLAGS} -L$withval/lib" | ||
21911 | ;; | ||
21912 | esac | ||
21913 | fi | ||
21914 | |||
21915 | if test "x$with_zlib" != xno; then | ||
21916 | with_zlib=no | ||
21917 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
21918 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
21919 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
21920 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
21921 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
21922 | fi | ||
21923 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
21924 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
21925 | else | ||
21926 | # Is the header compilable? | ||
21927 | { echo "$as_me:$LINENO: checking zlib.h usability" >&5 | ||
21928 | echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6; } | ||
21929 | cat >conftest.$ac_ext <<_ACEOF | ||
21930 | /* confdefs.h. */ | ||
21931 | _ACEOF | ||
21932 | cat confdefs.h >>conftest.$ac_ext | ||
21933 | cat >>conftest.$ac_ext <<_ACEOF | ||
21934 | /* end confdefs.h. */ | ||
21935 | $ac_includes_default | ||
21936 | #include <zlib.h> | ||
21937 | _ACEOF | ||
21938 | rm -f conftest.$ac_objext | ||
21939 | if { (ac_try="$ac_compile" | ||
21940 | case "(($ac_try" in | ||
21941 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21942 | *) ac_try_echo=$ac_try;; | ||
21943 | esac | ||
21944 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21945 | (eval "$ac_compile") 2>conftest.er1 | ||
21946 | ac_status=$? | ||
21947 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21948 | rm -f conftest.er1 | ||
21949 | cat conftest.err >&5 | ||
21950 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21951 | (exit $ac_status); } && { | ||
21952 | test -z "$ac_c_werror_flag" || | ||
21953 | test ! -s conftest.err | ||
21954 | } && test -s conftest.$ac_objext; then | ||
21955 | ac_header_compiler=yes | ||
21956 | else | ||
21957 | echo "$as_me: failed program was:" >&5 | ||
21958 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21959 | |||
21960 | ac_header_compiler=no | ||
21961 | fi | ||
21962 | |||
21963 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | ||
21964 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | ||
21965 | echo "${ECHO_T}$ac_header_compiler" >&6; } | ||
21966 | |||
21967 | # Is the header present? | ||
21968 | { echo "$as_me:$LINENO: checking zlib.h presence" >&5 | ||
21969 | echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6; } | ||
21970 | cat >conftest.$ac_ext <<_ACEOF | ||
21971 | /* confdefs.h. */ | ||
21972 | _ACEOF | ||
21973 | cat confdefs.h >>conftest.$ac_ext | ||
21974 | cat >>conftest.$ac_ext <<_ACEOF | ||
21975 | /* end confdefs.h. */ | ||
21976 | #include <zlib.h> | ||
21977 | _ACEOF | ||
21978 | if { (ac_try="$ac_cpp conftest.$ac_ext" | ||
21979 | case "(($ac_try" in | ||
21980 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
21981 | *) ac_try_echo=$ac_try;; | ||
21982 | esac | ||
21983 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
21984 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | ||
21985 | ac_status=$? | ||
21986 | grep -v '^ *+' conftest.er1 >conftest.err | ||
21987 | rm -f conftest.er1 | ||
21988 | cat conftest.err >&5 | ||
21989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
21990 | (exit $ac_status); } >/dev/null && { | ||
21991 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | ||
21992 | test ! -s conftest.err | ||
21993 | }; then | ||
21994 | ac_header_preproc=yes | ||
21995 | else | ||
21996 | echo "$as_me: failed program was:" >&5 | ||
21997 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
21998 | |||
21999 | ac_header_preproc=no | ||
22000 | fi | ||
22001 | |||
22002 | rm -f conftest.err conftest.$ac_ext | ||
22003 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | ||
22004 | echo "${ECHO_T}$ac_header_preproc" >&6; } | ||
22005 | |||
22006 | # So? What about this header? | ||
22007 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | ||
22008 | yes:no: ) | ||
22009 | { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5 | ||
22010 | echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | ||
22011 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5 | ||
22012 | echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;} | ||
22013 | ac_header_preproc=yes | ||
22014 | ;; | ||
22015 | no:yes:* ) | ||
22016 | { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5 | ||
22017 | echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;} | ||
22018 | { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5 | ||
22019 | echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;} | ||
22020 | { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5 | ||
22021 | echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;} | ||
22022 | { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5 | ||
22023 | echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;} | ||
22024 | { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5 | ||
22025 | echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;} | ||
22026 | { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5 | ||
22027 | echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;} | ||
22028 | |||
22029 | ;; | ||
22030 | esac | ||
22031 | { echo "$as_me:$LINENO: checking for zlib.h" >&5 | ||
22032 | echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6; } | ||
22033 | if test "${ac_cv_header_zlib_h+set}" = set; then | ||
22034 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22035 | else | ||
22036 | ac_cv_header_zlib_h=$ac_header_preproc | ||
22037 | fi | ||
22038 | { echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5 | ||
22039 | echo "${ECHO_T}$ac_cv_header_zlib_h" >&6; } | ||
22040 | |||
22041 | fi | ||
22042 | if test $ac_cv_header_zlib_h = yes; then | ||
22043 | { echo "$as_me:$LINENO: checking for gzread in -lz" >&5 | ||
22044 | echo $ECHO_N "checking for gzread in -lz... $ECHO_C" >&6; } | ||
22045 | if test "${ac_cv_lib_z_gzread+set}" = set; then | ||
22046 | echo $ECHO_N "(cached) $ECHO_C" >&6 | ||
22047 | else | ||
22048 | ac_check_lib_save_LIBS=$LIBS | ||
22049 | LIBS="-lz $LIBS" | ||
22050 | cat >conftest.$ac_ext <<_ACEOF | ||
22051 | /* confdefs.h. */ | ||
22052 | _ACEOF | ||
22053 | cat confdefs.h >>conftest.$ac_ext | ||
22054 | cat >>conftest.$ac_ext <<_ACEOF | ||
22055 | /* end confdefs.h. */ | ||
22056 | |||
22057 | /* Override any GCC internal prototype to avoid an error. | ||
22058 | Use char because int might match the return type of a GCC | ||
22059 | builtin and then its argument prototype would still apply. */ | ||
22060 | #ifdef __cplusplus | ||
22061 | extern "C" | ||
22062 | #endif | ||
22063 | char gzread (); | ||
22064 | int | ||
22065 | main () | ||
22066 | { | ||
22067 | return gzread (); | ||
22068 | ; | ||
22069 | return 0; | ||
22070 | } | ||
22071 | _ACEOF | ||
22072 | rm -f conftest.$ac_objext conftest$ac_exeext | ||
22073 | if { (ac_try="$ac_link" | ||
22074 | case "(($ac_try" in | ||
22075 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | ||
22076 | *) ac_try_echo=$ac_try;; | ||
22077 | esac | ||
22078 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | ||
22079 | (eval "$ac_link") 2>conftest.er1 | ||
22080 | ac_status=$? | ||
22081 | grep -v '^ *+' conftest.er1 >conftest.err | ||
22082 | rm -f conftest.er1 | ||
22083 | cat conftest.err >&5 | ||
22084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | ||
22085 | (exit $ac_status); } && { | ||
22086 | test -z "$ac_c_werror_flag" || | ||
22087 | test ! -s conftest.err | ||
22088 | } && test -s conftest$ac_exeext && | ||
22089 | $as_test_x conftest$ac_exeext; then | ||
22090 | ac_cv_lib_z_gzread=yes | ||
22091 | else | ||
22092 | echo "$as_me: failed program was:" >&5 | ||
22093 | sed 's/^/| /' conftest.$ac_ext >&5 | ||
22094 | |||
22095 | ac_cv_lib_z_gzread=no | ||
22096 | fi | ||
22097 | |||
22098 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | ||
22099 | conftest$ac_exeext conftest.$ac_ext | ||
22100 | LIBS=$ac_check_lib_save_LIBS | ||
22101 | fi | ||
22102 | { echo "$as_me:$LINENO: result: $ac_cv_lib_z_gzread" >&5 | ||
22103 | echo "${ECHO_T}$ac_cv_lib_z_gzread" >&6; } | ||
22104 | if test $ac_cv_lib_z_gzread = yes; then | ||
22105 | with_zlib=yes | ||
22106 | fi | ||
22107 | |||
22108 | fi | ||
22109 | |||
22110 | |||
22111 | fi | ||
22112 | if test "x$Z_DIR" != "x"; then | ||
22113 | Z_CFLAGS="-I$Z_DIR/include" | ||
22114 | Z_LIBS="-L$Z_DIR/lib -lz" | ||
22115 | else | ||
22116 | Z_LIBS="-lz" | ||
22117 | fi | ||
22118 | |||
22119 | |||
22120 | if test "$with_zlib" = "yes"; then | ||
22121 | |||
22122 | cat >>confdefs.h <<\_ACEOF | ||
22123 | #define HAVE_ZLIB 1 | ||
22124 | _ACEOF | ||
22125 | |||
22126 | fi | ||
22127 | if test "$with_zlib" = "yes"; then | ||
22128 | HAVE_ZLIB_TRUE= | ||
22129 | HAVE_ZLIB_FALSE='#' | ||
22130 | else | ||
22131 | HAVE_ZLIB_TRUE='#' | ||
22132 | HAVE_ZLIB_FALSE= | ||
22133 | fi | ||
22134 | |||
22135 | |||
22136 | # Debug level (verbosity & optimization) | ||
22137 | { echo "$as_me:$LINENO: checking for debug level" >&5 | ||
22138 | echo $ECHO_N "checking for debug level... $ECHO_C" >&6; } | ||
22139 | # Check whether --enable-debug was given. | ||
22140 | if test "${enable_debug+set}" = set; then | ||
22141 | enableval=$enable_debug; if test "$enableval" = "yes" ; then DEBUG=1; else DEBUG=$enableval; fi | ||
22142 | else | ||
22143 | DEBUG=0 | ||
22144 | fi | ||
22145 | |||
22146 | { echo "$as_me:$LINENO: result: $DEBUG" >&5 | ||
22147 | echo "${ECHO_T}$DEBUG" >&6; } | ||
22148 | |||
22149 | |||
22150 | # Check whether --enable-experimental was given. | ||
22151 | if test "${enable_experimental+set}" = set; then | ||
22152 | enableval=$enable_experimental; if test "x$enableval" = "xyes" ; then experimental=1 | ||
22153 | else experimental=0; fi | ||
22154 | else | ||
22155 | experimental=0 | ||
22156 | fi | ||
22157 | |||
22158 | if test "x$experimental" = "x1"; then | ||
22159 | EXPERIMENTAL_TRUE= | ||
22160 | EXPERIMENTAL_FALSE='#' | ||
22161 | else | ||
22162 | EXPERIMENTAL_TRUE='#' | ||
22163 | EXPERIMENTAL_FALSE= | ||
22164 | fi | ||
22165 | |||
22166 | |||
22167 | # Check whether --enable-cxxtest was given. | ||
22168 | if test "${enable_cxxtest+set}" = set; then | ||
22169 | enableval=$enable_cxxtest; if test "x$enableval" = "xyes" ; then cxxtest=1 else cxxtest=0; fi | ||
22170 | else | ||
22171 | cxxtest=0 | ||
22172 | fi | ||
22173 | |||
22174 | if test "x$cxxtest" = "x1"; then | ||
22175 | HAVE_CXX_TRUE= | ||
22176 | HAVE_CXX_FALSE='#' | ||
22177 | else | ||
22178 | HAVE_CXX_TRUE='#' | ||
22179 | HAVE_CXX_FALSE= | ||
22180 | fi | ||
22181 | |||
22182 | |||
22183 | # Check whether --enable-profile was given. | ||
22184 | if test "${enable_profile+set}" = set; then | ||
22185 | enableval=$enable_profile; if test "x$enableval" = "xyes" ; then profile="-pg" | ||
22186 | else profile=""; fi | ||
22187 | else | ||
22188 | profile="" | ||
22189 | fi | ||
22190 | |||
22191 | |||
22192 | if test "$DEBUG" = "0"; then | ||
22193 | DBG_CFLAGS="-O2 $profile" | ||
22194 | else | ||
22195 | DBG_CFLAGS="-g $profile" | ||
22196 | fi | ||
22197 | |||
22198 | |||
22199 | # plugin directories | ||
22200 | |||
22201 | test "x$prefix" = xNONE && prefix="$ac_default_prefix" | ||
22202 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
22203 | ac_define_dir=`eval echo $libdir/$PACKAGE/plugins` | ||
22204 | ac_define_dir=`eval echo $ac_define_dir` | ||
22205 | |||
22206 | cat >>confdefs.h <<_ACEOF | ||
22207 | #define PLUGIN_DIR "$ac_define_dir" | ||
22208 | _ACEOF | ||
22209 | |||
22210 | |||
22211 | |||
22212 | PLUGINS_LDFLAGS="-avoid-version -export-dynamic" | ||
22213 | |||
22214 | |||
22215 | ac_config_files="$ac_config_files Makefile doc/Makefile doc/api/Makefile doc/support_matrix/Makefile include/Makefile include/g3d/Makefile m4/Makefile plugins/Makefile plugins/image/Makefile plugins/import/Makefile plugins/import/imp_3dm/Makefile plugins/import/imp_3dmf/Makefile plugins/import/imp_3ds/Makefile plugins/import/imp_ac3d/Makefile plugins/import/imp_acf/Makefile plugins/import/imp_ar/Makefile plugins/import/imp_ase/Makefile plugins/import/imp_blend/Makefile plugins/import/imp_c4d/Makefile plugins/import/imp_cob/Makefile plugins/import/imp_dae/Makefile plugins/import/imp_dpm/Makefile plugins/import/imp_dxf/Makefile plugins/import/imp_flt/Makefile plugins/import/imp_glb/Makefile plugins/import/imp_heightfield/Makefile plugins/import/imp_iob/Makefile plugins/import/imp_joe/Makefile plugins/import/imp_kmz/Makefile plugins/import/imp_ldraw/Makefile plugins/import/imp_leocad/Makefile plugins/import/imp_lwo/Makefile plugins/import/imp_max/Makefile plugins/import/imp_maya/Makefile plugins/import/imp_md2/Makefile plugins/import/imp_md3/Makefile plugins/import/imp_nff/Makefile plugins/import/imp_obj/Makefile plugins/import/imp_osm/Makefile plugins/import/imp_q3o/Makefile plugins/import/imp_r4/Makefile plugins/import/imp_rbh/Makefile plugins/import/imp_skp/Makefile plugins/import/imp_stl/Makefile plugins/import/imp_ta/Makefile plugins/import/imp_test/Makefile plugins/import/imp_vrml/Makefile plugins/import/imp_vrml2/Makefile src/Makefile programs/Makefile tests/Makefile libg3d.pc" | ||
22216 | |||
22217 | cat >confcache <<\_ACEOF | ||
22218 | # This file is a shell script that caches the results of configure | ||
22219 | # tests run on this system so they can be shared between configure | ||
22220 | # scripts and configure runs, see configure's option --config-cache. | ||
22221 | # It is not useful on other systems. If it contains results you don't | ||
22222 | # want to keep, you may remove or edit it. | ||
22223 | # | ||
22224 | # config.status only pays attention to the cache file if you give it | ||
22225 | # the --recheck option to rerun configure. | ||
22226 | # | ||
22227 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | ||
22228 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | ||
22229 | # following values. | ||
22230 | |||
22231 | _ACEOF | ||
22232 | |||
22233 | # The following way of writing the cache mishandles newlines in values, | ||
22234 | # but we know of no workaround that is simple, portable, and efficient. | ||
22235 | # So, we kill variables containing newlines. | ||
22236 | # Ultrix sh set writes to stderr and can't be redirected directly, | ||
22237 | # and sets the high bit in the cache file unless we assign to the vars. | ||
22238 | ( | ||
22239 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | ||
22240 | eval ac_val=\$$ac_var | ||
22241 | case $ac_val in #( | ||
22242 | *${as_nl}*) | ||
22243 | case $ac_var in #( | ||
22244 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | ||
22245 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | ||
22246 | esac | ||
22247 | case $ac_var in #( | ||
22248 | _ | IFS | as_nl) ;; #( | ||
22249 | *) $as_unset $ac_var ;; | ||
22250 | esac ;; | ||
22251 | esac | ||
22252 | done | ||
22253 | |||
22254 | (set) 2>&1 | | ||
22255 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | ||
22256 | *${as_nl}ac_space=\ *) | ||
22257 | # `set' does not quote correctly, so add quotes (double-quote | ||
22258 | # substitution turns \\\\ into \\, and sed turns \\ into \). | ||
22259 | sed -n \ | ||
22260 | "s/'/'\\\\''/g; | ||
22261 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | ||
22262 | ;; #( | ||
22263 | *) | ||
22264 | # `set' quotes correctly as required by POSIX, so do not add quotes. | ||
22265 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | ||
22266 | ;; | ||
22267 | esac | | ||
22268 | sort | ||
22269 | ) | | ||
22270 | sed ' | ||
22271 | /^ac_cv_env_/b end | ||
22272 | t clear | ||
22273 | :clear | ||
22274 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | ||
22275 | t end | ||
22276 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | ||
22277 | :end' >>confcache | ||
22278 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | ||
22279 | if test -w "$cache_file"; then | ||
22280 | test "x$cache_file" != "x/dev/null" && | ||
22281 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | ||
22282 | echo "$as_me: updating cache $cache_file" >&6;} | ||
22283 | cat confcache >$cache_file | ||
22284 | else | ||
22285 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | ||
22286 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | ||
22287 | fi | ||
22288 | fi | ||
22289 | rm -f confcache | ||
22290 | |||
22291 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | ||
22292 | # Let make expand exec_prefix. | ||
22293 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | ||
22294 | |||
22295 | DEFS=-DHAVE_CONFIG_H | ||
22296 | |||
22297 | ac_libobjs= | ||
22298 | ac_ltlibobjs= | ||
22299 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | ||
22300 | # 1. Remove the extension, and $U if already installed. | ||
22301 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | ||
22302 | ac_i=`echo "$ac_i" | sed "$ac_script"` | ||
22303 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | ||
22304 | # will be set to the directory where LIBOBJS objects are built. | ||
22305 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | ||
22306 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | ||
22307 | done | ||
22308 | LIBOBJS=$ac_libobjs | ||
22309 | |||
22310 | LTLIBOBJS=$ac_ltlibobjs | ||
22311 | |||
22312 | |||
22313 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | ||
22314 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | ||
22315 | Usually this means the macro was only invoked conditionally." >&5 | ||
22316 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | ||
22317 | Usually this means the macro was only invoked conditionally." >&2;} | ||
22318 | { (exit 1); exit 1; }; } | ||
22319 | fi | ||
22320 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | ||
22321 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | ||
22322 | Usually this means the macro was only invoked conditionally." >&5 | ||
22323 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | ||
22324 | Usually this means the macro was only invoked conditionally." >&2;} | ||
22325 | { (exit 1); exit 1; }; } | ||
22326 | fi | ||
22327 | if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then | ||
22328 | { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32\" was never defined. | ||
22329 | Usually this means the macro was only invoked conditionally." >&5 | ||
22330 | echo "$as_me: error: conditional \"OS_WIN32\" was never defined. | ||
22331 | Usually this means the macro was only invoked conditionally." >&2;} | ||
22332 | { (exit 1); exit 1; }; } | ||
22333 | fi | ||
22334 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | ||
22335 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | ||
22336 | Usually this means the macro was only invoked conditionally." >&5 | ||
22337 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | ||
22338 | Usually this means the macro was only invoked conditionally." >&2;} | ||
22339 | { (exit 1); exit 1; }; } | ||
22340 | fi | ||
22341 | if test -z "${ENABLE_GTK_DOC_TRUE}" && test -z "${ENABLE_GTK_DOC_FALSE}"; then | ||
22342 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GTK_DOC\" was never defined. | ||
22343 | Usually this means the macro was only invoked conditionally." >&5 | ||
22344 | echo "$as_me: error: conditional \"ENABLE_GTK_DOC\" was never defined. | ||
22345 | Usually this means the macro was only invoked conditionally." >&2;} | ||
22346 | { (exit 1); exit 1; }; } | ||
22347 | fi | ||
22348 | if test -z "${GTK_DOC_USE_LIBTOOL_TRUE}" && test -z "${GTK_DOC_USE_LIBTOOL_FALSE}"; then | ||
22349 | { { echo "$as_me:$LINENO: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. | ||
22350 | Usually this means the macro was only invoked conditionally." >&5 | ||
22351 | echo "$as_me: error: conditional \"GTK_DOC_USE_LIBTOOL\" was never defined. | ||
22352 | Usually this means the macro was only invoked conditionally." >&2;} | ||
22353 | { (exit 1); exit 1; }; } | ||
22354 | fi | ||
22355 | if test -z "${HAVE_GDKPIXBUF_TRUE}" && test -z "${HAVE_GDKPIXBUF_FALSE}"; then | ||
22356 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GDKPIXBUF\" was never defined. | ||
22357 | Usually this means the macro was only invoked conditionally." >&5 | ||
22358 | echo "$as_me: error: conditional \"HAVE_GDKPIXBUF\" was never defined. | ||
22359 | Usually this means the macro was only invoked conditionally." >&2;} | ||
22360 | { (exit 1); exit 1; }; } | ||
22361 | fi | ||
22362 | if test -z "${HAVE_LIBXML2_TRUE}" && test -z "${HAVE_LIBXML2_FALSE}"; then | ||
22363 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBXML2\" was never defined. | ||
22364 | Usually this means the macro was only invoked conditionally." >&5 | ||
22365 | echo "$as_me: error: conditional \"HAVE_LIBXML2\" was never defined. | ||
22366 | Usually this means the macro was only invoked conditionally." >&2;} | ||
22367 | { (exit 1); exit 1; }; } | ||
22368 | fi | ||
22369 | if test -z "${HAVE_LIBGSF_TRUE}" && test -z "${HAVE_LIBGSF_FALSE}"; then | ||
22370 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_LIBGSF\" was never defined. | ||
22371 | Usually this means the macro was only invoked conditionally." >&5 | ||
22372 | echo "$as_me: error: conditional \"HAVE_LIBGSF\" was never defined. | ||
22373 | Usually this means the macro was only invoked conditionally." >&2;} | ||
22374 | { (exit 1); exit 1; }; } | ||
22375 | fi | ||
22376 | if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then | ||
22377 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_ZLIB\" was never defined. | ||
22378 | Usually this means the macro was only invoked conditionally." >&5 | ||
22379 | echo "$as_me: error: conditional \"HAVE_ZLIB\" was never defined. | ||
22380 | Usually this means the macro was only invoked conditionally." >&2;} | ||
22381 | { (exit 1); exit 1; }; } | ||
22382 | fi | ||
22383 | if test -z "${EXPERIMENTAL_TRUE}" && test -z "${EXPERIMENTAL_FALSE}"; then | ||
22384 | { { echo "$as_me:$LINENO: error: conditional \"EXPERIMENTAL\" was never defined. | ||
22385 | Usually this means the macro was only invoked conditionally." >&5 | ||
22386 | echo "$as_me: error: conditional \"EXPERIMENTAL\" was never defined. | ||
22387 | Usually this means the macro was only invoked conditionally." >&2;} | ||
22388 | { (exit 1); exit 1; }; } | ||
22389 | fi | ||
22390 | if test -z "${HAVE_CXX_TRUE}" && test -z "${HAVE_CXX_FALSE}"; then | ||
22391 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_CXX\" was never defined. | ||
22392 | Usually this means the macro was only invoked conditionally." >&5 | ||
22393 | echo "$as_me: error: conditional \"HAVE_CXX\" was never defined. | ||
22394 | Usually this means the macro was only invoked conditionally." >&2;} | ||
22395 | { (exit 1); exit 1; }; } | ||
22396 | fi | ||
22397 | |||
22398 | : ${CONFIG_STATUS=./config.status} | ||
22399 | ac_clean_files_save=$ac_clean_files | ||
22400 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | ||
22401 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | ||
22402 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | ||
22403 | cat >$CONFIG_STATUS <<_ACEOF | ||
22404 | #! $SHELL | ||
22405 | # Generated by $as_me. | ||
22406 | # Run this file to recreate the current configuration. | ||
22407 | # Compiler output produced by configure, useful for debugging | ||
22408 | # configure, is in config.log if it exists. | ||
22409 | |||
22410 | debug=false | ||
22411 | ac_cs_recheck=false | ||
22412 | ac_cs_silent=false | ||
22413 | SHELL=\${CONFIG_SHELL-$SHELL} | ||
22414 | _ACEOF | ||
22415 | |||
22416 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
22417 | ## --------------------- ## | ||
22418 | ## M4sh Initialization. ## | ||
22419 | ## --------------------- ## | ||
22420 | |||
22421 | # Be more Bourne compatible | ||
22422 | DUALCASE=1; export DUALCASE # for MKS sh | ||
22423 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | ||
22424 | emulate sh | ||
22425 | NULLCMD=: | ||
22426 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | ||
22427 | # is contrary to our usage. Disable this feature. | ||
22428 | alias -g '${1+"$@"}'='"$@"' | ||
22429 | setopt NO_GLOB_SUBST | ||
22430 | else | ||
22431 | case `(set -o) 2>/dev/null` in | ||
22432 | *posix*) set -o posix ;; | ||
22433 | esac | ||
22434 | |||
22435 | fi | ||
22436 | |||
22437 | |||
22438 | |||
22439 | |||
22440 | # PATH needs CR | ||
22441 | # Avoid depending upon Character Ranges. | ||
22442 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | ||
22443 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | ||
22444 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | ||
22445 | as_cr_digits='0123456789' | ||
22446 | as_cr_alnum=$as_cr_Letters$as_cr_digits | ||
22447 | |||
22448 | # The user is always right. | ||
22449 | if test "${PATH_SEPARATOR+set}" != set; then | ||
22450 | echo "#! /bin/sh" >conf$$.sh | ||
22451 | echo "exit 0" >>conf$$.sh | ||
22452 | chmod +x conf$$.sh | ||
22453 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | ||
22454 | PATH_SEPARATOR=';' | ||
22455 | else | ||
22456 | PATH_SEPARATOR=: | ||
22457 | fi | ||
22458 | rm -f conf$$.sh | ||
22459 | fi | ||
22460 | |||
22461 | # Support unset when possible. | ||
22462 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | ||
22463 | as_unset=unset | ||
22464 | else | ||
22465 | as_unset=false | ||
22466 | fi | ||
22467 | |||
22468 | |||
22469 | # IFS | ||
22470 | # We need space, tab and new line, in precisely that order. Quoting is | ||
22471 | # there to prevent editors from complaining about space-tab. | ||
22472 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | ||
22473 | # splitting by setting IFS to empty value.) | ||
22474 | as_nl=' | ||
22475 | ' | ||
22476 | IFS=" "" $as_nl" | ||
22477 | |||
22478 | # Find who we are. Look in the path if we contain no directory separator. | ||
22479 | case $0 in | ||
22480 | *[\\/]* ) as_myself=$0 ;; | ||
22481 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
22482 | for as_dir in $PATH | ||
22483 | do | ||
22484 | IFS=$as_save_IFS | ||
22485 | test -z "$as_dir" && as_dir=. | ||
22486 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | ||
22487 | done | ||
22488 | IFS=$as_save_IFS | ||
22489 | |||
22490 | ;; | ||
22491 | esac | ||
22492 | # We did not find ourselves, most probably we were run as `sh COMMAND' | ||
22493 | # in which case we are not to be found in the path. | ||
22494 | if test "x$as_myself" = x; then | ||
22495 | as_myself=$0 | ||
22496 | fi | ||
22497 | if test ! -f "$as_myself"; then | ||
22498 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | ||
22499 | { (exit 1); exit 1; } | ||
22500 | fi | ||
22501 | |||
22502 | # Work around bugs in pre-3.0 UWIN ksh. | ||
22503 | for as_var in ENV MAIL MAILPATH | ||
22504 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
22505 | done | ||
22506 | PS1='$ ' | ||
22507 | PS2='> ' | ||
22508 | PS4='+ ' | ||
22509 | |||
22510 | # NLS nuisances. | ||
22511 | for as_var in \ | ||
22512 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | ||
22513 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | ||
22514 | LC_TELEPHONE LC_TIME | ||
22515 | do | ||
22516 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | ||
22517 | eval $as_var=C; export $as_var | ||
22518 | else | ||
22519 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | ||
22520 | fi | ||
22521 | done | ||
22522 | |||
22523 | # Required to use basename. | ||
22524 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
22525 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
22526 | as_expr=expr | ||
22527 | else | ||
22528 | as_expr=false | ||
22529 | fi | ||
22530 | |||
22531 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | ||
22532 | as_basename=basename | ||
22533 | else | ||
22534 | as_basename=false | ||
22535 | fi | ||
22536 | |||
22537 | |||
22538 | # Name of the executable. | ||
22539 | as_me=`$as_basename -- "$0" || | ||
22540 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | ||
22541 | X"$0" : 'X\(//\)$' \| \ | ||
22542 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | ||
22543 | echo X/"$0" | | ||
22544 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | ||
22545 | s//\1/ | ||
22546 | q | ||
22547 | } | ||
22548 | /^X\/\(\/\/\)$/{ | ||
22549 | s//\1/ | ||
22550 | q | ||
22551 | } | ||
22552 | /^X\/\(\/\).*/{ | ||
22553 | s//\1/ | ||
22554 | q | ||
22555 | } | ||
22556 | s/.*/./; q'` | ||
22557 | |||
22558 | # CDPATH. | ||
22559 | $as_unset CDPATH | ||
22560 | |||
22561 | |||
22562 | |||
22563 | as_lineno_1=$LINENO | ||
22564 | as_lineno_2=$LINENO | ||
22565 | test "x$as_lineno_1" != "x$as_lineno_2" && | ||
22566 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | ||
22567 | |||
22568 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | ||
22569 | # uniformly replaced by the line number. The first 'sed' inserts a | ||
22570 | # line-number line after each line using $LINENO; the second 'sed' | ||
22571 | # does the real work. The second script uses 'N' to pair each | ||
22572 | # line-number line with the line containing $LINENO, and appends | ||
22573 | # trailing '-' during substitution so that $LINENO is not a special | ||
22574 | # case at line end. | ||
22575 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | ||
22576 | # scripts with optimization help from Paolo Bonzini. Blame Lee | ||
22577 | # E. McMahon (1931-1989) for sed's syntax. :-) | ||
22578 | sed -n ' | ||
22579 | p | ||
22580 | /[$]LINENO/= | ||
22581 | ' <$as_myself | | ||
22582 | sed ' | ||
22583 | s/[$]LINENO.*/&-/ | ||
22584 | t lineno | ||
22585 | b | ||
22586 | :lineno | ||
22587 | N | ||
22588 | :loop | ||
22589 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | ||
22590 | t loop | ||
22591 | s/-\n.*// | ||
22592 | ' >$as_me.lineno && | ||
22593 | chmod +x "$as_me.lineno" || | ||
22594 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | ||
22595 | { (exit 1); exit 1; }; } | ||
22596 | |||
22597 | # Don't try to exec as it changes $[0], causing all sort of problems | ||
22598 | # (the dirname of $[0] is not the place where we might find the | ||
22599 | # original and so on. Autoconf is especially sensitive to this). | ||
22600 | . "./$as_me.lineno" | ||
22601 | # Exit status is that of the last command. | ||
22602 | exit | ||
22603 | } | ||
22604 | |||
22605 | |||
22606 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | ||
22607 | as_dirname=dirname | ||
22608 | else | ||
22609 | as_dirname=false | ||
22610 | fi | ||
22611 | |||
22612 | ECHO_C= ECHO_N= ECHO_T= | ||
22613 | case `echo -n x` in | ||
22614 | -n*) | ||
22615 | case `echo 'x\c'` in | ||
22616 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | ||
22617 | *) ECHO_C='\c';; | ||
22618 | esac;; | ||
22619 | *) | ||
22620 | ECHO_N='-n';; | ||
22621 | esac | ||
22622 | |||
22623 | if expr a : '\(a\)' >/dev/null 2>&1 && | ||
22624 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | ||
22625 | as_expr=expr | ||
22626 | else | ||
22627 | as_expr=false | ||
22628 | fi | ||
22629 | |||
22630 | rm -f conf$$ conf$$.exe conf$$.file | ||
22631 | if test -d conf$$.dir; then | ||
22632 | rm -f conf$$.dir/conf$$.file | ||
22633 | else | ||
22634 | rm -f conf$$.dir | ||
22635 | mkdir conf$$.dir | ||
22636 | fi | ||
22637 | echo >conf$$.file | ||
22638 | if ln -s conf$$.file conf$$ 2>/dev/null; then | ||
22639 | as_ln_s='ln -s' | ||
22640 | # ... but there are two gotchas: | ||
22641 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | ||
22642 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | ||
22643 | # In both cases, we have to default to `cp -p'. | ||
22644 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | ||
22645 | as_ln_s='cp -p' | ||
22646 | elif ln conf$$.file conf$$ 2>/dev/null; then | ||
22647 | as_ln_s=ln | ||
22648 | else | ||
22649 | as_ln_s='cp -p' | ||
22650 | fi | ||
22651 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | ||
22652 | rmdir conf$$.dir 2>/dev/null | ||
22653 | |||
22654 | if mkdir -p . 2>/dev/null; then | ||
22655 | as_mkdir_p=: | ||
22656 | else | ||
22657 | test -d ./-p && rmdir ./-p | ||
22658 | as_mkdir_p=false | ||
22659 | fi | ||
22660 | |||
22661 | if test -x / >/dev/null 2>&1; then | ||
22662 | as_test_x='test -x' | ||
22663 | else | ||
22664 | if ls -dL / >/dev/null 2>&1; then | ||
22665 | as_ls_L_option=L | ||
22666 | else | ||
22667 | as_ls_L_option= | ||
22668 | fi | ||
22669 | as_test_x=' | ||
22670 | eval sh -c '\'' | ||
22671 | if test -d "$1"; then | ||
22672 | test -d "$1/."; | ||
22673 | else | ||
22674 | case $1 in | ||
22675 | -*)set "./$1";; | ||
22676 | esac; | ||
22677 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | ||
22678 | ???[sx]*):;;*)false;;esac;fi | ||
22679 | '\'' sh | ||
22680 | ' | ||
22681 | fi | ||
22682 | as_executable_p=$as_test_x | ||
22683 | |||
22684 | # Sed expression to map a string onto a valid CPP name. | ||
22685 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | ||
22686 | |||
22687 | # Sed expression to map a string onto a valid variable name. | ||
22688 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | ||
22689 | |||
22690 | |||
22691 | exec 6>&1 | ||
22692 | |||
22693 | # Save the log message, to keep $[0] and so on meaningful, and to | ||
22694 | # report actual input values of CONFIG_FILES etc. instead of their | ||
22695 | # values after options handling. | ||
22696 | ac_log=" | ||
22697 | This file was extended by $as_me, which was | ||
22698 | generated by GNU Autoconf 2.61. Invocation command line was | ||
22699 | |||
22700 | CONFIG_FILES = $CONFIG_FILES | ||
22701 | CONFIG_HEADERS = $CONFIG_HEADERS | ||
22702 | CONFIG_LINKS = $CONFIG_LINKS | ||
22703 | CONFIG_COMMANDS = $CONFIG_COMMANDS | ||
22704 | $ $0 $@ | ||
22705 | |||
22706 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | ||
22707 | " | ||
22708 | |||
22709 | _ACEOF | ||
22710 | |||
22711 | cat >>$CONFIG_STATUS <<_ACEOF | ||
22712 | # Files that config.status was made for. | ||
22713 | config_files="$ac_config_files" | ||
22714 | config_headers="$ac_config_headers" | ||
22715 | config_commands="$ac_config_commands" | ||
22716 | |||
22717 | _ACEOF | ||
22718 | |||
22719 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
22720 | ac_cs_usage="\ | ||
22721 | \`$as_me' instantiates files from templates according to the | ||
22722 | current configuration. | ||
22723 | |||
22724 | Usage: $0 [OPTIONS] [FILE]... | ||
22725 | |||
22726 | -h, --help print this help, then exit | ||
22727 | -V, --version print version number and configuration settings, then exit | ||
22728 | -q, --quiet do not print progress messages | ||
22729 | -d, --debug don't remove temporary files | ||
22730 | --recheck update $as_me by reconfiguring in the same conditions | ||
22731 | --file=FILE[:TEMPLATE] | ||
22732 | instantiate the configuration file FILE | ||
22733 | --header=FILE[:TEMPLATE] | ||
22734 | instantiate the configuration header FILE | ||
22735 | |||
22736 | Configuration files: | ||
22737 | $config_files | ||
22738 | |||
22739 | Configuration headers: | ||
22740 | $config_headers | ||
22741 | |||
22742 | Configuration commands: | ||
22743 | $config_commands | ||
22744 | |||
22745 | Report bugs to <bug-autoconf@gnu.org>." | ||
22746 | |||
22747 | _ACEOF | ||
22748 | cat >>$CONFIG_STATUS <<_ACEOF | ||
22749 | ac_cs_version="\\ | ||
22750 | config.status | ||
22751 | configured by $0, generated by GNU Autoconf 2.61, | ||
22752 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | ||
22753 | |||
22754 | Copyright (C) 2006 Free Software Foundation, Inc. | ||
22755 | This config.status script is free software; the Free Software Foundation | ||
22756 | gives unlimited permission to copy, distribute and modify it." | ||
22757 | |||
22758 | ac_pwd='$ac_pwd' | ||
22759 | srcdir='$srcdir' | ||
22760 | INSTALL='$INSTALL' | ||
22761 | MKDIR_P='$MKDIR_P' | ||
22762 | _ACEOF | ||
22763 | |||
22764 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
22765 | # If no file are specified by the user, then we need to provide default | ||
22766 | # value. By we need to know if files were specified by the user. | ||
22767 | ac_need_defaults=: | ||
22768 | while test $# != 0 | ||
22769 | do | ||
22770 | case $1 in | ||
22771 | --*=*) | ||
22772 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | ||
22773 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | ||
22774 | ac_shift=: | ||
22775 | ;; | ||
22776 | *) | ||
22777 | ac_option=$1 | ||
22778 | ac_optarg=$2 | ||
22779 | ac_shift=shift | ||
22780 | ;; | ||
22781 | esac | ||
22782 | |||
22783 | case $ac_option in | ||
22784 | # Handling of the options. | ||
22785 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | ||
22786 | ac_cs_recheck=: ;; | ||
22787 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | ||
22788 | echo "$ac_cs_version"; exit ;; | ||
22789 | --debug | --debu | --deb | --de | --d | -d ) | ||
22790 | debug=: ;; | ||
22791 | --file | --fil | --fi | --f ) | ||
22792 | $ac_shift | ||
22793 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | ||
22794 | ac_need_defaults=false;; | ||
22795 | --header | --heade | --head | --hea ) | ||
22796 | $ac_shift | ||
22797 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | ||
22798 | ac_need_defaults=false;; | ||
22799 | --he | --h) | ||
22800 | # Conflict between --help and --header | ||
22801 | { echo "$as_me: error: ambiguous option: $1 | ||
22802 | Try \`$0 --help' for more information." >&2 | ||
22803 | { (exit 1); exit 1; }; };; | ||
22804 | --help | --hel | -h ) | ||
22805 | echo "$ac_cs_usage"; exit ;; | ||
22806 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | ||
22807 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | ||
22808 | ac_cs_silent=: ;; | ||
22809 | |||
22810 | # This is an error. | ||
22811 | -*) { echo "$as_me: error: unrecognized option: $1 | ||
22812 | Try \`$0 --help' for more information." >&2 | ||
22813 | { (exit 1); exit 1; }; } ;; | ||
22814 | |||
22815 | *) ac_config_targets="$ac_config_targets $1" | ||
22816 | ac_need_defaults=false ;; | ||
22817 | |||
22818 | esac | ||
22819 | shift | ||
22820 | done | ||
22821 | |||
22822 | ac_configure_extra_args= | ||
22823 | |||
22824 | if $ac_cs_silent; then | ||
22825 | exec 6>/dev/null | ||
22826 | ac_configure_extra_args="$ac_configure_extra_args --silent" | ||
22827 | fi | ||
22828 | |||
22829 | _ACEOF | ||
22830 | cat >>$CONFIG_STATUS <<_ACEOF | ||
22831 | if \$ac_cs_recheck; then | ||
22832 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | ||
22833 | CONFIG_SHELL=$SHELL | ||
22834 | export CONFIG_SHELL | ||
22835 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | ||
22836 | fi | ||
22837 | |||
22838 | _ACEOF | ||
22839 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
22840 | exec 5>>config.log | ||
22841 | { | ||
22842 | echo | ||
22843 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | ||
22844 | ## Running $as_me. ## | ||
22845 | _ASBOX | ||
22846 | echo "$ac_log" | ||
22847 | } >&5 | ||
22848 | |||
22849 | _ACEOF | ||
22850 | cat >>$CONFIG_STATUS <<_ACEOF | ||
22851 | # | ||
22852 | # INIT-COMMANDS | ||
22853 | # | ||
22854 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | ||
22855 | |||
22856 | _ACEOF | ||
22857 | |||
22858 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
22859 | |||
22860 | # Handling of arguments. | ||
22861 | for ac_config_target in $ac_config_targets | ||
22862 | do | ||
22863 | case $ac_config_target in | ||
22864 | "include/g3d/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/g3d/config.h" ;; | ||
22865 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | ||
22866 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | ||
22867 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; | ||
22868 | "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;; | ||
22869 | "doc/support_matrix/Makefile") CONFIG_FILES="$CONFIG_FILES doc/support_matrix/Makefile" ;; | ||
22870 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; | ||
22871 | "include/g3d/Makefile") CONFIG_FILES="$CONFIG_FILES include/g3d/Makefile" ;; | ||
22872 | "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; | ||
22873 | "plugins/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/Makefile" ;; | ||
22874 | "plugins/image/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/image/Makefile" ;; | ||
22875 | "plugins/import/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/Makefile" ;; | ||
22876 | "plugins/import/imp_3dm/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_3dm/Makefile" ;; | ||
22877 | "plugins/import/imp_3dmf/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_3dmf/Makefile" ;; | ||
22878 | "plugins/import/imp_3ds/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_3ds/Makefile" ;; | ||
22879 | "plugins/import/imp_ac3d/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_ac3d/Makefile" ;; | ||
22880 | "plugins/import/imp_acf/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_acf/Makefile" ;; | ||
22881 | "plugins/import/imp_ar/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_ar/Makefile" ;; | ||
22882 | "plugins/import/imp_ase/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_ase/Makefile" ;; | ||
22883 | "plugins/import/imp_blend/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_blend/Makefile" ;; | ||
22884 | "plugins/import/imp_c4d/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_c4d/Makefile" ;; | ||
22885 | "plugins/import/imp_cob/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_cob/Makefile" ;; | ||
22886 | "plugins/import/imp_dae/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_dae/Makefile" ;; | ||
22887 | "plugins/import/imp_dpm/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_dpm/Makefile" ;; | ||
22888 | "plugins/import/imp_dxf/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_dxf/Makefile" ;; | ||
22889 | "plugins/import/imp_flt/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_flt/Makefile" ;; | ||
22890 | "plugins/import/imp_glb/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_glb/Makefile" ;; | ||
22891 | "plugins/import/imp_heightfield/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_heightfield/Makefile" ;; | ||
22892 | "plugins/import/imp_iob/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_iob/Makefile" ;; | ||
22893 | "plugins/import/imp_joe/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_joe/Makefile" ;; | ||
22894 | "plugins/import/imp_kmz/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_kmz/Makefile" ;; | ||
22895 | "plugins/import/imp_ldraw/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_ldraw/Makefile" ;; | ||
22896 | "plugins/import/imp_leocad/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_leocad/Makefile" ;; | ||
22897 | "plugins/import/imp_lwo/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_lwo/Makefile" ;; | ||
22898 | "plugins/import/imp_max/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_max/Makefile" ;; | ||
22899 | "plugins/import/imp_maya/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_maya/Makefile" ;; | ||
22900 | "plugins/import/imp_md2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_md2/Makefile" ;; | ||
22901 | "plugins/import/imp_md3/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_md3/Makefile" ;; | ||
22902 | "plugins/import/imp_nff/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_nff/Makefile" ;; | ||
22903 | "plugins/import/imp_obj/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_obj/Makefile" ;; | ||
22904 | "plugins/import/imp_osm/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_osm/Makefile" ;; | ||
22905 | "plugins/import/imp_q3o/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_q3o/Makefile" ;; | ||
22906 | "plugins/import/imp_r4/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_r4/Makefile" ;; | ||
22907 | "plugins/import/imp_rbh/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_rbh/Makefile" ;; | ||
22908 | "plugins/import/imp_skp/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_skp/Makefile" ;; | ||
22909 | "plugins/import/imp_stl/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_stl/Makefile" ;; | ||
22910 | "plugins/import/imp_ta/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_ta/Makefile" ;; | ||
22911 | "plugins/import/imp_test/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_test/Makefile" ;; | ||
22912 | "plugins/import/imp_vrml/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_vrml/Makefile" ;; | ||
22913 | "plugins/import/imp_vrml2/Makefile") CONFIG_FILES="$CONFIG_FILES plugins/import/imp_vrml2/Makefile" ;; | ||
22914 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; | ||
22915 | "programs/Makefile") CONFIG_FILES="$CONFIG_FILES programs/Makefile" ;; | ||
22916 | "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; | ||
22917 | "libg3d.pc") CONFIG_FILES="$CONFIG_FILES libg3d.pc" ;; | ||
22918 | |||
22919 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | ||
22920 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | ||
22921 | { (exit 1); exit 1; }; };; | ||
22922 | esac | ||
22923 | done | ||
22924 | |||
22925 | |||
22926 | # If the user did not use the arguments to specify the items to instantiate, | ||
22927 | # then the envvar interface is used. Set only those that are not. | ||
22928 | # We use the long form for the default assignment because of an extremely | ||
22929 | # bizarre bug on SunOS 4.1.3. | ||
22930 | if $ac_need_defaults; then | ||
22931 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | ||
22932 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | ||
22933 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | ||
22934 | fi | ||
22935 | |||
22936 | # Have a temporary directory for convenience. Make it in the build tree | ||
22937 | # simply because there is no reason against having it here, and in addition, | ||
22938 | # creating and moving files from /tmp can sometimes cause problems. | ||
22939 | # Hook for its removal unless debugging. | ||
22940 | # Note that there is a small window in which the directory will not be cleaned: | ||
22941 | # after its creation but before its name has been assigned to `$tmp'. | ||
22942 | $debug || | ||
22943 | { | ||
22944 | tmp= | ||
22945 | trap 'exit_status=$? | ||
22946 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | ||
22947 | ' 0 | ||
22948 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | ||
22949 | } | ||
22950 | # Create a (secure) tmp directory for tmp files. | ||
22951 | |||
22952 | { | ||
22953 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | ||
22954 | test -n "$tmp" && test -d "$tmp" | ||
22955 | } || | ||
22956 | { | ||
22957 | tmp=./conf$$-$RANDOM | ||
22958 | (umask 077 && mkdir "$tmp") | ||
22959 | } || | ||
22960 | { | ||
22961 | echo "$me: cannot create a temporary directory in ." >&2 | ||
22962 | { (exit 1); exit 1; } | ||
22963 | } | ||
22964 | |||
22965 | # | ||
22966 | # Set up the sed scripts for CONFIG_FILES section. | ||
22967 | # | ||
22968 | |||
22969 | # No need to generate the scripts if there are no CONFIG_FILES. | ||
22970 | # This happens for instance when ./config.status config.h | ||
22971 | if test -n "$CONFIG_FILES"; then | ||
22972 | |||
22973 | _ACEOF | ||
22974 | |||
22975 | |||
22976 | |||
22977 | ac_delim='%!_!# ' | ||
22978 | for ac_last_try in false false false false false :; do | ||
22979 | cat >conf$$subs.sed <<_ACEOF | ||
22980 | SHELL!$SHELL$ac_delim | ||
22981 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | ||
22982 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | ||
22983 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | ||
22984 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | ||
22985 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | ||
22986 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | ||
22987 | exec_prefix!$exec_prefix$ac_delim | ||
22988 | prefix!$prefix$ac_delim | ||
22989 | program_transform_name!$program_transform_name$ac_delim | ||
22990 | bindir!$bindir$ac_delim | ||
22991 | sbindir!$sbindir$ac_delim | ||
22992 | libexecdir!$libexecdir$ac_delim | ||
22993 | datarootdir!$datarootdir$ac_delim | ||
22994 | datadir!$datadir$ac_delim | ||
22995 | sysconfdir!$sysconfdir$ac_delim | ||
22996 | sharedstatedir!$sharedstatedir$ac_delim | ||
22997 | localstatedir!$localstatedir$ac_delim | ||
22998 | includedir!$includedir$ac_delim | ||
22999 | oldincludedir!$oldincludedir$ac_delim | ||
23000 | docdir!$docdir$ac_delim | ||
23001 | infodir!$infodir$ac_delim | ||
23002 | htmldir!$htmldir$ac_delim | ||
23003 | dvidir!$dvidir$ac_delim | ||
23004 | pdfdir!$pdfdir$ac_delim | ||
23005 | psdir!$psdir$ac_delim | ||
23006 | libdir!$libdir$ac_delim | ||
23007 | localedir!$localedir$ac_delim | ||
23008 | mandir!$mandir$ac_delim | ||
23009 | DEFS!$DEFS$ac_delim | ||
23010 | ECHO_C!$ECHO_C$ac_delim | ||
23011 | ECHO_N!$ECHO_N$ac_delim | ||
23012 | ECHO_T!$ECHO_T$ac_delim | ||
23013 | LIBS!$LIBS$ac_delim | ||
23014 | build_alias!$build_alias$ac_delim | ||
23015 | host_alias!$host_alias$ac_delim | ||
23016 | target_alias!$target_alias$ac_delim | ||
23017 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | ||
23018 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | ||
23019 | INSTALL_DATA!$INSTALL_DATA$ac_delim | ||
23020 | am__isrc!$am__isrc$ac_delim | ||
23021 | CYGPATH_W!$CYGPATH_W$ac_delim | ||
23022 | PACKAGE!$PACKAGE$ac_delim | ||
23023 | VERSION!$VERSION$ac_delim | ||
23024 | ACLOCAL!$ACLOCAL$ac_delim | ||
23025 | AUTOCONF!$AUTOCONF$ac_delim | ||
23026 | AUTOMAKE!$AUTOMAKE$ac_delim | ||
23027 | AUTOHEADER!$AUTOHEADER$ac_delim | ||
23028 | MAKEINFO!$MAKEINFO$ac_delim | ||
23029 | install_sh!$install_sh$ac_delim | ||
23030 | STRIP!$STRIP$ac_delim | ||
23031 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | ||
23032 | mkdir_p!$mkdir_p$ac_delim | ||
23033 | AWK!$AWK$ac_delim | ||
23034 | SET_MAKE!$SET_MAKE$ac_delim | ||
23035 | am__leading_dot!$am__leading_dot$ac_delim | ||
23036 | AMTAR!$AMTAR$ac_delim | ||
23037 | am__tar!$am__tar$ac_delim | ||
23038 | am__untar!$am__untar$ac_delim | ||
23039 | LTVERSION!$LTVERSION$ac_delim | ||
23040 | CC!$CC$ac_delim | ||
23041 | CFLAGS!$CFLAGS$ac_delim | ||
23042 | LDFLAGS!$LDFLAGS$ac_delim | ||
23043 | CPPFLAGS!$CPPFLAGS$ac_delim | ||
23044 | ac_ct_CC!$ac_ct_CC$ac_delim | ||
23045 | EXEEXT!$EXEEXT$ac_delim | ||
23046 | OBJEXT!$OBJEXT$ac_delim | ||
23047 | DEPDIR!$DEPDIR$ac_delim | ||
23048 | am__include!$am__include$ac_delim | ||
23049 | am__quote!$am__quote$ac_delim | ||
23050 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim | ||
23051 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim | ||
23052 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | ||
23053 | CCDEPMODE!$CCDEPMODE$ac_delim | ||
23054 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | ||
23055 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | ||
23056 | LEX!$LEX$ac_delim | ||
23057 | LEX_OUTPUT_ROOT!$LEX_OUTPUT_ROOT$ac_delim | ||
23058 | LEXLIB!$LEXLIB$ac_delim | ||
23059 | CPP!$CPP$ac_delim | ||
23060 | GREP!$GREP$ac_delim | ||
23061 | EGREP!$EGREP$ac_delim | ||
23062 | OS_WIN32_TRUE!$OS_WIN32_TRUE$ac_delim | ||
23063 | OS_WIN32_FALSE!$OS_WIN32_FALSE$ac_delim | ||
23064 | build!$build$ac_delim | ||
23065 | build_cpu!$build_cpu$ac_delim | ||
23066 | build_vendor!$build_vendor$ac_delim | ||
23067 | build_os!$build_os$ac_delim | ||
23068 | host!$host$ac_delim | ||
23069 | host_cpu!$host_cpu$ac_delim | ||
23070 | host_vendor!$host_vendor$ac_delim | ||
23071 | host_os!$host_os$ac_delim | ||
23072 | LN_S!$LN_S$ac_delim | ||
23073 | ECHO!$ECHO$ac_delim | ||
23074 | AR!$AR$ac_delim | ||
23075 | RANLIB!$RANLIB$ac_delim | ||
23076 | DLLTOOL!$DLLTOOL$ac_delim | ||
23077 | _ACEOF | ||
23078 | |||
23079 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | ||
23080 | break | ||
23081 | elif $ac_last_try; then | ||
23082 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
23083 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
23084 | { (exit 1); exit 1; }; } | ||
23085 | else | ||
23086 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
23087 | fi | ||
23088 | done | ||
23089 | |||
23090 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
23091 | if test -n "$ac_eof"; then | ||
23092 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
23093 | ac_eof=`expr $ac_eof + 1` | ||
23094 | fi | ||
23095 | |||
23096 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23097 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | ||
23098 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
23099 | _ACEOF | ||
23100 | sed ' | ||
23101 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
23102 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
23103 | :n | ||
23104 | t n | ||
23105 | s/'"$ac_delim"'$/,g/; t | ||
23106 | s/$/\\/; p | ||
23107 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
23108 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
23109 | rm -f conf$$subs.sed | ||
23110 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23111 | CEOF$ac_eof | ||
23112 | _ACEOF | ||
23113 | |||
23114 | |||
23115 | ac_delim='%!_!# ' | ||
23116 | for ac_last_try in false false false false false :; do | ||
23117 | cat >conf$$subs.sed <<_ACEOF | ||
23118 | AS!$AS$ac_delim | ||
23119 | OBJDUMP!$OBJDUMP$ac_delim | ||
23120 | CXX!$CXX$ac_delim | ||
23121 | CXXFLAGS!$CXXFLAGS$ac_delim | ||
23122 | ac_ct_CXX!$ac_ct_CXX$ac_delim | ||
23123 | CXXDEPMODE!$CXXDEPMODE$ac_delim | ||
23124 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim | ||
23125 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim | ||
23126 | CXXCPP!$CXXCPP$ac_delim | ||
23127 | F77!$F77$ac_delim | ||
23128 | FFLAGS!$FFLAGS$ac_delim | ||
23129 | ac_ct_F77!$ac_ct_F77$ac_delim | ||
23130 | LIBTOOL!$LIBTOOL$ac_delim | ||
23131 | HTML_DIR!$HTML_DIR$ac_delim | ||
23132 | PKG_CONFIG!$PKG_CONFIG$ac_delim | ||
23133 | GTKDOC_CHECK!$GTKDOC_CHECK$ac_delim | ||
23134 | ENABLE_GTK_DOC_TRUE!$ENABLE_GTK_DOC_TRUE$ac_delim | ||
23135 | ENABLE_GTK_DOC_FALSE!$ENABLE_GTK_DOC_FALSE$ac_delim | ||
23136 | GTK_DOC_USE_LIBTOOL_TRUE!$GTK_DOC_USE_LIBTOOL_TRUE$ac_delim | ||
23137 | GTK_DOC_USE_LIBTOOL_FALSE!$GTK_DOC_USE_LIBTOOL_FALSE$ac_delim | ||
23138 | GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim | ||
23139 | GLIB_LIBS!$GLIB_LIBS$ac_delim | ||
23140 | GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim | ||
23141 | GOBJECT_QUERY!$GOBJECT_QUERY$ac_delim | ||
23142 | GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim | ||
23143 | GTK_CFLAGS!$GTK_CFLAGS$ac_delim | ||
23144 | GTK_LIBS!$GTK_LIBS$ac_delim | ||
23145 | GDKPIXBUF_CFLAGS!$GDKPIXBUF_CFLAGS$ac_delim | ||
23146 | GDKPIXBUF_LIBS!$GDKPIXBUF_LIBS$ac_delim | ||
23147 | HAVE_GDKPIXBUF_TRUE!$HAVE_GDKPIXBUF_TRUE$ac_delim | ||
23148 | HAVE_GDKPIXBUF_FALSE!$HAVE_GDKPIXBUF_FALSE$ac_delim | ||
23149 | XML2_CONFIG!$XML2_CONFIG$ac_delim | ||
23150 | XML_CPPFLAGS!$XML_CPPFLAGS$ac_delim | ||
23151 | XML_LIBS!$XML_LIBS$ac_delim | ||
23152 | LIBXML2_CFLAGS!$LIBXML2_CFLAGS$ac_delim | ||
23153 | LIBXML2_LIBS!$LIBXML2_LIBS$ac_delim | ||
23154 | HAVE_LIBXML2_TRUE!$HAVE_LIBXML2_TRUE$ac_delim | ||
23155 | HAVE_LIBXML2_FALSE!$HAVE_LIBXML2_FALSE$ac_delim | ||
23156 | LIBGSF_CFLAGS!$LIBGSF_CFLAGS$ac_delim | ||
23157 | LIBGSF_LIBS!$LIBGSF_LIBS$ac_delim | ||
23158 | HAVE_LIBGSF_TRUE!$HAVE_LIBGSF_TRUE$ac_delim | ||
23159 | HAVE_LIBGSF_FALSE!$HAVE_LIBGSF_FALSE$ac_delim | ||
23160 | MAGIC_LIBS!$MAGIC_LIBS$ac_delim | ||
23161 | MATH_LIBS!$MATH_LIBS$ac_delim | ||
23162 | Z_CFLAGS!$Z_CFLAGS$ac_delim | ||
23163 | Z_LIBS!$Z_LIBS$ac_delim | ||
23164 | HAVE_ZLIB_TRUE!$HAVE_ZLIB_TRUE$ac_delim | ||
23165 | HAVE_ZLIB_FALSE!$HAVE_ZLIB_FALSE$ac_delim | ||
23166 | DEBUG!$DEBUG$ac_delim | ||
23167 | EXPERIMENTAL_TRUE!$EXPERIMENTAL_TRUE$ac_delim | ||
23168 | EXPERIMENTAL_FALSE!$EXPERIMENTAL_FALSE$ac_delim | ||
23169 | HAVE_CXX_TRUE!$HAVE_CXX_TRUE$ac_delim | ||
23170 | HAVE_CXX_FALSE!$HAVE_CXX_FALSE$ac_delim | ||
23171 | DBG_CFLAGS!$DBG_CFLAGS$ac_delim | ||
23172 | PLUGINS_LDFLAGS!$PLUGINS_LDFLAGS$ac_delim | ||
23173 | LIBOBJS!$LIBOBJS$ac_delim | ||
23174 | LTLIBOBJS!$LTLIBOBJS$ac_delim | ||
23175 | _ACEOF | ||
23176 | |||
23177 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 57; then | ||
23178 | break | ||
23179 | elif $ac_last_try; then | ||
23180 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | ||
23181 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | ||
23182 | { (exit 1); exit 1; }; } | ||
23183 | else | ||
23184 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | ||
23185 | fi | ||
23186 | done | ||
23187 | |||
23188 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | ||
23189 | if test -n "$ac_eof"; then | ||
23190 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | ||
23191 | ac_eof=`expr $ac_eof + 1` | ||
23192 | fi | ||
23193 | |||
23194 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23195 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | ||
23196 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | ||
23197 | _ACEOF | ||
23198 | sed ' | ||
23199 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | ||
23200 | s/^/s,@/; s/!/@,|#_!!_#|/ | ||
23201 | :n | ||
23202 | t n | ||
23203 | s/'"$ac_delim"'$/,g/; t | ||
23204 | s/$/\\/; p | ||
23205 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | ||
23206 | ' >>$CONFIG_STATUS <conf$$subs.sed | ||
23207 | rm -f conf$$subs.sed | ||
23208 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23209 | :end | ||
23210 | s/|#_!!_#|//g | ||
23211 | CEOF$ac_eof | ||
23212 | _ACEOF | ||
23213 | |||
23214 | |||
23215 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | ||
23216 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | ||
23217 | # trailing colons and then remove the whole line if VPATH becomes empty | ||
23218 | # (actually we leave an empty line to preserve line numbers). | ||
23219 | if test "x$srcdir" = x.; then | ||
23220 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | ||
23221 | s/:*\$(srcdir):*/:/ | ||
23222 | s/:*\${srcdir}:*/:/ | ||
23223 | s/:*@srcdir@:*/:/ | ||
23224 | s/^\([^=]*=[ ]*\):*/\1/ | ||
23225 | s/:*$// | ||
23226 | s/^[^=]*=[ ]*$// | ||
23227 | }' | ||
23228 | fi | ||
23229 | |||
23230 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
23231 | fi # test -n "$CONFIG_FILES" | ||
23232 | |||
23233 | |||
23234 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS | ||
23235 | do | ||
23236 | case $ac_tag in | ||
23237 | :[FHLC]) ac_mode=$ac_tag; continue;; | ||
23238 | esac | ||
23239 | case $ac_mode$ac_tag in | ||
23240 | :[FHL]*:*);; | ||
23241 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | ||
23242 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | ||
23243 | { (exit 1); exit 1; }; };; | ||
23244 | :[FH]-) ac_tag=-:-;; | ||
23245 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | ||
23246 | esac | ||
23247 | ac_save_IFS=$IFS | ||
23248 | IFS=: | ||
23249 | set x $ac_tag | ||
23250 | IFS=$ac_save_IFS | ||
23251 | shift | ||
23252 | ac_file=$1 | ||
23253 | shift | ||
23254 | |||
23255 | case $ac_mode in | ||
23256 | :L) ac_source=$1;; | ||
23257 | :[FH]) | ||
23258 | ac_file_inputs= | ||
23259 | for ac_f | ||
23260 | do | ||
23261 | case $ac_f in | ||
23262 | -) ac_f="$tmp/stdin";; | ||
23263 | *) # Look for the file first in the build tree, then in the source tree | ||
23264 | # (if the path is not absolute). The absolute path cannot be DOS-style, | ||
23265 | # because $ac_f cannot contain `:'. | ||
23266 | test -f "$ac_f" || | ||
23267 | case $ac_f in | ||
23268 | [\\/$]*) false;; | ||
23269 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | ||
23270 | esac || | ||
23271 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | ||
23272 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | ||
23273 | { (exit 1); exit 1; }; };; | ||
23274 | esac | ||
23275 | ac_file_inputs="$ac_file_inputs $ac_f" | ||
23276 | done | ||
23277 | |||
23278 | # Let's still pretend it is `configure' which instantiates (i.e., don't | ||
23279 | # use $as_me), people would be surprised to read: | ||
23280 | # /* config.h. Generated by config.status. */ | ||
23281 | configure_input="Generated from "`IFS=: | ||
23282 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | ||
23283 | if test x"$ac_file" != x-; then | ||
23284 | configure_input="$ac_file. $configure_input" | ||
23285 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | ||
23286 | echo "$as_me: creating $ac_file" >&6;} | ||
23287 | fi | ||
23288 | |||
23289 | case $ac_tag in | ||
23290 | *:-:* | *:-) cat >"$tmp/stdin";; | ||
23291 | esac | ||
23292 | ;; | ||
23293 | esac | ||
23294 | |||
23295 | ac_dir=`$as_dirname -- "$ac_file" || | ||
23296 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
23297 | X"$ac_file" : 'X\(//\)[^/]' \| \ | ||
23298 | X"$ac_file" : 'X\(//\)$' \| \ | ||
23299 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | ||
23300 | echo X"$ac_file" | | ||
23301 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
23302 | s//\1/ | ||
23303 | q | ||
23304 | } | ||
23305 | /^X\(\/\/\)[^/].*/{ | ||
23306 | s//\1/ | ||
23307 | q | ||
23308 | } | ||
23309 | /^X\(\/\/\)$/{ | ||
23310 | s//\1/ | ||
23311 | q | ||
23312 | } | ||
23313 | /^X\(\/\).*/{ | ||
23314 | s//\1/ | ||
23315 | q | ||
23316 | } | ||
23317 | s/.*/./; q'` | ||
23318 | { as_dir="$ac_dir" | ||
23319 | case $as_dir in #( | ||
23320 | -*) as_dir=./$as_dir;; | ||
23321 | esac | ||
23322 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
23323 | as_dirs= | ||
23324 | while :; do | ||
23325 | case $as_dir in #( | ||
23326 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
23327 | *) as_qdir=$as_dir;; | ||
23328 | esac | ||
23329 | as_dirs="'$as_qdir' $as_dirs" | ||
23330 | as_dir=`$as_dirname -- "$as_dir" || | ||
23331 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
23332 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
23333 | X"$as_dir" : 'X\(//\)$' \| \ | ||
23334 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
23335 | echo X"$as_dir" | | ||
23336 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
23337 | s//\1/ | ||
23338 | q | ||
23339 | } | ||
23340 | /^X\(\/\/\)[^/].*/{ | ||
23341 | s//\1/ | ||
23342 | q | ||
23343 | } | ||
23344 | /^X\(\/\/\)$/{ | ||
23345 | s//\1/ | ||
23346 | q | ||
23347 | } | ||
23348 | /^X\(\/\).*/{ | ||
23349 | s//\1/ | ||
23350 | q | ||
23351 | } | ||
23352 | s/.*/./; q'` | ||
23353 | test -d "$as_dir" && break | ||
23354 | done | ||
23355 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
23356 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
23357 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
23358 | { (exit 1); exit 1; }; }; } | ||
23359 | ac_builddir=. | ||
23360 | |||
23361 | case "$ac_dir" in | ||
23362 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
23363 | *) | ||
23364 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | ||
23365 | # A ".." for each directory in $ac_dir_suffix. | ||
23366 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | ||
23367 | case $ac_top_builddir_sub in | ||
23368 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | ||
23369 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | ||
23370 | esac ;; | ||
23371 | esac | ||
23372 | ac_abs_top_builddir=$ac_pwd | ||
23373 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | ||
23374 | # for backward compatibility: | ||
23375 | ac_top_builddir=$ac_top_build_prefix | ||
23376 | |||
23377 | case $srcdir in | ||
23378 | .) # We are building in place. | ||
23379 | ac_srcdir=. | ||
23380 | ac_top_srcdir=$ac_top_builddir_sub | ||
23381 | ac_abs_top_srcdir=$ac_pwd ;; | ||
23382 | [\\/]* | ?:[\\/]* ) # Absolute name. | ||
23383 | ac_srcdir=$srcdir$ac_dir_suffix; | ||
23384 | ac_top_srcdir=$srcdir | ||
23385 | ac_abs_top_srcdir=$srcdir ;; | ||
23386 | *) # Relative name. | ||
23387 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | ||
23388 | ac_top_srcdir=$ac_top_build_prefix$srcdir | ||
23389 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | ||
23390 | esac | ||
23391 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | ||
23392 | |||
23393 | |||
23394 | case $ac_mode in | ||
23395 | :F) | ||
23396 | # | ||
23397 | # CONFIG_FILE | ||
23398 | # | ||
23399 | |||
23400 | case $INSTALL in | ||
23401 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | ||
23402 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | ||
23403 | esac | ||
23404 | ac_MKDIR_P=$MKDIR_P | ||
23405 | case $MKDIR_P in | ||
23406 | [\\/$]* | ?:[\\/]* ) ;; | ||
23407 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | ||
23408 | esac | ||
23409 | _ACEOF | ||
23410 | |||
23411 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
23412 | # If the template does not know about datarootdir, expand it. | ||
23413 | # FIXME: This hack should be removed a few years after 2.60. | ||
23414 | ac_datarootdir_hack=; ac_datarootdir_seen= | ||
23415 | |||
23416 | case `sed -n '/datarootdir/ { | ||
23417 | p | ||
23418 | q | ||
23419 | } | ||
23420 | /@datadir@/p | ||
23421 | /@docdir@/p | ||
23422 | /@infodir@/p | ||
23423 | /@localedir@/p | ||
23424 | /@mandir@/p | ||
23425 | ' $ac_file_inputs` in | ||
23426 | *datarootdir*) ac_datarootdir_seen=yes;; | ||
23427 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | ||
23428 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | ||
23429 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | ||
23430 | _ACEOF | ||
23431 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23432 | ac_datarootdir_hack=' | ||
23433 | s&@datadir@&$datadir&g | ||
23434 | s&@docdir@&$docdir&g | ||
23435 | s&@infodir@&$infodir&g | ||
23436 | s&@localedir@&$localedir&g | ||
23437 | s&@mandir@&$mandir&g | ||
23438 | s&\\\${datarootdir}&$datarootdir&g' ;; | ||
23439 | esac | ||
23440 | _ACEOF | ||
23441 | |||
23442 | # Neutralize VPATH when `$srcdir' = `.'. | ||
23443 | # Shell code in configure.ac might set extrasub. | ||
23444 | # FIXME: do we really want to maintain this feature? | ||
23445 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23446 | sed "$ac_vpsub | ||
23447 | $extrasub | ||
23448 | _ACEOF | ||
23449 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
23450 | :t | ||
23451 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | ||
23452 | s&@configure_input@&$configure_input&;t t | ||
23453 | s&@top_builddir@&$ac_top_builddir_sub&;t t | ||
23454 | s&@srcdir@&$ac_srcdir&;t t | ||
23455 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | ||
23456 | s&@top_srcdir@&$ac_top_srcdir&;t t | ||
23457 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | ||
23458 | s&@builddir@&$ac_builddir&;t t | ||
23459 | s&@abs_builddir@&$ac_abs_builddir&;t t | ||
23460 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | ||
23461 | s&@INSTALL@&$ac_INSTALL&;t t | ||
23462 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | ||
23463 | $ac_datarootdir_hack | ||
23464 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | ||
23465 | |||
23466 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | ||
23467 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | ||
23468 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | ||
23469 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
23470 | which seems to be undefined. Please make sure it is defined." >&5 | ||
23471 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | ||
23472 | which seems to be undefined. Please make sure it is defined." >&2;} | ||
23473 | |||
23474 | rm -f "$tmp/stdin" | ||
23475 | case $ac_file in | ||
23476 | -) cat "$tmp/out"; rm -f "$tmp/out";; | ||
23477 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | ||
23478 | esac | ||
23479 | ;; | ||
23480 | :H) | ||
23481 | # | ||
23482 | # CONFIG_HEADER | ||
23483 | # | ||
23484 | _ACEOF | ||
23485 | |||
23486 | # Transform confdefs.h into a sed script `conftest.defines', that | ||
23487 | # substitutes the proper values into config.h.in to produce config.h. | ||
23488 | rm -f conftest.defines conftest.tail | ||
23489 | # First, append a space to every undef/define line, to ease matching. | ||
23490 | echo 's/$/ /' >conftest.defines | ||
23491 | # Then, protect against being on the right side of a sed subst, or in | ||
23492 | # an unquoted here document, in config.status. If some macros were | ||
23493 | # called several times there might be several #defines for the same | ||
23494 | # symbol, which is useless. But do not sort them, since the last | ||
23495 | # AC_DEFINE must be honored. | ||
23496 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | ||
23497 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where | ||
23498 | # NAME is the cpp macro being defined, VALUE is the value it is being given. | ||
23499 | # PARAMS is the parameter list in the macro definition--in most cases, it's | ||
23500 | # just an empty string. | ||
23501 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' | ||
23502 | ac_dB='\\)[ (].*,\\1define\\2' | ||
23503 | ac_dC=' ' | ||
23504 | ac_dD=' ,' | ||
23505 | |||
23506 | uniq confdefs.h | | ||
23507 | sed -n ' | ||
23508 | t rset | ||
23509 | :rset | ||
23510 | s/^[ ]*#[ ]*define[ ][ ]*// | ||
23511 | t ok | ||
23512 | d | ||
23513 | :ok | ||
23514 | s/[\\&,]/\\&/g | ||
23515 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p | ||
23516 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p | ||
23517 | ' >>conftest.defines | ||
23518 | |||
23519 | # Remove the space that was appended to ease matching. | ||
23520 | # Then replace #undef with comments. This is necessary, for | ||
23521 | # example, in the case of _POSIX_SOURCE, which is predefined and required | ||
23522 | # on some systems where configure will not decide to define it. | ||
23523 | # (The regexp can be short, since the line contains either #define or #undef.) | ||
23524 | echo 's/ $// | ||
23525 | s,^[ #]*u.*,/* & */,' >>conftest.defines | ||
23526 | |||
23527 | # Break up conftest.defines: | ||
23528 | ac_max_sed_lines=50 | ||
23529 | |||
23530 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" | ||
23531 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" | ||
23532 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" | ||
23533 | # et cetera. | ||
23534 | ac_in='$ac_file_inputs' | ||
23535 | ac_out='"$tmp/out1"' | ||
23536 | ac_nxt='"$tmp/out2"' | ||
23537 | |||
23538 | while : | ||
23539 | do | ||
23540 | # Write a here document: | ||
23541 | cat >>$CONFIG_STATUS <<_ACEOF | ||
23542 | # First, check the format of the line: | ||
23543 | cat >"\$tmp/defines.sed" <<\\CEOF | ||
23544 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def | ||
23545 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def | ||
23546 | b | ||
23547 | :def | ||
23548 | _ACEOF | ||
23549 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS | ||
23550 | echo 'CEOF | ||
23551 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS | ||
23552 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in | ||
23553 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail | ||
23554 | grep . conftest.tail >/dev/null || break | ||
23555 | rm -f conftest.defines | ||
23556 | mv conftest.tail conftest.defines | ||
23557 | done | ||
23558 | rm -f conftest.defines conftest.tail | ||
23559 | |||
23560 | echo "ac_result=$ac_in" >>$CONFIG_STATUS | ||
23561 | cat >>$CONFIG_STATUS <<\_ACEOF | ||
23562 | if test x"$ac_file" != x-; then | ||
23563 | echo "/* $configure_input */" >"$tmp/config.h" | ||
23564 | cat "$ac_result" >>"$tmp/config.h" | ||
23565 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then | ||
23566 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | ||
23567 | echo "$as_me: $ac_file is unchanged" >&6;} | ||
23568 | else | ||
23569 | rm -f $ac_file | ||
23570 | mv "$tmp/config.h" $ac_file | ||
23571 | fi | ||
23572 | else | ||
23573 | echo "/* $configure_input */" | ||
23574 | cat "$ac_result" | ||
23575 | fi | ||
23576 | rm -f "$tmp/out12" | ||
23577 | # Compute $ac_file's index in $config_headers. | ||
23578 | _am_arg=$ac_file | ||
23579 | _am_stamp_count=1 | ||
23580 | for _am_header in $config_headers :; do | ||
23581 | case $_am_header in | ||
23582 | $_am_arg | $_am_arg:* ) | ||
23583 | break ;; | ||
23584 | * ) | ||
23585 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | ||
23586 | esac | ||
23587 | done | ||
23588 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | ||
23589 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
23590 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | ||
23591 | X"$_am_arg" : 'X\(//\)$' \| \ | ||
23592 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | ||
23593 | echo X"$_am_arg" | | ||
23594 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
23595 | s//\1/ | ||
23596 | q | ||
23597 | } | ||
23598 | /^X\(\/\/\)[^/].*/{ | ||
23599 | s//\1/ | ||
23600 | q | ||
23601 | } | ||
23602 | /^X\(\/\/\)$/{ | ||
23603 | s//\1/ | ||
23604 | q | ||
23605 | } | ||
23606 | /^X\(\/\).*/{ | ||
23607 | s//\1/ | ||
23608 | q | ||
23609 | } | ||
23610 | s/.*/./; q'`/stamp-h$_am_stamp_count | ||
23611 | ;; | ||
23612 | |||
23613 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 | ||
23614 | echo "$as_me: executing $ac_file commands" >&6;} | ||
23615 | ;; | ||
23616 | esac | ||
23617 | |||
23618 | |||
23619 | case $ac_file$ac_mode in | ||
23620 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | ||
23621 | # Strip MF so we end up with the name of the file. | ||
23622 | mf=`echo "$mf" | sed -e 's/:.*$//'` | ||
23623 | # Check whether this is an Automake generated Makefile or not. | ||
23624 | # We used to match only the files named `Makefile.in', but | ||
23625 | # some people rename them; so instead we look at the file content. | ||
23626 | # Grep'ing the first line is not enough: some people post-process | ||
23627 | # each Makefile.in and add a new line on top of each file to say so. | ||
23628 | # Grep'ing the whole file is not good either: AIX grep has a line | ||
23629 | # limit of 2048, but all sed's we know have understand at least 4000. | ||
23630 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | ||
23631 | dirpart=`$as_dirname -- "$mf" || | ||
23632 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
23633 | X"$mf" : 'X\(//\)[^/]' \| \ | ||
23634 | X"$mf" : 'X\(//\)$' \| \ | ||
23635 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | ||
23636 | echo X"$mf" | | ||
23637 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
23638 | s//\1/ | ||
23639 | q | ||
23640 | } | ||
23641 | /^X\(\/\/\)[^/].*/{ | ||
23642 | s//\1/ | ||
23643 | q | ||
23644 | } | ||
23645 | /^X\(\/\/\)$/{ | ||
23646 | s//\1/ | ||
23647 | q | ||
23648 | } | ||
23649 | /^X\(\/\).*/{ | ||
23650 | s//\1/ | ||
23651 | q | ||
23652 | } | ||
23653 | s/.*/./; q'` | ||
23654 | else | ||
23655 | continue | ||
23656 | fi | ||
23657 | # Extract the definition of DEPDIR, am__include, and am__quote | ||
23658 | # from the Makefile without running `make'. | ||
23659 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | ||
23660 | test -z "$DEPDIR" && continue | ||
23661 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | ||
23662 | test -z "am__include" && continue | ||
23663 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | ||
23664 | # When using ansi2knr, U may be empty or an underscore; expand it | ||
23665 | U=`sed -n 's/^U = //p' < "$mf"` | ||
23666 | # Find all dependency output files, they are included files with | ||
23667 | # $(DEPDIR) in their names. We invoke sed twice because it is the | ||
23668 | # simplest approach to changing $(DEPDIR) to its actual value in the | ||
23669 | # expansion. | ||
23670 | for file in `sed -n " | ||
23671 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | ||
23672 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | ||
23673 | # Make sure the directory exists. | ||
23674 | test -f "$dirpart/$file" && continue | ||
23675 | fdir=`$as_dirname -- "$file" || | ||
23676 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
23677 | X"$file" : 'X\(//\)[^/]' \| \ | ||
23678 | X"$file" : 'X\(//\)$' \| \ | ||
23679 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | ||
23680 | echo X"$file" | | ||
23681 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
23682 | s//\1/ | ||
23683 | q | ||
23684 | } | ||
23685 | /^X\(\/\/\)[^/].*/{ | ||
23686 | s//\1/ | ||
23687 | q | ||
23688 | } | ||
23689 | /^X\(\/\/\)$/{ | ||
23690 | s//\1/ | ||
23691 | q | ||
23692 | } | ||
23693 | /^X\(\/\).*/{ | ||
23694 | s//\1/ | ||
23695 | q | ||
23696 | } | ||
23697 | s/.*/./; q'` | ||
23698 | { as_dir=$dirpart/$fdir | ||
23699 | case $as_dir in #( | ||
23700 | -*) as_dir=./$as_dir;; | ||
23701 | esac | ||
23702 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | ||
23703 | as_dirs= | ||
23704 | while :; do | ||
23705 | case $as_dir in #( | ||
23706 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | ||
23707 | *) as_qdir=$as_dir;; | ||
23708 | esac | ||
23709 | as_dirs="'$as_qdir' $as_dirs" | ||
23710 | as_dir=`$as_dirname -- "$as_dir" || | ||
23711 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | ||
23712 | X"$as_dir" : 'X\(//\)[^/]' \| \ | ||
23713 | X"$as_dir" : 'X\(//\)$' \| \ | ||
23714 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | ||
23715 | echo X"$as_dir" | | ||
23716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | ||
23717 | s//\1/ | ||
23718 | q | ||
23719 | } | ||
23720 | /^X\(\/\/\)[^/].*/{ | ||
23721 | s//\1/ | ||
23722 | q | ||
23723 | } | ||
23724 | /^X\(\/\/\)$/{ | ||
23725 | s//\1/ | ||
23726 | q | ||
23727 | } | ||
23728 | /^X\(\/\).*/{ | ||
23729 | s//\1/ | ||
23730 | q | ||
23731 | } | ||
23732 | s/.*/./; q'` | ||
23733 | test -d "$as_dir" && break | ||
23734 | done | ||
23735 | test -z "$as_dirs" || eval "mkdir $as_dirs" | ||
23736 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | ||
23737 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | ||
23738 | { (exit 1); exit 1; }; }; } | ||
23739 | # echo "creating $dirpart/$file" | ||
23740 | echo '# dummy' > "$dirpart/$file" | ||
23741 | done | ||
23742 | done | ||
23743 | ;; | ||
23744 | |||
23745 | esac | ||
23746 | done # for ac_tag | ||
23747 | |||
23748 | |||
23749 | { (exit 0); exit 0; } | ||
23750 | _ACEOF | ||
23751 | chmod +x $CONFIG_STATUS | ||
23752 | ac_clean_files=$ac_clean_files_save | ||
23753 | |||
23754 | |||
23755 | # configure is writing to config.log, and then calls config.status. | ||
23756 | # config.status does its own redirection, appending to config.log. | ||
23757 | # Unfortunately, on DOS this fails, as config.log is still kept open | ||
23758 | # by configure, so config.status won't be able to write to it; its | ||
23759 | # output is simply discarded. So we exec the FD to /dev/null, | ||
23760 | # effectively closing config.log, so it can be properly (re)opened and | ||
23761 | # appended to by config.status. When coming back to configure, we | ||
23762 | # need to make the FD available again. | ||
23763 | if test "$no_create" != yes; then | ||
23764 | ac_cs_success=: | ||
23765 | ac_config_status_args= | ||
23766 | test "$silent" = yes && | ||
23767 | ac_config_status_args="$ac_config_status_args --quiet" | ||
23768 | exec 5>/dev/null | ||
23769 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | ||
23770 | exec 5>>config.log | ||
23771 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | ||
23772 | # would make configure fail if this is the last instruction. | ||
23773 | $ac_cs_success || { (exit 1); exit 1; } | ||
23774 | fi | ||
23775 | |||
23776 | |||