]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | #! /bin/sh |
2 | # From configure.ac Revision: 1.25 . | |
3 | # Guess values for system-dependent variables and create Makefiles. | |
4 | # Generated by GNU Autoconf 2.61 for gc 7.0. | |
5 | # | |
6 | # Report bugs to <Hans.Boehm@hp.com>. | |
7 | # | |
8 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, | |
9 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. | |
10 | # This configure script is free software; the Free Software Foundation | |
11 | # gives unlimited permission to copy, distribute and modify it. | |
12 | ## --------------------- ## | |
13 | ## M4sh Initialization. ## | |
14 | ## --------------------- ## | |
15 | ||
16 | # Be more Bourne compatible | |
17 | DUALCASE=1; export DUALCASE # for MKS sh | |
18 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
19 | emulate sh | |
20 | NULLCMD=: | |
21 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
22 | # is contrary to our usage. Disable this feature. | |
23 | alias -g '${1+"$@"}'='"$@"' | |
24 | setopt NO_GLOB_SUBST | |
25 | else | |
26 | case `(set -o) 2>/dev/null` in | |
27 | *posix*) set -o posix ;; | |
28 | esac | |
29 | ||
30 | fi | |
31 | ||
32 | ||
33 | ||
34 | ||
35 | # PATH needs CR | |
36 | # Avoid depending upon Character Ranges. | |
37 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
38 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
39 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
40 | as_cr_digits='0123456789' | |
41 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
42 | ||
43 | # The user is always right. | |
44 | if test "${PATH_SEPARATOR+set}" != set; then | |
45 | echo "#! /bin/sh" >conf$$.sh | |
46 | echo "exit 0" >>conf$$.sh | |
47 | chmod +x conf$$.sh | |
48 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
49 | PATH_SEPARATOR=';' | |
50 | else | |
51 | PATH_SEPARATOR=: | |
52 | fi | |
53 | rm -f conf$$.sh | |
54 | fi | |
55 | ||
56 | # Support unset when possible. | |
57 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
58 | as_unset=unset | |
59 | else | |
60 | as_unset=false | |
61 | fi | |
62 | ||
63 | ||
64 | # IFS | |
65 | # We need space, tab and new line, in precisely that order. Quoting is | |
66 | # there to prevent editors from complaining about space-tab. | |
67 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
68 | # splitting by setting IFS to empty value.) | |
69 | as_nl=' | |
70 | ' | |
71 | IFS=" "" $as_nl" | |
72 | ||
73 | # Find who we are. Look in the path if we contain no directory separator. | |
74 | case $0 in | |
75 | *[\\/]* ) as_myself=$0 ;; | |
76 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
77 | for as_dir in $PATH | |
78 | do | |
79 | IFS=$as_save_IFS | |
80 | test -z "$as_dir" && as_dir=. | |
81 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
82 | done | |
83 | IFS=$as_save_IFS | |
84 | ||
85 | ;; | |
86 | esac | |
87 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
88 | # in which case we are not to be found in the path. | |
89 | if test "x$as_myself" = x; then | |
90 | as_myself=$0 | |
91 | fi | |
92 | if test ! -f "$as_myself"; then | |
93 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
94 | { (exit 1); exit 1; } | |
95 | fi | |
96 | ||
97 | # Work around bugs in pre-3.0 UWIN ksh. | |
98 | for as_var in ENV MAIL MAILPATH | |
99 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
100 | done | |
101 | PS1='$ ' | |
102 | PS2='> ' | |
103 | PS4='+ ' | |
104 | ||
105 | # NLS nuisances. | |
106 | for as_var in \ | |
107 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
108 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
109 | LC_TELEPHONE LC_TIME | |
110 | do | |
111 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
112 | eval $as_var=C; export $as_var | |
113 | else | |
114 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
115 | fi | |
116 | done | |
117 | ||
118 | # Required to use basename. | |
119 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
120 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
121 | as_expr=expr | |
122 | else | |
123 | as_expr=false | |
124 | fi | |
125 | ||
126 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
127 | as_basename=basename | |
128 | else | |
129 | as_basename=false | |
130 | fi | |
131 | ||
132 | ||
133 | # Name of the executable. | |
134 | as_me=`$as_basename -- "$0" || | |
135 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
136 | X"$0" : 'X\(//\)$' \| \ | |
137 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
138 | echo X/"$0" | | |
139 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
140 | s//\1/ | |
141 | q | |
142 | } | |
143 | /^X\/\(\/\/\)$/{ | |
144 | s//\1/ | |
145 | q | |
146 | } | |
147 | /^X\/\(\/\).*/{ | |
148 | s//\1/ | |
149 | q | |
150 | } | |
151 | s/.*/./; q'` | |
152 | ||
153 | # CDPATH. | |
154 | $as_unset CDPATH | |
155 | ||
156 | ||
157 | if test "x$CONFIG_SHELL" = x; then | |
158 | if (eval ":") 2>/dev/null; then | |
159 | as_have_required=yes | |
160 | else | |
161 | as_have_required=no | |
162 | fi | |
163 | ||
164 | if test $as_have_required = yes && (eval ": | |
165 | (as_func_return () { | |
166 | (exit \$1) | |
167 | } | |
168 | as_func_success () { | |
169 | as_func_return 0 | |
170 | } | |
171 | as_func_failure () { | |
172 | as_func_return 1 | |
173 | } | |
174 | as_func_ret_success () { | |
175 | return 0 | |
176 | } | |
177 | as_func_ret_failure () { | |
178 | return 1 | |
179 | } | |
180 | ||
181 | exitcode=0 | |
182 | if as_func_success; then | |
183 | : | |
184 | else | |
185 | exitcode=1 | |
186 | echo as_func_success failed. | |
187 | fi | |
188 | ||
189 | if as_func_failure; then | |
190 | exitcode=1 | |
191 | echo as_func_failure succeeded. | |
192 | fi | |
193 | ||
194 | if as_func_ret_success; then | |
195 | : | |
196 | else | |
197 | exitcode=1 | |
198 | echo as_func_ret_success failed. | |
199 | fi | |
200 | ||
201 | if as_func_ret_failure; then | |
202 | exitcode=1 | |
203 | echo as_func_ret_failure succeeded. | |
204 | fi | |
205 | ||
206 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
207 | : | |
208 | else | |
209 | exitcode=1 | |
210 | echo positional parameters were not saved. | |
211 | fi | |
212 | ||
213 | test \$exitcode = 0) || { (exit 1); exit 1; } | |
214 | ||
215 | ( | |
216 | as_lineno_1=\$LINENO | |
217 | as_lineno_2=\$LINENO | |
218 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && | |
219 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } | |
220 | ") 2> /dev/null; then | |
221 | : | |
222 | else | |
223 | as_candidate_shells= | |
224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
225 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
226 | do | |
227 | IFS=$as_save_IFS | |
228 | test -z "$as_dir" && as_dir=. | |
229 | case $as_dir in | |
230 | /*) | |
231 | for as_base in sh bash ksh sh5; do | |
232 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" | |
233 | done;; | |
234 | esac | |
235 | done | |
236 | IFS=$as_save_IFS | |
237 | ||
238 | ||
239 | for as_shell in $as_candidate_shells $SHELL; do | |
240 | # Try only shells that exist, to save several forks. | |
241 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && | |
242 | { ("$as_shell") 2> /dev/null <<\_ASEOF | |
243 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
244 | emulate sh | |
245 | NULLCMD=: | |
246 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
247 | # is contrary to our usage. Disable this feature. | |
248 | alias -g '${1+"$@"}'='"$@"' | |
249 | setopt NO_GLOB_SUBST | |
250 | else | |
251 | case `(set -o) 2>/dev/null` in | |
252 | *posix*) set -o posix ;; | |
253 | esac | |
254 | ||
255 | fi | |
256 | ||
257 | ||
258 | : | |
259 | _ASEOF | |
260 | }; then | |
261 | CONFIG_SHELL=$as_shell | |
262 | as_have_required=yes | |
263 | if { "$as_shell" 2> /dev/null <<\_ASEOF | |
264 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
265 | emulate sh | |
266 | NULLCMD=: | |
267 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
268 | # is contrary to our usage. Disable this feature. | |
269 | alias -g '${1+"$@"}'='"$@"' | |
270 | setopt NO_GLOB_SUBST | |
271 | else | |
272 | case `(set -o) 2>/dev/null` in | |
273 | *posix*) set -o posix ;; | |
274 | esac | |
275 | ||
276 | fi | |
277 | ||
278 | ||
279 | : | |
280 | (as_func_return () { | |
281 | (exit $1) | |
282 | } | |
283 | as_func_success () { | |
284 | as_func_return 0 | |
285 | } | |
286 | as_func_failure () { | |
287 | as_func_return 1 | |
288 | } | |
289 | as_func_ret_success () { | |
290 | return 0 | |
291 | } | |
292 | as_func_ret_failure () { | |
293 | return 1 | |
294 | } | |
295 | ||
296 | exitcode=0 | |
297 | if as_func_success; then | |
298 | : | |
299 | else | |
300 | exitcode=1 | |
301 | echo as_func_success failed. | |
302 | fi | |
303 | ||
304 | if as_func_failure; then | |
305 | exitcode=1 | |
306 | echo as_func_failure succeeded. | |
307 | fi | |
308 | ||
309 | if as_func_ret_success; then | |
310 | : | |
311 | else | |
312 | exitcode=1 | |
313 | echo as_func_ret_success failed. | |
314 | fi | |
315 | ||
316 | if as_func_ret_failure; then | |
317 | exitcode=1 | |
318 | echo as_func_ret_failure succeeded. | |
319 | fi | |
320 | ||
321 | if ( set x; as_func_ret_success y && test x = "$1" ); then | |
322 | : | |
323 | else | |
324 | exitcode=1 | |
325 | echo positional parameters were not saved. | |
326 | fi | |
327 | ||
328 | test $exitcode = 0) || { (exit 1); exit 1; } | |
329 | ||
330 | ( | |
331 | as_lineno_1=$LINENO | |
332 | as_lineno_2=$LINENO | |
333 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
334 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } | |
335 | ||
336 | _ASEOF | |
337 | }; then | |
338 | break | |
339 | fi | |
340 | ||
341 | fi | |
342 | ||
343 | done | |
344 | ||
345 | if test "x$CONFIG_SHELL" != x; then | |
346 | for as_var in BASH_ENV ENV | |
347 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
348 | done | |
349 | export CONFIG_SHELL | |
350 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} | |
351 | fi | |
352 | ||
353 | ||
354 | if test $as_have_required = no; then | |
355 | echo This script requires a shell more modern than all the | |
356 | echo shells that I found on your system. Please install a | |
357 | echo modern shell, or manually run the script under such a | |
358 | echo shell if you do have one. | |
359 | { (exit 1); exit 1; } | |
360 | fi | |
361 | ||
362 | ||
363 | fi | |
364 | ||
365 | fi | |
366 | ||
367 | ||
368 | ||
369 | (eval "as_func_return () { | |
370 | (exit \$1) | |
371 | } | |
372 | as_func_success () { | |
373 | as_func_return 0 | |
374 | } | |
375 | as_func_failure () { | |
376 | as_func_return 1 | |
377 | } | |
378 | as_func_ret_success () { | |
379 | return 0 | |
380 | } | |
381 | as_func_ret_failure () { | |
382 | return 1 | |
383 | } | |
384 | ||
385 | exitcode=0 | |
386 | if as_func_success; then | |
387 | : | |
388 | else | |
389 | exitcode=1 | |
390 | echo as_func_success failed. | |
391 | fi | |
392 | ||
393 | if as_func_failure; then | |
394 | exitcode=1 | |
395 | echo as_func_failure succeeded. | |
396 | fi | |
397 | ||
398 | if as_func_ret_success; then | |
399 | : | |
400 | else | |
401 | exitcode=1 | |
402 | echo as_func_ret_success failed. | |
403 | fi | |
404 | ||
405 | if as_func_ret_failure; then | |
406 | exitcode=1 | |
407 | echo as_func_ret_failure succeeded. | |
408 | fi | |
409 | ||
410 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then | |
411 | : | |
412 | else | |
413 | exitcode=1 | |
414 | echo positional parameters were not saved. | |
415 | fi | |
416 | ||
417 | test \$exitcode = 0") || { | |
418 | echo No shell found that supports shell functions. | |
419 | echo Please tell autoconf@gnu.org about your system, | |
420 | echo including any error possibly output before this | |
421 | echo message | |
422 | } | |
423 | ||
424 | ||
425 | ||
426 | as_lineno_1=$LINENO | |
427 | as_lineno_2=$LINENO | |
428 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
429 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
430 | ||
431 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
432 | # uniformly replaced by the line number. The first 'sed' inserts a | |
433 | # line-number line after each line using $LINENO; the second 'sed' | |
434 | # does the real work. The second script uses 'N' to pair each | |
435 | # line-number line with the line containing $LINENO, and appends | |
436 | # trailing '-' during substitution so that $LINENO is not a special | |
437 | # case at line end. | |
438 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
439 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
440 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
441 | sed -n ' | |
442 | p | |
443 | /[$]LINENO/= | |
444 | ' <$as_myself | | |
445 | sed ' | |
446 | s/[$]LINENO.*/&-/ | |
447 | t lineno | |
448 | b | |
449 | :lineno | |
450 | N | |
451 | :loop | |
452 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
453 | t loop | |
454 | s/-\n.*// | |
455 | ' >$as_me.lineno && | |
456 | chmod +x "$as_me.lineno" || | |
457 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
458 | { (exit 1); exit 1; }; } | |
459 | ||
460 | # Don't try to exec as it changes $[0], causing all sort of problems | |
461 | # (the dirname of $[0] is not the place where we might find the | |
462 | # original and so on. Autoconf is especially sensitive to this). | |
463 | . "./$as_me.lineno" | |
464 | # Exit status is that of the last command. | |
465 | exit | |
466 | } | |
467 | ||
468 | ||
469 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
470 | as_dirname=dirname | |
471 | else | |
472 | as_dirname=false | |
473 | fi | |
474 | ||
475 | ECHO_C= ECHO_N= ECHO_T= | |
476 | case `echo -n x` in | |
477 | -n*) | |
478 | case `echo 'x\c'` in | |
479 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
480 | *) ECHO_C='\c';; | |
481 | esac;; | |
482 | *) | |
483 | ECHO_N='-n';; | |
484 | esac | |
485 | ||
486 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
487 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
488 | as_expr=expr | |
489 | else | |
490 | as_expr=false | |
491 | fi | |
492 | ||
493 | rm -f conf$$ conf$$.exe conf$$.file | |
494 | if test -d conf$$.dir; then | |
495 | rm -f conf$$.dir/conf$$.file | |
496 | else | |
497 | rm -f conf$$.dir | |
498 | mkdir conf$$.dir | |
499 | fi | |
500 | echo >conf$$.file | |
501 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
502 | as_ln_s='ln -s' | |
503 | # ... but there are two gotchas: | |
504 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
505 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
506 | # In both cases, we have to default to `cp -p'. | |
507 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
508 | as_ln_s='cp -p' | |
509 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
510 | as_ln_s=ln | |
511 | else | |
512 | as_ln_s='cp -p' | |
513 | fi | |
514 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
515 | rmdir conf$$.dir 2>/dev/null | |
516 | ||
517 | if mkdir -p . 2>/dev/null; then | |
518 | as_mkdir_p=: | |
519 | else | |
520 | test -d ./-p && rmdir ./-p | |
521 | as_mkdir_p=false | |
522 | fi | |
523 | ||
524 | if test -x / >/dev/null 2>&1; then | |
525 | as_test_x='test -x' | |
526 | else | |
527 | if ls -dL / >/dev/null 2>&1; then | |
528 | as_ls_L_option=L | |
529 | else | |
530 | as_ls_L_option= | |
531 | fi | |
532 | as_test_x=' | |
533 | eval sh -c '\'' | |
534 | if test -d "$1"; then | |
535 | test -d "$1/."; | |
536 | else | |
537 | case $1 in | |
538 | -*)set "./$1";; | |
539 | esac; | |
540 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
541 | ???[sx]*):;;*)false;;esac;fi | |
542 | '\'' sh | |
543 | ' | |
544 | fi | |
545 | as_executable_p=$as_test_x | |
546 | ||
547 | # Sed expression to map a string onto a valid CPP name. | |
548 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
549 | ||
550 | # Sed expression to map a string onto a valid variable name. | |
551 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
552 | ||
553 | ||
554 | ||
555 | ||
556 | # Check that we are running under the correct shell. | |
557 | SHELL=${CONFIG_SHELL-/bin/sh} | |
558 | ||
559 | case X$ECHO in | |
560 | X*--fallback-echo) | |
561 | # Remove one level of quotation (which was required for Make). | |
562 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` | |
563 | ;; | |
564 | esac | |
565 | ||
566 | echo=${ECHO-echo} | |
567 | if test "X$1" = X--no-reexec; then | |
568 | # Discard the --no-reexec flag, and continue. | |
569 | shift | |
570 | elif test "X$1" = X--fallback-echo; then | |
571 | # Avoid inline document here, it may be left over | |
572 | : | |
573 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then | |
574 | # Yippee, $echo works! | |
575 | : | |
576 | else | |
577 | # Restart under the correct shell. | |
578 | exec $SHELL "$0" --no-reexec ${1+"$@"} | |
579 | fi | |
580 | ||
581 | if test "X$1" = X--fallback-echo; then | |
582 | # used as fallback echo | |
583 | shift | |
584 | cat <<EOF | |
585 | $* | |
586 | EOF | |
587 | exit 0 | |
588 | fi | |
589 | ||
590 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
591 | # if CDPATH is set. | |
592 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
593 | ||
594 | if test -z "$ECHO"; then | |
595 | if test "X${echo_test_string+set}" != Xset; then | |
596 | # find a string as large as possible, as long as the shell can cope with it | |
597 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do | |
598 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... | |
599 | if (echo_test_string=`eval $cmd`) 2>/dev/null && | |
600 | echo_test_string=`eval $cmd` && | |
601 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null | |
602 | then | |
603 | break | |
604 | fi | |
605 | done | |
606 | fi | |
607 | ||
608 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
609 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
610 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
611 | : | |
612 | else | |
613 | # The Solaris, AIX, and Digital Unix default echo programs unquote | |
614 | # backslashes. This makes it impossible to quote backslashes using | |
615 | # echo "$something" | sed 's/\\/\\\\/g' | |
616 | # | |
617 | # So, first we look for a working echo in the user's PATH. | |
618 | ||
619 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
620 | for dir in $PATH /usr/ucb; do | |
621 | IFS="$lt_save_ifs" | |
622 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && | |
623 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && | |
624 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && | |
625 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
626 | echo="$dir/echo" | |
627 | break | |
628 | fi | |
629 | done | |
630 | IFS="$lt_save_ifs" | |
631 | ||
632 | if test "X$echo" = Xecho; then | |
633 | # We didn't find a better echo, so look for alternatives. | |
634 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && | |
635 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && | |
636 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
637 | # This shell has a builtin print -r that does the trick. | |
638 | echo='print -r' | |
639 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && | |
640 | test "X$CONFIG_SHELL" != X/bin/ksh; then | |
641 | # If we have ksh, try running configure again with it. | |
642 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
643 | export ORIGINAL_CONFIG_SHELL | |
644 | CONFIG_SHELL=/bin/ksh | |
645 | export CONFIG_SHELL | |
646 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} | |
647 | else | |
648 | # Try using printf. | |
649 | echo='printf %s\n' | |
650 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && | |
651 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && | |
652 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
653 | # Cool, printf works | |
654 | : | |
655 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
656 | test "X$echo_testing_string" = 'X\t' && | |
657 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
658 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
659 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL | |
660 | export CONFIG_SHELL | |
661 | SHELL="$CONFIG_SHELL" | |
662 | export SHELL | |
663 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
664 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && | |
665 | test "X$echo_testing_string" = 'X\t' && | |
666 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && | |
667 | test "X$echo_testing_string" = "X$echo_test_string"; then | |
668 | echo="$CONFIG_SHELL $0 --fallback-echo" | |
669 | else | |
670 | # maybe with a smaller string... | |
671 | prev=: | |
672 | ||
673 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do | |
674 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null | |
675 | then | |
676 | break | |
677 | fi | |
678 | prev="$cmd" | |
679 | done | |
680 | ||
681 | if test "$prev" != 'sed 50q "$0"'; then | |
682 | echo_test_string=`eval $prev` | |
683 | export echo_test_string | |
684 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} | |
685 | else | |
686 | # Oops. We lost completely, so just stick with echo. | |
687 | echo=echo | |
688 | fi | |
689 | fi | |
690 | fi | |
691 | fi | |
692 | fi | |
693 | fi | |
694 | ||
695 | # Copy echo and quote the copy suitably for passing to libtool from | |
696 | # the Makefile, instead of quoting the original, which is used later. | |
697 | ECHO=$echo | |
698 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then | |
699 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" | |
700 | fi | |
701 | ||
702 | ||
703 | ||
704 | ||
705 | tagnames=${tagnames+${tagnames},}CXX | |
706 | ||
707 | tagnames=${tagnames+${tagnames},}F77 | |
708 | ||
709 | exec 7<&0 </dev/null 6>&1 | |
710 | ||
711 | # Name of the host. | |
712 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
713 | # so uname gets run too. | |
714 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
715 | ||
716 | # | |
717 | # Initializations. | |
718 | # | |
719 | ac_default_prefix=/usr/local | |
720 | ac_clean_files= | |
721 | ac_config_libobj_dir=. | |
722 | LIBOBJS= | |
723 | cross_compiling=no | |
724 | subdirs= | |
725 | MFLAGS= | |
726 | MAKEFLAGS= | |
727 | SHELL=${CONFIG_SHELL-/bin/sh} | |
728 | ||
729 | # Identity of this package. | |
730 | PACKAGE_NAME='gc' | |
731 | PACKAGE_TARNAME='gc' | |
732 | PACKAGE_VERSION='7.0' | |
733 | PACKAGE_STRING='gc 7.0' | |
734 | PACKAGE_BUGREPORT='Hans.Boehm@hp.com' | |
735 | ||
736 | ac_unique_file="gcj_mlc.c" | |
737 | # Factoring default headers for most tests. | |
738 | ac_includes_default="\ | |
739 | #include <stdio.h> | |
740 | #ifdef HAVE_SYS_TYPES_H | |
741 | # include <sys/types.h> | |
742 | #endif | |
743 | #ifdef HAVE_SYS_STAT_H | |
744 | # include <sys/stat.h> | |
745 | #endif | |
746 | #ifdef STDC_HEADERS | |
747 | # include <stdlib.h> | |
748 | # include <stddef.h> | |
749 | #else | |
750 | # ifdef HAVE_STDLIB_H | |
751 | # include <stdlib.h> | |
752 | # endif | |
753 | #endif | |
754 | #ifdef HAVE_STRING_H | |
755 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H | |
756 | # include <memory.h> | |
757 | # endif | |
758 | # include <string.h> | |
759 | #endif | |
760 | #ifdef HAVE_STRINGS_H | |
761 | # include <strings.h> | |
762 | #endif | |
763 | #ifdef HAVE_INTTYPES_H | |
764 | # include <inttypes.h> | |
765 | #endif | |
766 | #ifdef HAVE_STDINT_H | |
767 | # include <stdint.h> | |
768 | #endif | |
769 | #ifdef HAVE_UNISTD_H | |
770 | # include <unistd.h> | |
771 | #endif" | |
772 | ||
773 | ac_subst_vars='SHELL | |
774 | PATH_SEPARATOR | |
775 | PACKAGE_NAME | |
776 | PACKAGE_TARNAME | |
777 | PACKAGE_VERSION | |
778 | PACKAGE_STRING | |
779 | PACKAGE_BUGREPORT | |
780 | exec_prefix | |
781 | prefix | |
782 | program_transform_name | |
783 | bindir | |
784 | sbindir | |
785 | libexecdir | |
786 | datarootdir | |
787 | datadir | |
788 | sysconfdir | |
789 | sharedstatedir | |
790 | localstatedir | |
791 | includedir | |
792 | oldincludedir | |
793 | docdir | |
794 | infodir | |
795 | htmldir | |
796 | dvidir | |
797 | pdfdir | |
798 | psdir | |
799 | libdir | |
800 | localedir | |
801 | mandir | |
802 | DEFS | |
803 | ECHO_C | |
804 | ECHO_N | |
805 | ECHO_T | |
806 | LIBS | |
807 | build_alias | |
808 | host_alias | |
809 | target_alias | |
810 | build | |
811 | build_cpu | |
812 | build_vendor | |
813 | build_os | |
814 | host | |
815 | host_cpu | |
816 | host_vendor | |
817 | host_os | |
818 | target | |
819 | target_cpu | |
820 | target_vendor | |
821 | target_os | |
822 | INSTALL_PROGRAM | |
823 | INSTALL_SCRIPT | |
824 | INSTALL_DATA | |
825 | CYGPATH_W | |
826 | PACKAGE | |
827 | VERSION | |
828 | ACLOCAL | |
829 | AUTOCONF | |
830 | AUTOMAKE | |
831 | AUTOHEADER | |
832 | MAKEINFO | |
833 | install_sh | |
834 | STRIP | |
835 | INSTALL_STRIP_PROGRAM | |
836 | mkdir_p | |
837 | AWK | |
838 | SET_MAKE | |
839 | am__leading_dot | |
840 | AMTAR | |
841 | am__tar | |
842 | am__untar | |
843 | MAINTAINER_MODE_TRUE | |
844 | MAINTAINER_MODE_FALSE | |
845 | MAINT | |
846 | GC_VERSION | |
847 | CC | |
848 | CFLAGS | |
849 | LDFLAGS | |
850 | CPPFLAGS | |
851 | ac_ct_CC | |
852 | EXEEXT | |
853 | OBJEXT | |
854 | DEPDIR | |
855 | am__include | |
856 | am__quote | |
857 | AMDEP_TRUE | |
858 | AMDEP_FALSE | |
859 | AMDEPBACKSLASH | |
860 | CCDEPMODE | |
861 | am__fastdepCC_TRUE | |
862 | am__fastdepCC_FALSE | |
863 | CXX | |
864 | CXXFLAGS | |
865 | ac_ct_CXX | |
866 | CXXDEPMODE | |
867 | am__fastdepCXX_TRUE | |
868 | am__fastdepCXX_FALSE | |
869 | CCAS | |
870 | CCASFLAGS | |
871 | AR | |
872 | RANLIB | |
873 | GC_CFLAGS | |
874 | THREADDLLIBS | |
875 | THREADS_TRUE | |
876 | THREADS_FALSE | |
877 | PTHREADS_TRUE | |
878 | PTHREADS_FALSE | |
879 | DARWIN_THREADS_TRUE | |
880 | DARWIN_THREADS_FALSE | |
881 | WIN32_THREADS_TRUE | |
882 | WIN32_THREADS_FALSE | |
883 | COMPILER_XLC_TRUE | |
884 | COMPILER_XLC_FALSE | |
885 | extra_ldflags_libgc | |
886 | EXTRA_TEST_LIBS | |
887 | target_all | |
888 | CPLUSPLUS_TRUE | |
889 | CPLUSPLUS_FALSE | |
890 | INCLUDES | |
891 | CXXINCLUDES | |
892 | addobjs | |
893 | addlibs | |
894 | GREP | |
895 | EGREP | |
896 | LN_S | |
897 | ECHO | |
898 | CPP | |
899 | CXXCPP | |
900 | F77 | |
901 | FFLAGS | |
902 | ac_ct_F77 | |
903 | LIBTOOL | |
904 | ENABLE_GCJ_SUPPORT_TRUE | |
905 | ENABLE_GCJ_SUPPORT_FALSE | |
906 | UNWINDLIBS | |
907 | USE_LIBDIR_TRUE | |
908 | USE_LIBDIR_FALSE | |
909 | subdirs | |
910 | USE_INTERNAL_LIBATOMIC_OPS_TRUE | |
911 | USE_INTERNAL_LIBATOMIC_OPS_FALSE | |
912 | NEED_ATOMIC_OPS_ASM_TRUE | |
913 | NEED_ATOMIC_OPS_ASM_FALSE | |
914 | atomic_ops_libs | |
915 | LIBOBJS | |
916 | LTLIBOBJS' | |
917 | ac_subst_files='' | |
918 | ac_precious_vars='build_alias | |
919 | host_alias | |
920 | target_alias | |
921 | CC | |
922 | CFLAGS | |
923 | LDFLAGS | |
924 | LIBS | |
925 | CPPFLAGS | |
926 | CXX | |
927 | CXXFLAGS | |
928 | CCC | |
929 | CCAS | |
930 | CCASFLAGS | |
931 | CPP | |
932 | CXXCPP | |
933 | F77 | |
934 | FFLAGS' | |
935 | ac_subdirs_all='libatomic_ops' | |
936 | ||
937 | # Initialize some variables set by options. | |
938 | ac_init_help= | |
939 | ac_init_version=false | |
940 | # The variables have the same names as the options, with | |
941 | # dashes changed to underlines. | |
942 | cache_file=/dev/null | |
943 | exec_prefix=NONE | |
944 | no_create= | |
945 | no_recursion= | |
946 | prefix=NONE | |
947 | program_prefix=NONE | |
948 | program_suffix=NONE | |
949 | program_transform_name=s,x,x, | |
950 | silent= | |
951 | site= | |
952 | srcdir= | |
953 | verbose= | |
954 | x_includes=NONE | |
955 | x_libraries=NONE | |
956 | ||
957 | # Installation directory options. | |
958 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
959 | # and all the variables that are supposed to be based on exec_prefix | |
960 | # by default will actually change. | |
961 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
962 | # (The list follows the same order as the GNU Coding Standards.) | |
963 | bindir='${exec_prefix}/bin' | |
964 | sbindir='${exec_prefix}/sbin' | |
965 | libexecdir='${exec_prefix}/libexec' | |
966 | datarootdir='${prefix}/share' | |
967 | datadir='${datarootdir}' | |
968 | sysconfdir='${prefix}/etc' | |
969 | sharedstatedir='${prefix}/com' | |
970 | localstatedir='${prefix}/var' | |
971 | includedir='${prefix}/include' | |
972 | oldincludedir='/usr/include' | |
973 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
974 | infodir='${datarootdir}/info' | |
975 | htmldir='${docdir}' | |
976 | dvidir='${docdir}' | |
977 | pdfdir='${docdir}' | |
978 | psdir='${docdir}' | |
979 | libdir='${exec_prefix}/lib' | |
980 | localedir='${datarootdir}/locale' | |
981 | mandir='${datarootdir}/man' | |
982 | ||
983 | ac_prev= | |
984 | ac_dashdash= | |
985 | for ac_option | |
986 | do | |
987 | # If the previous option needs an argument, assign it. | |
988 | if test -n "$ac_prev"; then | |
989 | eval $ac_prev=\$ac_option | |
990 | ac_prev= | |
991 | continue | |
992 | fi | |
993 | ||
994 | case $ac_option in | |
995 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
996 | *) ac_optarg=yes ;; | |
997 | esac | |
998 | ||
999 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
1000 | ||
1001 | case $ac_dashdash$ac_option in | |
1002 | --) | |
1003 | ac_dashdash=yes ;; | |
1004 | ||
1005 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
1006 | ac_prev=bindir ;; | |
1007 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
1008 | bindir=$ac_optarg ;; | |
1009 | ||
1010 | -build | --build | --buil | --bui | --bu) | |
1011 | ac_prev=build_alias ;; | |
1012 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
1013 | build_alias=$ac_optarg ;; | |
1014 | ||
1015 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
1016 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
1017 | ac_prev=cache_file ;; | |
1018 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
1019 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
1020 | cache_file=$ac_optarg ;; | |
1021 | ||
1022 | --config-cache | -C) | |
1023 | cache_file=config.cache ;; | |
1024 | ||
1025 | -datadir | --datadir | --datadi | --datad) | |
1026 | ac_prev=datadir ;; | |
1027 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
1028 | datadir=$ac_optarg ;; | |
1029 | ||
1030 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
1031 | | --dataroo | --dataro | --datar) | |
1032 | ac_prev=datarootdir ;; | |
1033 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
1034 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
1035 | datarootdir=$ac_optarg ;; | |
1036 | ||
1037 | -disable-* | --disable-*) | |
1038 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
1039 | # Reject names that are not valid shell variable names. | |
1040 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1041 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
1042 | { (exit 1); exit 1; }; } | |
1043 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
1044 | eval enable_$ac_feature=no ;; | |
1045 | ||
1046 | -docdir | --docdir | --docdi | --doc | --do) | |
1047 | ac_prev=docdir ;; | |
1048 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
1049 | docdir=$ac_optarg ;; | |
1050 | ||
1051 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
1052 | ac_prev=dvidir ;; | |
1053 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
1054 | dvidir=$ac_optarg ;; | |
1055 | ||
1056 | -enable-* | --enable-*) | |
1057 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
1058 | # Reject names that are not valid shell variable names. | |
1059 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1060 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
1061 | { (exit 1); exit 1; }; } | |
1062 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` | |
1063 | eval enable_$ac_feature=\$ac_optarg ;; | |
1064 | ||
1065 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1066 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1067 | | --exec | --exe | --ex) | |
1068 | ac_prev=exec_prefix ;; | |
1069 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1070 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1071 | | --exec=* | --exe=* | --ex=*) | |
1072 | exec_prefix=$ac_optarg ;; | |
1073 | ||
1074 | -gas | --gas | --ga | --g) | |
1075 | # Obsolete; use --with-gas. | |
1076 | with_gas=yes ;; | |
1077 | ||
1078 | -help | --help | --hel | --he | -h) | |
1079 | ac_init_help=long ;; | |
1080 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1081 | ac_init_help=recursive ;; | |
1082 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1083 | ac_init_help=short ;; | |
1084 | ||
1085 | -host | --host | --hos | --ho) | |
1086 | ac_prev=host_alias ;; | |
1087 | -host=* | --host=* | --hos=* | --ho=*) | |
1088 | host_alias=$ac_optarg ;; | |
1089 | ||
1090 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1091 | ac_prev=htmldir ;; | |
1092 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1093 | | --ht=*) | |
1094 | htmldir=$ac_optarg ;; | |
1095 | ||
1096 | -includedir | --includedir | --includedi | --included | --include \ | |
1097 | | --includ | --inclu | --incl | --inc) | |
1098 | ac_prev=includedir ;; | |
1099 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1100 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1101 | includedir=$ac_optarg ;; | |
1102 | ||
1103 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1104 | ac_prev=infodir ;; | |
1105 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1106 | infodir=$ac_optarg ;; | |
1107 | ||
1108 | -libdir | --libdir | --libdi | --libd) | |
1109 | ac_prev=libdir ;; | |
1110 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1111 | libdir=$ac_optarg ;; | |
1112 | ||
1113 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1114 | | --libexe | --libex | --libe) | |
1115 | ac_prev=libexecdir ;; | |
1116 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1117 | | --libexe=* | --libex=* | --libe=*) | |
1118 | libexecdir=$ac_optarg ;; | |
1119 | ||
1120 | -localedir | --localedir | --localedi | --localed | --locale) | |
1121 | ac_prev=localedir ;; | |
1122 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1123 | localedir=$ac_optarg ;; | |
1124 | ||
1125 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1126 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1127 | ac_prev=localstatedir ;; | |
1128 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1129 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1130 | localstatedir=$ac_optarg ;; | |
1131 | ||
1132 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1133 | ac_prev=mandir ;; | |
1134 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1135 | mandir=$ac_optarg ;; | |
1136 | ||
1137 | -nfp | --nfp | --nf) | |
1138 | # Obsolete; use --without-fp. | |
1139 | with_fp=no ;; | |
1140 | ||
1141 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1142 | | --no-cr | --no-c | -n) | |
1143 | no_create=yes ;; | |
1144 | ||
1145 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1146 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1147 | no_recursion=yes ;; | |
1148 | ||
1149 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1150 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1151 | | --oldin | --oldi | --old | --ol | --o) | |
1152 | ac_prev=oldincludedir ;; | |
1153 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1154 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1155 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1156 | oldincludedir=$ac_optarg ;; | |
1157 | ||
1158 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1159 | ac_prev=prefix ;; | |
1160 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1161 | prefix=$ac_optarg ;; | |
1162 | ||
1163 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1164 | | --program-pre | --program-pr | --program-p) | |
1165 | ac_prev=program_prefix ;; | |
1166 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1167 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1168 | program_prefix=$ac_optarg ;; | |
1169 | ||
1170 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1171 | | --program-suf | --program-su | --program-s) | |
1172 | ac_prev=program_suffix ;; | |
1173 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1174 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1175 | program_suffix=$ac_optarg ;; | |
1176 | ||
1177 | -program-transform-name | --program-transform-name \ | |
1178 | | --program-transform-nam | --program-transform-na \ | |
1179 | | --program-transform-n | --program-transform- \ | |
1180 | | --program-transform | --program-transfor \ | |
1181 | | --program-transfo | --program-transf \ | |
1182 | | --program-trans | --program-tran \ | |
1183 | | --progr-tra | --program-tr | --program-t) | |
1184 | ac_prev=program_transform_name ;; | |
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 | program_transform_name=$ac_optarg ;; | |
1193 | ||
1194 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1195 | ac_prev=pdfdir ;; | |
1196 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1197 | pdfdir=$ac_optarg ;; | |
1198 | ||
1199 | -psdir | --psdir | --psdi | --psd | --ps) | |
1200 | ac_prev=psdir ;; | |
1201 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1202 | psdir=$ac_optarg ;; | |
1203 | ||
1204 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1205 | | -silent | --silent | --silen | --sile | --sil) | |
1206 | silent=yes ;; | |
1207 | ||
1208 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1209 | ac_prev=sbindir ;; | |
1210 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1211 | | --sbi=* | --sb=*) | |
1212 | sbindir=$ac_optarg ;; | |
1213 | ||
1214 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1215 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1216 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1217 | | --sha | --sh) | |
1218 | ac_prev=sharedstatedir ;; | |
1219 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1220 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1221 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1222 | | --sha=* | --sh=*) | |
1223 | sharedstatedir=$ac_optarg ;; | |
1224 | ||
1225 | -site | --site | --sit) | |
1226 | ac_prev=site ;; | |
1227 | -site=* | --site=* | --sit=*) | |
1228 | site=$ac_optarg ;; | |
1229 | ||
1230 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1231 | ac_prev=srcdir ;; | |
1232 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1233 | srcdir=$ac_optarg ;; | |
1234 | ||
1235 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1236 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1237 | ac_prev=sysconfdir ;; | |
1238 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1239 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1240 | sysconfdir=$ac_optarg ;; | |
1241 | ||
1242 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1243 | ac_prev=target_alias ;; | |
1244 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1245 | target_alias=$ac_optarg ;; | |
1246 | ||
1247 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1248 | verbose=yes ;; | |
1249 | ||
1250 | -version | --version | --versio | --versi | --vers | -V) | |
1251 | ac_init_version=: ;; | |
1252 | ||
1253 | -with-* | --with-*) | |
1254 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1255 | # Reject names that are not valid shell variable names. | |
1256 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1257 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1258 | { (exit 1); exit 1; }; } | |
1259 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1260 | eval with_$ac_package=\$ac_optarg ;; | |
1261 | ||
1262 | -without-* | --without-*) | |
1263 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1264 | # Reject names that are not valid shell variable names. | |
1265 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1266 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
1267 | { (exit 1); exit 1; }; } | |
1268 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` | |
1269 | eval with_$ac_package=no ;; | |
1270 | ||
1271 | --x) | |
1272 | # Obsolete; use --with-x. | |
1273 | with_x=yes ;; | |
1274 | ||
1275 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1276 | | --x-incl | --x-inc | --x-in | --x-i) | |
1277 | ac_prev=x_includes ;; | |
1278 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1279 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1280 | x_includes=$ac_optarg ;; | |
1281 | ||
1282 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1283 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1284 | ac_prev=x_libraries ;; | |
1285 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1286 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1287 | x_libraries=$ac_optarg ;; | |
1288 | ||
1289 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
1290 | Try \`$0 --help' for more information." >&2 | |
1291 | { (exit 1); exit 1; }; } | |
1292 | ;; | |
1293 | ||
1294 | *=*) | |
1295 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1296 | # Reject names that are not valid shell variable names. | |
1297 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
1298 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
1299 | { (exit 1); exit 1; }; } | |
1300 | eval $ac_envvar=\$ac_optarg | |
1301 | export $ac_envvar ;; | |
1302 | ||
1303 | *) | |
1304 | # FIXME: should be removed in autoconf 3.0. | |
1305 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1306 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1307 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1308 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
1309 | ;; | |
1310 | ||
1311 | esac | |
1312 | done | |
1313 | ||
1314 | if test -n "$ac_prev"; then | |
1315 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1316 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
1317 | { (exit 1); exit 1; }; } | |
1318 | fi | |
1319 | ||
1320 | # Be sure to have absolute directory names. | |
1321 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1322 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1323 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1324 | libdir localedir mandir | |
1325 | do | |
1326 | eval ac_val=\$$ac_var | |
1327 | case $ac_val in | |
1328 | [\\/$]* | ?:[\\/]* ) continue;; | |
1329 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1330 | esac | |
1331 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
1332 | { (exit 1); exit 1; }; } | |
1333 | done | |
1334 | ||
1335 | # There might be people who depend on the old broken behavior: `$host' | |
1336 | # used to hold the argument of --host etc. | |
1337 | # FIXME: To remove some day. | |
1338 | build=$build_alias | |
1339 | host=$host_alias | |
1340 | target=$target_alias | |
1341 | ||
1342 | # FIXME: To remove some day. | |
1343 | if test "x$host_alias" != x; then | |
1344 | if test "x$build_alias" = x; then | |
1345 | cross_compiling=maybe | |
1346 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
1347 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
1348 | elif test "x$build_alias" != "x$host_alias"; then | |
1349 | cross_compiling=yes | |
1350 | fi | |
1351 | fi | |
1352 | ||
1353 | ac_tool_prefix= | |
1354 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1355 | ||
1356 | test "$silent" = yes && exec 6>/dev/null | |
1357 | ||
1358 | ||
1359 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1360 | ac_ls_di=`ls -di .` && | |
1361 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1362 | { echo "$as_me: error: Working directory cannot be determined" >&2 | |
1363 | { (exit 1); exit 1; }; } | |
1364 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1365 | { echo "$as_me: error: pwd does not report name of working directory" >&2 | |
1366 | { (exit 1); exit 1; }; } | |
1367 | ||
1368 | ||
1369 | # Find the source files, if location was not specified. | |
1370 | if test -z "$srcdir"; then | |
1371 | ac_srcdir_defaulted=yes | |
1372 | # Try the directory containing this script, then the parent directory. | |
1373 | ac_confdir=`$as_dirname -- "$0" || | |
1374 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1375 | X"$0" : 'X\(//\)[^/]' \| \ | |
1376 | X"$0" : 'X\(//\)$' \| \ | |
1377 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
1378 | echo X"$0" | | |
1379 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1380 | s//\1/ | |
1381 | q | |
1382 | } | |
1383 | /^X\(\/\/\)[^/].*/{ | |
1384 | s//\1/ | |
1385 | q | |
1386 | } | |
1387 | /^X\(\/\/\)$/{ | |
1388 | s//\1/ | |
1389 | q | |
1390 | } | |
1391 | /^X\(\/\).*/{ | |
1392 | s//\1/ | |
1393 | q | |
1394 | } | |
1395 | s/.*/./; q'` | |
1396 | srcdir=$ac_confdir | |
1397 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1398 | srcdir=.. | |
1399 | fi | |
1400 | else | |
1401 | ac_srcdir_defaulted=no | |
1402 | fi | |
1403 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1404 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1405 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
1406 | { (exit 1); exit 1; }; } | |
1407 | fi | |
1408 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1409 | ac_abs_confdir=`( | |
1410 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 | |
1411 | { (exit 1); exit 1; }; } | |
1412 | pwd)` | |
1413 | # When building in place, set srcdir=. | |
1414 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1415 | srcdir=. | |
1416 | fi | |
1417 | # Remove unnecessary trailing slashes from srcdir. | |
1418 | # Double slashes in file names in object file debugging info | |
1419 | # mess up M-x gdb in Emacs. | |
1420 | case $srcdir in | |
1421 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1422 | esac | |
1423 | for ac_var in $ac_precious_vars; do | |
1424 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1425 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1426 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1427 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1428 | done | |
1429 | ||
1430 | # | |
1431 | # Report the --help message. | |
1432 | # | |
1433 | if test "$ac_init_help" = "long"; then | |
1434 | # Omit some internal or obsolete options to make the list less imposing. | |
1435 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1436 | cat <<_ACEOF | |
1437 | \`configure' configures gc 7.0 to adapt to many kinds of systems. | |
1438 | ||
1439 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1440 | ||
1441 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1442 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1443 | ||
1444 | Defaults for the options are specified in brackets. | |
1445 | ||
1446 | Configuration: | |
1447 | -h, --help display this help and exit | |
1448 | --help=short display options specific to this package | |
1449 | --help=recursive display the short help of all the included packages | |
1450 | -V, --version display version information and exit | |
1451 | -q, --quiet, --silent do not print \`checking...' messages | |
1452 | --cache-file=FILE cache test results in FILE [disabled] | |
1453 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1454 | -n, --no-create do not create output files | |
1455 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1456 | ||
1457 | Installation directories: | |
1458 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1459 | [$ac_default_prefix] | |
1460 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1461 | [PREFIX] | |
1462 | ||
1463 | By default, \`make install' will install all the files in | |
1464 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1465 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1466 | for instance \`--prefix=\$HOME'. | |
1467 | ||
1468 | For better control, use the options below. | |
1469 | ||
1470 | Fine tuning of the installation directories: | |
1471 | --bindir=DIR user executables [EPREFIX/bin] | |
1472 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1473 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1474 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1475 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1476 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1477 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1478 | --includedir=DIR C header files [PREFIX/include] | |
1479 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1480 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1481 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1482 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1483 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1484 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1485 | --docdir=DIR documentation root [DATAROOTDIR/doc/gc] | |
1486 | --htmldir=DIR html documentation [DOCDIR] | |
1487 | --dvidir=DIR dvi documentation [DOCDIR] | |
1488 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1489 | --psdir=DIR ps documentation [DOCDIR] | |
1490 | _ACEOF | |
1491 | ||
1492 | cat <<\_ACEOF | |
1493 | ||
1494 | Program names: | |
1495 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1496 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1497 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1498 | ||
1499 | System types: | |
1500 | --build=BUILD configure for building on BUILD [guessed] | |
1501 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1502 | --target=TARGET configure for building compilers for TARGET [HOST] | |
1503 | _ACEOF | |
1504 | fi | |
1505 | ||
1506 | if test -n "$ac_init_help"; then | |
1507 | case $ac_init_help in | |
1508 | short | recursive ) echo "Configuration of gc 7.0:";; | |
1509 | esac | |
1510 | cat <<\_ACEOF | |
1511 | ||
1512 | Optional Features: | |
1513 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1514 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1515 | --enable-maintainer-mode enable make rules and dependencies not useful | |
1516 | (and sometimes confusing) to the casual installer | |
1517 | --disable-dependency-tracking speeds up one-time build | |
1518 | --enable-dependency-tracking do not reject slow dependency extractors | |
1519 | --enable-threads=TYPE choose threading package | |
1520 | --enable-parallel-mark parallelize marking and free list construction | |
1521 | --enable-cplusplus install C++ support | |
1522 | --enable-shared[=PKGS] build shared libraries [default=yes] | |
1523 | --enable-static[=PKGS] build static 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 | --disable-gcj-support Disable support for gcj. | |
1528 | --disable-java-finalization | |
1529 | Disable support for java finalization. | |
1530 | --disable-atomic-uncollectible | |
1531 | Disable support for atomic uncollectible allocation. | |
1532 | --enable-redirect-malloc | |
1533 | Redirect malloc and friends to GC routines | |
1534 | --enable-large-config Optimize for large (> 100 MB) heap or root set | |
1535 | --enable-gc-debug include full support for pointer backtracing etc. | |
1536 | --enable-gc-assertions collector-internal assertion checking | |
1537 | ||
1538 | Optional Packages: | |
1539 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1540 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
1541 | --with-ecos enable runtime eCos target support | |
1542 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] | |
1543 | --with-pic try to use only PIC/non-PIC objects [default=use | |
1544 | both] | |
1545 | --with-tags[=TAGS] include additional configurations [automatic] | |
1546 | --with-target-subdir=SUBDIR | |
1547 | configuring with a cross compiler | |
1548 | --with-cross-host=HOST configuring with a cross compiler | |
1549 | ||
1550 | Some influential environment variables: | |
1551 | CC C compiler command | |
1552 | CFLAGS C compiler flags | |
1553 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1554 | nonstandard directory <lib dir> | |
1555 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1556 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if | |
1557 | you have headers in a nonstandard directory <include dir> | |
1558 | CXX C++ compiler command | |
1559 | CXXFLAGS C++ compiler flags | |
1560 | CCAS assembler compiler command (defaults to CC) | |
1561 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) | |
1562 | CPP C preprocessor | |
1563 | CXXCPP C++ preprocessor | |
1564 | F77 Fortran 77 compiler command | |
1565 | FFLAGS Fortran 77 compiler flags | |
1566 | ||
1567 | Use these variables to override the choices made by `configure' or to help | |
1568 | it to find libraries and programs with nonstandard names/locations. | |
1569 | ||
1570 | Report bugs to <Hans.Boehm@hp.com>. | |
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 | gc configure 7.0 | |
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 gc $as_me 7.0, 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 | ||
1984 | ||
1985 | ||
1986 | ||
1987 | ||
1988 | ||
1989 | ||
1990 | ||
1991 | ac_ext=c | |
1992 | ac_cpp='$CPP $CPPFLAGS' | |
1993 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1994 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1995 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1996 | ||
1997 | ||
1998 | ## version must conform to [0-9]+[.][0-9]+(alpha[0-9]+)? | |
1999 | ||
2000 | ac_aux_dir= | |
2001 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2002 | if test -f "$ac_dir/install-sh"; then | |
2003 | ac_aux_dir=$ac_dir | |
2004 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2005 | break | |
2006 | elif test -f "$ac_dir/install.sh"; then | |
2007 | ac_aux_dir=$ac_dir | |
2008 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2009 | break | |
2010 | elif test -f "$ac_dir/shtool"; then | |
2011 | ac_aux_dir=$ac_dir | |
2012 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2013 | break | |
2014 | fi | |
2015 | done | |
2016 | if test -z "$ac_aux_dir"; then | |
2017 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 | |
2018 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} | |
2019 | { (exit 1); exit 1; }; } | |
2020 | fi | |
2021 | ||
2022 | # These three variables are undocumented and unsupported, | |
2023 | # and are intended to be withdrawn in a future Autoconf release. | |
2024 | # They can cause serious problems if a builder's source tree is in a directory | |
2025 | # whose full name contains unusual characters. | |
2026 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2027 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2028 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2029 | ||
2030 | ||
2031 | # Make sure we can run config.sub. | |
2032 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
2033 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 | |
2034 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} | |
2035 | { (exit 1); exit 1; }; } | |
2036 | ||
2037 | { echo "$as_me:$LINENO: checking build system type" >&5 | |
2038 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } | |
2039 | if test "${ac_cv_build+set}" = set; then | |
2040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2041 | else | |
2042 | ac_build_alias=$build_alias | |
2043 | test "x$ac_build_alias" = x && | |
2044 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
2045 | test "x$ac_build_alias" = x && | |
2046 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
2047 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
2048 | { (exit 1); exit 1; }; } | |
2049 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
2050 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 | |
2051 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} | |
2052 | { (exit 1); exit 1; }; } | |
2053 | ||
2054 | fi | |
2055 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
2056 | echo "${ECHO_T}$ac_cv_build" >&6; } | |
2057 | case $ac_cv_build in | |
2058 | *-*-*) ;; | |
2059 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 | |
2060 | echo "$as_me: error: invalid value of canonical build" >&2;} | |
2061 | { (exit 1); exit 1; }; };; | |
2062 | esac | |
2063 | build=$ac_cv_build | |
2064 | ac_save_IFS=$IFS; IFS='-' | |
2065 | set x $ac_cv_build | |
2066 | shift | |
2067 | build_cpu=$1 | |
2068 | build_vendor=$2 | |
2069 | shift; shift | |
2070 | # Remember, the first character of IFS is used to create $*, | |
2071 | # except with old shells: | |
2072 | build_os=$* | |
2073 | IFS=$ac_save_IFS | |
2074 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
2075 | ||
2076 | ||
2077 | { echo "$as_me:$LINENO: checking host system type" >&5 | |
2078 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } | |
2079 | if test "${ac_cv_host+set}" = set; then | |
2080 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2081 | else | |
2082 | if test "x$host_alias" = x; then | |
2083 | ac_cv_host=$ac_cv_build | |
2084 | else | |
2085 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
2086 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 | |
2087 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} | |
2088 | { (exit 1); exit 1; }; } | |
2089 | fi | |
2090 | ||
2091 | fi | |
2092 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
2093 | echo "${ECHO_T}$ac_cv_host" >&6; } | |
2094 | case $ac_cv_host in | |
2095 | *-*-*) ;; | |
2096 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 | |
2097 | echo "$as_me: error: invalid value of canonical host" >&2;} | |
2098 | { (exit 1); exit 1; }; };; | |
2099 | esac | |
2100 | host=$ac_cv_host | |
2101 | ac_save_IFS=$IFS; IFS='-' | |
2102 | set x $ac_cv_host | |
2103 | shift | |
2104 | host_cpu=$1 | |
2105 | host_vendor=$2 | |
2106 | shift; shift | |
2107 | # Remember, the first character of IFS is used to create $*, | |
2108 | # except with old shells: | |
2109 | host_os=$* | |
2110 | IFS=$ac_save_IFS | |
2111 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
2112 | ||
2113 | ||
2114 | { echo "$as_me:$LINENO: checking target system type" >&5 | |
2115 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } | |
2116 | if test "${ac_cv_target+set}" = set; then | |
2117 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2118 | else | |
2119 | if test "x$target_alias" = x; then | |
2120 | ac_cv_target=$ac_cv_host | |
2121 | else | |
2122 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || | |
2123 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 | |
2124 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} | |
2125 | { (exit 1); exit 1; }; } | |
2126 | fi | |
2127 | ||
2128 | fi | |
2129 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
2130 | echo "${ECHO_T}$ac_cv_target" >&6; } | |
2131 | case $ac_cv_target in | |
2132 | *-*-*) ;; | |
2133 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 | |
2134 | echo "$as_me: error: invalid value of canonical target" >&2;} | |
2135 | { (exit 1); exit 1; }; };; | |
2136 | esac | |
2137 | target=$ac_cv_target | |
2138 | ac_save_IFS=$IFS; IFS='-' | |
2139 | set x $ac_cv_target | |
2140 | shift | |
2141 | target_cpu=$1 | |
2142 | target_vendor=$2 | |
2143 | shift; shift | |
2144 | # Remember, the first character of IFS is used to create $*, | |
2145 | # except with old shells: | |
2146 | target_os=$* | |
2147 | IFS=$ac_save_IFS | |
2148 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac | |
2149 | ||
2150 | ||
2151 | # The aliases save the names the user supplied, while $host etc. | |
2152 | # will get canonicalized. | |
2153 | test -n "$target_alias" && | |
2154 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
2155 | NONENONEs,x,x, && | |
2156 | program_prefix=${target_alias}- | |
2157 | ||
2158 | ||
2159 | ||
2160 | { echo "$as_me:$LINENO: checking GC version numbers" >&5 | |
2161 | echo $ECHO_N "checking GC version numbers... $ECHO_C" >&6; } | |
2162 | GC_VERSION_MAJOR=`echo $PACKAGE_VERSION | sed 's/^\([0-9][0-9]*\)[.].*$/\1/g'` | |
2163 | GC_VERSION_MINOR=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.]\([0-9][0-9]*\).*$/\1/g'` | |
2164 | GC_ALPHA_VERSION=`echo $PACKAGE_VERSION | sed 's/^[^.]*[.][0-9]*//'` | |
2165 | ||
2166 | case "$GC_ALPHA_VERSION" in | |
2167 | alpha*) | |
2168 | GC_ALPHA_VERSION=`echo $GC_ALPHA_VERSION \ | |
2169 | | sed 's/alpha\([0-9][0-9]*\)/\1/'` ;; | |
2170 | *) GC_ALPHA_MAJOR='' ;; | |
2171 | esac | |
2172 | ||
2173 | if test :$GC_VERSION_MAJOR: = :: \ | |
2174 | -o :$GC_VERSION_MINOR: = :: ; | |
2175 | then | |
2176 | { echo "$as_me:$LINENO: result: invalid" >&5 | |
2177 | echo "${ECHO_T}invalid" >&6; } | |
2178 | { { echo "$as_me:$LINENO: error: nonconforming PACKAGE_VERSION='$PACKAGE_VERSION'" >&5 | |
2179 | echo "$as_me: error: nonconforming PACKAGE_VERSION='$PACKAGE_VERSION'" >&2;} | |
2180 | { (exit 1); exit 1; }; } | |
2181 | fi | |
2182 | ||
2183 | cat >>confdefs.h <<_ACEOF | |
2184 | #define GC_VERSION_MAJOR $GC_VERSION_MAJOR | |
2185 | _ACEOF | |
2186 | ||
2187 | cat >>confdefs.h <<_ACEOF | |
2188 | #define GC_VERSION_MINOR $GC_VERSION_MINOR | |
2189 | _ACEOF | |
2190 | ||
2191 | if test :$GC_ALPHA_VERSION: != :: ; then | |
2192 | cat >>confdefs.h <<_ACEOF | |
2193 | #define GC_ALPHA_VERSION $GC_ALPHA_VERSION | |
2194 | _ACEOF | |
2195 | ||
2196 | fi | |
2197 | { echo "$as_me:$LINENO: result: major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \ | |
2198 | ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&5 | |
2199 | echo "${ECHO_T}major=$GC_VERSION_MAJOR minor=$GC_VERSION_MINOR \ | |
2200 | ${GC_ALPHA_VERSION:+alpha=}$GC_ALPHA_VERSION" >&6; } | |
2201 | ||
2202 | am__api_version="1.9" | |
2203 | # Find a good install program. We prefer a C program (faster), | |
2204 | # so one script is as good as another. But avoid the broken or | |
2205 | # incompatible versions: | |
2206 | # SysV /etc/install, /usr/sbin/install | |
2207 | # SunOS /usr/etc/install | |
2208 | # IRIX /sbin/install | |
2209 | # AIX /bin/install | |
2210 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2211 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2212 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2213 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2214 | # OS/2's system install, which has a completely different semantic | |
2215 | # ./install, which can be erroneously created by make from ./install.sh. | |
2216 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2217 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
2218 | if test -z "$INSTALL"; then | |
2219 | if test "${ac_cv_path_install+set}" = set; then | |
2220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2221 | else | |
2222 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2223 | for as_dir in $PATH | |
2224 | do | |
2225 | IFS=$as_save_IFS | |
2226 | test -z "$as_dir" && as_dir=. | |
2227 | # Account for people who put trailing slashes in PATH elements. | |
2228 | case $as_dir/ in | |
2229 | ./ | .// | /cC/* | \ | |
2230 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2231 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2232 | /usr/ucb/* ) ;; | |
2233 | *) | |
2234 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2235 | # Don't use installbsd from OSF since it installs stuff as root | |
2236 | # by default. | |
2237 | for ac_prog in ginstall scoinst install; do | |
2238 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2239 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
2240 | if test $ac_prog = install && | |
2241 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2242 | # AIX install. It has an incompatible calling convention. | |
2243 | : | |
2244 | elif test $ac_prog = install && | |
2245 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2246 | # program-specific install script used by HP pwplus--don't use. | |
2247 | : | |
2248 | else | |
2249 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2250 | break 3 | |
2251 | fi | |
2252 | fi | |
2253 | done | |
2254 | done | |
2255 | ;; | |
2256 | esac | |
2257 | done | |
2258 | IFS=$as_save_IFS | |
2259 | ||
2260 | ||
2261 | fi | |
2262 | if test "${ac_cv_path_install+set}" = set; then | |
2263 | INSTALL=$ac_cv_path_install | |
2264 | else | |
2265 | # As a last resort, use the slow shell script. Don't cache a | |
2266 | # value for INSTALL within a source directory, because that will | |
2267 | # break other packages using the cache if that directory is | |
2268 | # removed, or if the value is a relative name. | |
2269 | INSTALL=$ac_install_sh | |
2270 | fi | |
2271 | fi | |
2272 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2273 | echo "${ECHO_T}$INSTALL" >&6; } | |
2274 | ||
2275 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2276 | # It thinks the first close brace ends the variable substitution. | |
2277 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2278 | ||
2279 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2280 | ||
2281 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2282 | ||
2283 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
2284 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } | |
2285 | # Just in case | |
2286 | sleep 1 | |
2287 | echo timestamp > conftest.file | |
2288 | # Do `set' in a subshell so we don't clobber the current shell's | |
2289 | # arguments. Must try -L first in case configure is actually a | |
2290 | # symlink; some systems play weird games with the mod time of symlinks | |
2291 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2292 | # directory). | |
2293 | if ( | |
2294 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
2295 | if test "$*" = "X"; then | |
2296 | # -L didn't work. | |
2297 | set X `ls -t $srcdir/configure conftest.file` | |
2298 | fi | |
2299 | rm -f conftest.file | |
2300 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2301 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2302 | ||
2303 | # If neither matched, then we have a broken ls. This can happen | |
2304 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2305 | # broken ls alias from the environment. This has actually | |
2306 | # happened. Such a system could not be considered "sane". | |
2307 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
2308 | alias in your environment" >&5 | |
2309 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
2310 | alias in your environment" >&2;} | |
2311 | { (exit 1); exit 1; }; } | |
2312 | fi | |
2313 | ||
2314 | test "$2" = conftest.file | |
2315 | ) | |
2316 | then | |
2317 | # Ok. | |
2318 | : | |
2319 | else | |
2320 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
2321 | Check your system clock" >&5 | |
2322 | echo "$as_me: error: newly created file is older than distributed files! | |
2323 | Check your system clock" >&2;} | |
2324 | { (exit 1); exit 1; }; } | |
2325 | fi | |
2326 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2327 | echo "${ECHO_T}yes" >&6; } | |
2328 | test "$program_prefix" != NONE && | |
2329 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2330 | # Use a double $ so make ignores it. | |
2331 | test "$program_suffix" != NONE && | |
2332 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2333 | # Double any \ or $. echo might interpret backslashes. | |
2334 | # By default was `s,x,x', remove it if useless. | |
2335 | cat <<\_ACEOF >conftest.sed | |
2336 | s/[\\$]/&&/g;s/;s,x,x,$// | |
2337 | _ACEOF | |
2338 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
2339 | rm -f conftest.sed | |
2340 | ||
2341 | # expand $ac_aux_dir to an absolute path | |
2342 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
2343 | ||
2344 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
2345 | # Use eval to expand $SHELL | |
2346 | if eval "$MISSING --run true"; then | |
2347 | am_missing_run="$MISSING --run " | |
2348 | else | |
2349 | am_missing_run= | |
2350 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
2351 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
2352 | fi | |
2353 | ||
2354 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
2355 | # We used to keeping the `.' as first argument, in order to | |
2356 | # allow $(mkdir_p) to be used without argument. As in | |
2357 | # $(mkdir_p) $(somedir) | |
2358 | # where $(somedir) is conditionally defined. However this is wrong | |
2359 | # for two reasons: | |
2360 | # 1. if the package is installed by a user who cannot write `.' | |
2361 | # make install will fail, | |
2362 | # 2. the above comment should most certainly read | |
2363 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
2364 | # so it does not work when $(somedir) is undefined and | |
2365 | # $(DESTDIR) is not. | |
2366 | # To support the latter case, we have to write | |
2367 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
2368 | # so the `.' trick is pointless. | |
2369 | mkdir_p='mkdir -p --' | |
2370 | else | |
2371 | # On NextStep and OpenStep, the `mkdir' command does not | |
2372 | # recognize any option. It will interpret all options as | |
2373 | # directories to create, and then abort because `.' already | |
2374 | # exists. | |
2375 | for d in ./-p ./--version; | |
2376 | do | |
2377 | test -d $d && rmdir $d | |
2378 | done | |
2379 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
2380 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
2381 | mkdir_p='$(mkinstalldirs)' | |
2382 | else | |
2383 | mkdir_p='$(install_sh) -d' | |
2384 | fi | |
2385 | fi | |
2386 | ||
2387 | for ac_prog in gawk mawk nawk awk | |
2388 | do | |
2389 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2390 | set dummy $ac_prog; ac_word=$2 | |
2391 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2392 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2393 | if test "${ac_cv_prog_AWK+set}" = set; then | |
2394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2395 | else | |
2396 | if test -n "$AWK"; then | |
2397 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2398 | else | |
2399 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2400 | for as_dir in $PATH | |
2401 | do | |
2402 | IFS=$as_save_IFS | |
2403 | test -z "$as_dir" && as_dir=. | |
2404 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2405 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2406 | ac_cv_prog_AWK="$ac_prog" | |
2407 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2408 | break 2 | |
2409 | fi | |
2410 | done | |
2411 | done | |
2412 | IFS=$as_save_IFS | |
2413 | ||
2414 | fi | |
2415 | fi | |
2416 | AWK=$ac_cv_prog_AWK | |
2417 | if test -n "$AWK"; then | |
2418 | { echo "$as_me:$LINENO: result: $AWK" >&5 | |
2419 | echo "${ECHO_T}$AWK" >&6; } | |
2420 | else | |
2421 | { echo "$as_me:$LINENO: result: no" >&5 | |
2422 | echo "${ECHO_T}no" >&6; } | |
2423 | fi | |
2424 | ||
2425 | ||
2426 | test -n "$AWK" && break | |
2427 | done | |
2428 | ||
2429 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2430 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } | |
2431 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2432 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then | |
2433 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2434 | else | |
2435 | cat >conftest.make <<\_ACEOF | |
2436 | SHELL = /bin/sh | |
2437 | all: | |
2438 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2439 | _ACEOF | |
2440 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2441 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2442 | *@@@%%%=?*=@@@%%%*) | |
2443 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2444 | *) | |
2445 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2446 | esac | |
2447 | rm -f conftest.make | |
2448 | fi | |
2449 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2450 | { echo "$as_me:$LINENO: result: yes" >&5 | |
2451 | echo "${ECHO_T}yes" >&6; } | |
2452 | SET_MAKE= | |
2453 | else | |
2454 | { echo "$as_me:$LINENO: result: no" >&5 | |
2455 | echo "${ECHO_T}no" >&6; } | |
2456 | SET_MAKE="MAKE=${MAKE-make}" | |
2457 | fi | |
2458 | ||
2459 | rm -rf .tst 2>/dev/null | |
2460 | mkdir .tst 2>/dev/null | |
2461 | if test -d .tst; then | |
2462 | am__leading_dot=. | |
2463 | else | |
2464 | am__leading_dot=_ | |
2465 | fi | |
2466 | rmdir .tst 2>/dev/null | |
2467 | ||
2468 | # test to see if srcdir already configured | |
2469 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
2470 | test -f $srcdir/config.status; then | |
2471 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
2472 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
2473 | { (exit 1); exit 1; }; } | |
2474 | fi | |
2475 | ||
2476 | # test whether we have cygpath | |
2477 | if test -z "$CYGPATH_W"; then | |
2478 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2479 | CYGPATH_W='cygpath -w' | |
2480 | else | |
2481 | CYGPATH_W=echo | |
2482 | fi | |
2483 | fi | |
2484 | ||
2485 | ||
2486 | # Define the identity of the package. | |
2487 | PACKAGE='gc' | |
2488 | VERSION='7.0' | |
2489 | ||
2490 | ||
2491 | cat >>confdefs.h <<_ACEOF | |
2492 | #define PACKAGE "$PACKAGE" | |
2493 | _ACEOF | |
2494 | ||
2495 | ||
2496 | cat >>confdefs.h <<_ACEOF | |
2497 | #define VERSION "$VERSION" | |
2498 | _ACEOF | |
2499 | ||
2500 | # Some tools Automake needs. | |
2501 | ||
2502 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2503 | ||
2504 | ||
2505 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2506 | ||
2507 | ||
2508 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2509 | ||
2510 | ||
2511 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2512 | ||
2513 | ||
2514 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2515 | ||
2516 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
2517 | ||
2518 | # Installed binaries are usually stripped using `strip' when the user | |
2519 | # run `make install-strip'. However `strip' might not be the right | |
2520 | # tool to use in cross-compilation environments, therefore Automake | |
2521 | # will honor the `STRIP' environment variable to overrule this program. | |
2522 | if test "$cross_compiling" != no; then | |
2523 | if test -n "$ac_tool_prefix"; then | |
2524 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2525 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2526 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2527 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2528 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
2529 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2530 | else | |
2531 | if test -n "$STRIP"; then | |
2532 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2533 | else | |
2534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2535 | for as_dir in $PATH | |
2536 | do | |
2537 | IFS=$as_save_IFS | |
2538 | test -z "$as_dir" && as_dir=. | |
2539 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2540 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2541 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2542 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2543 | break 2 | |
2544 | fi | |
2545 | done | |
2546 | done | |
2547 | IFS=$as_save_IFS | |
2548 | ||
2549 | fi | |
2550 | fi | |
2551 | STRIP=$ac_cv_prog_STRIP | |
2552 | if test -n "$STRIP"; then | |
2553 | { echo "$as_me:$LINENO: result: $STRIP" >&5 | |
2554 | echo "${ECHO_T}$STRIP" >&6; } | |
2555 | else | |
2556 | { echo "$as_me:$LINENO: result: no" >&5 | |
2557 | echo "${ECHO_T}no" >&6; } | |
2558 | fi | |
2559 | ||
2560 | ||
2561 | fi | |
2562 | if test -z "$ac_cv_prog_STRIP"; then | |
2563 | ac_ct_STRIP=$STRIP | |
2564 | # Extract the first word of "strip", so it can be a program name with args. | |
2565 | set dummy strip; ac_word=$2 | |
2566 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2568 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
2569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2570 | else | |
2571 | if test -n "$ac_ct_STRIP"; then | |
2572 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2573 | else | |
2574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2575 | for as_dir in $PATH | |
2576 | do | |
2577 | IFS=$as_save_IFS | |
2578 | test -z "$as_dir" && as_dir=. | |
2579 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2580 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2581 | ac_cv_prog_ac_ct_STRIP="strip" | |
2582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2583 | break 2 | |
2584 | fi | |
2585 | done | |
2586 | done | |
2587 | IFS=$as_save_IFS | |
2588 | ||
2589 | fi | |
2590 | fi | |
2591 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2592 | if test -n "$ac_ct_STRIP"; then | |
2593 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
2594 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
2595 | else | |
2596 | { echo "$as_me:$LINENO: result: no" >&5 | |
2597 | echo "${ECHO_T}no" >&6; } | |
2598 | fi | |
2599 | ||
2600 | if test "x$ac_ct_STRIP" = x; then | |
2601 | STRIP=":" | |
2602 | else | |
2603 | case $cross_compiling:$ac_tool_warned in | |
2604 | yes:) | |
2605 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2606 | whose name does not start with the host triplet. If you think this | |
2607 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2608 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2609 | whose name does not start with the host triplet. If you think this | |
2610 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2611 | ac_tool_warned=yes ;; | |
2612 | esac | |
2613 | STRIP=$ac_ct_STRIP | |
2614 | fi | |
2615 | else | |
2616 | STRIP="$ac_cv_prog_STRIP" | |
2617 | fi | |
2618 | ||
2619 | fi | |
2620 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
2621 | ||
2622 | # We need awk for the "check" target. The system "awk" is bad on | |
2623 | # some platforms. | |
2624 | # Always define AMTAR for backward compatibility. | |
2625 | ||
2626 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
2627 | ||
2628 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
2629 | ||
2630 | ||
2631 | ||
2632 | ||
2633 | ||
2634 | { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
2635 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } | |
2636 | # Check whether --enable-maintainer-mode was given. | |
2637 | if test "${enable_maintainer_mode+set}" = set; then | |
2638 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
2639 | else | |
2640 | USE_MAINTAINER_MODE=no | |
2641 | fi | |
2642 | ||
2643 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
2644 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } | |
2645 | ||
2646 | ||
2647 | if test $USE_MAINTAINER_MODE = yes; then | |
2648 | MAINTAINER_MODE_TRUE= | |
2649 | MAINTAINER_MODE_FALSE='#' | |
2650 | else | |
2651 | MAINTAINER_MODE_TRUE='#' | |
2652 | MAINTAINER_MODE_FALSE= | |
2653 | fi | |
2654 | ||
2655 | MAINT=$MAINTAINER_MODE_TRUE | |
2656 | ||
2657 | ||
2658 | ||
2659 | ||
2660 | ||
2661 | ||
2662 | DEPDIR="${am__leading_dot}deps" | |
2663 | ||
2664 | ac_config_commands="$ac_config_commands depfiles" | |
2665 | ||
2666 | ||
2667 | am_make=${MAKE-make} | |
2668 | cat > confinc << 'END' | |
2669 | am__doit: | |
2670 | @echo done | |
2671 | .PHONY: am__doit | |
2672 | END | |
2673 | # If we don't find an include directive, just comment out the code. | |
2674 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2675 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } | |
2676 | am__include="#" | |
2677 | am__quote= | |
2678 | _am_result=none | |
2679 | # First try GNU make style include. | |
2680 | echo "include confinc" > confmf | |
2681 | # We grep out `Entering directory' and `Leaving directory' | |
2682 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2683 | # In particular we don't look at `^make:' because GNU make might | |
2684 | # be invoked under some other name (usually "gmake"), in which | |
2685 | # case it prints its new name instead of `make'. | |
2686 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2687 | am__include=include | |
2688 | am__quote= | |
2689 | _am_result=GNU | |
2690 | fi | |
2691 | # Now try BSD make style include. | |
2692 | if test "$am__include" = "#"; then | |
2693 | echo '.include "confinc"' > confmf | |
2694 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2695 | am__include=.include | |
2696 | am__quote="\"" | |
2697 | _am_result=BSD | |
2698 | fi | |
2699 | fi | |
2700 | ||
2701 | ||
2702 | { echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2703 | echo "${ECHO_T}$_am_result" >&6; } | |
2704 | rm -f confinc confmf | |
2705 | ||
2706 | # Check whether --enable-dependency-tracking was given. | |
2707 | if test "${enable_dependency_tracking+set}" = set; then | |
2708 | enableval=$enable_dependency_tracking; | |
2709 | fi | |
2710 | ||
2711 | if test "x$enable_dependency_tracking" != xno; then | |
2712 | am_depcomp="$ac_aux_dir/depcomp" | |
2713 | AMDEPBACKSLASH='\' | |
2714 | fi | |
2715 | ||
2716 | ||
2717 | if test "x$enable_dependency_tracking" != xno; then | |
2718 | AMDEP_TRUE= | |
2719 | AMDEP_FALSE='#' | |
2720 | else | |
2721 | AMDEP_TRUE='#' | |
2722 | AMDEP_FALSE= | |
2723 | fi | |
2724 | ||
2725 | ||
2726 | ||
2727 | ac_ext=c | |
2728 | ac_cpp='$CPP $CPPFLAGS' | |
2729 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2730 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2731 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2732 | if test -n "$ac_tool_prefix"; then | |
2733 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
2734 | set dummy ${ac_tool_prefix}gcc; 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_CC+set}" = set; then | |
2738 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2739 | else | |
2740 | if test -n "$CC"; then | |
2741 | ac_cv_prog_CC="$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_CC="${ac_tool_prefix}gcc" | |
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 | CC=$ac_cv_prog_CC | |
2761 | if test -n "$CC"; then | |
2762 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2763 | echo "${ECHO_T}$CC" >&6; } | |
2764 | else | |
2765 | { echo "$as_me:$LINENO: result: no" >&5 | |
2766 | echo "${ECHO_T}no" >&6; } | |
2767 | fi | |
2768 | ||
2769 | ||
2770 | fi | |
2771 | if test -z "$ac_cv_prog_CC"; then | |
2772 | ac_ct_CC=$CC | |
2773 | # Extract the first word of "gcc", so it can be a program name with args. | |
2774 | set dummy gcc; ac_word=$2 | |
2775 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2776 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2777 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2778 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2779 | else | |
2780 | if test -n "$ac_ct_CC"; then | |
2781 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2782 | else | |
2783 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2784 | for as_dir in $PATH | |
2785 | do | |
2786 | IFS=$as_save_IFS | |
2787 | test -z "$as_dir" && as_dir=. | |
2788 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2789 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2790 | ac_cv_prog_ac_ct_CC="gcc" | |
2791 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2792 | break 2 | |
2793 | fi | |
2794 | done | |
2795 | done | |
2796 | IFS=$as_save_IFS | |
2797 | ||
2798 | fi | |
2799 | fi | |
2800 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2801 | if test -n "$ac_ct_CC"; then | |
2802 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2803 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
2804 | else | |
2805 | { echo "$as_me:$LINENO: result: no" >&5 | |
2806 | echo "${ECHO_T}no" >&6; } | |
2807 | fi | |
2808 | ||
2809 | if test "x$ac_ct_CC" = x; then | |
2810 | CC="" | |
2811 | else | |
2812 | case $cross_compiling:$ac_tool_warned in | |
2813 | yes:) | |
2814 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
2815 | whose name does not start with the host triplet. If you think this | |
2816 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
2817 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
2818 | whose name does not start with the host triplet. If you think this | |
2819 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
2820 | ac_tool_warned=yes ;; | |
2821 | esac | |
2822 | CC=$ac_ct_CC | |
2823 | fi | |
2824 | else | |
2825 | CC="$ac_cv_prog_CC" | |
2826 | fi | |
2827 | ||
2828 | if test -z "$CC"; then | |
2829 | if test -n "$ac_tool_prefix"; then | |
2830 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
2831 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
2832 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2833 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2834 | if test "${ac_cv_prog_CC+set}" = set; then | |
2835 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2836 | else | |
2837 | if test -n "$CC"; then | |
2838 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2839 | else | |
2840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2841 | for as_dir in $PATH | |
2842 | do | |
2843 | IFS=$as_save_IFS | |
2844 | test -z "$as_dir" && as_dir=. | |
2845 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2846 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2847 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
2848 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2849 | break 2 | |
2850 | fi | |
2851 | done | |
2852 | done | |
2853 | IFS=$as_save_IFS | |
2854 | ||
2855 | fi | |
2856 | fi | |
2857 | CC=$ac_cv_prog_CC | |
2858 | if test -n "$CC"; then | |
2859 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2860 | echo "${ECHO_T}$CC" >&6; } | |
2861 | else | |
2862 | { echo "$as_me:$LINENO: result: no" >&5 | |
2863 | echo "${ECHO_T}no" >&6; } | |
2864 | fi | |
2865 | ||
2866 | ||
2867 | fi | |
2868 | fi | |
2869 | if test -z "$CC"; then | |
2870 | # Extract the first word of "cc", so it can be a program name with args. | |
2871 | set dummy cc; ac_word=$2 | |
2872 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2873 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2874 | if test "${ac_cv_prog_CC+set}" = set; then | |
2875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2876 | else | |
2877 | if test -n "$CC"; then | |
2878 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2879 | else | |
2880 | ac_prog_rejected=no | |
2881 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2882 | for as_dir in $PATH | |
2883 | do | |
2884 | IFS=$as_save_IFS | |
2885 | test -z "$as_dir" && as_dir=. | |
2886 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2887 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2888 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2889 | ac_prog_rejected=yes | |
2890 | continue | |
2891 | fi | |
2892 | ac_cv_prog_CC="cc" | |
2893 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2894 | break 2 | |
2895 | fi | |
2896 | done | |
2897 | done | |
2898 | IFS=$as_save_IFS | |
2899 | ||
2900 | if test $ac_prog_rejected = yes; then | |
2901 | # We found a bogon in the path, so make sure we never use it. | |
2902 | set dummy $ac_cv_prog_CC | |
2903 | shift | |
2904 | if test $# != 0; then | |
2905 | # We chose a different compiler from the bogus one. | |
2906 | # However, it has the same basename, so the bogon will be chosen | |
2907 | # first if we set CC to just the basename; use the full file name. | |
2908 | shift | |
2909 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2910 | fi | |
2911 | fi | |
2912 | fi | |
2913 | fi | |
2914 | CC=$ac_cv_prog_CC | |
2915 | if test -n "$CC"; then | |
2916 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2917 | echo "${ECHO_T}$CC" >&6; } | |
2918 | else | |
2919 | { echo "$as_me:$LINENO: result: no" >&5 | |
2920 | echo "${ECHO_T}no" >&6; } | |
2921 | fi | |
2922 | ||
2923 | ||
2924 | fi | |
2925 | if test -z "$CC"; then | |
2926 | if test -n "$ac_tool_prefix"; then | |
2927 | for ac_prog in cl.exe | |
2928 | do | |
2929 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2930 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2931 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2932 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2933 | if test "${ac_cv_prog_CC+set}" = set; then | |
2934 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2935 | else | |
2936 | if test -n "$CC"; then | |
2937 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2938 | else | |
2939 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2940 | for as_dir in $PATH | |
2941 | do | |
2942 | IFS=$as_save_IFS | |
2943 | test -z "$as_dir" && as_dir=. | |
2944 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2945 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2946 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2947 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2948 | break 2 | |
2949 | fi | |
2950 | done | |
2951 | done | |
2952 | IFS=$as_save_IFS | |
2953 | ||
2954 | fi | |
2955 | fi | |
2956 | CC=$ac_cv_prog_CC | |
2957 | if test -n "$CC"; then | |
2958 | { echo "$as_me:$LINENO: result: $CC" >&5 | |
2959 | echo "${ECHO_T}$CC" >&6; } | |
2960 | else | |
2961 | { echo "$as_me:$LINENO: result: no" >&5 | |
2962 | echo "${ECHO_T}no" >&6; } | |
2963 | fi | |
2964 | ||
2965 | ||
2966 | test -n "$CC" && break | |
2967 | done | |
2968 | fi | |
2969 | if test -z "$CC"; then | |
2970 | ac_ct_CC=$CC | |
2971 | for ac_prog in cl.exe | |
2972 | do | |
2973 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2974 | set dummy $ac_prog; ac_word=$2 | |
2975 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2976 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
2977 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2979 | else | |
2980 | if test -n "$ac_ct_CC"; then | |
2981 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2982 | else | |
2983 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2984 | for as_dir in $PATH | |
2985 | do | |
2986 | IFS=$as_save_IFS | |
2987 | test -z "$as_dir" && as_dir=. | |
2988 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2989 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
2990 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2991 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2992 | break 2 | |
2993 | fi | |
2994 | done | |
2995 | done | |
2996 | IFS=$as_save_IFS | |
2997 | ||
2998 | fi | |
2999 | fi | |
3000 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3001 | if test -n "$ac_ct_CC"; then | |
3002 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
3003 | echo "${ECHO_T}$ac_ct_CC" >&6; } | |
3004 | else | |
3005 | { echo "$as_me:$LINENO: result: no" >&5 | |
3006 | echo "${ECHO_T}no" >&6; } | |
3007 | fi | |
3008 | ||
3009 | ||
3010 | test -n "$ac_ct_CC" && break | |
3011 | done | |
3012 | ||
3013 | if test "x$ac_ct_CC" = x; then | |
3014 | CC="" | |
3015 | else | |
3016 | case $cross_compiling:$ac_tool_warned in | |
3017 | yes:) | |
3018 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3019 | whose name does not start with the host triplet. If you think this | |
3020 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3021 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3022 | whose name does not start with the host triplet. If you think this | |
3023 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3024 | ac_tool_warned=yes ;; | |
3025 | esac | |
3026 | CC=$ac_ct_CC | |
3027 | fi | |
3028 | fi | |
3029 | ||
3030 | fi | |
3031 | ||
3032 | ||
3033 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
3034 | See \`config.log' for more details." >&5 | |
3035 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
3036 | See \`config.log' for more details." >&2;} | |
3037 | { (exit 1); exit 1; }; } | |
3038 | ||
3039 | # Provide some information about the compiler. | |
3040 | echo "$as_me:$LINENO: checking for C compiler version" >&5 | |
3041 | ac_compiler=`set X $ac_compile; echo $2` | |
3042 | { (ac_try="$ac_compiler --version >&5" | |
3043 | case "(($ac_try" in | |
3044 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3045 | *) ac_try_echo=$ac_try;; | |
3046 | esac | |
3047 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3048 | (eval "$ac_compiler --version >&5") 2>&5 | |
3049 | ac_status=$? | |
3050 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3051 | (exit $ac_status); } | |
3052 | { (ac_try="$ac_compiler -v >&5" | |
3053 | case "(($ac_try" in | |
3054 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3055 | *) ac_try_echo=$ac_try;; | |
3056 | esac | |
3057 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3058 | (eval "$ac_compiler -v >&5") 2>&5 | |
3059 | ac_status=$? | |
3060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3061 | (exit $ac_status); } | |
3062 | { (ac_try="$ac_compiler -V >&5" | |
3063 | case "(($ac_try" in | |
3064 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3065 | *) ac_try_echo=$ac_try;; | |
3066 | esac | |
3067 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3068 | (eval "$ac_compiler -V >&5") 2>&5 | |
3069 | ac_status=$? | |
3070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3071 | (exit $ac_status); } | |
3072 | ||
3073 | cat >conftest.$ac_ext <<_ACEOF | |
3074 | /* confdefs.h. */ | |
3075 | _ACEOF | |
3076 | cat confdefs.h >>conftest.$ac_ext | |
3077 | cat >>conftest.$ac_ext <<_ACEOF | |
3078 | /* end confdefs.h. */ | |
3079 | ||
3080 | int | |
3081 | main () | |
3082 | { | |
3083 | ||
3084 | ; | |
3085 | return 0; | |
3086 | } | |
3087 | _ACEOF | |
3088 | ac_clean_files_save=$ac_clean_files | |
3089 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
3090 | # Try to create an executable without -o first, disregard a.out. | |
3091 | # It will help us diagnose broken compilers, and finding out an intuition | |
3092 | # of exeext. | |
3093 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
3094 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } | |
3095 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3096 | # | |
3097 | # List of possible output files, starting from the most likely. | |
3098 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) | |
3099 | # only as a last resort. b.out is created by i960 compilers. | |
3100 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' | |
3101 | # | |
3102 | # The IRIX 6 linker writes into existing files which may not be | |
3103 | # executable, retaining their permissions. Remove them first so a | |
3104 | # subsequent execution test works. | |
3105 | ac_rmfiles= | |
3106 | for ac_file in $ac_files | |
3107 | do | |
3108 | case $ac_file in | |
3109 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
3110 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3111 | esac | |
3112 | done | |
3113 | rm -f $ac_rmfiles | |
3114 | ||
3115 | if { (ac_try="$ac_link_default" | |
3116 | case "(($ac_try" in | |
3117 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3118 | *) ac_try_echo=$ac_try;; | |
3119 | esac | |
3120 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3121 | (eval "$ac_link_default") 2>&5 | |
3122 | ac_status=$? | |
3123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3124 | (exit $ac_status); }; then | |
3125 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3126 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3127 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3128 | # so that the user can short-circuit this test for compilers unknown to | |
3129 | # Autoconf. | |
3130 | for ac_file in $ac_files '' | |
3131 | do | |
3132 | test -f "$ac_file" || continue | |
3133 | case $ac_file in | |
3134 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) | |
3135 | ;; | |
3136 | [ab].out ) | |
3137 | # We found the default executable, but exeext='' is most | |
3138 | # certainly right. | |
3139 | break;; | |
3140 | *.* ) | |
3141 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3142 | then :; else | |
3143 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3144 | fi | |
3145 | # We set ac_cv_exeext here because the later test for it is not | |
3146 | # safe: cross compilers may not add the suffix if given an `-o' | |
3147 | # argument, so we may need to know it at that point already. | |
3148 | # Even if this section looks crufty: it has the advantage of | |
3149 | # actually working. | |
3150 | break;; | |
3151 | * ) | |
3152 | break;; | |
3153 | esac | |
3154 | done | |
3155 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3156 | ||
3157 | else | |
3158 | ac_file='' | |
3159 | fi | |
3160 | ||
3161 | { echo "$as_me:$LINENO: result: $ac_file" >&5 | |
3162 | echo "${ECHO_T}$ac_file" >&6; } | |
3163 | if test -z "$ac_file"; then | |
3164 | echo "$as_me: failed program was:" >&5 | |
3165 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3166 | ||
3167 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
3168 | See \`config.log' for more details." >&5 | |
3169 | echo "$as_me: error: C compiler cannot create executables | |
3170 | See \`config.log' for more details." >&2;} | |
3171 | { (exit 77); exit 77; }; } | |
3172 | fi | |
3173 | ||
3174 | ac_exeext=$ac_cv_exeext | |
3175 | ||
3176 | # Check that the compiler produces executables we can run. If not, either | |
3177 | # the compiler is broken, or we cross compile. | |
3178 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
3179 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } | |
3180 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
3181 | # If not cross compiling, check that we can run a simple program. | |
3182 | if test "$cross_compiling" != yes; then | |
3183 | if { ac_try='./$ac_file' | |
3184 | { (case "(($ac_try" in | |
3185 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3186 | *) ac_try_echo=$ac_try;; | |
3187 | esac | |
3188 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3189 | (eval "$ac_try") 2>&5 | |
3190 | ac_status=$? | |
3191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3192 | (exit $ac_status); }; }; then | |
3193 | cross_compiling=no | |
3194 | else | |
3195 | if test "$cross_compiling" = maybe; then | |
3196 | cross_compiling=yes | |
3197 | else | |
3198 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
3199 | If you meant to cross compile, use \`--host'. | |
3200 | See \`config.log' for more details." >&5 | |
3201 | echo "$as_me: error: cannot run C compiled programs. | |
3202 | If you meant to cross compile, use \`--host'. | |
3203 | See \`config.log' for more details." >&2;} | |
3204 | { (exit 1); exit 1; }; } | |
3205 | fi | |
3206 | fi | |
3207 | fi | |
3208 | { echo "$as_me:$LINENO: result: yes" >&5 | |
3209 | echo "${ECHO_T}yes" >&6; } | |
3210 | ||
3211 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
3212 | ac_clean_files=$ac_clean_files_save | |
3213 | # Check that the compiler produces executables we can run. If not, either | |
3214 | # the compiler is broken, or we cross compile. | |
3215 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
3216 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } | |
3217 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
3218 | echo "${ECHO_T}$cross_compiling" >&6; } | |
3219 | ||
3220 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
3221 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } | |
3222 | if { (ac_try="$ac_link" | |
3223 | case "(($ac_try" in | |
3224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3225 | *) ac_try_echo=$ac_try;; | |
3226 | esac | |
3227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3228 | (eval "$ac_link") 2>&5 | |
3229 | ac_status=$? | |
3230 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3231 | (exit $ac_status); }; then | |
3232 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3233 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3234 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3235 | # `rm'. | |
3236 | for ac_file in conftest.exe conftest conftest.*; do | |
3237 | test -f "$ac_file" || continue | |
3238 | case $ac_file in | |
3239 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; | |
3240 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3241 | break;; | |
3242 | * ) break;; | |
3243 | esac | |
3244 | done | |
3245 | else | |
3246 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
3247 | See \`config.log' for more details." >&5 | |
3248 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
3249 | See \`config.log' for more details." >&2;} | |
3250 | { (exit 1); exit 1; }; } | |
3251 | fi | |
3252 | ||
3253 | rm -f conftest$ac_cv_exeext | |
3254 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
3255 | echo "${ECHO_T}$ac_cv_exeext" >&6; } | |
3256 | ||
3257 | rm -f conftest.$ac_ext | |
3258 | EXEEXT=$ac_cv_exeext | |
3259 | ac_exeext=$EXEEXT | |
3260 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
3261 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } | |
3262 | if test "${ac_cv_objext+set}" = set; then | |
3263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3264 | else | |
3265 | cat >conftest.$ac_ext <<_ACEOF | |
3266 | /* confdefs.h. */ | |
3267 | _ACEOF | |
3268 | cat confdefs.h >>conftest.$ac_ext | |
3269 | cat >>conftest.$ac_ext <<_ACEOF | |
3270 | /* end confdefs.h. */ | |
3271 | ||
3272 | int | |
3273 | main () | |
3274 | { | |
3275 | ||
3276 | ; | |
3277 | return 0; | |
3278 | } | |
3279 | _ACEOF | |
3280 | rm -f conftest.o conftest.obj | |
3281 | if { (ac_try="$ac_compile" | |
3282 | case "(($ac_try" in | |
3283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3284 | *) ac_try_echo=$ac_try;; | |
3285 | esac | |
3286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3287 | (eval "$ac_compile") 2>&5 | |
3288 | ac_status=$? | |
3289 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3290 | (exit $ac_status); }; then | |
3291 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3292 | test -f "$ac_file" || continue; | |
3293 | case $ac_file in | |
3294 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; | |
3295 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3296 | break;; | |
3297 | esac | |
3298 | done | |
3299 | else | |
3300 | echo "$as_me: failed program was:" >&5 | |
3301 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3302 | ||
3303 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
3304 | See \`config.log' for more details." >&5 | |
3305 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
3306 | See \`config.log' for more details." >&2;} | |
3307 | { (exit 1); exit 1; }; } | |
3308 | fi | |
3309 | ||
3310 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3311 | fi | |
3312 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
3313 | echo "${ECHO_T}$ac_cv_objext" >&6; } | |
3314 | OBJEXT=$ac_cv_objext | |
3315 | ac_objext=$OBJEXT | |
3316 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
3317 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } | |
3318 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
3319 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3320 | else | |
3321 | cat >conftest.$ac_ext <<_ACEOF | |
3322 | /* confdefs.h. */ | |
3323 | _ACEOF | |
3324 | cat confdefs.h >>conftest.$ac_ext | |
3325 | cat >>conftest.$ac_ext <<_ACEOF | |
3326 | /* end confdefs.h. */ | |
3327 | ||
3328 | int | |
3329 | main () | |
3330 | { | |
3331 | #ifndef __GNUC__ | |
3332 | choke me | |
3333 | #endif | |
3334 | ||
3335 | ; | |
3336 | return 0; | |
3337 | } | |
3338 | _ACEOF | |
3339 | rm -f conftest.$ac_objext | |
3340 | if { (ac_try="$ac_compile" | |
3341 | case "(($ac_try" in | |
3342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3343 | *) ac_try_echo=$ac_try;; | |
3344 | esac | |
3345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3346 | (eval "$ac_compile") 2>conftest.er1 | |
3347 | ac_status=$? | |
3348 | grep -v '^ *+' conftest.er1 >conftest.err | |
3349 | rm -f conftest.er1 | |
3350 | cat conftest.err >&5 | |
3351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3352 | (exit $ac_status); } && { | |
3353 | test -z "$ac_c_werror_flag" || | |
3354 | test ! -s conftest.err | |
3355 | } && test -s conftest.$ac_objext; then | |
3356 | ac_compiler_gnu=yes | |
3357 | else | |
3358 | echo "$as_me: failed program was:" >&5 | |
3359 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3360 | ||
3361 | ac_compiler_gnu=no | |
3362 | fi | |
3363 | ||
3364 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3365 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
3366 | ||
3367 | fi | |
3368 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
3369 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } | |
3370 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
3371 | ac_test_CFLAGS=${CFLAGS+set} | |
3372 | ac_save_CFLAGS=$CFLAGS | |
3373 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
3374 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } | |
3375 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
3376 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3377 | else | |
3378 | ac_save_c_werror_flag=$ac_c_werror_flag | |
3379 | ac_c_werror_flag=yes | |
3380 | ac_cv_prog_cc_g=no | |
3381 | CFLAGS="-g" | |
3382 | cat >conftest.$ac_ext <<_ACEOF | |
3383 | /* confdefs.h. */ | |
3384 | _ACEOF | |
3385 | cat confdefs.h >>conftest.$ac_ext | |
3386 | cat >>conftest.$ac_ext <<_ACEOF | |
3387 | /* end confdefs.h. */ | |
3388 | ||
3389 | int | |
3390 | main () | |
3391 | { | |
3392 | ||
3393 | ; | |
3394 | return 0; | |
3395 | } | |
3396 | _ACEOF | |
3397 | rm -f conftest.$ac_objext | |
3398 | if { (ac_try="$ac_compile" | |
3399 | case "(($ac_try" in | |
3400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3401 | *) ac_try_echo=$ac_try;; | |
3402 | esac | |
3403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3404 | (eval "$ac_compile") 2>conftest.er1 | |
3405 | ac_status=$? | |
3406 | grep -v '^ *+' conftest.er1 >conftest.err | |
3407 | rm -f conftest.er1 | |
3408 | cat conftest.err >&5 | |
3409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3410 | (exit $ac_status); } && { | |
3411 | test -z "$ac_c_werror_flag" || | |
3412 | test ! -s conftest.err | |
3413 | } && test -s conftest.$ac_objext; then | |
3414 | ac_cv_prog_cc_g=yes | |
3415 | else | |
3416 | echo "$as_me: failed program was:" >&5 | |
3417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3418 | ||
3419 | CFLAGS="" | |
3420 | cat >conftest.$ac_ext <<_ACEOF | |
3421 | /* confdefs.h. */ | |
3422 | _ACEOF | |
3423 | cat confdefs.h >>conftest.$ac_ext | |
3424 | cat >>conftest.$ac_ext <<_ACEOF | |
3425 | /* end confdefs.h. */ | |
3426 | ||
3427 | int | |
3428 | main () | |
3429 | { | |
3430 | ||
3431 | ; | |
3432 | return 0; | |
3433 | } | |
3434 | _ACEOF | |
3435 | rm -f conftest.$ac_objext | |
3436 | if { (ac_try="$ac_compile" | |
3437 | case "(($ac_try" in | |
3438 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3439 | *) ac_try_echo=$ac_try;; | |
3440 | esac | |
3441 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3442 | (eval "$ac_compile") 2>conftest.er1 | |
3443 | ac_status=$? | |
3444 | grep -v '^ *+' conftest.er1 >conftest.err | |
3445 | rm -f conftest.er1 | |
3446 | cat conftest.err >&5 | |
3447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3448 | (exit $ac_status); } && { | |
3449 | test -z "$ac_c_werror_flag" || | |
3450 | test ! -s conftest.err | |
3451 | } && test -s conftest.$ac_objext; then | |
3452 | : | |
3453 | else | |
3454 | echo "$as_me: failed program was:" >&5 | |
3455 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3456 | ||
3457 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3458 | CFLAGS="-g" | |
3459 | cat >conftest.$ac_ext <<_ACEOF | |
3460 | /* confdefs.h. */ | |
3461 | _ACEOF | |
3462 | cat confdefs.h >>conftest.$ac_ext | |
3463 | cat >>conftest.$ac_ext <<_ACEOF | |
3464 | /* end confdefs.h. */ | |
3465 | ||
3466 | int | |
3467 | main () | |
3468 | { | |
3469 | ||
3470 | ; | |
3471 | return 0; | |
3472 | } | |
3473 | _ACEOF | |
3474 | rm -f conftest.$ac_objext | |
3475 | if { (ac_try="$ac_compile" | |
3476 | case "(($ac_try" in | |
3477 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3478 | *) ac_try_echo=$ac_try;; | |
3479 | esac | |
3480 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3481 | (eval "$ac_compile") 2>conftest.er1 | |
3482 | ac_status=$? | |
3483 | grep -v '^ *+' conftest.er1 >conftest.err | |
3484 | rm -f conftest.er1 | |
3485 | cat conftest.err >&5 | |
3486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3487 | (exit $ac_status); } && { | |
3488 | test -z "$ac_c_werror_flag" || | |
3489 | test ! -s conftest.err | |
3490 | } && test -s conftest.$ac_objext; then | |
3491 | ac_cv_prog_cc_g=yes | |
3492 | else | |
3493 | echo "$as_me: failed program was:" >&5 | |
3494 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3495 | ||
3496 | ||
3497 | fi | |
3498 | ||
3499 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3500 | fi | |
3501 | ||
3502 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3503 | fi | |
3504 | ||
3505 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3506 | ac_c_werror_flag=$ac_save_c_werror_flag | |
3507 | fi | |
3508 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
3509 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } | |
3510 | if test "$ac_test_CFLAGS" = set; then | |
3511 | CFLAGS=$ac_save_CFLAGS | |
3512 | elif test $ac_cv_prog_cc_g = yes; then | |
3513 | if test "$GCC" = yes; then | |
3514 | CFLAGS="-g -O2" | |
3515 | else | |
3516 | CFLAGS="-g" | |
3517 | fi | |
3518 | else | |
3519 | if test "$GCC" = yes; then | |
3520 | CFLAGS="-O2" | |
3521 | else | |
3522 | CFLAGS= | |
3523 | fi | |
3524 | fi | |
3525 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 | |
3526 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } | |
3527 | if test "${ac_cv_prog_cc_c89+set}" = set; then | |
3528 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3529 | else | |
3530 | ac_cv_prog_cc_c89=no | |
3531 | ac_save_CC=$CC | |
3532 | cat >conftest.$ac_ext <<_ACEOF | |
3533 | /* confdefs.h. */ | |
3534 | _ACEOF | |
3535 | cat confdefs.h >>conftest.$ac_ext | |
3536 | cat >>conftest.$ac_ext <<_ACEOF | |
3537 | /* end confdefs.h. */ | |
3538 | #include <stdarg.h> | |
3539 | #include <stdio.h> | |
3540 | #include <sys/types.h> | |
3541 | #include <sys/stat.h> | |
3542 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
3543 | struct buf { int x; }; | |
3544 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
3545 | static char *e (p, i) | |
3546 | char **p; | |
3547 | int i; | |
3548 | { | |
3549 | return p[i]; | |
3550 | } | |
3551 | static char *f (char * (*g) (char **, int), char **p, ...) | |
3552 | { | |
3553 | char *s; | |
3554 | va_list v; | |
3555 | va_start (v,p); | |
3556 | s = g (p, va_arg (v,int)); | |
3557 | va_end (v); | |
3558 | return s; | |
3559 | } | |
3560 | ||
3561 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
3562 | function prototypes and stuff, but not '\xHH' hex character constants. | |
3563 | These don't provoke an error unfortunately, instead are silently treated | |
3564 | as 'x'. The following induces an error, until -std is added to get | |
3565 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
3566 | array size at least. It's necessary to write '\x00'==0 to get something | |
3567 | that's true only with -std. */ | |
3568 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
3569 | ||
3570 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
3571 | inside strings and character constants. */ | |
3572 | #define FOO(x) 'x' | |
3573 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
3574 | ||
3575 | int test (int i, double x); | |
3576 | struct s1 {int (*f) (int a);}; | |
3577 | struct s2 {int (*f) (double a);}; | |
3578 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
3579 | int argc; | |
3580 | char **argv; | |
3581 | int | |
3582 | main () | |
3583 | { | |
3584 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
3585 | ; | |
3586 | return 0; | |
3587 | } | |
3588 | _ACEOF | |
3589 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
3590 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
3591 | do | |
3592 | CC="$ac_save_CC $ac_arg" | |
3593 | rm -f conftest.$ac_objext | |
3594 | if { (ac_try="$ac_compile" | |
3595 | case "(($ac_try" in | |
3596 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3597 | *) ac_try_echo=$ac_try;; | |
3598 | esac | |
3599 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3600 | (eval "$ac_compile") 2>conftest.er1 | |
3601 | ac_status=$? | |
3602 | grep -v '^ *+' conftest.er1 >conftest.err | |
3603 | rm -f conftest.er1 | |
3604 | cat conftest.err >&5 | |
3605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3606 | (exit $ac_status); } && { | |
3607 | test -z "$ac_c_werror_flag" || | |
3608 | test ! -s conftest.err | |
3609 | } && test -s conftest.$ac_objext; then | |
3610 | ac_cv_prog_cc_c89=$ac_arg | |
3611 | else | |
3612 | echo "$as_me: failed program was:" >&5 | |
3613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3614 | ||
3615 | ||
3616 | fi | |
3617 | ||
3618 | rm -f core conftest.err conftest.$ac_objext | |
3619 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
3620 | done | |
3621 | rm -f conftest.$ac_ext | |
3622 | CC=$ac_save_CC | |
3623 | ||
3624 | fi | |
3625 | # AC_CACHE_VAL | |
3626 | case "x$ac_cv_prog_cc_c89" in | |
3627 | x) | |
3628 | { echo "$as_me:$LINENO: result: none needed" >&5 | |
3629 | echo "${ECHO_T}none needed" >&6; } ;; | |
3630 | xno) | |
3631 | { echo "$as_me:$LINENO: result: unsupported" >&5 | |
3632 | echo "${ECHO_T}unsupported" >&6; } ;; | |
3633 | *) | |
3634 | CC="$CC $ac_cv_prog_cc_c89" | |
3635 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 | |
3636 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; | |
3637 | esac | |
3638 | ||
3639 | ||
3640 | ac_ext=c | |
3641 | ac_cpp='$CPP $CPPFLAGS' | |
3642 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3643 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3644 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3645 | ||
3646 | depcc="$CC" am_compiler_list= | |
3647 | ||
3648 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
3649 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
3650 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
3651 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3652 | else | |
3653 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3654 | # We make a subdir and do the tests there. Otherwise we can end up | |
3655 | # making bogus files that we don't know about and never remove. For | |
3656 | # instance it was reported that on HP-UX the gcc test will end up | |
3657 | # making a dummy file named `D' -- because `-MD' means `put the output | |
3658 | # in D'. | |
3659 | mkdir conftest.dir | |
3660 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3661 | # using a relative directory. | |
3662 | cp "$am_depcomp" conftest.dir | |
3663 | cd conftest.dir | |
3664 | # We will build objects and dependencies in a subdirectory because | |
3665 | # it helps to detect inapplicable dependency modes. For instance | |
3666 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3667 | # side effect of compilation, but ICC will put the dependencies in | |
3668 | # the current directory while Tru64 will put them in the object | |
3669 | # directory. | |
3670 | mkdir sub | |
3671 | ||
3672 | am_cv_CC_dependencies_compiler_type=none | |
3673 | if test "$am_compiler_list" = ""; then | |
3674 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3675 | fi | |
3676 | for depmode in $am_compiler_list; do | |
3677 | # Setup a source with many dependencies, because some compilers | |
3678 | # like to wrap large dependency lists on column 80 (with \), and | |
3679 | # we should not choose a depcomp mode which is confused by this. | |
3680 | # | |
3681 | # We need to recreate these files for each test, as the compiler may | |
3682 | # overwrite some of them when testing with obscure command lines. | |
3683 | # This happens at least with the AIX C compiler. | |
3684 | : > sub/conftest.c | |
3685 | for i in 1 2 3 4 5 6; do | |
3686 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3687 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
3688 | # Solaris 8's {/usr,}/bin/sh. | |
3689 | touch sub/conftst$i.h | |
3690 | done | |
3691 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3692 | ||
3693 | case $depmode in | |
3694 | nosideeffect) | |
3695 | # after this tag, mechanisms are not by side-effect, so they'll | |
3696 | # only be used when explicitly requested | |
3697 | if test "x$enable_dependency_tracking" = xyes; then | |
3698 | continue | |
3699 | else | |
3700 | break | |
3701 | fi | |
3702 | ;; | |
3703 | none) break ;; | |
3704 | esac | |
3705 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
3706 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3707 | # handle `-M -o', and we need to detect this. | |
3708 | if depmode=$depmode \ | |
3709 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
3710 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3711 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
3712 | >/dev/null 2>conftest.err && | |
3713 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3714 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
3715 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3716 | # icc doesn't choke on unknown options, it will just issue warnings | |
3717 | # or remarks (even with -Werror). So we grep stderr for any message | |
3718 | # that says an option was ignored or not supported. | |
3719 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3720 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3721 | # The diagnosis changed in icc 8.0: | |
3722 | # icc: Command line remark: option '-MP' not supported | |
3723 | if (grep 'ignoring option' conftest.err || | |
3724 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3725 | am_cv_CC_dependencies_compiler_type=$depmode | |
3726 | break | |
3727 | fi | |
3728 | fi | |
3729 | done | |
3730 | ||
3731 | cd .. | |
3732 | rm -rf conftest.dir | |
3733 | else | |
3734 | am_cv_CC_dependencies_compiler_type=none | |
3735 | fi | |
3736 | ||
3737 | fi | |
3738 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
3739 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } | |
3740 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
3741 | ||
3742 | ||
3743 | ||
3744 | if | |
3745 | test "x$enable_dependency_tracking" != xno \ | |
3746 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
3747 | am__fastdepCC_TRUE= | |
3748 | am__fastdepCC_FALSE='#' | |
3749 | else | |
3750 | am__fastdepCC_TRUE='#' | |
3751 | am__fastdepCC_FALSE= | |
3752 | fi | |
3753 | ||
3754 | ||
3755 | if test "x$CC" != xcc; then | |
3756 | { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 | |
3757 | echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } | |
3758 | else | |
3759 | { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 | |
3760 | echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } | |
3761 | fi | |
3762 | set dummy $CC; ac_cc=`echo $2 | | |
3763 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
3764 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then | |
3765 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3766 | else | |
3767 | cat >conftest.$ac_ext <<_ACEOF | |
3768 | /* confdefs.h. */ | |
3769 | _ACEOF | |
3770 | cat confdefs.h >>conftest.$ac_ext | |
3771 | cat >>conftest.$ac_ext <<_ACEOF | |
3772 | /* end confdefs.h. */ | |
3773 | ||
3774 | int | |
3775 | main () | |
3776 | { | |
3777 | ||
3778 | ; | |
3779 | return 0; | |
3780 | } | |
3781 | _ACEOF | |
3782 | # Make sure it works both with $CC and with simple cc. | |
3783 | # We do the test twice because some compilers refuse to overwrite an | |
3784 | # existing .o file with -o, though they will create one. | |
3785 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
3786 | rm -f conftest2.* | |
3787 | if { (case "(($ac_try" in | |
3788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3789 | *) ac_try_echo=$ac_try;; | |
3790 | esac | |
3791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3792 | (eval "$ac_try") 2>&5 | |
3793 | ac_status=$? | |
3794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3795 | (exit $ac_status); } && | |
3796 | test -f conftest2.$ac_objext && { (case "(($ac_try" in | |
3797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3798 | *) ac_try_echo=$ac_try;; | |
3799 | esac | |
3800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3801 | (eval "$ac_try") 2>&5 | |
3802 | ac_status=$? | |
3803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3804 | (exit $ac_status); }; | |
3805 | then | |
3806 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes | |
3807 | if test "x$CC" != xcc; then | |
3808 | # Test first that cc exists at all. | |
3809 | if { ac_try='cc -c conftest.$ac_ext >&5' | |
3810 | { (case "(($ac_try" in | |
3811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3812 | *) ac_try_echo=$ac_try;; | |
3813 | esac | |
3814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3815 | (eval "$ac_try") 2>&5 | |
3816 | ac_status=$? | |
3817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3818 | (exit $ac_status); }; }; then | |
3819 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' | |
3820 | rm -f conftest2.* | |
3821 | if { (case "(($ac_try" in | |
3822 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3823 | *) ac_try_echo=$ac_try;; | |
3824 | esac | |
3825 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3826 | (eval "$ac_try") 2>&5 | |
3827 | ac_status=$? | |
3828 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3829 | (exit $ac_status); } && | |
3830 | test -f conftest2.$ac_objext && { (case "(($ac_try" in | |
3831 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3832 | *) ac_try_echo=$ac_try;; | |
3833 | esac | |
3834 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
3835 | (eval "$ac_try") 2>&5 | |
3836 | ac_status=$? | |
3837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3838 | (exit $ac_status); }; | |
3839 | then | |
3840 | # cc works too. | |
3841 | : | |
3842 | else | |
3843 | # cc exists but doesn't like -o. | |
3844 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
3845 | fi | |
3846 | fi | |
3847 | fi | |
3848 | else | |
3849 | eval ac_cv_prog_cc_${ac_cc}_c_o=no | |
3850 | fi | |
3851 | rm -f core conftest* | |
3852 | ||
3853 | fi | |
3854 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then | |
3855 | { echo "$as_me:$LINENO: result: yes" >&5 | |
3856 | echo "${ECHO_T}yes" >&6; } | |
3857 | else | |
3858 | { echo "$as_me:$LINENO: result: no" >&5 | |
3859 | echo "${ECHO_T}no" >&6; } | |
3860 | ||
3861 | cat >>confdefs.h <<\_ACEOF | |
3862 | #define NO_MINUS_C_MINUS_O 1 | |
3863 | _ACEOF | |
3864 | ||
3865 | fi | |
3866 | ||
3867 | # FIXME: we rely on the cache variable name because | |
3868 | # there is no other way. | |
3869 | set dummy $CC | |
3870 | ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` | |
3871 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then | |
3872 | # Losing compiler, so override with the script. | |
3873 | # FIXME: It is wrong to rewrite CC. | |
3874 | # But if we don't then we get into trouble of one sort or another. | |
3875 | # A longer-term fix would be to have automake use am__CC in this case, | |
3876 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
3877 | CC="$am_aux_dir/compile $CC" | |
3878 | fi | |
3879 | ||
3880 | ac_ext=cpp | |
3881 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3882 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3883 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3884 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3885 | if test -z "$CXX"; then | |
3886 | if test -n "$CCC"; then | |
3887 | CXX=$CCC | |
3888 | else | |
3889 | if test -n "$ac_tool_prefix"; then | |
3890 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3891 | do | |
3892 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3893 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3894 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3895 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3896 | if test "${ac_cv_prog_CXX+set}" = set; then | |
3897 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3898 | else | |
3899 | if test -n "$CXX"; then | |
3900 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3901 | else | |
3902 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3903 | for as_dir in $PATH | |
3904 | do | |
3905 | IFS=$as_save_IFS | |
3906 | test -z "$as_dir" && as_dir=. | |
3907 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3908 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3909 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3910 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3911 | break 2 | |
3912 | fi | |
3913 | done | |
3914 | done | |
3915 | IFS=$as_save_IFS | |
3916 | ||
3917 | fi | |
3918 | fi | |
3919 | CXX=$ac_cv_prog_CXX | |
3920 | if test -n "$CXX"; then | |
3921 | { echo "$as_me:$LINENO: result: $CXX" >&5 | |
3922 | echo "${ECHO_T}$CXX" >&6; } | |
3923 | else | |
3924 | { echo "$as_me:$LINENO: result: no" >&5 | |
3925 | echo "${ECHO_T}no" >&6; } | |
3926 | fi | |
3927 | ||
3928 | ||
3929 | test -n "$CXX" && break | |
3930 | done | |
3931 | fi | |
3932 | if test -z "$CXX"; then | |
3933 | ac_ct_CXX=$CXX | |
3934 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3935 | do | |
3936 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3937 | set dummy $ac_prog; ac_word=$2 | |
3938 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
3939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
3940 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then | |
3941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3942 | else | |
3943 | if test -n "$ac_ct_CXX"; then | |
3944 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3945 | else | |
3946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3947 | for as_dir in $PATH | |
3948 | do | |
3949 | IFS=$as_save_IFS | |
3950 | test -z "$as_dir" && as_dir=. | |
3951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3952 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
3953 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3954 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3955 | break 2 | |
3956 | fi | |
3957 | done | |
3958 | done | |
3959 | IFS=$as_save_IFS | |
3960 | ||
3961 | fi | |
3962 | fi | |
3963 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3964 | if test -n "$ac_ct_CXX"; then | |
3965 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 | |
3966 | echo "${ECHO_T}$ac_ct_CXX" >&6; } | |
3967 | else | |
3968 | { echo "$as_me:$LINENO: result: no" >&5 | |
3969 | echo "${ECHO_T}no" >&6; } | |
3970 | fi | |
3971 | ||
3972 | ||
3973 | test -n "$ac_ct_CXX" && break | |
3974 | done | |
3975 | ||
3976 | if test "x$ac_ct_CXX" = x; then | |
3977 | CXX="g++" | |
3978 | else | |
3979 | case $cross_compiling:$ac_tool_warned in | |
3980 | yes:) | |
3981 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
3982 | whose name does not start with the host triplet. If you think this | |
3983 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
3984 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
3985 | whose name does not start with the host triplet. If you think this | |
3986 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
3987 | ac_tool_warned=yes ;; | |
3988 | esac | |
3989 | CXX=$ac_ct_CXX | |
3990 | fi | |
3991 | fi | |
3992 | ||
3993 | fi | |
3994 | fi | |
3995 | # Provide some information about the compiler. | |
3996 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 | |
3997 | ac_compiler=`set X $ac_compile; echo $2` | |
3998 | { (ac_try="$ac_compiler --version >&5" | |
3999 | case "(($ac_try" in | |
4000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4001 | *) ac_try_echo=$ac_try;; | |
4002 | esac | |
4003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4004 | (eval "$ac_compiler --version >&5") 2>&5 | |
4005 | ac_status=$? | |
4006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4007 | (exit $ac_status); } | |
4008 | { (ac_try="$ac_compiler -v >&5" | |
4009 | case "(($ac_try" in | |
4010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4011 | *) ac_try_echo=$ac_try;; | |
4012 | esac | |
4013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4014 | (eval "$ac_compiler -v >&5") 2>&5 | |
4015 | ac_status=$? | |
4016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4017 | (exit $ac_status); } | |
4018 | { (ac_try="$ac_compiler -V >&5" | |
4019 | case "(($ac_try" in | |
4020 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4021 | *) ac_try_echo=$ac_try;; | |
4022 | esac | |
4023 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4024 | (eval "$ac_compiler -V >&5") 2>&5 | |
4025 | ac_status=$? | |
4026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4027 | (exit $ac_status); } | |
4028 | ||
4029 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 | |
4030 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } | |
4031 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then | |
4032 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4033 | else | |
4034 | cat >conftest.$ac_ext <<_ACEOF | |
4035 | /* confdefs.h. */ | |
4036 | _ACEOF | |
4037 | cat confdefs.h >>conftest.$ac_ext | |
4038 | cat >>conftest.$ac_ext <<_ACEOF | |
4039 | /* end confdefs.h. */ | |
4040 | ||
4041 | int | |
4042 | main () | |
4043 | { | |
4044 | #ifndef __GNUC__ | |
4045 | choke me | |
4046 | #endif | |
4047 | ||
4048 | ; | |
4049 | return 0; | |
4050 | } | |
4051 | _ACEOF | |
4052 | rm -f conftest.$ac_objext | |
4053 | if { (ac_try="$ac_compile" | |
4054 | case "(($ac_try" in | |
4055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4056 | *) ac_try_echo=$ac_try;; | |
4057 | esac | |
4058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4059 | (eval "$ac_compile") 2>conftest.er1 | |
4060 | ac_status=$? | |
4061 | grep -v '^ *+' conftest.er1 >conftest.err | |
4062 | rm -f conftest.er1 | |
4063 | cat conftest.err >&5 | |
4064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4065 | (exit $ac_status); } && { | |
4066 | test -z "$ac_cxx_werror_flag" || | |
4067 | test ! -s conftest.err | |
4068 | } && test -s conftest.$ac_objext; then | |
4069 | ac_compiler_gnu=yes | |
4070 | else | |
4071 | echo "$as_me: failed program was:" >&5 | |
4072 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4073 | ||
4074 | ac_compiler_gnu=no | |
4075 | fi | |
4076 | ||
4077 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4078 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
4079 | ||
4080 | fi | |
4081 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 | |
4082 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } | |
4083 | GXX=`test $ac_compiler_gnu = yes && echo yes` | |
4084 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
4085 | ac_save_CXXFLAGS=$CXXFLAGS | |
4086 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 | |
4087 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } | |
4088 | if test "${ac_cv_prog_cxx_g+set}" = set; then | |
4089 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4090 | else | |
4091 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
4092 | ac_cxx_werror_flag=yes | |
4093 | ac_cv_prog_cxx_g=no | |
4094 | CXXFLAGS="-g" | |
4095 | cat >conftest.$ac_ext <<_ACEOF | |
4096 | /* confdefs.h. */ | |
4097 | _ACEOF | |
4098 | cat confdefs.h >>conftest.$ac_ext | |
4099 | cat >>conftest.$ac_ext <<_ACEOF | |
4100 | /* end confdefs.h. */ | |
4101 | ||
4102 | int | |
4103 | main () | |
4104 | { | |
4105 | ||
4106 | ; | |
4107 | return 0; | |
4108 | } | |
4109 | _ACEOF | |
4110 | rm -f conftest.$ac_objext | |
4111 | if { (ac_try="$ac_compile" | |
4112 | case "(($ac_try" in | |
4113 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4114 | *) ac_try_echo=$ac_try;; | |
4115 | esac | |
4116 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4117 | (eval "$ac_compile") 2>conftest.er1 | |
4118 | ac_status=$? | |
4119 | grep -v '^ *+' conftest.er1 >conftest.err | |
4120 | rm -f conftest.er1 | |
4121 | cat conftest.err >&5 | |
4122 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4123 | (exit $ac_status); } && { | |
4124 | test -z "$ac_cxx_werror_flag" || | |
4125 | test ! -s conftest.err | |
4126 | } && test -s conftest.$ac_objext; then | |
4127 | ac_cv_prog_cxx_g=yes | |
4128 | else | |
4129 | echo "$as_me: failed program was:" >&5 | |
4130 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4131 | ||
4132 | CXXFLAGS="" | |
4133 | cat >conftest.$ac_ext <<_ACEOF | |
4134 | /* confdefs.h. */ | |
4135 | _ACEOF | |
4136 | cat confdefs.h >>conftest.$ac_ext | |
4137 | cat >>conftest.$ac_ext <<_ACEOF | |
4138 | /* end confdefs.h. */ | |
4139 | ||
4140 | int | |
4141 | main () | |
4142 | { | |
4143 | ||
4144 | ; | |
4145 | return 0; | |
4146 | } | |
4147 | _ACEOF | |
4148 | rm -f conftest.$ac_objext | |
4149 | if { (ac_try="$ac_compile" | |
4150 | case "(($ac_try" in | |
4151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4152 | *) ac_try_echo=$ac_try;; | |
4153 | esac | |
4154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4155 | (eval "$ac_compile") 2>conftest.er1 | |
4156 | ac_status=$? | |
4157 | grep -v '^ *+' conftest.er1 >conftest.err | |
4158 | rm -f conftest.er1 | |
4159 | cat conftest.err >&5 | |
4160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4161 | (exit $ac_status); } && { | |
4162 | test -z "$ac_cxx_werror_flag" || | |
4163 | test ! -s conftest.err | |
4164 | } && test -s conftest.$ac_objext; then | |
4165 | : | |
4166 | else | |
4167 | echo "$as_me: failed program was:" >&5 | |
4168 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4169 | ||
4170 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4171 | CXXFLAGS="-g" | |
4172 | cat >conftest.$ac_ext <<_ACEOF | |
4173 | /* confdefs.h. */ | |
4174 | _ACEOF | |
4175 | cat confdefs.h >>conftest.$ac_ext | |
4176 | cat >>conftest.$ac_ext <<_ACEOF | |
4177 | /* end confdefs.h. */ | |
4178 | ||
4179 | int | |
4180 | main () | |
4181 | { | |
4182 | ||
4183 | ; | |
4184 | return 0; | |
4185 | } | |
4186 | _ACEOF | |
4187 | rm -f conftest.$ac_objext | |
4188 | if { (ac_try="$ac_compile" | |
4189 | case "(($ac_try" in | |
4190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4191 | *) ac_try_echo=$ac_try;; | |
4192 | esac | |
4193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
4194 | (eval "$ac_compile") 2>conftest.er1 | |
4195 | ac_status=$? | |
4196 | grep -v '^ *+' conftest.er1 >conftest.err | |
4197 | rm -f conftest.er1 | |
4198 | cat conftest.err >&5 | |
4199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4200 | (exit $ac_status); } && { | |
4201 | test -z "$ac_cxx_werror_flag" || | |
4202 | test ! -s conftest.err | |
4203 | } && test -s conftest.$ac_objext; then | |
4204 | ac_cv_prog_cxx_g=yes | |
4205 | else | |
4206 | echo "$as_me: failed program was:" >&5 | |
4207 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4208 | ||
4209 | ||
4210 | fi | |
4211 | ||
4212 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4213 | fi | |
4214 | ||
4215 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4216 | fi | |
4217 | ||
4218 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4219 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
4220 | fi | |
4221 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 | |
4222 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } | |
4223 | if test "$ac_test_CXXFLAGS" = set; then | |
4224 | CXXFLAGS=$ac_save_CXXFLAGS | |
4225 | elif test $ac_cv_prog_cxx_g = yes; then | |
4226 | if test "$GXX" = yes; then | |
4227 | CXXFLAGS="-g -O2" | |
4228 | else | |
4229 | CXXFLAGS="-g" | |
4230 | fi | |
4231 | else | |
4232 | if test "$GXX" = yes; then | |
4233 | CXXFLAGS="-O2" | |
4234 | else | |
4235 | CXXFLAGS= | |
4236 | fi | |
4237 | fi | |
4238 | ac_ext=c | |
4239 | ac_cpp='$CPP $CPPFLAGS' | |
4240 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4241 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4242 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4243 | ||
4244 | depcc="$CXX" am_compiler_list= | |
4245 | ||
4246 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
4247 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } | |
4248 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then | |
4249 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4250 | else | |
4251 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4252 | # We make a subdir and do the tests there. Otherwise we can end up | |
4253 | # making bogus files that we don't know about and never remove. For | |
4254 | # instance it was reported that on HP-UX the gcc test will end up | |
4255 | # making a dummy file named `D' -- because `-MD' means `put the output | |
4256 | # in D'. | |
4257 | mkdir conftest.dir | |
4258 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4259 | # using a relative directory. | |
4260 | cp "$am_depcomp" conftest.dir | |
4261 | cd conftest.dir | |
4262 | # We will build objects and dependencies in a subdirectory because | |
4263 | # it helps to detect inapplicable dependency modes. For instance | |
4264 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4265 | # side effect of compilation, but ICC will put the dependencies in | |
4266 | # the current directory while Tru64 will put them in the object | |
4267 | # directory. | |
4268 | mkdir sub | |
4269 | ||
4270 | am_cv_CXX_dependencies_compiler_type=none | |
4271 | if test "$am_compiler_list" = ""; then | |
4272 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4273 | fi | |
4274 | for depmode in $am_compiler_list; do | |
4275 | # Setup a source with many dependencies, because some compilers | |
4276 | # like to wrap large dependency lists on column 80 (with \), and | |
4277 | # we should not choose a depcomp mode which is confused by this. | |
4278 | # | |
4279 | # We need to recreate these files for each test, as the compiler may | |
4280 | # overwrite some of them when testing with obscure command lines. | |
4281 | # This happens at least with the AIX C compiler. | |
4282 | : > sub/conftest.c | |
4283 | for i in 1 2 3 4 5 6; do | |
4284 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4285 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
4286 | # Solaris 8's {/usr,}/bin/sh. | |
4287 | touch sub/conftst$i.h | |
4288 | done | |
4289 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4290 | ||
4291 | case $depmode in | |
4292 | nosideeffect) | |
4293 | # after this tag, mechanisms are not by side-effect, so they'll | |
4294 | # only be used when explicitly requested | |
4295 | if test "x$enable_dependency_tracking" = xyes; then | |
4296 | continue | |
4297 | else | |
4298 | break | |
4299 | fi | |
4300 | ;; | |
4301 | none) break ;; | |
4302 | esac | |
4303 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
4304 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4305 | # handle `-M -o', and we need to detect this. | |
4306 | if depmode=$depmode \ | |
4307 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
4308 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4309 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
4310 | >/dev/null 2>conftest.err && | |
4311 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4312 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
4313 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4314 | # icc doesn't choke on unknown options, it will just issue warnings | |
4315 | # or remarks (even with -Werror). So we grep stderr for any message | |
4316 | # that says an option was ignored or not supported. | |
4317 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4318 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4319 | # The diagnosis changed in icc 8.0: | |
4320 | # icc: Command line remark: option '-MP' not supported | |
4321 | if (grep 'ignoring option' conftest.err || | |
4322 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4323 | am_cv_CXX_dependencies_compiler_type=$depmode | |
4324 | break | |
4325 | fi | |
4326 | fi | |
4327 | done | |
4328 | ||
4329 | cd .. | |
4330 | rm -rf conftest.dir | |
4331 | else | |
4332 | am_cv_CXX_dependencies_compiler_type=none | |
4333 | fi | |
4334 | ||
4335 | fi | |
4336 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
4337 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } | |
4338 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
4339 | ||
4340 | ||
4341 | ||
4342 | if | |
4343 | test "x$enable_dependency_tracking" != xno \ | |
4344 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
4345 | am__fastdepCXX_TRUE= | |
4346 | am__fastdepCXX_FALSE='#' | |
4347 | else | |
4348 | am__fastdepCXX_TRUE='#' | |
4349 | am__fastdepCXX_FALSE= | |
4350 | fi | |
4351 | ||
4352 | ||
4353 | ||
4354 | # By default we simply use the C compiler to build assembly code. | |
4355 | ||
4356 | test "${CCAS+set}" = set || CCAS=$CC | |
4357 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS | |
4358 | ||
4359 | ||
4360 | ||
4361 | ## FIXME: really needed? (AC_LIBTOOL already provides this) | |
4362 | if test -n "$ac_tool_prefix"; then | |
4363 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
4364 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
4365 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4366 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4367 | if test "${ac_cv_prog_AR+set}" = set; then | |
4368 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4369 | else | |
4370 | if test -n "$AR"; then | |
4371 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
4372 | else | |
4373 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4374 | for as_dir in $PATH | |
4375 | do | |
4376 | IFS=$as_save_IFS | |
4377 | test -z "$as_dir" && as_dir=. | |
4378 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4379 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4380 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
4381 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4382 | break 2 | |
4383 | fi | |
4384 | done | |
4385 | done | |
4386 | IFS=$as_save_IFS | |
4387 | ||
4388 | fi | |
4389 | fi | |
4390 | AR=$ac_cv_prog_AR | |
4391 | if test -n "$AR"; then | |
4392 | { echo "$as_me:$LINENO: result: $AR" >&5 | |
4393 | echo "${ECHO_T}$AR" >&6; } | |
4394 | else | |
4395 | { echo "$as_me:$LINENO: result: no" >&5 | |
4396 | echo "${ECHO_T}no" >&6; } | |
4397 | fi | |
4398 | ||
4399 | ||
4400 | fi | |
4401 | if test -z "$ac_cv_prog_AR"; then | |
4402 | ac_ct_AR=$AR | |
4403 | # Extract the first word of "ar", so it can be a program name with args. | |
4404 | set dummy ar; ac_word=$2 | |
4405 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4406 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4407 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
4408 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4409 | else | |
4410 | if test -n "$ac_ct_AR"; then | |
4411 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
4412 | else | |
4413 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4414 | for as_dir in $PATH | |
4415 | do | |
4416 | IFS=$as_save_IFS | |
4417 | test -z "$as_dir" && as_dir=. | |
4418 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4419 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4420 | ac_cv_prog_ac_ct_AR="ar" | |
4421 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4422 | break 2 | |
4423 | fi | |
4424 | done | |
4425 | done | |
4426 | IFS=$as_save_IFS | |
4427 | ||
4428 | fi | |
4429 | fi | |
4430 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
4431 | if test -n "$ac_ct_AR"; then | |
4432 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
4433 | echo "${ECHO_T}$ac_ct_AR" >&6; } | |
4434 | else | |
4435 | { echo "$as_me:$LINENO: result: no" >&5 | |
4436 | echo "${ECHO_T}no" >&6; } | |
4437 | fi | |
4438 | ||
4439 | if test "x$ac_ct_AR" = x; then | |
4440 | AR="" | |
4441 | else | |
4442 | case $cross_compiling:$ac_tool_warned in | |
4443 | yes:) | |
4444 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4445 | whose name does not start with the host triplet. If you think this | |
4446 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4447 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4448 | whose name does not start with the host triplet. If you think this | |
4449 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4450 | ac_tool_warned=yes ;; | |
4451 | esac | |
4452 | AR=$ac_ct_AR | |
4453 | fi | |
4454 | else | |
4455 | AR="$ac_cv_prog_AR" | |
4456 | fi | |
4457 | ||
4458 | if test -n "$ac_tool_prefix"; then | |
4459 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
4460 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
4461 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4462 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4463 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
4464 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4465 | else | |
4466 | if test -n "$RANLIB"; then | |
4467 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
4468 | else | |
4469 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4470 | for as_dir in $PATH | |
4471 | do | |
4472 | IFS=$as_save_IFS | |
4473 | test -z "$as_dir" && as_dir=. | |
4474 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4475 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4476 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
4477 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4478 | break 2 | |
4479 | fi | |
4480 | done | |
4481 | done | |
4482 | IFS=$as_save_IFS | |
4483 | ||
4484 | fi | |
4485 | fi | |
4486 | RANLIB=$ac_cv_prog_RANLIB | |
4487 | if test -n "$RANLIB"; then | |
4488 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
4489 | echo "${ECHO_T}$RANLIB" >&6; } | |
4490 | else | |
4491 | { echo "$as_me:$LINENO: result: no" >&5 | |
4492 | echo "${ECHO_T}no" >&6; } | |
4493 | fi | |
4494 | ||
4495 | ||
4496 | fi | |
4497 | if test -z "$ac_cv_prog_RANLIB"; then | |
4498 | ac_ct_RANLIB=$RANLIB | |
4499 | # Extract the first word of "ranlib", so it can be a program name with args. | |
4500 | set dummy ranlib; ac_word=$2 | |
4501 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
4502 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
4503 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
4504 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4505 | else | |
4506 | if test -n "$ac_ct_RANLIB"; then | |
4507 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
4508 | else | |
4509 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4510 | for as_dir in $PATH | |
4511 | do | |
4512 | IFS=$as_save_IFS | |
4513 | test -z "$as_dir" && as_dir=. | |
4514 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4515 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
4516 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
4517 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4518 | break 2 | |
4519 | fi | |
4520 | done | |
4521 | done | |
4522 | IFS=$as_save_IFS | |
4523 | ||
4524 | fi | |
4525 | fi | |
4526 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
4527 | if test -n "$ac_ct_RANLIB"; then | |
4528 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
4529 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
4530 | else | |
4531 | { echo "$as_me:$LINENO: result: no" >&5 | |
4532 | echo "${ECHO_T}no" >&6; } | |
4533 | fi | |
4534 | ||
4535 | if test "x$ac_ct_RANLIB" = x; then | |
4536 | RANLIB=":" | |
4537 | else | |
4538 | case $cross_compiling:$ac_tool_warned in | |
4539 | yes:) | |
4540 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
4541 | whose name does not start with the host triplet. If you think this | |
4542 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
4543 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
4544 | whose name does not start with the host triplet. If you think this | |
4545 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
4546 | ac_tool_warned=yes ;; | |
4547 | esac | |
4548 | RANLIB=$ac_ct_RANLIB | |
4549 | fi | |
4550 | else | |
4551 | RANLIB="$ac_cv_prog_RANLIB" | |
4552 | fi | |
4553 | # :) | |
4554 | ||
4555 | # Find a good install program. We prefer a C program (faster), | |
4556 | # so one script is as good as another. But avoid the broken or | |
4557 | # incompatible versions: | |
4558 | # SysV /etc/install, /usr/sbin/install | |
4559 | # SunOS /usr/etc/install | |
4560 | # IRIX /sbin/install | |
4561 | # AIX /bin/install | |
4562 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
4563 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
4564 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
4565 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
4566 | # OS/2's system install, which has a completely different semantic | |
4567 | # ./install, which can be erroneously created by make from ./install.sh. | |
4568 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
4569 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } | |
4570 | if test -z "$INSTALL"; then | |
4571 | if test "${ac_cv_path_install+set}" = set; then | |
4572 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4573 | else | |
4574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4575 | for as_dir in $PATH | |
4576 | do | |
4577 | IFS=$as_save_IFS | |
4578 | test -z "$as_dir" && as_dir=. | |
4579 | # Account for people who put trailing slashes in PATH elements. | |
4580 | case $as_dir/ in | |
4581 | ./ | .// | /cC/* | \ | |
4582 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
4583 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
4584 | /usr/ucb/* ) ;; | |
4585 | *) | |
4586 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
4587 | # Don't use installbsd from OSF since it installs stuff as root | |
4588 | # by default. | |
4589 | for ac_prog in ginstall scoinst install; do | |
4590 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4591 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then | |
4592 | if test $ac_prog = install && | |
4593 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4594 | # AIX install. It has an incompatible calling convention. | |
4595 | : | |
4596 | elif test $ac_prog = install && | |
4597 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
4598 | # program-specific install script used by HP pwplus--don't use. | |
4599 | : | |
4600 | else | |
4601 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
4602 | break 3 | |
4603 | fi | |
4604 | fi | |
4605 | done | |
4606 | done | |
4607 | ;; | |
4608 | esac | |
4609 | done | |
4610 | IFS=$as_save_IFS | |
4611 | ||
4612 | ||
4613 | fi | |
4614 | if test "${ac_cv_path_install+set}" = set; then | |
4615 | INSTALL=$ac_cv_path_install | |
4616 | else | |
4617 | # As a last resort, use the slow shell script. Don't cache a | |
4618 | # value for INSTALL within a source directory, because that will | |
4619 | # break other packages using the cache if that directory is | |
4620 | # removed, or if the value is a relative name. | |
4621 | INSTALL=$ac_install_sh | |
4622 | fi | |
4623 | fi | |
4624 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
4625 | echo "${ECHO_T}$INSTALL" >&6; } | |
4626 | ||
4627 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
4628 | # It thinks the first close brace ends the variable substitution. | |
4629 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
4630 | ||
4631 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
4632 | ||
4633 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
4634 | ||
4635 | ||
4636 | . ${srcdir}/configure.host | |
4637 | ||
4638 | GC_CFLAGS=${gc_cflags} | |
4639 | ||
4640 | ||
4641 | # Check whether --enable-threads was given. | |
4642 | if test "${enable_threads+set}" = set; then | |
4643 | enableval=$enable_threads; THREADS=$enableval | |
4644 | else | |
4645 | { echo "$as_me:$LINENO: checking for thread model used by GCC" >&5 | |
4646 | echo $ECHO_N "checking for thread model used by GCC... $ECHO_C" >&6; } | |
4647 | THREADS=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'` | |
4648 | if test -z "$THREADS"; then | |
4649 | THREADS=no | |
4650 | fi | |
4651 | { echo "$as_me:$LINENO: result: $THREADS" >&5 | |
4652 | echo "${ECHO_T}$THREADS" >&6; } | |
4653 | fi | |
4654 | ||
4655 | ||
4656 | # Check whether --enable-parallel-mark was given. | |
4657 | if test "${enable_parallel_mark+set}" = set; then | |
4658 | enableval=$enable_parallel_mark; case "$THREADS" in | |
4659 | no | none | single) | |
4660 | { { echo "$as_me:$LINENO: error: Parallel mark requires --enable-threads=x spec" >&5 | |
4661 | echo "$as_me: error: Parallel mark requires --enable-threads=x spec" >&2;} | |
4662 | { (exit 1); exit 1; }; } | |
4663 | ;; | |
4664 | esac | |
4665 | ||
4666 | fi | |
4667 | ||
4668 | ||
4669 | # Check whether --enable-cplusplus was given. | |
4670 | if test "${enable_cplusplus+set}" = set; then | |
4671 | enableval=$enable_cplusplus; | |
4672 | fi | |
4673 | ||
4674 | ||
4675 | INCLUDES=-I${srcdir}/include | |
4676 | THREADDLLIBS= | |
4677 | need_atomic_ops_asm=false | |
4678 | ## Libraries needed to support dynamic loading and/or threads. | |
4679 | case "$THREADS" in | |
4680 | no | none | single) | |
4681 | THREADS=none | |
4682 | ;; | |
4683 | posix | pthreads) | |
4684 | THREADS=posix | |
4685 | THREADDLLIBS=-lpthread | |
4686 | case "$host" in | |
4687 | x86-*-linux* | ia64-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* | alpha-*-linux*) | |
4688 | cat >>confdefs.h <<\_ACEOF | |
4689 | #define GC_LINUX_THREADS 1 | |
4690 | _ACEOF | |
4691 | ||
4692 | cat >>confdefs.h <<\_ACEOF | |
4693 | #define _REENTRANT 1 | |
4694 | _ACEOF | |
4695 | ||
4696 | if test "${enable_parallel_mark}" = yes; then | |
4697 | cat >>confdefs.h <<\_ACEOF | |
4698 | #define PARALLEL_MARK 1 | |
4699 | _ACEOF | |
4700 | ||
4701 | fi | |
4702 | cat >>confdefs.h <<\_ACEOF | |
4703 | #define THREAD_LOCAL_ALLOC 1 | |
4704 | _ACEOF | |
4705 | ||
4706 | { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5 | |
4707 | echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;}; | |
4708 | ;; | |
4709 | *-*-linux*) | |
4710 | cat >>confdefs.h <<\_ACEOF | |
4711 | #define GC_LINUX_THREADS 1 | |
4712 | _ACEOF | |
4713 | ||
4714 | cat >>confdefs.h <<\_ACEOF | |
4715 | #define _REENTRANT 1 | |
4716 | _ACEOF | |
4717 | ||
4718 | ;; | |
4719 | *-*-aix*) | |
4720 | cat >>confdefs.h <<\_ACEOF | |
4721 | #define GC_AIX_THREADS 1 | |
4722 | _ACEOF | |
4723 | ||
4724 | cat >>confdefs.h <<\_ACEOF | |
4725 | #define _REENTRANT 1 | |
4726 | _ACEOF | |
4727 | ||
4728 | ;; | |
4729 | *-*-hpux11*) | |
4730 | { echo "$as_me:$LINENO: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&5 | |
4731 | echo "$as_me: WARNING: \"Only HP/UX 11 POSIX threads are supported.\"" >&2;} | |
4732 | cat >>confdefs.h <<\_ACEOF | |
4733 | #define GC_HPUX_THREADS 1 | |
4734 | _ACEOF | |
4735 | ||
4736 | cat >>confdefs.h <<\_ACEOF | |
4737 | #define _POSIX_C_SOURCE 199506L | |
4738 | _ACEOF | |
4739 | ||
4740 | if test "${enable_parallel_mark}" = yes; then | |
4741 | cat >>confdefs.h <<\_ACEOF | |
4742 | #define PARALLEL_MARK 1 | |
4743 | _ACEOF | |
4744 | ||
4745 | fi | |
4746 | cat >>confdefs.h <<\_ACEOF | |
4747 | #define THREAD_LOCAL_ALLOC 1 | |
4748 | _ACEOF | |
4749 | ||
4750 | { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5 | |
4751 | echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;}; | |
4752 | THREADDLLIBS="-lpthread -lrt" | |
4753 | # HPUX needs REENTRANT for the _r calls. | |
4754 | ||
4755 | cat >>confdefs.h <<\_ACEOF | |
4756 | #define _REENTRANT 1 | |
4757 | _ACEOF | |
4758 | ||
4759 | ;; | |
4760 | *-*-hpux10*) | |
4761 | { echo "$as_me:$LINENO: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&5 | |
4762 | echo "$as_me: WARNING: \"Only HP-UX 11 POSIX threads are supported.\"" >&2;} | |
4763 | ;; | |
4764 | *-*-freebsd*) | |
4765 | { echo "$as_me:$LINENO: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&5 | |
4766 | echo "$as_me: WARNING: \"FreeBSD does not yet fully support threads with Boehm GC.\"" >&2;} | |
4767 | cat >>confdefs.h <<\_ACEOF | |
4768 | #define GC_FREEBSD_THREADS 1 | |
4769 | _ACEOF | |
4770 | ||
4771 | INCLUDES="$INCLUDES -pthread" | |
4772 | ;; | |
4773 | *-*-kfreebsd*-gnu) | |
4774 | cat >>confdefs.h <<\_ACEOF | |
4775 | #define GC_FREEBSD_THREADS 1 | |
4776 | _ACEOF | |
4777 | ||
4778 | INCLUDES="$INCLUDES -pthread" | |
4779 | THREADDLLIBS=-pthread | |
4780 | cat >>confdefs.h <<\_ACEOF | |
4781 | #define _REENTRANT 1 | |
4782 | _ACEOF | |
4783 | ||
4784 | if test "${enable_parallel_mark}" = yes; then | |
4785 | cat >>confdefs.h <<\_ACEOF | |
4786 | #define PARALLEL_MARK 1 | |
4787 | _ACEOF | |
4788 | ||
4789 | fi | |
4790 | cat >>confdefs.h <<\_ACEOF | |
4791 | #define THREAD_LOCAL_ALLOC 1 | |
4792 | _ACEOF | |
4793 | ||
4794 | cat >>confdefs.h <<\_ACEOF | |
4795 | #define USE_COMPILER_TLS 1 | |
4796 | _ACEOF | |
4797 | ||
4798 | ;; | |
4799 | *-*-gnu*) | |
4800 | cat >>confdefs.h <<\_ACEOF | |
4801 | #define GC_GNU_THREADS 1 | |
4802 | _ACEOF | |
4803 | ||
4804 | cat >>confdefs.h <<\_ACEOF | |
4805 | #define _REENTRANT 1 | |
4806 | _ACEOF | |
4807 | ||
4808 | cat >>confdefs.h <<\_ACEOF | |
4809 | #define THREAD_LOCAL_ALLOC 1 | |
4810 | _ACEOF | |
4811 | ||
4812 | ;; | |
4813 | *-*-netbsd*) | |
4814 | { echo "$as_me:$LINENO: WARNING: \"Only on NetBSD 2.0 or later.\"" >&5 | |
4815 | echo "$as_me: WARNING: \"Only on NetBSD 2.0 or later.\"" >&2;} | |
4816 | cat >>confdefs.h <<\_ACEOF | |
4817 | #define GC_NETBSD_THREADS 1 | |
4818 | _ACEOF | |
4819 | ||
4820 | cat >>confdefs.h <<\_ACEOF | |
4821 | #define _REENTRANT 1 | |
4822 | _ACEOF | |
4823 | ||
4824 | cat >>confdefs.h <<\_ACEOF | |
4825 | #define _PTHREADS 1 | |
4826 | _ACEOF | |
4827 | ||
4828 | THREADDLLIBS="-lpthread -lrt" | |
4829 | ;; | |
4830 | *-*-solaris*) | |
4831 | cat >>confdefs.h <<\_ACEOF | |
4832 | #define GC_SOLARIS_THREADS 1 | |
4833 | _ACEOF | |
4834 | ||
4835 | cat >>confdefs.h <<\_ACEOF | |
4836 | #define THREAD_LOCAL_ALLOC 1 | |
4837 | _ACEOF | |
4838 | ||
4839 | THREADDLLIBS="-lpthread -lrt" | |
4840 | if test "$GCC" != yes; then | |
4841 | CFLAGS="$CFLAGS -O" | |
4842 | need_atomic_ops_asm=true | |
4843 | fi | |
4844 | ;; | |
4845 | *-*-irix*) | |
4846 | cat >>confdefs.h <<\_ACEOF | |
4847 | #define GC_IRIX_THREADS 1 | |
4848 | _ACEOF | |
4849 | ||
4850 | ;; | |
4851 | *-*-cygwin*) | |
4852 | cat >>confdefs.h <<\_ACEOF | |
4853 | #define GC_WIN32_THREADS 1 | |
4854 | _ACEOF | |
4855 | ||
4856 | cat >>confdefs.h <<\_ACEOF | |
4857 | #define THREAD_LOCAL_ALLOC 1 | |
4858 | _ACEOF | |
4859 | ||
4860 | win32_threads=true | |
4861 | ;; | |
4862 | *-*-darwin*) | |
4863 | cat >>confdefs.h <<\_ACEOF | |
4864 | #define GC_DARWIN_THREADS 1 | |
4865 | _ACEOF | |
4866 | ||
4867 | cat >>confdefs.h <<\_ACEOF | |
4868 | #define THREAD_LOCAL_ALLOC 1 | |
4869 | _ACEOF | |
4870 | ||
4871 | { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5 | |
4872 | echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;}; | |
4873 | if test "${enable_parallel_mark}" = yes; then | |
4874 | cat >>confdefs.h <<\_ACEOF | |
4875 | #define PARALLEL_MARK 1 | |
4876 | _ACEOF | |
4877 | ||
4878 | fi | |
4879 | darwin_threads=true | |
4880 | ;; | |
4881 | *-*-osf*) | |
4882 | cat >>confdefs.h <<\_ACEOF | |
4883 | #define GC_OSF1_THREADS 1 | |
4884 | _ACEOF | |
4885 | ||
4886 | if test "${enable_parallel_mark}" = yes; then | |
4887 | cat >>confdefs.h <<\_ACEOF | |
4888 | #define PARALLEL_MARK 1 | |
4889 | _ACEOF | |
4890 | ||
4891 | cat >>confdefs.h <<\_ACEOF | |
4892 | #define THREAD_LOCAL_ALLOC 1 | |
4893 | _ACEOF | |
4894 | ||
4895 | { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5 | |
4896 | echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;}; | |
4897 | # May want to enable it in other cases, too. | |
4898 | # Measurements havent yet been done. | |
4899 | fi | |
4900 | INCLUDES="$INCLUDES -pthread" | |
4901 | THREADDLLIBS="-lpthread -lrt" | |
4902 | ;; | |
4903 | *) | |
4904 | { { echo "$as_me:$LINENO: error: \"Pthreads not supported by the GC on this platform.\"" >&5 | |
4905 | echo "$as_me: error: \"Pthreads not supported by the GC on this platform.\"" >&2;} | |
4906 | { (exit 1); exit 1; }; } | |
4907 | ;; | |
4908 | esac | |
4909 | ;; | |
4910 | win32) | |
4911 | cat >>confdefs.h <<\_ACEOF | |
4912 | #define GC_WIN32_THREADS 1 | |
4913 | _ACEOF | |
4914 | ||
4915 | cat >>confdefs.h <<\_ACEOF | |
4916 | #define NO_GETENV 1 | |
4917 | _ACEOF | |
4918 | ||
4919 | ;; | |
4920 | dgux386) | |
4921 | THREADS=dgux386 | |
4922 | { echo "$as_me:$LINENO: result: $THREADDLLIBS" >&5 | |
4923 | echo "${ECHO_T}$THREADDLLIBS" >&6; } | |
4924 | # Use pthread GCC switch | |
4925 | THREADDLLIBS=-pthread | |
4926 | if test "${enable_parallel_mark}" = yes; then | |
4927 | cat >>confdefs.h <<\_ACEOF | |
4928 | #define PARALLEL_MARK 1 | |
4929 | _ACEOF | |
4930 | ||
4931 | fi | |
4932 | cat >>confdefs.h <<\_ACEOF | |
4933 | #define THREAD_LOCAL_ALLOC 1 | |
4934 | _ACEOF | |
4935 | ||
4936 | { echo "$as_me:$LINENO: WARNING: \"Explict GC_INIT() calls may be required.\"" >&5 | |
4937 | echo "$as_me: WARNING: \"Explict GC_INIT() calls may be required.\"" >&2;}; | |
4938 | cat >>confdefs.h <<\_ACEOF | |
4939 | #define GC_DGUX386_THREADS 1 | |
4940 | _ACEOF | |
4941 | ||
4942 | cat >>confdefs.h <<\_ACEOF | |
4943 | #define DGUX_THREADS 1 | |
4944 | _ACEOF | |
4945 | ||
4946 | # Enable _POSIX4A_DRAFT10_SOURCE with flag -pthread | |
4947 | INCLUDES="-pthread $INCLUDES" | |
4948 | ;; | |
4949 | aix) | |
4950 | THREADS=posix | |
4951 | THREADDLLIBS=-lpthread | |
4952 | cat >>confdefs.h <<\_ACEOF | |
4953 | #define GC_AIX_THREADS 1 | |
4954 | _ACEOF | |
4955 | ||
4956 | cat >>confdefs.h <<\_ACEOF | |
4957 | #define _REENTRANT 1 | |
4958 | _ACEOF | |
4959 | ||
4960 | ;; | |
4961 | decosf1 | irix | mach | os2 | solaris | dce | vxworks) | |
4962 | { { echo "$as_me:$LINENO: error: thread package $THREADS not yet supported" >&5 | |
4963 | echo "$as_me: error: thread package $THREADS not yet supported" >&2;} | |
4964 | { (exit 1); exit 1; }; } | |
4965 | ;; | |
4966 | *) | |
4967 | { { echo "$as_me:$LINENO: error: $THREADS is an unknown thread package" >&5 | |
4968 | echo "$as_me: error: $THREADS is an unknown thread package" >&2;} | |
4969 | { (exit 1); exit 1; }; } | |
4970 | ;; | |
4971 | esac | |
4972 | ||
4973 | ||
4974 | ||
4975 | if test x$THREADS != xnone; then | |
4976 | THREADS_TRUE= | |
4977 | THREADS_FALSE='#' | |
4978 | else | |
4979 | THREADS_TRUE='#' | |
4980 | THREADS_FALSE= | |
4981 | fi | |
4982 | ||
4983 | ||
4984 | ||
4985 | if test x$THREADS = xposix; then | |
4986 | PTHREADS_TRUE= | |
4987 | PTHREADS_FALSE='#' | |
4988 | else | |
4989 | PTHREADS_TRUE='#' | |
4990 | PTHREADS_FALSE= | |
4991 | fi | |
4992 | ||
4993 | ||
4994 | ||
4995 | if test x$darwin_threads = xtrue; then | |
4996 | DARWIN_THREADS_TRUE= | |
4997 | DARWIN_THREADS_FALSE='#' | |
4998 | else | |
4999 | DARWIN_THREADS_TRUE='#' | |
5000 | DARWIN_THREADS_FALSE= | |
5001 | fi | |
5002 | ||
5003 | ||
5004 | ||
5005 | if test x$win32_threads = xtrue; then | |
5006 | WIN32_THREADS_TRUE= | |
5007 | WIN32_THREADS_FALSE='#' | |
5008 | else | |
5009 | WIN32_THREADS_TRUE='#' | |
5010 | WIN32_THREADS_FALSE= | |
5011 | fi | |
5012 | ||
5013 | ||
5014 | case "$host" in | |
5015 | powerpc-*-darwin*) | |
5016 | powerpc_darwin=true | |
5017 | ;; | |
5018 | esac | |
5019 | ||
5020 | # Darwin needs a few extra special tests to deal with variation in the | |
5021 | # system headers. | |
5022 | case "$host" in | |
5023 | powerpc*-*-darwin*) | |
5024 | ||
5025 | { echo "$as_me:$LINENO: checking for ppc_thread_state_t.r0" >&5 | |
5026 | echo $ECHO_N "checking for ppc_thread_state_t.r0... $ECHO_C" >&6; } | |
5027 | if test "${ac_cv_member_ppc_thread_state_t_r0+set}" = set; then | |
5028 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5029 | else | |
5030 | cat >conftest.$ac_ext <<_ACEOF | |
5031 | /* confdefs.h. */ | |
5032 | _ACEOF | |
5033 | cat confdefs.h >>conftest.$ac_ext | |
5034 | cat >>conftest.$ac_ext <<_ACEOF | |
5035 | /* end confdefs.h. */ | |
5036 | #include <mach/thread_status.h> | |
5037 | ||
5038 | int | |
5039 | main () | |
5040 | { | |
5041 | static ppc_thread_state_t ac_aggr; | |
5042 | if (ac_aggr.r0) | |
5043 | return 0; | |
5044 | ; | |
5045 | return 0; | |
5046 | } | |
5047 | _ACEOF | |
5048 | rm -f conftest.$ac_objext | |
5049 | if { (ac_try="$ac_compile" | |
5050 | case "(($ac_try" in | |
5051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5052 | *) ac_try_echo=$ac_try;; | |
5053 | esac | |
5054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5055 | (eval "$ac_compile") 2>conftest.er1 | |
5056 | ac_status=$? | |
5057 | grep -v '^ *+' conftest.er1 >conftest.err | |
5058 | rm -f conftest.er1 | |
5059 | cat conftest.err >&5 | |
5060 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5061 | (exit $ac_status); } && { | |
5062 | test -z "$ac_c_werror_flag" || | |
5063 | test ! -s conftest.err | |
5064 | } && test -s conftest.$ac_objext; then | |
5065 | ac_cv_member_ppc_thread_state_t_r0=yes | |
5066 | else | |
5067 | echo "$as_me: failed program was:" >&5 | |
5068 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5069 | ||
5070 | cat >conftest.$ac_ext <<_ACEOF | |
5071 | /* confdefs.h. */ | |
5072 | _ACEOF | |
5073 | cat confdefs.h >>conftest.$ac_ext | |
5074 | cat >>conftest.$ac_ext <<_ACEOF | |
5075 | /* end confdefs.h. */ | |
5076 | #include <mach/thread_status.h> | |
5077 | ||
5078 | int | |
5079 | main () | |
5080 | { | |
5081 | static ppc_thread_state_t ac_aggr; | |
5082 | if (sizeof ac_aggr.r0) | |
5083 | return 0; | |
5084 | ; | |
5085 | return 0; | |
5086 | } | |
5087 | _ACEOF | |
5088 | rm -f conftest.$ac_objext | |
5089 | if { (ac_try="$ac_compile" | |
5090 | case "(($ac_try" in | |
5091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5092 | *) ac_try_echo=$ac_try;; | |
5093 | esac | |
5094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5095 | (eval "$ac_compile") 2>conftest.er1 | |
5096 | ac_status=$? | |
5097 | grep -v '^ *+' conftest.er1 >conftest.err | |
5098 | rm -f conftest.er1 | |
5099 | cat conftest.err >&5 | |
5100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5101 | (exit $ac_status); } && { | |
5102 | test -z "$ac_c_werror_flag" || | |
5103 | test ! -s conftest.err | |
5104 | } && test -s conftest.$ac_objext; then | |
5105 | ac_cv_member_ppc_thread_state_t_r0=yes | |
5106 | else | |
5107 | echo "$as_me: failed program was:" >&5 | |
5108 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5109 | ||
5110 | ac_cv_member_ppc_thread_state_t_r0=no | |
5111 | fi | |
5112 | ||
5113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5114 | fi | |
5115 | ||
5116 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5117 | fi | |
5118 | { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t_r0" >&5 | |
5119 | echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t_r0" >&6; } | |
5120 | if test $ac_cv_member_ppc_thread_state_t_r0 = yes; then | |
5121 | ||
5122 | cat >>confdefs.h <<\_ACEOF | |
5123 | #define HAS_PPC_THREAD_STATE_R0 1 | |
5124 | _ACEOF | |
5125 | ||
5126 | fi | |
5127 | ||
5128 | { echo "$as_me:$LINENO: checking for ppc_thread_state_t.__r0" >&5 | |
5129 | echo $ECHO_N "checking for ppc_thread_state_t.__r0... $ECHO_C" >&6; } | |
5130 | if test "${ac_cv_member_ppc_thread_state_t___r0+set}" = set; then | |
5131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5132 | else | |
5133 | cat >conftest.$ac_ext <<_ACEOF | |
5134 | /* confdefs.h. */ | |
5135 | _ACEOF | |
5136 | cat confdefs.h >>conftest.$ac_ext | |
5137 | cat >>conftest.$ac_ext <<_ACEOF | |
5138 | /* end confdefs.h. */ | |
5139 | #include <mach/thread_status.h> | |
5140 | ||
5141 | int | |
5142 | main () | |
5143 | { | |
5144 | static ppc_thread_state_t ac_aggr; | |
5145 | if (ac_aggr.__r0) | |
5146 | return 0; | |
5147 | ; | |
5148 | return 0; | |
5149 | } | |
5150 | _ACEOF | |
5151 | rm -f conftest.$ac_objext | |
5152 | if { (ac_try="$ac_compile" | |
5153 | case "(($ac_try" in | |
5154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5155 | *) ac_try_echo=$ac_try;; | |
5156 | esac | |
5157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5158 | (eval "$ac_compile") 2>conftest.er1 | |
5159 | ac_status=$? | |
5160 | grep -v '^ *+' conftest.er1 >conftest.err | |
5161 | rm -f conftest.er1 | |
5162 | cat conftest.err >&5 | |
5163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5164 | (exit $ac_status); } && { | |
5165 | test -z "$ac_c_werror_flag" || | |
5166 | test ! -s conftest.err | |
5167 | } && test -s conftest.$ac_objext; then | |
5168 | ac_cv_member_ppc_thread_state_t___r0=yes | |
5169 | else | |
5170 | echo "$as_me: failed program was:" >&5 | |
5171 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5172 | ||
5173 | cat >conftest.$ac_ext <<_ACEOF | |
5174 | /* confdefs.h. */ | |
5175 | _ACEOF | |
5176 | cat confdefs.h >>conftest.$ac_ext | |
5177 | cat >>conftest.$ac_ext <<_ACEOF | |
5178 | /* end confdefs.h. */ | |
5179 | #include <mach/thread_status.h> | |
5180 | ||
5181 | int | |
5182 | main () | |
5183 | { | |
5184 | static ppc_thread_state_t ac_aggr; | |
5185 | if (sizeof ac_aggr.__r0) | |
5186 | return 0; | |
5187 | ; | |
5188 | return 0; | |
5189 | } | |
5190 | _ACEOF | |
5191 | rm -f conftest.$ac_objext | |
5192 | if { (ac_try="$ac_compile" | |
5193 | case "(($ac_try" in | |
5194 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5195 | *) ac_try_echo=$ac_try;; | |
5196 | esac | |
5197 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5198 | (eval "$ac_compile") 2>conftest.er1 | |
5199 | ac_status=$? | |
5200 | grep -v '^ *+' conftest.er1 >conftest.err | |
5201 | rm -f conftest.er1 | |
5202 | cat conftest.err >&5 | |
5203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5204 | (exit $ac_status); } && { | |
5205 | test -z "$ac_c_werror_flag" || | |
5206 | test ! -s conftest.err | |
5207 | } && test -s conftest.$ac_objext; then | |
5208 | ac_cv_member_ppc_thread_state_t___r0=yes | |
5209 | else | |
5210 | echo "$as_me: failed program was:" >&5 | |
5211 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5212 | ||
5213 | ac_cv_member_ppc_thread_state_t___r0=no | |
5214 | fi | |
5215 | ||
5216 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5217 | fi | |
5218 | ||
5219 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5220 | fi | |
5221 | { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state_t___r0" >&5 | |
5222 | echo "${ECHO_T}$ac_cv_member_ppc_thread_state_t___r0" >&6; } | |
5223 | if test $ac_cv_member_ppc_thread_state_t___r0 = yes; then | |
5224 | ||
5225 | cat >>confdefs.h <<\_ACEOF | |
5226 | #define HAS_PPC_THREAD_STATE___R0 1 | |
5227 | _ACEOF | |
5228 | ||
5229 | fi | |
5230 | ||
5231 | { echo "$as_me:$LINENO: checking for ppc_thread_state64_t.r0" >&5 | |
5232 | echo $ECHO_N "checking for ppc_thread_state64_t.r0... $ECHO_C" >&6; } | |
5233 | if test "${ac_cv_member_ppc_thread_state64_t_r0+set}" = set; then | |
5234 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5235 | else | |
5236 | cat >conftest.$ac_ext <<_ACEOF | |
5237 | /* confdefs.h. */ | |
5238 | _ACEOF | |
5239 | cat confdefs.h >>conftest.$ac_ext | |
5240 | cat >>conftest.$ac_ext <<_ACEOF | |
5241 | /* end confdefs.h. */ | |
5242 | #include <mach/thread_status.h> | |
5243 | ||
5244 | int | |
5245 | main () | |
5246 | { | |
5247 | static ppc_thread_state64_t ac_aggr; | |
5248 | if (ac_aggr.r0) | |
5249 | return 0; | |
5250 | ; | |
5251 | return 0; | |
5252 | } | |
5253 | _ACEOF | |
5254 | rm -f conftest.$ac_objext | |
5255 | if { (ac_try="$ac_compile" | |
5256 | case "(($ac_try" in | |
5257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5258 | *) ac_try_echo=$ac_try;; | |
5259 | esac | |
5260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5261 | (eval "$ac_compile") 2>conftest.er1 | |
5262 | ac_status=$? | |
5263 | grep -v '^ *+' conftest.er1 >conftest.err | |
5264 | rm -f conftest.er1 | |
5265 | cat conftest.err >&5 | |
5266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5267 | (exit $ac_status); } && { | |
5268 | test -z "$ac_c_werror_flag" || | |
5269 | test ! -s conftest.err | |
5270 | } && test -s conftest.$ac_objext; then | |
5271 | ac_cv_member_ppc_thread_state64_t_r0=yes | |
5272 | else | |
5273 | echo "$as_me: failed program was:" >&5 | |
5274 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5275 | ||
5276 | cat >conftest.$ac_ext <<_ACEOF | |
5277 | /* confdefs.h. */ | |
5278 | _ACEOF | |
5279 | cat confdefs.h >>conftest.$ac_ext | |
5280 | cat >>conftest.$ac_ext <<_ACEOF | |
5281 | /* end confdefs.h. */ | |
5282 | #include <mach/thread_status.h> | |
5283 | ||
5284 | int | |
5285 | main () | |
5286 | { | |
5287 | static ppc_thread_state64_t ac_aggr; | |
5288 | if (sizeof ac_aggr.r0) | |
5289 | return 0; | |
5290 | ; | |
5291 | return 0; | |
5292 | } | |
5293 | _ACEOF | |
5294 | rm -f conftest.$ac_objext | |
5295 | if { (ac_try="$ac_compile" | |
5296 | case "(($ac_try" in | |
5297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5298 | *) ac_try_echo=$ac_try;; | |
5299 | esac | |
5300 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5301 | (eval "$ac_compile") 2>conftest.er1 | |
5302 | ac_status=$? | |
5303 | grep -v '^ *+' conftest.er1 >conftest.err | |
5304 | rm -f conftest.er1 | |
5305 | cat conftest.err >&5 | |
5306 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5307 | (exit $ac_status); } && { | |
5308 | test -z "$ac_c_werror_flag" || | |
5309 | test ! -s conftest.err | |
5310 | } && test -s conftest.$ac_objext; then | |
5311 | ac_cv_member_ppc_thread_state64_t_r0=yes | |
5312 | else | |
5313 | echo "$as_me: failed program was:" >&5 | |
5314 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5315 | ||
5316 | ac_cv_member_ppc_thread_state64_t_r0=no | |
5317 | fi | |
5318 | ||
5319 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5320 | fi | |
5321 | ||
5322 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5323 | fi | |
5324 | { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t_r0" >&5 | |
5325 | echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t_r0" >&6; } | |
5326 | if test $ac_cv_member_ppc_thread_state64_t_r0 = yes; then | |
5327 | ||
5328 | cat >>confdefs.h <<\_ACEOF | |
5329 | #define HAS_PPC_THREAD_STATE64_R0 1 | |
5330 | _ACEOF | |
5331 | ||
5332 | fi | |
5333 | ||
5334 | { echo "$as_me:$LINENO: checking for ppc_thread_state64_t.__r0" >&5 | |
5335 | echo $ECHO_N "checking for ppc_thread_state64_t.__r0... $ECHO_C" >&6; } | |
5336 | if test "${ac_cv_member_ppc_thread_state64_t___r0+set}" = set; then | |
5337 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5338 | else | |
5339 | cat >conftest.$ac_ext <<_ACEOF | |
5340 | /* confdefs.h. */ | |
5341 | _ACEOF | |
5342 | cat confdefs.h >>conftest.$ac_ext | |
5343 | cat >>conftest.$ac_ext <<_ACEOF | |
5344 | /* end confdefs.h. */ | |
5345 | #include <mach/thread_status.h> | |
5346 | ||
5347 | int | |
5348 | main () | |
5349 | { | |
5350 | static ppc_thread_state64_t ac_aggr; | |
5351 | if (ac_aggr.__r0) | |
5352 | return 0; | |
5353 | ; | |
5354 | return 0; | |
5355 | } | |
5356 | _ACEOF | |
5357 | rm -f conftest.$ac_objext | |
5358 | if { (ac_try="$ac_compile" | |
5359 | case "(($ac_try" in | |
5360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5361 | *) ac_try_echo=$ac_try;; | |
5362 | esac | |
5363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5364 | (eval "$ac_compile") 2>conftest.er1 | |
5365 | ac_status=$? | |
5366 | grep -v '^ *+' conftest.er1 >conftest.err | |
5367 | rm -f conftest.er1 | |
5368 | cat conftest.err >&5 | |
5369 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5370 | (exit $ac_status); } && { | |
5371 | test -z "$ac_c_werror_flag" || | |
5372 | test ! -s conftest.err | |
5373 | } && test -s conftest.$ac_objext; then | |
5374 | ac_cv_member_ppc_thread_state64_t___r0=yes | |
5375 | else | |
5376 | echo "$as_me: failed program was:" >&5 | |
5377 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5378 | ||
5379 | cat >conftest.$ac_ext <<_ACEOF | |
5380 | /* confdefs.h. */ | |
5381 | _ACEOF | |
5382 | cat confdefs.h >>conftest.$ac_ext | |
5383 | cat >>conftest.$ac_ext <<_ACEOF | |
5384 | /* end confdefs.h. */ | |
5385 | #include <mach/thread_status.h> | |
5386 | ||
5387 | int | |
5388 | main () | |
5389 | { | |
5390 | static ppc_thread_state64_t ac_aggr; | |
5391 | if (sizeof ac_aggr.__r0) | |
5392 | return 0; | |
5393 | ; | |
5394 | return 0; | |
5395 | } | |
5396 | _ACEOF | |
5397 | rm -f conftest.$ac_objext | |
5398 | if { (ac_try="$ac_compile" | |
5399 | case "(($ac_try" in | |
5400 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5401 | *) ac_try_echo=$ac_try;; | |
5402 | esac | |
5403 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5404 | (eval "$ac_compile") 2>conftest.er1 | |
5405 | ac_status=$? | |
5406 | grep -v '^ *+' conftest.er1 >conftest.err | |
5407 | rm -f conftest.er1 | |
5408 | cat conftest.err >&5 | |
5409 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5410 | (exit $ac_status); } && { | |
5411 | test -z "$ac_c_werror_flag" || | |
5412 | test ! -s conftest.err | |
5413 | } && test -s conftest.$ac_objext; then | |
5414 | ac_cv_member_ppc_thread_state64_t___r0=yes | |
5415 | else | |
5416 | echo "$as_me: failed program was:" >&5 | |
5417 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5418 | ||
5419 | ac_cv_member_ppc_thread_state64_t___r0=no | |
5420 | fi | |
5421 | ||
5422 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5423 | fi | |
5424 | ||
5425 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5426 | fi | |
5427 | { echo "$as_me:$LINENO: result: $ac_cv_member_ppc_thread_state64_t___r0" >&5 | |
5428 | echo "${ECHO_T}$ac_cv_member_ppc_thread_state64_t___r0" >&6; } | |
5429 | if test $ac_cv_member_ppc_thread_state64_t___r0 = yes; then | |
5430 | ||
5431 | cat >>confdefs.h <<\_ACEOF | |
5432 | #define HAS_PPC_THREAD_STATE64___R0 1 | |
5433 | _ACEOF | |
5434 | ||
5435 | fi | |
5436 | ||
5437 | ;; | |
5438 | i?86*-*-darwin*) | |
5439 | { echo "$as_me:$LINENO: checking for x86_thread_state32_t.eax" >&5 | |
5440 | echo $ECHO_N "checking for x86_thread_state32_t.eax... $ECHO_C" >&6; } | |
5441 | if test "${ac_cv_member_x86_thread_state32_t_eax+set}" = set; then | |
5442 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5443 | else | |
5444 | cat >conftest.$ac_ext <<_ACEOF | |
5445 | /* confdefs.h. */ | |
5446 | _ACEOF | |
5447 | cat confdefs.h >>conftest.$ac_ext | |
5448 | cat >>conftest.$ac_ext <<_ACEOF | |
5449 | /* end confdefs.h. */ | |
5450 | #include <sys/cdefs.h> | |
5451 | #include <mach/thread_status.h> | |
5452 | ||
5453 | int | |
5454 | main () | |
5455 | { | |
5456 | static x86_thread_state32_t ac_aggr; | |
5457 | if (ac_aggr.eax) | |
5458 | return 0; | |
5459 | ; | |
5460 | return 0; | |
5461 | } | |
5462 | _ACEOF | |
5463 | rm -f conftest.$ac_objext | |
5464 | if { (ac_try="$ac_compile" | |
5465 | case "(($ac_try" in | |
5466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5467 | *) ac_try_echo=$ac_try;; | |
5468 | esac | |
5469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5470 | (eval "$ac_compile") 2>conftest.er1 | |
5471 | ac_status=$? | |
5472 | grep -v '^ *+' conftest.er1 >conftest.err | |
5473 | rm -f conftest.er1 | |
5474 | cat conftest.err >&5 | |
5475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5476 | (exit $ac_status); } && { | |
5477 | test -z "$ac_c_werror_flag" || | |
5478 | test ! -s conftest.err | |
5479 | } && test -s conftest.$ac_objext; then | |
5480 | ac_cv_member_x86_thread_state32_t_eax=yes | |
5481 | else | |
5482 | echo "$as_me: failed program was:" >&5 | |
5483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5484 | ||
5485 | cat >conftest.$ac_ext <<_ACEOF | |
5486 | /* confdefs.h. */ | |
5487 | _ACEOF | |
5488 | cat confdefs.h >>conftest.$ac_ext | |
5489 | cat >>conftest.$ac_ext <<_ACEOF | |
5490 | /* end confdefs.h. */ | |
5491 | #include <sys/cdefs.h> | |
5492 | #include <mach/thread_status.h> | |
5493 | ||
5494 | int | |
5495 | main () | |
5496 | { | |
5497 | static x86_thread_state32_t ac_aggr; | |
5498 | if (sizeof ac_aggr.eax) | |
5499 | return 0; | |
5500 | ; | |
5501 | return 0; | |
5502 | } | |
5503 | _ACEOF | |
5504 | rm -f conftest.$ac_objext | |
5505 | if { (ac_try="$ac_compile" | |
5506 | case "(($ac_try" in | |
5507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5508 | *) ac_try_echo=$ac_try;; | |
5509 | esac | |
5510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5511 | (eval "$ac_compile") 2>conftest.er1 | |
5512 | ac_status=$? | |
5513 | grep -v '^ *+' conftest.er1 >conftest.err | |
5514 | rm -f conftest.er1 | |
5515 | cat conftest.err >&5 | |
5516 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5517 | (exit $ac_status); } && { | |
5518 | test -z "$ac_c_werror_flag" || | |
5519 | test ! -s conftest.err | |
5520 | } && test -s conftest.$ac_objext; then | |
5521 | ac_cv_member_x86_thread_state32_t_eax=yes | |
5522 | else | |
5523 | echo "$as_me: failed program was:" >&5 | |
5524 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5525 | ||
5526 | ac_cv_member_x86_thread_state32_t_eax=no | |
5527 | fi | |
5528 | ||
5529 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5530 | fi | |
5531 | ||
5532 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5533 | fi | |
5534 | { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t_eax" >&5 | |
5535 | echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t_eax" >&6; } | |
5536 | if test $ac_cv_member_x86_thread_state32_t_eax = yes; then | |
5537 | ||
5538 | cat >>confdefs.h <<\_ACEOF | |
5539 | #define HAS_X86_THREAD_STATE32_EAX 1 | |
5540 | _ACEOF | |
5541 | ||
5542 | fi | |
5543 | ||
5544 | { echo "$as_me:$LINENO: checking for x86_thread_state32_t.__eax" >&5 | |
5545 | echo $ECHO_N "checking for x86_thread_state32_t.__eax... $ECHO_C" >&6; } | |
5546 | if test "${ac_cv_member_x86_thread_state32_t___eax+set}" = set; then | |
5547 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5548 | else | |
5549 | cat >conftest.$ac_ext <<_ACEOF | |
5550 | /* confdefs.h. */ | |
5551 | _ACEOF | |
5552 | cat confdefs.h >>conftest.$ac_ext | |
5553 | cat >>conftest.$ac_ext <<_ACEOF | |
5554 | /* end confdefs.h. */ | |
5555 | #include <sys/cdefs.h> | |
5556 | #include <mach/thread_status.h> | |
5557 | ||
5558 | int | |
5559 | main () | |
5560 | { | |
5561 | static x86_thread_state32_t ac_aggr; | |
5562 | if (ac_aggr.__eax) | |
5563 | return 0; | |
5564 | ; | |
5565 | return 0; | |
5566 | } | |
5567 | _ACEOF | |
5568 | rm -f conftest.$ac_objext | |
5569 | if { (ac_try="$ac_compile" | |
5570 | case "(($ac_try" in | |
5571 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5572 | *) ac_try_echo=$ac_try;; | |
5573 | esac | |
5574 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5575 | (eval "$ac_compile") 2>conftest.er1 | |
5576 | ac_status=$? | |
5577 | grep -v '^ *+' conftest.er1 >conftest.err | |
5578 | rm -f conftest.er1 | |
5579 | cat conftest.err >&5 | |
5580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5581 | (exit $ac_status); } && { | |
5582 | test -z "$ac_c_werror_flag" || | |
5583 | test ! -s conftest.err | |
5584 | } && test -s conftest.$ac_objext; then | |
5585 | ac_cv_member_x86_thread_state32_t___eax=yes | |
5586 | else | |
5587 | echo "$as_me: failed program was:" >&5 | |
5588 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5589 | ||
5590 | cat >conftest.$ac_ext <<_ACEOF | |
5591 | /* confdefs.h. */ | |
5592 | _ACEOF | |
5593 | cat confdefs.h >>conftest.$ac_ext | |
5594 | cat >>conftest.$ac_ext <<_ACEOF | |
5595 | /* end confdefs.h. */ | |
5596 | #include <sys/cdefs.h> | |
5597 | #include <mach/thread_status.h> | |
5598 | ||
5599 | int | |
5600 | main () | |
5601 | { | |
5602 | static x86_thread_state32_t ac_aggr; | |
5603 | if (sizeof ac_aggr.__eax) | |
5604 | return 0; | |
5605 | ; | |
5606 | return 0; | |
5607 | } | |
5608 | _ACEOF | |
5609 | rm -f conftest.$ac_objext | |
5610 | if { (ac_try="$ac_compile" | |
5611 | case "(($ac_try" in | |
5612 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5613 | *) ac_try_echo=$ac_try;; | |
5614 | esac | |
5615 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5616 | (eval "$ac_compile") 2>conftest.er1 | |
5617 | ac_status=$? | |
5618 | grep -v '^ *+' conftest.er1 >conftest.err | |
5619 | rm -f conftest.er1 | |
5620 | cat conftest.err >&5 | |
5621 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5622 | (exit $ac_status); } && { | |
5623 | test -z "$ac_c_werror_flag" || | |
5624 | test ! -s conftest.err | |
5625 | } && test -s conftest.$ac_objext; then | |
5626 | ac_cv_member_x86_thread_state32_t___eax=yes | |
5627 | else | |
5628 | echo "$as_me: failed program was:" >&5 | |
5629 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5630 | ||
5631 | ac_cv_member_x86_thread_state32_t___eax=no | |
5632 | fi | |
5633 | ||
5634 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5635 | fi | |
5636 | ||
5637 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5638 | fi | |
5639 | { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state32_t___eax" >&5 | |
5640 | echo "${ECHO_T}$ac_cv_member_x86_thread_state32_t___eax" >&6; } | |
5641 | if test $ac_cv_member_x86_thread_state32_t___eax = yes; then | |
5642 | ||
5643 | cat >>confdefs.h <<\_ACEOF | |
5644 | #define HAS_X86_THREAD_STATE32___EAX 1 | |
5645 | _ACEOF | |
5646 | ||
5647 | fi | |
5648 | ||
5649 | ;; | |
5650 | x86_64-*-darwin*) | |
5651 | { echo "$as_me:$LINENO: checking for x86_thread_state64_t.rax" >&5 | |
5652 | echo $ECHO_N "checking for x86_thread_state64_t.rax... $ECHO_C" >&6; } | |
5653 | if test "${ac_cv_member_x86_thread_state64_t_rax+set}" = set; then | |
5654 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5655 | else | |
5656 | cat >conftest.$ac_ext <<_ACEOF | |
5657 | /* confdefs.h. */ | |
5658 | _ACEOF | |
5659 | cat confdefs.h >>conftest.$ac_ext | |
5660 | cat >>conftest.$ac_ext <<_ACEOF | |
5661 | /* end confdefs.h. */ | |
5662 | #include <sys/cdefs.h> | |
5663 | #include <mach/thread_status.h> | |
5664 | ||
5665 | int | |
5666 | main () | |
5667 | { | |
5668 | static x86_thread_state64_t ac_aggr; | |
5669 | if (ac_aggr.rax) | |
5670 | return 0; | |
5671 | ; | |
5672 | return 0; | |
5673 | } | |
5674 | _ACEOF | |
5675 | rm -f conftest.$ac_objext | |
5676 | if { (ac_try="$ac_compile" | |
5677 | case "(($ac_try" in | |
5678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5679 | *) ac_try_echo=$ac_try;; | |
5680 | esac | |
5681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5682 | (eval "$ac_compile") 2>conftest.er1 | |
5683 | ac_status=$? | |
5684 | grep -v '^ *+' conftest.er1 >conftest.err | |
5685 | rm -f conftest.er1 | |
5686 | cat conftest.err >&5 | |
5687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5688 | (exit $ac_status); } && { | |
5689 | test -z "$ac_c_werror_flag" || | |
5690 | test ! -s conftest.err | |
5691 | } && test -s conftest.$ac_objext; then | |
5692 | ac_cv_member_x86_thread_state64_t_rax=yes | |
5693 | else | |
5694 | echo "$as_me: failed program was:" >&5 | |
5695 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5696 | ||
5697 | cat >conftest.$ac_ext <<_ACEOF | |
5698 | /* confdefs.h. */ | |
5699 | _ACEOF | |
5700 | cat confdefs.h >>conftest.$ac_ext | |
5701 | cat >>conftest.$ac_ext <<_ACEOF | |
5702 | /* end confdefs.h. */ | |
5703 | #include <sys/cdefs.h> | |
5704 | #include <mach/thread_status.h> | |
5705 | ||
5706 | int | |
5707 | main () | |
5708 | { | |
5709 | static x86_thread_state64_t ac_aggr; | |
5710 | if (sizeof ac_aggr.rax) | |
5711 | return 0; | |
5712 | ; | |
5713 | return 0; | |
5714 | } | |
5715 | _ACEOF | |
5716 | rm -f conftest.$ac_objext | |
5717 | if { (ac_try="$ac_compile" | |
5718 | case "(($ac_try" in | |
5719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5720 | *) ac_try_echo=$ac_try;; | |
5721 | esac | |
5722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5723 | (eval "$ac_compile") 2>conftest.er1 | |
5724 | ac_status=$? | |
5725 | grep -v '^ *+' conftest.er1 >conftest.err | |
5726 | rm -f conftest.er1 | |
5727 | cat conftest.err >&5 | |
5728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5729 | (exit $ac_status); } && { | |
5730 | test -z "$ac_c_werror_flag" || | |
5731 | test ! -s conftest.err | |
5732 | } && test -s conftest.$ac_objext; then | |
5733 | ac_cv_member_x86_thread_state64_t_rax=yes | |
5734 | else | |
5735 | echo "$as_me: failed program was:" >&5 | |
5736 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5737 | ||
5738 | ac_cv_member_x86_thread_state64_t_rax=no | |
5739 | fi | |
5740 | ||
5741 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5742 | fi | |
5743 | ||
5744 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5745 | fi | |
5746 | { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t_rax" >&5 | |
5747 | echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t_rax" >&6; } | |
5748 | if test $ac_cv_member_x86_thread_state64_t_rax = yes; then | |
5749 | ||
5750 | cat >>confdefs.h <<\_ACEOF | |
5751 | #define HAS_X86_THREAD_STATE64_RAX 1 | |
5752 | _ACEOF | |
5753 | ||
5754 | fi | |
5755 | ||
5756 | { echo "$as_me:$LINENO: checking for x86_thread_state64_t.__rax" >&5 | |
5757 | echo $ECHO_N "checking for x86_thread_state64_t.__rax... $ECHO_C" >&6; } | |
5758 | if test "${ac_cv_member_x86_thread_state64_t___rax+set}" = set; then | |
5759 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5760 | else | |
5761 | cat >conftest.$ac_ext <<_ACEOF | |
5762 | /* confdefs.h. */ | |
5763 | _ACEOF | |
5764 | cat confdefs.h >>conftest.$ac_ext | |
5765 | cat >>conftest.$ac_ext <<_ACEOF | |
5766 | /* end confdefs.h. */ | |
5767 | #include <sys/cdefs.h> | |
5768 | #include <mach/thread_status.h> | |
5769 | ||
5770 | int | |
5771 | main () | |
5772 | { | |
5773 | static x86_thread_state64_t ac_aggr; | |
5774 | if (ac_aggr.__rax) | |
5775 | return 0; | |
5776 | ; | |
5777 | return 0; | |
5778 | } | |
5779 | _ACEOF | |
5780 | rm -f conftest.$ac_objext | |
5781 | if { (ac_try="$ac_compile" | |
5782 | case "(($ac_try" in | |
5783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5784 | *) ac_try_echo=$ac_try;; | |
5785 | esac | |
5786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5787 | (eval "$ac_compile") 2>conftest.er1 | |
5788 | ac_status=$? | |
5789 | grep -v '^ *+' conftest.er1 >conftest.err | |
5790 | rm -f conftest.er1 | |
5791 | cat conftest.err >&5 | |
5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5793 | (exit $ac_status); } && { | |
5794 | test -z "$ac_c_werror_flag" || | |
5795 | test ! -s conftest.err | |
5796 | } && test -s conftest.$ac_objext; then | |
5797 | ac_cv_member_x86_thread_state64_t___rax=yes | |
5798 | else | |
5799 | echo "$as_me: failed program was:" >&5 | |
5800 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5801 | ||
5802 | cat >conftest.$ac_ext <<_ACEOF | |
5803 | /* confdefs.h. */ | |
5804 | _ACEOF | |
5805 | cat confdefs.h >>conftest.$ac_ext | |
5806 | cat >>conftest.$ac_ext <<_ACEOF | |
5807 | /* end confdefs.h. */ | |
5808 | #include <sys/cdefs.h> | |
5809 | #include <mach/thread_status.h> | |
5810 | ||
5811 | int | |
5812 | main () | |
5813 | { | |
5814 | static x86_thread_state64_t ac_aggr; | |
5815 | if (sizeof ac_aggr.__rax) | |
5816 | return 0; | |
5817 | ; | |
5818 | return 0; | |
5819 | } | |
5820 | _ACEOF | |
5821 | rm -f conftest.$ac_objext | |
5822 | if { (ac_try="$ac_compile" | |
5823 | case "(($ac_try" in | |
5824 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5825 | *) ac_try_echo=$ac_try;; | |
5826 | esac | |
5827 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5828 | (eval "$ac_compile") 2>conftest.er1 | |
5829 | ac_status=$? | |
5830 | grep -v '^ *+' conftest.er1 >conftest.err | |
5831 | rm -f conftest.er1 | |
5832 | cat conftest.err >&5 | |
5833 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5834 | (exit $ac_status); } && { | |
5835 | test -z "$ac_c_werror_flag" || | |
5836 | test ! -s conftest.err | |
5837 | } && test -s conftest.$ac_objext; then | |
5838 | ac_cv_member_x86_thread_state64_t___rax=yes | |
5839 | else | |
5840 | echo "$as_me: failed program was:" >&5 | |
5841 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5842 | ||
5843 | ac_cv_member_x86_thread_state64_t___rax=no | |
5844 | fi | |
5845 | ||
5846 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5847 | fi | |
5848 | ||
5849 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5850 | fi | |
5851 | { echo "$as_me:$LINENO: result: $ac_cv_member_x86_thread_state64_t___rax" >&5 | |
5852 | echo "${ECHO_T}$ac_cv_member_x86_thread_state64_t___rax" >&6; } | |
5853 | if test $ac_cv_member_x86_thread_state64_t___rax = yes; then | |
5854 | ||
5855 | cat >>confdefs.h <<\_ACEOF | |
5856 | #define HAS_X86_THREAD_STATE64___RAX 1 | |
5857 | _ACEOF | |
5858 | ||
5859 | fi | |
5860 | ||
5861 | ;; | |
5862 | *) ;; | |
5863 | esac | |
5864 | ||
5865 | { echo "$as_me:$LINENO: checking for xlc" >&5 | |
5866 | echo $ECHO_N "checking for xlc... $ECHO_C" >&6; } | |
5867 | cat >conftest.$ac_ext <<_ACEOF | |
5868 | /* confdefs.h. */ | |
5869 | _ACEOF | |
5870 | cat confdefs.h >>conftest.$ac_ext | |
5871 | cat >>conftest.$ac_ext <<_ACEOF | |
5872 | /* end confdefs.h. */ | |
5873 | ||
5874 | int | |
5875 | main () | |
5876 | { | |
5877 | ||
5878 | #ifndef __xlC__ | |
5879 | # error | |
5880 | #endif | |
5881 | ||
5882 | ; | |
5883 | return 0; | |
5884 | } | |
5885 | _ACEOF | |
5886 | rm -f conftest.$ac_objext | |
5887 | if { (ac_try="$ac_compile" | |
5888 | case "(($ac_try" in | |
5889 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5890 | *) ac_try_echo=$ac_try;; | |
5891 | esac | |
5892 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5893 | (eval "$ac_compile") 2>conftest.er1 | |
5894 | ac_status=$? | |
5895 | grep -v '^ *+' conftest.er1 >conftest.err | |
5896 | rm -f conftest.er1 | |
5897 | cat conftest.err >&5 | |
5898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5899 | (exit $ac_status); } && { | |
5900 | test -z "$ac_c_werror_flag" || | |
5901 | test ! -s conftest.err | |
5902 | } && test -s conftest.$ac_objext; then | |
5903 | compiler_xlc=yes | |
5904 | else | |
5905 | echo "$as_me: failed program was:" >&5 | |
5906 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5907 | ||
5908 | compiler_xlc=no | |
5909 | fi | |
5910 | ||
5911 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5912 | { echo "$as_me:$LINENO: result: $compiler_xlc" >&5 | |
5913 | echo "${ECHO_T}$compiler_xlc" >&6; } | |
5914 | ||
5915 | ||
5916 | if test $compiler_xlc = yes; then | |
5917 | COMPILER_XLC_TRUE= | |
5918 | COMPILER_XLC_FALSE='#' | |
5919 | else | |
5920 | COMPILER_XLC_TRUE='#' | |
5921 | COMPILER_XLC_FALSE= | |
5922 | fi | |
5923 | ||
5924 | if test $compiler_xlc = yes -a "$powerpc_darwin" = true; then | |
5925 | # the darwin stack-frame-walking code is completely broken on xlc | |
5926 | cat >>confdefs.h <<\_ACEOF | |
5927 | #define DARWIN_DONT_PARSE_STACK 1 | |
5928 | _ACEOF | |
5929 | ||
5930 | fi | |
5931 | ||
5932 | # We never want libdl on darwin. It is a fake libdl that just ends up making | |
5933 | # dyld calls anyway | |
5934 | case "$host" in | |
5935 | *-*-darwin*) ;; | |
5936 | *) | |
5937 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
5938 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
5939 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
5940 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5941 | else | |
5942 | ac_check_lib_save_LIBS=$LIBS | |
5943 | LIBS="-ldl $LIBS" | |
5944 | cat >conftest.$ac_ext <<_ACEOF | |
5945 | /* confdefs.h. */ | |
5946 | _ACEOF | |
5947 | cat confdefs.h >>conftest.$ac_ext | |
5948 | cat >>conftest.$ac_ext <<_ACEOF | |
5949 | /* end confdefs.h. */ | |
5950 | ||
5951 | /* Override any GCC internal prototype to avoid an error. | |
5952 | Use char because int might match the return type of a GCC | |
5953 | builtin and then its argument prototype would still apply. */ | |
5954 | #ifdef __cplusplus | |
5955 | extern "C" | |
5956 | #endif | |
5957 | char dlopen (); | |
5958 | int | |
5959 | main () | |
5960 | { | |
5961 | return dlopen (); | |
5962 | ; | |
5963 | return 0; | |
5964 | } | |
5965 | _ACEOF | |
5966 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5967 | if { (ac_try="$ac_link" | |
5968 | case "(($ac_try" in | |
5969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
5970 | *) ac_try_echo=$ac_try;; | |
5971 | esac | |
5972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
5973 | (eval "$ac_link") 2>conftest.er1 | |
5974 | ac_status=$? | |
5975 | grep -v '^ *+' conftest.er1 >conftest.err | |
5976 | rm -f conftest.er1 | |
5977 | cat conftest.err >&5 | |
5978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5979 | (exit $ac_status); } && { | |
5980 | test -z "$ac_c_werror_flag" || | |
5981 | test ! -s conftest.err | |
5982 | } && test -s conftest$ac_exeext && | |
5983 | $as_test_x conftest$ac_exeext; then | |
5984 | ac_cv_lib_dl_dlopen=yes | |
5985 | else | |
5986 | echo "$as_me: failed program was:" >&5 | |
5987 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5988 | ||
5989 | ac_cv_lib_dl_dlopen=no | |
5990 | fi | |
5991 | ||
5992 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
5993 | conftest$ac_exeext conftest.$ac_ext | |
5994 | LIBS=$ac_check_lib_save_LIBS | |
5995 | fi | |
5996 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
5997 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
5998 | if test $ac_cv_lib_dl_dlopen = yes; then | |
5999 | THREADDLLIBS="$THREADDLLIBS -ldl" | |
6000 | fi | |
6001 | ||
6002 | ;; | |
6003 | esac | |
6004 | ||
6005 | # extra LD Flags which are required for targets | |
6006 | case "${host}" in | |
6007 | *-*-darwin*) | |
6008 | extra_ldflags_libgc=-Wl,-single_module | |
6009 | ;; | |
6010 | esac | |
6011 | ||
6012 | ||
6013 | ||
6014 | ||
6015 | target_all=libgc.la | |
6016 | ||
6017 | ||
6018 | TARGET_ECOS="no" | |
6019 | ||
6020 | # Check whether --with-ecos was given. | |
6021 | if test "${with_ecos+set}" = set; then | |
6022 | withval=$with_ecos; TARGET_ECOS="$with_ecos" | |
6023 | ||
6024 | fi | |
6025 | ||
6026 | ||
6027 | addobjs= | |
6028 | addlibs= | |
6029 | CXXINCLUDES= | |
6030 | case "$TARGET_ECOS" in | |
6031 | no) | |
6032 | ;; | |
6033 | *) | |
6034 | cat >>confdefs.h <<\_ACEOF | |
6035 | #define ECOS 1 | |
6036 | _ACEOF | |
6037 | ||
6038 | CXXINCLUDES="-I${TARGET_ECOS}/include" | |
6039 | addobjs="$addobjs ecos.lo" | |
6040 | ;; | |
6041 | esac | |
6042 | ||
6043 | ||
6044 | ||
6045 | if test "${enable_cplusplus}" = yes; then | |
6046 | CPLUSPLUS_TRUE= | |
6047 | CPLUSPLUS_FALSE='#' | |
6048 | else | |
6049 | CPLUSPLUS_TRUE='#' | |
6050 | CPLUSPLUS_FALSE= | |
6051 | fi | |
6052 | ||
6053 | ||
6054 | ||
6055 | ||
6056 | ||
6057 | ||
6058 | ||
6059 | # Configuration of shared libraries | |
6060 | # | |
6061 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
6062 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | |
6063 | # Check whether --enable-shared was given. | |
6064 | if test "${enable_shared+set}" = set; then | |
6065 | enableval=$enable_shared; p=${PACKAGE-default} | |
6066 | case $enableval in | |
6067 | yes) enable_shared=yes ;; | |
6068 | no) enable_shared=no ;; | |
6069 | *) | |
6070 | enable_shared=no | |
6071 | # Look at the argument we got. We use all the common list separators. | |
6072 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6073 | for pkg in $enableval; do | |
6074 | IFS="$lt_save_ifs" | |
6075 | if test "X$pkg" = "X$p"; then | |
6076 | enable_shared=yes | |
6077 | fi | |
6078 | done | |
6079 | IFS="$lt_save_ifs" | |
6080 | ;; | |
6081 | esac | |
6082 | else | |
6083 | enable_shared=yes | |
6084 | fi | |
6085 | ||
6086 | ||
6087 | ||
6088 | case "$host" in | |
6089 | alpha-*-openbsd*) | |
6090 | enable_shared=no | |
6091 | { echo "$as_me:$LINENO: result: no" >&5 | |
6092 | echo "${ECHO_T}no" >&6; } | |
6093 | ;; | |
6094 | *) | |
6095 | { echo "$as_me:$LINENO: result: yes" >&5 | |
6096 | echo "${ECHO_T}yes" >&6; } | |
6097 | ;; | |
6098 | esac | |
6099 | ||
6100 | # Configuration of machine-dependent code | |
6101 | # | |
6102 | { echo "$as_me:$LINENO: checking which machine-dependent code should be used" >&5 | |
6103 | echo $ECHO_N "checking which machine-dependent code should be used... $ECHO_C" >&6; } | |
6104 | machdep= | |
6105 | case "$host" in | |
6106 | alpha-*-openbsd*) | |
6107 | machdep="mach_dep.lo" | |
6108 | if test x"${ac_cv_lib_dl_dlopen}" != xyes ; then | |
6109 | { echo "$as_me:$LINENO: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&5 | |
6110 | echo "$as_me: WARNING: OpenBSD/Alpha without dlopen(). Shared library support is disabled" >&2;} | |
6111 | fi | |
6112 | ;; | |
6113 | alpha*-*-linux*) | |
6114 | machdep="mach_dep.lo" | |
6115 | ;; | |
6116 | i?86-*-solaris2.[89] | i?86-*-solaris2.1?) | |
6117 | cat >>confdefs.h <<\_ACEOF | |
6118 | #define SOLARIS25_PROC_VDB_BUG_FIXED 1 | |
6119 | _ACEOF | |
6120 | ||
6121 | ;; | |
6122 | mipstx39-*-elf*) | |
6123 | machdep="mach_dep.lo" | |
6124 | cat >>confdefs.h <<\_ACEOF | |
6125 | #define STACKBASE __stackbase | |
6126 | _ACEOF | |
6127 | ||
6128 | cat >>confdefs.h <<\_ACEOF | |
6129 | #define DATASTART_IS_ETEXT 1 | |
6130 | _ACEOF | |
6131 | ||
6132 | ;; | |
6133 | mips-dec-ultrix*) | |
6134 | machdep="mach-dep.lo" | |
6135 | ;; | |
6136 | mips-nec-sysv*|mips-unknown-sysv*) | |
6137 | ;; | |
6138 | mips*-*-linux*) | |
6139 | ;; | |
6140 | mips-*-*) | |
6141 | machdep="mach_dep.lo" | |
6142 | ;; | |
6143 | sparc-*-netbsd*) | |
6144 | machdep="mach_dep.lo sparc_netbsd_mach_dep.lo" | |
6145 | ;; | |
6146 | sparc-sun-solaris2.3) | |
6147 | machdep="mach_dep.lo sparc_mach_dep.lo" | |
6148 | cat >>confdefs.h <<\_ACEOF | |
6149 | #define SUNOS53_SHARED_LIB 1 | |
6150 | _ACEOF | |
6151 | ||
6152 | ;; | |
6153 | sparc*-sun-solaris2.*) | |
6154 | machdep="mach_dep.lo sparc_mach_dep.lo" | |
6155 | ;; | |
6156 | ia64-*-*) | |
6157 | machdep="mach_dep.lo ia64_save_regs_in_stack.lo" | |
6158 | ;; | |
6159 | esac | |
6160 | if test x"$machdep" = x; then | |
6161 | { echo "$as_me:$LINENO: result: $machdep" >&5 | |
6162 | echo "${ECHO_T}$machdep" >&6; } | |
6163 | machdep="mach_dep.lo" | |
6164 | fi | |
6165 | addobjs="$addobjs $machdep" | |
6166 | ||
6167 | ||
6168 | ||
6169 | # Check whether --enable-static was given. | |
6170 | if test "${enable_static+set}" = set; then | |
6171 | enableval=$enable_static; p=${PACKAGE-default} | |
6172 | case $enableval in | |
6173 | yes) enable_static=yes ;; | |
6174 | no) enable_static=no ;; | |
6175 | *) | |
6176 | enable_static=no | |
6177 | # Look at the argument we got. We use all the common list separators. | |
6178 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6179 | for pkg in $enableval; do | |
6180 | IFS="$lt_save_ifs" | |
6181 | if test "X$pkg" = "X$p"; then | |
6182 | enable_static=yes | |
6183 | fi | |
6184 | done | |
6185 | IFS="$lt_save_ifs" | |
6186 | ;; | |
6187 | esac | |
6188 | else | |
6189 | enable_static=yes | |
6190 | fi | |
6191 | ||
6192 | ||
6193 | # Check whether --enable-fast-install was given. | |
6194 | if test "${enable_fast_install+set}" = set; then | |
6195 | enableval=$enable_fast_install; p=${PACKAGE-default} | |
6196 | case $enableval in | |
6197 | yes) enable_fast_install=yes ;; | |
6198 | no) enable_fast_install=no ;; | |
6199 | *) | |
6200 | enable_fast_install=no | |
6201 | # Look at the argument we got. We use all the common list separators. | |
6202 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
6203 | for pkg in $enableval; do | |
6204 | IFS="$lt_save_ifs" | |
6205 | if test "X$pkg" = "X$p"; then | |
6206 | enable_fast_install=yes | |
6207 | fi | |
6208 | done | |
6209 | IFS="$lt_save_ifs" | |
6210 | ;; | |
6211 | esac | |
6212 | else | |
6213 | enable_fast_install=yes | |
6214 | fi | |
6215 | ||
6216 | ||
6217 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 | |
6218 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } | |
6219 | if test "${lt_cv_path_SED+set}" = set; then | |
6220 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6221 | else | |
6222 | # Loop through the user's path and test for sed and gsed. | |
6223 | # Then use that list of sed's as ones to test for truncation. | |
6224 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6225 | for as_dir in $PATH | |
6226 | do | |
6227 | IFS=$as_save_IFS | |
6228 | test -z "$as_dir" && as_dir=. | |
6229 | for lt_ac_prog in sed gsed; do | |
6230 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6231 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then | |
6232 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" | |
6233 | fi | |
6234 | done | |
6235 | done | |
6236 | done | |
6237 | lt_ac_max=0 | |
6238 | lt_ac_count=0 | |
6239 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris | |
6240 | # along with /bin/sed that truncates output. | |
6241 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do | |
6242 | test ! -f $lt_ac_sed && continue | |
6243 | cat /dev/null > conftest.in | |
6244 | lt_ac_count=0 | |
6245 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in | |
6246 | # Check for GNU sed and select it if it is found. | |
6247 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then | |
6248 | lt_cv_path_SED=$lt_ac_sed | |
6249 | break | |
6250 | fi | |
6251 | while true; do | |
6252 | cat conftest.in conftest.in >conftest.tmp | |
6253 | mv conftest.tmp conftest.in | |
6254 | cp conftest.in conftest.nl | |
6255 | echo >>conftest.nl | |
6256 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break | |
6257 | cmp -s conftest.out conftest.nl || break | |
6258 | # 10000 chars as input seems more than enough | |
6259 | test $lt_ac_count -gt 10 && break | |
6260 | lt_ac_count=`expr $lt_ac_count + 1` | |
6261 | if test $lt_ac_count -gt $lt_ac_max; then | |
6262 | lt_ac_max=$lt_ac_count | |
6263 | lt_cv_path_SED=$lt_ac_sed | |
6264 | fi | |
6265 | done | |
6266 | done | |
6267 | ||
6268 | fi | |
6269 | ||
6270 | SED=$lt_cv_path_SED | |
6271 | { echo "$as_me:$LINENO: result: $SED" >&5 | |
6272 | echo "${ECHO_T}$SED" >&6; } | |
6273 | ||
6274 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 | |
6275 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } | |
6276 | if test "${ac_cv_path_GREP+set}" = set; then | |
6277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6278 | else | |
6279 | # Extract the first word of "grep ggrep" to use in msg output | |
6280 | if test -z "$GREP"; then | |
6281 | set dummy grep ggrep; ac_prog_name=$2 | |
6282 | if test "${ac_cv_path_GREP+set}" = set; then | |
6283 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6284 | else | |
6285 | ac_path_GREP_found=false | |
6286 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6288 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6289 | do | |
6290 | IFS=$as_save_IFS | |
6291 | test -z "$as_dir" && as_dir=. | |
6292 | for ac_prog in grep ggrep; do | |
6293 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6294 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
6295 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue | |
6296 | # Check for GNU ac_path_GREP and select it if it is found. | |
6297 | # Check for GNU $ac_path_GREP | |
6298 | case `"$ac_path_GREP" --version 2>&1` in | |
6299 | *GNU*) | |
6300 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
6301 | *) | |
6302 | ac_count=0 | |
6303 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
6304 | while : | |
6305 | do | |
6306 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6307 | mv "conftest.tmp" "conftest.in" | |
6308 | cp "conftest.in" "conftest.nl" | |
6309 | echo 'GREP' >> "conftest.nl" | |
6310 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6311 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6312 | ac_count=`expr $ac_count + 1` | |
6313 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
6314 | # Best one so far, save it but keep looking for a better one | |
6315 | ac_cv_path_GREP="$ac_path_GREP" | |
6316 | ac_path_GREP_max=$ac_count | |
6317 | fi | |
6318 | # 10*(2^10) chars as input seems more than enough | |
6319 | test $ac_count -gt 10 && break | |
6320 | done | |
6321 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6322 | esac | |
6323 | ||
6324 | ||
6325 | $ac_path_GREP_found && break 3 | |
6326 | done | |
6327 | done | |
6328 | ||
6329 | done | |
6330 | IFS=$as_save_IFS | |
6331 | ||
6332 | ||
6333 | fi | |
6334 | ||
6335 | GREP="$ac_cv_path_GREP" | |
6336 | if test -z "$GREP"; then | |
6337 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
6338 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
6339 | { (exit 1); exit 1; }; } | |
6340 | fi | |
6341 | ||
6342 | else | |
6343 | ac_cv_path_GREP=$GREP | |
6344 | fi | |
6345 | ||
6346 | ||
6347 | fi | |
6348 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 | |
6349 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } | |
6350 | GREP="$ac_cv_path_GREP" | |
6351 | ||
6352 | ||
6353 | { echo "$as_me:$LINENO: checking for egrep" >&5 | |
6354 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } | |
6355 | if test "${ac_cv_path_EGREP+set}" = set; then | |
6356 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6357 | else | |
6358 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
6359 | then ac_cv_path_EGREP="$GREP -E" | |
6360 | else | |
6361 | # Extract the first word of "egrep" to use in msg output | |
6362 | if test -z "$EGREP"; then | |
6363 | set dummy egrep; ac_prog_name=$2 | |
6364 | if test "${ac_cv_path_EGREP+set}" = set; then | |
6365 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6366 | else | |
6367 | ac_path_EGREP_found=false | |
6368 | # Loop through the user's path and test for each of PROGNAME-LIST | |
6369 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
6370 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
6371 | do | |
6372 | IFS=$as_save_IFS | |
6373 | test -z "$as_dir" && as_dir=. | |
6374 | for ac_prog in egrep; do | |
6375 | for ac_exec_ext in '' $ac_executable_extensions; do | |
6376 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
6377 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue | |
6378 | # Check for GNU ac_path_EGREP and select it if it is found. | |
6379 | # Check for GNU $ac_path_EGREP | |
6380 | case `"$ac_path_EGREP" --version 2>&1` in | |
6381 | *GNU*) | |
6382 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
6383 | *) | |
6384 | ac_count=0 | |
6385 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" | |
6386 | while : | |
6387 | do | |
6388 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
6389 | mv "conftest.tmp" "conftest.in" | |
6390 | cp "conftest.in" "conftest.nl" | |
6391 | echo 'EGREP' >> "conftest.nl" | |
6392 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
6393 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
6394 | ac_count=`expr $ac_count + 1` | |
6395 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
6396 | # Best one so far, save it but keep looking for a better one | |
6397 | ac_cv_path_EGREP="$ac_path_EGREP" | |
6398 | ac_path_EGREP_max=$ac_count | |
6399 | fi | |
6400 | # 10*(2^10) chars as input seems more than enough | |
6401 | test $ac_count -gt 10 && break | |
6402 | done | |
6403 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
6404 | esac | |
6405 | ||
6406 | ||
6407 | $ac_path_EGREP_found && break 3 | |
6408 | done | |
6409 | done | |
6410 | ||
6411 | done | |
6412 | IFS=$as_save_IFS | |
6413 | ||
6414 | ||
6415 | fi | |
6416 | ||
6417 | EGREP="$ac_cv_path_EGREP" | |
6418 | if test -z "$EGREP"; then | |
6419 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 | |
6420 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} | |
6421 | { (exit 1); exit 1; }; } | |
6422 | fi | |
6423 | ||
6424 | else | |
6425 | ac_cv_path_EGREP=$EGREP | |
6426 | fi | |
6427 | ||
6428 | ||
6429 | fi | |
6430 | fi | |
6431 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 | |
6432 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } | |
6433 | EGREP="$ac_cv_path_EGREP" | |
6434 | ||
6435 | ||
6436 | ||
6437 | # Check whether --with-gnu-ld was given. | |
6438 | if test "${with_gnu_ld+set}" = set; then | |
6439 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
6440 | else | |
6441 | with_gnu_ld=no | |
6442 | fi | |
6443 | ||
6444 | ac_prog=ld | |
6445 | if test "$GCC" = yes; then | |
6446 | # Check if gcc -print-prog-name=ld gives a path. | |
6447 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
6448 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | |
6449 | case $host in | |
6450 | *-*-mingw*) | |
6451 | # gcc leaves a trailing carriage return which upsets mingw | |
6452 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
6453 | *) | |
6454 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
6455 | esac | |
6456 | case $ac_prog in | |
6457 | # Accept absolute paths. | |
6458 | [\\/]* | ?:[\\/]*) | |
6459 | re_direlt='/[^/][^/]*/\.\./' | |
6460 | # Canonicalize the pathname of ld | |
6461 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
6462 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
6463 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
6464 | done | |
6465 | test -z "$LD" && LD="$ac_prog" | |
6466 | ;; | |
6467 | "") | |
6468 | # If it fails, then pretend we aren't using GCC. | |
6469 | ac_prog=ld | |
6470 | ;; | |
6471 | *) | |
6472 | # If it is relative, then search for the first ld in PATH. | |
6473 | with_gnu_ld=unknown | |
6474 | ;; | |
6475 | esac | |
6476 | elif test "$with_gnu_ld" = yes; then | |
6477 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
6478 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | |
6479 | else | |
6480 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
6481 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | |
6482 | fi | |
6483 | if test "${lt_cv_path_LD+set}" = set; then | |
6484 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6485 | else | |
6486 | if test -z "$LD"; then | |
6487 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6488 | for ac_dir in $PATH; do | |
6489 | IFS="$lt_save_ifs" | |
6490 | test -z "$ac_dir" && ac_dir=. | |
6491 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
6492 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
6493 | # Check to see if the program is GNU ld. I'd rather use --version, | |
6494 | # but apparently some variants of GNU ld only accept -v. | |
6495 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
6496 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
6497 | *GNU* | *'with BFD'*) | |
6498 | test "$with_gnu_ld" != no && break | |
6499 | ;; | |
6500 | *) | |
6501 | test "$with_gnu_ld" != yes && break | |
6502 | ;; | |
6503 | esac | |
6504 | fi | |
6505 | done | |
6506 | IFS="$lt_save_ifs" | |
6507 | else | |
6508 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
6509 | fi | |
6510 | fi | |
6511 | ||
6512 | LD="$lt_cv_path_LD" | |
6513 | if test -n "$LD"; then | |
6514 | { echo "$as_me:$LINENO: result: $LD" >&5 | |
6515 | echo "${ECHO_T}$LD" >&6; } | |
6516 | else | |
6517 | { echo "$as_me:$LINENO: result: no" >&5 | |
6518 | echo "${ECHO_T}no" >&6; } | |
6519 | fi | |
6520 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
6521 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
6522 | { (exit 1); exit 1; }; } | |
6523 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
6524 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | |
6525 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
6526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6527 | else | |
6528 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
6529 | case `$LD -v 2>&1 </dev/null` in | |
6530 | *GNU* | *'with BFD'*) | |
6531 | lt_cv_prog_gnu_ld=yes | |
6532 | ;; | |
6533 | *) | |
6534 | lt_cv_prog_gnu_ld=no | |
6535 | ;; | |
6536 | esac | |
6537 | fi | |
6538 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
6539 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | |
6540 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
6541 | ||
6542 | ||
6543 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 | |
6544 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } | |
6545 | if test "${lt_cv_ld_reload_flag+set}" = set; then | |
6546 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6547 | else | |
6548 | lt_cv_ld_reload_flag='-r' | |
6549 | fi | |
6550 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 | |
6551 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } | |
6552 | reload_flag=$lt_cv_ld_reload_flag | |
6553 | case $reload_flag in | |
6554 | "" | " "*) ;; | |
6555 | *) reload_flag=" $reload_flag" ;; | |
6556 | esac | |
6557 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6558 | case $host_os in | |
6559 | darwin*) | |
6560 | if test "$GCC" = yes; then | |
6561 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' | |
6562 | else | |
6563 | reload_cmds='$LD$reload_flag -o $output$reload_objs' | |
6564 | fi | |
6565 | ;; | |
6566 | esac | |
6567 | ||
6568 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 | |
6569 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } | |
6570 | if test "${lt_cv_path_NM+set}" = set; then | |
6571 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6572 | else | |
6573 | if test -n "$NM"; then | |
6574 | # Let the user override the test. | |
6575 | lt_cv_path_NM="$NM" | |
6576 | else | |
6577 | lt_nm_to_check="${ac_tool_prefix}nm" | |
6578 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then | |
6579 | lt_nm_to_check="$lt_nm_to_check nm" | |
6580 | fi | |
6581 | for lt_tmp_nm in $lt_nm_to_check; do | |
6582 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
6583 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do | |
6584 | IFS="$lt_save_ifs" | |
6585 | test -z "$ac_dir" && ac_dir=. | |
6586 | tmp_nm="$ac_dir/$lt_tmp_nm" | |
6587 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then | |
6588 | # Check to see if the nm accepts a BSD-compat flag. | |
6589 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: | |
6590 | # nm: unknown option "B" ignored | |
6591 | # Tru64's nm complains that /dev/null is an invalid object file | |
6592 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in | |
6593 | */dev/null* | *'Invalid file or object type'*) | |
6594 | lt_cv_path_NM="$tmp_nm -B" | |
6595 | break | |
6596 | ;; | |
6597 | *) | |
6598 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in | |
6599 | */dev/null*) | |
6600 | lt_cv_path_NM="$tmp_nm -p" | |
6601 | break | |
6602 | ;; | |
6603 | *) | |
6604 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but | |
6605 | continue # so that we can try to find one that supports BSD flags | |
6606 | ;; | |
6607 | esac | |
6608 | ;; | |
6609 | esac | |
6610 | fi | |
6611 | done | |
6612 | IFS="$lt_save_ifs" | |
6613 | done | |
6614 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm | |
6615 | fi | |
6616 | fi | |
6617 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 | |
6618 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } | |
6619 | NM="$lt_cv_path_NM" | |
6620 | ||
6621 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 | |
6622 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } | |
6623 | LN_S=$as_ln_s | |
6624 | if test "$LN_S" = "ln -s"; then | |
6625 | { echo "$as_me:$LINENO: result: yes" >&5 | |
6626 | echo "${ECHO_T}yes" >&6; } | |
6627 | else | |
6628 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 | |
6629 | echo "${ECHO_T}no, using $LN_S" >&6; } | |
6630 | fi | |
6631 | ||
6632 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 | |
6633 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } | |
6634 | if test "${lt_cv_deplibs_check_method+set}" = set; then | |
6635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6636 | else | |
6637 | lt_cv_file_magic_cmd='$MAGIC_CMD' | |
6638 | lt_cv_file_magic_test_file= | |
6639 | lt_cv_deplibs_check_method='unknown' | |
6640 | # Need to set the preceding variable on all platforms that support | |
6641 | # interlibrary dependencies. | |
6642 | # 'none' -- dependencies not supported. | |
6643 | # `unknown' -- same as none, but documents that we really don't know. | |
6644 | # 'pass_all' -- all dependencies passed with no checks. | |
6645 | # 'test_compile' -- check by making test program. | |
6646 | # 'file_magic [[regex]]' -- check by looking for files in library path | |
6647 | # which responds to the $file_magic_cmd with a given extended regex. | |
6648 | # If you have `file' or equivalent on your system and you're not sure | |
6649 | # whether `pass_all' will *always* work, you probably want this one. | |
6650 | ||
6651 | case $host_os in | |
6652 | aix4* | aix5*) | |
6653 | lt_cv_deplibs_check_method=pass_all | |
6654 | ;; | |
6655 | ||
6656 | beos*) | |
6657 | lt_cv_deplibs_check_method=pass_all | |
6658 | ;; | |
6659 | ||
6660 | bsdi[45]*) | |
6661 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' | |
6662 | lt_cv_file_magic_cmd='/usr/bin/file -L' | |
6663 | lt_cv_file_magic_test_file=/shlib/libc.so | |
6664 | ;; | |
6665 | ||
6666 | cygwin*) | |
6667 | # func_win32_libid is a shell function defined in ltmain.sh | |
6668 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' | |
6669 | lt_cv_file_magic_cmd='func_win32_libid' | |
6670 | ;; | |
6671 | ||
6672 | mingw* | pw32*) | |
6673 | # Base MSYS/MinGW do not provide the 'file' command needed by | |
6674 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. | |
6675 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' | |
6676 | lt_cv_file_magic_cmd='$OBJDUMP -f' | |
6677 | ;; | |
6678 | ||
6679 | darwin* | rhapsody*) | |
6680 | lt_cv_deplibs_check_method=pass_all | |
6681 | ;; | |
6682 | ||
6683 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
6684 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
6685 | case $host_cpu in | |
6686 | i*86 ) | |
6687 | # Not sure whether the presence of OpenBSD here was a mistake. | |
6688 | # Let's accept both of them until this is cleared up. | |
6689 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' | |
6690 | lt_cv_file_magic_cmd=/usr/bin/file | |
6691 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` | |
6692 | ;; | |
6693 | esac | |
6694 | else | |
6695 | lt_cv_deplibs_check_method=pass_all | |
6696 | fi | |
6697 | ;; | |
6698 | ||
6699 | gnu*) | |
6700 | lt_cv_deplibs_check_method=pass_all | |
6701 | ;; | |
6702 | ||
6703 | hpux10.20* | hpux11*) | |
6704 | lt_cv_file_magic_cmd=/usr/bin/file | |
6705 | case $host_cpu in | |
6706 | ia64*) | |
6707 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' | |
6708 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so | |
6709 | ;; | |
6710 | hppa*64*) | |
6711 | 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]' | |
6712 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl | |
6713 | ;; | |
6714 | *) | |
6715 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' | |
6716 | lt_cv_file_magic_test_file=/usr/lib/libc.sl | |
6717 | ;; | |
6718 | esac | |
6719 | ;; | |
6720 | ||
6721 | interix3*) | |
6722 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here | |
6723 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' | |
6724 | ;; | |
6725 | ||
6726 | irix5* | irix6* | nonstopux*) | |
6727 | case $LD in | |
6728 | *-32|*"-32 ") libmagic=32-bit;; | |
6729 | *-n32|*"-n32 ") libmagic=N32;; | |
6730 | *-64|*"-64 ") libmagic=64-bit;; | |
6731 | *) libmagic=never-match;; | |
6732 | esac | |
6733 | lt_cv_deplibs_check_method=pass_all | |
6734 | ;; | |
6735 | ||
6736 | # This must be Linux ELF. | |
6737 | linux*) | |
6738 | lt_cv_deplibs_check_method=pass_all | |
6739 | ;; | |
6740 | ||
6741 | netbsd*) | |
6742 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then | |
6743 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6744 | else | |
6745 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' | |
6746 | fi | |
6747 | ;; | |
6748 | ||
6749 | newos6*) | |
6750 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' | |
6751 | lt_cv_file_magic_cmd=/usr/bin/file | |
6752 | lt_cv_file_magic_test_file=/usr/lib/libnls.so | |
6753 | ;; | |
6754 | ||
6755 | nto-qnx*) | |
6756 | lt_cv_deplibs_check_method=unknown | |
6757 | ;; | |
6758 | ||
6759 | openbsd*) | |
6760 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
6761 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' | |
6762 | else | |
6763 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' | |
6764 | fi | |
6765 | ;; | |
6766 | ||
6767 | osf3* | osf4* | osf5*) | |
6768 | lt_cv_deplibs_check_method=pass_all | |
6769 | ;; | |
6770 | ||
6771 | solaris*) | |
6772 | lt_cv_deplibs_check_method=pass_all | |
6773 | ;; | |
6774 | ||
6775 | sysv4 | sysv4.3*) | |
6776 | case $host_vendor in | |
6777 | motorola) | |
6778 | 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]' | |
6779 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` | |
6780 | ;; | |
6781 | ncr) | |
6782 | lt_cv_deplibs_check_method=pass_all | |
6783 | ;; | |
6784 | sequent) | |
6785 | lt_cv_file_magic_cmd='/bin/file' | |
6786 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' | |
6787 | ;; | |
6788 | sni) | |
6789 | lt_cv_file_magic_cmd='/bin/file' | |
6790 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" | |
6791 | lt_cv_file_magic_test_file=/lib/libc.so | |
6792 | ;; | |
6793 | siemens) | |
6794 | lt_cv_deplibs_check_method=pass_all | |
6795 | ;; | |
6796 | pc) | |
6797 | lt_cv_deplibs_check_method=pass_all | |
6798 | ;; | |
6799 | esac | |
6800 | ;; | |
6801 | ||
6802 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
6803 | lt_cv_deplibs_check_method=pass_all | |
6804 | ;; | |
6805 | esac | |
6806 | ||
6807 | fi | |
6808 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 | |
6809 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } | |
6810 | file_magic_cmd=$lt_cv_file_magic_cmd | |
6811 | deplibs_check_method=$lt_cv_deplibs_check_method | |
6812 | test -z "$deplibs_check_method" && deplibs_check_method=unknown | |
6813 | ||
6814 | ||
6815 | ||
6816 | ||
6817 | # If no C compiler was specified, use CC. | |
6818 | LTCC=${LTCC-"$CC"} | |
6819 | ||
6820 | # If no C compiler flags were specified, use CFLAGS. | |
6821 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
6822 | ||
6823 | # Allow CC to be a program name with arguments. | |
6824 | compiler=$CC | |
6825 | ||
6826 | # Check whether --enable-libtool-lock was given. | |
6827 | if test "${enable_libtool_lock+set}" = set; then | |
6828 | enableval=$enable_libtool_lock; | |
6829 | fi | |
6830 | ||
6831 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
6832 | ||
6833 | # Some flags need to be propagated to the compiler or linker for good | |
6834 | # libtool support. | |
6835 | case $host in | |
6836 | ia64-*-hpux*) | |
6837 | # Find out which ABI we are using. | |
6838 | echo 'int i;' > conftest.$ac_ext | |
6839 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6840 | (eval $ac_compile) 2>&5 | |
6841 | ac_status=$? | |
6842 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6843 | (exit $ac_status); }; then | |
6844 | case `/usr/bin/file conftest.$ac_objext` in | |
6845 | *ELF-32*) | |
6846 | HPUX_IA64_MODE="32" | |
6847 | ;; | |
6848 | *ELF-64*) | |
6849 | HPUX_IA64_MODE="64" | |
6850 | ;; | |
6851 | esac | |
6852 | fi | |
6853 | rm -rf conftest* | |
6854 | ;; | |
6855 | *-*-irix6*) | |
6856 | # Find out which ABI we are using. | |
6857 | echo '#line 6857 "configure"' > conftest.$ac_ext | |
6858 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6859 | (eval $ac_compile) 2>&5 | |
6860 | ac_status=$? | |
6861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6862 | (exit $ac_status); }; then | |
6863 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
6864 | case `/usr/bin/file conftest.$ac_objext` in | |
6865 | *32-bit*) | |
6866 | LD="${LD-ld} -melf32bsmip" | |
6867 | ;; | |
6868 | *N32*) | |
6869 | LD="${LD-ld} -melf32bmipn32" | |
6870 | ;; | |
6871 | *64-bit*) | |
6872 | LD="${LD-ld} -melf64bmip" | |
6873 | ;; | |
6874 | esac | |
6875 | else | |
6876 | case `/usr/bin/file conftest.$ac_objext` in | |
6877 | *32-bit*) | |
6878 | LD="${LD-ld} -32" | |
6879 | ;; | |
6880 | *N32*) | |
6881 | LD="${LD-ld} -n32" | |
6882 | ;; | |
6883 | *64-bit*) | |
6884 | LD="${LD-ld} -64" | |
6885 | ;; | |
6886 | esac | |
6887 | fi | |
6888 | fi | |
6889 | rm -rf conftest* | |
6890 | ;; | |
6891 | ||
6892 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) | |
6893 | # Find out which ABI we are using. | |
6894 | echo 'int i;' > conftest.$ac_ext | |
6895 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6896 | (eval $ac_compile) 2>&5 | |
6897 | ac_status=$? | |
6898 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6899 | (exit $ac_status); }; then | |
6900 | case `/usr/bin/file conftest.o` in | |
6901 | *32-bit*) | |
6902 | case $host in | |
6903 | x86_64-*linux*) | |
6904 | LD="${LD-ld} -m elf_i386" | |
6905 | ;; | |
6906 | ppc64-*linux*|powerpc64-*linux*) | |
6907 | LD="${LD-ld} -m elf32ppclinux" | |
6908 | ;; | |
6909 | s390x-*linux*) | |
6910 | LD="${LD-ld} -m elf_s390" | |
6911 | ;; | |
6912 | sparc64-*linux*) | |
6913 | LD="${LD-ld} -m elf32_sparc" | |
6914 | ;; | |
6915 | esac | |
6916 | ;; | |
6917 | *64-bit*) | |
6918 | case $host in | |
6919 | x86_64-*linux*) | |
6920 | LD="${LD-ld} -m elf_x86_64" | |
6921 | ;; | |
6922 | ppc*-*linux*|powerpc*-*linux*) | |
6923 | LD="${LD-ld} -m elf64ppc" | |
6924 | ;; | |
6925 | s390*-*linux*) | |
6926 | LD="${LD-ld} -m elf64_s390" | |
6927 | ;; | |
6928 | sparc*-*linux*) | |
6929 | LD="${LD-ld} -m elf64_sparc" | |
6930 | ;; | |
6931 | esac | |
6932 | ;; | |
6933 | esac | |
6934 | fi | |
6935 | rm -rf conftest* | |
6936 | ;; | |
6937 | ||
6938 | *-*-sco3.2v5*) | |
6939 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. | |
6940 | SAVE_CFLAGS="$CFLAGS" | |
6941 | CFLAGS="$CFLAGS -belf" | |
6942 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 | |
6943 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } | |
6944 | if test "${lt_cv_cc_needs_belf+set}" = set; then | |
6945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6946 | else | |
6947 | ac_ext=c | |
6948 | ac_cpp='$CPP $CPPFLAGS' | |
6949 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6950 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
6951 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
6952 | ||
6953 | cat >conftest.$ac_ext <<_ACEOF | |
6954 | /* confdefs.h. */ | |
6955 | _ACEOF | |
6956 | cat confdefs.h >>conftest.$ac_ext | |
6957 | cat >>conftest.$ac_ext <<_ACEOF | |
6958 | /* end confdefs.h. */ | |
6959 | ||
6960 | int | |
6961 | main () | |
6962 | { | |
6963 | ||
6964 | ; | |
6965 | return 0; | |
6966 | } | |
6967 | _ACEOF | |
6968 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6969 | if { (ac_try="$ac_link" | |
6970 | case "(($ac_try" in | |
6971 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
6972 | *) ac_try_echo=$ac_try;; | |
6973 | esac | |
6974 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
6975 | (eval "$ac_link") 2>conftest.er1 | |
6976 | ac_status=$? | |
6977 | grep -v '^ *+' conftest.er1 >conftest.err | |
6978 | rm -f conftest.er1 | |
6979 | cat conftest.err >&5 | |
6980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6981 | (exit $ac_status); } && { | |
6982 | test -z "$ac_c_werror_flag" || | |
6983 | test ! -s conftest.err | |
6984 | } && test -s conftest$ac_exeext && | |
6985 | $as_test_x conftest$ac_exeext; then | |
6986 | lt_cv_cc_needs_belf=yes | |
6987 | else | |
6988 | echo "$as_me: failed program was:" >&5 | |
6989 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6990 | ||
6991 | lt_cv_cc_needs_belf=no | |
6992 | fi | |
6993 | ||
6994 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
6995 | conftest$ac_exeext conftest.$ac_ext | |
6996 | ac_ext=c | |
6997 | ac_cpp='$CPP $CPPFLAGS' | |
6998 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
6999 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7000 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7001 | ||
7002 | fi | |
7003 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 | |
7004 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } | |
7005 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then | |
7006 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf | |
7007 | CFLAGS="$SAVE_CFLAGS" | |
7008 | fi | |
7009 | ;; | |
7010 | sparc*-*solaris*) | |
7011 | # Find out which ABI we are using. | |
7012 | echo 'int i;' > conftest.$ac_ext | |
7013 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7014 | (eval $ac_compile) 2>&5 | |
7015 | ac_status=$? | |
7016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7017 | (exit $ac_status); }; then | |
7018 | case `/usr/bin/file conftest.o` in | |
7019 | *64-bit*) | |
7020 | case $lt_cv_prog_gnu_ld in | |
7021 | yes*) LD="${LD-ld} -m elf64_sparc" ;; | |
7022 | *) LD="${LD-ld} -64" ;; | |
7023 | esac | |
7024 | ;; | |
7025 | esac | |
7026 | fi | |
7027 | rm -rf conftest* | |
7028 | ;; | |
7029 | ||
7030 | ||
7031 | esac | |
7032 | ||
7033 | need_locks="$enable_libtool_lock" | |
7034 | ||
7035 | ||
7036 | ac_ext=c | |
7037 | ac_cpp='$CPP $CPPFLAGS' | |
7038 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7039 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7040 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7041 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
7042 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } | |
7043 | # On Suns, sometimes $CPP names a directory. | |
7044 | if test -n "$CPP" && test -d "$CPP"; then | |
7045 | CPP= | |
7046 | fi | |
7047 | if test -z "$CPP"; then | |
7048 | if test "${ac_cv_prog_CPP+set}" = set; then | |
7049 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7050 | else | |
7051 | # Double quotes because CPP needs to be expanded | |
7052 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
7053 | do | |
7054 | ac_preproc_ok=false | |
7055 | for ac_c_preproc_warn_flag in '' yes | |
7056 | do | |
7057 | # Use a header file that comes with gcc, so configuring glibc | |
7058 | # with a fresh cross-compiler works. | |
7059 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7060 | # <limits.h> exists even on freestanding compilers. | |
7061 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7062 | # not just through cpp. "Syntax error" is here to catch this case. | |
7063 | cat >conftest.$ac_ext <<_ACEOF | |
7064 | /* confdefs.h. */ | |
7065 | _ACEOF | |
7066 | cat confdefs.h >>conftest.$ac_ext | |
7067 | cat >>conftest.$ac_ext <<_ACEOF | |
7068 | /* end confdefs.h. */ | |
7069 | #ifdef __STDC__ | |
7070 | # include <limits.h> | |
7071 | #else | |
7072 | # include <assert.h> | |
7073 | #endif | |
7074 | Syntax error | |
7075 | _ACEOF | |
7076 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7077 | case "(($ac_try" in | |
7078 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7079 | *) ac_try_echo=$ac_try;; | |
7080 | esac | |
7081 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7082 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7083 | ac_status=$? | |
7084 | grep -v '^ *+' conftest.er1 >conftest.err | |
7085 | rm -f conftest.er1 | |
7086 | cat conftest.err >&5 | |
7087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7088 | (exit $ac_status); } >/dev/null && { | |
7089 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7090 | test ! -s conftest.err | |
7091 | }; then | |
7092 | : | |
7093 | else | |
7094 | echo "$as_me: failed program was:" >&5 | |
7095 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7096 | ||
7097 | # Broken: fails on valid input. | |
7098 | continue | |
7099 | fi | |
7100 | ||
7101 | rm -f conftest.err conftest.$ac_ext | |
7102 | ||
7103 | # OK, works on sane cases. Now check whether nonexistent headers | |
7104 | # can be detected and how. | |
7105 | cat >conftest.$ac_ext <<_ACEOF | |
7106 | /* confdefs.h. */ | |
7107 | _ACEOF | |
7108 | cat confdefs.h >>conftest.$ac_ext | |
7109 | cat >>conftest.$ac_ext <<_ACEOF | |
7110 | /* end confdefs.h. */ | |
7111 | #include <ac_nonexistent.h> | |
7112 | _ACEOF | |
7113 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7114 | case "(($ac_try" in | |
7115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7116 | *) ac_try_echo=$ac_try;; | |
7117 | esac | |
7118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7119 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7120 | ac_status=$? | |
7121 | grep -v '^ *+' conftest.er1 >conftest.err | |
7122 | rm -f conftest.er1 | |
7123 | cat conftest.err >&5 | |
7124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7125 | (exit $ac_status); } >/dev/null && { | |
7126 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7127 | test ! -s conftest.err | |
7128 | }; then | |
7129 | # Broken: success on invalid input. | |
7130 | continue | |
7131 | else | |
7132 | echo "$as_me: failed program was:" >&5 | |
7133 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7134 | ||
7135 | # Passes both tests. | |
7136 | ac_preproc_ok=: | |
7137 | break | |
7138 | fi | |
7139 | ||
7140 | rm -f conftest.err conftest.$ac_ext | |
7141 | ||
7142 | done | |
7143 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7144 | rm -f conftest.err conftest.$ac_ext | |
7145 | if $ac_preproc_ok; then | |
7146 | break | |
7147 | fi | |
7148 | ||
7149 | done | |
7150 | ac_cv_prog_CPP=$CPP | |
7151 | ||
7152 | fi | |
7153 | CPP=$ac_cv_prog_CPP | |
7154 | else | |
7155 | ac_cv_prog_CPP=$CPP | |
7156 | fi | |
7157 | { echo "$as_me:$LINENO: result: $CPP" >&5 | |
7158 | echo "${ECHO_T}$CPP" >&6; } | |
7159 | ac_preproc_ok=false | |
7160 | for ac_c_preproc_warn_flag in '' yes | |
7161 | do | |
7162 | # Use a header file that comes with gcc, so configuring glibc | |
7163 | # with a fresh cross-compiler works. | |
7164 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7165 | # <limits.h> exists even on freestanding compilers. | |
7166 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7167 | # not just through cpp. "Syntax error" is here to catch this case. | |
7168 | cat >conftest.$ac_ext <<_ACEOF | |
7169 | /* confdefs.h. */ | |
7170 | _ACEOF | |
7171 | cat confdefs.h >>conftest.$ac_ext | |
7172 | cat >>conftest.$ac_ext <<_ACEOF | |
7173 | /* end confdefs.h. */ | |
7174 | #ifdef __STDC__ | |
7175 | # include <limits.h> | |
7176 | #else | |
7177 | # include <assert.h> | |
7178 | #endif | |
7179 | Syntax error | |
7180 | _ACEOF | |
7181 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7182 | case "(($ac_try" in | |
7183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7184 | *) ac_try_echo=$ac_try;; | |
7185 | esac | |
7186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7187 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7188 | ac_status=$? | |
7189 | grep -v '^ *+' conftest.er1 >conftest.err | |
7190 | rm -f conftest.er1 | |
7191 | cat conftest.err >&5 | |
7192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7193 | (exit $ac_status); } >/dev/null && { | |
7194 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7195 | test ! -s conftest.err | |
7196 | }; then | |
7197 | : | |
7198 | else | |
7199 | echo "$as_me: failed program was:" >&5 | |
7200 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7201 | ||
7202 | # Broken: fails on valid input. | |
7203 | continue | |
7204 | fi | |
7205 | ||
7206 | rm -f conftest.err conftest.$ac_ext | |
7207 | ||
7208 | # OK, works on sane cases. Now check whether nonexistent headers | |
7209 | # can be detected and how. | |
7210 | cat >conftest.$ac_ext <<_ACEOF | |
7211 | /* confdefs.h. */ | |
7212 | _ACEOF | |
7213 | cat confdefs.h >>conftest.$ac_ext | |
7214 | cat >>conftest.$ac_ext <<_ACEOF | |
7215 | /* end confdefs.h. */ | |
7216 | #include <ac_nonexistent.h> | |
7217 | _ACEOF | |
7218 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7219 | case "(($ac_try" in | |
7220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7221 | *) ac_try_echo=$ac_try;; | |
7222 | esac | |
7223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7224 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7225 | ac_status=$? | |
7226 | grep -v '^ *+' conftest.er1 >conftest.err | |
7227 | rm -f conftest.er1 | |
7228 | cat conftest.err >&5 | |
7229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7230 | (exit $ac_status); } >/dev/null && { | |
7231 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7232 | test ! -s conftest.err | |
7233 | }; then | |
7234 | # Broken: success on invalid input. | |
7235 | continue | |
7236 | else | |
7237 | echo "$as_me: failed program was:" >&5 | |
7238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7239 | ||
7240 | # Passes both tests. | |
7241 | ac_preproc_ok=: | |
7242 | break | |
7243 | fi | |
7244 | ||
7245 | rm -f conftest.err conftest.$ac_ext | |
7246 | ||
7247 | done | |
7248 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7249 | rm -f conftest.err conftest.$ac_ext | |
7250 | if $ac_preproc_ok; then | |
7251 | : | |
7252 | else | |
7253 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
7254 | See \`config.log' for more details." >&5 | |
7255 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
7256 | See \`config.log' for more details." >&2;} | |
7257 | { (exit 1); exit 1; }; } | |
7258 | fi | |
7259 | ||
7260 | ac_ext=c | |
7261 | ac_cpp='$CPP $CPPFLAGS' | |
7262 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7263 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7264 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
7265 | ||
7266 | ||
7267 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
7268 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } | |
7269 | if test "${ac_cv_header_stdc+set}" = set; then | |
7270 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7271 | else | |
7272 | cat >conftest.$ac_ext <<_ACEOF | |
7273 | /* confdefs.h. */ | |
7274 | _ACEOF | |
7275 | cat confdefs.h >>conftest.$ac_ext | |
7276 | cat >>conftest.$ac_ext <<_ACEOF | |
7277 | /* end confdefs.h. */ | |
7278 | #include <stdlib.h> | |
7279 | #include <stdarg.h> | |
7280 | #include <string.h> | |
7281 | #include <float.h> | |
7282 | ||
7283 | int | |
7284 | main () | |
7285 | { | |
7286 | ||
7287 | ; | |
7288 | return 0; | |
7289 | } | |
7290 | _ACEOF | |
7291 | rm -f conftest.$ac_objext | |
7292 | if { (ac_try="$ac_compile" | |
7293 | case "(($ac_try" in | |
7294 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7295 | *) ac_try_echo=$ac_try;; | |
7296 | esac | |
7297 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7298 | (eval "$ac_compile") 2>conftest.er1 | |
7299 | ac_status=$? | |
7300 | grep -v '^ *+' conftest.er1 >conftest.err | |
7301 | rm -f conftest.er1 | |
7302 | cat conftest.err >&5 | |
7303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7304 | (exit $ac_status); } && { | |
7305 | test -z "$ac_c_werror_flag" || | |
7306 | test ! -s conftest.err | |
7307 | } && test -s conftest.$ac_objext; then | |
7308 | ac_cv_header_stdc=yes | |
7309 | else | |
7310 | echo "$as_me: failed program was:" >&5 | |
7311 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7312 | ||
7313 | ac_cv_header_stdc=no | |
7314 | fi | |
7315 | ||
7316 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7317 | ||
7318 | if test $ac_cv_header_stdc = yes; then | |
7319 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
7320 | cat >conftest.$ac_ext <<_ACEOF | |
7321 | /* confdefs.h. */ | |
7322 | _ACEOF | |
7323 | cat confdefs.h >>conftest.$ac_ext | |
7324 | cat >>conftest.$ac_ext <<_ACEOF | |
7325 | /* end confdefs.h. */ | |
7326 | #include <string.h> | |
7327 | ||
7328 | _ACEOF | |
7329 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7330 | $EGREP "memchr" >/dev/null 2>&1; then | |
7331 | : | |
7332 | else | |
7333 | ac_cv_header_stdc=no | |
7334 | fi | |
7335 | rm -f conftest* | |
7336 | ||
7337 | fi | |
7338 | ||
7339 | if test $ac_cv_header_stdc = yes; then | |
7340 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
7341 | cat >conftest.$ac_ext <<_ACEOF | |
7342 | /* confdefs.h. */ | |
7343 | _ACEOF | |
7344 | cat confdefs.h >>conftest.$ac_ext | |
7345 | cat >>conftest.$ac_ext <<_ACEOF | |
7346 | /* end confdefs.h. */ | |
7347 | #include <stdlib.h> | |
7348 | ||
7349 | _ACEOF | |
7350 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
7351 | $EGREP "free" >/dev/null 2>&1; then | |
7352 | : | |
7353 | else | |
7354 | ac_cv_header_stdc=no | |
7355 | fi | |
7356 | rm -f conftest* | |
7357 | ||
7358 | fi | |
7359 | ||
7360 | if test $ac_cv_header_stdc = yes; then | |
7361 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
7362 | if test "$cross_compiling" = yes; then | |
7363 | : | |
7364 | else | |
7365 | cat >conftest.$ac_ext <<_ACEOF | |
7366 | /* confdefs.h. */ | |
7367 | _ACEOF | |
7368 | cat confdefs.h >>conftest.$ac_ext | |
7369 | cat >>conftest.$ac_ext <<_ACEOF | |
7370 | /* end confdefs.h. */ | |
7371 | #include <ctype.h> | |
7372 | #include <stdlib.h> | |
7373 | #if ((' ' & 0x0FF) == 0x020) | |
7374 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
7375 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
7376 | #else | |
7377 | # define ISLOWER(c) \ | |
7378 | (('a' <= (c) && (c) <= 'i') \ | |
7379 | || ('j' <= (c) && (c) <= 'r') \ | |
7380 | || ('s' <= (c) && (c) <= 'z')) | |
7381 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
7382 | #endif | |
7383 | ||
7384 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
7385 | int | |
7386 | main () | |
7387 | { | |
7388 | int i; | |
7389 | for (i = 0; i < 256; i++) | |
7390 | if (XOR (islower (i), ISLOWER (i)) | |
7391 | || toupper (i) != TOUPPER (i)) | |
7392 | return 2; | |
7393 | return 0; | |
7394 | } | |
7395 | _ACEOF | |
7396 | rm -f conftest$ac_exeext | |
7397 | if { (ac_try="$ac_link" | |
7398 | case "(($ac_try" in | |
7399 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7400 | *) ac_try_echo=$ac_try;; | |
7401 | esac | |
7402 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7403 | (eval "$ac_link") 2>&5 | |
7404 | ac_status=$? | |
7405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7406 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7407 | { (case "(($ac_try" in | |
7408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7409 | *) ac_try_echo=$ac_try;; | |
7410 | esac | |
7411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7412 | (eval "$ac_try") 2>&5 | |
7413 | ac_status=$? | |
7414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7415 | (exit $ac_status); }; }; then | |
7416 | : | |
7417 | else | |
7418 | echo "$as_me: program exited with status $ac_status" >&5 | |
7419 | echo "$as_me: failed program was:" >&5 | |
7420 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7421 | ||
7422 | ( exit $ac_status ) | |
7423 | ac_cv_header_stdc=no | |
7424 | fi | |
7425 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
7426 | fi | |
7427 | ||
7428 | ||
7429 | fi | |
7430 | fi | |
7431 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
7432 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } | |
7433 | if test $ac_cv_header_stdc = yes; then | |
7434 | ||
7435 | cat >>confdefs.h <<\_ACEOF | |
7436 | #define STDC_HEADERS 1 | |
7437 | _ACEOF | |
7438 | ||
7439 | fi | |
7440 | ||
7441 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
7442 | ||
7443 | ||
7444 | ||
7445 | ||
7446 | ||
7447 | ||
7448 | ||
7449 | ||
7450 | ||
7451 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
7452 | inttypes.h stdint.h unistd.h | |
7453 | do | |
7454 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7455 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7456 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7457 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7459 | else | |
7460 | cat >conftest.$ac_ext <<_ACEOF | |
7461 | /* confdefs.h. */ | |
7462 | _ACEOF | |
7463 | cat confdefs.h >>conftest.$ac_ext | |
7464 | cat >>conftest.$ac_ext <<_ACEOF | |
7465 | /* end confdefs.h. */ | |
7466 | $ac_includes_default | |
7467 | ||
7468 | #include <$ac_header> | |
7469 | _ACEOF | |
7470 | rm -f conftest.$ac_objext | |
7471 | if { (ac_try="$ac_compile" | |
7472 | case "(($ac_try" in | |
7473 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7474 | *) ac_try_echo=$ac_try;; | |
7475 | esac | |
7476 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7477 | (eval "$ac_compile") 2>conftest.er1 | |
7478 | ac_status=$? | |
7479 | grep -v '^ *+' conftest.er1 >conftest.err | |
7480 | rm -f conftest.er1 | |
7481 | cat conftest.err >&5 | |
7482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7483 | (exit $ac_status); } && { | |
7484 | test -z "$ac_c_werror_flag" || | |
7485 | test ! -s conftest.err | |
7486 | } && test -s conftest.$ac_objext; then | |
7487 | eval "$as_ac_Header=yes" | |
7488 | else | |
7489 | echo "$as_me: failed program was:" >&5 | |
7490 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7491 | ||
7492 | eval "$as_ac_Header=no" | |
7493 | fi | |
7494 | ||
7495 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7496 | fi | |
7497 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
7498 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7499 | echo "${ECHO_T}$ac_res" >&6; } | |
7500 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7501 | cat >>confdefs.h <<_ACEOF | |
7502 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7503 | _ACEOF | |
7504 | ||
7505 | fi | |
7506 | ||
7507 | done | |
7508 | ||
7509 | ||
7510 | ||
7511 | for ac_header in dlfcn.h | |
7512 | do | |
7513 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
7514 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7515 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7516 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7517 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7518 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7519 | fi | |
7520 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
7521 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7522 | echo "${ECHO_T}$ac_res" >&6; } | |
7523 | else | |
7524 | # Is the header compilable? | |
7525 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
7526 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } | |
7527 | cat >conftest.$ac_ext <<_ACEOF | |
7528 | /* confdefs.h. */ | |
7529 | _ACEOF | |
7530 | cat confdefs.h >>conftest.$ac_ext | |
7531 | cat >>conftest.$ac_ext <<_ACEOF | |
7532 | /* end confdefs.h. */ | |
7533 | $ac_includes_default | |
7534 | #include <$ac_header> | |
7535 | _ACEOF | |
7536 | rm -f conftest.$ac_objext | |
7537 | if { (ac_try="$ac_compile" | |
7538 | case "(($ac_try" in | |
7539 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7540 | *) ac_try_echo=$ac_try;; | |
7541 | esac | |
7542 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7543 | (eval "$ac_compile") 2>conftest.er1 | |
7544 | ac_status=$? | |
7545 | grep -v '^ *+' conftest.er1 >conftest.err | |
7546 | rm -f conftest.er1 | |
7547 | cat conftest.err >&5 | |
7548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7549 | (exit $ac_status); } && { | |
7550 | test -z "$ac_c_werror_flag" || | |
7551 | test ! -s conftest.err | |
7552 | } && test -s conftest.$ac_objext; then | |
7553 | ac_header_compiler=yes | |
7554 | else | |
7555 | echo "$as_me: failed program was:" >&5 | |
7556 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7557 | ||
7558 | ac_header_compiler=no | |
7559 | fi | |
7560 | ||
7561 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
7562 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
7563 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
7564 | ||
7565 | # Is the header present? | |
7566 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
7567 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } | |
7568 | cat >conftest.$ac_ext <<_ACEOF | |
7569 | /* confdefs.h. */ | |
7570 | _ACEOF | |
7571 | cat confdefs.h >>conftest.$ac_ext | |
7572 | cat >>conftest.$ac_ext <<_ACEOF | |
7573 | /* end confdefs.h. */ | |
7574 | #include <$ac_header> | |
7575 | _ACEOF | |
7576 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7577 | case "(($ac_try" in | |
7578 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7579 | *) ac_try_echo=$ac_try;; | |
7580 | esac | |
7581 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7582 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7583 | ac_status=$? | |
7584 | grep -v '^ *+' conftest.er1 >conftest.err | |
7585 | rm -f conftest.er1 | |
7586 | cat conftest.err >&5 | |
7587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7588 | (exit $ac_status); } >/dev/null && { | |
7589 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
7590 | test ! -s conftest.err | |
7591 | }; then | |
7592 | ac_header_preproc=yes | |
7593 | else | |
7594 | echo "$as_me: failed program was:" >&5 | |
7595 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7596 | ||
7597 | ac_header_preproc=no | |
7598 | fi | |
7599 | ||
7600 | rm -f conftest.err conftest.$ac_ext | |
7601 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7602 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
7603 | ||
7604 | # So? What about this header? | |
7605 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7606 | yes:no: ) | |
7607 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7608 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7609 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7610 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7611 | ac_header_preproc=yes | |
7612 | ;; | |
7613 | no:yes:* ) | |
7614 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7615 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7616 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7617 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7618 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7619 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7620 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7621 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7622 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7623 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7624 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7625 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7626 | ( cat <<\_ASBOX | |
7627 | ## -------------------------------- ## | |
7628 | ## Report this to Hans.Boehm@hp.com ## | |
7629 | ## -------------------------------- ## | |
7630 | _ASBOX | |
7631 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
7632 | ;; | |
7633 | esac | |
7634 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7635 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } | |
7636 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then | |
7637 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7638 | else | |
7639 | eval "$as_ac_Header=\$ac_header_preproc" | |
7640 | fi | |
7641 | ac_res=`eval echo '${'$as_ac_Header'}'` | |
7642 | { echo "$as_me:$LINENO: result: $ac_res" >&5 | |
7643 | echo "${ECHO_T}$ac_res" >&6; } | |
7644 | ||
7645 | fi | |
7646 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
7647 | cat >>confdefs.h <<_ACEOF | |
7648 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7649 | _ACEOF | |
7650 | ||
7651 | fi | |
7652 | ||
7653 | done | |
7654 | ||
7655 | ||
7656 | ||
7657 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
7658 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
7659 | (test "X$CXX" != "Xg++"))) ; then | |
7660 | ac_ext=cpp | |
7661 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7662 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7663 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7664 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7665 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 | |
7666 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } | |
7667 | if test -z "$CXXCPP"; then | |
7668 | if test "${ac_cv_prog_CXXCPP+set}" = set; then | |
7669 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7670 | else | |
7671 | # Double quotes because CXXCPP needs to be expanded | |
7672 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
7673 | do | |
7674 | ac_preproc_ok=false | |
7675 | for ac_cxx_preproc_warn_flag in '' yes | |
7676 | do | |
7677 | # Use a header file that comes with gcc, so configuring glibc | |
7678 | # with a fresh cross-compiler works. | |
7679 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7680 | # <limits.h> exists even on freestanding compilers. | |
7681 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7682 | # not just through cpp. "Syntax error" is here to catch this case. | |
7683 | cat >conftest.$ac_ext <<_ACEOF | |
7684 | /* confdefs.h. */ | |
7685 | _ACEOF | |
7686 | cat confdefs.h >>conftest.$ac_ext | |
7687 | cat >>conftest.$ac_ext <<_ACEOF | |
7688 | /* end confdefs.h. */ | |
7689 | #ifdef __STDC__ | |
7690 | # include <limits.h> | |
7691 | #else | |
7692 | # include <assert.h> | |
7693 | #endif | |
7694 | Syntax error | |
7695 | _ACEOF | |
7696 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7697 | case "(($ac_try" in | |
7698 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7699 | *) ac_try_echo=$ac_try;; | |
7700 | esac | |
7701 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7702 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7703 | ac_status=$? | |
7704 | grep -v '^ *+' conftest.er1 >conftest.err | |
7705 | rm -f conftest.er1 | |
7706 | cat conftest.err >&5 | |
7707 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7708 | (exit $ac_status); } >/dev/null && { | |
7709 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7710 | test ! -s conftest.err | |
7711 | }; then | |
7712 | : | |
7713 | else | |
7714 | echo "$as_me: failed program was:" >&5 | |
7715 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7716 | ||
7717 | # Broken: fails on valid input. | |
7718 | continue | |
7719 | fi | |
7720 | ||
7721 | rm -f conftest.err conftest.$ac_ext | |
7722 | ||
7723 | # OK, works on sane cases. Now check whether nonexistent headers | |
7724 | # can be detected and how. | |
7725 | cat >conftest.$ac_ext <<_ACEOF | |
7726 | /* confdefs.h. */ | |
7727 | _ACEOF | |
7728 | cat confdefs.h >>conftest.$ac_ext | |
7729 | cat >>conftest.$ac_ext <<_ACEOF | |
7730 | /* end confdefs.h. */ | |
7731 | #include <ac_nonexistent.h> | |
7732 | _ACEOF | |
7733 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7734 | case "(($ac_try" in | |
7735 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7736 | *) ac_try_echo=$ac_try;; | |
7737 | esac | |
7738 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7739 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7740 | ac_status=$? | |
7741 | grep -v '^ *+' conftest.er1 >conftest.err | |
7742 | rm -f conftest.er1 | |
7743 | cat conftest.err >&5 | |
7744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7745 | (exit $ac_status); } >/dev/null && { | |
7746 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7747 | test ! -s conftest.err | |
7748 | }; then | |
7749 | # Broken: success on invalid input. | |
7750 | continue | |
7751 | else | |
7752 | echo "$as_me: failed program was:" >&5 | |
7753 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7754 | ||
7755 | # Passes both tests. | |
7756 | ac_preproc_ok=: | |
7757 | break | |
7758 | fi | |
7759 | ||
7760 | rm -f conftest.err conftest.$ac_ext | |
7761 | ||
7762 | done | |
7763 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7764 | rm -f conftest.err conftest.$ac_ext | |
7765 | if $ac_preproc_ok; then | |
7766 | break | |
7767 | fi | |
7768 | ||
7769 | done | |
7770 | ac_cv_prog_CXXCPP=$CXXCPP | |
7771 | ||
7772 | fi | |
7773 | CXXCPP=$ac_cv_prog_CXXCPP | |
7774 | else | |
7775 | ac_cv_prog_CXXCPP=$CXXCPP | |
7776 | fi | |
7777 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 | |
7778 | echo "${ECHO_T}$CXXCPP" >&6; } | |
7779 | ac_preproc_ok=false | |
7780 | for ac_cxx_preproc_warn_flag in '' yes | |
7781 | do | |
7782 | # Use a header file that comes with gcc, so configuring glibc | |
7783 | # with a fresh cross-compiler works. | |
7784 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7785 | # <limits.h> exists even on freestanding compilers. | |
7786 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
7787 | # not just through cpp. "Syntax error" is here to catch this case. | |
7788 | cat >conftest.$ac_ext <<_ACEOF | |
7789 | /* confdefs.h. */ | |
7790 | _ACEOF | |
7791 | cat confdefs.h >>conftest.$ac_ext | |
7792 | cat >>conftest.$ac_ext <<_ACEOF | |
7793 | /* end confdefs.h. */ | |
7794 | #ifdef __STDC__ | |
7795 | # include <limits.h> | |
7796 | #else | |
7797 | # include <assert.h> | |
7798 | #endif | |
7799 | Syntax error | |
7800 | _ACEOF | |
7801 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7802 | case "(($ac_try" in | |
7803 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7804 | *) ac_try_echo=$ac_try;; | |
7805 | esac | |
7806 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7807 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7808 | ac_status=$? | |
7809 | grep -v '^ *+' conftest.er1 >conftest.err | |
7810 | rm -f conftest.er1 | |
7811 | cat conftest.err >&5 | |
7812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7813 | (exit $ac_status); } >/dev/null && { | |
7814 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7815 | test ! -s conftest.err | |
7816 | }; then | |
7817 | : | |
7818 | else | |
7819 | echo "$as_me: failed program was:" >&5 | |
7820 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7821 | ||
7822 | # Broken: fails on valid input. | |
7823 | continue | |
7824 | fi | |
7825 | ||
7826 | rm -f conftest.err conftest.$ac_ext | |
7827 | ||
7828 | # OK, works on sane cases. Now check whether nonexistent headers | |
7829 | # can be detected and how. | |
7830 | cat >conftest.$ac_ext <<_ACEOF | |
7831 | /* confdefs.h. */ | |
7832 | _ACEOF | |
7833 | cat confdefs.h >>conftest.$ac_ext | |
7834 | cat >>conftest.$ac_ext <<_ACEOF | |
7835 | /* end confdefs.h. */ | |
7836 | #include <ac_nonexistent.h> | |
7837 | _ACEOF | |
7838 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
7839 | case "(($ac_try" in | |
7840 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
7841 | *) ac_try_echo=$ac_try;; | |
7842 | esac | |
7843 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
7844 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
7845 | ac_status=$? | |
7846 | grep -v '^ *+' conftest.er1 >conftest.err | |
7847 | rm -f conftest.er1 | |
7848 | cat conftest.err >&5 | |
7849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7850 | (exit $ac_status); } >/dev/null && { | |
7851 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
7852 | test ! -s conftest.err | |
7853 | }; then | |
7854 | # Broken: success on invalid input. | |
7855 | continue | |
7856 | else | |
7857 | echo "$as_me: failed program was:" >&5 | |
7858 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7859 | ||
7860 | # Passes both tests. | |
7861 | ac_preproc_ok=: | |
7862 | break | |
7863 | fi | |
7864 | ||
7865 | rm -f conftest.err conftest.$ac_ext | |
7866 | ||
7867 | done | |
7868 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
7869 | rm -f conftest.err conftest.$ac_ext | |
7870 | if $ac_preproc_ok; then | |
7871 | : | |
7872 | else | |
7873 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
7874 | See \`config.log' for more details." >&5 | |
7875 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check | |
7876 | See \`config.log' for more details." >&2;} | |
7877 | { (exit 1); exit 1; }; } | |
7878 | fi | |
7879 | ||
7880 | ac_ext=cpp | |
7881 | ac_cpp='$CXXCPP $CPPFLAGS' | |
7882 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
7883 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7884 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
7885 | ||
7886 | fi | |
7887 | ||
7888 | ||
7889 | ac_ext=f | |
7890 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
7891 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
7892 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
7893 | if test -n "$ac_tool_prefix"; then | |
7894 | 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 | |
7895 | do | |
7896 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
7897 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
7898 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7899 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7900 | if test "${ac_cv_prog_F77+set}" = set; then | |
7901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7902 | else | |
7903 | if test -n "$F77"; then | |
7904 | ac_cv_prog_F77="$F77" # Let the user override the test. | |
7905 | else | |
7906 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7907 | for as_dir in $PATH | |
7908 | do | |
7909 | IFS=$as_save_IFS | |
7910 | test -z "$as_dir" && as_dir=. | |
7911 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7912 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7913 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" | |
7914 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7915 | break 2 | |
7916 | fi | |
7917 | done | |
7918 | done | |
7919 | IFS=$as_save_IFS | |
7920 | ||
7921 | fi | |
7922 | fi | |
7923 | F77=$ac_cv_prog_F77 | |
7924 | if test -n "$F77"; then | |
7925 | { echo "$as_me:$LINENO: result: $F77" >&5 | |
7926 | echo "${ECHO_T}$F77" >&6; } | |
7927 | else | |
7928 | { echo "$as_me:$LINENO: result: no" >&5 | |
7929 | echo "${ECHO_T}no" >&6; } | |
7930 | fi | |
7931 | ||
7932 | ||
7933 | test -n "$F77" && break | |
7934 | done | |
7935 | fi | |
7936 | if test -z "$F77"; then | |
7937 | ac_ct_F77=$F77 | |
7938 | 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 | |
7939 | do | |
7940 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
7941 | set dummy $ac_prog; ac_word=$2 | |
7942 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
7943 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
7944 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then | |
7945 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7946 | else | |
7947 | if test -n "$ac_ct_F77"; then | |
7948 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. | |
7949 | else | |
7950 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7951 | for as_dir in $PATH | |
7952 | do | |
7953 | IFS=$as_save_IFS | |
7954 | test -z "$as_dir" && as_dir=. | |
7955 | for ac_exec_ext in '' $ac_executable_extensions; do | |
7956 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
7957 | ac_cv_prog_ac_ct_F77="$ac_prog" | |
7958 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
7959 | break 2 | |
7960 | fi | |
7961 | done | |
7962 | done | |
7963 | IFS=$as_save_IFS | |
7964 | ||
7965 | fi | |
7966 | fi | |
7967 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 | |
7968 | if test -n "$ac_ct_F77"; then | |
7969 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 | |
7970 | echo "${ECHO_T}$ac_ct_F77" >&6; } | |
7971 | else | |
7972 | { echo "$as_me:$LINENO: result: no" >&5 | |
7973 | echo "${ECHO_T}no" >&6; } | |
7974 | fi | |
7975 | ||
7976 | ||
7977 | test -n "$ac_ct_F77" && break | |
7978 | done | |
7979 | ||
7980 | if test "x$ac_ct_F77" = x; then | |
7981 | F77="" | |
7982 | else | |
7983 | case $cross_compiling:$ac_tool_warned in | |
7984 | yes:) | |
7985 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
7986 | whose name does not start with the host triplet. If you think this | |
7987 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
7988 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
7989 | whose name does not start with the host triplet. If you think this | |
7990 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
7991 | ac_tool_warned=yes ;; | |
7992 | esac | |
7993 | F77=$ac_ct_F77 | |
7994 | fi | |
7995 | fi | |
7996 | ||
7997 | ||
7998 | # Provide some information about the compiler. | |
7999 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 | |
8000 | ac_compiler=`set X $ac_compile; echo $2` | |
8001 | { (ac_try="$ac_compiler --version >&5" | |
8002 | case "(($ac_try" in | |
8003 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8004 | *) ac_try_echo=$ac_try;; | |
8005 | esac | |
8006 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8007 | (eval "$ac_compiler --version >&5") 2>&5 | |
8008 | ac_status=$? | |
8009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8010 | (exit $ac_status); } | |
8011 | { (ac_try="$ac_compiler -v >&5" | |
8012 | case "(($ac_try" in | |
8013 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8014 | *) ac_try_echo=$ac_try;; | |
8015 | esac | |
8016 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8017 | (eval "$ac_compiler -v >&5") 2>&5 | |
8018 | ac_status=$? | |
8019 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8020 | (exit $ac_status); } | |
8021 | { (ac_try="$ac_compiler -V >&5" | |
8022 | case "(($ac_try" in | |
8023 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8024 | *) ac_try_echo=$ac_try;; | |
8025 | esac | |
8026 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8027 | (eval "$ac_compiler -V >&5") 2>&5 | |
8028 | ac_status=$? | |
8029 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8030 | (exit $ac_status); } | |
8031 | rm -f a.out | |
8032 | ||
8033 | # If we don't use `.F' as extension, the preprocessor is not run on the | |
8034 | # input file. (Note that this only needs to work for GNU compilers.) | |
8035 | ac_save_ext=$ac_ext | |
8036 | ac_ext=F | |
8037 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 | |
8038 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } | |
8039 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then | |
8040 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8041 | else | |
8042 | cat >conftest.$ac_ext <<_ACEOF | |
8043 | program main | |
8044 | #ifndef __GNUC__ | |
8045 | choke me | |
8046 | #endif | |
8047 | ||
8048 | end | |
8049 | _ACEOF | |
8050 | rm -f conftest.$ac_objext | |
8051 | if { (ac_try="$ac_compile" | |
8052 | case "(($ac_try" in | |
8053 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8054 | *) ac_try_echo=$ac_try;; | |
8055 | esac | |
8056 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8057 | (eval "$ac_compile") 2>conftest.er1 | |
8058 | ac_status=$? | |
8059 | grep -v '^ *+' conftest.er1 >conftest.err | |
8060 | rm -f conftest.er1 | |
8061 | cat conftest.err >&5 | |
8062 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8063 | (exit $ac_status); } && { | |
8064 | test -z "$ac_f77_werror_flag" || | |
8065 | test ! -s conftest.err | |
8066 | } && test -s conftest.$ac_objext; then | |
8067 | ac_compiler_gnu=yes | |
8068 | else | |
8069 | echo "$as_me: failed program was:" >&5 | |
8070 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8071 | ||
8072 | ac_compiler_gnu=no | |
8073 | fi | |
8074 | ||
8075 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8076 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu | |
8077 | ||
8078 | fi | |
8079 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 | |
8080 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } | |
8081 | ac_ext=$ac_save_ext | |
8082 | ac_test_FFLAGS=${FFLAGS+set} | |
8083 | ac_save_FFLAGS=$FFLAGS | |
8084 | FFLAGS= | |
8085 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 | |
8086 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } | |
8087 | if test "${ac_cv_prog_f77_g+set}" = set; then | |
8088 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8089 | else | |
8090 | FFLAGS=-g | |
8091 | cat >conftest.$ac_ext <<_ACEOF | |
8092 | program main | |
8093 | ||
8094 | end | |
8095 | _ACEOF | |
8096 | rm -f conftest.$ac_objext | |
8097 | if { (ac_try="$ac_compile" | |
8098 | case "(($ac_try" in | |
8099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
8100 | *) ac_try_echo=$ac_try;; | |
8101 | esac | |
8102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
8103 | (eval "$ac_compile") 2>conftest.er1 | |
8104 | ac_status=$? | |
8105 | grep -v '^ *+' conftest.er1 >conftest.err | |
8106 | rm -f conftest.er1 | |
8107 | cat conftest.err >&5 | |
8108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8109 | (exit $ac_status); } && { | |
8110 | test -z "$ac_f77_werror_flag" || | |
8111 | test ! -s conftest.err | |
8112 | } && test -s conftest.$ac_objext; then | |
8113 | ac_cv_prog_f77_g=yes | |
8114 | else | |
8115 | echo "$as_me: failed program was:" >&5 | |
8116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8117 | ||
8118 | ac_cv_prog_f77_g=no | |
8119 | fi | |
8120 | ||
8121 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
8122 | ||
8123 | fi | |
8124 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 | |
8125 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } | |
8126 | if test "$ac_test_FFLAGS" = set; then | |
8127 | FFLAGS=$ac_save_FFLAGS | |
8128 | elif test $ac_cv_prog_f77_g = yes; then | |
8129 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
8130 | FFLAGS="-g -O2" | |
8131 | else | |
8132 | FFLAGS="-g" | |
8133 | fi | |
8134 | else | |
8135 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then | |
8136 | FFLAGS="-O2" | |
8137 | else | |
8138 | FFLAGS= | |
8139 | fi | |
8140 | fi | |
8141 | ||
8142 | G77=`test $ac_compiler_gnu = yes && echo yes` | |
8143 | ac_ext=c | |
8144 | ac_cpp='$CPP $CPPFLAGS' | |
8145 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
8146 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
8147 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
8148 | ||
8149 | ||
8150 | ||
8151 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! | |
8152 | ||
8153 | # find the maximum length of command line arguments | |
8154 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 | |
8155 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } | |
8156 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then | |
8157 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8158 | else | |
8159 | i=0 | |
8160 | teststring="ABCD" | |
8161 | ||
8162 | case $build_os in | |
8163 | msdosdjgpp*) | |
8164 | # On DJGPP, this test can blow up pretty badly due to problems in libc | |
8165 | # (any single argument exceeding 2000 bytes causes a buffer overrun | |
8166 | # during glob expansion). Even if it were fixed, the result of this | |
8167 | # check would be larger than it should be. | |
8168 | lt_cv_sys_max_cmd_len=12288; # 12K is about right | |
8169 | ;; | |
8170 | ||
8171 | gnu*) | |
8172 | # Under GNU Hurd, this test is not required because there is | |
8173 | # no limit to the length of command line arguments. | |
8174 | # Libtool will interpret -1 as no limit whatsoever | |
8175 | lt_cv_sys_max_cmd_len=-1; | |
8176 | ;; | |
8177 | ||
8178 | cygwin* | mingw*) | |
8179 | # On Win9x/ME, this test blows up -- it succeeds, but takes | |
8180 | # about 5 minutes as the teststring grows exponentially. | |
8181 | # Worse, since 9x/ME are not pre-emptively multitasking, | |
8182 | # you end up with a "frozen" computer, even though with patience | |
8183 | # the test eventually succeeds (with a max line length of 256k). | |
8184 | # Instead, let's just punt: use the minimum linelength reported by | |
8185 | # all of the supported platforms: 8192 (on NT/2K/XP). | |
8186 | lt_cv_sys_max_cmd_len=8192; | |
8187 | ;; | |
8188 | ||
8189 | amigaos*) | |
8190 | # On AmigaOS with pdksh, this test takes hours, literally. | |
8191 | # So we just punt and use a minimum line length of 8192. | |
8192 | lt_cv_sys_max_cmd_len=8192; | |
8193 | ;; | |
8194 | ||
8195 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) | |
8196 | # This has been around since 386BSD, at least. Likely further. | |
8197 | if test -x /sbin/sysctl; then | |
8198 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` | |
8199 | elif test -x /usr/sbin/sysctl; then | |
8200 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` | |
8201 | else | |
8202 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs | |
8203 | fi | |
8204 | # And add a safety zone | |
8205 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` | |
8206 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` | |
8207 | ;; | |
8208 | ||
8209 | interix*) | |
8210 | # We know the value 262144 and hardcode it with a safety zone (like BSD) | |
8211 | lt_cv_sys_max_cmd_len=196608 | |
8212 | ;; | |
8213 | ||
8214 | osf*) | |
8215 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure | |
8216 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not | |
8217 | # nice to cause kernel panics so lets avoid the loop below. | |
8218 | # First set a reasonable default. | |
8219 | lt_cv_sys_max_cmd_len=16384 | |
8220 | # | |
8221 | if test -x /sbin/sysconfig; then | |
8222 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in | |
8223 | *1*) lt_cv_sys_max_cmd_len=-1 ;; | |
8224 | esac | |
8225 | fi | |
8226 | ;; | |
8227 | sco3.2v5*) | |
8228 | lt_cv_sys_max_cmd_len=102400 | |
8229 | ;; | |
8230 | sysv5* | sco5v6* | sysv4.2uw2*) | |
8231 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` | |
8232 | if test -n "$kargmax"; then | |
8233 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` | |
8234 | else | |
8235 | lt_cv_sys_max_cmd_len=32768 | |
8236 | fi | |
8237 | ;; | |
8238 | *) | |
8239 | # If test is not a shell built-in, we'll probably end up computing a | |
8240 | # maximum length that is only half of the actual maximum length, but | |
8241 | # we can't tell. | |
8242 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} | |
8243 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ | |
8244 | = "XX$teststring") >/dev/null 2>&1 && | |
8245 | new_result=`expr "X$teststring" : ".*" 2>&1` && | |
8246 | lt_cv_sys_max_cmd_len=$new_result && | |
8247 | test $i != 17 # 1/2 MB should be enough | |
8248 | do | |
8249 | i=`expr $i + 1` | |
8250 | teststring=$teststring$teststring | |
8251 | done | |
8252 | teststring= | |
8253 | # Add a significant safety factor because C++ compilers can tack on massive | |
8254 | # amounts of additional arguments before passing them to the linker. | |
8255 | # It appears as though 1/2 is a usable value. | |
8256 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` | |
8257 | ;; | |
8258 | esac | |
8259 | ||
8260 | fi | |
8261 | ||
8262 | if test -n $lt_cv_sys_max_cmd_len ; then | |
8263 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 | |
8264 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } | |
8265 | else | |
8266 | { echo "$as_me:$LINENO: result: none" >&5 | |
8267 | echo "${ECHO_T}none" >&6; } | |
8268 | fi | |
8269 | ||
8270 | ||
8271 | ||
8272 | ||
8273 | # Check for command to grab the raw symbol name followed by C symbol from nm. | |
8274 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 | |
8275 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } | |
8276 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then | |
8277 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8278 | else | |
8279 | ||
8280 | # These are sane defaults that work on at least a few old systems. | |
8281 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] | |
8282 | ||
8283 | # Character class describing NM global symbol codes. | |
8284 | symcode='[BCDEGRST]' | |
8285 | ||
8286 | # Regexp to match symbols that can be accessed directly from C. | |
8287 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' | |
8288 | ||
8289 | # Transform an extracted symbol line into a proper C declaration | |
8290 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" | |
8291 | ||
8292 | # Transform an extracted symbol line into symbol name and symbol address | |
8293 | 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'" | |
8294 | ||
8295 | # Define system-specific variables. | |
8296 | case $host_os in | |
8297 | aix*) | |
8298 | symcode='[BCDT]' | |
8299 | ;; | |
8300 | cygwin* | mingw* | pw32*) | |
8301 | symcode='[ABCDGISTW]' | |
8302 | ;; | |
8303 | hpux*) # Its linker distinguishes data from code symbols | |
8304 | if test "$host_cpu" = ia64; then | |
8305 | symcode='[ABCDEGRST]' | |
8306 | fi | |
8307 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
8308 | 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'" | |
8309 | ;; | |
8310 | linux*) | |
8311 | if test "$host_cpu" = ia64; then | |
8312 | symcode='[ABCDGIRSTW]' | |
8313 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" | |
8314 | 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'" | |
8315 | fi | |
8316 | ;; | |
8317 | irix* | nonstopux*) | |
8318 | symcode='[BCDEGRST]' | |
8319 | ;; | |
8320 | osf*) | |
8321 | symcode='[BCDEGQRST]' | |
8322 | ;; | |
8323 | solaris*) | |
8324 | symcode='[BDRT]' | |
8325 | ;; | |
8326 | sco3.2v5*) | |
8327 | symcode='[DT]' | |
8328 | ;; | |
8329 | sysv4.2uw2*) | |
8330 | symcode='[DT]' | |
8331 | ;; | |
8332 | sysv5* | sco5v6* | unixware* | OpenUNIX*) | |
8333 | symcode='[ABDT]' | |
8334 | ;; | |
8335 | sysv4) | |
8336 | symcode='[DFNSTU]' | |
8337 | ;; | |
8338 | esac | |
8339 | ||
8340 | # Handle CRLF in mingw tool chain | |
8341 | opt_cr= | |
8342 | case $build_os in | |
8343 | mingw*) | |
8344 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp | |
8345 | ;; | |
8346 | esac | |
8347 | ||
8348 | # If we're using GNU nm, then use its standard symbol codes. | |
8349 | case `$NM -V 2>&1` in | |
8350 | *GNU* | *'with BFD'*) | |
8351 | symcode='[ABCDGIRSTW]' ;; | |
8352 | esac | |
8353 | ||
8354 | # Try without a prefix undercore, then with it. | |
8355 | for ac_symprfx in "" "_"; do | |
8356 | ||
8357 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. | |
8358 | symxfrm="\\1 $ac_symprfx\\2 \\2" | |
8359 | ||
8360 | # Write the raw and C identifiers. | |
8361 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" | |
8362 | ||
8363 | # Check to see that the pipe works correctly. | |
8364 | pipe_works=no | |
8365 | ||
8366 | rm -f conftest* | |
8367 | cat > conftest.$ac_ext <<EOF | |
8368 | #ifdef __cplusplus | |
8369 | extern "C" { | |
8370 | #endif | |
8371 | char nm_test_var; | |
8372 | void nm_test_func(){} | |
8373 | #ifdef __cplusplus | |
8374 | } | |
8375 | #endif | |
8376 | int main(){nm_test_var='a';nm_test_func();return(0);} | |
8377 | EOF | |
8378 | ||
8379 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8380 | (eval $ac_compile) 2>&5 | |
8381 | ac_status=$? | |
8382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8383 | (exit $ac_status); }; then | |
8384 | # Now try to grab the symbols. | |
8385 | nlist=conftest.nm | |
8386 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 | |
8387 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 | |
8388 | ac_status=$? | |
8389 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8390 | (exit $ac_status); } && test -s "$nlist"; then | |
8391 | # Try sorting and uniquifying the output. | |
8392 | if sort "$nlist" | uniq > "$nlist"T; then | |
8393 | mv -f "$nlist"T "$nlist" | |
8394 | else | |
8395 | rm -f "$nlist"T | |
8396 | fi | |
8397 | ||
8398 | # Make sure that we snagged all the symbols we need. | |
8399 | if grep ' nm_test_var$' "$nlist" >/dev/null; then | |
8400 | if grep ' nm_test_func$' "$nlist" >/dev/null; then | |
8401 | cat <<EOF > conftest.$ac_ext | |
8402 | #ifdef __cplusplus | |
8403 | extern "C" { | |
8404 | #endif | |
8405 | ||
8406 | EOF | |
8407 | # Now generate the symbol file. | |
8408 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' | |
8409 | ||
8410 | cat <<EOF >> conftest.$ac_ext | |
8411 | #if defined (__STDC__) && __STDC__ | |
8412 | # define lt_ptr_t void * | |
8413 | #else | |
8414 | # define lt_ptr_t char * | |
8415 | # define const | |
8416 | #endif | |
8417 | ||
8418 | /* The mapping between symbol names and symbols. */ | |
8419 | const struct { | |
8420 | const char *name; | |
8421 | lt_ptr_t address; | |
8422 | } | |
8423 | lt_preloaded_symbols[] = | |
8424 | { | |
8425 | EOF | |
8426 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext | |
8427 | cat <<\EOF >> conftest.$ac_ext | |
8428 | {0, (lt_ptr_t) 0} | |
8429 | }; | |
8430 | ||
8431 | #ifdef __cplusplus | |
8432 | } | |
8433 | #endif | |
8434 | EOF | |
8435 | # Now try linking the two files. | |
8436 | mv conftest.$ac_objext conftstm.$ac_objext | |
8437 | lt_save_LIBS="$LIBS" | |
8438 | lt_save_CFLAGS="$CFLAGS" | |
8439 | LIBS="conftstm.$ac_objext" | |
8440 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" | |
8441 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8442 | (eval $ac_link) 2>&5 | |
8443 | ac_status=$? | |
8444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8445 | (exit $ac_status); } && test -s conftest${ac_exeext}; then | |
8446 | pipe_works=yes | |
8447 | fi | |
8448 | LIBS="$lt_save_LIBS" | |
8449 | CFLAGS="$lt_save_CFLAGS" | |
8450 | else | |
8451 | echo "cannot find nm_test_func in $nlist" >&5 | |
8452 | fi | |
8453 | else | |
8454 | echo "cannot find nm_test_var in $nlist" >&5 | |
8455 | fi | |
8456 | else | |
8457 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 | |
8458 | fi | |
8459 | else | |
8460 | echo "$progname: failed program was:" >&5 | |
8461 | cat conftest.$ac_ext >&5 | |
8462 | fi | |
8463 | rm -f conftest* conftst* | |
8464 | ||
8465 | # Do not use the global_symbol_pipe unless it works. | |
8466 | if test "$pipe_works" = yes; then | |
8467 | break | |
8468 | else | |
8469 | lt_cv_sys_global_symbol_pipe= | |
8470 | fi | |
8471 | done | |
8472 | ||
8473 | fi | |
8474 | ||
8475 | if test -z "$lt_cv_sys_global_symbol_pipe"; then | |
8476 | lt_cv_sys_global_symbol_to_cdecl= | |
8477 | fi | |
8478 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then | |
8479 | { echo "$as_me:$LINENO: result: failed" >&5 | |
8480 | echo "${ECHO_T}failed" >&6; } | |
8481 | else | |
8482 | { echo "$as_me:$LINENO: result: ok" >&5 | |
8483 | echo "${ECHO_T}ok" >&6; } | |
8484 | fi | |
8485 | ||
8486 | { echo "$as_me:$LINENO: checking for objdir" >&5 | |
8487 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } | |
8488 | if test "${lt_cv_objdir+set}" = set; then | |
8489 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8490 | else | |
8491 | rm -f .libs 2>/dev/null | |
8492 | mkdir .libs 2>/dev/null | |
8493 | if test -d .libs; then | |
8494 | lt_cv_objdir=.libs | |
8495 | else | |
8496 | # MS-DOS does not allow filenames that begin with a dot. | |
8497 | lt_cv_objdir=_libs | |
8498 | fi | |
8499 | rmdir .libs 2>/dev/null | |
8500 | fi | |
8501 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 | |
8502 | echo "${ECHO_T}$lt_cv_objdir" >&6; } | |
8503 | objdir=$lt_cv_objdir | |
8504 | ||
8505 | ||
8506 | ||
8507 | ||
8508 | ||
8509 | case $host_os in | |
8510 | aix3*) | |
8511 | # AIX sometimes has problems with the GCC collect2 program. For some | |
8512 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
8513 | # vanish in a puff of smoke. | |
8514 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
8515 | COLLECT_NAMES= | |
8516 | export COLLECT_NAMES | |
8517 | fi | |
8518 | ;; | |
8519 | esac | |
8520 | ||
8521 | # Sed substitution that helps us do robust quoting. It backslashifies | |
8522 | # metacharacters that are still active within double-quoted strings. | |
8523 | Xsed='sed -e 1s/^X//' | |
8524 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' | |
8525 | ||
8526 | # Same as above, but do not quote variable references. | |
8527 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' | |
8528 | ||
8529 | # Sed substitution to delay expansion of an escaped shell variable in a | |
8530 | # double_quote_subst'ed string. | |
8531 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' | |
8532 | ||
8533 | # Sed substitution to avoid accidental globbing in evaled expressions | |
8534 | no_glob_subst='s/\*/\\\*/g' | |
8535 | ||
8536 | # Constants: | |
8537 | rm="rm -f" | |
8538 | ||
8539 | # Global variables: | |
8540 | default_ofile=libtool | |
8541 | can_build_shared=yes | |
8542 | ||
8543 | # All known linkers require a `.a' archive for static linking (except MSVC, | |
8544 | # which needs '.lib'). | |
8545 | libext=a | |
8546 | ltmain="$ac_aux_dir/ltmain.sh" | |
8547 | ofile="$default_ofile" | |
8548 | with_gnu_ld="$lt_cv_prog_gnu_ld" | |
8549 | ||
8550 | if test -n "$ac_tool_prefix"; then | |
8551 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. | |
8552 | set dummy ${ac_tool_prefix}ar; ac_word=$2 | |
8553 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8554 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8555 | if test "${ac_cv_prog_AR+set}" = set; then | |
8556 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8557 | else | |
8558 | if test -n "$AR"; then | |
8559 | ac_cv_prog_AR="$AR" # Let the user override the test. | |
8560 | else | |
8561 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8562 | for as_dir in $PATH | |
8563 | do | |
8564 | IFS=$as_save_IFS | |
8565 | test -z "$as_dir" && as_dir=. | |
8566 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8567 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8568 | ac_cv_prog_AR="${ac_tool_prefix}ar" | |
8569 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8570 | break 2 | |
8571 | fi | |
8572 | done | |
8573 | done | |
8574 | IFS=$as_save_IFS | |
8575 | ||
8576 | fi | |
8577 | fi | |
8578 | AR=$ac_cv_prog_AR | |
8579 | if test -n "$AR"; then | |
8580 | { echo "$as_me:$LINENO: result: $AR" >&5 | |
8581 | echo "${ECHO_T}$AR" >&6; } | |
8582 | else | |
8583 | { echo "$as_me:$LINENO: result: no" >&5 | |
8584 | echo "${ECHO_T}no" >&6; } | |
8585 | fi | |
8586 | ||
8587 | ||
8588 | fi | |
8589 | if test -z "$ac_cv_prog_AR"; then | |
8590 | ac_ct_AR=$AR | |
8591 | # Extract the first word of "ar", so it can be a program name with args. | |
8592 | set dummy ar; ac_word=$2 | |
8593 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8594 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8595 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then | |
8596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8597 | else | |
8598 | if test -n "$ac_ct_AR"; then | |
8599 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. | |
8600 | else | |
8601 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8602 | for as_dir in $PATH | |
8603 | do | |
8604 | IFS=$as_save_IFS | |
8605 | test -z "$as_dir" && as_dir=. | |
8606 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8607 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8608 | ac_cv_prog_ac_ct_AR="ar" | |
8609 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8610 | break 2 | |
8611 | fi | |
8612 | done | |
8613 | done | |
8614 | IFS=$as_save_IFS | |
8615 | ||
8616 | fi | |
8617 | fi | |
8618 | ac_ct_AR=$ac_cv_prog_ac_ct_AR | |
8619 | if test -n "$ac_ct_AR"; then | |
8620 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 | |
8621 | echo "${ECHO_T}$ac_ct_AR" >&6; } | |
8622 | else | |
8623 | { echo "$as_me:$LINENO: result: no" >&5 | |
8624 | echo "${ECHO_T}no" >&6; } | |
8625 | fi | |
8626 | ||
8627 | if test "x$ac_ct_AR" = x; then | |
8628 | AR="false" | |
8629 | else | |
8630 | case $cross_compiling:$ac_tool_warned in | |
8631 | yes:) | |
8632 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
8633 | whose name does not start with the host triplet. If you think this | |
8634 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
8635 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
8636 | whose name does not start with the host triplet. If you think this | |
8637 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
8638 | ac_tool_warned=yes ;; | |
8639 | esac | |
8640 | AR=$ac_ct_AR | |
8641 | fi | |
8642 | else | |
8643 | AR="$ac_cv_prog_AR" | |
8644 | fi | |
8645 | ||
8646 | if test -n "$ac_tool_prefix"; then | |
8647 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
8648 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
8649 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8650 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8651 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
8652 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8653 | else | |
8654 | if test -n "$RANLIB"; then | |
8655 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8656 | else | |
8657 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8658 | for as_dir in $PATH | |
8659 | do | |
8660 | IFS=$as_save_IFS | |
8661 | test -z "$as_dir" && as_dir=. | |
8662 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8663 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8664 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
8665 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8666 | break 2 | |
8667 | fi | |
8668 | done | |
8669 | done | |
8670 | IFS=$as_save_IFS | |
8671 | ||
8672 | fi | |
8673 | fi | |
8674 | RANLIB=$ac_cv_prog_RANLIB | |
8675 | if test -n "$RANLIB"; then | |
8676 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
8677 | echo "${ECHO_T}$RANLIB" >&6; } | |
8678 | else | |
8679 | { echo "$as_me:$LINENO: result: no" >&5 | |
8680 | echo "${ECHO_T}no" >&6; } | |
8681 | fi | |
8682 | ||
8683 | ||
8684 | fi | |
8685 | if test -z "$ac_cv_prog_RANLIB"; then | |
8686 | ac_ct_RANLIB=$RANLIB | |
8687 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8688 | set dummy ranlib; ac_word=$2 | |
8689 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8690 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8691 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
8692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8693 | else | |
8694 | if test -n "$ac_ct_RANLIB"; then | |
8695 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
8696 | else | |
8697 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8698 | for as_dir in $PATH | |
8699 | do | |
8700 | IFS=$as_save_IFS | |
8701 | test -z "$as_dir" && as_dir=. | |
8702 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8703 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8704 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
8705 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8706 | break 2 | |
8707 | fi | |
8708 | done | |
8709 | done | |
8710 | IFS=$as_save_IFS | |
8711 | ||
8712 | fi | |
8713 | fi | |
8714 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8715 | if test -n "$ac_ct_RANLIB"; then | |
8716 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
8717 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } | |
8718 | else | |
8719 | { echo "$as_me:$LINENO: result: no" >&5 | |
8720 | echo "${ECHO_T}no" >&6; } | |
8721 | fi | |
8722 | ||
8723 | if test "x$ac_ct_RANLIB" = x; then | |
8724 | RANLIB=":" | |
8725 | else | |
8726 | case $cross_compiling:$ac_tool_warned in | |
8727 | yes:) | |
8728 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
8729 | whose name does not start with the host triplet. If you think this | |
8730 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
8731 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
8732 | whose name does not start with the host triplet. If you think this | |
8733 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
8734 | ac_tool_warned=yes ;; | |
8735 | esac | |
8736 | RANLIB=$ac_ct_RANLIB | |
8737 | fi | |
8738 | else | |
8739 | RANLIB="$ac_cv_prog_RANLIB" | |
8740 | fi | |
8741 | ||
8742 | if test -n "$ac_tool_prefix"; then | |
8743 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
8744 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
8745 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8746 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8747 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
8748 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8749 | else | |
8750 | if test -n "$STRIP"; then | |
8751 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
8752 | else | |
8753 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8754 | for as_dir in $PATH | |
8755 | do | |
8756 | IFS=$as_save_IFS | |
8757 | test -z "$as_dir" && as_dir=. | |
8758 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8759 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8760 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
8761 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8762 | break 2 | |
8763 | fi | |
8764 | done | |
8765 | done | |
8766 | IFS=$as_save_IFS | |
8767 | ||
8768 | fi | |
8769 | fi | |
8770 | STRIP=$ac_cv_prog_STRIP | |
8771 | if test -n "$STRIP"; then | |
8772 | { echo "$as_me:$LINENO: result: $STRIP" >&5 | |
8773 | echo "${ECHO_T}$STRIP" >&6; } | |
8774 | else | |
8775 | { echo "$as_me:$LINENO: result: no" >&5 | |
8776 | echo "${ECHO_T}no" >&6; } | |
8777 | fi | |
8778 | ||
8779 | ||
8780 | fi | |
8781 | if test -z "$ac_cv_prog_STRIP"; then | |
8782 | ac_ct_STRIP=$STRIP | |
8783 | # Extract the first word of "strip", so it can be a program name with args. | |
8784 | set dummy strip; ac_word=$2 | |
8785 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8786 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } | |
8787 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
8788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8789 | else | |
8790 | if test -n "$ac_ct_STRIP"; then | |
8791 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
8792 | else | |
8793 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8794 | for as_dir in $PATH | |
8795 | do | |
8796 | IFS=$as_save_IFS | |
8797 | test -z "$as_dir" && as_dir=. | |
8798 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8799 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then | |
8800 | ac_cv_prog_ac_ct_STRIP="strip" | |
8801 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8802 | break 2 | |
8803 | fi | |
8804 | done | |
8805 | done | |
8806 | IFS=$as_save_IFS | |
8807 | ||
8808 | fi | |
8809 | fi | |
8810 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
8811 | if test -n "$ac_ct_STRIP"; then | |
8812 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
8813 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } | |
8814 | else | |
8815 | { echo "$as_me:$LINENO: result: no" >&5 | |
8816 | echo "${ECHO_T}no" >&6; } | |
8817 | fi | |
8818 | ||
8819 | if test "x$ac_ct_STRIP" = x; then | |
8820 | STRIP=":" | |
8821 | else | |
8822 | case $cross_compiling:$ac_tool_warned in | |
8823 | yes:) | |
8824 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools | |
8825 | whose name does not start with the host triplet. If you think this | |
8826 | configuration is useful to you, please write to autoconf@gnu.org." >&5 | |
8827 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools | |
8828 | whose name does not start with the host triplet. If you think this | |
8829 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} | |
8830 | ac_tool_warned=yes ;; | |
8831 | esac | |
8832 | STRIP=$ac_ct_STRIP | |
8833 | fi | |
8834 | else | |
8835 | STRIP="$ac_cv_prog_STRIP" | |
8836 | fi | |
8837 | ||
8838 | ||
8839 | old_CC="$CC" | |
8840 | old_CFLAGS="$CFLAGS" | |
8841 | ||
8842 | # Set sane defaults for various variables | |
8843 | test -z "$AR" && AR=ar | |
8844 | test -z "$AR_FLAGS" && AR_FLAGS=cru | |
8845 | test -z "$AS" && AS=as | |
8846 | test -z "$CC" && CC=cc | |
8847 | test -z "$LTCC" && LTCC=$CC | |
8848 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS | |
8849 | test -z "$DLLTOOL" && DLLTOOL=dlltool | |
8850 | test -z "$LD" && LD=ld | |
8851 | test -z "$LN_S" && LN_S="ln -s" | |
8852 | test -z "$MAGIC_CMD" && MAGIC_CMD=file | |
8853 | test -z "$NM" && NM=nm | |
8854 | test -z "$SED" && SED=sed | |
8855 | test -z "$OBJDUMP" && OBJDUMP=objdump | |
8856 | test -z "$RANLIB" && RANLIB=: | |
8857 | test -z "$STRIP" && STRIP=: | |
8858 | test -z "$ac_objext" && ac_objext=o | |
8859 | ||
8860 | # Determine commands to create old-style static archives. | |
8861 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' | |
8862 | old_postinstall_cmds='chmod 644 $oldlib' | |
8863 | old_postuninstall_cmds= | |
8864 | ||
8865 | if test -n "$RANLIB"; then | |
8866 | case $host_os in | |
8867 | openbsd*) | |
8868 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" | |
8869 | ;; | |
8870 | *) | |
8871 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" | |
8872 | ;; | |
8873 | esac | |
8874 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" | |
8875 | fi | |
8876 | ||
8877 | for cc_temp in $compiler""; do | |
8878 | case $cc_temp in | |
8879 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
8880 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
8881 | \-*) ;; | |
8882 | *) break;; | |
8883 | esac | |
8884 | done | |
8885 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
8886 | ||
8887 | ||
8888 | # Only perform the check for file, if the check method requires it | |
8889 | case $deplibs_check_method in | |
8890 | file_magic*) | |
8891 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then | |
8892 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 | |
8893 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } | |
8894 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
8895 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8896 | else | |
8897 | case $MAGIC_CMD in | |
8898 | [\\/*] | ?:[\\/]*) | |
8899 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8900 | ;; | |
8901 | *) | |
8902 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8903 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8904 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8905 | for ac_dir in $ac_dummy; do | |
8906 | IFS="$lt_save_ifs" | |
8907 | test -z "$ac_dir" && ac_dir=. | |
8908 | if test -f $ac_dir/${ac_tool_prefix}file; then | |
8909 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" | |
8910 | if test -n "$file_magic_test_file"; then | |
8911 | case $deplibs_check_method in | |
8912 | "file_magic "*) | |
8913 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8914 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8915 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8916 | $EGREP "$file_magic_regex" > /dev/null; then | |
8917 | : | |
8918 | else | |
8919 | cat <<EOF 1>&2 | |
8920 | ||
8921 | *** Warning: the command libtool uses to detect shared libraries, | |
8922 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8923 | *** The result is that libtool may fail to recognize shared libraries | |
8924 | *** as such. This will affect the creation of libtool libraries that | |
8925 | *** depend on shared libraries, but programs linked with such libtool | |
8926 | *** libraries will work regardless of this problem. Nevertheless, you | |
8927 | *** may want to report the problem to your system manager and/or to | |
8928 | *** bug-libtool@gnu.org | |
8929 | ||
8930 | EOF | |
8931 | fi ;; | |
8932 | esac | |
8933 | fi | |
8934 | break | |
8935 | fi | |
8936 | done | |
8937 | IFS="$lt_save_ifs" | |
8938 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
8939 | ;; | |
8940 | esac | |
8941 | fi | |
8942 | ||
8943 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8944 | if test -n "$MAGIC_CMD"; then | |
8945 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
8946 | echo "${ECHO_T}$MAGIC_CMD" >&6; } | |
8947 | else | |
8948 | { echo "$as_me:$LINENO: result: no" >&5 | |
8949 | echo "${ECHO_T}no" >&6; } | |
8950 | fi | |
8951 | ||
8952 | if test -z "$lt_cv_path_MAGIC_CMD"; then | |
8953 | if test -n "$ac_tool_prefix"; then | |
8954 | { echo "$as_me:$LINENO: checking for file" >&5 | |
8955 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } | |
8956 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then | |
8957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8958 | else | |
8959 | case $MAGIC_CMD in | |
8960 | [\\/*] | ?:[\\/]*) | |
8961 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. | |
8962 | ;; | |
8963 | *) | |
8964 | lt_save_MAGIC_CMD="$MAGIC_CMD" | |
8965 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
8966 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" | |
8967 | for ac_dir in $ac_dummy; do | |
8968 | IFS="$lt_save_ifs" | |
8969 | test -z "$ac_dir" && ac_dir=. | |
8970 | if test -f $ac_dir/file; then | |
8971 | lt_cv_path_MAGIC_CMD="$ac_dir/file" | |
8972 | if test -n "$file_magic_test_file"; then | |
8973 | case $deplibs_check_method in | |
8974 | "file_magic "*) | |
8975 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` | |
8976 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
8977 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | | |
8978 | $EGREP "$file_magic_regex" > /dev/null; then | |
8979 | : | |
8980 | else | |
8981 | cat <<EOF 1>&2 | |
8982 | ||
8983 | *** Warning: the command libtool uses to detect shared libraries, | |
8984 | *** $file_magic_cmd, produces output that libtool cannot recognize. | |
8985 | *** The result is that libtool may fail to recognize shared libraries | |
8986 | *** as such. This will affect the creation of libtool libraries that | |
8987 | *** depend on shared libraries, but programs linked with such libtool | |
8988 | *** libraries will work regardless of this problem. Nevertheless, you | |
8989 | *** may want to report the problem to your system manager and/or to | |
8990 | *** bug-libtool@gnu.org | |
8991 | ||
8992 | EOF | |
8993 | fi ;; | |
8994 | esac | |
8995 | fi | |
8996 | break | |
8997 | fi | |
8998 | done | |
8999 | IFS="$lt_save_ifs" | |
9000 | MAGIC_CMD="$lt_save_MAGIC_CMD" | |
9001 | ;; | |
9002 | esac | |
9003 | fi | |
9004 | ||
9005 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" | |
9006 | if test -n "$MAGIC_CMD"; then | |
9007 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 | |
9008 | echo "${ECHO_T}$MAGIC_CMD" >&6; } | |
9009 | else | |
9010 | { echo "$as_me:$LINENO: result: no" >&5 | |
9011 | echo "${ECHO_T}no" >&6; } | |
9012 | fi | |
9013 | ||
9014 | else | |
9015 | MAGIC_CMD=: | |
9016 | fi | |
9017 | fi | |
9018 | ||
9019 | fi | |
9020 | ;; | |
9021 | esac | |
9022 | ||
9023 | enable_dlopen=no | |
9024 | enable_win32_dll=no | |
9025 | ||
9026 | # Check whether --enable-libtool-lock was given. | |
9027 | if test "${enable_libtool_lock+set}" = set; then | |
9028 | enableval=$enable_libtool_lock; | |
9029 | fi | |
9030 | ||
9031 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes | |
9032 | ||
9033 | ||
9034 | # Check whether --with-pic was given. | |
9035 | if test "${with_pic+set}" = set; then | |
9036 | withval=$with_pic; pic_mode="$withval" | |
9037 | else | |
9038 | pic_mode=default | |
9039 | fi | |
9040 | ||
9041 | test -z "$pic_mode" && pic_mode=default | |
9042 | ||
9043 | # Use C for the default configuration in the libtool script | |
9044 | tagname= | |
9045 | lt_save_CC="$CC" | |
9046 | ac_ext=c | |
9047 | ac_cpp='$CPP $CPPFLAGS' | |
9048 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
9049 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
9050 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
9051 | ||
9052 | ||
9053 | # Source file extension for C test sources. | |
9054 | ac_ext=c | |
9055 | ||
9056 | # Object file extension for compiled C test sources. | |
9057 | objext=o | |
9058 | objext=$objext | |
9059 | ||
9060 | # Code to be used in simple compile tests | |
9061 | lt_simple_compile_test_code="int some_variable = 0;\n" | |
9062 | ||
9063 | # Code to be used in simple link tests | |
9064 | lt_simple_link_test_code='int main(){return(0);}\n' | |
9065 | ||
9066 | ||
9067 | # If no C compiler was specified, use CC. | |
9068 | LTCC=${LTCC-"$CC"} | |
9069 | ||
9070 | # If no C compiler flags were specified, use CFLAGS. | |
9071 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
9072 | ||
9073 | # Allow CC to be a program name with arguments. | |
9074 | compiler=$CC | |
9075 | ||
9076 | ||
9077 | # save warnings/boilerplate of simple test code | |
9078 | ac_outfile=conftest.$ac_objext | |
9079 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
9080 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9081 | _lt_compiler_boilerplate=`cat conftest.err` | |
9082 | $rm conftest* | |
9083 | ||
9084 | ac_outfile=conftest.$ac_objext | |
9085 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
9086 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
9087 | _lt_linker_boilerplate=`cat conftest.err` | |
9088 | $rm conftest* | |
9089 | ||
9090 | ||
9091 | ## CAVEAT EMPTOR: | |
9092 | ## There is no encapsulation within the following macros, do not change | |
9093 | ## the running order or otherwise move them around unless you know exactly | |
9094 | ## what you are doing... | |
9095 | ||
9096 | lt_prog_compiler_no_builtin_flag= | |
9097 | ||
9098 | if test "$GCC" = yes; then | |
9099 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' | |
9100 | ||
9101 | ||
9102 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
9103 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | |
9104 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
9105 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9106 | else | |
9107 | lt_cv_prog_compiler_rtti_exceptions=no | |
9108 | ac_outfile=conftest.$ac_objext | |
9109 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9110 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
9111 | # Insert the option either (1) after the last *FLAGS variable, or | |
9112 | # (2) before a word containing "conftest.", or (3) at the end. | |
9113 | # Note that $ac_compile itself does not contain backslashes and begins | |
9114 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9115 | # The option is referenced via a variable to avoid confusing sed. | |
9116 | lt_compile=`echo "$ac_compile" | $SED \ | |
9117 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9118 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9119 | -e 's:$: $lt_compiler_flag:'` | |
9120 | (eval echo "\"\$as_me:9120: $lt_compile\"" >&5) | |
9121 | (eval "$lt_compile" 2>conftest.err) | |
9122 | ac_status=$? | |
9123 | cat conftest.err >&5 | |
9124 | echo "$as_me:9124: \$? = $ac_status" >&5 | |
9125 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9126 | # The compiler can only warn and ignore the option if not recognized | |
9127 | # So say no if there are warnings other than the usual output. | |
9128 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
9129 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9130 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9131 | lt_cv_prog_compiler_rtti_exceptions=yes | |
9132 | fi | |
9133 | fi | |
9134 | $rm conftest* | |
9135 | ||
9136 | fi | |
9137 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
9138 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
9139 | ||
9140 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
9141 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" | |
9142 | else | |
9143 | : | |
9144 | fi | |
9145 | ||
9146 | fi | |
9147 | ||
9148 | lt_prog_compiler_wl= | |
9149 | lt_prog_compiler_pic= | |
9150 | lt_prog_compiler_static= | |
9151 | ||
9152 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
9153 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
9154 | ||
9155 | if test "$GCC" = yes; then | |
9156 | lt_prog_compiler_wl='-Wl,' | |
9157 | lt_prog_compiler_static='-static' | |
9158 | ||
9159 | case $host_os in | |
9160 | aix*) | |
9161 | # All AIX code is PIC. | |
9162 | if test "$host_cpu" = ia64; then | |
9163 | # AIX 5 now supports IA64 processor | |
9164 | lt_prog_compiler_static='-Bstatic' | |
9165 | fi | |
9166 | ;; | |
9167 | ||
9168 | amigaos*) | |
9169 | # FIXME: we need at least 68020 code to build shared libraries, but | |
9170 | # adding the `-m68020' flag to GCC prevents building anything better, | |
9171 | # like `-m68040'. | |
9172 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' | |
9173 | ;; | |
9174 | ||
9175 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
9176 | # PIC is the default for these OSes. | |
9177 | ;; | |
9178 | ||
9179 | mingw* | pw32* | os2*) | |
9180 | # This hack is so that the source file can tell whether it is being | |
9181 | # built for inclusion in a dll (and should export symbols for example). | |
9182 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9183 | ;; | |
9184 | ||
9185 | darwin* | rhapsody*) | |
9186 | # PIC is the default on this platform | |
9187 | # Common symbols not allowed in MH_DYLIB files | |
9188 | lt_prog_compiler_pic='-fno-common' | |
9189 | ;; | |
9190 | ||
9191 | interix3*) | |
9192 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
9193 | # Instead, we relocate shared libraries at runtime. | |
9194 | ;; | |
9195 | ||
9196 | msdosdjgpp*) | |
9197 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
9198 | # on systems that don't support them. | |
9199 | lt_prog_compiler_can_build_shared=no | |
9200 | enable_shared=no | |
9201 | ;; | |
9202 | ||
9203 | sysv4*MP*) | |
9204 | if test -d /usr/nec; then | |
9205 | lt_prog_compiler_pic=-Kconform_pic | |
9206 | fi | |
9207 | ;; | |
9208 | ||
9209 | hpux*) | |
9210 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9211 | # not for PA HP-UX. | |
9212 | case $host_cpu in | |
9213 | hppa*64*|ia64*) | |
9214 | # +Z the default | |
9215 | ;; | |
9216 | *) | |
9217 | lt_prog_compiler_pic='-fPIC' | |
9218 | ;; | |
9219 | esac | |
9220 | ;; | |
9221 | ||
9222 | *) | |
9223 | lt_prog_compiler_pic='-fPIC' | |
9224 | ;; | |
9225 | esac | |
9226 | else | |
9227 | # PORTME Check for flag to pass linker flags through the system compiler. | |
9228 | case $host_os in | |
9229 | aix*) | |
9230 | lt_prog_compiler_wl='-Wl,' | |
9231 | if test "$host_cpu" = ia64; then | |
9232 | # AIX 5 now supports IA64 processor | |
9233 | lt_prog_compiler_static='-Bstatic' | |
9234 | else | |
9235 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' | |
9236 | fi | |
9237 | ;; | |
9238 | darwin*) | |
9239 | # PIC is the default on this platform | |
9240 | # Common symbols not allowed in MH_DYLIB files | |
9241 | case $cc_basename in | |
9242 | xlc*) | |
9243 | lt_prog_compiler_pic='-qnocommon' | |
9244 | lt_prog_compiler_wl='-Wl,' | |
9245 | ;; | |
9246 | esac | |
9247 | ;; | |
9248 | ||
9249 | mingw* | pw32* | os2*) | |
9250 | # This hack is so that the source file can tell whether it is being | |
9251 | # built for inclusion in a dll (and should export symbols for example). | |
9252 | lt_prog_compiler_pic='-DDLL_EXPORT' | |
9253 | ;; | |
9254 | ||
9255 | hpux9* | hpux10* | hpux11*) | |
9256 | lt_prog_compiler_wl='-Wl,' | |
9257 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
9258 | # not for PA HP-UX. | |
9259 | case $host_cpu in | |
9260 | hppa*64*|ia64*) | |
9261 | # +Z the default | |
9262 | ;; | |
9263 | *) | |
9264 | lt_prog_compiler_pic='+Z' | |
9265 | ;; | |
9266 | esac | |
9267 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
9268 | lt_prog_compiler_static='${wl}-a ${wl}archive' | |
9269 | ;; | |
9270 | ||
9271 | irix5* | irix6* | nonstopux*) | |
9272 | lt_prog_compiler_wl='-Wl,' | |
9273 | # PIC (with -KPIC) is the default. | |
9274 | lt_prog_compiler_static='-non_shared' | |
9275 | ;; | |
9276 | ||
9277 | newsos6) | |
9278 | lt_prog_compiler_pic='-KPIC' | |
9279 | lt_prog_compiler_static='-Bstatic' | |
9280 | ;; | |
9281 | ||
9282 | linux*) | |
9283 | case $cc_basename in | |
9284 | icc* | ecc*) | |
9285 | lt_prog_compiler_wl='-Wl,' | |
9286 | lt_prog_compiler_pic='-KPIC' | |
9287 | lt_prog_compiler_static='-static' | |
9288 | ;; | |
9289 | pgcc* | pgf77* | pgf90* | pgf95*) | |
9290 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
9291 | # which looks to be a dead project) | |
9292 | lt_prog_compiler_wl='-Wl,' | |
9293 | lt_prog_compiler_pic='-fpic' | |
9294 | lt_prog_compiler_static='-Bstatic' | |
9295 | ;; | |
9296 | ccc*) | |
9297 | lt_prog_compiler_wl='-Wl,' | |
9298 | # All Alpha code is PIC. | |
9299 | lt_prog_compiler_static='-non_shared' | |
9300 | ;; | |
9301 | esac | |
9302 | ;; | |
9303 | ||
9304 | osf3* | osf4* | osf5*) | |
9305 | lt_prog_compiler_wl='-Wl,' | |
9306 | # All OSF/1 code is PIC. | |
9307 | lt_prog_compiler_static='-non_shared' | |
9308 | ;; | |
9309 | ||
9310 | solaris*) | |
9311 | lt_prog_compiler_pic='-KPIC' | |
9312 | lt_prog_compiler_static='-Bstatic' | |
9313 | case $cc_basename in | |
9314 | f77* | f90* | f95*) | |
9315 | lt_prog_compiler_wl='-Qoption ld ';; | |
9316 | *) | |
9317 | lt_prog_compiler_wl='-Wl,';; | |
9318 | esac | |
9319 | ;; | |
9320 | ||
9321 | sunos4*) | |
9322 | lt_prog_compiler_wl='-Qoption ld ' | |
9323 | lt_prog_compiler_pic='-PIC' | |
9324 | lt_prog_compiler_static='-Bstatic' | |
9325 | ;; | |
9326 | ||
9327 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
9328 | lt_prog_compiler_wl='-Wl,' | |
9329 | lt_prog_compiler_pic='-KPIC' | |
9330 | lt_prog_compiler_static='-Bstatic' | |
9331 | ;; | |
9332 | ||
9333 | sysv4*MP*) | |
9334 | if test -d /usr/nec ;then | |
9335 | lt_prog_compiler_pic='-Kconform_pic' | |
9336 | lt_prog_compiler_static='-Bstatic' | |
9337 | fi | |
9338 | ;; | |
9339 | ||
9340 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
9341 | lt_prog_compiler_wl='-Wl,' | |
9342 | lt_prog_compiler_pic='-KPIC' | |
9343 | lt_prog_compiler_static='-Bstatic' | |
9344 | ;; | |
9345 | ||
9346 | unicos*) | |
9347 | lt_prog_compiler_wl='-Wl,' | |
9348 | lt_prog_compiler_can_build_shared=no | |
9349 | ;; | |
9350 | ||
9351 | uts4*) | |
9352 | lt_prog_compiler_pic='-pic' | |
9353 | lt_prog_compiler_static='-Bstatic' | |
9354 | ;; | |
9355 | ||
9356 | *) | |
9357 | lt_prog_compiler_can_build_shared=no | |
9358 | ;; | |
9359 | esac | |
9360 | fi | |
9361 | ||
9362 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 | |
9363 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } | |
9364 | ||
9365 | # | |
9366 | # Check to make sure the PIC flag actually works. | |
9367 | # | |
9368 | if test -n "$lt_prog_compiler_pic"; then | |
9369 | ||
9370 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 | |
9371 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } | |
9372 | if test "${lt_prog_compiler_pic_works+set}" = set; then | |
9373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9374 | else | |
9375 | lt_prog_compiler_pic_works=no | |
9376 | ac_outfile=conftest.$ac_objext | |
9377 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9378 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" | |
9379 | # Insert the option either (1) after the last *FLAGS variable, or | |
9380 | # (2) before a word containing "conftest.", or (3) at the end. | |
9381 | # Note that $ac_compile itself does not contain backslashes and begins | |
9382 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9383 | # The option is referenced via a variable to avoid confusing sed. | |
9384 | lt_compile=`echo "$ac_compile" | $SED \ | |
9385 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9386 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9387 | -e 's:$: $lt_compiler_flag:'` | |
9388 | (eval echo "\"\$as_me:9388: $lt_compile\"" >&5) | |
9389 | (eval "$lt_compile" 2>conftest.err) | |
9390 | ac_status=$? | |
9391 | cat conftest.err >&5 | |
9392 | echo "$as_me:9392: \$? = $ac_status" >&5 | |
9393 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
9394 | # The compiler can only warn and ignore the option if not recognized | |
9395 | # So say no if there are warnings other than the usual output. | |
9396 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
9397 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9398 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
9399 | lt_prog_compiler_pic_works=yes | |
9400 | fi | |
9401 | fi | |
9402 | $rm conftest* | |
9403 | ||
9404 | fi | |
9405 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 | |
9406 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } | |
9407 | ||
9408 | if test x"$lt_prog_compiler_pic_works" = xyes; then | |
9409 | case $lt_prog_compiler_pic in | |
9410 | "" | " "*) ;; | |
9411 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; | |
9412 | esac | |
9413 | else | |
9414 | lt_prog_compiler_pic= | |
9415 | lt_prog_compiler_can_build_shared=no | |
9416 | fi | |
9417 | ||
9418 | fi | |
9419 | case $host_os in | |
9420 | # For platforms which do not support PIC, -DPIC is meaningless: | |
9421 | *djgpp*) | |
9422 | lt_prog_compiler_pic= | |
9423 | ;; | |
9424 | *) | |
9425 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" | |
9426 | ;; | |
9427 | esac | |
9428 | ||
9429 | # | |
9430 | # Check to make sure the static flag actually works. | |
9431 | # | |
9432 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" | |
9433 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
9434 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
9435 | if test "${lt_prog_compiler_static_works+set}" = set; then | |
9436 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9437 | else | |
9438 | lt_prog_compiler_static_works=no | |
9439 | save_LDFLAGS="$LDFLAGS" | |
9440 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
9441 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
9442 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
9443 | # The linker can only warn and ignore the option if not recognized | |
9444 | # So say no if there are warnings | |
9445 | if test -s conftest.err; then | |
9446 | # Append any errors to the config.log. | |
9447 | cat conftest.err 1>&5 | |
9448 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
9449 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
9450 | if diff conftest.exp conftest.er2 >/dev/null; then | |
9451 | lt_prog_compiler_static_works=yes | |
9452 | fi | |
9453 | else | |
9454 | lt_prog_compiler_static_works=yes | |
9455 | fi | |
9456 | fi | |
9457 | $rm conftest* | |
9458 | LDFLAGS="$save_LDFLAGS" | |
9459 | ||
9460 | fi | |
9461 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 | |
9462 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } | |
9463 | ||
9464 | if test x"$lt_prog_compiler_static_works" = xyes; then | |
9465 | : | |
9466 | else | |
9467 | lt_prog_compiler_static= | |
9468 | fi | |
9469 | ||
9470 | ||
9471 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
9472 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
9473 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then | |
9474 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
9475 | else | |
9476 | lt_cv_prog_compiler_c_o=no | |
9477 | $rm -r conftest 2>/dev/null | |
9478 | mkdir conftest | |
9479 | cd conftest | |
9480 | mkdir out | |
9481 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
9482 | ||
9483 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
9484 | # Insert the option either (1) after the last *FLAGS variable, or | |
9485 | # (2) before a word containing "conftest.", or (3) at the end. | |
9486 | # Note that $ac_compile itself does not contain backslashes and begins | |
9487 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
9488 | lt_compile=`echo "$ac_compile" | $SED \ | |
9489 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
9490 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
9491 | -e 's:$: $lt_compiler_flag:'` | |
9492 | (eval echo "\"\$as_me:9492: $lt_compile\"" >&5) | |
9493 | (eval "$lt_compile" 2>out/conftest.err) | |
9494 | ac_status=$? | |
9495 | cat out/conftest.err >&5 | |
9496 | echo "$as_me:9496: \$? = $ac_status" >&5 | |
9497 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
9498 | then | |
9499 | # The compiler can only warn and ignore the option if not recognized | |
9500 | # So say no if there are warnings | |
9501 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
9502 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
9503 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
9504 | lt_cv_prog_compiler_c_o=yes | |
9505 | fi | |
9506 | fi | |
9507 | chmod u+w . 2>&5 | |
9508 | $rm conftest* | |
9509 | # SGI C++ compiler will create directory out/ii_files/ for | |
9510 | # template instantiation | |
9511 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
9512 | $rm out/* && rmdir out | |
9513 | cd .. | |
9514 | rmdir conftest | |
9515 | $rm conftest* | |
9516 | ||
9517 | fi | |
9518 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 | |
9519 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } | |
9520 | ||
9521 | ||
9522 | hard_links="nottested" | |
9523 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then | |
9524 | # do not overwrite the value of need_locks provided by the user | |
9525 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
9526 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
9527 | hard_links=yes | |
9528 | $rm conftest* | |
9529 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9530 | touch conftest.a | |
9531 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
9532 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
9533 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
9534 | echo "${ECHO_T}$hard_links" >&6; } | |
9535 | if test "$hard_links" = no; then | |
9536 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
9537 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
9538 | need_locks=warn | |
9539 | fi | |
9540 | else | |
9541 | need_locks=no | |
9542 | fi | |
9543 | ||
9544 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
9545 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
9546 | ||
9547 | runpath_var= | |
9548 | allow_undefined_flag= | |
9549 | enable_shared_with_static_runtimes=no | |
9550 | archive_cmds= | |
9551 | archive_expsym_cmds= | |
9552 | old_archive_From_new_cmds= | |
9553 | old_archive_from_expsyms_cmds= | |
9554 | export_dynamic_flag_spec= | |
9555 | whole_archive_flag_spec= | |
9556 | thread_safe_flag_spec= | |
9557 | hardcode_libdir_flag_spec= | |
9558 | hardcode_libdir_flag_spec_ld= | |
9559 | hardcode_libdir_separator= | |
9560 | hardcode_direct=no | |
9561 | hardcode_minus_L=no | |
9562 | hardcode_shlibpath_var=unsupported | |
9563 | link_all_deplibs=unknown | |
9564 | hardcode_automatic=no | |
9565 | module_cmds= | |
9566 | module_expsym_cmds= | |
9567 | always_export_symbols=no | |
9568 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
9569 | # include_expsyms should be a list of space-separated symbols to be *always* | |
9570 | # included in the symbol list | |
9571 | include_expsyms= | |
9572 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
9573 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
9574 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
9575 | # as well as any symbol that contains `d'. | |
9576 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" | |
9577 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
9578 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
9579 | # the symbol is explicitly referenced. Since portable code cannot | |
9580 | # rely on this symbol name, it's probably fine to never include it in | |
9581 | # preloaded symbol tables. | |
9582 | extract_expsyms_cmds= | |
9583 | # Just being paranoid about ensuring that cc_basename is set. | |
9584 | for cc_temp in $compiler""; do | |
9585 | case $cc_temp in | |
9586 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
9587 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
9588 | \-*) ;; | |
9589 | *) break;; | |
9590 | esac | |
9591 | done | |
9592 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
9593 | ||
9594 | case $host_os in | |
9595 | cygwin* | mingw* | pw32*) | |
9596 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
9597 | # When not using gcc, we currently assume that we are using | |
9598 | # Microsoft Visual C++. | |
9599 | if test "$GCC" != yes; then | |
9600 | with_gnu_ld=no | |
9601 | fi | |
9602 | ;; | |
9603 | interix*) | |
9604 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
9605 | with_gnu_ld=yes | |
9606 | ;; | |
9607 | openbsd*) | |
9608 | with_gnu_ld=no | |
9609 | ;; | |
9610 | esac | |
9611 | ||
9612 | ld_shlibs=yes | |
9613 | if test "$with_gnu_ld" = yes; then | |
9614 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
9615 | wlarc='${wl}' | |
9616 | ||
9617 | # Set some defaults for GNU ld with shared library support. These | |
9618 | # are reset later if shared libraries are not supported. Putting them | |
9619 | # here allows them to be overridden if necessary. | |
9620 | runpath_var=LD_RUN_PATH | |
9621 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' | |
9622 | export_dynamic_flag_spec='${wl}--export-dynamic' | |
9623 | # ancient GNU ld didn't support --whole-archive et. al. | |
9624 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
9625 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
9626 | else | |
9627 | whole_archive_flag_spec= | |
9628 | fi | |
9629 | supports_anon_versioning=no | |
9630 | case `$LD -v 2>/dev/null` in | |
9631 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
9632 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
9633 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
9634 | *\ 2.11.*) ;; # other 2.11 versions | |
9635 | *) supports_anon_versioning=yes ;; | |
9636 | esac | |
9637 | ||
9638 | # See if GNU ld supports shared libraries. | |
9639 | case $host_os in | |
9640 | aix3* | aix4* | aix5*) | |
9641 | # On AIX/PPC, the GNU linker is very broken | |
9642 | if test "$host_cpu" != ia64; then | |
9643 | ld_shlibs=no | |
9644 | cat <<EOF 1>&2 | |
9645 | ||
9646 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
9647 | *** to be unable to reliably create shared libraries on AIX. | |
9648 | *** Therefore, libtool is disabling shared libraries support. If you | |
9649 | *** really care for shared libraries, you may want to modify your PATH | |
9650 | *** so that a non-GNU linker is found, and then restart. | |
9651 | ||
9652 | EOF | |
9653 | fi | |
9654 | ;; | |
9655 | ||
9656 | amigaos*) | |
9657 | 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)' | |
9658 | hardcode_libdir_flag_spec='-L$libdir' | |
9659 | hardcode_minus_L=yes | |
9660 | ||
9661 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
9662 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
9663 | # to version 4, is to share data among multiple programs linked | |
9664 | # with the same dynamic library. Since this doesn't match the | |
9665 | # behavior of shared libraries on other platforms, we can't use | |
9666 | # them. | |
9667 | ld_shlibs=no | |
9668 | ;; | |
9669 | ||
9670 | beos*) | |
9671 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
9672 | allow_undefined_flag=unsupported | |
9673 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
9674 | # support --undefined. This deserves some investigation. FIXME | |
9675 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9676 | else | |
9677 | ld_shlibs=no | |
9678 | fi | |
9679 | ;; | |
9680 | ||
9681 | cygwin* | mingw* | pw32*) | |
9682 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, | |
9683 | # as there is no search path for DLLs. | |
9684 | hardcode_libdir_flag_spec='-L$libdir' | |
9685 | allow_undefined_flag=unsupported | |
9686 | always_export_symbols=no | |
9687 | enable_shared_with_static_runtimes=yes | |
9688 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
9689 | ||
9690 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
9691 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9692 | # If the export-symbols file already is a .def file (1st line | |
9693 | # is EXPORTS), use it as is; otherwise, prepend... | |
9694 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
9695 | cp $export_symbols $output_objdir/$soname.def; | |
9696 | else | |
9697 | echo EXPORTS > $output_objdir/$soname.def; | |
9698 | cat $export_symbols >> $output_objdir/$soname.def; | |
9699 | fi~ | |
9700 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
9701 | else | |
9702 | ld_shlibs=no | |
9703 | fi | |
9704 | ;; | |
9705 | ||
9706 | interix3*) | |
9707 | hardcode_direct=no | |
9708 | hardcode_shlibpath_var=no | |
9709 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
9710 | export_dynamic_flag_spec='${wl}-E' | |
9711 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
9712 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
9713 | # default) and relocated if they conflict, which is a slow very memory | |
9714 | # consuming and fragmenting process. To avoid this, we pick a random, | |
9715 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
9716 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
9717 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9718 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
9719 | ;; | |
9720 | ||
9721 | linux*) | |
9722 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
9723 | tmp_addflag= | |
9724 | case $cc_basename,$host_cpu in | |
9725 | pgcc*) # Portland Group C compiler | |
9726 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
9727 | tmp_addflag=' $pic_flag' | |
9728 | ;; | |
9729 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
9730 | whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
9731 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
9732 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
9733 | tmp_addflag=' -i_dynamic' ;; | |
9734 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
9735 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
9736 | ifc* | ifort*) # Intel Fortran compiler | |
9737 | tmp_addflag=' -nofor_main' ;; | |
9738 | esac | |
9739 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9740 | ||
9741 | if test $supports_anon_versioning = yes; then | |
9742 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ | |
9743 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
9744 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
9745 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
9746 | fi | |
9747 | else | |
9748 | ld_shlibs=no | |
9749 | fi | |
9750 | ;; | |
9751 | ||
9752 | netbsd*) | |
9753 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
9754 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
9755 | wlarc= | |
9756 | else | |
9757 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9758 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9759 | fi | |
9760 | ;; | |
9761 | ||
9762 | solaris*) | |
9763 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
9764 | ld_shlibs=no | |
9765 | cat <<EOF 1>&2 | |
9766 | ||
9767 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
9768 | *** create shared libraries on Solaris systems. Therefore, libtool | |
9769 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9770 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
9771 | *** your PATH or compiler configuration so that the native linker is | |
9772 | *** used, and then restart. | |
9773 | ||
9774 | EOF | |
9775 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
9776 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9777 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9778 | else | |
9779 | ld_shlibs=no | |
9780 | fi | |
9781 | ;; | |
9782 | ||
9783 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
9784 | case `$LD -v 2>&1` in | |
9785 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
9786 | ld_shlibs=no | |
9787 | cat <<_LT_EOF 1>&2 | |
9788 | ||
9789 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
9790 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
9791 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
9792 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
9793 | *** your PATH or compiler configuration so that the native linker is | |
9794 | *** used, and then restart. | |
9795 | ||
9796 | _LT_EOF | |
9797 | ;; | |
9798 | *) | |
9799 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
9800 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
9801 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
9802 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
9803 | else | |
9804 | ld_shlibs=no | |
9805 | fi | |
9806 | ;; | |
9807 | esac | |
9808 | ;; | |
9809 | ||
9810 | sunos4*) | |
9811 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
9812 | wlarc= | |
9813 | hardcode_direct=yes | |
9814 | hardcode_shlibpath_var=no | |
9815 | ;; | |
9816 | ||
9817 | *) | |
9818 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
9819 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
9820 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
9821 | else | |
9822 | ld_shlibs=no | |
9823 | fi | |
9824 | ;; | |
9825 | esac | |
9826 | ||
9827 | if test "$ld_shlibs" = no; then | |
9828 | runpath_var= | |
9829 | hardcode_libdir_flag_spec= | |
9830 | export_dynamic_flag_spec= | |
9831 | whole_archive_flag_spec= | |
9832 | fi | |
9833 | else | |
9834 | # PORTME fill in a description of your system's linker (not GNU ld) | |
9835 | case $host_os in | |
9836 | aix3*) | |
9837 | allow_undefined_flag=unsupported | |
9838 | always_export_symbols=yes | |
9839 | 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' | |
9840 | # Note: this linker hardcodes the directories in LIBPATH if there | |
9841 | # are no directories specified by -L. | |
9842 | hardcode_minus_L=yes | |
9843 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
9844 | # Neither direct hardcoding nor static linking is supported with a | |
9845 | # broken collect2. | |
9846 | hardcode_direct=unsupported | |
9847 | fi | |
9848 | ;; | |
9849 | ||
9850 | aix4* | aix5*) | |
9851 | if test "$host_cpu" = ia64; then | |
9852 | # On IA64, the linker does run time linking by default, so we don't | |
9853 | # have to do anything special. | |
9854 | aix_use_runtimelinking=no | |
9855 | exp_sym_flag='-Bexport' | |
9856 | no_entry_flag="" | |
9857 | else | |
9858 | # If we're using GNU nm, then we don't want the "-C" option. | |
9859 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
9860 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
9861 | 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' | |
9862 | else | |
9863 | 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' | |
9864 | fi | |
9865 | aix_use_runtimelinking=no | |
9866 | ||
9867 | # Test if we are trying to use run time linking or normal | |
9868 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
9869 | # need to do runtime linking. | |
9870 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
9871 | for ld_flag in $LDFLAGS; do | |
9872 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
9873 | aix_use_runtimelinking=yes | |
9874 | break | |
9875 | fi | |
9876 | done | |
9877 | ;; | |
9878 | esac | |
9879 | ||
9880 | exp_sym_flag='-bexport' | |
9881 | no_entry_flag='-bnoentry' | |
9882 | fi | |
9883 | ||
9884 | # When large executables or shared objects are built, AIX ld can | |
9885 | # have problems creating the table of contents. If linking a library | |
9886 | # or program results in "error TOC overflow" add -mminimal-toc to | |
9887 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
9888 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
9889 | ||
9890 | archive_cmds='' | |
9891 | hardcode_direct=yes | |
9892 | hardcode_libdir_separator=':' | |
9893 | link_all_deplibs=yes | |
9894 | ||
9895 | if test "$GCC" = yes; then | |
9896 | case $host_os in aix4.[012]|aix4.[012].*) | |
9897 | # We only want to do this on AIX 4.2 and lower, the check | |
9898 | # below for broken collect2 doesn't work under 4.3+ | |
9899 | collect2name=`${CC} -print-prog-name=collect2` | |
9900 | if test -f "$collect2name" && \ | |
9901 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
9902 | then | |
9903 | # We have reworked collect2 | |
9904 | hardcode_direct=yes | |
9905 | else | |
9906 | # We have old collect2 | |
9907 | hardcode_direct=unsupported | |
9908 | # It fails to find uninstalled libraries when the uninstalled | |
9909 | # path is not listed in the libpath. Setting hardcode_minus_L | |
9910 | # to unsupported forces relinking | |
9911 | hardcode_minus_L=yes | |
9912 | hardcode_libdir_flag_spec='-L$libdir' | |
9913 | hardcode_libdir_separator= | |
9914 | fi | |
9915 | ;; | |
9916 | esac | |
9917 | shared_flag='-shared' | |
9918 | if test "$aix_use_runtimelinking" = yes; then | |
9919 | shared_flag="$shared_flag "'${wl}-G' | |
9920 | fi | |
9921 | else | |
9922 | # not using gcc | |
9923 | if test "$host_cpu" = ia64; then | |
9924 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
9925 | # chokes on -Wl,-G. The following line is correct: | |
9926 | shared_flag='-G' | |
9927 | else | |
9928 | if test "$aix_use_runtimelinking" = yes; then | |
9929 | shared_flag='${wl}-G' | |
9930 | else | |
9931 | shared_flag='${wl}-bM:SRE' | |
9932 | fi | |
9933 | fi | |
9934 | fi | |
9935 | ||
9936 | # It seems that -bexpall does not export symbols beginning with | |
9937 | # underscore (_), so it is better to generate a list of symbols to export. | |
9938 | always_export_symbols=yes | |
9939 | if test "$aix_use_runtimelinking" = yes; then | |
9940 | # Warning - without using the other runtime loading flags (-brtl), | |
9941 | # -berok will link without error, but may produce a broken library. | |
9942 | allow_undefined_flag='-berok' | |
9943 | # Determine the default libpath from the value encoded in an empty executable. | |
9944 | cat >conftest.$ac_ext <<_ACEOF | |
9945 | /* confdefs.h. */ | |
9946 | _ACEOF | |
9947 | cat confdefs.h >>conftest.$ac_ext | |
9948 | cat >>conftest.$ac_ext <<_ACEOF | |
9949 | /* end confdefs.h. */ | |
9950 | ||
9951 | int | |
9952 | main () | |
9953 | { | |
9954 | ||
9955 | ; | |
9956 | return 0; | |
9957 | } | |
9958 | _ACEOF | |
9959 | rm -f conftest.$ac_objext conftest$ac_exeext | |
9960 | if { (ac_try="$ac_link" | |
9961 | case "(($ac_try" in | |
9962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
9963 | *) ac_try_echo=$ac_try;; | |
9964 | esac | |
9965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
9966 | (eval "$ac_link") 2>conftest.er1 | |
9967 | ac_status=$? | |
9968 | grep -v '^ *+' conftest.er1 >conftest.err | |
9969 | rm -f conftest.er1 | |
9970 | cat conftest.err >&5 | |
9971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
9972 | (exit $ac_status); } && { | |
9973 | test -z "$ac_c_werror_flag" || | |
9974 | test ! -s conftest.err | |
9975 | } && test -s conftest$ac_exeext && | |
9976 | $as_test_x conftest$ac_exeext; then | |
9977 | ||
9978 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
9979 | }'` | |
9980 | # Check for a 64-bit object if we didn't find anything. | |
9981 | 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; } | |
9982 | }'`; fi | |
9983 | else | |
9984 | echo "$as_me: failed program was:" >&5 | |
9985 | sed 's/^/| /' conftest.$ac_ext >&5 | |
9986 | ||
9987 | ||
9988 | fi | |
9989 | ||
9990 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
9991 | conftest$ac_exeext conftest.$ac_ext | |
9992 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
9993 | ||
9994 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
9995 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
9996 | else | |
9997 | if test "$host_cpu" = ia64; then | |
9998 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' | |
9999 | allow_undefined_flag="-z nodefs" | |
10000 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
10001 | else | |
10002 | # Determine the default libpath from the value encoded in an empty executable. | |
10003 | cat >conftest.$ac_ext <<_ACEOF | |
10004 | /* confdefs.h. */ | |
10005 | _ACEOF | |
10006 | cat confdefs.h >>conftest.$ac_ext | |
10007 | cat >>conftest.$ac_ext <<_ACEOF | |
10008 | /* end confdefs.h. */ | |
10009 | ||
10010 | int | |
10011 | main () | |
10012 | { | |
10013 | ||
10014 | ; | |
10015 | return 0; | |
10016 | } | |
10017 | _ACEOF | |
10018 | rm -f conftest.$ac_objext conftest$ac_exeext | |
10019 | if { (ac_try="$ac_link" | |
10020 | case "(($ac_try" in | |
10021 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
10022 | *) ac_try_echo=$ac_try;; | |
10023 | esac | |
10024 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
10025 | (eval "$ac_link") 2>conftest.er1 | |
10026 | ac_status=$? | |
10027 | grep -v '^ *+' conftest.er1 >conftest.err | |
10028 | rm -f conftest.er1 | |
10029 | cat conftest.err >&5 | |
10030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10031 | (exit $ac_status); } && { | |
10032 | test -z "$ac_c_werror_flag" || | |
10033 | test ! -s conftest.err | |
10034 | } && test -s conftest$ac_exeext && | |
10035 | $as_test_x conftest$ac_exeext; then | |
10036 | ||
10037 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
10038 | }'` | |
10039 | # Check for a 64-bit object if we didn't find anything. | |
10040 | 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; } | |
10041 | }'`; fi | |
10042 | else | |
10043 | echo "$as_me: failed program was:" >&5 | |
10044 | sed 's/^/| /' conftest.$ac_ext >&5 | |
10045 | ||
10046 | ||
10047 | fi | |
10048 | ||
10049 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
10050 | conftest$ac_exeext conftest.$ac_ext | |
10051 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
10052 | ||
10053 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" | |
10054 | # Warning - without using the other run time loading flags, | |
10055 | # -berok will link without error, but may produce a broken library. | |
10056 | no_undefined_flag=' ${wl}-bernotok' | |
10057 | allow_undefined_flag=' ${wl}-berok' | |
10058 | # Exported symbols can be pulled into shared objects from archives | |
10059 | whole_archive_flag_spec='$convenience' | |
10060 | archive_cmds_need_lc=yes | |
10061 | # This is similar to how AIX traditionally builds its shared libraries. | |
10062 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
10063 | fi | |
10064 | fi | |
10065 | ;; | |
10066 | ||
10067 | amigaos*) | |
10068 | 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)' | |
10069 | hardcode_libdir_flag_spec='-L$libdir' | |
10070 | hardcode_minus_L=yes | |
10071 | # see comment about different semantics on the GNU ld section | |
10072 | ld_shlibs=no | |
10073 | ;; | |
10074 | ||
10075 | bsdi[45]*) | |
10076 | export_dynamic_flag_spec=-rdynamic | |
10077 | ;; | |
10078 | ||
10079 | cygwin* | mingw* | pw32*) | |
10080 | # When not using gcc, we currently assume that we are using | |
10081 | # Microsoft Visual C++. | |
10082 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
10083 | # no search path for DLLs. | |
10084 | hardcode_libdir_flag_spec=' ' | |
10085 | allow_undefined_flag=unsupported | |
10086 | # Tell ltmain to make .lib files, not .a files. | |
10087 | libext=lib | |
10088 | # Tell ltmain to make .dll files, not .so files. | |
10089 | shrext_cmds=".dll" | |
10090 | # FIXME: Setting linknames here is a bad hack. | |
10091 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
10092 | # The linker will automatically build a .lib file if we build a DLL. | |
10093 | old_archive_From_new_cmds='true' | |
10094 | # FIXME: Should let the user specify the lib program. | |
10095 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
10096 | fix_srcfile_path='`cygpath -w "$srcfile"`' | |
10097 | enable_shared_with_static_runtimes=yes | |
10098 | ;; | |
10099 | ||
10100 | darwin* | rhapsody*) | |
10101 | case $host_os in | |
10102 | rhapsody* | darwin1.[012]) | |
10103 | allow_undefined_flag='${wl}-undefined ${wl}suppress' | |
10104 | ;; | |
10105 | *) # Darwin 1.3 on | |
10106 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
10107 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
10108 | else | |
10109 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
10110 | 10.[012]) | |
10111 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
10112 | ;; | |
10113 | 10.*) | |
10114 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' | |
10115 | ;; | |
10116 | esac | |
10117 | fi | |
10118 | ;; | |
10119 | esac | |
10120 | archive_cmds_need_lc=no | |
10121 | hardcode_direct=no | |
10122 | hardcode_automatic=yes | |
10123 | hardcode_shlibpath_var=unsupported | |
10124 | whole_archive_flag_spec='' | |
10125 | link_all_deplibs=yes | |
10126 | if test "$GCC" = yes ; then | |
10127 | output_verbose_link_cmd='echo' | |
10128 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
10129 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
10130 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
10131 | 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}' | |
10132 | 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}' | |
10133 | else | |
10134 | case $cc_basename in | |
10135 | xlc*) | |
10136 | output_verbose_link_cmd='echo' | |
10137 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
10138 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
10139 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
10140 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
10141 | 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}' | |
10142 | ;; | |
10143 | *) | |
10144 | ld_shlibs=no | |
10145 | ;; | |
10146 | esac | |
10147 | fi | |
10148 | ;; | |
10149 | ||
10150 | dgux*) | |
10151 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10152 | hardcode_libdir_flag_spec='-L$libdir' | |
10153 | hardcode_shlibpath_var=no | |
10154 | ;; | |
10155 | ||
10156 | freebsd1*) | |
10157 | ld_shlibs=no | |
10158 | ;; | |
10159 | ||
10160 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
10161 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
10162 | # does not break anything, and helps significantly (at the cost of a little | |
10163 | # extra space). | |
10164 | freebsd2.2*) | |
10165 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
10166 | hardcode_libdir_flag_spec='-R$libdir' | |
10167 | hardcode_direct=yes | |
10168 | hardcode_shlibpath_var=no | |
10169 | ;; | |
10170 | ||
10171 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
10172 | freebsd2*) | |
10173 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10174 | hardcode_direct=yes | |
10175 | hardcode_minus_L=yes | |
10176 | hardcode_shlibpath_var=no | |
10177 | ;; | |
10178 | ||
10179 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
10180 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
10181 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
10182 | hardcode_libdir_flag_spec='-R$libdir' | |
10183 | hardcode_direct=yes | |
10184 | hardcode_shlibpath_var=no | |
10185 | ;; | |
10186 | ||
10187 | hpux9*) | |
10188 | if test "$GCC" = yes; then | |
10189 | 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' | |
10190 | else | |
10191 | 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' | |
10192 | fi | |
10193 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10194 | hardcode_libdir_separator=: | |
10195 | hardcode_direct=yes | |
10196 | ||
10197 | # hardcode_minus_L: Not really in the search PATH, | |
10198 | # but as the default location of the library. | |
10199 | hardcode_minus_L=yes | |
10200 | export_dynamic_flag_spec='${wl}-E' | |
10201 | ;; | |
10202 | ||
10203 | hpux10*) | |
10204 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
10205 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10206 | else | |
10207 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
10208 | fi | |
10209 | if test "$with_gnu_ld" = no; then | |
10210 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10211 | hardcode_libdir_separator=: | |
10212 | ||
10213 | hardcode_direct=yes | |
10214 | export_dynamic_flag_spec='${wl}-E' | |
10215 | ||
10216 | # hardcode_minus_L: Not really in the search PATH, | |
10217 | # but as the default location of the library. | |
10218 | hardcode_minus_L=yes | |
10219 | fi | |
10220 | ;; | |
10221 | ||
10222 | hpux11*) | |
10223 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
10224 | case $host_cpu in | |
10225 | hppa*64*) | |
10226 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10227 | ;; | |
10228 | ia64*) | |
10229 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10230 | ;; | |
10231 | *) | |
10232 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10233 | ;; | |
10234 | esac | |
10235 | else | |
10236 | case $host_cpu in | |
10237 | hppa*64*) | |
10238 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10239 | ;; | |
10240 | ia64*) | |
10241 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
10242 | ;; | |
10243 | *) | |
10244 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
10245 | ;; | |
10246 | esac | |
10247 | fi | |
10248 | if test "$with_gnu_ld" = no; then | |
10249 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' | |
10250 | hardcode_libdir_separator=: | |
10251 | ||
10252 | case $host_cpu in | |
10253 | hppa*64*|ia64*) | |
10254 | hardcode_libdir_flag_spec_ld='+b $libdir' | |
10255 | hardcode_direct=no | |
10256 | hardcode_shlibpath_var=no | |
10257 | ;; | |
10258 | *) | |
10259 | hardcode_direct=yes | |
10260 | export_dynamic_flag_spec='${wl}-E' | |
10261 | ||
10262 | # hardcode_minus_L: Not really in the search PATH, | |
10263 | # but as the default location of the library. | |
10264 | hardcode_minus_L=yes | |
10265 | ;; | |
10266 | esac | |
10267 | fi | |
10268 | ;; | |
10269 | ||
10270 | irix5* | irix6* | nonstopux*) | |
10271 | if test "$GCC" = yes; then | |
10272 | 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' | |
10273 | else | |
10274 | 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' | |
10275 | hardcode_libdir_flag_spec_ld='-rpath $libdir' | |
10276 | fi | |
10277 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10278 | hardcode_libdir_separator=: | |
10279 | link_all_deplibs=yes | |
10280 | ;; | |
10281 | ||
10282 | netbsd*) | |
10283 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
10284 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
10285 | else | |
10286 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
10287 | fi | |
10288 | hardcode_libdir_flag_spec='-R$libdir' | |
10289 | hardcode_direct=yes | |
10290 | hardcode_shlibpath_var=no | |
10291 | ;; | |
10292 | ||
10293 | newsos6) | |
10294 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10295 | hardcode_direct=yes | |
10296 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10297 | hardcode_libdir_separator=: | |
10298 | hardcode_shlibpath_var=no | |
10299 | ;; | |
10300 | ||
10301 | openbsd*) | |
10302 | hardcode_direct=yes | |
10303 | hardcode_shlibpath_var=no | |
10304 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
10305 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10306 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
10307 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10308 | export_dynamic_flag_spec='${wl}-E' | |
10309 | else | |
10310 | case $host_os in | |
10311 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
10312 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
10313 | hardcode_libdir_flag_spec='-R$libdir' | |
10314 | ;; | |
10315 | *) | |
10316 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
10317 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' | |
10318 | ;; | |
10319 | esac | |
10320 | fi | |
10321 | ;; | |
10322 | ||
10323 | os2*) | |
10324 | hardcode_libdir_flag_spec='-L$libdir' | |
10325 | hardcode_minus_L=yes | |
10326 | allow_undefined_flag=unsupported | |
10327 | 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' | |
10328 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
10329 | ;; | |
10330 | ||
10331 | osf3*) | |
10332 | if test "$GCC" = yes; then | |
10333 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10334 | 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' | |
10335 | else | |
10336 | allow_undefined_flag=' -expect_unresolved \*' | |
10337 | 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' | |
10338 | fi | |
10339 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10340 | hardcode_libdir_separator=: | |
10341 | ;; | |
10342 | ||
10343 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
10344 | if test "$GCC" = yes; then | |
10345 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' | |
10346 | 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' | |
10347 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' | |
10348 | else | |
10349 | allow_undefined_flag=' -expect_unresolved \*' | |
10350 | 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' | |
10351 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ | |
10352 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
10353 | ||
10354 | # Both c and cxx compiler support -rpath directly | |
10355 | hardcode_libdir_flag_spec='-rpath $libdir' | |
10356 | fi | |
10357 | hardcode_libdir_separator=: | |
10358 | ;; | |
10359 | ||
10360 | solaris*) | |
10361 | no_undefined_flag=' -z text' | |
10362 | if test "$GCC" = yes; then | |
10363 | wlarc='${wl}' | |
10364 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10365 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
10366 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
10367 | else | |
10368 | wlarc='' | |
10369 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10370 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
10371 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
10372 | fi | |
10373 | hardcode_libdir_flag_spec='-R$libdir' | |
10374 | hardcode_shlibpath_var=no | |
10375 | case $host_os in | |
10376 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
10377 | *) | |
10378 | # The compiler driver will combine linker options so we | |
10379 | # cannot just pass the convience library names through | |
10380 | # without $wl, iff we do not link with $LD. | |
10381 | # Luckily, gcc supports the same syntax we need for Sun Studio. | |
10382 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
10383 | case $wlarc in | |
10384 | '') | |
10385 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; | |
10386 | *) | |
10387 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
10388 | esac ;; | |
10389 | esac | |
10390 | link_all_deplibs=yes | |
10391 | ;; | |
10392 | ||
10393 | sunos4*) | |
10394 | if test "x$host_vendor" = xsequent; then | |
10395 | # Use $CC to link under sequent, because it throws in some extra .o | |
10396 | # files that make .init and .fini sections work. | |
10397 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
10398 | else | |
10399 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
10400 | fi | |
10401 | hardcode_libdir_flag_spec='-L$libdir' | |
10402 | hardcode_direct=yes | |
10403 | hardcode_minus_L=yes | |
10404 | hardcode_shlibpath_var=no | |
10405 | ;; | |
10406 | ||
10407 | sysv4) | |
10408 | case $host_vendor in | |
10409 | sni) | |
10410 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10411 | hardcode_direct=yes # is this really true??? | |
10412 | ;; | |
10413 | siemens) | |
10414 | ## LD is ld it makes a PLAMLIB | |
10415 | ## CC just makes a GrossModule. | |
10416 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
10417 | reload_cmds='$CC -r -o $output$reload_objs' | |
10418 | hardcode_direct=no | |
10419 | ;; | |
10420 | motorola) | |
10421 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10422 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie | |
10423 | ;; | |
10424 | esac | |
10425 | runpath_var='LD_RUN_PATH' | |
10426 | hardcode_shlibpath_var=no | |
10427 | ;; | |
10428 | ||
10429 | sysv4.3*) | |
10430 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10431 | hardcode_shlibpath_var=no | |
10432 | export_dynamic_flag_spec='-Bexport' | |
10433 | ;; | |
10434 | ||
10435 | sysv4*MP*) | |
10436 | if test -d /usr/nec; then | |
10437 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10438 | hardcode_shlibpath_var=no | |
10439 | runpath_var=LD_RUN_PATH | |
10440 | hardcode_runpath_var=yes | |
10441 | ld_shlibs=yes | |
10442 | fi | |
10443 | ;; | |
10444 | ||
10445 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
10446 | no_undefined_flag='${wl}-z,text' | |
10447 | archive_cmds_need_lc=no | |
10448 | hardcode_shlibpath_var=no | |
10449 | runpath_var='LD_RUN_PATH' | |
10450 | ||
10451 | if test "$GCC" = yes; then | |
10452 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10453 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10454 | else | |
10455 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10456 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10457 | fi | |
10458 | ;; | |
10459 | ||
10460 | sysv5* | sco3.2v5* | sco5v6*) | |
10461 | # Note: We can NOT use -z defs as we might desire, because we do not | |
10462 | # link with -lc, and that would cause any symbols used from libc to | |
10463 | # always be unresolved, which means just about no library would | |
10464 | # ever link correctly. If we're not using GNU ld we use -z text | |
10465 | # though, which does catch some bad symbols but isn't as heavy-handed | |
10466 | # as -z defs. | |
10467 | no_undefined_flag='${wl}-z,text' | |
10468 | allow_undefined_flag='${wl}-z,nodefs' | |
10469 | archive_cmds_need_lc=no | |
10470 | hardcode_shlibpath_var=no | |
10471 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
10472 | hardcode_libdir_separator=':' | |
10473 | link_all_deplibs=yes | |
10474 | export_dynamic_flag_spec='${wl}-Bexport' | |
10475 | runpath_var='LD_RUN_PATH' | |
10476 | ||
10477 | if test "$GCC" = yes; then | |
10478 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10479 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10480 | else | |
10481 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10482 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
10483 | fi | |
10484 | ;; | |
10485 | ||
10486 | uts4*) | |
10487 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
10488 | hardcode_libdir_flag_spec='-L$libdir' | |
10489 | hardcode_shlibpath_var=no | |
10490 | ;; | |
10491 | ||
10492 | *) | |
10493 | ld_shlibs=no | |
10494 | ;; | |
10495 | esac | |
10496 | fi | |
10497 | ||
10498 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 | |
10499 | echo "${ECHO_T}$ld_shlibs" >&6; } | |
10500 | test "$ld_shlibs" = no && can_build_shared=no | |
10501 | ||
10502 | # | |
10503 | # Do we need to explicitly link libc? | |
10504 | # | |
10505 | case "x$archive_cmds_need_lc" in | |
10506 | x|xyes) | |
10507 | # Assume -lc should be added | |
10508 | archive_cmds_need_lc=yes | |
10509 | ||
10510 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
10511 | case $archive_cmds in | |
10512 | *'~'*) | |
10513 | # FIXME: we may have to deal with multi-command sequences. | |
10514 | ;; | |
10515 | '$CC '*) | |
10516 | # Test whether the compiler implicitly links with -lc since on some | |
10517 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
10518 | # to ld, don't add -lc before -lgcc. | |
10519 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
10520 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
10521 | $rm conftest* | |
10522 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
10523 | ||
10524 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
10525 | (eval $ac_compile) 2>&5 | |
10526 | ac_status=$? | |
10527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10528 | (exit $ac_status); } 2>conftest.err; then | |
10529 | soname=conftest | |
10530 | lib=conftest | |
10531 | libobjs=conftest.$ac_objext | |
10532 | deplibs= | |
10533 | wl=$lt_prog_compiler_wl | |
10534 | pic_flag=$lt_prog_compiler_pic | |
10535 | compiler_flags=-v | |
10536 | linker_flags=-v | |
10537 | verstring= | |
10538 | output_objdir=. | |
10539 | libname=conftest | |
10540 | lt_save_allow_undefined_flag=$allow_undefined_flag | |
10541 | allow_undefined_flag= | |
10542 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
10543 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
10544 | ac_status=$? | |
10545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
10546 | (exit $ac_status); } | |
10547 | then | |
10548 | archive_cmds_need_lc=no | |
10549 | else | |
10550 | archive_cmds_need_lc=yes | |
10551 | fi | |
10552 | allow_undefined_flag=$lt_save_allow_undefined_flag | |
10553 | else | |
10554 | cat conftest.err 1>&5 | |
10555 | fi | |
10556 | $rm conftest* | |
10557 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 | |
10558 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } | |
10559 | ;; | |
10560 | esac | |
10561 | fi | |
10562 | ;; | |
10563 | esac | |
10564 | ||
10565 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
10566 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
10567 | library_names_spec= | |
10568 | libname_spec='lib$name' | |
10569 | soname_spec= | |
10570 | shrext_cmds=".so" | |
10571 | postinstall_cmds= | |
10572 | postuninstall_cmds= | |
10573 | finish_cmds= | |
10574 | finish_eval= | |
10575 | shlibpath_var= | |
10576 | shlibpath_overrides_runpath=unknown | |
10577 | version_type=none | |
10578 | dynamic_linker="$host_os ld.so" | |
10579 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
10580 | if test "$GCC" = yes; then | |
10581 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10582 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
10583 | # if the path contains ";" then we assume it to be the separator | |
10584 | # otherwise default to the standard path separator (i.e. ":") - it is | |
10585 | # assumed that no part of a normal pathname contains ";" but that should | |
10586 | # okay in the real world where ";" in dirpaths is itself problematic. | |
10587 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10588 | else | |
10589 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10590 | fi | |
10591 | else | |
10592 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
10593 | fi | |
10594 | need_lib_prefix=unknown | |
10595 | hardcode_into_libs=no | |
10596 | ||
10597 | # when you set need_version to no, make sure it does not cause -set_version | |
10598 | # flags to be left without arguments | |
10599 | need_version=unknown | |
10600 | ||
10601 | case $host_os in | |
10602 | aix3*) | |
10603 | version_type=linux | |
10604 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
10605 | shlibpath_var=LIBPATH | |
10606 | ||
10607 | # AIX 3 has no versioning support, so we append a major version to the name. | |
10608 | soname_spec='${libname}${release}${shared_ext}$major' | |
10609 | ;; | |
10610 | ||
10611 | aix4* | aix5*) | |
10612 | version_type=linux | |
10613 | need_lib_prefix=no | |
10614 | need_version=no | |
10615 | hardcode_into_libs=yes | |
10616 | if test "$host_cpu" = ia64; then | |
10617 | # AIX 5 supports IA64 | |
10618 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
10619 | shlibpath_var=LD_LIBRARY_PATH | |
10620 | else | |
10621 | # With GCC up to 2.95.x, collect2 would create an import file | |
10622 | # for dependence libraries. The import file would start with | |
10623 | # the line `#! .'. This would cause the generated library to | |
10624 | # depend on `.', always an invalid library. This was fixed in | |
10625 | # development snapshots of GCC prior to 3.0. | |
10626 | case $host_os in | |
10627 | aix4 | aix4.[01] | aix4.[01].*) | |
10628 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
10629 | echo ' yes ' | |
10630 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
10631 | : | |
10632 | else | |
10633 | can_build_shared=no | |
10634 | fi | |
10635 | ;; | |
10636 | esac | |
10637 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
10638 | # soname into executable. Probably we can add versioning support to | |
10639 | # collect2, so additional links can be useful in future. | |
10640 | if test "$aix_use_runtimelinking" = yes; then | |
10641 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
10642 | # instead of lib<name>.a to let people know that these are not | |
10643 | # typical AIX shared libraries. | |
10644 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10645 | else | |
10646 | # We preserve .a as extension for shared libraries through AIX4.2 | |
10647 | # and later when we are not doing run time linking. | |
10648 | library_names_spec='${libname}${release}.a $libname.a' | |
10649 | soname_spec='${libname}${release}${shared_ext}$major' | |
10650 | fi | |
10651 | shlibpath_var=LIBPATH | |
10652 | fi | |
10653 | ;; | |
10654 | ||
10655 | amigaos*) | |
10656 | library_names_spec='$libname.ixlibrary $libname.a' | |
10657 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
10658 | 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' | |
10659 | ;; | |
10660 | ||
10661 | beos*) | |
10662 | library_names_spec='${libname}${shared_ext}' | |
10663 | dynamic_linker="$host_os ld.so" | |
10664 | shlibpath_var=LIBRARY_PATH | |
10665 | ;; | |
10666 | ||
10667 | bsdi[45]*) | |
10668 | version_type=linux | |
10669 | need_version=no | |
10670 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10671 | soname_spec='${libname}${release}${shared_ext}$major' | |
10672 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
10673 | shlibpath_var=LD_LIBRARY_PATH | |
10674 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
10675 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
10676 | # the default ld.so.conf also contains /usr/contrib/lib and | |
10677 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
10678 | # libtool to hard-code these into programs | |
10679 | ;; | |
10680 | ||
10681 | cygwin* | mingw* | pw32*) | |
10682 | version_type=windows | |
10683 | shrext_cmds=".dll" | |
10684 | need_version=no | |
10685 | need_lib_prefix=no | |
10686 | ||
10687 | case $GCC,$host_os in | |
10688 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
10689 | library_names_spec='$libname.dll.a' | |
10690 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
10691 | postinstall_cmds='base_file=`basename \${file}`~ | |
10692 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
10693 | dldir=$destdir/`dirname \$dlpath`~ | |
10694 | test -d \$dldir || mkdir -p \$dldir~ | |
10695 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
10696 | chmod a+x \$dldir/$dlname' | |
10697 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
10698 | dlpath=$dir/\$dldll~ | |
10699 | $rm \$dlpath' | |
10700 | shlibpath_overrides_runpath=yes | |
10701 | ||
10702 | case $host_os in | |
10703 | cygwin*) | |
10704 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
10705 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10706 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
10707 | ;; | |
10708 | mingw*) | |
10709 | # MinGW DLLs use traditional 'lib' prefix | |
10710 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10711 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
10712 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
10713 | # It is most probably a Windows format PATH printed by | |
10714 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
10715 | # path with ; separators, and with drive letters. We can handle the | |
10716 | # drive letters (cygwin fileutils understands them), so leave them, | |
10717 | # especially as we might pass files found there to a mingw objdump, | |
10718 | # which wouldn't understand a cygwinified path. Ahh. | |
10719 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
10720 | else | |
10721 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
10722 | fi | |
10723 | ;; | |
10724 | pw32*) | |
10725 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
10726 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
10727 | ;; | |
10728 | esac | |
10729 | ;; | |
10730 | ||
10731 | *) | |
10732 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
10733 | ;; | |
10734 | esac | |
10735 | dynamic_linker='Win32 ld.exe' | |
10736 | # FIXME: first we should search . and the directory the executable is in | |
10737 | shlibpath_var=PATH | |
10738 | ;; | |
10739 | ||
10740 | darwin* | rhapsody*) | |
10741 | dynamic_linker="$host_os dyld" | |
10742 | version_type=darwin | |
10743 | need_lib_prefix=no | |
10744 | need_version=no | |
10745 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
10746 | soname_spec='${libname}${release}${major}$shared_ext' | |
10747 | shlibpath_overrides_runpath=yes | |
10748 | shlibpath_var=DYLD_LIBRARY_PATH | |
10749 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
10750 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
10751 | if test "$GCC" = yes; then | |
10752 | 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"` | |
10753 | else | |
10754 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
10755 | fi | |
10756 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
10757 | ;; | |
10758 | ||
10759 | dgux*) | |
10760 | version_type=linux | |
10761 | need_lib_prefix=no | |
10762 | need_version=no | |
10763 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
10764 | soname_spec='${libname}${release}${shared_ext}$major' | |
10765 | shlibpath_var=LD_LIBRARY_PATH | |
10766 | ;; | |
10767 | ||
10768 | freebsd1*) | |
10769 | dynamic_linker=no | |
10770 | ;; | |
10771 | ||
10772 | kfreebsd*-gnu) | |
10773 | version_type=linux | |
10774 | need_lib_prefix=no | |
10775 | need_version=no | |
10776 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10777 | soname_spec='${libname}${release}${shared_ext}$major' | |
10778 | shlibpath_var=LD_LIBRARY_PATH | |
10779 | shlibpath_overrides_runpath=no | |
10780 | hardcode_into_libs=yes | |
10781 | dynamic_linker='GNU ld.so' | |
10782 | ;; | |
10783 | ||
10784 | freebsd* | dragonfly*) | |
10785 | # DragonFly does not have aout. When/if they implement a new | |
10786 | # versioning mechanism, adjust this. | |
10787 | if test -x /usr/bin/objformat; then | |
10788 | objformat=`/usr/bin/objformat` | |
10789 | else | |
10790 | case $host_os in | |
10791 | freebsd[123]*) objformat=aout ;; | |
10792 | *) objformat=elf ;; | |
10793 | esac | |
10794 | fi | |
10795 | version_type=freebsd-$objformat | |
10796 | case $version_type in | |
10797 | freebsd-elf*) | |
10798 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10799 | need_version=no | |
10800 | need_lib_prefix=no | |
10801 | ;; | |
10802 | freebsd-*) | |
10803 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
10804 | need_version=yes | |
10805 | ;; | |
10806 | esac | |
10807 | shlibpath_var=LD_LIBRARY_PATH | |
10808 | case $host_os in | |
10809 | freebsd2*) | |
10810 | shlibpath_overrides_runpath=yes | |
10811 | ;; | |
10812 | freebsd3.[01]* | freebsdelf3.[01]*) | |
10813 | shlibpath_overrides_runpath=yes | |
10814 | hardcode_into_libs=yes | |
10815 | ;; | |
10816 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
10817 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
10818 | shlibpath_overrides_runpath=no | |
10819 | hardcode_into_libs=yes | |
10820 | ;; | |
10821 | freebsd*) # from 4.6 on | |
10822 | shlibpath_overrides_runpath=yes | |
10823 | hardcode_into_libs=yes | |
10824 | ;; | |
10825 | esac | |
10826 | ;; | |
10827 | ||
10828 | gnu*) | |
10829 | version_type=linux | |
10830 | need_lib_prefix=no | |
10831 | need_version=no | |
10832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
10833 | soname_spec='${libname}${release}${shared_ext}$major' | |
10834 | shlibpath_var=LD_LIBRARY_PATH | |
10835 | hardcode_into_libs=yes | |
10836 | ;; | |
10837 | ||
10838 | hpux9* | hpux10* | hpux11*) | |
10839 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
10840 | # link against other versions. | |
10841 | version_type=sunos | |
10842 | need_lib_prefix=no | |
10843 | need_version=no | |
10844 | case $host_cpu in | |
10845 | ia64*) | |
10846 | shrext_cmds='.so' | |
10847 | hardcode_into_libs=yes | |
10848 | dynamic_linker="$host_os dld.so" | |
10849 | shlibpath_var=LD_LIBRARY_PATH | |
10850 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10851 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10852 | soname_spec='${libname}${release}${shared_ext}$major' | |
10853 | if test "X$HPUX_IA64_MODE" = X32; then | |
10854 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
10855 | else | |
10856 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
10857 | fi | |
10858 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10859 | ;; | |
10860 | hppa*64*) | |
10861 | shrext_cmds='.sl' | |
10862 | hardcode_into_libs=yes | |
10863 | dynamic_linker="$host_os dld.sl" | |
10864 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
10865 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
10866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10867 | soname_spec='${libname}${release}${shared_ext}$major' | |
10868 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
10869 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
10870 | ;; | |
10871 | *) | |
10872 | shrext_cmds='.sl' | |
10873 | dynamic_linker="$host_os dld.sl" | |
10874 | shlibpath_var=SHLIB_PATH | |
10875 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
10876 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10877 | soname_spec='${libname}${release}${shared_ext}$major' | |
10878 | ;; | |
10879 | esac | |
10880 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
10881 | postinstall_cmds='chmod 555 $lib' | |
10882 | ;; | |
10883 | ||
10884 | interix3*) | |
10885 | version_type=linux | |
10886 | need_lib_prefix=no | |
10887 | need_version=no | |
10888 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10889 | soname_spec='${libname}${release}${shared_ext}$major' | |
10890 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
10891 | shlibpath_var=LD_LIBRARY_PATH | |
10892 | shlibpath_overrides_runpath=no | |
10893 | hardcode_into_libs=yes | |
10894 | ;; | |
10895 | ||
10896 | irix5* | irix6* | nonstopux*) | |
10897 | case $host_os in | |
10898 | nonstopux*) version_type=nonstopux ;; | |
10899 | *) | |
10900 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
10901 | version_type=linux | |
10902 | else | |
10903 | version_type=irix | |
10904 | fi ;; | |
10905 | esac | |
10906 | need_lib_prefix=no | |
10907 | need_version=no | |
10908 | soname_spec='${libname}${release}${shared_ext}$major' | |
10909 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
10910 | case $host_os in | |
10911 | irix5* | nonstopux*) | |
10912 | libsuff= shlibsuff= | |
10913 | ;; | |
10914 | *) | |
10915 | case $LD in # libtool.m4 will add one of these switches to LD | |
10916 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
10917 | libsuff= shlibsuff= libmagic=32-bit;; | |
10918 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
10919 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
10920 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
10921 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
10922 | *) libsuff= shlibsuff= libmagic=never-match;; | |
10923 | esac | |
10924 | ;; | |
10925 | esac | |
10926 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
10927 | shlibpath_overrides_runpath=no | |
10928 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
10929 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
10930 | hardcode_into_libs=yes | |
10931 | ;; | |
10932 | ||
10933 | # No shared lib support for Linux oldld, aout, or coff. | |
10934 | linux*oldld* | linux*aout* | linux*coff*) | |
10935 | dynamic_linker=no | |
10936 | ;; | |
10937 | ||
10938 | # This must be Linux ELF. | |
10939 | linux*) | |
10940 | version_type=linux | |
10941 | need_lib_prefix=no | |
10942 | need_version=no | |
10943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
10944 | soname_spec='${libname}${release}${shared_ext}$major' | |
10945 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
10946 | shlibpath_var=LD_LIBRARY_PATH | |
10947 | shlibpath_overrides_runpath=no | |
10948 | # This implies no fast_install, which is unacceptable. | |
10949 | # Some rework will be needed to allow for fast_install | |
10950 | # before this can be enabled. | |
10951 | hardcode_into_libs=yes | |
10952 | ||
10953 | # Append ld.so.conf contents to the search path | |
10954 | if test -f /etc/ld.so.conf; then | |
10955 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
10956 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
10957 | fi | |
10958 | ||
10959 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
10960 | # powerpc, because MkLinux only supported shared libraries with the | |
10961 | # GNU dynamic linker. Since this was broken with cross compilers, | |
10962 | # most powerpc-linux boxes support dynamic linking these days and | |
10963 | # people can always --disable-shared, the test was removed, and we | |
10964 | # assume the GNU/Linux dynamic linker is in use. | |
10965 | dynamic_linker='GNU/Linux ld.so' | |
10966 | ;; | |
10967 | ||
10968 | knetbsd*-gnu) | |
10969 | version_type=linux | |
10970 | need_lib_prefix=no | |
10971 | need_version=no | |
10972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10973 | soname_spec='${libname}${release}${shared_ext}$major' | |
10974 | shlibpath_var=LD_LIBRARY_PATH | |
10975 | shlibpath_overrides_runpath=no | |
10976 | hardcode_into_libs=yes | |
10977 | dynamic_linker='GNU ld.so' | |
10978 | ;; | |
10979 | ||
10980 | netbsd*) | |
10981 | version_type=sunos | |
10982 | need_lib_prefix=no | |
10983 | need_version=no | |
10984 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
10985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
10986 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
10987 | dynamic_linker='NetBSD (a.out) ld.so' | |
10988 | else | |
10989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
10990 | soname_spec='${libname}${release}${shared_ext}$major' | |
10991 | dynamic_linker='NetBSD ld.elf_so' | |
10992 | fi | |
10993 | shlibpath_var=LD_LIBRARY_PATH | |
10994 | shlibpath_overrides_runpath=yes | |
10995 | hardcode_into_libs=yes | |
10996 | ;; | |
10997 | ||
10998 | newsos6) | |
10999 | version_type=linux | |
11000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11001 | shlibpath_var=LD_LIBRARY_PATH | |
11002 | shlibpath_overrides_runpath=yes | |
11003 | ;; | |
11004 | ||
11005 | nto-qnx*) | |
11006 | version_type=linux | |
11007 | need_lib_prefix=no | |
11008 | need_version=no | |
11009 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11010 | soname_spec='${libname}${release}${shared_ext}$major' | |
11011 | shlibpath_var=LD_LIBRARY_PATH | |
11012 | shlibpath_overrides_runpath=yes | |
11013 | ;; | |
11014 | ||
11015 | openbsd*) | |
11016 | version_type=sunos | |
11017 | sys_lib_dlsearch_path_spec="/usr/lib" | |
11018 | need_lib_prefix=no | |
11019 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
11020 | case $host_os in | |
11021 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
11022 | *) need_version=no ;; | |
11023 | esac | |
11024 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11025 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
11026 | shlibpath_var=LD_LIBRARY_PATH | |
11027 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
11028 | case $host_os in | |
11029 | openbsd2.[89] | openbsd2.[89].*) | |
11030 | shlibpath_overrides_runpath=no | |
11031 | ;; | |
11032 | *) | |
11033 | shlibpath_overrides_runpath=yes | |
11034 | ;; | |
11035 | esac | |
11036 | else | |
11037 | shlibpath_overrides_runpath=yes | |
11038 | fi | |
11039 | ;; | |
11040 | ||
11041 | os2*) | |
11042 | libname_spec='$name' | |
11043 | shrext_cmds=".dll" | |
11044 | need_lib_prefix=no | |
11045 | library_names_spec='$libname${shared_ext} $libname.a' | |
11046 | dynamic_linker='OS/2 ld.exe' | |
11047 | shlibpath_var=LIBPATH | |
11048 | ;; | |
11049 | ||
11050 | osf3* | osf4* | osf5*) | |
11051 | version_type=osf | |
11052 | need_lib_prefix=no | |
11053 | need_version=no | |
11054 | soname_spec='${libname}${release}${shared_ext}$major' | |
11055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11056 | shlibpath_var=LD_LIBRARY_PATH | |
11057 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
11058 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
11059 | ;; | |
11060 | ||
11061 | solaris*) | |
11062 | version_type=linux | |
11063 | need_lib_prefix=no | |
11064 | need_version=no | |
11065 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11066 | soname_spec='${libname}${release}${shared_ext}$major' | |
11067 | shlibpath_var=LD_LIBRARY_PATH | |
11068 | shlibpath_overrides_runpath=yes | |
11069 | hardcode_into_libs=yes | |
11070 | # ldd complains unless libraries are executable | |
11071 | postinstall_cmds='chmod +x $lib' | |
11072 | ;; | |
11073 | ||
11074 | sunos4*) | |
11075 | version_type=sunos | |
11076 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
11077 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
11078 | shlibpath_var=LD_LIBRARY_PATH | |
11079 | shlibpath_overrides_runpath=yes | |
11080 | if test "$with_gnu_ld" = yes; then | |
11081 | need_lib_prefix=no | |
11082 | fi | |
11083 | need_version=yes | |
11084 | ;; | |
11085 | ||
11086 | sysv4 | sysv4.3*) | |
11087 | version_type=linux | |
11088 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11089 | soname_spec='${libname}${release}${shared_ext}$major' | |
11090 | shlibpath_var=LD_LIBRARY_PATH | |
11091 | case $host_vendor in | |
11092 | sni) | |
11093 | shlibpath_overrides_runpath=no | |
11094 | need_lib_prefix=no | |
11095 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
11096 | runpath_var=LD_RUN_PATH | |
11097 | ;; | |
11098 | siemens) | |
11099 | need_lib_prefix=no | |
11100 | ;; | |
11101 | motorola) | |
11102 | need_lib_prefix=no | |
11103 | need_version=no | |
11104 | shlibpath_overrides_runpath=no | |
11105 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
11106 | ;; | |
11107 | esac | |
11108 | ;; | |
11109 | ||
11110 | sysv4*MP*) | |
11111 | if test -d /usr/nec ;then | |
11112 | version_type=linux | |
11113 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
11114 | soname_spec='$libname${shared_ext}.$major' | |
11115 | shlibpath_var=LD_LIBRARY_PATH | |
11116 | fi | |
11117 | ;; | |
11118 | ||
11119 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
11120 | version_type=freebsd-elf | |
11121 | need_lib_prefix=no | |
11122 | need_version=no | |
11123 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
11124 | soname_spec='${libname}${release}${shared_ext}$major' | |
11125 | shlibpath_var=LD_LIBRARY_PATH | |
11126 | hardcode_into_libs=yes | |
11127 | if test "$with_gnu_ld" = yes; then | |
11128 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
11129 | shlibpath_overrides_runpath=no | |
11130 | else | |
11131 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
11132 | shlibpath_overrides_runpath=yes | |
11133 | case $host_os in | |
11134 | sco3.2v5*) | |
11135 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
11136 | ;; | |
11137 | esac | |
11138 | fi | |
11139 | sys_lib_dlsearch_path_spec='/usr/lib' | |
11140 | ;; | |
11141 | ||
11142 | uts4*) | |
11143 | version_type=linux | |
11144 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
11145 | soname_spec='${libname}${release}${shared_ext}$major' | |
11146 | shlibpath_var=LD_LIBRARY_PATH | |
11147 | ;; | |
11148 | ||
11149 | *) | |
11150 | dynamic_linker=no | |
11151 | ;; | |
11152 | esac | |
11153 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
11154 | echo "${ECHO_T}$dynamic_linker" >&6; } | |
11155 | test "$dynamic_linker" = no && can_build_shared=no | |
11156 | ||
11157 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
11158 | if test "$GCC" = yes; then | |
11159 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
11160 | fi | |
11161 | ||
11162 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
11163 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
11164 | hardcode_action= | |
11165 | if test -n "$hardcode_libdir_flag_spec" || \ | |
11166 | test -n "$runpath_var" || \ | |
11167 | test "X$hardcode_automatic" = "Xyes" ; then | |
11168 | ||
11169 | # We can hardcode non-existant directories. | |
11170 | if test "$hardcode_direct" != no && | |
11171 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
11172 | # have to relink, otherwise we might link with an installed library | |
11173 | # when we should be linking with a yet-to-be-installed one | |
11174 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && | |
11175 | test "$hardcode_minus_L" != no; then | |
11176 | # Linking always hardcodes the temporary library directory. | |
11177 | hardcode_action=relink | |
11178 | else | |
11179 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
11180 | hardcode_action=immediate | |
11181 | fi | |
11182 | else | |
11183 | # We cannot hardcode anything, or else we can only hardcode existing | |
11184 | # directories. | |
11185 | hardcode_action=unsupported | |
11186 | fi | |
11187 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 | |
11188 | echo "${ECHO_T}$hardcode_action" >&6; } | |
11189 | ||
11190 | if test "$hardcode_action" = relink; then | |
11191 | # Fast installation is not supported | |
11192 | enable_fast_install=no | |
11193 | elif test "$shlibpath_overrides_runpath" = yes || | |
11194 | test "$enable_shared" = no; then | |
11195 | # Fast installation is not necessary | |
11196 | enable_fast_install=needless | |
11197 | fi | |
11198 | ||
11199 | striplib= | |
11200 | old_striplib= | |
11201 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 | |
11202 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } | |
11203 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then | |
11204 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" | |
11205 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" | |
11206 | { echo "$as_me:$LINENO: result: yes" >&5 | |
11207 | echo "${ECHO_T}yes" >&6; } | |
11208 | else | |
11209 | # FIXME - insert some real tests, host_os isn't really good enough | |
11210 | case $host_os in | |
11211 | darwin*) | |
11212 | if test -n "$STRIP" ; then | |
11213 | striplib="$STRIP -x" | |
11214 | { echo "$as_me:$LINENO: result: yes" >&5 | |
11215 | echo "${ECHO_T}yes" >&6; } | |
11216 | else | |
11217 | { echo "$as_me:$LINENO: result: no" >&5 | |
11218 | echo "${ECHO_T}no" >&6; } | |
11219 | fi | |
11220 | ;; | |
11221 | *) | |
11222 | { echo "$as_me:$LINENO: result: no" >&5 | |
11223 | echo "${ECHO_T}no" >&6; } | |
11224 | ;; | |
11225 | esac | |
11226 | fi | |
11227 | ||
11228 | if test "x$enable_dlopen" != xyes; then | |
11229 | enable_dlopen=unknown | |
11230 | enable_dlopen_self=unknown | |
11231 | enable_dlopen_self_static=unknown | |
11232 | else | |
11233 | lt_cv_dlopen=no | |
11234 | lt_cv_dlopen_libs= | |
11235 | ||
11236 | case $host_os in | |
11237 | beos*) | |
11238 | lt_cv_dlopen="load_add_on" | |
11239 | lt_cv_dlopen_libs= | |
11240 | lt_cv_dlopen_self=yes | |
11241 | ;; | |
11242 | ||
11243 | mingw* | pw32*) | |
11244 | lt_cv_dlopen="LoadLibrary" | |
11245 | lt_cv_dlopen_libs= | |
11246 | ;; | |
11247 | ||
11248 | cygwin*) | |
11249 | lt_cv_dlopen="dlopen" | |
11250 | lt_cv_dlopen_libs= | |
11251 | ;; | |
11252 | ||
11253 | darwin*) | |
11254 | # if libdl is installed we need to link against it | |
11255 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
11256 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
11257 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
11258 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11259 | else | |
11260 | ac_check_lib_save_LIBS=$LIBS | |
11261 | LIBS="-ldl $LIBS" | |
11262 | cat >conftest.$ac_ext <<_ACEOF | |
11263 | /* confdefs.h. */ | |
11264 | _ACEOF | |
11265 | cat confdefs.h >>conftest.$ac_ext | |
11266 | cat >>conftest.$ac_ext <<_ACEOF | |
11267 | /* end confdefs.h. */ | |
11268 | ||
11269 | /* Override any GCC internal prototype to avoid an error. | |
11270 | Use char because int might match the return type of a GCC | |
11271 | builtin and then its argument prototype would still apply. */ | |
11272 | #ifdef __cplusplus | |
11273 | extern "C" | |
11274 | #endif | |
11275 | char dlopen (); | |
11276 | int | |
11277 | main () | |
11278 | { | |
11279 | return dlopen (); | |
11280 | ; | |
11281 | return 0; | |
11282 | } | |
11283 | _ACEOF | |
11284 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11285 | if { (ac_try="$ac_link" | |
11286 | case "(($ac_try" in | |
11287 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11288 | *) ac_try_echo=$ac_try;; | |
11289 | esac | |
11290 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11291 | (eval "$ac_link") 2>conftest.er1 | |
11292 | ac_status=$? | |
11293 | grep -v '^ *+' conftest.er1 >conftest.err | |
11294 | rm -f conftest.er1 | |
11295 | cat conftest.err >&5 | |
11296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11297 | (exit $ac_status); } && { | |
11298 | test -z "$ac_c_werror_flag" || | |
11299 | test ! -s conftest.err | |
11300 | } && test -s conftest$ac_exeext && | |
11301 | $as_test_x conftest$ac_exeext; then | |
11302 | ac_cv_lib_dl_dlopen=yes | |
11303 | else | |
11304 | echo "$as_me: failed program was:" >&5 | |
11305 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11306 | ||
11307 | ac_cv_lib_dl_dlopen=no | |
11308 | fi | |
11309 | ||
11310 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11311 | conftest$ac_exeext conftest.$ac_ext | |
11312 | LIBS=$ac_check_lib_save_LIBS | |
11313 | fi | |
11314 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
11315 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
11316 | if test $ac_cv_lib_dl_dlopen = yes; then | |
11317 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11318 | else | |
11319 | ||
11320 | lt_cv_dlopen="dyld" | |
11321 | lt_cv_dlopen_libs= | |
11322 | lt_cv_dlopen_self=yes | |
11323 | ||
11324 | fi | |
11325 | ||
11326 | ;; | |
11327 | ||
11328 | *) | |
11329 | { echo "$as_me:$LINENO: checking for shl_load" >&5 | |
11330 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } | |
11331 | if test "${ac_cv_func_shl_load+set}" = set; then | |
11332 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11333 | else | |
11334 | cat >conftest.$ac_ext <<_ACEOF | |
11335 | /* confdefs.h. */ | |
11336 | _ACEOF | |
11337 | cat confdefs.h >>conftest.$ac_ext | |
11338 | cat >>conftest.$ac_ext <<_ACEOF | |
11339 | /* end confdefs.h. */ | |
11340 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. | |
11341 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11342 | #define shl_load innocuous_shl_load | |
11343 | ||
11344 | /* System header to define __stub macros and hopefully few prototypes, | |
11345 | which can conflict with char shl_load (); below. | |
11346 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11347 | <limits.h> exists even on freestanding compilers. */ | |
11348 | ||
11349 | #ifdef __STDC__ | |
11350 | # include <limits.h> | |
11351 | #else | |
11352 | # include <assert.h> | |
11353 | #endif | |
11354 | ||
11355 | #undef shl_load | |
11356 | ||
11357 | /* Override any GCC internal prototype to avoid an error. | |
11358 | Use char because int might match the return type of a GCC | |
11359 | builtin and then its argument prototype would still apply. */ | |
11360 | #ifdef __cplusplus | |
11361 | extern "C" | |
11362 | #endif | |
11363 | char shl_load (); | |
11364 | /* The GNU C library defines this for functions which it implements | |
11365 | to always fail with ENOSYS. Some functions are actually named | |
11366 | something starting with __ and the normal name is an alias. */ | |
11367 | #if defined __stub_shl_load || defined __stub___shl_load | |
11368 | choke me | |
11369 | #endif | |
11370 | ||
11371 | int | |
11372 | main () | |
11373 | { | |
11374 | return shl_load (); | |
11375 | ; | |
11376 | return 0; | |
11377 | } | |
11378 | _ACEOF | |
11379 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11380 | if { (ac_try="$ac_link" | |
11381 | case "(($ac_try" in | |
11382 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11383 | *) ac_try_echo=$ac_try;; | |
11384 | esac | |
11385 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11386 | (eval "$ac_link") 2>conftest.er1 | |
11387 | ac_status=$? | |
11388 | grep -v '^ *+' conftest.er1 >conftest.err | |
11389 | rm -f conftest.er1 | |
11390 | cat conftest.err >&5 | |
11391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11392 | (exit $ac_status); } && { | |
11393 | test -z "$ac_c_werror_flag" || | |
11394 | test ! -s conftest.err | |
11395 | } && test -s conftest$ac_exeext && | |
11396 | $as_test_x conftest$ac_exeext; then | |
11397 | ac_cv_func_shl_load=yes | |
11398 | else | |
11399 | echo "$as_me: failed program was:" >&5 | |
11400 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11401 | ||
11402 | ac_cv_func_shl_load=no | |
11403 | fi | |
11404 | ||
11405 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11406 | conftest$ac_exeext conftest.$ac_ext | |
11407 | fi | |
11408 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 | |
11409 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } | |
11410 | if test $ac_cv_func_shl_load = yes; then | |
11411 | lt_cv_dlopen="shl_load" | |
11412 | else | |
11413 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 | |
11414 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } | |
11415 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then | |
11416 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11417 | else | |
11418 | ac_check_lib_save_LIBS=$LIBS | |
11419 | LIBS="-ldld $LIBS" | |
11420 | cat >conftest.$ac_ext <<_ACEOF | |
11421 | /* confdefs.h. */ | |
11422 | _ACEOF | |
11423 | cat confdefs.h >>conftest.$ac_ext | |
11424 | cat >>conftest.$ac_ext <<_ACEOF | |
11425 | /* end confdefs.h. */ | |
11426 | ||
11427 | /* Override any GCC internal prototype to avoid an error. | |
11428 | Use char because int might match the return type of a GCC | |
11429 | builtin and then its argument prototype would still apply. */ | |
11430 | #ifdef __cplusplus | |
11431 | extern "C" | |
11432 | #endif | |
11433 | char shl_load (); | |
11434 | int | |
11435 | main () | |
11436 | { | |
11437 | return shl_load (); | |
11438 | ; | |
11439 | return 0; | |
11440 | } | |
11441 | _ACEOF | |
11442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11443 | if { (ac_try="$ac_link" | |
11444 | case "(($ac_try" in | |
11445 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11446 | *) ac_try_echo=$ac_try;; | |
11447 | esac | |
11448 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11449 | (eval "$ac_link") 2>conftest.er1 | |
11450 | ac_status=$? | |
11451 | grep -v '^ *+' conftest.er1 >conftest.err | |
11452 | rm -f conftest.er1 | |
11453 | cat conftest.err >&5 | |
11454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11455 | (exit $ac_status); } && { | |
11456 | test -z "$ac_c_werror_flag" || | |
11457 | test ! -s conftest.err | |
11458 | } && test -s conftest$ac_exeext && | |
11459 | $as_test_x conftest$ac_exeext; then | |
11460 | ac_cv_lib_dld_shl_load=yes | |
11461 | else | |
11462 | echo "$as_me: failed program was:" >&5 | |
11463 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11464 | ||
11465 | ac_cv_lib_dld_shl_load=no | |
11466 | fi | |
11467 | ||
11468 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11469 | conftest$ac_exeext conftest.$ac_ext | |
11470 | LIBS=$ac_check_lib_save_LIBS | |
11471 | fi | |
11472 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 | |
11473 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } | |
11474 | if test $ac_cv_lib_dld_shl_load = yes; then | |
11475 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" | |
11476 | else | |
11477 | { echo "$as_me:$LINENO: checking for dlopen" >&5 | |
11478 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } | |
11479 | if test "${ac_cv_func_dlopen+set}" = set; then | |
11480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11481 | else | |
11482 | cat >conftest.$ac_ext <<_ACEOF | |
11483 | /* confdefs.h. */ | |
11484 | _ACEOF | |
11485 | cat confdefs.h >>conftest.$ac_ext | |
11486 | cat >>conftest.$ac_ext <<_ACEOF | |
11487 | /* end confdefs.h. */ | |
11488 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. | |
11489 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
11490 | #define dlopen innocuous_dlopen | |
11491 | ||
11492 | /* System header to define __stub macros and hopefully few prototypes, | |
11493 | which can conflict with char dlopen (); below. | |
11494 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
11495 | <limits.h> exists even on freestanding compilers. */ | |
11496 | ||
11497 | #ifdef __STDC__ | |
11498 | # include <limits.h> | |
11499 | #else | |
11500 | # include <assert.h> | |
11501 | #endif | |
11502 | ||
11503 | #undef dlopen | |
11504 | ||
11505 | /* Override any GCC internal prototype to avoid an error. | |
11506 | Use char because int might match the return type of a GCC | |
11507 | builtin and then its argument prototype would still apply. */ | |
11508 | #ifdef __cplusplus | |
11509 | extern "C" | |
11510 | #endif | |
11511 | char dlopen (); | |
11512 | /* The GNU C library defines this for functions which it implements | |
11513 | to always fail with ENOSYS. Some functions are actually named | |
11514 | something starting with __ and the normal name is an alias. */ | |
11515 | #if defined __stub_dlopen || defined __stub___dlopen | |
11516 | choke me | |
11517 | #endif | |
11518 | ||
11519 | int | |
11520 | main () | |
11521 | { | |
11522 | return dlopen (); | |
11523 | ; | |
11524 | return 0; | |
11525 | } | |
11526 | _ACEOF | |
11527 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11528 | if { (ac_try="$ac_link" | |
11529 | case "(($ac_try" in | |
11530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11531 | *) ac_try_echo=$ac_try;; | |
11532 | esac | |
11533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11534 | (eval "$ac_link") 2>conftest.er1 | |
11535 | ac_status=$? | |
11536 | grep -v '^ *+' conftest.er1 >conftest.err | |
11537 | rm -f conftest.er1 | |
11538 | cat conftest.err >&5 | |
11539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11540 | (exit $ac_status); } && { | |
11541 | test -z "$ac_c_werror_flag" || | |
11542 | test ! -s conftest.err | |
11543 | } && test -s conftest$ac_exeext && | |
11544 | $as_test_x conftest$ac_exeext; then | |
11545 | ac_cv_func_dlopen=yes | |
11546 | else | |
11547 | echo "$as_me: failed program was:" >&5 | |
11548 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11549 | ||
11550 | ac_cv_func_dlopen=no | |
11551 | fi | |
11552 | ||
11553 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11554 | conftest$ac_exeext conftest.$ac_ext | |
11555 | fi | |
11556 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 | |
11557 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } | |
11558 | if test $ac_cv_func_dlopen = yes; then | |
11559 | lt_cv_dlopen="dlopen" | |
11560 | else | |
11561 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 | |
11562 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } | |
11563 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then | |
11564 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11565 | else | |
11566 | ac_check_lib_save_LIBS=$LIBS | |
11567 | LIBS="-ldl $LIBS" | |
11568 | cat >conftest.$ac_ext <<_ACEOF | |
11569 | /* confdefs.h. */ | |
11570 | _ACEOF | |
11571 | cat confdefs.h >>conftest.$ac_ext | |
11572 | cat >>conftest.$ac_ext <<_ACEOF | |
11573 | /* end confdefs.h. */ | |
11574 | ||
11575 | /* Override any GCC internal prototype to avoid an error. | |
11576 | Use char because int might match the return type of a GCC | |
11577 | builtin and then its argument prototype would still apply. */ | |
11578 | #ifdef __cplusplus | |
11579 | extern "C" | |
11580 | #endif | |
11581 | char dlopen (); | |
11582 | int | |
11583 | main () | |
11584 | { | |
11585 | return dlopen (); | |
11586 | ; | |
11587 | return 0; | |
11588 | } | |
11589 | _ACEOF | |
11590 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11591 | if { (ac_try="$ac_link" | |
11592 | case "(($ac_try" in | |
11593 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11594 | *) ac_try_echo=$ac_try;; | |
11595 | esac | |
11596 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11597 | (eval "$ac_link") 2>conftest.er1 | |
11598 | ac_status=$? | |
11599 | grep -v '^ *+' conftest.er1 >conftest.err | |
11600 | rm -f conftest.er1 | |
11601 | cat conftest.err >&5 | |
11602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11603 | (exit $ac_status); } && { | |
11604 | test -z "$ac_c_werror_flag" || | |
11605 | test ! -s conftest.err | |
11606 | } && test -s conftest$ac_exeext && | |
11607 | $as_test_x conftest$ac_exeext; then | |
11608 | ac_cv_lib_dl_dlopen=yes | |
11609 | else | |
11610 | echo "$as_me: failed program was:" >&5 | |
11611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11612 | ||
11613 | ac_cv_lib_dl_dlopen=no | |
11614 | fi | |
11615 | ||
11616 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11617 | conftest$ac_exeext conftest.$ac_ext | |
11618 | LIBS=$ac_check_lib_save_LIBS | |
11619 | fi | |
11620 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 | |
11621 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } | |
11622 | if test $ac_cv_lib_dl_dlopen = yes; then | |
11623 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" | |
11624 | else | |
11625 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 | |
11626 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } | |
11627 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then | |
11628 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11629 | else | |
11630 | ac_check_lib_save_LIBS=$LIBS | |
11631 | LIBS="-lsvld $LIBS" | |
11632 | cat >conftest.$ac_ext <<_ACEOF | |
11633 | /* confdefs.h. */ | |
11634 | _ACEOF | |
11635 | cat confdefs.h >>conftest.$ac_ext | |
11636 | cat >>conftest.$ac_ext <<_ACEOF | |
11637 | /* end confdefs.h. */ | |
11638 | ||
11639 | /* Override any GCC internal prototype to avoid an error. | |
11640 | Use char because int might match the return type of a GCC | |
11641 | builtin and then its argument prototype would still apply. */ | |
11642 | #ifdef __cplusplus | |
11643 | extern "C" | |
11644 | #endif | |
11645 | char dlopen (); | |
11646 | int | |
11647 | main () | |
11648 | { | |
11649 | return dlopen (); | |
11650 | ; | |
11651 | return 0; | |
11652 | } | |
11653 | _ACEOF | |
11654 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11655 | if { (ac_try="$ac_link" | |
11656 | case "(($ac_try" in | |
11657 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11658 | *) ac_try_echo=$ac_try;; | |
11659 | esac | |
11660 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11661 | (eval "$ac_link") 2>conftest.er1 | |
11662 | ac_status=$? | |
11663 | grep -v '^ *+' conftest.er1 >conftest.err | |
11664 | rm -f conftest.er1 | |
11665 | cat conftest.err >&5 | |
11666 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11667 | (exit $ac_status); } && { | |
11668 | test -z "$ac_c_werror_flag" || | |
11669 | test ! -s conftest.err | |
11670 | } && test -s conftest$ac_exeext && | |
11671 | $as_test_x conftest$ac_exeext; then | |
11672 | ac_cv_lib_svld_dlopen=yes | |
11673 | else | |
11674 | echo "$as_me: failed program was:" >&5 | |
11675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11676 | ||
11677 | ac_cv_lib_svld_dlopen=no | |
11678 | fi | |
11679 | ||
11680 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11681 | conftest$ac_exeext conftest.$ac_ext | |
11682 | LIBS=$ac_check_lib_save_LIBS | |
11683 | fi | |
11684 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 | |
11685 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } | |
11686 | if test $ac_cv_lib_svld_dlopen = yes; then | |
11687 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" | |
11688 | else | |
11689 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 | |
11690 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } | |
11691 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then | |
11692 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11693 | else | |
11694 | ac_check_lib_save_LIBS=$LIBS | |
11695 | LIBS="-ldld $LIBS" | |
11696 | cat >conftest.$ac_ext <<_ACEOF | |
11697 | /* confdefs.h. */ | |
11698 | _ACEOF | |
11699 | cat confdefs.h >>conftest.$ac_ext | |
11700 | cat >>conftest.$ac_ext <<_ACEOF | |
11701 | /* end confdefs.h. */ | |
11702 | ||
11703 | /* Override any GCC internal prototype to avoid an error. | |
11704 | Use char because int might match the return type of a GCC | |
11705 | builtin and then its argument prototype would still apply. */ | |
11706 | #ifdef __cplusplus | |
11707 | extern "C" | |
11708 | #endif | |
11709 | char dld_link (); | |
11710 | int | |
11711 | main () | |
11712 | { | |
11713 | return dld_link (); | |
11714 | ; | |
11715 | return 0; | |
11716 | } | |
11717 | _ACEOF | |
11718 | rm -f conftest.$ac_objext conftest$ac_exeext | |
11719 | if { (ac_try="$ac_link" | |
11720 | case "(($ac_try" in | |
11721 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
11722 | *) ac_try_echo=$ac_try;; | |
11723 | esac | |
11724 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
11725 | (eval "$ac_link") 2>conftest.er1 | |
11726 | ac_status=$? | |
11727 | grep -v '^ *+' conftest.er1 >conftest.err | |
11728 | rm -f conftest.er1 | |
11729 | cat conftest.err >&5 | |
11730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11731 | (exit $ac_status); } && { | |
11732 | test -z "$ac_c_werror_flag" || | |
11733 | test ! -s conftest.err | |
11734 | } && test -s conftest$ac_exeext && | |
11735 | $as_test_x conftest$ac_exeext; then | |
11736 | ac_cv_lib_dld_dld_link=yes | |
11737 | else | |
11738 | echo "$as_me: failed program was:" >&5 | |
11739 | sed 's/^/| /' conftest.$ac_ext >&5 | |
11740 | ||
11741 | ac_cv_lib_dld_dld_link=no | |
11742 | fi | |
11743 | ||
11744 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
11745 | conftest$ac_exeext conftest.$ac_ext | |
11746 | LIBS=$ac_check_lib_save_LIBS | |
11747 | fi | |
11748 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 | |
11749 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } | |
11750 | if test $ac_cv_lib_dld_dld_link = yes; then | |
11751 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" | |
11752 | fi | |
11753 | ||
11754 | ||
11755 | fi | |
11756 | ||
11757 | ||
11758 | fi | |
11759 | ||
11760 | ||
11761 | fi | |
11762 | ||
11763 | ||
11764 | fi | |
11765 | ||
11766 | ||
11767 | fi | |
11768 | ||
11769 | ;; | |
11770 | esac | |
11771 | ||
11772 | if test "x$lt_cv_dlopen" != xno; then | |
11773 | enable_dlopen=yes | |
11774 | else | |
11775 | enable_dlopen=no | |
11776 | fi | |
11777 | ||
11778 | case $lt_cv_dlopen in | |
11779 | dlopen) | |
11780 | save_CPPFLAGS="$CPPFLAGS" | |
11781 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" | |
11782 | ||
11783 | save_LDFLAGS="$LDFLAGS" | |
11784 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" | |
11785 | ||
11786 | save_LIBS="$LIBS" | |
11787 | LIBS="$lt_cv_dlopen_libs $LIBS" | |
11788 | ||
11789 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 | |
11790 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } | |
11791 | if test "${lt_cv_dlopen_self+set}" = set; then | |
11792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11793 | else | |
11794 | if test "$cross_compiling" = yes; then : | |
11795 | lt_cv_dlopen_self=cross | |
11796 | else | |
11797 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11798 | lt_status=$lt_dlunknown | |
11799 | cat > conftest.$ac_ext <<EOF | |
11800 | #line 11800 "configure" | |
11801 | #include "confdefs.h" | |
11802 | ||
11803 | #if HAVE_DLFCN_H | |
11804 | #include <dlfcn.h> | |
11805 | #endif | |
11806 | ||
11807 | #include <stdio.h> | |
11808 | ||
11809 | #ifdef RTLD_GLOBAL | |
11810 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11811 | #else | |
11812 | # ifdef DL_GLOBAL | |
11813 | # define LT_DLGLOBAL DL_GLOBAL | |
11814 | # else | |
11815 | # define LT_DLGLOBAL 0 | |
11816 | # endif | |
11817 | #endif | |
11818 | ||
11819 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11820 | find out it does not work in some platform. */ | |
11821 | #ifndef LT_DLLAZY_OR_NOW | |
11822 | # ifdef RTLD_LAZY | |
11823 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11824 | # else | |
11825 | # ifdef DL_LAZY | |
11826 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11827 | # else | |
11828 | # ifdef RTLD_NOW | |
11829 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11830 | # else | |
11831 | # ifdef DL_NOW | |
11832 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11833 | # else | |
11834 | # define LT_DLLAZY_OR_NOW 0 | |
11835 | # endif | |
11836 | # endif | |
11837 | # endif | |
11838 | # endif | |
11839 | #endif | |
11840 | ||
11841 | #ifdef __cplusplus | |
11842 | extern "C" void exit (int); | |
11843 | #endif | |
11844 | ||
11845 | void fnord() { int i=42;} | |
11846 | int main () | |
11847 | { | |
11848 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11849 | int status = $lt_dlunknown; | |
11850 | ||
11851 | if (self) | |
11852 | { | |
11853 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11854 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11855 | /* dlclose (self); */ | |
11856 | } | |
11857 | else | |
11858 | puts (dlerror ()); | |
11859 | ||
11860 | exit (status); | |
11861 | } | |
11862 | EOF | |
11863 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11864 | (eval $ac_link) 2>&5 | |
11865 | ac_status=$? | |
11866 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11867 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11868 | (./conftest; exit; ) >&5 2>/dev/null | |
11869 | lt_status=$? | |
11870 | case x$lt_status in | |
11871 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; | |
11872 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; | |
11873 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; | |
11874 | esac | |
11875 | else : | |
11876 | # compilation failed | |
11877 | lt_cv_dlopen_self=no | |
11878 | fi | |
11879 | fi | |
11880 | rm -fr conftest* | |
11881 | ||
11882 | ||
11883 | fi | |
11884 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 | |
11885 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } | |
11886 | ||
11887 | if test "x$lt_cv_dlopen_self" = xyes; then | |
11888 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" | |
11889 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 | |
11890 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } | |
11891 | if test "${lt_cv_dlopen_self_static+set}" = set; then | |
11892 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
11893 | else | |
11894 | if test "$cross_compiling" = yes; then : | |
11895 | lt_cv_dlopen_self_static=cross | |
11896 | else | |
11897 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 | |
11898 | lt_status=$lt_dlunknown | |
11899 | cat > conftest.$ac_ext <<EOF | |
11900 | #line 11900 "configure" | |
11901 | #include "confdefs.h" | |
11902 | ||
11903 | #if HAVE_DLFCN_H | |
11904 | #include <dlfcn.h> | |
11905 | #endif | |
11906 | ||
11907 | #include <stdio.h> | |
11908 | ||
11909 | #ifdef RTLD_GLOBAL | |
11910 | # define LT_DLGLOBAL RTLD_GLOBAL | |
11911 | #else | |
11912 | # ifdef DL_GLOBAL | |
11913 | # define LT_DLGLOBAL DL_GLOBAL | |
11914 | # else | |
11915 | # define LT_DLGLOBAL 0 | |
11916 | # endif | |
11917 | #endif | |
11918 | ||
11919 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we | |
11920 | find out it does not work in some platform. */ | |
11921 | #ifndef LT_DLLAZY_OR_NOW | |
11922 | # ifdef RTLD_LAZY | |
11923 | # define LT_DLLAZY_OR_NOW RTLD_LAZY | |
11924 | # else | |
11925 | # ifdef DL_LAZY | |
11926 | # define LT_DLLAZY_OR_NOW DL_LAZY | |
11927 | # else | |
11928 | # ifdef RTLD_NOW | |
11929 | # define LT_DLLAZY_OR_NOW RTLD_NOW | |
11930 | # else | |
11931 | # ifdef DL_NOW | |
11932 | # define LT_DLLAZY_OR_NOW DL_NOW | |
11933 | # else | |
11934 | # define LT_DLLAZY_OR_NOW 0 | |
11935 | # endif | |
11936 | # endif | |
11937 | # endif | |
11938 | # endif | |
11939 | #endif | |
11940 | ||
11941 | #ifdef __cplusplus | |
11942 | extern "C" void exit (int); | |
11943 | #endif | |
11944 | ||
11945 | void fnord() { int i=42;} | |
11946 | int main () | |
11947 | { | |
11948 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); | |
11949 | int status = $lt_dlunknown; | |
11950 | ||
11951 | if (self) | |
11952 | { | |
11953 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; | |
11954 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; | |
11955 | /* dlclose (self); */ | |
11956 | } | |
11957 | else | |
11958 | puts (dlerror ()); | |
11959 | ||
11960 | exit (status); | |
11961 | } | |
11962 | EOF | |
11963 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
11964 | (eval $ac_link) 2>&5 | |
11965 | ac_status=$? | |
11966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
11967 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then | |
11968 | (./conftest; exit; ) >&5 2>/dev/null | |
11969 | lt_status=$? | |
11970 | case x$lt_status in | |
11971 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; | |
11972 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; | |
11973 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; | |
11974 | esac | |
11975 | else : | |
11976 | # compilation failed | |
11977 | lt_cv_dlopen_self_static=no | |
11978 | fi | |
11979 | fi | |
11980 | rm -fr conftest* | |
11981 | ||
11982 | ||
11983 | fi | |
11984 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 | |
11985 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } | |
11986 | fi | |
11987 | ||
11988 | CPPFLAGS="$save_CPPFLAGS" | |
11989 | LDFLAGS="$save_LDFLAGS" | |
11990 | LIBS="$save_LIBS" | |
11991 | ;; | |
11992 | esac | |
11993 | ||
11994 | case $lt_cv_dlopen_self in | |
11995 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; | |
11996 | *) enable_dlopen_self=unknown ;; | |
11997 | esac | |
11998 | ||
11999 | case $lt_cv_dlopen_self_static in | |
12000 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; | |
12001 | *) enable_dlopen_self_static=unknown ;; | |
12002 | esac | |
12003 | fi | |
12004 | ||
12005 | ||
12006 | # Report which library types will actually be built | |
12007 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
12008 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | |
12009 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
12010 | echo "${ECHO_T}$can_build_shared" >&6; } | |
12011 | ||
12012 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
12013 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | |
12014 | test "$can_build_shared" = "no" && enable_shared=no | |
12015 | ||
12016 | # On AIX, shared libraries and static libraries use the same namespace, and | |
12017 | # are all built from PIC. | |
12018 | case $host_os in | |
12019 | aix3*) | |
12020 | test "$enable_shared" = yes && enable_static=no | |
12021 | if test -n "$RANLIB"; then | |
12022 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
12023 | postinstall_cmds='$RANLIB $lib' | |
12024 | fi | |
12025 | ;; | |
12026 | ||
12027 | aix4* | aix5*) | |
12028 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
12029 | test "$enable_shared" = yes && enable_static=no | |
12030 | fi | |
12031 | ;; | |
12032 | esac | |
12033 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
12034 | echo "${ECHO_T}$enable_shared" >&6; } | |
12035 | ||
12036 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
12037 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | |
12038 | # Make sure either enable_shared or enable_static is yes. | |
12039 | test "$enable_shared" = yes || enable_static=yes | |
12040 | { echo "$as_me:$LINENO: result: $enable_static" >&5 | |
12041 | echo "${ECHO_T}$enable_static" >&6; } | |
12042 | ||
12043 | # The else clause should only fire when bootstrapping the | |
12044 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
12045 | # with your package, and you will get complaints that there are | |
12046 | # no rules to generate ltmain.sh. | |
12047 | if test -f "$ltmain"; then | |
12048 | # See if we are running on zsh, and set the options which allow our commands through | |
12049 | # without removal of \ escapes. | |
12050 | if test -n "${ZSH_VERSION+set}" ; then | |
12051 | setopt NO_GLOB_SUBST | |
12052 | fi | |
12053 | # Now quote all the things that may contain metacharacters while being | |
12054 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
12055 | # variables and quote the copies for generation of the libtool script. | |
12056 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
12057 | SED SHELL STRIP \ | |
12058 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
12059 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
12060 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
12061 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
12062 | lt_cv_sys_global_symbol_to_c_name_address \ | |
12063 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
12064 | old_postinstall_cmds old_postuninstall_cmds \ | |
12065 | compiler \ | |
12066 | CC \ | |
12067 | LD \ | |
12068 | lt_prog_compiler_wl \ | |
12069 | lt_prog_compiler_pic \ | |
12070 | lt_prog_compiler_static \ | |
12071 | lt_prog_compiler_no_builtin_flag \ | |
12072 | export_dynamic_flag_spec \ | |
12073 | thread_safe_flag_spec \ | |
12074 | whole_archive_flag_spec \ | |
12075 | enable_shared_with_static_runtimes \ | |
12076 | old_archive_cmds \ | |
12077 | old_archive_from_new_cmds \ | |
12078 | predep_objects \ | |
12079 | postdep_objects \ | |
12080 | predeps \ | |
12081 | postdeps \ | |
12082 | compiler_lib_search_path \ | |
12083 | archive_cmds \ | |
12084 | archive_expsym_cmds \ | |
12085 | postinstall_cmds \ | |
12086 | postuninstall_cmds \ | |
12087 | old_archive_from_expsyms_cmds \ | |
12088 | allow_undefined_flag \ | |
12089 | no_undefined_flag \ | |
12090 | export_symbols_cmds \ | |
12091 | hardcode_libdir_flag_spec \ | |
12092 | hardcode_libdir_flag_spec_ld \ | |
12093 | hardcode_libdir_separator \ | |
12094 | hardcode_automatic \ | |
12095 | module_cmds \ | |
12096 | module_expsym_cmds \ | |
12097 | lt_cv_prog_compiler_c_o \ | |
12098 | exclude_expsyms \ | |
12099 | include_expsyms; do | |
12100 | ||
12101 | case $var in | |
12102 | old_archive_cmds | \ | |
12103 | old_archive_from_new_cmds | \ | |
12104 | archive_cmds | \ | |
12105 | archive_expsym_cmds | \ | |
12106 | module_cmds | \ | |
12107 | module_expsym_cmds | \ | |
12108 | old_archive_from_expsyms_cmds | \ | |
12109 | export_symbols_cmds | \ | |
12110 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
12111 | postinstall_cmds | postuninstall_cmds | \ | |
12112 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
12113 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
12114 | # Double-quote double-evaled strings. | |
12115 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
12116 | ;; | |
12117 | *) | |
12118 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
12119 | ;; | |
12120 | esac | |
12121 | done | |
12122 | ||
12123 | case $lt_echo in | |
12124 | *'\$0 --fallback-echo"') | |
12125 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
12126 | ;; | |
12127 | esac | |
12128 | ||
12129 | cfgfile="${ofile}T" | |
12130 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 | |
12131 | $rm -f "$cfgfile" | |
12132 | { echo "$as_me:$LINENO: creating $ofile" >&5 | |
12133 | echo "$as_me: creating $ofile" >&6;} | |
12134 | ||
12135 | cat <<__EOF__ >> "$cfgfile" | |
12136 | #! $SHELL | |
12137 | ||
12138 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. | |
12139 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) | |
12140 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. | |
12141 | # | |
12142 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 | |
12143 | # Free Software Foundation, Inc. | |
12144 | # | |
12145 | # This file is part of GNU Libtool: | |
12146 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 | |
12147 | # | |
12148 | # This program is free software; you can redistribute it and/or modify | |
12149 | # it under the terms of the GNU General Public License as published by | |
12150 | # the Free Software Foundation; either version 2 of the License, or | |
12151 | # (at your option) any later version. | |
12152 | # | |
12153 | # This program is distributed in the hope that it will be useful, but | |
12154 | # WITHOUT ANY WARRANTY; without even the implied warranty of | |
12155 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | |
12156 | # General Public License for more details. | |
12157 | # | |
12158 | # You should have received a copy of the GNU General Public License | |
12159 | # along with this program; if not, write to the Free Software | |
12160 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
12161 | # | |
12162 | # As a special exception to the GNU General Public License, if you | |
12163 | # distribute this file as part of a program that contains a | |
12164 | # configuration script generated by Autoconf, you may include it under | |
12165 | # the same distribution terms that you use for the rest of that program. | |
12166 | ||
12167 | # A sed program that does not truncate output. | |
12168 | SED=$lt_SED | |
12169 | ||
12170 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. | |
12171 | Xsed="$SED -e 1s/^X//" | |
12172 | ||
12173 | # The HP-UX ksh and POSIX shell print the target directory to stdout | |
12174 | # if CDPATH is set. | |
12175 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
12176 | ||
12177 | # The names of the tagged configurations supported by this script. | |
12178 | available_tags= | |
12179 | ||
12180 | # ### BEGIN LIBTOOL CONFIG | |
12181 | ||
12182 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
12183 | ||
12184 | # Shell to use when invoking shell scripts. | |
12185 | SHELL=$lt_SHELL | |
12186 | ||
12187 | # Whether or not to build shared libraries. | |
12188 | build_libtool_libs=$enable_shared | |
12189 | ||
12190 | # Whether or not to build static libraries. | |
12191 | build_old_libs=$enable_static | |
12192 | ||
12193 | # Whether or not to add -lc for building shared libraries. | |
12194 | build_libtool_need_lc=$archive_cmds_need_lc | |
12195 | ||
12196 | # Whether or not to disallow shared libs when runtime libs are static | |
12197 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes | |
12198 | ||
12199 | # Whether or not to optimize for fast installation. | |
12200 | fast_install=$enable_fast_install | |
12201 | ||
12202 | # The host system. | |
12203 | host_alias=$host_alias | |
12204 | host=$host | |
12205 | host_os=$host_os | |
12206 | ||
12207 | # The build system. | |
12208 | build_alias=$build_alias | |
12209 | build=$build | |
12210 | build_os=$build_os | |
12211 | ||
12212 | # An echo program that does not interpret backslashes. | |
12213 | echo=$lt_echo | |
12214 | ||
12215 | # The archiver. | |
12216 | AR=$lt_AR | |
12217 | AR_FLAGS=$lt_AR_FLAGS | |
12218 | ||
12219 | # A C compiler. | |
12220 | LTCC=$lt_LTCC | |
12221 | ||
12222 | # LTCC compiler flags. | |
12223 | LTCFLAGS=$lt_LTCFLAGS | |
12224 | ||
12225 | # A language-specific compiler. | |
12226 | CC=$lt_compiler | |
12227 | ||
12228 | # Is the compiler the GNU C compiler? | |
12229 | with_gcc=$GCC | |
12230 | ||
12231 | # An ERE matcher. | |
12232 | EGREP=$lt_EGREP | |
12233 | ||
12234 | # The linker used to build libraries. | |
12235 | LD=$lt_LD | |
12236 | ||
12237 | # Whether we need hard or soft links. | |
12238 | LN_S=$lt_LN_S | |
12239 | ||
12240 | # A BSD-compatible nm program. | |
12241 | NM=$lt_NM | |
12242 | ||
12243 | # A symbol stripping program | |
12244 | STRIP=$lt_STRIP | |
12245 | ||
12246 | # Used to examine libraries when file_magic_cmd begins "file" | |
12247 | MAGIC_CMD=$MAGIC_CMD | |
12248 | ||
12249 | # Used on cygwin: DLL creation program. | |
12250 | DLLTOOL="$DLLTOOL" | |
12251 | ||
12252 | # Used on cygwin: object dumper. | |
12253 | OBJDUMP="$OBJDUMP" | |
12254 | ||
12255 | # Used on cygwin: assembler. | |
12256 | AS="$AS" | |
12257 | ||
12258 | # The name of the directory that contains temporary libtool files. | |
12259 | objdir=$objdir | |
12260 | ||
12261 | # How to create reloadable object files. | |
12262 | reload_flag=$lt_reload_flag | |
12263 | reload_cmds=$lt_reload_cmds | |
12264 | ||
12265 | # How to pass a linker flag through the compiler. | |
12266 | wl=$lt_lt_prog_compiler_wl | |
12267 | ||
12268 | # Object file suffix (normally "o"). | |
12269 | objext="$ac_objext" | |
12270 | ||
12271 | # Old archive suffix (normally "a"). | |
12272 | libext="$libext" | |
12273 | ||
12274 | # Shared library suffix (normally ".so"). | |
12275 | shrext_cmds='$shrext_cmds' | |
12276 | ||
12277 | # Executable file suffix (normally ""). | |
12278 | exeext="$exeext" | |
12279 | ||
12280 | # Additional compiler flags for building library objects. | |
12281 | pic_flag=$lt_lt_prog_compiler_pic | |
12282 | pic_mode=$pic_mode | |
12283 | ||
12284 | # What is the maximum length of a command? | |
12285 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
12286 | ||
12287 | # Does compiler simultaneously support -c and -o options? | |
12288 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o | |
12289 | ||
12290 | # Must we lock files when doing compilation? | |
12291 | need_locks=$lt_need_locks | |
12292 | ||
12293 | # Do we need the lib prefix for modules? | |
12294 | need_lib_prefix=$need_lib_prefix | |
12295 | ||
12296 | # Do we need a version for libraries? | |
12297 | need_version=$need_version | |
12298 | ||
12299 | # Whether dlopen is supported. | |
12300 | dlopen_support=$enable_dlopen | |
12301 | ||
12302 | # Whether dlopen of programs is supported. | |
12303 | dlopen_self=$enable_dlopen_self | |
12304 | ||
12305 | # Whether dlopen of statically linked programs is supported. | |
12306 | dlopen_self_static=$enable_dlopen_self_static | |
12307 | ||
12308 | # Compiler flag to prevent dynamic linking. | |
12309 | link_static_flag=$lt_lt_prog_compiler_static | |
12310 | ||
12311 | # Compiler flag to turn off builtin functions. | |
12312 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag | |
12313 | ||
12314 | # Compiler flag to allow reflexive dlopens. | |
12315 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec | |
12316 | ||
12317 | # Compiler flag to generate shared objects directly from archives. | |
12318 | whole_archive_flag_spec=$lt_whole_archive_flag_spec | |
12319 | ||
12320 | # Compiler flag to generate thread-safe objects. | |
12321 | thread_safe_flag_spec=$lt_thread_safe_flag_spec | |
12322 | ||
12323 | # Library versioning type. | |
12324 | version_type=$version_type | |
12325 | ||
12326 | # Format of library name prefix. | |
12327 | libname_spec=$lt_libname_spec | |
12328 | ||
12329 | # List of archive names. First name is the real one, the rest are links. | |
12330 | # The last name is the one that the linker finds with -lNAME. | |
12331 | library_names_spec=$lt_library_names_spec | |
12332 | ||
12333 | # The coded name of the library, if different from the real name. | |
12334 | soname_spec=$lt_soname_spec | |
12335 | ||
12336 | # Commands used to build and install an old-style archive. | |
12337 | RANLIB=$lt_RANLIB | |
12338 | old_archive_cmds=$lt_old_archive_cmds | |
12339 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
12340 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
12341 | ||
12342 | # Create an old-style archive from a shared archive. | |
12343 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds | |
12344 | ||
12345 | # Create a temporary old-style archive to link instead of a shared archive. | |
12346 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds | |
12347 | ||
12348 | # Commands used to build and install a shared archive. | |
12349 | archive_cmds=$lt_archive_cmds | |
12350 | archive_expsym_cmds=$lt_archive_expsym_cmds | |
12351 | postinstall_cmds=$lt_postinstall_cmds | |
12352 | postuninstall_cmds=$lt_postuninstall_cmds | |
12353 | ||
12354 | # Commands used to build a loadable module (assumed same as above if empty) | |
12355 | module_cmds=$lt_module_cmds | |
12356 | module_expsym_cmds=$lt_module_expsym_cmds | |
12357 | ||
12358 | # Commands to strip libraries. | |
12359 | old_striplib=$lt_old_striplib | |
12360 | striplib=$lt_striplib | |
12361 | ||
12362 | # Dependencies to place before the objects being linked to create a | |
12363 | # shared library. | |
12364 | predep_objects=$lt_predep_objects | |
12365 | ||
12366 | # Dependencies to place after the objects being linked to create a | |
12367 | # shared library. | |
12368 | postdep_objects=$lt_postdep_objects | |
12369 | ||
12370 | # Dependencies to place before the objects being linked to create a | |
12371 | # shared library. | |
12372 | predeps=$lt_predeps | |
12373 | ||
12374 | # Dependencies to place after the objects being linked to create a | |
12375 | # shared library. | |
12376 | postdeps=$lt_postdeps | |
12377 | ||
12378 | # The library search path used internally by the compiler when linking | |
12379 | # a shared library. | |
12380 | compiler_lib_search_path=$lt_compiler_lib_search_path | |
12381 | ||
12382 | # Method to check whether dependent libraries are shared objects. | |
12383 | deplibs_check_method=$lt_deplibs_check_method | |
12384 | ||
12385 | # Command to use when deplibs_check_method == file_magic. | |
12386 | file_magic_cmd=$lt_file_magic_cmd | |
12387 | ||
12388 | # Flag that allows shared libraries with undefined symbols to be built. | |
12389 | allow_undefined_flag=$lt_allow_undefined_flag | |
12390 | ||
12391 | # Flag that forces no undefined symbols. | |
12392 | no_undefined_flag=$lt_no_undefined_flag | |
12393 | ||
12394 | # Commands used to finish a libtool library installation in a directory. | |
12395 | finish_cmds=$lt_finish_cmds | |
12396 | ||
12397 | # Same as above, but a single script fragment to be evaled but not shown. | |
12398 | finish_eval=$lt_finish_eval | |
12399 | ||
12400 | # Take the output of nm and produce a listing of raw symbols and C names. | |
12401 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
12402 | ||
12403 | # Transform the output of nm in a proper C declaration | |
12404 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
12405 | ||
12406 | # Transform the output of nm in a C name address pair | |
12407 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
12408 | ||
12409 | # This is the shared library runtime path variable. | |
12410 | runpath_var=$runpath_var | |
12411 | ||
12412 | # This is the shared library path variable. | |
12413 | shlibpath_var=$shlibpath_var | |
12414 | ||
12415 | # Is shlibpath searched before the hard-coded library search path? | |
12416 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
12417 | ||
12418 | # How to hardcode a shared library path into an executable. | |
12419 | hardcode_action=$hardcode_action | |
12420 | ||
12421 | # Whether we should hardcode library paths into libraries. | |
12422 | hardcode_into_libs=$hardcode_into_libs | |
12423 | ||
12424 | # Flag to hardcode \$libdir into a binary during linking. | |
12425 | # This must work even if \$libdir does not exist. | |
12426 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec | |
12427 | ||
12428 | # If ld is used when linking, flag to hardcode \$libdir into | |
12429 | # a binary during linking. This must work even if \$libdir does | |
12430 | # not exist. | |
12431 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld | |
12432 | ||
12433 | # Whether we need a single -rpath flag with a separated argument. | |
12434 | hardcode_libdir_separator=$lt_hardcode_libdir_separator | |
12435 | ||
12436 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
12437 | # resulting binary. | |
12438 | hardcode_direct=$hardcode_direct | |
12439 | ||
12440 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
12441 | # resulting binary. | |
12442 | hardcode_minus_L=$hardcode_minus_L | |
12443 | ||
12444 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
12445 | # the resulting binary. | |
12446 | hardcode_shlibpath_var=$hardcode_shlibpath_var | |
12447 | ||
12448 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
12449 | # and all subsequent libraries and executables linked against it. | |
12450 | hardcode_automatic=$hardcode_automatic | |
12451 | ||
12452 | # Variables whose values should be saved in libtool wrapper scripts and | |
12453 | # restored at relink time. | |
12454 | variables_saved_for_relink="$variables_saved_for_relink" | |
12455 | ||
12456 | # Whether libtool must link a program against all its dependency libraries. | |
12457 | link_all_deplibs=$link_all_deplibs | |
12458 | ||
12459 | # Compile-time system search path for libraries | |
12460 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
12461 | ||
12462 | # Run-time system search path for libraries | |
12463 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
12464 | ||
12465 | # Fix the shell variable \$srcfile for the compiler. | |
12466 | fix_srcfile_path="$fix_srcfile_path" | |
12467 | ||
12468 | # Set to yes if exported symbols are required. | |
12469 | always_export_symbols=$always_export_symbols | |
12470 | ||
12471 | # The commands to list exported symbols. | |
12472 | export_symbols_cmds=$lt_export_symbols_cmds | |
12473 | ||
12474 | # The commands to extract the exported symbol list from a shared archive. | |
12475 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
12476 | ||
12477 | # Symbols that should not be listed in the preloaded symbols. | |
12478 | exclude_expsyms=$lt_exclude_expsyms | |
12479 | ||
12480 | # Symbols that must always be exported. | |
12481 | include_expsyms=$lt_include_expsyms | |
12482 | ||
12483 | # ### END LIBTOOL CONFIG | |
12484 | ||
12485 | __EOF__ | |
12486 | ||
12487 | ||
12488 | case $host_os in | |
12489 | aix3*) | |
12490 | cat <<\EOF >> "$cfgfile" | |
12491 | ||
12492 | # AIX sometimes has problems with the GCC collect2 program. For some | |
12493 | # reason, if we set the COLLECT_NAMES environment variable, the problems | |
12494 | # vanish in a puff of smoke. | |
12495 | if test "X${COLLECT_NAMES+set}" != Xset; then | |
12496 | COLLECT_NAMES= | |
12497 | export COLLECT_NAMES | |
12498 | fi | |
12499 | EOF | |
12500 | ;; | |
12501 | esac | |
12502 | ||
12503 | # We use sed instead of cat because bash on DJGPP gets confused if | |
12504 | # if finds mixed CR/LF and LF-only lines. Since sed operates in | |
12505 | # text mode, it properly converts lines to CR/LF. This bash problem | |
12506 | # is reportedly fixed, but why not run on old versions too? | |
12507 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) | |
12508 | ||
12509 | mv -f "$cfgfile" "$ofile" || \ | |
12510 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") | |
12511 | chmod +x "$ofile" | |
12512 | ||
12513 | else | |
12514 | # If there is no Makefile yet, we rely on a make rule to execute | |
12515 | # `config.status --recheck' to rerun these tests and create the | |
12516 | # libtool script then. | |
12517 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
12518 | if test -f "$ltmain_in"; then | |
12519 | test -f Makefile && make "$ltmain" | |
12520 | fi | |
12521 | fi | |
12522 | ||
12523 | ||
12524 | ac_ext=c | |
12525 | ac_cpp='$CPP $CPPFLAGS' | |
12526 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12527 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12528 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
12529 | ||
12530 | CC="$lt_save_CC" | |
12531 | ||
12532 | ||
12533 | # Check whether --with-tags was given. | |
12534 | if test "${with_tags+set}" = set; then | |
12535 | withval=$with_tags; tagnames="$withval" | |
12536 | fi | |
12537 | ||
12538 | ||
12539 | if test -f "$ltmain" && test -n "$tagnames"; then | |
12540 | if test ! -f "${ofile}"; then | |
12541 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 | |
12542 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} | |
12543 | fi | |
12544 | ||
12545 | if test -z "$LTCC"; then | |
12546 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" | |
12547 | if test -z "$LTCC"; then | |
12548 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 | |
12549 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} | |
12550 | else | |
12551 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 | |
12552 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} | |
12553 | fi | |
12554 | fi | |
12555 | if test -z "$LTCFLAGS"; then | |
12556 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" | |
12557 | fi | |
12558 | ||
12559 | # Extract list of available tagged configurations in $ofile. | |
12560 | # Note that this assumes the entire list is on one line. | |
12561 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` | |
12562 | ||
12563 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," | |
12564 | for tagname in $tagnames; do | |
12565 | IFS="$lt_save_ifs" | |
12566 | # Check whether tagname contains only valid characters | |
12567 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in | |
12568 | "") ;; | |
12569 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 | |
12570 | echo "$as_me: error: invalid tag name: $tagname" >&2;} | |
12571 | { (exit 1); exit 1; }; } | |
12572 | ;; | |
12573 | esac | |
12574 | ||
12575 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null | |
12576 | then | |
12577 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 | |
12578 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} | |
12579 | { (exit 1); exit 1; }; } | |
12580 | fi | |
12581 | ||
12582 | # Update the list of available tags. | |
12583 | if test -n "$tagname"; then | |
12584 | echo appending configuration tag \"$tagname\" to $ofile | |
12585 | ||
12586 | case $tagname in | |
12587 | CXX) | |
12588 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && | |
12589 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || | |
12590 | (test "X$CXX" != "Xg++"))) ; then | |
12591 | ac_ext=cpp | |
12592 | ac_cpp='$CXXCPP $CPPFLAGS' | |
12593 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
12594 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
12595 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
12596 | ||
12597 | ||
12598 | ||
12599 | ||
12600 | archive_cmds_need_lc_CXX=no | |
12601 | allow_undefined_flag_CXX= | |
12602 | always_export_symbols_CXX=no | |
12603 | archive_expsym_cmds_CXX= | |
12604 | export_dynamic_flag_spec_CXX= | |
12605 | hardcode_direct_CXX=no | |
12606 | hardcode_libdir_flag_spec_CXX= | |
12607 | hardcode_libdir_flag_spec_ld_CXX= | |
12608 | hardcode_libdir_separator_CXX= | |
12609 | hardcode_minus_L_CXX=no | |
12610 | hardcode_shlibpath_var_CXX=unsupported | |
12611 | hardcode_automatic_CXX=no | |
12612 | module_cmds_CXX= | |
12613 | module_expsym_cmds_CXX= | |
12614 | link_all_deplibs_CXX=unknown | |
12615 | old_archive_cmds_CXX=$old_archive_cmds | |
12616 | no_undefined_flag_CXX= | |
12617 | whole_archive_flag_spec_CXX= | |
12618 | enable_shared_with_static_runtimes_CXX=no | |
12619 | ||
12620 | # Dependencies to place before and after the object being linked: | |
12621 | predep_objects_CXX= | |
12622 | postdep_objects_CXX= | |
12623 | predeps_CXX= | |
12624 | postdeps_CXX= | |
12625 | compiler_lib_search_path_CXX= | |
12626 | ||
12627 | # Source file extension for C++ test sources. | |
12628 | ac_ext=cpp | |
12629 | ||
12630 | # Object file extension for compiled C++ test sources. | |
12631 | objext=o | |
12632 | objext_CXX=$objext | |
12633 | ||
12634 | # Code to be used in simple compile tests | |
12635 | lt_simple_compile_test_code="int some_variable = 0;\n" | |
12636 | ||
12637 | # Code to be used in simple link tests | |
12638 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' | |
12639 | ||
12640 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
12641 | ||
12642 | # If no C compiler was specified, use CC. | |
12643 | LTCC=${LTCC-"$CC"} | |
12644 | ||
12645 | # If no C compiler flags were specified, use CFLAGS. | |
12646 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
12647 | ||
12648 | # Allow CC to be a program name with arguments. | |
12649 | compiler=$CC | |
12650 | ||
12651 | ||
12652 | # save warnings/boilerplate of simple test code | |
12653 | ac_outfile=conftest.$ac_objext | |
12654 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
12655 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12656 | _lt_compiler_boilerplate=`cat conftest.err` | |
12657 | $rm conftest* | |
12658 | ||
12659 | ac_outfile=conftest.$ac_objext | |
12660 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
12661 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
12662 | _lt_linker_boilerplate=`cat conftest.err` | |
12663 | $rm conftest* | |
12664 | ||
12665 | ||
12666 | # Allow CC to be a program name with arguments. | |
12667 | lt_save_CC=$CC | |
12668 | lt_save_LD=$LD | |
12669 | lt_save_GCC=$GCC | |
12670 | GCC=$GXX | |
12671 | lt_save_with_gnu_ld=$with_gnu_ld | |
12672 | lt_save_path_LD=$lt_cv_path_LD | |
12673 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then | |
12674 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx | |
12675 | else | |
12676 | $as_unset lt_cv_prog_gnu_ld | |
12677 | fi | |
12678 | if test -n "${lt_cv_path_LDCXX+set}"; then | |
12679 | lt_cv_path_LD=$lt_cv_path_LDCXX | |
12680 | else | |
12681 | $as_unset lt_cv_path_LD | |
12682 | fi | |
12683 | test -z "${LDCXX+set}" || LD=$LDCXX | |
12684 | CC=${CXX-"c++"} | |
12685 | compiler=$CC | |
12686 | compiler_CXX=$CC | |
12687 | for cc_temp in $compiler""; do | |
12688 | case $cc_temp in | |
12689 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
12690 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
12691 | \-*) ;; | |
12692 | *) break;; | |
12693 | esac | |
12694 | done | |
12695 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
12696 | ||
12697 | ||
12698 | # We don't want -fno-exception wen compiling C++ code, so set the | |
12699 | # no_builtin_flag separately | |
12700 | if test "$GXX" = yes; then | |
12701 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' | |
12702 | else | |
12703 | lt_prog_compiler_no_builtin_flag_CXX= | |
12704 | fi | |
12705 | ||
12706 | if test "$GXX" = yes; then | |
12707 | # Set up default GNU C++ configuration | |
12708 | ||
12709 | ||
12710 | # Check whether --with-gnu-ld was given. | |
12711 | if test "${with_gnu_ld+set}" = set; then | |
12712 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes | |
12713 | else | |
12714 | with_gnu_ld=no | |
12715 | fi | |
12716 | ||
12717 | ac_prog=ld | |
12718 | if test "$GCC" = yes; then | |
12719 | # Check if gcc -print-prog-name=ld gives a path. | |
12720 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 | |
12721 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } | |
12722 | case $host in | |
12723 | *-*-mingw*) | |
12724 | # gcc leaves a trailing carriage return which upsets mingw | |
12725 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; | |
12726 | *) | |
12727 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; | |
12728 | esac | |
12729 | case $ac_prog in | |
12730 | # Accept absolute paths. | |
12731 | [\\/]* | ?:[\\/]*) | |
12732 | re_direlt='/[^/][^/]*/\.\./' | |
12733 | # Canonicalize the pathname of ld | |
12734 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` | |
12735 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do | |
12736 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` | |
12737 | done | |
12738 | test -z "$LD" && LD="$ac_prog" | |
12739 | ;; | |
12740 | "") | |
12741 | # If it fails, then pretend we aren't using GCC. | |
12742 | ac_prog=ld | |
12743 | ;; | |
12744 | *) | |
12745 | # If it is relative, then search for the first ld in PATH. | |
12746 | with_gnu_ld=unknown | |
12747 | ;; | |
12748 | esac | |
12749 | elif test "$with_gnu_ld" = yes; then | |
12750 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 | |
12751 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } | |
12752 | else | |
12753 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 | |
12754 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } | |
12755 | fi | |
12756 | if test "${lt_cv_path_LD+set}" = set; then | |
12757 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12758 | else | |
12759 | if test -z "$LD"; then | |
12760 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR | |
12761 | for ac_dir in $PATH; do | |
12762 | IFS="$lt_save_ifs" | |
12763 | test -z "$ac_dir" && ac_dir=. | |
12764 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then | |
12765 | lt_cv_path_LD="$ac_dir/$ac_prog" | |
12766 | # Check to see if the program is GNU ld. I'd rather use --version, | |
12767 | # but apparently some variants of GNU ld only accept -v. | |
12768 | # Break only if it was the GNU/non-GNU ld that we prefer. | |
12769 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in | |
12770 | *GNU* | *'with BFD'*) | |
12771 | test "$with_gnu_ld" != no && break | |
12772 | ;; | |
12773 | *) | |
12774 | test "$with_gnu_ld" != yes && break | |
12775 | ;; | |
12776 | esac | |
12777 | fi | |
12778 | done | |
12779 | IFS="$lt_save_ifs" | |
12780 | else | |
12781 | lt_cv_path_LD="$LD" # Let the user override the test with a path. | |
12782 | fi | |
12783 | fi | |
12784 | ||
12785 | LD="$lt_cv_path_LD" | |
12786 | if test -n "$LD"; then | |
12787 | { echo "$as_me:$LINENO: result: $LD" >&5 | |
12788 | echo "${ECHO_T}$LD" >&6; } | |
12789 | else | |
12790 | { echo "$as_me:$LINENO: result: no" >&5 | |
12791 | echo "${ECHO_T}no" >&6; } | |
12792 | fi | |
12793 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 | |
12794 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} | |
12795 | { (exit 1); exit 1; }; } | |
12796 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 | |
12797 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } | |
12798 | if test "${lt_cv_prog_gnu_ld+set}" = set; then | |
12799 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
12800 | else | |
12801 | # I'd rather use --version here, but apparently some GNU lds only accept -v. | |
12802 | case `$LD -v 2>&1 </dev/null` in | |
12803 | *GNU* | *'with BFD'*) | |
12804 | lt_cv_prog_gnu_ld=yes | |
12805 | ;; | |
12806 | *) | |
12807 | lt_cv_prog_gnu_ld=no | |
12808 | ;; | |
12809 | esac | |
12810 | fi | |
12811 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 | |
12812 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } | |
12813 | with_gnu_ld=$lt_cv_prog_gnu_ld | |
12814 | ||
12815 | ||
12816 | ||
12817 | # Check if GNU C++ uses GNU ld as the underlying linker, since the | |
12818 | # archiving commands below assume that GNU ld is being used. | |
12819 | if test "$with_gnu_ld" = yes; then | |
12820 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
12821 | 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' | |
12822 | ||
12823 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
12824 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
12825 | ||
12826 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
12827 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to | |
12828 | # investigate it a little bit more. (MM) | |
12829 | wlarc='${wl}' | |
12830 | ||
12831 | # ancient GNU ld didn't support --whole-archive et. al. | |
12832 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ | |
12833 | grep 'no-whole-archive' > /dev/null; then | |
12834 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
12835 | else | |
12836 | whole_archive_flag_spec_CXX= | |
12837 | fi | |
12838 | else | |
12839 | with_gnu_ld=no | |
12840 | wlarc= | |
12841 | ||
12842 | # A generic and very simple default shared library creation | |
12843 | # command for GNU C++ for the case where it uses the native | |
12844 | # linker, instead of GNU ld. If possible, this setting should | |
12845 | # overridden to take advantage of the native linker features on | |
12846 | # the platform it is being used on. | |
12847 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
12848 | fi | |
12849 | ||
12850 | # Commands to make compiler produce verbose output that lists | |
12851 | # what "hidden" libraries, object files and flags are used when | |
12852 | # linking a shared library. | |
12853 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
12854 | ||
12855 | else | |
12856 | GXX=no | |
12857 | with_gnu_ld=no | |
12858 | wlarc= | |
12859 | fi | |
12860 | ||
12861 | # PORTME: fill in a description of your system's C++ link characteristics | |
12862 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
12863 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
12864 | ld_shlibs_CXX=yes | |
12865 | case $host_os in | |
12866 | aix3*) | |
12867 | # FIXME: insert proper C++ library support | |
12868 | ld_shlibs_CXX=no | |
12869 | ;; | |
12870 | aix4* | aix5*) | |
12871 | if test "$host_cpu" = ia64; then | |
12872 | # On IA64, the linker does run time linking by default, so we don't | |
12873 | # have to do anything special. | |
12874 | aix_use_runtimelinking=no | |
12875 | exp_sym_flag='-Bexport' | |
12876 | no_entry_flag="" | |
12877 | else | |
12878 | aix_use_runtimelinking=no | |
12879 | ||
12880 | # Test if we are trying to use run time linking or normal | |
12881 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
12882 | # need to do runtime linking. | |
12883 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
12884 | for ld_flag in $LDFLAGS; do | |
12885 | case $ld_flag in | |
12886 | *-brtl*) | |
12887 | aix_use_runtimelinking=yes | |
12888 | break | |
12889 | ;; | |
12890 | esac | |
12891 | done | |
12892 | ;; | |
12893 | esac | |
12894 | ||
12895 | exp_sym_flag='-bexport' | |
12896 | no_entry_flag='-bnoentry' | |
12897 | fi | |
12898 | ||
12899 | # When large executables or shared objects are built, AIX ld can | |
12900 | # have problems creating the table of contents. If linking a library | |
12901 | # or program results in "error TOC overflow" add -mminimal-toc to | |
12902 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
12903 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
12904 | ||
12905 | archive_cmds_CXX='' | |
12906 | hardcode_direct_CXX=yes | |
12907 | hardcode_libdir_separator_CXX=':' | |
12908 | link_all_deplibs_CXX=yes | |
12909 | ||
12910 | if test "$GXX" = yes; then | |
12911 | case $host_os in aix4.[012]|aix4.[012].*) | |
12912 | # We only want to do this on AIX 4.2 and lower, the check | |
12913 | # below for broken collect2 doesn't work under 4.3+ | |
12914 | collect2name=`${CC} -print-prog-name=collect2` | |
12915 | if test -f "$collect2name" && \ | |
12916 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
12917 | then | |
12918 | # We have reworked collect2 | |
12919 | hardcode_direct_CXX=yes | |
12920 | else | |
12921 | # We have old collect2 | |
12922 | hardcode_direct_CXX=unsupported | |
12923 | # It fails to find uninstalled libraries when the uninstalled | |
12924 | # path is not listed in the libpath. Setting hardcode_minus_L | |
12925 | # to unsupported forces relinking | |
12926 | hardcode_minus_L_CXX=yes | |
12927 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
12928 | hardcode_libdir_separator_CXX= | |
12929 | fi | |
12930 | ;; | |
12931 | esac | |
12932 | shared_flag='-shared' | |
12933 | if test "$aix_use_runtimelinking" = yes; then | |
12934 | shared_flag="$shared_flag "'${wl}-G' | |
12935 | fi | |
12936 | else | |
12937 | # not using gcc | |
12938 | if test "$host_cpu" = ia64; then | |
12939 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
12940 | # chokes on -Wl,-G. The following line is correct: | |
12941 | shared_flag='-G' | |
12942 | else | |
12943 | if test "$aix_use_runtimelinking" = yes; then | |
12944 | shared_flag='${wl}-G' | |
12945 | else | |
12946 | shared_flag='${wl}-bM:SRE' | |
12947 | fi | |
12948 | fi | |
12949 | fi | |
12950 | ||
12951 | # It seems that -bexpall does not export symbols beginning with | |
12952 | # underscore (_), so it is better to generate a list of symbols to export. | |
12953 | always_export_symbols_CXX=yes | |
12954 | if test "$aix_use_runtimelinking" = yes; then | |
12955 | # Warning - without using the other runtime loading flags (-brtl), | |
12956 | # -berok will link without error, but may produce a broken library. | |
12957 | allow_undefined_flag_CXX='-berok' | |
12958 | # Determine the default libpath from the value encoded in an empty executable. | |
12959 | cat >conftest.$ac_ext <<_ACEOF | |
12960 | /* confdefs.h. */ | |
12961 | _ACEOF | |
12962 | cat confdefs.h >>conftest.$ac_ext | |
12963 | cat >>conftest.$ac_ext <<_ACEOF | |
12964 | /* end confdefs.h. */ | |
12965 | ||
12966 | int | |
12967 | main () | |
12968 | { | |
12969 | ||
12970 | ; | |
12971 | return 0; | |
12972 | } | |
12973 | _ACEOF | |
12974 | rm -f conftest.$ac_objext conftest$ac_exeext | |
12975 | if { (ac_try="$ac_link" | |
12976 | case "(($ac_try" in | |
12977 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
12978 | *) ac_try_echo=$ac_try;; | |
12979 | esac | |
12980 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
12981 | (eval "$ac_link") 2>conftest.er1 | |
12982 | ac_status=$? | |
12983 | grep -v '^ *+' conftest.er1 >conftest.err | |
12984 | rm -f conftest.er1 | |
12985 | cat conftest.err >&5 | |
12986 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
12987 | (exit $ac_status); } && { | |
12988 | test -z "$ac_cxx_werror_flag" || | |
12989 | test ! -s conftest.err | |
12990 | } && test -s conftest$ac_exeext && | |
12991 | $as_test_x conftest$ac_exeext; then | |
12992 | ||
12993 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
12994 | }'` | |
12995 | # Check for a 64-bit object if we didn't find anything. | |
12996 | 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; } | |
12997 | }'`; fi | |
12998 | else | |
12999 | echo "$as_me: failed program was:" >&5 | |
13000 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13001 | ||
13002 | ||
13003 | fi | |
13004 | ||
13005 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13006 | conftest$ac_exeext conftest.$ac_ext | |
13007 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13008 | ||
13009 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13010 | ||
13011 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
13012 | else | |
13013 | if test "$host_cpu" = ia64; then | |
13014 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' | |
13015 | allow_undefined_flag_CXX="-z nodefs" | |
13016 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
13017 | else | |
13018 | # Determine the default libpath from the value encoded in an empty executable. | |
13019 | cat >conftest.$ac_ext <<_ACEOF | |
13020 | /* confdefs.h. */ | |
13021 | _ACEOF | |
13022 | cat confdefs.h >>conftest.$ac_ext | |
13023 | cat >>conftest.$ac_ext <<_ACEOF | |
13024 | /* end confdefs.h. */ | |
13025 | ||
13026 | int | |
13027 | main () | |
13028 | { | |
13029 | ||
13030 | ; | |
13031 | return 0; | |
13032 | } | |
13033 | _ACEOF | |
13034 | rm -f conftest.$ac_objext conftest$ac_exeext | |
13035 | if { (ac_try="$ac_link" | |
13036 | case "(($ac_try" in | |
13037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
13038 | *) ac_try_echo=$ac_try;; | |
13039 | esac | |
13040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
13041 | (eval "$ac_link") 2>conftest.er1 | |
13042 | ac_status=$? | |
13043 | grep -v '^ *+' conftest.er1 >conftest.err | |
13044 | rm -f conftest.er1 | |
13045 | cat conftest.err >&5 | |
13046 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13047 | (exit $ac_status); } && { | |
13048 | test -z "$ac_cxx_werror_flag" || | |
13049 | test ! -s conftest.err | |
13050 | } && test -s conftest$ac_exeext && | |
13051 | $as_test_x conftest$ac_exeext; then | |
13052 | ||
13053 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
13054 | }'` | |
13055 | # Check for a 64-bit object if we didn't find anything. | |
13056 | 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; } | |
13057 | }'`; fi | |
13058 | else | |
13059 | echo "$as_me: failed program was:" >&5 | |
13060 | sed 's/^/| /' conftest.$ac_ext >&5 | |
13061 | ||
13062 | ||
13063 | fi | |
13064 | ||
13065 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
13066 | conftest$ac_exeext conftest.$ac_ext | |
13067 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
13068 | ||
13069 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" | |
13070 | # Warning - without using the other run time loading flags, | |
13071 | # -berok will link without error, but may produce a broken library. | |
13072 | no_undefined_flag_CXX=' ${wl}-bernotok' | |
13073 | allow_undefined_flag_CXX=' ${wl}-berok' | |
13074 | # Exported symbols can be pulled into shared objects from archives | |
13075 | whole_archive_flag_spec_CXX='$convenience' | |
13076 | archive_cmds_need_lc_CXX=yes | |
13077 | # This is similar to how AIX traditionally builds its shared libraries. | |
13078 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
13079 | fi | |
13080 | fi | |
13081 | ;; | |
13082 | ||
13083 | beos*) | |
13084 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
13085 | allow_undefined_flag_CXX=unsupported | |
13086 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
13087 | # support --undefined. This deserves some investigation. FIXME | |
13088 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13089 | else | |
13090 | ld_shlibs_CXX=no | |
13091 | fi | |
13092 | ;; | |
13093 | ||
13094 | chorus*) | |
13095 | case $cc_basename in | |
13096 | *) | |
13097 | # FIXME: insert proper C++ library support | |
13098 | ld_shlibs_CXX=no | |
13099 | ;; | |
13100 | esac | |
13101 | ;; | |
13102 | ||
13103 | cygwin* | mingw* | pw32*) | |
13104 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, | |
13105 | # as there is no search path for DLLs. | |
13106 | hardcode_libdir_flag_spec_CXX='-L$libdir' | |
13107 | allow_undefined_flag_CXX=unsupported | |
13108 | always_export_symbols_CXX=no | |
13109 | enable_shared_with_static_runtimes_CXX=yes | |
13110 | ||
13111 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
13112 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13113 | # If the export-symbols file already is a .def file (1st line | |
13114 | # is EXPORTS), use it as is; otherwise, prepend... | |
13115 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
13116 | cp $export_symbols $output_objdir/$soname.def; | |
13117 | else | |
13118 | echo EXPORTS > $output_objdir/$soname.def; | |
13119 | cat $export_symbols >> $output_objdir/$soname.def; | |
13120 | fi~ | |
13121 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
13122 | else | |
13123 | ld_shlibs_CXX=no | |
13124 | fi | |
13125 | ;; | |
13126 | darwin* | rhapsody*) | |
13127 | case $host_os in | |
13128 | rhapsody* | darwin1.[012]) | |
13129 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' | |
13130 | ;; | |
13131 | *) # Darwin 1.3 on | |
13132 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
13133 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
13134 | else | |
13135 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
13136 | 10.[012]) | |
13137 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
13138 | ;; | |
13139 | 10.*) | |
13140 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' | |
13141 | ;; | |
13142 | esac | |
13143 | fi | |
13144 | ;; | |
13145 | esac | |
13146 | archive_cmds_need_lc_CXX=no | |
13147 | hardcode_direct_CXX=no | |
13148 | hardcode_automatic_CXX=yes | |
13149 | hardcode_shlibpath_var_CXX=unsupported | |
13150 | whole_archive_flag_spec_CXX='' | |
13151 | link_all_deplibs_CXX=yes | |
13152 | ||
13153 | if test "$GXX" = yes ; then | |
13154 | lt_int_apple_cc_single_mod=no | |
13155 | output_verbose_link_cmd='echo' | |
13156 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then | |
13157 | lt_int_apple_cc_single_mod=yes | |
13158 | fi | |
13159 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
13160 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
13161 | else | |
13162 | archive_cmds_CXX='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
13163 | fi | |
13164 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
13165 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
13166 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then | |
13167 | 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}' | |
13168 | else | |
13169 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
13170 | fi | |
13171 | 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}' | |
13172 | else | |
13173 | case $cc_basename in | |
13174 | xlc*) | |
13175 | output_verbose_link_cmd='echo' | |
13176 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
13177 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
13178 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
13179 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
13180 | 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}' | |
13181 | ;; | |
13182 | *) | |
13183 | ld_shlibs_CXX=no | |
13184 | ;; | |
13185 | esac | |
13186 | fi | |
13187 | ;; | |
13188 | ||
13189 | dgux*) | |
13190 | case $cc_basename in | |
13191 | ec++*) | |
13192 | # FIXME: insert proper C++ library support | |
13193 | ld_shlibs_CXX=no | |
13194 | ;; | |
13195 | ghcx*) | |
13196 | # Green Hills C++ Compiler | |
13197 | # FIXME: insert proper C++ library support | |
13198 | ld_shlibs_CXX=no | |
13199 | ;; | |
13200 | *) | |
13201 | # FIXME: insert proper C++ library support | |
13202 | ld_shlibs_CXX=no | |
13203 | ;; | |
13204 | esac | |
13205 | ;; | |
13206 | freebsd[12]*) | |
13207 | # C++ shared libraries reported to be fairly broken before switch to ELF | |
13208 | ld_shlibs_CXX=no | |
13209 | ;; | |
13210 | freebsd-elf*) | |
13211 | archive_cmds_need_lc_CXX=no | |
13212 | ;; | |
13213 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
13214 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF | |
13215 | # conventions | |
13216 | ld_shlibs_CXX=yes | |
13217 | ;; | |
13218 | gnu*) | |
13219 | ;; | |
13220 | hpux9*) | |
13221 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13222 | hardcode_libdir_separator_CXX=: | |
13223 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13224 | hardcode_direct_CXX=yes | |
13225 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13226 | # but as the default | |
13227 | # location of the library. | |
13228 | ||
13229 | case $cc_basename in | |
13230 | CC*) | |
13231 | # FIXME: insert proper C++ library support | |
13232 | ld_shlibs_CXX=no | |
13233 | ;; | |
13234 | aCC*) | |
13235 | 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' | |
13236 | # Commands to make compiler produce verbose output that lists | |
13237 | # what "hidden" libraries, object files and flags are used when | |
13238 | # linking a shared library. | |
13239 | # | |
13240 | # There doesn't appear to be a way to prevent this compiler from | |
13241 | # explicitly linking system object files so we need to strip them | |
13242 | # from the output so that they don't get included in the library | |
13243 | # dependencies. | |
13244 | 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' | |
13245 | ;; | |
13246 | *) | |
13247 | if test "$GXX" = yes; then | |
13248 | 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' | |
13249 | else | |
13250 | # FIXME: insert proper C++ library support | |
13251 | ld_shlibs_CXX=no | |
13252 | fi | |
13253 | ;; | |
13254 | esac | |
13255 | ;; | |
13256 | hpux10*|hpux11*) | |
13257 | if test $with_gnu_ld = no; then | |
13258 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' | |
13259 | hardcode_libdir_separator_CXX=: | |
13260 | ||
13261 | case $host_cpu in | |
13262 | hppa*64*|ia64*) | |
13263 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' | |
13264 | ;; | |
13265 | *) | |
13266 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13267 | ;; | |
13268 | esac | |
13269 | fi | |
13270 | case $host_cpu in | |
13271 | hppa*64*|ia64*) | |
13272 | hardcode_direct_CXX=no | |
13273 | hardcode_shlibpath_var_CXX=no | |
13274 | ;; | |
13275 | *) | |
13276 | hardcode_direct_CXX=yes | |
13277 | hardcode_minus_L_CXX=yes # Not in the search PATH, | |
13278 | # but as the default | |
13279 | # location of the library. | |
13280 | ;; | |
13281 | esac | |
13282 | ||
13283 | case $cc_basename in | |
13284 | CC*) | |
13285 | # FIXME: insert proper C++ library support | |
13286 | ld_shlibs_CXX=no | |
13287 | ;; | |
13288 | aCC*) | |
13289 | case $host_cpu in | |
13290 | hppa*64*) | |
13291 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13292 | ;; | |
13293 | ia64*) | |
13294 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13295 | ;; | |
13296 | *) | |
13297 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13298 | ;; | |
13299 | esac | |
13300 | # Commands to make compiler produce verbose output that lists | |
13301 | # what "hidden" libraries, object files and flags are used when | |
13302 | # linking a shared library. | |
13303 | # | |
13304 | # There doesn't appear to be a way to prevent this compiler from | |
13305 | # explicitly linking system object files so we need to strip them | |
13306 | # from the output so that they don't get included in the library | |
13307 | # dependencies. | |
13308 | 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' | |
13309 | ;; | |
13310 | *) | |
13311 | if test "$GXX" = yes; then | |
13312 | if test $with_gnu_ld = no; then | |
13313 | case $host_cpu in | |
13314 | hppa*64*) | |
13315 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13316 | ;; | |
13317 | ia64*) | |
13318 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13319 | ;; | |
13320 | *) | |
13321 | 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' | |
13322 | ;; | |
13323 | esac | |
13324 | fi | |
13325 | else | |
13326 | # FIXME: insert proper C++ library support | |
13327 | ld_shlibs_CXX=no | |
13328 | fi | |
13329 | ;; | |
13330 | esac | |
13331 | ;; | |
13332 | interix3*) | |
13333 | hardcode_direct_CXX=no | |
13334 | hardcode_shlibpath_var_CXX=no | |
13335 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13336 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13337 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
13338 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
13339 | # default) and relocated if they conflict, which is a slow very memory | |
13340 | # consuming and fragmenting process. To avoid this, we pick a random, | |
13341 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
13342 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
13343 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
13344 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
13345 | ;; | |
13346 | irix5* | irix6*) | |
13347 | case $cc_basename in | |
13348 | CC*) | |
13349 | # SGI C++ | |
13350 | 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 ${output_objdir}/so_locations -o $lib' | |
13351 | ||
13352 | # Archives containing C++ object files must be created using | |
13353 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is | |
13354 | # necessary to make sure instantiated templates are included | |
13355 | # in the archive. | |
13356 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' | |
13357 | ;; | |
13358 | *) | |
13359 | if test "$GXX" = yes; then | |
13360 | if test "$with_gnu_ld" = no; then | |
13361 | 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}${output_objdir}/so_locations -o $lib' | |
13362 | else | |
13363 | 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' | |
13364 | fi | |
13365 | fi | |
13366 | link_all_deplibs_CXX=yes | |
13367 | ;; | |
13368 | esac | |
13369 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13370 | hardcode_libdir_separator_CXX=: | |
13371 | ;; | |
13372 | linux*) | |
13373 | case $cc_basename in | |
13374 | KCC*) | |
13375 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13376 | ||
13377 | # KCC will only create a shared library if the output file | |
13378 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13379 | # to its proper name (with version) after linking. | |
13380 | 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' | |
13381 | 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' | |
13382 | # Commands to make compiler produce verbose output that lists | |
13383 | # what "hidden" libraries, object files and flags are used when | |
13384 | # linking a shared library. | |
13385 | # | |
13386 | # There doesn't appear to be a way to prevent this compiler from | |
13387 | # explicitly linking system object files so we need to strip them | |
13388 | # from the output so that they don't get included in the library | |
13389 | # dependencies. | |
13390 | 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' | |
13391 | ||
13392 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' | |
13393 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13394 | ||
13395 | # Archives containing C++ object files must be created using | |
13396 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
13397 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
13398 | ;; | |
13399 | icpc*) | |
13400 | # Intel C++ | |
13401 | with_gnu_ld=yes | |
13402 | # version 8.0 and above of icpc choke on multiply defined symbols | |
13403 | # if we add $predep_objects and $postdep_objects, however 7.1 and | |
13404 | # earlier do not add the objects themselves. | |
13405 | case `$CC -V 2>&1` in | |
13406 | *"Version 7."*) | |
13407 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13408 | 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' | |
13409 | ;; | |
13410 | *) # Version 8.0 or newer | |
13411 | tmp_idyn= | |
13412 | case $host_cpu in | |
13413 | ia64*) tmp_idyn=' -i_dynamic';; | |
13414 | esac | |
13415 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13416 | archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
13417 | ;; | |
13418 | esac | |
13419 | archive_cmds_need_lc_CXX=no | |
13420 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13421 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13422 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' | |
13423 | ;; | |
b32b8144 | 13424 | pgc++*) |
7c673cae FG |
13425 | # Portland Group C++ compiler |
13426 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' | |
13427 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' | |
13428 | ||
13429 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' | |
13430 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' | |
13431 | whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
13432 | ;; | |
13433 | cxx*) | |
13434 | # Compaq C++ | |
13435 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
13436 | 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' | |
13437 | ||
13438 | runpath_var=LD_RUN_PATH | |
13439 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13440 | hardcode_libdir_separator_CXX=: | |
13441 | ||
13442 | # Commands to make compiler produce verbose output that lists | |
13443 | # what "hidden" libraries, object files and flags are used when | |
13444 | # linking a shared library. | |
13445 | # | |
13446 | # There doesn't appear to be a way to prevent this compiler from | |
13447 | # explicitly linking system object files so we need to strip them | |
13448 | # from the output so that they don't get included in the library | |
13449 | # dependencies. | |
13450 | 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' | |
13451 | ;; | |
13452 | esac | |
13453 | ;; | |
13454 | lynxos*) | |
13455 | # FIXME: insert proper C++ library support | |
13456 | ld_shlibs_CXX=no | |
13457 | ;; | |
13458 | m88k*) | |
13459 | # FIXME: insert proper C++ library support | |
13460 | ld_shlibs_CXX=no | |
13461 | ;; | |
13462 | mvs*) | |
13463 | case $cc_basename in | |
13464 | cxx*) | |
13465 | # FIXME: insert proper C++ library support | |
13466 | ld_shlibs_CXX=no | |
13467 | ;; | |
13468 | *) | |
13469 | # FIXME: insert proper C++ library support | |
13470 | ld_shlibs_CXX=no | |
13471 | ;; | |
13472 | esac | |
13473 | ;; | |
13474 | netbsd*) | |
13475 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
13476 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' | |
13477 | wlarc= | |
13478 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13479 | hardcode_direct_CXX=yes | |
13480 | hardcode_shlibpath_var_CXX=no | |
13481 | fi | |
13482 | # Workaround some broken pre-1.5 toolchains | |
13483 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' | |
13484 | ;; | |
13485 | openbsd2*) | |
13486 | # C++ shared libraries are fairly broken | |
13487 | ld_shlibs_CXX=no | |
13488 | ;; | |
13489 | openbsd*) | |
13490 | hardcode_direct_CXX=yes | |
13491 | hardcode_shlibpath_var_CXX=no | |
13492 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' | |
13493 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13494 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
13495 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' | |
13496 | export_dynamic_flag_spec_CXX='${wl}-E' | |
13497 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
13498 | fi | |
13499 | output_verbose_link_cmd='echo' | |
13500 | ;; | |
13501 | osf3*) | |
13502 | case $cc_basename in | |
13503 | KCC*) | |
13504 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13505 | ||
13506 | # KCC will only create a shared library if the output file | |
13507 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13508 | # to its proper name (with version) after linking. | |
13509 | 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' | |
13510 | ||
13511 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13512 | hardcode_libdir_separator_CXX=: | |
13513 | ||
13514 | # Archives containing C++ object files must be created using | |
13515 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. | |
13516 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' | |
13517 | ||
13518 | ;; | |
13519 | RCC*) | |
13520 | # Rational C++ 2.4.1 | |
13521 | # FIXME: insert proper C++ library support | |
13522 | ld_shlibs_CXX=no | |
13523 | ;; | |
13524 | cxx*) | |
13525 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13526 | 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 ${output_objdir}/so_locations -o $lib' | |
13527 | ||
13528 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13529 | hardcode_libdir_separator_CXX=: | |
13530 | ||
13531 | # Commands to make compiler produce verbose output that lists | |
13532 | # what "hidden" libraries, object files and flags are used when | |
13533 | # linking a shared library. | |
13534 | # | |
13535 | # There doesn't appear to be a way to prevent this compiler from | |
13536 | # explicitly linking system object files so we need to strip them | |
13537 | # from the output so that they don't get included in the library | |
13538 | # dependencies. | |
13539 | 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' | |
13540 | ;; | |
13541 | *) | |
13542 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13543 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13544 | 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}${output_objdir}/so_locations -o $lib' | |
13545 | ||
13546 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13547 | hardcode_libdir_separator_CXX=: | |
13548 | ||
13549 | # Commands to make compiler produce verbose output that lists | |
13550 | # what "hidden" libraries, object files and flags are used when | |
13551 | # linking a shared library. | |
13552 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
13553 | ||
13554 | else | |
13555 | # FIXME: insert proper C++ library support | |
13556 | ld_shlibs_CXX=no | |
13557 | fi | |
13558 | ;; | |
13559 | esac | |
13560 | ;; | |
13561 | osf4* | osf5*) | |
13562 | case $cc_basename in | |
13563 | KCC*) | |
13564 | # Kuck and Associates, Inc. (KAI) C++ Compiler | |
13565 | ||
13566 | # KCC will only create a shared library if the output file | |
13567 | # ends with ".so" (or ".sl" for HP-UX), so rename the library | |
13568 | # to its proper name (with version) after linking. | |
13569 | 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' | |
13570 | ||
13571 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' | |
13572 | hardcode_libdir_separator_CXX=: | |
13573 | ||
13574 | # Archives containing C++ object files must be created using | |
13575 | # the KAI C++ compiler. | |
13576 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' | |
13577 | ;; | |
13578 | RCC*) | |
13579 | # Rational C++ 2.4.1 | |
13580 | # FIXME: insert proper C++ library support | |
13581 | ld_shlibs_CXX=no | |
13582 | ;; | |
13583 | cxx*) | |
13584 | allow_undefined_flag_CXX=' -expect_unresolved \*' | |
13585 | 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 ${output_objdir}/so_locations -o $lib' | |
13586 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ | |
13587 | echo "-hidden">> $lib.exp~ | |
13588 | $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~ | |
13589 | $rm $lib.exp' | |
13590 | ||
13591 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' | |
13592 | hardcode_libdir_separator_CXX=: | |
13593 | ||
13594 | # Commands to make compiler produce verbose output that lists | |
13595 | # what "hidden" libraries, object files and flags are used when | |
13596 | # linking a shared library. | |
13597 | # | |
13598 | # There doesn't appear to be a way to prevent this compiler from | |
13599 | # explicitly linking system object files so we need to strip them | |
13600 | # from the output so that they don't get included in the library | |
13601 | # dependencies. | |
13602 | 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' | |
13603 | ;; | |
13604 | *) | |
13605 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13606 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' | |
13607 | 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}${output_objdir}/so_locations -o $lib' | |
13608 | ||
13609 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' | |
13610 | hardcode_libdir_separator_CXX=: | |
13611 | ||
13612 | # Commands to make compiler produce verbose output that lists | |
13613 | # what "hidden" libraries, object files and flags are used when | |
13614 | # linking a shared library. | |
13615 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' | |
13616 | ||
13617 | else | |
13618 | # FIXME: insert proper C++ library support | |
13619 | ld_shlibs_CXX=no | |
13620 | fi | |
13621 | ;; | |
13622 | esac | |
13623 | ;; | |
13624 | psos*) | |
13625 | # FIXME: insert proper C++ library support | |
13626 | ld_shlibs_CXX=no | |
13627 | ;; | |
13628 | sunos4*) | |
13629 | case $cc_basename in | |
13630 | CC*) | |
13631 | # Sun C++ 4.x | |
13632 | # FIXME: insert proper C++ library support | |
13633 | ld_shlibs_CXX=no | |
13634 | ;; | |
13635 | lcc*) | |
13636 | # Lucid | |
13637 | # FIXME: insert proper C++ library support | |
13638 | ld_shlibs_CXX=no | |
13639 | ;; | |
13640 | *) | |
13641 | # FIXME: insert proper C++ library support | |
13642 | ld_shlibs_CXX=no | |
13643 | ;; | |
13644 | esac | |
13645 | ;; | |
13646 | solaris*) | |
13647 | case $cc_basename in | |
13648 | CC*) | |
13649 | # Sun C++ 4.2, 5.x and Centerline C++ | |
13650 | archive_cmds_need_lc_CXX=yes | |
13651 | no_undefined_flag_CXX=' -zdefs' | |
13652 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' | |
13653 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
13654 | $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
13655 | ||
13656 | hardcode_libdir_flag_spec_CXX='-R$libdir' | |
13657 | hardcode_shlibpath_var_CXX=no | |
13658 | case $host_os in | |
13659 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
13660 | *) | |
13661 | # The C++ compiler is used as linker so we must use $wl | |
13662 | # flag to pass the commands to the underlying system | |
13663 | # linker. We must also pass each convience library through | |
13664 | # to the system linker between allextract/defaultextract. | |
13665 | # The C++ compiler will combine linker options so we | |
13666 | # cannot just pass the convience library names through | |
13667 | # without $wl. | |
13668 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
13669 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' | |
13670 | ;; | |
13671 | esac | |
13672 | link_all_deplibs_CXX=yes | |
13673 | ||
13674 | output_verbose_link_cmd='echo' | |
13675 | ||
13676 | # Archives containing C++ object files must be created using | |
13677 | # "CC -xar", where "CC" is the Sun C++ compiler. This is | |
13678 | # necessary to make sure instantiated templates are included | |
13679 | # in the archive. | |
13680 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' | |
13681 | ;; | |
13682 | gcx*) | |
13683 | # Green Hills C++ Compiler | |
13684 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13685 | ||
13686 | # The C++ compiler must be used to create the archive. | |
13687 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' | |
13688 | ;; | |
13689 | *) | |
13690 | # GNU C++ compiler with Solaris linker | |
13691 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then | |
13692 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' | |
13693 | if $CC --version | grep -v '^2\.7' > /dev/null; then | |
13694 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13695 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
13696 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
13697 | ||
13698 | # Commands to make compiler produce verbose output that lists | |
13699 | # what "hidden" libraries, object files and flags are used when | |
13700 | # linking a shared library. | |
13701 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
13702 | else | |
13703 | # g++ 2.7 appears to require `-G' NOT `-shared' on this | |
13704 | # platform. | |
13705 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' | |
13706 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
13707 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' | |
13708 | ||
13709 | # Commands to make compiler produce verbose output that lists | |
13710 | # what "hidden" libraries, object files and flags are used when | |
13711 | # linking a shared library. | |
13712 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" | |
13713 | fi | |
13714 | ||
13715 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' | |
13716 | fi | |
13717 | ;; | |
13718 | esac | |
13719 | ;; | |
13720 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) | |
13721 | no_undefined_flag_CXX='${wl}-z,text' | |
13722 | archive_cmds_need_lc_CXX=no | |
13723 | hardcode_shlibpath_var_CXX=no | |
13724 | runpath_var='LD_RUN_PATH' | |
13725 | ||
13726 | case $cc_basename in | |
13727 | CC*) | |
13728 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13729 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13730 | ;; | |
13731 | *) | |
13732 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13733 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13734 | ;; | |
13735 | esac | |
13736 | ;; | |
13737 | sysv5* | sco3.2v5* | sco5v6*) | |
13738 | # Note: We can NOT use -z defs as we might desire, because we do not | |
13739 | # link with -lc, and that would cause any symbols used from libc to | |
13740 | # always be unresolved, which means just about no library would | |
13741 | # ever link correctly. If we're not using GNU ld we use -z text | |
13742 | # though, which does catch some bad symbols but isn't as heavy-handed | |
13743 | # as -z defs. | |
13744 | # For security reasons, it is highly recommended that you always | |
13745 | # use absolute paths for naming shared libraries, and exclude the | |
13746 | # DT_RUNPATH tag from executables and libraries. But doing so | |
13747 | # requires that you compile everything twice, which is a pain. | |
13748 | # So that behaviour is only enabled if SCOABSPATH is set to a | |
13749 | # non-empty value in the environment. Most likely only useful for | |
13750 | # creating official distributions of packages. | |
13751 | # This is a hack until libtool officially supports absolute path | |
13752 | # names for shared libraries. | |
13753 | no_undefined_flag_CXX='${wl}-z,text' | |
13754 | allow_undefined_flag_CXX='${wl}-z,nodefs' | |
13755 | archive_cmds_need_lc_CXX=no | |
13756 | hardcode_shlibpath_var_CXX=no | |
13757 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
13758 | hardcode_libdir_separator_CXX=':' | |
13759 | link_all_deplibs_CXX=yes | |
13760 | export_dynamic_flag_spec_CXX='${wl}-Bexport' | |
13761 | runpath_var='LD_RUN_PATH' | |
13762 | ||
13763 | case $cc_basename in | |
13764 | CC*) | |
13765 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13766 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13767 | ;; | |
13768 | *) | |
13769 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13770 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
13771 | ;; | |
13772 | esac | |
13773 | ;; | |
13774 | tandem*) | |
13775 | case $cc_basename in | |
13776 | NCC*) | |
13777 | # NonStop-UX NCC 3.20 | |
13778 | # FIXME: insert proper C++ library support | |
13779 | ld_shlibs_CXX=no | |
13780 | ;; | |
13781 | *) | |
13782 | # FIXME: insert proper C++ library support | |
13783 | ld_shlibs_CXX=no | |
13784 | ;; | |
13785 | esac | |
13786 | ;; | |
13787 | vxworks*) | |
13788 | # FIXME: insert proper C++ library support | |
13789 | ld_shlibs_CXX=no | |
13790 | ;; | |
13791 | *) | |
13792 | # FIXME: insert proper C++ library support | |
13793 | ld_shlibs_CXX=no | |
13794 | ;; | |
13795 | esac | |
13796 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
13797 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | |
13798 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
13799 | ||
13800 | GCC_CXX="$GXX" | |
13801 | LD_CXX="$LD" | |
13802 | ||
13803 | ## CAVEAT EMPTOR: | |
13804 | ## There is no encapsulation within the following macros, do not change | |
13805 | ## the running order or otherwise move them around unless you know exactly | |
13806 | ## what you are doing... | |
13807 | ||
13808 | cat > conftest.$ac_ext <<EOF | |
13809 | class Foo | |
13810 | { | |
13811 | public: | |
13812 | Foo (void) { a = 0; } | |
13813 | private: | |
13814 | int a; | |
13815 | }; | |
13816 | EOF | |
13817 | ||
13818 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
13819 | (eval $ac_compile) 2>&5 | |
13820 | ac_status=$? | |
13821 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
13822 | (exit $ac_status); }; then | |
13823 | # Parse the compiler output and extract the necessary | |
13824 | # objects, libraries and library flags. | |
13825 | ||
13826 | # Sentinel used to keep track of whether or not we are before | |
13827 | # the conftest object file. | |
13828 | pre_test_object_deps_done=no | |
13829 | ||
13830 | # The `*' in the case matches for architectures that use `case' in | |
13831 | # $output_verbose_cmd can trigger glob expansion during the loop | |
13832 | # eval without this substitution. | |
13833 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` | |
13834 | ||
13835 | for p in `eval $output_verbose_link_cmd`; do | |
13836 | case $p in | |
13837 | ||
13838 | -L* | -R* | -l*) | |
13839 | # Some compilers place space between "-{L,R}" and the path. | |
13840 | # Remove the space. | |
13841 | if test $p = "-L" \ | |
13842 | || test $p = "-R"; then | |
13843 | prev=$p | |
13844 | continue | |
13845 | else | |
13846 | prev= | |
13847 | fi | |
13848 | ||
13849 | if test "$pre_test_object_deps_done" = no; then | |
13850 | case $p in | |
13851 | -L* | -R*) | |
13852 | # Internal compiler library paths should come after those | |
13853 | # provided the user. The postdeps already come after the | |
13854 | # user supplied libs so there is no need to process them. | |
13855 | if test -z "$compiler_lib_search_path_CXX"; then | |
13856 | compiler_lib_search_path_CXX="${prev}${p}" | |
13857 | else | |
13858 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" | |
13859 | fi | |
13860 | ;; | |
13861 | # The "-l" case would never come before the object being | |
13862 | # linked, so don't bother handling this case. | |
13863 | esac | |
13864 | else | |
13865 | if test -z "$postdeps_CXX"; then | |
13866 | postdeps_CXX="${prev}${p}" | |
13867 | else | |
13868 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" | |
13869 | fi | |
13870 | fi | |
13871 | ;; | |
13872 | ||
13873 | *.$objext) | |
13874 | # This assumes that the test object file only shows up | |
13875 | # once in the compiler output. | |
13876 | if test "$p" = "conftest.$objext"; then | |
13877 | pre_test_object_deps_done=yes | |
13878 | continue | |
13879 | fi | |
13880 | ||
13881 | if test "$pre_test_object_deps_done" = no; then | |
13882 | if test -z "$predep_objects_CXX"; then | |
13883 | predep_objects_CXX="$p" | |
13884 | else | |
13885 | predep_objects_CXX="$predep_objects_CXX $p" | |
13886 | fi | |
13887 | else | |
13888 | if test -z "$postdep_objects_CXX"; then | |
13889 | postdep_objects_CXX="$p" | |
13890 | else | |
13891 | postdep_objects_CXX="$postdep_objects_CXX $p" | |
13892 | fi | |
13893 | fi | |
13894 | ;; | |
13895 | ||
13896 | *) ;; # Ignore the rest. | |
13897 | ||
13898 | esac | |
13899 | done | |
13900 | ||
13901 | # Clean up. | |
13902 | rm -f a.out a.exe | |
13903 | else | |
13904 | echo "libtool.m4: error: problem compiling CXX test program" | |
13905 | fi | |
13906 | ||
13907 | $rm -f confest.$objext | |
13908 | ||
13909 | # PORTME: override above test on systems where it is broken | |
13910 | case $host_os in | |
13911 | interix3*) | |
13912 | # Interix 3.5 installs completely hosed .la files for C++, so rather than | |
13913 | # hack all around it, let's just trust "g++" to DTRT. | |
13914 | predep_objects_CXX= | |
13915 | postdep_objects_CXX= | |
13916 | postdeps_CXX= | |
13917 | ;; | |
13918 | ||
13919 | solaris*) | |
13920 | case $cc_basename in | |
13921 | CC*) | |
13922 | # Adding this requires a known-good setup of shared libraries for | |
13923 | # Sun compiler versions before 5.6, else PIC objects from an old | |
13924 | # archive will be linked into the output, leading to subtle bugs. | |
13925 | postdeps_CXX='-lCstd -lCrun' | |
13926 | ;; | |
13927 | esac | |
13928 | ;; | |
13929 | esac | |
13930 | ||
13931 | ||
13932 | case " $postdeps_CXX " in | |
13933 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; | |
13934 | esac | |
13935 | ||
13936 | lt_prog_compiler_wl_CXX= | |
13937 | lt_prog_compiler_pic_CXX= | |
13938 | lt_prog_compiler_static_CXX= | |
13939 | ||
13940 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
13941 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
13942 | ||
13943 | # C++ specific cases for pic, static, wl, etc. | |
13944 | if test "$GXX" = yes; then | |
13945 | lt_prog_compiler_wl_CXX='-Wl,' | |
13946 | lt_prog_compiler_static_CXX='-static' | |
13947 | ||
13948 | case $host_os in | |
13949 | aix*) | |
13950 | # All AIX code is PIC. | |
13951 | if test "$host_cpu" = ia64; then | |
13952 | # AIX 5 now supports IA64 processor | |
13953 | lt_prog_compiler_static_CXX='-Bstatic' | |
13954 | fi | |
13955 | ;; | |
13956 | amigaos*) | |
13957 | # FIXME: we need at least 68020 code to build shared libraries, but | |
13958 | # adding the `-m68020' flag to GCC prevents building anything better, | |
13959 | # like `-m68040'. | |
13960 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' | |
13961 | ;; | |
13962 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
13963 | # PIC is the default for these OSes. | |
13964 | ;; | |
13965 | mingw* | os2* | pw32*) | |
13966 | # This hack is so that the source file can tell whether it is being | |
13967 | # built for inclusion in a dll (and should export symbols for example). | |
13968 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' | |
13969 | ;; | |
13970 | darwin* | rhapsody*) | |
13971 | # PIC is the default on this platform | |
13972 | # Common symbols not allowed in MH_DYLIB files | |
13973 | lt_prog_compiler_pic_CXX='-fno-common' | |
13974 | ;; | |
13975 | *djgpp*) | |
13976 | # DJGPP does not support shared libraries at all | |
13977 | lt_prog_compiler_pic_CXX= | |
13978 | ;; | |
13979 | interix3*) | |
13980 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
13981 | # Instead, we relocate shared libraries at runtime. | |
13982 | ;; | |
13983 | sysv4*MP*) | |
13984 | if test -d /usr/nec; then | |
13985 | lt_prog_compiler_pic_CXX=-Kconform_pic | |
13986 | fi | |
13987 | ;; | |
13988 | hpux*) | |
13989 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
13990 | # not for PA HP-UX. | |
13991 | case $host_cpu in | |
13992 | hppa*64*|ia64*) | |
13993 | ;; | |
13994 | *) | |
13995 | lt_prog_compiler_pic_CXX='-fPIC' | |
13996 | ;; | |
13997 | esac | |
13998 | ;; | |
13999 | *) | |
14000 | lt_prog_compiler_pic_CXX='-fPIC' | |
14001 | ;; | |
14002 | esac | |
14003 | else | |
14004 | case $host_os in | |
14005 | aix4* | aix5*) | |
14006 | # All AIX code is PIC. | |
14007 | if test "$host_cpu" = ia64; then | |
14008 | # AIX 5 now supports IA64 processor | |
14009 | lt_prog_compiler_static_CXX='-Bstatic' | |
14010 | else | |
14011 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' | |
14012 | fi | |
14013 | ;; | |
14014 | chorus*) | |
14015 | case $cc_basename in | |
14016 | cxch68*) | |
14017 | # Green Hills C++ Compiler | |
14018 | # _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" | |
14019 | ;; | |
14020 | esac | |
14021 | ;; | |
14022 | darwin*) | |
14023 | # PIC is the default on this platform | |
14024 | # Common symbols not allowed in MH_DYLIB files | |
14025 | case $cc_basename in | |
14026 | xlc*) | |
14027 | lt_prog_compiler_pic_CXX='-qnocommon' | |
14028 | lt_prog_compiler_wl_CXX='-Wl,' | |
14029 | ;; | |
14030 | esac | |
14031 | ;; | |
14032 | dgux*) | |
14033 | case $cc_basename in | |
14034 | ec++*) | |
14035 | lt_prog_compiler_pic_CXX='-KPIC' | |
14036 | ;; | |
14037 | ghcx*) | |
14038 | # Green Hills C++ Compiler | |
14039 | lt_prog_compiler_pic_CXX='-pic' | |
14040 | ;; | |
14041 | *) | |
14042 | ;; | |
14043 | esac | |
14044 | ;; | |
14045 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
14046 | # FreeBSD uses GNU C++ | |
14047 | ;; | |
14048 | hpux9* | hpux10* | hpux11*) | |
14049 | case $cc_basename in | |
14050 | CC*) | |
14051 | lt_prog_compiler_wl_CXX='-Wl,' | |
14052 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14053 | if test "$host_cpu" != ia64; then | |
14054 | lt_prog_compiler_pic_CXX='+Z' | |
14055 | fi | |
14056 | ;; | |
14057 | aCC*) | |
14058 | lt_prog_compiler_wl_CXX='-Wl,' | |
14059 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' | |
14060 | case $host_cpu in | |
14061 | hppa*64*|ia64*) | |
14062 | # +Z the default | |
14063 | ;; | |
14064 | *) | |
14065 | lt_prog_compiler_pic_CXX='+Z' | |
14066 | ;; | |
14067 | esac | |
14068 | ;; | |
14069 | *) | |
14070 | ;; | |
14071 | esac | |
14072 | ;; | |
14073 | interix*) | |
14074 | # This is c89, which is MS Visual C++ (no shared libs) | |
14075 | # Anyone wants to do a port? | |
14076 | ;; | |
14077 | irix5* | irix6* | nonstopux*) | |
14078 | case $cc_basename in | |
14079 | CC*) | |
14080 | lt_prog_compiler_wl_CXX='-Wl,' | |
14081 | lt_prog_compiler_static_CXX='-non_shared' | |
14082 | # CC pic flag -KPIC is the default. | |
14083 | ;; | |
14084 | *) | |
14085 | ;; | |
14086 | esac | |
14087 | ;; | |
14088 | linux*) | |
14089 | case $cc_basename in | |
14090 | KCC*) | |
14091 | # KAI C++ Compiler | |
14092 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14093 | lt_prog_compiler_pic_CXX='-fPIC' | |
14094 | ;; | |
14095 | icpc* | ecpc*) | |
14096 | # Intel C++ | |
14097 | lt_prog_compiler_wl_CXX='-Wl,' | |
14098 | lt_prog_compiler_pic_CXX='-KPIC' | |
14099 | lt_prog_compiler_static_CXX='-static' | |
14100 | ;; | |
b32b8144 | 14101 | pgc++*) |
7c673cae FG |
14102 | # Portland Group C++ compiler. |
14103 | lt_prog_compiler_wl_CXX='-Wl,' | |
14104 | lt_prog_compiler_pic_CXX='-fpic' | |
14105 | lt_prog_compiler_static_CXX='-Bstatic' | |
14106 | ;; | |
14107 | cxx*) | |
14108 | # Compaq C++ | |
14109 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14110 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14111 | lt_prog_compiler_pic_CXX= | |
14112 | lt_prog_compiler_static_CXX='-non_shared' | |
14113 | ;; | |
14114 | *) | |
14115 | ;; | |
14116 | esac | |
14117 | ;; | |
14118 | lynxos*) | |
14119 | ;; | |
14120 | m88k*) | |
14121 | ;; | |
14122 | mvs*) | |
14123 | case $cc_basename in | |
14124 | cxx*) | |
14125 | lt_prog_compiler_pic_CXX='-W c,exportall' | |
14126 | ;; | |
14127 | *) | |
14128 | ;; | |
14129 | esac | |
14130 | ;; | |
14131 | netbsd*) | |
14132 | ;; | |
14133 | osf3* | osf4* | osf5*) | |
14134 | case $cc_basename in | |
14135 | KCC*) | |
14136 | lt_prog_compiler_wl_CXX='--backend -Wl,' | |
14137 | ;; | |
14138 | RCC*) | |
14139 | # Rational C++ 2.4.1 | |
14140 | lt_prog_compiler_pic_CXX='-pic' | |
14141 | ;; | |
14142 | cxx*) | |
14143 | # Digital/Compaq C++ | |
14144 | lt_prog_compiler_wl_CXX='-Wl,' | |
14145 | # Make sure the PIC flag is empty. It appears that all Alpha | |
14146 | # Linux and Compaq Tru64 Unix objects are PIC. | |
14147 | lt_prog_compiler_pic_CXX= | |
14148 | lt_prog_compiler_static_CXX='-non_shared' | |
14149 | ;; | |
14150 | *) | |
14151 | ;; | |
14152 | esac | |
14153 | ;; | |
14154 | psos*) | |
14155 | ;; | |
14156 | solaris*) | |
14157 | case $cc_basename in | |
14158 | CC*) | |
14159 | # Sun C++ 4.2, 5.x and Centerline C++ | |
14160 | lt_prog_compiler_pic_CXX='-KPIC' | |
14161 | lt_prog_compiler_static_CXX='-Bstatic' | |
14162 | lt_prog_compiler_wl_CXX='-Qoption ld ' | |
14163 | ;; | |
14164 | gcx*) | |
14165 | # Green Hills C++ Compiler | |
14166 | lt_prog_compiler_pic_CXX='-PIC' | |
14167 | ;; | |
14168 | *) | |
14169 | ;; | |
14170 | esac | |
14171 | ;; | |
14172 | sunos4*) | |
14173 | case $cc_basename in | |
14174 | CC*) | |
14175 | # Sun C++ 4.x | |
14176 | lt_prog_compiler_pic_CXX='-pic' | |
14177 | lt_prog_compiler_static_CXX='-Bstatic' | |
14178 | ;; | |
14179 | lcc*) | |
14180 | # Lucid | |
14181 | lt_prog_compiler_pic_CXX='-pic' | |
14182 | ;; | |
14183 | *) | |
14184 | ;; | |
14185 | esac | |
14186 | ;; | |
14187 | tandem*) | |
14188 | case $cc_basename in | |
14189 | NCC*) | |
14190 | # NonStop-UX NCC 3.20 | |
14191 | lt_prog_compiler_pic_CXX='-KPIC' | |
14192 | ;; | |
14193 | *) | |
14194 | ;; | |
14195 | esac | |
14196 | ;; | |
14197 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
14198 | case $cc_basename in | |
14199 | CC*) | |
14200 | lt_prog_compiler_wl_CXX='-Wl,' | |
14201 | lt_prog_compiler_pic_CXX='-KPIC' | |
14202 | lt_prog_compiler_static_CXX='-Bstatic' | |
14203 | ;; | |
14204 | esac | |
14205 | ;; | |
14206 | vxworks*) | |
14207 | ;; | |
14208 | *) | |
14209 | lt_prog_compiler_can_build_shared_CXX=no | |
14210 | ;; | |
14211 | esac | |
14212 | fi | |
14213 | ||
14214 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 | |
14215 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } | |
14216 | ||
14217 | # | |
14218 | # Check to make sure the PIC flag actually works. | |
14219 | # | |
14220 | if test -n "$lt_prog_compiler_pic_CXX"; then | |
14221 | ||
14222 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 | |
14223 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } | |
14224 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then | |
14225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14226 | else | |
14227 | lt_prog_compiler_pic_works_CXX=no | |
14228 | ac_outfile=conftest.$ac_objext | |
14229 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14230 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" | |
14231 | # Insert the option either (1) after the last *FLAGS variable, or | |
14232 | # (2) before a word containing "conftest.", or (3) at the end. | |
14233 | # Note that $ac_compile itself does not contain backslashes and begins | |
14234 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14235 | # The option is referenced via a variable to avoid confusing sed. | |
14236 | lt_compile=`echo "$ac_compile" | $SED \ | |
14237 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14238 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14239 | -e 's:$: $lt_compiler_flag:'` | |
14240 | (eval echo "\"\$as_me:14240: $lt_compile\"" >&5) | |
14241 | (eval "$lt_compile" 2>conftest.err) | |
14242 | ac_status=$? | |
14243 | cat conftest.err >&5 | |
14244 | echo "$as_me:14244: \$? = $ac_status" >&5 | |
14245 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
14246 | # The compiler can only warn and ignore the option if not recognized | |
14247 | # So say no if there are warnings other than the usual output. | |
14248 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
14249 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14250 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
14251 | lt_prog_compiler_pic_works_CXX=yes | |
14252 | fi | |
14253 | fi | |
14254 | $rm conftest* | |
14255 | ||
14256 | fi | |
14257 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 | |
14258 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } | |
14259 | ||
14260 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then | |
14261 | case $lt_prog_compiler_pic_CXX in | |
14262 | "" | " "*) ;; | |
14263 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; | |
14264 | esac | |
14265 | else | |
14266 | lt_prog_compiler_pic_CXX= | |
14267 | lt_prog_compiler_can_build_shared_CXX=no | |
14268 | fi | |
14269 | ||
14270 | fi | |
14271 | case $host_os in | |
14272 | # For platforms which do not support PIC, -DPIC is meaningless: | |
14273 | *djgpp*) | |
14274 | lt_prog_compiler_pic_CXX= | |
14275 | ;; | |
14276 | *) | |
14277 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" | |
14278 | ;; | |
14279 | esac | |
14280 | ||
14281 | # | |
14282 | # Check to make sure the static flag actually works. | |
14283 | # | |
14284 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" | |
14285 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
14286 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
14287 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then | |
14288 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14289 | else | |
14290 | lt_prog_compiler_static_works_CXX=no | |
14291 | save_LDFLAGS="$LDFLAGS" | |
14292 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
14293 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
14294 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
14295 | # The linker can only warn and ignore the option if not recognized | |
14296 | # So say no if there are warnings | |
14297 | if test -s conftest.err; then | |
14298 | # Append any errors to the config.log. | |
14299 | cat conftest.err 1>&5 | |
14300 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
14301 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
14302 | if diff conftest.exp conftest.er2 >/dev/null; then | |
14303 | lt_prog_compiler_static_works_CXX=yes | |
14304 | fi | |
14305 | else | |
14306 | lt_prog_compiler_static_works_CXX=yes | |
14307 | fi | |
14308 | fi | |
14309 | $rm conftest* | |
14310 | LDFLAGS="$save_LDFLAGS" | |
14311 | ||
14312 | fi | |
14313 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 | |
14314 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } | |
14315 | ||
14316 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then | |
14317 | : | |
14318 | else | |
14319 | lt_prog_compiler_static_CXX= | |
14320 | fi | |
14321 | ||
14322 | ||
14323 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
14324 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
14325 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then | |
14326 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
14327 | else | |
14328 | lt_cv_prog_compiler_c_o_CXX=no | |
14329 | $rm -r conftest 2>/dev/null | |
14330 | mkdir conftest | |
14331 | cd conftest | |
14332 | mkdir out | |
14333 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14334 | ||
14335 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
14336 | # Insert the option either (1) after the last *FLAGS variable, or | |
14337 | # (2) before a word containing "conftest.", or (3) at the end. | |
14338 | # Note that $ac_compile itself does not contain backslashes and begins | |
14339 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
14340 | lt_compile=`echo "$ac_compile" | $SED \ | |
14341 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
14342 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
14343 | -e 's:$: $lt_compiler_flag:'` | |
14344 | (eval echo "\"\$as_me:14344: $lt_compile\"" >&5) | |
14345 | (eval "$lt_compile" 2>out/conftest.err) | |
14346 | ac_status=$? | |
14347 | cat out/conftest.err >&5 | |
14348 | echo "$as_me:14348: \$? = $ac_status" >&5 | |
14349 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
14350 | then | |
14351 | # The compiler can only warn and ignore the option if not recognized | |
14352 | # So say no if there are warnings | |
14353 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
14354 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
14355 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
14356 | lt_cv_prog_compiler_c_o_CXX=yes | |
14357 | fi | |
14358 | fi | |
14359 | chmod u+w . 2>&5 | |
14360 | $rm conftest* | |
14361 | # SGI C++ compiler will create directory out/ii_files/ for | |
14362 | # template instantiation | |
14363 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
14364 | $rm out/* && rmdir out | |
14365 | cd .. | |
14366 | rmdir conftest | |
14367 | $rm conftest* | |
14368 | ||
14369 | fi | |
14370 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 | |
14371 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } | |
14372 | ||
14373 | ||
14374 | hard_links="nottested" | |
14375 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then | |
14376 | # do not overwrite the value of need_locks provided by the user | |
14377 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
14378 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
14379 | hard_links=yes | |
14380 | $rm conftest* | |
14381 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14382 | touch conftest.a | |
14383 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
14384 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
14385 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
14386 | echo "${ECHO_T}$hard_links" >&6; } | |
14387 | if test "$hard_links" = no; then | |
14388 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
14389 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
14390 | need_locks=warn | |
14391 | fi | |
14392 | else | |
14393 | need_locks=no | |
14394 | fi | |
14395 | ||
14396 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
14397 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
14398 | ||
14399 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14400 | case $host_os in | |
14401 | aix4* | aix5*) | |
14402 | # If we're using GNU nm, then we don't want the "-C" option. | |
14403 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
14404 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
14405 | 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' | |
14406 | else | |
14407 | 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' | |
14408 | fi | |
14409 | ;; | |
14410 | pw32*) | |
14411 | export_symbols_cmds_CXX="$ltdll_cmds" | |
14412 | ;; | |
14413 | cygwin* | mingw*) | |
14414 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/;/^.* __nm__/s/^.* __nm__\([^ ]*\) [^ ]*/\1 DATA/;/^I /d;/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
14415 | ;; | |
14416 | *) | |
14417 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
14418 | ;; | |
14419 | esac | |
14420 | ||
14421 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 | |
14422 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } | |
14423 | test "$ld_shlibs_CXX" = no && can_build_shared=no | |
14424 | ||
14425 | # | |
14426 | # Do we need to explicitly link libc? | |
14427 | # | |
14428 | case "x$archive_cmds_need_lc_CXX" in | |
14429 | x|xyes) | |
14430 | # Assume -lc should be added | |
14431 | archive_cmds_need_lc_CXX=yes | |
14432 | ||
14433 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
14434 | case $archive_cmds_CXX in | |
14435 | *'~'*) | |
14436 | # FIXME: we may have to deal with multi-command sequences. | |
14437 | ;; | |
14438 | '$CC '*) | |
14439 | # Test whether the compiler implicitly links with -lc since on some | |
14440 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
14441 | # to ld, don't add -lc before -lgcc. | |
14442 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
14443 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
14444 | $rm conftest* | |
14445 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
14446 | ||
14447 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
14448 | (eval $ac_compile) 2>&5 | |
14449 | ac_status=$? | |
14450 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14451 | (exit $ac_status); } 2>conftest.err; then | |
14452 | soname=conftest | |
14453 | lib=conftest | |
14454 | libobjs=conftest.$ac_objext | |
14455 | deplibs= | |
14456 | wl=$lt_prog_compiler_wl_CXX | |
14457 | pic_flag=$lt_prog_compiler_pic_CXX | |
14458 | compiler_flags=-v | |
14459 | linker_flags=-v | |
14460 | verstring= | |
14461 | output_objdir=. | |
14462 | libname=conftest | |
14463 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX | |
14464 | allow_undefined_flag_CXX= | |
14465 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
14466 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
14467 | ac_status=$? | |
14468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
14469 | (exit $ac_status); } | |
14470 | then | |
14471 | archive_cmds_need_lc_CXX=no | |
14472 | else | |
14473 | archive_cmds_need_lc_CXX=yes | |
14474 | fi | |
14475 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag | |
14476 | else | |
14477 | cat conftest.err 1>&5 | |
14478 | fi | |
14479 | $rm conftest* | |
14480 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 | |
14481 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } | |
14482 | ;; | |
14483 | esac | |
14484 | fi | |
14485 | ;; | |
14486 | esac | |
14487 | ||
14488 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
14489 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
14490 | library_names_spec= | |
14491 | libname_spec='lib$name' | |
14492 | soname_spec= | |
14493 | shrext_cmds=".so" | |
14494 | postinstall_cmds= | |
14495 | postuninstall_cmds= | |
14496 | finish_cmds= | |
14497 | finish_eval= | |
14498 | shlibpath_var= | |
14499 | shlibpath_overrides_runpath=unknown | |
14500 | version_type=none | |
14501 | dynamic_linker="$host_os ld.so" | |
14502 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
14503 | if test "$GCC" = yes; then | |
14504 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14505 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
14506 | # if the path contains ";" then we assume it to be the separator | |
14507 | # otherwise default to the standard path separator (i.e. ":") - it is | |
14508 | # assumed that no part of a normal pathname contains ";" but that should | |
14509 | # okay in the real world where ";" in dirpaths is itself problematic. | |
14510 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14511 | else | |
14512 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14513 | fi | |
14514 | else | |
14515 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
14516 | fi | |
14517 | need_lib_prefix=unknown | |
14518 | hardcode_into_libs=no | |
14519 | ||
14520 | # when you set need_version to no, make sure it does not cause -set_version | |
14521 | # flags to be left without arguments | |
14522 | need_version=unknown | |
14523 | ||
14524 | case $host_os in | |
14525 | aix3*) | |
14526 | version_type=linux | |
14527 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
14528 | shlibpath_var=LIBPATH | |
14529 | ||
14530 | # AIX 3 has no versioning support, so we append a major version to the name. | |
14531 | soname_spec='${libname}${release}${shared_ext}$major' | |
14532 | ;; | |
14533 | ||
14534 | aix4* | aix5*) | |
14535 | version_type=linux | |
14536 | need_lib_prefix=no | |
14537 | need_version=no | |
14538 | hardcode_into_libs=yes | |
14539 | if test "$host_cpu" = ia64; then | |
14540 | # AIX 5 supports IA64 | |
14541 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
14542 | shlibpath_var=LD_LIBRARY_PATH | |
14543 | else | |
14544 | # With GCC up to 2.95.x, collect2 would create an import file | |
14545 | # for dependence libraries. The import file would start with | |
14546 | # the line `#! .'. This would cause the generated library to | |
14547 | # depend on `.', always an invalid library. This was fixed in | |
14548 | # development snapshots of GCC prior to 3.0. | |
14549 | case $host_os in | |
14550 | aix4 | aix4.[01] | aix4.[01].*) | |
14551 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
14552 | echo ' yes ' | |
14553 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
14554 | : | |
14555 | else | |
14556 | can_build_shared=no | |
14557 | fi | |
14558 | ;; | |
14559 | esac | |
14560 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
14561 | # soname into executable. Probably we can add versioning support to | |
14562 | # collect2, so additional links can be useful in future. | |
14563 | if test "$aix_use_runtimelinking" = yes; then | |
14564 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
14565 | # instead of lib<name>.a to let people know that these are not | |
14566 | # typical AIX shared libraries. | |
14567 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14568 | else | |
14569 | # We preserve .a as extension for shared libraries through AIX4.2 | |
14570 | # and later when we are not doing run time linking. | |
14571 | library_names_spec='${libname}${release}.a $libname.a' | |
14572 | soname_spec='${libname}${release}${shared_ext}$major' | |
14573 | fi | |
14574 | shlibpath_var=LIBPATH | |
14575 | fi | |
14576 | ;; | |
14577 | ||
14578 | amigaos*) | |
14579 | library_names_spec='$libname.ixlibrary $libname.a' | |
14580 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
14581 | 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' | |
14582 | ;; | |
14583 | ||
14584 | beos*) | |
14585 | library_names_spec='${libname}${shared_ext}' | |
14586 | dynamic_linker="$host_os ld.so" | |
14587 | shlibpath_var=LIBRARY_PATH | |
14588 | ;; | |
14589 | ||
14590 | bsdi[45]*) | |
14591 | version_type=linux | |
14592 | need_version=no | |
14593 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14594 | soname_spec='${libname}${release}${shared_ext}$major' | |
14595 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
14596 | shlibpath_var=LD_LIBRARY_PATH | |
14597 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
14598 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
14599 | # the default ld.so.conf also contains /usr/contrib/lib and | |
14600 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
14601 | # libtool to hard-code these into programs | |
14602 | ;; | |
14603 | ||
14604 | cygwin* | mingw* | pw32*) | |
14605 | version_type=windows | |
14606 | shrext_cmds=".dll" | |
14607 | need_version=no | |
14608 | need_lib_prefix=no | |
14609 | ||
14610 | case $GCC,$host_os in | |
14611 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
14612 | library_names_spec='$libname.dll.a' | |
14613 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
14614 | postinstall_cmds='base_file=`basename \${file}`~ | |
14615 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
14616 | dldir=$destdir/`dirname \$dlpath`~ | |
14617 | test -d \$dldir || mkdir -p \$dldir~ | |
14618 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
14619 | chmod a+x \$dldir/$dlname' | |
14620 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
14621 | dlpath=$dir/\$dldll~ | |
14622 | $rm \$dlpath' | |
14623 | shlibpath_overrides_runpath=yes | |
14624 | ||
14625 | case $host_os in | |
14626 | cygwin*) | |
14627 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
14628 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14629 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
14630 | ;; | |
14631 | mingw*) | |
14632 | # MinGW DLLs use traditional 'lib' prefix | |
14633 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14634 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
14635 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
14636 | # It is most probably a Windows format PATH printed by | |
14637 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
14638 | # path with ; separators, and with drive letters. We can handle the | |
14639 | # drive letters (cygwin fileutils understands them), so leave them, | |
14640 | # especially as we might pass files found there to a mingw objdump, | |
14641 | # which wouldn't understand a cygwinified path. Ahh. | |
14642 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
14643 | else | |
14644 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
14645 | fi | |
14646 | ;; | |
14647 | pw32*) | |
14648 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
14649 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
14650 | ;; | |
14651 | esac | |
14652 | ;; | |
14653 | ||
14654 | *) | |
14655 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
14656 | ;; | |
14657 | esac | |
14658 | dynamic_linker='Win32 ld.exe' | |
14659 | # FIXME: first we should search . and the directory the executable is in | |
14660 | shlibpath_var=PATH | |
14661 | ;; | |
14662 | ||
14663 | darwin* | rhapsody*) | |
14664 | dynamic_linker="$host_os dyld" | |
14665 | version_type=darwin | |
14666 | need_lib_prefix=no | |
14667 | need_version=no | |
14668 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
14669 | soname_spec='${libname}${release}${major}$shared_ext' | |
14670 | shlibpath_overrides_runpath=yes | |
14671 | shlibpath_var=DYLD_LIBRARY_PATH | |
14672 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
14673 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
14674 | if test "$GCC" = yes; then | |
14675 | 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"` | |
14676 | else | |
14677 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
14678 | fi | |
14679 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
14680 | ;; | |
14681 | ||
14682 | dgux*) | |
14683 | version_type=linux | |
14684 | need_lib_prefix=no | |
14685 | need_version=no | |
14686 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
14687 | soname_spec='${libname}${release}${shared_ext}$major' | |
14688 | shlibpath_var=LD_LIBRARY_PATH | |
14689 | ;; | |
14690 | ||
14691 | freebsd1*) | |
14692 | dynamic_linker=no | |
14693 | ;; | |
14694 | ||
14695 | kfreebsd*-gnu) | |
14696 | version_type=linux | |
14697 | need_lib_prefix=no | |
14698 | need_version=no | |
14699 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14700 | soname_spec='${libname}${release}${shared_ext}$major' | |
14701 | shlibpath_var=LD_LIBRARY_PATH | |
14702 | shlibpath_overrides_runpath=no | |
14703 | hardcode_into_libs=yes | |
14704 | dynamic_linker='GNU ld.so' | |
14705 | ;; | |
14706 | ||
14707 | freebsd* | dragonfly*) | |
14708 | # DragonFly does not have aout. When/if they implement a new | |
14709 | # versioning mechanism, adjust this. | |
14710 | if test -x /usr/bin/objformat; then | |
14711 | objformat=`/usr/bin/objformat` | |
14712 | else | |
14713 | case $host_os in | |
14714 | freebsd[123]*) objformat=aout ;; | |
14715 | *) objformat=elf ;; | |
14716 | esac | |
14717 | fi | |
14718 | version_type=freebsd-$objformat | |
14719 | case $version_type in | |
14720 | freebsd-elf*) | |
14721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14722 | need_version=no | |
14723 | need_lib_prefix=no | |
14724 | ;; | |
14725 | freebsd-*) | |
14726 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
14727 | need_version=yes | |
14728 | ;; | |
14729 | esac | |
14730 | shlibpath_var=LD_LIBRARY_PATH | |
14731 | case $host_os in | |
14732 | freebsd2*) | |
14733 | shlibpath_overrides_runpath=yes | |
14734 | ;; | |
14735 | freebsd3.[01]* | freebsdelf3.[01]*) | |
14736 | shlibpath_overrides_runpath=yes | |
14737 | hardcode_into_libs=yes | |
14738 | ;; | |
14739 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
14740 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
14741 | shlibpath_overrides_runpath=no | |
14742 | hardcode_into_libs=yes | |
14743 | ;; | |
14744 | freebsd*) # from 4.6 on | |
14745 | shlibpath_overrides_runpath=yes | |
14746 | hardcode_into_libs=yes | |
14747 | ;; | |
14748 | esac | |
14749 | ;; | |
14750 | ||
14751 | gnu*) | |
14752 | version_type=linux | |
14753 | need_lib_prefix=no | |
14754 | need_version=no | |
14755 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
14756 | soname_spec='${libname}${release}${shared_ext}$major' | |
14757 | shlibpath_var=LD_LIBRARY_PATH | |
14758 | hardcode_into_libs=yes | |
14759 | ;; | |
14760 | ||
14761 | hpux9* | hpux10* | hpux11*) | |
14762 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
14763 | # link against other versions. | |
14764 | version_type=sunos | |
14765 | need_lib_prefix=no | |
14766 | need_version=no | |
14767 | case $host_cpu in | |
14768 | ia64*) | |
14769 | shrext_cmds='.so' | |
14770 | hardcode_into_libs=yes | |
14771 | dynamic_linker="$host_os dld.so" | |
14772 | shlibpath_var=LD_LIBRARY_PATH | |
14773 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14774 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14775 | soname_spec='${libname}${release}${shared_ext}$major' | |
14776 | if test "X$HPUX_IA64_MODE" = X32; then | |
14777 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
14778 | else | |
14779 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
14780 | fi | |
14781 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14782 | ;; | |
14783 | hppa*64*) | |
14784 | shrext_cmds='.sl' | |
14785 | hardcode_into_libs=yes | |
14786 | dynamic_linker="$host_os dld.sl" | |
14787 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
14788 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
14789 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14790 | soname_spec='${libname}${release}${shared_ext}$major' | |
14791 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
14792 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
14793 | ;; | |
14794 | *) | |
14795 | shrext_cmds='.sl' | |
14796 | dynamic_linker="$host_os dld.sl" | |
14797 | shlibpath_var=SHLIB_PATH | |
14798 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
14799 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14800 | soname_spec='${libname}${release}${shared_ext}$major' | |
14801 | ;; | |
14802 | esac | |
14803 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
14804 | postinstall_cmds='chmod 555 $lib' | |
14805 | ;; | |
14806 | ||
14807 | interix3*) | |
14808 | version_type=linux | |
14809 | need_lib_prefix=no | |
14810 | need_version=no | |
14811 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14812 | soname_spec='${libname}${release}${shared_ext}$major' | |
14813 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
14814 | shlibpath_var=LD_LIBRARY_PATH | |
14815 | shlibpath_overrides_runpath=no | |
14816 | hardcode_into_libs=yes | |
14817 | ;; | |
14818 | ||
14819 | irix5* | irix6* | nonstopux*) | |
14820 | case $host_os in | |
14821 | nonstopux*) version_type=nonstopux ;; | |
14822 | *) | |
14823 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
14824 | version_type=linux | |
14825 | else | |
14826 | version_type=irix | |
14827 | fi ;; | |
14828 | esac | |
14829 | need_lib_prefix=no | |
14830 | need_version=no | |
14831 | soname_spec='${libname}${release}${shared_ext}$major' | |
14832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
14833 | case $host_os in | |
14834 | irix5* | nonstopux*) | |
14835 | libsuff= shlibsuff= | |
14836 | ;; | |
14837 | *) | |
14838 | case $LD in # libtool.m4 will add one of these switches to LD | |
14839 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
14840 | libsuff= shlibsuff= libmagic=32-bit;; | |
14841 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
14842 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
14843 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
14844 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
14845 | *) libsuff= shlibsuff= libmagic=never-match;; | |
14846 | esac | |
14847 | ;; | |
14848 | esac | |
14849 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
14850 | shlibpath_overrides_runpath=no | |
14851 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
14852 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
14853 | hardcode_into_libs=yes | |
14854 | ;; | |
14855 | ||
14856 | # No shared lib support for Linux oldld, aout, or coff. | |
14857 | linux*oldld* | linux*aout* | linux*coff*) | |
14858 | dynamic_linker=no | |
14859 | ;; | |
14860 | ||
14861 | # This must be Linux ELF. | |
14862 | linux*) | |
14863 | version_type=linux | |
14864 | need_lib_prefix=no | |
14865 | need_version=no | |
14866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14867 | soname_spec='${libname}${release}${shared_ext}$major' | |
14868 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
14869 | shlibpath_var=LD_LIBRARY_PATH | |
14870 | shlibpath_overrides_runpath=no | |
14871 | # This implies no fast_install, which is unacceptable. | |
14872 | # Some rework will be needed to allow for fast_install | |
14873 | # before this can be enabled. | |
14874 | hardcode_into_libs=yes | |
14875 | ||
14876 | # Append ld.so.conf contents to the search path | |
14877 | if test -f /etc/ld.so.conf; then | |
14878 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
14879 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
14880 | fi | |
14881 | ||
14882 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
14883 | # powerpc, because MkLinux only supported shared libraries with the | |
14884 | # GNU dynamic linker. Since this was broken with cross compilers, | |
14885 | # most powerpc-linux boxes support dynamic linking these days and | |
14886 | # people can always --disable-shared, the test was removed, and we | |
14887 | # assume the GNU/Linux dynamic linker is in use. | |
14888 | dynamic_linker='GNU/Linux ld.so' | |
14889 | ;; | |
14890 | ||
14891 | knetbsd*-gnu) | |
14892 | version_type=linux | |
14893 | need_lib_prefix=no | |
14894 | need_version=no | |
14895 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14896 | soname_spec='${libname}${release}${shared_ext}$major' | |
14897 | shlibpath_var=LD_LIBRARY_PATH | |
14898 | shlibpath_overrides_runpath=no | |
14899 | hardcode_into_libs=yes | |
14900 | dynamic_linker='GNU ld.so' | |
14901 | ;; | |
14902 | ||
14903 | netbsd*) | |
14904 | version_type=sunos | |
14905 | need_lib_prefix=no | |
14906 | need_version=no | |
14907 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
14908 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14909 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14910 | dynamic_linker='NetBSD (a.out) ld.so' | |
14911 | else | |
14912 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
14913 | soname_spec='${libname}${release}${shared_ext}$major' | |
14914 | dynamic_linker='NetBSD ld.elf_so' | |
14915 | fi | |
14916 | shlibpath_var=LD_LIBRARY_PATH | |
14917 | shlibpath_overrides_runpath=yes | |
14918 | hardcode_into_libs=yes | |
14919 | ;; | |
14920 | ||
14921 | newsos6) | |
14922 | version_type=linux | |
14923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14924 | shlibpath_var=LD_LIBRARY_PATH | |
14925 | shlibpath_overrides_runpath=yes | |
14926 | ;; | |
14927 | ||
14928 | nto-qnx*) | |
14929 | version_type=linux | |
14930 | need_lib_prefix=no | |
14931 | need_version=no | |
14932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14933 | soname_spec='${libname}${release}${shared_ext}$major' | |
14934 | shlibpath_var=LD_LIBRARY_PATH | |
14935 | shlibpath_overrides_runpath=yes | |
14936 | ;; | |
14937 | ||
14938 | openbsd*) | |
14939 | version_type=sunos | |
14940 | sys_lib_dlsearch_path_spec="/usr/lib" | |
14941 | need_lib_prefix=no | |
14942 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
14943 | case $host_os in | |
14944 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
14945 | *) need_version=no ;; | |
14946 | esac | |
14947 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
14948 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
14949 | shlibpath_var=LD_LIBRARY_PATH | |
14950 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
14951 | case $host_os in | |
14952 | openbsd2.[89] | openbsd2.[89].*) | |
14953 | shlibpath_overrides_runpath=no | |
14954 | ;; | |
14955 | *) | |
14956 | shlibpath_overrides_runpath=yes | |
14957 | ;; | |
14958 | esac | |
14959 | else | |
14960 | shlibpath_overrides_runpath=yes | |
14961 | fi | |
14962 | ;; | |
14963 | ||
14964 | os2*) | |
14965 | libname_spec='$name' | |
14966 | shrext_cmds=".dll" | |
14967 | need_lib_prefix=no | |
14968 | library_names_spec='$libname${shared_ext} $libname.a' | |
14969 | dynamic_linker='OS/2 ld.exe' | |
14970 | shlibpath_var=LIBPATH | |
14971 | ;; | |
14972 | ||
14973 | osf3* | osf4* | osf5*) | |
14974 | version_type=osf | |
14975 | need_lib_prefix=no | |
14976 | need_version=no | |
14977 | soname_spec='${libname}${release}${shared_ext}$major' | |
14978 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14979 | shlibpath_var=LD_LIBRARY_PATH | |
14980 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
14981 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
14982 | ;; | |
14983 | ||
14984 | solaris*) | |
14985 | version_type=linux | |
14986 | need_lib_prefix=no | |
14987 | need_version=no | |
14988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
14989 | soname_spec='${libname}${release}${shared_ext}$major' | |
14990 | shlibpath_var=LD_LIBRARY_PATH | |
14991 | shlibpath_overrides_runpath=yes | |
14992 | hardcode_into_libs=yes | |
14993 | # ldd complains unless libraries are executable | |
14994 | postinstall_cmds='chmod +x $lib' | |
14995 | ;; | |
14996 | ||
14997 | sunos4*) | |
14998 | version_type=sunos | |
14999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
15000 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
15001 | shlibpath_var=LD_LIBRARY_PATH | |
15002 | shlibpath_overrides_runpath=yes | |
15003 | if test "$with_gnu_ld" = yes; then | |
15004 | need_lib_prefix=no | |
15005 | fi | |
15006 | need_version=yes | |
15007 | ;; | |
15008 | ||
15009 | sysv4 | sysv4.3*) | |
15010 | version_type=linux | |
15011 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15012 | soname_spec='${libname}${release}${shared_ext}$major' | |
15013 | shlibpath_var=LD_LIBRARY_PATH | |
15014 | case $host_vendor in | |
15015 | sni) | |
15016 | shlibpath_overrides_runpath=no | |
15017 | need_lib_prefix=no | |
15018 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
15019 | runpath_var=LD_RUN_PATH | |
15020 | ;; | |
15021 | siemens) | |
15022 | need_lib_prefix=no | |
15023 | ;; | |
15024 | motorola) | |
15025 | need_lib_prefix=no | |
15026 | need_version=no | |
15027 | shlibpath_overrides_runpath=no | |
15028 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
15029 | ;; | |
15030 | esac | |
15031 | ;; | |
15032 | ||
15033 | sysv4*MP*) | |
15034 | if test -d /usr/nec ;then | |
15035 | version_type=linux | |
15036 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
15037 | soname_spec='$libname${shared_ext}.$major' | |
15038 | shlibpath_var=LD_LIBRARY_PATH | |
15039 | fi | |
15040 | ;; | |
15041 | ||
15042 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
15043 | version_type=freebsd-elf | |
15044 | need_lib_prefix=no | |
15045 | need_version=no | |
15046 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
15047 | soname_spec='${libname}${release}${shared_ext}$major' | |
15048 | shlibpath_var=LD_LIBRARY_PATH | |
15049 | hardcode_into_libs=yes | |
15050 | if test "$with_gnu_ld" = yes; then | |
15051 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
15052 | shlibpath_overrides_runpath=no | |
15053 | else | |
15054 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
15055 | shlibpath_overrides_runpath=yes | |
15056 | case $host_os in | |
15057 | sco3.2v5*) | |
15058 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
15059 | ;; | |
15060 | esac | |
15061 | fi | |
15062 | sys_lib_dlsearch_path_spec='/usr/lib' | |
15063 | ;; | |
15064 | ||
15065 | uts4*) | |
15066 | version_type=linux | |
15067 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
15068 | soname_spec='${libname}${release}${shared_ext}$major' | |
15069 | shlibpath_var=LD_LIBRARY_PATH | |
15070 | ;; | |
15071 | ||
15072 | *) | |
15073 | dynamic_linker=no | |
15074 | ;; | |
15075 | esac | |
15076 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
15077 | echo "${ECHO_T}$dynamic_linker" >&6; } | |
15078 | test "$dynamic_linker" = no && can_build_shared=no | |
15079 | ||
15080 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
15081 | if test "$GCC" = yes; then | |
15082 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
15083 | fi | |
15084 | ||
15085 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
15086 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
15087 | hardcode_action_CXX= | |
15088 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ | |
15089 | test -n "$runpath_var_CXX" || \ | |
15090 | test "X$hardcode_automatic_CXX" = "Xyes" ; then | |
15091 | ||
15092 | # We can hardcode non-existant directories. | |
15093 | if test "$hardcode_direct_CXX" != no && | |
15094 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
15095 | # have to relink, otherwise we might link with an installed library | |
15096 | # when we should be linking with a yet-to-be-installed one | |
15097 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && | |
15098 | test "$hardcode_minus_L_CXX" != no; then | |
15099 | # Linking always hardcodes the temporary library directory. | |
15100 | hardcode_action_CXX=relink | |
15101 | else | |
15102 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
15103 | hardcode_action_CXX=immediate | |
15104 | fi | |
15105 | else | |
15106 | # We cannot hardcode anything, or else we can only hardcode existing | |
15107 | # directories. | |
15108 | hardcode_action_CXX=unsupported | |
15109 | fi | |
15110 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 | |
15111 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } | |
15112 | ||
15113 | if test "$hardcode_action_CXX" = relink; then | |
15114 | # Fast installation is not supported | |
15115 | enable_fast_install=no | |
15116 | elif test "$shlibpath_overrides_runpath" = yes || | |
15117 | test "$enable_shared" = no; then | |
15118 | # Fast installation is not necessary | |
15119 | enable_fast_install=needless | |
15120 | fi | |
15121 | ||
15122 | ||
15123 | # The else clause should only fire when bootstrapping the | |
15124 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
15125 | # with your package, and you will get complaints that there are | |
15126 | # no rules to generate ltmain.sh. | |
15127 | if test -f "$ltmain"; then | |
15128 | # See if we are running on zsh, and set the options which allow our commands through | |
15129 | # without removal of \ escapes. | |
15130 | if test -n "${ZSH_VERSION+set}" ; then | |
15131 | setopt NO_GLOB_SUBST | |
15132 | fi | |
15133 | # Now quote all the things that may contain metacharacters while being | |
15134 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
15135 | # variables and quote the copies for generation of the libtool script. | |
15136 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
15137 | SED SHELL STRIP \ | |
15138 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
15139 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
15140 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
15141 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
15142 | lt_cv_sys_global_symbol_to_c_name_address \ | |
15143 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
15144 | old_postinstall_cmds old_postuninstall_cmds \ | |
15145 | compiler_CXX \ | |
15146 | CC_CXX \ | |
15147 | LD_CXX \ | |
15148 | lt_prog_compiler_wl_CXX \ | |
15149 | lt_prog_compiler_pic_CXX \ | |
15150 | lt_prog_compiler_static_CXX \ | |
15151 | lt_prog_compiler_no_builtin_flag_CXX \ | |
15152 | export_dynamic_flag_spec_CXX \ | |
15153 | thread_safe_flag_spec_CXX \ | |
15154 | whole_archive_flag_spec_CXX \ | |
15155 | enable_shared_with_static_runtimes_CXX \ | |
15156 | old_archive_cmds_CXX \ | |
15157 | old_archive_from_new_cmds_CXX \ | |
15158 | predep_objects_CXX \ | |
15159 | postdep_objects_CXX \ | |
15160 | predeps_CXX \ | |
15161 | postdeps_CXX \ | |
15162 | compiler_lib_search_path_CXX \ | |
15163 | archive_cmds_CXX \ | |
15164 | archive_expsym_cmds_CXX \ | |
15165 | postinstall_cmds_CXX \ | |
15166 | postuninstall_cmds_CXX \ | |
15167 | old_archive_from_expsyms_cmds_CXX \ | |
15168 | allow_undefined_flag_CXX \ | |
15169 | no_undefined_flag_CXX \ | |
15170 | export_symbols_cmds_CXX \ | |
15171 | hardcode_libdir_flag_spec_CXX \ | |
15172 | hardcode_libdir_flag_spec_ld_CXX \ | |
15173 | hardcode_libdir_separator_CXX \ | |
15174 | hardcode_automatic_CXX \ | |
15175 | module_cmds_CXX \ | |
15176 | module_expsym_cmds_CXX \ | |
15177 | lt_cv_prog_compiler_c_o_CXX \ | |
15178 | exclude_expsyms_CXX \ | |
15179 | include_expsyms_CXX; do | |
15180 | ||
15181 | case $var in | |
15182 | old_archive_cmds_CXX | \ | |
15183 | old_archive_from_new_cmds_CXX | \ | |
15184 | archive_cmds_CXX | \ | |
15185 | archive_expsym_cmds_CXX | \ | |
15186 | module_cmds_CXX | \ | |
15187 | module_expsym_cmds_CXX | \ | |
15188 | old_archive_from_expsyms_cmds_CXX | \ | |
15189 | export_symbols_cmds_CXX | \ | |
15190 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
15191 | postinstall_cmds | postuninstall_cmds | \ | |
15192 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
15193 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
15194 | # Double-quote double-evaled strings. | |
15195 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
15196 | ;; | |
15197 | *) | |
15198 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
15199 | ;; | |
15200 | esac | |
15201 | done | |
15202 | ||
15203 | case $lt_echo in | |
15204 | *'\$0 --fallback-echo"') | |
15205 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
15206 | ;; | |
15207 | esac | |
15208 | ||
15209 | cfgfile="$ofile" | |
15210 | ||
15211 | cat <<__EOF__ >> "$cfgfile" | |
15212 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
15213 | ||
15214 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
15215 | ||
15216 | # Shell to use when invoking shell scripts. | |
15217 | SHELL=$lt_SHELL | |
15218 | ||
15219 | # Whether or not to build shared libraries. | |
15220 | build_libtool_libs=$enable_shared | |
15221 | ||
15222 | # Whether or not to build static libraries. | |
15223 | build_old_libs=$enable_static | |
15224 | ||
15225 | # Whether or not to add -lc for building shared libraries. | |
15226 | build_libtool_need_lc=$archive_cmds_need_lc_CXX | |
15227 | ||
15228 | # Whether or not to disallow shared libs when runtime libs are static | |
15229 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX | |
15230 | ||
15231 | # Whether or not to optimize for fast installation. | |
15232 | fast_install=$enable_fast_install | |
15233 | ||
15234 | # The host system. | |
15235 | host_alias=$host_alias | |
15236 | host=$host | |
15237 | host_os=$host_os | |
15238 | ||
15239 | # The build system. | |
15240 | build_alias=$build_alias | |
15241 | build=$build | |
15242 | build_os=$build_os | |
15243 | ||
15244 | # An echo program that does not interpret backslashes. | |
15245 | echo=$lt_echo | |
15246 | ||
15247 | # The archiver. | |
15248 | AR=$lt_AR | |
15249 | AR_FLAGS=$lt_AR_FLAGS | |
15250 | ||
15251 | # A C compiler. | |
15252 | LTCC=$lt_LTCC | |
15253 | ||
15254 | # LTCC compiler flags. | |
15255 | LTCFLAGS=$lt_LTCFLAGS | |
15256 | ||
15257 | # A language-specific compiler. | |
15258 | CC=$lt_compiler_CXX | |
15259 | ||
15260 | # Is the compiler the GNU C compiler? | |
15261 | with_gcc=$GCC_CXX | |
15262 | ||
15263 | # An ERE matcher. | |
15264 | EGREP=$lt_EGREP | |
15265 | ||
15266 | # The linker used to build libraries. | |
15267 | LD=$lt_LD_CXX | |
15268 | ||
15269 | # Whether we need hard or soft links. | |
15270 | LN_S=$lt_LN_S | |
15271 | ||
15272 | # A BSD-compatible nm program. | |
15273 | NM=$lt_NM | |
15274 | ||
15275 | # A symbol stripping program | |
15276 | STRIP=$lt_STRIP | |
15277 | ||
15278 | # Used to examine libraries when file_magic_cmd begins "file" | |
15279 | MAGIC_CMD=$MAGIC_CMD | |
15280 | ||
15281 | # Used on cygwin: DLL creation program. | |
15282 | DLLTOOL="$DLLTOOL" | |
15283 | ||
15284 | # Used on cygwin: object dumper. | |
15285 | OBJDUMP="$OBJDUMP" | |
15286 | ||
15287 | # Used on cygwin: assembler. | |
15288 | AS="$AS" | |
15289 | ||
15290 | # The name of the directory that contains temporary libtool files. | |
15291 | objdir=$objdir | |
15292 | ||
15293 | # How to create reloadable object files. | |
15294 | reload_flag=$lt_reload_flag | |
15295 | reload_cmds=$lt_reload_cmds | |
15296 | ||
15297 | # How to pass a linker flag through the compiler. | |
15298 | wl=$lt_lt_prog_compiler_wl_CXX | |
15299 | ||
15300 | # Object file suffix (normally "o"). | |
15301 | objext="$ac_objext" | |
15302 | ||
15303 | # Old archive suffix (normally "a"). | |
15304 | libext="$libext" | |
15305 | ||
15306 | # Shared library suffix (normally ".so"). | |
15307 | shrext_cmds='$shrext_cmds' | |
15308 | ||
15309 | # Executable file suffix (normally ""). | |
15310 | exeext="$exeext" | |
15311 | ||
15312 | # Additional compiler flags for building library objects. | |
15313 | pic_flag=$lt_lt_prog_compiler_pic_CXX | |
15314 | pic_mode=$pic_mode | |
15315 | ||
15316 | # What is the maximum length of a command? | |
15317 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
15318 | ||
15319 | # Does compiler simultaneously support -c and -o options? | |
15320 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX | |
15321 | ||
15322 | # Must we lock files when doing compilation? | |
15323 | need_locks=$lt_need_locks | |
15324 | ||
15325 | # Do we need the lib prefix for modules? | |
15326 | need_lib_prefix=$need_lib_prefix | |
15327 | ||
15328 | # Do we need a version for libraries? | |
15329 | need_version=$need_version | |
15330 | ||
15331 | # Whether dlopen is supported. | |
15332 | dlopen_support=$enable_dlopen | |
15333 | ||
15334 | # Whether dlopen of programs is supported. | |
15335 | dlopen_self=$enable_dlopen_self | |
15336 | ||
15337 | # Whether dlopen of statically linked programs is supported. | |
15338 | dlopen_self_static=$enable_dlopen_self_static | |
15339 | ||
15340 | # Compiler flag to prevent dynamic linking. | |
15341 | link_static_flag=$lt_lt_prog_compiler_static_CXX | |
15342 | ||
15343 | # Compiler flag to turn off builtin functions. | |
15344 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX | |
15345 | ||
15346 | # Compiler flag to allow reflexive dlopens. | |
15347 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX | |
15348 | ||
15349 | # Compiler flag to generate shared objects directly from archives. | |
15350 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX | |
15351 | ||
15352 | # Compiler flag to generate thread-safe objects. | |
15353 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX | |
15354 | ||
15355 | # Library versioning type. | |
15356 | version_type=$version_type | |
15357 | ||
15358 | # Format of library name prefix. | |
15359 | libname_spec=$lt_libname_spec | |
15360 | ||
15361 | # List of archive names. First name is the real one, the rest are links. | |
15362 | # The last name is the one that the linker finds with -lNAME. | |
15363 | library_names_spec=$lt_library_names_spec | |
15364 | ||
15365 | # The coded name of the library, if different from the real name. | |
15366 | soname_spec=$lt_soname_spec | |
15367 | ||
15368 | # Commands used to build and install an old-style archive. | |
15369 | RANLIB=$lt_RANLIB | |
15370 | old_archive_cmds=$lt_old_archive_cmds_CXX | |
15371 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
15372 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
15373 | ||
15374 | # Create an old-style archive from a shared archive. | |
15375 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX | |
15376 | ||
15377 | # Create a temporary old-style archive to link instead of a shared archive. | |
15378 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX | |
15379 | ||
15380 | # Commands used to build and install a shared archive. | |
15381 | archive_cmds=$lt_archive_cmds_CXX | |
15382 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX | |
15383 | postinstall_cmds=$lt_postinstall_cmds | |
15384 | postuninstall_cmds=$lt_postuninstall_cmds | |
15385 | ||
15386 | # Commands used to build a loadable module (assumed same as above if empty) | |
15387 | module_cmds=$lt_module_cmds_CXX | |
15388 | module_expsym_cmds=$lt_module_expsym_cmds_CXX | |
15389 | ||
15390 | # Commands to strip libraries. | |
15391 | old_striplib=$lt_old_striplib | |
15392 | striplib=$lt_striplib | |
15393 | ||
15394 | # Dependencies to place before the objects being linked to create a | |
15395 | # shared library. | |
15396 | predep_objects=$lt_predep_objects_CXX | |
15397 | ||
15398 | # Dependencies to place after the objects being linked to create a | |
15399 | # shared library. | |
15400 | postdep_objects=$lt_postdep_objects_CXX | |
15401 | ||
15402 | # Dependencies to place before the objects being linked to create a | |
15403 | # shared library. | |
15404 | predeps=$lt_predeps_CXX | |
15405 | ||
15406 | # Dependencies to place after the objects being linked to create a | |
15407 | # shared library. | |
15408 | postdeps=$lt_postdeps_CXX | |
15409 | ||
15410 | # The library search path used internally by the compiler when linking | |
15411 | # a shared library. | |
15412 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX | |
15413 | ||
15414 | # Method to check whether dependent libraries are shared objects. | |
15415 | deplibs_check_method=$lt_deplibs_check_method | |
15416 | ||
15417 | # Command to use when deplibs_check_method == file_magic. | |
15418 | file_magic_cmd=$lt_file_magic_cmd | |
15419 | ||
15420 | # Flag that allows shared libraries with undefined symbols to be built. | |
15421 | allow_undefined_flag=$lt_allow_undefined_flag_CXX | |
15422 | ||
15423 | # Flag that forces no undefined symbols. | |
15424 | no_undefined_flag=$lt_no_undefined_flag_CXX | |
15425 | ||
15426 | # Commands used to finish a libtool library installation in a directory. | |
15427 | finish_cmds=$lt_finish_cmds | |
15428 | ||
15429 | # Same as above, but a single script fragment to be evaled but not shown. | |
15430 | finish_eval=$lt_finish_eval | |
15431 | ||
15432 | # Take the output of nm and produce a listing of raw symbols and C names. | |
15433 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
15434 | ||
15435 | # Transform the output of nm in a proper C declaration | |
15436 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
15437 | ||
15438 | # Transform the output of nm in a C name address pair | |
15439 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
15440 | ||
15441 | # This is the shared library runtime path variable. | |
15442 | runpath_var=$runpath_var | |
15443 | ||
15444 | # This is the shared library path variable. | |
15445 | shlibpath_var=$shlibpath_var | |
15446 | ||
15447 | # Is shlibpath searched before the hard-coded library search path? | |
15448 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
15449 | ||
15450 | # How to hardcode a shared library path into an executable. | |
15451 | hardcode_action=$hardcode_action_CXX | |
15452 | ||
15453 | # Whether we should hardcode library paths into libraries. | |
15454 | hardcode_into_libs=$hardcode_into_libs | |
15455 | ||
15456 | # Flag to hardcode \$libdir into a binary during linking. | |
15457 | # This must work even if \$libdir does not exist. | |
15458 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX | |
15459 | ||
15460 | # If ld is used when linking, flag to hardcode \$libdir into | |
15461 | # a binary during linking. This must work even if \$libdir does | |
15462 | # not exist. | |
15463 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX | |
15464 | ||
15465 | # Whether we need a single -rpath flag with a separated argument. | |
15466 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX | |
15467 | ||
15468 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
15469 | # resulting binary. | |
15470 | hardcode_direct=$hardcode_direct_CXX | |
15471 | ||
15472 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
15473 | # resulting binary. | |
15474 | hardcode_minus_L=$hardcode_minus_L_CXX | |
15475 | ||
15476 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
15477 | # the resulting binary. | |
15478 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX | |
15479 | ||
15480 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
15481 | # and all subsequent libraries and executables linked against it. | |
15482 | hardcode_automatic=$hardcode_automatic_CXX | |
15483 | ||
15484 | # Variables whose values should be saved in libtool wrapper scripts and | |
15485 | # restored at relink time. | |
15486 | variables_saved_for_relink="$variables_saved_for_relink" | |
15487 | ||
15488 | # Whether libtool must link a program against all its dependency libraries. | |
15489 | link_all_deplibs=$link_all_deplibs_CXX | |
15490 | ||
15491 | # Compile-time system search path for libraries | |
15492 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
15493 | ||
15494 | # Run-time system search path for libraries | |
15495 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
15496 | ||
15497 | # Fix the shell variable \$srcfile for the compiler. | |
15498 | fix_srcfile_path="$fix_srcfile_path_CXX" | |
15499 | ||
15500 | # Set to yes if exported symbols are required. | |
15501 | always_export_symbols=$always_export_symbols_CXX | |
15502 | ||
15503 | # The commands to list exported symbols. | |
15504 | export_symbols_cmds=$lt_export_symbols_cmds_CXX | |
15505 | ||
15506 | # The commands to extract the exported symbol list from a shared archive. | |
15507 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
15508 | ||
15509 | # Symbols that should not be listed in the preloaded symbols. | |
15510 | exclude_expsyms=$lt_exclude_expsyms_CXX | |
15511 | ||
15512 | # Symbols that must always be exported. | |
15513 | include_expsyms=$lt_include_expsyms_CXX | |
15514 | ||
15515 | # ### END LIBTOOL TAG CONFIG: $tagname | |
15516 | ||
15517 | __EOF__ | |
15518 | ||
15519 | ||
15520 | else | |
15521 | # If there is no Makefile yet, we rely on a make rule to execute | |
15522 | # `config.status --recheck' to rerun these tests and create the | |
15523 | # libtool script then. | |
15524 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
15525 | if test -f "$ltmain_in"; then | |
15526 | test -f Makefile && make "$ltmain" | |
15527 | fi | |
15528 | fi | |
15529 | ||
15530 | ||
15531 | ac_ext=c | |
15532 | ac_cpp='$CPP $CPPFLAGS' | |
15533 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
15534 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15535 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
15536 | ||
15537 | CC=$lt_save_CC | |
15538 | LDCXX=$LD | |
15539 | LD=$lt_save_LD | |
15540 | GCC=$lt_save_GCC | |
15541 | with_gnu_ldcxx=$with_gnu_ld | |
15542 | with_gnu_ld=$lt_save_with_gnu_ld | |
15543 | lt_cv_path_LDCXX=$lt_cv_path_LD | |
15544 | lt_cv_path_LD=$lt_save_path_LD | |
15545 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld | |
15546 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld | |
15547 | ||
15548 | else | |
15549 | tagname="" | |
15550 | fi | |
15551 | ;; | |
15552 | ||
15553 | F77) | |
15554 | if test -n "$F77" && test "X$F77" != "Xno"; then | |
15555 | ||
15556 | ac_ext=f | |
15557 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' | |
15558 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
15559 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu | |
15560 | ||
15561 | ||
15562 | archive_cmds_need_lc_F77=no | |
15563 | allow_undefined_flag_F77= | |
15564 | always_export_symbols_F77=no | |
15565 | archive_expsym_cmds_F77= | |
15566 | export_dynamic_flag_spec_F77= | |
15567 | hardcode_direct_F77=no | |
15568 | hardcode_libdir_flag_spec_F77= | |
15569 | hardcode_libdir_flag_spec_ld_F77= | |
15570 | hardcode_libdir_separator_F77= | |
15571 | hardcode_minus_L_F77=no | |
15572 | hardcode_automatic_F77=no | |
15573 | module_cmds_F77= | |
15574 | module_expsym_cmds_F77= | |
15575 | link_all_deplibs_F77=unknown | |
15576 | old_archive_cmds_F77=$old_archive_cmds | |
15577 | no_undefined_flag_F77= | |
15578 | whole_archive_flag_spec_F77= | |
15579 | enable_shared_with_static_runtimes_F77=no | |
15580 | ||
15581 | # Source file extension for f77 test sources. | |
15582 | ac_ext=f | |
15583 | ||
15584 | # Object file extension for compiled f77 test sources. | |
15585 | objext=o | |
15586 | objext_F77=$objext | |
15587 | ||
15588 | # Code to be used in simple compile tests | |
15589 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" | |
15590 | ||
15591 | # Code to be used in simple link tests | |
15592 | lt_simple_link_test_code=" program t\n end\n" | |
15593 | ||
15594 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
15595 | ||
15596 | # If no C compiler was specified, use CC. | |
15597 | LTCC=${LTCC-"$CC"} | |
15598 | ||
15599 | # If no C compiler flags were specified, use CFLAGS. | |
15600 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
15601 | ||
15602 | # Allow CC to be a program name with arguments. | |
15603 | compiler=$CC | |
15604 | ||
15605 | ||
15606 | # save warnings/boilerplate of simple test code | |
15607 | ac_outfile=conftest.$ac_objext | |
15608 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
15609 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
15610 | _lt_compiler_boilerplate=`cat conftest.err` | |
15611 | $rm conftest* | |
15612 | ||
15613 | ac_outfile=conftest.$ac_objext | |
15614 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
15615 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
15616 | _lt_linker_boilerplate=`cat conftest.err` | |
15617 | $rm conftest* | |
15618 | ||
15619 | ||
15620 | # Allow CC to be a program name with arguments. | |
15621 | lt_save_CC="$CC" | |
15622 | CC=${F77-"f77"} | |
15623 | compiler=$CC | |
15624 | compiler_F77=$CC | |
15625 | for cc_temp in $compiler""; do | |
15626 | case $cc_temp in | |
15627 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
15628 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
15629 | \-*) ;; | |
15630 | *) break;; | |
15631 | esac | |
15632 | done | |
15633 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
15634 | ||
15635 | ||
15636 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 | |
15637 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } | |
15638 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 | |
15639 | echo "${ECHO_T}$can_build_shared" >&6; } | |
15640 | ||
15641 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 | |
15642 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } | |
15643 | test "$can_build_shared" = "no" && enable_shared=no | |
15644 | ||
15645 | # On AIX, shared libraries and static libraries use the same namespace, and | |
15646 | # are all built from PIC. | |
15647 | case $host_os in | |
15648 | aix3*) | |
15649 | test "$enable_shared" = yes && enable_static=no | |
15650 | if test -n "$RANLIB"; then | |
15651 | archive_cmds="$archive_cmds~\$RANLIB \$lib" | |
15652 | postinstall_cmds='$RANLIB $lib' | |
15653 | fi | |
15654 | ;; | |
15655 | aix4* | aix5*) | |
15656 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then | |
15657 | test "$enable_shared" = yes && enable_static=no | |
15658 | fi | |
15659 | ;; | |
15660 | esac | |
15661 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 | |
15662 | echo "${ECHO_T}$enable_shared" >&6; } | |
15663 | ||
15664 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 | |
15665 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } | |
15666 | # Make sure either enable_shared or enable_static is yes. | |
15667 | test "$enable_shared" = yes || enable_static=yes | |
15668 | { echo "$as_me:$LINENO: result: $enable_static" >&5 | |
15669 | echo "${ECHO_T}$enable_static" >&6; } | |
15670 | ||
15671 | GCC_F77="$G77" | |
15672 | LD_F77="$LD" | |
15673 | ||
15674 | lt_prog_compiler_wl_F77= | |
15675 | lt_prog_compiler_pic_F77= | |
15676 | lt_prog_compiler_static_F77= | |
15677 | ||
15678 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
15679 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
15680 | ||
15681 | if test "$GCC" = yes; then | |
15682 | lt_prog_compiler_wl_F77='-Wl,' | |
15683 | lt_prog_compiler_static_F77='-static' | |
15684 | ||
15685 | case $host_os in | |
15686 | aix*) | |
15687 | # All AIX code is PIC. | |
15688 | if test "$host_cpu" = ia64; then | |
15689 | # AIX 5 now supports IA64 processor | |
15690 | lt_prog_compiler_static_F77='-Bstatic' | |
15691 | fi | |
15692 | ;; | |
15693 | ||
15694 | amigaos*) | |
15695 | # FIXME: we need at least 68020 code to build shared libraries, but | |
15696 | # adding the `-m68020' flag to GCC prevents building anything better, | |
15697 | # like `-m68040'. | |
15698 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' | |
15699 | ;; | |
15700 | ||
15701 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
15702 | # PIC is the default for these OSes. | |
15703 | ;; | |
15704 | ||
15705 | mingw* | pw32* | os2*) | |
15706 | # This hack is so that the source file can tell whether it is being | |
15707 | # built for inclusion in a dll (and should export symbols for example). | |
15708 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
15709 | ;; | |
15710 | ||
15711 | darwin* | rhapsody*) | |
15712 | # PIC is the default on this platform | |
15713 | # Common symbols not allowed in MH_DYLIB files | |
15714 | lt_prog_compiler_pic_F77='-fno-common' | |
15715 | ;; | |
15716 | ||
15717 | interix3*) | |
15718 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
15719 | # Instead, we relocate shared libraries at runtime. | |
15720 | ;; | |
15721 | ||
15722 | msdosdjgpp*) | |
15723 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
15724 | # on systems that don't support them. | |
15725 | lt_prog_compiler_can_build_shared_F77=no | |
15726 | enable_shared=no | |
15727 | ;; | |
15728 | ||
15729 | sysv4*MP*) | |
15730 | if test -d /usr/nec; then | |
15731 | lt_prog_compiler_pic_F77=-Kconform_pic | |
15732 | fi | |
15733 | ;; | |
15734 | ||
15735 | hpux*) | |
15736 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
15737 | # not for PA HP-UX. | |
15738 | case $host_cpu in | |
15739 | hppa*64*|ia64*) | |
15740 | # +Z the default | |
15741 | ;; | |
15742 | *) | |
15743 | lt_prog_compiler_pic_F77='-fPIC' | |
15744 | ;; | |
15745 | esac | |
15746 | ;; | |
15747 | ||
15748 | *) | |
15749 | lt_prog_compiler_pic_F77='-fPIC' | |
15750 | ;; | |
15751 | esac | |
15752 | else | |
15753 | # PORTME Check for flag to pass linker flags through the system compiler. | |
15754 | case $host_os in | |
15755 | aix*) | |
15756 | lt_prog_compiler_wl_F77='-Wl,' | |
15757 | if test "$host_cpu" = ia64; then | |
15758 | # AIX 5 now supports IA64 processor | |
15759 | lt_prog_compiler_static_F77='-Bstatic' | |
15760 | else | |
15761 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' | |
15762 | fi | |
15763 | ;; | |
15764 | darwin*) | |
15765 | # PIC is the default on this platform | |
15766 | # Common symbols not allowed in MH_DYLIB files | |
15767 | case $cc_basename in | |
15768 | xlc*) | |
15769 | lt_prog_compiler_pic_F77='-qnocommon' | |
15770 | lt_prog_compiler_wl_F77='-Wl,' | |
15771 | ;; | |
15772 | esac | |
15773 | ;; | |
15774 | ||
15775 | mingw* | pw32* | os2*) | |
15776 | # This hack is so that the source file can tell whether it is being | |
15777 | # built for inclusion in a dll (and should export symbols for example). | |
15778 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' | |
15779 | ;; | |
15780 | ||
15781 | hpux9* | hpux10* | hpux11*) | |
15782 | lt_prog_compiler_wl_F77='-Wl,' | |
15783 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
15784 | # not for PA HP-UX. | |
15785 | case $host_cpu in | |
15786 | hppa*64*|ia64*) | |
15787 | # +Z the default | |
15788 | ;; | |
15789 | *) | |
15790 | lt_prog_compiler_pic_F77='+Z' | |
15791 | ;; | |
15792 | esac | |
15793 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
15794 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' | |
15795 | ;; | |
15796 | ||
15797 | irix5* | irix6* | nonstopux*) | |
15798 | lt_prog_compiler_wl_F77='-Wl,' | |
15799 | # PIC (with -KPIC) is the default. | |
15800 | lt_prog_compiler_static_F77='-non_shared' | |
15801 | ;; | |
15802 | ||
15803 | newsos6) | |
15804 | lt_prog_compiler_pic_F77='-KPIC' | |
15805 | lt_prog_compiler_static_F77='-Bstatic' | |
15806 | ;; | |
15807 | ||
15808 | linux*) | |
15809 | case $cc_basename in | |
15810 | icc* | ecc*) | |
15811 | lt_prog_compiler_wl_F77='-Wl,' | |
15812 | lt_prog_compiler_pic_F77='-KPIC' | |
15813 | lt_prog_compiler_static_F77='-static' | |
15814 | ;; | |
15815 | pgcc* | pgf77* | pgf90* | pgf95*) | |
15816 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
15817 | # which looks to be a dead project) | |
15818 | lt_prog_compiler_wl_F77='-Wl,' | |
15819 | lt_prog_compiler_pic_F77='-fpic' | |
15820 | lt_prog_compiler_static_F77='-Bstatic' | |
15821 | ;; | |
15822 | ccc*) | |
15823 | lt_prog_compiler_wl_F77='-Wl,' | |
15824 | # All Alpha code is PIC. | |
15825 | lt_prog_compiler_static_F77='-non_shared' | |
15826 | ;; | |
15827 | esac | |
15828 | ;; | |
15829 | ||
15830 | osf3* | osf4* | osf5*) | |
15831 | lt_prog_compiler_wl_F77='-Wl,' | |
15832 | # All OSF/1 code is PIC. | |
15833 | lt_prog_compiler_static_F77='-non_shared' | |
15834 | ;; | |
15835 | ||
15836 | solaris*) | |
15837 | lt_prog_compiler_pic_F77='-KPIC' | |
15838 | lt_prog_compiler_static_F77='-Bstatic' | |
15839 | case $cc_basename in | |
15840 | f77* | f90* | f95*) | |
15841 | lt_prog_compiler_wl_F77='-Qoption ld ';; | |
15842 | *) | |
15843 | lt_prog_compiler_wl_F77='-Wl,';; | |
15844 | esac | |
15845 | ;; | |
15846 | ||
15847 | sunos4*) | |
15848 | lt_prog_compiler_wl_F77='-Qoption ld ' | |
15849 | lt_prog_compiler_pic_F77='-PIC' | |
15850 | lt_prog_compiler_static_F77='-Bstatic' | |
15851 | ;; | |
15852 | ||
15853 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
15854 | lt_prog_compiler_wl_F77='-Wl,' | |
15855 | lt_prog_compiler_pic_F77='-KPIC' | |
15856 | lt_prog_compiler_static_F77='-Bstatic' | |
15857 | ;; | |
15858 | ||
15859 | sysv4*MP*) | |
15860 | if test -d /usr/nec ;then | |
15861 | lt_prog_compiler_pic_F77='-Kconform_pic' | |
15862 | lt_prog_compiler_static_F77='-Bstatic' | |
15863 | fi | |
15864 | ;; | |
15865 | ||
15866 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
15867 | lt_prog_compiler_wl_F77='-Wl,' | |
15868 | lt_prog_compiler_pic_F77='-KPIC' | |
15869 | lt_prog_compiler_static_F77='-Bstatic' | |
15870 | ;; | |
15871 | ||
15872 | unicos*) | |
15873 | lt_prog_compiler_wl_F77='-Wl,' | |
15874 | lt_prog_compiler_can_build_shared_F77=no | |
15875 | ;; | |
15876 | ||
15877 | uts4*) | |
15878 | lt_prog_compiler_pic_F77='-pic' | |
15879 | lt_prog_compiler_static_F77='-Bstatic' | |
15880 | ;; | |
15881 | ||
15882 | *) | |
15883 | lt_prog_compiler_can_build_shared_F77=no | |
15884 | ;; | |
15885 | esac | |
15886 | fi | |
15887 | ||
15888 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 | |
15889 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } | |
15890 | ||
15891 | # | |
15892 | # Check to make sure the PIC flag actually works. | |
15893 | # | |
15894 | if test -n "$lt_prog_compiler_pic_F77"; then | |
15895 | ||
15896 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 | |
15897 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } | |
15898 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then | |
15899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15900 | else | |
15901 | lt_prog_compiler_pic_works_F77=no | |
15902 | ac_outfile=conftest.$ac_objext | |
15903 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
15904 | lt_compiler_flag="$lt_prog_compiler_pic_F77" | |
15905 | # Insert the option either (1) after the last *FLAGS variable, or | |
15906 | # (2) before a word containing "conftest.", or (3) at the end. | |
15907 | # Note that $ac_compile itself does not contain backslashes and begins | |
15908 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
15909 | # The option is referenced via a variable to avoid confusing sed. | |
15910 | lt_compile=`echo "$ac_compile" | $SED \ | |
15911 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
15912 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
15913 | -e 's:$: $lt_compiler_flag:'` | |
15914 | (eval echo "\"\$as_me:15914: $lt_compile\"" >&5) | |
15915 | (eval "$lt_compile" 2>conftest.err) | |
15916 | ac_status=$? | |
15917 | cat conftest.err >&5 | |
15918 | echo "$as_me:15918: \$? = $ac_status" >&5 | |
15919 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
15920 | # The compiler can only warn and ignore the option if not recognized | |
15921 | # So say no if there are warnings other than the usual output. | |
15922 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
15923 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
15924 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
15925 | lt_prog_compiler_pic_works_F77=yes | |
15926 | fi | |
15927 | fi | |
15928 | $rm conftest* | |
15929 | ||
15930 | fi | |
15931 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 | |
15932 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } | |
15933 | ||
15934 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then | |
15935 | case $lt_prog_compiler_pic_F77 in | |
15936 | "" | " "*) ;; | |
15937 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; | |
15938 | esac | |
15939 | else | |
15940 | lt_prog_compiler_pic_F77= | |
15941 | lt_prog_compiler_can_build_shared_F77=no | |
15942 | fi | |
15943 | ||
15944 | fi | |
15945 | case $host_os in | |
15946 | # For platforms which do not support PIC, -DPIC is meaningless: | |
15947 | *djgpp*) | |
15948 | lt_prog_compiler_pic_F77= | |
15949 | ;; | |
15950 | *) | |
15951 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" | |
15952 | ;; | |
15953 | esac | |
15954 | ||
15955 | # | |
15956 | # Check to make sure the static flag actually works. | |
15957 | # | |
15958 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" | |
15959 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
15960 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
15961 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then | |
15962 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
15963 | else | |
15964 | lt_prog_compiler_static_works_F77=no | |
15965 | save_LDFLAGS="$LDFLAGS" | |
15966 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
15967 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
15968 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
15969 | # The linker can only warn and ignore the option if not recognized | |
15970 | # So say no if there are warnings | |
15971 | if test -s conftest.err; then | |
15972 | # Append any errors to the config.log. | |
15973 | cat conftest.err 1>&5 | |
15974 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
15975 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
15976 | if diff conftest.exp conftest.er2 >/dev/null; then | |
15977 | lt_prog_compiler_static_works_F77=yes | |
15978 | fi | |
15979 | else | |
15980 | lt_prog_compiler_static_works_F77=yes | |
15981 | fi | |
15982 | fi | |
15983 | $rm conftest* | |
15984 | LDFLAGS="$save_LDFLAGS" | |
15985 | ||
15986 | fi | |
15987 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 | |
15988 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } | |
15989 | ||
15990 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then | |
15991 | : | |
15992 | else | |
15993 | lt_prog_compiler_static_F77= | |
15994 | fi | |
15995 | ||
15996 | ||
15997 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
15998 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
15999 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then | |
16000 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
16001 | else | |
16002 | lt_cv_prog_compiler_c_o_F77=no | |
16003 | $rm -r conftest 2>/dev/null | |
16004 | mkdir conftest | |
16005 | cd conftest | |
16006 | mkdir out | |
16007 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
16008 | ||
16009 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
16010 | # Insert the option either (1) after the last *FLAGS variable, or | |
16011 | # (2) before a word containing "conftest.", or (3) at the end. | |
16012 | # Note that $ac_compile itself does not contain backslashes and begins | |
16013 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
16014 | lt_compile=`echo "$ac_compile" | $SED \ | |
16015 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
16016 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
16017 | -e 's:$: $lt_compiler_flag:'` | |
16018 | (eval echo "\"\$as_me:16018: $lt_compile\"" >&5) | |
16019 | (eval "$lt_compile" 2>out/conftest.err) | |
16020 | ac_status=$? | |
16021 | cat out/conftest.err >&5 | |
16022 | echo "$as_me:16022: \$? = $ac_status" >&5 | |
16023 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
16024 | then | |
16025 | # The compiler can only warn and ignore the option if not recognized | |
16026 | # So say no if there are warnings | |
16027 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
16028 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
16029 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
16030 | lt_cv_prog_compiler_c_o_F77=yes | |
16031 | fi | |
16032 | fi | |
16033 | chmod u+w . 2>&5 | |
16034 | $rm conftest* | |
16035 | # SGI C++ compiler will create directory out/ii_files/ for | |
16036 | # template instantiation | |
16037 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
16038 | $rm out/* && rmdir out | |
16039 | cd .. | |
16040 | rmdir conftest | |
16041 | $rm conftest* | |
16042 | ||
16043 | fi | |
16044 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 | |
16045 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } | |
16046 | ||
16047 | ||
16048 | hard_links="nottested" | |
16049 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then | |
16050 | # do not overwrite the value of need_locks provided by the user | |
16051 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
16052 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
16053 | hard_links=yes | |
16054 | $rm conftest* | |
16055 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16056 | touch conftest.a | |
16057 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
16058 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
16059 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
16060 | echo "${ECHO_T}$hard_links" >&6; } | |
16061 | if test "$hard_links" = no; then | |
16062 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
16063 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
16064 | need_locks=warn | |
16065 | fi | |
16066 | else | |
16067 | need_locks=no | |
16068 | fi | |
16069 | ||
16070 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
16071 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
16072 | ||
16073 | runpath_var= | |
16074 | allow_undefined_flag_F77= | |
16075 | enable_shared_with_static_runtimes_F77=no | |
16076 | archive_cmds_F77= | |
16077 | archive_expsym_cmds_F77= | |
16078 | old_archive_From_new_cmds_F77= | |
16079 | old_archive_from_expsyms_cmds_F77= | |
16080 | export_dynamic_flag_spec_F77= | |
16081 | whole_archive_flag_spec_F77= | |
16082 | thread_safe_flag_spec_F77= | |
16083 | hardcode_libdir_flag_spec_F77= | |
16084 | hardcode_libdir_flag_spec_ld_F77= | |
16085 | hardcode_libdir_separator_F77= | |
16086 | hardcode_direct_F77=no | |
16087 | hardcode_minus_L_F77=no | |
16088 | hardcode_shlibpath_var_F77=unsupported | |
16089 | link_all_deplibs_F77=unknown | |
16090 | hardcode_automatic_F77=no | |
16091 | module_cmds_F77= | |
16092 | module_expsym_cmds_F77= | |
16093 | always_export_symbols_F77=no | |
16094 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
16095 | # include_expsyms should be a list of space-separated symbols to be *always* | |
16096 | # included in the symbol list | |
16097 | include_expsyms_F77= | |
16098 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
16099 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
16100 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
16101 | # as well as any symbol that contains `d'. | |
16102 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" | |
16103 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
16104 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
16105 | # the symbol is explicitly referenced. Since portable code cannot | |
16106 | # rely on this symbol name, it's probably fine to never include it in | |
16107 | # preloaded symbol tables. | |
16108 | extract_expsyms_cmds= | |
16109 | # Just being paranoid about ensuring that cc_basename is set. | |
16110 | for cc_temp in $compiler""; do | |
16111 | case $cc_temp in | |
16112 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
16113 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
16114 | \-*) ;; | |
16115 | *) break;; | |
16116 | esac | |
16117 | done | |
16118 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
16119 | ||
16120 | case $host_os in | |
16121 | cygwin* | mingw* | pw32*) | |
16122 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
16123 | # When not using gcc, we currently assume that we are using | |
16124 | # Microsoft Visual C++. | |
16125 | if test "$GCC" != yes; then | |
16126 | with_gnu_ld=no | |
16127 | fi | |
16128 | ;; | |
16129 | interix*) | |
16130 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
16131 | with_gnu_ld=yes | |
16132 | ;; | |
16133 | openbsd*) | |
16134 | with_gnu_ld=no | |
16135 | ;; | |
16136 | esac | |
16137 | ||
16138 | ld_shlibs_F77=yes | |
16139 | if test "$with_gnu_ld" = yes; then | |
16140 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
16141 | wlarc='${wl}' | |
16142 | ||
16143 | # Set some defaults for GNU ld with shared library support. These | |
16144 | # are reset later if shared libraries are not supported. Putting them | |
16145 | # here allows them to be overridden if necessary. | |
16146 | runpath_var=LD_RUN_PATH | |
16147 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' | |
16148 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' | |
16149 | # ancient GNU ld didn't support --whole-archive et. al. | |
16150 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
16151 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
16152 | else | |
16153 | whole_archive_flag_spec_F77= | |
16154 | fi | |
16155 | supports_anon_versioning=no | |
16156 | case `$LD -v 2>/dev/null` in | |
16157 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
16158 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
16159 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
16160 | *\ 2.11.*) ;; # other 2.11 versions | |
16161 | *) supports_anon_versioning=yes ;; | |
16162 | esac | |
16163 | ||
16164 | # See if GNU ld supports shared libraries. | |
16165 | case $host_os in | |
16166 | aix3* | aix4* | aix5*) | |
16167 | # On AIX/PPC, the GNU linker is very broken | |
16168 | if test "$host_cpu" != ia64; then | |
16169 | ld_shlibs_F77=no | |
16170 | cat <<EOF 1>&2 | |
16171 | ||
16172 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
16173 | *** to be unable to reliably create shared libraries on AIX. | |
16174 | *** Therefore, libtool is disabling shared libraries support. If you | |
16175 | *** really care for shared libraries, you may want to modify your PATH | |
16176 | *** so that a non-GNU linker is found, and then restart. | |
16177 | ||
16178 | EOF | |
16179 | fi | |
16180 | ;; | |
16181 | ||
16182 | amigaos*) | |
16183 | 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)' | |
16184 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16185 | hardcode_minus_L_F77=yes | |
16186 | ||
16187 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
16188 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
16189 | # to version 4, is to share data among multiple programs linked | |
16190 | # with the same dynamic library. Since this doesn't match the | |
16191 | # behavior of shared libraries on other platforms, we can't use | |
16192 | # them. | |
16193 | ld_shlibs_F77=no | |
16194 | ;; | |
16195 | ||
16196 | beos*) | |
16197 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16198 | allow_undefined_flag_F77=unsupported | |
16199 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
16200 | # support --undefined. This deserves some investigation. FIXME | |
16201 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16202 | else | |
16203 | ld_shlibs_F77=no | |
16204 | fi | |
16205 | ;; | |
16206 | ||
16207 | cygwin* | mingw* | pw32*) | |
16208 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, | |
16209 | # as there is no search path for DLLs. | |
16210 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16211 | allow_undefined_flag_F77=unsupported | |
16212 | always_export_symbols_F77=no | |
16213 | enable_shared_with_static_runtimes_F77=yes | |
16214 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
16215 | ||
16216 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
16217 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
16218 | # If the export-symbols file already is a .def file (1st line | |
16219 | # is EXPORTS), use it as is; otherwise, prepend... | |
16220 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
16221 | cp $export_symbols $output_objdir/$soname.def; | |
16222 | else | |
16223 | echo EXPORTS > $output_objdir/$soname.def; | |
16224 | cat $export_symbols >> $output_objdir/$soname.def; | |
16225 | fi~ | |
16226 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
16227 | else | |
16228 | ld_shlibs_F77=no | |
16229 | fi | |
16230 | ;; | |
16231 | ||
16232 | interix3*) | |
16233 | hardcode_direct_F77=no | |
16234 | hardcode_shlibpath_var_F77=no | |
16235 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
16236 | export_dynamic_flag_spec_F77='${wl}-E' | |
16237 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
16238 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
16239 | # default) and relocated if they conflict, which is a slow very memory | |
16240 | # consuming and fragmenting process. To avoid this, we pick a random, | |
16241 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
16242 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
16243 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
16244 | archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
16245 | ;; | |
16246 | ||
16247 | linux*) | |
16248 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16249 | tmp_addflag= | |
16250 | case $cc_basename,$host_cpu in | |
16251 | pgcc*) # Portland Group C compiler | |
16252 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
16253 | tmp_addflag=' $pic_flag' | |
16254 | ;; | |
16255 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
16256 | whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
16257 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
16258 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
16259 | tmp_addflag=' -i_dynamic' ;; | |
16260 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
16261 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
16262 | ifc* | ifort*) # Intel Fortran compiler | |
16263 | tmp_addflag=' -nofor_main' ;; | |
16264 | esac | |
16265 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16266 | ||
16267 | if test $supports_anon_versioning = yes; then | |
16268 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ | |
16269 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
16270 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
16271 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
16272 | fi | |
16273 | else | |
16274 | ld_shlibs_F77=no | |
16275 | fi | |
16276 | ;; | |
16277 | ||
16278 | netbsd*) | |
16279 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16280 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
16281 | wlarc= | |
16282 | else | |
16283 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16284 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16285 | fi | |
16286 | ;; | |
16287 | ||
16288 | solaris*) | |
16289 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
16290 | ld_shlibs_F77=no | |
16291 | cat <<EOF 1>&2 | |
16292 | ||
16293 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
16294 | *** create shared libraries on Solaris systems. Therefore, libtool | |
16295 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
16296 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
16297 | *** your PATH or compiler configuration so that the native linker is | |
16298 | *** used, and then restart. | |
16299 | ||
16300 | EOF | |
16301 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16302 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16303 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16304 | else | |
16305 | ld_shlibs_F77=no | |
16306 | fi | |
16307 | ;; | |
16308 | ||
16309 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
16310 | case `$LD -v 2>&1` in | |
16311 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
16312 | ld_shlibs_F77=no | |
16313 | cat <<_LT_EOF 1>&2 | |
16314 | ||
16315 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
16316 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
16317 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
16318 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
16319 | *** your PATH or compiler configuration so that the native linker is | |
16320 | *** used, and then restart. | |
16321 | ||
16322 | _LT_EOF | |
16323 | ;; | |
16324 | *) | |
16325 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16326 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
16327 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
16328 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
16329 | else | |
16330 | ld_shlibs_F77=no | |
16331 | fi | |
16332 | ;; | |
16333 | esac | |
16334 | ;; | |
16335 | ||
16336 | sunos4*) | |
16337 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16338 | wlarc= | |
16339 | hardcode_direct_F77=yes | |
16340 | hardcode_shlibpath_var_F77=no | |
16341 | ;; | |
16342 | ||
16343 | *) | |
16344 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
16345 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
16346 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
16347 | else | |
16348 | ld_shlibs_F77=no | |
16349 | fi | |
16350 | ;; | |
16351 | esac | |
16352 | ||
16353 | if test "$ld_shlibs_F77" = no; then | |
16354 | runpath_var= | |
16355 | hardcode_libdir_flag_spec_F77= | |
16356 | export_dynamic_flag_spec_F77= | |
16357 | whole_archive_flag_spec_F77= | |
16358 | fi | |
16359 | else | |
16360 | # PORTME fill in a description of your system's linker (not GNU ld) | |
16361 | case $host_os in | |
16362 | aix3*) | |
16363 | allow_undefined_flag_F77=unsupported | |
16364 | always_export_symbols_F77=yes | |
16365 | 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' | |
16366 | # Note: this linker hardcodes the directories in LIBPATH if there | |
16367 | # are no directories specified by -L. | |
16368 | hardcode_minus_L_F77=yes | |
16369 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
16370 | # Neither direct hardcoding nor static linking is supported with a | |
16371 | # broken collect2. | |
16372 | hardcode_direct_F77=unsupported | |
16373 | fi | |
16374 | ;; | |
16375 | ||
16376 | aix4* | aix5*) | |
16377 | if test "$host_cpu" = ia64; then | |
16378 | # On IA64, the linker does run time linking by default, so we don't | |
16379 | # have to do anything special. | |
16380 | aix_use_runtimelinking=no | |
16381 | exp_sym_flag='-Bexport' | |
16382 | no_entry_flag="" | |
16383 | else | |
16384 | # If we're using GNU nm, then we don't want the "-C" option. | |
16385 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
16386 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
16387 | 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' | |
16388 | else | |
16389 | 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' | |
16390 | fi | |
16391 | aix_use_runtimelinking=no | |
16392 | ||
16393 | # Test if we are trying to use run time linking or normal | |
16394 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
16395 | # need to do runtime linking. | |
16396 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
16397 | for ld_flag in $LDFLAGS; do | |
16398 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
16399 | aix_use_runtimelinking=yes | |
16400 | break | |
16401 | fi | |
16402 | done | |
16403 | ;; | |
16404 | esac | |
16405 | ||
16406 | exp_sym_flag='-bexport' | |
16407 | no_entry_flag='-bnoentry' | |
16408 | fi | |
16409 | ||
16410 | # When large executables or shared objects are built, AIX ld can | |
16411 | # have problems creating the table of contents. If linking a library | |
16412 | # or program results in "error TOC overflow" add -mminimal-toc to | |
16413 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
16414 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
16415 | ||
16416 | archive_cmds_F77='' | |
16417 | hardcode_direct_F77=yes | |
16418 | hardcode_libdir_separator_F77=':' | |
16419 | link_all_deplibs_F77=yes | |
16420 | ||
16421 | if test "$GCC" = yes; then | |
16422 | case $host_os in aix4.[012]|aix4.[012].*) | |
16423 | # We only want to do this on AIX 4.2 and lower, the check | |
16424 | # below for broken collect2 doesn't work under 4.3+ | |
16425 | collect2name=`${CC} -print-prog-name=collect2` | |
16426 | if test -f "$collect2name" && \ | |
16427 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
16428 | then | |
16429 | # We have reworked collect2 | |
16430 | hardcode_direct_F77=yes | |
16431 | else | |
16432 | # We have old collect2 | |
16433 | hardcode_direct_F77=unsupported | |
16434 | # It fails to find uninstalled libraries when the uninstalled | |
16435 | # path is not listed in the libpath. Setting hardcode_minus_L | |
16436 | # to unsupported forces relinking | |
16437 | hardcode_minus_L_F77=yes | |
16438 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16439 | hardcode_libdir_separator_F77= | |
16440 | fi | |
16441 | ;; | |
16442 | esac | |
16443 | shared_flag='-shared' | |
16444 | if test "$aix_use_runtimelinking" = yes; then | |
16445 | shared_flag="$shared_flag "'${wl}-G' | |
16446 | fi | |
16447 | else | |
16448 | # not using gcc | |
16449 | if test "$host_cpu" = ia64; then | |
16450 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
16451 | # chokes on -Wl,-G. The following line is correct: | |
16452 | shared_flag='-G' | |
16453 | else | |
16454 | if test "$aix_use_runtimelinking" = yes; then | |
16455 | shared_flag='${wl}-G' | |
16456 | else | |
16457 | shared_flag='${wl}-bM:SRE' | |
16458 | fi | |
16459 | fi | |
16460 | fi | |
16461 | ||
16462 | # It seems that -bexpall does not export symbols beginning with | |
16463 | # underscore (_), so it is better to generate a list of symbols to export. | |
16464 | always_export_symbols_F77=yes | |
16465 | if test "$aix_use_runtimelinking" = yes; then | |
16466 | # Warning - without using the other runtime loading flags (-brtl), | |
16467 | # -berok will link without error, but may produce a broken library. | |
16468 | allow_undefined_flag_F77='-berok' | |
16469 | # Determine the default libpath from the value encoded in an empty executable. | |
16470 | cat >conftest.$ac_ext <<_ACEOF | |
16471 | program main | |
16472 | ||
16473 | end | |
16474 | _ACEOF | |
16475 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16476 | if { (ac_try="$ac_link" | |
16477 | case "(($ac_try" in | |
16478 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16479 | *) ac_try_echo=$ac_try;; | |
16480 | esac | |
16481 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16482 | (eval "$ac_link") 2>conftest.er1 | |
16483 | ac_status=$? | |
16484 | grep -v '^ *+' conftest.er1 >conftest.err | |
16485 | rm -f conftest.er1 | |
16486 | cat conftest.err >&5 | |
16487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16488 | (exit $ac_status); } && { | |
16489 | test -z "$ac_f77_werror_flag" || | |
16490 | test ! -s conftest.err | |
16491 | } && test -s conftest$ac_exeext && | |
16492 | $as_test_x conftest$ac_exeext; then | |
16493 | ||
16494 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16495 | }'` | |
16496 | # Check for a 64-bit object if we didn't find anything. | |
16497 | 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; } | |
16498 | }'`; fi | |
16499 | else | |
16500 | echo "$as_me: failed program was:" >&5 | |
16501 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16502 | ||
16503 | ||
16504 | fi | |
16505 | ||
16506 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16507 | conftest$ac_exeext conftest.$ac_ext | |
16508 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16509 | ||
16510 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16511 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
16512 | else | |
16513 | if test "$host_cpu" = ia64; then | |
16514 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' | |
16515 | allow_undefined_flag_F77="-z nodefs" | |
16516 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
16517 | else | |
16518 | # Determine the default libpath from the value encoded in an empty executable. | |
16519 | cat >conftest.$ac_ext <<_ACEOF | |
16520 | program main | |
16521 | ||
16522 | end | |
16523 | _ACEOF | |
16524 | rm -f conftest.$ac_objext conftest$ac_exeext | |
16525 | if { (ac_try="$ac_link" | |
16526 | case "(($ac_try" in | |
16527 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
16528 | *) ac_try_echo=$ac_try;; | |
16529 | esac | |
16530 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
16531 | (eval "$ac_link") 2>conftest.er1 | |
16532 | ac_status=$? | |
16533 | grep -v '^ *+' conftest.er1 >conftest.err | |
16534 | rm -f conftest.er1 | |
16535 | cat conftest.err >&5 | |
16536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
16537 | (exit $ac_status); } && { | |
16538 | test -z "$ac_f77_werror_flag" || | |
16539 | test ! -s conftest.err | |
16540 | } && test -s conftest$ac_exeext && | |
16541 | $as_test_x conftest$ac_exeext; then | |
16542 | ||
16543 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
16544 | }'` | |
16545 | # Check for a 64-bit object if we didn't find anything. | |
16546 | 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; } | |
16547 | }'`; fi | |
16548 | else | |
16549 | echo "$as_me: failed program was:" >&5 | |
16550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
16551 | ||
16552 | ||
16553 | fi | |
16554 | ||
16555 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
16556 | conftest$ac_exeext conftest.$ac_ext | |
16557 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
16558 | ||
16559 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" | |
16560 | # Warning - without using the other run time loading flags, | |
16561 | # -berok will link without error, but may produce a broken library. | |
16562 | no_undefined_flag_F77=' ${wl}-bernotok' | |
16563 | allow_undefined_flag_F77=' ${wl}-berok' | |
16564 | # Exported symbols can be pulled into shared objects from archives | |
16565 | whole_archive_flag_spec_F77='$convenience' | |
16566 | archive_cmds_need_lc_F77=yes | |
16567 | # This is similar to how AIX traditionally builds its shared libraries. | |
16568 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
16569 | fi | |
16570 | fi | |
16571 | ;; | |
16572 | ||
16573 | amigaos*) | |
16574 | 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)' | |
16575 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16576 | hardcode_minus_L_F77=yes | |
16577 | # see comment about different semantics on the GNU ld section | |
16578 | ld_shlibs_F77=no | |
16579 | ;; | |
16580 | ||
16581 | bsdi[45]*) | |
16582 | export_dynamic_flag_spec_F77=-rdynamic | |
16583 | ;; | |
16584 | ||
16585 | cygwin* | mingw* | pw32*) | |
16586 | # When not using gcc, we currently assume that we are using | |
16587 | # Microsoft Visual C++. | |
16588 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
16589 | # no search path for DLLs. | |
16590 | hardcode_libdir_flag_spec_F77=' ' | |
16591 | allow_undefined_flag_F77=unsupported | |
16592 | # Tell ltmain to make .lib files, not .a files. | |
16593 | libext=lib | |
16594 | # Tell ltmain to make .dll files, not .so files. | |
16595 | shrext_cmds=".dll" | |
16596 | # FIXME: Setting linknames here is a bad hack. | |
16597 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
16598 | # The linker will automatically build a .lib file if we build a DLL. | |
16599 | old_archive_From_new_cmds_F77='true' | |
16600 | # FIXME: Should let the user specify the lib program. | |
16601 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
16602 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' | |
16603 | enable_shared_with_static_runtimes_F77=yes | |
16604 | ;; | |
16605 | ||
16606 | darwin* | rhapsody*) | |
16607 | case $host_os in | |
16608 | rhapsody* | darwin1.[012]) | |
16609 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' | |
16610 | ;; | |
16611 | *) # Darwin 1.3 on | |
16612 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
16613 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
16614 | else | |
16615 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
16616 | 10.[012]) | |
16617 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
16618 | ;; | |
16619 | 10.*) | |
16620 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' | |
16621 | ;; | |
16622 | esac | |
16623 | fi | |
16624 | ;; | |
16625 | esac | |
16626 | archive_cmds_need_lc_F77=no | |
16627 | hardcode_direct_F77=no | |
16628 | hardcode_automatic_F77=yes | |
16629 | hardcode_shlibpath_var_F77=unsupported | |
16630 | whole_archive_flag_spec_F77='' | |
16631 | link_all_deplibs_F77=yes | |
16632 | if test "$GCC" = yes ; then | |
16633 | output_verbose_link_cmd='echo' | |
16634 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
16635 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
16636 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
16637 | archive_expsym_cmds_F77='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}' | |
16638 | 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}' | |
16639 | else | |
16640 | case $cc_basename in | |
16641 | xlc*) | |
16642 | output_verbose_link_cmd='echo' | |
16643 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
16644 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
16645 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
16646 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
16647 | 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}' | |
16648 | ;; | |
16649 | *) | |
16650 | ld_shlibs_F77=no | |
16651 | ;; | |
16652 | esac | |
16653 | fi | |
16654 | ;; | |
16655 | ||
16656 | dgux*) | |
16657 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16658 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16659 | hardcode_shlibpath_var_F77=no | |
16660 | ;; | |
16661 | ||
16662 | freebsd1*) | |
16663 | ld_shlibs_F77=no | |
16664 | ;; | |
16665 | ||
16666 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
16667 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
16668 | # does not break anything, and helps significantly (at the cost of a little | |
16669 | # extra space). | |
16670 | freebsd2.2*) | |
16671 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
16672 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
16673 | hardcode_direct_F77=yes | |
16674 | hardcode_shlibpath_var_F77=no | |
16675 | ;; | |
16676 | ||
16677 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
16678 | freebsd2*) | |
16679 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16680 | hardcode_direct_F77=yes | |
16681 | hardcode_minus_L_F77=yes | |
16682 | hardcode_shlibpath_var_F77=no | |
16683 | ;; | |
16684 | ||
16685 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
16686 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
16687 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
16688 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
16689 | hardcode_direct_F77=yes | |
16690 | hardcode_shlibpath_var_F77=no | |
16691 | ;; | |
16692 | ||
16693 | hpux9*) | |
16694 | if test "$GCC" = yes; then | |
16695 | 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' | |
16696 | else | |
16697 | 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' | |
16698 | fi | |
16699 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
16700 | hardcode_libdir_separator_F77=: | |
16701 | hardcode_direct_F77=yes | |
16702 | ||
16703 | # hardcode_minus_L: Not really in the search PATH, | |
16704 | # but as the default location of the library. | |
16705 | hardcode_minus_L_F77=yes | |
16706 | export_dynamic_flag_spec_F77='${wl}-E' | |
16707 | ;; | |
16708 | ||
16709 | hpux10*) | |
16710 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
16711 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16712 | else | |
16713 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
16714 | fi | |
16715 | if test "$with_gnu_ld" = no; then | |
16716 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
16717 | hardcode_libdir_separator_F77=: | |
16718 | ||
16719 | hardcode_direct_F77=yes | |
16720 | export_dynamic_flag_spec_F77='${wl}-E' | |
16721 | ||
16722 | # hardcode_minus_L: Not really in the search PATH, | |
16723 | # but as the default location of the library. | |
16724 | hardcode_minus_L_F77=yes | |
16725 | fi | |
16726 | ;; | |
16727 | ||
16728 | hpux11*) | |
16729 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
16730 | case $host_cpu in | |
16731 | hppa*64*) | |
16732 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16733 | ;; | |
16734 | ia64*) | |
16735 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
16736 | ;; | |
16737 | *) | |
16738 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16739 | ;; | |
16740 | esac | |
16741 | else | |
16742 | case $host_cpu in | |
16743 | hppa*64*) | |
16744 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16745 | ;; | |
16746 | ia64*) | |
16747 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
16748 | ;; | |
16749 | *) | |
16750 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
16751 | ;; | |
16752 | esac | |
16753 | fi | |
16754 | if test "$with_gnu_ld" = no; then | |
16755 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' | |
16756 | hardcode_libdir_separator_F77=: | |
16757 | ||
16758 | case $host_cpu in | |
16759 | hppa*64*|ia64*) | |
16760 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' | |
16761 | hardcode_direct_F77=no | |
16762 | hardcode_shlibpath_var_F77=no | |
16763 | ;; | |
16764 | *) | |
16765 | hardcode_direct_F77=yes | |
16766 | export_dynamic_flag_spec_F77='${wl}-E' | |
16767 | ||
16768 | # hardcode_minus_L: Not really in the search PATH, | |
16769 | # but as the default location of the library. | |
16770 | hardcode_minus_L_F77=yes | |
16771 | ;; | |
16772 | esac | |
16773 | fi | |
16774 | ;; | |
16775 | ||
16776 | irix5* | irix6* | nonstopux*) | |
16777 | if test "$GCC" = yes; then | |
16778 | 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' | |
16779 | else | |
16780 | 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' | |
16781 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' | |
16782 | fi | |
16783 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
16784 | hardcode_libdir_separator_F77=: | |
16785 | link_all_deplibs_F77=yes | |
16786 | ;; | |
16787 | ||
16788 | netbsd*) | |
16789 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
16790 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
16791 | else | |
16792 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
16793 | fi | |
16794 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
16795 | hardcode_direct_F77=yes | |
16796 | hardcode_shlibpath_var_F77=no | |
16797 | ;; | |
16798 | ||
16799 | newsos6) | |
16800 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16801 | hardcode_direct_F77=yes | |
16802 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
16803 | hardcode_libdir_separator_F77=: | |
16804 | hardcode_shlibpath_var_F77=no | |
16805 | ;; | |
16806 | ||
16807 | openbsd*) | |
16808 | hardcode_direct_F77=yes | |
16809 | hardcode_shlibpath_var_F77=no | |
16810 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
16811 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
16812 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
16813 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
16814 | export_dynamic_flag_spec_F77='${wl}-E' | |
16815 | else | |
16816 | case $host_os in | |
16817 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
16818 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
16819 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
16820 | ;; | |
16821 | *) | |
16822 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
16823 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' | |
16824 | ;; | |
16825 | esac | |
16826 | fi | |
16827 | ;; | |
16828 | ||
16829 | os2*) | |
16830 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16831 | hardcode_minus_L_F77=yes | |
16832 | allow_undefined_flag_F77=unsupported | |
16833 | 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' | |
16834 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
16835 | ;; | |
16836 | ||
16837 | osf3*) | |
16838 | if test "$GCC" = yes; then | |
16839 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
16840 | 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' | |
16841 | else | |
16842 | allow_undefined_flag_F77=' -expect_unresolved \*' | |
16843 | 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' | |
16844 | fi | |
16845 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
16846 | hardcode_libdir_separator_F77=: | |
16847 | ;; | |
16848 | ||
16849 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
16850 | if test "$GCC" = yes; then | |
16851 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' | |
16852 | 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' | |
16853 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' | |
16854 | else | |
16855 | allow_undefined_flag_F77=' -expect_unresolved \*' | |
16856 | 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' | |
16857 | 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~ | |
16858 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
16859 | ||
16860 | # Both c and cxx compiler support -rpath directly | |
16861 | hardcode_libdir_flag_spec_F77='-rpath $libdir' | |
16862 | fi | |
16863 | hardcode_libdir_separator_F77=: | |
16864 | ;; | |
16865 | ||
16866 | solaris*) | |
16867 | no_undefined_flag_F77=' -z text' | |
16868 | if test "$GCC" = yes; then | |
16869 | wlarc='${wl}' | |
16870 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16871 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
16872 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
16873 | else | |
16874 | wlarc='' | |
16875 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16876 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
16877 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
16878 | fi | |
16879 | hardcode_libdir_flag_spec_F77='-R$libdir' | |
16880 | hardcode_shlibpath_var_F77=no | |
16881 | case $host_os in | |
16882 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
16883 | *) | |
16884 | # The compiler driver will combine linker options so we | |
16885 | # cannot just pass the convience library names through | |
16886 | # without $wl, iff we do not link with $LD. | |
16887 | # Luckily, gcc supports the same syntax we need for Sun Studio. | |
16888 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
16889 | case $wlarc in | |
16890 | '') | |
16891 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; | |
16892 | *) | |
16893 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
16894 | esac ;; | |
16895 | esac | |
16896 | link_all_deplibs_F77=yes | |
16897 | ;; | |
16898 | ||
16899 | sunos4*) | |
16900 | if test "x$host_vendor" = xsequent; then | |
16901 | # Use $CC to link under sequent, because it throws in some extra .o | |
16902 | # files that make .init and .fini sections work. | |
16903 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
16904 | else | |
16905 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
16906 | fi | |
16907 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16908 | hardcode_direct_F77=yes | |
16909 | hardcode_minus_L_F77=yes | |
16910 | hardcode_shlibpath_var_F77=no | |
16911 | ;; | |
16912 | ||
16913 | sysv4) | |
16914 | case $host_vendor in | |
16915 | sni) | |
16916 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16917 | hardcode_direct_F77=yes # is this really true??? | |
16918 | ;; | |
16919 | siemens) | |
16920 | ## LD is ld it makes a PLAMLIB | |
16921 | ## CC just makes a GrossModule. | |
16922 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
16923 | reload_cmds_F77='$CC -r -o $output$reload_objs' | |
16924 | hardcode_direct_F77=no | |
16925 | ;; | |
16926 | motorola) | |
16927 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16928 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie | |
16929 | ;; | |
16930 | esac | |
16931 | runpath_var='LD_RUN_PATH' | |
16932 | hardcode_shlibpath_var_F77=no | |
16933 | ;; | |
16934 | ||
16935 | sysv4.3*) | |
16936 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16937 | hardcode_shlibpath_var_F77=no | |
16938 | export_dynamic_flag_spec_F77='-Bexport' | |
16939 | ;; | |
16940 | ||
16941 | sysv4*MP*) | |
16942 | if test -d /usr/nec; then | |
16943 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16944 | hardcode_shlibpath_var_F77=no | |
16945 | runpath_var=LD_RUN_PATH | |
16946 | hardcode_runpath_var=yes | |
16947 | ld_shlibs_F77=yes | |
16948 | fi | |
16949 | ;; | |
16950 | ||
16951 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
16952 | no_undefined_flag_F77='${wl}-z,text' | |
16953 | archive_cmds_need_lc_F77=no | |
16954 | hardcode_shlibpath_var_F77=no | |
16955 | runpath_var='LD_RUN_PATH' | |
16956 | ||
16957 | if test "$GCC" = yes; then | |
16958 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16959 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16960 | else | |
16961 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16962 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16963 | fi | |
16964 | ;; | |
16965 | ||
16966 | sysv5* | sco3.2v5* | sco5v6*) | |
16967 | # Note: We can NOT use -z defs as we might desire, because we do not | |
16968 | # link with -lc, and that would cause any symbols used from libc to | |
16969 | # always be unresolved, which means just about no library would | |
16970 | # ever link correctly. If we're not using GNU ld we use -z text | |
16971 | # though, which does catch some bad symbols but isn't as heavy-handed | |
16972 | # as -z defs. | |
16973 | no_undefined_flag_F77='${wl}-z,text' | |
16974 | allow_undefined_flag_F77='${wl}-z,nodefs' | |
16975 | archive_cmds_need_lc_F77=no | |
16976 | hardcode_shlibpath_var_F77=no | |
16977 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
16978 | hardcode_libdir_separator_F77=':' | |
16979 | link_all_deplibs_F77=yes | |
16980 | export_dynamic_flag_spec_F77='${wl}-Bexport' | |
16981 | runpath_var='LD_RUN_PATH' | |
16982 | ||
16983 | if test "$GCC" = yes; then | |
16984 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16985 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16986 | else | |
16987 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16988 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
16989 | fi | |
16990 | ;; | |
16991 | ||
16992 | uts4*) | |
16993 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
16994 | hardcode_libdir_flag_spec_F77='-L$libdir' | |
16995 | hardcode_shlibpath_var_F77=no | |
16996 | ;; | |
16997 | ||
16998 | *) | |
16999 | ld_shlibs_F77=no | |
17000 | ;; | |
17001 | esac | |
17002 | fi | |
17003 | ||
17004 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 | |
17005 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } | |
17006 | test "$ld_shlibs_F77" = no && can_build_shared=no | |
17007 | ||
17008 | # | |
17009 | # Do we need to explicitly link libc? | |
17010 | # | |
17011 | case "x$archive_cmds_need_lc_F77" in | |
17012 | x|xyes) | |
17013 | # Assume -lc should be added | |
17014 | archive_cmds_need_lc_F77=yes | |
17015 | ||
17016 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
17017 | case $archive_cmds_F77 in | |
17018 | *'~'*) | |
17019 | # FIXME: we may have to deal with multi-command sequences. | |
17020 | ;; | |
17021 | '$CC '*) | |
17022 | # Test whether the compiler implicitly links with -lc since on some | |
17023 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
17024 | # to ld, don't add -lc before -lgcc. | |
17025 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
17026 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
17027 | $rm conftest* | |
17028 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
17029 | ||
17030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
17031 | (eval $ac_compile) 2>&5 | |
17032 | ac_status=$? | |
17033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17034 | (exit $ac_status); } 2>conftest.err; then | |
17035 | soname=conftest | |
17036 | lib=conftest | |
17037 | libobjs=conftest.$ac_objext | |
17038 | deplibs= | |
17039 | wl=$lt_prog_compiler_wl_F77 | |
17040 | pic_flag=$lt_prog_compiler_pic_F77 | |
17041 | compiler_flags=-v | |
17042 | linker_flags=-v | |
17043 | verstring= | |
17044 | output_objdir=. | |
17045 | libname=conftest | |
17046 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 | |
17047 | allow_undefined_flag_F77= | |
17048 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
17049 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
17050 | ac_status=$? | |
17051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
17052 | (exit $ac_status); } | |
17053 | then | |
17054 | archive_cmds_need_lc_F77=no | |
17055 | else | |
17056 | archive_cmds_need_lc_F77=yes | |
17057 | fi | |
17058 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag | |
17059 | else | |
17060 | cat conftest.err 1>&5 | |
17061 | fi | |
17062 | $rm conftest* | |
17063 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 | |
17064 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } | |
17065 | ;; | |
17066 | esac | |
17067 | fi | |
17068 | ;; | |
17069 | esac | |
17070 | ||
17071 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
17072 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
17073 | library_names_spec= | |
17074 | libname_spec='lib$name' | |
17075 | soname_spec= | |
17076 | shrext_cmds=".so" | |
17077 | postinstall_cmds= | |
17078 | postuninstall_cmds= | |
17079 | finish_cmds= | |
17080 | finish_eval= | |
17081 | shlibpath_var= | |
17082 | shlibpath_overrides_runpath=unknown | |
17083 | version_type=none | |
17084 | dynamic_linker="$host_os ld.so" | |
17085 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
17086 | if test "$GCC" = yes; then | |
17087 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
17088 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
17089 | # if the path contains ";" then we assume it to be the separator | |
17090 | # otherwise default to the standard path separator (i.e. ":") - it is | |
17091 | # assumed that no part of a normal pathname contains ";" but that should | |
17092 | # okay in the real world where ";" in dirpaths is itself problematic. | |
17093 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
17094 | else | |
17095 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
17096 | fi | |
17097 | else | |
17098 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
17099 | fi | |
17100 | need_lib_prefix=unknown | |
17101 | hardcode_into_libs=no | |
17102 | ||
17103 | # when you set need_version to no, make sure it does not cause -set_version | |
17104 | # flags to be left without arguments | |
17105 | need_version=unknown | |
17106 | ||
17107 | case $host_os in | |
17108 | aix3*) | |
17109 | version_type=linux | |
17110 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
17111 | shlibpath_var=LIBPATH | |
17112 | ||
17113 | # AIX 3 has no versioning support, so we append a major version to the name. | |
17114 | soname_spec='${libname}${release}${shared_ext}$major' | |
17115 | ;; | |
17116 | ||
17117 | aix4* | aix5*) | |
17118 | version_type=linux | |
17119 | need_lib_prefix=no | |
17120 | need_version=no | |
17121 | hardcode_into_libs=yes | |
17122 | if test "$host_cpu" = ia64; then | |
17123 | # AIX 5 supports IA64 | |
17124 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
17125 | shlibpath_var=LD_LIBRARY_PATH | |
17126 | else | |
17127 | # With GCC up to 2.95.x, collect2 would create an import file | |
17128 | # for dependence libraries. The import file would start with | |
17129 | # the line `#! .'. This would cause the generated library to | |
17130 | # depend on `.', always an invalid library. This was fixed in | |
17131 | # development snapshots of GCC prior to 3.0. | |
17132 | case $host_os in | |
17133 | aix4 | aix4.[01] | aix4.[01].*) | |
17134 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
17135 | echo ' yes ' | |
17136 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
17137 | : | |
17138 | else | |
17139 | can_build_shared=no | |
17140 | fi | |
17141 | ;; | |
17142 | esac | |
17143 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
17144 | # soname into executable. Probably we can add versioning support to | |
17145 | # collect2, so additional links can be useful in future. | |
17146 | if test "$aix_use_runtimelinking" = yes; then | |
17147 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
17148 | # instead of lib<name>.a to let people know that these are not | |
17149 | # typical AIX shared libraries. | |
17150 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17151 | else | |
17152 | # We preserve .a as extension for shared libraries through AIX4.2 | |
17153 | # and later when we are not doing run time linking. | |
17154 | library_names_spec='${libname}${release}.a $libname.a' | |
17155 | soname_spec='${libname}${release}${shared_ext}$major' | |
17156 | fi | |
17157 | shlibpath_var=LIBPATH | |
17158 | fi | |
17159 | ;; | |
17160 | ||
17161 | amigaos*) | |
17162 | library_names_spec='$libname.ixlibrary $libname.a' | |
17163 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
17164 | 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' | |
17165 | ;; | |
17166 | ||
17167 | beos*) | |
17168 | library_names_spec='${libname}${shared_ext}' | |
17169 | dynamic_linker="$host_os ld.so" | |
17170 | shlibpath_var=LIBRARY_PATH | |
17171 | ;; | |
17172 | ||
17173 | bsdi[45]*) | |
17174 | version_type=linux | |
17175 | need_version=no | |
17176 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17177 | soname_spec='${libname}${release}${shared_ext}$major' | |
17178 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
17179 | shlibpath_var=LD_LIBRARY_PATH | |
17180 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
17181 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
17182 | # the default ld.so.conf also contains /usr/contrib/lib and | |
17183 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
17184 | # libtool to hard-code these into programs | |
17185 | ;; | |
17186 | ||
17187 | cygwin* | mingw* | pw32*) | |
17188 | version_type=windows | |
17189 | shrext_cmds=".dll" | |
17190 | need_version=no | |
17191 | need_lib_prefix=no | |
17192 | ||
17193 | case $GCC,$host_os in | |
17194 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
17195 | library_names_spec='$libname.dll.a' | |
17196 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
17197 | postinstall_cmds='base_file=`basename \${file}`~ | |
17198 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
17199 | dldir=$destdir/`dirname \$dlpath`~ | |
17200 | test -d \$dldir || mkdir -p \$dldir~ | |
17201 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
17202 | chmod a+x \$dldir/$dlname' | |
17203 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
17204 | dlpath=$dir/\$dldll~ | |
17205 | $rm \$dlpath' | |
17206 | shlibpath_overrides_runpath=yes | |
17207 | ||
17208 | case $host_os in | |
17209 | cygwin*) | |
17210 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
17211 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17212 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
17213 | ;; | |
17214 | mingw*) | |
17215 | # MinGW DLLs use traditional 'lib' prefix | |
17216 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17217 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
17218 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
17219 | # It is most probably a Windows format PATH printed by | |
17220 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
17221 | # path with ; separators, and with drive letters. We can handle the | |
17222 | # drive letters (cygwin fileutils understands them), so leave them, | |
17223 | # especially as we might pass files found there to a mingw objdump, | |
17224 | # which wouldn't understand a cygwinified path. Ahh. | |
17225 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
17226 | else | |
17227 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
17228 | fi | |
17229 | ;; | |
17230 | pw32*) | |
17231 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
17232 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
17233 | ;; | |
17234 | esac | |
17235 | ;; | |
17236 | ||
17237 | *) | |
17238 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
17239 | ;; | |
17240 | esac | |
17241 | dynamic_linker='Win32 ld.exe' | |
17242 | # FIXME: first we should search . and the directory the executable is in | |
17243 | shlibpath_var=PATH | |
17244 | ;; | |
17245 | ||
17246 | darwin* | rhapsody*) | |
17247 | dynamic_linker="$host_os dyld" | |
17248 | version_type=darwin | |
17249 | need_lib_prefix=no | |
17250 | need_version=no | |
17251 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
17252 | soname_spec='${libname}${release}${major}$shared_ext' | |
17253 | shlibpath_overrides_runpath=yes | |
17254 | shlibpath_var=DYLD_LIBRARY_PATH | |
17255 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
17256 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
17257 | if test "$GCC" = yes; then | |
17258 | 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"` | |
17259 | else | |
17260 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
17261 | fi | |
17262 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
17263 | ;; | |
17264 | ||
17265 | dgux*) | |
17266 | version_type=linux | |
17267 | need_lib_prefix=no | |
17268 | need_version=no | |
17269 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
17270 | soname_spec='${libname}${release}${shared_ext}$major' | |
17271 | shlibpath_var=LD_LIBRARY_PATH | |
17272 | ;; | |
17273 | ||
17274 | freebsd1*) | |
17275 | dynamic_linker=no | |
17276 | ;; | |
17277 | ||
17278 | kfreebsd*-gnu) | |
17279 | version_type=linux | |
17280 | need_lib_prefix=no | |
17281 | need_version=no | |
17282 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17283 | soname_spec='${libname}${release}${shared_ext}$major' | |
17284 | shlibpath_var=LD_LIBRARY_PATH | |
17285 | shlibpath_overrides_runpath=no | |
17286 | hardcode_into_libs=yes | |
17287 | dynamic_linker='GNU ld.so' | |
17288 | ;; | |
17289 | ||
17290 | freebsd* | dragonfly*) | |
17291 | # DragonFly does not have aout. When/if they implement a new | |
17292 | # versioning mechanism, adjust this. | |
17293 | if test -x /usr/bin/objformat; then | |
17294 | objformat=`/usr/bin/objformat` | |
17295 | else | |
17296 | case $host_os in | |
17297 | freebsd[123]*) objformat=aout ;; | |
17298 | *) objformat=elf ;; | |
17299 | esac | |
17300 | fi | |
17301 | version_type=freebsd-$objformat | |
17302 | case $version_type in | |
17303 | freebsd-elf*) | |
17304 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17305 | need_version=no | |
17306 | need_lib_prefix=no | |
17307 | ;; | |
17308 | freebsd-*) | |
17309 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
17310 | need_version=yes | |
17311 | ;; | |
17312 | esac | |
17313 | shlibpath_var=LD_LIBRARY_PATH | |
17314 | case $host_os in | |
17315 | freebsd2*) | |
17316 | shlibpath_overrides_runpath=yes | |
17317 | ;; | |
17318 | freebsd3.[01]* | freebsdelf3.[01]*) | |
17319 | shlibpath_overrides_runpath=yes | |
17320 | hardcode_into_libs=yes | |
17321 | ;; | |
17322 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
17323 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
17324 | shlibpath_overrides_runpath=no | |
17325 | hardcode_into_libs=yes | |
17326 | ;; | |
17327 | freebsd*) # from 4.6 on | |
17328 | shlibpath_overrides_runpath=yes | |
17329 | hardcode_into_libs=yes | |
17330 | ;; | |
17331 | esac | |
17332 | ;; | |
17333 | ||
17334 | gnu*) | |
17335 | version_type=linux | |
17336 | need_lib_prefix=no | |
17337 | need_version=no | |
17338 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
17339 | soname_spec='${libname}${release}${shared_ext}$major' | |
17340 | shlibpath_var=LD_LIBRARY_PATH | |
17341 | hardcode_into_libs=yes | |
17342 | ;; | |
17343 | ||
17344 | hpux9* | hpux10* | hpux11*) | |
17345 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
17346 | # link against other versions. | |
17347 | version_type=sunos | |
17348 | need_lib_prefix=no | |
17349 | need_version=no | |
17350 | case $host_cpu in | |
17351 | ia64*) | |
17352 | shrext_cmds='.so' | |
17353 | hardcode_into_libs=yes | |
17354 | dynamic_linker="$host_os dld.so" | |
17355 | shlibpath_var=LD_LIBRARY_PATH | |
17356 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
17357 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17358 | soname_spec='${libname}${release}${shared_ext}$major' | |
17359 | if test "X$HPUX_IA64_MODE" = X32; then | |
17360 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
17361 | else | |
17362 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
17363 | fi | |
17364 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17365 | ;; | |
17366 | hppa*64*) | |
17367 | shrext_cmds='.sl' | |
17368 | hardcode_into_libs=yes | |
17369 | dynamic_linker="$host_os dld.sl" | |
17370 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
17371 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
17372 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17373 | soname_spec='${libname}${release}${shared_ext}$major' | |
17374 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
17375 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
17376 | ;; | |
17377 | *) | |
17378 | shrext_cmds='.sl' | |
17379 | dynamic_linker="$host_os dld.sl" | |
17380 | shlibpath_var=SHLIB_PATH | |
17381 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
17382 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17383 | soname_spec='${libname}${release}${shared_ext}$major' | |
17384 | ;; | |
17385 | esac | |
17386 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
17387 | postinstall_cmds='chmod 555 $lib' | |
17388 | ;; | |
17389 | ||
17390 | interix3*) | |
17391 | version_type=linux | |
17392 | need_lib_prefix=no | |
17393 | need_version=no | |
17394 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17395 | soname_spec='${libname}${release}${shared_ext}$major' | |
17396 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
17397 | shlibpath_var=LD_LIBRARY_PATH | |
17398 | shlibpath_overrides_runpath=no | |
17399 | hardcode_into_libs=yes | |
17400 | ;; | |
17401 | ||
17402 | irix5* | irix6* | nonstopux*) | |
17403 | case $host_os in | |
17404 | nonstopux*) version_type=nonstopux ;; | |
17405 | *) | |
17406 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
17407 | version_type=linux | |
17408 | else | |
17409 | version_type=irix | |
17410 | fi ;; | |
17411 | esac | |
17412 | need_lib_prefix=no | |
17413 | need_version=no | |
17414 | soname_spec='${libname}${release}${shared_ext}$major' | |
17415 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17416 | case $host_os in | |
17417 | irix5* | nonstopux*) | |
17418 | libsuff= shlibsuff= | |
17419 | ;; | |
17420 | *) | |
17421 | case $LD in # libtool.m4 will add one of these switches to LD | |
17422 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
17423 | libsuff= shlibsuff= libmagic=32-bit;; | |
17424 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
17425 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
17426 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
17427 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
17428 | *) libsuff= shlibsuff= libmagic=never-match;; | |
17429 | esac | |
17430 | ;; | |
17431 | esac | |
17432 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
17433 | shlibpath_overrides_runpath=no | |
17434 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
17435 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
17436 | hardcode_into_libs=yes | |
17437 | ;; | |
17438 | ||
17439 | # No shared lib support for Linux oldld, aout, or coff. | |
17440 | linux*oldld* | linux*aout* | linux*coff*) | |
17441 | dynamic_linker=no | |
17442 | ;; | |
17443 | ||
17444 | # This must be Linux ELF. | |
17445 | linux*) | |
17446 | version_type=linux | |
17447 | need_lib_prefix=no | |
17448 | need_version=no | |
17449 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17450 | soname_spec='${libname}${release}${shared_ext}$major' | |
17451 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
17452 | shlibpath_var=LD_LIBRARY_PATH | |
17453 | shlibpath_overrides_runpath=no | |
17454 | # This implies no fast_install, which is unacceptable. | |
17455 | # Some rework will be needed to allow for fast_install | |
17456 | # before this can be enabled. | |
17457 | hardcode_into_libs=yes | |
17458 | ||
17459 | # Append ld.so.conf contents to the search path | |
17460 | if test -f /etc/ld.so.conf; then | |
17461 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
17462 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
17463 | fi | |
17464 | ||
17465 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
17466 | # powerpc, because MkLinux only supported shared libraries with the | |
17467 | # GNU dynamic linker. Since this was broken with cross compilers, | |
17468 | # most powerpc-linux boxes support dynamic linking these days and | |
17469 | # people can always --disable-shared, the test was removed, and we | |
17470 | # assume the GNU/Linux dynamic linker is in use. | |
17471 | dynamic_linker='GNU/Linux ld.so' | |
17472 | ;; | |
17473 | ||
17474 | knetbsd*-gnu) | |
17475 | version_type=linux | |
17476 | need_lib_prefix=no | |
17477 | need_version=no | |
17478 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17479 | soname_spec='${libname}${release}${shared_ext}$major' | |
17480 | shlibpath_var=LD_LIBRARY_PATH | |
17481 | shlibpath_overrides_runpath=no | |
17482 | hardcode_into_libs=yes | |
17483 | dynamic_linker='GNU ld.so' | |
17484 | ;; | |
17485 | ||
17486 | netbsd*) | |
17487 | version_type=sunos | |
17488 | need_lib_prefix=no | |
17489 | need_version=no | |
17490 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
17491 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17492 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17493 | dynamic_linker='NetBSD (a.out) ld.so' | |
17494 | else | |
17495 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
17496 | soname_spec='${libname}${release}${shared_ext}$major' | |
17497 | dynamic_linker='NetBSD ld.elf_so' | |
17498 | fi | |
17499 | shlibpath_var=LD_LIBRARY_PATH | |
17500 | shlibpath_overrides_runpath=yes | |
17501 | hardcode_into_libs=yes | |
17502 | ;; | |
17503 | ||
17504 | newsos6) | |
17505 | version_type=linux | |
17506 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17507 | shlibpath_var=LD_LIBRARY_PATH | |
17508 | shlibpath_overrides_runpath=yes | |
17509 | ;; | |
17510 | ||
17511 | nto-qnx*) | |
17512 | version_type=linux | |
17513 | need_lib_prefix=no | |
17514 | need_version=no | |
17515 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17516 | soname_spec='${libname}${release}${shared_ext}$major' | |
17517 | shlibpath_var=LD_LIBRARY_PATH | |
17518 | shlibpath_overrides_runpath=yes | |
17519 | ;; | |
17520 | ||
17521 | openbsd*) | |
17522 | version_type=sunos | |
17523 | sys_lib_dlsearch_path_spec="/usr/lib" | |
17524 | need_lib_prefix=no | |
17525 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
17526 | case $host_os in | |
17527 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
17528 | *) need_version=no ;; | |
17529 | esac | |
17530 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17531 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
17532 | shlibpath_var=LD_LIBRARY_PATH | |
17533 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
17534 | case $host_os in | |
17535 | openbsd2.[89] | openbsd2.[89].*) | |
17536 | shlibpath_overrides_runpath=no | |
17537 | ;; | |
17538 | *) | |
17539 | shlibpath_overrides_runpath=yes | |
17540 | ;; | |
17541 | esac | |
17542 | else | |
17543 | shlibpath_overrides_runpath=yes | |
17544 | fi | |
17545 | ;; | |
17546 | ||
17547 | os2*) | |
17548 | libname_spec='$name' | |
17549 | shrext_cmds=".dll" | |
17550 | need_lib_prefix=no | |
17551 | library_names_spec='$libname${shared_ext} $libname.a' | |
17552 | dynamic_linker='OS/2 ld.exe' | |
17553 | shlibpath_var=LIBPATH | |
17554 | ;; | |
17555 | ||
17556 | osf3* | osf4* | osf5*) | |
17557 | version_type=osf | |
17558 | need_lib_prefix=no | |
17559 | need_version=no | |
17560 | soname_spec='${libname}${release}${shared_ext}$major' | |
17561 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17562 | shlibpath_var=LD_LIBRARY_PATH | |
17563 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
17564 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
17565 | ;; | |
17566 | ||
17567 | solaris*) | |
17568 | version_type=linux | |
17569 | need_lib_prefix=no | |
17570 | need_version=no | |
17571 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17572 | soname_spec='${libname}${release}${shared_ext}$major' | |
17573 | shlibpath_var=LD_LIBRARY_PATH | |
17574 | shlibpath_overrides_runpath=yes | |
17575 | hardcode_into_libs=yes | |
17576 | # ldd complains unless libraries are executable | |
17577 | postinstall_cmds='chmod +x $lib' | |
17578 | ;; | |
17579 | ||
17580 | sunos4*) | |
17581 | version_type=sunos | |
17582 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
17583 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
17584 | shlibpath_var=LD_LIBRARY_PATH | |
17585 | shlibpath_overrides_runpath=yes | |
17586 | if test "$with_gnu_ld" = yes; then | |
17587 | need_lib_prefix=no | |
17588 | fi | |
17589 | need_version=yes | |
17590 | ;; | |
17591 | ||
17592 | sysv4 | sysv4.3*) | |
17593 | version_type=linux | |
17594 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17595 | soname_spec='${libname}${release}${shared_ext}$major' | |
17596 | shlibpath_var=LD_LIBRARY_PATH | |
17597 | case $host_vendor in | |
17598 | sni) | |
17599 | shlibpath_overrides_runpath=no | |
17600 | need_lib_prefix=no | |
17601 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
17602 | runpath_var=LD_RUN_PATH | |
17603 | ;; | |
17604 | siemens) | |
17605 | need_lib_prefix=no | |
17606 | ;; | |
17607 | motorola) | |
17608 | need_lib_prefix=no | |
17609 | need_version=no | |
17610 | shlibpath_overrides_runpath=no | |
17611 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
17612 | ;; | |
17613 | esac | |
17614 | ;; | |
17615 | ||
17616 | sysv4*MP*) | |
17617 | if test -d /usr/nec ;then | |
17618 | version_type=linux | |
17619 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
17620 | soname_spec='$libname${shared_ext}.$major' | |
17621 | shlibpath_var=LD_LIBRARY_PATH | |
17622 | fi | |
17623 | ;; | |
17624 | ||
17625 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
17626 | version_type=freebsd-elf | |
17627 | need_lib_prefix=no | |
17628 | need_version=no | |
17629 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
17630 | soname_spec='${libname}${release}${shared_ext}$major' | |
17631 | shlibpath_var=LD_LIBRARY_PATH | |
17632 | hardcode_into_libs=yes | |
17633 | if test "$with_gnu_ld" = yes; then | |
17634 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
17635 | shlibpath_overrides_runpath=no | |
17636 | else | |
17637 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
17638 | shlibpath_overrides_runpath=yes | |
17639 | case $host_os in | |
17640 | sco3.2v5*) | |
17641 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
17642 | ;; | |
17643 | esac | |
17644 | fi | |
17645 | sys_lib_dlsearch_path_spec='/usr/lib' | |
17646 | ;; | |
17647 | ||
17648 | uts4*) | |
17649 | version_type=linux | |
17650 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
17651 | soname_spec='${libname}${release}${shared_ext}$major' | |
17652 | shlibpath_var=LD_LIBRARY_PATH | |
17653 | ;; | |
17654 | ||
17655 | *) | |
17656 | dynamic_linker=no | |
17657 | ;; | |
17658 | esac | |
17659 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
17660 | echo "${ECHO_T}$dynamic_linker" >&6; } | |
17661 | test "$dynamic_linker" = no && can_build_shared=no | |
17662 | ||
17663 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
17664 | if test "$GCC" = yes; then | |
17665 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
17666 | fi | |
17667 | ||
17668 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
17669 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
17670 | hardcode_action_F77= | |
17671 | if test -n "$hardcode_libdir_flag_spec_F77" || \ | |
17672 | test -n "$runpath_var_F77" || \ | |
17673 | test "X$hardcode_automatic_F77" = "Xyes" ; then | |
17674 | ||
17675 | # We can hardcode non-existant directories. | |
17676 | if test "$hardcode_direct_F77" != no && | |
17677 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
17678 | # have to relink, otherwise we might link with an installed library | |
17679 | # when we should be linking with a yet-to-be-installed one | |
17680 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && | |
17681 | test "$hardcode_minus_L_F77" != no; then | |
17682 | # Linking always hardcodes the temporary library directory. | |
17683 | hardcode_action_F77=relink | |
17684 | else | |
17685 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
17686 | hardcode_action_F77=immediate | |
17687 | fi | |
17688 | else | |
17689 | # We cannot hardcode anything, or else we can only hardcode existing | |
17690 | # directories. | |
17691 | hardcode_action_F77=unsupported | |
17692 | fi | |
17693 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 | |
17694 | echo "${ECHO_T}$hardcode_action_F77" >&6; } | |
17695 | ||
17696 | if test "$hardcode_action_F77" = relink; then | |
17697 | # Fast installation is not supported | |
17698 | enable_fast_install=no | |
17699 | elif test "$shlibpath_overrides_runpath" = yes || | |
17700 | test "$enable_shared" = no; then | |
17701 | # Fast installation is not necessary | |
17702 | enable_fast_install=needless | |
17703 | fi | |
17704 | ||
17705 | ||
17706 | # The else clause should only fire when bootstrapping the | |
17707 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
17708 | # with your package, and you will get complaints that there are | |
17709 | # no rules to generate ltmain.sh. | |
17710 | if test -f "$ltmain"; then | |
17711 | # See if we are running on zsh, and set the options which allow our commands through | |
17712 | # without removal of \ escapes. | |
17713 | if test -n "${ZSH_VERSION+set}" ; then | |
17714 | setopt NO_GLOB_SUBST | |
17715 | fi | |
17716 | # Now quote all the things that may contain metacharacters while being | |
17717 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
17718 | # variables and quote the copies for generation of the libtool script. | |
17719 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
17720 | SED SHELL STRIP \ | |
17721 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
17722 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
17723 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
17724 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
17725 | lt_cv_sys_global_symbol_to_c_name_address \ | |
17726 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
17727 | old_postinstall_cmds old_postuninstall_cmds \ | |
17728 | compiler_F77 \ | |
17729 | CC_F77 \ | |
17730 | LD_F77 \ | |
17731 | lt_prog_compiler_wl_F77 \ | |
17732 | lt_prog_compiler_pic_F77 \ | |
17733 | lt_prog_compiler_static_F77 \ | |
17734 | lt_prog_compiler_no_builtin_flag_F77 \ | |
17735 | export_dynamic_flag_spec_F77 \ | |
17736 | thread_safe_flag_spec_F77 \ | |
17737 | whole_archive_flag_spec_F77 \ | |
17738 | enable_shared_with_static_runtimes_F77 \ | |
17739 | old_archive_cmds_F77 \ | |
17740 | old_archive_from_new_cmds_F77 \ | |
17741 | predep_objects_F77 \ | |
17742 | postdep_objects_F77 \ | |
17743 | predeps_F77 \ | |
17744 | postdeps_F77 \ | |
17745 | compiler_lib_search_path_F77 \ | |
17746 | archive_cmds_F77 \ | |
17747 | archive_expsym_cmds_F77 \ | |
17748 | postinstall_cmds_F77 \ | |
17749 | postuninstall_cmds_F77 \ | |
17750 | old_archive_from_expsyms_cmds_F77 \ | |
17751 | allow_undefined_flag_F77 \ | |
17752 | no_undefined_flag_F77 \ | |
17753 | export_symbols_cmds_F77 \ | |
17754 | hardcode_libdir_flag_spec_F77 \ | |
17755 | hardcode_libdir_flag_spec_ld_F77 \ | |
17756 | hardcode_libdir_separator_F77 \ | |
17757 | hardcode_automatic_F77 \ | |
17758 | module_cmds_F77 \ | |
17759 | module_expsym_cmds_F77 \ | |
17760 | lt_cv_prog_compiler_c_o_F77 \ | |
17761 | exclude_expsyms_F77 \ | |
17762 | include_expsyms_F77; do | |
17763 | ||
17764 | case $var in | |
17765 | old_archive_cmds_F77 | \ | |
17766 | old_archive_from_new_cmds_F77 | \ | |
17767 | archive_cmds_F77 | \ | |
17768 | archive_expsym_cmds_F77 | \ | |
17769 | module_cmds_F77 | \ | |
17770 | module_expsym_cmds_F77 | \ | |
17771 | old_archive_from_expsyms_cmds_F77 | \ | |
17772 | export_symbols_cmds_F77 | \ | |
17773 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
17774 | postinstall_cmds | postuninstall_cmds | \ | |
17775 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
17776 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
17777 | # Double-quote double-evaled strings. | |
17778 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
17779 | ;; | |
17780 | *) | |
17781 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
17782 | ;; | |
17783 | esac | |
17784 | done | |
17785 | ||
17786 | case $lt_echo in | |
17787 | *'\$0 --fallback-echo"') | |
17788 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
17789 | ;; | |
17790 | esac | |
17791 | ||
17792 | cfgfile="$ofile" | |
17793 | ||
17794 | cat <<__EOF__ >> "$cfgfile" | |
17795 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
17796 | ||
17797 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
17798 | ||
17799 | # Shell to use when invoking shell scripts. | |
17800 | SHELL=$lt_SHELL | |
17801 | ||
17802 | # Whether or not to build shared libraries. | |
17803 | build_libtool_libs=$enable_shared | |
17804 | ||
17805 | # Whether or not to build static libraries. | |
17806 | build_old_libs=$enable_static | |
17807 | ||
17808 | # Whether or not to add -lc for building shared libraries. | |
17809 | build_libtool_need_lc=$archive_cmds_need_lc_F77 | |
17810 | ||
17811 | # Whether or not to disallow shared libs when runtime libs are static | |
17812 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 | |
17813 | ||
17814 | # Whether or not to optimize for fast installation. | |
17815 | fast_install=$enable_fast_install | |
17816 | ||
17817 | # The host system. | |
17818 | host_alias=$host_alias | |
17819 | host=$host | |
17820 | host_os=$host_os | |
17821 | ||
17822 | # The build system. | |
17823 | build_alias=$build_alias | |
17824 | build=$build | |
17825 | build_os=$build_os | |
17826 | ||
17827 | # An echo program that does not interpret backslashes. | |
17828 | echo=$lt_echo | |
17829 | ||
17830 | # The archiver. | |
17831 | AR=$lt_AR | |
17832 | AR_FLAGS=$lt_AR_FLAGS | |
17833 | ||
17834 | # A C compiler. | |
17835 | LTCC=$lt_LTCC | |
17836 | ||
17837 | # LTCC compiler flags. | |
17838 | LTCFLAGS=$lt_LTCFLAGS | |
17839 | ||
17840 | # A language-specific compiler. | |
17841 | CC=$lt_compiler_F77 | |
17842 | ||
17843 | # Is the compiler the GNU C compiler? | |
17844 | with_gcc=$GCC_F77 | |
17845 | ||
17846 | # An ERE matcher. | |
17847 | EGREP=$lt_EGREP | |
17848 | ||
17849 | # The linker used to build libraries. | |
17850 | LD=$lt_LD_F77 | |
17851 | ||
17852 | # Whether we need hard or soft links. | |
17853 | LN_S=$lt_LN_S | |
17854 | ||
17855 | # A BSD-compatible nm program. | |
17856 | NM=$lt_NM | |
17857 | ||
17858 | # A symbol stripping program | |
17859 | STRIP=$lt_STRIP | |
17860 | ||
17861 | # Used to examine libraries when file_magic_cmd begins "file" | |
17862 | MAGIC_CMD=$MAGIC_CMD | |
17863 | ||
17864 | # Used on cygwin: DLL creation program. | |
17865 | DLLTOOL="$DLLTOOL" | |
17866 | ||
17867 | # Used on cygwin: object dumper. | |
17868 | OBJDUMP="$OBJDUMP" | |
17869 | ||
17870 | # Used on cygwin: assembler. | |
17871 | AS="$AS" | |
17872 | ||
17873 | # The name of the directory that contains temporary libtool files. | |
17874 | objdir=$objdir | |
17875 | ||
17876 | # How to create reloadable object files. | |
17877 | reload_flag=$lt_reload_flag | |
17878 | reload_cmds=$lt_reload_cmds | |
17879 | ||
17880 | # How to pass a linker flag through the compiler. | |
17881 | wl=$lt_lt_prog_compiler_wl_F77 | |
17882 | ||
17883 | # Object file suffix (normally "o"). | |
17884 | objext="$ac_objext" | |
17885 | ||
17886 | # Old archive suffix (normally "a"). | |
17887 | libext="$libext" | |
17888 | ||
17889 | # Shared library suffix (normally ".so"). | |
17890 | shrext_cmds='$shrext_cmds' | |
17891 | ||
17892 | # Executable file suffix (normally ""). | |
17893 | exeext="$exeext" | |
17894 | ||
17895 | # Additional compiler flags for building library objects. | |
17896 | pic_flag=$lt_lt_prog_compiler_pic_F77 | |
17897 | pic_mode=$pic_mode | |
17898 | ||
17899 | # What is the maximum length of a command? | |
17900 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
17901 | ||
17902 | # Does compiler simultaneously support -c and -o options? | |
17903 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 | |
17904 | ||
17905 | # Must we lock files when doing compilation? | |
17906 | need_locks=$lt_need_locks | |
17907 | ||
17908 | # Do we need the lib prefix for modules? | |
17909 | need_lib_prefix=$need_lib_prefix | |
17910 | ||
17911 | # Do we need a version for libraries? | |
17912 | need_version=$need_version | |
17913 | ||
17914 | # Whether dlopen is supported. | |
17915 | dlopen_support=$enable_dlopen | |
17916 | ||
17917 | # Whether dlopen of programs is supported. | |
17918 | dlopen_self=$enable_dlopen_self | |
17919 | ||
17920 | # Whether dlopen of statically linked programs is supported. | |
17921 | dlopen_self_static=$enable_dlopen_self_static | |
17922 | ||
17923 | # Compiler flag to prevent dynamic linking. | |
17924 | link_static_flag=$lt_lt_prog_compiler_static_F77 | |
17925 | ||
17926 | # Compiler flag to turn off builtin functions. | |
17927 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 | |
17928 | ||
17929 | # Compiler flag to allow reflexive dlopens. | |
17930 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 | |
17931 | ||
17932 | # Compiler flag to generate shared objects directly from archives. | |
17933 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 | |
17934 | ||
17935 | # Compiler flag to generate thread-safe objects. | |
17936 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 | |
17937 | ||
17938 | # Library versioning type. | |
17939 | version_type=$version_type | |
17940 | ||
17941 | # Format of library name prefix. | |
17942 | libname_spec=$lt_libname_spec | |
17943 | ||
17944 | # List of archive names. First name is the real one, the rest are links. | |
17945 | # The last name is the one that the linker finds with -lNAME. | |
17946 | library_names_spec=$lt_library_names_spec | |
17947 | ||
17948 | # The coded name of the library, if different from the real name. | |
17949 | soname_spec=$lt_soname_spec | |
17950 | ||
17951 | # Commands used to build and install an old-style archive. | |
17952 | RANLIB=$lt_RANLIB | |
17953 | old_archive_cmds=$lt_old_archive_cmds_F77 | |
17954 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
17955 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
17956 | ||
17957 | # Create an old-style archive from a shared archive. | |
17958 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 | |
17959 | ||
17960 | # Create a temporary old-style archive to link instead of a shared archive. | |
17961 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 | |
17962 | ||
17963 | # Commands used to build and install a shared archive. | |
17964 | archive_cmds=$lt_archive_cmds_F77 | |
17965 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 | |
17966 | postinstall_cmds=$lt_postinstall_cmds | |
17967 | postuninstall_cmds=$lt_postuninstall_cmds | |
17968 | ||
17969 | # Commands used to build a loadable module (assumed same as above if empty) | |
17970 | module_cmds=$lt_module_cmds_F77 | |
17971 | module_expsym_cmds=$lt_module_expsym_cmds_F77 | |
17972 | ||
17973 | # Commands to strip libraries. | |
17974 | old_striplib=$lt_old_striplib | |
17975 | striplib=$lt_striplib | |
17976 | ||
17977 | # Dependencies to place before the objects being linked to create a | |
17978 | # shared library. | |
17979 | predep_objects=$lt_predep_objects_F77 | |
17980 | ||
17981 | # Dependencies to place after the objects being linked to create a | |
17982 | # shared library. | |
17983 | postdep_objects=$lt_postdep_objects_F77 | |
17984 | ||
17985 | # Dependencies to place before the objects being linked to create a | |
17986 | # shared library. | |
17987 | predeps=$lt_predeps_F77 | |
17988 | ||
17989 | # Dependencies to place after the objects being linked to create a | |
17990 | # shared library. | |
17991 | postdeps=$lt_postdeps_F77 | |
17992 | ||
17993 | # The library search path used internally by the compiler when linking | |
17994 | # a shared library. | |
17995 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 | |
17996 | ||
17997 | # Method to check whether dependent libraries are shared objects. | |
17998 | deplibs_check_method=$lt_deplibs_check_method | |
17999 | ||
18000 | # Command to use when deplibs_check_method == file_magic. | |
18001 | file_magic_cmd=$lt_file_magic_cmd | |
18002 | ||
18003 | # Flag that allows shared libraries with undefined symbols to be built. | |
18004 | allow_undefined_flag=$lt_allow_undefined_flag_F77 | |
18005 | ||
18006 | # Flag that forces no undefined symbols. | |
18007 | no_undefined_flag=$lt_no_undefined_flag_F77 | |
18008 | ||
18009 | # Commands used to finish a libtool library installation in a directory. | |
18010 | finish_cmds=$lt_finish_cmds | |
18011 | ||
18012 | # Same as above, but a single script fragment to be evaled but not shown. | |
18013 | finish_eval=$lt_finish_eval | |
18014 | ||
18015 | # Take the output of nm and produce a listing of raw symbols and C names. | |
18016 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
18017 | ||
18018 | # Transform the output of nm in a proper C declaration | |
18019 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
18020 | ||
18021 | # Transform the output of nm in a C name address pair | |
18022 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
18023 | ||
18024 | # This is the shared library runtime path variable. | |
18025 | runpath_var=$runpath_var | |
18026 | ||
18027 | # This is the shared library path variable. | |
18028 | shlibpath_var=$shlibpath_var | |
18029 | ||
18030 | # Is shlibpath searched before the hard-coded library search path? | |
18031 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
18032 | ||
18033 | # How to hardcode a shared library path into an executable. | |
18034 | hardcode_action=$hardcode_action_F77 | |
18035 | ||
18036 | # Whether we should hardcode library paths into libraries. | |
18037 | hardcode_into_libs=$hardcode_into_libs | |
18038 | ||
18039 | # Flag to hardcode \$libdir into a binary during linking. | |
18040 | # This must work even if \$libdir does not exist. | |
18041 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 | |
18042 | ||
18043 | # If ld is used when linking, flag to hardcode \$libdir into | |
18044 | # a binary during linking. This must work even if \$libdir does | |
18045 | # not exist. | |
18046 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 | |
18047 | ||
18048 | # Whether we need a single -rpath flag with a separated argument. | |
18049 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 | |
18050 | ||
18051 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
18052 | # resulting binary. | |
18053 | hardcode_direct=$hardcode_direct_F77 | |
18054 | ||
18055 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
18056 | # resulting binary. | |
18057 | hardcode_minus_L=$hardcode_minus_L_F77 | |
18058 | ||
18059 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
18060 | # the resulting binary. | |
18061 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 | |
18062 | ||
18063 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
18064 | # and all subsequent libraries and executables linked against it. | |
18065 | hardcode_automatic=$hardcode_automatic_F77 | |
18066 | ||
18067 | # Variables whose values should be saved in libtool wrapper scripts and | |
18068 | # restored at relink time. | |
18069 | variables_saved_for_relink="$variables_saved_for_relink" | |
18070 | ||
18071 | # Whether libtool must link a program against all its dependency libraries. | |
18072 | link_all_deplibs=$link_all_deplibs_F77 | |
18073 | ||
18074 | # Compile-time system search path for libraries | |
18075 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
18076 | ||
18077 | # Run-time system search path for libraries | |
18078 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
18079 | ||
18080 | # Fix the shell variable \$srcfile for the compiler. | |
18081 | fix_srcfile_path="$fix_srcfile_path_F77" | |
18082 | ||
18083 | # Set to yes if exported symbols are required. | |
18084 | always_export_symbols=$always_export_symbols_F77 | |
18085 | ||
18086 | # The commands to list exported symbols. | |
18087 | export_symbols_cmds=$lt_export_symbols_cmds_F77 | |
18088 | ||
18089 | # The commands to extract the exported symbol list from a shared archive. | |
18090 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
18091 | ||
18092 | # Symbols that should not be listed in the preloaded symbols. | |
18093 | exclude_expsyms=$lt_exclude_expsyms_F77 | |
18094 | ||
18095 | # Symbols that must always be exported. | |
18096 | include_expsyms=$lt_include_expsyms_F77 | |
18097 | ||
18098 | # ### END LIBTOOL TAG CONFIG: $tagname | |
18099 | ||
18100 | __EOF__ | |
18101 | ||
18102 | ||
18103 | else | |
18104 | # If there is no Makefile yet, we rely on a make rule to execute | |
18105 | # `config.status --recheck' to rerun these tests and create the | |
18106 | # libtool script then. | |
18107 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
18108 | if test -f "$ltmain_in"; then | |
18109 | test -f Makefile && make "$ltmain" | |
18110 | fi | |
18111 | fi | |
18112 | ||
18113 | ||
18114 | ac_ext=c | |
18115 | ac_cpp='$CPP $CPPFLAGS' | |
18116 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
18117 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
18118 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
18119 | ||
18120 | CC="$lt_save_CC" | |
18121 | ||
18122 | else | |
18123 | tagname="" | |
18124 | fi | |
18125 | ;; | |
18126 | ||
18127 | GCJ) | |
18128 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then | |
18129 | ||
18130 | ||
18131 | # Source file extension for Java test sources. | |
18132 | ac_ext=java | |
18133 | ||
18134 | # Object file extension for compiled Java test sources. | |
18135 | objext=o | |
18136 | objext_GCJ=$objext | |
18137 | ||
18138 | # Code to be used in simple compile tests | |
18139 | lt_simple_compile_test_code="class foo {}\n" | |
18140 | ||
18141 | # Code to be used in simple link tests | |
18142 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' | |
18143 | ||
18144 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
18145 | ||
18146 | # If no C compiler was specified, use CC. | |
18147 | LTCC=${LTCC-"$CC"} | |
18148 | ||
18149 | # If no C compiler flags were specified, use CFLAGS. | |
18150 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
18151 | ||
18152 | # Allow CC to be a program name with arguments. | |
18153 | compiler=$CC | |
18154 | ||
18155 | ||
18156 | # save warnings/boilerplate of simple test code | |
18157 | ac_outfile=conftest.$ac_objext | |
18158 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
18159 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
18160 | _lt_compiler_boilerplate=`cat conftest.err` | |
18161 | $rm conftest* | |
18162 | ||
18163 | ac_outfile=conftest.$ac_objext | |
18164 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
18165 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
18166 | _lt_linker_boilerplate=`cat conftest.err` | |
18167 | $rm conftest* | |
18168 | ||
18169 | ||
18170 | # Allow CC to be a program name with arguments. | |
18171 | lt_save_CC="$CC" | |
18172 | CC=${GCJ-"gcj"} | |
18173 | compiler=$CC | |
18174 | compiler_GCJ=$CC | |
18175 | for cc_temp in $compiler""; do | |
18176 | case $cc_temp in | |
18177 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
18178 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
18179 | \-*) ;; | |
18180 | *) break;; | |
18181 | esac | |
18182 | done | |
18183 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
18184 | ||
18185 | ||
18186 | # GCJ did not exist at the time GCC didn't implicitly link libc in. | |
18187 | archive_cmds_need_lc_GCJ=no | |
18188 | ||
18189 | old_archive_cmds_GCJ=$old_archive_cmds | |
18190 | ||
18191 | ## CAVEAT EMPTOR: | |
18192 | ## There is no encapsulation within the following macros, do not change | |
18193 | ## the running order or otherwise move them around unless you know exactly | |
18194 | ## what you are doing... | |
18195 | ||
18196 | lt_prog_compiler_no_builtin_flag_GCJ= | |
18197 | ||
18198 | if test "$GCC" = yes; then | |
18199 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' | |
18200 | ||
18201 | ||
18202 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 | |
18203 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } | |
18204 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then | |
18205 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18206 | else | |
18207 | lt_cv_prog_compiler_rtti_exceptions=no | |
18208 | ac_outfile=conftest.$ac_objext | |
18209 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
18210 | lt_compiler_flag="-fno-rtti -fno-exceptions" | |
18211 | # Insert the option either (1) after the last *FLAGS variable, or | |
18212 | # (2) before a word containing "conftest.", or (3) at the end. | |
18213 | # Note that $ac_compile itself does not contain backslashes and begins | |
18214 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
18215 | # The option is referenced via a variable to avoid confusing sed. | |
18216 | lt_compile=`echo "$ac_compile" | $SED \ | |
18217 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
18218 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
18219 | -e 's:$: $lt_compiler_flag:'` | |
18220 | (eval echo "\"\$as_me:18220: $lt_compile\"" >&5) | |
18221 | (eval "$lt_compile" 2>conftest.err) | |
18222 | ac_status=$? | |
18223 | cat conftest.err >&5 | |
18224 | echo "$as_me:18224: \$? = $ac_status" >&5 | |
18225 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
18226 | # The compiler can only warn and ignore the option if not recognized | |
18227 | # So say no if there are warnings other than the usual output. | |
18228 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
18229 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
18230 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
18231 | lt_cv_prog_compiler_rtti_exceptions=yes | |
18232 | fi | |
18233 | fi | |
18234 | $rm conftest* | |
18235 | ||
18236 | fi | |
18237 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 | |
18238 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } | |
18239 | ||
18240 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then | |
18241 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" | |
18242 | else | |
18243 | : | |
18244 | fi | |
18245 | ||
18246 | fi | |
18247 | ||
18248 | lt_prog_compiler_wl_GCJ= | |
18249 | lt_prog_compiler_pic_GCJ= | |
18250 | lt_prog_compiler_static_GCJ= | |
18251 | ||
18252 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 | |
18253 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } | |
18254 | ||
18255 | if test "$GCC" = yes; then | |
18256 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18257 | lt_prog_compiler_static_GCJ='-static' | |
18258 | ||
18259 | case $host_os in | |
18260 | aix*) | |
18261 | # All AIX code is PIC. | |
18262 | if test "$host_cpu" = ia64; then | |
18263 | # AIX 5 now supports IA64 processor | |
18264 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18265 | fi | |
18266 | ;; | |
18267 | ||
18268 | amigaos*) | |
18269 | # FIXME: we need at least 68020 code to build shared libraries, but | |
18270 | # adding the `-m68020' flag to GCC prevents building anything better, | |
18271 | # like `-m68040'. | |
18272 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' | |
18273 | ;; | |
18274 | ||
18275 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) | |
18276 | # PIC is the default for these OSes. | |
18277 | ;; | |
18278 | ||
18279 | mingw* | pw32* | os2*) | |
18280 | # This hack is so that the source file can tell whether it is being | |
18281 | # built for inclusion in a dll (and should export symbols for example). | |
18282 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
18283 | ;; | |
18284 | ||
18285 | darwin* | rhapsody*) | |
18286 | # PIC is the default on this platform | |
18287 | # Common symbols not allowed in MH_DYLIB files | |
18288 | lt_prog_compiler_pic_GCJ='-fno-common' | |
18289 | ;; | |
18290 | ||
18291 | interix3*) | |
18292 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. | |
18293 | # Instead, we relocate shared libraries at runtime. | |
18294 | ;; | |
18295 | ||
18296 | msdosdjgpp*) | |
18297 | # Just because we use GCC doesn't mean we suddenly get shared libraries | |
18298 | # on systems that don't support them. | |
18299 | lt_prog_compiler_can_build_shared_GCJ=no | |
18300 | enable_shared=no | |
18301 | ;; | |
18302 | ||
18303 | sysv4*MP*) | |
18304 | if test -d /usr/nec; then | |
18305 | lt_prog_compiler_pic_GCJ=-Kconform_pic | |
18306 | fi | |
18307 | ;; | |
18308 | ||
18309 | hpux*) | |
18310 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
18311 | # not for PA HP-UX. | |
18312 | case $host_cpu in | |
18313 | hppa*64*|ia64*) | |
18314 | # +Z the default | |
18315 | ;; | |
18316 | *) | |
18317 | lt_prog_compiler_pic_GCJ='-fPIC' | |
18318 | ;; | |
18319 | esac | |
18320 | ;; | |
18321 | ||
18322 | *) | |
18323 | lt_prog_compiler_pic_GCJ='-fPIC' | |
18324 | ;; | |
18325 | esac | |
18326 | else | |
18327 | # PORTME Check for flag to pass linker flags through the system compiler. | |
18328 | case $host_os in | |
18329 | aix*) | |
18330 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18331 | if test "$host_cpu" = ia64; then | |
18332 | # AIX 5 now supports IA64 processor | |
18333 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18334 | else | |
18335 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' | |
18336 | fi | |
18337 | ;; | |
18338 | darwin*) | |
18339 | # PIC is the default on this platform | |
18340 | # Common symbols not allowed in MH_DYLIB files | |
18341 | case $cc_basename in | |
18342 | xlc*) | |
18343 | lt_prog_compiler_pic_GCJ='-qnocommon' | |
18344 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18345 | ;; | |
18346 | esac | |
18347 | ;; | |
18348 | ||
18349 | mingw* | pw32* | os2*) | |
18350 | # This hack is so that the source file can tell whether it is being | |
18351 | # built for inclusion in a dll (and should export symbols for example). | |
18352 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' | |
18353 | ;; | |
18354 | ||
18355 | hpux9* | hpux10* | hpux11*) | |
18356 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18357 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but | |
18358 | # not for PA HP-UX. | |
18359 | case $host_cpu in | |
18360 | hppa*64*|ia64*) | |
18361 | # +Z the default | |
18362 | ;; | |
18363 | *) | |
18364 | lt_prog_compiler_pic_GCJ='+Z' | |
18365 | ;; | |
18366 | esac | |
18367 | # Is there a better lt_prog_compiler_static that works with the bundled CC? | |
18368 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' | |
18369 | ;; | |
18370 | ||
18371 | irix5* | irix6* | nonstopux*) | |
18372 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18373 | # PIC (with -KPIC) is the default. | |
18374 | lt_prog_compiler_static_GCJ='-non_shared' | |
18375 | ;; | |
18376 | ||
18377 | newsos6) | |
18378 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18379 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18380 | ;; | |
18381 | ||
18382 | linux*) | |
18383 | case $cc_basename in | |
18384 | icc* | ecc*) | |
18385 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18386 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18387 | lt_prog_compiler_static_GCJ='-static' | |
18388 | ;; | |
18389 | pgcc* | pgf77* | pgf90* | pgf95*) | |
18390 | # Portland Group compilers (*not* the Pentium gcc compiler, | |
18391 | # which looks to be a dead project) | |
18392 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18393 | lt_prog_compiler_pic_GCJ='-fpic' | |
18394 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18395 | ;; | |
18396 | ccc*) | |
18397 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18398 | # All Alpha code is PIC. | |
18399 | lt_prog_compiler_static_GCJ='-non_shared' | |
18400 | ;; | |
18401 | esac | |
18402 | ;; | |
18403 | ||
18404 | osf3* | osf4* | osf5*) | |
18405 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18406 | # All OSF/1 code is PIC. | |
18407 | lt_prog_compiler_static_GCJ='-non_shared' | |
18408 | ;; | |
18409 | ||
18410 | solaris*) | |
18411 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18412 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18413 | case $cc_basename in | |
18414 | f77* | f90* | f95*) | |
18415 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; | |
18416 | *) | |
18417 | lt_prog_compiler_wl_GCJ='-Wl,';; | |
18418 | esac | |
18419 | ;; | |
18420 | ||
18421 | sunos4*) | |
18422 | lt_prog_compiler_wl_GCJ='-Qoption ld ' | |
18423 | lt_prog_compiler_pic_GCJ='-PIC' | |
18424 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18425 | ;; | |
18426 | ||
18427 | sysv4 | sysv4.2uw2* | sysv4.3*) | |
18428 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18429 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18430 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18431 | ;; | |
18432 | ||
18433 | sysv4*MP*) | |
18434 | if test -d /usr/nec ;then | |
18435 | lt_prog_compiler_pic_GCJ='-Kconform_pic' | |
18436 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18437 | fi | |
18438 | ;; | |
18439 | ||
18440 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) | |
18441 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18442 | lt_prog_compiler_pic_GCJ='-KPIC' | |
18443 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18444 | ;; | |
18445 | ||
18446 | unicos*) | |
18447 | lt_prog_compiler_wl_GCJ='-Wl,' | |
18448 | lt_prog_compiler_can_build_shared_GCJ=no | |
18449 | ;; | |
18450 | ||
18451 | uts4*) | |
18452 | lt_prog_compiler_pic_GCJ='-pic' | |
18453 | lt_prog_compiler_static_GCJ='-Bstatic' | |
18454 | ;; | |
18455 | ||
18456 | *) | |
18457 | lt_prog_compiler_can_build_shared_GCJ=no | |
18458 | ;; | |
18459 | esac | |
18460 | fi | |
18461 | ||
18462 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 | |
18463 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } | |
18464 | ||
18465 | # | |
18466 | # Check to make sure the PIC flag actually works. | |
18467 | # | |
18468 | if test -n "$lt_prog_compiler_pic_GCJ"; then | |
18469 | ||
18470 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 | |
18471 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } | |
18472 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then | |
18473 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18474 | else | |
18475 | lt_prog_compiler_pic_works_GCJ=no | |
18476 | ac_outfile=conftest.$ac_objext | |
18477 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
18478 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" | |
18479 | # Insert the option either (1) after the last *FLAGS variable, or | |
18480 | # (2) before a word containing "conftest.", or (3) at the end. | |
18481 | # Note that $ac_compile itself does not contain backslashes and begins | |
18482 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
18483 | # The option is referenced via a variable to avoid confusing sed. | |
18484 | lt_compile=`echo "$ac_compile" | $SED \ | |
18485 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
18486 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
18487 | -e 's:$: $lt_compiler_flag:'` | |
18488 | (eval echo "\"\$as_me:18488: $lt_compile\"" >&5) | |
18489 | (eval "$lt_compile" 2>conftest.err) | |
18490 | ac_status=$? | |
18491 | cat conftest.err >&5 | |
18492 | echo "$as_me:18492: \$? = $ac_status" >&5 | |
18493 | if (exit $ac_status) && test -s "$ac_outfile"; then | |
18494 | # The compiler can only warn and ignore the option if not recognized | |
18495 | # So say no if there are warnings other than the usual output. | |
18496 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp | |
18497 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
18498 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then | |
18499 | lt_prog_compiler_pic_works_GCJ=yes | |
18500 | fi | |
18501 | fi | |
18502 | $rm conftest* | |
18503 | ||
18504 | fi | |
18505 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 | |
18506 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } | |
18507 | ||
18508 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then | |
18509 | case $lt_prog_compiler_pic_GCJ in | |
18510 | "" | " "*) ;; | |
18511 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; | |
18512 | esac | |
18513 | else | |
18514 | lt_prog_compiler_pic_GCJ= | |
18515 | lt_prog_compiler_can_build_shared_GCJ=no | |
18516 | fi | |
18517 | ||
18518 | fi | |
18519 | case $host_os in | |
18520 | # For platforms which do not support PIC, -DPIC is meaningless: | |
18521 | *djgpp*) | |
18522 | lt_prog_compiler_pic_GCJ= | |
18523 | ;; | |
18524 | *) | |
18525 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" | |
18526 | ;; | |
18527 | esac | |
18528 | ||
18529 | # | |
18530 | # Check to make sure the static flag actually works. | |
18531 | # | |
18532 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" | |
18533 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 | |
18534 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } | |
18535 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then | |
18536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18537 | else | |
18538 | lt_prog_compiler_static_works_GCJ=no | |
18539 | save_LDFLAGS="$LDFLAGS" | |
18540 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" | |
18541 | printf "$lt_simple_link_test_code" > conftest.$ac_ext | |
18542 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then | |
18543 | # The linker can only warn and ignore the option if not recognized | |
18544 | # So say no if there are warnings | |
18545 | if test -s conftest.err; then | |
18546 | # Append any errors to the config.log. | |
18547 | cat conftest.err 1>&5 | |
18548 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp | |
18549 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 | |
18550 | if diff conftest.exp conftest.er2 >/dev/null; then | |
18551 | lt_prog_compiler_static_works_GCJ=yes | |
18552 | fi | |
18553 | else | |
18554 | lt_prog_compiler_static_works_GCJ=yes | |
18555 | fi | |
18556 | fi | |
18557 | $rm conftest* | |
18558 | LDFLAGS="$save_LDFLAGS" | |
18559 | ||
18560 | fi | |
18561 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 | |
18562 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } | |
18563 | ||
18564 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then | |
18565 | : | |
18566 | else | |
18567 | lt_prog_compiler_static_GCJ= | |
18568 | fi | |
18569 | ||
18570 | ||
18571 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 | |
18572 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } | |
18573 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then | |
18574 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
18575 | else | |
18576 | lt_cv_prog_compiler_c_o_GCJ=no | |
18577 | $rm -r conftest 2>/dev/null | |
18578 | mkdir conftest | |
18579 | cd conftest | |
18580 | mkdir out | |
18581 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
18582 | ||
18583 | lt_compiler_flag="-o out/conftest2.$ac_objext" | |
18584 | # Insert the option either (1) after the last *FLAGS variable, or | |
18585 | # (2) before a word containing "conftest.", or (3) at the end. | |
18586 | # Note that $ac_compile itself does not contain backslashes and begins | |
18587 | # with a dollar sign (not a hyphen), so the echo should work correctly. | |
18588 | lt_compile=`echo "$ac_compile" | $SED \ | |
18589 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ | |
18590 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ | |
18591 | -e 's:$: $lt_compiler_flag:'` | |
18592 | (eval echo "\"\$as_me:18592: $lt_compile\"" >&5) | |
18593 | (eval "$lt_compile" 2>out/conftest.err) | |
18594 | ac_status=$? | |
18595 | cat out/conftest.err >&5 | |
18596 | echo "$as_me:18596: \$? = $ac_status" >&5 | |
18597 | if (exit $ac_status) && test -s out/conftest2.$ac_objext | |
18598 | then | |
18599 | # The compiler can only warn and ignore the option if not recognized | |
18600 | # So say no if there are warnings | |
18601 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp | |
18602 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 | |
18603 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then | |
18604 | lt_cv_prog_compiler_c_o_GCJ=yes | |
18605 | fi | |
18606 | fi | |
18607 | chmod u+w . 2>&5 | |
18608 | $rm conftest* | |
18609 | # SGI C++ compiler will create directory out/ii_files/ for | |
18610 | # template instantiation | |
18611 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files | |
18612 | $rm out/* && rmdir out | |
18613 | cd .. | |
18614 | rmdir conftest | |
18615 | $rm conftest* | |
18616 | ||
18617 | fi | |
18618 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 | |
18619 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } | |
18620 | ||
18621 | ||
18622 | hard_links="nottested" | |
18623 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then | |
18624 | # do not overwrite the value of need_locks provided by the user | |
18625 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 | |
18626 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } | |
18627 | hard_links=yes | |
18628 | $rm conftest* | |
18629 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
18630 | touch conftest.a | |
18631 | ln conftest.a conftest.b 2>&5 || hard_links=no | |
18632 | ln conftest.a conftest.b 2>/dev/null && hard_links=no | |
18633 | { echo "$as_me:$LINENO: result: $hard_links" >&5 | |
18634 | echo "${ECHO_T}$hard_links" >&6; } | |
18635 | if test "$hard_links" = no; then | |
18636 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 | |
18637 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} | |
18638 | need_locks=warn | |
18639 | fi | |
18640 | else | |
18641 | need_locks=no | |
18642 | fi | |
18643 | ||
18644 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 | |
18645 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } | |
18646 | ||
18647 | runpath_var= | |
18648 | allow_undefined_flag_GCJ= | |
18649 | enable_shared_with_static_runtimes_GCJ=no | |
18650 | archive_cmds_GCJ= | |
18651 | archive_expsym_cmds_GCJ= | |
18652 | old_archive_From_new_cmds_GCJ= | |
18653 | old_archive_from_expsyms_cmds_GCJ= | |
18654 | export_dynamic_flag_spec_GCJ= | |
18655 | whole_archive_flag_spec_GCJ= | |
18656 | thread_safe_flag_spec_GCJ= | |
18657 | hardcode_libdir_flag_spec_GCJ= | |
18658 | hardcode_libdir_flag_spec_ld_GCJ= | |
18659 | hardcode_libdir_separator_GCJ= | |
18660 | hardcode_direct_GCJ=no | |
18661 | hardcode_minus_L_GCJ=no | |
18662 | hardcode_shlibpath_var_GCJ=unsupported | |
18663 | link_all_deplibs_GCJ=unknown | |
18664 | hardcode_automatic_GCJ=no | |
18665 | module_cmds_GCJ= | |
18666 | module_expsym_cmds_GCJ= | |
18667 | always_export_symbols_GCJ=no | |
18668 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' | |
18669 | # include_expsyms should be a list of space-separated symbols to be *always* | |
18670 | # included in the symbol list | |
18671 | include_expsyms_GCJ= | |
18672 | # exclude_expsyms can be an extended regexp of symbols to exclude | |
18673 | # it will be wrapped by ` (' and `)$', so one must not match beginning or | |
18674 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', | |
18675 | # as well as any symbol that contains `d'. | |
18676 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" | |
18677 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out | |
18678 | # platforms (ab)use it in PIC code, but their linkers get confused if | |
18679 | # the symbol is explicitly referenced. Since portable code cannot | |
18680 | # rely on this symbol name, it's probably fine to never include it in | |
18681 | # preloaded symbol tables. | |
18682 | extract_expsyms_cmds= | |
18683 | # Just being paranoid about ensuring that cc_basename is set. | |
18684 | for cc_temp in $compiler""; do | |
18685 | case $cc_temp in | |
18686 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
18687 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
18688 | \-*) ;; | |
18689 | *) break;; | |
18690 | esac | |
18691 | done | |
18692 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
18693 | ||
18694 | case $host_os in | |
18695 | cygwin* | mingw* | pw32*) | |
18696 | # FIXME: the MSVC++ port hasn't been tested in a loooong time | |
18697 | # When not using gcc, we currently assume that we are using | |
18698 | # Microsoft Visual C++. | |
18699 | if test "$GCC" != yes; then | |
18700 | with_gnu_ld=no | |
18701 | fi | |
18702 | ;; | |
18703 | interix*) | |
18704 | # we just hope/assume this is gcc and not c89 (= MSVC++) | |
18705 | with_gnu_ld=yes | |
18706 | ;; | |
18707 | openbsd*) | |
18708 | with_gnu_ld=no | |
18709 | ;; | |
18710 | esac | |
18711 | ||
18712 | ld_shlibs_GCJ=yes | |
18713 | if test "$with_gnu_ld" = yes; then | |
18714 | # If archive_cmds runs LD, not CC, wlarc should be empty | |
18715 | wlarc='${wl}' | |
18716 | ||
18717 | # Set some defaults for GNU ld with shared library support. These | |
18718 | # are reset later if shared libraries are not supported. Putting them | |
18719 | # here allows them to be overridden if necessary. | |
18720 | runpath_var=LD_RUN_PATH | |
18721 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' | |
18722 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' | |
18723 | # ancient GNU ld didn't support --whole-archive et. al. | |
18724 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then | |
18725 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' | |
18726 | else | |
18727 | whole_archive_flag_spec_GCJ= | |
18728 | fi | |
18729 | supports_anon_versioning=no | |
18730 | case `$LD -v 2>/dev/null` in | |
18731 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 | |
18732 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... | |
18733 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... | |
18734 | *\ 2.11.*) ;; # other 2.11 versions | |
18735 | *) supports_anon_versioning=yes ;; | |
18736 | esac | |
18737 | ||
18738 | # See if GNU ld supports shared libraries. | |
18739 | case $host_os in | |
18740 | aix3* | aix4* | aix5*) | |
18741 | # On AIX/PPC, the GNU linker is very broken | |
18742 | if test "$host_cpu" != ia64; then | |
18743 | ld_shlibs_GCJ=no | |
18744 | cat <<EOF 1>&2 | |
18745 | ||
18746 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported | |
18747 | *** to be unable to reliably create shared libraries on AIX. | |
18748 | *** Therefore, libtool is disabling shared libraries support. If you | |
18749 | *** really care for shared libraries, you may want to modify your PATH | |
18750 | *** so that a non-GNU linker is found, and then restart. | |
18751 | ||
18752 | EOF | |
18753 | fi | |
18754 | ;; | |
18755 | ||
18756 | amigaos*) | |
18757 | 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)' | |
18758 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
18759 | hardcode_minus_L_GCJ=yes | |
18760 | ||
18761 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports | |
18762 | # that the semantics of dynamic libraries on AmigaOS, at least up | |
18763 | # to version 4, is to share data among multiple programs linked | |
18764 | # with the same dynamic library. Since this doesn't match the | |
18765 | # behavior of shared libraries on other platforms, we can't use | |
18766 | # them. | |
18767 | ld_shlibs_GCJ=no | |
18768 | ;; | |
18769 | ||
18770 | beos*) | |
18771 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
18772 | allow_undefined_flag_GCJ=unsupported | |
18773 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc | |
18774 | # support --undefined. This deserves some investigation. FIXME | |
18775 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18776 | else | |
18777 | ld_shlibs_GCJ=no | |
18778 | fi | |
18779 | ;; | |
18780 | ||
18781 | cygwin* | mingw* | pw32*) | |
18782 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, | |
18783 | # as there is no search path for DLLs. | |
18784 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
18785 | allow_undefined_flag_GCJ=unsupported | |
18786 | always_export_symbols_GCJ=no | |
18787 | enable_shared_with_static_runtimes_GCJ=yes | |
18788 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' | |
18789 | ||
18790 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then | |
18791 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
18792 | # If the export-symbols file already is a .def file (1st line | |
18793 | # is EXPORTS), use it as is; otherwise, prepend... | |
18794 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then | |
18795 | cp $export_symbols $output_objdir/$soname.def; | |
18796 | else | |
18797 | echo EXPORTS > $output_objdir/$soname.def; | |
18798 | cat $export_symbols >> $output_objdir/$soname.def; | |
18799 | fi~ | |
18800 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' | |
18801 | else | |
18802 | ld_shlibs_GCJ=no | |
18803 | fi | |
18804 | ;; | |
18805 | ||
18806 | interix3*) | |
18807 | hardcode_direct_GCJ=no | |
18808 | hardcode_shlibpath_var_GCJ=no | |
18809 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
18810 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
18811 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. | |
18812 | # Instead, shared libraries are loaded at an image base (0x10000000 by | |
18813 | # default) and relocated if they conflict, which is a slow very memory | |
18814 | # consuming and fragmenting process. To avoid this, we pick a random, | |
18815 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link | |
18816 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. | |
18817 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
18818 | archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' | |
18819 | ;; | |
18820 | ||
18821 | linux*) | |
18822 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
18823 | tmp_addflag= | |
18824 | case $cc_basename,$host_cpu in | |
18825 | pgcc*) # Portland Group C compiler | |
18826 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
18827 | tmp_addflag=' $pic_flag' | |
18828 | ;; | |
18829 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers | |
18830 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' | |
18831 | tmp_addflag=' $pic_flag -Mnomain' ;; | |
18832 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 | |
18833 | tmp_addflag=' -i_dynamic' ;; | |
18834 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 | |
18835 | tmp_addflag=' -i_dynamic -nofor_main' ;; | |
18836 | ifc* | ifort*) # Intel Fortran compiler | |
18837 | tmp_addflag=' -nofor_main' ;; | |
18838 | esac | |
18839 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18840 | ||
18841 | if test $supports_anon_versioning = yes; then | |
18842 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ | |
18843 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ | |
18844 | $echo "local: *; };" >> $output_objdir/$libname.ver~ | |
18845 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' | |
18846 | fi | |
18847 | else | |
18848 | ld_shlibs_GCJ=no | |
18849 | fi | |
18850 | ;; | |
18851 | ||
18852 | netbsd*) | |
18853 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
18854 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' | |
18855 | wlarc= | |
18856 | else | |
18857 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18858 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
18859 | fi | |
18860 | ;; | |
18861 | ||
18862 | solaris*) | |
18863 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then | |
18864 | ld_shlibs_GCJ=no | |
18865 | cat <<EOF 1>&2 | |
18866 | ||
18867 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably | |
18868 | *** create shared libraries on Solaris systems. Therefore, libtool | |
18869 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
18870 | *** binutils to release 2.9.1 or newer. Another option is to modify | |
18871 | *** your PATH or compiler configuration so that the native linker is | |
18872 | *** used, and then restart. | |
18873 | ||
18874 | EOF | |
18875 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
18876 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18877 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
18878 | else | |
18879 | ld_shlibs_GCJ=no | |
18880 | fi | |
18881 | ;; | |
18882 | ||
18883 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) | |
18884 | case `$LD -v 2>&1` in | |
18885 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) | |
18886 | ld_shlibs_GCJ=no | |
18887 | cat <<_LT_EOF 1>&2 | |
18888 | ||
18889 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not | |
18890 | *** reliably create shared libraries on SCO systems. Therefore, libtool | |
18891 | *** is disabling shared libraries support. We urge you to upgrade GNU | |
18892 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify | |
18893 | *** your PATH or compiler configuration so that the native linker is | |
18894 | *** used, and then restart. | |
18895 | ||
18896 | _LT_EOF | |
18897 | ;; | |
18898 | *) | |
18899 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
18900 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' | |
18901 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' | |
18902 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' | |
18903 | else | |
18904 | ld_shlibs_GCJ=no | |
18905 | fi | |
18906 | ;; | |
18907 | esac | |
18908 | ;; | |
18909 | ||
18910 | sunos4*) | |
18911 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
18912 | wlarc= | |
18913 | hardcode_direct_GCJ=yes | |
18914 | hardcode_shlibpath_var_GCJ=no | |
18915 | ;; | |
18916 | ||
18917 | *) | |
18918 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then | |
18919 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' | |
18920 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' | |
18921 | else | |
18922 | ld_shlibs_GCJ=no | |
18923 | fi | |
18924 | ;; | |
18925 | esac | |
18926 | ||
18927 | if test "$ld_shlibs_GCJ" = no; then | |
18928 | runpath_var= | |
18929 | hardcode_libdir_flag_spec_GCJ= | |
18930 | export_dynamic_flag_spec_GCJ= | |
18931 | whole_archive_flag_spec_GCJ= | |
18932 | fi | |
18933 | else | |
18934 | # PORTME fill in a description of your system's linker (not GNU ld) | |
18935 | case $host_os in | |
18936 | aix3*) | |
18937 | allow_undefined_flag_GCJ=unsupported | |
18938 | always_export_symbols_GCJ=yes | |
18939 | 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' | |
18940 | # Note: this linker hardcodes the directories in LIBPATH if there | |
18941 | # are no directories specified by -L. | |
18942 | hardcode_minus_L_GCJ=yes | |
18943 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then | |
18944 | # Neither direct hardcoding nor static linking is supported with a | |
18945 | # broken collect2. | |
18946 | hardcode_direct_GCJ=unsupported | |
18947 | fi | |
18948 | ;; | |
18949 | ||
18950 | aix4* | aix5*) | |
18951 | if test "$host_cpu" = ia64; then | |
18952 | # On IA64, the linker does run time linking by default, so we don't | |
18953 | # have to do anything special. | |
18954 | aix_use_runtimelinking=no | |
18955 | exp_sym_flag='-Bexport' | |
18956 | no_entry_flag="" | |
18957 | else | |
18958 | # If we're using GNU nm, then we don't want the "-C" option. | |
18959 | # -C means demangle to AIX nm, but means don't demangle with GNU nm | |
18960 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then | |
18961 | 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' | |
18962 | else | |
18963 | 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' | |
18964 | fi | |
18965 | aix_use_runtimelinking=no | |
18966 | ||
18967 | # Test if we are trying to use run time linking or normal | |
18968 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we | |
18969 | # need to do runtime linking. | |
18970 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) | |
18971 | for ld_flag in $LDFLAGS; do | |
18972 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then | |
18973 | aix_use_runtimelinking=yes | |
18974 | break | |
18975 | fi | |
18976 | done | |
18977 | ;; | |
18978 | esac | |
18979 | ||
18980 | exp_sym_flag='-bexport' | |
18981 | no_entry_flag='-bnoentry' | |
18982 | fi | |
18983 | ||
18984 | # When large executables or shared objects are built, AIX ld can | |
18985 | # have problems creating the table of contents. If linking a library | |
18986 | # or program results in "error TOC overflow" add -mminimal-toc to | |
18987 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not | |
18988 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. | |
18989 | ||
18990 | archive_cmds_GCJ='' | |
18991 | hardcode_direct_GCJ=yes | |
18992 | hardcode_libdir_separator_GCJ=':' | |
18993 | link_all_deplibs_GCJ=yes | |
18994 | ||
18995 | if test "$GCC" = yes; then | |
18996 | case $host_os in aix4.[012]|aix4.[012].*) | |
18997 | # We only want to do this on AIX 4.2 and lower, the check | |
18998 | # below for broken collect2 doesn't work under 4.3+ | |
18999 | collect2name=`${CC} -print-prog-name=collect2` | |
19000 | if test -f "$collect2name" && \ | |
19001 | strings "$collect2name" | grep resolve_lib_name >/dev/null | |
19002 | then | |
19003 | # We have reworked collect2 | |
19004 | hardcode_direct_GCJ=yes | |
19005 | else | |
19006 | # We have old collect2 | |
19007 | hardcode_direct_GCJ=unsupported | |
19008 | # It fails to find uninstalled libraries when the uninstalled | |
19009 | # path is not listed in the libpath. Setting hardcode_minus_L | |
19010 | # to unsupported forces relinking | |
19011 | hardcode_minus_L_GCJ=yes | |
19012 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
19013 | hardcode_libdir_separator_GCJ= | |
19014 | fi | |
19015 | ;; | |
19016 | esac | |
19017 | shared_flag='-shared' | |
19018 | if test "$aix_use_runtimelinking" = yes; then | |
19019 | shared_flag="$shared_flag "'${wl}-G' | |
19020 | fi | |
19021 | else | |
19022 | # not using gcc | |
19023 | if test "$host_cpu" = ia64; then | |
19024 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release | |
19025 | # chokes on -Wl,-G. The following line is correct: | |
19026 | shared_flag='-G' | |
19027 | else | |
19028 | if test "$aix_use_runtimelinking" = yes; then | |
19029 | shared_flag='${wl}-G' | |
19030 | else | |
19031 | shared_flag='${wl}-bM:SRE' | |
19032 | fi | |
19033 | fi | |
19034 | fi | |
19035 | ||
19036 | # It seems that -bexpall does not export symbols beginning with | |
19037 | # underscore (_), so it is better to generate a list of symbols to export. | |
19038 | always_export_symbols_GCJ=yes | |
19039 | if test "$aix_use_runtimelinking" = yes; then | |
19040 | # Warning - without using the other runtime loading flags (-brtl), | |
19041 | # -berok will link without error, but may produce a broken library. | |
19042 | allow_undefined_flag_GCJ='-berok' | |
19043 | # Determine the default libpath from the value encoded in an empty executable. | |
19044 | cat >conftest.$ac_ext <<_ACEOF | |
19045 | /* confdefs.h. */ | |
19046 | _ACEOF | |
19047 | cat confdefs.h >>conftest.$ac_ext | |
19048 | cat >>conftest.$ac_ext <<_ACEOF | |
19049 | /* end confdefs.h. */ | |
19050 | ||
19051 | int | |
19052 | main () | |
19053 | { | |
19054 | ||
19055 | ; | |
19056 | return 0; | |
19057 | } | |
19058 | _ACEOF | |
19059 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19060 | if { (ac_try="$ac_link" | |
19061 | case "(($ac_try" in | |
19062 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19063 | *) ac_try_echo=$ac_try;; | |
19064 | esac | |
19065 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19066 | (eval "$ac_link") 2>conftest.er1 | |
19067 | ac_status=$? | |
19068 | grep -v '^ *+' conftest.er1 >conftest.err | |
19069 | rm -f conftest.er1 | |
19070 | cat conftest.err >&5 | |
19071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19072 | (exit $ac_status); } && { | |
19073 | test -z "$ac_c_werror_flag" || | |
19074 | test ! -s conftest.err | |
19075 | } && test -s conftest$ac_exeext && | |
19076 | $as_test_x conftest$ac_exeext; then | |
19077 | ||
19078 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
19079 | }'` | |
19080 | # Check for a 64-bit object if we didn't find anything. | |
19081 | 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; } | |
19082 | }'`; fi | |
19083 | else | |
19084 | echo "$as_me: failed program was:" >&5 | |
19085 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19086 | ||
19087 | ||
19088 | fi | |
19089 | ||
19090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19091 | conftest$ac_exeext conftest.$ac_ext | |
19092 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
19093 | ||
19094 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
19095 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" | |
19096 | else | |
19097 | if test "$host_cpu" = ia64; then | |
19098 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' | |
19099 | allow_undefined_flag_GCJ="-z nodefs" | |
19100 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" | |
19101 | else | |
19102 | # Determine the default libpath from the value encoded in an empty executable. | |
19103 | cat >conftest.$ac_ext <<_ACEOF | |
19104 | /* confdefs.h. */ | |
19105 | _ACEOF | |
19106 | cat confdefs.h >>conftest.$ac_ext | |
19107 | cat >>conftest.$ac_ext <<_ACEOF | |
19108 | /* end confdefs.h. */ | |
19109 | ||
19110 | int | |
19111 | main () | |
19112 | { | |
19113 | ||
19114 | ; | |
19115 | return 0; | |
19116 | } | |
19117 | _ACEOF | |
19118 | rm -f conftest.$ac_objext conftest$ac_exeext | |
19119 | if { (ac_try="$ac_link" | |
19120 | case "(($ac_try" in | |
19121 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
19122 | *) ac_try_echo=$ac_try;; | |
19123 | esac | |
19124 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
19125 | (eval "$ac_link") 2>conftest.er1 | |
19126 | ac_status=$? | |
19127 | grep -v '^ *+' conftest.er1 >conftest.err | |
19128 | rm -f conftest.er1 | |
19129 | cat conftest.err >&5 | |
19130 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19131 | (exit $ac_status); } && { | |
19132 | test -z "$ac_c_werror_flag" || | |
19133 | test ! -s conftest.err | |
19134 | } && test -s conftest$ac_exeext && | |
19135 | $as_test_x conftest$ac_exeext; then | |
19136 | ||
19137 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } | |
19138 | }'` | |
19139 | # Check for a 64-bit object if we didn't find anything. | |
19140 | 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; } | |
19141 | }'`; fi | |
19142 | else | |
19143 | echo "$as_me: failed program was:" >&5 | |
19144 | sed 's/^/| /' conftest.$ac_ext >&5 | |
19145 | ||
19146 | ||
19147 | fi | |
19148 | ||
19149 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
19150 | conftest$ac_exeext conftest.$ac_ext | |
19151 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi | |
19152 | ||
19153 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" | |
19154 | # Warning - without using the other run time loading flags, | |
19155 | # -berok will link without error, but may produce a broken library. | |
19156 | no_undefined_flag_GCJ=' ${wl}-bernotok' | |
19157 | allow_undefined_flag_GCJ=' ${wl}-berok' | |
19158 | # Exported symbols can be pulled into shared objects from archives | |
19159 | whole_archive_flag_spec_GCJ='$convenience' | |
19160 | archive_cmds_need_lc_GCJ=yes | |
19161 | # This is similar to how AIX traditionally builds its shared libraries. | |
19162 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' | |
19163 | fi | |
19164 | fi | |
19165 | ;; | |
19166 | ||
19167 | amigaos*) | |
19168 | 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)' | |
19169 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
19170 | hardcode_minus_L_GCJ=yes | |
19171 | # see comment about different semantics on the GNU ld section | |
19172 | ld_shlibs_GCJ=no | |
19173 | ;; | |
19174 | ||
19175 | bsdi[45]*) | |
19176 | export_dynamic_flag_spec_GCJ=-rdynamic | |
19177 | ;; | |
19178 | ||
19179 | cygwin* | mingw* | pw32*) | |
19180 | # When not using gcc, we currently assume that we are using | |
19181 | # Microsoft Visual C++. | |
19182 | # hardcode_libdir_flag_spec is actually meaningless, as there is | |
19183 | # no search path for DLLs. | |
19184 | hardcode_libdir_flag_spec_GCJ=' ' | |
19185 | allow_undefined_flag_GCJ=unsupported | |
19186 | # Tell ltmain to make .lib files, not .a files. | |
19187 | libext=lib | |
19188 | # Tell ltmain to make .dll files, not .so files. | |
19189 | shrext_cmds=".dll" | |
19190 | # FIXME: Setting linknames here is a bad hack. | |
19191 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' | |
19192 | # The linker will automatically build a .lib file if we build a DLL. | |
19193 | old_archive_From_new_cmds_GCJ='true' | |
19194 | # FIXME: Should let the user specify the lib program. | |
19195 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' | |
19196 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' | |
19197 | enable_shared_with_static_runtimes_GCJ=yes | |
19198 | ;; | |
19199 | ||
19200 | darwin* | rhapsody*) | |
19201 | case $host_os in | |
19202 | rhapsody* | darwin1.[012]) | |
19203 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' | |
19204 | ;; | |
19205 | *) # Darwin 1.3 on | |
19206 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then | |
19207 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
19208 | else | |
19209 | case ${MACOSX_DEPLOYMENT_TARGET} in | |
19210 | 10.[012]) | |
19211 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' | |
19212 | ;; | |
19213 | 10.*) | |
19214 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' | |
19215 | ;; | |
19216 | esac | |
19217 | fi | |
19218 | ;; | |
19219 | esac | |
19220 | archive_cmds_need_lc_GCJ=no | |
19221 | hardcode_direct_GCJ=no | |
19222 | hardcode_automatic_GCJ=yes | |
19223 | hardcode_shlibpath_var_GCJ=unsupported | |
19224 | whole_archive_flag_spec_GCJ='' | |
19225 | link_all_deplibs_GCJ=yes | |
19226 | if test "$GCC" = yes ; then | |
19227 | output_verbose_link_cmd='echo' | |
19228 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' | |
19229 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
19230 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
19231 | archive_expsym_cmds_GCJ='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}' | |
19232 | 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}' | |
19233 | else | |
19234 | case $cc_basename in | |
19235 | xlc*) | |
19236 | output_verbose_link_cmd='echo' | |
19237 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' | |
19238 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' | |
19239 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds | |
19240 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' | |
19241 | 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}' | |
19242 | ;; | |
19243 | *) | |
19244 | ld_shlibs_GCJ=no | |
19245 | ;; | |
19246 | esac | |
19247 | fi | |
19248 | ;; | |
19249 | ||
19250 | dgux*) | |
19251 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19252 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
19253 | hardcode_shlibpath_var_GCJ=no | |
19254 | ;; | |
19255 | ||
19256 | freebsd1*) | |
19257 | ld_shlibs_GCJ=no | |
19258 | ;; | |
19259 | ||
19260 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor | |
19261 | # support. Future versions do this automatically, but an explicit c++rt0.o | |
19262 | # does not break anything, and helps significantly (at the cost of a little | |
19263 | # extra space). | |
19264 | freebsd2.2*) | |
19265 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' | |
19266 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
19267 | hardcode_direct_GCJ=yes | |
19268 | hardcode_shlibpath_var_GCJ=no | |
19269 | ;; | |
19270 | ||
19271 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. | |
19272 | freebsd2*) | |
19273 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
19274 | hardcode_direct_GCJ=yes | |
19275 | hardcode_minus_L_GCJ=yes | |
19276 | hardcode_shlibpath_var_GCJ=no | |
19277 | ;; | |
19278 | ||
19279 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. | |
19280 | freebsd* | kfreebsd*-gnu | dragonfly*) | |
19281 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' | |
19282 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
19283 | hardcode_direct_GCJ=yes | |
19284 | hardcode_shlibpath_var_GCJ=no | |
19285 | ;; | |
19286 | ||
19287 | hpux9*) | |
19288 | if test "$GCC" = yes; then | |
19289 | 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' | |
19290 | else | |
19291 | 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' | |
19292 | fi | |
19293 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
19294 | hardcode_libdir_separator_GCJ=: | |
19295 | hardcode_direct_GCJ=yes | |
19296 | ||
19297 | # hardcode_minus_L: Not really in the search PATH, | |
19298 | # but as the default location of the library. | |
19299 | hardcode_minus_L_GCJ=yes | |
19300 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
19301 | ;; | |
19302 | ||
19303 | hpux10*) | |
19304 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
19305 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
19306 | else | |
19307 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' | |
19308 | fi | |
19309 | if test "$with_gnu_ld" = no; then | |
19310 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
19311 | hardcode_libdir_separator_GCJ=: | |
19312 | ||
19313 | hardcode_direct_GCJ=yes | |
19314 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
19315 | ||
19316 | # hardcode_minus_L: Not really in the search PATH, | |
19317 | # but as the default location of the library. | |
19318 | hardcode_minus_L_GCJ=yes | |
19319 | fi | |
19320 | ;; | |
19321 | ||
19322 | hpux11*) | |
19323 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then | |
19324 | case $host_cpu in | |
19325 | hppa*64*) | |
19326 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19327 | ;; | |
19328 | ia64*) | |
19329 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
19330 | ;; | |
19331 | *) | |
19332 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
19333 | ;; | |
19334 | esac | |
19335 | else | |
19336 | case $host_cpu in | |
19337 | hppa*64*) | |
19338 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19339 | ;; | |
19340 | ia64*) | |
19341 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' | |
19342 | ;; | |
19343 | *) | |
19344 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' | |
19345 | ;; | |
19346 | esac | |
19347 | fi | |
19348 | if test "$with_gnu_ld" = no; then | |
19349 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' | |
19350 | hardcode_libdir_separator_GCJ=: | |
19351 | ||
19352 | case $host_cpu in | |
19353 | hppa*64*|ia64*) | |
19354 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' | |
19355 | hardcode_direct_GCJ=no | |
19356 | hardcode_shlibpath_var_GCJ=no | |
19357 | ;; | |
19358 | *) | |
19359 | hardcode_direct_GCJ=yes | |
19360 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
19361 | ||
19362 | # hardcode_minus_L: Not really in the search PATH, | |
19363 | # but as the default location of the library. | |
19364 | hardcode_minus_L_GCJ=yes | |
19365 | ;; | |
19366 | esac | |
19367 | fi | |
19368 | ;; | |
19369 | ||
19370 | irix5* | irix6* | nonstopux*) | |
19371 | if test "$GCC" = yes; then | |
19372 | 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' | |
19373 | else | |
19374 | 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' | |
19375 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' | |
19376 | fi | |
19377 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
19378 | hardcode_libdir_separator_GCJ=: | |
19379 | link_all_deplibs_GCJ=yes | |
19380 | ;; | |
19381 | ||
19382 | netbsd*) | |
19383 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
19384 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out | |
19385 | else | |
19386 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF | |
19387 | fi | |
19388 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
19389 | hardcode_direct_GCJ=yes | |
19390 | hardcode_shlibpath_var_GCJ=no | |
19391 | ;; | |
19392 | ||
19393 | newsos6) | |
19394 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19395 | hardcode_direct_GCJ=yes | |
19396 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
19397 | hardcode_libdir_separator_GCJ=: | |
19398 | hardcode_shlibpath_var_GCJ=no | |
19399 | ;; | |
19400 | ||
19401 | openbsd*) | |
19402 | hardcode_direct_GCJ=yes | |
19403 | hardcode_shlibpath_var_GCJ=no | |
19404 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
19405 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
19406 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' | |
19407 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
19408 | export_dynamic_flag_spec_GCJ='${wl}-E' | |
19409 | else | |
19410 | case $host_os in | |
19411 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) | |
19412 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' | |
19413 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
19414 | ;; | |
19415 | *) | |
19416 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' | |
19417 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' | |
19418 | ;; | |
19419 | esac | |
19420 | fi | |
19421 | ;; | |
19422 | ||
19423 | os2*) | |
19424 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
19425 | hardcode_minus_L_GCJ=yes | |
19426 | allow_undefined_flag_GCJ=unsupported | |
19427 | 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' | |
19428 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' | |
19429 | ;; | |
19430 | ||
19431 | osf3*) | |
19432 | if test "$GCC" = yes; then | |
19433 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
19434 | 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' | |
19435 | else | |
19436 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
19437 | 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' | |
19438 | fi | |
19439 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
19440 | hardcode_libdir_separator_GCJ=: | |
19441 | ;; | |
19442 | ||
19443 | osf4* | osf5*) # as osf3* with the addition of -msym flag | |
19444 | if test "$GCC" = yes; then | |
19445 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' | |
19446 | 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' | |
19447 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' | |
19448 | else | |
19449 | allow_undefined_flag_GCJ=' -expect_unresolved \*' | |
19450 | 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' | |
19451 | 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~ | |
19452 | $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp' | |
19453 | ||
19454 | # Both c and cxx compiler support -rpath directly | |
19455 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' | |
19456 | fi | |
19457 | hardcode_libdir_separator_GCJ=: | |
19458 | ;; | |
19459 | ||
19460 | solaris*) | |
19461 | no_undefined_flag_GCJ=' -z text' | |
19462 | if test "$GCC" = yes; then | |
19463 | wlarc='${wl}' | |
19464 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19465 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
19466 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' | |
19467 | else | |
19468 | wlarc='' | |
19469 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19470 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ | |
19471 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' | |
19472 | fi | |
19473 | hardcode_libdir_flag_spec_GCJ='-R$libdir' | |
19474 | hardcode_shlibpath_var_GCJ=no | |
19475 | case $host_os in | |
19476 | solaris2.[0-5] | solaris2.[0-5].*) ;; | |
19477 | *) | |
19478 | # The compiler driver will combine linker options so we | |
19479 | # cannot just pass the convience library names through | |
19480 | # without $wl, iff we do not link with $LD. | |
19481 | # Luckily, gcc supports the same syntax we need for Sun Studio. | |
19482 | # Supported since Solaris 2.6 (maybe 2.5.1?) | |
19483 | case $wlarc in | |
19484 | '') | |
19485 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; | |
19486 | *) | |
19487 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; | |
19488 | esac ;; | |
19489 | esac | |
19490 | link_all_deplibs_GCJ=yes | |
19491 | ;; | |
19492 | ||
19493 | sunos4*) | |
19494 | if test "x$host_vendor" = xsequent; then | |
19495 | # Use $CC to link under sequent, because it throws in some extra .o | |
19496 | # files that make .init and .fini sections work. | |
19497 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' | |
19498 | else | |
19499 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' | |
19500 | fi | |
19501 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
19502 | hardcode_direct_GCJ=yes | |
19503 | hardcode_minus_L_GCJ=yes | |
19504 | hardcode_shlibpath_var_GCJ=no | |
19505 | ;; | |
19506 | ||
19507 | sysv4) | |
19508 | case $host_vendor in | |
19509 | sni) | |
19510 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19511 | hardcode_direct_GCJ=yes # is this really true??? | |
19512 | ;; | |
19513 | siemens) | |
19514 | ## LD is ld it makes a PLAMLIB | |
19515 | ## CC just makes a GrossModule. | |
19516 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' | |
19517 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' | |
19518 | hardcode_direct_GCJ=no | |
19519 | ;; | |
19520 | motorola) | |
19521 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19522 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie | |
19523 | ;; | |
19524 | esac | |
19525 | runpath_var='LD_RUN_PATH' | |
19526 | hardcode_shlibpath_var_GCJ=no | |
19527 | ;; | |
19528 | ||
19529 | sysv4.3*) | |
19530 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19531 | hardcode_shlibpath_var_GCJ=no | |
19532 | export_dynamic_flag_spec_GCJ='-Bexport' | |
19533 | ;; | |
19534 | ||
19535 | sysv4*MP*) | |
19536 | if test -d /usr/nec; then | |
19537 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19538 | hardcode_shlibpath_var_GCJ=no | |
19539 | runpath_var=LD_RUN_PATH | |
19540 | hardcode_runpath_var=yes | |
19541 | ld_shlibs_GCJ=yes | |
19542 | fi | |
19543 | ;; | |
19544 | ||
19545 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) | |
19546 | no_undefined_flag_GCJ='${wl}-z,text' | |
19547 | archive_cmds_need_lc_GCJ=no | |
19548 | hardcode_shlibpath_var_GCJ=no | |
19549 | runpath_var='LD_RUN_PATH' | |
19550 | ||
19551 | if test "$GCC" = yes; then | |
19552 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19553 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19554 | else | |
19555 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19556 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19557 | fi | |
19558 | ;; | |
19559 | ||
19560 | sysv5* | sco3.2v5* | sco5v6*) | |
19561 | # Note: We can NOT use -z defs as we might desire, because we do not | |
19562 | # link with -lc, and that would cause any symbols used from libc to | |
19563 | # always be unresolved, which means just about no library would | |
19564 | # ever link correctly. If we're not using GNU ld we use -z text | |
19565 | # though, which does catch some bad symbols but isn't as heavy-handed | |
19566 | # as -z defs. | |
19567 | no_undefined_flag_GCJ='${wl}-z,text' | |
19568 | allow_undefined_flag_GCJ='${wl}-z,nodefs' | |
19569 | archive_cmds_need_lc_GCJ=no | |
19570 | hardcode_shlibpath_var_GCJ=no | |
19571 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' | |
19572 | hardcode_libdir_separator_GCJ=':' | |
19573 | link_all_deplibs_GCJ=yes | |
19574 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' | |
19575 | runpath_var='LD_RUN_PATH' | |
19576 | ||
19577 | if test "$GCC" = yes; then | |
19578 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19579 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19580 | else | |
19581 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19582 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' | |
19583 | fi | |
19584 | ;; | |
19585 | ||
19586 | uts4*) | |
19587 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' | |
19588 | hardcode_libdir_flag_spec_GCJ='-L$libdir' | |
19589 | hardcode_shlibpath_var_GCJ=no | |
19590 | ;; | |
19591 | ||
19592 | *) | |
19593 | ld_shlibs_GCJ=no | |
19594 | ;; | |
19595 | esac | |
19596 | fi | |
19597 | ||
19598 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 | |
19599 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } | |
19600 | test "$ld_shlibs_GCJ" = no && can_build_shared=no | |
19601 | ||
19602 | # | |
19603 | # Do we need to explicitly link libc? | |
19604 | # | |
19605 | case "x$archive_cmds_need_lc_GCJ" in | |
19606 | x|xyes) | |
19607 | # Assume -lc should be added | |
19608 | archive_cmds_need_lc_GCJ=yes | |
19609 | ||
19610 | if test "$enable_shared" = yes && test "$GCC" = yes; then | |
19611 | case $archive_cmds_GCJ in | |
19612 | *'~'*) | |
19613 | # FIXME: we may have to deal with multi-command sequences. | |
19614 | ;; | |
19615 | '$CC '*) | |
19616 | # Test whether the compiler implicitly links with -lc since on some | |
19617 | # systems, -lgcc has to come before -lc. If gcc already passes -lc | |
19618 | # to ld, don't add -lc before -lgcc. | |
19619 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 | |
19620 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } | |
19621 | $rm conftest* | |
19622 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext | |
19623 | ||
19624 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
19625 | (eval $ac_compile) 2>&5 | |
19626 | ac_status=$? | |
19627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19628 | (exit $ac_status); } 2>conftest.err; then | |
19629 | soname=conftest | |
19630 | lib=conftest | |
19631 | libobjs=conftest.$ac_objext | |
19632 | deplibs= | |
19633 | wl=$lt_prog_compiler_wl_GCJ | |
19634 | pic_flag=$lt_prog_compiler_pic_GCJ | |
19635 | compiler_flags=-v | |
19636 | linker_flags=-v | |
19637 | verstring= | |
19638 | output_objdir=. | |
19639 | libname=conftest | |
19640 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ | |
19641 | allow_undefined_flag_GCJ= | |
19642 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 | |
19643 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 | |
19644 | ac_status=$? | |
19645 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
19646 | (exit $ac_status); } | |
19647 | then | |
19648 | archive_cmds_need_lc_GCJ=no | |
19649 | else | |
19650 | archive_cmds_need_lc_GCJ=yes | |
19651 | fi | |
19652 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag | |
19653 | else | |
19654 | cat conftest.err 1>&5 | |
19655 | fi | |
19656 | $rm conftest* | |
19657 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 | |
19658 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } | |
19659 | ;; | |
19660 | esac | |
19661 | fi | |
19662 | ;; | |
19663 | esac | |
19664 | ||
19665 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 | |
19666 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } | |
19667 | library_names_spec= | |
19668 | libname_spec='lib$name' | |
19669 | soname_spec= | |
19670 | shrext_cmds=".so" | |
19671 | postinstall_cmds= | |
19672 | postuninstall_cmds= | |
19673 | finish_cmds= | |
19674 | finish_eval= | |
19675 | shlibpath_var= | |
19676 | shlibpath_overrides_runpath=unknown | |
19677 | version_type=none | |
19678 | dynamic_linker="$host_os ld.so" | |
19679 | sys_lib_dlsearch_path_spec="/lib /usr/lib" | |
19680 | if test "$GCC" = yes; then | |
19681 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
19682 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then | |
19683 | # if the path contains ";" then we assume it to be the separator | |
19684 | # otherwise default to the standard path separator (i.e. ":") - it is | |
19685 | # assumed that no part of a normal pathname contains ";" but that should | |
19686 | # okay in the real world where ";" in dirpaths is itself problematic. | |
19687 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
19688 | else | |
19689 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
19690 | fi | |
19691 | else | |
19692 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" | |
19693 | fi | |
19694 | need_lib_prefix=unknown | |
19695 | hardcode_into_libs=no | |
19696 | ||
19697 | # when you set need_version to no, make sure it does not cause -set_version | |
19698 | # flags to be left without arguments | |
19699 | need_version=unknown | |
19700 | ||
19701 | case $host_os in | |
19702 | aix3*) | |
19703 | version_type=linux | |
19704 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' | |
19705 | shlibpath_var=LIBPATH | |
19706 | ||
19707 | # AIX 3 has no versioning support, so we append a major version to the name. | |
19708 | soname_spec='${libname}${release}${shared_ext}$major' | |
19709 | ;; | |
19710 | ||
19711 | aix4* | aix5*) | |
19712 | version_type=linux | |
19713 | need_lib_prefix=no | |
19714 | need_version=no | |
19715 | hardcode_into_libs=yes | |
19716 | if test "$host_cpu" = ia64; then | |
19717 | # AIX 5 supports IA64 | |
19718 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' | |
19719 | shlibpath_var=LD_LIBRARY_PATH | |
19720 | else | |
19721 | # With GCC up to 2.95.x, collect2 would create an import file | |
19722 | # for dependence libraries. The import file would start with | |
19723 | # the line `#! .'. This would cause the generated library to | |
19724 | # depend on `.', always an invalid library. This was fixed in | |
19725 | # development snapshots of GCC prior to 3.0. | |
19726 | case $host_os in | |
19727 | aix4 | aix4.[01] | aix4.[01].*) | |
19728 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' | |
19729 | echo ' yes ' | |
19730 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then | |
19731 | : | |
19732 | else | |
19733 | can_build_shared=no | |
19734 | fi | |
19735 | ;; | |
19736 | esac | |
19737 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct | |
19738 | # soname into executable. Probably we can add versioning support to | |
19739 | # collect2, so additional links can be useful in future. | |
19740 | if test "$aix_use_runtimelinking" = yes; then | |
19741 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so | |
19742 | # instead of lib<name>.a to let people know that these are not | |
19743 | # typical AIX shared libraries. | |
19744 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19745 | else | |
19746 | # We preserve .a as extension for shared libraries through AIX4.2 | |
19747 | # and later when we are not doing run time linking. | |
19748 | library_names_spec='${libname}${release}.a $libname.a' | |
19749 | soname_spec='${libname}${release}${shared_ext}$major' | |
19750 | fi | |
19751 | shlibpath_var=LIBPATH | |
19752 | fi | |
19753 | ;; | |
19754 | ||
19755 | amigaos*) | |
19756 | library_names_spec='$libname.ixlibrary $libname.a' | |
19757 | # Create ${libname}_ixlibrary.a entries in /sys/libs. | |
19758 | 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' | |
19759 | ;; | |
19760 | ||
19761 | beos*) | |
19762 | library_names_spec='${libname}${shared_ext}' | |
19763 | dynamic_linker="$host_os ld.so" | |
19764 | shlibpath_var=LIBRARY_PATH | |
19765 | ;; | |
19766 | ||
19767 | bsdi[45]*) | |
19768 | version_type=linux | |
19769 | need_version=no | |
19770 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19771 | soname_spec='${libname}${release}${shared_ext}$major' | |
19772 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' | |
19773 | shlibpath_var=LD_LIBRARY_PATH | |
19774 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" | |
19775 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" | |
19776 | # the default ld.so.conf also contains /usr/contrib/lib and | |
19777 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow | |
19778 | # libtool to hard-code these into programs | |
19779 | ;; | |
19780 | ||
19781 | cygwin* | mingw* | pw32*) | |
19782 | version_type=windows | |
19783 | shrext_cmds=".dll" | |
19784 | need_version=no | |
19785 | need_lib_prefix=no | |
19786 | ||
19787 | case $GCC,$host_os in | |
19788 | yes,cygwin* | yes,mingw* | yes,pw32*) | |
19789 | library_names_spec='$libname.dll.a' | |
19790 | # DLL is installed to $(libdir)/../bin by postinstall_cmds | |
19791 | postinstall_cmds='base_file=`basename \${file}`~ | |
19792 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ | |
19793 | dldir=$destdir/`dirname \$dlpath`~ | |
19794 | test -d \$dldir || mkdir -p \$dldir~ | |
19795 | $install_prog $dir/$dlname \$dldir/$dlname~ | |
19796 | chmod a+x \$dldir/$dlname' | |
19797 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ | |
19798 | dlpath=$dir/\$dldll~ | |
19799 | $rm \$dlpath' | |
19800 | shlibpath_overrides_runpath=yes | |
19801 | ||
19802 | case $host_os in | |
19803 | cygwin*) | |
19804 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' | |
19805 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19806 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" | |
19807 | ;; | |
19808 | mingw*) | |
19809 | # MinGW DLLs use traditional 'lib' prefix | |
19810 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19811 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` | |
19812 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then | |
19813 | # It is most probably a Windows format PATH printed by | |
19814 | # mingw gcc, but we are running on Cygwin. Gcc prints its search | |
19815 | # path with ; separators, and with drive letters. We can handle the | |
19816 | # drive letters (cygwin fileutils understands them), so leave them, | |
19817 | # especially as we might pass files found there to a mingw objdump, | |
19818 | # which wouldn't understand a cygwinified path. Ahh. | |
19819 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` | |
19820 | else | |
19821 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` | |
19822 | fi | |
19823 | ;; | |
19824 | pw32*) | |
19825 | # pw32 DLLs use 'pw' prefix rather than 'lib' | |
19826 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' | |
19827 | ;; | |
19828 | esac | |
19829 | ;; | |
19830 | ||
19831 | *) | |
19832 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' | |
19833 | ;; | |
19834 | esac | |
19835 | dynamic_linker='Win32 ld.exe' | |
19836 | # FIXME: first we should search . and the directory the executable is in | |
19837 | shlibpath_var=PATH | |
19838 | ;; | |
19839 | ||
19840 | darwin* | rhapsody*) | |
19841 | dynamic_linker="$host_os dyld" | |
19842 | version_type=darwin | |
19843 | need_lib_prefix=no | |
19844 | need_version=no | |
19845 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' | |
19846 | soname_spec='${libname}${release}${major}$shared_ext' | |
19847 | shlibpath_overrides_runpath=yes | |
19848 | shlibpath_var=DYLD_LIBRARY_PATH | |
19849 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' | |
19850 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. | |
19851 | if test "$GCC" = yes; then | |
19852 | 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"` | |
19853 | else | |
19854 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' | |
19855 | fi | |
19856 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' | |
19857 | ;; | |
19858 | ||
19859 | dgux*) | |
19860 | version_type=linux | |
19861 | need_lib_prefix=no | |
19862 | need_version=no | |
19863 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' | |
19864 | soname_spec='${libname}${release}${shared_ext}$major' | |
19865 | shlibpath_var=LD_LIBRARY_PATH | |
19866 | ;; | |
19867 | ||
19868 | freebsd1*) | |
19869 | dynamic_linker=no | |
19870 | ;; | |
19871 | ||
19872 | kfreebsd*-gnu) | |
19873 | version_type=linux | |
19874 | need_lib_prefix=no | |
19875 | need_version=no | |
19876 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
19877 | soname_spec='${libname}${release}${shared_ext}$major' | |
19878 | shlibpath_var=LD_LIBRARY_PATH | |
19879 | shlibpath_overrides_runpath=no | |
19880 | hardcode_into_libs=yes | |
19881 | dynamic_linker='GNU ld.so' | |
19882 | ;; | |
19883 | ||
19884 | freebsd* | dragonfly*) | |
19885 | # DragonFly does not have aout. When/if they implement a new | |
19886 | # versioning mechanism, adjust this. | |
19887 | if test -x /usr/bin/objformat; then | |
19888 | objformat=`/usr/bin/objformat` | |
19889 | else | |
19890 | case $host_os in | |
19891 | freebsd[123]*) objformat=aout ;; | |
19892 | *) objformat=elf ;; | |
19893 | esac | |
19894 | fi | |
19895 | version_type=freebsd-$objformat | |
19896 | case $version_type in | |
19897 | freebsd-elf*) | |
19898 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
19899 | need_version=no | |
19900 | need_lib_prefix=no | |
19901 | ;; | |
19902 | freebsd-*) | |
19903 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' | |
19904 | need_version=yes | |
19905 | ;; | |
19906 | esac | |
19907 | shlibpath_var=LD_LIBRARY_PATH | |
19908 | case $host_os in | |
19909 | freebsd2*) | |
19910 | shlibpath_overrides_runpath=yes | |
19911 | ;; | |
19912 | freebsd3.[01]* | freebsdelf3.[01]*) | |
19913 | shlibpath_overrides_runpath=yes | |
19914 | hardcode_into_libs=yes | |
19915 | ;; | |
19916 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ | |
19917 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) | |
19918 | shlibpath_overrides_runpath=no | |
19919 | hardcode_into_libs=yes | |
19920 | ;; | |
19921 | freebsd*) # from 4.6 on | |
19922 | shlibpath_overrides_runpath=yes | |
19923 | hardcode_into_libs=yes | |
19924 | ;; | |
19925 | esac | |
19926 | ;; | |
19927 | ||
19928 | gnu*) | |
19929 | version_type=linux | |
19930 | need_lib_prefix=no | |
19931 | need_version=no | |
19932 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' | |
19933 | soname_spec='${libname}${release}${shared_ext}$major' | |
19934 | shlibpath_var=LD_LIBRARY_PATH | |
19935 | hardcode_into_libs=yes | |
19936 | ;; | |
19937 | ||
19938 | hpux9* | hpux10* | hpux11*) | |
19939 | # Give a soname corresponding to the major version so that dld.sl refuses to | |
19940 | # link against other versions. | |
19941 | version_type=sunos | |
19942 | need_lib_prefix=no | |
19943 | need_version=no | |
19944 | case $host_cpu in | |
19945 | ia64*) | |
19946 | shrext_cmds='.so' | |
19947 | hardcode_into_libs=yes | |
19948 | dynamic_linker="$host_os dld.so" | |
19949 | shlibpath_var=LD_LIBRARY_PATH | |
19950 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
19951 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19952 | soname_spec='${libname}${release}${shared_ext}$major' | |
19953 | if test "X$HPUX_IA64_MODE" = X32; then | |
19954 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" | |
19955 | else | |
19956 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" | |
19957 | fi | |
19958 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
19959 | ;; | |
19960 | hppa*64*) | |
19961 | shrext_cmds='.sl' | |
19962 | hardcode_into_libs=yes | |
19963 | dynamic_linker="$host_os dld.sl" | |
19964 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH | |
19965 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. | |
19966 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19967 | soname_spec='${libname}${release}${shared_ext}$major' | |
19968 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" | |
19969 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec | |
19970 | ;; | |
19971 | *) | |
19972 | shrext_cmds='.sl' | |
19973 | dynamic_linker="$host_os dld.sl" | |
19974 | shlibpath_var=SHLIB_PATH | |
19975 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH | |
19976 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
19977 | soname_spec='${libname}${release}${shared_ext}$major' | |
19978 | ;; | |
19979 | esac | |
19980 | # HP-UX runs *really* slowly unless shared libraries are mode 555. | |
19981 | postinstall_cmds='chmod 555 $lib' | |
19982 | ;; | |
19983 | ||
19984 | interix3*) | |
19985 | version_type=linux | |
19986 | need_lib_prefix=no | |
19987 | need_version=no | |
19988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
19989 | soname_spec='${libname}${release}${shared_ext}$major' | |
19990 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' | |
19991 | shlibpath_var=LD_LIBRARY_PATH | |
19992 | shlibpath_overrides_runpath=no | |
19993 | hardcode_into_libs=yes | |
19994 | ;; | |
19995 | ||
19996 | irix5* | irix6* | nonstopux*) | |
19997 | case $host_os in | |
19998 | nonstopux*) version_type=nonstopux ;; | |
19999 | *) | |
20000 | if test "$lt_cv_prog_gnu_ld" = yes; then | |
20001 | version_type=linux | |
20002 | else | |
20003 | version_type=irix | |
20004 | fi ;; | |
20005 | esac | |
20006 | need_lib_prefix=no | |
20007 | need_version=no | |
20008 | soname_spec='${libname}${release}${shared_ext}$major' | |
20009 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' | |
20010 | case $host_os in | |
20011 | irix5* | nonstopux*) | |
20012 | libsuff= shlibsuff= | |
20013 | ;; | |
20014 | *) | |
20015 | case $LD in # libtool.m4 will add one of these switches to LD | |
20016 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") | |
20017 | libsuff= shlibsuff= libmagic=32-bit;; | |
20018 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") | |
20019 | libsuff=32 shlibsuff=N32 libmagic=N32;; | |
20020 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") | |
20021 | libsuff=64 shlibsuff=64 libmagic=64-bit;; | |
20022 | *) libsuff= shlibsuff= libmagic=never-match;; | |
20023 | esac | |
20024 | ;; | |
20025 | esac | |
20026 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH | |
20027 | shlibpath_overrides_runpath=no | |
20028 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" | |
20029 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" | |
20030 | hardcode_into_libs=yes | |
20031 | ;; | |
20032 | ||
20033 | # No shared lib support for Linux oldld, aout, or coff. | |
20034 | linux*oldld* | linux*aout* | linux*coff*) | |
20035 | dynamic_linker=no | |
20036 | ;; | |
20037 | ||
20038 | # This must be Linux ELF. | |
20039 | linux*) | |
20040 | version_type=linux | |
20041 | need_lib_prefix=no | |
20042 | need_version=no | |
20043 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20044 | soname_spec='${libname}${release}${shared_ext}$major' | |
20045 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' | |
20046 | shlibpath_var=LD_LIBRARY_PATH | |
20047 | shlibpath_overrides_runpath=no | |
20048 | # This implies no fast_install, which is unacceptable. | |
20049 | # Some rework will be needed to allow for fast_install | |
20050 | # before this can be enabled. | |
20051 | hardcode_into_libs=yes | |
20052 | ||
20053 | # Append ld.so.conf contents to the search path | |
20054 | if test -f /etc/ld.so.conf; then | |
20055 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` | |
20056 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" | |
20057 | fi | |
20058 | ||
20059 | # We used to test for /lib/ld.so.1 and disable shared libraries on | |
20060 | # powerpc, because MkLinux only supported shared libraries with the | |
20061 | # GNU dynamic linker. Since this was broken with cross compilers, | |
20062 | # most powerpc-linux boxes support dynamic linking these days and | |
20063 | # people can always --disable-shared, the test was removed, and we | |
20064 | # assume the GNU/Linux dynamic linker is in use. | |
20065 | dynamic_linker='GNU/Linux ld.so' | |
20066 | ;; | |
20067 | ||
20068 | knetbsd*-gnu) | |
20069 | version_type=linux | |
20070 | need_lib_prefix=no | |
20071 | need_version=no | |
20072 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
20073 | soname_spec='${libname}${release}${shared_ext}$major' | |
20074 | shlibpath_var=LD_LIBRARY_PATH | |
20075 | shlibpath_overrides_runpath=no | |
20076 | hardcode_into_libs=yes | |
20077 | dynamic_linker='GNU ld.so' | |
20078 | ;; | |
20079 | ||
20080 | netbsd*) | |
20081 | version_type=sunos | |
20082 | need_lib_prefix=no | |
20083 | need_version=no | |
20084 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then | |
20085 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
20086 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
20087 | dynamic_linker='NetBSD (a.out) ld.so' | |
20088 | else | |
20089 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' | |
20090 | soname_spec='${libname}${release}${shared_ext}$major' | |
20091 | dynamic_linker='NetBSD ld.elf_so' | |
20092 | fi | |
20093 | shlibpath_var=LD_LIBRARY_PATH | |
20094 | shlibpath_overrides_runpath=yes | |
20095 | hardcode_into_libs=yes | |
20096 | ;; | |
20097 | ||
20098 | newsos6) | |
20099 | version_type=linux | |
20100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20101 | shlibpath_var=LD_LIBRARY_PATH | |
20102 | shlibpath_overrides_runpath=yes | |
20103 | ;; | |
20104 | ||
20105 | nto-qnx*) | |
20106 | version_type=linux | |
20107 | need_lib_prefix=no | |
20108 | need_version=no | |
20109 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20110 | soname_spec='${libname}${release}${shared_ext}$major' | |
20111 | shlibpath_var=LD_LIBRARY_PATH | |
20112 | shlibpath_overrides_runpath=yes | |
20113 | ;; | |
20114 | ||
20115 | openbsd*) | |
20116 | version_type=sunos | |
20117 | sys_lib_dlsearch_path_spec="/usr/lib" | |
20118 | need_lib_prefix=no | |
20119 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. | |
20120 | case $host_os in | |
20121 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; | |
20122 | *) need_version=no ;; | |
20123 | esac | |
20124 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
20125 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' | |
20126 | shlibpath_var=LD_LIBRARY_PATH | |
20127 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then | |
20128 | case $host_os in | |
20129 | openbsd2.[89] | openbsd2.[89].*) | |
20130 | shlibpath_overrides_runpath=no | |
20131 | ;; | |
20132 | *) | |
20133 | shlibpath_overrides_runpath=yes | |
20134 | ;; | |
20135 | esac | |
20136 | else | |
20137 | shlibpath_overrides_runpath=yes | |
20138 | fi | |
20139 | ;; | |
20140 | ||
20141 | os2*) | |
20142 | libname_spec='$name' | |
20143 | shrext_cmds=".dll" | |
20144 | need_lib_prefix=no | |
20145 | library_names_spec='$libname${shared_ext} $libname.a' | |
20146 | dynamic_linker='OS/2 ld.exe' | |
20147 | shlibpath_var=LIBPATH | |
20148 | ;; | |
20149 | ||
20150 | osf3* | osf4* | osf5*) | |
20151 | version_type=osf | |
20152 | need_lib_prefix=no | |
20153 | need_version=no | |
20154 | soname_spec='${libname}${release}${shared_ext}$major' | |
20155 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20156 | shlibpath_var=LD_LIBRARY_PATH | |
20157 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" | |
20158 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" | |
20159 | ;; | |
20160 | ||
20161 | solaris*) | |
20162 | version_type=linux | |
20163 | need_lib_prefix=no | |
20164 | need_version=no | |
20165 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20166 | soname_spec='${libname}${release}${shared_ext}$major' | |
20167 | shlibpath_var=LD_LIBRARY_PATH | |
20168 | shlibpath_overrides_runpath=yes | |
20169 | hardcode_into_libs=yes | |
20170 | # ldd complains unless libraries are executable | |
20171 | postinstall_cmds='chmod +x $lib' | |
20172 | ;; | |
20173 | ||
20174 | sunos4*) | |
20175 | version_type=sunos | |
20176 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' | |
20177 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' | |
20178 | shlibpath_var=LD_LIBRARY_PATH | |
20179 | shlibpath_overrides_runpath=yes | |
20180 | if test "$with_gnu_ld" = yes; then | |
20181 | need_lib_prefix=no | |
20182 | fi | |
20183 | need_version=yes | |
20184 | ;; | |
20185 | ||
20186 | sysv4 | sysv4.3*) | |
20187 | version_type=linux | |
20188 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20189 | soname_spec='${libname}${release}${shared_ext}$major' | |
20190 | shlibpath_var=LD_LIBRARY_PATH | |
20191 | case $host_vendor in | |
20192 | sni) | |
20193 | shlibpath_overrides_runpath=no | |
20194 | need_lib_prefix=no | |
20195 | export_dynamic_flag_spec='${wl}-Blargedynsym' | |
20196 | runpath_var=LD_RUN_PATH | |
20197 | ;; | |
20198 | siemens) | |
20199 | need_lib_prefix=no | |
20200 | ;; | |
20201 | motorola) | |
20202 | need_lib_prefix=no | |
20203 | need_version=no | |
20204 | shlibpath_overrides_runpath=no | |
20205 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' | |
20206 | ;; | |
20207 | esac | |
20208 | ;; | |
20209 | ||
20210 | sysv4*MP*) | |
20211 | if test -d /usr/nec ;then | |
20212 | version_type=linux | |
20213 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' | |
20214 | soname_spec='$libname${shared_ext}.$major' | |
20215 | shlibpath_var=LD_LIBRARY_PATH | |
20216 | fi | |
20217 | ;; | |
20218 | ||
20219 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) | |
20220 | version_type=freebsd-elf | |
20221 | need_lib_prefix=no | |
20222 | need_version=no | |
20223 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' | |
20224 | soname_spec='${libname}${release}${shared_ext}$major' | |
20225 | shlibpath_var=LD_LIBRARY_PATH | |
20226 | hardcode_into_libs=yes | |
20227 | if test "$with_gnu_ld" = yes; then | |
20228 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' | |
20229 | shlibpath_overrides_runpath=no | |
20230 | else | |
20231 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' | |
20232 | shlibpath_overrides_runpath=yes | |
20233 | case $host_os in | |
20234 | sco3.2v5*) | |
20235 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" | |
20236 | ;; | |
20237 | esac | |
20238 | fi | |
20239 | sys_lib_dlsearch_path_spec='/usr/lib' | |
20240 | ;; | |
20241 | ||
20242 | uts4*) | |
20243 | version_type=linux | |
20244 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' | |
20245 | soname_spec='${libname}${release}${shared_ext}$major' | |
20246 | shlibpath_var=LD_LIBRARY_PATH | |
20247 | ;; | |
20248 | ||
20249 | *) | |
20250 | dynamic_linker=no | |
20251 | ;; | |
20252 | esac | |
20253 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 | |
20254 | echo "${ECHO_T}$dynamic_linker" >&6; } | |
20255 | test "$dynamic_linker" = no && can_build_shared=no | |
20256 | ||
20257 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" | |
20258 | if test "$GCC" = yes; then | |
20259 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" | |
20260 | fi | |
20261 | ||
20262 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 | |
20263 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } | |
20264 | hardcode_action_GCJ= | |
20265 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ | |
20266 | test -n "$runpath_var_GCJ" || \ | |
20267 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then | |
20268 | ||
20269 | # We can hardcode non-existant directories. | |
20270 | if test "$hardcode_direct_GCJ" != no && | |
20271 | # If the only mechanism to avoid hardcoding is shlibpath_var, we | |
20272 | # have to relink, otherwise we might link with an installed library | |
20273 | # when we should be linking with a yet-to-be-installed one | |
20274 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && | |
20275 | test "$hardcode_minus_L_GCJ" != no; then | |
20276 | # Linking always hardcodes the temporary library directory. | |
20277 | hardcode_action_GCJ=relink | |
20278 | else | |
20279 | # We can link without hardcoding, and we can hardcode nonexisting dirs. | |
20280 | hardcode_action_GCJ=immediate | |
20281 | fi | |
20282 | else | |
20283 | # We cannot hardcode anything, or else we can only hardcode existing | |
20284 | # directories. | |
20285 | hardcode_action_GCJ=unsupported | |
20286 | fi | |
20287 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 | |
20288 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } | |
20289 | ||
20290 | if test "$hardcode_action_GCJ" = relink; then | |
20291 | # Fast installation is not supported | |
20292 | enable_fast_install=no | |
20293 | elif test "$shlibpath_overrides_runpath" = yes || | |
20294 | test "$enable_shared" = no; then | |
20295 | # Fast installation is not necessary | |
20296 | enable_fast_install=needless | |
20297 | fi | |
20298 | ||
20299 | ||
20300 | # The else clause should only fire when bootstrapping the | |
20301 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
20302 | # with your package, and you will get complaints that there are | |
20303 | # no rules to generate ltmain.sh. | |
20304 | if test -f "$ltmain"; then | |
20305 | # See if we are running on zsh, and set the options which allow our commands through | |
20306 | # without removal of \ escapes. | |
20307 | if test -n "${ZSH_VERSION+set}" ; then | |
20308 | setopt NO_GLOB_SUBST | |
20309 | fi | |
20310 | # Now quote all the things that may contain metacharacters while being | |
20311 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
20312 | # variables and quote the copies for generation of the libtool script. | |
20313 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
20314 | SED SHELL STRIP \ | |
20315 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
20316 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
20317 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
20318 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
20319 | lt_cv_sys_global_symbol_to_c_name_address \ | |
20320 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
20321 | old_postinstall_cmds old_postuninstall_cmds \ | |
20322 | compiler_GCJ \ | |
20323 | CC_GCJ \ | |
20324 | LD_GCJ \ | |
20325 | lt_prog_compiler_wl_GCJ \ | |
20326 | lt_prog_compiler_pic_GCJ \ | |
20327 | lt_prog_compiler_static_GCJ \ | |
20328 | lt_prog_compiler_no_builtin_flag_GCJ \ | |
20329 | export_dynamic_flag_spec_GCJ \ | |
20330 | thread_safe_flag_spec_GCJ \ | |
20331 | whole_archive_flag_spec_GCJ \ | |
20332 | enable_shared_with_static_runtimes_GCJ \ | |
20333 | old_archive_cmds_GCJ \ | |
20334 | old_archive_from_new_cmds_GCJ \ | |
20335 | predep_objects_GCJ \ | |
20336 | postdep_objects_GCJ \ | |
20337 | predeps_GCJ \ | |
20338 | postdeps_GCJ \ | |
20339 | compiler_lib_search_path_GCJ \ | |
20340 | archive_cmds_GCJ \ | |
20341 | archive_expsym_cmds_GCJ \ | |
20342 | postinstall_cmds_GCJ \ | |
20343 | postuninstall_cmds_GCJ \ | |
20344 | old_archive_from_expsyms_cmds_GCJ \ | |
20345 | allow_undefined_flag_GCJ \ | |
20346 | no_undefined_flag_GCJ \ | |
20347 | export_symbols_cmds_GCJ \ | |
20348 | hardcode_libdir_flag_spec_GCJ \ | |
20349 | hardcode_libdir_flag_spec_ld_GCJ \ | |
20350 | hardcode_libdir_separator_GCJ \ | |
20351 | hardcode_automatic_GCJ \ | |
20352 | module_cmds_GCJ \ | |
20353 | module_expsym_cmds_GCJ \ | |
20354 | lt_cv_prog_compiler_c_o_GCJ \ | |
20355 | exclude_expsyms_GCJ \ | |
20356 | include_expsyms_GCJ; do | |
20357 | ||
20358 | case $var in | |
20359 | old_archive_cmds_GCJ | \ | |
20360 | old_archive_from_new_cmds_GCJ | \ | |
20361 | archive_cmds_GCJ | \ | |
20362 | archive_expsym_cmds_GCJ | \ | |
20363 | module_cmds_GCJ | \ | |
20364 | module_expsym_cmds_GCJ | \ | |
20365 | old_archive_from_expsyms_cmds_GCJ | \ | |
20366 | export_symbols_cmds_GCJ | \ | |
20367 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
20368 | postinstall_cmds | postuninstall_cmds | \ | |
20369 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
20370 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
20371 | # Double-quote double-evaled strings. | |
20372 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
20373 | ;; | |
20374 | *) | |
20375 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
20376 | ;; | |
20377 | esac | |
20378 | done | |
20379 | ||
20380 | case $lt_echo in | |
20381 | *'\$0 --fallback-echo"') | |
20382 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
20383 | ;; | |
20384 | esac | |
20385 | ||
20386 | cfgfile="$ofile" | |
20387 | ||
20388 | cat <<__EOF__ >> "$cfgfile" | |
20389 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
20390 | ||
20391 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20392 | ||
20393 | # Shell to use when invoking shell scripts. | |
20394 | SHELL=$lt_SHELL | |
20395 | ||
20396 | # Whether or not to build shared libraries. | |
20397 | build_libtool_libs=$enable_shared | |
20398 | ||
20399 | # Whether or not to build static libraries. | |
20400 | build_old_libs=$enable_static | |
20401 | ||
20402 | # Whether or not to add -lc for building shared libraries. | |
20403 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ | |
20404 | ||
20405 | # Whether or not to disallow shared libs when runtime libs are static | |
20406 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ | |
20407 | ||
20408 | # Whether or not to optimize for fast installation. | |
20409 | fast_install=$enable_fast_install | |
20410 | ||
20411 | # The host system. | |
20412 | host_alias=$host_alias | |
20413 | host=$host | |
20414 | host_os=$host_os | |
20415 | ||
20416 | # The build system. | |
20417 | build_alias=$build_alias | |
20418 | build=$build | |
20419 | build_os=$build_os | |
20420 | ||
20421 | # An echo program that does not interpret backslashes. | |
20422 | echo=$lt_echo | |
20423 | ||
20424 | # The archiver. | |
20425 | AR=$lt_AR | |
20426 | AR_FLAGS=$lt_AR_FLAGS | |
20427 | ||
20428 | # A C compiler. | |
20429 | LTCC=$lt_LTCC | |
20430 | ||
20431 | # LTCC compiler flags. | |
20432 | LTCFLAGS=$lt_LTCFLAGS | |
20433 | ||
20434 | # A language-specific compiler. | |
20435 | CC=$lt_compiler_GCJ | |
20436 | ||
20437 | # Is the compiler the GNU C compiler? | |
20438 | with_gcc=$GCC_GCJ | |
20439 | ||
20440 | # An ERE matcher. | |
20441 | EGREP=$lt_EGREP | |
20442 | ||
20443 | # The linker used to build libraries. | |
20444 | LD=$lt_LD_GCJ | |
20445 | ||
20446 | # Whether we need hard or soft links. | |
20447 | LN_S=$lt_LN_S | |
20448 | ||
20449 | # A BSD-compatible nm program. | |
20450 | NM=$lt_NM | |
20451 | ||
20452 | # A symbol stripping program | |
20453 | STRIP=$lt_STRIP | |
20454 | ||
20455 | # Used to examine libraries when file_magic_cmd begins "file" | |
20456 | MAGIC_CMD=$MAGIC_CMD | |
20457 | ||
20458 | # Used on cygwin: DLL creation program. | |
20459 | DLLTOOL="$DLLTOOL" | |
20460 | ||
20461 | # Used on cygwin: object dumper. | |
20462 | OBJDUMP="$OBJDUMP" | |
20463 | ||
20464 | # Used on cygwin: assembler. | |
20465 | AS="$AS" | |
20466 | ||
20467 | # The name of the directory that contains temporary libtool files. | |
20468 | objdir=$objdir | |
20469 | ||
20470 | # How to create reloadable object files. | |
20471 | reload_flag=$lt_reload_flag | |
20472 | reload_cmds=$lt_reload_cmds | |
20473 | ||
20474 | # How to pass a linker flag through the compiler. | |
20475 | wl=$lt_lt_prog_compiler_wl_GCJ | |
20476 | ||
20477 | # Object file suffix (normally "o"). | |
20478 | objext="$ac_objext" | |
20479 | ||
20480 | # Old archive suffix (normally "a"). | |
20481 | libext="$libext" | |
20482 | ||
20483 | # Shared library suffix (normally ".so"). | |
20484 | shrext_cmds='$shrext_cmds' | |
20485 | ||
20486 | # Executable file suffix (normally ""). | |
20487 | exeext="$exeext" | |
20488 | ||
20489 | # Additional compiler flags for building library objects. | |
20490 | pic_flag=$lt_lt_prog_compiler_pic_GCJ | |
20491 | pic_mode=$pic_mode | |
20492 | ||
20493 | # What is the maximum length of a command? | |
20494 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
20495 | ||
20496 | # Does compiler simultaneously support -c and -o options? | |
20497 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ | |
20498 | ||
20499 | # Must we lock files when doing compilation? | |
20500 | need_locks=$lt_need_locks | |
20501 | ||
20502 | # Do we need the lib prefix for modules? | |
20503 | need_lib_prefix=$need_lib_prefix | |
20504 | ||
20505 | # Do we need a version for libraries? | |
20506 | need_version=$need_version | |
20507 | ||
20508 | # Whether dlopen is supported. | |
20509 | dlopen_support=$enable_dlopen | |
20510 | ||
20511 | # Whether dlopen of programs is supported. | |
20512 | dlopen_self=$enable_dlopen_self | |
20513 | ||
20514 | # Whether dlopen of statically linked programs is supported. | |
20515 | dlopen_self_static=$enable_dlopen_self_static | |
20516 | ||
20517 | # Compiler flag to prevent dynamic linking. | |
20518 | link_static_flag=$lt_lt_prog_compiler_static_GCJ | |
20519 | ||
20520 | # Compiler flag to turn off builtin functions. | |
20521 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ | |
20522 | ||
20523 | # Compiler flag to allow reflexive dlopens. | |
20524 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ | |
20525 | ||
20526 | # Compiler flag to generate shared objects directly from archives. | |
20527 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ | |
20528 | ||
20529 | # Compiler flag to generate thread-safe objects. | |
20530 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ | |
20531 | ||
20532 | # Library versioning type. | |
20533 | version_type=$version_type | |
20534 | ||
20535 | # Format of library name prefix. | |
20536 | libname_spec=$lt_libname_spec | |
20537 | ||
20538 | # List of archive names. First name is the real one, the rest are links. | |
20539 | # The last name is the one that the linker finds with -lNAME. | |
20540 | library_names_spec=$lt_library_names_spec | |
20541 | ||
20542 | # The coded name of the library, if different from the real name. | |
20543 | soname_spec=$lt_soname_spec | |
20544 | ||
20545 | # Commands used to build and install an old-style archive. | |
20546 | RANLIB=$lt_RANLIB | |
20547 | old_archive_cmds=$lt_old_archive_cmds_GCJ | |
20548 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
20549 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
20550 | ||
20551 | # Create an old-style archive from a shared archive. | |
20552 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ | |
20553 | ||
20554 | # Create a temporary old-style archive to link instead of a shared archive. | |
20555 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ | |
20556 | ||
20557 | # Commands used to build and install a shared archive. | |
20558 | archive_cmds=$lt_archive_cmds_GCJ | |
20559 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ | |
20560 | postinstall_cmds=$lt_postinstall_cmds | |
20561 | postuninstall_cmds=$lt_postuninstall_cmds | |
20562 | ||
20563 | # Commands used to build a loadable module (assumed same as above if empty) | |
20564 | module_cmds=$lt_module_cmds_GCJ | |
20565 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ | |
20566 | ||
20567 | # Commands to strip libraries. | |
20568 | old_striplib=$lt_old_striplib | |
20569 | striplib=$lt_striplib | |
20570 | ||
20571 | # Dependencies to place before the objects being linked to create a | |
20572 | # shared library. | |
20573 | predep_objects=$lt_predep_objects_GCJ | |
20574 | ||
20575 | # Dependencies to place after the objects being linked to create a | |
20576 | # shared library. | |
20577 | postdep_objects=$lt_postdep_objects_GCJ | |
20578 | ||
20579 | # Dependencies to place before the objects being linked to create a | |
20580 | # shared library. | |
20581 | predeps=$lt_predeps_GCJ | |
20582 | ||
20583 | # Dependencies to place after the objects being linked to create a | |
20584 | # shared library. | |
20585 | postdeps=$lt_postdeps_GCJ | |
20586 | ||
20587 | # The library search path used internally by the compiler when linking | |
20588 | # a shared library. | |
20589 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ | |
20590 | ||
20591 | # Method to check whether dependent libraries are shared objects. | |
20592 | deplibs_check_method=$lt_deplibs_check_method | |
20593 | ||
20594 | # Command to use when deplibs_check_method == file_magic. | |
20595 | file_magic_cmd=$lt_file_magic_cmd | |
20596 | ||
20597 | # Flag that allows shared libraries with undefined symbols to be built. | |
20598 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ | |
20599 | ||
20600 | # Flag that forces no undefined symbols. | |
20601 | no_undefined_flag=$lt_no_undefined_flag_GCJ | |
20602 | ||
20603 | # Commands used to finish a libtool library installation in a directory. | |
20604 | finish_cmds=$lt_finish_cmds | |
20605 | ||
20606 | # Same as above, but a single script fragment to be evaled but not shown. | |
20607 | finish_eval=$lt_finish_eval | |
20608 | ||
20609 | # Take the output of nm and produce a listing of raw symbols and C names. | |
20610 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
20611 | ||
20612 | # Transform the output of nm in a proper C declaration | |
20613 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
20614 | ||
20615 | # Transform the output of nm in a C name address pair | |
20616 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
20617 | ||
20618 | # This is the shared library runtime path variable. | |
20619 | runpath_var=$runpath_var | |
20620 | ||
20621 | # This is the shared library path variable. | |
20622 | shlibpath_var=$shlibpath_var | |
20623 | ||
20624 | # Is shlibpath searched before the hard-coded library search path? | |
20625 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
20626 | ||
20627 | # How to hardcode a shared library path into an executable. | |
20628 | hardcode_action=$hardcode_action_GCJ | |
20629 | ||
20630 | # Whether we should hardcode library paths into libraries. | |
20631 | hardcode_into_libs=$hardcode_into_libs | |
20632 | ||
20633 | # Flag to hardcode \$libdir into a binary during linking. | |
20634 | # This must work even if \$libdir does not exist. | |
20635 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ | |
20636 | ||
20637 | # If ld is used when linking, flag to hardcode \$libdir into | |
20638 | # a binary during linking. This must work even if \$libdir does | |
20639 | # not exist. | |
20640 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ | |
20641 | ||
20642 | # Whether we need a single -rpath flag with a separated argument. | |
20643 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ | |
20644 | ||
20645 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
20646 | # resulting binary. | |
20647 | hardcode_direct=$hardcode_direct_GCJ | |
20648 | ||
20649 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
20650 | # resulting binary. | |
20651 | hardcode_minus_L=$hardcode_minus_L_GCJ | |
20652 | ||
20653 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
20654 | # the resulting binary. | |
20655 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ | |
20656 | ||
20657 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
20658 | # and all subsequent libraries and executables linked against it. | |
20659 | hardcode_automatic=$hardcode_automatic_GCJ | |
20660 | ||
20661 | # Variables whose values should be saved in libtool wrapper scripts and | |
20662 | # restored at relink time. | |
20663 | variables_saved_for_relink="$variables_saved_for_relink" | |
20664 | ||
20665 | # Whether libtool must link a program against all its dependency libraries. | |
20666 | link_all_deplibs=$link_all_deplibs_GCJ | |
20667 | ||
20668 | # Compile-time system search path for libraries | |
20669 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
20670 | ||
20671 | # Run-time system search path for libraries | |
20672 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
20673 | ||
20674 | # Fix the shell variable \$srcfile for the compiler. | |
20675 | fix_srcfile_path="$fix_srcfile_path_GCJ" | |
20676 | ||
20677 | # Set to yes if exported symbols are required. | |
20678 | always_export_symbols=$always_export_symbols_GCJ | |
20679 | ||
20680 | # The commands to list exported symbols. | |
20681 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ | |
20682 | ||
20683 | # The commands to extract the exported symbol list from a shared archive. | |
20684 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
20685 | ||
20686 | # Symbols that should not be listed in the preloaded symbols. | |
20687 | exclude_expsyms=$lt_exclude_expsyms_GCJ | |
20688 | ||
20689 | # Symbols that must always be exported. | |
20690 | include_expsyms=$lt_include_expsyms_GCJ | |
20691 | ||
20692 | # ### END LIBTOOL TAG CONFIG: $tagname | |
20693 | ||
20694 | __EOF__ | |
20695 | ||
20696 | ||
20697 | else | |
20698 | # If there is no Makefile yet, we rely on a make rule to execute | |
20699 | # `config.status --recheck' to rerun these tests and create the | |
20700 | # libtool script then. | |
20701 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
20702 | if test -f "$ltmain_in"; then | |
20703 | test -f Makefile && make "$ltmain" | |
20704 | fi | |
20705 | fi | |
20706 | ||
20707 | ||
20708 | ac_ext=c | |
20709 | ac_cpp='$CPP $CPPFLAGS' | |
20710 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
20711 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
20712 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
20713 | ||
20714 | CC="$lt_save_CC" | |
20715 | ||
20716 | else | |
20717 | tagname="" | |
20718 | fi | |
20719 | ;; | |
20720 | ||
20721 | RC) | |
20722 | ||
20723 | ||
20724 | # Source file extension for RC test sources. | |
20725 | ac_ext=rc | |
20726 | ||
20727 | # Object file extension for compiled RC test sources. | |
20728 | objext=o | |
20729 | objext_RC=$objext | |
20730 | ||
20731 | # Code to be used in simple compile tests | |
20732 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' | |
20733 | ||
20734 | # Code to be used in simple link tests | |
20735 | lt_simple_link_test_code="$lt_simple_compile_test_code" | |
20736 | ||
20737 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. | |
20738 | ||
20739 | # If no C compiler was specified, use CC. | |
20740 | LTCC=${LTCC-"$CC"} | |
20741 | ||
20742 | # If no C compiler flags were specified, use CFLAGS. | |
20743 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} | |
20744 | ||
20745 | # Allow CC to be a program name with arguments. | |
20746 | compiler=$CC | |
20747 | ||
20748 | ||
20749 | # save warnings/boilerplate of simple test code | |
20750 | ac_outfile=conftest.$ac_objext | |
20751 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext | |
20752 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
20753 | _lt_compiler_boilerplate=`cat conftest.err` | |
20754 | $rm conftest* | |
20755 | ||
20756 | ac_outfile=conftest.$ac_objext | |
20757 | printf "$lt_simple_link_test_code" >conftest.$ac_ext | |
20758 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err | |
20759 | _lt_linker_boilerplate=`cat conftest.err` | |
20760 | $rm conftest* | |
20761 | ||
20762 | ||
20763 | # Allow CC to be a program name with arguments. | |
20764 | lt_save_CC="$CC" | |
20765 | CC=${RC-"windres"} | |
20766 | compiler=$CC | |
20767 | compiler_RC=$CC | |
20768 | for cc_temp in $compiler""; do | |
20769 | case $cc_temp in | |
20770 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; | |
20771 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; | |
20772 | \-*) ;; | |
20773 | *) break;; | |
20774 | esac | |
20775 | done | |
20776 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` | |
20777 | ||
20778 | lt_cv_prog_compiler_c_o_RC=yes | |
20779 | ||
20780 | # The else clause should only fire when bootstrapping the | |
20781 | # libtool distribution, otherwise you forgot to ship ltmain.sh | |
20782 | # with your package, and you will get complaints that there are | |
20783 | # no rules to generate ltmain.sh. | |
20784 | if test -f "$ltmain"; then | |
20785 | # See if we are running on zsh, and set the options which allow our commands through | |
20786 | # without removal of \ escapes. | |
20787 | if test -n "${ZSH_VERSION+set}" ; then | |
20788 | setopt NO_GLOB_SUBST | |
20789 | fi | |
20790 | # Now quote all the things that may contain metacharacters while being | |
20791 | # careful not to overquote the AC_SUBSTed values. We take copies of the | |
20792 | # variables and quote the copies for generation of the libtool script. | |
20793 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ | |
20794 | SED SHELL STRIP \ | |
20795 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ | |
20796 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ | |
20797 | deplibs_check_method reload_flag reload_cmds need_locks \ | |
20798 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ | |
20799 | lt_cv_sys_global_symbol_to_c_name_address \ | |
20800 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ | |
20801 | old_postinstall_cmds old_postuninstall_cmds \ | |
20802 | compiler_RC \ | |
20803 | CC_RC \ | |
20804 | LD_RC \ | |
20805 | lt_prog_compiler_wl_RC \ | |
20806 | lt_prog_compiler_pic_RC \ | |
20807 | lt_prog_compiler_static_RC \ | |
20808 | lt_prog_compiler_no_builtin_flag_RC \ | |
20809 | export_dynamic_flag_spec_RC \ | |
20810 | thread_safe_flag_spec_RC \ | |
20811 | whole_archive_flag_spec_RC \ | |
20812 | enable_shared_with_static_runtimes_RC \ | |
20813 | old_archive_cmds_RC \ | |
20814 | old_archive_from_new_cmds_RC \ | |
20815 | predep_objects_RC \ | |
20816 | postdep_objects_RC \ | |
20817 | predeps_RC \ | |
20818 | postdeps_RC \ | |
20819 | compiler_lib_search_path_RC \ | |
20820 | archive_cmds_RC \ | |
20821 | archive_expsym_cmds_RC \ | |
20822 | postinstall_cmds_RC \ | |
20823 | postuninstall_cmds_RC \ | |
20824 | old_archive_from_expsyms_cmds_RC \ | |
20825 | allow_undefined_flag_RC \ | |
20826 | no_undefined_flag_RC \ | |
20827 | export_symbols_cmds_RC \ | |
20828 | hardcode_libdir_flag_spec_RC \ | |
20829 | hardcode_libdir_flag_spec_ld_RC \ | |
20830 | hardcode_libdir_separator_RC \ | |
20831 | hardcode_automatic_RC \ | |
20832 | module_cmds_RC \ | |
20833 | module_expsym_cmds_RC \ | |
20834 | lt_cv_prog_compiler_c_o_RC \ | |
20835 | exclude_expsyms_RC \ | |
20836 | include_expsyms_RC; do | |
20837 | ||
20838 | case $var in | |
20839 | old_archive_cmds_RC | \ | |
20840 | old_archive_from_new_cmds_RC | \ | |
20841 | archive_cmds_RC | \ | |
20842 | archive_expsym_cmds_RC | \ | |
20843 | module_cmds_RC | \ | |
20844 | module_expsym_cmds_RC | \ | |
20845 | old_archive_from_expsyms_cmds_RC | \ | |
20846 | export_symbols_cmds_RC | \ | |
20847 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ | |
20848 | postinstall_cmds | postuninstall_cmds | \ | |
20849 | old_postinstall_cmds | old_postuninstall_cmds | \ | |
20850 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) | |
20851 | # Double-quote double-evaled strings. | |
20852 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" | |
20853 | ;; | |
20854 | *) | |
20855 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" | |
20856 | ;; | |
20857 | esac | |
20858 | done | |
20859 | ||
20860 | case $lt_echo in | |
20861 | *'\$0 --fallback-echo"') | |
20862 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` | |
20863 | ;; | |
20864 | esac | |
20865 | ||
20866 | cfgfile="$ofile" | |
20867 | ||
20868 | cat <<__EOF__ >> "$cfgfile" | |
20869 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname | |
20870 | ||
20871 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: | |
20872 | ||
20873 | # Shell to use when invoking shell scripts. | |
20874 | SHELL=$lt_SHELL | |
20875 | ||
20876 | # Whether or not to build shared libraries. | |
20877 | build_libtool_libs=$enable_shared | |
20878 | ||
20879 | # Whether or not to build static libraries. | |
20880 | build_old_libs=$enable_static | |
20881 | ||
20882 | # Whether or not to add -lc for building shared libraries. | |
20883 | build_libtool_need_lc=$archive_cmds_need_lc_RC | |
20884 | ||
20885 | # Whether or not to disallow shared libs when runtime libs are static | |
20886 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC | |
20887 | ||
20888 | # Whether or not to optimize for fast installation. | |
20889 | fast_install=$enable_fast_install | |
20890 | ||
20891 | # The host system. | |
20892 | host_alias=$host_alias | |
20893 | host=$host | |
20894 | host_os=$host_os | |
20895 | ||
20896 | # The build system. | |
20897 | build_alias=$build_alias | |
20898 | build=$build | |
20899 | build_os=$build_os | |
20900 | ||
20901 | # An echo program that does not interpret backslashes. | |
20902 | echo=$lt_echo | |
20903 | ||
20904 | # The archiver. | |
20905 | AR=$lt_AR | |
20906 | AR_FLAGS=$lt_AR_FLAGS | |
20907 | ||
20908 | # A C compiler. | |
20909 | LTCC=$lt_LTCC | |
20910 | ||
20911 | # LTCC compiler flags. | |
20912 | LTCFLAGS=$lt_LTCFLAGS | |
20913 | ||
20914 | # A language-specific compiler. | |
20915 | CC=$lt_compiler_RC | |
20916 | ||
20917 | # Is the compiler the GNU C compiler? | |
20918 | with_gcc=$GCC_RC | |
20919 | ||
20920 | # An ERE matcher. | |
20921 | EGREP=$lt_EGREP | |
20922 | ||
20923 | # The linker used to build libraries. | |
20924 | LD=$lt_LD_RC | |
20925 | ||
20926 | # Whether we need hard or soft links. | |
20927 | LN_S=$lt_LN_S | |
20928 | ||
20929 | # A BSD-compatible nm program. | |
20930 | NM=$lt_NM | |
20931 | ||
20932 | # A symbol stripping program | |
20933 | STRIP=$lt_STRIP | |
20934 | ||
20935 | # Used to examine libraries when file_magic_cmd begins "file" | |
20936 | MAGIC_CMD=$MAGIC_CMD | |
20937 | ||
20938 | # Used on cygwin: DLL creation program. | |
20939 | DLLTOOL="$DLLTOOL" | |
20940 | ||
20941 | # Used on cygwin: object dumper. | |
20942 | OBJDUMP="$OBJDUMP" | |
20943 | ||
20944 | # Used on cygwin: assembler. | |
20945 | AS="$AS" | |
20946 | ||
20947 | # The name of the directory that contains temporary libtool files. | |
20948 | objdir=$objdir | |
20949 | ||
20950 | # How to create reloadable object files. | |
20951 | reload_flag=$lt_reload_flag | |
20952 | reload_cmds=$lt_reload_cmds | |
20953 | ||
20954 | # How to pass a linker flag through the compiler. | |
20955 | wl=$lt_lt_prog_compiler_wl_RC | |
20956 | ||
20957 | # Object file suffix (normally "o"). | |
20958 | objext="$ac_objext" | |
20959 | ||
20960 | # Old archive suffix (normally "a"). | |
20961 | libext="$libext" | |
20962 | ||
20963 | # Shared library suffix (normally ".so"). | |
20964 | shrext_cmds='$shrext_cmds' | |
20965 | ||
20966 | # Executable file suffix (normally ""). | |
20967 | exeext="$exeext" | |
20968 | ||
20969 | # Additional compiler flags for building library objects. | |
20970 | pic_flag=$lt_lt_prog_compiler_pic_RC | |
20971 | pic_mode=$pic_mode | |
20972 | ||
20973 | # What is the maximum length of a command? | |
20974 | max_cmd_len=$lt_cv_sys_max_cmd_len | |
20975 | ||
20976 | # Does compiler simultaneously support -c and -o options? | |
20977 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC | |
20978 | ||
20979 | # Must we lock files when doing compilation? | |
20980 | need_locks=$lt_need_locks | |
20981 | ||
20982 | # Do we need the lib prefix for modules? | |
20983 | need_lib_prefix=$need_lib_prefix | |
20984 | ||
20985 | # Do we need a version for libraries? | |
20986 | need_version=$need_version | |
20987 | ||
20988 | # Whether dlopen is supported. | |
20989 | dlopen_support=$enable_dlopen | |
20990 | ||
20991 | # Whether dlopen of programs is supported. | |
20992 | dlopen_self=$enable_dlopen_self | |
20993 | ||
20994 | # Whether dlopen of statically linked programs is supported. | |
20995 | dlopen_self_static=$enable_dlopen_self_static | |
20996 | ||
20997 | # Compiler flag to prevent dynamic linking. | |
20998 | link_static_flag=$lt_lt_prog_compiler_static_RC | |
20999 | ||
21000 | # Compiler flag to turn off builtin functions. | |
21001 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC | |
21002 | ||
21003 | # Compiler flag to allow reflexive dlopens. | |
21004 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC | |
21005 | ||
21006 | # Compiler flag to generate shared objects directly from archives. | |
21007 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC | |
21008 | ||
21009 | # Compiler flag to generate thread-safe objects. | |
21010 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC | |
21011 | ||
21012 | # Library versioning type. | |
21013 | version_type=$version_type | |
21014 | ||
21015 | # Format of library name prefix. | |
21016 | libname_spec=$lt_libname_spec | |
21017 | ||
21018 | # List of archive names. First name is the real one, the rest are links. | |
21019 | # The last name is the one that the linker finds with -lNAME. | |
21020 | library_names_spec=$lt_library_names_spec | |
21021 | ||
21022 | # The coded name of the library, if different from the real name. | |
21023 | soname_spec=$lt_soname_spec | |
21024 | ||
21025 | # Commands used to build and install an old-style archive. | |
21026 | RANLIB=$lt_RANLIB | |
21027 | old_archive_cmds=$lt_old_archive_cmds_RC | |
21028 | old_postinstall_cmds=$lt_old_postinstall_cmds | |
21029 | old_postuninstall_cmds=$lt_old_postuninstall_cmds | |
21030 | ||
21031 | # Create an old-style archive from a shared archive. | |
21032 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC | |
21033 | ||
21034 | # Create a temporary old-style archive to link instead of a shared archive. | |
21035 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC | |
21036 | ||
21037 | # Commands used to build and install a shared archive. | |
21038 | archive_cmds=$lt_archive_cmds_RC | |
21039 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC | |
21040 | postinstall_cmds=$lt_postinstall_cmds | |
21041 | postuninstall_cmds=$lt_postuninstall_cmds | |
21042 | ||
21043 | # Commands used to build a loadable module (assumed same as above if empty) | |
21044 | module_cmds=$lt_module_cmds_RC | |
21045 | module_expsym_cmds=$lt_module_expsym_cmds_RC | |
21046 | ||
21047 | # Commands to strip libraries. | |
21048 | old_striplib=$lt_old_striplib | |
21049 | striplib=$lt_striplib | |
21050 | ||
21051 | # Dependencies to place before the objects being linked to create a | |
21052 | # shared library. | |
21053 | predep_objects=$lt_predep_objects_RC | |
21054 | ||
21055 | # Dependencies to place after the objects being linked to create a | |
21056 | # shared library. | |
21057 | postdep_objects=$lt_postdep_objects_RC | |
21058 | ||
21059 | # Dependencies to place before the objects being linked to create a | |
21060 | # shared library. | |
21061 | predeps=$lt_predeps_RC | |
21062 | ||
21063 | # Dependencies to place after the objects being linked to create a | |
21064 | # shared library. | |
21065 | postdeps=$lt_postdeps_RC | |
21066 | ||
21067 | # The library search path used internally by the compiler when linking | |
21068 | # a shared library. | |
21069 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC | |
21070 | ||
21071 | # Method to check whether dependent libraries are shared objects. | |
21072 | deplibs_check_method=$lt_deplibs_check_method | |
21073 | ||
21074 | # Command to use when deplibs_check_method == file_magic. | |
21075 | file_magic_cmd=$lt_file_magic_cmd | |
21076 | ||
21077 | # Flag that allows shared libraries with undefined symbols to be built. | |
21078 | allow_undefined_flag=$lt_allow_undefined_flag_RC | |
21079 | ||
21080 | # Flag that forces no undefined symbols. | |
21081 | no_undefined_flag=$lt_no_undefined_flag_RC | |
21082 | ||
21083 | # Commands used to finish a libtool library installation in a directory. | |
21084 | finish_cmds=$lt_finish_cmds | |
21085 | ||
21086 | # Same as above, but a single script fragment to be evaled but not shown. | |
21087 | finish_eval=$lt_finish_eval | |
21088 | ||
21089 | # Take the output of nm and produce a listing of raw symbols and C names. | |
21090 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe | |
21091 | ||
21092 | # Transform the output of nm in a proper C declaration | |
21093 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl | |
21094 | ||
21095 | # Transform the output of nm in a C name address pair | |
21096 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address | |
21097 | ||
21098 | # This is the shared library runtime path variable. | |
21099 | runpath_var=$runpath_var | |
21100 | ||
21101 | # This is the shared library path variable. | |
21102 | shlibpath_var=$shlibpath_var | |
21103 | ||
21104 | # Is shlibpath searched before the hard-coded library search path? | |
21105 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath | |
21106 | ||
21107 | # How to hardcode a shared library path into an executable. | |
21108 | hardcode_action=$hardcode_action_RC | |
21109 | ||
21110 | # Whether we should hardcode library paths into libraries. | |
21111 | hardcode_into_libs=$hardcode_into_libs | |
21112 | ||
21113 | # Flag to hardcode \$libdir into a binary during linking. | |
21114 | # This must work even if \$libdir does not exist. | |
21115 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC | |
21116 | ||
21117 | # If ld is used when linking, flag to hardcode \$libdir into | |
21118 | # a binary during linking. This must work even if \$libdir does | |
21119 | # not exist. | |
21120 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC | |
21121 | ||
21122 | # Whether we need a single -rpath flag with a separated argument. | |
21123 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC | |
21124 | ||
21125 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the | |
21126 | # resulting binary. | |
21127 | hardcode_direct=$hardcode_direct_RC | |
21128 | ||
21129 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the | |
21130 | # resulting binary. | |
21131 | hardcode_minus_L=$hardcode_minus_L_RC | |
21132 | ||
21133 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into | |
21134 | # the resulting binary. | |
21135 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC | |
21136 | ||
21137 | # Set to yes if building a shared library automatically hardcodes DIR into the library | |
21138 | # and all subsequent libraries and executables linked against it. | |
21139 | hardcode_automatic=$hardcode_automatic_RC | |
21140 | ||
21141 | # Variables whose values should be saved in libtool wrapper scripts and | |
21142 | # restored at relink time. | |
21143 | variables_saved_for_relink="$variables_saved_for_relink" | |
21144 | ||
21145 | # Whether libtool must link a program against all its dependency libraries. | |
21146 | link_all_deplibs=$link_all_deplibs_RC | |
21147 | ||
21148 | # Compile-time system search path for libraries | |
21149 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec | |
21150 | ||
21151 | # Run-time system search path for libraries | |
21152 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec | |
21153 | ||
21154 | # Fix the shell variable \$srcfile for the compiler. | |
21155 | fix_srcfile_path="$fix_srcfile_path_RC" | |
21156 | ||
21157 | # Set to yes if exported symbols are required. | |
21158 | always_export_symbols=$always_export_symbols_RC | |
21159 | ||
21160 | # The commands to list exported symbols. | |
21161 | export_symbols_cmds=$lt_export_symbols_cmds_RC | |
21162 | ||
21163 | # The commands to extract the exported symbol list from a shared archive. | |
21164 | extract_expsyms_cmds=$lt_extract_expsyms_cmds | |
21165 | ||
21166 | # Symbols that should not be listed in the preloaded symbols. | |
21167 | exclude_expsyms=$lt_exclude_expsyms_RC | |
21168 | ||
21169 | # Symbols that must always be exported. | |
21170 | include_expsyms=$lt_include_expsyms_RC | |
21171 | ||
21172 | # ### END LIBTOOL TAG CONFIG: $tagname | |
21173 | ||
21174 | __EOF__ | |
21175 | ||
21176 | ||
21177 | else | |
21178 | # If there is no Makefile yet, we rely on a make rule to execute | |
21179 | # `config.status --recheck' to rerun these tests and create the | |
21180 | # libtool script then. | |
21181 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` | |
21182 | if test -f "$ltmain_in"; then | |
21183 | test -f Makefile && make "$ltmain" | |
21184 | fi | |
21185 | fi | |
21186 | ||
21187 | ||
21188 | ac_ext=c | |
21189 | ac_cpp='$CPP $CPPFLAGS' | |
21190 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
21191 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
21192 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
21193 | ||
21194 | CC="$lt_save_CC" | |
21195 | ||
21196 | ;; | |
21197 | ||
21198 | *) | |
21199 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 | |
21200 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} | |
21201 | { (exit 1); exit 1; }; } | |
21202 | ;; | |
21203 | esac | |
21204 | ||
21205 | # Append the new tag name to the list of available tags. | |
21206 | if test -n "$tagname" ; then | |
21207 | available_tags="$available_tags $tagname" | |
21208 | fi | |
21209 | fi | |
21210 | done | |
21211 | IFS="$lt_save_ifs" | |
21212 | ||
21213 | # Now substitute the updated list of available tags. | |
21214 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then | |
21215 | mv "${ofile}T" "$ofile" | |
21216 | chmod +x "$ofile" | |
21217 | else | |
21218 | rm -f "${ofile}T" | |
21219 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 | |
21220 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} | |
21221 | { (exit 1); exit 1; }; } | |
21222 | fi | |
21223 | fi | |
21224 | ||
21225 | ||
21226 | ||
21227 | # This can be used to rebuild libtool when needed | |
21228 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" | |
21229 | ||
21230 | # Always use our own libtool. | |
21231 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' | |
21232 | ||
21233 | # Prevent multiple expansion | |
21234 | ||
21235 | ||
21236 | ||
21237 | ||
21238 | ||
21239 | ||
21240 | ||
21241 | ||
21242 | ||
21243 | ||
21244 | ||
21245 | ||
21246 | ||
21247 | ||
21248 | ||
21249 | ||
21250 | ||
21251 | ||
21252 | ||
21253 | ||
21254 | ||
21255 | # | |
21256 | # Check for AViiON Machines running DGUX | |
21257 | # | |
21258 | ac_is_dgux=no | |
21259 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
21260 | { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
21261 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; } | |
21262 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
21263 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21264 | fi | |
21265 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
21266 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; } | |
21267 | else | |
21268 | # Is the header compilable? | |
21269 | { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5 | |
21270 | echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; } | |
21271 | cat >conftest.$ac_ext <<_ACEOF | |
21272 | /* confdefs.h. */ | |
21273 | _ACEOF | |
21274 | cat confdefs.h >>conftest.$ac_ext | |
21275 | cat >>conftest.$ac_ext <<_ACEOF | |
21276 | /* end confdefs.h. */ | |
21277 | $ac_includes_default | |
21278 | #include <sys/dg_sys_info.h> | |
21279 | _ACEOF | |
21280 | rm -f conftest.$ac_objext | |
21281 | if { (ac_try="$ac_compile" | |
21282 | case "(($ac_try" in | |
21283 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21284 | *) ac_try_echo=$ac_try;; | |
21285 | esac | |
21286 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21287 | (eval "$ac_compile") 2>conftest.er1 | |
21288 | ac_status=$? | |
21289 | grep -v '^ *+' conftest.er1 >conftest.err | |
21290 | rm -f conftest.er1 | |
21291 | cat conftest.err >&5 | |
21292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21293 | (exit $ac_status); } && { | |
21294 | test -z "$ac_c_werror_flag" || | |
21295 | test ! -s conftest.err | |
21296 | } && test -s conftest.$ac_objext; then | |
21297 | ac_header_compiler=yes | |
21298 | else | |
21299 | echo "$as_me: failed program was:" >&5 | |
21300 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21301 | ||
21302 | ac_header_compiler=no | |
21303 | fi | |
21304 | ||
21305 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21306 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21307 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
21308 | ||
21309 | # Is the header present? | |
21310 | { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5 | |
21311 | echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; } | |
21312 | cat >conftest.$ac_ext <<_ACEOF | |
21313 | /* confdefs.h. */ | |
21314 | _ACEOF | |
21315 | cat confdefs.h >>conftest.$ac_ext | |
21316 | cat >>conftest.$ac_ext <<_ACEOF | |
21317 | /* end confdefs.h. */ | |
21318 | #include <sys/dg_sys_info.h> | |
21319 | _ACEOF | |
21320 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
21321 | case "(($ac_try" in | |
21322 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21323 | *) ac_try_echo=$ac_try;; | |
21324 | esac | |
21325 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21326 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
21327 | ac_status=$? | |
21328 | grep -v '^ *+' conftest.er1 >conftest.err | |
21329 | rm -f conftest.er1 | |
21330 | cat conftest.err >&5 | |
21331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21332 | (exit $ac_status); } >/dev/null && { | |
21333 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21334 | test ! -s conftest.err | |
21335 | }; then | |
21336 | ac_header_preproc=yes | |
21337 | else | |
21338 | echo "$as_me: failed program was:" >&5 | |
21339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21340 | ||
21341 | ac_header_preproc=no | |
21342 | fi | |
21343 | ||
21344 | rm -f conftest.err conftest.$ac_ext | |
21345 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21346 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
21347 | ||
21348 | # So? What about this header? | |
21349 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
21350 | yes:no: ) | |
21351 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
21352 | echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
21353 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5 | |
21354 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;} | |
21355 | ac_header_preproc=yes | |
21356 | ;; | |
21357 | no:yes:* ) | |
21358 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5 | |
21359 | echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;} | |
21360 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5 | |
21361 | echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;} | |
21362 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5 | |
21363 | echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;} | |
21364 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21365 | echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
21366 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5 | |
21367 | echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;} | |
21368 | { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5 | |
21369 | echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;} | |
21370 | ( cat <<\_ASBOX | |
21371 | ## -------------------------------- ## | |
21372 | ## Report this to Hans.Boehm@hp.com ## | |
21373 | ## -------------------------------- ## | |
21374 | _ASBOX | |
21375 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
21376 | ;; | |
21377 | esac | |
21378 | { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5 | |
21379 | echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; } | |
21380 | if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then | |
21381 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21382 | else | |
21383 | ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc | |
21384 | fi | |
21385 | { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5 | |
21386 | echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; } | |
21387 | ||
21388 | fi | |
21389 | if test $ac_cv_header_sys_dg_sys_info_h = yes; then | |
21390 | ac_is_dgux=yes; | |
21391 | fi | |
21392 | ||
21393 | ||
21394 | ||
21395 | ## :GOTCHA: we do not check anything but sys/dg_sys_info.h | |
21396 | if test $ac_is_dgux = yes; then | |
21397 | if test "$enable_full_debug" = "yes"; then | |
21398 | CFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2" | |
21399 | CXXFLAGS="-g -mstandard -DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2" | |
21400 | else | |
21401 | CFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2" | |
21402 | CXXFLAGS="-DDGUX -D_DGUX_SOURCE -Di386 -mno-legend -O2" | |
21403 | fi | |
21404 | ||
21405 | ||
21406 | fi | |
21407 | ||
21408 | ||
21409 | # Check whether --with-target-subdir was given. | |
21410 | if test "${with_target_subdir+set}" = set; then | |
21411 | withval=$with_target_subdir; | |
21412 | fi | |
21413 | ||
21414 | ||
21415 | # Check whether --with-cross-host was given. | |
21416 | if test "${with_cross_host+set}" = set; then | |
21417 | withval=$with_cross_host; | |
21418 | fi | |
21419 | ||
21420 | ||
21421 | # automake wants to see AC_EXEEXT. But we don't need it. And having | |
21422 | # it is actually a problem, because the compiler we're passed can't | |
21423 | # necessarily do a full link. So we fool automake here. | |
21424 | if false; then | |
21425 | # autoconf 2.50 runs AC_EXEEXT by default, and the macro expands | |
21426 | # to nothing, so nothing would remain between `then' and `fi' if it | |
21427 | # were not for the `:' below. | |
21428 | : | |
21429 | ||
21430 | fi | |
21431 | ||
21432 | { echo "$as_me:$LINENO: checking whether Solaris gcc optimization fix is necessary" >&5 | |
21433 | echo $ECHO_N "checking whether Solaris gcc optimization fix is necessary... $ECHO_C" >&6; } | |
21434 | case "$host" in | |
21435 | *aix*) | |
21436 | if test "$GCC" = yes; then | |
21437 | { echo "$as_me:$LINENO: result: yes" >&5 | |
21438 | echo "${ECHO_T}yes" >&6; } | |
21439 | new_CFLAGS= | |
21440 | for i in $CFLAGS; do | |
21441 | case "$i" in | |
21442 | -O*) | |
21443 | ;; | |
21444 | *) | |
21445 | new_CFLAGS="$new_CFLAGS $i" | |
21446 | ;; | |
21447 | esac | |
21448 | done | |
21449 | CFLAGS="$new_CFLAGS" | |
21450 | else | |
21451 | { echo "$as_me:$LINENO: result: no" >&5 | |
21452 | echo "${ECHO_T}no" >&6; } | |
21453 | fi | |
21454 | ;; | |
21455 | *) { echo "$as_me:$LINENO: result: no" >&5 | |
21456 | echo "${ECHO_T}no" >&6; } ;; | |
21457 | esac | |
21458 | ||
21459 | cat >>confdefs.h <<\_ACEOF | |
21460 | #define NO_EXECUTE_PERMISSION 1 | |
21461 | _ACEOF | |
21462 | ||
21463 | cat >>confdefs.h <<\_ACEOF | |
21464 | #define ALL_INTERIOR_POINTERS 1 | |
21465 | _ACEOF | |
21466 | ||
21467 | ||
21468 | ||
21469 | # Check whether --enable-gcj-support was given. | |
21470 | if test "${enable_gcj_support+set}" = set; then | |
21471 | enableval=$enable_gcj_support; | |
21472 | fi | |
21473 | ||
21474 | ||
21475 | ||
21476 | if test x"$enable_gcj_support" != xno; then | |
21477 | ENABLE_GCJ_SUPPORT_TRUE= | |
21478 | ENABLE_GCJ_SUPPORT_FALSE='#' | |
21479 | else | |
21480 | ENABLE_GCJ_SUPPORT_TRUE='#' | |
21481 | ENABLE_GCJ_SUPPORT_FALSE= | |
21482 | fi | |
21483 | ||
21484 | if test x"$enable_gcj_support" != xno; then | |
21485 | ||
21486 | cat >>confdefs.h <<\_ACEOF | |
21487 | #define GC_GCJ_SUPPORT 1 | |
21488 | _ACEOF | |
21489 | ||
21490 | fi | |
21491 | ||
21492 | # Check whether --enable-java-finalization was given. | |
21493 | if test "${enable_java_finalization+set}" = set; then | |
21494 | enableval=$enable_java_finalization; | |
21495 | fi | |
21496 | ||
21497 | if test x"$enable_java_finalization" != xno; then | |
21498 | cat >>confdefs.h <<\_ACEOF | |
21499 | #define JAVA_FINALIZATION 1 | |
21500 | _ACEOF | |
21501 | ||
21502 | fi | |
21503 | ||
21504 | # Check whether --enable-atomic-uncollectable was given. | |
21505 | if test "${enable_atomic_uncollectable+set}" = set; then | |
21506 | enableval=$enable_atomic_uncollectable; | |
21507 | fi | |
21508 | ||
21509 | if test x"$enable_atomic_uncollectible" != x"no"; then | |
21510 | ||
21511 | cat >>confdefs.h <<\_ACEOF | |
21512 | #define ATOMIC_UNCOLLECTABLE 1 | |
21513 | _ACEOF | |
21514 | ||
21515 | fi | |
21516 | ||
21517 | # Check whether --enable-redirect-malloc was given. | |
21518 | if test "${enable_redirect_malloc+set}" = set; then | |
21519 | enableval=$enable_redirect_malloc; | |
21520 | fi | |
21521 | ||
21522 | ||
21523 | if test "${enable_redirect_malloc}" = yes; then | |
21524 | if test "${enable_full_debug}" = yes; then | |
21525 | cat >>confdefs.h <<\_ACEOF | |
21526 | #define REDIRECT_MALLOC GC_debug_malloc_replacement | |
21527 | _ACEOF | |
21528 | ||
21529 | cat >>confdefs.h <<\_ACEOF | |
21530 | #define REDIRECT_REALLOC GC_debug_realloc_replacement | |
21531 | _ACEOF | |
21532 | ||
21533 | cat >>confdefs.h <<\_ACEOF | |
21534 | #define REDIRECT_FREE GC_debug_free | |
21535 | _ACEOF | |
21536 | ||
21537 | else | |
21538 | cat >>confdefs.h <<\_ACEOF | |
21539 | #define REDIRECT_MALLOC GC_malloc | |
21540 | _ACEOF | |
21541 | ||
21542 | fi | |
21543 | fi | |
21544 | ||
21545 | # Check whether --enable-large-config was given. | |
21546 | if test "${enable_large_config+set}" = set; then | |
21547 | enableval=$enable_large_config; | |
21548 | fi | |
21549 | ||
21550 | ||
21551 | if test "${enable_large_config}" = yes; then | |
21552 | ||
21553 | cat >>confdefs.h <<\_ACEOF | |
21554 | #define LARGE_CONFIG 1 | |
21555 | _ACEOF | |
21556 | ||
21557 | fi | |
21558 | ||
21559 | if test -n "${with_cross_host}"; then | |
21560 | cat >>confdefs.h <<\_ACEOF | |
21561 | #define NO_CLOCK 1 | |
21562 | _ACEOF | |
21563 | ||
21564 | cat >>confdefs.h <<\_ACEOF | |
21565 | #define SMALL_CONFIG 1 | |
21566 | _ACEOF | |
21567 | ||
21568 | cat >>confdefs.h <<\_ACEOF | |
21569 | #define NO_DEBUGGING 1 | |
21570 | _ACEOF | |
21571 | ||
21572 | fi | |
21573 | ||
21574 | ||
21575 | ||
21576 | UNWINDLIBS= | |
21577 | # Check whether --enable-gc-debug was given. | |
21578 | if test "${enable_gc_debug+set}" = set; then | |
21579 | enableval=$enable_gc_debug; if test "$enable_gc_debug" = "yes"; then | |
21580 | { echo "$as_me:$LINENO: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&5 | |
21581 | echo "$as_me: WARNING: \"Should define GC_DEBUG and use debug alloc. in clients.\"" >&2;} | |
21582 | cat >>confdefs.h <<\_ACEOF | |
21583 | #define KEEP_BACK_PTRS 1 | |
21584 | _ACEOF | |
21585 | ||
21586 | cat >>confdefs.h <<\_ACEOF | |
21587 | #define DBG_HDRS_ALL 1 | |
21588 | _ACEOF | |
21589 | ||
21590 | case $host in | |
21591 | ia64-*-linux* ) | |
21592 | cat >>confdefs.h <<\_ACEOF | |
21593 | #define MAKE_BACK_GRAPH 1 | |
21594 | _ACEOF | |
21595 | ||
21596 | cat >>confdefs.h <<\_ACEOF | |
21597 | #define SAVE_CALL_COUNT 8 | |
21598 | _ACEOF | |
21599 | ||
21600 | { echo "$as_me:$LINENO: checking for backtrace in -lunwind" >&5 | |
21601 | echo $ECHO_N "checking for backtrace in -lunwind... $ECHO_C" >&6; } | |
21602 | if test "${ac_cv_lib_unwind_backtrace+set}" = set; then | |
21603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21604 | else | |
21605 | ac_check_lib_save_LIBS=$LIBS | |
21606 | LIBS="-lunwind $LIBS" | |
21607 | cat >conftest.$ac_ext <<_ACEOF | |
21608 | /* confdefs.h. */ | |
21609 | _ACEOF | |
21610 | cat confdefs.h >>conftest.$ac_ext | |
21611 | cat >>conftest.$ac_ext <<_ACEOF | |
21612 | /* end confdefs.h. */ | |
21613 | ||
21614 | /* Override any GCC internal prototype to avoid an error. | |
21615 | Use char because int might match the return type of a GCC | |
21616 | builtin and then its argument prototype would still apply. */ | |
21617 | #ifdef __cplusplus | |
21618 | extern "C" | |
21619 | #endif | |
21620 | char backtrace (); | |
21621 | int | |
21622 | main () | |
21623 | { | |
21624 | return backtrace (); | |
21625 | ; | |
21626 | return 0; | |
21627 | } | |
21628 | _ACEOF | |
21629 | rm -f conftest.$ac_objext conftest$ac_exeext | |
21630 | if { (ac_try="$ac_link" | |
21631 | case "(($ac_try" in | |
21632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21633 | *) ac_try_echo=$ac_try;; | |
21634 | esac | |
21635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21636 | (eval "$ac_link") 2>conftest.er1 | |
21637 | ac_status=$? | |
21638 | grep -v '^ *+' conftest.er1 >conftest.err | |
21639 | rm -f conftest.er1 | |
21640 | cat conftest.err >&5 | |
21641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21642 | (exit $ac_status); } && { | |
21643 | test -z "$ac_c_werror_flag" || | |
21644 | test ! -s conftest.err | |
21645 | } && test -s conftest$ac_exeext && | |
21646 | $as_test_x conftest$ac_exeext; then | |
21647 | ac_cv_lib_unwind_backtrace=yes | |
21648 | else | |
21649 | echo "$as_me: failed program was:" >&5 | |
21650 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21651 | ||
21652 | ac_cv_lib_unwind_backtrace=no | |
21653 | fi | |
21654 | ||
21655 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ | |
21656 | conftest$ac_exeext conftest.$ac_ext | |
21657 | LIBS=$ac_check_lib_save_LIBS | |
21658 | fi | |
21659 | { echo "$as_me:$LINENO: result: $ac_cv_lib_unwind_backtrace" >&5 | |
21660 | echo "${ECHO_T}$ac_cv_lib_unwind_backtrace" >&6; } | |
21661 | if test $ac_cv_lib_unwind_backtrace = yes; then | |
21662 | ||
21663 | cat >>confdefs.h <<\_ACEOF | |
21664 | #define GC_HAVE_BUILTIN_BACKTRACE 1 | |
21665 | _ACEOF | |
21666 | ||
21667 | UNWINDLIBS=-lunwind | |
21668 | { echo "$as_me:$LINENO: WARNING: \"Client code may need to link against libunwind.\"" >&5 | |
21669 | echo "$as_me: WARNING: \"Client code may need to link against libunwind.\"" >&2;} | |
21670 | ||
21671 | fi | |
21672 | ||
21673 | ;; | |
21674 | x86-*-linux* | i586-*-linux* | i686-*-linux* | x86_64-*-linux* ) | |
21675 | cat >>confdefs.h <<\_ACEOF | |
21676 | #define MAKE_BACK_GRAPH 1 | |
21677 | _ACEOF | |
21678 | ||
21679 | { echo "$as_me:$LINENO: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&5 | |
21680 | echo "$as_me: WARNING: \"Client must not use -fomit-frame-pointer.\"" >&2;} | |
21681 | cat >>confdefs.h <<\_ACEOF | |
21682 | #define SAVE_CALL_COUNT 8 | |
21683 | _ACEOF | |
21684 | ||
21685 | ;; | |
21686 | i345686-*-dgux*) | |
21687 | cat >>confdefs.h <<\_ACEOF | |
21688 | #define MAKE_BACK_GRAPH 1 | |
21689 | _ACEOF | |
21690 | ||
21691 | ;; | |
21692 | esac | |
21693 | fi | |
21694 | fi | |
21695 | ||
21696 | ||
21697 | ||
21698 | ||
21699 | # Check whether --enable-gc-assertions was given. | |
21700 | if test "${enable_gc_assertions+set}" = set; then | |
21701 | enableval=$enable_gc_assertions; | |
21702 | fi | |
21703 | ||
21704 | if test "${enable_gc_assertions}" = yes; then | |
21705 | cat >>confdefs.h <<\_ACEOF | |
21706 | #define GC_ASSERTIONS 1 | |
21707 | _ACEOF | |
21708 | ||
21709 | fi | |
21710 | ||
21711 | ||
21712 | ||
21713 | if test -z "$with_cross_host"; then | |
21714 | USE_LIBDIR_TRUE= | |
21715 | USE_LIBDIR_FALSE='#' | |
21716 | else | |
21717 | USE_LIBDIR_TRUE='#' | |
21718 | USE_LIBDIR_FALSE= | |
21719 | fi | |
21720 | ||
21721 | ||
21722 | ||
21723 | ||
21724 | atomic_ops_libs=-latomic_ops | |
21725 | if test "${ac_cv_header_atomic_ops_h+set}" = set; then | |
21726 | { echo "$as_me:$LINENO: checking for atomic_ops.h" >&5 | |
21727 | echo $ECHO_N "checking for atomic_ops.h... $ECHO_C" >&6; } | |
21728 | if test "${ac_cv_header_atomic_ops_h+set}" = set; then | |
21729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21730 | fi | |
21731 | { echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5 | |
21732 | echo "${ECHO_T}$ac_cv_header_atomic_ops_h" >&6; } | |
21733 | else | |
21734 | # Is the header compilable? | |
21735 | { echo "$as_me:$LINENO: checking atomic_ops.h usability" >&5 | |
21736 | echo $ECHO_N "checking atomic_ops.h usability... $ECHO_C" >&6; } | |
21737 | cat >conftest.$ac_ext <<_ACEOF | |
21738 | /* confdefs.h. */ | |
21739 | _ACEOF | |
21740 | cat confdefs.h >>conftest.$ac_ext | |
21741 | cat >>conftest.$ac_ext <<_ACEOF | |
21742 | /* end confdefs.h. */ | |
21743 | $ac_includes_default | |
21744 | #include <atomic_ops.h> | |
21745 | _ACEOF | |
21746 | rm -f conftest.$ac_objext | |
21747 | if { (ac_try="$ac_compile" | |
21748 | case "(($ac_try" in | |
21749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21750 | *) ac_try_echo=$ac_try;; | |
21751 | esac | |
21752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21753 | (eval "$ac_compile") 2>conftest.er1 | |
21754 | ac_status=$? | |
21755 | grep -v '^ *+' conftest.er1 >conftest.err | |
21756 | rm -f conftest.er1 | |
21757 | cat conftest.err >&5 | |
21758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21759 | (exit $ac_status); } && { | |
21760 | test -z "$ac_c_werror_flag" || | |
21761 | test ! -s conftest.err | |
21762 | } && test -s conftest.$ac_objext; then | |
21763 | ac_header_compiler=yes | |
21764 | else | |
21765 | echo "$as_me: failed program was:" >&5 | |
21766 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21767 | ||
21768 | ac_header_compiler=no | |
21769 | fi | |
21770 | ||
21771 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
21772 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
21773 | echo "${ECHO_T}$ac_header_compiler" >&6; } | |
21774 | ||
21775 | # Is the header present? | |
21776 | { echo "$as_me:$LINENO: checking atomic_ops.h presence" >&5 | |
21777 | echo $ECHO_N "checking atomic_ops.h presence... $ECHO_C" >&6; } | |
21778 | cat >conftest.$ac_ext <<_ACEOF | |
21779 | /* confdefs.h. */ | |
21780 | _ACEOF | |
21781 | cat confdefs.h >>conftest.$ac_ext | |
21782 | cat >>conftest.$ac_ext <<_ACEOF | |
21783 | /* end confdefs.h. */ | |
21784 | #include <atomic_ops.h> | |
21785 | _ACEOF | |
21786 | if { (ac_try="$ac_cpp conftest.$ac_ext" | |
21787 | case "(($ac_try" in | |
21788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
21789 | *) ac_try_echo=$ac_try;; | |
21790 | esac | |
21791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 | |
21792 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 | |
21793 | ac_status=$? | |
21794 | grep -v '^ *+' conftest.er1 >conftest.err | |
21795 | rm -f conftest.er1 | |
21796 | cat conftest.err >&5 | |
21797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
21798 | (exit $ac_status); } >/dev/null && { | |
21799 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || | |
21800 | test ! -s conftest.err | |
21801 | }; then | |
21802 | ac_header_preproc=yes | |
21803 | else | |
21804 | echo "$as_me: failed program was:" >&5 | |
21805 | sed 's/^/| /' conftest.$ac_ext >&5 | |
21806 | ||
21807 | ac_header_preproc=no | |
21808 | fi | |
21809 | ||
21810 | rm -f conftest.err conftest.$ac_ext | |
21811 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
21812 | echo "${ECHO_T}$ac_header_preproc" >&6; } | |
21813 | ||
21814 | # So? What about this header? | |
21815 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
21816 | yes:no: ) | |
21817 | { echo "$as_me:$LINENO: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
21818 | echo "$as_me: WARNING: atomic_ops.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
21819 | { echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the compiler's result" >&5 | |
21820 | echo "$as_me: WARNING: atomic_ops.h: proceeding with the compiler's result" >&2;} | |
21821 | ac_header_preproc=yes | |
21822 | ;; | |
21823 | no:yes:* ) | |
21824 | { echo "$as_me:$LINENO: WARNING: atomic_ops.h: present but cannot be compiled" >&5 | |
21825 | echo "$as_me: WARNING: atomic_ops.h: present but cannot be compiled" >&2;} | |
21826 | { echo "$as_me:$LINENO: WARNING: atomic_ops.h: check for missing prerequisite headers?" >&5 | |
21827 | echo "$as_me: WARNING: atomic_ops.h: check for missing prerequisite headers?" >&2;} | |
21828 | { echo "$as_me:$LINENO: WARNING: atomic_ops.h: see the Autoconf documentation" >&5 | |
21829 | echo "$as_me: WARNING: atomic_ops.h: see the Autoconf documentation" >&2;} | |
21830 | { echo "$as_me:$LINENO: WARNING: atomic_ops.h: section \"Present But Cannot Be Compiled\"" >&5 | |
21831 | echo "$as_me: WARNING: atomic_ops.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
21832 | { echo "$as_me:$LINENO: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&5 | |
21833 | echo "$as_me: WARNING: atomic_ops.h: proceeding with the preprocessor's result" >&2;} | |
21834 | { echo "$as_me:$LINENO: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&5 | |
21835 | echo "$as_me: WARNING: atomic_ops.h: in the future, the compiler will take precedence" >&2;} | |
21836 | ( cat <<\_ASBOX | |
21837 | ## -------------------------------- ## | |
21838 | ## Report this to Hans.Boehm@hp.com ## | |
21839 | ## -------------------------------- ## | |
21840 | _ASBOX | |
21841 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
21842 | ;; | |
21843 | esac | |
21844 | { echo "$as_me:$LINENO: checking for atomic_ops.h" >&5 | |
21845 | echo $ECHO_N "checking for atomic_ops.h... $ECHO_C" >&6; } | |
21846 | if test "${ac_cv_header_atomic_ops_h+set}" = set; then | |
21847 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
21848 | else | |
21849 | ac_cv_header_atomic_ops_h=$ac_header_preproc | |
21850 | fi | |
21851 | { echo "$as_me:$LINENO: result: $ac_cv_header_atomic_ops_h" >&5 | |
21852 | echo "${ECHO_T}$ac_cv_header_atomic_ops_h" >&6; } | |
21853 | ||
21854 | fi | |
21855 | if test $ac_cv_header_atomic_ops_h = yes; then | |
21856 | { echo "$as_me:$LINENO: Using pre-installed libatomic_ops" >&5 | |
21857 | echo "$as_me: Using pre-installed libatomic_ops" >&6;} | |
21858 | else | |
21859 | ao_dir= | |
21860 | for candidate in ${srcdir}/libatomic_ops*; do | |
21861 | case $candidate in | |
21862 | *.tar.gz) | |
21863 | ;; | |
21864 | *install) | |
21865 | ;; | |
21866 | *) | |
21867 | if test -e "$candidate"; then | |
21868 | ao_dir="$candidate" | |
21869 | fi | |
21870 | ;; | |
21871 | esac | |
21872 | done | |
21873 | if test -z "$ao_dir"; then | |
21874 | { { echo "$as_me:$LINENO: error: Missig libatomic_ops." >&5 | |
21875 | echo "$as_me: error: Missig libatomic_ops." >&2;} | |
21876 | { (exit 1); exit 1; }; } | |
21877 | fi | |
21878 | ao_version="${ao_dir#*libatomic_ops-}" | |
21879 | { echo "$as_me:$LINENO: Using internal version of libatomic_ops" >&5 | |
21880 | echo "$as_me: Using internal version of libatomic_ops" >&6;} | |
21881 | ||
21882 | test -e ${srcdir}/libatomic_ops \ | |
21883 | || ln -s ${ao_dir} ${srcdir}/libatomic_ops | |
21884 | subdirs="$subdirs libatomic_ops" | |
21885 | ||
21886 | ||
21887 | test -e ${srcdir}/atomic_ops.c \ | |
21888 | || ln -s ${srcdir}/libatomic_ops/src/atomic_ops.c \ | |
21889 | ${srcdir}/atomic_ops.c | |
21890 | ||
21891 | test -e ${srcdir}/atomic_ops_sysdeps.S \ | |
21892 | || ln -s ${srcdir}/libatomic_ops/src/atomic_ops_sysdeps.S \ | |
21893 | ${srcdir}/atomic_ops_sysdeps.S | |
21894 | ||
21895 | GC_CFLAGS="${GC_CFLAGS} -I \$(top_srcdir)/libatomic_ops/src" | |
21896 | maybe_libatomic_ops="libatomic_ops" | |
21897 | ||
21898 | fi | |
21899 | ||
21900 | ||
21901 | ||
21902 | ||
21903 | ||
21904 | if test -n "$maybe_libatomic_ops" -a "$THREADS" != "none"; then | |
21905 | USE_INTERNAL_LIBATOMIC_OPS_TRUE= | |
21906 | USE_INTERNAL_LIBATOMIC_OPS_FALSE='#' | |
21907 | else | |
21908 | USE_INTERNAL_LIBATOMIC_OPS_TRUE='#' | |
21909 | USE_INTERNAL_LIBATOMIC_OPS_FALSE= | |
21910 | fi | |
21911 | ||
21912 | ||
21913 | ||
21914 | if test -n "$maybe_libatomic_ops" -a x$need_atomic_ops_asm = xtrue; then | |
21915 | NEED_ATOMIC_OPS_ASM_TRUE= | |
21916 | NEED_ATOMIC_OPS_ASM_FALSE='#' | |
21917 | else | |
21918 | NEED_ATOMIC_OPS_ASM_TRUE='#' | |
21919 | NEED_ATOMIC_OPS_ASM_FALSE= | |
21920 | fi | |
21921 | ||
21922 | ||
21923 | ||
21924 | ||
21925 | ac_config_files="$ac_config_files Makefile bdw-gc.pc" | |
21926 | ||
21927 | ||
21928 | ac_config_commands="$ac_config_commands default" | |
21929 | ||
21930 | ||
21931 | cat >confcache <<\_ACEOF | |
21932 | # This file is a shell script that caches the results of configure | |
21933 | # tests run on this system so they can be shared between configure | |
21934 | # scripts and configure runs, see configure's option --config-cache. | |
21935 | # It is not useful on other systems. If it contains results you don't | |
21936 | # want to keep, you may remove or edit it. | |
21937 | # | |
21938 | # config.status only pays attention to the cache file if you give it | |
21939 | # the --recheck option to rerun configure. | |
21940 | # | |
21941 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
21942 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
21943 | # following values. | |
21944 | ||
21945 | _ACEOF | |
21946 | ||
21947 | # The following way of writing the cache mishandles newlines in values, | |
21948 | # but we know of no workaround that is simple, portable, and efficient. | |
21949 | # So, we kill variables containing newlines. | |
21950 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
21951 | # and sets the high bit in the cache file unless we assign to the vars. | |
21952 | ( | |
21953 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
21954 | eval ac_val=\$$ac_var | |
21955 | case $ac_val in #( | |
21956 | *${as_nl}*) | |
21957 | case $ac_var in #( | |
21958 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 | |
21959 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; | |
21960 | esac | |
21961 | case $ac_var in #( | |
21962 | _ | IFS | as_nl) ;; #( | |
21963 | *) $as_unset $ac_var ;; | |
21964 | esac ;; | |
21965 | esac | |
21966 | done | |
21967 | ||
21968 | (set) 2>&1 | | |
21969 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
21970 | *${as_nl}ac_space=\ *) | |
21971 | # `set' does not quote correctly, so add quotes (double-quote | |
21972 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
21973 | sed -n \ | |
21974 | "s/'/'\\\\''/g; | |
21975 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
21976 | ;; #( | |
21977 | *) | |
21978 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
21979 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
21980 | ;; | |
21981 | esac | | |
21982 | sort | |
21983 | ) | | |
21984 | sed ' | |
21985 | /^ac_cv_env_/b end | |
21986 | t clear | |
21987 | :clear | |
21988 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
21989 | t end | |
21990 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
21991 | :end' >>confcache | |
21992 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
21993 | if test -w "$cache_file"; then | |
21994 | test "x$cache_file" != "x/dev/null" && | |
21995 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 | |
21996 | echo "$as_me: updating cache $cache_file" >&6;} | |
21997 | cat confcache >$cache_file | |
21998 | else | |
21999 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 | |
22000 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
22001 | fi | |
22002 | fi | |
22003 | rm -f confcache | |
22004 | ||
22005 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
22006 | # Let make expand exec_prefix. | |
22007 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
22008 | ||
22009 | # Transform confdefs.h into DEFS. | |
22010 | # Protect against shell expansion while executing Makefile rules. | |
22011 | # Protect against Makefile macro expansion. | |
22012 | # | |
22013 | # If the first sed substitution is executed (which looks for macros that | |
22014 | # take arguments), then branch to the quote section. Otherwise, | |
22015 | # look for a macro that doesn't take arguments. | |
22016 | ac_script=' | |
22017 | t clear | |
22018 | :clear | |
22019 | s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g | |
22020 | t quote | |
22021 | s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g | |
22022 | t quote | |
22023 | b any | |
22024 | :quote | |
22025 | s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g | |
22026 | s/\[/\\&/g | |
22027 | s/\]/\\&/g | |
22028 | s/\$/$$/g | |
22029 | H | |
22030 | :any | |
22031 | ${ | |
22032 | g | |
22033 | s/^\n// | |
22034 | s/\n/ /g | |
22035 | p | |
22036 | } | |
22037 | ' | |
22038 | DEFS=`sed -n "$ac_script" confdefs.h` | |
22039 | ||
22040 | ||
22041 | ac_libobjs= | |
22042 | ac_ltlibobjs= | |
22043 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
22044 | # 1. Remove the extension, and $U if already installed. | |
22045 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
22046 | ac_i=`echo "$ac_i" | sed "$ac_script"` | |
22047 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
22048 | # will be set to the directory where LIBOBJS objects are built. | |
22049 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
22050 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' | |
22051 | done | |
22052 | LIBOBJS=$ac_libobjs | |
22053 | ||
22054 | LTLIBOBJS=$ac_ltlibobjs | |
22055 | ||
22056 | ||
22057 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
22058 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
22059 | Usually this means the macro was only invoked conditionally." >&5 | |
22060 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
22061 | Usually this means the macro was only invoked conditionally." >&2;} | |
22062 | { (exit 1); exit 1; }; } | |
22063 | fi | |
22064 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
22065 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
22066 | Usually this means the macro was only invoked conditionally." >&5 | |
22067 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
22068 | Usually this means the macro was only invoked conditionally." >&2;} | |
22069 | { (exit 1); exit 1; }; } | |
22070 | fi | |
22071 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
22072 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
22073 | Usually this means the macro was only invoked conditionally." >&5 | |
22074 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
22075 | Usually this means the macro was only invoked conditionally." >&2;} | |
22076 | { (exit 1); exit 1; }; } | |
22077 | fi | |
22078 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
22079 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. | |
22080 | Usually this means the macro was only invoked conditionally." >&5 | |
22081 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. | |
22082 | Usually this means the macro was only invoked conditionally." >&2;} | |
22083 | { (exit 1); exit 1; }; } | |
22084 | fi | |
22085 | if test -z "${THREADS_TRUE}" && test -z "${THREADS_FALSE}"; then | |
22086 | { { echo "$as_me:$LINENO: error: conditional \"THREADS\" was never defined. | |
22087 | Usually this means the macro was only invoked conditionally." >&5 | |
22088 | echo "$as_me: error: conditional \"THREADS\" was never defined. | |
22089 | Usually this means the macro was only invoked conditionally." >&2;} | |
22090 | { (exit 1); exit 1; }; } | |
22091 | fi | |
22092 | if test -z "${PTHREADS_TRUE}" && test -z "${PTHREADS_FALSE}"; then | |
22093 | { { echo "$as_me:$LINENO: error: conditional \"PTHREADS\" was never defined. | |
22094 | Usually this means the macro was only invoked conditionally." >&5 | |
22095 | echo "$as_me: error: conditional \"PTHREADS\" was never defined. | |
22096 | Usually this means the macro was only invoked conditionally." >&2;} | |
22097 | { (exit 1); exit 1; }; } | |
22098 | fi | |
22099 | if test -z "${DARWIN_THREADS_TRUE}" && test -z "${DARWIN_THREADS_FALSE}"; then | |
22100 | { { echo "$as_me:$LINENO: error: conditional \"DARWIN_THREADS\" was never defined. | |
22101 | Usually this means the macro was only invoked conditionally." >&5 | |
22102 | echo "$as_me: error: conditional \"DARWIN_THREADS\" was never defined. | |
22103 | Usually this means the macro was only invoked conditionally." >&2;} | |
22104 | { (exit 1); exit 1; }; } | |
22105 | fi | |
22106 | if test -z "${WIN32_THREADS_TRUE}" && test -z "${WIN32_THREADS_FALSE}"; then | |
22107 | { { echo "$as_me:$LINENO: error: conditional \"WIN32_THREADS\" was never defined. | |
22108 | Usually this means the macro was only invoked conditionally." >&5 | |
22109 | echo "$as_me: error: conditional \"WIN32_THREADS\" was never defined. | |
22110 | Usually this means the macro was only invoked conditionally." >&2;} | |
22111 | { (exit 1); exit 1; }; } | |
22112 | fi | |
22113 | if test -z "${COMPILER_XLC_TRUE}" && test -z "${COMPILER_XLC_FALSE}"; then | |
22114 | { { echo "$as_me:$LINENO: error: conditional \"COMPILER_XLC\" was never defined. | |
22115 | Usually this means the macro was only invoked conditionally." >&5 | |
22116 | echo "$as_me: error: conditional \"COMPILER_XLC\" was never defined. | |
22117 | Usually this means the macro was only invoked conditionally." >&2;} | |
22118 | { (exit 1); exit 1; }; } | |
22119 | fi | |
22120 | if test -z "${CPLUSPLUS_TRUE}" && test -z "${CPLUSPLUS_FALSE}"; then | |
22121 | { { echo "$as_me:$LINENO: error: conditional \"CPLUSPLUS\" was never defined. | |
22122 | Usually this means the macro was only invoked conditionally." >&5 | |
22123 | echo "$as_me: error: conditional \"CPLUSPLUS\" was never defined. | |
22124 | Usually this means the macro was only invoked conditionally." >&2;} | |
22125 | { (exit 1); exit 1; }; } | |
22126 | fi | |
22127 | if test -z "${ENABLE_GCJ_SUPPORT_TRUE}" && test -z "${ENABLE_GCJ_SUPPORT_FALSE}"; then | |
22128 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_GCJ_SUPPORT\" was never defined. | |
22129 | Usually this means the macro was only invoked conditionally." >&5 | |
22130 | echo "$as_me: error: conditional \"ENABLE_GCJ_SUPPORT\" was never defined. | |
22131 | Usually this means the macro was only invoked conditionally." >&2;} | |
22132 | { (exit 1); exit 1; }; } | |
22133 | fi | |
22134 | if test -z "${USE_LIBDIR_TRUE}" && test -z "${USE_LIBDIR_FALSE}"; then | |
22135 | { { echo "$as_me:$LINENO: error: conditional \"USE_LIBDIR\" was never defined. | |
22136 | Usually this means the macro was only invoked conditionally." >&5 | |
22137 | echo "$as_me: error: conditional \"USE_LIBDIR\" was never defined. | |
22138 | Usually this means the macro was only invoked conditionally." >&2;} | |
22139 | { (exit 1); exit 1; }; } | |
22140 | fi | |
22141 | if test -z "${USE_INTERNAL_LIBATOMIC_OPS_TRUE}" && test -z "${USE_INTERNAL_LIBATOMIC_OPS_FALSE}"; then | |
22142 | { { echo "$as_me:$LINENO: error: conditional \"USE_INTERNAL_LIBATOMIC_OPS\" was never defined. | |
22143 | Usually this means the macro was only invoked conditionally." >&5 | |
22144 | echo "$as_me: error: conditional \"USE_INTERNAL_LIBATOMIC_OPS\" was never defined. | |
22145 | Usually this means the macro was only invoked conditionally." >&2;} | |
22146 | { (exit 1); exit 1; }; } | |
22147 | fi | |
22148 | if test -z "${NEED_ATOMIC_OPS_ASM_TRUE}" && test -z "${NEED_ATOMIC_OPS_ASM_FALSE}"; then | |
22149 | { { echo "$as_me:$LINENO: error: conditional \"NEED_ATOMIC_OPS_ASM\" was never defined. | |
22150 | Usually this means the macro was only invoked conditionally." >&5 | |
22151 | echo "$as_me: error: conditional \"NEED_ATOMIC_OPS_ASM\" was never defined. | |
22152 | Usually this means the macro was only invoked conditionally." >&2;} | |
22153 | { (exit 1); exit 1; }; } | |
22154 | fi | |
22155 | ||
22156 | : ${CONFIG_STATUS=./config.status} | |
22157 | ac_clean_files_save=$ac_clean_files | |
22158 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
22159 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
22160 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
22161 | cat >$CONFIG_STATUS <<_ACEOF | |
22162 | #! $SHELL | |
22163 | # Generated by $as_me. | |
22164 | # Run this file to recreate the current configuration. | |
22165 | # Compiler output produced by configure, useful for debugging | |
22166 | # configure, is in config.log if it exists. | |
22167 | ||
22168 | debug=false | |
22169 | ac_cs_recheck=false | |
22170 | ac_cs_silent=false | |
22171 | SHELL=\${CONFIG_SHELL-$SHELL} | |
22172 | _ACEOF | |
22173 | ||
22174 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22175 | ## --------------------- ## | |
22176 | ## M4sh Initialization. ## | |
22177 | ## --------------------- ## | |
22178 | ||
22179 | # Be more Bourne compatible | |
22180 | DUALCASE=1; export DUALCASE # for MKS sh | |
22181 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
22182 | emulate sh | |
22183 | NULLCMD=: | |
22184 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
22185 | # is contrary to our usage. Disable this feature. | |
22186 | alias -g '${1+"$@"}'='"$@"' | |
22187 | setopt NO_GLOB_SUBST | |
22188 | else | |
22189 | case `(set -o) 2>/dev/null` in | |
22190 | *posix*) set -o posix ;; | |
22191 | esac | |
22192 | ||
22193 | fi | |
22194 | ||
22195 | ||
22196 | ||
22197 | ||
22198 | # PATH needs CR | |
22199 | # Avoid depending upon Character Ranges. | |
22200 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
22201 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
22202 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
22203 | as_cr_digits='0123456789' | |
22204 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
22205 | ||
22206 | # The user is always right. | |
22207 | if test "${PATH_SEPARATOR+set}" != set; then | |
22208 | echo "#! /bin/sh" >conf$$.sh | |
22209 | echo "exit 0" >>conf$$.sh | |
22210 | chmod +x conf$$.sh | |
22211 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
22212 | PATH_SEPARATOR=';' | |
22213 | else | |
22214 | PATH_SEPARATOR=: | |
22215 | fi | |
22216 | rm -f conf$$.sh | |
22217 | fi | |
22218 | ||
22219 | # Support unset when possible. | |
22220 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
22221 | as_unset=unset | |
22222 | else | |
22223 | as_unset=false | |
22224 | fi | |
22225 | ||
22226 | ||
22227 | # IFS | |
22228 | # We need space, tab and new line, in precisely that order. Quoting is | |
22229 | # there to prevent editors from complaining about space-tab. | |
22230 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
22231 | # splitting by setting IFS to empty value.) | |
22232 | as_nl=' | |
22233 | ' | |
22234 | IFS=" "" $as_nl" | |
22235 | ||
22236 | # Find who we are. Look in the path if we contain no directory separator. | |
22237 | case $0 in | |
22238 | *[\\/]* ) as_myself=$0 ;; | |
22239 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
22240 | for as_dir in $PATH | |
22241 | do | |
22242 | IFS=$as_save_IFS | |
22243 | test -z "$as_dir" && as_dir=. | |
22244 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
22245 | done | |
22246 | IFS=$as_save_IFS | |
22247 | ||
22248 | ;; | |
22249 | esac | |
22250 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
22251 | # in which case we are not to be found in the path. | |
22252 | if test "x$as_myself" = x; then | |
22253 | as_myself=$0 | |
22254 | fi | |
22255 | if test ! -f "$as_myself"; then | |
22256 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
22257 | { (exit 1); exit 1; } | |
22258 | fi | |
22259 | ||
22260 | # Work around bugs in pre-3.0 UWIN ksh. | |
22261 | for as_var in ENV MAIL MAILPATH | |
22262 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
22263 | done | |
22264 | PS1='$ ' | |
22265 | PS2='> ' | |
22266 | PS4='+ ' | |
22267 | ||
22268 | # NLS nuisances. | |
22269 | for as_var in \ | |
22270 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
22271 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
22272 | LC_TELEPHONE LC_TIME | |
22273 | do | |
22274 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
22275 | eval $as_var=C; export $as_var | |
22276 | else | |
22277 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var | |
22278 | fi | |
22279 | done | |
22280 | ||
22281 | # Required to use basename. | |
22282 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
22283 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
22284 | as_expr=expr | |
22285 | else | |
22286 | as_expr=false | |
22287 | fi | |
22288 | ||
22289 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
22290 | as_basename=basename | |
22291 | else | |
22292 | as_basename=false | |
22293 | fi | |
22294 | ||
22295 | ||
22296 | # Name of the executable. | |
22297 | as_me=`$as_basename -- "$0" || | |
22298 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
22299 | X"$0" : 'X\(//\)$' \| \ | |
22300 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
22301 | echo X/"$0" | | |
22302 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
22303 | s//\1/ | |
22304 | q | |
22305 | } | |
22306 | /^X\/\(\/\/\)$/{ | |
22307 | s//\1/ | |
22308 | q | |
22309 | } | |
22310 | /^X\/\(\/\).*/{ | |
22311 | s//\1/ | |
22312 | q | |
22313 | } | |
22314 | s/.*/./; q'` | |
22315 | ||
22316 | # CDPATH. | |
22317 | $as_unset CDPATH | |
22318 | ||
22319 | ||
22320 | ||
22321 | as_lineno_1=$LINENO | |
22322 | as_lineno_2=$LINENO | |
22323 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
22324 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { | |
22325 | ||
22326 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
22327 | # uniformly replaced by the line number. The first 'sed' inserts a | |
22328 | # line-number line after each line using $LINENO; the second 'sed' | |
22329 | # does the real work. The second script uses 'N' to pair each | |
22330 | # line-number line with the line containing $LINENO, and appends | |
22331 | # trailing '-' during substitution so that $LINENO is not a special | |
22332 | # case at line end. | |
22333 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
22334 | # scripts with optimization help from Paolo Bonzini. Blame Lee | |
22335 | # E. McMahon (1931-1989) for sed's syntax. :-) | |
22336 | sed -n ' | |
22337 | p | |
22338 | /[$]LINENO/= | |
22339 | ' <$as_myself | | |
22340 | sed ' | |
22341 | s/[$]LINENO.*/&-/ | |
22342 | t lineno | |
22343 | b | |
22344 | :lineno | |
22345 | N | |
22346 | :loop | |
22347 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ | |
22348 | t loop | |
22349 | s/-\n.*// | |
22350 | ' >$as_me.lineno && | |
22351 | chmod +x "$as_me.lineno" || | |
22352 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
22353 | { (exit 1); exit 1; }; } | |
22354 | ||
22355 | # Don't try to exec as it changes $[0], causing all sort of problems | |
22356 | # (the dirname of $[0] is not the place where we might find the | |
22357 | # original and so on. Autoconf is especially sensitive to this). | |
22358 | . "./$as_me.lineno" | |
22359 | # Exit status is that of the last command. | |
22360 | exit | |
22361 | } | |
22362 | ||
22363 | ||
22364 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
22365 | as_dirname=dirname | |
22366 | else | |
22367 | as_dirname=false | |
22368 | fi | |
22369 | ||
22370 | ECHO_C= ECHO_N= ECHO_T= | |
22371 | case `echo -n x` in | |
22372 | -n*) | |
22373 | case `echo 'x\c'` in | |
22374 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
22375 | *) ECHO_C='\c';; | |
22376 | esac;; | |
22377 | *) | |
22378 | ECHO_N='-n';; | |
22379 | esac | |
22380 | ||
22381 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
22382 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
22383 | as_expr=expr | |
22384 | else | |
22385 | as_expr=false | |
22386 | fi | |
22387 | ||
22388 | rm -f conf$$ conf$$.exe conf$$.file | |
22389 | if test -d conf$$.dir; then | |
22390 | rm -f conf$$.dir/conf$$.file | |
22391 | else | |
22392 | rm -f conf$$.dir | |
22393 | mkdir conf$$.dir | |
22394 | fi | |
22395 | echo >conf$$.file | |
22396 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
22397 | as_ln_s='ln -s' | |
22398 | # ... but there are two gotchas: | |
22399 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
22400 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
22401 | # In both cases, we have to default to `cp -p'. | |
22402 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
22403 | as_ln_s='cp -p' | |
22404 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
22405 | as_ln_s=ln | |
22406 | else | |
22407 | as_ln_s='cp -p' | |
22408 | fi | |
22409 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
22410 | rmdir conf$$.dir 2>/dev/null | |
22411 | ||
22412 | if mkdir -p . 2>/dev/null; then | |
22413 | as_mkdir_p=: | |
22414 | else | |
22415 | test -d ./-p && rmdir ./-p | |
22416 | as_mkdir_p=false | |
22417 | fi | |
22418 | ||
22419 | if test -x / >/dev/null 2>&1; then | |
22420 | as_test_x='test -x' | |
22421 | else | |
22422 | if ls -dL / >/dev/null 2>&1; then | |
22423 | as_ls_L_option=L | |
22424 | else | |
22425 | as_ls_L_option= | |
22426 | fi | |
22427 | as_test_x=' | |
22428 | eval sh -c '\'' | |
22429 | if test -d "$1"; then | |
22430 | test -d "$1/."; | |
22431 | else | |
22432 | case $1 in | |
22433 | -*)set "./$1";; | |
22434 | esac; | |
22435 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in | |
22436 | ???[sx]*):;;*)false;;esac;fi | |
22437 | '\'' sh | |
22438 | ' | |
22439 | fi | |
22440 | as_executable_p=$as_test_x | |
22441 | ||
22442 | # Sed expression to map a string onto a valid CPP name. | |
22443 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
22444 | ||
22445 | # Sed expression to map a string onto a valid variable name. | |
22446 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
22447 | ||
22448 | ||
22449 | exec 6>&1 | |
22450 | ||
22451 | # Save the log message, to keep $[0] and so on meaningful, and to | |
22452 | # report actual input values of CONFIG_FILES etc. instead of their | |
22453 | # values after options handling. | |
22454 | ac_log=" | |
22455 | This file was extended by gc $as_me 7.0, which was | |
22456 | generated by GNU Autoconf 2.61. Invocation command line was | |
22457 | ||
22458 | CONFIG_FILES = $CONFIG_FILES | |
22459 | CONFIG_HEADERS = $CONFIG_HEADERS | |
22460 | CONFIG_LINKS = $CONFIG_LINKS | |
22461 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
22462 | $ $0 $@ | |
22463 | ||
22464 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
22465 | " | |
22466 | ||
22467 | _ACEOF | |
22468 | ||
22469 | cat >>$CONFIG_STATUS <<_ACEOF | |
22470 | # Files that config.status was made for. | |
22471 | config_files="$ac_config_files" | |
22472 | config_commands="$ac_config_commands" | |
22473 | ||
22474 | _ACEOF | |
22475 | ||
22476 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22477 | ac_cs_usage="\ | |
22478 | \`$as_me' instantiates files from templates according to the | |
22479 | current configuration. | |
22480 | ||
22481 | Usage: $0 [OPTIONS] [FILE]... | |
22482 | ||
22483 | -h, --help print this help, then exit | |
22484 | -V, --version print version number and configuration settings, then exit | |
22485 | -q, --quiet do not print progress messages | |
22486 | -d, --debug don't remove temporary files | |
22487 | --recheck update $as_me by reconfiguring in the same conditions | |
22488 | --file=FILE[:TEMPLATE] | |
22489 | instantiate the configuration file FILE | |
22490 | ||
22491 | Configuration files: | |
22492 | $config_files | |
22493 | ||
22494 | Configuration commands: | |
22495 | $config_commands | |
22496 | ||
22497 | Report bugs to <bug-autoconf@gnu.org>." | |
22498 | ||
22499 | _ACEOF | |
22500 | cat >>$CONFIG_STATUS <<_ACEOF | |
22501 | ac_cs_version="\\ | |
22502 | gc config.status 7.0 | |
22503 | configured by $0, generated by GNU Autoconf 2.61, | |
22504 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" | |
22505 | ||
22506 | Copyright (C) 2006 Free Software Foundation, Inc. | |
22507 | This config.status script is free software; the Free Software Foundation | |
22508 | gives unlimited permission to copy, distribute and modify it." | |
22509 | ||
22510 | ac_pwd='$ac_pwd' | |
22511 | srcdir='$srcdir' | |
22512 | INSTALL='$INSTALL' | |
22513 | _ACEOF | |
22514 | ||
22515 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22516 | # If no file are specified by the user, then we need to provide default | |
22517 | # value. By we need to know if files were specified by the user. | |
22518 | ac_need_defaults=: | |
22519 | while test $# != 0 | |
22520 | do | |
22521 | case $1 in | |
22522 | --*=*) | |
22523 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
22524 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
22525 | ac_shift=: | |
22526 | ;; | |
22527 | *) | |
22528 | ac_option=$1 | |
22529 | ac_optarg=$2 | |
22530 | ac_shift=shift | |
22531 | ;; | |
22532 | esac | |
22533 | ||
22534 | case $ac_option in | |
22535 | # Handling of the options. | |
22536 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
22537 | ac_cs_recheck=: ;; | |
22538 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
22539 | echo "$ac_cs_version"; exit ;; | |
22540 | --debug | --debu | --deb | --de | --d | -d ) | |
22541 | debug=: ;; | |
22542 | --file | --fil | --fi | --f ) | |
22543 | $ac_shift | |
22544 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
22545 | ac_need_defaults=false;; | |
22546 | --he | --h | --help | --hel | -h ) | |
22547 | echo "$ac_cs_usage"; exit ;; | |
22548 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
22549 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
22550 | ac_cs_silent=: ;; | |
22551 | ||
22552 | # This is an error. | |
22553 | -*) { echo "$as_me: error: unrecognized option: $1 | |
22554 | Try \`$0 --help' for more information." >&2 | |
22555 | { (exit 1); exit 1; }; } ;; | |
22556 | ||
22557 | *) ac_config_targets="$ac_config_targets $1" | |
22558 | ac_need_defaults=false ;; | |
22559 | ||
22560 | esac | |
22561 | shift | |
22562 | done | |
22563 | ||
22564 | ac_configure_extra_args= | |
22565 | ||
22566 | if $ac_cs_silent; then | |
22567 | exec 6>/dev/null | |
22568 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
22569 | fi | |
22570 | ||
22571 | _ACEOF | |
22572 | cat >>$CONFIG_STATUS <<_ACEOF | |
22573 | if \$ac_cs_recheck; then | |
22574 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
22575 | CONFIG_SHELL=$SHELL | |
22576 | export CONFIG_SHELL | |
22577 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
22578 | fi | |
22579 | ||
22580 | _ACEOF | |
22581 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22582 | exec 5>>config.log | |
22583 | { | |
22584 | echo | |
22585 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
22586 | ## Running $as_me. ## | |
22587 | _ASBOX | |
22588 | echo "$ac_log" | |
22589 | } >&5 | |
22590 | ||
22591 | _ACEOF | |
22592 | cat >>$CONFIG_STATUS <<_ACEOF | |
22593 | # | |
22594 | # INIT-COMMANDS | |
22595 | # | |
22596 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
22597 | srcdir=${srcdir} | |
22598 | host=${host} | |
22599 | CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} | |
22600 | CC="${CC}" | |
22601 | DEFS="$DEFS" | |
22602 | ||
22603 | _ACEOF | |
22604 | ||
22605 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22606 | ||
22607 | # Handling of arguments. | |
22608 | for ac_config_target in $ac_config_targets | |
22609 | do | |
22610 | case $ac_config_target in | |
22611 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
22612 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
22613 | "bdw-gc.pc") CONFIG_FILES="$CONFIG_FILES bdw-gc.pc" ;; | |
22614 | "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
22615 | ||
22616 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
22617 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
22618 | { (exit 1); exit 1; }; };; | |
22619 | esac | |
22620 | done | |
22621 | ||
22622 | ||
22623 | # If the user did not use the arguments to specify the items to instantiate, | |
22624 | # then the envvar interface is used. Set only those that are not. | |
22625 | # We use the long form for the default assignment because of an extremely | |
22626 | # bizarre bug on SunOS 4.1.3. | |
22627 | if $ac_need_defaults; then | |
22628 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
22629 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
22630 | fi | |
22631 | ||
22632 | # Have a temporary directory for convenience. Make it in the build tree | |
22633 | # simply because there is no reason against having it here, and in addition, | |
22634 | # creating and moving files from /tmp can sometimes cause problems. | |
22635 | # Hook for its removal unless debugging. | |
22636 | # Note that there is a small window in which the directory will not be cleaned: | |
22637 | # after its creation but before its name has been assigned to `$tmp'. | |
22638 | $debug || | |
22639 | { | |
22640 | tmp= | |
22641 | trap 'exit_status=$? | |
22642 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status | |
22643 | ' 0 | |
22644 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
22645 | } | |
22646 | # Create a (secure) tmp directory for tmp files. | |
22647 | ||
22648 | { | |
22649 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
22650 | test -n "$tmp" && test -d "$tmp" | |
22651 | } || | |
22652 | { | |
22653 | tmp=./conf$$-$RANDOM | |
22654 | (umask 077 && mkdir "$tmp") | |
22655 | } || | |
22656 | { | |
22657 | echo "$me: cannot create a temporary directory in ." >&2 | |
22658 | { (exit 1); exit 1; } | |
22659 | } | |
22660 | ||
22661 | # | |
22662 | # Set up the sed scripts for CONFIG_FILES section. | |
22663 | # | |
22664 | ||
22665 | # No need to generate the scripts if there are no CONFIG_FILES. | |
22666 | # This happens for instance when ./config.status config.h | |
22667 | if test -n "$CONFIG_FILES"; then | |
22668 | ||
22669 | _ACEOF | |
22670 | ||
22671 | ||
22672 | ||
22673 | ac_delim='%!_!# ' | |
22674 | for ac_last_try in false false false false false :; do | |
22675 | cat >conf$$subs.sed <<_ACEOF | |
22676 | SHELL!$SHELL$ac_delim | |
22677 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim | |
22678 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim | |
22679 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim | |
22680 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim | |
22681 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim | |
22682 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim | |
22683 | exec_prefix!$exec_prefix$ac_delim | |
22684 | prefix!$prefix$ac_delim | |
22685 | program_transform_name!$program_transform_name$ac_delim | |
22686 | bindir!$bindir$ac_delim | |
22687 | sbindir!$sbindir$ac_delim | |
22688 | libexecdir!$libexecdir$ac_delim | |
22689 | datarootdir!$datarootdir$ac_delim | |
22690 | datadir!$datadir$ac_delim | |
22691 | sysconfdir!$sysconfdir$ac_delim | |
22692 | sharedstatedir!$sharedstatedir$ac_delim | |
22693 | localstatedir!$localstatedir$ac_delim | |
22694 | includedir!$includedir$ac_delim | |
22695 | oldincludedir!$oldincludedir$ac_delim | |
22696 | docdir!$docdir$ac_delim | |
22697 | infodir!$infodir$ac_delim | |
22698 | htmldir!$htmldir$ac_delim | |
22699 | dvidir!$dvidir$ac_delim | |
22700 | pdfdir!$pdfdir$ac_delim | |
22701 | psdir!$psdir$ac_delim | |
22702 | libdir!$libdir$ac_delim | |
22703 | localedir!$localedir$ac_delim | |
22704 | mandir!$mandir$ac_delim | |
22705 | DEFS!$DEFS$ac_delim | |
22706 | ECHO_C!$ECHO_C$ac_delim | |
22707 | ECHO_N!$ECHO_N$ac_delim | |
22708 | ECHO_T!$ECHO_T$ac_delim | |
22709 | LIBS!$LIBS$ac_delim | |
22710 | build_alias!$build_alias$ac_delim | |
22711 | host_alias!$host_alias$ac_delim | |
22712 | target_alias!$target_alias$ac_delim | |
22713 | build!$build$ac_delim | |
22714 | build_cpu!$build_cpu$ac_delim | |
22715 | build_vendor!$build_vendor$ac_delim | |
22716 | build_os!$build_os$ac_delim | |
22717 | host!$host$ac_delim | |
22718 | host_cpu!$host_cpu$ac_delim | |
22719 | host_vendor!$host_vendor$ac_delim | |
22720 | host_os!$host_os$ac_delim | |
22721 | target!$target$ac_delim | |
22722 | target_cpu!$target_cpu$ac_delim | |
22723 | target_vendor!$target_vendor$ac_delim | |
22724 | target_os!$target_os$ac_delim | |
22725 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim | |
22726 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim | |
22727 | INSTALL_DATA!$INSTALL_DATA$ac_delim | |
22728 | CYGPATH_W!$CYGPATH_W$ac_delim | |
22729 | PACKAGE!$PACKAGE$ac_delim | |
22730 | VERSION!$VERSION$ac_delim | |
22731 | ACLOCAL!$ACLOCAL$ac_delim | |
22732 | AUTOCONF!$AUTOCONF$ac_delim | |
22733 | AUTOMAKE!$AUTOMAKE$ac_delim | |
22734 | AUTOHEADER!$AUTOHEADER$ac_delim | |
22735 | MAKEINFO!$MAKEINFO$ac_delim | |
22736 | install_sh!$install_sh$ac_delim | |
22737 | STRIP!$STRIP$ac_delim | |
22738 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim | |
22739 | mkdir_p!$mkdir_p$ac_delim | |
22740 | AWK!$AWK$ac_delim | |
22741 | SET_MAKE!$SET_MAKE$ac_delim | |
22742 | am__leading_dot!$am__leading_dot$ac_delim | |
22743 | AMTAR!$AMTAR$ac_delim | |
22744 | am__tar!$am__tar$ac_delim | |
22745 | am__untar!$am__untar$ac_delim | |
22746 | MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim | |
22747 | MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim | |
22748 | MAINT!$MAINT$ac_delim | |
22749 | GC_VERSION!$GC_VERSION$ac_delim | |
22750 | CC!$CC$ac_delim | |
22751 | CFLAGS!$CFLAGS$ac_delim | |
22752 | LDFLAGS!$LDFLAGS$ac_delim | |
22753 | CPPFLAGS!$CPPFLAGS$ac_delim | |
22754 | ac_ct_CC!$ac_ct_CC$ac_delim | |
22755 | EXEEXT!$EXEEXT$ac_delim | |
22756 | OBJEXT!$OBJEXT$ac_delim | |
22757 | DEPDIR!$DEPDIR$ac_delim | |
22758 | am__include!$am__include$ac_delim | |
22759 | am__quote!$am__quote$ac_delim | |
22760 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim | |
22761 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim | |
22762 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim | |
22763 | CCDEPMODE!$CCDEPMODE$ac_delim | |
22764 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim | |
22765 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim | |
22766 | CXX!$CXX$ac_delim | |
22767 | CXXFLAGS!$CXXFLAGS$ac_delim | |
22768 | ac_ct_CXX!$ac_ct_CXX$ac_delim | |
22769 | CXXDEPMODE!$CXXDEPMODE$ac_delim | |
22770 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim | |
22771 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim | |
22772 | CCAS!$CCAS$ac_delim | |
22773 | _ACEOF | |
22774 | ||
22775 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then | |
22776 | break | |
22777 | elif $ac_last_try; then | |
22778 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
22779 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
22780 | { (exit 1); exit 1; }; } | |
22781 | else | |
22782 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
22783 | fi | |
22784 | done | |
22785 | ||
22786 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
22787 | if test -n "$ac_eof"; then | |
22788 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
22789 | ac_eof=`expr $ac_eof + 1` | |
22790 | fi | |
22791 | ||
22792 | cat >>$CONFIG_STATUS <<_ACEOF | |
22793 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof | |
22794 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
22795 | _ACEOF | |
22796 | sed ' | |
22797 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
22798 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
22799 | :n | |
22800 | t n | |
22801 | s/'"$ac_delim"'$/,g/; t | |
22802 | s/$/\\/; p | |
22803 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
22804 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
22805 | rm -f conf$$subs.sed | |
22806 | cat >>$CONFIG_STATUS <<_ACEOF | |
22807 | CEOF$ac_eof | |
22808 | _ACEOF | |
22809 | ||
22810 | ||
22811 | ac_delim='%!_!# ' | |
22812 | for ac_last_try in false false false false false :; do | |
22813 | cat >conf$$subs.sed <<_ACEOF | |
22814 | CCASFLAGS!$CCASFLAGS$ac_delim | |
22815 | AR!$AR$ac_delim | |
22816 | RANLIB!$RANLIB$ac_delim | |
22817 | GC_CFLAGS!$GC_CFLAGS$ac_delim | |
22818 | THREADDLLIBS!$THREADDLLIBS$ac_delim | |
22819 | THREADS_TRUE!$THREADS_TRUE$ac_delim | |
22820 | THREADS_FALSE!$THREADS_FALSE$ac_delim | |
22821 | PTHREADS_TRUE!$PTHREADS_TRUE$ac_delim | |
22822 | PTHREADS_FALSE!$PTHREADS_FALSE$ac_delim | |
22823 | DARWIN_THREADS_TRUE!$DARWIN_THREADS_TRUE$ac_delim | |
22824 | DARWIN_THREADS_FALSE!$DARWIN_THREADS_FALSE$ac_delim | |
22825 | WIN32_THREADS_TRUE!$WIN32_THREADS_TRUE$ac_delim | |
22826 | WIN32_THREADS_FALSE!$WIN32_THREADS_FALSE$ac_delim | |
22827 | COMPILER_XLC_TRUE!$COMPILER_XLC_TRUE$ac_delim | |
22828 | COMPILER_XLC_FALSE!$COMPILER_XLC_FALSE$ac_delim | |
22829 | extra_ldflags_libgc!$extra_ldflags_libgc$ac_delim | |
22830 | EXTRA_TEST_LIBS!$EXTRA_TEST_LIBS$ac_delim | |
22831 | target_all!$target_all$ac_delim | |
22832 | CPLUSPLUS_TRUE!$CPLUSPLUS_TRUE$ac_delim | |
22833 | CPLUSPLUS_FALSE!$CPLUSPLUS_FALSE$ac_delim | |
22834 | INCLUDES!$INCLUDES$ac_delim | |
22835 | CXXINCLUDES!$CXXINCLUDES$ac_delim | |
22836 | addobjs!$addobjs$ac_delim | |
22837 | addlibs!$addlibs$ac_delim | |
22838 | GREP!$GREP$ac_delim | |
22839 | EGREP!$EGREP$ac_delim | |
22840 | LN_S!$LN_S$ac_delim | |
22841 | ECHO!$ECHO$ac_delim | |
22842 | CPP!$CPP$ac_delim | |
22843 | CXXCPP!$CXXCPP$ac_delim | |
22844 | F77!$F77$ac_delim | |
22845 | FFLAGS!$FFLAGS$ac_delim | |
22846 | ac_ct_F77!$ac_ct_F77$ac_delim | |
22847 | LIBTOOL!$LIBTOOL$ac_delim | |
22848 | ENABLE_GCJ_SUPPORT_TRUE!$ENABLE_GCJ_SUPPORT_TRUE$ac_delim | |
22849 | ENABLE_GCJ_SUPPORT_FALSE!$ENABLE_GCJ_SUPPORT_FALSE$ac_delim | |
22850 | UNWINDLIBS!$UNWINDLIBS$ac_delim | |
22851 | USE_LIBDIR_TRUE!$USE_LIBDIR_TRUE$ac_delim | |
22852 | USE_LIBDIR_FALSE!$USE_LIBDIR_FALSE$ac_delim | |
22853 | subdirs!$subdirs$ac_delim | |
22854 | USE_INTERNAL_LIBATOMIC_OPS_TRUE!$USE_INTERNAL_LIBATOMIC_OPS_TRUE$ac_delim | |
22855 | USE_INTERNAL_LIBATOMIC_OPS_FALSE!$USE_INTERNAL_LIBATOMIC_OPS_FALSE$ac_delim | |
22856 | NEED_ATOMIC_OPS_ASM_TRUE!$NEED_ATOMIC_OPS_ASM_TRUE$ac_delim | |
22857 | NEED_ATOMIC_OPS_ASM_FALSE!$NEED_ATOMIC_OPS_ASM_FALSE$ac_delim | |
22858 | atomic_ops_libs!$atomic_ops_libs$ac_delim | |
22859 | LIBOBJS!$LIBOBJS$ac_delim | |
22860 | LTLIBOBJS!$LTLIBOBJS$ac_delim | |
22861 | _ACEOF | |
22862 | ||
22863 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 47; then | |
22864 | break | |
22865 | elif $ac_last_try; then | |
22866 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 | |
22867 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} | |
22868 | { (exit 1); exit 1; }; } | |
22869 | else | |
22870 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
22871 | fi | |
22872 | done | |
22873 | ||
22874 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` | |
22875 | if test -n "$ac_eof"; then | |
22876 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` | |
22877 | ac_eof=`expr $ac_eof + 1` | |
22878 | fi | |
22879 | ||
22880 | cat >>$CONFIG_STATUS <<_ACEOF | |
22881 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof | |
22882 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end | |
22883 | _ACEOF | |
22884 | sed ' | |
22885 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g | |
22886 | s/^/s,@/; s/!/@,|#_!!_#|/ | |
22887 | :n | |
22888 | t n | |
22889 | s/'"$ac_delim"'$/,g/; t | |
22890 | s/$/\\/; p | |
22891 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n | |
22892 | ' >>$CONFIG_STATUS <conf$$subs.sed | |
22893 | rm -f conf$$subs.sed | |
22894 | cat >>$CONFIG_STATUS <<_ACEOF | |
22895 | :end | |
22896 | s/|#_!!_#|//g | |
22897 | CEOF$ac_eof | |
22898 | _ACEOF | |
22899 | ||
22900 | ||
22901 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
22902 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
22903 | # trailing colons and then remove the whole line if VPATH becomes empty | |
22904 | # (actually we leave an empty line to preserve line numbers). | |
22905 | if test "x$srcdir" = x.; then | |
22906 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
22907 | s/:*\$(srcdir):*/:/ | |
22908 | s/:*\${srcdir}:*/:/ | |
22909 | s/:*@srcdir@:*/:/ | |
22910 | s/^\([^=]*=[ ]*\):*/\1/ | |
22911 | s/:*$// | |
22912 | s/^[^=]*=[ ]*$// | |
22913 | }' | |
22914 | fi | |
22915 | ||
22916 | cat >>$CONFIG_STATUS <<\_ACEOF | |
22917 | fi # test -n "$CONFIG_FILES" | |
22918 | ||
22919 | ||
22920 | for ac_tag in :F $CONFIG_FILES :C $CONFIG_COMMANDS | |
22921 | do | |
22922 | case $ac_tag in | |
22923 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
22924 | esac | |
22925 | case $ac_mode$ac_tag in | |
22926 | :[FHL]*:*);; | |
22927 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 | |
22928 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} | |
22929 | { (exit 1); exit 1; }; };; | |
22930 | :[FH]-) ac_tag=-:-;; | |
22931 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
22932 | esac | |
22933 | ac_save_IFS=$IFS | |
22934 | IFS=: | |
22935 | set x $ac_tag | |
22936 | IFS=$ac_save_IFS | |
22937 | shift | |
22938 | ac_file=$1 | |
22939 | shift | |
22940 | ||
22941 | case $ac_mode in | |
22942 | :L) ac_source=$1;; | |
22943 | :[FH]) | |
22944 | ac_file_inputs= | |
22945 | for ac_f | |
22946 | do | |
22947 | case $ac_f in | |
22948 | -) ac_f="$tmp/stdin";; | |
22949 | *) # Look for the file first in the build tree, then in the source tree | |
22950 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
22951 | # because $ac_f cannot contain `:'. | |
22952 | test -f "$ac_f" || | |
22953 | case $ac_f in | |
22954 | [\\/$]*) false;; | |
22955 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
22956 | esac || | |
22957 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 | |
22958 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} | |
22959 | { (exit 1); exit 1; }; };; | |
22960 | esac | |
22961 | ac_file_inputs="$ac_file_inputs $ac_f" | |
22962 | done | |
22963 | ||
22964 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
22965 | # use $as_me), people would be surprised to read: | |
22966 | # /* config.h. Generated by config.status. */ | |
22967 | configure_input="Generated from "`IFS=: | |
22968 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." | |
22969 | if test x"$ac_file" != x-; then | |
22970 | configure_input="$ac_file. $configure_input" | |
22971 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
22972 | echo "$as_me: creating $ac_file" >&6;} | |
22973 | fi | |
22974 | ||
22975 | case $ac_tag in | |
22976 | *:-:* | *:-) cat >"$tmp/stdin";; | |
22977 | esac | |
22978 | ;; | |
22979 | esac | |
22980 | ||
22981 | ac_dir=`$as_dirname -- "$ac_file" || | |
22982 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
22983 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
22984 | X"$ac_file" : 'X\(//\)$' \| \ | |
22985 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
22986 | echo X"$ac_file" | | |
22987 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
22988 | s//\1/ | |
22989 | q | |
22990 | } | |
22991 | /^X\(\/\/\)[^/].*/{ | |
22992 | s//\1/ | |
22993 | q | |
22994 | } | |
22995 | /^X\(\/\/\)$/{ | |
22996 | s//\1/ | |
22997 | q | |
22998 | } | |
22999 | /^X\(\/\).*/{ | |
23000 | s//\1/ | |
23001 | q | |
23002 | } | |
23003 | s/.*/./; q'` | |
23004 | { as_dir="$ac_dir" | |
23005 | case $as_dir in #( | |
23006 | -*) as_dir=./$as_dir;; | |
23007 | esac | |
23008 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
23009 | as_dirs= | |
23010 | while :; do | |
23011 | case $as_dir in #( | |
23012 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
23013 | *) as_qdir=$as_dir;; | |
23014 | esac | |
23015 | as_dirs="'$as_qdir' $as_dirs" | |
23016 | as_dir=`$as_dirname -- "$as_dir" || | |
23017 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23018 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23019 | X"$as_dir" : 'X\(//\)$' \| \ | |
23020 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
23021 | echo X"$as_dir" | | |
23022 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23023 | s//\1/ | |
23024 | q | |
23025 | } | |
23026 | /^X\(\/\/\)[^/].*/{ | |
23027 | s//\1/ | |
23028 | q | |
23029 | } | |
23030 | /^X\(\/\/\)$/{ | |
23031 | s//\1/ | |
23032 | q | |
23033 | } | |
23034 | /^X\(\/\).*/{ | |
23035 | s//\1/ | |
23036 | q | |
23037 | } | |
23038 | s/.*/./; q'` | |
23039 | test -d "$as_dir" && break | |
23040 | done | |
23041 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
23042 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
23043 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
23044 | { (exit 1); exit 1; }; }; } | |
23045 | ac_builddir=. | |
23046 | ||
23047 | case "$ac_dir" in | |
23048 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
23049 | *) | |
23050 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
23051 | # A ".." for each directory in $ac_dir_suffix. | |
23052 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
23053 | case $ac_top_builddir_sub in | |
23054 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
23055 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
23056 | esac ;; | |
23057 | esac | |
23058 | ac_abs_top_builddir=$ac_pwd | |
23059 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
23060 | # for backward compatibility: | |
23061 | ac_top_builddir=$ac_top_build_prefix | |
23062 | ||
23063 | case $srcdir in | |
23064 | .) # We are building in place. | |
23065 | ac_srcdir=. | |
23066 | ac_top_srcdir=$ac_top_builddir_sub | |
23067 | ac_abs_top_srcdir=$ac_pwd ;; | |
23068 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
23069 | ac_srcdir=$srcdir$ac_dir_suffix; | |
23070 | ac_top_srcdir=$srcdir | |
23071 | ac_abs_top_srcdir=$srcdir ;; | |
23072 | *) # Relative name. | |
23073 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
23074 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
23075 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
23076 | esac | |
23077 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
23078 | ||
23079 | ||
23080 | case $ac_mode in | |
23081 | :F) | |
23082 | # | |
23083 | # CONFIG_FILE | |
23084 | # | |
23085 | ||
23086 | case $INSTALL in | |
23087 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
23088 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
23089 | esac | |
23090 | _ACEOF | |
23091 | ||
23092 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23093 | # If the template does not know about datarootdir, expand it. | |
23094 | # FIXME: This hack should be removed a few years after 2.60. | |
23095 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
23096 | ||
23097 | case `sed -n '/datarootdir/ { | |
23098 | p | |
23099 | q | |
23100 | } | |
23101 | /@datadir@/p | |
23102 | /@docdir@/p | |
23103 | /@infodir@/p | |
23104 | /@localedir@/p | |
23105 | /@mandir@/p | |
23106 | ' $ac_file_inputs` in | |
23107 | *datarootdir*) ac_datarootdir_seen=yes;; | |
23108 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
23109 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
23110 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
23111 | _ACEOF | |
23112 | cat >>$CONFIG_STATUS <<_ACEOF | |
23113 | ac_datarootdir_hack=' | |
23114 | s&@datadir@&$datadir&g | |
23115 | s&@docdir@&$docdir&g | |
23116 | s&@infodir@&$infodir&g | |
23117 | s&@localedir@&$localedir&g | |
23118 | s&@mandir@&$mandir&g | |
23119 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
23120 | esac | |
23121 | _ACEOF | |
23122 | ||
23123 | # Neutralize VPATH when `$srcdir' = `.'. | |
23124 | # Shell code in configure.ac might set extrasub. | |
23125 | # FIXME: do we really want to maintain this feature? | |
23126 | cat >>$CONFIG_STATUS <<_ACEOF | |
23127 | sed "$ac_vpsub | |
23128 | $extrasub | |
23129 | _ACEOF | |
23130 | cat >>$CONFIG_STATUS <<\_ACEOF | |
23131 | :t | |
23132 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
23133 | s&@configure_input@&$configure_input&;t t | |
23134 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
23135 | s&@srcdir@&$ac_srcdir&;t t | |
23136 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
23137 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
23138 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
23139 | s&@builddir@&$ac_builddir&;t t | |
23140 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
23141 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
23142 | s&@INSTALL@&$ac_INSTALL&;t t | |
23143 | $ac_datarootdir_hack | |
23144 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out | |
23145 | ||
23146 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
23147 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && | |
23148 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && | |
23149 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
23150 | which seems to be undefined. Please make sure it is defined." >&5 | |
23151 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
23152 | which seems to be undefined. Please make sure it is defined." >&2;} | |
23153 | ||
23154 | rm -f "$tmp/stdin" | |
23155 | case $ac_file in | |
23156 | -) cat "$tmp/out"; rm -f "$tmp/out";; | |
23157 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; | |
23158 | esac | |
23159 | ;; | |
23160 | ||
23161 | ||
23162 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 | |
23163 | echo "$as_me: executing $ac_file commands" >&6;} | |
23164 | ;; | |
23165 | esac | |
23166 | ||
23167 | ||
23168 | case $ac_file$ac_mode in | |
23169 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
23170 | # Strip MF so we end up with the name of the file. | |
23171 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
23172 | # Check whether this is an Automake generated Makefile or not. | |
23173 | # We used to match only the files named `Makefile.in', but | |
23174 | # some people rename them; so instead we look at the file content. | |
23175 | # Grep'ing the first line is not enough: some people post-process | |
23176 | # each Makefile.in and add a new line on top of each file to say so. | |
23177 | # So let's grep whole file. | |
23178 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
23179 | dirpart=`$as_dirname -- "$mf" || | |
23180 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23181 | X"$mf" : 'X\(//\)[^/]' \| \ | |
23182 | X"$mf" : 'X\(//\)$' \| \ | |
23183 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
23184 | echo X"$mf" | | |
23185 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23186 | s//\1/ | |
23187 | q | |
23188 | } | |
23189 | /^X\(\/\/\)[^/].*/{ | |
23190 | s//\1/ | |
23191 | q | |
23192 | } | |
23193 | /^X\(\/\/\)$/{ | |
23194 | s//\1/ | |
23195 | q | |
23196 | } | |
23197 | /^X\(\/\).*/{ | |
23198 | s//\1/ | |
23199 | q | |
23200 | } | |
23201 | s/.*/./; q'` | |
23202 | else | |
23203 | continue | |
23204 | fi | |
23205 | # Extract the definition of DEPDIR, am__include, and am__quote | |
23206 | # from the Makefile without running `make'. | |
23207 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
23208 | test -z "$DEPDIR" && continue | |
23209 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
23210 | test -z "am__include" && continue | |
23211 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
23212 | # When using ansi2knr, U may be empty or an underscore; expand it | |
23213 | U=`sed -n 's/^U = //p' < "$mf"` | |
23214 | # Find all dependency output files, they are included files with | |
23215 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
23216 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
23217 | # expansion. | |
23218 | for file in `sed -n " | |
23219 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
23220 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
23221 | # Make sure the directory exists. | |
23222 | test -f "$dirpart/$file" && continue | |
23223 | fdir=`$as_dirname -- "$file" || | |
23224 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23225 | X"$file" : 'X\(//\)[^/]' \| \ | |
23226 | X"$file" : 'X\(//\)$' \| \ | |
23227 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
23228 | echo X"$file" | | |
23229 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23230 | s//\1/ | |
23231 | q | |
23232 | } | |
23233 | /^X\(\/\/\)[^/].*/{ | |
23234 | s//\1/ | |
23235 | q | |
23236 | } | |
23237 | /^X\(\/\/\)$/{ | |
23238 | s//\1/ | |
23239 | q | |
23240 | } | |
23241 | /^X\(\/\).*/{ | |
23242 | s//\1/ | |
23243 | q | |
23244 | } | |
23245 | s/.*/./; q'` | |
23246 | { as_dir=$dirpart/$fdir | |
23247 | case $as_dir in #( | |
23248 | -*) as_dir=./$as_dir;; | |
23249 | esac | |
23250 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
23251 | as_dirs= | |
23252 | while :; do | |
23253 | case $as_dir in #( | |
23254 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
23255 | *) as_qdir=$as_dir;; | |
23256 | esac | |
23257 | as_dirs="'$as_qdir' $as_dirs" | |
23258 | as_dir=`$as_dirname -- "$as_dir" || | |
23259 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23260 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23261 | X"$as_dir" : 'X\(//\)$' \| \ | |
23262 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
23263 | echo X"$as_dir" | | |
23264 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23265 | s//\1/ | |
23266 | q | |
23267 | } | |
23268 | /^X\(\/\/\)[^/].*/{ | |
23269 | s//\1/ | |
23270 | q | |
23271 | } | |
23272 | /^X\(\/\/\)$/{ | |
23273 | s//\1/ | |
23274 | q | |
23275 | } | |
23276 | /^X\(\/\).*/{ | |
23277 | s//\1/ | |
23278 | q | |
23279 | } | |
23280 | s/.*/./; q'` | |
23281 | test -d "$as_dir" && break | |
23282 | done | |
23283 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
23284 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
23285 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
23286 | { (exit 1); exit 1; }; }; } | |
23287 | # echo "creating $dirpart/$file" | |
23288 | echo '# dummy' > "$dirpart/$file" | |
23289 | done | |
23290 | done | |
23291 | ;; | |
23292 | ||
23293 | esac | |
23294 | done # for ac_tag | |
23295 | ||
23296 | ||
23297 | { (exit 0); exit 0; } | |
23298 | _ACEOF | |
23299 | chmod +x $CONFIG_STATUS | |
23300 | ac_clean_files=$ac_clean_files_save | |
23301 | ||
23302 | ||
23303 | # configure is writing to config.log, and then calls config.status. | |
23304 | # config.status does its own redirection, appending to config.log. | |
23305 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
23306 | # by configure, so config.status won't be able to write to it; its | |
23307 | # output is simply discarded. So we exec the FD to /dev/null, | |
23308 | # effectively closing config.log, so it can be properly (re)opened and | |
23309 | # appended to by config.status. When coming back to configure, we | |
23310 | # need to make the FD available again. | |
23311 | if test "$no_create" != yes; then | |
23312 | ac_cs_success=: | |
23313 | ac_config_status_args= | |
23314 | test "$silent" = yes && | |
23315 | ac_config_status_args="$ac_config_status_args --quiet" | |
23316 | exec 5>/dev/null | |
23317 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
23318 | exec 5>>config.log | |
23319 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
23320 | # would make configure fail if this is the last instruction. | |
23321 | $ac_cs_success || { (exit 1); exit 1; } | |
23322 | fi | |
23323 | ||
23324 | # | |
23325 | # CONFIG_SUBDIRS section. | |
23326 | # | |
23327 | if test "$no_recursion" != yes; then | |
23328 | ||
23329 | # Remove --cache-file and --srcdir arguments so they do not pile up. | |
23330 | ac_sub_configure_args= | |
23331 | ac_prev= | |
23332 | eval "set x $ac_configure_args" | |
23333 | shift | |
23334 | for ac_arg | |
23335 | do | |
23336 | if test -n "$ac_prev"; then | |
23337 | ac_prev= | |
23338 | continue | |
23339 | fi | |
23340 | case $ac_arg in | |
23341 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
23342 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
23343 | ac_prev=cache_file ;; | |
23344 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
23345 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \ | |
23346 | | --c=*) | |
23347 | ;; | |
23348 | --config-cache | -C) | |
23349 | ;; | |
23350 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
23351 | ac_prev=srcdir ;; | |
23352 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
23353 | ;; | |
23354 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
23355 | ac_prev=prefix ;; | |
23356 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
23357 | ;; | |
23358 | *) | |
23359 | case $ac_arg in | |
23360 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
23361 | esac | |
23362 | ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;; | |
23363 | esac | |
23364 | done | |
23365 | ||
23366 | # Always prepend --prefix to ensure using the same prefix | |
23367 | # in subdir configurations. | |
23368 | ac_arg="--prefix=$prefix" | |
23369 | case $ac_arg in | |
23370 | *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
23371 | esac | |
23372 | ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args" | |
23373 | ||
23374 | # Pass --silent | |
23375 | if test "$silent" = yes; then | |
23376 | ac_sub_configure_args="--silent $ac_sub_configure_args" | |
23377 | fi | |
23378 | ||
23379 | ac_popdir=`pwd` | |
23380 | for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue | |
23381 | ||
23382 | # Do not complain, so a configure script can configure whichever | |
23383 | # parts of a large source tree are present. | |
23384 | test -d "$srcdir/$ac_dir" || continue | |
23385 | ||
23386 | ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)" | |
23387 | echo "$as_me:$LINENO: $ac_msg" >&5 | |
23388 | echo "$ac_msg" >&6 | |
23389 | { as_dir="$ac_dir" | |
23390 | case $as_dir in #( | |
23391 | -*) as_dir=./$as_dir;; | |
23392 | esac | |
23393 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { | |
23394 | as_dirs= | |
23395 | while :; do | |
23396 | case $as_dir in #( | |
23397 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( | |
23398 | *) as_qdir=$as_dir;; | |
23399 | esac | |
23400 | as_dirs="'$as_qdir' $as_dirs" | |
23401 | as_dir=`$as_dirname -- "$as_dir" || | |
23402 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
23403 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
23404 | X"$as_dir" : 'X\(//\)$' \| \ | |
23405 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
23406 | echo X"$as_dir" | | |
23407 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
23408 | s//\1/ | |
23409 | q | |
23410 | } | |
23411 | /^X\(\/\/\)[^/].*/{ | |
23412 | s//\1/ | |
23413 | q | |
23414 | } | |
23415 | /^X\(\/\/\)$/{ | |
23416 | s//\1/ | |
23417 | q | |
23418 | } | |
23419 | /^X\(\/\).*/{ | |
23420 | s//\1/ | |
23421 | q | |
23422 | } | |
23423 | s/.*/./; q'` | |
23424 | test -d "$as_dir" && break | |
23425 | done | |
23426 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
23427 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 | |
23428 | echo "$as_me: error: cannot create directory $as_dir" >&2;} | |
23429 | { (exit 1); exit 1; }; }; } | |
23430 | ac_builddir=. | |
23431 | ||
23432 | case "$ac_dir" in | |
23433 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
23434 | *) | |
23435 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
23436 | # A ".." for each directory in $ac_dir_suffix. | |
23437 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` | |
23438 | case $ac_top_builddir_sub in | |
23439 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
23440 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
23441 | esac ;; | |
23442 | esac | |
23443 | ac_abs_top_builddir=$ac_pwd | |
23444 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
23445 | # for backward compatibility: | |
23446 | ac_top_builddir=$ac_top_build_prefix | |
23447 | ||
23448 | case $srcdir in | |
23449 | .) # We are building in place. | |
23450 | ac_srcdir=. | |
23451 | ac_top_srcdir=$ac_top_builddir_sub | |
23452 | ac_abs_top_srcdir=$ac_pwd ;; | |
23453 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
23454 | ac_srcdir=$srcdir$ac_dir_suffix; | |
23455 | ac_top_srcdir=$srcdir | |
23456 | ac_abs_top_srcdir=$srcdir ;; | |
23457 | *) # Relative name. | |
23458 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
23459 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
23460 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
23461 | esac | |
23462 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
23463 | ||
23464 | ||
23465 | cd "$ac_dir" | |
23466 | ||
23467 | # Check for guested configure; otherwise get Cygnus style configure. | |
23468 | if test -f "$ac_srcdir/configure.gnu"; then | |
23469 | ac_sub_configure=$ac_srcdir/configure.gnu | |
23470 | elif test -f "$ac_srcdir/configure"; then | |
23471 | ac_sub_configure=$ac_srcdir/configure | |
23472 | elif test -f "$ac_srcdir/configure.in"; then | |
23473 | # This should be Cygnus configure. | |
23474 | ac_sub_configure=$ac_aux_dir/configure | |
23475 | else | |
23476 | { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5 | |
23477 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;} | |
23478 | ac_sub_configure= | |
23479 | fi | |
23480 | ||
23481 | # The recursion is here. | |
23482 | if test -n "$ac_sub_configure"; then | |
23483 | # Make the cache file name correct relative to the subdirectory. | |
23484 | case $cache_file in | |
23485 | [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;; | |
23486 | *) # Relative name. | |
23487 | ac_sub_cache_file=$ac_top_build_prefix$cache_file ;; | |
23488 | esac | |
23489 | ||
23490 | { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5 | |
23491 | echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;} | |
23492 | # The eval makes quoting arguments work. | |
23493 | eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \ | |
23494 | --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" || | |
23495 | { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5 | |
23496 | echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;} | |
23497 | { (exit 1); exit 1; }; } | |
23498 | fi | |
23499 | ||
23500 | cd "$ac_popdir" | |
23501 | done | |
23502 | fi | |
23503 |