d9898ee8 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
dd184caf |
3 | # Generated by GNU Autoconf 2.61 for numlib 0.10. |
d9898ee8 |
4 | # |
5 | # Report bugs to <courier-users@lists.sourceforge.net>. |
6 | # |
dd184caf |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
d9898ee8 |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. |
11 | ## --------------------- ## |
12 | ## M4sh Initialization. ## |
13 | ## --------------------- ## |
14 | |
dd184caf |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh |
d9898ee8 |
17 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
18 | emulate sh |
19 | NULLCMD=: |
20 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
21 | # is contrary to our usage. Disable this feature. |
22 | alias -g '${1+"$@"}'='"$@"' |
dd184caf |
23 | setopt NO_GLOB_SUBST |
24 | else |
25 | case `(set -o) 2>/dev/null` in |
26 | *posix*) set -o posix ;; |
27 | esac |
28 | |
29 | fi |
30 | |
31 | |
32 | |
33 | |
34 | # PATH needs CR |
35 | # Avoid depending upon Character Ranges. |
36 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
37 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
38 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
39 | as_cr_digits='0123456789' |
40 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
41 | |
42 | # The user is always right. |
43 | if test "${PATH_SEPARATOR+set}" != set; then |
44 | echo "#! /bin/sh" >conf$$.sh |
45 | echo "exit 0" >>conf$$.sh |
46 | chmod +x conf$$.sh |
47 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
48 | PATH_SEPARATOR=';' |
49 | else |
50 | PATH_SEPARATOR=: |
51 | fi |
52 | rm -f conf$$.sh |
d9898ee8 |
53 | fi |
d9898ee8 |
54 | |
55 | # Support unset when possible. |
56 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
57 | as_unset=unset |
58 | else |
59 | as_unset=false |
60 | fi |
61 | |
62 | |
dd184caf |
63 | # IFS |
64 | # We need space, tab and new line, in precisely that order. Quoting is |
65 | # there to prevent editors from complaining about space-tab. |
66 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
67 | # splitting by setting IFS to empty value.) |
68 | as_nl=' |
69 | ' |
70 | IFS=" "" $as_nl" |
71 | |
72 | # Find who we are. Look in the path if we contain no directory separator. |
73 | case $0 in |
74 | *[\\/]* ) as_myself=$0 ;; |
75 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
76 | for as_dir in $PATH |
77 | do |
78 | IFS=$as_save_IFS |
79 | test -z "$as_dir" && as_dir=. |
80 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
81 | done |
82 | IFS=$as_save_IFS |
83 | |
84 | ;; |
85 | esac |
86 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
87 | # in which case we are not to be found in the path. |
88 | if test "x$as_myself" = x; then |
89 | as_myself=$0 |
90 | fi |
91 | if test ! -f "$as_myself"; then |
92 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
93 | { (exit 1); exit 1; } |
94 | fi |
95 | |
d9898ee8 |
96 | # Work around bugs in pre-3.0 UWIN ksh. |
dd184caf |
97 | for as_var in ENV MAIL MAILPATH |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
99 | done |
d9898ee8 |
100 | PS1='$ ' |
101 | PS2='> ' |
102 | PS4='+ ' |
103 | |
104 | # NLS nuisances. |
105 | for as_var in \ |
106 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
107 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
108 | LC_TELEPHONE LC_TIME |
109 | do |
110 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
111 | eval $as_var=C; export $as_var |
112 | else |
dd184caf |
113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
114 | fi |
115 | done |
116 | |
117 | # Required to use basename. |
dd184caf |
118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
120 | as_expr=expr |
121 | else |
122 | as_expr=false |
123 | fi |
124 | |
dd184caf |
125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 |
126 | as_basename=basename |
127 | else |
128 | as_basename=false |
129 | fi |
130 | |
131 | |
132 | # Name of the executable. |
dd184caf |
133 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
137 | echo X/"$0" | |
dd184caf |
138 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
139 | s//\1/ |
140 | q |
141 | } |
142 | /^X\/\(\/\/\)$/{ |
143 | s//\1/ |
144 | q |
145 | } |
146 | /^X\/\(\/\).*/{ |
147 | s//\1/ |
148 | q |
149 | } |
150 | s/.*/./; q'` |
d9898ee8 |
151 | |
dd184caf |
152 | # CDPATH. |
153 | $as_unset CDPATH |
d9898ee8 |
154 | |
d9898ee8 |
155 | |
dd184caf |
156 | if test "x$CONFIG_SHELL" = x; then |
157 | if (eval ":") 2>/dev/null; then |
158 | as_have_required=yes |
159 | else |
160 | as_have_required=no |
d9898ee8 |
161 | fi |
162 | |
dd184caf |
163 | if test $as_have_required = yes && (eval ": |
164 | (as_func_return () { |
165 | (exit \$1) |
166 | } |
167 | as_func_success () { |
168 | as_func_return 0 |
169 | } |
170 | as_func_failure () { |
171 | as_func_return 1 |
172 | } |
173 | as_func_ret_success () { |
174 | return 0 |
175 | } |
176 | as_func_ret_failure () { |
177 | return 1 |
178 | } |
d9898ee8 |
179 | |
dd184caf |
180 | exitcode=0 |
181 | if as_func_success; then |
182 | : |
183 | else |
184 | exitcode=1 |
185 | echo as_func_success failed. |
186 | fi |
d9898ee8 |
187 | |
dd184caf |
188 | if as_func_failure; then |
189 | exitcode=1 |
190 | echo as_func_failure succeeded. |
191 | fi |
192 | |
193 | if as_func_ret_success; then |
194 | : |
195 | else |
196 | exitcode=1 |
197 | echo as_func_ret_success failed. |
198 | fi |
199 | |
200 | if as_func_ret_failure; then |
201 | exitcode=1 |
202 | echo as_func_ret_failure succeeded. |
203 | fi |
204 | |
205 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
206 | : |
207 | else |
208 | exitcode=1 |
209 | echo positional parameters were not saved. |
210 | fi |
211 | |
212 | test \$exitcode = 0) || { (exit 1); exit 1; } |
213 | |
214 | ( |
215 | as_lineno_1=\$LINENO |
216 | as_lineno_2=\$LINENO |
217 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
218 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
219 | ") 2> /dev/null; then |
220 | : |
221 | else |
222 | as_candidate_shells= |
d9898ee8 |
223 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
224 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
225 | do |
226 | IFS=$as_save_IFS |
227 | test -z "$as_dir" && as_dir=. |
dd184caf |
228 | case $as_dir in |
d9898ee8 |
229 | /*) |
dd184caf |
230 | for as_base in sh bash ksh sh5; do |
231 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
232 | done;; |
233 | esac |
234 | done |
235 | IFS=$as_save_IFS |
236 | |
237 | |
238 | for as_shell in $as_candidate_shells $SHELL; do |
239 | # Try only shells that exist, to save several forks. |
240 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
241 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
242 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
243 | emulate sh |
244 | NULLCMD=: |
245 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
246 | # is contrary to our usage. Disable this feature. |
247 | alias -g '${1+"$@"}'='"$@"' |
248 | setopt NO_GLOB_SUBST |
249 | else |
250 | case `(set -o) 2>/dev/null` in |
251 | *posix*) set -o posix ;; |
252 | esac |
253 | |
254 | fi |
255 | |
256 | |
257 | : |
258 | _ASEOF |
259 | }; then |
260 | CONFIG_SHELL=$as_shell |
261 | as_have_required=yes |
262 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
263 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
264 | emulate sh |
265 | NULLCMD=: |
266 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
267 | # is contrary to our usage. Disable this feature. |
268 | alias -g '${1+"$@"}'='"$@"' |
269 | setopt NO_GLOB_SUBST |
270 | else |
271 | case `(set -o) 2>/dev/null` in |
272 | *posix*) set -o posix ;; |
273 | esac |
274 | |
275 | fi |
276 | |
277 | |
278 | : |
279 | (as_func_return () { |
280 | (exit $1) |
281 | } |
282 | as_func_success () { |
283 | as_func_return 0 |
284 | } |
285 | as_func_failure () { |
286 | as_func_return 1 |
287 | } |
288 | as_func_ret_success () { |
289 | return 0 |
290 | } |
291 | as_func_ret_failure () { |
292 | return 1 |
293 | } |
294 | |
295 | exitcode=0 |
296 | if as_func_success; then |
297 | : |
298 | else |
299 | exitcode=1 |
300 | echo as_func_success failed. |
301 | fi |
302 | |
303 | if as_func_failure; then |
304 | exitcode=1 |
305 | echo as_func_failure succeeded. |
306 | fi |
307 | |
308 | if as_func_ret_success; then |
309 | : |
310 | else |
311 | exitcode=1 |
312 | echo as_func_ret_success failed. |
313 | fi |
314 | |
315 | if as_func_ret_failure; then |
316 | exitcode=1 |
317 | echo as_func_ret_failure succeeded. |
318 | fi |
319 | |
320 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
321 | : |
322 | else |
323 | exitcode=1 |
324 | echo positional parameters were not saved. |
325 | fi |
326 | |
327 | test $exitcode = 0) || { (exit 1); exit 1; } |
328 | |
329 | ( |
d9898ee8 |
330 | as_lineno_1=$LINENO |
331 | as_lineno_2=$LINENO |
d9898ee8 |
332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dd184caf |
333 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
334 | |
335 | _ASEOF |
336 | }; then |
337 | break |
338 | fi |
339 | |
340 | fi |
341 | |
342 | done |
343 | |
344 | if test "x$CONFIG_SHELL" != x; then |
345 | for as_var in BASH_ENV ENV |
346 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
347 | done |
348 | export CONFIG_SHELL |
349 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
350 | fi |
351 | |
352 | |
353 | if test $as_have_required = no; then |
354 | echo This script requires a shell more modern than all the |
355 | echo shells that I found on your system. Please install a |
356 | echo modern shell, or manually run the script under such a |
357 | echo shell if you do have one. |
358 | { (exit 1); exit 1; } |
359 | fi |
360 | |
361 | |
362 | fi |
363 | |
364 | fi |
365 | |
366 | |
367 | |
368 | (eval "as_func_return () { |
369 | (exit \$1) |
370 | } |
371 | as_func_success () { |
372 | as_func_return 0 |
373 | } |
374 | as_func_failure () { |
375 | as_func_return 1 |
376 | } |
377 | as_func_ret_success () { |
378 | return 0 |
379 | } |
380 | as_func_ret_failure () { |
381 | return 1 |
382 | } |
383 | |
384 | exitcode=0 |
385 | if as_func_success; then |
386 | : |
387 | else |
388 | exitcode=1 |
389 | echo as_func_success failed. |
390 | fi |
391 | |
392 | if as_func_failure; then |
393 | exitcode=1 |
394 | echo as_func_failure succeeded. |
395 | fi |
396 | |
397 | if as_func_ret_success; then |
398 | : |
399 | else |
400 | exitcode=1 |
401 | echo as_func_ret_success failed. |
402 | fi |
403 | |
404 | if as_func_ret_failure; then |
405 | exitcode=1 |
406 | echo as_func_ret_failure succeeded. |
407 | fi |
408 | |
409 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
410 | : |
411 | else |
412 | exitcode=1 |
413 | echo positional parameters were not saved. |
414 | fi |
415 | |
416 | test \$exitcode = 0") || { |
417 | echo No shell found that supports shell functions. |
418 | echo Please tell autoconf@gnu.org about your system, |
419 | echo including any error possibly output before this |
420 | echo message |
421 | } |
422 | |
423 | |
424 | |
425 | as_lineno_1=$LINENO |
426 | as_lineno_2=$LINENO |
427 | test "x$as_lineno_1" != "x$as_lineno_2" && |
428 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
d9898ee8 |
429 | |
430 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
431 | # uniformly replaced by the line number. The first 'sed' inserts a |
dd184caf |
432 | # line-number line after each line using $LINENO; the second 'sed' |
433 | # does the real work. The second script uses 'N' to pair each |
434 | # line-number line with the line containing $LINENO, and appends |
435 | # trailing '-' during substitution so that $LINENO is not a special |
436 | # case at line end. |
d9898ee8 |
437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
dd184caf |
438 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
439 | # E. McMahon (1931-1989) for sed's syntax. :-) |
440 | sed -n ' |
441 | p |
442 | /[$]LINENO/= |
443 | ' <$as_myself | |
d9898ee8 |
444 | sed ' |
dd184caf |
445 | s/[$]LINENO.*/&-/ |
446 | t lineno |
447 | b |
448 | :lineno |
d9898ee8 |
449 | N |
dd184caf |
450 | :loop |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
452 | t loop |
dd184caf |
453 | s/-\n.*// |
d9898ee8 |
454 | ' >$as_me.lineno && |
dd184caf |
455 | chmod +x "$as_me.lineno" || |
d9898ee8 |
456 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
457 | { (exit 1); exit 1; }; } |
458 | |
459 | # Don't try to exec as it changes $[0], causing all sort of problems |
460 | # (the dirname of $[0] is not the place where we might find the |
dd184caf |
461 | # original and so on. Autoconf is especially sensitive to this). |
462 | . "./$as_me.lineno" |
d9898ee8 |
463 | # Exit status is that of the last command. |
464 | exit |
465 | } |
466 | |
467 | |
dd184caf |
468 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
469 | as_dirname=dirname |
470 | else |
471 | as_dirname=false |
472 | fi |
473 | |
474 | ECHO_C= ECHO_N= ECHO_T= |
475 | case `echo -n x` in |
476 | -n*) |
477 | case `echo 'x\c'` in |
478 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
479 | *) ECHO_C='\c';; |
480 | esac;; |
481 | *) |
482 | ECHO_N='-n';; |
d9898ee8 |
483 | esac |
484 | |
dd184caf |
485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
487 | as_expr=expr |
488 | else |
489 | as_expr=false |
490 | fi |
491 | |
492 | rm -f conf$$ conf$$.exe conf$$.file |
dd184caf |
493 | if test -d conf$$.dir; then |
494 | rm -f conf$$.dir/conf$$.file |
495 | else |
496 | rm -f conf$$.dir |
497 | mkdir conf$$.dir |
498 | fi |
d9898ee8 |
499 | echo >conf$$.file |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
dd184caf |
501 | as_ln_s='ln -s' |
502 | # ... but there are two gotchas: |
503 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
504 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
505 | # In both cases, we have to default to `cp -p'. |
506 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d9898ee8 |
507 | as_ln_s='cp -p' |
d9898ee8 |
508 | elif ln conf$$.file conf$$ 2>/dev/null; then |
509 | as_ln_s=ln |
510 | else |
511 | as_ln_s='cp -p' |
512 | fi |
dd184caf |
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 | rmdir conf$$.dir 2>/dev/null |
d9898ee8 |
515 | |
516 | if mkdir -p . 2>/dev/null; then |
517 | as_mkdir_p=: |
518 | else |
519 | test -d ./-p && rmdir ./-p |
520 | as_mkdir_p=false |
521 | fi |
522 | |
dd184caf |
523 | if test -x / >/dev/null 2>&1; then |
524 | as_test_x='test -x' |
525 | else |
526 | if ls -dL / >/dev/null 2>&1; then |
527 | as_ls_L_option=L |
528 | else |
529 | as_ls_L_option= |
530 | fi |
531 | as_test_x=' |
532 | eval sh -c '\'' |
533 | if test -d "$1"; then |
534 | test -d "$1/."; |
535 | else |
536 | case $1 in |
537 | -*)set "./$1";; |
538 | esac; |
539 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
540 | ???[sx]*):;;*)false;;esac;fi |
541 | '\'' sh |
542 | ' |
543 | fi |
544 | as_executable_p=$as_test_x |
d9898ee8 |
545 | |
546 | # Sed expression to map a string onto a valid CPP name. |
547 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
548 | |
549 | # Sed expression to map a string onto a valid variable name. |
550 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
551 | |
552 | |
d9898ee8 |
553 | |
554 | |
555 | # Check that we are running under the correct shell. |
556 | SHELL=${CONFIG_SHELL-/bin/sh} |
557 | |
558 | case X$ECHO in |
559 | X*--fallback-echo) |
560 | # Remove one level of quotation (which was required for Make). |
561 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
562 | ;; |
563 | esac |
564 | |
565 | echo=${ECHO-echo} |
566 | if test "X$1" = X--no-reexec; then |
567 | # Discard the --no-reexec flag, and continue. |
568 | shift |
569 | elif test "X$1" = X--fallback-echo; then |
570 | # Avoid inline document here, it may be left over |
571 | : |
572 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
573 | # Yippee, $echo works! |
574 | : |
575 | else |
576 | # Restart under the correct shell. |
577 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
578 | fi |
579 | |
580 | if test "X$1" = X--fallback-echo; then |
581 | # used as fallback echo |
582 | shift |
583 | cat <<EOF |
584 | $* |
585 | EOF |
586 | exit 0 |
587 | fi |
588 | |
589 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
590 | # if CDPATH is set. |
591 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
592 | |
593 | if test -z "$ECHO"; then |
594 | if test "X${echo_test_string+set}" != Xset; then |
595 | # find a string as large as possible, as long as the shell can cope with it |
596 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
597 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
598 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
599 | echo_test_string=`eval $cmd` && |
600 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
601 | then |
602 | break |
603 | fi |
604 | done |
605 | fi |
606 | |
607 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
608 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
609 | test "X$echo_testing_string" = "X$echo_test_string"; then |
610 | : |
611 | else |
612 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
613 | # backslashes. This makes it impossible to quote backslashes using |
614 | # echo "$something" | sed 's/\\/\\\\/g' |
615 | # |
616 | # So, first we look for a working echo in the user's PATH. |
617 | |
618 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
619 | for dir in $PATH /usr/ucb; do |
620 | IFS="$lt_save_ifs" |
621 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
622 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
623 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
624 | test "X$echo_testing_string" = "X$echo_test_string"; then |
625 | echo="$dir/echo" |
626 | break |
627 | fi |
628 | done |
629 | IFS="$lt_save_ifs" |
630 | |
631 | if test "X$echo" = Xecho; then |
632 | # We didn't find a better echo, so look for alternatives. |
633 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
634 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
635 | test "X$echo_testing_string" = "X$echo_test_string"; then |
636 | # This shell has a builtin print -r that does the trick. |
637 | echo='print -r' |
638 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
639 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
640 | # If we have ksh, try running configure again with it. |
641 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
642 | export ORIGINAL_CONFIG_SHELL |
643 | CONFIG_SHELL=/bin/ksh |
644 | export CONFIG_SHELL |
645 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
646 | else |
647 | # Try using printf. |
648 | echo='printf %s\n' |
649 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
650 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
651 | test "X$echo_testing_string" = "X$echo_test_string"; then |
652 | # Cool, printf works |
653 | : |
654 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
655 | test "X$echo_testing_string" = 'X\t' && |
656 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
657 | test "X$echo_testing_string" = "X$echo_test_string"; then |
658 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
659 | export CONFIG_SHELL |
660 | SHELL="$CONFIG_SHELL" |
661 | export SHELL |
662 | echo="$CONFIG_SHELL $0 --fallback-echo" |
663 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
664 | test "X$echo_testing_string" = 'X\t' && |
665 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
666 | test "X$echo_testing_string" = "X$echo_test_string"; then |
667 | echo="$CONFIG_SHELL $0 --fallback-echo" |
668 | else |
669 | # maybe with a smaller string... |
670 | prev=: |
671 | |
672 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
673 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
674 | then |
675 | break |
676 | fi |
677 | prev="$cmd" |
678 | done |
679 | |
680 | if test "$prev" != 'sed 50q "$0"'; then |
681 | echo_test_string=`eval $prev` |
682 | export echo_test_string |
683 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
684 | else |
685 | # Oops. We lost completely, so just stick with echo. |
686 | echo=echo |
687 | fi |
688 | fi |
689 | fi |
690 | fi |
691 | fi |
692 | fi |
693 | |
694 | # Copy echo and quote the copy suitably for passing to libtool from |
695 | # the Makefile, instead of quoting the original, which is used later. |
696 | ECHO=$echo |
697 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
698 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
699 | fi |
700 | |
701 | |
702 | |
703 | |
704 | tagnames=${tagnames+${tagnames},}CXX |
705 | |
706 | tagnames=${tagnames+${tagnames},}F77 |
707 | |
dd184caf |
708 | exec 7<&0 </dev/null 6>&1 |
709 | |
d9898ee8 |
710 | # Name of the host. |
711 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
712 | # so uname gets run too. |
713 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
714 | |
d9898ee8 |
715 | # |
716 | # Initializations. |
717 | # |
718 | ac_default_prefix=/usr/local |
dd184caf |
719 | ac_clean_files= |
d9898ee8 |
720 | ac_config_libobj_dir=. |
dd184caf |
721 | LIBOBJS= |
d9898ee8 |
722 | cross_compiling=no |
723 | subdirs= |
724 | MFLAGS= |
725 | MAKEFLAGS= |
726 | SHELL=${CONFIG_SHELL-/bin/sh} |
727 | |
d9898ee8 |
728 | # Identity of this package. |
729 | PACKAGE_NAME='numlib' |
730 | PACKAGE_TARNAME='numlib' |
731 | PACKAGE_VERSION='0.10' |
732 | PACKAGE_STRING='numlib 0.10' |
733 | PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' |
734 | |
735 | ac_unique_file="atotimet.c" |
736 | # Factoring default headers for most tests. |
737 | ac_includes_default="\ |
738 | #include <stdio.h> |
dd184caf |
739 | #ifdef HAVE_SYS_TYPES_H |
d9898ee8 |
740 | # include <sys/types.h> |
741 | #endif |
dd184caf |
742 | #ifdef HAVE_SYS_STAT_H |
d9898ee8 |
743 | # include <sys/stat.h> |
744 | #endif |
dd184caf |
745 | #ifdef STDC_HEADERS |
d9898ee8 |
746 | # include <stdlib.h> |
747 | # include <stddef.h> |
748 | #else |
dd184caf |
749 | # ifdef HAVE_STDLIB_H |
d9898ee8 |
750 | # include <stdlib.h> |
751 | # endif |
752 | #endif |
dd184caf |
753 | #ifdef HAVE_STRING_H |
754 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
d9898ee8 |
755 | # include <memory.h> |
756 | # endif |
757 | # include <string.h> |
758 | #endif |
dd184caf |
759 | #ifdef HAVE_STRINGS_H |
d9898ee8 |
760 | # include <strings.h> |
761 | #endif |
dd184caf |
762 | #ifdef HAVE_INTTYPES_H |
d9898ee8 |
763 | # include <inttypes.h> |
d9898ee8 |
764 | #endif |
dd184caf |
765 | #ifdef HAVE_STDINT_H |
766 | # include <stdint.h> |
767 | #endif |
768 | #ifdef HAVE_UNISTD_H |
d9898ee8 |
769 | # include <unistd.h> |
770 | #endif" |
771 | |
dd184caf |
772 | ac_subst_vars='SHELL |
773 | PATH_SEPARATOR |
774 | PACKAGE_NAME |
775 | PACKAGE_TARNAME |
776 | PACKAGE_VERSION |
777 | PACKAGE_STRING |
778 | PACKAGE_BUGREPORT |
779 | exec_prefix |
780 | prefix |
781 | program_transform_name |
782 | bindir |
783 | sbindir |
784 | libexecdir |
785 | datarootdir |
786 | datadir |
787 | sysconfdir |
788 | sharedstatedir |
789 | localstatedir |
790 | includedir |
791 | oldincludedir |
792 | docdir |
793 | infodir |
794 | htmldir |
795 | dvidir |
796 | pdfdir |
797 | psdir |
798 | libdir |
799 | localedir |
800 | mandir |
801 | DEFS |
802 | ECHO_C |
803 | ECHO_N |
804 | ECHO_T |
805 | LIBS |
806 | build_alias |
807 | host_alias |
808 | target_alias |
809 | INSTALL_PROGRAM |
810 | INSTALL_SCRIPT |
811 | INSTALL_DATA |
812 | am__isrc |
813 | CYGPATH_W |
814 | PACKAGE |
815 | VERSION |
816 | ACLOCAL |
817 | AUTOCONF |
818 | AUTOMAKE |
819 | AUTOHEADER |
820 | MAKEINFO |
821 | install_sh |
822 | STRIP |
823 | INSTALL_STRIP_PROGRAM |
824 | mkdir_p |
825 | AWK |
826 | SET_MAKE |
827 | am__leading_dot |
828 | AMTAR |
829 | am__tar |
830 | am__untar |
831 | CC |
832 | CFLAGS |
833 | LDFLAGS |
834 | CPPFLAGS |
835 | ac_ct_CC |
836 | EXEEXT |
837 | OBJEXT |
838 | DEPDIR |
839 | am__include |
840 | am__quote |
841 | AMDEP_TRUE |
842 | AMDEP_FALSE |
843 | AMDEPBACKSLASH |
844 | CCDEPMODE |
845 | am__fastdepCC_TRUE |
846 | am__fastdepCC_FALSE |
847 | LN_S |
848 | build |
849 | build_cpu |
850 | build_vendor |
851 | build_os |
852 | host |
853 | host_cpu |
854 | host_vendor |
855 | host_os |
856 | SED |
857 | GREP |
858 | EGREP |
859 | ECHO |
860 | AR |
861 | RANLIB |
862 | CPP |
863 | CXX |
864 | CXXFLAGS |
865 | ac_ct_CXX |
866 | CXXDEPMODE |
867 | am__fastdepCXX_TRUE |
868 | am__fastdepCXX_FALSE |
869 | CXXCPP |
870 | F77 |
871 | FFLAGS |
872 | ac_ct_F77 |
873 | LIBTOOL |
874 | LIBOBJS |
875 | LTLIBOBJS' |
d9898ee8 |
876 | ac_subst_files='' |
dd184caf |
877 | ac_precious_vars='build_alias |
878 | host_alias |
879 | target_alias |
880 | CC |
881 | CFLAGS |
882 | LDFLAGS |
883 | LIBS |
884 | CPPFLAGS |
885 | CPP |
886 | CXX |
887 | CXXFLAGS |
888 | CCC |
889 | CXXCPP |
890 | F77 |
891 | FFLAGS' |
892 | |
d9898ee8 |
893 | |
894 | # Initialize some variables set by options. |
895 | ac_init_help= |
896 | ac_init_version=false |
897 | # The variables have the same names as the options, with |
898 | # dashes changed to underlines. |
899 | cache_file=/dev/null |
900 | exec_prefix=NONE |
901 | no_create= |
902 | no_recursion= |
903 | prefix=NONE |
904 | program_prefix=NONE |
905 | program_suffix=NONE |
906 | program_transform_name=s,x,x, |
907 | silent= |
908 | site= |
909 | srcdir= |
910 | verbose= |
911 | x_includes=NONE |
912 | x_libraries=NONE |
913 | |
914 | # Installation directory options. |
915 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
916 | # and all the variables that are supposed to be based on exec_prefix |
917 | # by default will actually change. |
918 | # Use braces instead of parens because sh, perl, etc. also accept them. |
dd184caf |
919 | # (The list follows the same order as the GNU Coding Standards.) |
d9898ee8 |
920 | bindir='${exec_prefix}/bin' |
921 | sbindir='${exec_prefix}/sbin' |
922 | libexecdir='${exec_prefix}/libexec' |
dd184caf |
923 | datarootdir='${prefix}/share' |
924 | datadir='${datarootdir}' |
d9898ee8 |
925 | sysconfdir='${prefix}/etc' |
926 | sharedstatedir='${prefix}/com' |
927 | localstatedir='${prefix}/var' |
d9898ee8 |
928 | includedir='${prefix}/include' |
929 | oldincludedir='/usr/include' |
dd184caf |
930 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
931 | infodir='${datarootdir}/info' |
932 | htmldir='${docdir}' |
933 | dvidir='${docdir}' |
934 | pdfdir='${docdir}' |
935 | psdir='${docdir}' |
936 | libdir='${exec_prefix}/lib' |
937 | localedir='${datarootdir}/locale' |
938 | mandir='${datarootdir}/man' |
d9898ee8 |
939 | |
940 | ac_prev= |
dd184caf |
941 | ac_dashdash= |
d9898ee8 |
942 | for ac_option |
943 | do |
944 | # If the previous option needs an argument, assign it. |
945 | if test -n "$ac_prev"; then |
dd184caf |
946 | eval $ac_prev=\$ac_option |
d9898ee8 |
947 | ac_prev= |
948 | continue |
949 | fi |
950 | |
dd184caf |
951 | case $ac_option in |
952 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
953 | *) ac_optarg=yes ;; |
954 | esac |
d9898ee8 |
955 | |
956 | # Accept the important Cygnus configure options, so we can diagnose typos. |
957 | |
dd184caf |
958 | case $ac_dashdash$ac_option in |
959 | --) |
960 | ac_dashdash=yes ;; |
d9898ee8 |
961 | |
962 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
963 | ac_prev=bindir ;; |
964 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
965 | bindir=$ac_optarg ;; |
966 | |
967 | -build | --build | --buil | --bui | --bu) |
968 | ac_prev=build_alias ;; |
969 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
970 | build_alias=$ac_optarg ;; |
971 | |
972 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
973 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
974 | ac_prev=cache_file ;; |
975 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
976 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
977 | cache_file=$ac_optarg ;; |
978 | |
979 | --config-cache | -C) |
980 | cache_file=config.cache ;; |
981 | |
dd184caf |
982 | -datadir | --datadir | --datadi | --datad) |
d9898ee8 |
983 | ac_prev=datadir ;; |
dd184caf |
984 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
d9898ee8 |
985 | datadir=$ac_optarg ;; |
986 | |
dd184caf |
987 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
988 | | --dataroo | --dataro | --datar) |
989 | ac_prev=datarootdir ;; |
990 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
991 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
992 | datarootdir=$ac_optarg ;; |
993 | |
d9898ee8 |
994 | -disable-* | --disable-*) |
995 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
996 | # Reject names that are not valid shell variable names. |
dd184caf |
997 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
998 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
999 | { (exit 1); exit 1; }; } |
dd184caf |
1000 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1001 | eval enable_$ac_feature=no ;; |
1002 | |
1003 | -docdir | --docdir | --docdi | --doc | --do) |
1004 | ac_prev=docdir ;; |
1005 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
1006 | docdir=$ac_optarg ;; |
1007 | |
1008 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
1009 | ac_prev=dvidir ;; |
1010 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
1011 | dvidir=$ac_optarg ;; |
d9898ee8 |
1012 | |
1013 | -enable-* | --enable-*) |
1014 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1015 | # Reject names that are not valid shell variable names. |
dd184caf |
1016 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1017 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1018 | { (exit 1); exit 1; }; } |
dd184caf |
1019 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1020 | eval enable_$ac_feature=\$ac_optarg ;; |
d9898ee8 |
1021 | |
1022 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1023 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
1024 | | --exec | --exe | --ex) |
1025 | ac_prev=exec_prefix ;; |
1026 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
1027 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
1028 | | --exec=* | --exe=* | --ex=*) |
1029 | exec_prefix=$ac_optarg ;; |
1030 | |
1031 | -gas | --gas | --ga | --g) |
1032 | # Obsolete; use --with-gas. |
1033 | with_gas=yes ;; |
1034 | |
1035 | -help | --help | --hel | --he | -h) |
1036 | ac_init_help=long ;; |
1037 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
1038 | ac_init_help=recursive ;; |
1039 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
1040 | ac_init_help=short ;; |
1041 | |
1042 | -host | --host | --hos | --ho) |
1043 | ac_prev=host_alias ;; |
1044 | -host=* | --host=* | --hos=* | --ho=*) |
1045 | host_alias=$ac_optarg ;; |
1046 | |
dd184caf |
1047 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1048 | ac_prev=htmldir ;; |
1049 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1050 | | --ht=*) |
1051 | htmldir=$ac_optarg ;; |
1052 | |
d9898ee8 |
1053 | -includedir | --includedir | --includedi | --included | --include \ |
1054 | | --includ | --inclu | --incl | --inc) |
1055 | ac_prev=includedir ;; |
1056 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
1057 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
1058 | includedir=$ac_optarg ;; |
1059 | |
1060 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
1061 | ac_prev=infodir ;; |
1062 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1063 | infodir=$ac_optarg ;; |
1064 | |
1065 | -libdir | --libdir | --libdi | --libd) |
1066 | ac_prev=libdir ;; |
1067 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
1068 | libdir=$ac_optarg ;; |
1069 | |
1070 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1071 | | --libexe | --libex | --libe) |
1072 | ac_prev=libexecdir ;; |
1073 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1074 | | --libexe=* | --libex=* | --libe=*) |
1075 | libexecdir=$ac_optarg ;; |
1076 | |
dd184caf |
1077 | -localedir | --localedir | --localedi | --localed | --locale) |
1078 | ac_prev=localedir ;; |
1079 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1080 | localedir=$ac_optarg ;; |
1081 | |
d9898ee8 |
1082 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
dd184caf |
1083 | | --localstate | --localstat | --localsta | --localst | --locals) |
d9898ee8 |
1084 | ac_prev=localstatedir ;; |
1085 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
dd184caf |
1086 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
d9898ee8 |
1087 | localstatedir=$ac_optarg ;; |
1088 | |
1089 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1090 | ac_prev=mandir ;; |
1091 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1092 | mandir=$ac_optarg ;; |
1093 | |
1094 | -nfp | --nfp | --nf) |
1095 | # Obsolete; use --without-fp. |
1096 | with_fp=no ;; |
1097 | |
1098 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1099 | | --no-cr | --no-c | -n) |
1100 | no_create=yes ;; |
1101 | |
1102 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1103 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1104 | no_recursion=yes ;; |
1105 | |
1106 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1107 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1108 | | --oldin | --oldi | --old | --ol | --o) |
1109 | ac_prev=oldincludedir ;; |
1110 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1111 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1112 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1113 | oldincludedir=$ac_optarg ;; |
1114 | |
1115 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1116 | ac_prev=prefix ;; |
1117 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1118 | prefix=$ac_optarg ;; |
1119 | |
1120 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1121 | | --program-pre | --program-pr | --program-p) |
1122 | ac_prev=program_prefix ;; |
1123 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1124 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1125 | program_prefix=$ac_optarg ;; |
1126 | |
1127 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1128 | | --program-suf | --program-su | --program-s) |
1129 | ac_prev=program_suffix ;; |
1130 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1131 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1132 | program_suffix=$ac_optarg ;; |
1133 | |
1134 | -program-transform-name | --program-transform-name \ |
1135 | | --program-transform-nam | --program-transform-na \ |
1136 | | --program-transform-n | --program-transform- \ |
1137 | | --program-transform | --program-transfor \ |
1138 | | --program-transfo | --program-transf \ |
1139 | | --program-trans | --program-tran \ |
1140 | | --progr-tra | --program-tr | --program-t) |
1141 | ac_prev=program_transform_name ;; |
1142 | -program-transform-name=* | --program-transform-name=* \ |
1143 | | --program-transform-nam=* | --program-transform-na=* \ |
1144 | | --program-transform-n=* | --program-transform-=* \ |
1145 | | --program-transform=* | --program-transfor=* \ |
1146 | | --program-transfo=* | --program-transf=* \ |
1147 | | --program-trans=* | --program-tran=* \ |
1148 | | --progr-tra=* | --program-tr=* | --program-t=*) |
1149 | program_transform_name=$ac_optarg ;; |
1150 | |
dd184caf |
1151 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1152 | ac_prev=pdfdir ;; |
1153 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1154 | pdfdir=$ac_optarg ;; |
1155 | |
1156 | -psdir | --psdir | --psdi | --psd | --ps) |
1157 | ac_prev=psdir ;; |
1158 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1159 | psdir=$ac_optarg ;; |
1160 | |
d9898ee8 |
1161 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1162 | | -silent | --silent | --silen | --sile | --sil) |
1163 | silent=yes ;; |
1164 | |
1165 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1166 | ac_prev=sbindir ;; |
1167 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1168 | | --sbi=* | --sb=*) |
1169 | sbindir=$ac_optarg ;; |
1170 | |
1171 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1172 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1173 | | --sharedst | --shareds | --shared | --share | --shar \ |
1174 | | --sha | --sh) |
1175 | ac_prev=sharedstatedir ;; |
1176 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1177 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1178 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1179 | | --sha=* | --sh=*) |
1180 | sharedstatedir=$ac_optarg ;; |
1181 | |
1182 | -site | --site | --sit) |
1183 | ac_prev=site ;; |
1184 | -site=* | --site=* | --sit=*) |
1185 | site=$ac_optarg ;; |
1186 | |
1187 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1188 | ac_prev=srcdir ;; |
1189 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1190 | srcdir=$ac_optarg ;; |
1191 | |
1192 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1193 | | --syscon | --sysco | --sysc | --sys | --sy) |
1194 | ac_prev=sysconfdir ;; |
1195 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1196 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1197 | sysconfdir=$ac_optarg ;; |
1198 | |
1199 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1200 | ac_prev=target_alias ;; |
1201 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1202 | target_alias=$ac_optarg ;; |
1203 | |
1204 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1205 | verbose=yes ;; |
1206 | |
1207 | -version | --version | --versio | --versi | --vers | -V) |
1208 | ac_init_version=: ;; |
1209 | |
1210 | -with-* | --with-*) |
1211 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1212 | # Reject names that are not valid shell variable names. |
dd184caf |
1213 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1214 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1215 | { (exit 1); exit 1; }; } |
dd184caf |
1216 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1217 | eval with_$ac_package=\$ac_optarg ;; |
d9898ee8 |
1218 | |
1219 | -without-* | --without-*) |
1220 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1221 | # Reject names that are not valid shell variable names. |
dd184caf |
1222 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
d9898ee8 |
1223 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1224 | { (exit 1); exit 1; }; } |
dd184caf |
1225 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1226 | eval with_$ac_package=no ;; |
d9898ee8 |
1227 | |
1228 | --x) |
1229 | # Obsolete; use --with-x. |
1230 | with_x=yes ;; |
1231 | |
1232 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1233 | | --x-incl | --x-inc | --x-in | --x-i) |
1234 | ac_prev=x_includes ;; |
1235 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1236 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1237 | x_includes=$ac_optarg ;; |
1238 | |
1239 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1240 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1241 | ac_prev=x_libraries ;; |
1242 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1243 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1244 | x_libraries=$ac_optarg ;; |
1245 | |
1246 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1247 | Try \`$0 --help' for more information." >&2 |
1248 | { (exit 1); exit 1; }; } |
1249 | ;; |
1250 | |
1251 | *=*) |
1252 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1253 | # Reject names that are not valid shell variable names. |
1254 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1255 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1256 | { (exit 1); exit 1; }; } |
dd184caf |
1257 | eval $ac_envvar=\$ac_optarg |
d9898ee8 |
1258 | export $ac_envvar ;; |
1259 | |
1260 | *) |
1261 | # FIXME: should be removed in autoconf 3.0. |
1262 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1263 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1264 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1265 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1266 | ;; |
1267 | |
1268 | esac |
1269 | done |
1270 | |
1271 | if test -n "$ac_prev"; then |
1272 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1273 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1274 | { (exit 1); exit 1; }; } |
1275 | fi |
1276 | |
dd184caf |
1277 | # Be sure to have absolute directory names. |
1278 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1279 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1280 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1281 | libdir localedir mandir |
d9898ee8 |
1282 | do |
dd184caf |
1283 | eval ac_val=\$$ac_var |
d9898ee8 |
1284 | case $ac_val in |
dd184caf |
1285 | [\\/$]* | ?:[\\/]* ) continue;; |
1286 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
d9898ee8 |
1287 | esac |
dd184caf |
1288 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1289 | { (exit 1); exit 1; }; } |
d9898ee8 |
1290 | done |
1291 | |
1292 | # There might be people who depend on the old broken behavior: `$host' |
1293 | # used to hold the argument of --host etc. |
1294 | # FIXME: To remove some day. |
1295 | build=$build_alias |
1296 | host=$host_alias |
1297 | target=$target_alias |
1298 | |
1299 | # FIXME: To remove some day. |
1300 | if test "x$host_alias" != x; then |
1301 | if test "x$build_alias" = x; then |
1302 | cross_compiling=maybe |
1303 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1304 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1305 | elif test "x$build_alias" != "x$host_alias"; then |
1306 | cross_compiling=yes |
1307 | fi |
1308 | fi |
1309 | |
1310 | ac_tool_prefix= |
1311 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1312 | |
1313 | test "$silent" = yes && exec 6>/dev/null |
1314 | |
1315 | |
dd184caf |
1316 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1317 | ac_ls_di=`ls -di .` && |
1318 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1319 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
1320 | { (exit 1); exit 1; }; } |
1321 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1322 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
1323 | { (exit 1); exit 1; }; } |
1324 | |
1325 | |
d9898ee8 |
1326 | # Find the source files, if location was not specified. |
1327 | if test -z "$srcdir"; then |
1328 | ac_srcdir_defaulted=yes |
dd184caf |
1329 | # Try the directory containing this script, then the parent directory. |
1330 | ac_confdir=`$as_dirname -- "$0" || |
d9898ee8 |
1331 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1332 | X"$0" : 'X\(//\)[^/]' \| \ |
1333 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
1334 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
1335 | echo X"$0" | |
dd184caf |
1336 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1337 | s//\1/ |
1338 | q |
1339 | } |
1340 | /^X\(\/\/\)[^/].*/{ |
1341 | s//\1/ |
1342 | q |
1343 | } |
1344 | /^X\(\/\/\)$/{ |
1345 | s//\1/ |
1346 | q |
1347 | } |
1348 | /^X\(\/\).*/{ |
1349 | s//\1/ |
1350 | q |
1351 | } |
1352 | s/.*/./; q'` |
d9898ee8 |
1353 | srcdir=$ac_confdir |
dd184caf |
1354 | if test ! -r "$srcdir/$ac_unique_file"; then |
d9898ee8 |
1355 | srcdir=.. |
1356 | fi |
1357 | else |
1358 | ac_srcdir_defaulted=no |
1359 | fi |
dd184caf |
1360 | if test ! -r "$srcdir/$ac_unique_file"; then |
1361 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1362 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
d9898ee8 |
1363 | { (exit 1); exit 1; }; } |
d9898ee8 |
1364 | fi |
dd184caf |
1365 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1366 | ac_abs_confdir=`( |
1367 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
d9898ee8 |
1368 | { (exit 1); exit 1; }; } |
dd184caf |
1369 | pwd)` |
1370 | # When building in place, set srcdir=. |
1371 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1372 | srcdir=. |
1373 | fi |
1374 | # Remove unnecessary trailing slashes from srcdir. |
1375 | # Double slashes in file names in object file debugging info |
1376 | # mess up M-x gdb in Emacs. |
1377 | case $srcdir in |
1378 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1379 | esac |
1380 | for ac_var in $ac_precious_vars; do |
1381 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1382 | eval ac_env_${ac_var}_value=\$${ac_var} |
1383 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1384 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1385 | done |
d9898ee8 |
1386 | |
1387 | # |
1388 | # Report the --help message. |
1389 | # |
1390 | if test "$ac_init_help" = "long"; then |
1391 | # Omit some internal or obsolete options to make the list less imposing. |
1392 | # This message is too long to be a string in the A/UX 3.1 sh. |
1393 | cat <<_ACEOF |
1394 | \`configure' configures numlib 0.10 to adapt to many kinds of systems. |
1395 | |
1396 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1397 | |
1398 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1399 | VAR=VALUE. See below for descriptions of some of the useful variables. |
1400 | |
1401 | Defaults for the options are specified in brackets. |
1402 | |
1403 | Configuration: |
1404 | -h, --help display this help and exit |
1405 | --help=short display options specific to this package |
1406 | --help=recursive display the short help of all the included packages |
1407 | -V, --version display version information and exit |
1408 | -q, --quiet, --silent do not print \`checking...' messages |
1409 | --cache-file=FILE cache test results in FILE [disabled] |
1410 | -C, --config-cache alias for \`--cache-file=config.cache' |
1411 | -n, --no-create do not create output files |
1412 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1413 | |
d9898ee8 |
1414 | Installation directories: |
1415 | --prefix=PREFIX install architecture-independent files in PREFIX |
1416 | [$ac_default_prefix] |
1417 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1418 | [PREFIX] |
1419 | |
1420 | By default, \`make install' will install all the files in |
1421 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1422 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1423 | for instance \`--prefix=\$HOME'. |
1424 | |
1425 | For better control, use the options below. |
1426 | |
1427 | Fine tuning of the installation directories: |
1428 | --bindir=DIR user executables [EPREFIX/bin] |
1429 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1430 | --libexecdir=DIR program executables [EPREFIX/libexec] |
d9898ee8 |
1431 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1432 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1433 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1434 | --libdir=DIR object code libraries [EPREFIX/lib] |
1435 | --includedir=DIR C header files [PREFIX/include] |
1436 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
dd184caf |
1437 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1438 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1439 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1440 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1441 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1442 | --docdir=DIR documentation root [DATAROOTDIR/doc/numlib] |
1443 | --htmldir=DIR html documentation [DOCDIR] |
1444 | --dvidir=DIR dvi documentation [DOCDIR] |
1445 | --pdfdir=DIR pdf documentation [DOCDIR] |
1446 | --psdir=DIR ps documentation [DOCDIR] |
d9898ee8 |
1447 | _ACEOF |
1448 | |
1449 | cat <<\_ACEOF |
1450 | |
1451 | Program names: |
1452 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1453 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1454 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1455 | |
1456 | System types: |
1457 | --build=BUILD configure for building on BUILD [guessed] |
1458 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1459 | _ACEOF |
1460 | fi |
1461 | |
1462 | if test -n "$ac_init_help"; then |
1463 | case $ac_init_help in |
1464 | short | recursive ) echo "Configuration of numlib 0.10:";; |
1465 | esac |
1466 | cat <<\_ACEOF |
1467 | |
1468 | Optional Features: |
1469 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1470 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1471 | --disable-dependency-tracking speeds up one-time build |
1472 | --enable-dependency-tracking do not reject slow dependency extractors |
dd184caf |
1473 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1474 | --enable-static[=PKGS] build static libraries [default=yes] |
d9898ee8 |
1475 | --enable-fast-install[=PKGS] |
1476 | optimize for fast installation [default=yes] |
1477 | --disable-libtool-lock avoid locking (might break parallel builds) |
1478 | |
1479 | Optional Packages: |
1480 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1481 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1482 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1483 | --with-pic try to use only PIC/non-PIC objects [default=use |
1484 | both] |
dd184caf |
1485 | --with-tags[=TAGS] include additional configurations [automatic] |
d9898ee8 |
1486 | |
1487 | Some influential environment variables: |
1488 | CC C compiler command |
1489 | CFLAGS C compiler flags |
1490 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1491 | nonstandard directory <lib dir> |
dd184caf |
1492 | LIBS libraries to pass to the linker, e.g. -l<library> |
1493 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1494 | you have headers in a nonstandard directory <include dir> |
d9898ee8 |
1495 | CPP C preprocessor |
1496 | CXX C++ compiler command |
1497 | CXXFLAGS C++ compiler flags |
1498 | CXXCPP C++ preprocessor |
1499 | F77 Fortran 77 compiler command |
1500 | FFLAGS Fortran 77 compiler flags |
1501 | |
1502 | Use these variables to override the choices made by `configure' or to help |
1503 | it to find libraries and programs with nonstandard names/locations. |
1504 | |
1505 | Report bugs to <courier-users@lists.sourceforge.net>. |
1506 | _ACEOF |
dd184caf |
1507 | ac_status=$? |
d9898ee8 |
1508 | fi |
1509 | |
1510 | if test "$ac_init_help" = "recursive"; then |
1511 | # If there are subdirs, report their specific --help. |
d9898ee8 |
1512 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
dd184caf |
1513 | test -d "$ac_dir" || continue |
d9898ee8 |
1514 | ac_builddir=. |
1515 | |
dd184caf |
1516 | case "$ac_dir" in |
1517 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1518 | *) |
d9898ee8 |
1519 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dd184caf |
1520 | # A ".." for each directory in $ac_dir_suffix. |
1521 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1522 | case $ac_top_builddir_sub in |
1523 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1524 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1525 | esac ;; |
1526 | esac |
1527 | ac_abs_top_builddir=$ac_pwd |
1528 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1529 | # for backward compatibility: |
1530 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
1531 | |
1532 | case $srcdir in |
dd184caf |
1533 | .) # We are building in place. |
d9898ee8 |
1534 | ac_srcdir=. |
dd184caf |
1535 | ac_top_srcdir=$ac_top_builddir_sub |
1536 | ac_abs_top_srcdir=$ac_pwd ;; |
1537 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
1538 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf |
1539 | ac_top_srcdir=$srcdir |
1540 | ac_abs_top_srcdir=$srcdir ;; |
1541 | *) # Relative name. |
1542 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1543 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
1544 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
1545 | esac |
dd184caf |
1546 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1547 | |
1548 | cd "$ac_dir" || { ac_status=$?; continue; } |
1549 | # Check for guested configure. |
1550 | if test -f "$ac_srcdir/configure.gnu"; then |
1551 | echo && |
1552 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1553 | elif test -f "$ac_srcdir/configure"; then |
1554 | echo && |
1555 | $SHELL "$ac_srcdir/configure" --help=recursive |
d9898ee8 |
1556 | else |
1557 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
dd184caf |
1558 | fi || ac_status=$? |
1559 | cd "$ac_pwd" || { ac_status=$?; break; } |
d9898ee8 |
1560 | done |
1561 | fi |
1562 | |
dd184caf |
1563 | test -n "$ac_init_help" && exit $ac_status |
d9898ee8 |
1564 | if $ac_init_version; then |
1565 | cat <<\_ACEOF |
1566 | numlib configure 0.10 |
dd184caf |
1567 | generated by GNU Autoconf 2.61 |
d9898ee8 |
1568 | |
dd184caf |
1569 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1570 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
d9898ee8 |
1571 | This configure script is free software; the Free Software Foundation |
1572 | gives unlimited permission to copy, distribute and modify it. |
1573 | _ACEOF |
dd184caf |
1574 | exit |
d9898ee8 |
1575 | fi |
dd184caf |
1576 | cat >config.log <<_ACEOF |
d9898ee8 |
1577 | This file contains any messages produced by compilers while |
1578 | running configure, to aid debugging if configure makes a mistake. |
1579 | |
1580 | It was created by numlib $as_me 0.10, which was |
dd184caf |
1581 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
1582 | |
1583 | $ $0 $@ |
1584 | |
1585 | _ACEOF |
dd184caf |
1586 | exec 5>>config.log |
d9898ee8 |
1587 | { |
1588 | cat <<_ASUNAME |
1589 | ## --------- ## |
1590 | ## Platform. ## |
1591 | ## --------- ## |
1592 | |
1593 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1594 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1595 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1596 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1597 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1598 | |
1599 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1600 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1601 | |
1602 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1603 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1604 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
dd184caf |
1605 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
d9898ee8 |
1606 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1607 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1608 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1609 | |
1610 | _ASUNAME |
1611 | |
1612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1613 | for as_dir in $PATH |
1614 | do |
1615 | IFS=$as_save_IFS |
1616 | test -z "$as_dir" && as_dir=. |
1617 | echo "PATH: $as_dir" |
1618 | done |
dd184caf |
1619 | IFS=$as_save_IFS |
d9898ee8 |
1620 | |
1621 | } >&5 |
1622 | |
1623 | cat >&5 <<_ACEOF |
1624 | |
1625 | |
1626 | ## ----------- ## |
1627 | ## Core tests. ## |
1628 | ## ----------- ## |
1629 | |
1630 | _ACEOF |
1631 | |
1632 | |
1633 | # Keep a trace of the command line. |
1634 | # Strip out --no-create and --no-recursion so they do not pile up. |
1635 | # Strip out --silent because we don't want to record it for future runs. |
1636 | # Also quote any args containing shell meta-characters. |
1637 | # Make two passes to allow for proper duplicate-argument suppression. |
1638 | ac_configure_args= |
1639 | ac_configure_args0= |
1640 | ac_configure_args1= |
d9898ee8 |
1641 | ac_must_keep_next=false |
1642 | for ac_pass in 1 2 |
1643 | do |
1644 | for ac_arg |
1645 | do |
1646 | case $ac_arg in |
1647 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1648 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1649 | | -silent | --silent | --silen | --sile | --sil) |
1650 | continue ;; |
dd184caf |
1651 | *\'*) |
d9898ee8 |
1652 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1653 | esac |
1654 | case $ac_pass in |
1655 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1656 | 2) |
1657 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1658 | if test $ac_must_keep_next = true; then |
1659 | ac_must_keep_next=false # Got value, back to normal. |
1660 | else |
1661 | case $ac_arg in |
1662 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1663 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1664 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1665 | | -with-* | --with-* | -without-* | --without-* | --x) |
1666 | case "$ac_configure_args0 " in |
1667 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1668 | esac |
1669 | ;; |
1670 | -* ) ac_must_keep_next=true ;; |
1671 | esac |
1672 | fi |
dd184caf |
1673 | ac_configure_args="$ac_configure_args '$ac_arg'" |
d9898ee8 |
1674 | ;; |
1675 | esac |
1676 | done |
1677 | done |
1678 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1679 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1680 | |
1681 | # When interrupted or exit'd, cleanup temporary files, and complete |
1682 | # config.log. We remove comments because anyway the quotes in there |
1683 | # would cause problems or look ugly. |
dd184caf |
1684 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1685 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
d9898ee8 |
1686 | trap 'exit_status=$? |
1687 | # Save into config.log some information that might help in debugging. |
1688 | { |
1689 | echo |
1690 | |
1691 | cat <<\_ASBOX |
1692 | ## ---------------- ## |
1693 | ## Cache variables. ## |
1694 | ## ---------------- ## |
1695 | _ASBOX |
1696 | echo |
1697 | # The following way of writing the cache mishandles newlines in values, |
dd184caf |
1698 | ( |
1699 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1700 | eval ac_val=\$$ac_var |
1701 | case $ac_val in #( |
1702 | *${as_nl}*) |
1703 | case $ac_var in #( |
1704 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1705 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1706 | esac |
1707 | case $ac_var in #( |
1708 | _ | IFS | as_nl) ;; #( |
1709 | *) $as_unset $ac_var ;; |
1710 | esac ;; |
1711 | esac |
1712 | done |
d9898ee8 |
1713 | (set) 2>&1 | |
dd184caf |
1714 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1715 | *${as_nl}ac_space=\ *) |
d9898ee8 |
1716 | sed -n \ |
dd184caf |
1717 | "s/'\''/'\''\\\\'\'''\''/g; |
1718 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1719 | ;; #( |
d9898ee8 |
1720 | *) |
dd184caf |
1721 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
1722 | ;; |
dd184caf |
1723 | esac | |
1724 | sort |
1725 | ) |
d9898ee8 |
1726 | echo |
1727 | |
1728 | cat <<\_ASBOX |
1729 | ## ----------------- ## |
1730 | ## Output variables. ## |
1731 | ## ----------------- ## |
1732 | _ASBOX |
1733 | echo |
1734 | for ac_var in $ac_subst_vars |
1735 | do |
dd184caf |
1736 | eval ac_val=\$$ac_var |
1737 | case $ac_val in |
1738 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1739 | esac |
1740 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1741 | done | sort |
1742 | echo |
1743 | |
1744 | if test -n "$ac_subst_files"; then |
1745 | cat <<\_ASBOX |
dd184caf |
1746 | ## ------------------- ## |
1747 | ## File substitutions. ## |
1748 | ## ------------------- ## |
d9898ee8 |
1749 | _ASBOX |
1750 | echo |
1751 | for ac_var in $ac_subst_files |
1752 | do |
dd184caf |
1753 | eval ac_val=\$$ac_var |
1754 | case $ac_val in |
1755 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1756 | esac |
1757 | echo "$ac_var='\''$ac_val'\''" |
d9898ee8 |
1758 | done | sort |
1759 | echo |
1760 | fi |
1761 | |
1762 | if test -s confdefs.h; then |
1763 | cat <<\_ASBOX |
1764 | ## ----------- ## |
1765 | ## confdefs.h. ## |
1766 | ## ----------- ## |
1767 | _ASBOX |
1768 | echo |
dd184caf |
1769 | cat confdefs.h |
d9898ee8 |
1770 | echo |
1771 | fi |
1772 | test "$ac_signal" != 0 && |
1773 | echo "$as_me: caught signal $ac_signal" |
1774 | echo "$as_me: exit $exit_status" |
1775 | } >&5 |
dd184caf |
1776 | rm -f core *.core core.conftest.* && |
1777 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
d9898ee8 |
1778 | exit $exit_status |
dd184caf |
1779 | ' 0 |
d9898ee8 |
1780 | for ac_signal in 1 2 13 15; do |
1781 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1782 | done |
1783 | ac_signal=0 |
1784 | |
1785 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
dd184caf |
1786 | rm -f -r conftest* confdefs.h |
d9898ee8 |
1787 | |
1788 | # Predefined preprocessor variables. |
1789 | |
1790 | cat >>confdefs.h <<_ACEOF |
1791 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1792 | _ACEOF |
1793 | |
1794 | |
1795 | cat >>confdefs.h <<_ACEOF |
1796 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1797 | _ACEOF |
1798 | |
1799 | |
1800 | cat >>confdefs.h <<_ACEOF |
1801 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1802 | _ACEOF |
1803 | |
1804 | |
1805 | cat >>confdefs.h <<_ACEOF |
1806 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1807 | _ACEOF |
1808 | |
1809 | |
1810 | cat >>confdefs.h <<_ACEOF |
1811 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1812 | _ACEOF |
1813 | |
1814 | |
1815 | # Let the site file select an alternate cache file if it wants to. |
1816 | # Prefer explicitly selected file to automatically selected ones. |
dd184caf |
1817 | if test -n "$CONFIG_SITE"; then |
1818 | set x "$CONFIG_SITE" |
1819 | elif test "x$prefix" != xNONE; then |
1820 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1821 | else |
1822 | set x "$ac_default_prefix/share/config.site" \ |
1823 | "$ac_default_prefix/etc/config.site" |
d9898ee8 |
1824 | fi |
dd184caf |
1825 | shift |
1826 | for ac_site_file |
1827 | do |
d9898ee8 |
1828 | if test -r "$ac_site_file"; then |
1829 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1830 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1831 | sed 's/^/| /' "$ac_site_file" >&5 |
1832 | . "$ac_site_file" |
1833 | fi |
1834 | done |
1835 | |
1836 | if test -r "$cache_file"; then |
1837 | # Some versions of bash will fail to source /dev/null (special |
1838 | # files actually), so we avoid doing that. |
1839 | if test -f "$cache_file"; then |
1840 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1841 | echo "$as_me: loading cache $cache_file" >&6;} |
1842 | case $cache_file in |
dd184caf |
1843 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1844 | *) . "./$cache_file";; |
d9898ee8 |
1845 | esac |
1846 | fi |
1847 | else |
1848 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1849 | echo "$as_me: creating cache $cache_file" >&6;} |
1850 | >$cache_file |
1851 | fi |
1852 | |
1853 | # Check that the precious variables saved in the cache have kept the same |
1854 | # value. |
1855 | ac_cache_corrupted=false |
dd184caf |
1856 | for ac_var in $ac_precious_vars; do |
d9898ee8 |
1857 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1858 | eval ac_new_set=\$ac_env_${ac_var}_set |
dd184caf |
1859 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1860 | eval ac_new_val=\$ac_env_${ac_var}_value |
d9898ee8 |
1861 | case $ac_old_set,$ac_new_set in |
1862 | set,) |
1863 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1864 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1865 | ac_cache_corrupted=: ;; |
1866 | ,set) |
1867 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1868 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1869 | ac_cache_corrupted=: ;; |
1870 | ,);; |
1871 | *) |
1872 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1873 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1874 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1875 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1876 | echo "$as_me: former value: $ac_old_val" >&2;} |
1877 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1878 | echo "$as_me: current value: $ac_new_val" >&2;} |
1879 | ac_cache_corrupted=: |
1880 | fi;; |
1881 | esac |
1882 | # Pass precious variables to config.status. |
1883 | if test "$ac_new_set" = set; then |
1884 | case $ac_new_val in |
dd184caf |
1885 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
d9898ee8 |
1886 | *) ac_arg=$ac_var=$ac_new_val ;; |
1887 | esac |
1888 | case " $ac_configure_args " in |
1889 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1890 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1891 | esac |
1892 | fi |
1893 | done |
1894 | if $ac_cache_corrupted; then |
1895 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1896 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1897 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1898 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1899 | { (exit 1); exit 1; }; } |
1900 | fi |
1901 | |
d9898ee8 |
1902 | |
1903 | |
1904 | |
1905 | |
1906 | |
1907 | |
1908 | |
1909 | |
1910 | |
1911 | |
1912 | |
1913 | |
1914 | |
1915 | |
1916 | |
1917 | |
1918 | |
1919 | |
1920 | |
1921 | |
1922 | |
1923 | |
1924 | |
1925 | |
dd184caf |
1926 | ac_ext=c |
1927 | ac_cpp='$CPP $CPPFLAGS' |
1928 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1929 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1930 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
d9898ee8 |
1931 | |
1932 | |
1933 | |
1934 | >confdefs.h # Kill PACKAGE_ macros |
1935 | |
1936 | |
dd184caf |
1937 | ac_config_headers="$ac_config_headers config.h" |
1938 | |
1939 | am__api_version='1.10' |
d9898ee8 |
1940 | |
d9898ee8 |
1941 | ac_aux_dir= |
dd184caf |
1942 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1943 | if test -f "$ac_dir/install-sh"; then |
d9898ee8 |
1944 | ac_aux_dir=$ac_dir |
1945 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1946 | break |
dd184caf |
1947 | elif test -f "$ac_dir/install.sh"; then |
d9898ee8 |
1948 | ac_aux_dir=$ac_dir |
1949 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1950 | break |
dd184caf |
1951 | elif test -f "$ac_dir/shtool"; then |
d9898ee8 |
1952 | ac_aux_dir=$ac_dir |
1953 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1954 | break |
1955 | fi |
1956 | done |
1957 | if test -z "$ac_aux_dir"; then |
dd184caf |
1958 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1959 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
d9898ee8 |
1960 | { (exit 1); exit 1; }; } |
1961 | fi |
dd184caf |
1962 | |
1963 | # These three variables are undocumented and unsupported, |
1964 | # and are intended to be withdrawn in a future Autoconf release. |
1965 | # They can cause serious problems if a builder's source tree is in a directory |
1966 | # whose full name contains unusual characters. |
1967 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
1968 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
1969 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
1970 | |
d9898ee8 |
1971 | |
1972 | # Find a good install program. We prefer a C program (faster), |
1973 | # so one script is as good as another. But avoid the broken or |
1974 | # incompatible versions: |
1975 | # SysV /etc/install, /usr/sbin/install |
1976 | # SunOS /usr/etc/install |
1977 | # IRIX /sbin/install |
1978 | # AIX /bin/install |
1979 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1980 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1981 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1982 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1983 | # OS/2's system install, which has a completely different semantic |
1984 | # ./install, which can be erroneously created by make from ./install.sh. |
dd184caf |
1985 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1986 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
1987 | if test -z "$INSTALL"; then |
1988 | if test "${ac_cv_path_install+set}" = set; then |
1989 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1990 | else |
1991 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1992 | for as_dir in $PATH |
1993 | do |
1994 | IFS=$as_save_IFS |
1995 | test -z "$as_dir" && as_dir=. |
1996 | # Account for people who put trailing slashes in PATH elements. |
1997 | case $as_dir/ in |
1998 | ./ | .// | /cC/* | \ |
1999 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2000 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2001 | /usr/ucb/* ) ;; |
2002 | *) |
2003 | # OSF1 and SCO ODT 3.0 have their own names for install. |
2004 | # Don't use installbsd from OSF since it installs stuff as root |
2005 | # by default. |
2006 | for ac_prog in ginstall scoinst install; do |
2007 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2008 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
2009 | if test $ac_prog = install && |
2010 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2011 | # AIX install. It has an incompatible calling convention. |
2012 | : |
2013 | elif test $ac_prog = install && |
2014 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2015 | # program-specific install script used by HP pwplus--don't use. |
2016 | : |
2017 | else |
2018 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2019 | break 3 |
2020 | fi |
2021 | fi |
2022 | done |
2023 | done |
2024 | ;; |
2025 | esac |
2026 | done |
dd184caf |
2027 | IFS=$as_save_IFS |
d9898ee8 |
2028 | |
2029 | |
2030 | fi |
2031 | if test "${ac_cv_path_install+set}" = set; then |
2032 | INSTALL=$ac_cv_path_install |
2033 | else |
dd184caf |
2034 | # As a last resort, use the slow shell script. Don't cache a |
2035 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
2036 | # break other packages using the cache if that directory is |
dd184caf |
2037 | # removed, or if the value is a relative name. |
d9898ee8 |
2038 | INSTALL=$ac_install_sh |
2039 | fi |
2040 | fi |
dd184caf |
2041 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2042 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
2043 | |
2044 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2045 | # It thinks the first close brace ends the variable substitution. |
2046 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2047 | |
2048 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2049 | |
2050 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2051 | |
dd184caf |
2052 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2053 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
d9898ee8 |
2054 | # Just in case |
2055 | sleep 1 |
2056 | echo timestamp > conftest.file |
2057 | # Do `set' in a subshell so we don't clobber the current shell's |
2058 | # arguments. Must try -L first in case configure is actually a |
2059 | # symlink; some systems play weird games with the mod time of symlinks |
2060 | # (eg FreeBSD returns the mod time of the symlink's containing |
2061 | # directory). |
2062 | if ( |
2063 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
2064 | if test "$*" = "X"; then |
2065 | # -L didn't work. |
2066 | set X `ls -t $srcdir/configure conftest.file` |
2067 | fi |
2068 | rm -f conftest.file |
2069 | if test "$*" != "X $srcdir/configure conftest.file" \ |
2070 | && test "$*" != "X conftest.file $srcdir/configure"; then |
2071 | |
2072 | # If neither matched, then we have a broken ls. This can happen |
2073 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
2074 | # broken ls alias from the environment. This has actually |
2075 | # happened. Such a system could not be considered "sane". |
2076 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2077 | alias in your environment" >&5 |
2078 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
2079 | alias in your environment" >&2;} |
2080 | { (exit 1); exit 1; }; } |
2081 | fi |
2082 | |
2083 | test "$2" = conftest.file |
2084 | ) |
2085 | then |
2086 | # Ok. |
2087 | : |
2088 | else |
2089 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2090 | Check your system clock" >&5 |
2091 | echo "$as_me: error: newly created file is older than distributed files! |
2092 | Check your system clock" >&2;} |
2093 | { (exit 1); exit 1; }; } |
2094 | fi |
dd184caf |
2095 | { echo "$as_me:$LINENO: result: yes" >&5 |
2096 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2097 | test "$program_prefix" != NONE && |
dd184caf |
2098 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
d9898ee8 |
2099 | # Use a double $ so make ignores it. |
2100 | test "$program_suffix" != NONE && |
dd184caf |
2101 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
d9898ee8 |
2102 | # Double any \ or $. echo might interpret backslashes. |
2103 | # By default was `s,x,x', remove it if useless. |
2104 | cat <<\_ACEOF >conftest.sed |
2105 | s/[\\$]/&&/g;s/;s,x,x,$// |
2106 | _ACEOF |
2107 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
dd184caf |
2108 | rm -f conftest.sed |
d9898ee8 |
2109 | |
2110 | # expand $ac_aux_dir to an absolute path |
2111 | am_aux_dir=`cd $ac_aux_dir && pwd` |
2112 | |
2113 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
2114 | # Use eval to expand $SHELL |
2115 | if eval "$MISSING --run true"; then |
2116 | am_missing_run="$MISSING --run " |
2117 | else |
2118 | am_missing_run= |
2119 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2120 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2121 | fi |
2122 | |
dd184caf |
2123 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2124 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } |
2125 | if test -z "$MKDIR_P"; then |
2126 | if test "${ac_cv_path_mkdir+set}" = set; then |
2127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2128 | else |
2129 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2130 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2131 | do |
2132 | IFS=$as_save_IFS |
2133 | test -z "$as_dir" && as_dir=. |
2134 | for ac_prog in mkdir gmkdir; do |
2135 | for ac_exec_ext in '' $ac_executable_extensions; do |
2136 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
2137 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2138 | 'mkdir (GNU coreutils) '* | \ |
2139 | 'mkdir (coreutils) '* | \ |
2140 | 'mkdir (fileutils) '4.1*) |
2141 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2142 | break 3;; |
2143 | esac |
2144 | done |
2145 | done |
2146 | done |
2147 | IFS=$as_save_IFS |
2148 | |
2149 | fi |
2150 | |
2151 | if test "${ac_cv_path_mkdir+set}" = set; then |
2152 | MKDIR_P="$ac_cv_path_mkdir -p" |
d9898ee8 |
2153 | else |
dd184caf |
2154 | # As a last resort, use the slow shell script. Don't cache a |
2155 | # value for MKDIR_P within a source directory, because that will |
2156 | # break other packages using the cache if that directory is |
2157 | # removed, or if the value is a relative name. |
2158 | test -d ./--version && rmdir ./--version |
2159 | MKDIR_P="$ac_install_sh -d" |
d9898ee8 |
2160 | fi |
2161 | fi |
dd184caf |
2162 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2163 | echo "${ECHO_T}$MKDIR_P" >&6; } |
2164 | |
2165 | mkdir_p="$MKDIR_P" |
2166 | case $mkdir_p in |
2167 | [\\/$]* | ?:[\\/]*) ;; |
2168 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
2169 | esac |
d9898ee8 |
2170 | |
2171 | for ac_prog in gawk mawk nawk awk |
2172 | do |
2173 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2174 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2175 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2176 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2177 | if test "${ac_cv_prog_AWK+set}" = set; then |
2178 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2179 | else |
2180 | if test -n "$AWK"; then |
2181 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2182 | else |
2183 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2184 | for as_dir in $PATH |
2185 | do |
2186 | IFS=$as_save_IFS |
2187 | test -z "$as_dir" && as_dir=. |
2188 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2189 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2190 | ac_cv_prog_AWK="$ac_prog" |
2191 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2192 | break 2 |
2193 | fi |
2194 | done |
2195 | done |
dd184caf |
2196 | IFS=$as_save_IFS |
d9898ee8 |
2197 | |
2198 | fi |
2199 | fi |
2200 | AWK=$ac_cv_prog_AWK |
2201 | if test -n "$AWK"; then |
dd184caf |
2202 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2203 | echo "${ECHO_T}$AWK" >&6; } |
d9898ee8 |
2204 | else |
dd184caf |
2205 | { echo "$as_me:$LINENO: result: no" >&5 |
2206 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2207 | fi |
2208 | |
dd184caf |
2209 | |
d9898ee8 |
2210 | test -n "$AWK" && break |
2211 | done |
2212 | |
dd184caf |
2213 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2214 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
2215 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2216 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
2217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2218 | else |
2219 | cat >conftest.make <<\_ACEOF |
dd184caf |
2220 | SHELL = /bin/sh |
d9898ee8 |
2221 | all: |
dd184caf |
2222 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
d9898ee8 |
2223 | _ACEOF |
2224 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
dd184caf |
2225 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2226 | *@@@%%%=?*=@@@%%%*) |
2227 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
2228 | *) |
2229 | eval ac_cv_prog_make_${ac_make}_set=no;; |
2230 | esac |
d9898ee8 |
2231 | rm -f conftest.make |
2232 | fi |
dd184caf |
2233 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2234 | { echo "$as_me:$LINENO: result: yes" >&5 |
2235 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2236 | SET_MAKE= |
2237 | else |
dd184caf |
2238 | { echo "$as_me:$LINENO: result: no" >&5 |
2239 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2240 | SET_MAKE="MAKE=${MAKE-make}" |
2241 | fi |
2242 | |
2243 | rm -rf .tst 2>/dev/null |
2244 | mkdir .tst 2>/dev/null |
2245 | if test -d .tst; then |
2246 | am__leading_dot=. |
2247 | else |
2248 | am__leading_dot=_ |
2249 | fi |
2250 | rmdir .tst 2>/dev/null |
2251 | |
dd184caf |
2252 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2253 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2254 | # is not polluted with repeated "-I." |
2255 | am__isrc=' -I$(srcdir)' |
2256 | # test to see if srcdir already configured |
2257 | if test -f $srcdir/config.status; then |
2258 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
d9898ee8 |
2259 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2260 | { (exit 1); exit 1; }; } |
dd184caf |
2261 | fi |
d9898ee8 |
2262 | fi |
2263 | |
2264 | # test whether we have cygpath |
2265 | if test -z "$CYGPATH_W"; then |
2266 | if (cygpath --version) >/dev/null 2>/dev/null; then |
2267 | CYGPATH_W='cygpath -w' |
2268 | else |
2269 | CYGPATH_W=echo |
2270 | fi |
2271 | fi |
2272 | |
2273 | |
2274 | # Define the identity of the package. |
2275 | PACKAGE='numlib' |
2276 | VERSION='0.10' |
2277 | |
2278 | |
2279 | # Some tools Automake needs. |
2280 | |
2281 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2282 | |
2283 | |
2284 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2285 | |
2286 | |
2287 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2288 | |
2289 | |
2290 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2291 | |
2292 | |
2293 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2294 | |
dd184caf |
2295 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
d9898ee8 |
2296 | |
2297 | # Installed binaries are usually stripped using `strip' when the user |
2298 | # run `make install-strip'. However `strip' might not be the right |
2299 | # tool to use in cross-compilation environments, therefore Automake |
2300 | # will honor the `STRIP' environment variable to overrule this program. |
2301 | if test "$cross_compiling" != no; then |
2302 | if test -n "$ac_tool_prefix"; then |
2303 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2304 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
dd184caf |
2305 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2306 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2307 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2309 | else |
2310 | if test -n "$STRIP"; then |
2311 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2312 | else |
2313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2314 | for as_dir in $PATH |
2315 | do |
2316 | IFS=$as_save_IFS |
2317 | test -z "$as_dir" && as_dir=. |
2318 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2320 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2321 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2322 | break 2 |
2323 | fi |
2324 | done |
2325 | done |
dd184caf |
2326 | IFS=$as_save_IFS |
d9898ee8 |
2327 | |
2328 | fi |
2329 | fi |
2330 | STRIP=$ac_cv_prog_STRIP |
2331 | if test -n "$STRIP"; then |
dd184caf |
2332 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2333 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
2334 | else |
dd184caf |
2335 | { echo "$as_me:$LINENO: result: no" >&5 |
2336 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2337 | fi |
2338 | |
dd184caf |
2339 | |
d9898ee8 |
2340 | fi |
2341 | if test -z "$ac_cv_prog_STRIP"; then |
2342 | ac_ct_STRIP=$STRIP |
2343 | # Extract the first word of "strip", so it can be a program name with args. |
2344 | set dummy strip; ac_word=$2 |
dd184caf |
2345 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2346 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2347 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2349 | else |
2350 | if test -n "$ac_ct_STRIP"; then |
2351 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2352 | else |
2353 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2354 | for as_dir in $PATH |
2355 | do |
2356 | IFS=$as_save_IFS |
2357 | test -z "$as_dir" && as_dir=. |
2358 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2359 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2360 | ac_cv_prog_ac_ct_STRIP="strip" |
2361 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2362 | break 2 |
2363 | fi |
2364 | done |
2365 | done |
dd184caf |
2366 | IFS=$as_save_IFS |
d9898ee8 |
2367 | |
d9898ee8 |
2368 | fi |
2369 | fi |
2370 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2371 | if test -n "$ac_ct_STRIP"; then |
dd184caf |
2372 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2373 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
2374 | else |
dd184caf |
2375 | { echo "$as_me:$LINENO: result: no" >&5 |
2376 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2377 | fi |
2378 | |
dd184caf |
2379 | if test "x$ac_ct_STRIP" = x; then |
2380 | STRIP=":" |
2381 | else |
2382 | case $cross_compiling:$ac_tool_warned in |
2383 | yes:) |
2384 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2385 | whose name does not start with the host triplet. If you think this |
2386 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2387 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2388 | whose name does not start with the host triplet. If you think this |
2389 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2390 | ac_tool_warned=yes ;; |
2391 | esac |
2392 | STRIP=$ac_ct_STRIP |
2393 | fi |
d9898ee8 |
2394 | else |
2395 | STRIP="$ac_cv_prog_STRIP" |
2396 | fi |
2397 | |
2398 | fi |
dd184caf |
2399 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
d9898ee8 |
2400 | |
2401 | # We need awk for the "check" target. The system "awk" is bad on |
2402 | # some platforms. |
2403 | # Always define AMTAR for backward compatibility. |
2404 | |
2405 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
2406 | |
2407 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
2408 | |
2409 | |
2410 | |
2411 | |
2412 | |
2413 | |
2414 | for ac_prog in gawk mawk nawk awk |
2415 | do |
2416 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2417 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2418 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2420 | if test "${ac_cv_prog_AWK+set}" = set; then |
2421 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2422 | else |
2423 | if test -n "$AWK"; then |
2424 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2425 | else |
2426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2427 | for as_dir in $PATH |
2428 | do |
2429 | IFS=$as_save_IFS |
2430 | test -z "$as_dir" && as_dir=. |
2431 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2432 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2433 | ac_cv_prog_AWK="$ac_prog" |
2434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2435 | break 2 |
2436 | fi |
2437 | done |
2438 | done |
dd184caf |
2439 | IFS=$as_save_IFS |
d9898ee8 |
2440 | |
2441 | fi |
2442 | fi |
2443 | AWK=$ac_cv_prog_AWK |
2444 | if test -n "$AWK"; then |
dd184caf |
2445 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2446 | echo "${ECHO_T}$AWK" >&6; } |
d9898ee8 |
2447 | else |
dd184caf |
2448 | { echo "$as_me:$LINENO: result: no" >&5 |
2449 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2450 | fi |
2451 | |
dd184caf |
2452 | |
d9898ee8 |
2453 | test -n "$AWK" && break |
2454 | done |
2455 | |
2456 | ac_ext=c |
2457 | ac_cpp='$CPP $CPPFLAGS' |
2458 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2459 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2460 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2461 | if test -n "$ac_tool_prefix"; then |
2462 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2463 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
dd184caf |
2464 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2465 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2466 | if test "${ac_cv_prog_CC+set}" = set; then |
2467 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2468 | else |
2469 | if test -n "$CC"; then |
2470 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2471 | else |
2472 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2473 | for as_dir in $PATH |
2474 | do |
2475 | IFS=$as_save_IFS |
2476 | test -z "$as_dir" && as_dir=. |
2477 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2478 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2479 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2480 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2481 | break 2 |
2482 | fi |
2483 | done |
2484 | done |
dd184caf |
2485 | IFS=$as_save_IFS |
d9898ee8 |
2486 | |
2487 | fi |
2488 | fi |
2489 | CC=$ac_cv_prog_CC |
2490 | if test -n "$CC"; then |
dd184caf |
2491 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2492 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2493 | else |
dd184caf |
2494 | { echo "$as_me:$LINENO: result: no" >&5 |
2495 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2496 | fi |
2497 | |
dd184caf |
2498 | |
d9898ee8 |
2499 | fi |
2500 | if test -z "$ac_cv_prog_CC"; then |
2501 | ac_ct_CC=$CC |
2502 | # Extract the first word of "gcc", so it can be a program name with args. |
2503 | set dummy gcc; ac_word=$2 |
dd184caf |
2504 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2506 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2508 | else |
2509 | if test -n "$ac_ct_CC"; then |
2510 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2511 | else |
2512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2513 | for as_dir in $PATH |
2514 | do |
2515 | IFS=$as_save_IFS |
2516 | test -z "$as_dir" && as_dir=. |
2517 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2518 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2519 | ac_cv_prog_ac_ct_CC="gcc" |
2520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2521 | break 2 |
2522 | fi |
2523 | done |
2524 | done |
dd184caf |
2525 | IFS=$as_save_IFS |
d9898ee8 |
2526 | |
2527 | fi |
2528 | fi |
2529 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2530 | if test -n "$ac_ct_CC"; then |
dd184caf |
2531 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2532 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2533 | else |
dd184caf |
2534 | { echo "$as_me:$LINENO: result: no" >&5 |
2535 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2536 | fi |
2537 | |
dd184caf |
2538 | if test "x$ac_ct_CC" = x; then |
2539 | CC="" |
2540 | else |
2541 | case $cross_compiling:$ac_tool_warned in |
2542 | yes:) |
2543 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2544 | whose name does not start with the host triplet. If you think this |
2545 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2546 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2547 | whose name does not start with the host triplet. If you think this |
2548 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2549 | ac_tool_warned=yes ;; |
2550 | esac |
2551 | CC=$ac_ct_CC |
2552 | fi |
d9898ee8 |
2553 | else |
2554 | CC="$ac_cv_prog_CC" |
2555 | fi |
2556 | |
2557 | if test -z "$CC"; then |
dd184caf |
2558 | if test -n "$ac_tool_prefix"; then |
2559 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
d9898ee8 |
2560 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
dd184caf |
2561 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2562 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2563 | if test "${ac_cv_prog_CC+set}" = set; then |
2564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2565 | else |
2566 | if test -n "$CC"; then |
2567 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2568 | else |
2569 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2570 | for as_dir in $PATH |
2571 | do |
2572 | IFS=$as_save_IFS |
2573 | test -z "$as_dir" && as_dir=. |
2574 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2575 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2576 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2577 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2578 | break 2 |
2579 | fi |
2580 | done |
2581 | done |
dd184caf |
2582 | IFS=$as_save_IFS |
d9898ee8 |
2583 | |
2584 | fi |
2585 | fi |
2586 | CC=$ac_cv_prog_CC |
2587 | if test -n "$CC"; then |
dd184caf |
2588 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2589 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2590 | else |
dd184caf |
2591 | { echo "$as_me:$LINENO: result: no" >&5 |
2592 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2593 | fi |
2594 | |
d9898ee8 |
2595 | |
dd184caf |
2596 | fi |
d9898ee8 |
2597 | fi |
2598 | if test -z "$CC"; then |
2599 | # Extract the first word of "cc", so it can be a program name with args. |
2600 | set dummy cc; ac_word=$2 |
dd184caf |
2601 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2602 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2603 | if test "${ac_cv_prog_CC+set}" = set; then |
2604 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2605 | else |
2606 | if test -n "$CC"; then |
2607 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2608 | else |
2609 | ac_prog_rejected=no |
2610 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2611 | for as_dir in $PATH |
2612 | do |
2613 | IFS=$as_save_IFS |
2614 | test -z "$as_dir" && as_dir=. |
2615 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2616 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2617 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2618 | ac_prog_rejected=yes |
2619 | continue |
2620 | fi |
2621 | ac_cv_prog_CC="cc" |
2622 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2623 | break 2 |
2624 | fi |
2625 | done |
2626 | done |
dd184caf |
2627 | IFS=$as_save_IFS |
d9898ee8 |
2628 | |
2629 | if test $ac_prog_rejected = yes; then |
2630 | # We found a bogon in the path, so make sure we never use it. |
2631 | set dummy $ac_cv_prog_CC |
2632 | shift |
2633 | if test $# != 0; then |
2634 | # We chose a different compiler from the bogus one. |
2635 | # However, it has the same basename, so the bogon will be chosen |
2636 | # first if we set CC to just the basename; use the full file name. |
2637 | shift |
2638 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2639 | fi |
2640 | fi |
2641 | fi |
2642 | fi |
2643 | CC=$ac_cv_prog_CC |
2644 | if test -n "$CC"; then |
dd184caf |
2645 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2646 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2647 | else |
dd184caf |
2648 | { echo "$as_me:$LINENO: result: no" >&5 |
2649 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2650 | fi |
2651 | |
dd184caf |
2652 | |
d9898ee8 |
2653 | fi |
2654 | if test -z "$CC"; then |
2655 | if test -n "$ac_tool_prefix"; then |
dd184caf |
2656 | for ac_prog in cl.exe |
d9898ee8 |
2657 | do |
2658 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2659 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
2660 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2661 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2662 | if test "${ac_cv_prog_CC+set}" = set; then |
2663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2664 | else |
2665 | if test -n "$CC"; then |
2666 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2667 | else |
2668 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2669 | for as_dir in $PATH |
2670 | do |
2671 | IFS=$as_save_IFS |
2672 | test -z "$as_dir" && as_dir=. |
2673 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2674 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2675 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2676 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2677 | break 2 |
2678 | fi |
2679 | done |
2680 | done |
dd184caf |
2681 | IFS=$as_save_IFS |
d9898ee8 |
2682 | |
2683 | fi |
2684 | fi |
2685 | CC=$ac_cv_prog_CC |
2686 | if test -n "$CC"; then |
dd184caf |
2687 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2688 | echo "${ECHO_T}$CC" >&6; } |
d9898ee8 |
2689 | else |
dd184caf |
2690 | { echo "$as_me:$LINENO: result: no" >&5 |
2691 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2692 | fi |
2693 | |
dd184caf |
2694 | |
d9898ee8 |
2695 | test -n "$CC" && break |
2696 | done |
2697 | fi |
2698 | if test -z "$CC"; then |
2699 | ac_ct_CC=$CC |
dd184caf |
2700 | for ac_prog in cl.exe |
d9898ee8 |
2701 | do |
2702 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2703 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
2704 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2705 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
2706 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2708 | else |
2709 | if test -n "$ac_ct_CC"; then |
2710 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2711 | else |
2712 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2713 | for as_dir in $PATH |
2714 | do |
2715 | IFS=$as_save_IFS |
2716 | test -z "$as_dir" && as_dir=. |
2717 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
2718 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
2719 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2720 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2721 | break 2 |
2722 | fi |
2723 | done |
2724 | done |
dd184caf |
2725 | IFS=$as_save_IFS |
d9898ee8 |
2726 | |
2727 | fi |
2728 | fi |
2729 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2730 | if test -n "$ac_ct_CC"; then |
dd184caf |
2731 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2732 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
d9898ee8 |
2733 | else |
dd184caf |
2734 | { echo "$as_me:$LINENO: result: no" >&5 |
2735 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
2736 | fi |
2737 | |
dd184caf |
2738 | |
d9898ee8 |
2739 | test -n "$ac_ct_CC" && break |
2740 | done |
2741 | |
dd184caf |
2742 | if test "x$ac_ct_CC" = x; then |
2743 | CC="" |
2744 | else |
2745 | case $cross_compiling:$ac_tool_warned in |
2746 | yes:) |
2747 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2748 | whose name does not start with the host triplet. If you think this |
2749 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2750 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2751 | whose name does not start with the host triplet. If you think this |
2752 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2753 | ac_tool_warned=yes ;; |
2754 | esac |
2755 | CC=$ac_ct_CC |
2756 | fi |
d9898ee8 |
2757 | fi |
2758 | |
2759 | fi |
2760 | |
2761 | |
2762 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2763 | See \`config.log' for more details." >&5 |
2764 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2765 | See \`config.log' for more details." >&2;} |
2766 | { (exit 1); exit 1; }; } |
2767 | |
2768 | # Provide some information about the compiler. |
dd184caf |
2769 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
d9898ee8 |
2770 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
2771 | { (ac_try="$ac_compiler --version >&5" |
2772 | case "(($ac_try" in |
2773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2774 | *) ac_try_echo=$ac_try;; |
2775 | esac |
2776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2777 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
2778 | ac_status=$? |
2779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2780 | (exit $ac_status); } |
dd184caf |
2781 | { (ac_try="$ac_compiler -v >&5" |
2782 | case "(($ac_try" in |
2783 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2784 | *) ac_try_echo=$ac_try;; |
2785 | esac |
2786 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2787 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
2788 | ac_status=$? |
2789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2790 | (exit $ac_status); } |
dd184caf |
2791 | { (ac_try="$ac_compiler -V >&5" |
2792 | case "(($ac_try" in |
2793 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2794 | *) ac_try_echo=$ac_try;; |
2795 | esac |
2796 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2797 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
2798 | ac_status=$? |
2799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2800 | (exit $ac_status); } |
2801 | |
2802 | cat >conftest.$ac_ext <<_ACEOF |
2803 | /* confdefs.h. */ |
2804 | _ACEOF |
2805 | cat confdefs.h >>conftest.$ac_ext |
2806 | cat >>conftest.$ac_ext <<_ACEOF |
2807 | /* end confdefs.h. */ |
2808 | |
2809 | int |
2810 | main () |
2811 | { |
2812 | |
2813 | ; |
2814 | return 0; |
2815 | } |
2816 | _ACEOF |
2817 | ac_clean_files_save=$ac_clean_files |
2818 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2819 | # Try to create an executable without -o first, disregard a.out. |
2820 | # It will help us diagnose broken compilers, and finding out an intuition |
2821 | # of exeext. |
dd184caf |
2822 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2823 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
d9898ee8 |
2824 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
dd184caf |
2825 | # |
2826 | # List of possible output files, starting from the most likely. |
2827 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2828 | # only as a last resort. b.out is created by i960 compilers. |
2829 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2830 | # |
2831 | # The IRIX 6 linker writes into existing files which may not be |
2832 | # executable, retaining their permissions. Remove them first so a |
2833 | # subsequent execution test works. |
2834 | ac_rmfiles= |
2835 | for ac_file in $ac_files |
2836 | do |
2837 | case $ac_file in |
2838 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2839 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2840 | esac |
2841 | done |
2842 | rm -f $ac_rmfiles |
2843 | |
2844 | if { (ac_try="$ac_link_default" |
2845 | case "(($ac_try" in |
2846 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2847 | *) ac_try_echo=$ac_try;; |
2848 | esac |
2849 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2850 | (eval "$ac_link_default") 2>&5 |
d9898ee8 |
2851 | ac_status=$? |
2852 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2853 | (exit $ac_status); }; then |
dd184caf |
2854 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2855 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2856 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2857 | # so that the user can short-circuit this test for compilers unknown to |
2858 | # Autoconf. |
2859 | for ac_file in $ac_files '' |
d9898ee8 |
2860 | do |
2861 | test -f "$ac_file" || continue |
2862 | case $ac_file in |
dd184caf |
2863 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
d9898ee8 |
2864 | ;; |
2865 | [ab].out ) |
2866 | # We found the default executable, but exeext='' is most |
2867 | # certainly right. |
2868 | break;; |
2869 | *.* ) |
dd184caf |
2870 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2871 | then :; else |
2872 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2873 | fi |
2874 | # We set ac_cv_exeext here because the later test for it is not |
2875 | # safe: cross compilers may not add the suffix if given an `-o' |
2876 | # argument, so we may need to know it at that point already. |
2877 | # Even if this section looks crufty: it has the advantage of |
2878 | # actually working. |
d9898ee8 |
2879 | break;; |
2880 | * ) |
2881 | break;; |
2882 | esac |
2883 | done |
dd184caf |
2884 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2885 | |
d9898ee8 |
2886 | else |
dd184caf |
2887 | ac_file='' |
2888 | fi |
2889 | |
2890 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2891 | echo "${ECHO_T}$ac_file" >&6; } |
2892 | if test -z "$ac_file"; then |
d9898ee8 |
2893 | echo "$as_me: failed program was:" >&5 |
2894 | sed 's/^/| /' conftest.$ac_ext >&5 |
2895 | |
2896 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2897 | See \`config.log' for more details." >&5 |
2898 | echo "$as_me: error: C compiler cannot create executables |
2899 | See \`config.log' for more details." >&2;} |
2900 | { (exit 77); exit 77; }; } |
2901 | fi |
2902 | |
2903 | ac_exeext=$ac_cv_exeext |
d9898ee8 |
2904 | |
dd184caf |
2905 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
2906 | # the compiler is broken, or we cross compile. |
dd184caf |
2907 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2908 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
d9898ee8 |
2909 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2910 | # If not cross compiling, check that we can run a simple program. |
2911 | if test "$cross_compiling" != yes; then |
2912 | if { ac_try='./$ac_file' |
dd184caf |
2913 | { (case "(($ac_try" in |
2914 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2915 | *) ac_try_echo=$ac_try;; |
2916 | esac |
2917 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2918 | (eval "$ac_try") 2>&5 |
d9898ee8 |
2919 | ac_status=$? |
2920 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2921 | (exit $ac_status); }; }; then |
2922 | cross_compiling=no |
2923 | else |
2924 | if test "$cross_compiling" = maybe; then |
2925 | cross_compiling=yes |
2926 | else |
2927 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2928 | If you meant to cross compile, use \`--host'. |
2929 | See \`config.log' for more details." >&5 |
2930 | echo "$as_me: error: cannot run C compiled programs. |
2931 | If you meant to cross compile, use \`--host'. |
2932 | See \`config.log' for more details." >&2;} |
2933 | { (exit 1); exit 1; }; } |
2934 | fi |
2935 | fi |
2936 | fi |
dd184caf |
2937 | { echo "$as_me:$LINENO: result: yes" >&5 |
2938 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
2939 | |
2940 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
2941 | ac_clean_files=$ac_clean_files_save |
dd184caf |
2942 | # Check that the compiler produces executables we can run. If not, either |
d9898ee8 |
2943 | # the compiler is broken, or we cross compile. |
dd184caf |
2944 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
2945 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
2946 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
2947 | echo "${ECHO_T}$cross_compiling" >&6; } |
2948 | |
2949 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
2950 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
2951 | if { (ac_try="$ac_link" |
2952 | case "(($ac_try" in |
2953 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2954 | *) ac_try_echo=$ac_try;; |
2955 | esac |
2956 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2957 | (eval "$ac_link") 2>&5 |
d9898ee8 |
2958 | ac_status=$? |
2959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2960 | (exit $ac_status); }; then |
2961 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
2962 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
2963 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
2964 | # `rm'. |
2965 | for ac_file in conftest.exe conftest conftest.*; do |
2966 | test -f "$ac_file" || continue |
2967 | case $ac_file in |
dd184caf |
2968 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
d9898ee8 |
2969 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
d9898ee8 |
2970 | break;; |
2971 | * ) break;; |
2972 | esac |
2973 | done |
2974 | else |
2975 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
2976 | See \`config.log' for more details." >&5 |
2977 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
2978 | See \`config.log' for more details." >&2;} |
2979 | { (exit 1); exit 1; }; } |
2980 | fi |
2981 | |
2982 | rm -f conftest$ac_cv_exeext |
dd184caf |
2983 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
2984 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
d9898ee8 |
2985 | |
2986 | rm -f conftest.$ac_ext |
2987 | EXEEXT=$ac_cv_exeext |
2988 | ac_exeext=$EXEEXT |
dd184caf |
2989 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
2990 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
d9898ee8 |
2991 | if test "${ac_cv_objext+set}" = set; then |
2992 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2993 | else |
2994 | cat >conftest.$ac_ext <<_ACEOF |
2995 | /* confdefs.h. */ |
2996 | _ACEOF |
2997 | cat confdefs.h >>conftest.$ac_ext |
2998 | cat >>conftest.$ac_ext <<_ACEOF |
2999 | /* end confdefs.h. */ |
3000 | |
3001 | int |
3002 | main () |
3003 | { |
3004 | |
3005 | ; |
3006 | return 0; |
3007 | } |
3008 | _ACEOF |
3009 | rm -f conftest.o conftest.obj |
dd184caf |
3010 | if { (ac_try="$ac_compile" |
3011 | case "(($ac_try" in |
3012 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3013 | *) ac_try_echo=$ac_try;; |
3014 | esac |
3015 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3016 | (eval "$ac_compile") 2>&5 |
d9898ee8 |
3017 | ac_status=$? |
3018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3019 | (exit $ac_status); }; then |
dd184caf |
3020 | for ac_file in conftest.o conftest.obj conftest.*; do |
3021 | test -f "$ac_file" || continue; |
d9898ee8 |
3022 | case $ac_file in |
dd184caf |
3023 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
d9898ee8 |
3024 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3025 | break;; |
3026 | esac |
3027 | done |
3028 | else |
3029 | echo "$as_me: failed program was:" >&5 |
3030 | sed 's/^/| /' conftest.$ac_ext >&5 |
3031 | |
3032 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3033 | See \`config.log' for more details." >&5 |
3034 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
3035 | See \`config.log' for more details." >&2;} |
3036 | { (exit 1); exit 1; }; } |
3037 | fi |
3038 | |
3039 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3040 | fi |
dd184caf |
3041 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3042 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
d9898ee8 |
3043 | OBJEXT=$ac_cv_objext |
3044 | ac_objext=$OBJEXT |
dd184caf |
3045 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3046 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
d9898ee8 |
3047 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3049 | else |
3050 | cat >conftest.$ac_ext <<_ACEOF |
3051 | /* confdefs.h. */ |
3052 | _ACEOF |
3053 | cat confdefs.h >>conftest.$ac_ext |
3054 | cat >>conftest.$ac_ext <<_ACEOF |
3055 | /* end confdefs.h. */ |
3056 | |
3057 | int |
3058 | main () |
3059 | { |
3060 | #ifndef __GNUC__ |
3061 | choke me |
3062 | #endif |
3063 | |
3064 | ; |
3065 | return 0; |
3066 | } |
3067 | _ACEOF |
3068 | rm -f conftest.$ac_objext |
dd184caf |
3069 | if { (ac_try="$ac_compile" |
3070 | case "(($ac_try" in |
3071 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3072 | *) ac_try_echo=$ac_try;; |
3073 | esac |
3074 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3075 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3076 | ac_status=$? |
3077 | grep -v '^ *+' conftest.er1 >conftest.err |
3078 | rm -f conftest.er1 |
3079 | cat conftest.err >&5 |
3080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3081 | (exit $ac_status); } && { |
3082 | test -z "$ac_c_werror_flag" || |
3083 | test ! -s conftest.err |
3084 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3085 | ac_compiler_gnu=yes |
3086 | else |
3087 | echo "$as_me: failed program was:" >&5 |
3088 | sed 's/^/| /' conftest.$ac_ext >&5 |
3089 | |
dd184caf |
3090 | ac_compiler_gnu=no |
d9898ee8 |
3091 | fi |
dd184caf |
3092 | |
3093 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3094 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3095 | |
3096 | fi |
dd184caf |
3097 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3098 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
d9898ee8 |
3099 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3100 | ac_test_CFLAGS=${CFLAGS+set} |
3101 | ac_save_CFLAGS=$CFLAGS |
dd184caf |
3102 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3103 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
3104 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3105 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3106 | else |
dd184caf |
3107 | ac_save_c_werror_flag=$ac_c_werror_flag |
3108 | ac_c_werror_flag=yes |
3109 | ac_cv_prog_cc_g=no |
3110 | CFLAGS="-g" |
3111 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
3112 | /* confdefs.h. */ |
3113 | _ACEOF |
3114 | cat confdefs.h >>conftest.$ac_ext |
3115 | cat >>conftest.$ac_ext <<_ACEOF |
3116 | /* end confdefs.h. */ |
3117 | |
3118 | int |
3119 | main () |
3120 | { |
3121 | |
3122 | ; |
3123 | return 0; |
3124 | } |
3125 | _ACEOF |
3126 | rm -f conftest.$ac_objext |
dd184caf |
3127 | if { (ac_try="$ac_compile" |
3128 | case "(($ac_try" in |
3129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3130 | *) ac_try_echo=$ac_try;; |
3131 | esac |
3132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3133 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3134 | ac_status=$? |
3135 | grep -v '^ *+' conftest.er1 >conftest.err |
3136 | rm -f conftest.er1 |
3137 | cat conftest.err >&5 |
3138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3139 | (exit $ac_status); } && { |
3140 | test -z "$ac_c_werror_flag" || |
3141 | test ! -s conftest.err |
3142 | } && test -s conftest.$ac_objext; then |
3143 | ac_cv_prog_cc_g=yes |
3144 | else |
3145 | echo "$as_me: failed program was:" >&5 |
3146 | sed 's/^/| /' conftest.$ac_ext >&5 |
3147 | |
3148 | CFLAGS="" |
3149 | cat >conftest.$ac_ext <<_ACEOF |
3150 | /* confdefs.h. */ |
3151 | _ACEOF |
3152 | cat confdefs.h >>conftest.$ac_ext |
3153 | cat >>conftest.$ac_ext <<_ACEOF |
3154 | /* end confdefs.h. */ |
3155 | |
3156 | int |
3157 | main () |
3158 | { |
3159 | |
3160 | ; |
3161 | return 0; |
3162 | } |
3163 | _ACEOF |
3164 | rm -f conftest.$ac_objext |
3165 | if { (ac_try="$ac_compile" |
3166 | case "(($ac_try" in |
3167 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3168 | *) ac_try_echo=$ac_try;; |
3169 | esac |
3170 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3171 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3172 | ac_status=$? |
dd184caf |
3173 | grep -v '^ *+' conftest.er1 >conftest.err |
3174 | rm -f conftest.er1 |
3175 | cat conftest.err >&5 |
d9898ee8 |
3176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3177 | (exit $ac_status); } && { |
3178 | test -z "$ac_c_werror_flag" || |
3179 | test ! -s conftest.err |
3180 | } && test -s conftest.$ac_objext; then |
3181 | : |
3182 | else |
3183 | echo "$as_me: failed program was:" >&5 |
3184 | sed 's/^/| /' conftest.$ac_ext >&5 |
3185 | |
3186 | ac_c_werror_flag=$ac_save_c_werror_flag |
3187 | CFLAGS="-g" |
3188 | cat >conftest.$ac_ext <<_ACEOF |
3189 | /* confdefs.h. */ |
3190 | _ACEOF |
3191 | cat confdefs.h >>conftest.$ac_ext |
3192 | cat >>conftest.$ac_ext <<_ACEOF |
3193 | /* end confdefs.h. */ |
3194 | |
3195 | int |
3196 | main () |
3197 | { |
3198 | |
3199 | ; |
3200 | return 0; |
3201 | } |
3202 | _ACEOF |
3203 | rm -f conftest.$ac_objext |
3204 | if { (ac_try="$ac_compile" |
3205 | case "(($ac_try" in |
3206 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3207 | *) ac_try_echo=$ac_try;; |
3208 | esac |
3209 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3210 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3211 | ac_status=$? |
dd184caf |
3212 | grep -v '^ *+' conftest.er1 >conftest.err |
3213 | rm -f conftest.er1 |
3214 | cat conftest.err >&5 |
d9898ee8 |
3215 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3216 | (exit $ac_status); } && { |
3217 | test -z "$ac_c_werror_flag" || |
3218 | test ! -s conftest.err |
3219 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
3220 | ac_cv_prog_cc_g=yes |
3221 | else |
3222 | echo "$as_me: failed program was:" >&5 |
3223 | sed 's/^/| /' conftest.$ac_ext >&5 |
3224 | |
dd184caf |
3225 | |
3226 | fi |
3227 | |
3228 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3229 | fi |
3230 | |
3231 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
3232 | fi |
dd184caf |
3233 | |
3234 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3235 | ac_c_werror_flag=$ac_save_c_werror_flag |
d9898ee8 |
3236 | fi |
dd184caf |
3237 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3238 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
d9898ee8 |
3239 | if test "$ac_test_CFLAGS" = set; then |
3240 | CFLAGS=$ac_save_CFLAGS |
3241 | elif test $ac_cv_prog_cc_g = yes; then |
3242 | if test "$GCC" = yes; then |
3243 | CFLAGS="-g -O2" |
3244 | else |
3245 | CFLAGS="-g" |
3246 | fi |
3247 | else |
3248 | if test "$GCC" = yes; then |
3249 | CFLAGS="-O2" |
3250 | else |
3251 | CFLAGS= |
3252 | fi |
3253 | fi |
dd184caf |
3254 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3255 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3256 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
d9898ee8 |
3257 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3258 | else |
dd184caf |
3259 | ac_cv_prog_cc_c89=no |
d9898ee8 |
3260 | ac_save_CC=$CC |
3261 | cat >conftest.$ac_ext <<_ACEOF |
3262 | /* confdefs.h. */ |
3263 | _ACEOF |
3264 | cat confdefs.h >>conftest.$ac_ext |
3265 | cat >>conftest.$ac_ext <<_ACEOF |
3266 | /* end confdefs.h. */ |
3267 | #include <stdarg.h> |
3268 | #include <stdio.h> |
3269 | #include <sys/types.h> |
3270 | #include <sys/stat.h> |
3271 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3272 | struct buf { int x; }; |
3273 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3274 | static char *e (p, i) |
3275 | char **p; |
3276 | int i; |
3277 | { |
3278 | return p[i]; |
3279 | } |
3280 | static char *f (char * (*g) (char **, int), char **p, ...) |
3281 | { |
3282 | char *s; |
3283 | va_list v; |
3284 | va_start (v,p); |
3285 | s = g (p, va_arg (v,int)); |
3286 | va_end (v); |
3287 | return s; |
3288 | } |
3289 | |
3290 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3291 | function prototypes and stuff, but not '\xHH' hex character constants. |
3292 | These don't provoke an error unfortunately, instead are silently treated |
dd184caf |
3293 | as 'x'. The following induces an error, until -std is added to get |
d9898ee8 |
3294 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3295 | array size at least. It's necessary to write '\x00'==0 to get something |
dd184caf |
3296 | that's true only with -std. */ |
d9898ee8 |
3297 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3298 | |
dd184caf |
3299 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3300 | inside strings and character constants. */ |
3301 | #define FOO(x) 'x' |
3302 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3303 | |
d9898ee8 |
3304 | int test (int i, double x); |
3305 | struct s1 {int (*f) (int a);}; |
3306 | struct s2 {int (*f) (double a);}; |
3307 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3308 | int argc; |
3309 | char **argv; |
3310 | int |
3311 | main () |
3312 | { |
3313 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3314 | ; |
3315 | return 0; |
3316 | } |
3317 | _ACEOF |
dd184caf |
3318 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3319 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
d9898ee8 |
3320 | do |
3321 | CC="$ac_save_CC $ac_arg" |
3322 | rm -f conftest.$ac_objext |
dd184caf |
3323 | if { (ac_try="$ac_compile" |
3324 | case "(($ac_try" in |
3325 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3326 | *) ac_try_echo=$ac_try;; |
3327 | esac |
3328 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3329 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
3330 | ac_status=$? |
3331 | grep -v '^ *+' conftest.er1 >conftest.err |
3332 | rm -f conftest.er1 |
3333 | cat conftest.err >&5 |
3334 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
3335 | (exit $ac_status); } && { |
3336 | test -z "$ac_c_werror_flag" || |
3337 | test ! -s conftest.err |
3338 | } && test -s conftest.$ac_objext; then |
3339 | ac_cv_prog_cc_c89=$ac_arg |
d9898ee8 |
3340 | else |
3341 | echo "$as_me: failed program was:" >&5 |
3342 | sed 's/^/| /' conftest.$ac_ext >&5 |
3343 | |
dd184caf |
3344 | |
d9898ee8 |
3345 | fi |
dd184caf |
3346 | |
3347 | rm -f core conftest.err conftest.$ac_objext |
3348 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
d9898ee8 |
3349 | done |
dd184caf |
3350 | rm -f conftest.$ac_ext |
d9898ee8 |
3351 | CC=$ac_save_CC |
3352 | |
3353 | fi |
dd184caf |
3354 | # AC_CACHE_VAL |
3355 | case "x$ac_cv_prog_cc_c89" in |
3356 | x) |
3357 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3358 | echo "${ECHO_T}none needed" >&6; } ;; |
3359 | xno) |
3360 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3361 | echo "${ECHO_T}unsupported" >&6; } ;; |
d9898ee8 |
3362 | *) |
dd184caf |
3363 | CC="$CC $ac_cv_prog_cc_c89" |
3364 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3365 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
d9898ee8 |
3366 | esac |
3367 | |
d9898ee8 |
3368 | |
d9898ee8 |
3369 | ac_ext=c |
3370 | ac_cpp='$CPP $CPPFLAGS' |
3371 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3372 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3373 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3374 | DEPDIR="${am__leading_dot}deps" |
3375 | |
dd184caf |
3376 | ac_config_commands="$ac_config_commands depfiles" |
d9898ee8 |
3377 | |
3378 | |
3379 | am_make=${MAKE-make} |
3380 | cat > confinc << 'END' |
3381 | am__doit: |
3382 | @echo done |
3383 | .PHONY: am__doit |
3384 | END |
3385 | # If we don't find an include directive, just comment out the code. |
dd184caf |
3386 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3387 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
d9898ee8 |
3388 | am__include="#" |
3389 | am__quote= |
3390 | _am_result=none |
3391 | # First try GNU make style include. |
3392 | echo "include confinc" > confmf |
3393 | # We grep out `Entering directory' and `Leaving directory' |
3394 | # messages which can occur if `w' ends up in MAKEFLAGS. |
3395 | # In particular we don't look at `^make:' because GNU make might |
3396 | # be invoked under some other name (usually "gmake"), in which |
3397 | # case it prints its new name instead of `make'. |
3398 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
3399 | am__include=include |
3400 | am__quote= |
3401 | _am_result=GNU |
3402 | fi |
3403 | # Now try BSD make style include. |
3404 | if test "$am__include" = "#"; then |
3405 | echo '.include "confinc"' > confmf |
3406 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
3407 | am__include=.include |
3408 | am__quote="\"" |
3409 | _am_result=BSD |
3410 | fi |
3411 | fi |
3412 | |
3413 | |
dd184caf |
3414 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
3415 | echo "${ECHO_T}$_am_result" >&6; } |
d9898ee8 |
3416 | rm -f confinc confmf |
3417 | |
dd184caf |
3418 | # Check whether --enable-dependency-tracking was given. |
d9898ee8 |
3419 | if test "${enable_dependency_tracking+set}" = set; then |
dd184caf |
3420 | enableval=$enable_dependency_tracking; |
3421 | fi |
d9898ee8 |
3422 | |
d9898ee8 |
3423 | if test "x$enable_dependency_tracking" != xno; then |
3424 | am_depcomp="$ac_aux_dir/depcomp" |
3425 | AMDEPBACKSLASH='\' |
3426 | fi |
dd184caf |
3427 | if test "x$enable_dependency_tracking" != xno; then |
d9898ee8 |
3428 | AMDEP_TRUE= |
3429 | AMDEP_FALSE='#' |
3430 | else |
3431 | AMDEP_TRUE='#' |
3432 | AMDEP_FALSE= |
3433 | fi |
3434 | |
3435 | |
3436 | |
d9898ee8 |
3437 | depcc="$CC" am_compiler_list= |
3438 | |
dd184caf |
3439 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3440 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
3441 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3442 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3443 | else |
3444 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3445 | # We make a subdir and do the tests there. Otherwise we can end up |
3446 | # making bogus files that we don't know about and never remove. For |
3447 | # instance it was reported that on HP-UX the gcc test will end up |
3448 | # making a dummy file named `D' -- because `-MD' means `put the output |
3449 | # in D'. |
3450 | mkdir conftest.dir |
3451 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3452 | # using a relative directory. |
3453 | cp "$am_depcomp" conftest.dir |
3454 | cd conftest.dir |
3455 | # We will build objects and dependencies in a subdirectory because |
3456 | # it helps to detect inapplicable dependency modes. For instance |
3457 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3458 | # side effect of compilation, but ICC will put the dependencies in |
3459 | # the current directory while Tru64 will put them in the object |
3460 | # directory. |
3461 | mkdir sub |
3462 | |
3463 | am_cv_CC_dependencies_compiler_type=none |
3464 | if test "$am_compiler_list" = ""; then |
3465 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3466 | fi |
3467 | for depmode in $am_compiler_list; do |
3468 | # Setup a source with many dependencies, because some compilers |
3469 | # like to wrap large dependency lists on column 80 (with \), and |
3470 | # we should not choose a depcomp mode which is confused by this. |
3471 | # |
3472 | # We need to recreate these files for each test, as the compiler may |
3473 | # overwrite some of them when testing with obscure command lines. |
3474 | # This happens at least with the AIX C compiler. |
3475 | : > sub/conftest.c |
3476 | for i in 1 2 3 4 5 6; do |
3477 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3478 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3479 | # Solaris 8's {/usr,}/bin/sh. |
3480 | touch sub/conftst$i.h |
3481 | done |
3482 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3483 | |
3484 | case $depmode in |
3485 | nosideeffect) |
3486 | # after this tag, mechanisms are not by side-effect, so they'll |
3487 | # only be used when explicitly requested |
3488 | if test "x$enable_dependency_tracking" = xyes; then |
3489 | continue |
3490 | else |
3491 | break |
3492 | fi |
3493 | ;; |
3494 | none) break ;; |
3495 | esac |
3496 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3497 | # mode. It turns out that the SunPro C++ compiler does not properly |
3498 | # handle `-M -o', and we need to detect this. |
3499 | if depmode=$depmode \ |
3500 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3501 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3502 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3503 | >/dev/null 2>conftest.err && |
dd184caf |
3504 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
3505 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3506 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3507 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3508 | # icc doesn't choke on unknown options, it will just issue warnings |
3509 | # or remarks (even with -Werror). So we grep stderr for any message |
3510 | # that says an option was ignored or not supported. |
3511 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3512 | # icc: Command line warning: ignoring option '-M'; no argument required |
3513 | # The diagnosis changed in icc 8.0: |
3514 | # icc: Command line remark: option '-MP' not supported |
3515 | if (grep 'ignoring option' conftest.err || |
3516 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3517 | am_cv_CC_dependencies_compiler_type=$depmode |
3518 | break |
3519 | fi |
3520 | fi |
3521 | done |
3522 | |
3523 | cd .. |
3524 | rm -rf conftest.dir |
3525 | else |
3526 | am_cv_CC_dependencies_compiler_type=none |
3527 | fi |
3528 | |
3529 | fi |
dd184caf |
3530 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3531 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
d9898ee8 |
3532 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3533 | |
dd184caf |
3534 | if |
d9898ee8 |
3535 | test "x$enable_dependency_tracking" != xno \ |
3536 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3537 | am__fastdepCC_TRUE= |
3538 | am__fastdepCC_FALSE='#' |
3539 | else |
3540 | am__fastdepCC_TRUE='#' |
3541 | am__fastdepCC_FALSE= |
3542 | fi |
3543 | |
3544 | |
3545 | # Find a good install program. We prefer a C program (faster), |
3546 | # so one script is as good as another. But avoid the broken or |
3547 | # incompatible versions: |
3548 | # SysV /etc/install, /usr/sbin/install |
3549 | # SunOS /usr/etc/install |
3550 | # IRIX /sbin/install |
3551 | # AIX /bin/install |
3552 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
3553 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
3554 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
3555 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
3556 | # OS/2's system install, which has a completely different semantic |
3557 | # ./install, which can be erroneously created by make from ./install.sh. |
dd184caf |
3558 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
3559 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
d9898ee8 |
3560 | if test -z "$INSTALL"; then |
3561 | if test "${ac_cv_path_install+set}" = set; then |
3562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3563 | else |
3564 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3565 | for as_dir in $PATH |
3566 | do |
3567 | IFS=$as_save_IFS |
3568 | test -z "$as_dir" && as_dir=. |
3569 | # Account for people who put trailing slashes in PATH elements. |
3570 | case $as_dir/ in |
3571 | ./ | .// | /cC/* | \ |
3572 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
3573 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
3574 | /usr/ucb/* ) ;; |
3575 | *) |
3576 | # OSF1 and SCO ODT 3.0 have their own names for install. |
3577 | # Don't use installbsd from OSF since it installs stuff as root |
3578 | # by default. |
3579 | for ac_prog in ginstall scoinst install; do |
3580 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
3581 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
d9898ee8 |
3582 | if test $ac_prog = install && |
3583 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3584 | # AIX install. It has an incompatible calling convention. |
3585 | : |
3586 | elif test $ac_prog = install && |
3587 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
3588 | # program-specific install script used by HP pwplus--don't use. |
3589 | : |
3590 | else |
3591 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
3592 | break 3 |
3593 | fi |
3594 | fi |
3595 | done |
3596 | done |
3597 | ;; |
3598 | esac |
3599 | done |
dd184caf |
3600 | IFS=$as_save_IFS |
d9898ee8 |
3601 | |
3602 | |
3603 | fi |
3604 | if test "${ac_cv_path_install+set}" = set; then |
3605 | INSTALL=$ac_cv_path_install |
3606 | else |
dd184caf |
3607 | # As a last resort, use the slow shell script. Don't cache a |
3608 | # value for INSTALL within a source directory, because that will |
d9898ee8 |
3609 | # break other packages using the cache if that directory is |
dd184caf |
3610 | # removed, or if the value is a relative name. |
d9898ee8 |
3611 | INSTALL=$ac_install_sh |
3612 | fi |
3613 | fi |
dd184caf |
3614 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
3615 | echo "${ECHO_T}$INSTALL" >&6; } |
d9898ee8 |
3616 | |
3617 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
3618 | # It thinks the first close brace ends the variable substitution. |
3619 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
3620 | |
3621 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
3622 | |
3623 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
3624 | |
dd184caf |
3625 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3626 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
d9898ee8 |
3627 | LN_S=$as_ln_s |
3628 | if test "$LN_S" = "ln -s"; then |
dd184caf |
3629 | { echo "$as_me:$LINENO: result: yes" >&5 |
3630 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
3631 | else |
dd184caf |
3632 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3633 | echo "${ECHO_T}no, using $LN_S" >&6; } |
d9898ee8 |
3634 | fi |
3635 | |
dd184caf |
3636 | # Check whether --enable-shared was given. |
d9898ee8 |
3637 | if test "${enable_shared+set}" = set; then |
dd184caf |
3638 | enableval=$enable_shared; p=${PACKAGE-default} |
d9898ee8 |
3639 | case $enableval in |
3640 | yes) enable_shared=yes ;; |
3641 | no) enable_shared=no ;; |
3642 | *) |
3643 | enable_shared=no |
3644 | # Look at the argument we got. We use all the common list separators. |
3645 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3646 | for pkg in $enableval; do |
3647 | IFS="$lt_save_ifs" |
3648 | if test "X$pkg" = "X$p"; then |
3649 | enable_shared=yes |
3650 | fi |
3651 | done |
3652 | IFS="$lt_save_ifs" |
3653 | ;; |
3654 | esac |
3655 | else |
3656 | enable_shared=yes |
dd184caf |
3657 | fi |
d9898ee8 |
3658 | |
dd184caf |
3659 | |
3660 | # Check whether --enable-static was given. |
d9898ee8 |
3661 | if test "${enable_static+set}" = set; then |
dd184caf |
3662 | enableval=$enable_static; p=${PACKAGE-default} |
d9898ee8 |
3663 | case $enableval in |
3664 | yes) enable_static=yes ;; |
3665 | no) enable_static=no ;; |
3666 | *) |
3667 | enable_static=no |
3668 | # Look at the argument we got. We use all the common list separators. |
3669 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3670 | for pkg in $enableval; do |
3671 | IFS="$lt_save_ifs" |
3672 | if test "X$pkg" = "X$p"; then |
3673 | enable_static=yes |
3674 | fi |
3675 | done |
3676 | IFS="$lt_save_ifs" |
3677 | ;; |
3678 | esac |
3679 | else |
3680 | enable_static=yes |
dd184caf |
3681 | fi |
d9898ee8 |
3682 | |
dd184caf |
3683 | |
3684 | # Check whether --enable-fast-install was given. |
d9898ee8 |
3685 | if test "${enable_fast_install+set}" = set; then |
dd184caf |
3686 | enableval=$enable_fast_install; p=${PACKAGE-default} |
d9898ee8 |
3687 | case $enableval in |
3688 | yes) enable_fast_install=yes ;; |
3689 | no) enable_fast_install=no ;; |
3690 | *) |
3691 | enable_fast_install=no |
3692 | # Look at the argument we got. We use all the common list separators. |
3693 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3694 | for pkg in $enableval; do |
3695 | IFS="$lt_save_ifs" |
3696 | if test "X$pkg" = "X$p"; then |
3697 | enable_fast_install=yes |
3698 | fi |
3699 | done |
3700 | IFS="$lt_save_ifs" |
3701 | ;; |
3702 | esac |
3703 | else |
3704 | enable_fast_install=yes |
dd184caf |
3705 | fi |
3706 | |
d9898ee8 |
3707 | |
3708 | # Make sure we can run config.sub. |
dd184caf |
3709 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
3710 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
3711 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
d9898ee8 |
3712 | { (exit 1); exit 1; }; } |
3713 | |
dd184caf |
3714 | { echo "$as_me:$LINENO: checking build system type" >&5 |
3715 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
d9898ee8 |
3716 | if test "${ac_cv_build+set}" = set; then |
3717 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3718 | else |
dd184caf |
3719 | ac_build_alias=$build_alias |
3720 | test "x$ac_build_alias" = x && |
3721 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
3722 | test "x$ac_build_alias" = x && |
d9898ee8 |
3723 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
3724 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
3725 | { (exit 1); exit 1; }; } |
dd184caf |
3726 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
3727 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
3728 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
d9898ee8 |
3729 | { (exit 1); exit 1; }; } |
3730 | |
3731 | fi |
dd184caf |
3732 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
3733 | echo "${ECHO_T}$ac_cv_build" >&6; } |
3734 | case $ac_cv_build in |
3735 | *-*-*) ;; |
3736 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
3737 | echo "$as_me: error: invalid value of canonical build" >&2;} |
3738 | { (exit 1); exit 1; }; };; |
3739 | esac |
d9898ee8 |
3740 | build=$ac_cv_build |
dd184caf |
3741 | ac_save_IFS=$IFS; IFS='-' |
3742 | set x $ac_cv_build |
3743 | shift |
3744 | build_cpu=$1 |
3745 | build_vendor=$2 |
3746 | shift; shift |
3747 | # Remember, the first character of IFS is used to create $*, |
3748 | # except with old shells: |
3749 | build_os=$* |
3750 | IFS=$ac_save_IFS |
3751 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
3752 | |
3753 | |
3754 | { echo "$as_me:$LINENO: checking host system type" >&5 |
3755 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
d9898ee8 |
3756 | if test "${ac_cv_host+set}" = set; then |
3757 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3758 | else |
dd184caf |
3759 | if test "x$host_alias" = x; then |
3760 | ac_cv_host=$ac_cv_build |
3761 | else |
3762 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
3763 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
3764 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
d9898ee8 |
3765 | { (exit 1); exit 1; }; } |
dd184caf |
3766 | fi |
d9898ee8 |
3767 | |
3768 | fi |
dd184caf |
3769 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
3770 | echo "${ECHO_T}$ac_cv_host" >&6; } |
3771 | case $ac_cv_host in |
3772 | *-*-*) ;; |
3773 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
3774 | echo "$as_me: error: invalid value of canonical host" >&2;} |
3775 | { (exit 1); exit 1; }; };; |
3776 | esac |
d9898ee8 |
3777 | host=$ac_cv_host |
dd184caf |
3778 | ac_save_IFS=$IFS; IFS='-' |
3779 | set x $ac_cv_host |
3780 | shift |
3781 | host_cpu=$1 |
3782 | host_vendor=$2 |
3783 | shift; shift |
3784 | # Remember, the first character of IFS is used to create $*, |
3785 | # except with old shells: |
3786 | host_os=$* |
3787 | IFS=$ac_save_IFS |
3788 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
3789 | |
3790 | |
3791 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3792 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
d9898ee8 |
3793 | if test "${lt_cv_path_SED+set}" = set; then |
3794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3795 | else |
3796 | # Loop through the user's path and test for sed and gsed. |
3797 | # Then use that list of sed's as ones to test for truncation. |
3798 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3799 | for as_dir in $PATH |
3800 | do |
3801 | IFS=$as_save_IFS |
3802 | test -z "$as_dir" && as_dir=. |
3803 | for lt_ac_prog in sed gsed; do |
3804 | for ac_exec_ext in '' $ac_executable_extensions; do |
3805 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
3806 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3807 | fi |
3808 | done |
3809 | done |
3810 | done |
3811 | IFS=$as_save_IFS |
3812 | lt_ac_max=0 |
3813 | lt_ac_count=0 |
3814 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3815 | # along with /bin/sed that truncates output. |
3816 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
3817 | test ! -f $lt_ac_sed && continue |
3818 | cat /dev/null > conftest.in |
3819 | lt_ac_count=0 |
3820 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
3821 | # Check for GNU sed and select it if it is found. |
3822 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
3823 | lt_cv_path_SED=$lt_ac_sed |
3824 | break |
3825 | fi |
3826 | while true; do |
3827 | cat conftest.in conftest.in >conftest.tmp |
3828 | mv conftest.tmp conftest.in |
3829 | cp conftest.in conftest.nl |
3830 | echo >>conftest.nl |
3831 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
3832 | cmp -s conftest.out conftest.nl || break |
3833 | # 10000 chars as input seems more than enough |
3834 | test $lt_ac_count -gt 10 && break |
3835 | lt_ac_count=`expr $lt_ac_count + 1` |
3836 | if test $lt_ac_count -gt $lt_ac_max; then |
3837 | lt_ac_max=$lt_ac_count |
3838 | lt_cv_path_SED=$lt_ac_sed |
3839 | fi |
3840 | done |
3841 | done |
3842 | |
3843 | fi |
3844 | |
3845 | SED=$lt_cv_path_SED |
3846 | |
dd184caf |
3847 | { echo "$as_me:$LINENO: result: $SED" >&5 |
3848 | echo "${ECHO_T}$SED" >&6; } |
3849 | |
3850 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3851 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3852 | if test "${ac_cv_path_GREP+set}" = set; then |
3853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3854 | else |
3855 | # Extract the first word of "grep ggrep" to use in msg output |
3856 | if test -z "$GREP"; then |
3857 | set dummy grep ggrep; ac_prog_name=$2 |
3858 | if test "${ac_cv_path_GREP+set}" = set; then |
3859 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3860 | else |
3861 | ac_path_GREP_found=false |
3862 | # Loop through the user's path and test for each of PROGNAME-LIST |
3863 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3864 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3865 | do |
3866 | IFS=$as_save_IFS |
3867 | test -z "$as_dir" && as_dir=. |
3868 | for ac_prog in grep ggrep; do |
3869 | for ac_exec_ext in '' $ac_executable_extensions; do |
3870 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3871 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
3872 | # Check for GNU ac_path_GREP and select it if it is found. |
3873 | # Check for GNU $ac_path_GREP |
3874 | case `"$ac_path_GREP" --version 2>&1` in |
3875 | *GNU*) |
3876 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
3877 | *) |
3878 | ac_count=0 |
3879 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3880 | while : |
3881 | do |
3882 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3883 | mv "conftest.tmp" "conftest.in" |
3884 | cp "conftest.in" "conftest.nl" |
3885 | echo 'GREP' >> "conftest.nl" |
3886 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3887 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3888 | ac_count=`expr $ac_count + 1` |
3889 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
3890 | # Best one so far, save it but keep looking for a better one |
3891 | ac_cv_path_GREP="$ac_path_GREP" |
3892 | ac_path_GREP_max=$ac_count |
3893 | fi |
3894 | # 10*(2^10) chars as input seems more than enough |
3895 | test $ac_count -gt 10 && break |
3896 | done |
3897 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3898 | esac |
3899 | |
3900 | |
3901 | $ac_path_GREP_found && break 3 |
3902 | done |
3903 | done |
3904 | |
3905 | done |
3906 | IFS=$as_save_IFS |
3907 | |
3908 | |
3909 | fi |
3910 | |
3911 | GREP="$ac_cv_path_GREP" |
3912 | if test -z "$GREP"; then |
3913 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3914 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3915 | { (exit 1); exit 1; }; } |
3916 | fi |
3917 | |
3918 | else |
3919 | ac_cv_path_GREP=$GREP |
3920 | fi |
3921 | |
3922 | |
3923 | fi |
3924 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3925 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
3926 | GREP="$ac_cv_path_GREP" |
3927 | |
d9898ee8 |
3928 | |
dd184caf |
3929 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3930 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
3931 | if test "${ac_cv_path_EGREP+set}" = set; then |
3932 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3933 | else |
3934 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3935 | then ac_cv_path_EGREP="$GREP -E" |
3936 | else |
3937 | # Extract the first word of "egrep" to use in msg output |
3938 | if test -z "$EGREP"; then |
3939 | set dummy egrep; ac_prog_name=$2 |
3940 | if test "${ac_cv_path_EGREP+set}" = set; then |
d9898ee8 |
3941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3942 | else |
dd184caf |
3943 | ac_path_EGREP_found=false |
3944 | # Loop through the user's path and test for each of PROGNAME-LIST |
3945 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3946 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3947 | do |
3948 | IFS=$as_save_IFS |
3949 | test -z "$as_dir" && as_dir=. |
3950 | for ac_prog in egrep; do |
3951 | for ac_exec_ext in '' $ac_executable_extensions; do |
3952 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3953 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
3954 | # Check for GNU ac_path_EGREP and select it if it is found. |
3955 | # Check for GNU $ac_path_EGREP |
3956 | case `"$ac_path_EGREP" --version 2>&1` in |
3957 | *GNU*) |
3958 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
3959 | *) |
3960 | ac_count=0 |
3961 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3962 | while : |
3963 | do |
3964 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3965 | mv "conftest.tmp" "conftest.in" |
3966 | cp "conftest.in" "conftest.nl" |
3967 | echo 'EGREP' >> "conftest.nl" |
3968 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3969 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3970 | ac_count=`expr $ac_count + 1` |
3971 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
3972 | # Best one so far, save it but keep looking for a better one |
3973 | ac_cv_path_EGREP="$ac_path_EGREP" |
3974 | ac_path_EGREP_max=$ac_count |
d9898ee8 |
3975 | fi |
dd184caf |
3976 | # 10*(2^10) chars as input seems more than enough |
3977 | test $ac_count -gt 10 && break |
3978 | done |
3979 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3980 | esac |
3981 | |
3982 | |
3983 | $ac_path_EGREP_found && break 3 |
3984 | done |
3985 | done |
3986 | |
3987 | done |
3988 | IFS=$as_save_IFS |
3989 | |
3990 | |
3991 | fi |
3992 | |
3993 | EGREP="$ac_cv_path_EGREP" |
3994 | if test -z "$EGREP"; then |
3995 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3996 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3997 | { (exit 1); exit 1; }; } |
3998 | fi |
3999 | |
4000 | else |
4001 | ac_cv_path_EGREP=$EGREP |
4002 | fi |
4003 | |
4004 | |
4005 | fi |
d9898ee8 |
4006 | fi |
dd184caf |
4007 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4008 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
4009 | EGREP="$ac_cv_path_EGREP" |
d9898ee8 |
4010 | |
4011 | |
4012 | |
dd184caf |
4013 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
4014 | if test "${with_gnu_ld+set}" = set; then |
dd184caf |
4015 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
4016 | else |
4017 | with_gnu_ld=no |
dd184caf |
4018 | fi |
4019 | |
d9898ee8 |
4020 | ac_prog=ld |
4021 | if test "$GCC" = yes; then |
4022 | # Check if gcc -print-prog-name=ld gives a path. |
dd184caf |
4023 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4024 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
4025 | case $host in |
4026 | *-*-mingw*) |
4027 | # gcc leaves a trailing carriage return which upsets mingw |
4028 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4029 | *) |
4030 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4031 | esac |
4032 | case $ac_prog in |
4033 | # Accept absolute paths. |
4034 | [\\/]* | ?:[\\/]*) |
4035 | re_direlt='/[^/][^/]*/\.\./' |
4036 | # Canonicalize the pathname of ld |
4037 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
4038 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
4039 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
4040 | done |
4041 | test -z "$LD" && LD="$ac_prog" |
4042 | ;; |
4043 | "") |
4044 | # If it fails, then pretend we aren't using GCC. |
4045 | ac_prog=ld |
4046 | ;; |
4047 | *) |
4048 | # If it is relative, then search for the first ld in PATH. |
4049 | with_gnu_ld=unknown |
4050 | ;; |
4051 | esac |
4052 | elif test "$with_gnu_ld" = yes; then |
dd184caf |
4053 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4054 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4055 | else |
dd184caf |
4056 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4057 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4058 | fi |
4059 | if test "${lt_cv_path_LD+set}" = set; then |
4060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4061 | else |
4062 | if test -z "$LD"; then |
4063 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4064 | for ac_dir in $PATH; do |
4065 | IFS="$lt_save_ifs" |
4066 | test -z "$ac_dir" && ac_dir=. |
4067 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4068 | lt_cv_path_LD="$ac_dir/$ac_prog" |
4069 | # Check to see if the program is GNU ld. I'd rather use --version, |
4070 | # but apparently some variants of GNU ld only accept -v. |
4071 | # Break only if it was the GNU/non-GNU ld that we prefer. |
4072 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4073 | *GNU* | *'with BFD'*) |
4074 | test "$with_gnu_ld" != no && break |
4075 | ;; |
4076 | *) |
4077 | test "$with_gnu_ld" != yes && break |
4078 | ;; |
4079 | esac |
4080 | fi |
4081 | done |
4082 | IFS="$lt_save_ifs" |
4083 | else |
4084 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4085 | fi |
4086 | fi |
4087 | |
4088 | LD="$lt_cv_path_LD" |
4089 | if test -n "$LD"; then |
dd184caf |
4090 | { echo "$as_me:$LINENO: result: $LD" >&5 |
4091 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
4092 | else |
dd184caf |
4093 | { echo "$as_me:$LINENO: result: no" >&5 |
4094 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
4095 | fi |
4096 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4097 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
4098 | { (exit 1); exit 1; }; } |
dd184caf |
4099 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4100 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
4101 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4102 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4103 | else |
4104 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4105 | case `$LD -v 2>&1 </dev/null` in |
4106 | *GNU* | *'with BFD'*) |
4107 | lt_cv_prog_gnu_ld=yes |
4108 | ;; |
4109 | *) |
4110 | lt_cv_prog_gnu_ld=no |
4111 | ;; |
4112 | esac |
4113 | fi |
dd184caf |
4114 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4115 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
4116 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4117 | |
4118 | |
dd184caf |
4119 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
4120 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
d9898ee8 |
4121 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
4122 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4123 | else |
4124 | lt_cv_ld_reload_flag='-r' |
4125 | fi |
dd184caf |
4126 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4127 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
d9898ee8 |
4128 | reload_flag=$lt_cv_ld_reload_flag |
4129 | case $reload_flag in |
4130 | "" | " "*) ;; |
4131 | *) reload_flag=" $reload_flag" ;; |
4132 | esac |
4133 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4134 | case $host_os in |
4135 | darwin*) |
4136 | if test "$GCC" = yes; then |
4137 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
4138 | else |
4139 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4140 | fi |
4141 | ;; |
4142 | esac |
4143 | |
dd184caf |
4144 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4145 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
d9898ee8 |
4146 | if test "${lt_cv_path_NM+set}" = set; then |
4147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4148 | else |
4149 | if test -n "$NM"; then |
4150 | # Let the user override the test. |
4151 | lt_cv_path_NM="$NM" |
4152 | else |
4153 | lt_nm_to_check="${ac_tool_prefix}nm" |
4154 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4155 | lt_nm_to_check="$lt_nm_to_check nm" |
4156 | fi |
4157 | for lt_tmp_nm in $lt_nm_to_check; do |
4158 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4159 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4160 | IFS="$lt_save_ifs" |
4161 | test -z "$ac_dir" && ac_dir=. |
4162 | tmp_nm="$ac_dir/$lt_tmp_nm" |
4163 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4164 | # Check to see if the nm accepts a BSD-compat flag. |
4165 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4166 | # nm: unknown option "B" ignored |
4167 | # Tru64's nm complains that /dev/null is an invalid object file |
4168 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4169 | */dev/null* | *'Invalid file or object type'*) |
4170 | lt_cv_path_NM="$tmp_nm -B" |
4171 | break |
4172 | ;; |
4173 | *) |
4174 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4175 | */dev/null*) |
4176 | lt_cv_path_NM="$tmp_nm -p" |
4177 | break |
4178 | ;; |
4179 | *) |
4180 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4181 | continue # so that we can try to find one that supports BSD flags |
4182 | ;; |
4183 | esac |
4184 | ;; |
4185 | esac |
4186 | fi |
4187 | done |
4188 | IFS="$lt_save_ifs" |
4189 | done |
4190 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4191 | fi |
4192 | fi |
dd184caf |
4193 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4194 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
d9898ee8 |
4195 | NM="$lt_cv_path_NM" |
4196 | |
dd184caf |
4197 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
4198 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
d9898ee8 |
4199 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4200 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4201 | else |
4202 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4203 | lt_cv_file_magic_test_file= |
4204 | lt_cv_deplibs_check_method='unknown' |
4205 | # Need to set the preceding variable on all platforms that support |
4206 | # interlibrary dependencies. |
4207 | # 'none' -- dependencies not supported. |
4208 | # `unknown' -- same as none, but documents that we really don't know. |
4209 | # 'pass_all' -- all dependencies passed with no checks. |
4210 | # 'test_compile' -- check by making test program. |
4211 | # 'file_magic [[regex]]' -- check by looking for files in library path |
4212 | # which responds to the $file_magic_cmd with a given extended regex. |
4213 | # If you have `file' or equivalent on your system and you're not sure |
4214 | # whether `pass_all' will *always* work, you probably want this one. |
4215 | |
4216 | case $host_os in |
4217 | aix4* | aix5*) |
4218 | lt_cv_deplibs_check_method=pass_all |
4219 | ;; |
4220 | |
4221 | beos*) |
4222 | lt_cv_deplibs_check_method=pass_all |
4223 | ;; |
4224 | |
4225 | bsdi[45]*) |
4226 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4227 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
4228 | lt_cv_file_magic_test_file=/shlib/libc.so |
4229 | ;; |
4230 | |
4231 | cygwin*) |
4232 | # func_win32_libid is a shell function defined in ltmain.sh |
4233 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4234 | lt_cv_file_magic_cmd='func_win32_libid' |
4235 | ;; |
4236 | |
4237 | mingw* | pw32*) |
4238 | # Base MSYS/MinGW do not provide the 'file' command needed by |
4239 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
4240 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4241 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4242 | ;; |
4243 | |
4244 | darwin* | rhapsody*) |
4245 | lt_cv_deplibs_check_method=pass_all |
4246 | ;; |
4247 | |
4248 | freebsd* | kfreebsd*-gnu | dragonfly*) |
4249 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4250 | case $host_cpu in |
4251 | i*86 ) |
4252 | # Not sure whether the presence of OpenBSD here was a mistake. |
4253 | # Let's accept both of them until this is cleared up. |
4254 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
4255 | lt_cv_file_magic_cmd=/usr/bin/file |
4256 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4257 | ;; |
4258 | esac |
4259 | else |
4260 | lt_cv_deplibs_check_method=pass_all |
4261 | fi |
4262 | ;; |
4263 | |
4264 | gnu*) |
4265 | lt_cv_deplibs_check_method=pass_all |
4266 | ;; |
4267 | |
4268 | hpux10.20* | hpux11*) |
4269 | lt_cv_file_magic_cmd=/usr/bin/file |
4270 | case $host_cpu in |
4271 | ia64*) |
4272 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4273 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4274 | ;; |
4275 | hppa*64*) |
4276 | 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]' |
4277 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4278 | ;; |
4279 | *) |
4280 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4281 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4282 | ;; |
4283 | esac |
4284 | ;; |
4285 | |
4286 | interix3*) |
4287 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
4288 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
4289 | ;; |
4290 | |
4291 | irix5* | irix6* | nonstopux*) |
4292 | case $LD in |
4293 | *-32|*"-32 ") libmagic=32-bit;; |
4294 | *-n32|*"-n32 ") libmagic=N32;; |
4295 | *-64|*"-64 ") libmagic=64-bit;; |
4296 | *) libmagic=never-match;; |
4297 | esac |
4298 | lt_cv_deplibs_check_method=pass_all |
4299 | ;; |
4300 | |
4301 | # This must be Linux ELF. |
4302 | linux*) |
4303 | lt_cv_deplibs_check_method=pass_all |
4304 | ;; |
4305 | |
4306 | netbsd*) |
4307 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4308 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4309 | else |
4310 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4311 | fi |
4312 | ;; |
4313 | |
4314 | newos6*) |
4315 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
4316 | lt_cv_file_magic_cmd=/usr/bin/file |
4317 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4318 | ;; |
4319 | |
4320 | nto-qnx*) |
4321 | lt_cv_deplibs_check_method=unknown |
4322 | ;; |
4323 | |
4324 | openbsd*) |
4325 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4326 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
4327 | else |
4328 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4329 | fi |
4330 | ;; |
4331 | |
4332 | osf3* | osf4* | osf5*) |
4333 | lt_cv_deplibs_check_method=pass_all |
4334 | ;; |
4335 | |
4336 | solaris*) |
4337 | lt_cv_deplibs_check_method=pass_all |
4338 | ;; |
4339 | |
4340 | sysv4 | sysv4.3*) |
4341 | case $host_vendor in |
4342 | motorola) |
4343 | 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]' |
4344 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
4345 | ;; |
4346 | ncr) |
4347 | lt_cv_deplibs_check_method=pass_all |
4348 | ;; |
4349 | sequent) |
4350 | lt_cv_file_magic_cmd='/bin/file' |
4351 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
4352 | ;; |
4353 | sni) |
4354 | lt_cv_file_magic_cmd='/bin/file' |
4355 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
4356 | lt_cv_file_magic_test_file=/lib/libc.so |
4357 | ;; |
4358 | siemens) |
4359 | lt_cv_deplibs_check_method=pass_all |
4360 | ;; |
4361 | pc) |
4362 | lt_cv_deplibs_check_method=pass_all |
4363 | ;; |
4364 | esac |
4365 | ;; |
4366 | |
4367 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4368 | lt_cv_deplibs_check_method=pass_all |
4369 | ;; |
4370 | esac |
4371 | |
4372 | fi |
dd184caf |
4373 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4374 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
d9898ee8 |
4375 | file_magic_cmd=$lt_cv_file_magic_cmd |
4376 | deplibs_check_method=$lt_cv_deplibs_check_method |
4377 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4378 | |
4379 | |
4380 | |
4381 | |
4382 | # If no C compiler was specified, use CC. |
4383 | LTCC=${LTCC-"$CC"} |
4384 | |
4385 | # If no C compiler flags were specified, use CFLAGS. |
4386 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
4387 | |
4388 | # Allow CC to be a program name with arguments. |
4389 | compiler=$CC |
4390 | |
4391 | |
dd184caf |
4392 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
4393 | if test "${enable_libtool_lock+set}" = set; then |
dd184caf |
4394 | enableval=$enable_libtool_lock; |
4395 | fi |
d9898ee8 |
4396 | |
d9898ee8 |
4397 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4398 | |
4399 | # Some flags need to be propagated to the compiler or linker for good |
4400 | # libtool support. |
4401 | case $host in |
4402 | ia64-*-hpux*) |
4403 | # Find out which ABI we are using. |
4404 | echo 'int i;' > conftest.$ac_ext |
4405 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4406 | (eval $ac_compile) 2>&5 |
4407 | ac_status=$? |
4408 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4409 | (exit $ac_status); }; then |
4410 | case `/usr/bin/file conftest.$ac_objext` in |
4411 | *ELF-32*) |
4412 | HPUX_IA64_MODE="32" |
4413 | ;; |
4414 | *ELF-64*) |
4415 | HPUX_IA64_MODE="64" |
4416 | ;; |
4417 | esac |
4418 | fi |
4419 | rm -rf conftest* |
4420 | ;; |
4421 | *-*-irix6*) |
4422 | # Find out which ABI we are using. |
dd184caf |
4423 | echo '#line 4423 "configure"' > conftest.$ac_ext |
d9898ee8 |
4424 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4425 | (eval $ac_compile) 2>&5 |
4426 | ac_status=$? |
4427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4428 | (exit $ac_status); }; then |
4429 | if test "$lt_cv_prog_gnu_ld" = yes; then |
4430 | case `/usr/bin/file conftest.$ac_objext` in |
4431 | *32-bit*) |
4432 | LD="${LD-ld} -melf32bsmip" |
4433 | ;; |
4434 | *N32*) |
4435 | LD="${LD-ld} -melf32bmipn32" |
4436 | ;; |
4437 | *64-bit*) |
4438 | LD="${LD-ld} -melf64bmip" |
4439 | ;; |
4440 | esac |
4441 | else |
4442 | case `/usr/bin/file conftest.$ac_objext` in |
4443 | *32-bit*) |
4444 | LD="${LD-ld} -32" |
4445 | ;; |
4446 | *N32*) |
4447 | LD="${LD-ld} -n32" |
4448 | ;; |
4449 | *64-bit*) |
4450 | LD="${LD-ld} -64" |
4451 | ;; |
4452 | esac |
4453 | fi |
4454 | fi |
4455 | rm -rf conftest* |
4456 | ;; |
4457 | |
4458 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4459 | # Find out which ABI we are using. |
4460 | echo 'int i;' > conftest.$ac_ext |
4461 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4462 | (eval $ac_compile) 2>&5 |
4463 | ac_status=$? |
4464 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4465 | (exit $ac_status); }; then |
4466 | case `/usr/bin/file conftest.o` in |
4467 | *32-bit*) |
4468 | case $host in |
4469 | x86_64-*linux*) |
4470 | LD="${LD-ld} -m elf_i386" |
4471 | ;; |
4472 | ppc64-*linux*|powerpc64-*linux*) |
4473 | LD="${LD-ld} -m elf32ppclinux" |
4474 | ;; |
4475 | s390x-*linux*) |
4476 | LD="${LD-ld} -m elf_s390" |
4477 | ;; |
4478 | sparc64-*linux*) |
4479 | LD="${LD-ld} -m elf32_sparc" |
4480 | ;; |
4481 | esac |
4482 | ;; |
4483 | *64-bit*) |
4484 | case $host in |
4485 | x86_64-*linux*) |
4486 | LD="${LD-ld} -m elf_x86_64" |
4487 | ;; |
4488 | ppc*-*linux*|powerpc*-*linux*) |
4489 | LD="${LD-ld} -m elf64ppc" |
4490 | ;; |
4491 | s390*-*linux*) |
4492 | LD="${LD-ld} -m elf64_s390" |
4493 | ;; |
4494 | sparc*-*linux*) |
4495 | LD="${LD-ld} -m elf64_sparc" |
4496 | ;; |
4497 | esac |
4498 | ;; |
4499 | esac |
4500 | fi |
4501 | rm -rf conftest* |
4502 | ;; |
4503 | |
4504 | *-*-sco3.2v5*) |
4505 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
4506 | SAVE_CFLAGS="$CFLAGS" |
4507 | CFLAGS="$CFLAGS -belf" |
dd184caf |
4508 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4509 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
d9898ee8 |
4510 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
4511 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4512 | else |
4513 | ac_ext=c |
4514 | ac_cpp='$CPP $CPPFLAGS' |
4515 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4516 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4517 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4518 | |
4519 | cat >conftest.$ac_ext <<_ACEOF |
4520 | /* confdefs.h. */ |
4521 | _ACEOF |
4522 | cat confdefs.h >>conftest.$ac_ext |
4523 | cat >>conftest.$ac_ext <<_ACEOF |
4524 | /* end confdefs.h. */ |
4525 | |
4526 | int |
4527 | main () |
4528 | { |
4529 | |
4530 | ; |
4531 | return 0; |
4532 | } |
4533 | _ACEOF |
4534 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
4535 | if { (ac_try="$ac_link" |
4536 | case "(($ac_try" in |
4537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4538 | *) ac_try_echo=$ac_try;; |
4539 | esac |
4540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4541 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
4542 | ac_status=$? |
4543 | grep -v '^ *+' conftest.er1 >conftest.err |
4544 | rm -f conftest.er1 |
4545 | cat conftest.err >&5 |
4546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4547 | (exit $ac_status); } && { |
4548 | test -z "$ac_c_werror_flag" || |
4549 | test ! -s conftest.err |
4550 | } && test -s conftest$ac_exeext && |
4551 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
4552 | lt_cv_cc_needs_belf=yes |
4553 | else |
4554 | echo "$as_me: failed program was:" >&5 |
4555 | sed 's/^/| /' conftest.$ac_ext >&5 |
4556 | |
dd184caf |
4557 | lt_cv_cc_needs_belf=no |
d9898ee8 |
4558 | fi |
dd184caf |
4559 | |
4560 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
4561 | conftest$ac_exeext conftest.$ac_ext |
4562 | ac_ext=c |
4563 | ac_cpp='$CPP $CPPFLAGS' |
4564 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4565 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4566 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4567 | |
4568 | fi |
dd184caf |
4569 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4570 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
d9898ee8 |
4571 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4572 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4573 | CFLAGS="$SAVE_CFLAGS" |
4574 | fi |
4575 | ;; |
4576 | sparc*-*solaris*) |
4577 | # Find out which ABI we are using. |
4578 | echo 'int i;' > conftest.$ac_ext |
4579 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4580 | (eval $ac_compile) 2>&5 |
4581 | ac_status=$? |
4582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4583 | (exit $ac_status); }; then |
4584 | case `/usr/bin/file conftest.o` in |
4585 | *64-bit*) |
4586 | case $lt_cv_prog_gnu_ld in |
4587 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
4588 | *) LD="${LD-ld} -64" ;; |
4589 | esac |
4590 | ;; |
4591 | esac |
4592 | fi |
4593 | rm -rf conftest* |
4594 | ;; |
4595 | |
4596 | |
4597 | esac |
4598 | |
4599 | need_locks="$enable_libtool_lock" |
4600 | |
4601 | |
4602 | ac_ext=c |
4603 | ac_cpp='$CPP $CPPFLAGS' |
4604 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4605 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4606 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
dd184caf |
4607 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4608 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
4609 | # On Suns, sometimes $CPP names a directory. |
4610 | if test -n "$CPP" && test -d "$CPP"; then |
4611 | CPP= |
4612 | fi |
4613 | if test -z "$CPP"; then |
4614 | if test "${ac_cv_prog_CPP+set}" = set; then |
4615 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4616 | else |
4617 | # Double quotes because CPP needs to be expanded |
4618 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4619 | do |
4620 | ac_preproc_ok=false |
4621 | for ac_c_preproc_warn_flag in '' yes |
4622 | do |
4623 | # Use a header file that comes with gcc, so configuring glibc |
4624 | # with a fresh cross-compiler works. |
4625 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4626 | # <limits.h> exists even on freestanding compilers. |
4627 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4628 | # not just through cpp. "Syntax error" is here to catch this case. |
4629 | cat >conftest.$ac_ext <<_ACEOF |
4630 | /* confdefs.h. */ |
4631 | _ACEOF |
4632 | cat confdefs.h >>conftest.$ac_ext |
4633 | cat >>conftest.$ac_ext <<_ACEOF |
4634 | /* end confdefs.h. */ |
4635 | #ifdef __STDC__ |
4636 | # include <limits.h> |
4637 | #else |
4638 | # include <assert.h> |
4639 | #endif |
4640 | Syntax error |
4641 | _ACEOF |
dd184caf |
4642 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4643 | case "(($ac_try" in |
4644 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4645 | *) ac_try_echo=$ac_try;; |
4646 | esac |
4647 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4648 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4649 | ac_status=$? |
4650 | grep -v '^ *+' conftest.er1 >conftest.err |
4651 | rm -f conftest.er1 |
4652 | cat conftest.err >&5 |
4653 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4654 | (exit $ac_status); } >/dev/null && { |
4655 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4656 | test ! -s conftest.err |
4657 | }; then |
d9898ee8 |
4658 | : |
4659 | else |
4660 | echo "$as_me: failed program was:" >&5 |
4661 | sed 's/^/| /' conftest.$ac_ext >&5 |
4662 | |
4663 | # Broken: fails on valid input. |
4664 | continue |
4665 | fi |
dd184caf |
4666 | |
d9898ee8 |
4667 | rm -f conftest.err conftest.$ac_ext |
4668 | |
dd184caf |
4669 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
4670 | # can be detected and how. |
4671 | cat >conftest.$ac_ext <<_ACEOF |
4672 | /* confdefs.h. */ |
4673 | _ACEOF |
4674 | cat confdefs.h >>conftest.$ac_ext |
4675 | cat >>conftest.$ac_ext <<_ACEOF |
4676 | /* end confdefs.h. */ |
4677 | #include <ac_nonexistent.h> |
4678 | _ACEOF |
dd184caf |
4679 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4680 | case "(($ac_try" in |
4681 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4682 | *) ac_try_echo=$ac_try;; |
4683 | esac |
4684 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4685 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4686 | ac_status=$? |
4687 | grep -v '^ *+' conftest.er1 >conftest.err |
4688 | rm -f conftest.er1 |
4689 | cat conftest.err >&5 |
4690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4691 | (exit $ac_status); } >/dev/null && { |
4692 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4693 | test ! -s conftest.err |
4694 | }; then |
d9898ee8 |
4695 | # Broken: success on invalid input. |
4696 | continue |
4697 | else |
4698 | echo "$as_me: failed program was:" >&5 |
4699 | sed 's/^/| /' conftest.$ac_ext >&5 |
4700 | |
4701 | # Passes both tests. |
4702 | ac_preproc_ok=: |
4703 | break |
4704 | fi |
dd184caf |
4705 | |
d9898ee8 |
4706 | rm -f conftest.err conftest.$ac_ext |
4707 | |
4708 | done |
4709 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4710 | rm -f conftest.err conftest.$ac_ext |
4711 | if $ac_preproc_ok; then |
4712 | break |
4713 | fi |
4714 | |
4715 | done |
4716 | ac_cv_prog_CPP=$CPP |
4717 | |
4718 | fi |
4719 | CPP=$ac_cv_prog_CPP |
4720 | else |
4721 | ac_cv_prog_CPP=$CPP |
4722 | fi |
dd184caf |
4723 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4724 | echo "${ECHO_T}$CPP" >&6; } |
d9898ee8 |
4725 | ac_preproc_ok=false |
4726 | for ac_c_preproc_warn_flag in '' yes |
4727 | do |
4728 | # Use a header file that comes with gcc, so configuring glibc |
4729 | # with a fresh cross-compiler works. |
4730 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4731 | # <limits.h> exists even on freestanding compilers. |
4732 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4733 | # not just through cpp. "Syntax error" is here to catch this case. |
4734 | cat >conftest.$ac_ext <<_ACEOF |
4735 | /* confdefs.h. */ |
4736 | _ACEOF |
4737 | cat confdefs.h >>conftest.$ac_ext |
4738 | cat >>conftest.$ac_ext <<_ACEOF |
4739 | /* end confdefs.h. */ |
4740 | #ifdef __STDC__ |
4741 | # include <limits.h> |
4742 | #else |
4743 | # include <assert.h> |
4744 | #endif |
4745 | Syntax error |
4746 | _ACEOF |
dd184caf |
4747 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4748 | case "(($ac_try" in |
4749 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4750 | *) ac_try_echo=$ac_try;; |
4751 | esac |
4752 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4753 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4754 | ac_status=$? |
4755 | grep -v '^ *+' conftest.er1 >conftest.err |
4756 | rm -f conftest.er1 |
4757 | cat conftest.err >&5 |
4758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4759 | (exit $ac_status); } >/dev/null && { |
4760 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4761 | test ! -s conftest.err |
4762 | }; then |
d9898ee8 |
4763 | : |
4764 | else |
4765 | echo "$as_me: failed program was:" >&5 |
4766 | sed 's/^/| /' conftest.$ac_ext >&5 |
4767 | |
4768 | # Broken: fails on valid input. |
4769 | continue |
4770 | fi |
dd184caf |
4771 | |
d9898ee8 |
4772 | rm -f conftest.err conftest.$ac_ext |
4773 | |
dd184caf |
4774 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
4775 | # can be detected and how. |
4776 | cat >conftest.$ac_ext <<_ACEOF |
4777 | /* confdefs.h. */ |
4778 | _ACEOF |
4779 | cat confdefs.h >>conftest.$ac_ext |
4780 | cat >>conftest.$ac_ext <<_ACEOF |
4781 | /* end confdefs.h. */ |
4782 | #include <ac_nonexistent.h> |
4783 | _ACEOF |
dd184caf |
4784 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4785 | case "(($ac_try" in |
4786 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4787 | *) ac_try_echo=$ac_try;; |
4788 | esac |
4789 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4790 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
4791 | ac_status=$? |
4792 | grep -v '^ *+' conftest.er1 >conftest.err |
4793 | rm -f conftest.er1 |
4794 | cat conftest.err >&5 |
4795 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4796 | (exit $ac_status); } >/dev/null && { |
4797 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4798 | test ! -s conftest.err |
4799 | }; then |
d9898ee8 |
4800 | # Broken: success on invalid input. |
4801 | continue |
4802 | else |
4803 | echo "$as_me: failed program was:" >&5 |
4804 | sed 's/^/| /' conftest.$ac_ext >&5 |
4805 | |
4806 | # Passes both tests. |
4807 | ac_preproc_ok=: |
4808 | break |
4809 | fi |
dd184caf |
4810 | |
d9898ee8 |
4811 | rm -f conftest.err conftest.$ac_ext |
4812 | |
4813 | done |
4814 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4815 | rm -f conftest.err conftest.$ac_ext |
4816 | if $ac_preproc_ok; then |
4817 | : |
4818 | else |
4819 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4820 | See \`config.log' for more details." >&5 |
4821 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4822 | See \`config.log' for more details." >&2;} |
4823 | { (exit 1); exit 1; }; } |
4824 | fi |
4825 | |
4826 | ac_ext=c |
4827 | ac_cpp='$CPP $CPPFLAGS' |
4828 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4829 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4830 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4831 | |
4832 | |
dd184caf |
4833 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4834 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
d9898ee8 |
4835 | if test "${ac_cv_header_stdc+set}" = set; then |
4836 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4837 | else |
4838 | cat >conftest.$ac_ext <<_ACEOF |
4839 | /* confdefs.h. */ |
4840 | _ACEOF |
4841 | cat confdefs.h >>conftest.$ac_ext |
4842 | cat >>conftest.$ac_ext <<_ACEOF |
4843 | /* end confdefs.h. */ |
4844 | #include <stdlib.h> |
4845 | #include <stdarg.h> |
4846 | #include <string.h> |
4847 | #include <float.h> |
4848 | |
4849 | int |
4850 | main () |
4851 | { |
4852 | |
4853 | ; |
4854 | return 0; |
4855 | } |
4856 | _ACEOF |
4857 | rm -f conftest.$ac_objext |
dd184caf |
4858 | if { (ac_try="$ac_compile" |
4859 | case "(($ac_try" in |
4860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4861 | *) ac_try_echo=$ac_try;; |
4862 | esac |
4863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4864 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
4865 | ac_status=$? |
4866 | grep -v '^ *+' conftest.er1 >conftest.err |
4867 | rm -f conftest.er1 |
4868 | cat conftest.err >&5 |
4869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
4870 | (exit $ac_status); } && { |
4871 | test -z "$ac_c_werror_flag" || |
4872 | test ! -s conftest.err |
4873 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
4874 | ac_cv_header_stdc=yes |
4875 | else |
4876 | echo "$as_me: failed program was:" >&5 |
4877 | sed 's/^/| /' conftest.$ac_ext >&5 |
4878 | |
dd184caf |
4879 | ac_cv_header_stdc=no |
d9898ee8 |
4880 | fi |
dd184caf |
4881 | |
4882 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
4883 | |
4884 | if test $ac_cv_header_stdc = yes; then |
4885 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4886 | cat >conftest.$ac_ext <<_ACEOF |
4887 | /* confdefs.h. */ |
4888 | _ACEOF |
4889 | cat confdefs.h >>conftest.$ac_ext |
4890 | cat >>conftest.$ac_ext <<_ACEOF |
4891 | /* end confdefs.h. */ |
4892 | #include <string.h> |
4893 | |
4894 | _ACEOF |
4895 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4896 | $EGREP "memchr" >/dev/null 2>&1; then |
4897 | : |
4898 | else |
4899 | ac_cv_header_stdc=no |
4900 | fi |
4901 | rm -f conftest* |
4902 | |
4903 | fi |
4904 | |
4905 | if test $ac_cv_header_stdc = yes; then |
4906 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4907 | cat >conftest.$ac_ext <<_ACEOF |
4908 | /* confdefs.h. */ |
4909 | _ACEOF |
4910 | cat confdefs.h >>conftest.$ac_ext |
4911 | cat >>conftest.$ac_ext <<_ACEOF |
4912 | /* end confdefs.h. */ |
4913 | #include <stdlib.h> |
4914 | |
4915 | _ACEOF |
4916 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4917 | $EGREP "free" >/dev/null 2>&1; then |
4918 | : |
4919 | else |
4920 | ac_cv_header_stdc=no |
4921 | fi |
4922 | rm -f conftest* |
4923 | |
4924 | fi |
4925 | |
4926 | if test $ac_cv_header_stdc = yes; then |
4927 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4928 | if test "$cross_compiling" = yes; then |
4929 | : |
4930 | else |
4931 | cat >conftest.$ac_ext <<_ACEOF |
4932 | /* confdefs.h. */ |
4933 | _ACEOF |
4934 | cat confdefs.h >>conftest.$ac_ext |
4935 | cat >>conftest.$ac_ext <<_ACEOF |
4936 | /* end confdefs.h. */ |
4937 | #include <ctype.h> |
dd184caf |
4938 | #include <stdlib.h> |
d9898ee8 |
4939 | #if ((' ' & 0x0FF) == 0x020) |
4940 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4941 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4942 | #else |
4943 | # define ISLOWER(c) \ |
4944 | (('a' <= (c) && (c) <= 'i') \ |
4945 | || ('j' <= (c) && (c) <= 'r') \ |
4946 | || ('s' <= (c) && (c) <= 'z')) |
4947 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4948 | #endif |
4949 | |
4950 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4951 | int |
4952 | main () |
4953 | { |
4954 | int i; |
4955 | for (i = 0; i < 256; i++) |
4956 | if (XOR (islower (i), ISLOWER (i)) |
4957 | || toupper (i) != TOUPPER (i)) |
dd184caf |
4958 | return 2; |
4959 | return 0; |
d9898ee8 |
4960 | } |
4961 | _ACEOF |
4962 | rm -f conftest$ac_exeext |
dd184caf |
4963 | if { (ac_try="$ac_link" |
4964 | case "(($ac_try" in |
4965 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4966 | *) ac_try_echo=$ac_try;; |
4967 | esac |
4968 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4969 | (eval "$ac_link") 2>&5 |
d9898ee8 |
4970 | ac_status=$? |
4971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4972 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
dd184caf |
4973 | { (case "(($ac_try" in |
4974 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4975 | *) ac_try_echo=$ac_try;; |
4976 | esac |
4977 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4978 | (eval "$ac_try") 2>&5 |
d9898ee8 |
4979 | ac_status=$? |
4980 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4981 | (exit $ac_status); }; }; then |
4982 | : |
4983 | else |
4984 | echo "$as_me: program exited with status $ac_status" >&5 |
4985 | echo "$as_me: failed program was:" >&5 |
4986 | sed 's/^/| /' conftest.$ac_ext >&5 |
4987 | |
4988 | ( exit $ac_status ) |
4989 | ac_cv_header_stdc=no |
4990 | fi |
dd184caf |
4991 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
4992 | fi |
dd184caf |
4993 | |
4994 | |
d9898ee8 |
4995 | fi |
4996 | fi |
dd184caf |
4997 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4998 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
d9898ee8 |
4999 | if test $ac_cv_header_stdc = yes; then |
5000 | |
5001 | cat >>confdefs.h <<\_ACEOF |
5002 | #define STDC_HEADERS 1 |
5003 | _ACEOF |
5004 | |
5005 | fi |
5006 | |
5007 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5008 | |
5009 | |
5010 | |
5011 | |
5012 | |
5013 | |
5014 | |
5015 | |
5016 | |
5017 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5018 | inttypes.h stdint.h unistd.h |
5019 | do |
5020 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
5021 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5022 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5023 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5024 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5025 | else |
5026 | cat >conftest.$ac_ext <<_ACEOF |
5027 | /* confdefs.h. */ |
5028 | _ACEOF |
5029 | cat confdefs.h >>conftest.$ac_ext |
5030 | cat >>conftest.$ac_ext <<_ACEOF |
5031 | /* end confdefs.h. */ |
5032 | $ac_includes_default |
5033 | |
5034 | #include <$ac_header> |
5035 | _ACEOF |
5036 | rm -f conftest.$ac_objext |
dd184caf |
5037 | if { (ac_try="$ac_compile" |
5038 | case "(($ac_try" in |
5039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5040 | *) ac_try_echo=$ac_try;; |
5041 | esac |
5042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5043 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5044 | ac_status=$? |
5045 | grep -v '^ *+' conftest.er1 >conftest.err |
5046 | rm -f conftest.er1 |
5047 | cat conftest.err >&5 |
5048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5049 | (exit $ac_status); } && { |
5050 | test -z "$ac_c_werror_flag" || |
5051 | test ! -s conftest.err |
5052 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5053 | eval "$as_ac_Header=yes" |
5054 | else |
5055 | echo "$as_me: failed program was:" >&5 |
5056 | sed 's/^/| /' conftest.$ac_ext >&5 |
5057 | |
dd184caf |
5058 | eval "$as_ac_Header=no" |
d9898ee8 |
5059 | fi |
dd184caf |
5060 | |
5061 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5062 | fi |
dd184caf |
5063 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5064 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5065 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5066 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5067 | cat >>confdefs.h <<_ACEOF |
5068 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5069 | _ACEOF |
5070 | |
5071 | fi |
5072 | |
5073 | done |
5074 | |
5075 | |
5076 | |
5077 | for ac_header in dlfcn.h |
5078 | do |
5079 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
5080 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5081 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5082 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5083 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5084 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5085 | fi |
dd184caf |
5086 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5087 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5088 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5089 | else |
5090 | # Is the header compilable? |
dd184caf |
5091 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5092 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
5093 | cat >conftest.$ac_ext <<_ACEOF |
5094 | /* confdefs.h. */ |
5095 | _ACEOF |
5096 | cat confdefs.h >>conftest.$ac_ext |
5097 | cat >>conftest.$ac_ext <<_ACEOF |
5098 | /* end confdefs.h. */ |
5099 | $ac_includes_default |
5100 | #include <$ac_header> |
5101 | _ACEOF |
5102 | rm -f conftest.$ac_objext |
dd184caf |
5103 | if { (ac_try="$ac_compile" |
5104 | case "(($ac_try" in |
5105 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5106 | *) ac_try_echo=$ac_try;; |
5107 | esac |
5108 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5109 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5110 | ac_status=$? |
5111 | grep -v '^ *+' conftest.er1 >conftest.err |
5112 | rm -f conftest.er1 |
5113 | cat conftest.err >&5 |
5114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5115 | (exit $ac_status); } && { |
5116 | test -z "$ac_c_werror_flag" || |
5117 | test ! -s conftest.err |
5118 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5119 | ac_header_compiler=yes |
5120 | else |
5121 | echo "$as_me: failed program was:" >&5 |
5122 | sed 's/^/| /' conftest.$ac_ext >&5 |
5123 | |
dd184caf |
5124 | ac_header_compiler=no |
d9898ee8 |
5125 | fi |
dd184caf |
5126 | |
5127 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5128 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5129 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
5130 | |
5131 | # Is the header present? |
dd184caf |
5132 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5133 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
5134 | cat >conftest.$ac_ext <<_ACEOF |
5135 | /* confdefs.h. */ |
5136 | _ACEOF |
5137 | cat confdefs.h >>conftest.$ac_ext |
5138 | cat >>conftest.$ac_ext <<_ACEOF |
5139 | /* end confdefs.h. */ |
5140 | #include <$ac_header> |
5141 | _ACEOF |
dd184caf |
5142 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5143 | case "(($ac_try" in |
5144 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5145 | *) ac_try_echo=$ac_try;; |
5146 | esac |
5147 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5148 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5149 | ac_status=$? |
5150 | grep -v '^ *+' conftest.er1 >conftest.err |
5151 | rm -f conftest.er1 |
5152 | cat conftest.err >&5 |
5153 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5154 | (exit $ac_status); } >/dev/null && { |
5155 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5156 | test ! -s conftest.err |
5157 | }; then |
d9898ee8 |
5158 | ac_header_preproc=yes |
5159 | else |
5160 | echo "$as_me: failed program was:" >&5 |
5161 | sed 's/^/| /' conftest.$ac_ext >&5 |
5162 | |
5163 | ac_header_preproc=no |
5164 | fi |
dd184caf |
5165 | |
d9898ee8 |
5166 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
5167 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5168 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
5169 | |
5170 | # So? What about this header? |
5171 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5172 | yes:no: ) |
5173 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5174 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5175 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5176 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
5177 | ac_header_preproc=yes |
5178 | ;; |
5179 | no:yes:* ) |
5180 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5181 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
5182 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5183 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
5184 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
5185 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
5186 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
5187 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
5188 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5189 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5190 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5191 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
5192 | ( cat <<\_ASBOX |
d9898ee8 |
5193 | ## -------------------------------------------------- ## |
5194 | ## Report this to courier-users@lists.sourceforge.net ## |
5195 | ## -------------------------------------------------- ## |
5196 | _ASBOX |
dd184caf |
5197 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
5198 | ;; |
5199 | esac |
dd184caf |
5200 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5201 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5202 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
5203 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5204 | else |
5205 | eval "$as_ac_Header=\$ac_header_preproc" |
5206 | fi |
dd184caf |
5207 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5208 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5209 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
5210 | |
5211 | fi |
5212 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5213 | cat >>confdefs.h <<_ACEOF |
5214 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5215 | _ACEOF |
5216 | |
5217 | fi |
5218 | |
5219 | done |
5220 | |
dd184caf |
5221 | ac_ext=cpp |
d9898ee8 |
5222 | ac_cpp='$CXXCPP $CPPFLAGS' |
5223 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5224 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5225 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
dd184caf |
5226 | if test -z "$CXX"; then |
5227 | if test -n "$CCC"; then |
5228 | CXX=$CCC |
5229 | else |
5230 | if test -n "$ac_tool_prefix"; then |
5231 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5232 | do |
5233 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5234 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
5235 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5236 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5237 | if test "${ac_cv_prog_CXX+set}" = set; then |
5238 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5239 | else |
5240 | if test -n "$CXX"; then |
5241 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
5242 | else |
5243 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5244 | for as_dir in $PATH |
5245 | do |
5246 | IFS=$as_save_IFS |
5247 | test -z "$as_dir" && as_dir=. |
5248 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5249 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5250 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5251 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5252 | break 2 |
5253 | fi |
5254 | done |
5255 | done |
dd184caf |
5256 | IFS=$as_save_IFS |
d9898ee8 |
5257 | |
5258 | fi |
5259 | fi |
5260 | CXX=$ac_cv_prog_CXX |
5261 | if test -n "$CXX"; then |
dd184caf |
5262 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
5263 | echo "${ECHO_T}$CXX" >&6; } |
d9898ee8 |
5264 | else |
dd184caf |
5265 | { echo "$as_me:$LINENO: result: no" >&5 |
5266 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5267 | fi |
5268 | |
dd184caf |
5269 | |
d9898ee8 |
5270 | test -n "$CXX" && break |
5271 | done |
5272 | fi |
5273 | if test -z "$CXX"; then |
5274 | ac_ct_CXX=$CXX |
dd184caf |
5275 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
d9898ee8 |
5276 | do |
5277 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5278 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
5279 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5280 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5281 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
5282 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5283 | else |
5284 | if test -n "$ac_ct_CXX"; then |
5285 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
5286 | else |
5287 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5288 | for as_dir in $PATH |
5289 | do |
5290 | IFS=$as_save_IFS |
5291 | test -z "$as_dir" && as_dir=. |
5292 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5293 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5294 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5295 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5296 | break 2 |
5297 | fi |
5298 | done |
5299 | done |
dd184caf |
5300 | IFS=$as_save_IFS |
d9898ee8 |
5301 | |
5302 | fi |
5303 | fi |
5304 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5305 | if test -n "$ac_ct_CXX"; then |
dd184caf |
5306 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
5307 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
d9898ee8 |
5308 | else |
dd184caf |
5309 | { echo "$as_me:$LINENO: result: no" >&5 |
5310 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5311 | fi |
5312 | |
dd184caf |
5313 | |
d9898ee8 |
5314 | test -n "$ac_ct_CXX" && break |
5315 | done |
d9898ee8 |
5316 | |
dd184caf |
5317 | if test "x$ac_ct_CXX" = x; then |
5318 | CXX="g++" |
5319 | else |
5320 | case $cross_compiling:$ac_tool_warned in |
5321 | yes:) |
5322 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
5323 | whose name does not start with the host triplet. If you think this |
5324 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
5325 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
5326 | whose name does not start with the host triplet. If you think this |
5327 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
5328 | ac_tool_warned=yes ;; |
5329 | esac |
5330 | CXX=$ac_ct_CXX |
5331 | fi |
d9898ee8 |
5332 | fi |
5333 | |
dd184caf |
5334 | fi |
5335 | fi |
d9898ee8 |
5336 | # Provide some information about the compiler. |
dd184caf |
5337 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
d9898ee8 |
5338 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
5339 | { (ac_try="$ac_compiler --version >&5" |
5340 | case "(($ac_try" in |
5341 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5342 | *) ac_try_echo=$ac_try;; |
5343 | esac |
5344 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5345 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
5346 | ac_status=$? |
5347 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5348 | (exit $ac_status); } |
dd184caf |
5349 | { (ac_try="$ac_compiler -v >&5" |
5350 | case "(($ac_try" in |
5351 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5352 | *) ac_try_echo=$ac_try;; |
5353 | esac |
5354 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5355 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
5356 | ac_status=$? |
5357 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5358 | (exit $ac_status); } |
dd184caf |
5359 | { (ac_try="$ac_compiler -V >&5" |
5360 | case "(($ac_try" in |
5361 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5362 | *) ac_try_echo=$ac_try;; |
5363 | esac |
5364 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5365 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
5366 | ac_status=$? |
5367 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5368 | (exit $ac_status); } |
5369 | |
dd184caf |
5370 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
5371 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
d9898ee8 |
5372 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
5373 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5374 | else |
5375 | cat >conftest.$ac_ext <<_ACEOF |
5376 | /* confdefs.h. */ |
5377 | _ACEOF |
5378 | cat confdefs.h >>conftest.$ac_ext |
5379 | cat >>conftest.$ac_ext <<_ACEOF |
5380 | /* end confdefs.h. */ |
5381 | |
5382 | int |
5383 | main () |
5384 | { |
5385 | #ifndef __GNUC__ |
5386 | choke me |
5387 | #endif |
5388 | |
5389 | ; |
5390 | return 0; |
5391 | } |
5392 | _ACEOF |
5393 | rm -f conftest.$ac_objext |
dd184caf |
5394 | if { (ac_try="$ac_compile" |
5395 | case "(($ac_try" in |
5396 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5397 | *) ac_try_echo=$ac_try;; |
5398 | esac |
5399 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5400 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5401 | ac_status=$? |
5402 | grep -v '^ *+' conftest.er1 >conftest.err |
5403 | rm -f conftest.er1 |
5404 | cat conftest.err >&5 |
5405 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5406 | (exit $ac_status); } && { |
5407 | test -z "$ac_cxx_werror_flag" || |
5408 | test ! -s conftest.err |
5409 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5410 | ac_compiler_gnu=yes |
5411 | else |
5412 | echo "$as_me: failed program was:" >&5 |
5413 | sed 's/^/| /' conftest.$ac_ext >&5 |
5414 | |
dd184caf |
5415 | ac_compiler_gnu=no |
d9898ee8 |
5416 | fi |
dd184caf |
5417 | |
5418 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5419 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5420 | |
5421 | fi |
dd184caf |
5422 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
5423 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
d9898ee8 |
5424 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
5425 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5426 | ac_save_CXXFLAGS=$CXXFLAGS |
dd184caf |
5427 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
5428 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
5429 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
5430 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5431 | else |
dd184caf |
5432 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5433 | ac_cxx_werror_flag=yes |
5434 | ac_cv_prog_cxx_g=no |
5435 | CXXFLAGS="-g" |
5436 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5437 | /* confdefs.h. */ |
5438 | _ACEOF |
5439 | cat confdefs.h >>conftest.$ac_ext |
5440 | cat >>conftest.$ac_ext <<_ACEOF |
5441 | /* end confdefs.h. */ |
5442 | |
5443 | int |
5444 | main () |
5445 | { |
5446 | |
5447 | ; |
5448 | return 0; |
5449 | } |
5450 | _ACEOF |
5451 | rm -f conftest.$ac_objext |
dd184caf |
5452 | if { (ac_try="$ac_compile" |
5453 | case "(($ac_try" in |
5454 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5455 | *) ac_try_echo=$ac_try;; |
5456 | esac |
5457 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5458 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5459 | ac_status=$? |
5460 | grep -v '^ *+' conftest.er1 >conftest.err |
5461 | rm -f conftest.er1 |
5462 | cat conftest.err >&5 |
5463 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5464 | (exit $ac_status); } && { |
5465 | test -z "$ac_cxx_werror_flag" || |
5466 | test ! -s conftest.err |
5467 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5468 | ac_cv_prog_cxx_g=yes |
5469 | else |
5470 | echo "$as_me: failed program was:" >&5 |
5471 | sed 's/^/| /' conftest.$ac_ext >&5 |
5472 | |
dd184caf |
5473 | CXXFLAGS="" |
5474 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5475 | /* confdefs.h. */ |
5476 | _ACEOF |
5477 | cat confdefs.h >>conftest.$ac_ext |
5478 | cat >>conftest.$ac_ext <<_ACEOF |
5479 | /* end confdefs.h. */ |
dd184caf |
5480 | |
d9898ee8 |
5481 | int |
5482 | main () |
5483 | { |
dd184caf |
5484 | |
d9898ee8 |
5485 | ; |
5486 | return 0; |
5487 | } |
5488 | _ACEOF |
5489 | rm -f conftest.$ac_objext |
dd184caf |
5490 | if { (ac_try="$ac_compile" |
5491 | case "(($ac_try" in |
5492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5493 | *) ac_try_echo=$ac_try;; |
5494 | esac |
5495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5496 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5497 | ac_status=$? |
5498 | grep -v '^ *+' conftest.er1 >conftest.err |
5499 | rm -f conftest.er1 |
5500 | cat conftest.err >&5 |
5501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5502 | (exit $ac_status); } && { |
5503 | test -z "$ac_cxx_werror_flag" || |
5504 | test ! -s conftest.err |
5505 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
5506 | : |
5507 | else |
5508 | echo "$as_me: failed program was:" >&5 |
5509 | sed 's/^/| /' conftest.$ac_ext >&5 |
5510 | |
dd184caf |
5511 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5512 | CXXFLAGS="-g" |
5513 | cat >conftest.$ac_ext <<_ACEOF |
d9898ee8 |
5514 | /* confdefs.h. */ |
5515 | _ACEOF |
5516 | cat confdefs.h >>conftest.$ac_ext |
5517 | cat >>conftest.$ac_ext <<_ACEOF |
5518 | /* end confdefs.h. */ |
dd184caf |
5519 | |
d9898ee8 |
5520 | int |
5521 | main () |
5522 | { |
dd184caf |
5523 | |
d9898ee8 |
5524 | ; |
5525 | return 0; |
5526 | } |
5527 | _ACEOF |
5528 | rm -f conftest.$ac_objext |
dd184caf |
5529 | if { (ac_try="$ac_compile" |
5530 | case "(($ac_try" in |
5531 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5532 | *) ac_try_echo=$ac_try;; |
5533 | esac |
5534 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5535 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
5536 | ac_status=$? |
5537 | grep -v '^ *+' conftest.er1 >conftest.err |
5538 | rm -f conftest.er1 |
5539 | cat conftest.err >&5 |
5540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5541 | (exit $ac_status); } && { |
5542 | test -z "$ac_cxx_werror_flag" || |
5543 | test ! -s conftest.err |
5544 | } && test -s conftest.$ac_objext; then |
5545 | ac_cv_prog_cxx_g=yes |
d9898ee8 |
5546 | else |
5547 | echo "$as_me: failed program was:" >&5 |
5548 | sed 's/^/| /' conftest.$ac_ext >&5 |
5549 | |
dd184caf |
5550 | |
d9898ee8 |
5551 | fi |
dd184caf |
5552 | |
5553 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
5554 | fi |
5555 | |
dd184caf |
5556 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5557 | fi |
5558 | |
5559 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5560 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5561 | fi |
5562 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
5563 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
5564 | if test "$ac_test_CXXFLAGS" = set; then |
5565 | CXXFLAGS=$ac_save_CXXFLAGS |
5566 | elif test $ac_cv_prog_cxx_g = yes; then |
5567 | if test "$GXX" = yes; then |
5568 | CXXFLAGS="-g -O2" |
5569 | else |
5570 | CXXFLAGS="-g" |
5571 | fi |
5572 | else |
5573 | if test "$GXX" = yes; then |
5574 | CXXFLAGS="-O2" |
5575 | else |
5576 | CXXFLAGS= |
5577 | fi |
5578 | fi |
5579 | ac_ext=cpp |
d9898ee8 |
5580 | ac_cpp='$CXXCPP $CPPFLAGS' |
5581 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5582 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5583 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5584 | |
5585 | depcc="$CXX" am_compiler_list= |
5586 | |
dd184caf |
5587 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5588 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
d9898ee8 |
5589 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
5590 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5591 | else |
5592 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5593 | # We make a subdir and do the tests there. Otherwise we can end up |
5594 | # making bogus files that we don't know about and never remove. For |
5595 | # instance it was reported that on HP-UX the gcc test will end up |
5596 | # making a dummy file named `D' -- because `-MD' means `put the output |
5597 | # in D'. |
5598 | mkdir conftest.dir |
5599 | # Copy depcomp to subdir because otherwise we won't find it if we're |
5600 | # using a relative directory. |
5601 | cp "$am_depcomp" conftest.dir |
5602 | cd conftest.dir |
5603 | # We will build objects and dependencies in a subdirectory because |
5604 | # it helps to detect inapplicable dependency modes. For instance |
5605 | # both Tru64's cc and ICC support -MD to output dependencies as a |
5606 | # side effect of compilation, but ICC will put the dependencies in |
5607 | # the current directory while Tru64 will put them in the object |
5608 | # directory. |
5609 | mkdir sub |
5610 | |
5611 | am_cv_CXX_dependencies_compiler_type=none |
5612 | if test "$am_compiler_list" = ""; then |
5613 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
5614 | fi |
5615 | for depmode in $am_compiler_list; do |
5616 | # Setup a source with many dependencies, because some compilers |
5617 | # like to wrap large dependency lists on column 80 (with \), and |
5618 | # we should not choose a depcomp mode which is confused by this. |
5619 | # |
5620 | # We need to recreate these files for each test, as the compiler may |
5621 | # overwrite some of them when testing with obscure command lines. |
5622 | # This happens at least with the AIX C compiler. |
5623 | : > sub/conftest.c |
5624 | for i in 1 2 3 4 5 6; do |
5625 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
5626 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
5627 | # Solaris 8's {/usr,}/bin/sh. |
5628 | touch sub/conftst$i.h |
5629 | done |
5630 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
5631 | |
5632 | case $depmode in |
5633 | nosideeffect) |
5634 | # after this tag, mechanisms are not by side-effect, so they'll |
5635 | # only be used when explicitly requested |
5636 | if test "x$enable_dependency_tracking" = xyes; then |
5637 | continue |
5638 | else |
5639 | break |
5640 | fi |
5641 | ;; |
5642 | none) break ;; |
5643 | esac |
5644 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5645 | # mode. It turns out that the SunPro C++ compiler does not properly |
5646 | # handle `-M -o', and we need to detect this. |
5647 | if depmode=$depmode \ |
5648 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
5649 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5650 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
5651 | >/dev/null 2>conftest.err && |
dd184caf |
5652 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
d9898ee8 |
5653 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5654 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
5655 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5656 | # icc doesn't choke on unknown options, it will just issue warnings |
5657 | # or remarks (even with -Werror). So we grep stderr for any message |
5658 | # that says an option was ignored or not supported. |
5659 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
5660 | # icc: Command line warning: ignoring option '-M'; no argument required |
5661 | # The diagnosis changed in icc 8.0: |
5662 | # icc: Command line remark: option '-MP' not supported |
5663 | if (grep 'ignoring option' conftest.err || |
5664 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
5665 | am_cv_CXX_dependencies_compiler_type=$depmode |
5666 | break |
5667 | fi |
5668 | fi |
5669 | done |
5670 | |
5671 | cd .. |
5672 | rm -rf conftest.dir |
5673 | else |
5674 | am_cv_CXX_dependencies_compiler_type=none |
5675 | fi |
5676 | |
5677 | fi |
dd184caf |
5678 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5679 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
d9898ee8 |
5680 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5681 | |
dd184caf |
5682 | if |
d9898ee8 |
5683 | test "x$enable_dependency_tracking" != xno \ |
5684 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
5685 | am__fastdepCXX_TRUE= |
5686 | am__fastdepCXX_FALSE='#' |
5687 | else |
5688 | am__fastdepCXX_TRUE='#' |
5689 | am__fastdepCXX_FALSE= |
5690 | fi |
5691 | |
5692 | |
5693 | |
5694 | |
5695 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5696 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5697 | (test "X$CXX" != "Xg++"))) ; then |
dd184caf |
5698 | ac_ext=cpp |
d9898ee8 |
5699 | ac_cpp='$CXXCPP $CPPFLAGS' |
5700 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5701 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5702 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
dd184caf |
5703 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5704 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
d9898ee8 |
5705 | if test -z "$CXXCPP"; then |
5706 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5707 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5708 | else |
5709 | # Double quotes because CXXCPP needs to be expanded |
5710 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5711 | do |
5712 | ac_preproc_ok=false |
5713 | for ac_cxx_preproc_warn_flag in '' yes |
5714 | do |
5715 | # Use a header file that comes with gcc, so configuring glibc |
5716 | # with a fresh cross-compiler works. |
5717 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5718 | # <limits.h> exists even on freestanding compilers. |
5719 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5720 | # not just through cpp. "Syntax error" is here to catch this case. |
5721 | cat >conftest.$ac_ext <<_ACEOF |
5722 | /* confdefs.h. */ |
5723 | _ACEOF |
5724 | cat confdefs.h >>conftest.$ac_ext |
5725 | cat >>conftest.$ac_ext <<_ACEOF |
5726 | /* end confdefs.h. */ |
5727 | #ifdef __STDC__ |
5728 | # include <limits.h> |
5729 | #else |
5730 | # include <assert.h> |
5731 | #endif |
5732 | Syntax error |
5733 | _ACEOF |
dd184caf |
5734 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5735 | case "(($ac_try" in |
5736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5737 | *) ac_try_echo=$ac_try;; |
5738 | esac |
5739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5740 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5741 | ac_status=$? |
5742 | grep -v '^ *+' conftest.er1 >conftest.err |
5743 | rm -f conftest.er1 |
5744 | cat conftest.err >&5 |
5745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5746 | (exit $ac_status); } >/dev/null && { |
5747 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5748 | test ! -s conftest.err |
5749 | }; then |
d9898ee8 |
5750 | : |
5751 | else |
5752 | echo "$as_me: failed program was:" >&5 |
5753 | sed 's/^/| /' conftest.$ac_ext >&5 |
5754 | |
5755 | # Broken: fails on valid input. |
5756 | continue |
5757 | fi |
dd184caf |
5758 | |
d9898ee8 |
5759 | rm -f conftest.err conftest.$ac_ext |
5760 | |
dd184caf |
5761 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
5762 | # can be detected and how. |
5763 | cat >conftest.$ac_ext <<_ACEOF |
5764 | /* confdefs.h. */ |
5765 | _ACEOF |
5766 | cat confdefs.h >>conftest.$ac_ext |
5767 | cat >>conftest.$ac_ext <<_ACEOF |
5768 | /* end confdefs.h. */ |
5769 | #include <ac_nonexistent.h> |
5770 | _ACEOF |
dd184caf |
5771 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5772 | case "(($ac_try" in |
5773 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5774 | *) ac_try_echo=$ac_try;; |
5775 | esac |
5776 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5777 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5778 | ac_status=$? |
5779 | grep -v '^ *+' conftest.er1 >conftest.err |
5780 | rm -f conftest.er1 |
5781 | cat conftest.err >&5 |
5782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5783 | (exit $ac_status); } >/dev/null && { |
5784 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5785 | test ! -s conftest.err |
5786 | }; then |
d9898ee8 |
5787 | # Broken: success on invalid input. |
5788 | continue |
5789 | else |
5790 | echo "$as_me: failed program was:" >&5 |
5791 | sed 's/^/| /' conftest.$ac_ext >&5 |
5792 | |
5793 | # Passes both tests. |
5794 | ac_preproc_ok=: |
5795 | break |
5796 | fi |
dd184caf |
5797 | |
d9898ee8 |
5798 | rm -f conftest.err conftest.$ac_ext |
5799 | |
5800 | done |
5801 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5802 | rm -f conftest.err conftest.$ac_ext |
5803 | if $ac_preproc_ok; then |
5804 | break |
5805 | fi |
5806 | |
5807 | done |
5808 | ac_cv_prog_CXXCPP=$CXXCPP |
5809 | |
5810 | fi |
5811 | CXXCPP=$ac_cv_prog_CXXCPP |
5812 | else |
5813 | ac_cv_prog_CXXCPP=$CXXCPP |
5814 | fi |
dd184caf |
5815 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5816 | echo "${ECHO_T}$CXXCPP" >&6; } |
d9898ee8 |
5817 | ac_preproc_ok=false |
5818 | for ac_cxx_preproc_warn_flag in '' yes |
5819 | do |
5820 | # Use a header file that comes with gcc, so configuring glibc |
5821 | # with a fresh cross-compiler works. |
5822 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5823 | # <limits.h> exists even on freestanding compilers. |
5824 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5825 | # not just through cpp. "Syntax error" is here to catch this case. |
5826 | cat >conftest.$ac_ext <<_ACEOF |
5827 | /* confdefs.h. */ |
5828 | _ACEOF |
5829 | cat confdefs.h >>conftest.$ac_ext |
5830 | cat >>conftest.$ac_ext <<_ACEOF |
5831 | /* end confdefs.h. */ |
5832 | #ifdef __STDC__ |
5833 | # include <limits.h> |
5834 | #else |
5835 | # include <assert.h> |
5836 | #endif |
5837 | Syntax error |
5838 | _ACEOF |
dd184caf |
5839 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5840 | case "(($ac_try" in |
5841 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5842 | *) ac_try_echo=$ac_try;; |
5843 | esac |
5844 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5845 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5846 | ac_status=$? |
5847 | grep -v '^ *+' conftest.er1 >conftest.err |
5848 | rm -f conftest.er1 |
5849 | cat conftest.err >&5 |
5850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5851 | (exit $ac_status); } >/dev/null && { |
5852 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5853 | test ! -s conftest.err |
5854 | }; then |
d9898ee8 |
5855 | : |
5856 | else |
5857 | echo "$as_me: failed program was:" >&5 |
5858 | sed 's/^/| /' conftest.$ac_ext >&5 |
5859 | |
5860 | # Broken: fails on valid input. |
5861 | continue |
5862 | fi |
dd184caf |
5863 | |
d9898ee8 |
5864 | rm -f conftest.err conftest.$ac_ext |
5865 | |
dd184caf |
5866 | # OK, works on sane cases. Now check whether nonexistent headers |
d9898ee8 |
5867 | # can be detected and how. |
5868 | cat >conftest.$ac_ext <<_ACEOF |
5869 | /* confdefs.h. */ |
5870 | _ACEOF |
5871 | cat confdefs.h >>conftest.$ac_ext |
5872 | cat >>conftest.$ac_ext <<_ACEOF |
5873 | /* end confdefs.h. */ |
5874 | #include <ac_nonexistent.h> |
5875 | _ACEOF |
dd184caf |
5876 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5877 | case "(($ac_try" in |
5878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5879 | *) ac_try_echo=$ac_try;; |
5880 | esac |
5881 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5882 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
5883 | ac_status=$? |
5884 | grep -v '^ *+' conftest.er1 >conftest.err |
5885 | rm -f conftest.er1 |
5886 | cat conftest.err >&5 |
5887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
5888 | (exit $ac_status); } >/dev/null && { |
5889 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5890 | test ! -s conftest.err |
5891 | }; then |
d9898ee8 |
5892 | # Broken: success on invalid input. |
5893 | continue |
5894 | else |
5895 | echo "$as_me: failed program was:" >&5 |
5896 | sed 's/^/| /' conftest.$ac_ext >&5 |
5897 | |
5898 | # Passes both tests. |
5899 | ac_preproc_ok=: |
5900 | break |
5901 | fi |
dd184caf |
5902 | |
d9898ee8 |
5903 | rm -f conftest.err conftest.$ac_ext |
5904 | |
5905 | done |
5906 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5907 | rm -f conftest.err conftest.$ac_ext |
5908 | if $ac_preproc_ok; then |
5909 | : |
5910 | else |
5911 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5912 | See \`config.log' for more details." >&5 |
5913 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
5914 | See \`config.log' for more details." >&2;} |
5915 | { (exit 1); exit 1; }; } |
5916 | fi |
5917 | |
dd184caf |
5918 | ac_ext=cpp |
d9898ee8 |
5919 | ac_cpp='$CXXCPP $CPPFLAGS' |
5920 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5921 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5922 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5923 | |
5924 | fi |
5925 | |
5926 | |
5927 | ac_ext=f |
5928 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
5929 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5930 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
5931 | if test -n "$ac_tool_prefix"; then |
dd184caf |
5932 | 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 |
d9898ee8 |
5933 | do |
5934 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5935 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
dd184caf |
5936 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5937 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5938 | if test "${ac_cv_prog_F77+set}" = set; then |
5939 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5940 | else |
5941 | if test -n "$F77"; then |
5942 | ac_cv_prog_F77="$F77" # Let the user override the test. |
5943 | else |
5944 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5945 | for as_dir in $PATH |
5946 | do |
5947 | IFS=$as_save_IFS |
5948 | test -z "$as_dir" && as_dir=. |
5949 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5950 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5951 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
5952 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5953 | break 2 |
5954 | fi |
5955 | done |
5956 | done |
dd184caf |
5957 | IFS=$as_save_IFS |
d9898ee8 |
5958 | |
5959 | fi |
5960 | fi |
5961 | F77=$ac_cv_prog_F77 |
5962 | if test -n "$F77"; then |
dd184caf |
5963 | { echo "$as_me:$LINENO: result: $F77" >&5 |
5964 | echo "${ECHO_T}$F77" >&6; } |
d9898ee8 |
5965 | else |
dd184caf |
5966 | { echo "$as_me:$LINENO: result: no" >&5 |
5967 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
5968 | fi |
5969 | |
dd184caf |
5970 | |
d9898ee8 |
5971 | test -n "$F77" && break |
5972 | done |
5973 | fi |
5974 | if test -z "$F77"; then |
5975 | ac_ct_F77=$F77 |
dd184caf |
5976 | 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 |
d9898ee8 |
5977 | do |
5978 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5979 | set dummy $ac_prog; ac_word=$2 |
dd184caf |
5980 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5981 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
5982 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
5983 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5984 | else |
5985 | if test -n "$ac_ct_F77"; then |
5986 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
5987 | else |
5988 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5989 | for as_dir in $PATH |
5990 | do |
5991 | IFS=$as_save_IFS |
5992 | test -z "$as_dir" && as_dir=. |
5993 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
5994 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
5995 | ac_cv_prog_ac_ct_F77="$ac_prog" |
5996 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5997 | break 2 |
5998 | fi |
5999 | done |
6000 | done |
dd184caf |
6001 | IFS=$as_save_IFS |
d9898ee8 |
6002 | |
6003 | fi |
6004 | fi |
6005 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
6006 | if test -n "$ac_ct_F77"; then |
dd184caf |
6007 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
6008 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
d9898ee8 |
6009 | else |
dd184caf |
6010 | { echo "$as_me:$LINENO: result: no" >&5 |
6011 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6012 | fi |
6013 | |
dd184caf |
6014 | |
d9898ee8 |
6015 | test -n "$ac_ct_F77" && break |
6016 | done |
6017 | |
dd184caf |
6018 | if test "x$ac_ct_F77" = x; then |
6019 | F77="" |
6020 | else |
6021 | case $cross_compiling:$ac_tool_warned in |
6022 | yes:) |
6023 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6024 | whose name does not start with the host triplet. If you think this |
6025 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6026 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6027 | whose name does not start with the host triplet. If you think this |
6028 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6029 | ac_tool_warned=yes ;; |
6030 | esac |
6031 | F77=$ac_ct_F77 |
6032 | fi |
d9898ee8 |
6033 | fi |
6034 | |
6035 | |
6036 | # Provide some information about the compiler. |
dd184caf |
6037 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
d9898ee8 |
6038 | ac_compiler=`set X $ac_compile; echo $2` |
dd184caf |
6039 | { (ac_try="$ac_compiler --version >&5" |
6040 | case "(($ac_try" in |
6041 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6042 | *) ac_try_echo=$ac_try;; |
6043 | esac |
6044 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6045 | (eval "$ac_compiler --version >&5") 2>&5 |
d9898ee8 |
6046 | ac_status=$? |
6047 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6048 | (exit $ac_status); } |
dd184caf |
6049 | { (ac_try="$ac_compiler -v >&5" |
6050 | case "(($ac_try" in |
6051 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6052 | *) ac_try_echo=$ac_try;; |
6053 | esac |
6054 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6055 | (eval "$ac_compiler -v >&5") 2>&5 |
d9898ee8 |
6056 | ac_status=$? |
6057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6058 | (exit $ac_status); } |
dd184caf |
6059 | { (ac_try="$ac_compiler -V >&5" |
6060 | case "(($ac_try" in |
6061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6062 | *) ac_try_echo=$ac_try;; |
6063 | esac |
6064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6065 | (eval "$ac_compiler -V >&5") 2>&5 |
d9898ee8 |
6066 | ac_status=$? |
6067 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6068 | (exit $ac_status); } |
6069 | rm -f a.out |
6070 | |
6071 | # If we don't use `.F' as extension, the preprocessor is not run on the |
6072 | # input file. (Note that this only needs to work for GNU compilers.) |
6073 | ac_save_ext=$ac_ext |
6074 | ac_ext=F |
dd184caf |
6075 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
6076 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
d9898ee8 |
6077 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
6078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6079 | else |
6080 | cat >conftest.$ac_ext <<_ACEOF |
6081 | program main |
6082 | #ifndef __GNUC__ |
6083 | choke me |
6084 | #endif |
6085 | |
6086 | end |
6087 | _ACEOF |
6088 | rm -f conftest.$ac_objext |
dd184caf |
6089 | if { (ac_try="$ac_compile" |
6090 | case "(($ac_try" in |
6091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6092 | *) ac_try_echo=$ac_try;; |
6093 | esac |
6094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6095 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6096 | ac_status=$? |
6097 | grep -v '^ *+' conftest.er1 >conftest.err |
6098 | rm -f conftest.er1 |
6099 | cat conftest.err >&5 |
6100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6101 | (exit $ac_status); } && { |
6102 | test -z "$ac_f77_werror_flag" || |
6103 | test ! -s conftest.err |
6104 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6105 | ac_compiler_gnu=yes |
6106 | else |
6107 | echo "$as_me: failed program was:" >&5 |
6108 | sed 's/^/| /' conftest.$ac_ext >&5 |
6109 | |
dd184caf |
6110 | ac_compiler_gnu=no |
d9898ee8 |
6111 | fi |
dd184caf |
6112 | |
6113 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6114 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
6115 | |
6116 | fi |
dd184caf |
6117 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
6118 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
d9898ee8 |
6119 | ac_ext=$ac_save_ext |
6120 | ac_test_FFLAGS=${FFLAGS+set} |
6121 | ac_save_FFLAGS=$FFLAGS |
6122 | FFLAGS= |
dd184caf |
6123 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
6124 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
d9898ee8 |
6125 | if test "${ac_cv_prog_f77_g+set}" = set; then |
6126 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6127 | else |
6128 | FFLAGS=-g |
6129 | cat >conftest.$ac_ext <<_ACEOF |
6130 | program main |
6131 | |
6132 | end |
6133 | _ACEOF |
6134 | rm -f conftest.$ac_objext |
dd184caf |
6135 | if { (ac_try="$ac_compile" |
6136 | case "(($ac_try" in |
6137 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6138 | *) ac_try_echo=$ac_try;; |
6139 | esac |
6140 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6141 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
6142 | ac_status=$? |
6143 | grep -v '^ *+' conftest.er1 >conftest.err |
6144 | rm -f conftest.er1 |
6145 | cat conftest.err >&5 |
6146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
6147 | (exit $ac_status); } && { |
6148 | test -z "$ac_f77_werror_flag" || |
6149 | test ! -s conftest.err |
6150 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
6151 | ac_cv_prog_f77_g=yes |
6152 | else |
6153 | echo "$as_me: failed program was:" >&5 |
6154 | sed 's/^/| /' conftest.$ac_ext >&5 |
6155 | |
dd184caf |
6156 | ac_cv_prog_f77_g=no |
d9898ee8 |
6157 | fi |
dd184caf |
6158 | |
6159 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
6160 | |
6161 | fi |
dd184caf |
6162 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
6163 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
d9898ee8 |
6164 | if test "$ac_test_FFLAGS" = set; then |
6165 | FFLAGS=$ac_save_FFLAGS |
6166 | elif test $ac_cv_prog_f77_g = yes; then |
6167 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6168 | FFLAGS="-g -O2" |
6169 | else |
6170 | FFLAGS="-g" |
6171 | fi |
6172 | else |
6173 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6174 | FFLAGS="-O2" |
6175 | else |
6176 | FFLAGS= |
6177 | fi |
6178 | fi |
6179 | |
6180 | G77=`test $ac_compiler_gnu = yes && echo yes` |
6181 | ac_ext=c |
6182 | ac_cpp='$CPP $CPPFLAGS' |
6183 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6184 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6185 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6186 | |
6187 | |
6188 | |
6189 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
6190 | |
6191 | # find the maximum length of command line arguments |
dd184caf |
6192 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
6193 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
d9898ee8 |
6194 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
6195 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6196 | else |
6197 | i=0 |
6198 | teststring="ABCD" |
6199 | |
6200 | case $build_os in |
6201 | msdosdjgpp*) |
6202 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
6203 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
6204 | # during glob expansion). Even if it were fixed, the result of this |
6205 | # check would be larger than it should be. |
6206 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
6207 | ;; |
6208 | |
6209 | gnu*) |
6210 | # Under GNU Hurd, this test is not required because there is |
6211 | # no limit to the length of command line arguments. |
6212 | # Libtool will interpret -1 as no limit whatsoever |
6213 | lt_cv_sys_max_cmd_len=-1; |
6214 | ;; |
6215 | |
6216 | cygwin* | mingw*) |
6217 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6218 | # about 5 minutes as the teststring grows exponentially. |
6219 | # Worse, since 9x/ME are not pre-emptively multitasking, |
6220 | # you end up with a "frozen" computer, even though with patience |
6221 | # the test eventually succeeds (with a max line length of 256k). |
6222 | # Instead, let's just punt: use the minimum linelength reported by |
6223 | # all of the supported platforms: 8192 (on NT/2K/XP). |
6224 | lt_cv_sys_max_cmd_len=8192; |
6225 | ;; |
6226 | |
6227 | amigaos*) |
6228 | # On AmigaOS with pdksh, this test takes hours, literally. |
6229 | # So we just punt and use a minimum line length of 8192. |
6230 | lt_cv_sys_max_cmd_len=8192; |
6231 | ;; |
6232 | |
6233 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6234 | # This has been around since 386BSD, at least. Likely further. |
6235 | if test -x /sbin/sysctl; then |
6236 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
6237 | elif test -x /usr/sbin/sysctl; then |
6238 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
6239 | else |
6240 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
6241 | fi |
6242 | # And add a safety zone |
6243 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6244 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6245 | ;; |
6246 | |
6247 | interix*) |
6248 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
6249 | lt_cv_sys_max_cmd_len=196608 |
6250 | ;; |
6251 | |
6252 | osf*) |
6253 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
6254 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
6255 | # nice to cause kernel panics so lets avoid the loop below. |
6256 | # First set a reasonable default. |
6257 | lt_cv_sys_max_cmd_len=16384 |
6258 | # |
6259 | if test -x /sbin/sysconfig; then |
6260 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
6261 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
6262 | esac |
6263 | fi |
6264 | ;; |
6265 | sco3.2v5*) |
6266 | lt_cv_sys_max_cmd_len=102400 |
6267 | ;; |
6268 | sysv5* | sco5v6* | sysv4.2uw2*) |
6269 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
6270 | if test -n "$kargmax"; then |
6271 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
6272 | else |
6273 | lt_cv_sys_max_cmd_len=32768 |
6274 | fi |
6275 | ;; |
6276 | *) |
6277 | # If test is not a shell built-in, we'll probably end up computing a |
6278 | # maximum length that is only half of the actual maximum length, but |
6279 | # we can't tell. |
6280 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
6281 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
6282 | = "XX$teststring") >/dev/null 2>&1 && |
6283 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
6284 | lt_cv_sys_max_cmd_len=$new_result && |
6285 | test $i != 17 # 1/2 MB should be enough |
6286 | do |
6287 | i=`expr $i + 1` |
6288 | teststring=$teststring$teststring |
6289 | done |
6290 | teststring= |
6291 | # Add a significant safety factor because C++ compilers can tack on massive |
6292 | # amounts of additional arguments before passing them to the linker. |
6293 | # It appears as though 1/2 is a usable value. |
6294 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6295 | ;; |
6296 | esac |
6297 | |
6298 | fi |
6299 | |
6300 | if test -n $lt_cv_sys_max_cmd_len ; then |
dd184caf |
6301 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
6302 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
d9898ee8 |
6303 | else |
dd184caf |
6304 | { echo "$as_me:$LINENO: result: none" >&5 |
6305 | echo "${ECHO_T}none" >&6; } |
d9898ee8 |
6306 | fi |
6307 | |
6308 | |
6309 | |
6310 | |
6311 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
dd184caf |
6312 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
6313 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
d9898ee8 |
6314 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
6315 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6316 | else |
6317 | |
6318 | # These are sane defaults that work on at least a few old systems. |
6319 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6320 | |
6321 | # Character class describing NM global symbol codes. |
6322 | symcode='[BCDEGRST]' |
6323 | |
6324 | # Regexp to match symbols that can be accessed directly from C. |
6325 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6326 | |
6327 | # Transform an extracted symbol line into a proper C declaration |
6328 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
6329 | |
6330 | # Transform an extracted symbol line into symbol name and symbol address |
6331 | 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'" |
6332 | |
6333 | # Define system-specific variables. |
6334 | case $host_os in |
6335 | aix*) |
6336 | symcode='[BCDT]' |
6337 | ;; |
6338 | cygwin* | mingw* | pw32*) |
6339 | symcode='[ABCDGISTW]' |
6340 | ;; |
6341 | hpux*) # Its linker distinguishes data from code symbols |
6342 | if test "$host_cpu" = ia64; then |
6343 | symcode='[ABCDEGRST]' |
6344 | fi |
6345 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6346 | 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'" |
6347 | ;; |
6348 | linux*) |
6349 | if test "$host_cpu" = ia64; then |
6350 | symcode='[ABCDGIRSTW]' |
6351 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6352 | 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'" |
6353 | fi |
6354 | ;; |
6355 | irix* | nonstopux*) |
6356 | symcode='[BCDEGRST]' |
6357 | ;; |
6358 | osf*) |
6359 | symcode='[BCDEGQRST]' |
6360 | ;; |
6361 | solaris*) |
6362 | symcode='[BDRT]' |
6363 | ;; |
6364 | sco3.2v5*) |
6365 | symcode='[DT]' |
6366 | ;; |
6367 | sysv4.2uw2*) |
6368 | symcode='[DT]' |
6369 | ;; |
6370 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6371 | symcode='[ABDT]' |
6372 | ;; |
6373 | sysv4) |
6374 | symcode='[DFNSTU]' |
6375 | ;; |
6376 | esac |
6377 | |
6378 | # Handle CRLF in mingw tool chain |
6379 | opt_cr= |
6380 | case $build_os in |
6381 | mingw*) |
6382 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6383 | ;; |
6384 | esac |
6385 | |
6386 | # If we're using GNU nm, then use its standard symbol codes. |
6387 | case `$NM -V 2>&1` in |
6388 | *GNU* | *'with BFD'*) |
6389 | symcode='[ABCDGIRSTW]' ;; |
6390 | esac |
6391 | |
6392 | # Try without a prefix undercore, then with it. |
6393 | for ac_symprfx in "" "_"; do |
6394 | |
6395 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6396 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
6397 | |
6398 | # Write the raw and C identifiers. |
6399 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6400 | |
6401 | # Check to see that the pipe works correctly. |
6402 | pipe_works=no |
6403 | |
6404 | rm -f conftest* |
6405 | cat > conftest.$ac_ext <<EOF |
6406 | #ifdef __cplusplus |
6407 | extern "C" { |
6408 | #endif |
6409 | char nm_test_var; |
6410 | void nm_test_func(){} |
6411 | #ifdef __cplusplus |
6412 | } |
6413 | #endif |
6414 | int main(){nm_test_var='a';nm_test_func();return(0);} |
6415 | EOF |
6416 | |
6417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6418 | (eval $ac_compile) 2>&5 |
6419 | ac_status=$? |
6420 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6421 | (exit $ac_status); }; then |
6422 | # Now try to grab the symbols. |
6423 | nlist=conftest.nm |
6424 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
6425 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
6426 | ac_status=$? |
6427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6428 | (exit $ac_status); } && test -s "$nlist"; then |
6429 | # Try sorting and uniquifying the output. |
6430 | if sort "$nlist" | uniq > "$nlist"T; then |
6431 | mv -f "$nlist"T "$nlist" |
6432 | else |
6433 | rm -f "$nlist"T |
6434 | fi |
6435 | |
6436 | # Make sure that we snagged all the symbols we need. |
6437 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
6438 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
6439 | cat <<EOF > conftest.$ac_ext |
6440 | #ifdef __cplusplus |
6441 | extern "C" { |
6442 | #endif |
6443 | |
6444 | EOF |
6445 | # Now generate the symbol file. |
6446 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
6447 | |
6448 | cat <<EOF >> conftest.$ac_ext |
6449 | #if defined (__STDC__) && __STDC__ |
6450 | # define lt_ptr_t void * |
6451 | #else |
6452 | # define lt_ptr_t char * |
6453 | # define const |
6454 | #endif |
6455 | |
6456 | /* The mapping between symbol names and symbols. */ |
6457 | const struct { |
6458 | const char *name; |
6459 | lt_ptr_t address; |
6460 | } |
6461 | lt_preloaded_symbols[] = |
6462 | { |
6463 | EOF |
6464 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
6465 | cat <<\EOF >> conftest.$ac_ext |
6466 | {0, (lt_ptr_t) 0} |
6467 | }; |
6468 | |
6469 | #ifdef __cplusplus |
6470 | } |
6471 | #endif |
6472 | EOF |
6473 | # Now try linking the two files. |
6474 | mv conftest.$ac_objext conftstm.$ac_objext |
6475 | lt_save_LIBS="$LIBS" |
6476 | lt_save_CFLAGS="$CFLAGS" |
6477 | LIBS="conftstm.$ac_objext" |
6478 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6479 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6480 | (eval $ac_link) 2>&5 |
6481 | ac_status=$? |
6482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6483 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6484 | pipe_works=yes |
6485 | fi |
6486 | LIBS="$lt_save_LIBS" |
6487 | CFLAGS="$lt_save_CFLAGS" |
6488 | else |
6489 | echo "cannot find nm_test_func in $nlist" >&5 |
6490 | fi |
6491 | else |
6492 | echo "cannot find nm_test_var in $nlist" >&5 |
6493 | fi |
6494 | else |
6495 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6496 | fi |
6497 | else |
6498 | echo "$progname: failed program was:" >&5 |
6499 | cat conftest.$ac_ext >&5 |
6500 | fi |
6501 | rm -f conftest* conftst* |
6502 | |
6503 | # Do not use the global_symbol_pipe unless it works. |
6504 | if test "$pipe_works" = yes; then |
6505 | break |
6506 | else |
6507 | lt_cv_sys_global_symbol_pipe= |
6508 | fi |
6509 | done |
6510 | |
6511 | fi |
6512 | |
6513 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6514 | lt_cv_sys_global_symbol_to_cdecl= |
6515 | fi |
6516 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
dd184caf |
6517 | { echo "$as_me:$LINENO: result: failed" >&5 |
6518 | echo "${ECHO_T}failed" >&6; } |
d9898ee8 |
6519 | else |
dd184caf |
6520 | { echo "$as_me:$LINENO: result: ok" >&5 |
6521 | echo "${ECHO_T}ok" >&6; } |
d9898ee8 |
6522 | fi |
6523 | |
dd184caf |
6524 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
6525 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
d9898ee8 |
6526 | if test "${lt_cv_objdir+set}" = set; then |
6527 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6528 | else |
6529 | rm -f .libs 2>/dev/null |
6530 | mkdir .libs 2>/dev/null |
6531 | if test -d .libs; then |
6532 | lt_cv_objdir=.libs |
6533 | else |
6534 | # MS-DOS does not allow filenames that begin with a dot. |
6535 | lt_cv_objdir=_libs |
6536 | fi |
6537 | rmdir .libs 2>/dev/null |
6538 | fi |
dd184caf |
6539 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6540 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
d9898ee8 |
6541 | objdir=$lt_cv_objdir |
6542 | |
6543 | |
6544 | |
6545 | |
6546 | |
6547 | case $host_os in |
6548 | aix3*) |
6549 | # AIX sometimes has problems with the GCC collect2 program. For some |
6550 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
6551 | # vanish in a puff of smoke. |
6552 | if test "X${COLLECT_NAMES+set}" != Xset; then |
6553 | COLLECT_NAMES= |
6554 | export COLLECT_NAMES |
6555 | fi |
6556 | ;; |
6557 | esac |
6558 | |
6559 | # Sed substitution that helps us do robust quoting. It backslashifies |
6560 | # metacharacters that are still active within double-quoted strings. |
6561 | Xsed='sed -e 1s/^X//' |
6562 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6563 | |
6564 | # Same as above, but do not quote variable references. |
6565 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
6566 | |
6567 | # Sed substitution to delay expansion of an escaped shell variable in a |
6568 | # double_quote_subst'ed string. |
6569 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
6570 | |
6571 | # Sed substitution to avoid accidental globbing in evaled expressions |
6572 | no_glob_subst='s/\*/\\\*/g' |
6573 | |
6574 | # Constants: |
6575 | rm="rm -f" |
6576 | |
6577 | # Global variables: |
6578 | default_ofile=libtool |
6579 | can_build_shared=yes |
6580 | |
6581 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6582 | # which needs '.lib'). |
6583 | libext=a |
6584 | ltmain="$ac_aux_dir/ltmain.sh" |
6585 | ofile="$default_ofile" |
6586 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
6587 | |
6588 | if test -n "$ac_tool_prefix"; then |
6589 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6590 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
dd184caf |
6591 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6592 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6593 | if test "${ac_cv_prog_AR+set}" = set; then |
6594 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6595 | else |
6596 | if test -n "$AR"; then |
6597 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6598 | else |
6599 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6600 | for as_dir in $PATH |
6601 | do |
6602 | IFS=$as_save_IFS |
6603 | test -z "$as_dir" && as_dir=. |
6604 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6605 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6606 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6607 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6608 | break 2 |
6609 | fi |
6610 | done |
6611 | done |
dd184caf |
6612 | IFS=$as_save_IFS |
d9898ee8 |
6613 | |
6614 | fi |
6615 | fi |
6616 | AR=$ac_cv_prog_AR |
6617 | if test -n "$AR"; then |
dd184caf |
6618 | { echo "$as_me:$LINENO: result: $AR" >&5 |
6619 | echo "${ECHO_T}$AR" >&6; } |
d9898ee8 |
6620 | else |
dd184caf |
6621 | { echo "$as_me:$LINENO: result: no" >&5 |
6622 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6623 | fi |
6624 | |
dd184caf |
6625 | |
d9898ee8 |
6626 | fi |
6627 | if test -z "$ac_cv_prog_AR"; then |
6628 | ac_ct_AR=$AR |
6629 | # Extract the first word of "ar", so it can be a program name with args. |
6630 | set dummy ar; ac_word=$2 |
dd184caf |
6631 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6632 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6633 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6635 | else |
6636 | if test -n "$ac_ct_AR"; then |
6637 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6638 | else |
6639 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6640 | for as_dir in $PATH |
6641 | do |
6642 | IFS=$as_save_IFS |
6643 | test -z "$as_dir" && as_dir=. |
6644 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6645 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6646 | ac_cv_prog_ac_ct_AR="ar" |
6647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6648 | break 2 |
6649 | fi |
6650 | done |
6651 | done |
dd184caf |
6652 | IFS=$as_save_IFS |
d9898ee8 |
6653 | |
d9898ee8 |
6654 | fi |
6655 | fi |
6656 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6657 | if test -n "$ac_ct_AR"; then |
dd184caf |
6658 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6659 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
d9898ee8 |
6660 | else |
dd184caf |
6661 | { echo "$as_me:$LINENO: result: no" >&5 |
6662 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6663 | fi |
6664 | |
dd184caf |
6665 | if test "x$ac_ct_AR" = x; then |
6666 | AR="false" |
6667 | else |
6668 | case $cross_compiling:$ac_tool_warned in |
6669 | yes:) |
6670 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6671 | whose name does not start with the host triplet. If you think this |
6672 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6673 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6674 | whose name does not start with the host triplet. If you think this |
6675 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6676 | ac_tool_warned=yes ;; |
6677 | esac |
6678 | AR=$ac_ct_AR |
6679 | fi |
d9898ee8 |
6680 | else |
6681 | AR="$ac_cv_prog_AR" |
6682 | fi |
6683 | |
6684 | if test -n "$ac_tool_prefix"; then |
6685 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6686 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
dd184caf |
6687 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6688 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6689 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6691 | else |
6692 | if test -n "$RANLIB"; then |
6693 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6694 | else |
6695 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6696 | for as_dir in $PATH |
6697 | do |
6698 | IFS=$as_save_IFS |
6699 | test -z "$as_dir" && as_dir=. |
6700 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6701 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6702 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6703 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6704 | break 2 |
6705 | fi |
6706 | done |
6707 | done |
dd184caf |
6708 | IFS=$as_save_IFS |
d9898ee8 |
6709 | |
6710 | fi |
6711 | fi |
6712 | RANLIB=$ac_cv_prog_RANLIB |
6713 | if test -n "$RANLIB"; then |
dd184caf |
6714 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6715 | echo "${ECHO_T}$RANLIB" >&6; } |
d9898ee8 |
6716 | else |
dd184caf |
6717 | { echo "$as_me:$LINENO: result: no" >&5 |
6718 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6719 | fi |
6720 | |
dd184caf |
6721 | |
d9898ee8 |
6722 | fi |
6723 | if test -z "$ac_cv_prog_RANLIB"; then |
6724 | ac_ct_RANLIB=$RANLIB |
6725 | # Extract the first word of "ranlib", so it can be a program name with args. |
6726 | set dummy ranlib; ac_word=$2 |
dd184caf |
6727 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6728 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6729 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6730 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6731 | else |
6732 | if test -n "$ac_ct_RANLIB"; then |
6733 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6734 | else |
6735 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6736 | for as_dir in $PATH |
6737 | do |
6738 | IFS=$as_save_IFS |
6739 | test -z "$as_dir" && as_dir=. |
6740 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6741 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6742 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6743 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6744 | break 2 |
6745 | fi |
6746 | done |
6747 | done |
dd184caf |
6748 | IFS=$as_save_IFS |
d9898ee8 |
6749 | |
d9898ee8 |
6750 | fi |
6751 | fi |
6752 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6753 | if test -n "$ac_ct_RANLIB"; then |
dd184caf |
6754 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6755 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
d9898ee8 |
6756 | else |
dd184caf |
6757 | { echo "$as_me:$LINENO: result: no" >&5 |
6758 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6759 | fi |
6760 | |
dd184caf |
6761 | if test "x$ac_ct_RANLIB" = x; then |
6762 | RANLIB=":" |
6763 | else |
6764 | case $cross_compiling:$ac_tool_warned in |
6765 | yes:) |
6766 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6767 | whose name does not start with the host triplet. If you think this |
6768 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6769 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6770 | whose name does not start with the host triplet. If you think this |
6771 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6772 | ac_tool_warned=yes ;; |
6773 | esac |
6774 | RANLIB=$ac_ct_RANLIB |
6775 | fi |
d9898ee8 |
6776 | else |
6777 | RANLIB="$ac_cv_prog_RANLIB" |
6778 | fi |
6779 | |
6780 | if test -n "$ac_tool_prefix"; then |
6781 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6782 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
dd184caf |
6783 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6784 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6785 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6786 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6787 | else |
6788 | if test -n "$STRIP"; then |
6789 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6790 | else |
6791 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6792 | for as_dir in $PATH |
6793 | do |
6794 | IFS=$as_save_IFS |
6795 | test -z "$as_dir" && as_dir=. |
6796 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6797 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6798 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6799 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6800 | break 2 |
6801 | fi |
6802 | done |
6803 | done |
dd184caf |
6804 | IFS=$as_save_IFS |
d9898ee8 |
6805 | |
6806 | fi |
6807 | fi |
6808 | STRIP=$ac_cv_prog_STRIP |
6809 | if test -n "$STRIP"; then |
dd184caf |
6810 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
6811 | echo "${ECHO_T}$STRIP" >&6; } |
d9898ee8 |
6812 | else |
dd184caf |
6813 | { echo "$as_me:$LINENO: result: no" >&5 |
6814 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6815 | fi |
6816 | |
dd184caf |
6817 | |
d9898ee8 |
6818 | fi |
6819 | if test -z "$ac_cv_prog_STRIP"; then |
6820 | ac_ct_STRIP=$STRIP |
6821 | # Extract the first word of "strip", so it can be a program name with args. |
6822 | set dummy strip; ac_word=$2 |
dd184caf |
6823 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6824 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
d9898ee8 |
6825 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6826 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6827 | else |
6828 | if test -n "$ac_ct_STRIP"; then |
6829 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6830 | else |
6831 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6832 | for as_dir in $PATH |
6833 | do |
6834 | IFS=$as_save_IFS |
6835 | test -z "$as_dir" && as_dir=. |
6836 | for ac_exec_ext in '' $ac_executable_extensions; do |
dd184caf |
6837 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
d9898ee8 |
6838 | ac_cv_prog_ac_ct_STRIP="strip" |
6839 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6840 | break 2 |
6841 | fi |
6842 | done |
6843 | done |
dd184caf |
6844 | IFS=$as_save_IFS |
d9898ee8 |
6845 | |
d9898ee8 |
6846 | fi |
6847 | fi |
6848 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6849 | if test -n "$ac_ct_STRIP"; then |
dd184caf |
6850 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6851 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
d9898ee8 |
6852 | else |
dd184caf |
6853 | { echo "$as_me:$LINENO: result: no" >&5 |
6854 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6855 | fi |
6856 | |
dd184caf |
6857 | if test "x$ac_ct_STRIP" = x; then |
6858 | STRIP=":" |
6859 | else |
6860 | case $cross_compiling:$ac_tool_warned in |
6861 | yes:) |
6862 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6863 | whose name does not start with the host triplet. If you think this |
6864 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6865 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6866 | whose name does not start with the host triplet. If you think this |
6867 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6868 | ac_tool_warned=yes ;; |
6869 | esac |
6870 | STRIP=$ac_ct_STRIP |
6871 | fi |
d9898ee8 |
6872 | else |
6873 | STRIP="$ac_cv_prog_STRIP" |
6874 | fi |
6875 | |
6876 | |
6877 | old_CC="$CC" |
6878 | old_CFLAGS="$CFLAGS" |
6879 | |
6880 | # Set sane defaults for various variables |
6881 | test -z "$AR" && AR=ar |
6882 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6883 | test -z "$AS" && AS=as |
6884 | test -z "$CC" && CC=cc |
6885 | test -z "$LTCC" && LTCC=$CC |
6886 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
6887 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
6888 | test -z "$LD" && LD=ld |
6889 | test -z "$LN_S" && LN_S="ln -s" |
6890 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
6891 | test -z "$NM" && NM=nm |
6892 | test -z "$SED" && SED=sed |
6893 | test -z "$OBJDUMP" && OBJDUMP=objdump |
6894 | test -z "$RANLIB" && RANLIB=: |
6895 | test -z "$STRIP" && STRIP=: |
6896 | test -z "$ac_objext" && ac_objext=o |
6897 | |
6898 | # Determine commands to create old-style static archives. |
6899 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
6900 | old_postinstall_cmds='chmod 644 $oldlib' |
6901 | old_postuninstall_cmds= |
6902 | |
6903 | if test -n "$RANLIB"; then |
6904 | case $host_os in |
6905 | openbsd*) |
6906 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
6907 | ;; |
6908 | *) |
6909 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
6910 | ;; |
6911 | esac |
6912 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
6913 | fi |
6914 | |
6915 | for cc_temp in $compiler""; do |
6916 | case $cc_temp in |
6917 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
6918 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
6919 | \-*) ;; |
6920 | *) break;; |
6921 | esac |
6922 | done |
6923 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
6924 | |
6925 | |
6926 | # Only perform the check for file, if the check method requires it |
6927 | case $deplibs_check_method in |
6928 | file_magic*) |
6929 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
dd184caf |
6930 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
6931 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
d9898ee8 |
6932 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6934 | else |
6935 | case $MAGIC_CMD in |
6936 | [\\/*] | ?:[\\/]*) |
6937 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
6938 | ;; |
6939 | *) |
6940 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
6941 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
6942 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
6943 | for ac_dir in $ac_dummy; do |
6944 | IFS="$lt_save_ifs" |
6945 | test -z "$ac_dir" && ac_dir=. |
6946 | if test -f $ac_dir/${ac_tool_prefix}file; then |
6947 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
6948 | if test -n "$file_magic_test_file"; then |
6949 | case $deplibs_check_method in |
6950 | "file_magic "*) |
6951 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
6952 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6953 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
6954 | $EGREP "$file_magic_regex" > /dev/null; then |
6955 | : |
6956 | else |
6957 | cat <<EOF 1>&2 |
6958 | |
6959 | *** Warning: the command libtool uses to detect shared libraries, |
6960 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
6961 | *** The result is that libtool may fail to recognize shared libraries |
6962 | *** as such. This will affect the creation of libtool libraries that |
6963 | *** depend on shared libraries, but programs linked with such libtool |
6964 | *** libraries will work regardless of this problem. Nevertheless, you |
6965 | *** may want to report the problem to your system manager and/or to |
6966 | *** bug-libtool@gnu.org |
6967 | |
6968 | EOF |
6969 | fi ;; |
6970 | esac |
6971 | fi |
6972 | break |
6973 | fi |
6974 | done |
6975 | IFS="$lt_save_ifs" |
6976 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
6977 | ;; |
6978 | esac |
6979 | fi |
6980 | |
6981 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
6982 | if test -n "$MAGIC_CMD"; then |
dd184caf |
6983 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
6984 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
6985 | else |
dd184caf |
6986 | { echo "$as_me:$LINENO: result: no" >&5 |
6987 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
6988 | fi |
6989 | |
6990 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
6991 | if test -n "$ac_tool_prefix"; then |
dd184caf |
6992 | { echo "$as_me:$LINENO: checking for file" >&5 |
6993 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
d9898ee8 |
6994 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
6995 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6996 | else |
6997 | case $MAGIC_CMD in |
6998 | [\\/*] | ?:[\\/]*) |
6999 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7000 | ;; |
7001 | *) |
7002 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7003 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7004 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7005 | for ac_dir in $ac_dummy; do |
7006 | IFS="$lt_save_ifs" |
7007 | test -z "$ac_dir" && ac_dir=. |
7008 | if test -f $ac_dir/file; then |
7009 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
7010 | if test -n "$file_magic_test_file"; then |
7011 | case $deplibs_check_method in |
7012 | "file_magic "*) |
7013 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7014 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7015 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7016 | $EGREP "$file_magic_regex" > /dev/null; then |
7017 | : |
7018 | else |
7019 | cat <<EOF 1>&2 |
7020 | |
7021 | *** Warning: the command libtool uses to detect shared libraries, |
7022 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7023 | *** The result is that libtool may fail to recognize shared libraries |
7024 | *** as such. This will affect the creation of libtool libraries that |
7025 | *** depend on shared libraries, but programs linked with such libtool |
7026 | *** libraries will work regardless of this problem. Nevertheless, you |
7027 | *** may want to report the problem to your system manager and/or to |
7028 | *** bug-libtool@gnu.org |
7029 | |
7030 | EOF |
7031 | fi ;; |
7032 | esac |
7033 | fi |
7034 | break |
7035 | fi |
7036 | done |
7037 | IFS="$lt_save_ifs" |
7038 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7039 | ;; |
7040 | esac |
7041 | fi |
7042 | |
7043 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7044 | if test -n "$MAGIC_CMD"; then |
dd184caf |
7045 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7046 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
d9898ee8 |
7047 | else |
dd184caf |
7048 | { echo "$as_me:$LINENO: result: no" >&5 |
7049 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
7050 | fi |
7051 | |
7052 | else |
7053 | MAGIC_CMD=: |
7054 | fi |
7055 | fi |
7056 | |
7057 | fi |
7058 | ;; |
7059 | esac |
7060 | |
7061 | enable_dlopen=no |
7062 | enable_win32_dll=no |
7063 | |
dd184caf |
7064 | # Check whether --enable-libtool-lock was given. |
d9898ee8 |
7065 | if test "${enable_libtool_lock+set}" = set; then |
dd184caf |
7066 | enableval=$enable_libtool_lock; |
7067 | fi |
d9898ee8 |
7068 | |
d9898ee8 |
7069 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7070 | |
7071 | |
dd184caf |
7072 | # Check whether --with-pic was given. |
d9898ee8 |
7073 | if test "${with_pic+set}" = set; then |
dd184caf |
7074 | withval=$with_pic; pic_mode="$withval" |
d9898ee8 |
7075 | else |
7076 | pic_mode=default |
dd184caf |
7077 | fi |
7078 | |
d9898ee8 |
7079 | test -z "$pic_mode" && pic_mode=default |
7080 | |
7081 | # Use C for the default configuration in the libtool script |
7082 | tagname= |
7083 | lt_save_CC="$CC" |
7084 | ac_ext=c |
7085 | ac_cpp='$CPP $CPPFLAGS' |
7086 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7087 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7088 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7089 | |
7090 | |
7091 | # Source file extension for C test sources. |
7092 | ac_ext=c |
7093 | |
7094 | # Object file extension for compiled C test sources. |
7095 | objext=o |
7096 | objext=$objext |
7097 | |
7098 | # Code to be used in simple compile tests |
7099 | lt_simple_compile_test_code="int some_variable = 0;\n" |
7100 | |
7101 | # Code to be used in simple link tests |
7102 | lt_simple_link_test_code='int main(){return(0);}\n' |
7103 | |
7104 | |
7105 | # If no C compiler was specified, use CC. |
7106 | LTCC=${LTCC-"$CC"} |
7107 | |
7108 | # If no C compiler flags were specified, use CFLAGS. |
7109 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
7110 | |
7111 | # Allow CC to be a program name with arguments. |
7112 | compiler=$CC |
7113 | |
7114 | |
7115 | # save warnings/boilerplate of simple test code |
7116 | ac_outfile=conftest.$ac_objext |
7117 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
7118 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7119 | _lt_compiler_boilerplate=`cat conftest.err` |
7120 | $rm conftest* |
7121 | |
7122 | ac_outfile=conftest.$ac_objext |
7123 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
7124 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7125 | _lt_linker_boilerplate=`cat conftest.err` |
7126 | $rm conftest* |
7127 | |
7128 | |
7129 | |
7130 | lt_prog_compiler_no_builtin_flag= |
7131 | |
7132 | if test "$GCC" = yes; then |
7133 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
7134 | |
7135 | |
dd184caf |
7136 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7137 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
7138 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
7139 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7140 | else |
7141 | lt_cv_prog_compiler_rtti_exceptions=no |
7142 | ac_outfile=conftest.$ac_objext |
7143 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7144 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
7145 | # Insert the option either (1) after the last *FLAGS variable, or |
7146 | # (2) before a word containing "conftest.", or (3) at the end. |
7147 | # Note that $ac_compile itself does not contain backslashes and begins |
7148 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7149 | # The option is referenced via a variable to avoid confusing sed. |
7150 | lt_compile=`echo "$ac_compile" | $SED \ |
7151 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7152 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7153 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
7154 | (eval echo "\"\$as_me:7154: $lt_compile\"" >&5) |
d9898ee8 |
7155 | (eval "$lt_compile" 2>conftest.err) |
7156 | ac_status=$? |
7157 | cat conftest.err >&5 |
dd184caf |
7158 | echo "$as_me:7158: \$? = $ac_status" >&5 |
d9898ee8 |
7159 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7160 | # The compiler can only warn and ignore the option if not recognized |
7161 | # So say no if there are warnings other than the usual output. |
7162 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7163 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7164 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7165 | lt_cv_prog_compiler_rtti_exceptions=yes |
7166 | fi |
7167 | fi |
7168 | $rm conftest* |
7169 | |
7170 | fi |
dd184caf |
7171 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7172 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
7173 | |
7174 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7175 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
7176 | else |
7177 | : |
7178 | fi |
7179 | |
7180 | fi |
7181 | |
7182 | lt_prog_compiler_wl= |
7183 | lt_prog_compiler_pic= |
7184 | lt_prog_compiler_static= |
7185 | |
dd184caf |
7186 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7187 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
7188 | |
7189 | if test "$GCC" = yes; then |
7190 | lt_prog_compiler_wl='-Wl,' |
7191 | lt_prog_compiler_static='-static' |
7192 | |
7193 | case $host_os in |
7194 | aix*) |
7195 | # All AIX code is PIC. |
7196 | if test "$host_cpu" = ia64; then |
7197 | # AIX 5 now supports IA64 processor |
7198 | lt_prog_compiler_static='-Bstatic' |
7199 | fi |
7200 | ;; |
7201 | |
7202 | amigaos*) |
7203 | # FIXME: we need at least 68020 code to build shared libraries, but |
7204 | # adding the `-m68020' flag to GCC prevents building anything better, |
7205 | # like `-m68040'. |
7206 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
7207 | ;; |
7208 | |
7209 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7210 | # PIC is the default for these OSes. |
7211 | ;; |
7212 | |
7213 | mingw* | pw32* | os2*) |
7214 | # This hack is so that the source file can tell whether it is being |
7215 | # built for inclusion in a dll (and should export symbols for example). |
7216 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7217 | ;; |
7218 | |
7219 | darwin* | rhapsody*) |
7220 | # PIC is the default on this platform |
7221 | # Common symbols not allowed in MH_DYLIB files |
7222 | lt_prog_compiler_pic='-fno-common' |
7223 | ;; |
7224 | |
7225 | interix3*) |
7226 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
7227 | # Instead, we relocate shared libraries at runtime. |
7228 | ;; |
7229 | |
7230 | msdosdjgpp*) |
7231 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
7232 | # on systems that don't support them. |
7233 | lt_prog_compiler_can_build_shared=no |
7234 | enable_shared=no |
7235 | ;; |
7236 | |
7237 | sysv4*MP*) |
7238 | if test -d /usr/nec; then |
7239 | lt_prog_compiler_pic=-Kconform_pic |
7240 | fi |
7241 | ;; |
7242 | |
7243 | hpux*) |
7244 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7245 | # not for PA HP-UX. |
7246 | case $host_cpu in |
7247 | hppa*64*|ia64*) |
7248 | # +Z the default |
7249 | ;; |
7250 | *) |
7251 | lt_prog_compiler_pic='-fPIC' |
7252 | ;; |
7253 | esac |
7254 | ;; |
7255 | |
7256 | *) |
7257 | lt_prog_compiler_pic='-fPIC' |
7258 | ;; |
7259 | esac |
7260 | else |
7261 | # PORTME Check for flag to pass linker flags through the system compiler. |
7262 | case $host_os in |
7263 | aix*) |
7264 | lt_prog_compiler_wl='-Wl,' |
7265 | if test "$host_cpu" = ia64; then |
7266 | # AIX 5 now supports IA64 processor |
7267 | lt_prog_compiler_static='-Bstatic' |
7268 | else |
7269 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
7270 | fi |
7271 | ;; |
7272 | darwin*) |
7273 | # PIC is the default on this platform |
7274 | # Common symbols not allowed in MH_DYLIB files |
7275 | case $cc_basename in |
7276 | xlc*) |
7277 | lt_prog_compiler_pic='-qnocommon' |
7278 | lt_prog_compiler_wl='-Wl,' |
7279 | ;; |
7280 | esac |
7281 | ;; |
7282 | |
7283 | mingw* | pw32* | os2*) |
7284 | # This hack is so that the source file can tell whether it is being |
7285 | # built for inclusion in a dll (and should export symbols for example). |
7286 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7287 | ;; |
7288 | |
7289 | hpux9* | hpux10* | hpux11*) |
7290 | lt_prog_compiler_wl='-Wl,' |
7291 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7292 | # not for PA HP-UX. |
7293 | case $host_cpu in |
7294 | hppa*64*|ia64*) |
7295 | # +Z the default |
7296 | ;; |
7297 | *) |
7298 | lt_prog_compiler_pic='+Z' |
7299 | ;; |
7300 | esac |
7301 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
7302 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
7303 | ;; |
7304 | |
7305 | irix5* | irix6* | nonstopux*) |
7306 | lt_prog_compiler_wl='-Wl,' |
7307 | # PIC (with -KPIC) is the default. |
7308 | lt_prog_compiler_static='-non_shared' |
7309 | ;; |
7310 | |
7311 | newsos6) |
7312 | lt_prog_compiler_pic='-KPIC' |
7313 | lt_prog_compiler_static='-Bstatic' |
7314 | ;; |
7315 | |
7316 | linux*) |
7317 | case $cc_basename in |
7318 | icc* | ecc*) |
7319 | lt_prog_compiler_wl='-Wl,' |
7320 | lt_prog_compiler_pic='-KPIC' |
7321 | lt_prog_compiler_static='-static' |
7322 | ;; |
7323 | pgcc* | pgf77* | pgf90* | pgf95*) |
7324 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7325 | # which looks to be a dead project) |
7326 | lt_prog_compiler_wl='-Wl,' |
7327 | lt_prog_compiler_pic='-fpic' |
7328 | lt_prog_compiler_static='-Bstatic' |
7329 | ;; |
7330 | ccc*) |
7331 | lt_prog_compiler_wl='-Wl,' |
7332 | # All Alpha code is PIC. |
7333 | lt_prog_compiler_static='-non_shared' |
7334 | ;; |
7335 | esac |
7336 | ;; |
7337 | |
7338 | osf3* | osf4* | osf5*) |
7339 | lt_prog_compiler_wl='-Wl,' |
7340 | # All OSF/1 code is PIC. |
7341 | lt_prog_compiler_static='-non_shared' |
7342 | ;; |
7343 | |
7344 | solaris*) |
7345 | lt_prog_compiler_pic='-KPIC' |
7346 | lt_prog_compiler_static='-Bstatic' |
7347 | case $cc_basename in |
7348 | f77* | f90* | f95*) |
7349 | lt_prog_compiler_wl='-Qoption ld ';; |
7350 | *) |
7351 | lt_prog_compiler_wl='-Wl,';; |
7352 | esac |
7353 | ;; |
7354 | |
7355 | sunos4*) |
7356 | lt_prog_compiler_wl='-Qoption ld ' |
7357 | lt_prog_compiler_pic='-PIC' |
7358 | lt_prog_compiler_static='-Bstatic' |
7359 | ;; |
7360 | |
7361 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7362 | lt_prog_compiler_wl='-Wl,' |
7363 | lt_prog_compiler_pic='-KPIC' |
7364 | lt_prog_compiler_static='-Bstatic' |
7365 | ;; |
7366 | |
7367 | sysv4*MP*) |
7368 | if test -d /usr/nec ;then |
7369 | lt_prog_compiler_pic='-Kconform_pic' |
7370 | lt_prog_compiler_static='-Bstatic' |
7371 | fi |
7372 | ;; |
7373 | |
7374 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7375 | lt_prog_compiler_wl='-Wl,' |
7376 | lt_prog_compiler_pic='-KPIC' |
7377 | lt_prog_compiler_static='-Bstatic' |
7378 | ;; |
7379 | |
7380 | unicos*) |
7381 | lt_prog_compiler_wl='-Wl,' |
7382 | lt_prog_compiler_can_build_shared=no |
7383 | ;; |
7384 | |
7385 | uts4*) |
7386 | lt_prog_compiler_pic='-pic' |
7387 | lt_prog_compiler_static='-Bstatic' |
7388 | ;; |
7389 | |
7390 | *) |
7391 | lt_prog_compiler_can_build_shared=no |
7392 | ;; |
7393 | esac |
7394 | fi |
7395 | |
dd184caf |
7396 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
7397 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
d9898ee8 |
7398 | |
7399 | # |
7400 | # Check to make sure the PIC flag actually works. |
7401 | # |
7402 | if test -n "$lt_prog_compiler_pic"; then |
7403 | |
dd184caf |
7404 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7405 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
d9898ee8 |
7406 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
7407 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7408 | else |
7409 | lt_prog_compiler_pic_works=no |
7410 | ac_outfile=conftest.$ac_objext |
7411 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7412 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
7413 | # Insert the option either (1) after the last *FLAGS variable, or |
7414 | # (2) before a word containing "conftest.", or (3) at the end. |
7415 | # Note that $ac_compile itself does not contain backslashes and begins |
7416 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7417 | # The option is referenced via a variable to avoid confusing sed. |
7418 | lt_compile=`echo "$ac_compile" | $SED \ |
7419 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7420 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7421 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
7422 | (eval echo "\"\$as_me:7422: $lt_compile\"" >&5) |
d9898ee8 |
7423 | (eval "$lt_compile" 2>conftest.err) |
7424 | ac_status=$? |
7425 | cat conftest.err >&5 |
dd184caf |
7426 | echo "$as_me:7426: \$? = $ac_status" >&5 |
d9898ee8 |
7427 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7428 | # The compiler can only warn and ignore the option if not recognized |
7429 | # So say no if there are warnings other than the usual output. |
7430 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7431 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7432 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7433 | lt_prog_compiler_pic_works=yes |
7434 | fi |
7435 | fi |
7436 | $rm conftest* |
7437 | |
7438 | fi |
dd184caf |
7439 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
7440 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
d9898ee8 |
7441 | |
7442 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
7443 | case $lt_prog_compiler_pic in |
7444 | "" | " "*) ;; |
7445 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
7446 | esac |
7447 | else |
7448 | lt_prog_compiler_pic= |
7449 | lt_prog_compiler_can_build_shared=no |
7450 | fi |
7451 | |
7452 | fi |
7453 | case $host_os in |
7454 | # For platforms which do not support PIC, -DPIC is meaningless: |
7455 | *djgpp*) |
7456 | lt_prog_compiler_pic= |
7457 | ;; |
7458 | *) |
7459 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
7460 | ;; |
7461 | esac |
7462 | |
7463 | # |
7464 | # Check to make sure the static flag actually works. |
7465 | # |
7466 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
dd184caf |
7467 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
7468 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
7469 | if test "${lt_prog_compiler_static_works+set}" = set; then |
7470 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7471 | else |
7472 | lt_prog_compiler_static_works=no |
7473 | save_LDFLAGS="$LDFLAGS" |
7474 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
7475 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
7476 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
7477 | # The linker can only warn and ignore the option if not recognized |
7478 | # So say no if there are warnings |
7479 | if test -s conftest.err; then |
7480 | # Append any errors to the config.log. |
7481 | cat conftest.err 1>&5 |
7482 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
7483 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7484 | if diff conftest.exp conftest.er2 >/dev/null; then |
7485 | lt_prog_compiler_static_works=yes |
7486 | fi |
7487 | else |
7488 | lt_prog_compiler_static_works=yes |
7489 | fi |
7490 | fi |
7491 | $rm conftest* |
7492 | LDFLAGS="$save_LDFLAGS" |
7493 | |
7494 | fi |
dd184caf |
7495 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
7496 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
d9898ee8 |
7497 | |
7498 | if test x"$lt_prog_compiler_static_works" = xyes; then |
7499 | : |
7500 | else |
7501 | lt_prog_compiler_static= |
7502 | fi |
7503 | |
7504 | |
dd184caf |
7505 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7506 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
7507 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7508 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7509 | else |
7510 | lt_cv_prog_compiler_c_o=no |
7511 | $rm -r conftest 2>/dev/null |
7512 | mkdir conftest |
7513 | cd conftest |
7514 | mkdir out |
7515 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7516 | |
7517 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7518 | # Insert the option either (1) after the last *FLAGS variable, or |
7519 | # (2) before a word containing "conftest.", or (3) at the end. |
7520 | # Note that $ac_compile itself does not contain backslashes and begins |
7521 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7522 | lt_compile=`echo "$ac_compile" | $SED \ |
7523 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7524 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7525 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
7526 | (eval echo "\"\$as_me:7526: $lt_compile\"" >&5) |
d9898ee8 |
7527 | (eval "$lt_compile" 2>out/conftest.err) |
7528 | ac_status=$? |
7529 | cat out/conftest.err >&5 |
dd184caf |
7530 | echo "$as_me:7530: \$? = $ac_status" >&5 |
d9898ee8 |
7531 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7532 | then |
7533 | # The compiler can only warn and ignore the option if not recognized |
7534 | # So say no if there are warnings |
7535 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
7536 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
7537 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7538 | lt_cv_prog_compiler_c_o=yes |
7539 | fi |
7540 | fi |
7541 | chmod u+w . 2>&5 |
7542 | $rm conftest* |
7543 | # SGI C++ compiler will create directory out/ii_files/ for |
7544 | # template instantiation |
7545 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
7546 | $rm out/* && rmdir out |
7547 | cd .. |
7548 | rmdir conftest |
7549 | $rm conftest* |
7550 | |
7551 | fi |
dd184caf |
7552 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7553 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
d9898ee8 |
7554 | |
7555 | |
7556 | hard_links="nottested" |
7557 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
7558 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
7559 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
7560 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
7561 | hard_links=yes |
7562 | $rm conftest* |
7563 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
7564 | touch conftest.a |
7565 | ln conftest.a conftest.b 2>&5 || hard_links=no |
7566 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
7567 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
7568 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
7569 | if test "$hard_links" = no; then |
7570 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
7571 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
7572 | need_locks=warn |
7573 | fi |
7574 | else |
7575 | need_locks=no |
7576 | fi |
7577 | |
dd184caf |
7578 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7579 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
7580 | |
7581 | runpath_var= |
7582 | allow_undefined_flag= |
7583 | enable_shared_with_static_runtimes=no |
7584 | archive_cmds= |
7585 | archive_expsym_cmds= |
7586 | old_archive_From_new_cmds= |
7587 | old_archive_from_expsyms_cmds= |
7588 | export_dynamic_flag_spec= |
7589 | whole_archive_flag_spec= |
7590 | thread_safe_flag_spec= |
7591 | hardcode_libdir_flag_spec= |
7592 | hardcode_libdir_flag_spec_ld= |
7593 | hardcode_libdir_separator= |
7594 | hardcode_direct=no |
7595 | hardcode_minus_L=no |
7596 | hardcode_shlibpath_var=unsupported |
7597 | link_all_deplibs=unknown |
7598 | hardcode_automatic=no |
7599 | module_cmds= |
7600 | module_expsym_cmds= |
7601 | always_export_symbols=no |
7602 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
7603 | # include_expsyms should be a list of space-separated symbols to be *always* |
7604 | # included in the symbol list |
7605 | include_expsyms= |
7606 | # exclude_expsyms can be an extended regexp of symbols to exclude |
7607 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
7608 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
7609 | # as well as any symbol that contains `d'. |
7610 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
7611 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
7612 | # platforms (ab)use it in PIC code, but their linkers get confused if |
7613 | # the symbol is explicitly referenced. Since portable code cannot |
7614 | # rely on this symbol name, it's probably fine to never include it in |
7615 | # preloaded symbol tables. |
7616 | extract_expsyms_cmds= |
7617 | # Just being paranoid about ensuring that cc_basename is set. |
7618 | for cc_temp in $compiler""; do |
7619 | case $cc_temp in |
7620 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7621 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7622 | \-*) ;; |
7623 | *) break;; |
7624 | esac |
7625 | done |
7626 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7627 | |
7628 | case $host_os in |
7629 | cygwin* | mingw* | pw32*) |
7630 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
7631 | # When not using gcc, we currently assume that we are using |
7632 | # Microsoft Visual C++. |
7633 | if test "$GCC" != yes; then |
7634 | with_gnu_ld=no |
7635 | fi |
7636 | ;; |
7637 | interix*) |
7638 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
7639 | with_gnu_ld=yes |
7640 | ;; |
7641 | openbsd*) |
7642 | with_gnu_ld=no |
7643 | ;; |
7644 | esac |
7645 | |
7646 | ld_shlibs=yes |
7647 | if test "$with_gnu_ld" = yes; then |
7648 | # If archive_cmds runs LD, not CC, wlarc should be empty |
7649 | wlarc='${wl}' |
7650 | |
7651 | # Set some defaults for GNU ld with shared library support. These |
7652 | # are reset later if shared libraries are not supported. Putting them |
7653 | # here allows them to be overridden if necessary. |
7654 | runpath_var=LD_RUN_PATH |
7655 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
7656 | export_dynamic_flag_spec='${wl}--export-dynamic' |
7657 | # ancient GNU ld didn't support --whole-archive et. al. |
7658 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
7659 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7660 | else |
7661 | whole_archive_flag_spec= |
7662 | fi |
7663 | supports_anon_versioning=no |
7664 | case `$LD -v 2>/dev/null` in |
7665 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7666 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
7667 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
7668 | *\ 2.11.*) ;; # other 2.11 versions |
7669 | *) supports_anon_versioning=yes ;; |
7670 | esac |
7671 | |
7672 | # See if GNU ld supports shared libraries. |
7673 | case $host_os in |
7674 | aix3* | aix4* | aix5*) |
7675 | # On AIX/PPC, the GNU linker is very broken |
7676 | if test "$host_cpu" != ia64; then |
7677 | ld_shlibs=no |
7678 | cat <<EOF 1>&2 |
7679 | |
7680 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7681 | *** to be unable to reliably create shared libraries on AIX. |
7682 | *** Therefore, libtool is disabling shared libraries support. If you |
7683 | *** really care for shared libraries, you may want to modify your PATH |
7684 | *** so that a non-GNU linker is found, and then restart. |
7685 | |
7686 | EOF |
7687 | fi |
7688 | ;; |
7689 | |
7690 | amigaos*) |
7691 | 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)' |
7692 | hardcode_libdir_flag_spec='-L$libdir' |
7693 | hardcode_minus_L=yes |
7694 | |
7695 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7696 | # that the semantics of dynamic libraries on AmigaOS, at least up |
7697 | # to version 4, is to share data among multiple programs linked |
7698 | # with the same dynamic library. Since this doesn't match the |
7699 | # behavior of shared libraries on other platforms, we can't use |
7700 | # them. |
7701 | ld_shlibs=no |
7702 | ;; |
7703 | |
7704 | beos*) |
7705 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7706 | allow_undefined_flag=unsupported |
7707 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7708 | # support --undefined. This deserves some investigation. FIXME |
7709 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7710 | else |
7711 | ld_shlibs=no |
7712 | fi |
7713 | ;; |
7714 | |
7715 | cygwin* | mingw* | pw32*) |
7716 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7717 | # as there is no search path for DLLs. |
7718 | hardcode_libdir_flag_spec='-L$libdir' |
7719 | allow_undefined_flag=unsupported |
7720 | always_export_symbols=no |
7721 | enable_shared_with_static_runtimes=yes |
7722 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
7723 | |
7724 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7725 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7726 | # If the export-symbols file already is a .def file (1st line |
7727 | # is EXPORTS), use it as is; otherwise, prepend... |
7728 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7729 | cp $export_symbols $output_objdir/$soname.def; |
7730 | else |
7731 | echo EXPORTS > $output_objdir/$soname.def; |
7732 | cat $export_symbols >> $output_objdir/$soname.def; |
7733 | fi~ |
7734 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7735 | else |
7736 | ld_shlibs=no |
7737 | fi |
7738 | ;; |
7739 | |
7740 | interix3*) |
7741 | hardcode_direct=no |
7742 | hardcode_shlibpath_var=no |
7743 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7744 | export_dynamic_flag_spec='${wl}-E' |
7745 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
7746 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
7747 | # default) and relocated if they conflict, which is a slow very memory |
7748 | # consuming and fragmenting process. To avoid this, we pick a random, |
7749 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
7750 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
7751 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7752 | 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' |
7753 | ;; |
7754 | |
7755 | linux*) |
7756 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7757 | tmp_addflag= |
7758 | case $cc_basename,$host_cpu in |
7759 | pgcc*) # Portland Group C compiler |
7760 | 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' |
7761 | tmp_addflag=' $pic_flag' |
7762 | ;; |
7763 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7764 | 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' |
7765 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7766 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7767 | tmp_addflag=' -i_dynamic' ;; |
7768 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7769 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
7770 | ifc* | ifort*) # Intel Fortran compiler |
7771 | tmp_addflag=' -nofor_main' ;; |
7772 | esac |
7773 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7774 | |
7775 | if test $supports_anon_versioning = yes; then |
7776 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7777 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7778 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
7779 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
7780 | fi |
7781 | else |
7782 | ld_shlibs=no |
7783 | fi |
7784 | ;; |
7785 | |
7786 | netbsd*) |
7787 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7788 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7789 | wlarc= |
7790 | else |
7791 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7792 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7793 | fi |
7794 | ;; |
7795 | |
7796 | solaris*) |
7797 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7798 | ld_shlibs=no |
7799 | cat <<EOF 1>&2 |
7800 | |
7801 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7802 | *** create shared libraries on Solaris systems. Therefore, libtool |
7803 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7804 | *** binutils to release 2.9.1 or newer. Another option is to modify |
7805 | *** your PATH or compiler configuration so that the native linker is |
7806 | *** used, and then restart. |
7807 | |
7808 | EOF |
7809 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7810 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7811 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7812 | else |
7813 | ld_shlibs=no |
7814 | fi |
7815 | ;; |
7816 | |
7817 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7818 | case `$LD -v 2>&1` in |
7819 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
7820 | ld_shlibs=no |
7821 | cat <<_LT_EOF 1>&2 |
7822 | |
7823 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
7824 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
7825 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7826 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
7827 | *** your PATH or compiler configuration so that the native linker is |
7828 | *** used, and then restart. |
7829 | |
7830 | _LT_EOF |
7831 | ;; |
7832 | *) |
7833 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7834 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
7835 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
7836 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
7837 | else |
7838 | ld_shlibs=no |
7839 | fi |
7840 | ;; |
7841 | esac |
7842 | ;; |
7843 | |
7844 | sunos4*) |
7845 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7846 | wlarc= |
7847 | hardcode_direct=yes |
7848 | hardcode_shlibpath_var=no |
7849 | ;; |
7850 | |
7851 | *) |
7852 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7853 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7854 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7855 | else |
7856 | ld_shlibs=no |
7857 | fi |
7858 | ;; |
7859 | esac |
7860 | |
7861 | if test "$ld_shlibs" = no; then |
7862 | runpath_var= |
7863 | hardcode_libdir_flag_spec= |
7864 | export_dynamic_flag_spec= |
7865 | whole_archive_flag_spec= |
7866 | fi |
7867 | else |
7868 | # PORTME fill in a description of your system's linker (not GNU ld) |
7869 | case $host_os in |
7870 | aix3*) |
7871 | allow_undefined_flag=unsupported |
7872 | always_export_symbols=yes |
7873 | 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' |
7874 | # Note: this linker hardcodes the directories in LIBPATH if there |
7875 | # are no directories specified by -L. |
7876 | hardcode_minus_L=yes |
7877 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
7878 | # Neither direct hardcoding nor static linking is supported with a |
7879 | # broken collect2. |
7880 | hardcode_direct=unsupported |
7881 | fi |
7882 | ;; |
7883 | |
7884 | aix4* | aix5*) |
7885 | if test "$host_cpu" = ia64; then |
7886 | # On IA64, the linker does run time linking by default, so we don't |
7887 | # have to do anything special. |
7888 | aix_use_runtimelinking=no |
7889 | exp_sym_flag='-Bexport' |
7890 | no_entry_flag="" |
7891 | else |
7892 | # If we're using GNU nm, then we don't want the "-C" option. |
7893 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
7894 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
7895 | 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' |
7896 | else |
7897 | 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' |
7898 | fi |
7899 | aix_use_runtimelinking=no |
7900 | |
7901 | # Test if we are trying to use run time linking or normal |
7902 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
7903 | # need to do runtime linking. |
7904 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
7905 | for ld_flag in $LDFLAGS; do |
7906 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
7907 | aix_use_runtimelinking=yes |
7908 | break |
7909 | fi |
7910 | done |
7911 | ;; |
7912 | esac |
7913 | |
7914 | exp_sym_flag='-bexport' |
7915 | no_entry_flag='-bnoentry' |
7916 | fi |
7917 | |
7918 | # When large executables or shared objects are built, AIX ld can |
7919 | # have problems creating the table of contents. If linking a library |
7920 | # or program results in "error TOC overflow" add -mminimal-toc to |
7921 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
7922 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
7923 | |
7924 | archive_cmds='' |
7925 | hardcode_direct=yes |
7926 | hardcode_libdir_separator=':' |
7927 | link_all_deplibs=yes |
7928 | |
7929 | if test "$GCC" = yes; then |
7930 | case $host_os in aix4.[012]|aix4.[012].*) |
7931 | # We only want to do this on AIX 4.2 and lower, the check |
7932 | # below for broken collect2 doesn't work under 4.3+ |
7933 | collect2name=`${CC} -print-prog-name=collect2` |
7934 | if test -f "$collect2name" && \ |
7935 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
7936 | then |
7937 | # We have reworked collect2 |
7938 | hardcode_direct=yes |
7939 | else |
7940 | # We have old collect2 |
7941 | hardcode_direct=unsupported |
7942 | # It fails to find uninstalled libraries when the uninstalled |
7943 | # path is not listed in the libpath. Setting hardcode_minus_L |
7944 | # to unsupported forces relinking |
7945 | hardcode_minus_L=yes |
7946 | hardcode_libdir_flag_spec='-L$libdir' |
7947 | hardcode_libdir_separator= |
7948 | fi |
7949 | ;; |
7950 | esac |
7951 | shared_flag='-shared' |
7952 | if test "$aix_use_runtimelinking" = yes; then |
7953 | shared_flag="$shared_flag "'${wl}-G' |
7954 | fi |
7955 | else |
7956 | # not using gcc |
7957 | if test "$host_cpu" = ia64; then |
7958 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
7959 | # chokes on -Wl,-G. The following line is correct: |
7960 | shared_flag='-G' |
7961 | else |
7962 | if test "$aix_use_runtimelinking" = yes; then |
7963 | shared_flag='${wl}-G' |
7964 | else |
7965 | shared_flag='${wl}-bM:SRE' |
7966 | fi |
7967 | fi |
7968 | fi |
7969 | |
7970 | # It seems that -bexpall does not export symbols beginning with |
7971 | # underscore (_), so it is better to generate a list of symbols to export. |
7972 | always_export_symbols=yes |
7973 | if test "$aix_use_runtimelinking" = yes; then |
7974 | # Warning - without using the other runtime loading flags (-brtl), |
7975 | # -berok will link without error, but may produce a broken library. |
7976 | allow_undefined_flag='-berok' |
7977 | # Determine the default libpath from the value encoded in an empty executable. |
7978 | cat >conftest.$ac_ext <<_ACEOF |
7979 | /* confdefs.h. */ |
7980 | _ACEOF |
7981 | cat confdefs.h >>conftest.$ac_ext |
7982 | cat >>conftest.$ac_ext <<_ACEOF |
7983 | /* end confdefs.h. */ |
7984 | |
7985 | int |
7986 | main () |
7987 | { |
7988 | |
7989 | ; |
7990 | return 0; |
7991 | } |
7992 | _ACEOF |
7993 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
7994 | if { (ac_try="$ac_link" |
7995 | case "(($ac_try" in |
7996 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7997 | *) ac_try_echo=$ac_try;; |
7998 | esac |
7999 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8000 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8001 | ac_status=$? |
8002 | grep -v '^ *+' conftest.er1 >conftest.err |
8003 | rm -f conftest.er1 |
8004 | cat conftest.err >&5 |
8005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
8006 | (exit $ac_status); } && { |
8007 | test -z "$ac_c_werror_flag" || |
8008 | test ! -s conftest.err |
8009 | } && test -s conftest$ac_exeext && |
8010 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8011 | |
8012 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8013 | }'` |
8014 | # Check for a 64-bit object if we didn't find anything. |
8015 | 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; } |
8016 | }'`; fi |
8017 | else |
8018 | echo "$as_me: failed program was:" >&5 |
8019 | sed 's/^/| /' conftest.$ac_ext >&5 |
8020 | |
dd184caf |
8021 | |
d9898ee8 |
8022 | fi |
dd184caf |
8023 | |
8024 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8025 | conftest$ac_exeext conftest.$ac_ext |
8026 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8027 | |
8028 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8029 | 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" |
8030 | else |
8031 | if test "$host_cpu" = ia64; then |
8032 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8033 | allow_undefined_flag="-z nodefs" |
8034 | 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" |
8035 | else |
8036 | # Determine the default libpath from the value encoded in an empty executable. |
8037 | cat >conftest.$ac_ext <<_ACEOF |
8038 | /* confdefs.h. */ |
8039 | _ACEOF |
8040 | cat confdefs.h >>conftest.$ac_ext |
8041 | cat >>conftest.$ac_ext <<_ACEOF |
8042 | /* end confdefs.h. */ |
8043 | |
8044 | int |
8045 | main () |
8046 | { |
8047 | |
8048 | ; |
8049 | return 0; |
8050 | } |
8051 | _ACEOF |
8052 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
8053 | if { (ac_try="$ac_link" |
8054 | case "(($ac_try" in |
8055 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8056 | *) ac_try_echo=$ac_try;; |
8057 | esac |
8058 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8059 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
8060 | ac_status=$? |
8061 | grep -v '^ *+' conftest.er1 >conftest.err |
8062 | rm -f conftest.er1 |
8063 | cat conftest.err >&5 |
8064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
8065 | (exit $ac_status); } && { |
8066 | test -z "$ac_c_werror_flag" || |
8067 | test ! -s conftest.err |
8068 | } && test -s conftest$ac_exeext && |
8069 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
8070 | |
8071 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8072 | }'` |
8073 | # Check for a 64-bit object if we didn't find anything. |
8074 | 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; } |
8075 | }'`; fi |
8076 | else |
8077 | echo "$as_me: failed program was:" >&5 |
8078 | sed 's/^/| /' conftest.$ac_ext >&5 |
8079 | |
dd184caf |
8080 | |
d9898ee8 |
8081 | fi |
dd184caf |
8082 | |
8083 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
8084 | conftest$ac_exeext conftest.$ac_ext |
8085 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8086 | |
8087 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8088 | # Warning - without using the other run time loading flags, |
8089 | # -berok will link without error, but may produce a broken library. |
8090 | no_undefined_flag=' ${wl}-bernotok' |
8091 | allow_undefined_flag=' ${wl}-berok' |
8092 | # Exported symbols can be pulled into shared objects from archives |
8093 | whole_archive_flag_spec='$convenience' |
8094 | archive_cmds_need_lc=yes |
8095 | # This is similar to how AIX traditionally builds its shared libraries. |
8096 | 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' |
8097 | fi |
8098 | fi |
8099 | ;; |
8100 | |
8101 | amigaos*) |
8102 | 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)' |
8103 | hardcode_libdir_flag_spec='-L$libdir' |
8104 | hardcode_minus_L=yes |
8105 | # see comment about different semantics on the GNU ld section |
8106 | ld_shlibs=no |
8107 | ;; |
8108 | |
8109 | bsdi[45]*) |
8110 | export_dynamic_flag_spec=-rdynamic |
8111 | ;; |
8112 | |
8113 | cygwin* | mingw* | pw32*) |
8114 | # When not using gcc, we currently assume that we are using |
8115 | # Microsoft Visual C++. |
8116 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
8117 | # no search path for DLLs. |
8118 | hardcode_libdir_flag_spec=' ' |
8119 | allow_undefined_flag=unsupported |
8120 | # Tell ltmain to make .lib files, not .a files. |
8121 | libext=lib |
8122 | # Tell ltmain to make .dll files, not .so files. |
8123 | shrext_cmds=".dll" |
8124 | # FIXME: Setting linknames here is a bad hack. |
8125 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
8126 | # The linker will automatically build a .lib file if we build a DLL. |
8127 | old_archive_From_new_cmds='true' |
8128 | # FIXME: Should let the user specify the lib program. |
8129 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
8130 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
8131 | enable_shared_with_static_runtimes=yes |
8132 | ;; |
8133 | |
8134 | darwin* | rhapsody*) |
8135 | case $host_os in |
8136 | rhapsody* | darwin1.[012]) |
8137 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
8138 | ;; |
8139 | *) # Darwin 1.3 on |
8140 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
8141 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8142 | else |
8143 | case ${MACOSX_DEPLOYMENT_TARGET} in |
8144 | 10.[012]) |
8145 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8146 | ;; |
8147 | 10.*) |
8148 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
8149 | ;; |
8150 | esac |
8151 | fi |
8152 | ;; |
8153 | esac |
8154 | archive_cmds_need_lc=no |
8155 | hardcode_direct=no |
8156 | hardcode_automatic=yes |
8157 | hardcode_shlibpath_var=unsupported |
8158 | whole_archive_flag_spec='' |
8159 | link_all_deplibs=yes |
8160 | if test "$GCC" = yes ; then |
8161 | output_verbose_link_cmd='echo' |
8162 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
8163 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8164 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8165 | 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}' |
8166 | 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}' |
8167 | else |
8168 | case $cc_basename in |
8169 | xlc*) |
8170 | output_verbose_link_cmd='echo' |
8171 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
8172 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8173 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8174 | 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}' |
8175 | 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}' |
8176 | ;; |
8177 | *) |
8178 | ld_shlibs=no |
8179 | ;; |
8180 | esac |
8181 | fi |
8182 | ;; |
8183 | |
8184 | dgux*) |
8185 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8186 | hardcode_libdir_flag_spec='-L$libdir' |
8187 | hardcode_shlibpath_var=no |
8188 | ;; |
8189 | |
8190 | freebsd1*) |
8191 | ld_shlibs=no |
8192 | ;; |
8193 | |
8194 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8195 | # support. Future versions do this automatically, but an explicit c++rt0.o |
8196 | # does not break anything, and helps significantly (at the cost of a little |
8197 | # extra space). |
8198 | freebsd2.2*) |
8199 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
8200 | hardcode_libdir_flag_spec='-R$libdir' |
8201 | hardcode_direct=yes |
8202 | hardcode_shlibpath_var=no |
8203 | ;; |
8204 | |
8205 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8206 | freebsd2*) |
8207 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8208 | hardcode_direct=yes |
8209 | hardcode_minus_L=yes |
8210 | hardcode_shlibpath_var=no |
8211 | ;; |
8212 | |
8213 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8214 | freebsd* | kfreebsd*-gnu | dragonfly*) |
8215 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
8216 | hardcode_libdir_flag_spec='-R$libdir' |
8217 | hardcode_direct=yes |
8218 | hardcode_shlibpath_var=no |
8219 | ;; |
8220 | |
8221 | hpux9*) |
8222 | if test "$GCC" = yes; then |
8223 | 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' |
8224 | else |
8225 | 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' |
8226 | fi |
8227 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8228 | hardcode_libdir_separator=: |
8229 | hardcode_direct=yes |
8230 | |
8231 | # hardcode_minus_L: Not really in the search PATH, |
8232 | # but as the default location of the library. |
8233 | hardcode_minus_L=yes |
8234 | export_dynamic_flag_spec='${wl}-E' |
8235 | ;; |
8236 | |
8237 | hpux10*) |
8238 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8239 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8240 | else |
8241 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
8242 | fi |
8243 | if test "$with_gnu_ld" = no; then |
8244 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8245 | hardcode_libdir_separator=: |
8246 | |
8247 | hardcode_direct=yes |
8248 | export_dynamic_flag_spec='${wl}-E' |
8249 | |
8250 | # hardcode_minus_L: Not really in the search PATH, |
8251 | # but as the default location of the library. |
8252 | hardcode_minus_L=yes |
8253 | fi |
8254 | ;; |
8255 | |
8256 | hpux11*) |
8257 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8258 | case $host_cpu in |
8259 | hppa*64*) |
8260 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8261 | ;; |
8262 | ia64*) |
8263 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8264 | ;; |
8265 | *) |
8266 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8267 | ;; |
8268 | esac |
8269 | else |
8270 | case $host_cpu in |
8271 | hppa*64*) |
8272 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8273 | ;; |
8274 | ia64*) |
8275 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8276 | ;; |
8277 | *) |
8278 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8279 | ;; |
8280 | esac |
8281 | fi |
8282 | if test "$with_gnu_ld" = no; then |
8283 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8284 | hardcode_libdir_separator=: |
8285 | |
8286 | case $host_cpu in |
8287 | hppa*64*|ia64*) |
8288 | hardcode_libdir_flag_spec_ld='+b $libdir' |
8289 | hardcode_direct=no |
8290 | hardcode_shlibpath_var=no |
8291 | ;; |
8292 | *) |
8293 | hardcode_direct=yes |
8294 | export_dynamic_flag_spec='${wl}-E' |
8295 | |
8296 | # hardcode_minus_L: Not really in the search PATH, |
8297 | # but as the default location of the library. |
8298 | hardcode_minus_L=yes |
8299 | ;; |
8300 | esac |
8301 | fi |
8302 | ;; |
8303 | |
8304 | irix5* | irix6* | nonstopux*) |
8305 | if test "$GCC" = yes; then |
8306 | 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' |
8307 | else |
8308 | 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' |
8309 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
8310 | fi |
8311 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8312 | hardcode_libdir_separator=: |
8313 | link_all_deplibs=yes |
8314 | ;; |
8315 | |
8316 | netbsd*) |
8317 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8318 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
8319 | else |
8320 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
8321 | fi |
8322 | hardcode_libdir_flag_spec='-R$libdir' |
8323 | hardcode_direct=yes |
8324 | hardcode_shlibpath_var=no |
8325 | ;; |
8326 | |
8327 | newsos6) |
8328 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8329 | hardcode_direct=yes |
8330 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8331 | hardcode_libdir_separator=: |
8332 | hardcode_shlibpath_var=no |
8333 | ;; |
8334 | |
8335 | openbsd*) |
8336 | hardcode_direct=yes |
8337 | hardcode_shlibpath_var=no |
8338 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8339 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8340 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
8341 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8342 | export_dynamic_flag_spec='${wl}-E' |
8343 | else |
8344 | case $host_os in |
8345 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
8346 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8347 | hardcode_libdir_flag_spec='-R$libdir' |
8348 | ;; |
8349 | *) |
8350 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8351 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8352 | ;; |
8353 | esac |
8354 | fi |
8355 | ;; |
8356 | |
8357 | os2*) |
8358 | hardcode_libdir_flag_spec='-L$libdir' |
8359 | hardcode_minus_L=yes |
8360 | allow_undefined_flag=unsupported |
8361 | 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' |
8362 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
8363 | ;; |
8364 | |
8365 | osf3*) |
8366 | if test "$GCC" = yes; then |
8367 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8368 | 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' |
8369 | else |
8370 | allow_undefined_flag=' -expect_unresolved \*' |
8371 | 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' |
8372 | fi |
8373 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8374 | hardcode_libdir_separator=: |
8375 | ;; |
8376 | |
8377 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8378 | if test "$GCC" = yes; then |
8379 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8380 | 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' |
8381 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8382 | else |
8383 | allow_undefined_flag=' -expect_unresolved \*' |
8384 | 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' |
8385 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
8386 | $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' |
8387 | |
8388 | # Both c and cxx compiler support -rpath directly |
8389 | hardcode_libdir_flag_spec='-rpath $libdir' |
8390 | fi |
8391 | hardcode_libdir_separator=: |
8392 | ;; |
8393 | |
8394 | solaris*) |
8395 | no_undefined_flag=' -z text' |
8396 | if test "$GCC" = yes; then |
8397 | wlarc='${wl}' |
8398 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8399 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8400 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
8401 | else |
8402 | wlarc='' |
8403 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8404 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8405 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
8406 | fi |
8407 | hardcode_libdir_flag_spec='-R$libdir' |
8408 | hardcode_shlibpath_var=no |
8409 | case $host_os in |
8410 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
8411 | *) |
8412 | # The compiler driver will combine linker options so we |
8413 | # cannot just pass the convience library names through |
8414 | # without $wl, iff we do not link with $LD. |
8415 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
8416 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
8417 | case $wlarc in |
8418 | '') |
8419 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
8420 | *) |
8421 | 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' ;; |
8422 | esac ;; |
8423 | esac |
8424 | link_all_deplibs=yes |
8425 | ;; |
8426 | |
8427 | sunos4*) |
8428 | if test "x$host_vendor" = xsequent; then |
8429 | # Use $CC to link under sequent, because it throws in some extra .o |
8430 | # files that make .init and .fini sections work. |
8431 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8432 | else |
8433 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
8434 | fi |
8435 | hardcode_libdir_flag_spec='-L$libdir' |
8436 | hardcode_direct=yes |
8437 | hardcode_minus_L=yes |
8438 | hardcode_shlibpath_var=no |
8439 | ;; |
8440 | |
8441 | sysv4) |
8442 | case $host_vendor in |
8443 | sni) |
8444 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8445 | hardcode_direct=yes # is this really true??? |
8446 | ;; |
8447 | siemens) |
8448 | ## LD is ld it makes a PLAMLIB |
8449 | ## CC just makes a GrossModule. |
8450 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
8451 | reload_cmds='$CC -r -o $output$reload_objs' |
8452 | hardcode_direct=no |
8453 | ;; |
8454 | motorola) |
8455 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8456 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
8457 | ;; |
8458 | esac |
8459 | runpath_var='LD_RUN_PATH' |
8460 | hardcode_shlibpath_var=no |
8461 | ;; |
8462 | |
8463 | sysv4.3*) |
8464 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8465 | hardcode_shlibpath_var=no |
8466 | export_dynamic_flag_spec='-Bexport' |
8467 | ;; |
8468 | |
8469 | sysv4*MP*) |
8470 | if test -d /usr/nec; then |
8471 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8472 | hardcode_shlibpath_var=no |
8473 | runpath_var=LD_RUN_PATH |
8474 | hardcode_runpath_var=yes |
8475 | ld_shlibs=yes |
8476 | fi |
8477 | ;; |
8478 | |
8479 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
8480 | no_undefined_flag='${wl}-z,text' |
8481 | archive_cmds_need_lc=no |
8482 | hardcode_shlibpath_var=no |
8483 | runpath_var='LD_RUN_PATH' |
8484 | |
8485 | if test "$GCC" = yes; then |
8486 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8487 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8488 | else |
8489 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8490 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8491 | fi |
8492 | ;; |
8493 | |
8494 | sysv5* | sco3.2v5* | sco5v6*) |
8495 | # Note: We can NOT use -z defs as we might desire, because we do not |
8496 | # link with -lc, and that would cause any symbols used from libc to |
8497 | # always be unresolved, which means just about no library would |
8498 | # ever link correctly. If we're not using GNU ld we use -z text |
8499 | # though, which does catch some bad symbols but isn't as heavy-handed |
8500 | # as -z defs. |
8501 | no_undefined_flag='${wl}-z,text' |
8502 | allow_undefined_flag='${wl}-z,nodefs' |
8503 | archive_cmds_need_lc=no |
8504 | hardcode_shlibpath_var=no |
8505 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
8506 | hardcode_libdir_separator=':' |
8507 | link_all_deplibs=yes |
8508 | export_dynamic_flag_spec='${wl}-Bexport' |
8509 | runpath_var='LD_RUN_PATH' |
8510 | |
8511 | if test "$GCC" = yes; then |
8512 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8513 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8514 | else |
8515 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8516 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8517 | fi |
8518 | ;; |
8519 | |
8520 | uts4*) |
8521 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8522 | hardcode_libdir_flag_spec='-L$libdir' |
8523 | hardcode_shlibpath_var=no |
8524 | ;; |
8525 | |
8526 | *) |
8527 | ld_shlibs=no |
8528 | ;; |
8529 | esac |
8530 | fi |
8531 | |
dd184caf |
8532 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8533 | echo "${ECHO_T}$ld_shlibs" >&6; } |
d9898ee8 |
8534 | test "$ld_shlibs" = no && can_build_shared=no |
8535 | |
8536 | # |
8537 | # Do we need to explicitly link libc? |
8538 | # |
8539 | case "x$archive_cmds_need_lc" in |
8540 | x|xyes) |
8541 | # Assume -lc should be added |
8542 | archive_cmds_need_lc=yes |
8543 | |
8544 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
8545 | case $archive_cmds in |
8546 | *'~'*) |
8547 | # FIXME: we may have to deal with multi-command sequences. |
8548 | ;; |
8549 | '$CC '*) |
8550 | # Test whether the compiler implicitly links with -lc since on some |
8551 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
8552 | # to ld, don't add -lc before -lgcc. |
dd184caf |
8553 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
8554 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
8555 | $rm conftest* |
8556 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
8557 | |
8558 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8559 | (eval $ac_compile) 2>&5 |
8560 | ac_status=$? |
8561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8562 | (exit $ac_status); } 2>conftest.err; then |
8563 | soname=conftest |
8564 | lib=conftest |
8565 | libobjs=conftest.$ac_objext |
8566 | deplibs= |
8567 | wl=$lt_prog_compiler_wl |
8568 | pic_flag=$lt_prog_compiler_pic |
8569 | compiler_flags=-v |
8570 | linker_flags=-v |
8571 | verstring= |
8572 | output_objdir=. |
8573 | libname=conftest |
8574 | lt_save_allow_undefined_flag=$allow_undefined_flag |
8575 | allow_undefined_flag= |
8576 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
8577 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
8578 | ac_status=$? |
8579 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8580 | (exit $ac_status); } |
8581 | then |
8582 | archive_cmds_need_lc=no |
8583 | else |
8584 | archive_cmds_need_lc=yes |
8585 | fi |
8586 | allow_undefined_flag=$lt_save_allow_undefined_flag |
8587 | else |
8588 | cat conftest.err 1>&5 |
8589 | fi |
8590 | $rm conftest* |
dd184caf |
8591 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
8592 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
d9898ee8 |
8593 | ;; |
8594 | esac |
8595 | fi |
8596 | ;; |
8597 | esac |
8598 | |
dd184caf |
8599 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
8600 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
8601 | library_names_spec= |
8602 | libname_spec='lib$name' |
8603 | soname_spec= |
8604 | shrext_cmds=".so" |
8605 | postinstall_cmds= |
8606 | postuninstall_cmds= |
8607 | finish_cmds= |
8608 | finish_eval= |
8609 | shlibpath_var= |
8610 | shlibpath_overrides_runpath=unknown |
8611 | version_type=none |
8612 | dynamic_linker="$host_os ld.so" |
8613 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
8614 | if test "$GCC" = yes; then |
8615 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8616 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
8617 | # if the path contains ";" then we assume it to be the separator |
8618 | # otherwise default to the standard path separator (i.e. ":") - it is |
8619 | # assumed that no part of a normal pathname contains ";" but that should |
8620 | # okay in the real world where ";" in dirpaths is itself problematic. |
8621 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8622 | else |
8623 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8624 | fi |
8625 | else |
8626 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
8627 | fi |
8628 | need_lib_prefix=unknown |
8629 | hardcode_into_libs=no |
8630 | |
8631 | # when you set need_version to no, make sure it does not cause -set_version |
8632 | # flags to be left without arguments |
8633 | need_version=unknown |
8634 | |
8635 | case $host_os in |
8636 | aix3*) |
8637 | version_type=linux |
8638 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
8639 | shlibpath_var=LIBPATH |
8640 | |
8641 | # AIX 3 has no versioning support, so we append a major version to the name. |
8642 | soname_spec='${libname}${release}${shared_ext}$major' |
8643 | ;; |
8644 | |
8645 | aix4* | aix5*) |
8646 | version_type=linux |
8647 | need_lib_prefix=no |
8648 | need_version=no |
8649 | hardcode_into_libs=yes |
8650 | if test "$host_cpu" = ia64; then |
8651 | # AIX 5 supports IA64 |
8652 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
8653 | shlibpath_var=LD_LIBRARY_PATH |
8654 | else |
8655 | # With GCC up to 2.95.x, collect2 would create an import file |
8656 | # for dependence libraries. The import file would start with |
8657 | # the line `#! .'. This would cause the generated library to |
8658 | # depend on `.', always an invalid library. This was fixed in |
8659 | # development snapshots of GCC prior to 3.0. |
8660 | case $host_os in |
8661 | aix4 | aix4.[01] | aix4.[01].*) |
8662 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
8663 | echo ' yes ' |
8664 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
8665 | : |
8666 | else |
8667 | can_build_shared=no |
8668 | fi |
8669 | ;; |
8670 | esac |
8671 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
8672 | # soname into executable. Probably we can add versioning support to |
8673 | # collect2, so additional links can be useful in future. |
8674 | if test "$aix_use_runtimelinking" = yes; then |
8675 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
8676 | # instead of lib<name>.a to let people know that these are not |
8677 | # typical AIX shared libraries. |
8678 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8679 | else |
8680 | # We preserve .a as extension for shared libraries through AIX4.2 |
8681 | # and later when we are not doing run time linking. |
8682 | library_names_spec='${libname}${release}.a $libname.a' |
8683 | soname_spec='${libname}${release}${shared_ext}$major' |
8684 | fi |
8685 | shlibpath_var=LIBPATH |
8686 | fi |
8687 | ;; |
8688 | |
8689 | amigaos*) |
8690 | library_names_spec='$libname.ixlibrary $libname.a' |
8691 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
8692 | 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' |
8693 | ;; |
8694 | |
8695 | beos*) |
8696 | library_names_spec='${libname}${shared_ext}' |
8697 | dynamic_linker="$host_os ld.so" |
8698 | shlibpath_var=LIBRARY_PATH |
8699 | ;; |
8700 | |
8701 | bsdi[45]*) |
8702 | version_type=linux |
8703 | need_version=no |
8704 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8705 | soname_spec='${libname}${release}${shared_ext}$major' |
8706 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8707 | shlibpath_var=LD_LIBRARY_PATH |
8708 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
8709 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
8710 | # the default ld.so.conf also contains /usr/contrib/lib and |
8711 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8712 | # libtool to hard-code these into programs |
8713 | ;; |
8714 | |
8715 | cygwin* | mingw* | pw32*) |
8716 | version_type=windows |
8717 | shrext_cmds=".dll" |
8718 | need_version=no |
8719 | need_lib_prefix=no |
8720 | |
8721 | case $GCC,$host_os in |
8722 | yes,cygwin* | yes,mingw* | yes,pw32*) |
8723 | library_names_spec='$libname.dll.a' |
8724 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8725 | postinstall_cmds='base_file=`basename \${file}`~ |
8726 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8727 | dldir=$destdir/`dirname \$dlpath`~ |
8728 | test -d \$dldir || mkdir -p \$dldir~ |
8729 | $install_prog $dir/$dlname \$dldir/$dlname~ |
8730 | chmod a+x \$dldir/$dlname' |
8731 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8732 | dlpath=$dir/\$dldll~ |
8733 | $rm \$dlpath' |
8734 | shlibpath_overrides_runpath=yes |
8735 | |
8736 | case $host_os in |
8737 | cygwin*) |
8738 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8739 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8740 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8741 | ;; |
8742 | mingw*) |
8743 | # MinGW DLLs use traditional 'lib' prefix |
8744 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8745 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8746 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
8747 | # It is most probably a Windows format PATH printed by |
8748 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
8749 | # path with ; separators, and with drive letters. We can handle the |
8750 | # drive letters (cygwin fileutils understands them), so leave them, |
8751 | # especially as we might pass files found there to a mingw objdump, |
8752 | # which wouldn't understand a cygwinified path. Ahh. |
8753 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8754 | else |
8755 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8756 | fi |
8757 | ;; |
8758 | pw32*) |
8759 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8760 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8761 | ;; |
8762 | esac |
8763 | ;; |
8764 | |
8765 | *) |
8766 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8767 | ;; |
8768 | esac |
8769 | dynamic_linker='Win32 ld.exe' |
8770 | # FIXME: first we should search . and the directory the executable is in |
8771 | shlibpath_var=PATH |
8772 | ;; |
8773 | |
8774 | darwin* | rhapsody*) |
8775 | dynamic_linker="$host_os dyld" |
8776 | version_type=darwin |
8777 | need_lib_prefix=no |
8778 | need_version=no |
8779 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8780 | soname_spec='${libname}${release}${major}$shared_ext' |
8781 | shlibpath_overrides_runpath=yes |
8782 | shlibpath_var=DYLD_LIBRARY_PATH |
8783 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
8784 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8785 | if test "$GCC" = yes; then |
8786 | 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"` |
8787 | else |
8788 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
8789 | fi |
8790 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8791 | ;; |
8792 | |
8793 | dgux*) |
8794 | version_type=linux |
8795 | need_lib_prefix=no |
8796 | need_version=no |
8797 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8798 | soname_spec='${libname}${release}${shared_ext}$major' |
8799 | shlibpath_var=LD_LIBRARY_PATH |
8800 | ;; |
8801 | |
8802 | freebsd1*) |
8803 | dynamic_linker=no |
8804 | ;; |
8805 | |
8806 | kfreebsd*-gnu) |
8807 | version_type=linux |
8808 | need_lib_prefix=no |
8809 | need_version=no |
8810 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8811 | soname_spec='${libname}${release}${shared_ext}$major' |
8812 | shlibpath_var=LD_LIBRARY_PATH |
8813 | shlibpath_overrides_runpath=no |
8814 | hardcode_into_libs=yes |
8815 | dynamic_linker='GNU ld.so' |
8816 | ;; |
8817 | |
8818 | freebsd* | dragonfly*) |
8819 | # DragonFly does not have aout. When/if they implement a new |
8820 | # versioning mechanism, adjust this. |
8821 | if test -x /usr/bin/objformat; then |
8822 | objformat=`/usr/bin/objformat` |
8823 | else |
8824 | case $host_os in |
8825 | freebsd[123]*) objformat=aout ;; |
8826 | *) objformat=elf ;; |
8827 | esac |
8828 | fi |
8829 | version_type=freebsd-$objformat |
8830 | case $version_type in |
8831 | freebsd-elf*) |
8832 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8833 | need_version=no |
8834 | need_lib_prefix=no |
8835 | ;; |
8836 | freebsd-*) |
8837 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
8838 | need_version=yes |
8839 | ;; |
8840 | esac |
8841 | shlibpath_var=LD_LIBRARY_PATH |
8842 | case $host_os in |
8843 | freebsd2*) |
8844 | shlibpath_overrides_runpath=yes |
8845 | ;; |
8846 | freebsd3.[01]* | freebsdelf3.[01]*) |
8847 | shlibpath_overrides_runpath=yes |
8848 | hardcode_into_libs=yes |
8849 | ;; |
8850 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
8851 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
8852 | shlibpath_overrides_runpath=no |
8853 | hardcode_into_libs=yes |
8854 | ;; |
8855 | freebsd*) # from 4.6 on |
8856 | shlibpath_overrides_runpath=yes |
8857 | hardcode_into_libs=yes |
8858 | ;; |
8859 | esac |
8860 | ;; |
8861 | |
8862 | gnu*) |
8863 | version_type=linux |
8864 | need_lib_prefix=no |
8865 | need_version=no |
8866 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
8867 | soname_spec='${libname}${release}${shared_ext}$major' |
8868 | shlibpath_var=LD_LIBRARY_PATH |
8869 | hardcode_into_libs=yes |
8870 | ;; |
8871 | |
8872 | hpux9* | hpux10* | hpux11*) |
8873 | # Give a soname corresponding to the major version so that dld.sl refuses to |
8874 | # link against other versions. |
8875 | version_type=sunos |
8876 | need_lib_prefix=no |
8877 | need_version=no |
8878 | case $host_cpu in |
8879 | ia64*) |
8880 | shrext_cmds='.so' |
8881 | hardcode_into_libs=yes |
8882 | dynamic_linker="$host_os dld.so" |
8883 | shlibpath_var=LD_LIBRARY_PATH |
8884 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8885 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8886 | soname_spec='${libname}${release}${shared_ext}$major' |
8887 | if test "X$HPUX_IA64_MODE" = X32; then |
8888 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
8889 | else |
8890 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
8891 | fi |
8892 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8893 | ;; |
8894 | hppa*64*) |
8895 | shrext_cmds='.sl' |
8896 | hardcode_into_libs=yes |
8897 | dynamic_linker="$host_os dld.sl" |
8898 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
8899 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
8900 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8901 | soname_spec='${libname}${release}${shared_ext}$major' |
8902 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
8903 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
8904 | ;; |
8905 | *) |
8906 | shrext_cmds='.sl' |
8907 | dynamic_linker="$host_os dld.sl" |
8908 | shlibpath_var=SHLIB_PATH |
8909 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
8910 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8911 | soname_spec='${libname}${release}${shared_ext}$major' |
8912 | ;; |
8913 | esac |
8914 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
8915 | postinstall_cmds='chmod 555 $lib' |
8916 | ;; |
8917 | |
8918 | interix3*) |
8919 | version_type=linux |
8920 | need_lib_prefix=no |
8921 | need_version=no |
8922 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
8923 | soname_spec='${libname}${release}${shared_ext}$major' |
8924 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
8925 | shlibpath_var=LD_LIBRARY_PATH |
8926 | shlibpath_overrides_runpath=no |
8927 | hardcode_into_libs=yes |
8928 | ;; |
8929 | |
8930 | irix5* | irix6* | nonstopux*) |
8931 | case $host_os in |
8932 | nonstopux*) version_type=nonstopux ;; |
8933 | *) |
8934 | if test "$lt_cv_prog_gnu_ld" = yes; then |
8935 | version_type=linux |
8936 | else |
8937 | version_type=irix |
8938 | fi ;; |
8939 | esac |
8940 | need_lib_prefix=no |
8941 | need_version=no |
8942 | soname_spec='${libname}${release}${shared_ext}$major' |
8943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
8944 | case $host_os in |
8945 | irix5* | nonstopux*) |
8946 | libsuff= shlibsuff= |
8947 | ;; |
8948 | *) |
8949 | case $LD in # libtool.m4 will add one of these switches to LD |
8950 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
8951 | libsuff= shlibsuff= libmagic=32-bit;; |
8952 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
8953 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
8954 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
8955 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
8956 | *) libsuff= shlibsuff= libmagic=never-match;; |
8957 | esac |
8958 | ;; |
8959 | esac |
8960 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
8961 | shlibpath_overrides_runpath=no |
8962 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
8963 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
8964 | hardcode_into_libs=yes |
8965 | ;; |
8966 | |
8967 | # No shared lib support for Linux oldld, aout, or coff. |
8968 | linux*oldld* | linux*aout* | linux*coff*) |
8969 | dynamic_linker=no |
8970 | ;; |
8971 | |
8972 | # This must be Linux ELF. |
8973 | linux*) |
8974 | version_type=linux |
8975 | need_lib_prefix=no |
8976 | need_version=no |
8977 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8978 | soname_spec='${libname}${release}${shared_ext}$major' |
8979 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
8980 | shlibpath_var=LD_LIBRARY_PATH |
8981 | shlibpath_overrides_runpath=no |
8982 | # This implies no fast_install, which is unacceptable. |
8983 | # Some rework will be needed to allow for fast_install |
8984 | # before this can be enabled. |
8985 | hardcode_into_libs=yes |
8986 | |
8987 | # find out which ABI we are using |
8988 | libsuff= |
8989 | case "$host_cpu" in |
8990 | x86_64*|s390x*|powerpc64*) |
dd184caf |
8991 | echo '#line 8991 "configure"' > conftest.$ac_ext |
d9898ee8 |
8992 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8993 | (eval $ac_compile) 2>&5 |
8994 | ac_status=$? |
8995 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8996 | (exit $ac_status); }; then |
8997 | case `/usr/bin/file conftest.$ac_objext` in |
8998 | *64-bit*) |
8999 | libsuff=64 |
9000 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
9001 | ;; |
9002 | esac |
9003 | fi |
9004 | rm -rf conftest* |
9005 | ;; |
9006 | esac |
9007 | |
9008 | # Append ld.so.conf contents to the search path |
9009 | if test -f /etc/ld.so.conf; then |
dd184caf |
9010 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
9011 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
9012 | fi |
9013 | |
9014 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
9015 | # powerpc, because MkLinux only supported shared libraries with the |
9016 | # GNU dynamic linker. Since this was broken with cross compilers, |
9017 | # most powerpc-linux boxes support dynamic linking these days and |
9018 | # people can always --disable-shared, the test was removed, and we |
9019 | # assume the GNU/Linux dynamic linker is in use. |
9020 | dynamic_linker='GNU/Linux ld.so' |
9021 | ;; |
9022 | |
9023 | knetbsd*-gnu) |
9024 | version_type=linux |
9025 | need_lib_prefix=no |
9026 | need_version=no |
9027 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9028 | soname_spec='${libname}${release}${shared_ext}$major' |
9029 | shlibpath_var=LD_LIBRARY_PATH |
9030 | shlibpath_overrides_runpath=no |
9031 | hardcode_into_libs=yes |
9032 | dynamic_linker='GNU ld.so' |
9033 | ;; |
9034 | |
9035 | netbsd*) |
9036 | version_type=sunos |
9037 | need_lib_prefix=no |
9038 | need_version=no |
9039 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
9040 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9041 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9042 | dynamic_linker='NetBSD (a.out) ld.so' |
9043 | else |
9044 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9045 | soname_spec='${libname}${release}${shared_ext}$major' |
9046 | dynamic_linker='NetBSD ld.elf_so' |
9047 | fi |
9048 | shlibpath_var=LD_LIBRARY_PATH |
9049 | shlibpath_overrides_runpath=yes |
9050 | hardcode_into_libs=yes |
9051 | ;; |
9052 | |
9053 | newsos6) |
9054 | version_type=linux |
9055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9056 | shlibpath_var=LD_LIBRARY_PATH |
9057 | shlibpath_overrides_runpath=yes |
9058 | ;; |
9059 | |
9060 | nto-qnx*) |
9061 | version_type=linux |
9062 | need_lib_prefix=no |
9063 | need_version=no |
9064 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9065 | soname_spec='${libname}${release}${shared_ext}$major' |
9066 | shlibpath_var=LD_LIBRARY_PATH |
9067 | shlibpath_overrides_runpath=yes |
9068 | ;; |
9069 | |
9070 | openbsd*) |
9071 | version_type=sunos |
9072 | sys_lib_dlsearch_path_spec="/usr/lib" |
9073 | need_lib_prefix=no |
9074 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
9075 | case $host_os in |
9076 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
9077 | *) need_version=no ;; |
9078 | esac |
9079 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9080 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9081 | shlibpath_var=LD_LIBRARY_PATH |
9082 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9083 | case $host_os in |
9084 | openbsd2.[89] | openbsd2.[89].*) |
9085 | shlibpath_overrides_runpath=no |
9086 | ;; |
9087 | *) |
9088 | shlibpath_overrides_runpath=yes |
9089 | ;; |
9090 | esac |
9091 | else |
9092 | shlibpath_overrides_runpath=yes |
9093 | fi |
9094 | ;; |
9095 | |
9096 | os2*) |
9097 | libname_spec='$name' |
9098 | shrext_cmds=".dll" |
9099 | need_lib_prefix=no |
9100 | library_names_spec='$libname${shared_ext} $libname.a' |
9101 | dynamic_linker='OS/2 ld.exe' |
9102 | shlibpath_var=LIBPATH |
9103 | ;; |
9104 | |
9105 | osf3* | osf4* | osf5*) |
9106 | version_type=osf |
9107 | need_lib_prefix=no |
9108 | need_version=no |
9109 | soname_spec='${libname}${release}${shared_ext}$major' |
9110 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9111 | shlibpath_var=LD_LIBRARY_PATH |
9112 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
9113 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
9114 | ;; |
9115 | |
9116 | solaris*) |
9117 | version_type=linux |
9118 | need_lib_prefix=no |
9119 | need_version=no |
9120 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9121 | soname_spec='${libname}${release}${shared_ext}$major' |
9122 | shlibpath_var=LD_LIBRARY_PATH |
9123 | shlibpath_overrides_runpath=yes |
9124 | hardcode_into_libs=yes |
9125 | # ldd complains unless libraries are executable |
9126 | postinstall_cmds='chmod +x $lib' |
9127 | ;; |
9128 | |
9129 | sunos4*) |
9130 | version_type=sunos |
9131 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9132 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
9133 | shlibpath_var=LD_LIBRARY_PATH |
9134 | shlibpath_overrides_runpath=yes |
9135 | if test "$with_gnu_ld" = yes; then |
9136 | need_lib_prefix=no |
9137 | fi |
9138 | need_version=yes |
9139 | ;; |
9140 | |
9141 | sysv4 | sysv4.3*) |
9142 | version_type=linux |
9143 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9144 | soname_spec='${libname}${release}${shared_ext}$major' |
9145 | shlibpath_var=LD_LIBRARY_PATH |
9146 | case $host_vendor in |
9147 | sni) |
9148 | shlibpath_overrides_runpath=no |
9149 | need_lib_prefix=no |
9150 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
9151 | runpath_var=LD_RUN_PATH |
9152 | ;; |
9153 | siemens) |
9154 | need_lib_prefix=no |
9155 | ;; |
9156 | motorola) |
9157 | need_lib_prefix=no |
9158 | need_version=no |
9159 | shlibpath_overrides_runpath=no |
9160 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
9161 | ;; |
9162 | esac |
9163 | ;; |
9164 | |
9165 | sysv4*MP*) |
9166 | if test -d /usr/nec ;then |
9167 | version_type=linux |
9168 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
9169 | soname_spec='$libname${shared_ext}.$major' |
9170 | shlibpath_var=LD_LIBRARY_PATH |
9171 | fi |
9172 | ;; |
9173 | |
9174 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9175 | version_type=freebsd-elf |
9176 | need_lib_prefix=no |
9177 | need_version=no |
9178 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9179 | soname_spec='${libname}${release}${shared_ext}$major' |
9180 | shlibpath_var=LD_LIBRARY_PATH |
9181 | hardcode_into_libs=yes |
9182 | if test "$with_gnu_ld" = yes; then |
9183 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
9184 | shlibpath_overrides_runpath=no |
9185 | else |
9186 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
9187 | shlibpath_overrides_runpath=yes |
9188 | case $host_os in |
9189 | sco3.2v5*) |
9190 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
9191 | ;; |
9192 | esac |
9193 | fi |
9194 | sys_lib_dlsearch_path_spec='/usr/lib' |
9195 | ;; |
9196 | |
9197 | uts4*) |
9198 | version_type=linux |
9199 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9200 | soname_spec='${libname}${release}${shared_ext}$major' |
9201 | shlibpath_var=LD_LIBRARY_PATH |
9202 | ;; |
9203 | |
9204 | *) |
9205 | dynamic_linker=no |
9206 | ;; |
9207 | esac |
dd184caf |
9208 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
9209 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
9210 | test "$dynamic_linker" = no && can_build_shared=no |
9211 | |
9212 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9213 | if test "$GCC" = yes; then |
9214 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
9215 | fi |
9216 | |
dd184caf |
9217 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
9218 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
9219 | hardcode_action= |
9220 | if test -n "$hardcode_libdir_flag_spec" || \ |
9221 | test -n "$runpath_var" || \ |
9222 | test "X$hardcode_automatic" = "Xyes" ; then |
9223 | |
9224 | # We can hardcode non-existant directories. |
9225 | if test "$hardcode_direct" != no && |
9226 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
9227 | # have to relink, otherwise we might link with an installed library |
9228 | # when we should be linking with a yet-to-be-installed one |
9229 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
9230 | test "$hardcode_minus_L" != no; then |
9231 | # Linking always hardcodes the temporary library directory. |
9232 | hardcode_action=relink |
9233 | else |
9234 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
9235 | hardcode_action=immediate |
9236 | fi |
9237 | else |
9238 | # We cannot hardcode anything, or else we can only hardcode existing |
9239 | # directories. |
9240 | hardcode_action=unsupported |
9241 | fi |
dd184caf |
9242 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9243 | echo "${ECHO_T}$hardcode_action" >&6; } |
d9898ee8 |
9244 | |
9245 | if test "$hardcode_action" = relink; then |
9246 | # Fast installation is not supported |
9247 | enable_fast_install=no |
9248 | elif test "$shlibpath_overrides_runpath" = yes || |
9249 | test "$enable_shared" = no; then |
9250 | # Fast installation is not necessary |
9251 | enable_fast_install=needless |
9252 | fi |
9253 | |
9254 | striplib= |
9255 | old_striplib= |
dd184caf |
9256 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
9257 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
d9898ee8 |
9258 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
9259 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
9260 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
dd184caf |
9261 | { echo "$as_me:$LINENO: result: yes" >&5 |
9262 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9263 | else |
9264 | # FIXME - insert some real tests, host_os isn't really good enough |
9265 | case $host_os in |
9266 | darwin*) |
9267 | if test -n "$STRIP" ; then |
9268 | striplib="$STRIP -x" |
dd184caf |
9269 | { echo "$as_me:$LINENO: result: yes" >&5 |
9270 | echo "${ECHO_T}yes" >&6; } |
d9898ee8 |
9271 | else |
dd184caf |
9272 | { echo "$as_me:$LINENO: result: no" >&5 |
9273 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9274 | fi |
9275 | ;; |
9276 | *) |
dd184caf |
9277 | { echo "$as_me:$LINENO: result: no" >&5 |
9278 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
9279 | ;; |
9280 | esac |
9281 | fi |
9282 | |
9283 | if test "x$enable_dlopen" != xyes; then |
9284 | enable_dlopen=unknown |
9285 | enable_dlopen_self=unknown |
9286 | enable_dlopen_self_static=unknown |
9287 | else |
9288 | lt_cv_dlopen=no |
9289 | lt_cv_dlopen_libs= |
9290 | |
9291 | case $host_os in |
9292 | beos*) |
9293 | lt_cv_dlopen="load_add_on" |
9294 | lt_cv_dlopen_libs= |
9295 | lt_cv_dlopen_self=yes |
9296 | ;; |
9297 | |
9298 | mingw* | pw32*) |
9299 | lt_cv_dlopen="LoadLibrary" |
9300 | lt_cv_dlopen_libs= |
9301 | ;; |
9302 | |
9303 | cygwin*) |
9304 | lt_cv_dlopen="dlopen" |
9305 | lt_cv_dlopen_libs= |
9306 | ;; |
9307 | |
9308 | darwin*) |
9309 | # if libdl is installed we need to link against it |
dd184caf |
9310 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9311 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9312 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9313 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9314 | else |
9315 | ac_check_lib_save_LIBS=$LIBS |
9316 | LIBS="-ldl $LIBS" |
9317 | cat >conftest.$ac_ext <<_ACEOF |
9318 | /* confdefs.h. */ |
9319 | _ACEOF |
9320 | cat confdefs.h >>conftest.$ac_ext |
9321 | cat >>conftest.$ac_ext <<_ACEOF |
9322 | /* end confdefs.h. */ |
9323 | |
dd184caf |
9324 | /* Override any GCC internal prototype to avoid an error. |
9325 | Use char because int might match the return type of a GCC |
9326 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9327 | #ifdef __cplusplus |
9328 | extern "C" |
9329 | #endif |
d9898ee8 |
9330 | char dlopen (); |
9331 | int |
9332 | main () |
9333 | { |
dd184caf |
9334 | return dlopen (); |
d9898ee8 |
9335 | ; |
9336 | return 0; |
9337 | } |
9338 | _ACEOF |
9339 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9340 | if { (ac_try="$ac_link" |
9341 | case "(($ac_try" in |
9342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9343 | *) ac_try_echo=$ac_try;; |
9344 | esac |
9345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9346 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9347 | ac_status=$? |
9348 | grep -v '^ *+' conftest.er1 >conftest.err |
9349 | rm -f conftest.er1 |
9350 | cat conftest.err >&5 |
9351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9352 | (exit $ac_status); } && { |
9353 | test -z "$ac_c_werror_flag" || |
9354 | test ! -s conftest.err |
9355 | } && test -s conftest$ac_exeext && |
9356 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9357 | ac_cv_lib_dl_dlopen=yes |
9358 | else |
9359 | echo "$as_me: failed program was:" >&5 |
9360 | sed 's/^/| /' conftest.$ac_ext >&5 |
9361 | |
dd184caf |
9362 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9363 | fi |
dd184caf |
9364 | |
9365 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9366 | conftest$ac_exeext conftest.$ac_ext |
9367 | LIBS=$ac_check_lib_save_LIBS |
9368 | fi |
dd184caf |
9369 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9370 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9371 | if test $ac_cv_lib_dl_dlopen = yes; then |
9372 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9373 | else |
9374 | |
9375 | lt_cv_dlopen="dyld" |
9376 | lt_cv_dlopen_libs= |
9377 | lt_cv_dlopen_self=yes |
9378 | |
9379 | fi |
9380 | |
9381 | ;; |
9382 | |
9383 | *) |
dd184caf |
9384 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
9385 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
d9898ee8 |
9386 | if test "${ac_cv_func_shl_load+set}" = set; then |
9387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9388 | else |
9389 | cat >conftest.$ac_ext <<_ACEOF |
9390 | /* confdefs.h. */ |
9391 | _ACEOF |
9392 | cat confdefs.h >>conftest.$ac_ext |
9393 | cat >>conftest.$ac_ext <<_ACEOF |
9394 | /* end confdefs.h. */ |
9395 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
9396 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9397 | #define shl_load innocuous_shl_load |
9398 | |
9399 | /* System header to define __stub macros and hopefully few prototypes, |
9400 | which can conflict with char shl_load (); below. |
9401 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9402 | <limits.h> exists even on freestanding compilers. */ |
9403 | |
9404 | #ifdef __STDC__ |
9405 | # include <limits.h> |
9406 | #else |
9407 | # include <assert.h> |
9408 | #endif |
9409 | |
9410 | #undef shl_load |
9411 | |
dd184caf |
9412 | /* Override any GCC internal prototype to avoid an error. |
9413 | Use char because int might match the return type of a GCC |
9414 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9415 | #ifdef __cplusplus |
9416 | extern "C" |
d9898ee8 |
9417 | #endif |
d9898ee8 |
9418 | char shl_load (); |
9419 | /* The GNU C library defines this for functions which it implements |
9420 | to always fail with ENOSYS. Some functions are actually named |
9421 | something starting with __ and the normal name is an alias. */ |
dd184caf |
9422 | #if defined __stub_shl_load || defined __stub___shl_load |
d9898ee8 |
9423 | choke me |
d9898ee8 |
9424 | #endif |
9425 | |
9426 | int |
9427 | main () |
9428 | { |
dd184caf |
9429 | return shl_load (); |
d9898ee8 |
9430 | ; |
9431 | return 0; |
9432 | } |
9433 | _ACEOF |
9434 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9435 | if { (ac_try="$ac_link" |
9436 | case "(($ac_try" in |
9437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9438 | *) ac_try_echo=$ac_try;; |
9439 | esac |
9440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9441 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9442 | ac_status=$? |
9443 | grep -v '^ *+' conftest.er1 >conftest.err |
9444 | rm -f conftest.er1 |
9445 | cat conftest.err >&5 |
9446 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9447 | (exit $ac_status); } && { |
9448 | test -z "$ac_c_werror_flag" || |
9449 | test ! -s conftest.err |
9450 | } && test -s conftest$ac_exeext && |
9451 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9452 | ac_cv_func_shl_load=yes |
9453 | else |
9454 | echo "$as_me: failed program was:" >&5 |
9455 | sed 's/^/| /' conftest.$ac_ext >&5 |
9456 | |
dd184caf |
9457 | ac_cv_func_shl_load=no |
d9898ee8 |
9458 | fi |
dd184caf |
9459 | |
9460 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9461 | conftest$ac_exeext conftest.$ac_ext |
9462 | fi |
dd184caf |
9463 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
9464 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
d9898ee8 |
9465 | if test $ac_cv_func_shl_load = yes; then |
9466 | lt_cv_dlopen="shl_load" |
9467 | else |
dd184caf |
9468 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
9469 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9470 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
9471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9472 | else |
9473 | ac_check_lib_save_LIBS=$LIBS |
9474 | LIBS="-ldld $LIBS" |
9475 | cat >conftest.$ac_ext <<_ACEOF |
9476 | /* confdefs.h. */ |
9477 | _ACEOF |
9478 | cat confdefs.h >>conftest.$ac_ext |
9479 | cat >>conftest.$ac_ext <<_ACEOF |
9480 | /* end confdefs.h. */ |
9481 | |
dd184caf |
9482 | /* Override any GCC internal prototype to avoid an error. |
9483 | Use char because int might match the return type of a GCC |
9484 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9485 | #ifdef __cplusplus |
9486 | extern "C" |
9487 | #endif |
d9898ee8 |
9488 | char shl_load (); |
9489 | int |
9490 | main () |
9491 | { |
dd184caf |
9492 | return shl_load (); |
d9898ee8 |
9493 | ; |
9494 | return 0; |
9495 | } |
9496 | _ACEOF |
9497 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9498 | if { (ac_try="$ac_link" |
9499 | case "(($ac_try" in |
9500 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9501 | *) ac_try_echo=$ac_try;; |
9502 | esac |
9503 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9504 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9505 | ac_status=$? |
9506 | grep -v '^ *+' conftest.er1 >conftest.err |
9507 | rm -f conftest.er1 |
9508 | cat conftest.err >&5 |
9509 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9510 | (exit $ac_status); } && { |
9511 | test -z "$ac_c_werror_flag" || |
9512 | test ! -s conftest.err |
9513 | } && test -s conftest$ac_exeext && |
9514 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9515 | ac_cv_lib_dld_shl_load=yes |
9516 | else |
9517 | echo "$as_me: failed program was:" >&5 |
9518 | sed 's/^/| /' conftest.$ac_ext >&5 |
9519 | |
dd184caf |
9520 | ac_cv_lib_dld_shl_load=no |
d9898ee8 |
9521 | fi |
dd184caf |
9522 | |
9523 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9524 | conftest$ac_exeext conftest.$ac_ext |
9525 | LIBS=$ac_check_lib_save_LIBS |
9526 | fi |
dd184caf |
9527 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
9528 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
d9898ee8 |
9529 | if test $ac_cv_lib_dld_shl_load = yes; then |
9530 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
9531 | else |
dd184caf |
9532 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
9533 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
d9898ee8 |
9534 | if test "${ac_cv_func_dlopen+set}" = set; then |
9535 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9536 | else |
9537 | cat >conftest.$ac_ext <<_ACEOF |
9538 | /* confdefs.h. */ |
9539 | _ACEOF |
9540 | cat confdefs.h >>conftest.$ac_ext |
9541 | cat >>conftest.$ac_ext <<_ACEOF |
9542 | /* end confdefs.h. */ |
9543 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
9544 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9545 | #define dlopen innocuous_dlopen |
9546 | |
9547 | /* System header to define __stub macros and hopefully few prototypes, |
9548 | which can conflict with char dlopen (); below. |
9549 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9550 | <limits.h> exists even on freestanding compilers. */ |
9551 | |
9552 | #ifdef __STDC__ |
9553 | # include <limits.h> |
9554 | #else |
9555 | # include <assert.h> |
9556 | #endif |
9557 | |
9558 | #undef dlopen |
9559 | |
dd184caf |
9560 | /* Override any GCC internal prototype to avoid an error. |
9561 | Use char because int might match the return type of a GCC |
9562 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9563 | #ifdef __cplusplus |
9564 | extern "C" |
d9898ee8 |
9565 | #endif |
d9898ee8 |
9566 | char dlopen (); |
9567 | /* The GNU C library defines this for functions which it implements |
9568 | to always fail with ENOSYS. Some functions are actually named |
9569 | something starting with __ and the normal name is an alias. */ |
dd184caf |
9570 | #if defined __stub_dlopen || defined __stub___dlopen |
d9898ee8 |
9571 | choke me |
d9898ee8 |
9572 | #endif |
9573 | |
9574 | int |
9575 | main () |
9576 | { |
dd184caf |
9577 | return dlopen (); |
d9898ee8 |
9578 | ; |
9579 | return 0; |
9580 | } |
9581 | _ACEOF |
9582 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9583 | if { (ac_try="$ac_link" |
9584 | case "(($ac_try" in |
9585 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9586 | *) ac_try_echo=$ac_try;; |
9587 | esac |
9588 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9589 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9590 | ac_status=$? |
9591 | grep -v '^ *+' conftest.er1 >conftest.err |
9592 | rm -f conftest.er1 |
9593 | cat conftest.err >&5 |
9594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9595 | (exit $ac_status); } && { |
9596 | test -z "$ac_c_werror_flag" || |
9597 | test ! -s conftest.err |
9598 | } && test -s conftest$ac_exeext && |
9599 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9600 | ac_cv_func_dlopen=yes |
9601 | else |
9602 | echo "$as_me: failed program was:" >&5 |
9603 | sed 's/^/| /' conftest.$ac_ext >&5 |
9604 | |
dd184caf |
9605 | ac_cv_func_dlopen=no |
d9898ee8 |
9606 | fi |
dd184caf |
9607 | |
9608 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9609 | conftest$ac_exeext conftest.$ac_ext |
9610 | fi |
dd184caf |
9611 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
9612 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
d9898ee8 |
9613 | if test $ac_cv_func_dlopen = yes; then |
9614 | lt_cv_dlopen="dlopen" |
9615 | else |
dd184caf |
9616 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9617 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
d9898ee8 |
9618 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9619 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9620 | else |
9621 | ac_check_lib_save_LIBS=$LIBS |
9622 | LIBS="-ldl $LIBS" |
9623 | cat >conftest.$ac_ext <<_ACEOF |
9624 | /* confdefs.h. */ |
9625 | _ACEOF |
9626 | cat confdefs.h >>conftest.$ac_ext |
9627 | cat >>conftest.$ac_ext <<_ACEOF |
9628 | /* end confdefs.h. */ |
9629 | |
dd184caf |
9630 | /* Override any GCC internal prototype to avoid an error. |
9631 | Use char because int might match the return type of a GCC |
9632 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9633 | #ifdef __cplusplus |
9634 | extern "C" |
9635 | #endif |
d9898ee8 |
9636 | char dlopen (); |
9637 | int |
9638 | main () |
9639 | { |
dd184caf |
9640 | return dlopen (); |
d9898ee8 |
9641 | ; |
9642 | return 0; |
9643 | } |
9644 | _ACEOF |
9645 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9646 | if { (ac_try="$ac_link" |
9647 | case "(($ac_try" in |
9648 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9649 | *) ac_try_echo=$ac_try;; |
9650 | esac |
9651 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9652 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9653 | ac_status=$? |
9654 | grep -v '^ *+' conftest.er1 >conftest.err |
9655 | rm -f conftest.er1 |
9656 | cat conftest.err >&5 |
9657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9658 | (exit $ac_status); } && { |
9659 | test -z "$ac_c_werror_flag" || |
9660 | test ! -s conftest.err |
9661 | } && test -s conftest$ac_exeext && |
9662 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9663 | ac_cv_lib_dl_dlopen=yes |
9664 | else |
9665 | echo "$as_me: failed program was:" >&5 |
9666 | sed 's/^/| /' conftest.$ac_ext >&5 |
9667 | |
dd184caf |
9668 | ac_cv_lib_dl_dlopen=no |
d9898ee8 |
9669 | fi |
dd184caf |
9670 | |
9671 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9672 | conftest$ac_exeext conftest.$ac_ext |
9673 | LIBS=$ac_check_lib_save_LIBS |
9674 | fi |
dd184caf |
9675 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9676 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
d9898ee8 |
9677 | if test $ac_cv_lib_dl_dlopen = yes; then |
9678 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9679 | else |
dd184caf |
9680 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9681 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
d9898ee8 |
9682 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
9683 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9684 | else |
9685 | ac_check_lib_save_LIBS=$LIBS |
9686 | LIBS="-lsvld $LIBS" |
9687 | cat >conftest.$ac_ext <<_ACEOF |
9688 | /* confdefs.h. */ |
9689 | _ACEOF |
9690 | cat confdefs.h >>conftest.$ac_ext |
9691 | cat >>conftest.$ac_ext <<_ACEOF |
9692 | /* end confdefs.h. */ |
9693 | |
dd184caf |
9694 | /* Override any GCC internal prototype to avoid an error. |
9695 | Use char because int might match the return type of a GCC |
9696 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9697 | #ifdef __cplusplus |
9698 | extern "C" |
9699 | #endif |
d9898ee8 |
9700 | char dlopen (); |
9701 | int |
9702 | main () |
9703 | { |
dd184caf |
9704 | return dlopen (); |
d9898ee8 |
9705 | ; |
9706 | return 0; |
9707 | } |
9708 | _ACEOF |
9709 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9710 | if { (ac_try="$ac_link" |
9711 | case "(($ac_try" in |
9712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9713 | *) ac_try_echo=$ac_try;; |
9714 | esac |
9715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9716 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9717 | ac_status=$? |
9718 | grep -v '^ *+' conftest.er1 >conftest.err |
9719 | rm -f conftest.er1 |
9720 | cat conftest.err >&5 |
9721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9722 | (exit $ac_status); } && { |
9723 | test -z "$ac_c_werror_flag" || |
9724 | test ! -s conftest.err |
9725 | } && test -s conftest$ac_exeext && |
9726 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9727 | ac_cv_lib_svld_dlopen=yes |
9728 | else |
9729 | echo "$as_me: failed program was:" >&5 |
9730 | sed 's/^/| /' conftest.$ac_ext >&5 |
9731 | |
dd184caf |
9732 | ac_cv_lib_svld_dlopen=no |
d9898ee8 |
9733 | fi |
dd184caf |
9734 | |
9735 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9736 | conftest$ac_exeext conftest.$ac_ext |
9737 | LIBS=$ac_check_lib_save_LIBS |
9738 | fi |
dd184caf |
9739 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9740 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
d9898ee8 |
9741 | if test $ac_cv_lib_svld_dlopen = yes; then |
9742 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9743 | else |
dd184caf |
9744 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9745 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
d9898ee8 |
9746 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9747 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9748 | else |
9749 | ac_check_lib_save_LIBS=$LIBS |
9750 | LIBS="-ldld $LIBS" |
9751 | cat >conftest.$ac_ext <<_ACEOF |
9752 | /* confdefs.h. */ |
9753 | _ACEOF |
9754 | cat confdefs.h >>conftest.$ac_ext |
9755 | cat >>conftest.$ac_ext <<_ACEOF |
9756 | /* end confdefs.h. */ |
9757 | |
dd184caf |
9758 | /* Override any GCC internal prototype to avoid an error. |
9759 | Use char because int might match the return type of a GCC |
9760 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
9761 | #ifdef __cplusplus |
9762 | extern "C" |
9763 | #endif |
d9898ee8 |
9764 | char dld_link (); |
9765 | int |
9766 | main () |
9767 | { |
dd184caf |
9768 | return dld_link (); |
d9898ee8 |
9769 | ; |
9770 | return 0; |
9771 | } |
9772 | _ACEOF |
9773 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
9774 | if { (ac_try="$ac_link" |
9775 | case "(($ac_try" in |
9776 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9777 | *) ac_try_echo=$ac_try;; |
9778 | esac |
9779 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9780 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
9781 | ac_status=$? |
9782 | grep -v '^ *+' conftest.er1 >conftest.err |
9783 | rm -f conftest.er1 |
9784 | cat conftest.err >&5 |
9785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
9786 | (exit $ac_status); } && { |
9787 | test -z "$ac_c_werror_flag" || |
9788 | test ! -s conftest.err |
9789 | } && test -s conftest$ac_exeext && |
9790 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
9791 | ac_cv_lib_dld_dld_link=yes |
9792 | else |
9793 | echo "$as_me: failed program was:" >&5 |
9794 | sed 's/^/| /' conftest.$ac_ext >&5 |
9795 | |
dd184caf |
9796 | ac_cv_lib_dld_dld_link=no |
d9898ee8 |
9797 | fi |
dd184caf |
9798 | |
9799 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
9800 | conftest$ac_exeext conftest.$ac_ext |
9801 | LIBS=$ac_check_lib_save_LIBS |
9802 | fi |
dd184caf |
9803 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
9804 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
d9898ee8 |
9805 | if test $ac_cv_lib_dld_dld_link = yes; then |
9806 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
9807 | fi |
9808 | |
9809 | |
9810 | fi |
9811 | |
9812 | |
9813 | fi |
9814 | |
9815 | |
9816 | fi |
9817 | |
9818 | |
9819 | fi |
9820 | |
9821 | |
9822 | fi |
9823 | |
9824 | ;; |
9825 | esac |
9826 | |
9827 | if test "x$lt_cv_dlopen" != xno; then |
9828 | enable_dlopen=yes |
9829 | else |
9830 | enable_dlopen=no |
9831 | fi |
9832 | |
9833 | case $lt_cv_dlopen in |
9834 | dlopen) |
9835 | save_CPPFLAGS="$CPPFLAGS" |
9836 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
9837 | |
9838 | save_LDFLAGS="$LDFLAGS" |
9839 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
9840 | |
9841 | save_LIBS="$LIBS" |
9842 | LIBS="$lt_cv_dlopen_libs $LIBS" |
9843 | |
dd184caf |
9844 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
9845 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
9846 | if test "${lt_cv_dlopen_self+set}" = set; then |
9847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9848 | else |
9849 | if test "$cross_compiling" = yes; then : |
9850 | lt_cv_dlopen_self=cross |
9851 | else |
9852 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9853 | lt_status=$lt_dlunknown |
9854 | cat > conftest.$ac_ext <<EOF |
dd184caf |
9855 | #line 9855 "configure" |
d9898ee8 |
9856 | #include "confdefs.h" |
9857 | |
9858 | #if HAVE_DLFCN_H |
9859 | #include <dlfcn.h> |
9860 | #endif |
9861 | |
9862 | #include <stdio.h> |
9863 | |
9864 | #ifdef RTLD_GLOBAL |
9865 | # define LT_DLGLOBAL RTLD_GLOBAL |
9866 | #else |
9867 | # ifdef DL_GLOBAL |
9868 | # define LT_DLGLOBAL DL_GLOBAL |
9869 | # else |
9870 | # define LT_DLGLOBAL 0 |
9871 | # endif |
9872 | #endif |
9873 | |
9874 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9875 | find out it does not work in some platform. */ |
9876 | #ifndef LT_DLLAZY_OR_NOW |
9877 | # ifdef RTLD_LAZY |
9878 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9879 | # else |
9880 | # ifdef DL_LAZY |
9881 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9882 | # else |
9883 | # ifdef RTLD_NOW |
9884 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9885 | # else |
9886 | # ifdef DL_NOW |
9887 | # define LT_DLLAZY_OR_NOW DL_NOW |
9888 | # else |
9889 | # define LT_DLLAZY_OR_NOW 0 |
9890 | # endif |
9891 | # endif |
9892 | # endif |
9893 | # endif |
9894 | #endif |
9895 | |
9896 | #ifdef __cplusplus |
9897 | extern "C" void exit (int); |
9898 | #endif |
9899 | |
9900 | void fnord() { int i=42;} |
9901 | int main () |
9902 | { |
9903 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
9904 | int status = $lt_dlunknown; |
9905 | |
9906 | if (self) |
9907 | { |
9908 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
9909 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
9910 | /* dlclose (self); */ |
9911 | } |
9912 | else |
9913 | puts (dlerror ()); |
9914 | |
9915 | exit (status); |
9916 | } |
9917 | EOF |
9918 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
9919 | (eval $ac_link) 2>&5 |
9920 | ac_status=$? |
9921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9922 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
9923 | (./conftest; exit; ) >&5 2>/dev/null |
9924 | lt_status=$? |
9925 | case x$lt_status in |
9926 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
9927 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
9928 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
9929 | esac |
9930 | else : |
9931 | # compilation failed |
9932 | lt_cv_dlopen_self=no |
9933 | fi |
9934 | fi |
9935 | rm -fr conftest* |
9936 | |
9937 | |
9938 | fi |
dd184caf |
9939 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
9940 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
d9898ee8 |
9941 | |
9942 | if test "x$lt_cv_dlopen_self" = xyes; then |
9943 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
dd184caf |
9944 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
9945 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
d9898ee8 |
9946 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
9947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9948 | else |
9949 | if test "$cross_compiling" = yes; then : |
9950 | lt_cv_dlopen_self_static=cross |
9951 | else |
9952 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
9953 | lt_status=$lt_dlunknown |
9954 | cat > conftest.$ac_ext <<EOF |
dd184caf |
9955 | #line 9955 "configure" |
d9898ee8 |
9956 | #include "confdefs.h" |
9957 | |
9958 | #if HAVE_DLFCN_H |
9959 | #include <dlfcn.h> |
9960 | #endif |
9961 | |
9962 | #include <stdio.h> |
9963 | |
9964 | #ifdef RTLD_GLOBAL |
9965 | # define LT_DLGLOBAL RTLD_GLOBAL |
9966 | #else |
9967 | # ifdef DL_GLOBAL |
9968 | # define LT_DLGLOBAL DL_GLOBAL |
9969 | # else |
9970 | # define LT_DLGLOBAL 0 |
9971 | # endif |
9972 | #endif |
9973 | |
9974 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
9975 | find out it does not work in some platform. */ |
9976 | #ifndef LT_DLLAZY_OR_NOW |
9977 | # ifdef RTLD_LAZY |
9978 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
9979 | # else |
9980 | # ifdef DL_LAZY |
9981 | # define LT_DLLAZY_OR_NOW DL_LAZY |
9982 | # else |
9983 | # ifdef RTLD_NOW |
9984 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
9985 | # else |
9986 | # ifdef DL_NOW |
9987 | # define LT_DLLAZY_OR_NOW DL_NOW |
9988 | # else |
9989 | # define LT_DLLAZY_OR_NOW 0 |
9990 | # endif |
9991 | # endif |
9992 | # endif |
9993 | # endif |
9994 | #endif |
9995 | |
9996 | #ifdef __cplusplus |
9997 | extern "C" void exit (int); |
9998 | #endif |
9999 | |
10000 | void fnord() { int i=42;} |
10001 | int main () |
10002 | { |
10003 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10004 | int status = $lt_dlunknown; |
10005 | |
10006 | if (self) |
10007 | { |
10008 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10009 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10010 | /* dlclose (self); */ |
10011 | } |
10012 | else |
10013 | puts (dlerror ()); |
10014 | |
10015 | exit (status); |
10016 | } |
10017 | EOF |
10018 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10019 | (eval $ac_link) 2>&5 |
10020 | ac_status=$? |
10021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10022 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10023 | (./conftest; exit; ) >&5 2>/dev/null |
10024 | lt_status=$? |
10025 | case x$lt_status in |
10026 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
10027 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
10028 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
10029 | esac |
10030 | else : |
10031 | # compilation failed |
10032 | lt_cv_dlopen_self_static=no |
10033 | fi |
10034 | fi |
10035 | rm -fr conftest* |
10036 | |
10037 | |
10038 | fi |
dd184caf |
10039 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10040 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
d9898ee8 |
10041 | fi |
10042 | |
10043 | CPPFLAGS="$save_CPPFLAGS" |
10044 | LDFLAGS="$save_LDFLAGS" |
10045 | LIBS="$save_LIBS" |
10046 | ;; |
10047 | esac |
10048 | |
10049 | case $lt_cv_dlopen_self in |
10050 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
10051 | *) enable_dlopen_self=unknown ;; |
10052 | esac |
10053 | |
10054 | case $lt_cv_dlopen_self_static in |
10055 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
10056 | *) enable_dlopen_self_static=unknown ;; |
10057 | esac |
10058 | fi |
10059 | |
10060 | |
10061 | # Report which library types will actually be built |
dd184caf |
10062 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
10063 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
10064 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
10065 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
10066 | |
dd184caf |
10067 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
10068 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
10069 | test "$can_build_shared" = "no" && enable_shared=no |
10070 | |
10071 | # On AIX, shared libraries and static libraries use the same namespace, and |
10072 | # are all built from PIC. |
10073 | case $host_os in |
10074 | aix3*) |
10075 | test "$enable_shared" = yes && enable_static=no |
10076 | if test -n "$RANLIB"; then |
10077 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
10078 | postinstall_cmds='$RANLIB $lib' |
10079 | fi |
10080 | ;; |
10081 | |
10082 | aix4* | aix5*) |
10083 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10084 | test "$enable_shared" = yes && enable_static=no |
10085 | fi |
10086 | ;; |
10087 | esac |
dd184caf |
10088 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
10089 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
10090 | |
dd184caf |
10091 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
10092 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
10093 | # Make sure either enable_shared or enable_static is yes. |
10094 | test "$enable_shared" = yes || enable_static=yes |
dd184caf |
10095 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
10096 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
10097 | |
10098 | # The else clause should only fire when bootstrapping the |
10099 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
10100 | # with your package, and you will get complaints that there are |
10101 | # no rules to generate ltmain.sh. |
10102 | if test -f "$ltmain"; then |
10103 | # See if we are running on zsh, and set the options which allow our commands through |
10104 | # without removal of \ escapes. |
10105 | if test -n "${ZSH_VERSION+set}" ; then |
10106 | setopt NO_GLOB_SUBST |
10107 | fi |
10108 | # Now quote all the things that may contain metacharacters while being |
10109 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
10110 | # variables and quote the copies for generation of the libtool script. |
10111 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
10112 | SED SHELL STRIP \ |
10113 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
10114 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
10115 | deplibs_check_method reload_flag reload_cmds need_locks \ |
10116 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
10117 | lt_cv_sys_global_symbol_to_c_name_address \ |
10118 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
10119 | old_postinstall_cmds old_postuninstall_cmds \ |
10120 | compiler \ |
10121 | CC \ |
10122 | LD \ |
10123 | lt_prog_compiler_wl \ |
10124 | lt_prog_compiler_pic \ |
10125 | lt_prog_compiler_static \ |
10126 | lt_prog_compiler_no_builtin_flag \ |
10127 | export_dynamic_flag_spec \ |
10128 | thread_safe_flag_spec \ |
10129 | whole_archive_flag_spec \ |
10130 | enable_shared_with_static_runtimes \ |
10131 | old_archive_cmds \ |
10132 | old_archive_from_new_cmds \ |
10133 | predep_objects \ |
10134 | postdep_objects \ |
10135 | predeps \ |
10136 | postdeps \ |
10137 | compiler_lib_search_path \ |
10138 | archive_cmds \ |
10139 | archive_expsym_cmds \ |
10140 | postinstall_cmds \ |
10141 | postuninstall_cmds \ |
10142 | old_archive_from_expsyms_cmds \ |
10143 | allow_undefined_flag \ |
10144 | no_undefined_flag \ |
10145 | export_symbols_cmds \ |
10146 | hardcode_libdir_flag_spec \ |
10147 | hardcode_libdir_flag_spec_ld \ |
10148 | hardcode_libdir_separator \ |
10149 | hardcode_automatic \ |
10150 | module_cmds \ |
10151 | module_expsym_cmds \ |
10152 | lt_cv_prog_compiler_c_o \ |
10153 | exclude_expsyms \ |
10154 | include_expsyms; do |
10155 | |
10156 | case $var in |
10157 | old_archive_cmds | \ |
10158 | old_archive_from_new_cmds | \ |
10159 | archive_cmds | \ |
10160 | archive_expsym_cmds | \ |
10161 | module_cmds | \ |
10162 | module_expsym_cmds | \ |
10163 | old_archive_from_expsyms_cmds | \ |
10164 | export_symbols_cmds | \ |
10165 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
10166 | postinstall_cmds | postuninstall_cmds | \ |
10167 | old_postinstall_cmds | old_postuninstall_cmds | \ |
10168 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
10169 | # Double-quote double-evaled strings. |
10170 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
10171 | ;; |
10172 | *) |
10173 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
10174 | ;; |
10175 | esac |
10176 | done |
10177 | |
10178 | case $lt_echo in |
10179 | *'\$0 --fallback-echo"') |
10180 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
10181 | ;; |
10182 | esac |
10183 | |
10184 | cfgfile="${ofile}T" |
10185 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
10186 | $rm -f "$cfgfile" |
10187 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
10188 | echo "$as_me: creating $ofile" >&6;} |
10189 | |
10190 | cat <<__EOF__ >> "$cfgfile" |
10191 | #! $SHELL |
10192 | |
10193 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
10194 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
10195 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
10196 | # |
10197 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
10198 | # Free Software Foundation, Inc. |
10199 | # |
10200 | # This file is part of GNU Libtool: |
10201 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
10202 | # |
10203 | # This program is free software; you can redistribute it and/or modify |
10204 | # it under the terms of the GNU General Public License as published by |
10205 | # the Free Software Foundation; either version 2 of the License, or |
10206 | # (at your option) any later version. |
10207 | # |
10208 | # This program is distributed in the hope that it will be useful, but |
10209 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
10210 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
10211 | # General Public License for more details. |
10212 | # |
10213 | # You should have received a copy of the GNU General Public License |
10214 | # along with this program; if not, write to the Free Software |
10215 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
10216 | # |
10217 | # As a special exception to the GNU General Public License, if you |
10218 | # distribute this file as part of a program that contains a |
10219 | # configuration script generated by Autoconf, you may include it under |
10220 | # the same distribution terms that you use for the rest of that program. |
10221 | |
10222 | # A sed program that does not truncate output. |
10223 | SED=$lt_SED |
10224 | |
10225 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
10226 | Xsed="$SED -e 1s/^X//" |
10227 | |
10228 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
10229 | # if CDPATH is set. |
10230 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
10231 | |
10232 | # The names of the tagged configurations supported by this script. |
10233 | available_tags= |
10234 | |
10235 | # ### BEGIN LIBTOOL CONFIG |
10236 | |
10237 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
10238 | |
10239 | # Shell to use when invoking shell scripts. |
10240 | SHELL=$lt_SHELL |
10241 | |
10242 | # Whether or not to build shared libraries. |
10243 | build_libtool_libs=$enable_shared |
10244 | |
10245 | # Whether or not to build static libraries. |
10246 | build_old_libs=$enable_static |
10247 | |
10248 | # Whether or not to add -lc for building shared libraries. |
10249 | build_libtool_need_lc=$archive_cmds_need_lc |
10250 | |
10251 | # Whether or not to disallow shared libs when runtime libs are static |
10252 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
10253 | |
10254 | # Whether or not to optimize for fast installation. |
10255 | fast_install=$enable_fast_install |
10256 | |
10257 | # The host system. |
10258 | host_alias=$host_alias |
10259 | host=$host |
10260 | host_os=$host_os |
10261 | |
10262 | # The build system. |
10263 | build_alias=$build_alias |
10264 | build=$build |
10265 | build_os=$build_os |
10266 | |
10267 | # An echo program that does not interpret backslashes. |
10268 | echo=$lt_echo |
10269 | |
10270 | # The archiver. |
10271 | AR=$lt_AR |
10272 | AR_FLAGS=$lt_AR_FLAGS |
10273 | |
10274 | # A C compiler. |
10275 | LTCC=$lt_LTCC |
10276 | |
10277 | # LTCC compiler flags. |
10278 | LTCFLAGS=$lt_LTCFLAGS |
10279 | |
10280 | # A language-specific compiler. |
10281 | CC=$lt_compiler |
10282 | |
10283 | # Is the compiler the GNU C compiler? |
10284 | with_gcc=$GCC |
10285 | |
d9898ee8 |
10286 | # An ERE matcher. |
10287 | EGREP=$lt_EGREP |
10288 | |
10289 | # The linker used to build libraries. |
10290 | LD=$lt_LD |
10291 | |
10292 | # Whether we need hard or soft links. |
10293 | LN_S=$lt_LN_S |
10294 | |
10295 | # A BSD-compatible nm program. |
10296 | NM=$lt_NM |
10297 | |
10298 | # A symbol stripping program |
10299 | STRIP=$lt_STRIP |
10300 | |
10301 | # Used to examine libraries when file_magic_cmd begins "file" |
10302 | MAGIC_CMD=$MAGIC_CMD |
10303 | |
10304 | # Used on cygwin: DLL creation program. |
10305 | DLLTOOL="$DLLTOOL" |
10306 | |
10307 | # Used on cygwin: object dumper. |
10308 | OBJDUMP="$OBJDUMP" |
10309 | |
10310 | # Used on cygwin: assembler. |
10311 | AS="$AS" |
10312 | |
10313 | # The name of the directory that contains temporary libtool files. |
10314 | objdir=$objdir |
10315 | |
10316 | # How to create reloadable object files. |
10317 | reload_flag=$lt_reload_flag |
10318 | reload_cmds=$lt_reload_cmds |
10319 | |
10320 | # How to pass a linker flag through the compiler. |
10321 | wl=$lt_lt_prog_compiler_wl |
10322 | |
10323 | # Object file suffix (normally "o"). |
10324 | objext="$ac_objext" |
10325 | |
10326 | # Old archive suffix (normally "a"). |
10327 | libext="$libext" |
10328 | |
10329 | # Shared library suffix (normally ".so"). |
10330 | shrext_cmds='$shrext_cmds' |
10331 | |
10332 | # Executable file suffix (normally ""). |
10333 | exeext="$exeext" |
10334 | |
10335 | # Additional compiler flags for building library objects. |
10336 | pic_flag=$lt_lt_prog_compiler_pic |
10337 | pic_mode=$pic_mode |
10338 | |
10339 | # What is the maximum length of a command? |
10340 | max_cmd_len=$lt_cv_sys_max_cmd_len |
10341 | |
10342 | # Does compiler simultaneously support -c and -o options? |
10343 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
10344 | |
10345 | # Must we lock files when doing compilation? |
10346 | need_locks=$lt_need_locks |
10347 | |
10348 | # Do we need the lib prefix for modules? |
10349 | need_lib_prefix=$need_lib_prefix |
10350 | |
10351 | # Do we need a version for libraries? |
10352 | need_version=$need_version |
10353 | |
10354 | # Whether dlopen is supported. |
10355 | dlopen_support=$enable_dlopen |
10356 | |
10357 | # Whether dlopen of programs is supported. |
10358 | dlopen_self=$enable_dlopen_self |
10359 | |
10360 | # Whether dlopen of statically linked programs is supported. |
10361 | dlopen_self_static=$enable_dlopen_self_static |
10362 | |
10363 | # Compiler flag to prevent dynamic linking. |
10364 | link_static_flag=$lt_lt_prog_compiler_static |
10365 | |
10366 | # Compiler flag to turn off builtin functions. |
10367 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
10368 | |
10369 | # Compiler flag to allow reflexive dlopens. |
10370 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
10371 | |
10372 | # Compiler flag to generate shared objects directly from archives. |
10373 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
10374 | |
10375 | # Compiler flag to generate thread-safe objects. |
10376 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
10377 | |
10378 | # Library versioning type. |
10379 | version_type=$version_type |
10380 | |
10381 | # Format of library name prefix. |
10382 | libname_spec=$lt_libname_spec |
10383 | |
10384 | # List of archive names. First name is the real one, the rest are links. |
10385 | # The last name is the one that the linker finds with -lNAME. |
10386 | library_names_spec=$lt_library_names_spec |
10387 | |
10388 | # The coded name of the library, if different from the real name. |
10389 | soname_spec=$lt_soname_spec |
10390 | |
10391 | # Commands used to build and install an old-style archive. |
10392 | RANLIB=$lt_RANLIB |
10393 | old_archive_cmds=$lt_old_archive_cmds |
10394 | old_postinstall_cmds=$lt_old_postinstall_cmds |
10395 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
10396 | |
10397 | # Create an old-style archive from a shared archive. |
10398 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
10399 | |
10400 | # Create a temporary old-style archive to link instead of a shared archive. |
10401 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
10402 | |
10403 | # Commands used to build and install a shared archive. |
10404 | archive_cmds=$lt_archive_cmds |
10405 | archive_expsym_cmds=$lt_archive_expsym_cmds |
10406 | postinstall_cmds=$lt_postinstall_cmds |
10407 | postuninstall_cmds=$lt_postuninstall_cmds |
10408 | |
10409 | # Commands used to build a loadable module (assumed same as above if empty) |
10410 | module_cmds=$lt_module_cmds |
10411 | module_expsym_cmds=$lt_module_expsym_cmds |
10412 | |
10413 | # Commands to strip libraries. |
10414 | old_striplib=$lt_old_striplib |
10415 | striplib=$lt_striplib |
10416 | |
10417 | # Dependencies to place before the objects being linked to create a |
10418 | # shared library. |
dd184caf |
10419 | predep_objects=$lt_predep_objects |
d9898ee8 |
10420 | |
10421 | # Dependencies to place after the objects being linked to create a |
10422 | # shared library. |
dd184caf |
10423 | postdep_objects=$lt_postdep_objects |
d9898ee8 |
10424 | |
10425 | # Dependencies to place before the objects being linked to create a |
10426 | # shared library. |
10427 | predeps=$lt_predeps |
10428 | |
10429 | # Dependencies to place after the objects being linked to create a |
10430 | # shared library. |
10431 | postdeps=$lt_postdeps |
10432 | |
10433 | # The library search path used internally by the compiler when linking |
10434 | # a shared library. |
dd184caf |
10435 | compiler_lib_search_path=$lt_compiler_lib_search_path |
d9898ee8 |
10436 | |
10437 | # Method to check whether dependent libraries are shared objects. |
10438 | deplibs_check_method=$lt_deplibs_check_method |
10439 | |
10440 | # Command to use when deplibs_check_method == file_magic. |
10441 | file_magic_cmd=$lt_file_magic_cmd |
10442 | |
10443 | # Flag that allows shared libraries with undefined symbols to be built. |
10444 | allow_undefined_flag=$lt_allow_undefined_flag |
10445 | |
10446 | # Flag that forces no undefined symbols. |
10447 | no_undefined_flag=$lt_no_undefined_flag |
10448 | |
10449 | # Commands used to finish a libtool library installation in a directory. |
10450 | finish_cmds=$lt_finish_cmds |
10451 | |
10452 | # Same as above, but a single script fragment to be evaled but not shown. |
10453 | finish_eval=$lt_finish_eval |
10454 | |
10455 | # Take the output of nm and produce a listing of raw symbols and C names. |
10456 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
10457 | |
10458 | # Transform the output of nm in a proper C declaration |
10459 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
10460 | |
10461 | # Transform the output of nm in a C name address pair |
10462 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
10463 | |
10464 | # This is the shared library runtime path variable. |
10465 | runpath_var=$runpath_var |
10466 | |
10467 | # This is the shared library path variable. |
10468 | shlibpath_var=$shlibpath_var |
10469 | |
10470 | # Is shlibpath searched before the hard-coded library search path? |
10471 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
10472 | |
10473 | # How to hardcode a shared library path into an executable. |
10474 | hardcode_action=$hardcode_action |
10475 | |
10476 | # Whether we should hardcode library paths into libraries. |
10477 | hardcode_into_libs=$hardcode_into_libs |
10478 | |
10479 | # Flag to hardcode \$libdir into a binary during linking. |
10480 | # This must work even if \$libdir does not exist. |
10481 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
10482 | |
10483 | # If ld is used when linking, flag to hardcode \$libdir into |
10484 | # a binary during linking. This must work even if \$libdir does |
10485 | # not exist. |
10486 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
10487 | |
10488 | # Whether we need a single -rpath flag with a separated argument. |
10489 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
10490 | |
10491 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
10492 | # resulting binary. |
10493 | hardcode_direct=$hardcode_direct |
10494 | |
10495 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
10496 | # resulting binary. |
10497 | hardcode_minus_L=$hardcode_minus_L |
10498 | |
10499 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
10500 | # the resulting binary. |
10501 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
10502 | |
10503 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
10504 | # and all subsequent libraries and executables linked against it. |
10505 | hardcode_automatic=$hardcode_automatic |
10506 | |
10507 | # Variables whose values should be saved in libtool wrapper scripts and |
10508 | # restored at relink time. |
10509 | variables_saved_for_relink="$variables_saved_for_relink" |
10510 | |
10511 | # Whether libtool must link a program against all its dependency libraries. |
10512 | link_all_deplibs=$link_all_deplibs |
10513 | |
10514 | # Compile-time system search path for libraries |
dd184caf |
10515 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
10516 | |
10517 | # Run-time system search path for libraries |
10518 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
10519 | |
10520 | # Fix the shell variable \$srcfile for the compiler. |
10521 | fix_srcfile_path="$fix_srcfile_path" |
10522 | |
10523 | # Set to yes if exported symbols are required. |
10524 | always_export_symbols=$always_export_symbols |
10525 | |
10526 | # The commands to list exported symbols. |
10527 | export_symbols_cmds=$lt_export_symbols_cmds |
10528 | |
10529 | # The commands to extract the exported symbol list from a shared archive. |
10530 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
10531 | |
10532 | # Symbols that should not be listed in the preloaded symbols. |
10533 | exclude_expsyms=$lt_exclude_expsyms |
10534 | |
10535 | # Symbols that must always be exported. |
10536 | include_expsyms=$lt_include_expsyms |
10537 | |
10538 | # ### END LIBTOOL CONFIG |
10539 | |
10540 | __EOF__ |
10541 | |
10542 | |
10543 | case $host_os in |
10544 | aix3*) |
10545 | cat <<\EOF >> "$cfgfile" |
10546 | |
10547 | # AIX sometimes has problems with the GCC collect2 program. For some |
10548 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
10549 | # vanish in a puff of smoke. |
10550 | if test "X${COLLECT_NAMES+set}" != Xset; then |
10551 | COLLECT_NAMES= |
10552 | export COLLECT_NAMES |
10553 | fi |
10554 | EOF |
10555 | ;; |
10556 | esac |
10557 | |
10558 | # We use sed instead of cat because bash on DJGPP gets confused if |
10559 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
10560 | # text mode, it properly converts lines to CR/LF. This bash problem |
10561 | # is reportedly fixed, but why not run on old versions too? |
10562 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
10563 | |
10564 | mv -f "$cfgfile" "$ofile" || \ |
10565 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
10566 | chmod +x "$ofile" |
10567 | |
10568 | else |
10569 | # If there is no Makefile yet, we rely on a make rule to execute |
10570 | # `config.status --recheck' to rerun these tests and create the |
10571 | # libtool script then. |
10572 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
10573 | if test -f "$ltmain_in"; then |
10574 | test -f Makefile && make "$ltmain" |
10575 | fi |
10576 | fi |
10577 | |
10578 | |
10579 | ac_ext=c |
10580 | ac_cpp='$CPP $CPPFLAGS' |
10581 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10582 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10583 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
10584 | |
10585 | CC="$lt_save_CC" |
10586 | |
10587 | |
dd184caf |
10588 | # Check whether --with-tags was given. |
d9898ee8 |
10589 | if test "${with_tags+set}" = set; then |
dd184caf |
10590 | withval=$with_tags; tagnames="$withval" |
10591 | fi |
10592 | |
d9898ee8 |
10593 | |
10594 | if test -f "$ltmain" && test -n "$tagnames"; then |
10595 | if test ! -f "${ofile}"; then |
10596 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
10597 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
10598 | fi |
10599 | |
10600 | if test -z "$LTCC"; then |
10601 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
10602 | if test -z "$LTCC"; then |
10603 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
10604 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
10605 | else |
10606 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
10607 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
10608 | fi |
10609 | fi |
10610 | if test -z "$LTCFLAGS"; then |
10611 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
10612 | fi |
10613 | |
10614 | # Extract list of available tagged configurations in $ofile. |
10615 | # Note that this assumes the entire list is on one line. |
10616 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
10617 | |
10618 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
10619 | for tagname in $tagnames; do |
10620 | IFS="$lt_save_ifs" |
10621 | # Check whether tagname contains only valid characters |
10622 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
10623 | "") ;; |
10624 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
10625 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
10626 | { (exit 1); exit 1; }; } |
10627 | ;; |
10628 | esac |
10629 | |
10630 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
10631 | then |
10632 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
10633 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
10634 | { (exit 1); exit 1; }; } |
10635 | fi |
10636 | |
10637 | # Update the list of available tags. |
10638 | if test -n "$tagname"; then |
10639 | echo appending configuration tag \"$tagname\" to $ofile |
10640 | |
10641 | case $tagname in |
10642 | CXX) |
10643 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
10644 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
10645 | (test "X$CXX" != "Xg++"))) ; then |
dd184caf |
10646 | ac_ext=cpp |
d9898ee8 |
10647 | ac_cpp='$CXXCPP $CPPFLAGS' |
10648 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10649 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10650 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10651 | |
10652 | |
10653 | |
10654 | |
10655 | archive_cmds_need_lc_CXX=no |
10656 | allow_undefined_flag_CXX= |
10657 | always_export_symbols_CXX=no |
10658 | archive_expsym_cmds_CXX= |
10659 | export_dynamic_flag_spec_CXX= |
10660 | hardcode_direct_CXX=no |
10661 | hardcode_libdir_flag_spec_CXX= |
10662 | hardcode_libdir_flag_spec_ld_CXX= |
10663 | hardcode_libdir_separator_CXX= |
10664 | hardcode_minus_L_CXX=no |
10665 | hardcode_shlibpath_var_CXX=unsupported |
10666 | hardcode_automatic_CXX=no |
10667 | module_cmds_CXX= |
10668 | module_expsym_cmds_CXX= |
10669 | link_all_deplibs_CXX=unknown |
10670 | old_archive_cmds_CXX=$old_archive_cmds |
10671 | no_undefined_flag_CXX= |
10672 | whole_archive_flag_spec_CXX= |
10673 | enable_shared_with_static_runtimes_CXX=no |
10674 | |
10675 | # Dependencies to place before and after the object being linked: |
10676 | predep_objects_CXX= |
10677 | postdep_objects_CXX= |
10678 | predeps_CXX= |
10679 | postdeps_CXX= |
10680 | compiler_lib_search_path_CXX= |
10681 | |
10682 | # Source file extension for C++ test sources. |
10683 | ac_ext=cpp |
10684 | |
10685 | # Object file extension for compiled C++ test sources. |
10686 | objext=o |
10687 | objext_CXX=$objext |
10688 | |
10689 | # Code to be used in simple compile tests |
10690 | lt_simple_compile_test_code="int some_variable = 0;\n" |
10691 | |
10692 | # Code to be used in simple link tests |
10693 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
10694 | |
10695 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10696 | |
10697 | # If no C compiler was specified, use CC. |
10698 | LTCC=${LTCC-"$CC"} |
10699 | |
10700 | # If no C compiler flags were specified, use CFLAGS. |
10701 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
10702 | |
10703 | # Allow CC to be a program name with arguments. |
10704 | compiler=$CC |
10705 | |
10706 | |
10707 | # save warnings/boilerplate of simple test code |
10708 | ac_outfile=conftest.$ac_objext |
10709 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
10710 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10711 | _lt_compiler_boilerplate=`cat conftest.err` |
10712 | $rm conftest* |
10713 | |
10714 | ac_outfile=conftest.$ac_objext |
10715 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
10716 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10717 | _lt_linker_boilerplate=`cat conftest.err` |
10718 | $rm conftest* |
10719 | |
10720 | |
10721 | # Allow CC to be a program name with arguments. |
10722 | lt_save_CC=$CC |
10723 | lt_save_LD=$LD |
10724 | lt_save_GCC=$GCC |
10725 | GCC=$GXX |
10726 | lt_save_with_gnu_ld=$with_gnu_ld |
10727 | lt_save_path_LD=$lt_cv_path_LD |
10728 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10729 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10730 | else |
10731 | $as_unset lt_cv_prog_gnu_ld |
10732 | fi |
10733 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10734 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10735 | else |
10736 | $as_unset lt_cv_path_LD |
10737 | fi |
10738 | test -z "${LDCXX+set}" || LD=$LDCXX |
10739 | CC=${CXX-"c++"} |
10740 | compiler=$CC |
10741 | compiler_CXX=$CC |
10742 | for cc_temp in $compiler""; do |
10743 | case $cc_temp in |
10744 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
10745 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
10746 | \-*) ;; |
10747 | *) break;; |
10748 | esac |
10749 | done |
10750 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
10751 | |
10752 | |
10753 | # We don't want -fno-exception wen compiling C++ code, so set the |
10754 | # no_builtin_flag separately |
10755 | if test "$GXX" = yes; then |
10756 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
10757 | else |
10758 | lt_prog_compiler_no_builtin_flag_CXX= |
10759 | fi |
10760 | |
10761 | if test "$GXX" = yes; then |
10762 | # Set up default GNU C++ configuration |
10763 | |
10764 | |
dd184caf |
10765 | # Check whether --with-gnu-ld was given. |
d9898ee8 |
10766 | if test "${with_gnu_ld+set}" = set; then |
dd184caf |
10767 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
d9898ee8 |
10768 | else |
10769 | with_gnu_ld=no |
dd184caf |
10770 | fi |
10771 | |
d9898ee8 |
10772 | ac_prog=ld |
10773 | if test "$GCC" = yes; then |
10774 | # Check if gcc -print-prog-name=ld gives a path. |
dd184caf |
10775 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
10776 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
d9898ee8 |
10777 | case $host in |
10778 | *-*-mingw*) |
10779 | # gcc leaves a trailing carriage return which upsets mingw |
10780 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
10781 | *) |
10782 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
10783 | esac |
10784 | case $ac_prog in |
10785 | # Accept absolute paths. |
10786 | [\\/]* | ?:[\\/]*) |
10787 | re_direlt='/[^/][^/]*/\.\./' |
10788 | # Canonicalize the pathname of ld |
10789 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
10790 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
10791 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
10792 | done |
10793 | test -z "$LD" && LD="$ac_prog" |
10794 | ;; |
10795 | "") |
10796 | # If it fails, then pretend we aren't using GCC. |
10797 | ac_prog=ld |
10798 | ;; |
10799 | *) |
10800 | # If it is relative, then search for the first ld in PATH. |
10801 | with_gnu_ld=unknown |
10802 | ;; |
10803 | esac |
10804 | elif test "$with_gnu_ld" = yes; then |
dd184caf |
10805 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
10806 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10807 | else |
dd184caf |
10808 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
10809 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10810 | fi |
10811 | if test "${lt_cv_path_LD+set}" = set; then |
10812 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10813 | else |
10814 | if test -z "$LD"; then |
10815 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
10816 | for ac_dir in $PATH; do |
10817 | IFS="$lt_save_ifs" |
10818 | test -z "$ac_dir" && ac_dir=. |
10819 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
10820 | lt_cv_path_LD="$ac_dir/$ac_prog" |
10821 | # Check to see if the program is GNU ld. I'd rather use --version, |
10822 | # but apparently some variants of GNU ld only accept -v. |
10823 | # Break only if it was the GNU/non-GNU ld that we prefer. |
10824 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
10825 | *GNU* | *'with BFD'*) |
10826 | test "$with_gnu_ld" != no && break |
10827 | ;; |
10828 | *) |
10829 | test "$with_gnu_ld" != yes && break |
10830 | ;; |
10831 | esac |
10832 | fi |
10833 | done |
10834 | IFS="$lt_save_ifs" |
10835 | else |
10836 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
10837 | fi |
10838 | fi |
10839 | |
10840 | LD="$lt_cv_path_LD" |
10841 | if test -n "$LD"; then |
dd184caf |
10842 | { echo "$as_me:$LINENO: result: $LD" >&5 |
10843 | echo "${ECHO_T}$LD" >&6; } |
d9898ee8 |
10844 | else |
dd184caf |
10845 | { echo "$as_me:$LINENO: result: no" >&5 |
10846 | echo "${ECHO_T}no" >&6; } |
d9898ee8 |
10847 | fi |
10848 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
10849 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
10850 | { (exit 1); exit 1; }; } |
dd184caf |
10851 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
10852 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
d9898ee8 |
10853 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
10854 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10855 | else |
10856 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
10857 | case `$LD -v 2>&1 </dev/null` in |
10858 | *GNU* | *'with BFD'*) |
10859 | lt_cv_prog_gnu_ld=yes |
10860 | ;; |
10861 | *) |
10862 | lt_cv_prog_gnu_ld=no |
10863 | ;; |
10864 | esac |
10865 | fi |
dd184caf |
10866 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
10867 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
d9898ee8 |
10868 | with_gnu_ld=$lt_cv_prog_gnu_ld |
10869 | |
10870 | |
10871 | |
10872 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
10873 | # archiving commands below assume that GNU ld is being used. |
10874 | if test "$with_gnu_ld" = yes; then |
10875 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
10876 | 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' |
10877 | |
10878 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
10879 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
10880 | |
10881 | # If archive_cmds runs LD, not CC, wlarc should be empty |
10882 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
10883 | # investigate it a little bit more. (MM) |
10884 | wlarc='${wl}' |
10885 | |
10886 | # ancient GNU ld didn't support --whole-archive et. al. |
10887 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
10888 | grep 'no-whole-archive' > /dev/null; then |
10889 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
10890 | else |
10891 | whole_archive_flag_spec_CXX= |
10892 | fi |
10893 | else |
10894 | with_gnu_ld=no |
10895 | wlarc= |
10896 | |
10897 | # A generic and very simple default shared library creation |
10898 | # command for GNU C++ for the case where it uses the native |
10899 | # linker, instead of GNU ld. If possible, this setting should |
10900 | # overridden to take advantage of the native linker features on |
10901 | # the platform it is being used on. |
10902 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
10903 | fi |
10904 | |
10905 | # Commands to make compiler produce verbose output that lists |
10906 | # what "hidden" libraries, object files and flags are used when |
10907 | # linking a shared library. |
10908 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
10909 | |
10910 | else |
10911 | GXX=no |
10912 | with_gnu_ld=no |
10913 | wlarc= |
10914 | fi |
10915 | |
10916 | # PORTME: fill in a description of your system's C++ link characteristics |
dd184caf |
10917 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
10918 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
10919 | ld_shlibs_CXX=yes |
10920 | case $host_os in |
10921 | aix3*) |
10922 | # FIXME: insert proper C++ library support |
10923 | ld_shlibs_CXX=no |
10924 | ;; |
10925 | aix4* | aix5*) |
10926 | if test "$host_cpu" = ia64; then |
10927 | # On IA64, the linker does run time linking by default, so we don't |
10928 | # have to do anything special. |
10929 | aix_use_runtimelinking=no |
10930 | exp_sym_flag='-Bexport' |
10931 | no_entry_flag="" |
10932 | else |
10933 | aix_use_runtimelinking=no |
10934 | |
10935 | # Test if we are trying to use run time linking or normal |
10936 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
10937 | # need to do runtime linking. |
10938 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
10939 | for ld_flag in $LDFLAGS; do |
10940 | case $ld_flag in |
10941 | *-brtl*) |
10942 | aix_use_runtimelinking=yes |
10943 | break |
10944 | ;; |
10945 | esac |
10946 | done |
10947 | ;; |
10948 | esac |
10949 | |
10950 | exp_sym_flag='-bexport' |
10951 | no_entry_flag='-bnoentry' |
10952 | fi |
10953 | |
10954 | # When large executables or shared objects are built, AIX ld can |
10955 | # have problems creating the table of contents. If linking a library |
10956 | # or program results in "error TOC overflow" add -mminimal-toc to |
10957 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
10958 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
10959 | |
10960 | archive_cmds_CXX='' |
10961 | hardcode_direct_CXX=yes |
10962 | hardcode_libdir_separator_CXX=':' |
10963 | link_all_deplibs_CXX=yes |
10964 | |
10965 | if test "$GXX" = yes; then |
10966 | case $host_os in aix4.[012]|aix4.[012].*) |
10967 | # We only want to do this on AIX 4.2 and lower, the check |
10968 | # below for broken collect2 doesn't work under 4.3+ |
10969 | collect2name=`${CC} -print-prog-name=collect2` |
10970 | if test -f "$collect2name" && \ |
10971 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
10972 | then |
10973 | # We have reworked collect2 |
10974 | hardcode_direct_CXX=yes |
10975 | else |
10976 | # We have old collect2 |
10977 | hardcode_direct_CXX=unsupported |
10978 | # It fails to find uninstalled libraries when the uninstalled |
10979 | # path is not listed in the libpath. Setting hardcode_minus_L |
10980 | # to unsupported forces relinking |
10981 | hardcode_minus_L_CXX=yes |
10982 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
10983 | hardcode_libdir_separator_CXX= |
10984 | fi |
10985 | ;; |
10986 | esac |
10987 | shared_flag='-shared' |
10988 | if test "$aix_use_runtimelinking" = yes; then |
10989 | shared_flag="$shared_flag "'${wl}-G' |
10990 | fi |
10991 | else |
10992 | # not using gcc |
10993 | if test "$host_cpu" = ia64; then |
10994 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
10995 | # chokes on -Wl,-G. The following line is correct: |
10996 | shared_flag='-G' |
10997 | else |
10998 | if test "$aix_use_runtimelinking" = yes; then |
10999 | shared_flag='${wl}-G' |
11000 | else |
11001 | shared_flag='${wl}-bM:SRE' |
11002 | fi |
11003 | fi |
11004 | fi |
11005 | |
11006 | # It seems that -bexpall does not export symbols beginning with |
11007 | # underscore (_), so it is better to generate a list of symbols to export. |
11008 | always_export_symbols_CXX=yes |
11009 | if test "$aix_use_runtimelinking" = yes; then |
11010 | # Warning - without using the other runtime loading flags (-brtl), |
11011 | # -berok will link without error, but may produce a broken library. |
11012 | allow_undefined_flag_CXX='-berok' |
11013 | # Determine the default libpath from the value encoded in an empty executable. |
11014 | cat >conftest.$ac_ext <<_ACEOF |
11015 | /* confdefs.h. */ |
11016 | _ACEOF |
11017 | cat confdefs.h >>conftest.$ac_ext |
11018 | cat >>conftest.$ac_ext <<_ACEOF |
11019 | /* end confdefs.h. */ |
11020 | |
11021 | int |
11022 | main () |
11023 | { |
11024 | |
11025 | ; |
11026 | return 0; |
11027 | } |
11028 | _ACEOF |
11029 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
11030 | if { (ac_try="$ac_link" |
11031 | case "(($ac_try" in |
11032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11033 | *) ac_try_echo=$ac_try;; |
11034 | esac |
11035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11036 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11037 | ac_status=$? |
11038 | grep -v '^ *+' conftest.er1 >conftest.err |
11039 | rm -f conftest.er1 |
11040 | cat conftest.err >&5 |
11041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
11042 | (exit $ac_status); } && { |
11043 | test -z "$ac_cxx_werror_flag" || |
11044 | test ! -s conftest.err |
11045 | } && test -s conftest$ac_exeext && |
11046 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11047 | |
11048 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11049 | }'` |
11050 | # Check for a 64-bit object if we didn't find anything. |
11051 | 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; } |
11052 | }'`; fi |
11053 | else |
11054 | echo "$as_me: failed program was:" >&5 |
11055 | sed 's/^/| /' conftest.$ac_ext >&5 |
11056 | |
dd184caf |
11057 | |
d9898ee8 |
11058 | fi |
dd184caf |
11059 | |
11060 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11061 | conftest$ac_exeext conftest.$ac_ext |
11062 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11063 | |
11064 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11065 | |
11066 | 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" |
11067 | else |
11068 | if test "$host_cpu" = ia64; then |
11069 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
11070 | allow_undefined_flag_CXX="-z nodefs" |
11071 | 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" |
11072 | else |
11073 | # Determine the default libpath from the value encoded in an empty executable. |
11074 | cat >conftest.$ac_ext <<_ACEOF |
11075 | /* confdefs.h. */ |
11076 | _ACEOF |
11077 | cat confdefs.h >>conftest.$ac_ext |
11078 | cat >>conftest.$ac_ext <<_ACEOF |
11079 | /* end confdefs.h. */ |
11080 | |
11081 | int |
11082 | main () |
11083 | { |
11084 | |
11085 | ; |
11086 | return 0; |
11087 | } |
11088 | _ACEOF |
11089 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
11090 | if { (ac_try="$ac_link" |
11091 | case "(($ac_try" in |
11092 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11093 | *) ac_try_echo=$ac_try;; |
11094 | esac |
11095 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11096 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
11097 | ac_status=$? |
11098 | grep -v '^ *+' conftest.er1 >conftest.err |
11099 | rm -f conftest.er1 |
11100 | cat conftest.err >&5 |
11101 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
11102 | (exit $ac_status); } && { |
11103 | test -z "$ac_cxx_werror_flag" || |
11104 | test ! -s conftest.err |
11105 | } && test -s conftest$ac_exeext && |
11106 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
11107 | |
11108 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11109 | }'` |
11110 | # Check for a 64-bit object if we didn't find anything. |
11111 | 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; } |
11112 | }'`; fi |
11113 | else |
11114 | echo "$as_me: failed program was:" >&5 |
11115 | sed 's/^/| /' conftest.$ac_ext >&5 |
11116 | |
dd184caf |
11117 | |
d9898ee8 |
11118 | fi |
dd184caf |
11119 | |
11120 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
11121 | conftest$ac_exeext conftest.$ac_ext |
11122 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11123 | |
11124 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11125 | # Warning - without using the other run time loading flags, |
11126 | # -berok will link without error, but may produce a broken library. |
11127 | no_undefined_flag_CXX=' ${wl}-bernotok' |
11128 | allow_undefined_flag_CXX=' ${wl}-berok' |
11129 | # Exported symbols can be pulled into shared objects from archives |
11130 | whole_archive_flag_spec_CXX='$convenience' |
11131 | archive_cmds_need_lc_CXX=yes |
11132 | # This is similar to how AIX traditionally builds its shared libraries. |
11133 | 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' |
11134 | fi |
11135 | fi |
11136 | ;; |
11137 | |
11138 | beos*) |
11139 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
11140 | allow_undefined_flag_CXX=unsupported |
11141 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
11142 | # support --undefined. This deserves some investigation. FIXME |
11143 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11144 | else |
11145 | ld_shlibs_CXX=no |
11146 | fi |
11147 | ;; |
11148 | |
11149 | chorus*) |
11150 | case $cc_basename in |
11151 | *) |
11152 | # FIXME: insert proper C++ library support |
11153 | ld_shlibs_CXX=no |
11154 | ;; |
11155 | esac |
11156 | ;; |
11157 | |
11158 | cygwin* | mingw* | pw32*) |
11159 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
11160 | # as there is no search path for DLLs. |
11161 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11162 | allow_undefined_flag_CXX=unsupported |
11163 | always_export_symbols_CXX=no |
11164 | enable_shared_with_static_runtimes_CXX=yes |
11165 | |
11166 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
11167 | 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' |
11168 | # If the export-symbols file already is a .def file (1st line |
11169 | # is EXPORTS), use it as is; otherwise, prepend... |
11170 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
11171 | cp $export_symbols $output_objdir/$soname.def; |
11172 | else |
11173 | echo EXPORTS > $output_objdir/$soname.def; |
11174 | cat $export_symbols >> $output_objdir/$soname.def; |
11175 | fi~ |
11176 | $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' |
11177 | else |
11178 | ld_shlibs_CXX=no |
11179 | fi |
11180 | ;; |
11181 | darwin* | rhapsody*) |
11182 | case $host_os in |
11183 | rhapsody* | darwin1.[012]) |
11184 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
11185 | ;; |
11186 | *) # Darwin 1.3 on |
11187 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
11188 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11189 | else |
11190 | case ${MACOSX_DEPLOYMENT_TARGET} in |
11191 | 10.[012]) |
11192 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11193 | ;; |
11194 | 10.*) |
11195 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
11196 | ;; |
11197 | esac |
11198 | fi |
11199 | ;; |
11200 | esac |
11201 | archive_cmds_need_lc_CXX=no |
11202 | hardcode_direct_CXX=no |
11203 | hardcode_automatic_CXX=yes |
11204 | hardcode_shlibpath_var_CXX=unsupported |
11205 | whole_archive_flag_spec_CXX='' |
11206 | link_all_deplibs_CXX=yes |
11207 | |
11208 | if test "$GXX" = yes ; then |
11209 | lt_int_apple_cc_single_mod=no |
11210 | output_verbose_link_cmd='echo' |
11211 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
11212 | lt_int_apple_cc_single_mod=yes |
11213 | fi |
11214 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11215 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
11216 | else |
11217 | 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' |
11218 | fi |
11219 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11220 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11221 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11222 | 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}' |
11223 | else |
11224 | 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}' |
11225 | fi |
11226 | 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}' |
11227 | else |
11228 | case $cc_basename in |
11229 | xlc*) |
11230 | output_verbose_link_cmd='echo' |
11231 | 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' |
11232 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11233 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11234 | 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}' |
11235 | 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}' |
11236 | ;; |
11237 | *) |
11238 | ld_shlibs_CXX=no |
11239 | ;; |
11240 | esac |
11241 | fi |
11242 | ;; |
11243 | |
11244 | dgux*) |
11245 | case $cc_basename in |
11246 | ec++*) |
11247 | # FIXME: insert proper C++ library support |
11248 | ld_shlibs_CXX=no |
11249 | ;; |
11250 | ghcx*) |
11251 | # Green Hills C++ Compiler |
11252 | # FIXME: insert proper C++ library support |
11253 | ld_shlibs_CXX=no |
11254 | ;; |
11255 | *) |
11256 | # FIXME: insert proper C++ library support |
11257 | ld_shlibs_CXX=no |
11258 | ;; |
11259 | esac |
11260 | ;; |
11261 | freebsd[12]*) |
11262 | # C++ shared libraries reported to be fairly broken before switch to ELF |
11263 | ld_shlibs_CXX=no |
11264 | ;; |
11265 | freebsd-elf*) |
11266 | archive_cmds_need_lc_CXX=no |
11267 | ;; |
11268 | freebsd* | kfreebsd*-gnu | dragonfly*) |
11269 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
11270 | # conventions |
11271 | ld_shlibs_CXX=yes |
11272 | ;; |
11273 | gnu*) |
11274 | ;; |
11275 | hpux9*) |
11276 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11277 | hardcode_libdir_separator_CXX=: |
11278 | export_dynamic_flag_spec_CXX='${wl}-E' |
11279 | hardcode_direct_CXX=yes |
11280 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11281 | # but as the default |
11282 | # location of the library. |
11283 | |
11284 | case $cc_basename in |
11285 | CC*) |
11286 | # FIXME: insert proper C++ library support |
11287 | ld_shlibs_CXX=no |
11288 | ;; |
11289 | aCC*) |
11290 | 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' |
11291 | # Commands to make compiler produce verbose output that lists |
11292 | # what "hidden" libraries, object files and flags are used when |
11293 | # linking a shared library. |
11294 | # |
11295 | # There doesn't appear to be a way to prevent this compiler from |
11296 | # explicitly linking system object files so we need to strip them |
11297 | # from the output so that they don't get included in the library |
11298 | # dependencies. |
11299 | 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' |
11300 | ;; |
11301 | *) |
11302 | if test "$GXX" = yes; then |
11303 | 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' |
11304 | else |
11305 | # FIXME: insert proper C++ library support |
11306 | ld_shlibs_CXX=no |
11307 | fi |
11308 | ;; |
11309 | esac |
11310 | ;; |
11311 | hpux10*|hpux11*) |
11312 | if test $with_gnu_ld = no; then |
11313 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11314 | hardcode_libdir_separator_CXX=: |
11315 | |
11316 | case $host_cpu in |
11317 | hppa*64*|ia64*) |
11318 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
11319 | ;; |
11320 | *) |
11321 | export_dynamic_flag_spec_CXX='${wl}-E' |
11322 | ;; |
11323 | esac |
11324 | fi |
11325 | case $host_cpu in |
11326 | hppa*64*|ia64*) |
11327 | hardcode_direct_CXX=no |
11328 | hardcode_shlibpath_var_CXX=no |
11329 | ;; |
11330 | *) |
11331 | hardcode_direct_CXX=yes |
11332 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11333 | # but as the default |
11334 | # location of the library. |
11335 | ;; |
11336 | esac |
11337 | |
11338 | case $cc_basename in |
11339 | CC*) |
11340 | # FIXME: insert proper C++ library support |
11341 | ld_shlibs_CXX=no |
11342 | ;; |
11343 | aCC*) |
11344 | case $host_cpu in |
11345 | hppa*64*) |
11346 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11347 | ;; |
11348 | ia64*) |
11349 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11350 | ;; |
11351 | *) |
11352 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11353 | ;; |
11354 | esac |
11355 | # Commands to make compiler produce verbose output that lists |
11356 | # what "hidden" libraries, object files and flags are used when |
11357 | # linking a shared library. |
11358 | # |
11359 | # There doesn't appear to be a way to prevent this compiler from |
11360 | # explicitly linking system object files so we need to strip them |
11361 | # from the output so that they don't get included in the library |
11362 | # dependencies. |
11363 | 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' |
11364 | ;; |
11365 | *) |
11366 | if test "$GXX" = yes; then |
11367 | if test $with_gnu_ld = no; then |
11368 | case $host_cpu in |
11369 | hppa*64*) |
11370 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11371 | ;; |
11372 | ia64*) |
11373 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11374 | ;; |
11375 | *) |
11376 | 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' |
11377 | ;; |
11378 | esac |
11379 | fi |
11380 | else |
11381 | # FIXME: insert proper C++ library support |
11382 | ld_shlibs_CXX=no |
11383 | fi |
11384 | ;; |
11385 | esac |
11386 | ;; |
11387 | interix3*) |
11388 | hardcode_direct_CXX=no |
11389 | hardcode_shlibpath_var_CXX=no |
11390 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11391 | export_dynamic_flag_spec_CXX='${wl}-E' |
11392 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
11393 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
11394 | # default) and relocated if they conflict, which is a slow very memory |
11395 | # consuming and fragmenting process. To avoid this, we pick a random, |
11396 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
11397 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
11398 | 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' |
11399 | 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' |
11400 | ;; |
11401 | irix5* | irix6*) |
11402 | case $cc_basename in |
11403 | CC*) |
11404 | # SGI C++ |
11405 | 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' |
11406 | |
11407 | # Archives containing C++ object files must be created using |
11408 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
11409 | # necessary to make sure instantiated templates are included |
11410 | # in the archive. |
11411 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
11412 | ;; |
11413 | *) |
11414 | if test "$GXX" = yes; then |
11415 | if test "$with_gnu_ld" = no; then |
11416 | 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' |
11417 | else |
11418 | 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' |
11419 | fi |
11420 | fi |
11421 | link_all_deplibs_CXX=yes |
11422 | ;; |
11423 | esac |
11424 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11425 | hardcode_libdir_separator_CXX=: |
11426 | ;; |
11427 | linux*) |
11428 | case $cc_basename in |
11429 | KCC*) |
11430 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11431 | |
11432 | # KCC will only create a shared library if the output file |
11433 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11434 | # to its proper name (with version) after linking. |
11435 | 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' |
11436 | 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' |
11437 | # Commands to make compiler produce verbose output that lists |
11438 | # what "hidden" libraries, object files and flags are used when |
11439 | # linking a shared library. |
11440 | # |
11441 | # There doesn't appear to be a way to prevent this compiler from |
11442 | # explicitly linking system object files so we need to strip them |
11443 | # from the output so that they don't get included in the library |
11444 | # dependencies. |
11445 | 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' |
11446 | |
11447 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
11448 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11449 | |
11450 | # Archives containing C++ object files must be created using |
11451 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11452 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11453 | ;; |
11454 | icpc*) |
11455 | # Intel C++ |
11456 | with_gnu_ld=yes |
11457 | # version 8.0 and above of icpc choke on multiply defined symbols |
11458 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
11459 | # earlier do not add the objects themselves. |
11460 | case `$CC -V 2>&1` in |
11461 | *"Version 7."*) |
11462 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11463 | 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' |
11464 | ;; |
11465 | *) # Version 8.0 or newer |
11466 | tmp_idyn= |
11467 | case $host_cpu in |
11468 | ia64*) tmp_idyn=' -i_dynamic';; |
11469 | esac |
11470 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11471 | 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' |
11472 | ;; |
11473 | esac |
11474 | archive_cmds_need_lc_CXX=no |
11475 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11476 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11477 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
11478 | ;; |
11479 | pgCC*) |
11480 | # Portland Group C++ compiler |
11481 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
11482 | 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' |
11483 | |
11484 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11485 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11486 | 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' |
11487 | ;; |
11488 | cxx*) |
11489 | # Compaq C++ |
11490 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11491 | 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' |
11492 | |
11493 | runpath_var=LD_RUN_PATH |
11494 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11495 | hardcode_libdir_separator_CXX=: |
11496 | |
11497 | # Commands to make compiler produce verbose output that lists |
11498 | # what "hidden" libraries, object files and flags are used when |
11499 | # linking a shared library. |
11500 | # |
11501 | # There doesn't appear to be a way to prevent this compiler from |
11502 | # explicitly linking system object files so we need to strip them |
11503 | # from the output so that they don't get included in the library |
11504 | # dependencies. |
11505 | 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' |
11506 | ;; |
11507 | esac |
11508 | ;; |
11509 | lynxos*) |
11510 | # FIXME: insert proper C++ library support |
11511 | ld_shlibs_CXX=no |
11512 | ;; |
11513 | m88k*) |
11514 | # FIXME: insert proper C++ library support |
11515 | ld_shlibs_CXX=no |
11516 | ;; |
11517 | mvs*) |
11518 | case $cc_basename in |
11519 | cxx*) |
11520 | # FIXME: insert proper C++ library support |
11521 | ld_shlibs_CXX=no |
11522 | ;; |
11523 | *) |
11524 | # FIXME: insert proper C++ library support |
11525 | ld_shlibs_CXX=no |
11526 | ;; |
11527 | esac |
11528 | ;; |
11529 | netbsd*) |
11530 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11531 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
11532 | wlarc= |
11533 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11534 | hardcode_direct_CXX=yes |
11535 | hardcode_shlibpath_var_CXX=no |
11536 | fi |
11537 | # Workaround some broken pre-1.5 toolchains |
11538 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
11539 | ;; |
11540 | openbsd2*) |
11541 | # C++ shared libraries are fairly broken |
11542 | ld_shlibs_CXX=no |
11543 | ;; |
11544 | openbsd*) |
11545 | hardcode_direct_CXX=yes |
11546 | hardcode_shlibpath_var_CXX=no |
11547 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11548 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11549 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
11550 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
11551 | export_dynamic_flag_spec_CXX='${wl}-E' |
11552 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11553 | fi |
11554 | output_verbose_link_cmd='echo' |
11555 | ;; |
11556 | osf3*) |
11557 | case $cc_basename in |
11558 | KCC*) |
11559 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11560 | |
11561 | # KCC will only create a shared library if the output file |
11562 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11563 | # to its proper name (with version) after linking. |
11564 | 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' |
11565 | |
11566 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11567 | hardcode_libdir_separator_CXX=: |
11568 | |
11569 | # Archives containing C++ object files must be created using |
11570 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11571 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11572 | |
11573 | ;; |
11574 | RCC*) |
11575 | # Rational C++ 2.4.1 |
11576 | # FIXME: insert proper C++ library support |
11577 | ld_shlibs_CXX=no |
11578 | ;; |
11579 | cxx*) |
11580 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11581 | 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' |
11582 | |
11583 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11584 | hardcode_libdir_separator_CXX=: |
11585 | |
11586 | # Commands to make compiler produce verbose output that lists |
11587 | # what "hidden" libraries, object files and flags are used when |
11588 | # linking a shared library. |
11589 | # |
11590 | # There doesn't appear to be a way to prevent this compiler from |
11591 | # explicitly linking system object files so we need to strip them |
11592 | # from the output so that they don't get included in the library |
11593 | # dependencies. |
11594 | 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' |
11595 | ;; |
11596 | *) |
11597 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11598 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11599 | 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' |
11600 | |
11601 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11602 | hardcode_libdir_separator_CXX=: |
11603 | |
11604 | # Commands to make compiler produce verbose output that lists |
11605 | # what "hidden" libraries, object files and flags are used when |
11606 | # linking a shared library. |
11607 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11608 | |
11609 | else |
11610 | # FIXME: insert proper C++ library support |
11611 | ld_shlibs_CXX=no |
11612 | fi |
11613 | ;; |
11614 | esac |
11615 | ;; |
11616 | osf4* | osf5*) |
11617 | case $cc_basename in |
11618 | KCC*) |
11619 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11620 | |
11621 | # KCC will only create a shared library if the output file |
11622 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11623 | # to its proper name (with version) after linking. |
11624 | 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' |
11625 | |
11626 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11627 | hardcode_libdir_separator_CXX=: |
11628 | |
11629 | # Archives containing C++ object files must be created using |
11630 | # the KAI C++ compiler. |
11631 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
11632 | ;; |
11633 | RCC*) |
11634 | # Rational C++ 2.4.1 |
11635 | # FIXME: insert proper C++ library support |
11636 | ld_shlibs_CXX=no |
11637 | ;; |
11638 | cxx*) |
11639 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
11640 | 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' |
11641 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
11642 | echo "-hidden">> $lib.exp~ |
11643 | $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~ |
11644 | $rm $lib.exp' |
11645 | |
11646 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11647 | hardcode_libdir_separator_CXX=: |
11648 | |
11649 | # Commands to make compiler produce verbose output that lists |
11650 | # what "hidden" libraries, object files and flags are used when |
11651 | # linking a shared library. |
11652 | # |
11653 | # There doesn't appear to be a way to prevent this compiler from |
11654 | # explicitly linking system object files so we need to strip them |
11655 | # from the output so that they don't get included in the library |
11656 | # dependencies. |
11657 | 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' |
11658 | ;; |
11659 | *) |
11660 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11661 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11662 | 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' |
11663 | |
11664 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11665 | hardcode_libdir_separator_CXX=: |
11666 | |
11667 | # Commands to make compiler produce verbose output that lists |
11668 | # what "hidden" libraries, object files and flags are used when |
11669 | # linking a shared library. |
11670 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11671 | |
11672 | else |
11673 | # FIXME: insert proper C++ library support |
11674 | ld_shlibs_CXX=no |
11675 | fi |
11676 | ;; |
11677 | esac |
11678 | ;; |
11679 | psos*) |
11680 | # FIXME: insert proper C++ library support |
11681 | ld_shlibs_CXX=no |
11682 | ;; |
11683 | sunos4*) |
11684 | case $cc_basename in |
11685 | CC*) |
11686 | # Sun C++ 4.x |
11687 | # FIXME: insert proper C++ library support |
11688 | ld_shlibs_CXX=no |
11689 | ;; |
11690 | lcc*) |
11691 | # Lucid |
11692 | # FIXME: insert proper C++ library support |
11693 | ld_shlibs_CXX=no |
11694 | ;; |
11695 | *) |
11696 | # FIXME: insert proper C++ library support |
11697 | ld_shlibs_CXX=no |
11698 | ;; |
11699 | esac |
11700 | ;; |
11701 | solaris*) |
11702 | case $cc_basename in |
11703 | CC*) |
11704 | # Sun C++ 4.2, 5.x and Centerline C++ |
11705 | archive_cmds_need_lc_CXX=yes |
11706 | no_undefined_flag_CXX=' -zdefs' |
11707 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11708 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11709 | $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' |
11710 | |
11711 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11712 | hardcode_shlibpath_var_CXX=no |
11713 | case $host_os in |
11714 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
11715 | *) |
11716 | # The C++ compiler is used as linker so we must use $wl |
11717 | # flag to pass the commands to the underlying system |
11718 | # linker. We must also pass each convience library through |
11719 | # to the system linker between allextract/defaultextract. |
11720 | # The C++ compiler will combine linker options so we |
11721 | # cannot just pass the convience library names through |
11722 | # without $wl. |
11723 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
11724 | 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' |
11725 | ;; |
11726 | esac |
11727 | link_all_deplibs_CXX=yes |
11728 | |
11729 | output_verbose_link_cmd='echo' |
11730 | |
11731 | # Archives containing C++ object files must be created using |
11732 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11733 | # necessary to make sure instantiated templates are included |
11734 | # in the archive. |
11735 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11736 | ;; |
11737 | gcx*) |
11738 | # Green Hills C++ Compiler |
11739 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11740 | |
11741 | # The C++ compiler must be used to create the archive. |
11742 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
11743 | ;; |
11744 | *) |
11745 | # GNU C++ compiler with Solaris linker |
11746 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11747 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
11748 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
11749 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11750 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11751 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11752 | |
11753 | # Commands to make compiler produce verbose output that lists |
11754 | # what "hidden" libraries, object files and flags are used when |
11755 | # linking a shared library. |
11756 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11757 | else |
11758 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
11759 | # platform. |
11760 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
11761 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11762 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
11763 | |
11764 | # Commands to make compiler produce verbose output that lists |
11765 | # what "hidden" libraries, object files and flags are used when |
11766 | # linking a shared library. |
11767 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
11768 | fi |
11769 | |
11770 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
11771 | fi |
11772 | ;; |
11773 | esac |
11774 | ;; |
11775 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
11776 | no_undefined_flag_CXX='${wl}-z,text' |
11777 | archive_cmds_need_lc_CXX=no |
11778 | hardcode_shlibpath_var_CXX=no |
11779 | runpath_var='LD_RUN_PATH' |
11780 | |
11781 | case $cc_basename in |
11782 | CC*) |
11783 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11784 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11785 | ;; |
11786 | *) |
11787 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11788 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
11789 | ;; |
11790 | esac |
11791 | ;; |
11792 | sysv5* | sco3.2v5* | sco5v6*) |
11793 | # Note: We can NOT use -z defs as we might desire, because we do not |
11794 | # link with -lc, and that would cause any symbols used from libc to |
11795 | # always be unresolved, which means just about no library would |
11796 | # ever link correctly. If we're not using GNU ld we use -z text |
11797 | # though, which does catch some bad symbols but isn't as heavy-handed |
11798 | # as -z defs. |
11799 | # For security reasons, it is highly recommended that you always |
11800 | # use absolute paths for naming shared libraries, and exclude the |
11801 | # DT_RUNPATH tag from executables and libraries. But doing so |
11802 | # requires that you compile everything twice, which is a pain. |
11803 | # So that behaviour is only enabled if SCOABSPATH is set to a |
11804 | # non-empty value in the environment. Most likely only useful for |
11805 | # creating official distributions of packages. |
11806 | # This is a hack until libtool officially supports absolute path |
11807 | # names for shared libraries. |
11808 | no_undefined_flag_CXX='${wl}-z,text' |
11809 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
11810 | archive_cmds_need_lc_CXX=no |
11811 | hardcode_shlibpath_var_CXX=no |
11812 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
11813 | hardcode_libdir_separator_CXX=':' |
11814 | link_all_deplibs_CXX=yes |
11815 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
11816 | runpath_var='LD_RUN_PATH' |
11817 | |
11818 | case $cc_basename in |
11819 | CC*) |
11820 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11821 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11822 | ;; |
11823 | *) |
11824 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11825 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
11826 | ;; |
11827 | esac |
11828 | ;; |
11829 | tandem*) |
11830 | case $cc_basename in |
11831 | NCC*) |
11832 | # NonStop-UX NCC 3.20 |
11833 | # FIXME: insert proper C++ library support |
11834 | ld_shlibs_CXX=no |
11835 | ;; |
11836 | *) |
11837 | # FIXME: insert proper C++ library support |
11838 | ld_shlibs_CXX=no |
11839 | ;; |
11840 | esac |
11841 | ;; |
11842 | vxworks*) |
11843 | # FIXME: insert proper C++ library support |
11844 | ld_shlibs_CXX=no |
11845 | ;; |
11846 | *) |
11847 | # FIXME: insert proper C++ library support |
11848 | ld_shlibs_CXX=no |
11849 | ;; |
11850 | esac |
dd184caf |
11851 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
11852 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
11853 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
11854 | |
11855 | GCC_CXX="$GXX" |
11856 | LD_CXX="$LD" |
11857 | |
11858 | |
11859 | cat > conftest.$ac_ext <<EOF |
11860 | class Foo |
11861 | { |
11862 | public: |
11863 | Foo (void) { a = 0; } |
11864 | private: |
11865 | int a; |
11866 | }; |
11867 | EOF |
11868 | |
11869 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
11870 | (eval $ac_compile) 2>&5 |
11871 | ac_status=$? |
11872 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11873 | (exit $ac_status); }; then |
11874 | # Parse the compiler output and extract the necessary |
11875 | # objects, libraries and library flags. |
11876 | |
11877 | # Sentinel used to keep track of whether or not we are before |
11878 | # the conftest object file. |
11879 | pre_test_object_deps_done=no |
11880 | |
11881 | # The `*' in the case matches for architectures that use `case' in |
11882 | # $output_verbose_cmd can trigger glob expansion during the loop |
11883 | # eval without this substitution. |
11884 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
11885 | |
11886 | for p in `eval $output_verbose_link_cmd`; do |
11887 | case $p in |
11888 | |
11889 | -L* | -R* | -l*) |
11890 | # Some compilers place space between "-{L,R}" and the path. |
11891 | # Remove the space. |
11892 | if test $p = "-L" \ |
11893 | || test $p = "-R"; then |
11894 | prev=$p |
11895 | continue |
11896 | else |
11897 | prev= |
11898 | fi |
11899 | |
11900 | if test "$pre_test_object_deps_done" = no; then |
11901 | case $p in |
11902 | -L* | -R*) |
11903 | # Internal compiler library paths should come after those |
11904 | # provided the user. The postdeps already come after the |
11905 | # user supplied libs so there is no need to process them. |
11906 | if test -z "$compiler_lib_search_path_CXX"; then |
11907 | compiler_lib_search_path_CXX="${prev}${p}" |
11908 | else |
11909 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
11910 | fi |
11911 | ;; |
11912 | # The "-l" case would never come before the object being |
11913 | # linked, so don't bother handling this case. |
11914 | esac |
11915 | else |
11916 | if test -z "$postdeps_CXX"; then |
11917 | postdeps_CXX="${prev}${p}" |
11918 | else |
11919 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
11920 | fi |
11921 | fi |
11922 | ;; |
11923 | |
11924 | *.$objext) |
11925 | # This assumes that the test object file only shows up |
11926 | # once in the compiler output. |
11927 | if test "$p" = "conftest.$objext"; then |
11928 | pre_test_object_deps_done=yes |
11929 | continue |
11930 | fi |
11931 | |
11932 | if test "$pre_test_object_deps_done" = no; then |
11933 | if test -z "$predep_objects_CXX"; then |
11934 | predep_objects_CXX="$p" |
11935 | else |
11936 | predep_objects_CXX="$predep_objects_CXX $p" |
11937 | fi |
11938 | else |
11939 | if test -z "$postdep_objects_CXX"; then |
11940 | postdep_objects_CXX="$p" |
11941 | else |
11942 | postdep_objects_CXX="$postdep_objects_CXX $p" |
11943 | fi |
11944 | fi |
11945 | ;; |
11946 | |
11947 | *) ;; # Ignore the rest. |
11948 | |
11949 | esac |
11950 | done |
11951 | |
11952 | # Clean up. |
11953 | rm -f a.out a.exe |
11954 | else |
11955 | echo "libtool.m4: error: problem compiling CXX test program" |
11956 | fi |
11957 | |
11958 | $rm -f confest.$objext |
11959 | |
11960 | # PORTME: override above test on systems where it is broken |
11961 | case $host_os in |
11962 | interix3*) |
11963 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
11964 | # hack all around it, let's just trust "g++" to DTRT. |
11965 | predep_objects_CXX= |
11966 | postdep_objects_CXX= |
11967 | postdeps_CXX= |
11968 | ;; |
11969 | |
11970 | solaris*) |
11971 | case $cc_basename in |
11972 | CC*) |
11973 | # Adding this requires a known-good setup of shared libraries for |
11974 | # Sun compiler versions before 5.6, else PIC objects from an old |
11975 | # archive will be linked into the output, leading to subtle bugs. |
11976 | postdeps_CXX='-lCstd -lCrun' |
11977 | ;; |
11978 | esac |
11979 | ;; |
11980 | esac |
11981 | |
11982 | |
11983 | case " $postdeps_CXX " in |
11984 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
11985 | esac |
11986 | |
11987 | lt_prog_compiler_wl_CXX= |
11988 | lt_prog_compiler_pic_CXX= |
11989 | lt_prog_compiler_static_CXX= |
11990 | |
dd184caf |
11991 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
11992 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
11993 | |
11994 | # C++ specific cases for pic, static, wl, etc. |
11995 | if test "$GXX" = yes; then |
11996 | lt_prog_compiler_wl_CXX='-Wl,' |
11997 | lt_prog_compiler_static_CXX='-static' |
11998 | |
11999 | case $host_os in |
12000 | aix*) |
12001 | # All AIX code is PIC. |
12002 | if test "$host_cpu" = ia64; then |
12003 | # AIX 5 now supports IA64 processor |
12004 | lt_prog_compiler_static_CXX='-Bstatic' |
12005 | fi |
12006 | ;; |
12007 | amigaos*) |
12008 | # FIXME: we need at least 68020 code to build shared libraries, but |
12009 | # adding the `-m68020' flag to GCC prevents building anything better, |
12010 | # like `-m68040'. |
12011 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
12012 | ;; |
12013 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
12014 | # PIC is the default for these OSes. |
12015 | ;; |
12016 | mingw* | os2* | pw32*) |
12017 | # This hack is so that the source file can tell whether it is being |
12018 | # built for inclusion in a dll (and should export symbols for example). |
12019 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
12020 | ;; |
12021 | darwin* | rhapsody*) |
12022 | # PIC is the default on this platform |
12023 | # Common symbols not allowed in MH_DYLIB files |
12024 | lt_prog_compiler_pic_CXX='-fno-common' |
12025 | ;; |
12026 | *djgpp*) |
12027 | # DJGPP does not support shared libraries at all |
12028 | lt_prog_compiler_pic_CXX= |
12029 | ;; |
12030 | interix3*) |
12031 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
12032 | # Instead, we relocate shared libraries at runtime. |
12033 | ;; |
12034 | sysv4*MP*) |
12035 | if test -d /usr/nec; then |
12036 | lt_prog_compiler_pic_CXX=-Kconform_pic |
12037 | fi |
12038 | ;; |
12039 | hpux*) |
12040 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
12041 | # not for PA HP-UX. |
12042 | case $host_cpu in |
12043 | hppa*64*|ia64*) |
12044 | ;; |
12045 | *) |
12046 | lt_prog_compiler_pic_CXX='-fPIC' |
12047 | ;; |
12048 | esac |
12049 | ;; |
12050 | *) |
12051 | lt_prog_compiler_pic_CXX='-fPIC' |
12052 | ;; |
12053 | esac |
12054 | else |
12055 | case $host_os in |
12056 | aix4* | aix5*) |
12057 | # All AIX code is PIC. |
12058 | if test "$host_cpu" = ia64; then |
12059 | # AIX 5 now supports IA64 processor |
12060 | lt_prog_compiler_static_CXX='-Bstatic' |
12061 | else |
12062 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
12063 | fi |
12064 | ;; |
12065 | chorus*) |
12066 | case $cc_basename in |
12067 | cxch68*) |
12068 | # Green Hills C++ Compiler |
12069 | # _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" |
12070 | ;; |
12071 | esac |
12072 | ;; |
12073 | darwin*) |
12074 | # PIC is the default on this platform |
12075 | # Common symbols not allowed in MH_DYLIB files |
12076 | case $cc_basename in |
12077 | xlc*) |
12078 | lt_prog_compiler_pic_CXX='-qnocommon' |
12079 | lt_prog_compiler_wl_CXX='-Wl,' |
12080 | ;; |
12081 | esac |
12082 | ;; |
12083 | dgux*) |
12084 | case $cc_basename in |
12085 | ec++*) |
12086 | lt_prog_compiler_pic_CXX='-KPIC' |
12087 | ;; |
12088 | ghcx*) |
12089 | # Green Hills C++ Compiler |
12090 | lt_prog_compiler_pic_CXX='-pic' |
12091 | ;; |
12092 | *) |
12093 | ;; |
12094 | esac |
12095 | ;; |
12096 | freebsd* | kfreebsd*-gnu | dragonfly*) |
12097 | # FreeBSD uses GNU C++ |
12098 | ;; |
12099 | hpux9* | hpux10* | hpux11*) |
12100 | case $cc_basename in |
12101 | CC*) |
12102 | lt_prog_compiler_wl_CXX='-Wl,' |
12103 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12104 | if test "$host_cpu" != ia64; then |
12105 | lt_prog_compiler_pic_CXX='+Z' |
12106 | fi |
12107 | ;; |
12108 | aCC*) |
12109 | lt_prog_compiler_wl_CXX='-Wl,' |
12110 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12111 | case $host_cpu in |
12112 | hppa*64*|ia64*) |
12113 | # +Z the default |
12114 | ;; |
12115 | *) |
12116 | lt_prog_compiler_pic_CXX='+Z' |
12117 | ;; |
12118 | esac |
12119 | ;; |
12120 | *) |
12121 | ;; |
12122 | esac |
12123 | ;; |
12124 | interix*) |
12125 | # This is c89, which is MS Visual C++ (no shared libs) |
12126 | # Anyone wants to do a port? |
12127 | ;; |
12128 | irix5* | irix6* | nonstopux*) |
12129 | case $cc_basename in |
12130 | CC*) |
12131 | lt_prog_compiler_wl_CXX='-Wl,' |
12132 | lt_prog_compiler_static_CXX='-non_shared' |
12133 | # CC pic flag -KPIC is the default. |
12134 | ;; |
12135 | *) |
12136 | ;; |
12137 | esac |
12138 | ;; |
12139 | linux*) |
12140 | case $cc_basename in |
12141 | KCC*) |
12142 | # KAI C++ Compiler |
12143 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12144 | lt_prog_compiler_pic_CXX='-fPIC' |
12145 | ;; |
12146 | icpc* | ecpc*) |
12147 | # Intel C++ |
12148 | lt_prog_compiler_wl_CXX='-Wl,' |
12149 | lt_prog_compiler_pic_CXX='-KPIC' |
12150 | lt_prog_compiler_static_CXX='-static' |
12151 | ;; |
12152 | pgCC*) |
12153 | # Portland Group C++ compiler. |
12154 | lt_prog_compiler_wl_CXX='-Wl,' |
12155 | lt_prog_compiler_pic_CXX='-fpic' |
12156 | lt_prog_compiler_static_CXX='-Bstatic' |
12157 | ;; |
12158 | cxx*) |
12159 | # Compaq C++ |
12160 | # Make sure the PIC flag is empty. It appears that all Alpha |
12161 | # Linux and Compaq Tru64 Unix objects are PIC. |
12162 | lt_prog_compiler_pic_CXX= |
12163 | lt_prog_compiler_static_CXX='-non_shared' |
12164 | ;; |
12165 | *) |
12166 | ;; |
12167 | esac |
12168 | ;; |
12169 | lynxos*) |
12170 | ;; |
12171 | m88k*) |
12172 | ;; |
12173 | mvs*) |
12174 | case $cc_basename in |
12175 | cxx*) |
12176 | lt_prog_compiler_pic_CXX='-W c,exportall' |
12177 | ;; |
12178 | *) |
12179 | ;; |
12180 | esac |
12181 | ;; |
12182 | netbsd*) |
12183 | ;; |
12184 | osf3* | osf4* | osf5*) |
12185 | case $cc_basename in |
12186 | KCC*) |
12187 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12188 | ;; |
12189 | RCC*) |
12190 | # Rational C++ 2.4.1 |
12191 | lt_prog_compiler_pic_CXX='-pic' |
12192 | ;; |
12193 | cxx*) |
12194 | # Digital/Compaq C++ |
12195 | lt_prog_compiler_wl_CXX='-Wl,' |
12196 | # Make sure the PIC flag is empty. It appears that all Alpha |
12197 | # Linux and Compaq Tru64 Unix objects are PIC. |
12198 | lt_prog_compiler_pic_CXX= |
12199 | lt_prog_compiler_static_CXX='-non_shared' |
12200 | ;; |
12201 | *) |
12202 | ;; |
12203 | esac |
12204 | ;; |
12205 | psos*) |
12206 | ;; |
12207 | solaris*) |
12208 | case $cc_basename in |
12209 | CC*) |
12210 | # Sun C++ 4.2, 5.x and Centerline C++ |
12211 | lt_prog_compiler_pic_CXX='-KPIC' |
12212 | lt_prog_compiler_static_CXX='-Bstatic' |
12213 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12214 | ;; |
12215 | gcx*) |
12216 | # Green Hills C++ Compiler |
12217 | lt_prog_compiler_pic_CXX='-PIC' |
12218 | ;; |
12219 | *) |
12220 | ;; |
12221 | esac |
12222 | ;; |
12223 | sunos4*) |
12224 | case $cc_basename in |
12225 | CC*) |
12226 | # Sun C++ 4.x |
12227 | lt_prog_compiler_pic_CXX='-pic' |
12228 | lt_prog_compiler_static_CXX='-Bstatic' |
12229 | ;; |
12230 | lcc*) |
12231 | # Lucid |
12232 | lt_prog_compiler_pic_CXX='-pic' |
12233 | ;; |
12234 | *) |
12235 | ;; |
12236 | esac |
12237 | ;; |
12238 | tandem*) |
12239 | case $cc_basename in |
12240 | NCC*) |
12241 | # NonStop-UX NCC 3.20 |
12242 | lt_prog_compiler_pic_CXX='-KPIC' |
12243 | ;; |
12244 | *) |
12245 | ;; |
12246 | esac |
12247 | ;; |
12248 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
12249 | case $cc_basename in |
12250 | CC*) |
12251 | lt_prog_compiler_wl_CXX='-Wl,' |
12252 | lt_prog_compiler_pic_CXX='-KPIC' |
12253 | lt_prog_compiler_static_CXX='-Bstatic' |
12254 | ;; |
12255 | esac |
12256 | ;; |
12257 | vxworks*) |
12258 | ;; |
12259 | *) |
12260 | lt_prog_compiler_can_build_shared_CXX=no |
12261 | ;; |
12262 | esac |
12263 | fi |
12264 | |
dd184caf |
12265 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
12266 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
d9898ee8 |
12267 | |
12268 | # |
12269 | # Check to make sure the PIC flag actually works. |
12270 | # |
12271 | if test -n "$lt_prog_compiler_pic_CXX"; then |
12272 | |
dd184caf |
12273 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
12274 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
d9898ee8 |
12275 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
12276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12277 | else |
12278 | lt_prog_compiler_pic_works_CXX=no |
12279 | ac_outfile=conftest.$ac_objext |
12280 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12281 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
12282 | # Insert the option either (1) after the last *FLAGS variable, or |
12283 | # (2) before a word containing "conftest.", or (3) at the end. |
12284 | # Note that $ac_compile itself does not contain backslashes and begins |
12285 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12286 | # The option is referenced via a variable to avoid confusing sed. |
12287 | lt_compile=`echo "$ac_compile" | $SED \ |
12288 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12289 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12290 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
12291 | (eval echo "\"\$as_me:12291: $lt_compile\"" >&5) |
d9898ee8 |
12292 | (eval "$lt_compile" 2>conftest.err) |
12293 | ac_status=$? |
12294 | cat conftest.err >&5 |
dd184caf |
12295 | echo "$as_me:12295: \$? = $ac_status" >&5 |
d9898ee8 |
12296 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12297 | # The compiler can only warn and ignore the option if not recognized |
12298 | # So say no if there are warnings other than the usual output. |
12299 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
12300 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12301 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
12302 | lt_prog_compiler_pic_works_CXX=yes |
12303 | fi |
12304 | fi |
12305 | $rm conftest* |
12306 | |
12307 | fi |
dd184caf |
12308 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
12309 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
d9898ee8 |
12310 | |
12311 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
12312 | case $lt_prog_compiler_pic_CXX in |
12313 | "" | " "*) ;; |
12314 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
12315 | esac |
12316 | else |
12317 | lt_prog_compiler_pic_CXX= |
12318 | lt_prog_compiler_can_build_shared_CXX=no |
12319 | fi |
12320 | |
12321 | fi |
12322 | case $host_os in |
12323 | # For platforms which do not support PIC, -DPIC is meaningless: |
12324 | *djgpp*) |
12325 | lt_prog_compiler_pic_CXX= |
12326 | ;; |
12327 | *) |
12328 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
12329 | ;; |
12330 | esac |
12331 | |
12332 | # |
12333 | # Check to make sure the static flag actually works. |
12334 | # |
12335 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
dd184caf |
12336 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12337 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
12338 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
12339 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12340 | else |
12341 | lt_prog_compiler_static_works_CXX=no |
12342 | save_LDFLAGS="$LDFLAGS" |
12343 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
12344 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
12345 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
12346 | # The linker can only warn and ignore the option if not recognized |
12347 | # So say no if there are warnings |
12348 | if test -s conftest.err; then |
12349 | # Append any errors to the config.log. |
12350 | cat conftest.err 1>&5 |
12351 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
12352 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12353 | if diff conftest.exp conftest.er2 >/dev/null; then |
12354 | lt_prog_compiler_static_works_CXX=yes |
12355 | fi |
12356 | else |
12357 | lt_prog_compiler_static_works_CXX=yes |
12358 | fi |
12359 | fi |
12360 | $rm conftest* |
12361 | LDFLAGS="$save_LDFLAGS" |
12362 | |
12363 | fi |
dd184caf |
12364 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
12365 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
d9898ee8 |
12366 | |
12367 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
12368 | : |
12369 | else |
12370 | lt_prog_compiler_static_CXX= |
12371 | fi |
12372 | |
12373 | |
dd184caf |
12374 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12375 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
12376 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
12377 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12378 | else |
12379 | lt_cv_prog_compiler_c_o_CXX=no |
12380 | $rm -r conftest 2>/dev/null |
12381 | mkdir conftest |
12382 | cd conftest |
12383 | mkdir out |
12384 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12385 | |
12386 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
12387 | # Insert the option either (1) after the last *FLAGS variable, or |
12388 | # (2) before a word containing "conftest.", or (3) at the end. |
12389 | # Note that $ac_compile itself does not contain backslashes and begins |
12390 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12391 | lt_compile=`echo "$ac_compile" | $SED \ |
12392 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12393 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12394 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
12395 | (eval echo "\"\$as_me:12395: $lt_compile\"" >&5) |
d9898ee8 |
12396 | (eval "$lt_compile" 2>out/conftest.err) |
12397 | ac_status=$? |
12398 | cat out/conftest.err >&5 |
dd184caf |
12399 | echo "$as_me:12399: \$? = $ac_status" >&5 |
d9898ee8 |
12400 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12401 | then |
12402 | # The compiler can only warn and ignore the option if not recognized |
12403 | # So say no if there are warnings |
12404 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
12405 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12406 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
12407 | lt_cv_prog_compiler_c_o_CXX=yes |
12408 | fi |
12409 | fi |
12410 | chmod u+w . 2>&5 |
12411 | $rm conftest* |
12412 | # SGI C++ compiler will create directory out/ii_files/ for |
12413 | # template instantiation |
12414 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
12415 | $rm out/* && rmdir out |
12416 | cd .. |
12417 | rmdir conftest |
12418 | $rm conftest* |
12419 | |
12420 | fi |
dd184caf |
12421 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
12422 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
d9898ee8 |
12423 | |
12424 | |
12425 | hard_links="nottested" |
12426 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
12427 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
12428 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
12429 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
12430 | hard_links=yes |
12431 | $rm conftest* |
12432 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
12433 | touch conftest.a |
12434 | ln conftest.a conftest.b 2>&5 || hard_links=no |
12435 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
12436 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
12437 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
12438 | if test "$hard_links" = no; then |
12439 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12440 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
12441 | need_locks=warn |
12442 | fi |
12443 | else |
12444 | need_locks=no |
12445 | fi |
12446 | |
dd184caf |
12447 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12448 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
12449 | |
12450 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12451 | case $host_os in |
12452 | aix4* | aix5*) |
12453 | # If we're using GNU nm, then we don't want the "-C" option. |
12454 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
12455 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
12456 | 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' |
12457 | else |
12458 | 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' |
12459 | fi |
12460 | ;; |
12461 | pw32*) |
12462 | export_symbols_cmds_CXX="$ltdll_cmds" |
12463 | ;; |
12464 | cygwin* | mingw*) |
12465 | 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' |
12466 | ;; |
12467 | *) |
12468 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12469 | ;; |
12470 | esac |
12471 | |
dd184caf |
12472 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12473 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
d9898ee8 |
12474 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12475 | |
12476 | # |
12477 | # Do we need to explicitly link libc? |
12478 | # |
12479 | case "x$archive_cmds_need_lc_CXX" in |
12480 | x|xyes) |
12481 | # Assume -lc should be added |
12482 | archive_cmds_need_lc_CXX=yes |
12483 | |
12484 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
12485 | case $archive_cmds_CXX in |
12486 | *'~'*) |
12487 | # FIXME: we may have to deal with multi-command sequences. |
12488 | ;; |
12489 | '$CC '*) |
12490 | # Test whether the compiler implicitly links with -lc since on some |
12491 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
12492 | # to ld, don't add -lc before -lgcc. |
dd184caf |
12493 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
12494 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
12495 | $rm conftest* |
12496 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12497 | |
12498 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12499 | (eval $ac_compile) 2>&5 |
12500 | ac_status=$? |
12501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12502 | (exit $ac_status); } 2>conftest.err; then |
12503 | soname=conftest |
12504 | lib=conftest |
12505 | libobjs=conftest.$ac_objext |
12506 | deplibs= |
12507 | wl=$lt_prog_compiler_wl_CXX |
12508 | pic_flag=$lt_prog_compiler_pic_CXX |
12509 | compiler_flags=-v |
12510 | linker_flags=-v |
12511 | verstring= |
12512 | output_objdir=. |
12513 | libname=conftest |
12514 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
12515 | allow_undefined_flag_CXX= |
12516 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
12517 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
12518 | ac_status=$? |
12519 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12520 | (exit $ac_status); } |
12521 | then |
12522 | archive_cmds_need_lc_CXX=no |
12523 | else |
12524 | archive_cmds_need_lc_CXX=yes |
12525 | fi |
12526 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
12527 | else |
12528 | cat conftest.err 1>&5 |
12529 | fi |
12530 | $rm conftest* |
dd184caf |
12531 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
12532 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
d9898ee8 |
12533 | ;; |
12534 | esac |
12535 | fi |
12536 | ;; |
12537 | esac |
12538 | |
dd184caf |
12539 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
12540 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
12541 | library_names_spec= |
12542 | libname_spec='lib$name' |
12543 | soname_spec= |
12544 | shrext_cmds=".so" |
12545 | postinstall_cmds= |
12546 | postuninstall_cmds= |
12547 | finish_cmds= |
12548 | finish_eval= |
12549 | shlibpath_var= |
12550 | shlibpath_overrides_runpath=unknown |
12551 | version_type=none |
12552 | dynamic_linker="$host_os ld.so" |
12553 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
12554 | if test "$GCC" = yes; then |
12555 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12556 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
12557 | # if the path contains ";" then we assume it to be the separator |
12558 | # otherwise default to the standard path separator (i.e. ":") - it is |
12559 | # assumed that no part of a normal pathname contains ";" but that should |
12560 | # okay in the real world where ";" in dirpaths is itself problematic. |
12561 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12562 | else |
12563 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12564 | fi |
12565 | else |
12566 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
12567 | fi |
12568 | need_lib_prefix=unknown |
12569 | hardcode_into_libs=no |
12570 | |
12571 | # when you set need_version to no, make sure it does not cause -set_version |
12572 | # flags to be left without arguments |
12573 | need_version=unknown |
12574 | |
12575 | case $host_os in |
12576 | aix3*) |
12577 | version_type=linux |
12578 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
12579 | shlibpath_var=LIBPATH |
12580 | |
12581 | # AIX 3 has no versioning support, so we append a major version to the name. |
12582 | soname_spec='${libname}${release}${shared_ext}$major' |
12583 | ;; |
12584 | |
12585 | aix4* | aix5*) |
12586 | version_type=linux |
12587 | need_lib_prefix=no |
12588 | need_version=no |
12589 | hardcode_into_libs=yes |
12590 | if test "$host_cpu" = ia64; then |
12591 | # AIX 5 supports IA64 |
12592 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
12593 | shlibpath_var=LD_LIBRARY_PATH |
12594 | else |
12595 | # With GCC up to 2.95.x, collect2 would create an import file |
12596 | # for dependence libraries. The import file would start with |
12597 | # the line `#! .'. This would cause the generated library to |
12598 | # depend on `.', always an invalid library. This was fixed in |
12599 | # development snapshots of GCC prior to 3.0. |
12600 | case $host_os in |
12601 | aix4 | aix4.[01] | aix4.[01].*) |
12602 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
12603 | echo ' yes ' |
12604 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
12605 | : |
12606 | else |
12607 | can_build_shared=no |
12608 | fi |
12609 | ;; |
12610 | esac |
12611 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
12612 | # soname into executable. Probably we can add versioning support to |
12613 | # collect2, so additional links can be useful in future. |
12614 | if test "$aix_use_runtimelinking" = yes; then |
12615 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
12616 | # instead of lib<name>.a to let people know that these are not |
12617 | # typical AIX shared libraries. |
12618 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12619 | else |
12620 | # We preserve .a as extension for shared libraries through AIX4.2 |
12621 | # and later when we are not doing run time linking. |
12622 | library_names_spec='${libname}${release}.a $libname.a' |
12623 | soname_spec='${libname}${release}${shared_ext}$major' |
12624 | fi |
12625 | shlibpath_var=LIBPATH |
12626 | fi |
12627 | ;; |
12628 | |
12629 | amigaos*) |
12630 | library_names_spec='$libname.ixlibrary $libname.a' |
12631 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
12632 | 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' |
12633 | ;; |
12634 | |
12635 | beos*) |
12636 | library_names_spec='${libname}${shared_ext}' |
12637 | dynamic_linker="$host_os ld.so" |
12638 | shlibpath_var=LIBRARY_PATH |
12639 | ;; |
12640 | |
12641 | bsdi[45]*) |
12642 | version_type=linux |
12643 | need_version=no |
12644 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12645 | soname_spec='${libname}${release}${shared_ext}$major' |
12646 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
12647 | shlibpath_var=LD_LIBRARY_PATH |
12648 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
12649 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
12650 | # the default ld.so.conf also contains /usr/contrib/lib and |
12651 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
12652 | # libtool to hard-code these into programs |
12653 | ;; |
12654 | |
12655 | cygwin* | mingw* | pw32*) |
12656 | version_type=windows |
12657 | shrext_cmds=".dll" |
12658 | need_version=no |
12659 | need_lib_prefix=no |
12660 | |
12661 | case $GCC,$host_os in |
12662 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12663 | library_names_spec='$libname.dll.a' |
12664 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12665 | postinstall_cmds='base_file=`basename \${file}`~ |
12666 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12667 | dldir=$destdir/`dirname \$dlpath`~ |
12668 | test -d \$dldir || mkdir -p \$dldir~ |
12669 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12670 | chmod a+x \$dldir/$dlname' |
12671 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12672 | dlpath=$dir/\$dldll~ |
12673 | $rm \$dlpath' |
12674 | shlibpath_overrides_runpath=yes |
12675 | |
12676 | case $host_os in |
12677 | cygwin*) |
12678 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
12679 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12680 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
12681 | ;; |
12682 | mingw*) |
12683 | # MinGW DLLs use traditional 'lib' prefix |
12684 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12685 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12686 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
12687 | # It is most probably a Windows format PATH printed by |
12688 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
12689 | # path with ; separators, and with drive letters. We can handle the |
12690 | # drive letters (cygwin fileutils understands them), so leave them, |
12691 | # especially as we might pass files found there to a mingw objdump, |
12692 | # which wouldn't understand a cygwinified path. Ahh. |
12693 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12694 | else |
12695 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12696 | fi |
12697 | ;; |
12698 | pw32*) |
12699 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12700 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12701 | ;; |
12702 | esac |
12703 | ;; |
12704 | |
12705 | *) |
12706 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12707 | ;; |
12708 | esac |
12709 | dynamic_linker='Win32 ld.exe' |
12710 | # FIXME: first we should search . and the directory the executable is in |
12711 | shlibpath_var=PATH |
12712 | ;; |
12713 | |
12714 | darwin* | rhapsody*) |
12715 | dynamic_linker="$host_os dyld" |
12716 | version_type=darwin |
12717 | need_lib_prefix=no |
12718 | need_version=no |
12719 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12720 | soname_spec='${libname}${release}${major}$shared_ext' |
12721 | shlibpath_overrides_runpath=yes |
12722 | shlibpath_var=DYLD_LIBRARY_PATH |
12723 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
12724 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
12725 | if test "$GCC" = yes; then |
12726 | 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"` |
12727 | else |
12728 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
12729 | fi |
12730 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
12731 | ;; |
12732 | |
12733 | dgux*) |
12734 | version_type=linux |
12735 | need_lib_prefix=no |
12736 | need_version=no |
12737 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
12738 | soname_spec='${libname}${release}${shared_ext}$major' |
12739 | shlibpath_var=LD_LIBRARY_PATH |
12740 | ;; |
12741 | |
12742 | freebsd1*) |
12743 | dynamic_linker=no |
12744 | ;; |
12745 | |
12746 | kfreebsd*-gnu) |
12747 | version_type=linux |
12748 | need_lib_prefix=no |
12749 | need_version=no |
12750 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12751 | soname_spec='${libname}${release}${shared_ext}$major' |
12752 | shlibpath_var=LD_LIBRARY_PATH |
12753 | shlibpath_overrides_runpath=no |
12754 | hardcode_into_libs=yes |
12755 | dynamic_linker='GNU ld.so' |
12756 | ;; |
12757 | |
12758 | freebsd* | dragonfly*) |
12759 | # DragonFly does not have aout. When/if they implement a new |
12760 | # versioning mechanism, adjust this. |
12761 | if test -x /usr/bin/objformat; then |
12762 | objformat=`/usr/bin/objformat` |
12763 | else |
12764 | case $host_os in |
12765 | freebsd[123]*) objformat=aout ;; |
12766 | *) objformat=elf ;; |
12767 | esac |
12768 | fi |
12769 | version_type=freebsd-$objformat |
12770 | case $version_type in |
12771 | freebsd-elf*) |
12772 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
12773 | need_version=no |
12774 | need_lib_prefix=no |
12775 | ;; |
12776 | freebsd-*) |
12777 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
12778 | need_version=yes |
12779 | ;; |
12780 | esac |
12781 | shlibpath_var=LD_LIBRARY_PATH |
12782 | case $host_os in |
12783 | freebsd2*) |
12784 | shlibpath_overrides_runpath=yes |
12785 | ;; |
12786 | freebsd3.[01]* | freebsdelf3.[01]*) |
12787 | shlibpath_overrides_runpath=yes |
12788 | hardcode_into_libs=yes |
12789 | ;; |
12790 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
12791 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
12792 | shlibpath_overrides_runpath=no |
12793 | hardcode_into_libs=yes |
12794 | ;; |
12795 | freebsd*) # from 4.6 on |
12796 | shlibpath_overrides_runpath=yes |
12797 | hardcode_into_libs=yes |
12798 | ;; |
12799 | esac |
12800 | ;; |
12801 | |
12802 | gnu*) |
12803 | version_type=linux |
12804 | need_lib_prefix=no |
12805 | need_version=no |
12806 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
12807 | soname_spec='${libname}${release}${shared_ext}$major' |
12808 | shlibpath_var=LD_LIBRARY_PATH |
12809 | hardcode_into_libs=yes |
12810 | ;; |
12811 | |
12812 | hpux9* | hpux10* | hpux11*) |
12813 | # Give a soname corresponding to the major version so that dld.sl refuses to |
12814 | # link against other versions. |
12815 | version_type=sunos |
12816 | need_lib_prefix=no |
12817 | need_version=no |
12818 | case $host_cpu in |
12819 | ia64*) |
12820 | shrext_cmds='.so' |
12821 | hardcode_into_libs=yes |
12822 | dynamic_linker="$host_os dld.so" |
12823 | shlibpath_var=LD_LIBRARY_PATH |
12824 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12825 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12826 | soname_spec='${libname}${release}${shared_ext}$major' |
12827 | if test "X$HPUX_IA64_MODE" = X32; then |
12828 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
12829 | else |
12830 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
12831 | fi |
12832 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12833 | ;; |
12834 | hppa*64*) |
12835 | shrext_cmds='.sl' |
12836 | hardcode_into_libs=yes |
12837 | dynamic_linker="$host_os dld.sl" |
12838 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
12839 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
12840 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12841 | soname_spec='${libname}${release}${shared_ext}$major' |
12842 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
12843 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
12844 | ;; |
12845 | *) |
12846 | shrext_cmds='.sl' |
12847 | dynamic_linker="$host_os dld.sl" |
12848 | shlibpath_var=SHLIB_PATH |
12849 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
12850 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12851 | soname_spec='${libname}${release}${shared_ext}$major' |
12852 | ;; |
12853 | esac |
12854 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
12855 | postinstall_cmds='chmod 555 $lib' |
12856 | ;; |
12857 | |
12858 | interix3*) |
12859 | version_type=linux |
12860 | need_lib_prefix=no |
12861 | need_version=no |
12862 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12863 | soname_spec='${libname}${release}${shared_ext}$major' |
12864 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
12865 | shlibpath_var=LD_LIBRARY_PATH |
12866 | shlibpath_overrides_runpath=no |
12867 | hardcode_into_libs=yes |
12868 | ;; |
12869 | |
12870 | irix5* | irix6* | nonstopux*) |
12871 | case $host_os in |
12872 | nonstopux*) version_type=nonstopux ;; |
12873 | *) |
12874 | if test "$lt_cv_prog_gnu_ld" = yes; then |
12875 | version_type=linux |
12876 | else |
12877 | version_type=irix |
12878 | fi ;; |
12879 | esac |
12880 | need_lib_prefix=no |
12881 | need_version=no |
12882 | soname_spec='${libname}${release}${shared_ext}$major' |
12883 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
12884 | case $host_os in |
12885 | irix5* | nonstopux*) |
12886 | libsuff= shlibsuff= |
12887 | ;; |
12888 | *) |
12889 | case $LD in # libtool.m4 will add one of these switches to LD |
12890 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
12891 | libsuff= shlibsuff= libmagic=32-bit;; |
12892 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
12893 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
12894 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
12895 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
12896 | *) libsuff= shlibsuff= libmagic=never-match;; |
12897 | esac |
12898 | ;; |
12899 | esac |
12900 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
12901 | shlibpath_overrides_runpath=no |
12902 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
12903 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
12904 | hardcode_into_libs=yes |
12905 | ;; |
12906 | |
12907 | # No shared lib support for Linux oldld, aout, or coff. |
12908 | linux*oldld* | linux*aout* | linux*coff*) |
12909 | dynamic_linker=no |
12910 | ;; |
12911 | |
12912 | # This must be Linux ELF. |
12913 | linux*) |
12914 | version_type=linux |
12915 | need_lib_prefix=no |
12916 | need_version=no |
12917 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12918 | soname_spec='${libname}${release}${shared_ext}$major' |
12919 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
12920 | shlibpath_var=LD_LIBRARY_PATH |
12921 | shlibpath_overrides_runpath=no |
12922 | # This implies no fast_install, which is unacceptable. |
12923 | # Some rework will be needed to allow for fast_install |
12924 | # before this can be enabled. |
12925 | hardcode_into_libs=yes |
12926 | |
12927 | # find out which ABI we are using |
12928 | libsuff= |
12929 | case "$host_cpu" in |
12930 | x86_64*|s390x*|powerpc64*) |
dd184caf |
12931 | echo '#line 12931 "configure"' > conftest.$ac_ext |
d9898ee8 |
12932 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12933 | (eval $ac_compile) 2>&5 |
12934 | ac_status=$? |
12935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12936 | (exit $ac_status); }; then |
12937 | case `/usr/bin/file conftest.$ac_objext` in |
12938 | *64-bit*) |
12939 | libsuff=64 |
12940 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
12941 | ;; |
12942 | esac |
12943 | fi |
12944 | rm -rf conftest* |
12945 | ;; |
12946 | esac |
12947 | |
12948 | # Append ld.so.conf contents to the search path |
12949 | if test -f /etc/ld.so.conf; then |
dd184caf |
12950 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
12951 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
12952 | fi |
12953 | |
12954 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
12955 | # powerpc, because MkLinux only supported shared libraries with the |
12956 | # GNU dynamic linker. Since this was broken with cross compilers, |
12957 | # most powerpc-linux boxes support dynamic linking these days and |
12958 | # people can always --disable-shared, the test was removed, and we |
12959 | # assume the GNU/Linux dynamic linker is in use. |
12960 | dynamic_linker='GNU/Linux ld.so' |
12961 | ;; |
12962 | |
12963 | knetbsd*-gnu) |
12964 | version_type=linux |
12965 | need_lib_prefix=no |
12966 | need_version=no |
12967 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12968 | soname_spec='${libname}${release}${shared_ext}$major' |
12969 | shlibpath_var=LD_LIBRARY_PATH |
12970 | shlibpath_overrides_runpath=no |
12971 | hardcode_into_libs=yes |
12972 | dynamic_linker='GNU ld.so' |
12973 | ;; |
12974 | |
12975 | netbsd*) |
12976 | version_type=sunos |
12977 | need_lib_prefix=no |
12978 | need_version=no |
12979 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
12980 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
12981 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
12982 | dynamic_linker='NetBSD (a.out) ld.so' |
12983 | else |
12984 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
12985 | soname_spec='${libname}${release}${shared_ext}$major' |
12986 | dynamic_linker='NetBSD ld.elf_so' |
12987 | fi |
12988 | shlibpath_var=LD_LIBRARY_PATH |
12989 | shlibpath_overrides_runpath=yes |
12990 | hardcode_into_libs=yes |
12991 | ;; |
12992 | |
12993 | newsos6) |
12994 | version_type=linux |
12995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12996 | shlibpath_var=LD_LIBRARY_PATH |
12997 | shlibpath_overrides_runpath=yes |
12998 | ;; |
12999 | |
13000 | nto-qnx*) |
13001 | version_type=linux |
13002 | need_lib_prefix=no |
13003 | need_version=no |
13004 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13005 | soname_spec='${libname}${release}${shared_ext}$major' |
13006 | shlibpath_var=LD_LIBRARY_PATH |
13007 | shlibpath_overrides_runpath=yes |
13008 | ;; |
13009 | |
13010 | openbsd*) |
13011 | version_type=sunos |
13012 | sys_lib_dlsearch_path_spec="/usr/lib" |
13013 | need_lib_prefix=no |
13014 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
13015 | case $host_os in |
13016 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
13017 | *) need_version=no ;; |
13018 | esac |
13019 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13020 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13021 | shlibpath_var=LD_LIBRARY_PATH |
13022 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
13023 | case $host_os in |
13024 | openbsd2.[89] | openbsd2.[89].*) |
13025 | shlibpath_overrides_runpath=no |
13026 | ;; |
13027 | *) |
13028 | shlibpath_overrides_runpath=yes |
13029 | ;; |
13030 | esac |
13031 | else |
13032 | shlibpath_overrides_runpath=yes |
13033 | fi |
13034 | ;; |
13035 | |
13036 | os2*) |
13037 | libname_spec='$name' |
13038 | shrext_cmds=".dll" |
13039 | need_lib_prefix=no |
13040 | library_names_spec='$libname${shared_ext} $libname.a' |
13041 | dynamic_linker='OS/2 ld.exe' |
13042 | shlibpath_var=LIBPATH |
13043 | ;; |
13044 | |
13045 | osf3* | osf4* | osf5*) |
13046 | version_type=osf |
13047 | need_lib_prefix=no |
13048 | need_version=no |
13049 | soname_spec='${libname}${release}${shared_ext}$major' |
13050 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13051 | shlibpath_var=LD_LIBRARY_PATH |
13052 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
13053 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
13054 | ;; |
13055 | |
13056 | solaris*) |
13057 | version_type=linux |
13058 | need_lib_prefix=no |
13059 | need_version=no |
13060 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13061 | soname_spec='${libname}${release}${shared_ext}$major' |
13062 | shlibpath_var=LD_LIBRARY_PATH |
13063 | shlibpath_overrides_runpath=yes |
13064 | hardcode_into_libs=yes |
13065 | # ldd complains unless libraries are executable |
13066 | postinstall_cmds='chmod +x $lib' |
13067 | ;; |
13068 | |
13069 | sunos4*) |
13070 | version_type=sunos |
13071 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13072 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
13073 | shlibpath_var=LD_LIBRARY_PATH |
13074 | shlibpath_overrides_runpath=yes |
13075 | if test "$with_gnu_ld" = yes; then |
13076 | need_lib_prefix=no |
13077 | fi |
13078 | need_version=yes |
13079 | ;; |
13080 | |
13081 | sysv4 | sysv4.3*) |
13082 | version_type=linux |
13083 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13084 | soname_spec='${libname}${release}${shared_ext}$major' |
13085 | shlibpath_var=LD_LIBRARY_PATH |
13086 | case $host_vendor in |
13087 | sni) |
13088 | shlibpath_overrides_runpath=no |
13089 | need_lib_prefix=no |
13090 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
13091 | runpath_var=LD_RUN_PATH |
13092 | ;; |
13093 | siemens) |
13094 | need_lib_prefix=no |
13095 | ;; |
13096 | motorola) |
13097 | need_lib_prefix=no |
13098 | need_version=no |
13099 | shlibpath_overrides_runpath=no |
13100 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
13101 | ;; |
13102 | esac |
13103 | ;; |
13104 | |
13105 | sysv4*MP*) |
13106 | if test -d /usr/nec ;then |
13107 | version_type=linux |
13108 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
13109 | soname_spec='$libname${shared_ext}.$major' |
13110 | shlibpath_var=LD_LIBRARY_PATH |
13111 | fi |
13112 | ;; |
13113 | |
13114 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13115 | version_type=freebsd-elf |
13116 | need_lib_prefix=no |
13117 | need_version=no |
13118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
13119 | soname_spec='${libname}${release}${shared_ext}$major' |
13120 | shlibpath_var=LD_LIBRARY_PATH |
13121 | hardcode_into_libs=yes |
13122 | if test "$with_gnu_ld" = yes; then |
13123 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
13124 | shlibpath_overrides_runpath=no |
13125 | else |
13126 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
13127 | shlibpath_overrides_runpath=yes |
13128 | case $host_os in |
13129 | sco3.2v5*) |
13130 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
13131 | ;; |
13132 | esac |
13133 | fi |
13134 | sys_lib_dlsearch_path_spec='/usr/lib' |
13135 | ;; |
13136 | |
13137 | uts4*) |
13138 | version_type=linux |
13139 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13140 | soname_spec='${libname}${release}${shared_ext}$major' |
13141 | shlibpath_var=LD_LIBRARY_PATH |
13142 | ;; |
13143 | |
13144 | *) |
13145 | dynamic_linker=no |
13146 | ;; |
13147 | esac |
dd184caf |
13148 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
13149 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
13150 | test "$dynamic_linker" = no && can_build_shared=no |
13151 | |
13152 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
13153 | if test "$GCC" = yes; then |
13154 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
13155 | fi |
13156 | |
dd184caf |
13157 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
13158 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
13159 | hardcode_action_CXX= |
13160 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
13161 | test -n "$runpath_var_CXX" || \ |
13162 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
13163 | |
13164 | # We can hardcode non-existant directories. |
13165 | if test "$hardcode_direct_CXX" != no && |
13166 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
13167 | # have to relink, otherwise we might link with an installed library |
13168 | # when we should be linking with a yet-to-be-installed one |
13169 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
13170 | test "$hardcode_minus_L_CXX" != no; then |
13171 | # Linking always hardcodes the temporary library directory. |
13172 | hardcode_action_CXX=relink |
13173 | else |
13174 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
13175 | hardcode_action_CXX=immediate |
13176 | fi |
13177 | else |
13178 | # We cannot hardcode anything, or else we can only hardcode existing |
13179 | # directories. |
13180 | hardcode_action_CXX=unsupported |
13181 | fi |
dd184caf |
13182 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
13183 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
d9898ee8 |
13184 | |
13185 | if test "$hardcode_action_CXX" = relink; then |
13186 | # Fast installation is not supported |
13187 | enable_fast_install=no |
13188 | elif test "$shlibpath_overrides_runpath" = yes || |
13189 | test "$enable_shared" = no; then |
13190 | # Fast installation is not necessary |
13191 | enable_fast_install=needless |
13192 | fi |
13193 | |
13194 | |
13195 | # The else clause should only fire when bootstrapping the |
13196 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
13197 | # with your package, and you will get complaints that there are |
13198 | # no rules to generate ltmain.sh. |
13199 | if test -f "$ltmain"; then |
13200 | # See if we are running on zsh, and set the options which allow our commands through |
13201 | # without removal of \ escapes. |
13202 | if test -n "${ZSH_VERSION+set}" ; then |
13203 | setopt NO_GLOB_SUBST |
13204 | fi |
13205 | # Now quote all the things that may contain metacharacters while being |
13206 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
13207 | # variables and quote the copies for generation of the libtool script. |
13208 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
13209 | SED SHELL STRIP \ |
13210 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
13211 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
13212 | deplibs_check_method reload_flag reload_cmds need_locks \ |
13213 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
13214 | lt_cv_sys_global_symbol_to_c_name_address \ |
13215 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
13216 | old_postinstall_cmds old_postuninstall_cmds \ |
13217 | compiler_CXX \ |
13218 | CC_CXX \ |
13219 | LD_CXX \ |
13220 | lt_prog_compiler_wl_CXX \ |
13221 | lt_prog_compiler_pic_CXX \ |
13222 | lt_prog_compiler_static_CXX \ |
13223 | lt_prog_compiler_no_builtin_flag_CXX \ |
13224 | export_dynamic_flag_spec_CXX \ |
13225 | thread_safe_flag_spec_CXX \ |
13226 | whole_archive_flag_spec_CXX \ |
13227 | enable_shared_with_static_runtimes_CXX \ |
13228 | old_archive_cmds_CXX \ |
13229 | old_archive_from_new_cmds_CXX \ |
13230 | predep_objects_CXX \ |
13231 | postdep_objects_CXX \ |
13232 | predeps_CXX \ |
13233 | postdeps_CXX \ |
13234 | compiler_lib_search_path_CXX \ |
13235 | archive_cmds_CXX \ |
13236 | archive_expsym_cmds_CXX \ |
13237 | postinstall_cmds_CXX \ |
13238 | postuninstall_cmds_CXX \ |
13239 | old_archive_from_expsyms_cmds_CXX \ |
13240 | allow_undefined_flag_CXX \ |
13241 | no_undefined_flag_CXX \ |
13242 | export_symbols_cmds_CXX \ |
13243 | hardcode_libdir_flag_spec_CXX \ |
13244 | hardcode_libdir_flag_spec_ld_CXX \ |
13245 | hardcode_libdir_separator_CXX \ |
13246 | hardcode_automatic_CXX \ |
13247 | module_cmds_CXX \ |
13248 | module_expsym_cmds_CXX \ |
13249 | lt_cv_prog_compiler_c_o_CXX \ |
13250 | exclude_expsyms_CXX \ |
13251 | include_expsyms_CXX; do |
13252 | |
13253 | case $var in |
13254 | old_archive_cmds_CXX | \ |
13255 | old_archive_from_new_cmds_CXX | \ |
13256 | archive_cmds_CXX | \ |
13257 | archive_expsym_cmds_CXX | \ |
13258 | module_cmds_CXX | \ |
13259 | module_expsym_cmds_CXX | \ |
13260 | old_archive_from_expsyms_cmds_CXX | \ |
13261 | export_symbols_cmds_CXX | \ |
13262 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
13263 | postinstall_cmds | postuninstall_cmds | \ |
13264 | old_postinstall_cmds | old_postuninstall_cmds | \ |
13265 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
13266 | # Double-quote double-evaled strings. |
13267 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
13268 | ;; |
13269 | *) |
13270 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
13271 | ;; |
13272 | esac |
13273 | done |
13274 | |
13275 | case $lt_echo in |
13276 | *'\$0 --fallback-echo"') |
13277 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
13278 | ;; |
13279 | esac |
13280 | |
13281 | cfgfile="$ofile" |
13282 | |
13283 | cat <<__EOF__ >> "$cfgfile" |
13284 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
13285 | |
13286 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13287 | |
13288 | # Shell to use when invoking shell scripts. |
13289 | SHELL=$lt_SHELL |
13290 | |
13291 | # Whether or not to build shared libraries. |
13292 | build_libtool_libs=$enable_shared |
13293 | |
13294 | # Whether or not to build static libraries. |
13295 | build_old_libs=$enable_static |
13296 | |
13297 | # Whether or not to add -lc for building shared libraries. |
13298 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
13299 | |
13300 | # Whether or not to disallow shared libs when runtime libs are static |
13301 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
13302 | |
13303 | # Whether or not to optimize for fast installation. |
13304 | fast_install=$enable_fast_install |
13305 | |
13306 | # The host system. |
13307 | host_alias=$host_alias |
13308 | host=$host |
13309 | host_os=$host_os |
13310 | |
13311 | # The build system. |
13312 | build_alias=$build_alias |
13313 | build=$build |
13314 | build_os=$build_os |
13315 | |
13316 | # An echo program that does not interpret backslashes. |
13317 | echo=$lt_echo |
13318 | |
13319 | # The archiver. |
13320 | AR=$lt_AR |
13321 | AR_FLAGS=$lt_AR_FLAGS |
13322 | |
13323 | # A C compiler. |
13324 | LTCC=$lt_LTCC |
13325 | |
13326 | # LTCC compiler flags. |
13327 | LTCFLAGS=$lt_LTCFLAGS |
13328 | |
13329 | # A language-specific compiler. |
13330 | CC=$lt_compiler_CXX |
13331 | |
13332 | # Is the compiler the GNU C compiler? |
13333 | with_gcc=$GCC_CXX |
13334 | |
d9898ee8 |
13335 | # An ERE matcher. |
13336 | EGREP=$lt_EGREP |
13337 | |
13338 | # The linker used to build libraries. |
13339 | LD=$lt_LD_CXX |
13340 | |
13341 | # Whether we need hard or soft links. |
13342 | LN_S=$lt_LN_S |
13343 | |
13344 | # A BSD-compatible nm program. |
13345 | NM=$lt_NM |
13346 | |
13347 | # A symbol stripping program |
13348 | STRIP=$lt_STRIP |
13349 | |
13350 | # Used to examine libraries when file_magic_cmd begins "file" |
13351 | MAGIC_CMD=$MAGIC_CMD |
13352 | |
13353 | # Used on cygwin: DLL creation program. |
13354 | DLLTOOL="$DLLTOOL" |
13355 | |
13356 | # Used on cygwin: object dumper. |
13357 | OBJDUMP="$OBJDUMP" |
13358 | |
13359 | # Used on cygwin: assembler. |
13360 | AS="$AS" |
13361 | |
13362 | # The name of the directory that contains temporary libtool files. |
13363 | objdir=$objdir |
13364 | |
13365 | # How to create reloadable object files. |
13366 | reload_flag=$lt_reload_flag |
13367 | reload_cmds=$lt_reload_cmds |
13368 | |
13369 | # How to pass a linker flag through the compiler. |
13370 | wl=$lt_lt_prog_compiler_wl_CXX |
13371 | |
13372 | # Object file suffix (normally "o"). |
13373 | objext="$ac_objext" |
13374 | |
13375 | # Old archive suffix (normally "a"). |
13376 | libext="$libext" |
13377 | |
13378 | # Shared library suffix (normally ".so"). |
13379 | shrext_cmds='$shrext_cmds' |
13380 | |
13381 | # Executable file suffix (normally ""). |
13382 | exeext="$exeext" |
13383 | |
13384 | # Additional compiler flags for building library objects. |
13385 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
13386 | pic_mode=$pic_mode |
13387 | |
13388 | # What is the maximum length of a command? |
13389 | max_cmd_len=$lt_cv_sys_max_cmd_len |
13390 | |
13391 | # Does compiler simultaneously support -c and -o options? |
13392 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
13393 | |
13394 | # Must we lock files when doing compilation? |
13395 | need_locks=$lt_need_locks |
13396 | |
13397 | # Do we need the lib prefix for modules? |
13398 | need_lib_prefix=$need_lib_prefix |
13399 | |
13400 | # Do we need a version for libraries? |
13401 | need_version=$need_version |
13402 | |
13403 | # Whether dlopen is supported. |
13404 | dlopen_support=$enable_dlopen |
13405 | |
13406 | # Whether dlopen of programs is supported. |
13407 | dlopen_self=$enable_dlopen_self |
13408 | |
13409 | # Whether dlopen of statically linked programs is supported. |
13410 | dlopen_self_static=$enable_dlopen_self_static |
13411 | |
13412 | # Compiler flag to prevent dynamic linking. |
13413 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
13414 | |
13415 | # Compiler flag to turn off builtin functions. |
13416 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
13417 | |
13418 | # Compiler flag to allow reflexive dlopens. |
13419 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
13420 | |
13421 | # Compiler flag to generate shared objects directly from archives. |
13422 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
13423 | |
13424 | # Compiler flag to generate thread-safe objects. |
13425 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
13426 | |
13427 | # Library versioning type. |
13428 | version_type=$version_type |
13429 | |
13430 | # Format of library name prefix. |
13431 | libname_spec=$lt_libname_spec |
13432 | |
13433 | # List of archive names. First name is the real one, the rest are links. |
13434 | # The last name is the one that the linker finds with -lNAME. |
13435 | library_names_spec=$lt_library_names_spec |
13436 | |
13437 | # The coded name of the library, if different from the real name. |
13438 | soname_spec=$lt_soname_spec |
13439 | |
13440 | # Commands used to build and install an old-style archive. |
13441 | RANLIB=$lt_RANLIB |
13442 | old_archive_cmds=$lt_old_archive_cmds_CXX |
13443 | old_postinstall_cmds=$lt_old_postinstall_cmds |
13444 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
13445 | |
13446 | # Create an old-style archive from a shared archive. |
13447 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
13448 | |
13449 | # Create a temporary old-style archive to link instead of a shared archive. |
13450 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
13451 | |
13452 | # Commands used to build and install a shared archive. |
13453 | archive_cmds=$lt_archive_cmds_CXX |
13454 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
13455 | postinstall_cmds=$lt_postinstall_cmds |
13456 | postuninstall_cmds=$lt_postuninstall_cmds |
13457 | |
13458 | # Commands used to build a loadable module (assumed same as above if empty) |
13459 | module_cmds=$lt_module_cmds_CXX |
13460 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
13461 | |
13462 | # Commands to strip libraries. |
13463 | old_striplib=$lt_old_striplib |
13464 | striplib=$lt_striplib |
13465 | |
13466 | # Dependencies to place before the objects being linked to create a |
13467 | # shared library. |
dd184caf |
13468 | predep_objects=$lt_predep_objects_CXX |
d9898ee8 |
13469 | |
13470 | # Dependencies to place after the objects being linked to create a |
13471 | # shared library. |
dd184caf |
13472 | postdep_objects=$lt_postdep_objects_CXX |
d9898ee8 |
13473 | |
13474 | # Dependencies to place before the objects being linked to create a |
13475 | # shared library. |
13476 | predeps=$lt_predeps_CXX |
13477 | |
13478 | # Dependencies to place after the objects being linked to create a |
13479 | # shared library. |
13480 | postdeps=$lt_postdeps_CXX |
13481 | |
13482 | # The library search path used internally by the compiler when linking |
13483 | # a shared library. |
dd184caf |
13484 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
d9898ee8 |
13485 | |
13486 | # Method to check whether dependent libraries are shared objects. |
13487 | deplibs_check_method=$lt_deplibs_check_method |
13488 | |
13489 | # Command to use when deplibs_check_method == file_magic. |
13490 | file_magic_cmd=$lt_file_magic_cmd |
13491 | |
13492 | # Flag that allows shared libraries with undefined symbols to be built. |
13493 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
13494 | |
13495 | # Flag that forces no undefined symbols. |
13496 | no_undefined_flag=$lt_no_undefined_flag_CXX |
13497 | |
13498 | # Commands used to finish a libtool library installation in a directory. |
13499 | finish_cmds=$lt_finish_cmds |
13500 | |
13501 | # Same as above, but a single script fragment to be evaled but not shown. |
13502 | finish_eval=$lt_finish_eval |
13503 | |
13504 | # Take the output of nm and produce a listing of raw symbols and C names. |
13505 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
13506 | |
13507 | # Transform the output of nm in a proper C declaration |
13508 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
13509 | |
13510 | # Transform the output of nm in a C name address pair |
13511 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
13512 | |
13513 | # This is the shared library runtime path variable. |
13514 | runpath_var=$runpath_var |
13515 | |
13516 | # This is the shared library path variable. |
13517 | shlibpath_var=$shlibpath_var |
13518 | |
13519 | # Is shlibpath searched before the hard-coded library search path? |
13520 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
13521 | |
13522 | # How to hardcode a shared library path into an executable. |
13523 | hardcode_action=$hardcode_action_CXX |
13524 | |
13525 | # Whether we should hardcode library paths into libraries. |
13526 | hardcode_into_libs=$hardcode_into_libs |
13527 | |
13528 | # Flag to hardcode \$libdir into a binary during linking. |
13529 | # This must work even if \$libdir does not exist. |
13530 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
13531 | |
13532 | # If ld is used when linking, flag to hardcode \$libdir into |
13533 | # a binary during linking. This must work even if \$libdir does |
13534 | # not exist. |
13535 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
13536 | |
13537 | # Whether we need a single -rpath flag with a separated argument. |
13538 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
13539 | |
13540 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
13541 | # resulting binary. |
13542 | hardcode_direct=$hardcode_direct_CXX |
13543 | |
13544 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
13545 | # resulting binary. |
13546 | hardcode_minus_L=$hardcode_minus_L_CXX |
13547 | |
13548 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
13549 | # the resulting binary. |
13550 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
13551 | |
13552 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
13553 | # and all subsequent libraries and executables linked against it. |
13554 | hardcode_automatic=$hardcode_automatic_CXX |
13555 | |
13556 | # Variables whose values should be saved in libtool wrapper scripts and |
13557 | # restored at relink time. |
13558 | variables_saved_for_relink="$variables_saved_for_relink" |
13559 | |
13560 | # Whether libtool must link a program against all its dependency libraries. |
13561 | link_all_deplibs=$link_all_deplibs_CXX |
13562 | |
13563 | # Compile-time system search path for libraries |
dd184caf |
13564 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
13565 | |
13566 | # Run-time system search path for libraries |
13567 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
13568 | |
13569 | # Fix the shell variable \$srcfile for the compiler. |
13570 | fix_srcfile_path="$fix_srcfile_path_CXX" |
13571 | |
13572 | # Set to yes if exported symbols are required. |
13573 | always_export_symbols=$always_export_symbols_CXX |
13574 | |
13575 | # The commands to list exported symbols. |
13576 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
13577 | |
13578 | # The commands to extract the exported symbol list from a shared archive. |
13579 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
13580 | |
13581 | # Symbols that should not be listed in the preloaded symbols. |
13582 | exclude_expsyms=$lt_exclude_expsyms_CXX |
13583 | |
13584 | # Symbols that must always be exported. |
13585 | include_expsyms=$lt_include_expsyms_CXX |
13586 | |
13587 | # ### END LIBTOOL TAG CONFIG: $tagname |
13588 | |
13589 | __EOF__ |
13590 | |
13591 | |
13592 | else |
13593 | # If there is no Makefile yet, we rely on a make rule to execute |
13594 | # `config.status --recheck' to rerun these tests and create the |
13595 | # libtool script then. |
13596 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
13597 | if test -f "$ltmain_in"; then |
13598 | test -f Makefile && make "$ltmain" |
13599 | fi |
13600 | fi |
13601 | |
13602 | |
13603 | ac_ext=c |
13604 | ac_cpp='$CPP $CPPFLAGS' |
13605 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13606 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13607 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13608 | |
13609 | CC=$lt_save_CC |
13610 | LDCXX=$LD |
13611 | LD=$lt_save_LD |
13612 | GCC=$lt_save_GCC |
13613 | with_gnu_ldcxx=$with_gnu_ld |
13614 | with_gnu_ld=$lt_save_with_gnu_ld |
13615 | lt_cv_path_LDCXX=$lt_cv_path_LD |
13616 | lt_cv_path_LD=$lt_save_path_LD |
13617 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
13618 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
13619 | |
13620 | else |
13621 | tagname="" |
13622 | fi |
13623 | ;; |
13624 | |
13625 | F77) |
13626 | if test -n "$F77" && test "X$F77" != "Xno"; then |
13627 | |
13628 | ac_ext=f |
13629 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
13630 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13631 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
13632 | |
13633 | |
13634 | archive_cmds_need_lc_F77=no |
13635 | allow_undefined_flag_F77= |
13636 | always_export_symbols_F77=no |
13637 | archive_expsym_cmds_F77= |
13638 | export_dynamic_flag_spec_F77= |
13639 | hardcode_direct_F77=no |
13640 | hardcode_libdir_flag_spec_F77= |
13641 | hardcode_libdir_flag_spec_ld_F77= |
13642 | hardcode_libdir_separator_F77= |
13643 | hardcode_minus_L_F77=no |
13644 | hardcode_automatic_F77=no |
13645 | module_cmds_F77= |
13646 | module_expsym_cmds_F77= |
13647 | link_all_deplibs_F77=unknown |
13648 | old_archive_cmds_F77=$old_archive_cmds |
13649 | no_undefined_flag_F77= |
13650 | whole_archive_flag_spec_F77= |
13651 | enable_shared_with_static_runtimes_F77=no |
13652 | |
13653 | # Source file extension for f77 test sources. |
13654 | ac_ext=f |
13655 | |
13656 | # Object file extension for compiled f77 test sources. |
13657 | objext=o |
13658 | objext_F77=$objext |
13659 | |
13660 | # Code to be used in simple compile tests |
13661 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
13662 | |
13663 | # Code to be used in simple link tests |
13664 | lt_simple_link_test_code=" program t\n end\n" |
13665 | |
13666 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13667 | |
13668 | # If no C compiler was specified, use CC. |
13669 | LTCC=${LTCC-"$CC"} |
13670 | |
13671 | # If no C compiler flags were specified, use CFLAGS. |
13672 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
13673 | |
13674 | # Allow CC to be a program name with arguments. |
13675 | compiler=$CC |
13676 | |
13677 | |
13678 | # save warnings/boilerplate of simple test code |
13679 | ac_outfile=conftest.$ac_objext |
13680 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
13681 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13682 | _lt_compiler_boilerplate=`cat conftest.err` |
13683 | $rm conftest* |
13684 | |
13685 | ac_outfile=conftest.$ac_objext |
13686 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
13687 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13688 | _lt_linker_boilerplate=`cat conftest.err` |
13689 | $rm conftest* |
13690 | |
13691 | |
13692 | # Allow CC to be a program name with arguments. |
13693 | lt_save_CC="$CC" |
13694 | CC=${F77-"f77"} |
13695 | compiler=$CC |
13696 | compiler_F77=$CC |
13697 | for cc_temp in $compiler""; do |
13698 | case $cc_temp in |
13699 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13700 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13701 | \-*) ;; |
13702 | *) break;; |
13703 | esac |
13704 | done |
13705 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13706 | |
13707 | |
dd184caf |
13708 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13709 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
13710 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13711 | echo "${ECHO_T}$can_build_shared" >&6; } |
d9898ee8 |
13712 | |
dd184caf |
13713 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13714 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
13715 | test "$can_build_shared" = "no" && enable_shared=no |
13716 | |
13717 | # On AIX, shared libraries and static libraries use the same namespace, and |
13718 | # are all built from PIC. |
13719 | case $host_os in |
13720 | aix3*) |
13721 | test "$enable_shared" = yes && enable_static=no |
13722 | if test -n "$RANLIB"; then |
13723 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13724 | postinstall_cmds='$RANLIB $lib' |
13725 | fi |
13726 | ;; |
13727 | aix4* | aix5*) |
13728 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13729 | test "$enable_shared" = yes && enable_static=no |
13730 | fi |
13731 | ;; |
13732 | esac |
dd184caf |
13733 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13734 | echo "${ECHO_T}$enable_shared" >&6; } |
d9898ee8 |
13735 | |
dd184caf |
13736 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13737 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
d9898ee8 |
13738 | # Make sure either enable_shared or enable_static is yes. |
13739 | test "$enable_shared" = yes || enable_static=yes |
dd184caf |
13740 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
13741 | echo "${ECHO_T}$enable_static" >&6; } |
d9898ee8 |
13742 | |
13743 | GCC_F77="$G77" |
13744 | LD_F77="$LD" |
13745 | |
13746 | lt_prog_compiler_wl_F77= |
13747 | lt_prog_compiler_pic_F77= |
13748 | lt_prog_compiler_static_F77= |
13749 | |
dd184caf |
13750 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
13751 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
13752 | |
13753 | if test "$GCC" = yes; then |
13754 | lt_prog_compiler_wl_F77='-Wl,' |
13755 | lt_prog_compiler_static_F77='-static' |
13756 | |
13757 | case $host_os in |
13758 | aix*) |
13759 | # All AIX code is PIC. |
13760 | if test "$host_cpu" = ia64; then |
13761 | # AIX 5 now supports IA64 processor |
13762 | lt_prog_compiler_static_F77='-Bstatic' |
13763 | fi |
13764 | ;; |
13765 | |
13766 | amigaos*) |
13767 | # FIXME: we need at least 68020 code to build shared libraries, but |
13768 | # adding the `-m68020' flag to GCC prevents building anything better, |
13769 | # like `-m68040'. |
13770 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
13771 | ;; |
13772 | |
13773 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
13774 | # PIC is the default for these OSes. |
13775 | ;; |
13776 | |
13777 | mingw* | pw32* | os2*) |
13778 | # This hack is so that the source file can tell whether it is being |
13779 | # built for inclusion in a dll (and should export symbols for example). |
13780 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13781 | ;; |
13782 | |
13783 | darwin* | rhapsody*) |
13784 | # PIC is the default on this platform |
13785 | # Common symbols not allowed in MH_DYLIB files |
13786 | lt_prog_compiler_pic_F77='-fno-common' |
13787 | ;; |
13788 | |
13789 | interix3*) |
13790 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
13791 | # Instead, we relocate shared libraries at runtime. |
13792 | ;; |
13793 | |
13794 | msdosdjgpp*) |
13795 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
13796 | # on systems that don't support them. |
13797 | lt_prog_compiler_can_build_shared_F77=no |
13798 | enable_shared=no |
13799 | ;; |
13800 | |
13801 | sysv4*MP*) |
13802 | if test -d /usr/nec; then |
13803 | lt_prog_compiler_pic_F77=-Kconform_pic |
13804 | fi |
13805 | ;; |
13806 | |
13807 | hpux*) |
13808 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13809 | # not for PA HP-UX. |
13810 | case $host_cpu in |
13811 | hppa*64*|ia64*) |
13812 | # +Z the default |
13813 | ;; |
13814 | *) |
13815 | lt_prog_compiler_pic_F77='-fPIC' |
13816 | ;; |
13817 | esac |
13818 | ;; |
13819 | |
13820 | *) |
13821 | lt_prog_compiler_pic_F77='-fPIC' |
13822 | ;; |
13823 | esac |
13824 | else |
13825 | # PORTME Check for flag to pass linker flags through the system compiler. |
13826 | case $host_os in |
13827 | aix*) |
13828 | lt_prog_compiler_wl_F77='-Wl,' |
13829 | if test "$host_cpu" = ia64; then |
13830 | # AIX 5 now supports IA64 processor |
13831 | lt_prog_compiler_static_F77='-Bstatic' |
13832 | else |
13833 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
13834 | fi |
13835 | ;; |
13836 | darwin*) |
13837 | # PIC is the default on this platform |
13838 | # Common symbols not allowed in MH_DYLIB files |
13839 | case $cc_basename in |
13840 | xlc*) |
13841 | lt_prog_compiler_pic_F77='-qnocommon' |
13842 | lt_prog_compiler_wl_F77='-Wl,' |
13843 | ;; |
13844 | esac |
13845 | ;; |
13846 | |
13847 | mingw* | pw32* | os2*) |
13848 | # This hack is so that the source file can tell whether it is being |
13849 | # built for inclusion in a dll (and should export symbols for example). |
13850 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
13851 | ;; |
13852 | |
13853 | hpux9* | hpux10* | hpux11*) |
13854 | lt_prog_compiler_wl_F77='-Wl,' |
13855 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
13856 | # not for PA HP-UX. |
13857 | case $host_cpu in |
13858 | hppa*64*|ia64*) |
13859 | # +Z the default |
13860 | ;; |
13861 | *) |
13862 | lt_prog_compiler_pic_F77='+Z' |
13863 | ;; |
13864 | esac |
13865 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
13866 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
13867 | ;; |
13868 | |
13869 | irix5* | irix6* | nonstopux*) |
13870 | lt_prog_compiler_wl_F77='-Wl,' |
13871 | # PIC (with -KPIC) is the default. |
13872 | lt_prog_compiler_static_F77='-non_shared' |
13873 | ;; |
13874 | |
13875 | newsos6) |
13876 | lt_prog_compiler_pic_F77='-KPIC' |
13877 | lt_prog_compiler_static_F77='-Bstatic' |
13878 | ;; |
13879 | |
13880 | linux*) |
13881 | case $cc_basename in |
13882 | icc* | ecc*) |
13883 | lt_prog_compiler_wl_F77='-Wl,' |
13884 | lt_prog_compiler_pic_F77='-KPIC' |
13885 | lt_prog_compiler_static_F77='-static' |
13886 | ;; |
13887 | pgcc* | pgf77* | pgf90* | pgf95*) |
13888 | # Portland Group compilers (*not* the Pentium gcc compiler, |
13889 | # which looks to be a dead project) |
13890 | lt_prog_compiler_wl_F77='-Wl,' |
13891 | lt_prog_compiler_pic_F77='-fpic' |
13892 | lt_prog_compiler_static_F77='-Bstatic' |
13893 | ;; |
13894 | ccc*) |
13895 | lt_prog_compiler_wl_F77='-Wl,' |
13896 | # All Alpha code is PIC. |
13897 | lt_prog_compiler_static_F77='-non_shared' |
13898 | ;; |
13899 | esac |
13900 | ;; |
13901 | |
13902 | osf3* | osf4* | osf5*) |
13903 | lt_prog_compiler_wl_F77='-Wl,' |
13904 | # All OSF/1 code is PIC. |
13905 | lt_prog_compiler_static_F77='-non_shared' |
13906 | ;; |
13907 | |
13908 | solaris*) |
13909 | lt_prog_compiler_pic_F77='-KPIC' |
13910 | lt_prog_compiler_static_F77='-Bstatic' |
13911 | case $cc_basename in |
13912 | f77* | f90* | f95*) |
13913 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
13914 | *) |
13915 | lt_prog_compiler_wl_F77='-Wl,';; |
13916 | esac |
13917 | ;; |
13918 | |
13919 | sunos4*) |
13920 | lt_prog_compiler_wl_F77='-Qoption ld ' |
13921 | lt_prog_compiler_pic_F77='-PIC' |
13922 | lt_prog_compiler_static_F77='-Bstatic' |
13923 | ;; |
13924 | |
13925 | sysv4 | sysv4.2uw2* | sysv4.3*) |
13926 | lt_prog_compiler_wl_F77='-Wl,' |
13927 | lt_prog_compiler_pic_F77='-KPIC' |
13928 | lt_prog_compiler_static_F77='-Bstatic' |
13929 | ;; |
13930 | |
13931 | sysv4*MP*) |
13932 | if test -d /usr/nec ;then |
13933 | lt_prog_compiler_pic_F77='-Kconform_pic' |
13934 | lt_prog_compiler_static_F77='-Bstatic' |
13935 | fi |
13936 | ;; |
13937 | |
13938 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
13939 | lt_prog_compiler_wl_F77='-Wl,' |
13940 | lt_prog_compiler_pic_F77='-KPIC' |
13941 | lt_prog_compiler_static_F77='-Bstatic' |
13942 | ;; |
13943 | |
13944 | unicos*) |
13945 | lt_prog_compiler_wl_F77='-Wl,' |
13946 | lt_prog_compiler_can_build_shared_F77=no |
13947 | ;; |
13948 | |
13949 | uts4*) |
13950 | lt_prog_compiler_pic_F77='-pic' |
13951 | lt_prog_compiler_static_F77='-Bstatic' |
13952 | ;; |
13953 | |
13954 | *) |
13955 | lt_prog_compiler_can_build_shared_F77=no |
13956 | ;; |
13957 | esac |
13958 | fi |
13959 | |
dd184caf |
13960 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
13961 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
d9898ee8 |
13962 | |
13963 | # |
13964 | # Check to make sure the PIC flag actually works. |
13965 | # |
13966 | if test -n "$lt_prog_compiler_pic_F77"; then |
13967 | |
dd184caf |
13968 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
13969 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
d9898ee8 |
13970 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
13971 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13972 | else |
13973 | lt_prog_compiler_pic_works_F77=no |
13974 | ac_outfile=conftest.$ac_objext |
13975 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
13976 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
13977 | # Insert the option either (1) after the last *FLAGS variable, or |
13978 | # (2) before a word containing "conftest.", or (3) at the end. |
13979 | # Note that $ac_compile itself does not contain backslashes and begins |
13980 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
13981 | # The option is referenced via a variable to avoid confusing sed. |
13982 | lt_compile=`echo "$ac_compile" | $SED \ |
13983 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
13984 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
13985 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
13986 | (eval echo "\"\$as_me:13986: $lt_compile\"" >&5) |
d9898ee8 |
13987 | (eval "$lt_compile" 2>conftest.err) |
13988 | ac_status=$? |
13989 | cat conftest.err >&5 |
dd184caf |
13990 | echo "$as_me:13990: \$? = $ac_status" >&5 |
d9898ee8 |
13991 | if (exit $ac_status) && test -s "$ac_outfile"; then |
13992 | # The compiler can only warn and ignore the option if not recognized |
13993 | # So say no if there are warnings other than the usual output. |
13994 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
13995 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
13996 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
13997 | lt_prog_compiler_pic_works_F77=yes |
13998 | fi |
13999 | fi |
14000 | $rm conftest* |
14001 | |
14002 | fi |
dd184caf |
14003 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
14004 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
d9898ee8 |
14005 | |
14006 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
14007 | case $lt_prog_compiler_pic_F77 in |
14008 | "" | " "*) ;; |
14009 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
14010 | esac |
14011 | else |
14012 | lt_prog_compiler_pic_F77= |
14013 | lt_prog_compiler_can_build_shared_F77=no |
14014 | fi |
14015 | |
14016 | fi |
14017 | case $host_os in |
14018 | # For platforms which do not support PIC, -DPIC is meaningless: |
14019 | *djgpp*) |
14020 | lt_prog_compiler_pic_F77= |
14021 | ;; |
14022 | *) |
14023 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
14024 | ;; |
14025 | esac |
14026 | |
14027 | # |
14028 | # Check to make sure the static flag actually works. |
14029 | # |
14030 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
dd184caf |
14031 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
14032 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
14033 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
14034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14035 | else |
14036 | lt_prog_compiler_static_works_F77=no |
14037 | save_LDFLAGS="$LDFLAGS" |
14038 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
14039 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
14040 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
14041 | # The linker can only warn and ignore the option if not recognized |
14042 | # So say no if there are warnings |
14043 | if test -s conftest.err; then |
14044 | # Append any errors to the config.log. |
14045 | cat conftest.err 1>&5 |
14046 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
14047 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14048 | if diff conftest.exp conftest.er2 >/dev/null; then |
14049 | lt_prog_compiler_static_works_F77=yes |
14050 | fi |
14051 | else |
14052 | lt_prog_compiler_static_works_F77=yes |
14053 | fi |
14054 | fi |
14055 | $rm conftest* |
14056 | LDFLAGS="$save_LDFLAGS" |
14057 | |
14058 | fi |
dd184caf |
14059 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
14060 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
d9898ee8 |
14061 | |
14062 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
14063 | : |
14064 | else |
14065 | lt_prog_compiler_static_F77= |
14066 | fi |
14067 | |
14068 | |
dd184caf |
14069 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14070 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
14071 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
14072 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14073 | else |
14074 | lt_cv_prog_compiler_c_o_F77=no |
14075 | $rm -r conftest 2>/dev/null |
14076 | mkdir conftest |
14077 | cd conftest |
14078 | mkdir out |
14079 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14080 | |
14081 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
14082 | # Insert the option either (1) after the last *FLAGS variable, or |
14083 | # (2) before a word containing "conftest.", or (3) at the end. |
14084 | # Note that $ac_compile itself does not contain backslashes and begins |
14085 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14086 | lt_compile=`echo "$ac_compile" | $SED \ |
14087 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14088 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14089 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
14090 | (eval echo "\"\$as_me:14090: $lt_compile\"" >&5) |
d9898ee8 |
14091 | (eval "$lt_compile" 2>out/conftest.err) |
14092 | ac_status=$? |
14093 | cat out/conftest.err >&5 |
dd184caf |
14094 | echo "$as_me:14094: \$? = $ac_status" >&5 |
d9898ee8 |
14095 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14096 | then |
14097 | # The compiler can only warn and ignore the option if not recognized |
14098 | # So say no if there are warnings |
14099 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
14100 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14101 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
14102 | lt_cv_prog_compiler_c_o_F77=yes |
14103 | fi |
14104 | fi |
14105 | chmod u+w . 2>&5 |
14106 | $rm conftest* |
14107 | # SGI C++ compiler will create directory out/ii_files/ for |
14108 | # template instantiation |
14109 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
14110 | $rm out/* && rmdir out |
14111 | cd .. |
14112 | rmdir conftest |
14113 | $rm conftest* |
14114 | |
14115 | fi |
dd184caf |
14116 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
14117 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
d9898ee8 |
14118 | |
14119 | |
14120 | hard_links="nottested" |
14121 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
14122 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
14123 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
14124 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
14125 | hard_links=yes |
14126 | $rm conftest* |
14127 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14128 | touch conftest.a |
14129 | ln conftest.a conftest.b 2>&5 || hard_links=no |
14130 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
14131 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
14132 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
14133 | if test "$hard_links" = no; then |
14134 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14135 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
14136 | need_locks=warn |
14137 | fi |
14138 | else |
14139 | need_locks=no |
14140 | fi |
14141 | |
dd184caf |
14142 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14143 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
14144 | |
14145 | runpath_var= |
14146 | allow_undefined_flag_F77= |
14147 | enable_shared_with_static_runtimes_F77=no |
14148 | archive_cmds_F77= |
14149 | archive_expsym_cmds_F77= |
14150 | old_archive_From_new_cmds_F77= |
14151 | old_archive_from_expsyms_cmds_F77= |
14152 | export_dynamic_flag_spec_F77= |
14153 | whole_archive_flag_spec_F77= |
14154 | thread_safe_flag_spec_F77= |
14155 | hardcode_libdir_flag_spec_F77= |
14156 | hardcode_libdir_flag_spec_ld_F77= |
14157 | hardcode_libdir_separator_F77= |
14158 | hardcode_direct_F77=no |
14159 | hardcode_minus_L_F77=no |
14160 | hardcode_shlibpath_var_F77=unsupported |
14161 | link_all_deplibs_F77=unknown |
14162 | hardcode_automatic_F77=no |
14163 | module_cmds_F77= |
14164 | module_expsym_cmds_F77= |
14165 | always_export_symbols_F77=no |
14166 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
14167 | # include_expsyms should be a list of space-separated symbols to be *always* |
14168 | # included in the symbol list |
14169 | include_expsyms_F77= |
14170 | # exclude_expsyms can be an extended regexp of symbols to exclude |
14171 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
14172 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
14173 | # as well as any symbol that contains `d'. |
14174 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
14175 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14176 | # platforms (ab)use it in PIC code, but their linkers get confused if |
14177 | # the symbol is explicitly referenced. Since portable code cannot |
14178 | # rely on this symbol name, it's probably fine to never include it in |
14179 | # preloaded symbol tables. |
14180 | extract_expsyms_cmds= |
14181 | # Just being paranoid about ensuring that cc_basename is set. |
14182 | for cc_temp in $compiler""; do |
14183 | case $cc_temp in |
14184 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
14185 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
14186 | \-*) ;; |
14187 | *) break;; |
14188 | esac |
14189 | done |
14190 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
14191 | |
14192 | case $host_os in |
14193 | cygwin* | mingw* | pw32*) |
14194 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14195 | # When not using gcc, we currently assume that we are using |
14196 | # Microsoft Visual C++. |
14197 | if test "$GCC" != yes; then |
14198 | with_gnu_ld=no |
14199 | fi |
14200 | ;; |
14201 | interix*) |
14202 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
14203 | with_gnu_ld=yes |
14204 | ;; |
14205 | openbsd*) |
14206 | with_gnu_ld=no |
14207 | ;; |
14208 | esac |
14209 | |
14210 | ld_shlibs_F77=yes |
14211 | if test "$with_gnu_ld" = yes; then |
14212 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14213 | wlarc='${wl}' |
14214 | |
14215 | # Set some defaults for GNU ld with shared library support. These |
14216 | # are reset later if shared libraries are not supported. Putting them |
14217 | # here allows them to be overridden if necessary. |
14218 | runpath_var=LD_RUN_PATH |
14219 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
14220 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
14221 | # ancient GNU ld didn't support --whole-archive et. al. |
14222 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
14223 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
14224 | else |
14225 | whole_archive_flag_spec_F77= |
14226 | fi |
14227 | supports_anon_versioning=no |
14228 | case `$LD -v 2>/dev/null` in |
14229 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14230 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
14231 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
14232 | *\ 2.11.*) ;; # other 2.11 versions |
14233 | *) supports_anon_versioning=yes ;; |
14234 | esac |
14235 | |
14236 | # See if GNU ld supports shared libraries. |
14237 | case $host_os in |
14238 | aix3* | aix4* | aix5*) |
14239 | # On AIX/PPC, the GNU linker is very broken |
14240 | if test "$host_cpu" != ia64; then |
14241 | ld_shlibs_F77=no |
14242 | cat <<EOF 1>&2 |
14243 | |
14244 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
14245 | *** to be unable to reliably create shared libraries on AIX. |
14246 | *** Therefore, libtool is disabling shared libraries support. If you |
14247 | *** really care for shared libraries, you may want to modify your PATH |
14248 | *** so that a non-GNU linker is found, and then restart. |
14249 | |
14250 | EOF |
14251 | fi |
14252 | ;; |
14253 | |
14254 | amigaos*) |
14255 | 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)' |
14256 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14257 | hardcode_minus_L_F77=yes |
14258 | |
14259 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
14260 | # that the semantics of dynamic libraries on AmigaOS, at least up |
14261 | # to version 4, is to share data among multiple programs linked |
14262 | # with the same dynamic library. Since this doesn't match the |
14263 | # behavior of shared libraries on other platforms, we can't use |
14264 | # them. |
14265 | ld_shlibs_F77=no |
14266 | ;; |
14267 | |
14268 | beos*) |
14269 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14270 | allow_undefined_flag_F77=unsupported |
14271 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
14272 | # support --undefined. This deserves some investigation. FIXME |
14273 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14274 | else |
14275 | ld_shlibs_F77=no |
14276 | fi |
14277 | ;; |
14278 | |
14279 | cygwin* | mingw* | pw32*) |
14280 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
14281 | # as there is no search path for DLLs. |
14282 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14283 | allow_undefined_flag_F77=unsupported |
14284 | always_export_symbols_F77=no |
14285 | enable_shared_with_static_runtimes_F77=yes |
14286 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
14287 | |
14288 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
14289 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14290 | # If the export-symbols file already is a .def file (1st line |
14291 | # is EXPORTS), use it as is; otherwise, prepend... |
14292 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
14293 | cp $export_symbols $output_objdir/$soname.def; |
14294 | else |
14295 | echo EXPORTS > $output_objdir/$soname.def; |
14296 | cat $export_symbols >> $output_objdir/$soname.def; |
14297 | fi~ |
14298 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14299 | else |
14300 | ld_shlibs_F77=no |
14301 | fi |
14302 | ;; |
14303 | |
14304 | interix3*) |
14305 | hardcode_direct_F77=no |
14306 | hardcode_shlibpath_var_F77=no |
14307 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14308 | export_dynamic_flag_spec_F77='${wl}-E' |
14309 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
14310 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
14311 | # default) and relocated if they conflict, which is a slow very memory |
14312 | # consuming and fragmenting process. To avoid this, we pick a random, |
14313 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
14314 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
14315 | 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' |
14316 | 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' |
14317 | ;; |
14318 | |
14319 | linux*) |
14320 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14321 | tmp_addflag= |
14322 | case $cc_basename,$host_cpu in |
14323 | pgcc*) # Portland Group C compiler |
14324 | 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' |
14325 | tmp_addflag=' $pic_flag' |
14326 | ;; |
14327 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
14328 | 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' |
14329 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14330 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
14331 | tmp_addflag=' -i_dynamic' ;; |
14332 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
14333 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
14334 | ifc* | ifort*) # Intel Fortran compiler |
14335 | tmp_addflag=' -nofor_main' ;; |
14336 | esac |
14337 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14338 | |
14339 | if test $supports_anon_versioning = yes; then |
14340 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
14341 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
14342 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
14343 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
14344 | fi |
14345 | else |
14346 | ld_shlibs_F77=no |
14347 | fi |
14348 | ;; |
14349 | |
14350 | netbsd*) |
14351 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14352 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
14353 | wlarc= |
14354 | else |
14355 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14356 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14357 | fi |
14358 | ;; |
14359 | |
14360 | solaris*) |
14361 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
14362 | ld_shlibs_F77=no |
14363 | cat <<EOF 1>&2 |
14364 | |
14365 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
14366 | *** create shared libraries on Solaris systems. Therefore, libtool |
14367 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14368 | *** binutils to release 2.9.1 or newer. Another option is to modify |
14369 | *** your PATH or compiler configuration so that the native linker is |
14370 | *** used, and then restart. |
14371 | |
14372 | EOF |
14373 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14374 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14375 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14376 | else |
14377 | ld_shlibs_F77=no |
14378 | fi |
14379 | ;; |
14380 | |
14381 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
14382 | case `$LD -v 2>&1` in |
14383 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
14384 | ld_shlibs_F77=no |
14385 | cat <<_LT_EOF 1>&2 |
14386 | |
14387 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
14388 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
14389 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14390 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
14391 | *** your PATH or compiler configuration so that the native linker is |
14392 | *** used, and then restart. |
14393 | |
14394 | _LT_EOF |
14395 | ;; |
14396 | *) |
14397 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14398 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
14399 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
14400 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
14401 | else |
14402 | ld_shlibs_F77=no |
14403 | fi |
14404 | ;; |
14405 | esac |
14406 | ;; |
14407 | |
14408 | sunos4*) |
14409 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14410 | wlarc= |
14411 | hardcode_direct_F77=yes |
14412 | hardcode_shlibpath_var_F77=no |
14413 | ;; |
14414 | |
14415 | *) |
14416 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14417 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14418 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14419 | else |
14420 | ld_shlibs_F77=no |
14421 | fi |
14422 | ;; |
14423 | esac |
14424 | |
14425 | if test "$ld_shlibs_F77" = no; then |
14426 | runpath_var= |
14427 | hardcode_libdir_flag_spec_F77= |
14428 | export_dynamic_flag_spec_F77= |
14429 | whole_archive_flag_spec_F77= |
14430 | fi |
14431 | else |
14432 | # PORTME fill in a description of your system's linker (not GNU ld) |
14433 | case $host_os in |
14434 | aix3*) |
14435 | allow_undefined_flag_F77=unsupported |
14436 | always_export_symbols_F77=yes |
14437 | 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' |
14438 | # Note: this linker hardcodes the directories in LIBPATH if there |
14439 | # are no directories specified by -L. |
14440 | hardcode_minus_L_F77=yes |
14441 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
14442 | # Neither direct hardcoding nor static linking is supported with a |
14443 | # broken collect2. |
14444 | hardcode_direct_F77=unsupported |
14445 | fi |
14446 | ;; |
14447 | |
14448 | aix4* | aix5*) |
14449 | if test "$host_cpu" = ia64; then |
14450 | # On IA64, the linker does run time linking by default, so we don't |
14451 | # have to do anything special. |
14452 | aix_use_runtimelinking=no |
14453 | exp_sym_flag='-Bexport' |
14454 | no_entry_flag="" |
14455 | else |
14456 | # If we're using GNU nm, then we don't want the "-C" option. |
14457 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
14458 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
14459 | 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' |
14460 | else |
14461 | 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' |
14462 | fi |
14463 | aix_use_runtimelinking=no |
14464 | |
14465 | # Test if we are trying to use run time linking or normal |
14466 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
14467 | # need to do runtime linking. |
14468 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
14469 | for ld_flag in $LDFLAGS; do |
14470 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
14471 | aix_use_runtimelinking=yes |
14472 | break |
14473 | fi |
14474 | done |
14475 | ;; |
14476 | esac |
14477 | |
14478 | exp_sym_flag='-bexport' |
14479 | no_entry_flag='-bnoentry' |
14480 | fi |
14481 | |
14482 | # When large executables or shared objects are built, AIX ld can |
14483 | # have problems creating the table of contents. If linking a library |
14484 | # or program results in "error TOC overflow" add -mminimal-toc to |
14485 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
14486 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
14487 | |
14488 | archive_cmds_F77='' |
14489 | hardcode_direct_F77=yes |
14490 | hardcode_libdir_separator_F77=':' |
14491 | link_all_deplibs_F77=yes |
14492 | |
14493 | if test "$GCC" = yes; then |
14494 | case $host_os in aix4.[012]|aix4.[012].*) |
14495 | # We only want to do this on AIX 4.2 and lower, the check |
14496 | # below for broken collect2 doesn't work under 4.3+ |
14497 | collect2name=`${CC} -print-prog-name=collect2` |
14498 | if test -f "$collect2name" && \ |
14499 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
14500 | then |
14501 | # We have reworked collect2 |
14502 | hardcode_direct_F77=yes |
14503 | else |
14504 | # We have old collect2 |
14505 | hardcode_direct_F77=unsupported |
14506 | # It fails to find uninstalled libraries when the uninstalled |
14507 | # path is not listed in the libpath. Setting hardcode_minus_L |
14508 | # to unsupported forces relinking |
14509 | hardcode_minus_L_F77=yes |
14510 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14511 | hardcode_libdir_separator_F77= |
14512 | fi |
14513 | ;; |
14514 | esac |
14515 | shared_flag='-shared' |
14516 | if test "$aix_use_runtimelinking" = yes; then |
14517 | shared_flag="$shared_flag "'${wl}-G' |
14518 | fi |
14519 | else |
14520 | # not using gcc |
14521 | if test "$host_cpu" = ia64; then |
14522 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
14523 | # chokes on -Wl,-G. The following line is correct: |
14524 | shared_flag='-G' |
14525 | else |
14526 | if test "$aix_use_runtimelinking" = yes; then |
14527 | shared_flag='${wl}-G' |
14528 | else |
14529 | shared_flag='${wl}-bM:SRE' |
14530 | fi |
14531 | fi |
14532 | fi |
14533 | |
14534 | # It seems that -bexpall does not export symbols beginning with |
14535 | # underscore (_), so it is better to generate a list of symbols to export. |
14536 | always_export_symbols_F77=yes |
14537 | if test "$aix_use_runtimelinking" = yes; then |
14538 | # Warning - without using the other runtime loading flags (-brtl), |
14539 | # -berok will link without error, but may produce a broken library. |
14540 | allow_undefined_flag_F77='-berok' |
14541 | # Determine the default libpath from the value encoded in an empty executable. |
14542 | cat >conftest.$ac_ext <<_ACEOF |
14543 | program main |
14544 | |
14545 | end |
14546 | _ACEOF |
14547 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
14548 | if { (ac_try="$ac_link" |
14549 | case "(($ac_try" in |
14550 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14551 | *) ac_try_echo=$ac_try;; |
14552 | esac |
14553 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14554 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14555 | ac_status=$? |
14556 | grep -v '^ *+' conftest.er1 >conftest.err |
14557 | rm -f conftest.er1 |
14558 | cat conftest.err >&5 |
14559 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
14560 | (exit $ac_status); } && { |
14561 | test -z "$ac_f77_werror_flag" || |
14562 | test ! -s conftest.err |
14563 | } && test -s conftest$ac_exeext && |
14564 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14565 | |
14566 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14567 | }'` |
14568 | # Check for a 64-bit object if we didn't find anything. |
14569 | 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; } |
14570 | }'`; fi |
14571 | else |
14572 | echo "$as_me: failed program was:" >&5 |
14573 | sed 's/^/| /' conftest.$ac_ext >&5 |
14574 | |
dd184caf |
14575 | |
d9898ee8 |
14576 | fi |
dd184caf |
14577 | |
14578 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14579 | conftest$ac_exeext conftest.$ac_ext |
14580 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14581 | |
14582 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14583 | 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" |
14584 | else |
14585 | if test "$host_cpu" = ia64; then |
14586 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14587 | allow_undefined_flag_F77="-z nodefs" |
14588 | 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" |
14589 | else |
14590 | # Determine the default libpath from the value encoded in an empty executable. |
14591 | cat >conftest.$ac_ext <<_ACEOF |
14592 | program main |
14593 | |
14594 | end |
14595 | _ACEOF |
14596 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
14597 | if { (ac_try="$ac_link" |
14598 | case "(($ac_try" in |
14599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14600 | *) ac_try_echo=$ac_try;; |
14601 | esac |
14602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14603 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
14604 | ac_status=$? |
14605 | grep -v '^ *+' conftest.er1 >conftest.err |
14606 | rm -f conftest.er1 |
14607 | cat conftest.err >&5 |
14608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
14609 | (exit $ac_status); } && { |
14610 | test -z "$ac_f77_werror_flag" || |
14611 | test ! -s conftest.err |
14612 | } && test -s conftest$ac_exeext && |
14613 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
14614 | |
14615 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14616 | }'` |
14617 | # Check for a 64-bit object if we didn't find anything. |
14618 | 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; } |
14619 | }'`; fi |
14620 | else |
14621 | echo "$as_me: failed program was:" >&5 |
14622 | sed 's/^/| /' conftest.$ac_ext >&5 |
14623 | |
dd184caf |
14624 | |
d9898ee8 |
14625 | fi |
dd184caf |
14626 | |
14627 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
14628 | conftest$ac_exeext conftest.$ac_ext |
14629 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14630 | |
14631 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14632 | # Warning - without using the other run time loading flags, |
14633 | # -berok will link without error, but may produce a broken library. |
14634 | no_undefined_flag_F77=' ${wl}-bernotok' |
14635 | allow_undefined_flag_F77=' ${wl}-berok' |
14636 | # Exported symbols can be pulled into shared objects from archives |
14637 | whole_archive_flag_spec_F77='$convenience' |
14638 | archive_cmds_need_lc_F77=yes |
14639 | # This is similar to how AIX traditionally builds its shared libraries. |
14640 | 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' |
14641 | fi |
14642 | fi |
14643 | ;; |
14644 | |
14645 | amigaos*) |
14646 | 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)' |
14647 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14648 | hardcode_minus_L_F77=yes |
14649 | # see comment about different semantics on the GNU ld section |
14650 | ld_shlibs_F77=no |
14651 | ;; |
14652 | |
14653 | bsdi[45]*) |
14654 | export_dynamic_flag_spec_F77=-rdynamic |
14655 | ;; |
14656 | |
14657 | cygwin* | mingw* | pw32*) |
14658 | # When not using gcc, we currently assume that we are using |
14659 | # Microsoft Visual C++. |
14660 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
14661 | # no search path for DLLs. |
14662 | hardcode_libdir_flag_spec_F77=' ' |
14663 | allow_undefined_flag_F77=unsupported |
14664 | # Tell ltmain to make .lib files, not .a files. |
14665 | libext=lib |
14666 | # Tell ltmain to make .dll files, not .so files. |
14667 | shrext_cmds=".dll" |
14668 | # FIXME: Setting linknames here is a bad hack. |
14669 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14670 | # The linker will automatically build a .lib file if we build a DLL. |
14671 | old_archive_From_new_cmds_F77='true' |
14672 | # FIXME: Should let the user specify the lib program. |
14673 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14674 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14675 | enable_shared_with_static_runtimes_F77=yes |
14676 | ;; |
14677 | |
14678 | darwin* | rhapsody*) |
14679 | case $host_os in |
14680 | rhapsody* | darwin1.[012]) |
14681 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
14682 | ;; |
14683 | *) # Darwin 1.3 on |
14684 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14685 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14686 | else |
14687 | case ${MACOSX_DEPLOYMENT_TARGET} in |
14688 | 10.[012]) |
14689 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14690 | ;; |
14691 | 10.*) |
14692 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14693 | ;; |
14694 | esac |
14695 | fi |
14696 | ;; |
14697 | esac |
14698 | archive_cmds_need_lc_F77=no |
14699 | hardcode_direct_F77=no |
14700 | hardcode_automatic_F77=yes |
14701 | hardcode_shlibpath_var_F77=unsupported |
14702 | whole_archive_flag_spec_F77='' |
14703 | link_all_deplibs_F77=yes |
14704 | if test "$GCC" = yes ; then |
14705 | output_verbose_link_cmd='echo' |
14706 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14707 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14708 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14709 | 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}' |
14710 | 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}' |
14711 | else |
14712 | case $cc_basename in |
14713 | xlc*) |
14714 | output_verbose_link_cmd='echo' |
14715 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
14716 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14717 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14718 | 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}' |
14719 | 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}' |
14720 | ;; |
14721 | *) |
14722 | ld_shlibs_F77=no |
14723 | ;; |
14724 | esac |
14725 | fi |
14726 | ;; |
14727 | |
14728 | dgux*) |
14729 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14730 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14731 | hardcode_shlibpath_var_F77=no |
14732 | ;; |
14733 | |
14734 | freebsd1*) |
14735 | ld_shlibs_F77=no |
14736 | ;; |
14737 | |
14738 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
14739 | # support. Future versions do this automatically, but an explicit c++rt0.o |
14740 | # does not break anything, and helps significantly (at the cost of a little |
14741 | # extra space). |
14742 | freebsd2.2*) |
14743 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
14744 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14745 | hardcode_direct_F77=yes |
14746 | hardcode_shlibpath_var_F77=no |
14747 | ;; |
14748 | |
14749 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
14750 | freebsd2*) |
14751 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14752 | hardcode_direct_F77=yes |
14753 | hardcode_minus_L_F77=yes |
14754 | hardcode_shlibpath_var_F77=no |
14755 | ;; |
14756 | |
14757 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
14758 | freebsd* | kfreebsd*-gnu | dragonfly*) |
14759 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
14760 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14761 | hardcode_direct_F77=yes |
14762 | hardcode_shlibpath_var_F77=no |
14763 | ;; |
14764 | |
14765 | hpux9*) |
14766 | if test "$GCC" = yes; then |
14767 | 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' |
14768 | else |
14769 | 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' |
14770 | fi |
14771 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14772 | hardcode_libdir_separator_F77=: |
14773 | hardcode_direct_F77=yes |
14774 | |
14775 | # hardcode_minus_L: Not really in the search PATH, |
14776 | # but as the default location of the library. |
14777 | hardcode_minus_L_F77=yes |
14778 | export_dynamic_flag_spec_F77='${wl}-E' |
14779 | ;; |
14780 | |
14781 | hpux10*) |
14782 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14783 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14784 | else |
14785 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
14786 | fi |
14787 | if test "$with_gnu_ld" = no; then |
14788 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14789 | hardcode_libdir_separator_F77=: |
14790 | |
14791 | hardcode_direct_F77=yes |
14792 | export_dynamic_flag_spec_F77='${wl}-E' |
14793 | |
14794 | # hardcode_minus_L: Not really in the search PATH, |
14795 | # but as the default location of the library. |
14796 | hardcode_minus_L_F77=yes |
14797 | fi |
14798 | ;; |
14799 | |
14800 | hpux11*) |
14801 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
14802 | case $host_cpu in |
14803 | hppa*64*) |
14804 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14805 | ;; |
14806 | ia64*) |
14807 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14808 | ;; |
14809 | *) |
14810 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14811 | ;; |
14812 | esac |
14813 | else |
14814 | case $host_cpu in |
14815 | hppa*64*) |
14816 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14817 | ;; |
14818 | ia64*) |
14819 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
14820 | ;; |
14821 | *) |
14822 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
14823 | ;; |
14824 | esac |
14825 | fi |
14826 | if test "$with_gnu_ld" = no; then |
14827 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
14828 | hardcode_libdir_separator_F77=: |
14829 | |
14830 | case $host_cpu in |
14831 | hppa*64*|ia64*) |
14832 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
14833 | hardcode_direct_F77=no |
14834 | hardcode_shlibpath_var_F77=no |
14835 | ;; |
14836 | *) |
14837 | hardcode_direct_F77=yes |
14838 | export_dynamic_flag_spec_F77='${wl}-E' |
14839 | |
14840 | # hardcode_minus_L: Not really in the search PATH, |
14841 | # but as the default location of the library. |
14842 | hardcode_minus_L_F77=yes |
14843 | ;; |
14844 | esac |
14845 | fi |
14846 | ;; |
14847 | |
14848 | irix5* | irix6* | nonstopux*) |
14849 | if test "$GCC" = yes; then |
14850 | 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' |
14851 | else |
14852 | 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' |
14853 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
14854 | fi |
14855 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14856 | hardcode_libdir_separator_F77=: |
14857 | link_all_deplibs_F77=yes |
14858 | ;; |
14859 | |
14860 | netbsd*) |
14861 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14862 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
14863 | else |
14864 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
14865 | fi |
14866 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14867 | hardcode_direct_F77=yes |
14868 | hardcode_shlibpath_var_F77=no |
14869 | ;; |
14870 | |
14871 | newsos6) |
14872 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14873 | hardcode_direct_F77=yes |
14874 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14875 | hardcode_libdir_separator_F77=: |
14876 | hardcode_shlibpath_var_F77=no |
14877 | ;; |
14878 | |
14879 | openbsd*) |
14880 | hardcode_direct_F77=yes |
14881 | hardcode_shlibpath_var_F77=no |
14882 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
14883 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14884 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
14885 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14886 | export_dynamic_flag_spec_F77='${wl}-E' |
14887 | else |
14888 | case $host_os in |
14889 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
14890 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14891 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14892 | ;; |
14893 | *) |
14894 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
14895 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14896 | ;; |
14897 | esac |
14898 | fi |
14899 | ;; |
14900 | |
14901 | os2*) |
14902 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14903 | hardcode_minus_L_F77=yes |
14904 | allow_undefined_flag_F77=unsupported |
14905 | 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' |
14906 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
14907 | ;; |
14908 | |
14909 | osf3*) |
14910 | if test "$GCC" = yes; then |
14911 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14912 | 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' |
14913 | else |
14914 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14915 | 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' |
14916 | fi |
14917 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14918 | hardcode_libdir_separator_F77=: |
14919 | ;; |
14920 | |
14921 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
14922 | if test "$GCC" = yes; then |
14923 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
14924 | 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' |
14925 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
14926 | else |
14927 | allow_undefined_flag_F77=' -expect_unresolved \*' |
14928 | 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' |
14929 | 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~ |
14930 | $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' |
14931 | |
14932 | # Both c and cxx compiler support -rpath directly |
14933 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
14934 | fi |
14935 | hardcode_libdir_separator_F77=: |
14936 | ;; |
14937 | |
14938 | solaris*) |
14939 | no_undefined_flag_F77=' -z text' |
14940 | if test "$GCC" = yes; then |
14941 | wlarc='${wl}' |
14942 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
14943 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14944 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
14945 | else |
14946 | wlarc='' |
14947 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14948 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
14949 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
14950 | fi |
14951 | hardcode_libdir_flag_spec_F77='-R$libdir' |
14952 | hardcode_shlibpath_var_F77=no |
14953 | case $host_os in |
14954 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
14955 | *) |
14956 | # The compiler driver will combine linker options so we |
14957 | # cannot just pass the convience library names through |
14958 | # without $wl, iff we do not link with $LD. |
14959 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
14960 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
14961 | case $wlarc in |
14962 | '') |
14963 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
14964 | *) |
14965 | 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' ;; |
14966 | esac ;; |
14967 | esac |
14968 | link_all_deplibs_F77=yes |
14969 | ;; |
14970 | |
14971 | sunos4*) |
14972 | if test "x$host_vendor" = xsequent; then |
14973 | # Use $CC to link under sequent, because it throws in some extra .o |
14974 | # files that make .init and .fini sections work. |
14975 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
14976 | else |
14977 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
14978 | fi |
14979 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14980 | hardcode_direct_F77=yes |
14981 | hardcode_minus_L_F77=yes |
14982 | hardcode_shlibpath_var_F77=no |
14983 | ;; |
14984 | |
14985 | sysv4) |
14986 | case $host_vendor in |
14987 | sni) |
14988 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
14989 | hardcode_direct_F77=yes # is this really true??? |
14990 | ;; |
14991 | siemens) |
14992 | ## LD is ld it makes a PLAMLIB |
14993 | ## CC just makes a GrossModule. |
14994 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
14995 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
14996 | hardcode_direct_F77=no |
14997 | ;; |
14998 | motorola) |
14999 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15000 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
15001 | ;; |
15002 | esac |
15003 | runpath_var='LD_RUN_PATH' |
15004 | hardcode_shlibpath_var_F77=no |
15005 | ;; |
15006 | |
15007 | sysv4.3*) |
15008 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15009 | hardcode_shlibpath_var_F77=no |
15010 | export_dynamic_flag_spec_F77='-Bexport' |
15011 | ;; |
15012 | |
15013 | sysv4*MP*) |
15014 | if test -d /usr/nec; then |
15015 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15016 | hardcode_shlibpath_var_F77=no |
15017 | runpath_var=LD_RUN_PATH |
15018 | hardcode_runpath_var=yes |
15019 | ld_shlibs_F77=yes |
15020 | fi |
15021 | ;; |
15022 | |
15023 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
15024 | no_undefined_flag_F77='${wl}-z,text' |
15025 | archive_cmds_need_lc_F77=no |
15026 | hardcode_shlibpath_var_F77=no |
15027 | runpath_var='LD_RUN_PATH' |
15028 | |
15029 | if test "$GCC" = yes; then |
15030 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15031 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15032 | else |
15033 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15034 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15035 | fi |
15036 | ;; |
15037 | |
15038 | sysv5* | sco3.2v5* | sco5v6*) |
15039 | # Note: We can NOT use -z defs as we might desire, because we do not |
15040 | # link with -lc, and that would cause any symbols used from libc to |
15041 | # always be unresolved, which means just about no library would |
15042 | # ever link correctly. If we're not using GNU ld we use -z text |
15043 | # though, which does catch some bad symbols but isn't as heavy-handed |
15044 | # as -z defs. |
15045 | no_undefined_flag_F77='${wl}-z,text' |
15046 | allow_undefined_flag_F77='${wl}-z,nodefs' |
15047 | archive_cmds_need_lc_F77=no |
15048 | hardcode_shlibpath_var_F77=no |
15049 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
15050 | hardcode_libdir_separator_F77=':' |
15051 | link_all_deplibs_F77=yes |
15052 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
15053 | runpath_var='LD_RUN_PATH' |
15054 | |
15055 | if test "$GCC" = yes; then |
15056 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15057 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15058 | else |
15059 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15060 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15061 | fi |
15062 | ;; |
15063 | |
15064 | uts4*) |
15065 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15066 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15067 | hardcode_shlibpath_var_F77=no |
15068 | ;; |
15069 | |
15070 | *) |
15071 | ld_shlibs_F77=no |
15072 | ;; |
15073 | esac |
15074 | fi |
15075 | |
dd184caf |
15076 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
15077 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
d9898ee8 |
15078 | test "$ld_shlibs_F77" = no && can_build_shared=no |
15079 | |
15080 | # |
15081 | # Do we need to explicitly link libc? |
15082 | # |
15083 | case "x$archive_cmds_need_lc_F77" in |
15084 | x|xyes) |
15085 | # Assume -lc should be added |
15086 | archive_cmds_need_lc_F77=yes |
15087 | |
15088 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
15089 | case $archive_cmds_F77 in |
15090 | *'~'*) |
15091 | # FIXME: we may have to deal with multi-command sequences. |
15092 | ;; |
15093 | '$CC '*) |
15094 | # Test whether the compiler implicitly links with -lc since on some |
15095 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
15096 | # to ld, don't add -lc before -lgcc. |
dd184caf |
15097 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
15098 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
15099 | $rm conftest* |
15100 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15101 | |
15102 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15103 | (eval $ac_compile) 2>&5 |
15104 | ac_status=$? |
15105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15106 | (exit $ac_status); } 2>conftest.err; then |
15107 | soname=conftest |
15108 | lib=conftest |
15109 | libobjs=conftest.$ac_objext |
15110 | deplibs= |
15111 | wl=$lt_prog_compiler_wl_F77 |
15112 | pic_flag=$lt_prog_compiler_pic_F77 |
15113 | compiler_flags=-v |
15114 | linker_flags=-v |
15115 | verstring= |
15116 | output_objdir=. |
15117 | libname=conftest |
15118 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
15119 | allow_undefined_flag_F77= |
15120 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
15121 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
15122 | ac_status=$? |
15123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15124 | (exit $ac_status); } |
15125 | then |
15126 | archive_cmds_need_lc_F77=no |
15127 | else |
15128 | archive_cmds_need_lc_F77=yes |
15129 | fi |
15130 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
15131 | else |
15132 | cat conftest.err 1>&5 |
15133 | fi |
15134 | $rm conftest* |
dd184caf |
15135 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
15136 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
d9898ee8 |
15137 | ;; |
15138 | esac |
15139 | fi |
15140 | ;; |
15141 | esac |
15142 | |
dd184caf |
15143 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
15144 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
15145 | library_names_spec= |
15146 | libname_spec='lib$name' |
15147 | soname_spec= |
15148 | shrext_cmds=".so" |
15149 | postinstall_cmds= |
15150 | postuninstall_cmds= |
15151 | finish_cmds= |
15152 | finish_eval= |
15153 | shlibpath_var= |
15154 | shlibpath_overrides_runpath=unknown |
15155 | version_type=none |
15156 | dynamic_linker="$host_os ld.so" |
15157 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
15158 | if test "$GCC" = yes; then |
15159 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15160 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
15161 | # if the path contains ";" then we assume it to be the separator |
15162 | # otherwise default to the standard path separator (i.e. ":") - it is |
15163 | # assumed that no part of a normal pathname contains ";" but that should |
15164 | # okay in the real world where ";" in dirpaths is itself problematic. |
15165 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15166 | else |
15167 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15168 | fi |
15169 | else |
15170 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
15171 | fi |
15172 | need_lib_prefix=unknown |
15173 | hardcode_into_libs=no |
15174 | |
15175 | # when you set need_version to no, make sure it does not cause -set_version |
15176 | # flags to be left without arguments |
15177 | need_version=unknown |
15178 | |
15179 | case $host_os in |
15180 | aix3*) |
15181 | version_type=linux |
15182 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
15183 | shlibpath_var=LIBPATH |
15184 | |
15185 | # AIX 3 has no versioning support, so we append a major version to the name. |
15186 | soname_spec='${libname}${release}${shared_ext}$major' |
15187 | ;; |
15188 | |
15189 | aix4* | aix5*) |
15190 | version_type=linux |
15191 | need_lib_prefix=no |
15192 | need_version=no |
15193 | hardcode_into_libs=yes |
15194 | if test "$host_cpu" = ia64; then |
15195 | # AIX 5 supports IA64 |
15196 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
15197 | shlibpath_var=LD_LIBRARY_PATH |
15198 | else |
15199 | # With GCC up to 2.95.x, collect2 would create an import file |
15200 | # for dependence libraries. The import file would start with |
15201 | # the line `#! .'. This would cause the generated library to |
15202 | # depend on `.', always an invalid library. This was fixed in |
15203 | # development snapshots of GCC prior to 3.0. |
15204 | case $host_os in |
15205 | aix4 | aix4.[01] | aix4.[01].*) |
15206 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
15207 | echo ' yes ' |
15208 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
15209 | : |
15210 | else |
15211 | can_build_shared=no |
15212 | fi |
15213 | ;; |
15214 | esac |
15215 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
15216 | # soname into executable. Probably we can add versioning support to |
15217 | # collect2, so additional links can be useful in future. |
15218 | if test "$aix_use_runtimelinking" = yes; then |
15219 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
15220 | # instead of lib<name>.a to let people know that these are not |
15221 | # typical AIX shared libraries. |
15222 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15223 | else |
15224 | # We preserve .a as extension for shared libraries through AIX4.2 |
15225 | # and later when we are not doing run time linking. |
15226 | library_names_spec='${libname}${release}.a $libname.a' |
15227 | soname_spec='${libname}${release}${shared_ext}$major' |
15228 | fi |
15229 | shlibpath_var=LIBPATH |
15230 | fi |
15231 | ;; |
15232 | |
15233 | amigaos*) |
15234 | library_names_spec='$libname.ixlibrary $libname.a' |
15235 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
15236 | 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' |
15237 | ;; |
15238 | |
15239 | beos*) |
15240 | library_names_spec='${libname}${shared_ext}' |
15241 | dynamic_linker="$host_os ld.so" |
15242 | shlibpath_var=LIBRARY_PATH |
15243 | ;; |
15244 | |
15245 | bsdi[45]*) |
15246 | version_type=linux |
15247 | need_version=no |
15248 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15249 | soname_spec='${libname}${release}${shared_ext}$major' |
15250 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
15251 | shlibpath_var=LD_LIBRARY_PATH |
15252 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
15253 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
15254 | # the default ld.so.conf also contains /usr/contrib/lib and |
15255 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
15256 | # libtool to hard-code these into programs |
15257 | ;; |
15258 | |
15259 | cygwin* | mingw* | pw32*) |
15260 | version_type=windows |
15261 | shrext_cmds=".dll" |
15262 | need_version=no |
15263 | need_lib_prefix=no |
15264 | |
15265 | case $GCC,$host_os in |
15266 | yes,cygwin* | yes,mingw* | yes,pw32*) |
15267 | library_names_spec='$libname.dll.a' |
15268 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
15269 | postinstall_cmds='base_file=`basename \${file}`~ |
15270 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
15271 | dldir=$destdir/`dirname \$dlpath`~ |
15272 | test -d \$dldir || mkdir -p \$dldir~ |
15273 | $install_prog $dir/$dlname \$dldir/$dlname~ |
15274 | chmod a+x \$dldir/$dlname' |
15275 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
15276 | dlpath=$dir/\$dldll~ |
15277 | $rm \$dlpath' |
15278 | shlibpath_overrides_runpath=yes |
15279 | |
15280 | case $host_os in |
15281 | cygwin*) |
15282 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
15283 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15284 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
15285 | ;; |
15286 | mingw*) |
15287 | # MinGW DLLs use traditional 'lib' prefix |
15288 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15289 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15290 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
15291 | # It is most probably a Windows format PATH printed by |
15292 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
15293 | # path with ; separators, and with drive letters. We can handle the |
15294 | # drive letters (cygwin fileutils understands them), so leave them, |
15295 | # especially as we might pass files found there to a mingw objdump, |
15296 | # which wouldn't understand a cygwinified path. Ahh. |
15297 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15298 | else |
15299 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15300 | fi |
15301 | ;; |
15302 | pw32*) |
15303 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
15304 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15305 | ;; |
15306 | esac |
15307 | ;; |
15308 | |
15309 | *) |
15310 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
15311 | ;; |
15312 | esac |
15313 | dynamic_linker='Win32 ld.exe' |
15314 | # FIXME: first we should search . and the directory the executable is in |
15315 | shlibpath_var=PATH |
15316 | ;; |
15317 | |
15318 | darwin* | rhapsody*) |
15319 | dynamic_linker="$host_os dyld" |
15320 | version_type=darwin |
15321 | need_lib_prefix=no |
15322 | need_version=no |
15323 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
15324 | soname_spec='${libname}${release}${major}$shared_ext' |
15325 | shlibpath_overrides_runpath=yes |
15326 | shlibpath_var=DYLD_LIBRARY_PATH |
15327 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
15328 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
15329 | if test "$GCC" = yes; then |
15330 | 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"` |
15331 | else |
15332 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
15333 | fi |
15334 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15335 | ;; |
15336 | |
15337 | dgux*) |
15338 | version_type=linux |
15339 | need_lib_prefix=no |
15340 | need_version=no |
15341 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
15342 | soname_spec='${libname}${release}${shared_ext}$major' |
15343 | shlibpath_var=LD_LIBRARY_PATH |
15344 | ;; |
15345 | |
15346 | freebsd1*) |
15347 | dynamic_linker=no |
15348 | ;; |
15349 | |
15350 | kfreebsd*-gnu) |
15351 | version_type=linux |
15352 | need_lib_prefix=no |
15353 | need_version=no |
15354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15355 | soname_spec='${libname}${release}${shared_ext}$major' |
15356 | shlibpath_var=LD_LIBRARY_PATH |
15357 | shlibpath_overrides_runpath=no |
15358 | hardcode_into_libs=yes |
15359 | dynamic_linker='GNU ld.so' |
15360 | ;; |
15361 | |
15362 | freebsd* | dragonfly*) |
15363 | # DragonFly does not have aout. When/if they implement a new |
15364 | # versioning mechanism, adjust this. |
15365 | if test -x /usr/bin/objformat; then |
15366 | objformat=`/usr/bin/objformat` |
15367 | else |
15368 | case $host_os in |
15369 | freebsd[123]*) objformat=aout ;; |
15370 | *) objformat=elf ;; |
15371 | esac |
15372 | fi |
15373 | version_type=freebsd-$objformat |
15374 | case $version_type in |
15375 | freebsd-elf*) |
15376 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15377 | need_version=no |
15378 | need_lib_prefix=no |
15379 | ;; |
15380 | freebsd-*) |
15381 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
15382 | need_version=yes |
15383 | ;; |
15384 | esac |
15385 | shlibpath_var=LD_LIBRARY_PATH |
15386 | case $host_os in |
15387 | freebsd2*) |
15388 | shlibpath_overrides_runpath=yes |
15389 | ;; |
15390 | freebsd3.[01]* | freebsdelf3.[01]*) |
15391 | shlibpath_overrides_runpath=yes |
15392 | hardcode_into_libs=yes |
15393 | ;; |
15394 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
15395 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
15396 | shlibpath_overrides_runpath=no |
15397 | hardcode_into_libs=yes |
15398 | ;; |
15399 | freebsd*) # from 4.6 on |
15400 | shlibpath_overrides_runpath=yes |
15401 | hardcode_into_libs=yes |
15402 | ;; |
15403 | esac |
15404 | ;; |
15405 | |
15406 | gnu*) |
15407 | version_type=linux |
15408 | need_lib_prefix=no |
15409 | need_version=no |
15410 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
15411 | soname_spec='${libname}${release}${shared_ext}$major' |
15412 | shlibpath_var=LD_LIBRARY_PATH |
15413 | hardcode_into_libs=yes |
15414 | ;; |
15415 | |
15416 | hpux9* | hpux10* | hpux11*) |
15417 | # Give a soname corresponding to the major version so that dld.sl refuses to |
15418 | # link against other versions. |
15419 | version_type=sunos |
15420 | need_lib_prefix=no |
15421 | need_version=no |
15422 | case $host_cpu in |
15423 | ia64*) |
15424 | shrext_cmds='.so' |
15425 | hardcode_into_libs=yes |
15426 | dynamic_linker="$host_os dld.so" |
15427 | shlibpath_var=LD_LIBRARY_PATH |
15428 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15429 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15430 | soname_spec='${libname}${release}${shared_ext}$major' |
15431 | if test "X$HPUX_IA64_MODE" = X32; then |
15432 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
15433 | else |
15434 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
15435 | fi |
15436 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15437 | ;; |
15438 | hppa*64*) |
15439 | shrext_cmds='.sl' |
15440 | hardcode_into_libs=yes |
15441 | dynamic_linker="$host_os dld.sl" |
15442 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
15443 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15444 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15445 | soname_spec='${libname}${release}${shared_ext}$major' |
15446 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
15447 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15448 | ;; |
15449 | *) |
15450 | shrext_cmds='.sl' |
15451 | dynamic_linker="$host_os dld.sl" |
15452 | shlibpath_var=SHLIB_PATH |
15453 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
15454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15455 | soname_spec='${libname}${release}${shared_ext}$major' |
15456 | ;; |
15457 | esac |
15458 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
15459 | postinstall_cmds='chmod 555 $lib' |
15460 | ;; |
15461 | |
15462 | interix3*) |
15463 | version_type=linux |
15464 | need_lib_prefix=no |
15465 | need_version=no |
15466 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15467 | soname_spec='${libname}${release}${shared_ext}$major' |
15468 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
15469 | shlibpath_var=LD_LIBRARY_PATH |
15470 | shlibpath_overrides_runpath=no |
15471 | hardcode_into_libs=yes |
15472 | ;; |
15473 | |
15474 | irix5* | irix6* | nonstopux*) |
15475 | case $host_os in |
15476 | nonstopux*) version_type=nonstopux ;; |
15477 | *) |
15478 | if test "$lt_cv_prog_gnu_ld" = yes; then |
15479 | version_type=linux |
15480 | else |
15481 | version_type=irix |
15482 | fi ;; |
15483 | esac |
15484 | need_lib_prefix=no |
15485 | need_version=no |
15486 | soname_spec='${libname}${release}${shared_ext}$major' |
15487 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
15488 | case $host_os in |
15489 | irix5* | nonstopux*) |
15490 | libsuff= shlibsuff= |
15491 | ;; |
15492 | *) |
15493 | case $LD in # libtool.m4 will add one of these switches to LD |
15494 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
15495 | libsuff= shlibsuff= libmagic=32-bit;; |
15496 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
15497 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
15498 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
15499 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
15500 | *) libsuff= shlibsuff= libmagic=never-match;; |
15501 | esac |
15502 | ;; |
15503 | esac |
15504 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
15505 | shlibpath_overrides_runpath=no |
15506 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
15507 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
15508 | hardcode_into_libs=yes |
15509 | ;; |
15510 | |
15511 | # No shared lib support for Linux oldld, aout, or coff. |
15512 | linux*oldld* | linux*aout* | linux*coff*) |
15513 | dynamic_linker=no |
15514 | ;; |
15515 | |
15516 | # This must be Linux ELF. |
15517 | linux*) |
15518 | version_type=linux |
15519 | need_lib_prefix=no |
15520 | need_version=no |
15521 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15522 | soname_spec='${libname}${release}${shared_ext}$major' |
15523 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
15524 | shlibpath_var=LD_LIBRARY_PATH |
15525 | shlibpath_overrides_runpath=no |
15526 | # This implies no fast_install, which is unacceptable. |
15527 | # Some rework will be needed to allow for fast_install |
15528 | # before this can be enabled. |
15529 | hardcode_into_libs=yes |
15530 | |
15531 | # find out which ABI we are using |
15532 | libsuff= |
15533 | case "$host_cpu" in |
15534 | x86_64*|s390x*|powerpc64*) |
dd184caf |
15535 | echo '#line 15535 "configure"' > conftest.$ac_ext |
d9898ee8 |
15536 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15537 | (eval $ac_compile) 2>&5 |
15538 | ac_status=$? |
15539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15540 | (exit $ac_status); }; then |
15541 | case `/usr/bin/file conftest.$ac_objext` in |
15542 | *64-bit*) |
15543 | libsuff=64 |
15544 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
15545 | ;; |
15546 | esac |
15547 | fi |
15548 | rm -rf conftest* |
15549 | ;; |
15550 | esac |
15551 | |
15552 | # Append ld.so.conf contents to the search path |
15553 | if test -f /etc/ld.so.conf; then |
dd184caf |
15554 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
15555 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
15556 | fi |
15557 | |
15558 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15559 | # powerpc, because MkLinux only supported shared libraries with the |
15560 | # GNU dynamic linker. Since this was broken with cross compilers, |
15561 | # most powerpc-linux boxes support dynamic linking these days and |
15562 | # people can always --disable-shared, the test was removed, and we |
15563 | # assume the GNU/Linux dynamic linker is in use. |
15564 | dynamic_linker='GNU/Linux ld.so' |
15565 | ;; |
15566 | |
15567 | knetbsd*-gnu) |
15568 | version_type=linux |
15569 | need_lib_prefix=no |
15570 | need_version=no |
15571 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15572 | soname_spec='${libname}${release}${shared_ext}$major' |
15573 | shlibpath_var=LD_LIBRARY_PATH |
15574 | shlibpath_overrides_runpath=no |
15575 | hardcode_into_libs=yes |
15576 | dynamic_linker='GNU ld.so' |
15577 | ;; |
15578 | |
15579 | netbsd*) |
15580 | version_type=sunos |
15581 | need_lib_prefix=no |
15582 | need_version=no |
15583 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15585 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15586 | dynamic_linker='NetBSD (a.out) ld.so' |
15587 | else |
15588 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15589 | soname_spec='${libname}${release}${shared_ext}$major' |
15590 | dynamic_linker='NetBSD ld.elf_so' |
15591 | fi |
15592 | shlibpath_var=LD_LIBRARY_PATH |
15593 | shlibpath_overrides_runpath=yes |
15594 | hardcode_into_libs=yes |
15595 | ;; |
15596 | |
15597 | newsos6) |
15598 | version_type=linux |
15599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15600 | shlibpath_var=LD_LIBRARY_PATH |
15601 | shlibpath_overrides_runpath=yes |
15602 | ;; |
15603 | |
15604 | nto-qnx*) |
15605 | version_type=linux |
15606 | need_lib_prefix=no |
15607 | need_version=no |
15608 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15609 | soname_spec='${libname}${release}${shared_ext}$major' |
15610 | shlibpath_var=LD_LIBRARY_PATH |
15611 | shlibpath_overrides_runpath=yes |
15612 | ;; |
15613 | |
15614 | openbsd*) |
15615 | version_type=sunos |
15616 | sys_lib_dlsearch_path_spec="/usr/lib" |
15617 | need_lib_prefix=no |
15618 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
15619 | case $host_os in |
15620 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
15621 | *) need_version=no ;; |
15622 | esac |
15623 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15624 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15625 | shlibpath_var=LD_LIBRARY_PATH |
15626 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15627 | case $host_os in |
15628 | openbsd2.[89] | openbsd2.[89].*) |
15629 | shlibpath_overrides_runpath=no |
15630 | ;; |
15631 | *) |
15632 | shlibpath_overrides_runpath=yes |
15633 | ;; |
15634 | esac |
15635 | else |
15636 | shlibpath_overrides_runpath=yes |
15637 | fi |
15638 | ;; |
15639 | |
15640 | os2*) |
15641 | libname_spec='$name' |
15642 | shrext_cmds=".dll" |
15643 | need_lib_prefix=no |
15644 | library_names_spec='$libname${shared_ext} $libname.a' |
15645 | dynamic_linker='OS/2 ld.exe' |
15646 | shlibpath_var=LIBPATH |
15647 | ;; |
15648 | |
15649 | osf3* | osf4* | osf5*) |
15650 | version_type=osf |
15651 | need_lib_prefix=no |
15652 | need_version=no |
15653 | soname_spec='${libname}${release}${shared_ext}$major' |
15654 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15655 | shlibpath_var=LD_LIBRARY_PATH |
15656 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15657 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15658 | ;; |
15659 | |
15660 | solaris*) |
15661 | version_type=linux |
15662 | need_lib_prefix=no |
15663 | need_version=no |
15664 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15665 | soname_spec='${libname}${release}${shared_ext}$major' |
15666 | shlibpath_var=LD_LIBRARY_PATH |
15667 | shlibpath_overrides_runpath=yes |
15668 | hardcode_into_libs=yes |
15669 | # ldd complains unless libraries are executable |
15670 | postinstall_cmds='chmod +x $lib' |
15671 | ;; |
15672 | |
15673 | sunos4*) |
15674 | version_type=sunos |
15675 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15676 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15677 | shlibpath_var=LD_LIBRARY_PATH |
15678 | shlibpath_overrides_runpath=yes |
15679 | if test "$with_gnu_ld" = yes; then |
15680 | need_lib_prefix=no |
15681 | fi |
15682 | need_version=yes |
15683 | ;; |
15684 | |
15685 | sysv4 | sysv4.3*) |
15686 | version_type=linux |
15687 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15688 | soname_spec='${libname}${release}${shared_ext}$major' |
15689 | shlibpath_var=LD_LIBRARY_PATH |
15690 | case $host_vendor in |
15691 | sni) |
15692 | shlibpath_overrides_runpath=no |
15693 | need_lib_prefix=no |
15694 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
15695 | runpath_var=LD_RUN_PATH |
15696 | ;; |
15697 | siemens) |
15698 | need_lib_prefix=no |
15699 | ;; |
15700 | motorola) |
15701 | need_lib_prefix=no |
15702 | need_version=no |
15703 | shlibpath_overrides_runpath=no |
15704 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15705 | ;; |
15706 | esac |
15707 | ;; |
15708 | |
15709 | sysv4*MP*) |
15710 | if test -d /usr/nec ;then |
15711 | version_type=linux |
15712 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15713 | soname_spec='$libname${shared_ext}.$major' |
15714 | shlibpath_var=LD_LIBRARY_PATH |
15715 | fi |
15716 | ;; |
15717 | |
15718 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15719 | version_type=freebsd-elf |
15720 | need_lib_prefix=no |
15721 | need_version=no |
15722 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15723 | soname_spec='${libname}${release}${shared_ext}$major' |
15724 | shlibpath_var=LD_LIBRARY_PATH |
15725 | hardcode_into_libs=yes |
15726 | if test "$with_gnu_ld" = yes; then |
15727 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
15728 | shlibpath_overrides_runpath=no |
15729 | else |
15730 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
15731 | shlibpath_overrides_runpath=yes |
15732 | case $host_os in |
15733 | sco3.2v5*) |
15734 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
15735 | ;; |
15736 | esac |
15737 | fi |
15738 | sys_lib_dlsearch_path_spec='/usr/lib' |
15739 | ;; |
15740 | |
15741 | uts4*) |
15742 | version_type=linux |
15743 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15744 | soname_spec='${libname}${release}${shared_ext}$major' |
15745 | shlibpath_var=LD_LIBRARY_PATH |
15746 | ;; |
15747 | |
15748 | *) |
15749 | dynamic_linker=no |
15750 | ;; |
15751 | esac |
dd184caf |
15752 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
15753 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
15754 | test "$dynamic_linker" = no && can_build_shared=no |
15755 | |
15756 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15757 | if test "$GCC" = yes; then |
15758 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
15759 | fi |
15760 | |
dd184caf |
15761 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
15762 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
15763 | hardcode_action_F77= |
15764 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
15765 | test -n "$runpath_var_F77" || \ |
15766 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
15767 | |
15768 | # We can hardcode non-existant directories. |
15769 | if test "$hardcode_direct_F77" != no && |
15770 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
15771 | # have to relink, otherwise we might link with an installed library |
15772 | # when we should be linking with a yet-to-be-installed one |
15773 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
15774 | test "$hardcode_minus_L_F77" != no; then |
15775 | # Linking always hardcodes the temporary library directory. |
15776 | hardcode_action_F77=relink |
15777 | else |
15778 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
15779 | hardcode_action_F77=immediate |
15780 | fi |
15781 | else |
15782 | # We cannot hardcode anything, or else we can only hardcode existing |
15783 | # directories. |
15784 | hardcode_action_F77=unsupported |
15785 | fi |
dd184caf |
15786 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
15787 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
d9898ee8 |
15788 | |
15789 | if test "$hardcode_action_F77" = relink; then |
15790 | # Fast installation is not supported |
15791 | enable_fast_install=no |
15792 | elif test "$shlibpath_overrides_runpath" = yes || |
15793 | test "$enable_shared" = no; then |
15794 | # Fast installation is not necessary |
15795 | enable_fast_install=needless |
15796 | fi |
15797 | |
15798 | |
15799 | # The else clause should only fire when bootstrapping the |
15800 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
15801 | # with your package, and you will get complaints that there are |
15802 | # no rules to generate ltmain.sh. |
15803 | if test -f "$ltmain"; then |
15804 | # See if we are running on zsh, and set the options which allow our commands through |
15805 | # without removal of \ escapes. |
15806 | if test -n "${ZSH_VERSION+set}" ; then |
15807 | setopt NO_GLOB_SUBST |
15808 | fi |
15809 | # Now quote all the things that may contain metacharacters while being |
15810 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
15811 | # variables and quote the copies for generation of the libtool script. |
15812 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
15813 | SED SHELL STRIP \ |
15814 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
15815 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
15816 | deplibs_check_method reload_flag reload_cmds need_locks \ |
15817 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
15818 | lt_cv_sys_global_symbol_to_c_name_address \ |
15819 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
15820 | old_postinstall_cmds old_postuninstall_cmds \ |
15821 | compiler_F77 \ |
15822 | CC_F77 \ |
15823 | LD_F77 \ |
15824 | lt_prog_compiler_wl_F77 \ |
15825 | lt_prog_compiler_pic_F77 \ |
15826 | lt_prog_compiler_static_F77 \ |
15827 | lt_prog_compiler_no_builtin_flag_F77 \ |
15828 | export_dynamic_flag_spec_F77 \ |
15829 | thread_safe_flag_spec_F77 \ |
15830 | whole_archive_flag_spec_F77 \ |
15831 | enable_shared_with_static_runtimes_F77 \ |
15832 | old_archive_cmds_F77 \ |
15833 | old_archive_from_new_cmds_F77 \ |
15834 | predep_objects_F77 \ |
15835 | postdep_objects_F77 \ |
15836 | predeps_F77 \ |
15837 | postdeps_F77 \ |
15838 | compiler_lib_search_path_F77 \ |
15839 | archive_cmds_F77 \ |
15840 | archive_expsym_cmds_F77 \ |
15841 | postinstall_cmds_F77 \ |
15842 | postuninstall_cmds_F77 \ |
15843 | old_archive_from_expsyms_cmds_F77 \ |
15844 | allow_undefined_flag_F77 \ |
15845 | no_undefined_flag_F77 \ |
15846 | export_symbols_cmds_F77 \ |
15847 | hardcode_libdir_flag_spec_F77 \ |
15848 | hardcode_libdir_flag_spec_ld_F77 \ |
15849 | hardcode_libdir_separator_F77 \ |
15850 | hardcode_automatic_F77 \ |
15851 | module_cmds_F77 \ |
15852 | module_expsym_cmds_F77 \ |
15853 | lt_cv_prog_compiler_c_o_F77 \ |
15854 | exclude_expsyms_F77 \ |
15855 | include_expsyms_F77; do |
15856 | |
15857 | case $var in |
15858 | old_archive_cmds_F77 | \ |
15859 | old_archive_from_new_cmds_F77 | \ |
15860 | archive_cmds_F77 | \ |
15861 | archive_expsym_cmds_F77 | \ |
15862 | module_cmds_F77 | \ |
15863 | module_expsym_cmds_F77 | \ |
15864 | old_archive_from_expsyms_cmds_F77 | \ |
15865 | export_symbols_cmds_F77 | \ |
15866 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
15867 | postinstall_cmds | postuninstall_cmds | \ |
15868 | old_postinstall_cmds | old_postuninstall_cmds | \ |
15869 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
15870 | # Double-quote double-evaled strings. |
15871 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
15872 | ;; |
15873 | *) |
15874 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
15875 | ;; |
15876 | esac |
15877 | done |
15878 | |
15879 | case $lt_echo in |
15880 | *'\$0 --fallback-echo"') |
15881 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
15882 | ;; |
15883 | esac |
15884 | |
15885 | cfgfile="$ofile" |
15886 | |
15887 | cat <<__EOF__ >> "$cfgfile" |
15888 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
15889 | |
15890 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
15891 | |
15892 | # Shell to use when invoking shell scripts. |
15893 | SHELL=$lt_SHELL |
15894 | |
15895 | # Whether or not to build shared libraries. |
15896 | build_libtool_libs=$enable_shared |
15897 | |
15898 | # Whether or not to build static libraries. |
15899 | build_old_libs=$enable_static |
15900 | |
15901 | # Whether or not to add -lc for building shared libraries. |
15902 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
15903 | |
15904 | # Whether or not to disallow shared libs when runtime libs are static |
15905 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
15906 | |
15907 | # Whether or not to optimize for fast installation. |
15908 | fast_install=$enable_fast_install |
15909 | |
15910 | # The host system. |
15911 | host_alias=$host_alias |
15912 | host=$host |
15913 | host_os=$host_os |
15914 | |
15915 | # The build system. |
15916 | build_alias=$build_alias |
15917 | build=$build |
15918 | build_os=$build_os |
15919 | |
15920 | # An echo program that does not interpret backslashes. |
15921 | echo=$lt_echo |
15922 | |
15923 | # The archiver. |
15924 | AR=$lt_AR |
15925 | AR_FLAGS=$lt_AR_FLAGS |
15926 | |
15927 | # A C compiler. |
15928 | LTCC=$lt_LTCC |
15929 | |
15930 | # LTCC compiler flags. |
15931 | LTCFLAGS=$lt_LTCFLAGS |
15932 | |
15933 | # A language-specific compiler. |
15934 | CC=$lt_compiler_F77 |
15935 | |
15936 | # Is the compiler the GNU C compiler? |
15937 | with_gcc=$GCC_F77 |
15938 | |
d9898ee8 |
15939 | # An ERE matcher. |
15940 | EGREP=$lt_EGREP |
15941 | |
15942 | # The linker used to build libraries. |
15943 | LD=$lt_LD_F77 |
15944 | |
15945 | # Whether we need hard or soft links. |
15946 | LN_S=$lt_LN_S |
15947 | |
15948 | # A BSD-compatible nm program. |
15949 | NM=$lt_NM |
15950 | |
15951 | # A symbol stripping program |
15952 | STRIP=$lt_STRIP |
15953 | |
15954 | # Used to examine libraries when file_magic_cmd begins "file" |
15955 | MAGIC_CMD=$MAGIC_CMD |
15956 | |
15957 | # Used on cygwin: DLL creation program. |
15958 | DLLTOOL="$DLLTOOL" |
15959 | |
15960 | # Used on cygwin: object dumper. |
15961 | OBJDUMP="$OBJDUMP" |
15962 | |
15963 | # Used on cygwin: assembler. |
15964 | AS="$AS" |
15965 | |
15966 | # The name of the directory that contains temporary libtool files. |
15967 | objdir=$objdir |
15968 | |
15969 | # How to create reloadable object files. |
15970 | reload_flag=$lt_reload_flag |
15971 | reload_cmds=$lt_reload_cmds |
15972 | |
15973 | # How to pass a linker flag through the compiler. |
15974 | wl=$lt_lt_prog_compiler_wl_F77 |
15975 | |
15976 | # Object file suffix (normally "o"). |
15977 | objext="$ac_objext" |
15978 | |
15979 | # Old archive suffix (normally "a"). |
15980 | libext="$libext" |
15981 | |
15982 | # Shared library suffix (normally ".so"). |
15983 | shrext_cmds='$shrext_cmds' |
15984 | |
15985 | # Executable file suffix (normally ""). |
15986 | exeext="$exeext" |
15987 | |
15988 | # Additional compiler flags for building library objects. |
15989 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
15990 | pic_mode=$pic_mode |
15991 | |
15992 | # What is the maximum length of a command? |
15993 | max_cmd_len=$lt_cv_sys_max_cmd_len |
15994 | |
15995 | # Does compiler simultaneously support -c and -o options? |
15996 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
15997 | |
15998 | # Must we lock files when doing compilation? |
15999 | need_locks=$lt_need_locks |
16000 | |
16001 | # Do we need the lib prefix for modules? |
16002 | need_lib_prefix=$need_lib_prefix |
16003 | |
16004 | # Do we need a version for libraries? |
16005 | need_version=$need_version |
16006 | |
16007 | # Whether dlopen is supported. |
16008 | dlopen_support=$enable_dlopen |
16009 | |
16010 | # Whether dlopen of programs is supported. |
16011 | dlopen_self=$enable_dlopen_self |
16012 | |
16013 | # Whether dlopen of statically linked programs is supported. |
16014 | dlopen_self_static=$enable_dlopen_self_static |
16015 | |
16016 | # Compiler flag to prevent dynamic linking. |
16017 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
16018 | |
16019 | # Compiler flag to turn off builtin functions. |
16020 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
16021 | |
16022 | # Compiler flag to allow reflexive dlopens. |
16023 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
16024 | |
16025 | # Compiler flag to generate shared objects directly from archives. |
16026 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
16027 | |
16028 | # Compiler flag to generate thread-safe objects. |
16029 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
16030 | |
16031 | # Library versioning type. |
16032 | version_type=$version_type |
16033 | |
16034 | # Format of library name prefix. |
16035 | libname_spec=$lt_libname_spec |
16036 | |
16037 | # List of archive names. First name is the real one, the rest are links. |
16038 | # The last name is the one that the linker finds with -lNAME. |
16039 | library_names_spec=$lt_library_names_spec |
16040 | |
16041 | # The coded name of the library, if different from the real name. |
16042 | soname_spec=$lt_soname_spec |
16043 | |
16044 | # Commands used to build and install an old-style archive. |
16045 | RANLIB=$lt_RANLIB |
16046 | old_archive_cmds=$lt_old_archive_cmds_F77 |
16047 | old_postinstall_cmds=$lt_old_postinstall_cmds |
16048 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
16049 | |
16050 | # Create an old-style archive from a shared archive. |
16051 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
16052 | |
16053 | # Create a temporary old-style archive to link instead of a shared archive. |
16054 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
16055 | |
16056 | # Commands used to build and install a shared archive. |
16057 | archive_cmds=$lt_archive_cmds_F77 |
16058 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
16059 | postinstall_cmds=$lt_postinstall_cmds |
16060 | postuninstall_cmds=$lt_postuninstall_cmds |
16061 | |
16062 | # Commands used to build a loadable module (assumed same as above if empty) |
16063 | module_cmds=$lt_module_cmds_F77 |
16064 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
16065 | |
16066 | # Commands to strip libraries. |
16067 | old_striplib=$lt_old_striplib |
16068 | striplib=$lt_striplib |
16069 | |
16070 | # Dependencies to place before the objects being linked to create a |
16071 | # shared library. |
dd184caf |
16072 | predep_objects=$lt_predep_objects_F77 |
d9898ee8 |
16073 | |
16074 | # Dependencies to place after the objects being linked to create a |
16075 | # shared library. |
dd184caf |
16076 | postdep_objects=$lt_postdep_objects_F77 |
d9898ee8 |
16077 | |
16078 | # Dependencies to place before the objects being linked to create a |
16079 | # shared library. |
16080 | predeps=$lt_predeps_F77 |
16081 | |
16082 | # Dependencies to place after the objects being linked to create a |
16083 | # shared library. |
16084 | postdeps=$lt_postdeps_F77 |
16085 | |
16086 | # The library search path used internally by the compiler when linking |
16087 | # a shared library. |
dd184caf |
16088 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
d9898ee8 |
16089 | |
16090 | # Method to check whether dependent libraries are shared objects. |
16091 | deplibs_check_method=$lt_deplibs_check_method |
16092 | |
16093 | # Command to use when deplibs_check_method == file_magic. |
16094 | file_magic_cmd=$lt_file_magic_cmd |
16095 | |
16096 | # Flag that allows shared libraries with undefined symbols to be built. |
16097 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
16098 | |
16099 | # Flag that forces no undefined symbols. |
16100 | no_undefined_flag=$lt_no_undefined_flag_F77 |
16101 | |
16102 | # Commands used to finish a libtool library installation in a directory. |
16103 | finish_cmds=$lt_finish_cmds |
16104 | |
16105 | # Same as above, but a single script fragment to be evaled but not shown. |
16106 | finish_eval=$lt_finish_eval |
16107 | |
16108 | # Take the output of nm and produce a listing of raw symbols and C names. |
16109 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
16110 | |
16111 | # Transform the output of nm in a proper C declaration |
16112 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
16113 | |
16114 | # Transform the output of nm in a C name address pair |
16115 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
16116 | |
16117 | # This is the shared library runtime path variable. |
16118 | runpath_var=$runpath_var |
16119 | |
16120 | # This is the shared library path variable. |
16121 | shlibpath_var=$shlibpath_var |
16122 | |
16123 | # Is shlibpath searched before the hard-coded library search path? |
16124 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
16125 | |
16126 | # How to hardcode a shared library path into an executable. |
16127 | hardcode_action=$hardcode_action_F77 |
16128 | |
16129 | # Whether we should hardcode library paths into libraries. |
16130 | hardcode_into_libs=$hardcode_into_libs |
16131 | |
16132 | # Flag to hardcode \$libdir into a binary during linking. |
16133 | # This must work even if \$libdir does not exist. |
16134 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
16135 | |
16136 | # If ld is used when linking, flag to hardcode \$libdir into |
16137 | # a binary during linking. This must work even if \$libdir does |
16138 | # not exist. |
16139 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
16140 | |
16141 | # Whether we need a single -rpath flag with a separated argument. |
16142 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
16143 | |
16144 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
16145 | # resulting binary. |
16146 | hardcode_direct=$hardcode_direct_F77 |
16147 | |
16148 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
16149 | # resulting binary. |
16150 | hardcode_minus_L=$hardcode_minus_L_F77 |
16151 | |
16152 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
16153 | # the resulting binary. |
16154 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
16155 | |
16156 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
16157 | # and all subsequent libraries and executables linked against it. |
16158 | hardcode_automatic=$hardcode_automatic_F77 |
16159 | |
16160 | # Variables whose values should be saved in libtool wrapper scripts and |
16161 | # restored at relink time. |
16162 | variables_saved_for_relink="$variables_saved_for_relink" |
16163 | |
16164 | # Whether libtool must link a program against all its dependency libraries. |
16165 | link_all_deplibs=$link_all_deplibs_F77 |
16166 | |
16167 | # Compile-time system search path for libraries |
dd184caf |
16168 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
16169 | |
16170 | # Run-time system search path for libraries |
16171 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
16172 | |
16173 | # Fix the shell variable \$srcfile for the compiler. |
16174 | fix_srcfile_path="$fix_srcfile_path_F77" |
16175 | |
16176 | # Set to yes if exported symbols are required. |
16177 | always_export_symbols=$always_export_symbols_F77 |
16178 | |
16179 | # The commands to list exported symbols. |
16180 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
16181 | |
16182 | # The commands to extract the exported symbol list from a shared archive. |
16183 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
16184 | |
16185 | # Symbols that should not be listed in the preloaded symbols. |
16186 | exclude_expsyms=$lt_exclude_expsyms_F77 |
16187 | |
16188 | # Symbols that must always be exported. |
16189 | include_expsyms=$lt_include_expsyms_F77 |
16190 | |
16191 | # ### END LIBTOOL TAG CONFIG: $tagname |
16192 | |
16193 | __EOF__ |
16194 | |
16195 | |
16196 | else |
16197 | # If there is no Makefile yet, we rely on a make rule to execute |
16198 | # `config.status --recheck' to rerun these tests and create the |
16199 | # libtool script then. |
16200 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
16201 | if test -f "$ltmain_in"; then |
16202 | test -f Makefile && make "$ltmain" |
16203 | fi |
16204 | fi |
16205 | |
16206 | |
16207 | ac_ext=c |
16208 | ac_cpp='$CPP $CPPFLAGS' |
16209 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16210 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
16211 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
16212 | |
16213 | CC="$lt_save_CC" |
16214 | |
16215 | else |
16216 | tagname="" |
16217 | fi |
16218 | ;; |
16219 | |
16220 | GCJ) |
16221 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
16222 | |
16223 | |
d9898ee8 |
16224 | # Source file extension for Java test sources. |
16225 | ac_ext=java |
16226 | |
16227 | # Object file extension for compiled Java test sources. |
16228 | objext=o |
16229 | objext_GCJ=$objext |
16230 | |
16231 | # Code to be used in simple compile tests |
16232 | lt_simple_compile_test_code="class foo {}\n" |
16233 | |
16234 | # Code to be used in simple link tests |
16235 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
16236 | |
16237 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
16238 | |
16239 | # If no C compiler was specified, use CC. |
16240 | LTCC=${LTCC-"$CC"} |
16241 | |
16242 | # If no C compiler flags were specified, use CFLAGS. |
16243 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
16244 | |
16245 | # Allow CC to be a program name with arguments. |
16246 | compiler=$CC |
16247 | |
16248 | |
16249 | # save warnings/boilerplate of simple test code |
16250 | ac_outfile=conftest.$ac_objext |
16251 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
16252 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16253 | _lt_compiler_boilerplate=`cat conftest.err` |
16254 | $rm conftest* |
16255 | |
16256 | ac_outfile=conftest.$ac_objext |
16257 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
16258 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16259 | _lt_linker_boilerplate=`cat conftest.err` |
16260 | $rm conftest* |
16261 | |
16262 | |
16263 | # Allow CC to be a program name with arguments. |
16264 | lt_save_CC="$CC" |
16265 | CC=${GCJ-"gcj"} |
16266 | compiler=$CC |
16267 | compiler_GCJ=$CC |
16268 | for cc_temp in $compiler""; do |
16269 | case $cc_temp in |
16270 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16271 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16272 | \-*) ;; |
16273 | *) break;; |
16274 | esac |
16275 | done |
16276 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16277 | |
16278 | |
16279 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
16280 | archive_cmds_need_lc_GCJ=no |
16281 | |
16282 | old_archive_cmds_GCJ=$old_archive_cmds |
16283 | |
16284 | |
16285 | lt_prog_compiler_no_builtin_flag_GCJ= |
16286 | |
16287 | if test "$GCC" = yes; then |
16288 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
16289 | |
16290 | |
dd184caf |
16291 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
16292 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
d9898ee8 |
16293 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
16294 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16295 | else |
16296 | lt_cv_prog_compiler_rtti_exceptions=no |
16297 | ac_outfile=conftest.$ac_objext |
16298 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16299 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
16300 | # Insert the option either (1) after the last *FLAGS variable, or |
16301 | # (2) before a word containing "conftest.", or (3) at the end. |
16302 | # Note that $ac_compile itself does not contain backslashes and begins |
16303 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16304 | # The option is referenced via a variable to avoid confusing sed. |
16305 | lt_compile=`echo "$ac_compile" | $SED \ |
16306 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16307 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16308 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
16309 | (eval echo "\"\$as_me:16309: $lt_compile\"" >&5) |
d9898ee8 |
16310 | (eval "$lt_compile" 2>conftest.err) |
16311 | ac_status=$? |
16312 | cat conftest.err >&5 |
dd184caf |
16313 | echo "$as_me:16313: \$? = $ac_status" >&5 |
d9898ee8 |
16314 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16315 | # The compiler can only warn and ignore the option if not recognized |
16316 | # So say no if there are warnings other than the usual output. |
16317 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16318 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16319 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16320 | lt_cv_prog_compiler_rtti_exceptions=yes |
16321 | fi |
16322 | fi |
16323 | $rm conftest* |
16324 | |
16325 | fi |
dd184caf |
16326 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
16327 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
d9898ee8 |
16328 | |
16329 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
16330 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
16331 | else |
16332 | : |
16333 | fi |
16334 | |
16335 | fi |
16336 | |
16337 | lt_prog_compiler_wl_GCJ= |
16338 | lt_prog_compiler_pic_GCJ= |
16339 | lt_prog_compiler_static_GCJ= |
16340 | |
dd184caf |
16341 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
16342 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
d9898ee8 |
16343 | |
16344 | if test "$GCC" = yes; then |
16345 | lt_prog_compiler_wl_GCJ='-Wl,' |
16346 | lt_prog_compiler_static_GCJ='-static' |
16347 | |
16348 | case $host_os in |
16349 | aix*) |
16350 | # All AIX code is PIC. |
16351 | if test "$host_cpu" = ia64; then |
16352 | # AIX 5 now supports IA64 processor |
16353 | lt_prog_compiler_static_GCJ='-Bstatic' |
16354 | fi |
16355 | ;; |
16356 | |
16357 | amigaos*) |
16358 | # FIXME: we need at least 68020 code to build shared libraries, but |
16359 | # adding the `-m68020' flag to GCC prevents building anything better, |
16360 | # like `-m68040'. |
16361 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
16362 | ;; |
16363 | |
16364 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
16365 | # PIC is the default for these OSes. |
16366 | ;; |
16367 | |
16368 | mingw* | pw32* | os2*) |
16369 | # This hack is so that the source file can tell whether it is being |
16370 | # built for inclusion in a dll (and should export symbols for example). |
16371 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16372 | ;; |
16373 | |
16374 | darwin* | rhapsody*) |
16375 | # PIC is the default on this platform |
16376 | # Common symbols not allowed in MH_DYLIB files |
16377 | lt_prog_compiler_pic_GCJ='-fno-common' |
16378 | ;; |
16379 | |
16380 | interix3*) |
16381 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
16382 | # Instead, we relocate shared libraries at runtime. |
16383 | ;; |
16384 | |
16385 | msdosdjgpp*) |
16386 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
16387 | # on systems that don't support them. |
16388 | lt_prog_compiler_can_build_shared_GCJ=no |
16389 | enable_shared=no |
16390 | ;; |
16391 | |
16392 | sysv4*MP*) |
16393 | if test -d /usr/nec; then |
16394 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
16395 | fi |
16396 | ;; |
16397 | |
16398 | hpux*) |
16399 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16400 | # not for PA HP-UX. |
16401 | case $host_cpu in |
16402 | hppa*64*|ia64*) |
16403 | # +Z the default |
16404 | ;; |
16405 | *) |
16406 | lt_prog_compiler_pic_GCJ='-fPIC' |
16407 | ;; |
16408 | esac |
16409 | ;; |
16410 | |
16411 | *) |
16412 | lt_prog_compiler_pic_GCJ='-fPIC' |
16413 | ;; |
16414 | esac |
16415 | else |
16416 | # PORTME Check for flag to pass linker flags through the system compiler. |
16417 | case $host_os in |
16418 | aix*) |
16419 | lt_prog_compiler_wl_GCJ='-Wl,' |
16420 | if test "$host_cpu" = ia64; then |
16421 | # AIX 5 now supports IA64 processor |
16422 | lt_prog_compiler_static_GCJ='-Bstatic' |
16423 | else |
16424 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
16425 | fi |
16426 | ;; |
16427 | darwin*) |
16428 | # PIC is the default on this platform |
16429 | # Common symbols not allowed in MH_DYLIB files |
16430 | case $cc_basename in |
16431 | xlc*) |
16432 | lt_prog_compiler_pic_GCJ='-qnocommon' |
16433 | lt_prog_compiler_wl_GCJ='-Wl,' |
16434 | ;; |
16435 | esac |
16436 | ;; |
16437 | |
16438 | mingw* | pw32* | os2*) |
16439 | # This hack is so that the source file can tell whether it is being |
16440 | # built for inclusion in a dll (and should export symbols for example). |
16441 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16442 | ;; |
16443 | |
16444 | hpux9* | hpux10* | hpux11*) |
16445 | lt_prog_compiler_wl_GCJ='-Wl,' |
16446 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16447 | # not for PA HP-UX. |
16448 | case $host_cpu in |
16449 | hppa*64*|ia64*) |
16450 | # +Z the default |
16451 | ;; |
16452 | *) |
16453 | lt_prog_compiler_pic_GCJ='+Z' |
16454 | ;; |
16455 | esac |
16456 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
16457 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
16458 | ;; |
16459 | |
16460 | irix5* | irix6* | nonstopux*) |
16461 | lt_prog_compiler_wl_GCJ='-Wl,' |
16462 | # PIC (with -KPIC) is the default. |
16463 | lt_prog_compiler_static_GCJ='-non_shared' |
16464 | ;; |
16465 | |
16466 | newsos6) |
16467 | lt_prog_compiler_pic_GCJ='-KPIC' |
16468 | lt_prog_compiler_static_GCJ='-Bstatic' |
16469 | ;; |
16470 | |
16471 | linux*) |
16472 | case $cc_basename in |
16473 | icc* | ecc*) |
16474 | lt_prog_compiler_wl_GCJ='-Wl,' |
16475 | lt_prog_compiler_pic_GCJ='-KPIC' |
16476 | lt_prog_compiler_static_GCJ='-static' |
16477 | ;; |
16478 | pgcc* | pgf77* | pgf90* | pgf95*) |
16479 | # Portland Group compilers (*not* the Pentium gcc compiler, |
16480 | # which looks to be a dead project) |
16481 | lt_prog_compiler_wl_GCJ='-Wl,' |
16482 | lt_prog_compiler_pic_GCJ='-fpic' |
16483 | lt_prog_compiler_static_GCJ='-Bstatic' |
16484 | ;; |
16485 | ccc*) |
16486 | lt_prog_compiler_wl_GCJ='-Wl,' |
16487 | # All Alpha code is PIC. |
16488 | lt_prog_compiler_static_GCJ='-non_shared' |
16489 | ;; |
16490 | esac |
16491 | ;; |
16492 | |
16493 | osf3* | osf4* | osf5*) |
16494 | lt_prog_compiler_wl_GCJ='-Wl,' |
16495 | # All OSF/1 code is PIC. |
16496 | lt_prog_compiler_static_GCJ='-non_shared' |
16497 | ;; |
16498 | |
16499 | solaris*) |
16500 | lt_prog_compiler_pic_GCJ='-KPIC' |
16501 | lt_prog_compiler_static_GCJ='-Bstatic' |
16502 | case $cc_basename in |
16503 | f77* | f90* | f95*) |
16504 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
16505 | *) |
16506 | lt_prog_compiler_wl_GCJ='-Wl,';; |
16507 | esac |
16508 | ;; |
16509 | |
16510 | sunos4*) |
16511 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
16512 | lt_prog_compiler_pic_GCJ='-PIC' |
16513 | lt_prog_compiler_static_GCJ='-Bstatic' |
16514 | ;; |
16515 | |
16516 | sysv4 | sysv4.2uw2* | sysv4.3*) |
16517 | lt_prog_compiler_wl_GCJ='-Wl,' |
16518 | lt_prog_compiler_pic_GCJ='-KPIC' |
16519 | lt_prog_compiler_static_GCJ='-Bstatic' |
16520 | ;; |
16521 | |
16522 | sysv4*MP*) |
16523 | if test -d /usr/nec ;then |
16524 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
16525 | lt_prog_compiler_static_GCJ='-Bstatic' |
16526 | fi |
16527 | ;; |
16528 | |
16529 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
16530 | lt_prog_compiler_wl_GCJ='-Wl,' |
16531 | lt_prog_compiler_pic_GCJ='-KPIC' |
16532 | lt_prog_compiler_static_GCJ='-Bstatic' |
16533 | ;; |
16534 | |
16535 | unicos*) |
16536 | lt_prog_compiler_wl_GCJ='-Wl,' |
16537 | lt_prog_compiler_can_build_shared_GCJ=no |
16538 | ;; |
16539 | |
16540 | uts4*) |
16541 | lt_prog_compiler_pic_GCJ='-pic' |
16542 | lt_prog_compiler_static_GCJ='-Bstatic' |
16543 | ;; |
16544 | |
16545 | *) |
16546 | lt_prog_compiler_can_build_shared_GCJ=no |
16547 | ;; |
16548 | esac |
16549 | fi |
16550 | |
dd184caf |
16551 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
16552 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
d9898ee8 |
16553 | |
16554 | # |
16555 | # Check to make sure the PIC flag actually works. |
16556 | # |
16557 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
16558 | |
dd184caf |
16559 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
16560 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
d9898ee8 |
16561 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
16562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16563 | else |
16564 | lt_prog_compiler_pic_works_GCJ=no |
16565 | ac_outfile=conftest.$ac_objext |
16566 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16567 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
16568 | # Insert the option either (1) after the last *FLAGS variable, or |
16569 | # (2) before a word containing "conftest.", or (3) at the end. |
16570 | # Note that $ac_compile itself does not contain backslashes and begins |
16571 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16572 | # The option is referenced via a variable to avoid confusing sed. |
16573 | lt_compile=`echo "$ac_compile" | $SED \ |
16574 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16575 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16576 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
16577 | (eval echo "\"\$as_me:16577: $lt_compile\"" >&5) |
d9898ee8 |
16578 | (eval "$lt_compile" 2>conftest.err) |
16579 | ac_status=$? |
16580 | cat conftest.err >&5 |
dd184caf |
16581 | echo "$as_me:16581: \$? = $ac_status" >&5 |
d9898ee8 |
16582 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16583 | # The compiler can only warn and ignore the option if not recognized |
16584 | # So say no if there are warnings other than the usual output. |
16585 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16586 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16587 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16588 | lt_prog_compiler_pic_works_GCJ=yes |
16589 | fi |
16590 | fi |
16591 | $rm conftest* |
16592 | |
16593 | fi |
dd184caf |
16594 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
16595 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
d9898ee8 |
16596 | |
16597 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
16598 | case $lt_prog_compiler_pic_GCJ in |
16599 | "" | " "*) ;; |
16600 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
16601 | esac |
16602 | else |
16603 | lt_prog_compiler_pic_GCJ= |
16604 | lt_prog_compiler_can_build_shared_GCJ=no |
16605 | fi |
16606 | |
16607 | fi |
16608 | case $host_os in |
16609 | # For platforms which do not support PIC, -DPIC is meaningless: |
16610 | *djgpp*) |
16611 | lt_prog_compiler_pic_GCJ= |
16612 | ;; |
16613 | *) |
16614 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16615 | ;; |
16616 | esac |
16617 | |
16618 | # |
16619 | # Check to make sure the static flag actually works. |
16620 | # |
16621 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
dd184caf |
16622 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
16623 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
d9898ee8 |
16624 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
16625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16626 | else |
16627 | lt_prog_compiler_static_works_GCJ=no |
16628 | save_LDFLAGS="$LDFLAGS" |
16629 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
16630 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
16631 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
16632 | # The linker can only warn and ignore the option if not recognized |
16633 | # So say no if there are warnings |
16634 | if test -s conftest.err; then |
16635 | # Append any errors to the config.log. |
16636 | cat conftest.err 1>&5 |
16637 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
16638 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16639 | if diff conftest.exp conftest.er2 >/dev/null; then |
16640 | lt_prog_compiler_static_works_GCJ=yes |
16641 | fi |
16642 | else |
16643 | lt_prog_compiler_static_works_GCJ=yes |
16644 | fi |
16645 | fi |
16646 | $rm conftest* |
16647 | LDFLAGS="$save_LDFLAGS" |
16648 | |
16649 | fi |
dd184caf |
16650 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
16651 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
d9898ee8 |
16652 | |
16653 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
16654 | : |
16655 | else |
16656 | lt_prog_compiler_static_GCJ= |
16657 | fi |
16658 | |
16659 | |
dd184caf |
16660 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16661 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
d9898ee8 |
16662 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16664 | else |
16665 | lt_cv_prog_compiler_c_o_GCJ=no |
16666 | $rm -r conftest 2>/dev/null |
16667 | mkdir conftest |
16668 | cd conftest |
16669 | mkdir out |
16670 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16671 | |
16672 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
16673 | # Insert the option either (1) after the last *FLAGS variable, or |
16674 | # (2) before a word containing "conftest.", or (3) at the end. |
16675 | # Note that $ac_compile itself does not contain backslashes and begins |
16676 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16677 | lt_compile=`echo "$ac_compile" | $SED \ |
16678 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16679 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16680 | -e 's:$: $lt_compiler_flag:'` |
dd184caf |
16681 | (eval echo "\"\$as_me:16681: $lt_compile\"" >&5) |
d9898ee8 |
16682 | (eval "$lt_compile" 2>out/conftest.err) |
16683 | ac_status=$? |
16684 | cat out/conftest.err >&5 |
dd184caf |
16685 | echo "$as_me:16685: \$? = $ac_status" >&5 |
d9898ee8 |
16686 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16687 | then |
16688 | # The compiler can only warn and ignore the option if not recognized |
16689 | # So say no if there are warnings |
16690 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16691 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16692 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16693 | lt_cv_prog_compiler_c_o_GCJ=yes |
16694 | fi |
16695 | fi |
16696 | chmod u+w . 2>&5 |
16697 | $rm conftest* |
16698 | # SGI C++ compiler will create directory out/ii_files/ for |
16699 | # template instantiation |
16700 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16701 | $rm out/* && rmdir out |
16702 | cd .. |
16703 | rmdir conftest |
16704 | $rm conftest* |
16705 | |
16706 | fi |
dd184caf |
16707 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16708 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
d9898ee8 |
16709 | |
16710 | |
16711 | hard_links="nottested" |
16712 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16713 | # do not overwrite the value of need_locks provided by the user |
dd184caf |
16714 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16715 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
d9898ee8 |
16716 | hard_links=yes |
16717 | $rm conftest* |
16718 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16719 | touch conftest.a |
16720 | ln conftest.a conftest.b 2>&5 || hard_links=no |
16721 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
dd184caf |
16722 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
16723 | echo "${ECHO_T}$hard_links" >&6; } |
d9898ee8 |
16724 | if test "$hard_links" = no; then |
16725 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16726 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16727 | need_locks=warn |
16728 | fi |
16729 | else |
16730 | need_locks=no |
16731 | fi |
16732 | |
dd184caf |
16733 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16734 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
d9898ee8 |
16735 | |
16736 | runpath_var= |
16737 | allow_undefined_flag_GCJ= |
16738 | enable_shared_with_static_runtimes_GCJ=no |
16739 | archive_cmds_GCJ= |
16740 | archive_expsym_cmds_GCJ= |
16741 | old_archive_From_new_cmds_GCJ= |
16742 | old_archive_from_expsyms_cmds_GCJ= |
16743 | export_dynamic_flag_spec_GCJ= |
16744 | whole_archive_flag_spec_GCJ= |
16745 | thread_safe_flag_spec_GCJ= |
16746 | hardcode_libdir_flag_spec_GCJ= |
16747 | hardcode_libdir_flag_spec_ld_GCJ= |
16748 | hardcode_libdir_separator_GCJ= |
16749 | hardcode_direct_GCJ=no |
16750 | hardcode_minus_L_GCJ=no |
16751 | hardcode_shlibpath_var_GCJ=unsupported |
16752 | link_all_deplibs_GCJ=unknown |
16753 | hardcode_automatic_GCJ=no |
16754 | module_cmds_GCJ= |
16755 | module_expsym_cmds_GCJ= |
16756 | always_export_symbols_GCJ=no |
16757 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
16758 | # include_expsyms should be a list of space-separated symbols to be *always* |
16759 | # included in the symbol list |
16760 | include_expsyms_GCJ= |
16761 | # exclude_expsyms can be an extended regexp of symbols to exclude |
16762 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
16763 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
16764 | # as well as any symbol that contains `d'. |
16765 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
16766 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
16767 | # platforms (ab)use it in PIC code, but their linkers get confused if |
16768 | # the symbol is explicitly referenced. Since portable code cannot |
16769 | # rely on this symbol name, it's probably fine to never include it in |
16770 | # preloaded symbol tables. |
16771 | extract_expsyms_cmds= |
16772 | # Just being paranoid about ensuring that cc_basename is set. |
16773 | for cc_temp in $compiler""; do |
16774 | case $cc_temp in |
16775 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16776 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16777 | \-*) ;; |
16778 | *) break;; |
16779 | esac |
16780 | done |
16781 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16782 | |
16783 | case $host_os in |
16784 | cygwin* | mingw* | pw32*) |
16785 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
16786 | # When not using gcc, we currently assume that we are using |
16787 | # Microsoft Visual C++. |
16788 | if test "$GCC" != yes; then |
16789 | with_gnu_ld=no |
16790 | fi |
16791 | ;; |
16792 | interix*) |
16793 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
16794 | with_gnu_ld=yes |
16795 | ;; |
16796 | openbsd*) |
16797 | with_gnu_ld=no |
16798 | ;; |
16799 | esac |
16800 | |
16801 | ld_shlibs_GCJ=yes |
16802 | if test "$with_gnu_ld" = yes; then |
16803 | # If archive_cmds runs LD, not CC, wlarc should be empty |
16804 | wlarc='${wl}' |
16805 | |
16806 | # Set some defaults for GNU ld with shared library support. These |
16807 | # are reset later if shared libraries are not supported. Putting them |
16808 | # here allows them to be overridden if necessary. |
16809 | runpath_var=LD_RUN_PATH |
16810 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
16811 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
16812 | # ancient GNU ld didn't support --whole-archive et. al. |
16813 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
16814 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
16815 | else |
16816 | whole_archive_flag_spec_GCJ= |
16817 | fi |
16818 | supports_anon_versioning=no |
16819 | case `$LD -v 2>/dev/null` in |
16820 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
16821 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
16822 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
16823 | *\ 2.11.*) ;; # other 2.11 versions |
16824 | *) supports_anon_versioning=yes ;; |
16825 | esac |
16826 | |
16827 | # See if GNU ld supports shared libraries. |
16828 | case $host_os in |
16829 | aix3* | aix4* | aix5*) |
16830 | # On AIX/PPC, the GNU linker is very broken |
16831 | if test "$host_cpu" != ia64; then |
16832 | ld_shlibs_GCJ=no |
16833 | cat <<EOF 1>&2 |
16834 | |
16835 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
16836 | *** to be unable to reliably create shared libraries on AIX. |
16837 | *** Therefore, libtool is disabling shared libraries support. If you |
16838 | *** really care for shared libraries, you may want to modify your PATH |
16839 | *** so that a non-GNU linker is found, and then restart. |
16840 | |
16841 | EOF |
16842 | fi |
16843 | ;; |
16844 | |
16845 | amigaos*) |
16846 | 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)' |
16847 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16848 | hardcode_minus_L_GCJ=yes |
16849 | |
16850 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
16851 | # that the semantics of dynamic libraries on AmigaOS, at least up |
16852 | # to version 4, is to share data among multiple programs linked |
16853 | # with the same dynamic library. Since this doesn't match the |
16854 | # behavior of shared libraries on other platforms, we can't use |
16855 | # them. |
16856 | ld_shlibs_GCJ=no |
16857 | ;; |
16858 | |
16859 | beos*) |
16860 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16861 | allow_undefined_flag_GCJ=unsupported |
16862 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
16863 | # support --undefined. This deserves some investigation. FIXME |
16864 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16865 | else |
16866 | ld_shlibs_GCJ=no |
16867 | fi |
16868 | ;; |
16869 | |
16870 | cygwin* | mingw* | pw32*) |
16871 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
16872 | # as there is no search path for DLLs. |
16873 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
16874 | allow_undefined_flag_GCJ=unsupported |
16875 | always_export_symbols_GCJ=no |
16876 | enable_shared_with_static_runtimes_GCJ=yes |
16877 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
16878 | |
16879 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
16880 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16881 | # If the export-symbols file already is a .def file (1st line |
16882 | # is EXPORTS), use it as is; otherwise, prepend... |
16883 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
16884 | cp $export_symbols $output_objdir/$soname.def; |
16885 | else |
16886 | echo EXPORTS > $output_objdir/$soname.def; |
16887 | cat $export_symbols >> $output_objdir/$soname.def; |
16888 | fi~ |
16889 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
16890 | else |
16891 | ld_shlibs_GCJ=no |
16892 | fi |
16893 | ;; |
16894 | |
16895 | interix3*) |
16896 | hardcode_direct_GCJ=no |
16897 | hardcode_shlibpath_var_GCJ=no |
16898 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
16899 | export_dynamic_flag_spec_GCJ='${wl}-E' |
16900 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
16901 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
16902 | # default) and relocated if they conflict, which is a slow very memory |
16903 | # consuming and fragmenting process. To avoid this, we pick a random, |
16904 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
16905 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
16906 | 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' |
16907 | 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' |
16908 | ;; |
16909 | |
16910 | linux*) |
16911 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16912 | tmp_addflag= |
16913 | case $cc_basename,$host_cpu in |
16914 | pgcc*) # Portland Group C compiler |
16915 | 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' |
16916 | tmp_addflag=' $pic_flag' |
16917 | ;; |
16918 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
16919 | 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' |
16920 | tmp_addflag=' $pic_flag -Mnomain' ;; |
16921 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
16922 | tmp_addflag=' -i_dynamic' ;; |
16923 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
16924 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
16925 | ifc* | ifort*) # Intel Fortran compiler |
16926 | tmp_addflag=' -nofor_main' ;; |
16927 | esac |
16928 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16929 | |
16930 | if test $supports_anon_versioning = yes; then |
16931 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
16932 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
16933 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
16934 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
16935 | fi |
16936 | else |
16937 | ld_shlibs_GCJ=no |
16938 | fi |
16939 | ;; |
16940 | |
16941 | netbsd*) |
16942 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16943 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
16944 | wlarc= |
16945 | else |
16946 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16947 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16948 | fi |
16949 | ;; |
16950 | |
16951 | solaris*) |
16952 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
16953 | ld_shlibs_GCJ=no |
16954 | cat <<EOF 1>&2 |
16955 | |
16956 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
16957 | *** create shared libraries on Solaris systems. Therefore, libtool |
16958 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16959 | *** binutils to release 2.9.1 or newer. Another option is to modify |
16960 | *** your PATH or compiler configuration so that the native linker is |
16961 | *** used, and then restart. |
16962 | |
16963 | EOF |
16964 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16965 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
16966 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
16967 | else |
16968 | ld_shlibs_GCJ=no |
16969 | fi |
16970 | ;; |
16971 | |
16972 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
16973 | case `$LD -v 2>&1` in |
16974 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
16975 | ld_shlibs_GCJ=no |
16976 | cat <<_LT_EOF 1>&2 |
16977 | |
16978 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
16979 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
16980 | *** is disabling shared libraries support. We urge you to upgrade GNU |
16981 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
16982 | *** your PATH or compiler configuration so that the native linker is |
16983 | *** used, and then restart. |
16984 | |
16985 | _LT_EOF |
16986 | ;; |
16987 | *) |
16988 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
16989 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
16990 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
16991 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
16992 | else |
16993 | ld_shlibs_GCJ=no |
16994 | fi |
16995 | ;; |
16996 | esac |
16997 | ;; |
16998 | |
16999 | sunos4*) |
17000 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17001 | wlarc= |
17002 | hardcode_direct_GCJ=yes |
17003 | hardcode_shlibpath_var_GCJ=no |
17004 | ;; |
17005 | |
17006 | *) |
17007 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17008 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17009 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17010 | else |
17011 | ld_shlibs_GCJ=no |
17012 | fi |
17013 | ;; |
17014 | esac |
17015 | |
17016 | if test "$ld_shlibs_GCJ" = no; then |
17017 | runpath_var= |
17018 | hardcode_libdir_flag_spec_GCJ= |
17019 | export_dynamic_flag_spec_GCJ= |
17020 | whole_archive_flag_spec_GCJ= |
17021 | fi |
17022 | else |
17023 | # PORTME fill in a description of your system's linker (not GNU ld) |
17024 | case $host_os in |
17025 | aix3*) |
17026 | allow_undefined_flag_GCJ=unsupported |
17027 | always_export_symbols_GCJ=yes |
17028 | 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' |
17029 | # Note: this linker hardcodes the directories in LIBPATH if there |
17030 | # are no directories specified by -L. |
17031 | hardcode_minus_L_GCJ=yes |
17032 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
17033 | # Neither direct hardcoding nor static linking is supported with a |
17034 | # broken collect2. |
17035 | hardcode_direct_GCJ=unsupported |
17036 | fi |
17037 | ;; |
17038 | |
17039 | aix4* | aix5*) |
17040 | if test "$host_cpu" = ia64; then |
17041 | # On IA64, the linker does run time linking by default, so we don't |
17042 | # have to do anything special. |
17043 | aix_use_runtimelinking=no |
17044 | exp_sym_flag='-Bexport' |
17045 | no_entry_flag="" |
17046 | else |
17047 | # If we're using GNU nm, then we don't want the "-C" option. |
17048 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
17049 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
17050 | 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' |
17051 | else |
17052 | 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' |
17053 | fi |
17054 | aix_use_runtimelinking=no |
17055 | |
17056 | # Test if we are trying to use run time linking or normal |
17057 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
17058 | # need to do runtime linking. |
17059 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
17060 | for ld_flag in $LDFLAGS; do |
17061 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
17062 | aix_use_runtimelinking=yes |
17063 | break |
17064 | fi |
17065 | done |
17066 | ;; |
17067 | esac |
17068 | |
17069 | exp_sym_flag='-bexport' |
17070 | no_entry_flag='-bnoentry' |
17071 | fi |
17072 | |
17073 | # When large executables or shared objects are built, AIX ld can |
17074 | # have problems creating the table of contents. If linking a library |
17075 | # or program results in "error TOC overflow" add -mminimal-toc to |
17076 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
17077 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
17078 | |
17079 | archive_cmds_GCJ='' |
17080 | hardcode_direct_GCJ=yes |
17081 | hardcode_libdir_separator_GCJ=':' |
17082 | link_all_deplibs_GCJ=yes |
17083 | |
17084 | if test "$GCC" = yes; then |
17085 | case $host_os in aix4.[012]|aix4.[012].*) |
17086 | # We only want to do this on AIX 4.2 and lower, the check |
17087 | # below for broken collect2 doesn't work under 4.3+ |
17088 | collect2name=`${CC} -print-prog-name=collect2` |
17089 | if test -f "$collect2name" && \ |
17090 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
17091 | then |
17092 | # We have reworked collect2 |
17093 | hardcode_direct_GCJ=yes |
17094 | else |
17095 | # We have old collect2 |
17096 | hardcode_direct_GCJ=unsupported |
17097 | # It fails to find uninstalled libraries when the uninstalled |
17098 | # path is not listed in the libpath. Setting hardcode_minus_L |
17099 | # to unsupported forces relinking |
17100 | hardcode_minus_L_GCJ=yes |
17101 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17102 | hardcode_libdir_separator_GCJ= |
17103 | fi |
17104 | ;; |
17105 | esac |
17106 | shared_flag='-shared' |
17107 | if test "$aix_use_runtimelinking" = yes; then |
17108 | shared_flag="$shared_flag "'${wl}-G' |
17109 | fi |
17110 | else |
17111 | # not using gcc |
17112 | if test "$host_cpu" = ia64; then |
17113 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
17114 | # chokes on -Wl,-G. The following line is correct: |
17115 | shared_flag='-G' |
17116 | else |
17117 | if test "$aix_use_runtimelinking" = yes; then |
17118 | shared_flag='${wl}-G' |
17119 | else |
17120 | shared_flag='${wl}-bM:SRE' |
17121 | fi |
17122 | fi |
17123 | fi |
17124 | |
17125 | # It seems that -bexpall does not export symbols beginning with |
17126 | # underscore (_), so it is better to generate a list of symbols to export. |
17127 | always_export_symbols_GCJ=yes |
17128 | if test "$aix_use_runtimelinking" = yes; then |
17129 | # Warning - without using the other runtime loading flags (-brtl), |
17130 | # -berok will link without error, but may produce a broken library. |
17131 | allow_undefined_flag_GCJ='-berok' |
17132 | # Determine the default libpath from the value encoded in an empty executable. |
17133 | cat >conftest.$ac_ext <<_ACEOF |
17134 | /* confdefs.h. */ |
17135 | _ACEOF |
17136 | cat confdefs.h >>conftest.$ac_ext |
17137 | cat >>conftest.$ac_ext <<_ACEOF |
17138 | /* end confdefs.h. */ |
17139 | |
17140 | int |
17141 | main () |
17142 | { |
17143 | |
17144 | ; |
17145 | return 0; |
17146 | } |
17147 | _ACEOF |
17148 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
17149 | if { (ac_try="$ac_link" |
17150 | case "(($ac_try" in |
17151 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17152 | *) ac_try_echo=$ac_try;; |
17153 | esac |
17154 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17155 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17156 | ac_status=$? |
17157 | grep -v '^ *+' conftest.er1 >conftest.err |
17158 | rm -f conftest.er1 |
17159 | cat conftest.err >&5 |
17160 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
17161 | (exit $ac_status); } && { |
17162 | test -z "$ac_c_werror_flag" || |
17163 | test ! -s conftest.err |
17164 | } && test -s conftest$ac_exeext && |
17165 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17166 | |
17167 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17168 | }'` |
17169 | # Check for a 64-bit object if we didn't find anything. |
17170 | 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; } |
17171 | }'`; fi |
17172 | else |
17173 | echo "$as_me: failed program was:" >&5 |
17174 | sed 's/^/| /' conftest.$ac_ext >&5 |
17175 | |
dd184caf |
17176 | |
d9898ee8 |
17177 | fi |
dd184caf |
17178 | |
17179 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17180 | conftest$ac_exeext conftest.$ac_ext |
17181 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17182 | |
17183 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17184 | 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" |
17185 | else |
17186 | if test "$host_cpu" = ia64; then |
17187 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
17188 | allow_undefined_flag_GCJ="-z nodefs" |
17189 | 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" |
17190 | else |
17191 | # Determine the default libpath from the value encoded in an empty executable. |
17192 | cat >conftest.$ac_ext <<_ACEOF |
17193 | /* confdefs.h. */ |
17194 | _ACEOF |
17195 | cat confdefs.h >>conftest.$ac_ext |
17196 | cat >>conftest.$ac_ext <<_ACEOF |
17197 | /* end confdefs.h. */ |
17198 | |
17199 | int |
17200 | main () |
17201 | { |
17202 | |
17203 | ; |
17204 | return 0; |
17205 | } |
17206 | _ACEOF |
17207 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
17208 | if { (ac_try="$ac_link" |
17209 | case "(($ac_try" in |
17210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17211 | *) ac_try_echo=$ac_try;; |
17212 | esac |
17213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17214 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
17215 | ac_status=$? |
17216 | grep -v '^ *+' conftest.er1 >conftest.err |
17217 | rm -f conftest.er1 |
17218 | cat conftest.err >&5 |
17219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
17220 | (exit $ac_status); } && { |
17221 | test -z "$ac_c_werror_flag" || |
17222 | test ! -s conftest.err |
17223 | } && test -s conftest$ac_exeext && |
17224 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
17225 | |
17226 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17227 | }'` |
17228 | # Check for a 64-bit object if we didn't find anything. |
17229 | 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; } |
17230 | }'`; fi |
17231 | else |
17232 | echo "$as_me: failed program was:" >&5 |
17233 | sed 's/^/| /' conftest.$ac_ext >&5 |
17234 | |
dd184caf |
17235 | |
d9898ee8 |
17236 | fi |
dd184caf |
17237 | |
17238 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
17239 | conftest$ac_exeext conftest.$ac_ext |
17240 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17241 | |
17242 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17243 | # Warning - without using the other run time loading flags, |
17244 | # -berok will link without error, but may produce a broken library. |
17245 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
17246 | allow_undefined_flag_GCJ=' ${wl}-berok' |
17247 | # Exported symbols can be pulled into shared objects from archives |
17248 | whole_archive_flag_spec_GCJ='$convenience' |
17249 | archive_cmds_need_lc_GCJ=yes |
17250 | # This is similar to how AIX traditionally builds its shared libraries. |
17251 | 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' |
17252 | fi |
17253 | fi |
17254 | ;; |
17255 | |
17256 | amigaos*) |
17257 | 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)' |
17258 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17259 | hardcode_minus_L_GCJ=yes |
17260 | # see comment about different semantics on the GNU ld section |
17261 | ld_shlibs_GCJ=no |
17262 | ;; |
17263 | |
17264 | bsdi[45]*) |
17265 | export_dynamic_flag_spec_GCJ=-rdynamic |
17266 | ;; |
17267 | |
17268 | cygwin* | mingw* | pw32*) |
17269 | # When not using gcc, we currently assume that we are using |
17270 | # Microsoft Visual C++. |
17271 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
17272 | # no search path for DLLs. |
17273 | hardcode_libdir_flag_spec_GCJ=' ' |
17274 | allow_undefined_flag_GCJ=unsupported |
17275 | # Tell ltmain to make .lib files, not .a files. |
17276 | libext=lib |
17277 | # Tell ltmain to make .dll files, not .so files. |
17278 | shrext_cmds=".dll" |
17279 | # FIXME: Setting linknames here is a bad hack. |
17280 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
17281 | # The linker will automatically build a .lib file if we build a DLL. |
17282 | old_archive_From_new_cmds_GCJ='true' |
17283 | # FIXME: Should let the user specify the lib program. |
17284 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
17285 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
17286 | enable_shared_with_static_runtimes_GCJ=yes |
17287 | ;; |
17288 | |
17289 | darwin* | rhapsody*) |
17290 | case $host_os in |
17291 | rhapsody* | darwin1.[012]) |
17292 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
17293 | ;; |
17294 | *) # Darwin 1.3 on |
17295 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
17296 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17297 | else |
17298 | case ${MACOSX_DEPLOYMENT_TARGET} in |
17299 | 10.[012]) |
17300 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17301 | ;; |
17302 | 10.*) |
17303 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
17304 | ;; |
17305 | esac |
17306 | fi |
17307 | ;; |
17308 | esac |
17309 | archive_cmds_need_lc_GCJ=no |
17310 | hardcode_direct_GCJ=no |
17311 | hardcode_automatic_GCJ=yes |
17312 | hardcode_shlibpath_var_GCJ=unsupported |
17313 | whole_archive_flag_spec_GCJ='' |
17314 | link_all_deplibs_GCJ=yes |
17315 | if test "$GCC" = yes ; then |
17316 | output_verbose_link_cmd='echo' |
17317 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
17318 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17319 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17320 | 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}' |
17321 | 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}' |
17322 | else |
17323 | case $cc_basename in |
17324 | xlc*) |
17325 | output_verbose_link_cmd='echo' |
17326 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
17327 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17328 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17329 | 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}' |
17330 | 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}' |
17331 | ;; |
17332 | *) |
17333 | ld_shlibs_GCJ=no |
17334 | ;; |
17335 | esac |
17336 | fi |
17337 | ;; |
17338 | |
17339 | dgux*) |
17340 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17341 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17342 | hardcode_shlibpath_var_GCJ=no |
17343 | ;; |
17344 | |
17345 | freebsd1*) |
17346 | ld_shlibs_GCJ=no |
17347 | ;; |
17348 | |
17349 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
17350 | # support. Future versions do this automatically, but an explicit c++rt0.o |
17351 | # does not break anything, and helps significantly (at the cost of a little |
17352 | # extra space). |
17353 | freebsd2.2*) |
17354 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
17355 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17356 | hardcode_direct_GCJ=yes |
17357 | hardcode_shlibpath_var_GCJ=no |
17358 | ;; |
17359 | |
17360 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
17361 | freebsd2*) |
17362 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17363 | hardcode_direct_GCJ=yes |
17364 | hardcode_minus_L_GCJ=yes |
17365 | hardcode_shlibpath_var_GCJ=no |
17366 | ;; |
17367 | |
17368 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
17369 | freebsd* | kfreebsd*-gnu | dragonfly*) |
17370 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
17371 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17372 | hardcode_direct_GCJ=yes |
17373 | hardcode_shlibpath_var_GCJ=no |
17374 | ;; |
17375 | |
17376 | hpux9*) |
17377 | if test "$GCC" = yes; then |
17378 | 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' |
17379 | else |
17380 | 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' |
17381 | fi |
17382 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17383 | hardcode_libdir_separator_GCJ=: |
17384 | hardcode_direct_GCJ=yes |
17385 | |
17386 | # hardcode_minus_L: Not really in the search PATH, |
17387 | # but as the default location of the library. |
17388 | hardcode_minus_L_GCJ=yes |
17389 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17390 | ;; |
17391 | |
17392 | hpux10*) |
17393 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17394 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17395 | else |
17396 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
17397 | fi |
17398 | if test "$with_gnu_ld" = no; then |
17399 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17400 | hardcode_libdir_separator_GCJ=: |
17401 | |
17402 | hardcode_direct_GCJ=yes |
17403 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17404 | |
17405 | # hardcode_minus_L: Not really in the search PATH, |
17406 | # but as the default location of the library. |
17407 | hardcode_minus_L_GCJ=yes |
17408 | fi |
17409 | ;; |
17410 | |
17411 | hpux11*) |
17412 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17413 | case $host_cpu in |
17414 | hppa*64*) |
17415 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17416 | ;; |
17417 | ia64*) |
17418 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17419 | ;; |
17420 | *) |
17421 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17422 | ;; |
17423 | esac |
17424 | else |
17425 | case $host_cpu in |
17426 | hppa*64*) |
17427 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17428 | ;; |
17429 | ia64*) |
17430 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17431 | ;; |
17432 | *) |
17433 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17434 | ;; |
17435 | esac |
17436 | fi |
17437 | if test "$with_gnu_ld" = no; then |
17438 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17439 | hardcode_libdir_separator_GCJ=: |
17440 | |
17441 | case $host_cpu in |
17442 | hppa*64*|ia64*) |
17443 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
17444 | hardcode_direct_GCJ=no |
17445 | hardcode_shlibpath_var_GCJ=no |
17446 | ;; |
17447 | *) |
17448 | hardcode_direct_GCJ=yes |
17449 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17450 | |
17451 | # hardcode_minus_L: Not really in the search PATH, |
17452 | # but as the default location of the library. |
17453 | hardcode_minus_L_GCJ=yes |
17454 | ;; |
17455 | esac |
17456 | fi |
17457 | ;; |
17458 | |
17459 | irix5* | irix6* | nonstopux*) |
17460 | if test "$GCC" = yes; then |
17461 | 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' |
17462 | else |
17463 | 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' |
17464 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
17465 | fi |
17466 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17467 | hardcode_libdir_separator_GCJ=: |
17468 | link_all_deplibs_GCJ=yes |
17469 | ;; |
17470 | |
17471 | netbsd*) |
17472 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17473 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
17474 | else |
17475 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
17476 | fi |
17477 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17478 | hardcode_direct_GCJ=yes |
17479 | hardcode_shlibpath_var_GCJ=no |
17480 | ;; |
17481 | |
17482 | newsos6) |
17483 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17484 | hardcode_direct_GCJ=yes |
17485 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17486 | hardcode_libdir_separator_GCJ=: |
17487 | hardcode_shlibpath_var_GCJ=no |
17488 | ;; |
17489 | |
17490 | openbsd*) |
17491 | hardcode_direct_GCJ=yes |
17492 | hardcode_shlibpath_var_GCJ=no |
17493 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17494 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17495 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
17496 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17497 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17498 | else |
17499 | case $host_os in |
17500 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
17501 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17502 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17503 | ;; |
17504 | *) |
17505 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17506 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17507 | ;; |
17508 | esac |
17509 | fi |
17510 | ;; |
17511 | |
17512 | os2*) |
17513 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17514 | hardcode_minus_L_GCJ=yes |
17515 | allow_undefined_flag_GCJ=unsupported |
17516 | 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' |
17517 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
17518 | ;; |
17519 | |
17520 | osf3*) |
17521 | if test "$GCC" = yes; then |
17522 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17523 | 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' |
17524 | else |
17525 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17526 | 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' |
17527 | fi |
17528 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17529 | hardcode_libdir_separator_GCJ=: |
17530 | ;; |
17531 | |
17532 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
17533 | if test "$GCC" = yes; then |
17534 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17535 | 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' |
17536 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17537 | else |
17538 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17539 | 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' |
17540 | 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~ |
17541 | $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' |
17542 | |
17543 | # Both c and cxx compiler support -rpath directly |
17544 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
17545 | fi |
17546 | hardcode_libdir_separator_GCJ=: |
17547 | ;; |
17548 | |
17549 | solaris*) |
17550 | no_undefined_flag_GCJ=' -z text' |
17551 | if test "$GCC" = yes; then |
17552 | wlarc='${wl}' |
17553 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17554 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17555 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
17556 | else |
17557 | wlarc='' |
17558 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17559 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17560 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
17561 | fi |
17562 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17563 | hardcode_shlibpath_var_GCJ=no |
17564 | case $host_os in |
17565 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
17566 | *) |
17567 | # The compiler driver will combine linker options so we |
17568 | # cannot just pass the convience library names through |
17569 | # without $wl, iff we do not link with $LD. |
17570 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
17571 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
17572 | case $wlarc in |
17573 | '') |
17574 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
17575 | *) |
17576 | 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' ;; |
17577 | esac ;; |
17578 | esac |
17579 | link_all_deplibs_GCJ=yes |
17580 | ;; |
17581 | |
17582 | sunos4*) |
17583 | if test "x$host_vendor" = xsequent; then |
17584 | # Use $CC to link under sequent, because it throws in some extra .o |
17585 | # files that make .init and .fini sections work. |
17586 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
17587 | else |
17588 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
17589 | fi |
17590 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17591 | hardcode_direct_GCJ=yes |
17592 | hardcode_minus_L_GCJ=yes |
17593 | hardcode_shlibpath_var_GCJ=no |
17594 | ;; |
17595 | |
17596 | sysv4) |
17597 | case $host_vendor in |
17598 | sni) |
17599 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17600 | hardcode_direct_GCJ=yes # is this really true??? |
17601 | ;; |
17602 | siemens) |
17603 | ## LD is ld it makes a PLAMLIB |
17604 | ## CC just makes a GrossModule. |
17605 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
17606 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
17607 | hardcode_direct_GCJ=no |
17608 | ;; |
17609 | motorola) |
17610 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17611 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
17612 | ;; |
17613 | esac |
17614 | runpath_var='LD_RUN_PATH' |
17615 | hardcode_shlibpath_var_GCJ=no |
17616 | ;; |
17617 | |
17618 | sysv4.3*) |
17619 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17620 | hardcode_shlibpath_var_GCJ=no |
17621 | export_dynamic_flag_spec_GCJ='-Bexport' |
17622 | ;; |
17623 | |
17624 | sysv4*MP*) |
17625 | if test -d /usr/nec; then |
17626 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17627 | hardcode_shlibpath_var_GCJ=no |
17628 | runpath_var=LD_RUN_PATH |
17629 | hardcode_runpath_var=yes |
17630 | ld_shlibs_GCJ=yes |
17631 | fi |
17632 | ;; |
17633 | |
17634 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
17635 | no_undefined_flag_GCJ='${wl}-z,text' |
17636 | archive_cmds_need_lc_GCJ=no |
17637 | hardcode_shlibpath_var_GCJ=no |
17638 | runpath_var='LD_RUN_PATH' |
17639 | |
17640 | if test "$GCC" = yes; then |
17641 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17642 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17643 | else |
17644 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17645 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17646 | fi |
17647 | ;; |
17648 | |
17649 | sysv5* | sco3.2v5* | sco5v6*) |
17650 | # Note: We can NOT use -z defs as we might desire, because we do not |
17651 | # link with -lc, and that would cause any symbols used from libc to |
17652 | # always be unresolved, which means just about no library would |
17653 | # ever link correctly. If we're not using GNU ld we use -z text |
17654 | # though, which does catch some bad symbols but isn't as heavy-handed |
17655 | # as -z defs. |
17656 | no_undefined_flag_GCJ='${wl}-z,text' |
17657 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
17658 | archive_cmds_need_lc_GCJ=no |
17659 | hardcode_shlibpath_var_GCJ=no |
17660 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
17661 | hardcode_libdir_separator_GCJ=':' |
17662 | link_all_deplibs_GCJ=yes |
17663 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
17664 | runpath_var='LD_RUN_PATH' |
17665 | |
17666 | if test "$GCC" = yes; then |
17667 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17668 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17669 | else |
17670 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17671 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17672 | fi |
17673 | ;; |
17674 | |
17675 | uts4*) |
17676 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17677 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17678 | hardcode_shlibpath_var_GCJ=no |
17679 | ;; |
17680 | |
17681 | *) |
17682 | ld_shlibs_GCJ=no |
17683 | ;; |
17684 | esac |
17685 | fi |
17686 | |
dd184caf |
17687 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17688 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
d9898ee8 |
17689 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17690 | |
17691 | # |
17692 | # Do we need to explicitly link libc? |
17693 | # |
17694 | case "x$archive_cmds_need_lc_GCJ" in |
17695 | x|xyes) |
17696 | # Assume -lc should be added |
17697 | archive_cmds_need_lc_GCJ=yes |
17698 | |
17699 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
17700 | case $archive_cmds_GCJ in |
17701 | *'~'*) |
17702 | # FIXME: we may have to deal with multi-command sequences. |
17703 | ;; |
17704 | '$CC '*) |
17705 | # Test whether the compiler implicitly links with -lc since on some |
17706 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
17707 | # to ld, don't add -lc before -lgcc. |
dd184caf |
17708 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17709 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
d9898ee8 |
17710 | $rm conftest* |
17711 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17712 | |
17713 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
17714 | (eval $ac_compile) 2>&5 |
17715 | ac_status=$? |
17716 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17717 | (exit $ac_status); } 2>conftest.err; then |
17718 | soname=conftest |
17719 | lib=conftest |
17720 | libobjs=conftest.$ac_objext |
17721 | deplibs= |
17722 | wl=$lt_prog_compiler_wl_GCJ |
17723 | pic_flag=$lt_prog_compiler_pic_GCJ |
17724 | compiler_flags=-v |
17725 | linker_flags=-v |
17726 | verstring= |
17727 | output_objdir=. |
17728 | libname=conftest |
17729 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
17730 | allow_undefined_flag_GCJ= |
17731 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
17732 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
17733 | ac_status=$? |
17734 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17735 | (exit $ac_status); } |
17736 | then |
17737 | archive_cmds_need_lc_GCJ=no |
17738 | else |
17739 | archive_cmds_need_lc_GCJ=yes |
17740 | fi |
17741 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
17742 | else |
17743 | cat conftest.err 1>&5 |
17744 | fi |
17745 | $rm conftest* |
dd184caf |
17746 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
17747 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
d9898ee8 |
17748 | ;; |
17749 | esac |
17750 | fi |
17751 | ;; |
17752 | esac |
17753 | |
dd184caf |
17754 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
17755 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
d9898ee8 |
17756 | library_names_spec= |
17757 | libname_spec='lib$name' |
17758 | soname_spec= |
17759 | shrext_cmds=".so" |
17760 | postinstall_cmds= |
17761 | postuninstall_cmds= |
17762 | finish_cmds= |
17763 | finish_eval= |
17764 | shlibpath_var= |
17765 | shlibpath_overrides_runpath=unknown |
17766 | version_type=none |
17767 | dynamic_linker="$host_os ld.so" |
17768 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
17769 | if test "$GCC" = yes; then |
17770 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17771 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
17772 | # if the path contains ";" then we assume it to be the separator |
17773 | # otherwise default to the standard path separator (i.e. ":") - it is |
17774 | # assumed that no part of a normal pathname contains ";" but that should |
17775 | # okay in the real world where ";" in dirpaths is itself problematic. |
17776 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17777 | else |
17778 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17779 | fi |
17780 | else |
17781 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
17782 | fi |
17783 | need_lib_prefix=unknown |
17784 | hardcode_into_libs=no |
17785 | |
17786 | # when you set need_version to no, make sure it does not cause -set_version |
17787 | # flags to be left without arguments |
17788 | need_version=unknown |
17789 | |
17790 | case $host_os in |
17791 | aix3*) |
17792 | version_type=linux |
17793 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
17794 | shlibpath_var=LIBPATH |
17795 | |
17796 | # AIX 3 has no versioning support, so we append a major version to the name. |
17797 | soname_spec='${libname}${release}${shared_ext}$major' |
17798 | ;; |
17799 | |
17800 | aix4* | aix5*) |
17801 | version_type=linux |
17802 | need_lib_prefix=no |
17803 | need_version=no |
17804 | hardcode_into_libs=yes |
17805 | if test "$host_cpu" = ia64; then |
17806 | # AIX 5 supports IA64 |
17807 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
17808 | shlibpath_var=LD_LIBRARY_PATH |
17809 | else |
17810 | # With GCC up to 2.95.x, collect2 would create an import file |
17811 | # for dependence libraries. The import file would start with |
17812 | # the line `#! .'. This would cause the generated library to |
17813 | # depend on `.', always an invalid library. This was fixed in |
17814 | # development snapshots of GCC prior to 3.0. |
17815 | case $host_os in |
17816 | aix4 | aix4.[01] | aix4.[01].*) |
17817 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
17818 | echo ' yes ' |
17819 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
17820 | : |
17821 | else |
17822 | can_build_shared=no |
17823 | fi |
17824 | ;; |
17825 | esac |
17826 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
17827 | # soname into executable. Probably we can add versioning support to |
17828 | # collect2, so additional links can be useful in future. |
17829 | if test "$aix_use_runtimelinking" = yes; then |
17830 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
17831 | # instead of lib<name>.a to let people know that these are not |
17832 | # typical AIX shared libraries. |
17833 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17834 | else |
17835 | # We preserve .a as extension for shared libraries through AIX4.2 |
17836 | # and later when we are not doing run time linking. |
17837 | library_names_spec='${libname}${release}.a $libname.a' |
17838 | soname_spec='${libname}${release}${shared_ext}$major' |
17839 | fi |
17840 | shlibpath_var=LIBPATH |
17841 | fi |
17842 | ;; |
17843 | |
17844 | amigaos*) |
17845 | library_names_spec='$libname.ixlibrary $libname.a' |
17846 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
17847 | 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' |
17848 | ;; |
17849 | |
17850 | beos*) |
17851 | library_names_spec='${libname}${shared_ext}' |
17852 | dynamic_linker="$host_os ld.so" |
17853 | shlibpath_var=LIBRARY_PATH |
17854 | ;; |
17855 | |
17856 | bsdi[45]*) |
17857 | version_type=linux |
17858 | need_version=no |
17859 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
17860 | soname_spec='${libname}${release}${shared_ext}$major' |
17861 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
17862 | shlibpath_var=LD_LIBRARY_PATH |
17863 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
17864 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
17865 | # the default ld.so.conf also contains /usr/contrib/lib and |
17866 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
17867 | # libtool to hard-code these into programs |
17868 | ;; |
17869 | |
17870 | cygwin* | mingw* | pw32*) |
17871 | version_type=windows |
17872 | shrext_cmds=".dll" |
17873 | need_version=no |
17874 | need_lib_prefix=no |
17875 | |
17876 | case $GCC,$host_os in |
17877 | yes,cygwin* | yes,mingw* | yes,pw32*) |
17878 | library_names_spec='$libname.dll.a' |
17879 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
17880 | postinstall_cmds='base_file=`basename \${file}`~ |
17881 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
17882 | dldir=$destdir/`dirname \$dlpath`~ |
17883 | test -d \$dldir || mkdir -p \$dldir~ |
17884 | $install_prog $dir/$dlname \$dldir/$dlname~ |
17885 | chmod a+x \$dldir/$dlname' |
17886 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
17887 | dlpath=$dir/\$dldll~ |
17888 | $rm \$dlpath' |
17889 | shlibpath_overrides_runpath=yes |
17890 | |
17891 | case $host_os in |
17892 | cygwin*) |
17893 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
17894 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17895 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
17896 | ;; |
17897 | mingw*) |
17898 | # MinGW DLLs use traditional 'lib' prefix |
17899 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17900 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
17901 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
17902 | # It is most probably a Windows format PATH printed by |
17903 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
17904 | # path with ; separators, and with drive letters. We can handle the |
17905 | # drive letters (cygwin fileutils understands them), so leave them, |
17906 | # especially as we might pass files found there to a mingw objdump, |
17907 | # which wouldn't understand a cygwinified path. Ahh. |
17908 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
17909 | else |
17910 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
17911 | fi |
17912 | ;; |
17913 | pw32*) |
17914 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
17915 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
17916 | ;; |
17917 | esac |
17918 | ;; |
17919 | |
17920 | *) |
17921 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
17922 | ;; |
17923 | esac |
17924 | dynamic_linker='Win32 ld.exe' |
17925 | # FIXME: first we should search . and the directory the executable is in |
17926 | shlibpath_var=PATH |
17927 | ;; |
17928 | |
17929 | darwin* | rhapsody*) |
17930 | dynamic_linker="$host_os dyld" |
17931 | version_type=darwin |
17932 | need_lib_prefix=no |
17933 | need_version=no |
17934 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
17935 | soname_spec='${libname}${release}${major}$shared_ext' |
17936 | shlibpath_overrides_runpath=yes |
17937 | shlibpath_var=DYLD_LIBRARY_PATH |
17938 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
17939 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
17940 | if test "$GCC" = yes; then |
17941 | 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"` |
17942 | else |
17943 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
17944 | fi |
17945 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
17946 | ;; |
17947 | |
17948 | dgux*) |
17949 | version_type=linux |
17950 | need_lib_prefix=no |
17951 | need_version=no |
17952 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
17953 | soname_spec='${libname}${release}${shared_ext}$major' |
17954 | shlibpath_var=LD_LIBRARY_PATH |
17955 | ;; |
17956 | |
17957 | freebsd1*) |
17958 | dynamic_linker=no |
17959 | ;; |
17960 | |
17961 | kfreebsd*-gnu) |
17962 | version_type=linux |
17963 | need_lib_prefix=no |
17964 | need_version=no |
17965 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
17966 | soname_spec='${libname}${release}${shared_ext}$major' |
17967 | shlibpath_var=LD_LIBRARY_PATH |
17968 | shlibpath_overrides_runpath=no |
17969 | hardcode_into_libs=yes |
17970 | dynamic_linker='GNU ld.so' |
17971 | ;; |
17972 | |
17973 | freebsd* | dragonfly*) |
17974 | # DragonFly does not have aout. When/if they implement a new |
17975 | # versioning mechanism, adjust this. |
17976 | if test -x /usr/bin/objformat; then |
17977 | objformat=`/usr/bin/objformat` |
17978 | else |
17979 | case $host_os in |
17980 | freebsd[123]*) objformat=aout ;; |
17981 | *) objformat=elf ;; |
17982 | esac |
17983 | fi |
17984 | version_type=freebsd-$objformat |
17985 | case $version_type in |
17986 | freebsd-elf*) |
17987 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
17988 | need_version=no |
17989 | need_lib_prefix=no |
17990 | ;; |
17991 | freebsd-*) |
17992 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
17993 | need_version=yes |
17994 | ;; |
17995 | esac |
17996 | shlibpath_var=LD_LIBRARY_PATH |
17997 | case $host_os in |
17998 | freebsd2*) |
17999 | shlibpath_overrides_runpath=yes |
18000 | ;; |
18001 | freebsd3.[01]* | freebsdelf3.[01]*) |
18002 | shlibpath_overrides_runpath=yes |
18003 | hardcode_into_libs=yes |
18004 | ;; |
18005 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
18006 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
18007 | shlibpath_overrides_runpath=no |
18008 | hardcode_into_libs=yes |
18009 | ;; |
18010 | freebsd*) # from 4.6 on |
18011 | shlibpath_overrides_runpath=yes |
18012 | hardcode_into_libs=yes |
18013 | ;; |
18014 | esac |
18015 | ;; |
18016 | |
18017 | gnu*) |
18018 | version_type=linux |
18019 | need_lib_prefix=no |
18020 | need_version=no |
18021 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
18022 | soname_spec='${libname}${release}${shared_ext}$major' |
18023 | shlibpath_var=LD_LIBRARY_PATH |
18024 | hardcode_into_libs=yes |
18025 | ;; |
18026 | |
18027 | hpux9* | hpux10* | hpux11*) |
18028 | # Give a soname corresponding to the major version so that dld.sl refuses to |
18029 | # link against other versions. |
18030 | version_type=sunos |
18031 | need_lib_prefix=no |
18032 | need_version=no |
18033 | case $host_cpu in |
18034 | ia64*) |
18035 | shrext_cmds='.so' |
18036 | hardcode_into_libs=yes |
18037 | dynamic_linker="$host_os dld.so" |
18038 | shlibpath_var=LD_LIBRARY_PATH |
18039 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18040 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18041 | soname_spec='${libname}${release}${shared_ext}$major' |
18042 | if test "X$HPUX_IA64_MODE" = X32; then |
18043 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
18044 | else |
18045 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
18046 | fi |
18047 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18048 | ;; |
18049 | hppa*64*) |
18050 | shrext_cmds='.sl' |
18051 | hardcode_into_libs=yes |
18052 | dynamic_linker="$host_os dld.sl" |
18053 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
18054 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18056 | soname_spec='${libname}${release}${shared_ext}$major' |
18057 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
18058 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18059 | ;; |
18060 | *) |
18061 | shrext_cmds='.sl' |
18062 | dynamic_linker="$host_os dld.sl" |
18063 | shlibpath_var=SHLIB_PATH |
18064 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
18065 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18066 | soname_spec='${libname}${release}${shared_ext}$major' |
18067 | ;; |
18068 | esac |
18069 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
18070 | postinstall_cmds='chmod 555 $lib' |
18071 | ;; |
18072 | |
18073 | interix3*) |
18074 | version_type=linux |
18075 | need_lib_prefix=no |
18076 | need_version=no |
18077 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18078 | soname_spec='${libname}${release}${shared_ext}$major' |
18079 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
18080 | shlibpath_var=LD_LIBRARY_PATH |
18081 | shlibpath_overrides_runpath=no |
18082 | hardcode_into_libs=yes |
18083 | ;; |
18084 | |
18085 | irix5* | irix6* | nonstopux*) |
18086 | case $host_os in |
18087 | nonstopux*) version_type=nonstopux ;; |
18088 | *) |
18089 | if test "$lt_cv_prog_gnu_ld" = yes; then |
18090 | version_type=linux |
18091 | else |
18092 | version_type=irix |
18093 | fi ;; |
18094 | esac |
18095 | need_lib_prefix=no |
18096 | need_version=no |
18097 | soname_spec='${libname}${release}${shared_ext}$major' |
18098 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
18099 | case $host_os in |
18100 | irix5* | nonstopux*) |
18101 | libsuff= shlibsuff= |
18102 | ;; |
18103 | *) |
18104 | case $LD in # libtool.m4 will add one of these switches to LD |
18105 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
18106 | libsuff= shlibsuff= libmagic=32-bit;; |
18107 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
18108 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
18109 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
18110 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
18111 | *) libsuff= shlibsuff= libmagic=never-match;; |
18112 | esac |
18113 | ;; |
18114 | esac |
18115 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
18116 | shlibpath_overrides_runpath=no |
18117 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
18118 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
18119 | hardcode_into_libs=yes |
18120 | ;; |
18121 | |
18122 | # No shared lib support for Linux oldld, aout, or coff. |
18123 | linux*oldld* | linux*aout* | linux*coff*) |
18124 | dynamic_linker=no |
18125 | ;; |
18126 | |
18127 | # This must be Linux ELF. |
18128 | linux*) |
18129 | version_type=linux |
18130 | need_lib_prefix=no |
18131 | need_version=no |
18132 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18133 | soname_spec='${libname}${release}${shared_ext}$major' |
18134 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
18135 | shlibpath_var=LD_LIBRARY_PATH |
18136 | shlibpath_overrides_runpath=no |
18137 | # This implies no fast_install, which is unacceptable. |
18138 | # Some rework will be needed to allow for fast_install |
18139 | # before this can be enabled. |
18140 | hardcode_into_libs=yes |
18141 | |
18142 | # find out which ABI we are using |
18143 | libsuff= |
18144 | case "$host_cpu" in |
18145 | x86_64*|s390x*|powerpc64*) |
dd184caf |
18146 | echo '#line 18146 "configure"' > conftest.$ac_ext |
d9898ee8 |
18147 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18148 | (eval $ac_compile) 2>&5 |
18149 | ac_status=$? |
18150 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18151 | (exit $ac_status); }; then |
18152 | case `/usr/bin/file conftest.$ac_objext` in |
18153 | *64-bit*) |
18154 | libsuff=64 |
18155 | sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}" |
18156 | ;; |
18157 | esac |
18158 | fi |
18159 | rm -rf conftest* |
18160 | ;; |
18161 | esac |
18162 | |
18163 | # Append ld.so.conf contents to the search path |
18164 | if test -f /etc/ld.so.conf; then |
dd184caf |
18165 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/^ *//;s/#.*//;/^[^\/]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
d9898ee8 |
18166 | sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra" |
18167 | fi |
18168 | |
18169 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
18170 | # powerpc, because MkLinux only supported shared libraries with the |
18171 | # GNU dynamic linker. Since this was broken with cross compilers, |
18172 | # most powerpc-linux boxes support dynamic linking these days and |
18173 | # people can always --disable-shared, the test was removed, and we |
18174 | # assume the GNU/Linux dynamic linker is in use. |
18175 | dynamic_linker='GNU/Linux ld.so' |
18176 | ;; |
18177 | |
18178 | knetbsd*-gnu) |
18179 | version_type=linux |
18180 | need_lib_prefix=no |
18181 | need_version=no |
18182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18183 | soname_spec='${libname}${release}${shared_ext}$major' |
18184 | shlibpath_var=LD_LIBRARY_PATH |
18185 | shlibpath_overrides_runpath=no |
18186 | hardcode_into_libs=yes |
18187 | dynamic_linker='GNU ld.so' |
18188 | ;; |
18189 | |
18190 | netbsd*) |
18191 | version_type=sunos |
18192 | need_lib_prefix=no |
18193 | need_version=no |
18194 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
18195 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18196 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18197 | dynamic_linker='NetBSD (a.out) ld.so' |
18198 | else |
18199 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18200 | soname_spec='${libname}${release}${shared_ext}$major' |
18201 | dynamic_linker='NetBSD ld.elf_so' |
18202 | fi |
18203 | shlibpath_var=LD_LIBRARY_PATH |
18204 | shlibpath_overrides_runpath=yes |
18205 | hardcode_into_libs=yes |
18206 | ;; |
18207 | |
18208 | newsos6) |
18209 | version_type=linux |
18210 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18211 | shlibpath_var=LD_LIBRARY_PATH |
18212 | shlibpath_overrides_runpath=yes |
18213 | ;; |
18214 | |
18215 | nto-qnx*) |
18216 | version_type=linux |
18217 | need_lib_prefix=no |
18218 | need_version=no |
18219 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18220 | soname_spec='${libname}${release}${shared_ext}$major' |
18221 | shlibpath_var=LD_LIBRARY_PATH |
18222 | shlibpath_overrides_runpath=yes |
18223 | ;; |
18224 | |
18225 | openbsd*) |
18226 | version_type=sunos |
18227 | sys_lib_dlsearch_path_spec="/usr/lib" |
18228 | need_lib_prefix=no |
18229 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
18230 | case $host_os in |
18231 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
18232 | *) need_version=no ;; |
18233 | esac |
18234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18235 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18236 | shlibpath_var=LD_LIBRARY_PATH |
18237 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
18238 | case $host_os in |
18239 | openbsd2.[89] | openbsd2.[89].*) |
18240 | shlibpath_overrides_runpath=no |
18241 | ;; |
18242 | *) |
18243 | shlibpath_overrides_runpath=yes |
18244 | ;; |
18245 | esac |
18246 | else |
18247 | shlibpath_overrides_runpath=yes |
18248 | fi |
18249 | ;; |
18250 | |
18251 | os2*) |
18252 | libname_spec='$name' |
18253 | shrext_cmds=".dll" |
18254 | need_lib_prefix=no |
18255 | library_names_spec='$libname${shared_ext} $libname.a' |
18256 | dynamic_linker='OS/2 ld.exe' |
18257 | shlibpath_var=LIBPATH |
18258 | ;; |
18259 | |
18260 | osf3* | osf4* | osf5*) |
18261 | version_type=osf |
18262 | need_lib_prefix=no |
18263 | need_version=no |
18264 | soname_spec='${libname}${release}${shared_ext}$major' |
18265 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18266 | shlibpath_var=LD_LIBRARY_PATH |
18267 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
18268 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
18269 | ;; |
18270 | |
18271 | solaris*) |
18272 | version_type=linux |
18273 | need_lib_prefix=no |
18274 | need_version=no |
18275 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18276 | soname_spec='${libname}${release}${shared_ext}$major' |
18277 | shlibpath_var=LD_LIBRARY_PATH |
18278 | shlibpath_overrides_runpath=yes |
18279 | hardcode_into_libs=yes |
18280 | # ldd complains unless libraries are executable |
18281 | postinstall_cmds='chmod +x $lib' |
18282 | ;; |
18283 | |
18284 | sunos4*) |
18285 | version_type=sunos |
18286 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18287 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
18288 | shlibpath_var=LD_LIBRARY_PATH |
18289 | shlibpath_overrides_runpath=yes |
18290 | if test "$with_gnu_ld" = yes; then |
18291 | need_lib_prefix=no |
18292 | fi |
18293 | need_version=yes |
18294 | ;; |
18295 | |
18296 | sysv4 | sysv4.3*) |
18297 | version_type=linux |
18298 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18299 | soname_spec='${libname}${release}${shared_ext}$major' |
18300 | shlibpath_var=LD_LIBRARY_PATH |
18301 | case $host_vendor in |
18302 | sni) |
18303 | shlibpath_overrides_runpath=no |
18304 | need_lib_prefix=no |
18305 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
18306 | runpath_var=LD_RUN_PATH |
18307 | ;; |
18308 | siemens) |
18309 | need_lib_prefix=no |
18310 | ;; |
18311 | motorola) |
18312 | need_lib_prefix=no |
18313 | need_version=no |
18314 | shlibpath_overrides_runpath=no |
18315 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
18316 | ;; |
18317 | esac |
18318 | ;; |
18319 | |
18320 | sysv4*MP*) |
18321 | if test -d /usr/nec ;then |
18322 | version_type=linux |
18323 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
18324 | soname_spec='$libname${shared_ext}.$major' |
18325 | shlibpath_var=LD_LIBRARY_PATH |
18326 | fi |
18327 | ;; |
18328 | |
18329 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
18330 | version_type=freebsd-elf |
18331 | need_lib_prefix=no |
18332 | need_version=no |
18333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18334 | soname_spec='${libname}${release}${shared_ext}$major' |
18335 | shlibpath_var=LD_LIBRARY_PATH |
18336 | hardcode_into_libs=yes |
18337 | if test "$with_gnu_ld" = yes; then |
18338 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
18339 | shlibpath_overrides_runpath=no |
18340 | else |
18341 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
18342 | shlibpath_overrides_runpath=yes |
18343 | case $host_os in |
18344 | sco3.2v5*) |
18345 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
18346 | ;; |
18347 | esac |
18348 | fi |
18349 | sys_lib_dlsearch_path_spec='/usr/lib' |
18350 | ;; |
18351 | |
18352 | uts4*) |
18353 | version_type=linux |
18354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18355 | soname_spec='${libname}${release}${shared_ext}$major' |
18356 | shlibpath_var=LD_LIBRARY_PATH |
18357 | ;; |
18358 | |
18359 | *) |
18360 | dynamic_linker=no |
18361 | ;; |
18362 | esac |
dd184caf |
18363 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
18364 | echo "${ECHO_T}$dynamic_linker" >&6; } |
d9898ee8 |
18365 | test "$dynamic_linker" = no && can_build_shared=no |
18366 | |
18367 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
18368 | if test "$GCC" = yes; then |
18369 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
18370 | fi |
18371 | |
dd184caf |
18372 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
18373 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
d9898ee8 |
18374 | hardcode_action_GCJ= |
18375 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
18376 | test -n "$runpath_var_GCJ" || \ |
18377 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
18378 | |
18379 | # We can hardcode non-existant directories. |
18380 | if test "$hardcode_direct_GCJ" != no && |
18381 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
18382 | # have to relink, otherwise we might link with an installed library |
18383 | # when we should be linking with a yet-to-be-installed one |
18384 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
18385 | test "$hardcode_minus_L_GCJ" != no; then |
18386 | # Linking always hardcodes the temporary library directory. |
18387 | hardcode_action_GCJ=relink |
18388 | else |
18389 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
18390 | hardcode_action_GCJ=immediate |
18391 | fi |
18392 | else |
18393 | # We cannot hardcode anything, or else we can only hardcode existing |
18394 | # directories. |
18395 | hardcode_action_GCJ=unsupported |
18396 | fi |
dd184caf |
18397 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
18398 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
d9898ee8 |
18399 | |
18400 | if test "$hardcode_action_GCJ" = relink; then |
18401 | # Fast installation is not supported |
18402 | enable_fast_install=no |
18403 | elif test "$shlibpath_overrides_runpath" = yes || |
18404 | test "$enable_shared" = no; then |
18405 | # Fast installation is not necessary |
18406 | enable_fast_install=needless |
18407 | fi |
18408 | |
18409 | |
18410 | # The else clause should only fire when bootstrapping the |
18411 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18412 | # with your package, and you will get complaints that there are |
18413 | # no rules to generate ltmain.sh. |
18414 | if test -f "$ltmain"; then |
18415 | # See if we are running on zsh, and set the options which allow our commands through |
18416 | # without removal of \ escapes. |
18417 | if test -n "${ZSH_VERSION+set}" ; then |
18418 | setopt NO_GLOB_SUBST |
18419 | fi |
18420 | # Now quote all the things that may contain metacharacters while being |
18421 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18422 | # variables and quote the copies for generation of the libtool script. |
18423 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18424 | SED SHELL STRIP \ |
18425 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18426 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18427 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18428 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18429 | lt_cv_sys_global_symbol_to_c_name_address \ |
18430 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18431 | old_postinstall_cmds old_postuninstall_cmds \ |
18432 | compiler_GCJ \ |
18433 | CC_GCJ \ |
18434 | LD_GCJ \ |
18435 | lt_prog_compiler_wl_GCJ \ |
18436 | lt_prog_compiler_pic_GCJ \ |
18437 | lt_prog_compiler_static_GCJ \ |
18438 | lt_prog_compiler_no_builtin_flag_GCJ \ |
18439 | export_dynamic_flag_spec_GCJ \ |
18440 | thread_safe_flag_spec_GCJ \ |
18441 | whole_archive_flag_spec_GCJ \ |
18442 | enable_shared_with_static_runtimes_GCJ \ |
18443 | old_archive_cmds_GCJ \ |
18444 | old_archive_from_new_cmds_GCJ \ |
18445 | predep_objects_GCJ \ |
18446 | postdep_objects_GCJ \ |
18447 | predeps_GCJ \ |
18448 | postdeps_GCJ \ |
18449 | compiler_lib_search_path_GCJ \ |
18450 | archive_cmds_GCJ \ |
18451 | archive_expsym_cmds_GCJ \ |
18452 | postinstall_cmds_GCJ \ |
18453 | postuninstall_cmds_GCJ \ |
18454 | old_archive_from_expsyms_cmds_GCJ \ |
18455 | allow_undefined_flag_GCJ \ |
18456 | no_undefined_flag_GCJ \ |
18457 | export_symbols_cmds_GCJ \ |
18458 | hardcode_libdir_flag_spec_GCJ \ |
18459 | hardcode_libdir_flag_spec_ld_GCJ \ |
18460 | hardcode_libdir_separator_GCJ \ |
18461 | hardcode_automatic_GCJ \ |
18462 | module_cmds_GCJ \ |
18463 | module_expsym_cmds_GCJ \ |
18464 | lt_cv_prog_compiler_c_o_GCJ \ |
18465 | exclude_expsyms_GCJ \ |
18466 | include_expsyms_GCJ; do |
18467 | |
18468 | case $var in |
18469 | old_archive_cmds_GCJ | \ |
18470 | old_archive_from_new_cmds_GCJ | \ |
18471 | archive_cmds_GCJ | \ |
18472 | archive_expsym_cmds_GCJ | \ |
18473 | module_cmds_GCJ | \ |
18474 | module_expsym_cmds_GCJ | \ |
18475 | old_archive_from_expsyms_cmds_GCJ | \ |
18476 | export_symbols_cmds_GCJ | \ |
18477 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18478 | postinstall_cmds | postuninstall_cmds | \ |
18479 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18480 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18481 | # Double-quote double-evaled strings. |
18482 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18483 | ;; |
18484 | *) |
18485 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18486 | ;; |
18487 | esac |
18488 | done |
18489 | |
18490 | case $lt_echo in |
18491 | *'\$0 --fallback-echo"') |
18492 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18493 | ;; |
18494 | esac |
18495 | |
18496 | cfgfile="$ofile" |
18497 | |
18498 | cat <<__EOF__ >> "$cfgfile" |
18499 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18500 | |
18501 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18502 | |
18503 | # Shell to use when invoking shell scripts. |
18504 | SHELL=$lt_SHELL |
18505 | |
18506 | # Whether or not to build shared libraries. |
18507 | build_libtool_libs=$enable_shared |
18508 | |
18509 | # Whether or not to build static libraries. |
18510 | build_old_libs=$enable_static |
18511 | |
18512 | # Whether or not to add -lc for building shared libraries. |
18513 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
18514 | |
18515 | # Whether or not to disallow shared libs when runtime libs are static |
18516 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
18517 | |
18518 | # Whether or not to optimize for fast installation. |
18519 | fast_install=$enable_fast_install |
18520 | |
18521 | # The host system. |
18522 | host_alias=$host_alias |
18523 | host=$host |
18524 | host_os=$host_os |
18525 | |
18526 | # The build system. |
18527 | build_alias=$build_alias |
18528 | build=$build |
18529 | build_os=$build_os |
18530 | |
18531 | # An echo program that does not interpret backslashes. |
18532 | echo=$lt_echo |
18533 | |
18534 | # The archiver. |
18535 | AR=$lt_AR |
18536 | AR_FLAGS=$lt_AR_FLAGS |
18537 | |
18538 | # A C compiler. |
18539 | LTCC=$lt_LTCC |
18540 | |
18541 | # LTCC compiler flags. |
18542 | LTCFLAGS=$lt_LTCFLAGS |
18543 | |
18544 | # A language-specific compiler. |
18545 | CC=$lt_compiler_GCJ |
18546 | |
18547 | # Is the compiler the GNU C compiler? |
18548 | with_gcc=$GCC_GCJ |
18549 | |
d9898ee8 |
18550 | # An ERE matcher. |
18551 | EGREP=$lt_EGREP |
18552 | |
18553 | # The linker used to build libraries. |
18554 | LD=$lt_LD_GCJ |
18555 | |
18556 | # Whether we need hard or soft links. |
18557 | LN_S=$lt_LN_S |
18558 | |
18559 | # A BSD-compatible nm program. |
18560 | NM=$lt_NM |
18561 | |
18562 | # A symbol stripping program |
18563 | STRIP=$lt_STRIP |
18564 | |
18565 | # Used to examine libraries when file_magic_cmd begins "file" |
18566 | MAGIC_CMD=$MAGIC_CMD |
18567 | |
18568 | # Used on cygwin: DLL creation program. |
18569 | DLLTOOL="$DLLTOOL" |
18570 | |
18571 | # Used on cygwin: object dumper. |
18572 | OBJDUMP="$OBJDUMP" |
18573 | |
18574 | # Used on cygwin: assembler. |
18575 | AS="$AS" |
18576 | |
18577 | # The name of the directory that contains temporary libtool files. |
18578 | objdir=$objdir |
18579 | |
18580 | # How to create reloadable object files. |
18581 | reload_flag=$lt_reload_flag |
18582 | reload_cmds=$lt_reload_cmds |
18583 | |
18584 | # How to pass a linker flag through the compiler. |
18585 | wl=$lt_lt_prog_compiler_wl_GCJ |
18586 | |
18587 | # Object file suffix (normally "o"). |
18588 | objext="$ac_objext" |
18589 | |
18590 | # Old archive suffix (normally "a"). |
18591 | libext="$libext" |
18592 | |
18593 | # Shared library suffix (normally ".so"). |
18594 | shrext_cmds='$shrext_cmds' |
18595 | |
18596 | # Executable file suffix (normally ""). |
18597 | exeext="$exeext" |
18598 | |
18599 | # Additional compiler flags for building library objects. |
18600 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
18601 | pic_mode=$pic_mode |
18602 | |
18603 | # What is the maximum length of a command? |
18604 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18605 | |
18606 | # Does compiler simultaneously support -c and -o options? |
18607 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
18608 | |
18609 | # Must we lock files when doing compilation? |
18610 | need_locks=$lt_need_locks |
18611 | |
18612 | # Do we need the lib prefix for modules? |
18613 | need_lib_prefix=$need_lib_prefix |
18614 | |
18615 | # Do we need a version for libraries? |
18616 | need_version=$need_version |
18617 | |
18618 | # Whether dlopen is supported. |
18619 | dlopen_support=$enable_dlopen |
18620 | |
18621 | # Whether dlopen of programs is supported. |
18622 | dlopen_self=$enable_dlopen_self |
18623 | |
18624 | # Whether dlopen of statically linked programs is supported. |
18625 | dlopen_self_static=$enable_dlopen_self_static |
18626 | |
18627 | # Compiler flag to prevent dynamic linking. |
18628 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
18629 | |
18630 | # Compiler flag to turn off builtin functions. |
18631 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
18632 | |
18633 | # Compiler flag to allow reflexive dlopens. |
18634 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
18635 | |
18636 | # Compiler flag to generate shared objects directly from archives. |
18637 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18638 | |
18639 | # Compiler flag to generate thread-safe objects. |
18640 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
18641 | |
18642 | # Library versioning type. |
18643 | version_type=$version_type |
18644 | |
18645 | # Format of library name prefix. |
18646 | libname_spec=$lt_libname_spec |
18647 | |
18648 | # List of archive names. First name is the real one, the rest are links. |
18649 | # The last name is the one that the linker finds with -lNAME. |
18650 | library_names_spec=$lt_library_names_spec |
18651 | |
18652 | # The coded name of the library, if different from the real name. |
18653 | soname_spec=$lt_soname_spec |
18654 | |
18655 | # Commands used to build and install an old-style archive. |
18656 | RANLIB=$lt_RANLIB |
18657 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
18658 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18659 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18660 | |
18661 | # Create an old-style archive from a shared archive. |
18662 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18663 | |
18664 | # Create a temporary old-style archive to link instead of a shared archive. |
18665 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18666 | |
18667 | # Commands used to build and install a shared archive. |
18668 | archive_cmds=$lt_archive_cmds_GCJ |
18669 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18670 | postinstall_cmds=$lt_postinstall_cmds |
18671 | postuninstall_cmds=$lt_postuninstall_cmds |
18672 | |
18673 | # Commands used to build a loadable module (assumed same as above if empty) |
18674 | module_cmds=$lt_module_cmds_GCJ |
18675 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18676 | |
18677 | # Commands to strip libraries. |
18678 | old_striplib=$lt_old_striplib |
18679 | striplib=$lt_striplib |
18680 | |
18681 | # Dependencies to place before the objects being linked to create a |
18682 | # shared library. |
dd184caf |
18683 | predep_objects=$lt_predep_objects_GCJ |
d9898ee8 |
18684 | |
18685 | # Dependencies to place after the objects being linked to create a |
18686 | # shared library. |
dd184caf |
18687 | postdep_objects=$lt_postdep_objects_GCJ |
d9898ee8 |
18688 | |
18689 | # Dependencies to place before the objects being linked to create a |
18690 | # shared library. |
18691 | predeps=$lt_predeps_GCJ |
18692 | |
18693 | # Dependencies to place after the objects being linked to create a |
18694 | # shared library. |
18695 | postdeps=$lt_postdeps_GCJ |
18696 | |
18697 | # The library search path used internally by the compiler when linking |
18698 | # a shared library. |
dd184caf |
18699 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
d9898ee8 |
18700 | |
18701 | # Method to check whether dependent libraries are shared objects. |
18702 | deplibs_check_method=$lt_deplibs_check_method |
18703 | |
18704 | # Command to use when deplibs_check_method == file_magic. |
18705 | file_magic_cmd=$lt_file_magic_cmd |
18706 | |
18707 | # Flag that allows shared libraries with undefined symbols to be built. |
18708 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18709 | |
18710 | # Flag that forces no undefined symbols. |
18711 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
18712 | |
18713 | # Commands used to finish a libtool library installation in a directory. |
18714 | finish_cmds=$lt_finish_cmds |
18715 | |
18716 | # Same as above, but a single script fragment to be evaled but not shown. |
18717 | finish_eval=$lt_finish_eval |
18718 | |
18719 | # Take the output of nm and produce a listing of raw symbols and C names. |
18720 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18721 | |
18722 | # Transform the output of nm in a proper C declaration |
18723 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18724 | |
18725 | # Transform the output of nm in a C name address pair |
18726 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18727 | |
18728 | # This is the shared library runtime path variable. |
18729 | runpath_var=$runpath_var |
18730 | |
18731 | # This is the shared library path variable. |
18732 | shlibpath_var=$shlibpath_var |
18733 | |
18734 | # Is shlibpath searched before the hard-coded library search path? |
18735 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18736 | |
18737 | # How to hardcode a shared library path into an executable. |
18738 | hardcode_action=$hardcode_action_GCJ |
18739 | |
18740 | # Whether we should hardcode library paths into libraries. |
18741 | hardcode_into_libs=$hardcode_into_libs |
18742 | |
18743 | # Flag to hardcode \$libdir into a binary during linking. |
18744 | # This must work even if \$libdir does not exist. |
18745 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
18746 | |
18747 | # If ld is used when linking, flag to hardcode \$libdir into |
18748 | # a binary during linking. This must work even if \$libdir does |
18749 | # not exist. |
18750 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
18751 | |
18752 | # Whether we need a single -rpath flag with a separated argument. |
18753 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
18754 | |
18755 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
18756 | # resulting binary. |
18757 | hardcode_direct=$hardcode_direct_GCJ |
18758 | |
18759 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
18760 | # resulting binary. |
18761 | hardcode_minus_L=$hardcode_minus_L_GCJ |
18762 | |
18763 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
18764 | # the resulting binary. |
18765 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
18766 | |
18767 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
18768 | # and all subsequent libraries and executables linked against it. |
18769 | hardcode_automatic=$hardcode_automatic_GCJ |
18770 | |
18771 | # Variables whose values should be saved in libtool wrapper scripts and |
18772 | # restored at relink time. |
18773 | variables_saved_for_relink="$variables_saved_for_relink" |
18774 | |
18775 | # Whether libtool must link a program against all its dependency libraries. |
18776 | link_all_deplibs=$link_all_deplibs_GCJ |
18777 | |
18778 | # Compile-time system search path for libraries |
dd184caf |
18779 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
18780 | |
18781 | # Run-time system search path for libraries |
18782 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
18783 | |
18784 | # Fix the shell variable \$srcfile for the compiler. |
18785 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
18786 | |
18787 | # Set to yes if exported symbols are required. |
18788 | always_export_symbols=$always_export_symbols_GCJ |
18789 | |
18790 | # The commands to list exported symbols. |
18791 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
18792 | |
18793 | # The commands to extract the exported symbol list from a shared archive. |
18794 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
18795 | |
18796 | # Symbols that should not be listed in the preloaded symbols. |
18797 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
18798 | |
18799 | # Symbols that must always be exported. |
18800 | include_expsyms=$lt_include_expsyms_GCJ |
18801 | |
18802 | # ### END LIBTOOL TAG CONFIG: $tagname |
18803 | |
18804 | __EOF__ |
18805 | |
18806 | |
18807 | else |
18808 | # If there is no Makefile yet, we rely on a make rule to execute |
18809 | # `config.status --recheck' to rerun these tests and create the |
18810 | # libtool script then. |
18811 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
18812 | if test -f "$ltmain_in"; then |
18813 | test -f Makefile && make "$ltmain" |
18814 | fi |
18815 | fi |
18816 | |
18817 | |
18818 | ac_ext=c |
18819 | ac_cpp='$CPP $CPPFLAGS' |
18820 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
18821 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
18822 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
18823 | |
18824 | CC="$lt_save_CC" |
18825 | |
18826 | else |
18827 | tagname="" |
18828 | fi |
18829 | ;; |
18830 | |
18831 | RC) |
18832 | |
18833 | |
d9898ee8 |
18834 | # Source file extension for RC test sources. |
18835 | ac_ext=rc |
18836 | |
18837 | # Object file extension for compiled RC test sources. |
18838 | objext=o |
18839 | objext_RC=$objext |
18840 | |
18841 | # Code to be used in simple compile tests |
18842 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
18843 | |
18844 | # Code to be used in simple link tests |
18845 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
18846 | |
18847 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
18848 | |
18849 | # If no C compiler was specified, use CC. |
18850 | LTCC=${LTCC-"$CC"} |
18851 | |
18852 | # If no C compiler flags were specified, use CFLAGS. |
18853 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
18854 | |
18855 | # Allow CC to be a program name with arguments. |
18856 | compiler=$CC |
18857 | |
18858 | |
18859 | # save warnings/boilerplate of simple test code |
18860 | ac_outfile=conftest.$ac_objext |
18861 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
18862 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18863 | _lt_compiler_boilerplate=`cat conftest.err` |
18864 | $rm conftest* |
18865 | |
18866 | ac_outfile=conftest.$ac_objext |
18867 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
18868 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
18869 | _lt_linker_boilerplate=`cat conftest.err` |
18870 | $rm conftest* |
18871 | |
18872 | |
18873 | # Allow CC to be a program name with arguments. |
18874 | lt_save_CC="$CC" |
18875 | CC=${RC-"windres"} |
18876 | compiler=$CC |
18877 | compiler_RC=$CC |
18878 | for cc_temp in $compiler""; do |
18879 | case $cc_temp in |
18880 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
18881 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
18882 | \-*) ;; |
18883 | *) break;; |
18884 | esac |
18885 | done |
18886 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
18887 | |
18888 | lt_cv_prog_compiler_c_o_RC=yes |
18889 | |
18890 | # The else clause should only fire when bootstrapping the |
18891 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18892 | # with your package, and you will get complaints that there are |
18893 | # no rules to generate ltmain.sh. |
18894 | if test -f "$ltmain"; then |
18895 | # See if we are running on zsh, and set the options which allow our commands through |
18896 | # without removal of \ escapes. |
18897 | if test -n "${ZSH_VERSION+set}" ; then |
18898 | setopt NO_GLOB_SUBST |
18899 | fi |
18900 | # Now quote all the things that may contain metacharacters while being |
18901 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18902 | # variables and quote the copies for generation of the libtool script. |
18903 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18904 | SED SHELL STRIP \ |
18905 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18906 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18907 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18908 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18909 | lt_cv_sys_global_symbol_to_c_name_address \ |
18910 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18911 | old_postinstall_cmds old_postuninstall_cmds \ |
18912 | compiler_RC \ |
18913 | CC_RC \ |
18914 | LD_RC \ |
18915 | lt_prog_compiler_wl_RC \ |
18916 | lt_prog_compiler_pic_RC \ |
18917 | lt_prog_compiler_static_RC \ |
18918 | lt_prog_compiler_no_builtin_flag_RC \ |
18919 | export_dynamic_flag_spec_RC \ |
18920 | thread_safe_flag_spec_RC \ |
18921 | whole_archive_flag_spec_RC \ |
18922 | enable_shared_with_static_runtimes_RC \ |
18923 | old_archive_cmds_RC \ |
18924 | old_archive_from_new_cmds_RC \ |
18925 | predep_objects_RC \ |
18926 | postdep_objects_RC \ |
18927 | predeps_RC \ |
18928 | postdeps_RC \ |
18929 | compiler_lib_search_path_RC \ |
18930 | archive_cmds_RC \ |
18931 | archive_expsym_cmds_RC \ |
18932 | postinstall_cmds_RC \ |
18933 | postuninstall_cmds_RC \ |
18934 | old_archive_from_expsyms_cmds_RC \ |
18935 | allow_undefined_flag_RC \ |
18936 | no_undefined_flag_RC \ |
18937 | export_symbols_cmds_RC \ |
18938 | hardcode_libdir_flag_spec_RC \ |
18939 | hardcode_libdir_flag_spec_ld_RC \ |
18940 | hardcode_libdir_separator_RC \ |
18941 | hardcode_automatic_RC \ |
18942 | module_cmds_RC \ |
18943 | module_expsym_cmds_RC \ |
18944 | lt_cv_prog_compiler_c_o_RC \ |
18945 | exclude_expsyms_RC \ |
18946 | include_expsyms_RC; do |
18947 | |
18948 | case $var in |
18949 | old_archive_cmds_RC | \ |
18950 | old_archive_from_new_cmds_RC | \ |
18951 | archive_cmds_RC | \ |
18952 | archive_expsym_cmds_RC | \ |
18953 | module_cmds_RC | \ |
18954 | module_expsym_cmds_RC | \ |
18955 | old_archive_from_expsyms_cmds_RC | \ |
18956 | export_symbols_cmds_RC | \ |
18957 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18958 | postinstall_cmds | postuninstall_cmds | \ |
18959 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18960 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18961 | # Double-quote double-evaled strings. |
18962 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18963 | ;; |
18964 | *) |
18965 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18966 | ;; |
18967 | esac |
18968 | done |
18969 | |
18970 | case $lt_echo in |
18971 | *'\$0 --fallback-echo"') |
18972 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18973 | ;; |
18974 | esac |
18975 | |
18976 | cfgfile="$ofile" |
18977 | |
18978 | cat <<__EOF__ >> "$cfgfile" |
18979 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18980 | |
18981 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18982 | |
18983 | # Shell to use when invoking shell scripts. |
18984 | SHELL=$lt_SHELL |
18985 | |
18986 | # Whether or not to build shared libraries. |
18987 | build_libtool_libs=$enable_shared |
18988 | |
18989 | # Whether or not to build static libraries. |
18990 | build_old_libs=$enable_static |
18991 | |
18992 | # Whether or not to add -lc for building shared libraries. |
18993 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
18994 | |
18995 | # Whether or not to disallow shared libs when runtime libs are static |
18996 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
18997 | |
18998 | # Whether or not to optimize for fast installation. |
18999 | fast_install=$enable_fast_install |
19000 | |
19001 | # The host system. |
19002 | host_alias=$host_alias |
19003 | host=$host |
19004 | host_os=$host_os |
19005 | |
19006 | # The build system. |
19007 | build_alias=$build_alias |
19008 | build=$build |
19009 | build_os=$build_os |
19010 | |
19011 | # An echo program that does not interpret backslashes. |
19012 | echo=$lt_echo |
19013 | |
19014 | # The archiver. |
19015 | AR=$lt_AR |
19016 | AR_FLAGS=$lt_AR_FLAGS |
19017 | |
19018 | # A C compiler. |
19019 | LTCC=$lt_LTCC |
19020 | |
19021 | # LTCC compiler flags. |
19022 | LTCFLAGS=$lt_LTCFLAGS |
19023 | |
19024 | # A language-specific compiler. |
19025 | CC=$lt_compiler_RC |
19026 | |
19027 | # Is the compiler the GNU C compiler? |
19028 | with_gcc=$GCC_RC |
19029 | |
d9898ee8 |
19030 | # An ERE matcher. |
19031 | EGREP=$lt_EGREP |
19032 | |
19033 | # The linker used to build libraries. |
19034 | LD=$lt_LD_RC |
19035 | |
19036 | # Whether we need hard or soft links. |
19037 | LN_S=$lt_LN_S |
19038 | |
19039 | # A BSD-compatible nm program. |
19040 | NM=$lt_NM |
19041 | |
19042 | # A symbol stripping program |
19043 | STRIP=$lt_STRIP |
19044 | |
19045 | # Used to examine libraries when file_magic_cmd begins "file" |
19046 | MAGIC_CMD=$MAGIC_CMD |
19047 | |
19048 | # Used on cygwin: DLL creation program. |
19049 | DLLTOOL="$DLLTOOL" |
19050 | |
19051 | # Used on cygwin: object dumper. |
19052 | OBJDUMP="$OBJDUMP" |
19053 | |
19054 | # Used on cygwin: assembler. |
19055 | AS="$AS" |
19056 | |
19057 | # The name of the directory that contains temporary libtool files. |
19058 | objdir=$objdir |
19059 | |
19060 | # How to create reloadable object files. |
19061 | reload_flag=$lt_reload_flag |
19062 | reload_cmds=$lt_reload_cmds |
19063 | |
19064 | # How to pass a linker flag through the compiler. |
19065 | wl=$lt_lt_prog_compiler_wl_RC |
19066 | |
19067 | # Object file suffix (normally "o"). |
19068 | objext="$ac_objext" |
19069 | |
19070 | # Old archive suffix (normally "a"). |
19071 | libext="$libext" |
19072 | |
19073 | # Shared library suffix (normally ".so"). |
19074 | shrext_cmds='$shrext_cmds' |
19075 | |
19076 | # Executable file suffix (normally ""). |
19077 | exeext="$exeext" |
19078 | |
19079 | # Additional compiler flags for building library objects. |
19080 | pic_flag=$lt_lt_prog_compiler_pic_RC |
19081 | pic_mode=$pic_mode |
19082 | |
19083 | # What is the maximum length of a command? |
19084 | max_cmd_len=$lt_cv_sys_max_cmd_len |
19085 | |
19086 | # Does compiler simultaneously support -c and -o options? |
19087 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
19088 | |
19089 | # Must we lock files when doing compilation? |
19090 | need_locks=$lt_need_locks |
19091 | |
19092 | # Do we need the lib prefix for modules? |
19093 | need_lib_prefix=$need_lib_prefix |
19094 | |
19095 | # Do we need a version for libraries? |
19096 | need_version=$need_version |
19097 | |
19098 | # Whether dlopen is supported. |
19099 | dlopen_support=$enable_dlopen |
19100 | |
19101 | # Whether dlopen of programs is supported. |
19102 | dlopen_self=$enable_dlopen_self |
19103 | |
19104 | # Whether dlopen of statically linked programs is supported. |
19105 | dlopen_self_static=$enable_dlopen_self_static |
19106 | |
19107 | # Compiler flag to prevent dynamic linking. |
19108 | link_static_flag=$lt_lt_prog_compiler_static_RC |
19109 | |
19110 | # Compiler flag to turn off builtin functions. |
19111 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
19112 | |
19113 | # Compiler flag to allow reflexive dlopens. |
19114 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
19115 | |
19116 | # Compiler flag to generate shared objects directly from archives. |
19117 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
19118 | |
19119 | # Compiler flag to generate thread-safe objects. |
19120 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
19121 | |
19122 | # Library versioning type. |
19123 | version_type=$version_type |
19124 | |
19125 | # Format of library name prefix. |
19126 | libname_spec=$lt_libname_spec |
19127 | |
19128 | # List of archive names. First name is the real one, the rest are links. |
19129 | # The last name is the one that the linker finds with -lNAME. |
19130 | library_names_spec=$lt_library_names_spec |
19131 | |
19132 | # The coded name of the library, if different from the real name. |
19133 | soname_spec=$lt_soname_spec |
19134 | |
19135 | # Commands used to build and install an old-style archive. |
19136 | RANLIB=$lt_RANLIB |
19137 | old_archive_cmds=$lt_old_archive_cmds_RC |
19138 | old_postinstall_cmds=$lt_old_postinstall_cmds |
19139 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19140 | |
19141 | # Create an old-style archive from a shared archive. |
19142 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
19143 | |
19144 | # Create a temporary old-style archive to link instead of a shared archive. |
19145 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
19146 | |
19147 | # Commands used to build and install a shared archive. |
19148 | archive_cmds=$lt_archive_cmds_RC |
19149 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
19150 | postinstall_cmds=$lt_postinstall_cmds |
19151 | postuninstall_cmds=$lt_postuninstall_cmds |
19152 | |
19153 | # Commands used to build a loadable module (assumed same as above if empty) |
19154 | module_cmds=$lt_module_cmds_RC |
19155 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
19156 | |
19157 | # Commands to strip libraries. |
19158 | old_striplib=$lt_old_striplib |
19159 | striplib=$lt_striplib |
19160 | |
19161 | # Dependencies to place before the objects being linked to create a |
19162 | # shared library. |
dd184caf |
19163 | predep_objects=$lt_predep_objects_RC |
d9898ee8 |
19164 | |
19165 | # Dependencies to place after the objects being linked to create a |
19166 | # shared library. |
dd184caf |
19167 | postdep_objects=$lt_postdep_objects_RC |
d9898ee8 |
19168 | |
19169 | # Dependencies to place before the objects being linked to create a |
19170 | # shared library. |
19171 | predeps=$lt_predeps_RC |
19172 | |
19173 | # Dependencies to place after the objects being linked to create a |
19174 | # shared library. |
19175 | postdeps=$lt_postdeps_RC |
19176 | |
19177 | # The library search path used internally by the compiler when linking |
19178 | # a shared library. |
dd184caf |
19179 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
d9898ee8 |
19180 | |
19181 | # Method to check whether dependent libraries are shared objects. |
19182 | deplibs_check_method=$lt_deplibs_check_method |
19183 | |
19184 | # Command to use when deplibs_check_method == file_magic. |
19185 | file_magic_cmd=$lt_file_magic_cmd |
19186 | |
19187 | # Flag that allows shared libraries with undefined symbols to be built. |
19188 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
19189 | |
19190 | # Flag that forces no undefined symbols. |
19191 | no_undefined_flag=$lt_no_undefined_flag_RC |
19192 | |
19193 | # Commands used to finish a libtool library installation in a directory. |
19194 | finish_cmds=$lt_finish_cmds |
19195 | |
19196 | # Same as above, but a single script fragment to be evaled but not shown. |
19197 | finish_eval=$lt_finish_eval |
19198 | |
19199 | # Take the output of nm and produce a listing of raw symbols and C names. |
19200 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19201 | |
19202 | # Transform the output of nm in a proper C declaration |
19203 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19204 | |
19205 | # Transform the output of nm in a C name address pair |
19206 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19207 | |
19208 | # This is the shared library runtime path variable. |
19209 | runpath_var=$runpath_var |
19210 | |
19211 | # This is the shared library path variable. |
19212 | shlibpath_var=$shlibpath_var |
19213 | |
19214 | # Is shlibpath searched before the hard-coded library search path? |
19215 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19216 | |
19217 | # How to hardcode a shared library path into an executable. |
19218 | hardcode_action=$hardcode_action_RC |
19219 | |
19220 | # Whether we should hardcode library paths into libraries. |
19221 | hardcode_into_libs=$hardcode_into_libs |
19222 | |
19223 | # Flag to hardcode \$libdir into a binary during linking. |
19224 | # This must work even if \$libdir does not exist. |
19225 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
19226 | |
19227 | # If ld is used when linking, flag to hardcode \$libdir into |
19228 | # a binary during linking. This must work even if \$libdir does |
19229 | # not exist. |
19230 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
19231 | |
19232 | # Whether we need a single -rpath flag with a separated argument. |
19233 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
19234 | |
19235 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19236 | # resulting binary. |
19237 | hardcode_direct=$hardcode_direct_RC |
19238 | |
19239 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19240 | # resulting binary. |
19241 | hardcode_minus_L=$hardcode_minus_L_RC |
19242 | |
19243 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19244 | # the resulting binary. |
19245 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
19246 | |
19247 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
19248 | # and all subsequent libraries and executables linked against it. |
19249 | hardcode_automatic=$hardcode_automatic_RC |
19250 | |
19251 | # Variables whose values should be saved in libtool wrapper scripts and |
19252 | # restored at relink time. |
19253 | variables_saved_for_relink="$variables_saved_for_relink" |
19254 | |
19255 | # Whether libtool must link a program against all its dependency libraries. |
19256 | link_all_deplibs=$link_all_deplibs_RC |
19257 | |
19258 | # Compile-time system search path for libraries |
dd184caf |
19259 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
d9898ee8 |
19260 | |
19261 | # Run-time system search path for libraries |
19262 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19263 | |
19264 | # Fix the shell variable \$srcfile for the compiler. |
19265 | fix_srcfile_path="$fix_srcfile_path_RC" |
19266 | |
19267 | # Set to yes if exported symbols are required. |
19268 | always_export_symbols=$always_export_symbols_RC |
19269 | |
19270 | # The commands to list exported symbols. |
19271 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
19272 | |
19273 | # The commands to extract the exported symbol list from a shared archive. |
19274 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19275 | |
19276 | # Symbols that should not be listed in the preloaded symbols. |
19277 | exclude_expsyms=$lt_exclude_expsyms_RC |
19278 | |
19279 | # Symbols that must always be exported. |
19280 | include_expsyms=$lt_include_expsyms_RC |
19281 | |
19282 | # ### END LIBTOOL TAG CONFIG: $tagname |
19283 | |
19284 | __EOF__ |
19285 | |
19286 | |
19287 | else |
19288 | # If there is no Makefile yet, we rely on a make rule to execute |
19289 | # `config.status --recheck' to rerun these tests and create the |
19290 | # libtool script then. |
19291 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19292 | if test -f "$ltmain_in"; then |
19293 | test -f Makefile && make "$ltmain" |
19294 | fi |
19295 | fi |
19296 | |
19297 | |
19298 | ac_ext=c |
19299 | ac_cpp='$CPP $CPPFLAGS' |
19300 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19301 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19302 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19303 | |
19304 | CC="$lt_save_CC" |
19305 | |
19306 | ;; |
19307 | |
19308 | *) |
19309 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
19310 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
19311 | { (exit 1); exit 1; }; } |
19312 | ;; |
19313 | esac |
19314 | |
19315 | # Append the new tag name to the list of available tags. |
19316 | if test -n "$tagname" ; then |
19317 | available_tags="$available_tags $tagname" |
19318 | fi |
19319 | fi |
19320 | done |
19321 | IFS="$lt_save_ifs" |
19322 | |
19323 | # Now substitute the updated list of available tags. |
19324 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
19325 | mv "${ofile}T" "$ofile" |
19326 | chmod +x "$ofile" |
19327 | else |
19328 | rm -f "${ofile}T" |
19329 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
19330 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
19331 | { (exit 1); exit 1; }; } |
19332 | fi |
19333 | fi |
19334 | |
19335 | |
19336 | |
19337 | # This can be used to rebuild libtool when needed |
19338 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
19339 | |
19340 | # Always use our own libtool. |
19341 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
19342 | |
19343 | # Prevent multiple expansion |
19344 | |
19345 | |
19346 | |
19347 | |
19348 | |
19349 | |
19350 | |
19351 | |
19352 | |
19353 | |
19354 | |
19355 | |
19356 | |
19357 | |
19358 | |
19359 | |
19360 | |
19361 | |
19362 | |
19363 | |
19364 | |
19365 | if test "$GCC" = "yes" |
19366 | then |
19367 | CFLAGS="$CFLAGS -Wall" |
19368 | fi |
19369 | |
19370 | |
19371 | |
19372 | |
19373 | for ac_header in unistd.h |
19374 | do |
19375 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
dd184caf |
19376 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
19377 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19378 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
19379 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19381 | fi |
dd184caf |
19382 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19383 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19384 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19385 | else |
19386 | # Is the header compilable? |
dd184caf |
19387 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
19388 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
d9898ee8 |
19389 | cat >conftest.$ac_ext <<_ACEOF |
19390 | /* confdefs.h. */ |
19391 | _ACEOF |
19392 | cat confdefs.h >>conftest.$ac_ext |
19393 | cat >>conftest.$ac_ext <<_ACEOF |
19394 | /* end confdefs.h. */ |
19395 | $ac_includes_default |
19396 | #include <$ac_header> |
19397 | _ACEOF |
19398 | rm -f conftest.$ac_objext |
dd184caf |
19399 | if { (ac_try="$ac_compile" |
19400 | case "(($ac_try" in |
19401 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19402 | *) ac_try_echo=$ac_try;; |
19403 | esac |
19404 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19405 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19406 | ac_status=$? |
19407 | grep -v '^ *+' conftest.er1 >conftest.err |
19408 | rm -f conftest.er1 |
19409 | cat conftest.err >&5 |
19410 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19411 | (exit $ac_status); } && { |
19412 | test -z "$ac_c_werror_flag" || |
19413 | test ! -s conftest.err |
19414 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19415 | ac_header_compiler=yes |
19416 | else |
19417 | echo "$as_me: failed program was:" >&5 |
19418 | sed 's/^/| /' conftest.$ac_ext >&5 |
19419 | |
dd184caf |
19420 | ac_header_compiler=no |
d9898ee8 |
19421 | fi |
dd184caf |
19422 | |
19423 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
19424 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
19425 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
d9898ee8 |
19426 | |
19427 | # Is the header present? |
dd184caf |
19428 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
19429 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
d9898ee8 |
19430 | cat >conftest.$ac_ext <<_ACEOF |
19431 | /* confdefs.h. */ |
19432 | _ACEOF |
19433 | cat confdefs.h >>conftest.$ac_ext |
19434 | cat >>conftest.$ac_ext <<_ACEOF |
19435 | /* end confdefs.h. */ |
19436 | #include <$ac_header> |
19437 | _ACEOF |
dd184caf |
19438 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
19439 | case "(($ac_try" in |
19440 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19441 | *) ac_try_echo=$ac_try;; |
19442 | esac |
19443 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19444 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
d9898ee8 |
19445 | ac_status=$? |
19446 | grep -v '^ *+' conftest.er1 >conftest.err |
19447 | rm -f conftest.er1 |
19448 | cat conftest.err >&5 |
19449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19450 | (exit $ac_status); } >/dev/null && { |
19451 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
19452 | test ! -s conftest.err |
19453 | }; then |
d9898ee8 |
19454 | ac_header_preproc=yes |
19455 | else |
19456 | echo "$as_me: failed program was:" >&5 |
19457 | sed 's/^/| /' conftest.$ac_ext >&5 |
19458 | |
19459 | ac_header_preproc=no |
19460 | fi |
dd184caf |
19461 | |
d9898ee8 |
19462 | rm -f conftest.err conftest.$ac_ext |
dd184caf |
19463 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
19464 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
d9898ee8 |
19465 | |
19466 | # So? What about this header? |
19467 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
19468 | yes:no: ) |
19469 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
19470 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
19471 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
19472 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
19473 | ac_header_preproc=yes |
19474 | ;; |
19475 | no:yes:* ) |
19476 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
19477 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
19478 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
19479 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
19480 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
19481 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
19482 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
19483 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
19484 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
19485 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
19486 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
19487 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
dd184caf |
19488 | ( cat <<\_ASBOX |
d9898ee8 |
19489 | ## -------------------------------------------------- ## |
19490 | ## Report this to courier-users@lists.sourceforge.net ## |
19491 | ## -------------------------------------------------- ## |
19492 | _ASBOX |
dd184caf |
19493 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
d9898ee8 |
19494 | ;; |
19495 | esac |
dd184caf |
19496 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
19497 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
19498 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19499 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19500 | else |
19501 | eval "$as_ac_Header=\$ac_header_preproc" |
19502 | fi |
dd184caf |
19503 | ac_res=`eval echo '${'$as_ac_Header'}'` |
19504 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19505 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19506 | |
19507 | fi |
19508 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
19509 | cat >>confdefs.h <<_ACEOF |
19510 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
19511 | _ACEOF |
19512 | |
19513 | fi |
19514 | |
19515 | done |
19516 | |
19517 | |
dd184caf |
19518 | { echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
19519 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6; } |
d9898ee8 |
19520 | if test "${ac_cv_type_uid_t+set}" = set; then |
19521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19522 | else |
19523 | cat >conftest.$ac_ext <<_ACEOF |
19524 | /* confdefs.h. */ |
19525 | _ACEOF |
19526 | cat confdefs.h >>conftest.$ac_ext |
19527 | cat >>conftest.$ac_ext <<_ACEOF |
19528 | /* end confdefs.h. */ |
19529 | #include <sys/types.h> |
19530 | |
19531 | _ACEOF |
19532 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
19533 | $EGREP "uid_t" >/dev/null 2>&1; then |
19534 | ac_cv_type_uid_t=yes |
19535 | else |
19536 | ac_cv_type_uid_t=no |
19537 | fi |
19538 | rm -f conftest* |
19539 | |
19540 | fi |
dd184caf |
19541 | { echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
19542 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6; } |
d9898ee8 |
19543 | if test $ac_cv_type_uid_t = no; then |
19544 | |
19545 | cat >>confdefs.h <<\_ACEOF |
19546 | #define uid_t int |
19547 | _ACEOF |
19548 | |
19549 | |
19550 | cat >>confdefs.h <<\_ACEOF |
19551 | #define gid_t int |
19552 | _ACEOF |
19553 | |
19554 | fi |
19555 | |
dd184caf |
19556 | { echo "$as_me:$LINENO: checking for pid_t" >&5 |
19557 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; } |
d9898ee8 |
19558 | if test "${ac_cv_type_pid_t+set}" = set; then |
19559 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19560 | else |
19561 | cat >conftest.$ac_ext <<_ACEOF |
19562 | /* confdefs.h. */ |
19563 | _ACEOF |
19564 | cat confdefs.h >>conftest.$ac_ext |
19565 | cat >>conftest.$ac_ext <<_ACEOF |
19566 | /* end confdefs.h. */ |
19567 | $ac_includes_default |
dd184caf |
19568 | typedef pid_t ac__type_new_; |
d9898ee8 |
19569 | int |
19570 | main () |
19571 | { |
dd184caf |
19572 | if ((ac__type_new_ *) 0) |
d9898ee8 |
19573 | return 0; |
dd184caf |
19574 | if (sizeof (ac__type_new_)) |
d9898ee8 |
19575 | return 0; |
19576 | ; |
19577 | return 0; |
19578 | } |
19579 | _ACEOF |
19580 | rm -f conftest.$ac_objext |
dd184caf |
19581 | if { (ac_try="$ac_compile" |
19582 | case "(($ac_try" in |
19583 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19584 | *) ac_try_echo=$ac_try;; |
19585 | esac |
19586 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19587 | (eval "$ac_compile") 2>conftest.er1 |
d9898ee8 |
19588 | ac_status=$? |
19589 | grep -v '^ *+' conftest.er1 >conftest.err |
19590 | rm -f conftest.er1 |
19591 | cat conftest.err >&5 |
19592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19593 | (exit $ac_status); } && { |
19594 | test -z "$ac_c_werror_flag" || |
19595 | test ! -s conftest.err |
19596 | } && test -s conftest.$ac_objext; then |
d9898ee8 |
19597 | ac_cv_type_pid_t=yes |
19598 | else |
19599 | echo "$as_me: failed program was:" >&5 |
19600 | sed 's/^/| /' conftest.$ac_ext >&5 |
19601 | |
dd184caf |
19602 | ac_cv_type_pid_t=no |
d9898ee8 |
19603 | fi |
dd184caf |
19604 | |
19605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
d9898ee8 |
19606 | fi |
dd184caf |
19607 | { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
19608 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6; } |
d9898ee8 |
19609 | if test $ac_cv_type_pid_t = yes; then |
19610 | : |
19611 | else |
19612 | |
19613 | cat >>confdefs.h <<_ACEOF |
19614 | #define pid_t int |
19615 | _ACEOF |
19616 | |
19617 | fi |
19618 | |
19619 | |
19620 | |
19621 | |
19622 | |
19623 | for ac_func in setgroups initgroups |
19624 | do |
19625 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
dd184caf |
19626 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
19627 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
19628 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
d9898ee8 |
19629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19630 | else |
19631 | cat >conftest.$ac_ext <<_ACEOF |
19632 | /* confdefs.h. */ |
19633 | _ACEOF |
19634 | cat confdefs.h >>conftest.$ac_ext |
19635 | cat >>conftest.$ac_ext <<_ACEOF |
19636 | /* end confdefs.h. */ |
19637 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
19638 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
19639 | #define $ac_func innocuous_$ac_func |
19640 | |
19641 | /* System header to define __stub macros and hopefully few prototypes, |
19642 | which can conflict with char $ac_func (); below. |
19643 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
19644 | <limits.h> exists even on freestanding compilers. */ |
19645 | |
19646 | #ifdef __STDC__ |
19647 | # include <limits.h> |
19648 | #else |
19649 | # include <assert.h> |
19650 | #endif |
19651 | |
19652 | #undef $ac_func |
19653 | |
dd184caf |
19654 | /* Override any GCC internal prototype to avoid an error. |
19655 | Use char because int might match the return type of a GCC |
19656 | builtin and then its argument prototype would still apply. */ |
d9898ee8 |
19657 | #ifdef __cplusplus |
19658 | extern "C" |
d9898ee8 |
19659 | #endif |
d9898ee8 |
19660 | char $ac_func (); |
19661 | /* The GNU C library defines this for functions which it implements |
19662 | to always fail with ENOSYS. Some functions are actually named |
19663 | something starting with __ and the normal name is an alias. */ |
dd184caf |
19664 | #if defined __stub_$ac_func || defined __stub___$ac_func |
d9898ee8 |
19665 | choke me |
d9898ee8 |
19666 | #endif |
19667 | |
19668 | int |
19669 | main () |
19670 | { |
dd184caf |
19671 | return $ac_func (); |
d9898ee8 |
19672 | ; |
19673 | return 0; |
19674 | } |
19675 | _ACEOF |
19676 | rm -f conftest.$ac_objext conftest$ac_exeext |
dd184caf |
19677 | if { (ac_try="$ac_link" |
19678 | case "(($ac_try" in |
19679 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19680 | *) ac_try_echo=$ac_try;; |
19681 | esac |
19682 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19683 | (eval "$ac_link") 2>conftest.er1 |
d9898ee8 |
19684 | ac_status=$? |
19685 | grep -v '^ *+' conftest.er1 >conftest.err |
19686 | rm -f conftest.er1 |
19687 | cat conftest.err >&5 |
19688 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
dd184caf |
19689 | (exit $ac_status); } && { |
19690 | test -z "$ac_c_werror_flag" || |
19691 | test ! -s conftest.err |
19692 | } && test -s conftest$ac_exeext && |
19693 | $as_test_x conftest$ac_exeext; then |
d9898ee8 |
19694 | eval "$as_ac_var=yes" |
19695 | else |
19696 | echo "$as_me: failed program was:" >&5 |
19697 | sed 's/^/| /' conftest.$ac_ext >&5 |
19698 | |
dd184caf |
19699 | eval "$as_ac_var=no" |
d9898ee8 |
19700 | fi |
dd184caf |
19701 | |
19702 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
d9898ee8 |
19703 | conftest$ac_exeext conftest.$ac_ext |
19704 | fi |
dd184caf |
19705 | ac_res=`eval echo '${'$as_ac_var'}'` |
19706 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
19707 | echo "${ECHO_T}$ac_res" >&6; } |
d9898ee8 |
19708 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
19709 | cat >>confdefs.h <<_ACEOF |
19710 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
19711 | _ACEOF |
19712 | |
19713 | fi |
19714 | done |
19715 | |
dd184caf |
19716 | ac_config_files="$ac_config_files Makefile" |
19717 | |
d9898ee8 |
19718 | cat >confcache <<\_ACEOF |
19719 | # This file is a shell script that caches the results of configure |
19720 | # tests run on this system so they can be shared between configure |
19721 | # scripts and configure runs, see configure's option --config-cache. |
19722 | # It is not useful on other systems. If it contains results you don't |
19723 | # want to keep, you may remove or edit it. |
19724 | # |
19725 | # config.status only pays attention to the cache file if you give it |
19726 | # the --recheck option to rerun configure. |
19727 | # |
19728 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
19729 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
19730 | # following values. |
19731 | |
19732 | _ACEOF |
19733 | |
19734 | # The following way of writing the cache mishandles newlines in values, |
19735 | # but we know of no workaround that is simple, portable, and efficient. |
dd184caf |
19736 | # So, we kill variables containing newlines. |
d9898ee8 |
19737 | # Ultrix sh set writes to stderr and can't be redirected directly, |
19738 | # and sets the high bit in the cache file unless we assign to the vars. |
dd184caf |
19739 | ( |
19740 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
19741 | eval ac_val=\$$ac_var |
19742 | case $ac_val in #( |
19743 | *${as_nl}*) |
19744 | case $ac_var in #( |
19745 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
19746 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
19747 | esac |
19748 | case $ac_var in #( |
19749 | _ | IFS | as_nl) ;; #( |
19750 | *) $as_unset $ac_var ;; |
19751 | esac ;; |
19752 | esac |
19753 | done |
19754 | |
d9898ee8 |
19755 | (set) 2>&1 | |
dd184caf |
19756 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
19757 | *${as_nl}ac_space=\ *) |
d9898ee8 |
19758 | # `set' does not quote correctly, so add quotes (double-quote |
19759 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
19760 | sed -n \ |
19761 | "s/'/'\\\\''/g; |
19762 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
dd184caf |
19763 | ;; #( |
d9898ee8 |
19764 | *) |
19765 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
dd184caf |
19766 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
d9898ee8 |
19767 | ;; |
dd184caf |
19768 | esac | |
19769 | sort |
19770 | ) | |
d9898ee8 |
19771 | sed ' |
dd184caf |
19772 | /^ac_cv_env_/b end |
d9898ee8 |
19773 | t clear |
dd184caf |
19774 | :clear |
d9898ee8 |
19775 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
19776 | t end |
dd184caf |
19777 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
19778 | :end' >>confcache |
19779 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
19780 | if test -w "$cache_file"; then |
19781 | test "x$cache_file" != "x/dev/null" && |
19782 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
19783 | echo "$as_me: updating cache $cache_file" >&6;} |
d9898ee8 |
19784 | cat confcache >$cache_file |
19785 | else |
dd184caf |
19786 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
19787 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
d9898ee8 |
19788 | fi |
19789 | fi |
19790 | rm -f confcache |
19791 | |
19792 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
19793 | # Let make expand exec_prefix. |
19794 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
19795 | |
d9898ee8 |
19796 | DEFS=-DHAVE_CONFIG_H |
19797 | |
19798 | ac_libobjs= |
19799 | ac_ltlibobjs= |
19800 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
19801 | # 1. Remove the extension, and $U if already installed. |
dd184caf |
19802 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
19803 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
19804 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
19805 | # will be set to the directory where LIBOBJS objects are built. |
19806 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
19807 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
d9898ee8 |
19808 | done |
19809 | LIBOBJS=$ac_libobjs |
19810 | |
19811 | LTLIBOBJS=$ac_ltlibobjs |
19812 | |
19813 | |
19814 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
19815 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
19816 | Usually this means the macro was only invoked conditionally." >&5 |
19817 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
19818 | Usually this means the macro was only invoked conditionally." >&2;} |
19819 | { (exit 1); exit 1; }; } |
19820 | fi |
19821 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
19822 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
19823 | Usually this means the macro was only invoked conditionally." >&5 |
19824 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
19825 | Usually this means the macro was only invoked conditionally." >&2;} |
19826 | { (exit 1); exit 1; }; } |
19827 | fi |
19828 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
19829 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
19830 | Usually this means the macro was only invoked conditionally." >&5 |
19831 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
19832 | Usually this means the macro was only invoked conditionally." >&2;} |
19833 | { (exit 1); exit 1; }; } |
19834 | fi |
19835 | |
19836 | : ${CONFIG_STATUS=./config.status} |
19837 | ac_clean_files_save=$ac_clean_files |
19838 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
19839 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
19840 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
19841 | cat >$CONFIG_STATUS <<_ACEOF |
19842 | #! $SHELL |
19843 | # Generated by $as_me. |
19844 | # Run this file to recreate the current configuration. |
19845 | # Compiler output produced by configure, useful for debugging |
19846 | # configure, is in config.log if it exists. |
19847 | |
19848 | debug=false |
19849 | ac_cs_recheck=false |
19850 | ac_cs_silent=false |
19851 | SHELL=\${CONFIG_SHELL-$SHELL} |
19852 | _ACEOF |
19853 | |
19854 | cat >>$CONFIG_STATUS <<\_ACEOF |
19855 | ## --------------------- ## |
19856 | ## M4sh Initialization. ## |
19857 | ## --------------------- ## |
19858 | |
dd184caf |
19859 | # Be more Bourne compatible |
19860 | DUALCASE=1; export DUALCASE # for MKS sh |
d9898ee8 |
19861 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
19862 | emulate sh |
19863 | NULLCMD=: |
19864 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19865 | # is contrary to our usage. Disable this feature. |
19866 | alias -g '${1+"$@"}'='"$@"' |
dd184caf |
19867 | setopt NO_GLOB_SUBST |
19868 | else |
19869 | case `(set -o) 2>/dev/null` in |
19870 | *posix*) set -o posix ;; |
19871 | esac |
19872 | |
19873 | fi |
19874 | |
19875 | |
19876 | |
19877 | |
19878 | # PATH needs CR |
19879 | # Avoid depending upon Character Ranges. |
19880 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
19881 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
19882 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
19883 | as_cr_digits='0123456789' |
19884 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
19885 | |
19886 | # The user is always right. |
19887 | if test "${PATH_SEPARATOR+set}" != set; then |
19888 | echo "#! /bin/sh" >conf$$.sh |
19889 | echo "exit 0" >>conf$$.sh |
19890 | chmod +x conf$$.sh |
19891 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
19892 | PATH_SEPARATOR=';' |
19893 | else |
19894 | PATH_SEPARATOR=: |
19895 | fi |
19896 | rm -f conf$$.sh |
d9898ee8 |
19897 | fi |
d9898ee8 |
19898 | |
19899 | # Support unset when possible. |
19900 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
19901 | as_unset=unset |
19902 | else |
19903 | as_unset=false |
19904 | fi |
19905 | |
19906 | |
dd184caf |
19907 | # IFS |
19908 | # We need space, tab and new line, in precisely that order. Quoting is |
19909 | # there to prevent editors from complaining about space-tab. |
19910 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
19911 | # splitting by setting IFS to empty value.) |
19912 | as_nl=' |
19913 | ' |
19914 | IFS=" "" $as_nl" |
19915 | |
19916 | # Find who we are. Look in the path if we contain no directory separator. |
19917 | case $0 in |
19918 | *[\\/]* ) as_myself=$0 ;; |
19919 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19920 | for as_dir in $PATH |
19921 | do |
19922 | IFS=$as_save_IFS |
19923 | test -z "$as_dir" && as_dir=. |
19924 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
19925 | done |
19926 | IFS=$as_save_IFS |
19927 | |
19928 | ;; |
19929 | esac |
19930 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
19931 | # in which case we are not to be found in the path. |
19932 | if test "x$as_myself" = x; then |
19933 | as_myself=$0 |
19934 | fi |
19935 | if test ! -f "$as_myself"; then |
19936 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
19937 | { (exit 1); exit 1; } |
19938 | fi |
19939 | |
d9898ee8 |
19940 | # Work around bugs in pre-3.0 UWIN ksh. |
dd184caf |
19941 | for as_var in ENV MAIL MAILPATH |
19942 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
19943 | done |
d9898ee8 |
19944 | PS1='$ ' |
19945 | PS2='> ' |
19946 | PS4='+ ' |
19947 | |
19948 | # NLS nuisances. |
19949 | for as_var in \ |
19950 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
19951 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
19952 | LC_TELEPHONE LC_TIME |
19953 | do |
19954 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
19955 | eval $as_var=C; export $as_var |
19956 | else |
dd184caf |
19957 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
d9898ee8 |
19958 | fi |
19959 | done |
19960 | |
19961 | # Required to use basename. |
dd184caf |
19962 | if expr a : '\(a\)' >/dev/null 2>&1 && |
19963 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
19964 | as_expr=expr |
19965 | else |
19966 | as_expr=false |
19967 | fi |
19968 | |
dd184caf |
19969 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
d9898ee8 |
19970 | as_basename=basename |
19971 | else |
19972 | as_basename=false |
19973 | fi |
19974 | |
19975 | |
19976 | # Name of the executable. |
dd184caf |
19977 | as_me=`$as_basename -- "$0" || |
d9898ee8 |
19978 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
19979 | X"$0" : 'X\(//\)$' \| \ |
dd184caf |
19980 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
19981 | echo X/"$0" | |
dd184caf |
19982 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
19983 | s//\1/ |
19984 | q |
19985 | } |
19986 | /^X\/\(\/\/\)$/{ |
19987 | s//\1/ |
19988 | q |
19989 | } |
19990 | /^X\/\(\/\).*/{ |
19991 | s//\1/ |
19992 | q |
19993 | } |
19994 | s/.*/./; q'` |
d9898ee8 |
19995 | |
dd184caf |
19996 | # CDPATH. |
19997 | $as_unset CDPATH |
d9898ee8 |
19998 | |
19999 | |
d9898ee8 |
20000 | |
d9898ee8 |
20001 | as_lineno_1=$LINENO |
20002 | as_lineno_2=$LINENO |
d9898ee8 |
20003 | test "x$as_lineno_1" != "x$as_lineno_2" && |
dd184caf |
20004 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
d9898ee8 |
20005 | |
20006 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
20007 | # uniformly replaced by the line number. The first 'sed' inserts a |
dd184caf |
20008 | # line-number line after each line using $LINENO; the second 'sed' |
20009 | # does the real work. The second script uses 'N' to pair each |
20010 | # line-number line with the line containing $LINENO, and appends |
20011 | # trailing '-' during substitution so that $LINENO is not a special |
20012 | # case at line end. |
d9898ee8 |
20013 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
dd184caf |
20014 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
20015 | # E. McMahon (1931-1989) for sed's syntax. :-) |
20016 | sed -n ' |
20017 | p |
20018 | /[$]LINENO/= |
20019 | ' <$as_myself | |
d9898ee8 |
20020 | sed ' |
dd184caf |
20021 | s/[$]LINENO.*/&-/ |
20022 | t lineno |
20023 | b |
20024 | :lineno |
d9898ee8 |
20025 | N |
dd184caf |
20026 | :loop |
20027 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
d9898ee8 |
20028 | t loop |
dd184caf |
20029 | s/-\n.*// |
d9898ee8 |
20030 | ' >$as_me.lineno && |
dd184caf |
20031 | chmod +x "$as_me.lineno" || |
20032 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
d9898ee8 |
20033 | { (exit 1); exit 1; }; } |
20034 | |
20035 | # Don't try to exec as it changes $[0], causing all sort of problems |
20036 | # (the dirname of $[0] is not the place where we might find the |
dd184caf |
20037 | # original and so on. Autoconf is especially sensitive to this). |
20038 | . "./$as_me.lineno" |
d9898ee8 |
20039 | # Exit status is that of the last command. |
20040 | exit |
20041 | } |
20042 | |
20043 | |
dd184caf |
20044 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
20045 | as_dirname=dirname |
20046 | else |
20047 | as_dirname=false |
20048 | fi |
20049 | |
20050 | ECHO_C= ECHO_N= ECHO_T= |
20051 | case `echo -n x` in |
20052 | -n*) |
20053 | case `echo 'x\c'` in |
20054 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
20055 | *) ECHO_C='\c';; |
20056 | esac;; |
20057 | *) |
20058 | ECHO_N='-n';; |
d9898ee8 |
20059 | esac |
20060 | |
dd184caf |
20061 | if expr a : '\(a\)' >/dev/null 2>&1 && |
20062 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
d9898ee8 |
20063 | as_expr=expr |
20064 | else |
20065 | as_expr=false |
20066 | fi |
20067 | |
20068 | rm -f conf$$ conf$$.exe conf$$.file |
dd184caf |
20069 | if test -d conf$$.dir; then |
20070 | rm -f conf$$.dir/conf$$.file |
20071 | else |
20072 | rm -f conf$$.dir |
20073 | mkdir conf$$.dir |
20074 | fi |
d9898ee8 |
20075 | echo >conf$$.file |
20076 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
dd184caf |
20077 | as_ln_s='ln -s' |
20078 | # ... but there are two gotchas: |
20079 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
20080 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
20081 | # In both cases, we have to default to `cp -p'. |
20082 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
d9898ee8 |
20083 | as_ln_s='cp -p' |
d9898ee8 |
20084 | elif ln conf$$.file conf$$ 2>/dev/null; then |
20085 | as_ln_s=ln |
20086 | else |
20087 | as_ln_s='cp -p' |
20088 | fi |
dd184caf |
20089 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
20090 | rmdir conf$$.dir 2>/dev/null |
d9898ee8 |
20091 | |
20092 | if mkdir -p . 2>/dev/null; then |
20093 | as_mkdir_p=: |
20094 | else |
20095 | test -d ./-p && rmdir ./-p |
20096 | as_mkdir_p=false |
20097 | fi |
20098 | |
dd184caf |
20099 | if test -x / >/dev/null 2>&1; then |
20100 | as_test_x='test -x' |
20101 | else |
20102 | if ls -dL / >/dev/null 2>&1; then |
20103 | as_ls_L_option=L |
20104 | else |
20105 | as_ls_L_option= |
20106 | fi |
20107 | as_test_x=' |
20108 | eval sh -c '\'' |
20109 | if test -d "$1"; then |
20110 | test -d "$1/."; |
20111 | else |
20112 | case $1 in |
20113 | -*)set "./$1";; |
20114 | esac; |
20115 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
20116 | ???[sx]*):;;*)false;;esac;fi |
20117 | '\'' sh |
20118 | ' |
20119 | fi |
20120 | as_executable_p=$as_test_x |
d9898ee8 |
20121 | |
20122 | # Sed expression to map a string onto a valid CPP name. |
20123 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
20124 | |
20125 | # Sed expression to map a string onto a valid variable name. |
20126 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
20127 | |
20128 | |
d9898ee8 |
20129 | exec 6>&1 |
20130 | |
dd184caf |
20131 | # Save the log message, to keep $[0] and so on meaningful, and to |
d9898ee8 |
20132 | # report actual input values of CONFIG_FILES etc. instead of their |
dd184caf |
20133 | # values after options handling. |
20134 | ac_log=" |
d9898ee8 |
20135 | This file was extended by numlib $as_me 0.10, which was |
dd184caf |
20136 | generated by GNU Autoconf 2.61. Invocation command line was |
d9898ee8 |
20137 | |
20138 | CONFIG_FILES = $CONFIG_FILES |
20139 | CONFIG_HEADERS = $CONFIG_HEADERS |
20140 | CONFIG_LINKS = $CONFIG_LINKS |
20141 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
20142 | $ $0 $@ |
20143 | |
dd184caf |
20144 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
20145 | " |
20146 | |
d9898ee8 |
20147 | _ACEOF |
20148 | |
dd184caf |
20149 | cat >>$CONFIG_STATUS <<_ACEOF |
d9898ee8 |
20150 | # Files that config.status was made for. |
dd184caf |
20151 | config_files="$ac_config_files" |
20152 | config_headers="$ac_config_headers" |
20153 | config_commands="$ac_config_commands" |
d9898ee8 |
20154 | |
dd184caf |
20155 | _ACEOF |
d9898ee8 |
20156 | |
20157 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
20158 | ac_cs_usage="\ |
20159 | \`$as_me' instantiates files from templates according to the |
20160 | current configuration. |
20161 | |
20162 | Usage: $0 [OPTIONS] [FILE]... |
20163 | |
20164 | -h, --help print this help, then exit |
dd184caf |
20165 | -V, --version print version number and configuration settings, then exit |
d9898ee8 |
20166 | -q, --quiet do not print progress messages |
20167 | -d, --debug don't remove temporary files |
20168 | --recheck update $as_me by reconfiguring in the same conditions |
20169 | --file=FILE[:TEMPLATE] |
20170 | instantiate the configuration file FILE |
20171 | --header=FILE[:TEMPLATE] |
20172 | instantiate the configuration header FILE |
20173 | |
20174 | Configuration files: |
20175 | $config_files |
20176 | |
20177 | Configuration headers: |
20178 | $config_headers |
20179 | |
20180 | Configuration commands: |
20181 | $config_commands |
20182 | |
20183 | Report bugs to <bug-autoconf@gnu.org>." |
d9898ee8 |
20184 | |
dd184caf |
20185 | _ACEOF |
d9898ee8 |
20186 | cat >>$CONFIG_STATUS <<_ACEOF |
20187 | ac_cs_version="\\ |
20188 | numlib config.status 0.10 |
dd184caf |
20189 | configured by $0, generated by GNU Autoconf 2.61, |
20190 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
d9898ee8 |
20191 | |
dd184caf |
20192 | Copyright (C) 2006 Free Software Foundation, Inc. |
d9898ee8 |
20193 | This config.status script is free software; the Free Software Foundation |
20194 | gives unlimited permission to copy, distribute and modify it." |
dd184caf |
20195 | |
20196 | ac_pwd='$ac_pwd' |
20197 | srcdir='$srcdir' |
20198 | INSTALL='$INSTALL' |
20199 | MKDIR_P='$MKDIR_P' |
d9898ee8 |
20200 | _ACEOF |
20201 | |
20202 | cat >>$CONFIG_STATUS <<\_ACEOF |
20203 | # If no file are specified by the user, then we need to provide default |
20204 | # value. By we need to know if files were specified by the user. |
20205 | ac_need_defaults=: |
20206 | while test $# != 0 |
20207 | do |
20208 | case $1 in |
20209 | --*=*) |
dd184caf |
20210 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
20211 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
d9898ee8 |
20212 | ac_shift=: |
20213 | ;; |
dd184caf |
20214 | *) |
d9898ee8 |
20215 | ac_option=$1 |
20216 | ac_optarg=$2 |
20217 | ac_shift=shift |
20218 | ;; |
d9898ee8 |
20219 | esac |
20220 | |
20221 | case $ac_option in |
20222 | # Handling of the options. |
d9898ee8 |
20223 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
20224 | ac_cs_recheck=: ;; |
dd184caf |
20225 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
20226 | echo "$ac_cs_version"; exit ;; |
20227 | --debug | --debu | --deb | --de | --d | -d ) |
d9898ee8 |
20228 | debug=: ;; |
20229 | --file | --fil | --fi | --f ) |
20230 | $ac_shift |
20231 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
20232 | ac_need_defaults=false;; |
20233 | --header | --heade | --head | --hea ) |
20234 | $ac_shift |
20235 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
20236 | ac_need_defaults=false;; |
dd184caf |
20237 | --he | --h) |
20238 | # Conflict between --help and --header |
20239 | { echo "$as_me: error: ambiguous option: $1 |
20240 | Try \`$0 --help' for more information." >&2 |
20241 | { (exit 1); exit 1; }; };; |
20242 | --help | --hel | -h ) |
20243 | echo "$ac_cs_usage"; exit ;; |
d9898ee8 |
20244 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
20245 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
20246 | ac_cs_silent=: ;; |
20247 | |
20248 | # This is an error. |
dd184caf |
20249 | -*) { echo "$as_me: error: unrecognized option: $1 |
20250 | Try \`$0 --help' for more information." >&2 |
d9898ee8 |
20251 | { (exit 1); exit 1; }; } ;; |
20252 | |
dd184caf |
20253 | *) ac_config_targets="$ac_config_targets $1" |
20254 | ac_need_defaults=false ;; |
d9898ee8 |
20255 | |
20256 | esac |
20257 | shift |
20258 | done |
20259 | |
20260 | ac_configure_extra_args= |
20261 | |
20262 | if $ac_cs_silent; then |
20263 | exec 6>/dev/null |
20264 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
20265 | fi |
20266 | |
20267 | _ACEOF |
20268 | cat >>$CONFIG_STATUS <<_ACEOF |
20269 | if \$ac_cs_recheck; then |
dd184caf |
20270 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
20271 | CONFIG_SHELL=$SHELL |
20272 | export CONFIG_SHELL |
20273 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
d9898ee8 |
20274 | fi |
20275 | |
20276 | _ACEOF |
dd184caf |
20277 | cat >>$CONFIG_STATUS <<\_ACEOF |
20278 | exec 5>>config.log |
20279 | { |
20280 | echo |
20281 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
20282 | ## Running $as_me. ## |
20283 | _ASBOX |
20284 | echo "$ac_log" |
20285 | } >&5 |
d9898ee8 |
20286 | |
dd184caf |
20287 | _ACEOF |
d9898ee8 |
20288 | cat >>$CONFIG_STATUS <<_ACEOF |
20289 | # |
dd184caf |
20290 | # INIT-COMMANDS |
d9898ee8 |
20291 | # |
d9898ee8 |
20292 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
20293 | |
20294 | _ACEOF |
20295 | |
d9898ee8 |
20296 | cat >>$CONFIG_STATUS <<\_ACEOF |
dd184caf |
20297 | |
20298 | # Handling of arguments. |
d9898ee8 |
20299 | for ac_config_target in $ac_config_targets |
20300 | do |
dd184caf |
20301 | case $ac_config_target in |
20302 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
20303 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
20304 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
20305 | |
d9898ee8 |
20306 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
20307 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
20308 | { (exit 1); exit 1; }; };; |
20309 | esac |
20310 | done |
20311 | |
dd184caf |
20312 | |
d9898ee8 |
20313 | # If the user did not use the arguments to specify the items to instantiate, |
20314 | # then the envvar interface is used. Set only those that are not. |
20315 | # We use the long form for the default assignment because of an extremely |
20316 | # bizarre bug on SunOS 4.1.3. |
20317 | if $ac_need_defaults; then |
20318 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
20319 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
20320 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
20321 | fi |
20322 | |
20323 | # Have a temporary directory for convenience. Make it in the build tree |
dd184caf |
20324 | # simply because there is no reason against having it here, and in addition, |
d9898ee8 |
20325 | # creating and moving files from /tmp can sometimes cause problems. |
dd184caf |
20326 | # Hook for its removal unless debugging. |
20327 | # Note that there is a small window in which the directory will not be cleaned: |
20328 | # after its creation but before its name has been assigned to `$tmp'. |
d9898ee8 |
20329 | $debug || |
20330 | { |
dd184caf |
20331 | tmp= |
20332 | trap 'exit_status=$? |
20333 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
20334 | ' 0 |
d9898ee8 |
20335 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
20336 | } |
d9898ee8 |
20337 | # Create a (secure) tmp directory for tmp files. |
20338 | |
20339 | { |
dd184caf |
20340 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
d9898ee8 |
20341 | test -n "$tmp" && test -d "$tmp" |
20342 | } || |
20343 | { |
dd184caf |
20344 | tmp=./conf$$-$RANDOM |
20345 | (umask 077 && mkdir "$tmp") |
d9898ee8 |
20346 | } || |
20347 | { |
20348 | echo "$me: cannot create a temporary directory in ." >&2 |
20349 | { (exit 1); exit 1; } |
20350 | } |
20351 | |
d9898ee8 |
20352 | # |
dd184caf |
20353 | # Set up the sed scripts for CONFIG_FILES section. |
d9898ee8 |
20354 | # |
20355 | |
20356 | # No need to generate the scripts if there are no CONFIG_FILES. |
20357 | # This happens for instance when ./config.status config.h |
dd184caf |
20358 | if test -n "$CONFIG_FILES"; then |
d9898ee8 |
20359 | |
20360 | _ACEOF |
20361 | |
dd184caf |
20362 | |
20363 | |
20364 | ac_delim='%!_!# ' |
20365 | for ac_last_try in false false false false false :; do |
20366 | cat >conf$$subs.sed <<_ACEOF |
20367 | SHELL!$SHELL$ac_delim |
20368 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
20369 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
20370 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
20371 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
20372 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
20373 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
20374 | exec_prefix!$exec_prefix$ac_delim |
20375 | prefix!$prefix$ac_delim |
20376 | program_transform_name!$program_transform_name$ac_delim |
20377 | bindir!$bindir$ac_delim |
20378 | sbindir!$sbindir$ac_delim |
20379 | libexecdir!$libexecdir$ac_delim |
20380 | datarootdir!$datarootdir$ac_delim |
20381 | datadir!$datadir$ac_delim |
20382 | sysconfdir!$sysconfdir$ac_delim |
20383 | sharedstatedir!$sharedstatedir$ac_delim |
20384 | localstatedir!$localstatedir$ac_delim |
20385 | includedir!$includedir$ac_delim |
20386 | oldincludedir!$oldincludedir$ac_delim |
20387 | docdir!$docdir$ac_delim |
20388 | infodir!$infodir$ac_delim |
20389 | htmldir!$htmldir$ac_delim |
20390 | dvidir!$dvidir$ac_delim |
20391 | pdfdir!$pdfdir$ac_delim |
20392 | psdir!$psdir$ac_delim |
20393 | libdir!$libdir$ac_delim |
20394 | localedir!$localedir$ac_delim |
20395 | mandir!$mandir$ac_delim |
20396 | DEFS!$DEFS$ac_delim |
20397 | ECHO_C!$ECHO_C$ac_delim |
20398 | ECHO_N!$ECHO_N$ac_delim |
20399 | ECHO_T!$ECHO_T$ac_delim |
20400 | LIBS!$LIBS$ac_delim |
20401 | build_alias!$build_alias$ac_delim |
20402 | host_alias!$host_alias$ac_delim |
20403 | target_alias!$target_alias$ac_delim |
20404 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
20405 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
20406 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
20407 | am__isrc!$am__isrc$ac_delim |
20408 | CYGPATH_W!$CYGPATH_W$ac_delim |
20409 | PACKAGE!$PACKAGE$ac_delim |
20410 | VERSION!$VERSION$ac_delim |
20411 | ACLOCAL!$ACLOCAL$ac_delim |
20412 | AUTOCONF!$AUTOCONF$ac_delim |
20413 | AUTOMAKE!$AUTOMAKE$ac_delim |
20414 | AUTOHEADER!$AUTOHEADER$ac_delim |
20415 | MAKEINFO!$MAKEINFO$ac_delim |
20416 | install_sh!$install_sh$ac_delim |
20417 | STRIP!$STRIP$ac_delim |
20418 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
20419 | mkdir_p!$mkdir_p$ac_delim |
20420 | AWK!$AWK$ac_delim |
20421 | SET_MAKE!$SET_MAKE$ac_delim |
20422 | am__leading_dot!$am__leading_dot$ac_delim |
20423 | AMTAR!$AMTAR$ac_delim |
20424 | am__tar!$am__tar$ac_delim |
20425 | am__untar!$am__untar$ac_delim |
20426 | CC!$CC$ac_delim |
20427 | CFLAGS!$CFLAGS$ac_delim |
20428 | LDFLAGS!$LDFLAGS$ac_delim |
20429 | CPPFLAGS!$CPPFLAGS$ac_delim |
20430 | ac_ct_CC!$ac_ct_CC$ac_delim |
20431 | EXEEXT!$EXEEXT$ac_delim |
20432 | OBJEXT!$OBJEXT$ac_delim |
20433 | DEPDIR!$DEPDIR$ac_delim |
20434 | am__include!$am__include$ac_delim |
20435 | am__quote!$am__quote$ac_delim |
20436 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
20437 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
20438 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
20439 | CCDEPMODE!$CCDEPMODE$ac_delim |
20440 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
20441 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
20442 | LN_S!$LN_S$ac_delim |
20443 | build!$build$ac_delim |
20444 | build_cpu!$build_cpu$ac_delim |
20445 | build_vendor!$build_vendor$ac_delim |
20446 | build_os!$build_os$ac_delim |
20447 | host!$host$ac_delim |
20448 | host_cpu!$host_cpu$ac_delim |
20449 | host_vendor!$host_vendor$ac_delim |
20450 | host_os!$host_os$ac_delim |
20451 | SED!$SED$ac_delim |
20452 | GREP!$GREP$ac_delim |
20453 | EGREP!$EGREP$ac_delim |
20454 | ECHO!$ECHO$ac_delim |
20455 | AR!$AR$ac_delim |
20456 | RANLIB!$RANLIB$ac_delim |
20457 | CPP!$CPP$ac_delim |
20458 | CXX!$CXX$ac_delim |
20459 | CXXFLAGS!$CXXFLAGS$ac_delim |
20460 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
20461 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
20462 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
20463 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
20464 | _ACEOF |
20465 | |
20466 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
20467 | break |
20468 | elif $ac_last_try; then |
20469 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
20470 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
20471 | { (exit 1); exit 1; }; } |
20472 | else |
20473 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
d9898ee8 |
20474 | fi |
dd184caf |
20475 | done |
20476 | |
20477 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
20478 | if test -n "$ac_eof"; then |
20479 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
20480 | ac_eof=`expr $ac_eof + 1` |
20481 | fi |
20482 | |
20483 | cat >>$CONFIG_STATUS <<_ACEOF |
20484 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
20485 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
20486 | _ACEOF |
20487 | sed ' |
20488 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
20489 | s/^/s,@/; s/!/@,|#_!!_#|/ |
20490 | :n |
20491 | t n |
20492 | s/'"$ac_delim"'$/,g/; t |
20493 | s/$/\\/; p |
20494 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
20495 | ' >>$CONFIG_STATUS <conf$$subs.sed |
20496 | rm -f conf$$subs.sed |
20497 | cat >>$CONFIG_STATUS <<_ACEOF |
20498 | CEOF$ac_eof |
20499 | _ACEOF |
20500 | |
20501 | |
20502 | ac_delim='%!_!# ' |
20503 | for ac_last_try in false false false false false :; do |
20504 | cat >conf$$subs.sed <<_ACEOF |
20505 | CXXCPP!$CXXCPP$ac_delim |
20506 | F77!$F77$ac_delim |
20507 | FFLAGS!$FFLAGS$ac_delim |
20508 | ac_ct_F77!$ac_ct_F77$ac_delim |
20509 | LIBTOOL!$LIBTOOL$ac_delim |
20510 | LIBOBJS!$LIBOBJS$ac_delim |
20511 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
20512 | _ACEOF |
20513 | |
20514 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 7; then |
20515 | break |
20516 | elif $ac_last_try; then |
20517 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
20518 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
20519 | { (exit 1); exit 1; }; } |
20520 | else |
20521 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
20522 | fi |
20523 | done |
20524 | |
20525 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
20526 | if test -n "$ac_eof"; then |
20527 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
20528 | ac_eof=`expr $ac_eof + 1` |
20529 | fi |
d9898ee8 |
20530 | |
dd184caf |
20531 | cat >>$CONFIG_STATUS <<_ACEOF |
20532 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
20533 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
20534 | _ACEOF |
20535 | sed ' |
20536 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
20537 | s/^/s,@/; s/!/@,|#_!!_#|/ |
20538 | :n |
20539 | t n |
20540 | s/'"$ac_delim"'$/,g/; t |
20541 | s/$/\\/; p |
20542 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
20543 | ' >>$CONFIG_STATUS <conf$$subs.sed |
20544 | rm -f conf$$subs.sed |
20545 | cat >>$CONFIG_STATUS <<_ACEOF |
20546 | :end |
20547 | s/|#_!!_#|//g |
20548 | CEOF$ac_eof |
d9898ee8 |
20549 | _ACEOF |
dd184caf |
20550 | |
20551 | |
20552 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
20553 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
20554 | # trailing colons and then remove the whole line if VPATH becomes empty |
20555 | # (actually we leave an empty line to preserve line numbers). |
20556 | if test "x$srcdir" = x.; then |
20557 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
20558 | s/:*\$(srcdir):*/:/ |
20559 | s/:*\${srcdir}:*/:/ |
20560 | s/:*@srcdir@:*/:/ |
20561 | s/^\([^=]*=[ ]*\):*/\1/ |
20562 | s/:*$// |
20563 | s/^[^=]*=[ ]*$// |
20564 | }' |
20565 | fi |
20566 | |
d9898ee8 |
20567 | cat >>$CONFIG_STATUS <<\_ACEOF |
dd184caf |
20568 | fi # test -n "$CONFIG_FILES" |
20569 | |
20570 | |
20571 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
20572 | do |
20573 | case $ac_tag in |
20574 | :[FHLC]) ac_mode=$ac_tag; continue;; |
20575 | esac |
20576 | case $ac_mode$ac_tag in |
20577 | :[FHL]*:*);; |
20578 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
20579 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
20580 | { (exit 1); exit 1; }; };; |
20581 | :[FH]-) ac_tag=-:-;; |
20582 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
d9898ee8 |
20583 | esac |
dd184caf |
20584 | ac_save_IFS=$IFS |
20585 | IFS=: |
20586 | set x $ac_tag |
20587 | IFS=$ac_save_IFS |
20588 | shift |
20589 | ac_file=$1 |
20590 | shift |
20591 | |
20592 | case $ac_mode in |
20593 | :L) ac_source=$1;; |
20594 | :[FH]) |
20595 | ac_file_inputs= |
20596 | for ac_f |
20597 | do |
20598 | case $ac_f in |
20599 | -) ac_f="$tmp/stdin";; |
20600 | *) # Look for the file first in the build tree, then in the source tree |
20601 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
20602 | # because $ac_f cannot contain `:'. |
20603 | test -f "$ac_f" || |
20604 | case $ac_f in |
20605 | [\\/$]*) false;; |
20606 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
20607 | esac || |
20608 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
20609 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
20610 | { (exit 1); exit 1; }; };; |
20611 | esac |
20612 | ac_file_inputs="$ac_file_inputs $ac_f" |
20613 | done |
20614 | |
20615 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
20616 | # use $as_me), people would be surprised to read: |
20617 | # /* config.h. Generated by config.status. */ |
20618 | configure_input="Generated from "`IFS=: |
20619 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
20620 | if test x"$ac_file" != x-; then |
20621 | configure_input="$ac_file. $configure_input" |
20622 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
20623 | echo "$as_me: creating $ac_file" >&6;} |
20624 | fi |
d9898ee8 |
20625 | |
dd184caf |
20626 | case $ac_tag in |
20627 | *:-:* | *:-) cat >"$tmp/stdin";; |
20628 | esac |
20629 | ;; |
20630 | esac |
20631 | |
20632 | ac_dir=`$as_dirname -- "$ac_file" || |
d9898ee8 |
20633 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20634 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
20635 | X"$ac_file" : 'X\(//\)$' \| \ |
dd184caf |
20636 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
20637 | echo X"$ac_file" | |
dd184caf |
20638 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
20639 | s//\1/ |
20640 | q |
20641 | } |
20642 | /^X\(\/\/\)[^/].*/{ |
20643 | s//\1/ |
20644 | q |
20645 | } |
20646 | /^X\(\/\/\)$/{ |
20647 | s//\1/ |
20648 | q |
20649 | } |
20650 | /^X\(\/\).*/{ |
20651 | s//\1/ |
20652 | q |
20653 | } |
20654 | s/.*/./; q'` |
20655 | { as_dir="$ac_dir" |
20656 | case $as_dir in #( |
20657 | -*) as_dir=./$as_dir;; |
20658 | esac |
20659 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
20660 | as_dirs= |
dd184caf |
20661 | while :; do |
20662 | case $as_dir in #( |
20663 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
20664 | *) as_qdir=$as_dir;; |
20665 | esac |
20666 | as_dirs="'$as_qdir' $as_dirs" |
20667 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
20668 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20669 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
20670 | X"$as_dir" : 'X\(//\)$' \| \ |
dd184caf |
20671 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
20672 | echo X"$as_dir" | |
dd184caf |
20673 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
20674 | s//\1/ |
20675 | q |
20676 | } |
20677 | /^X\(\/\/\)[^/].*/{ |
20678 | s//\1/ |
20679 | q |
20680 | } |
20681 | /^X\(\/\/\)$/{ |
20682 | s//\1/ |
20683 | q |
20684 | } |
20685 | /^X\(\/\).*/{ |
20686 | s//\1/ |
20687 | q |
20688 | } |
20689 | s/.*/./; q'` |
20690 | test -d "$as_dir" && break |
d9898ee8 |
20691 | done |
dd184caf |
20692 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
20693 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
20694 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
20695 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
20696 | ac_builddir=. |
20697 | |
dd184caf |
20698 | case "$ac_dir" in |
20699 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
20700 | *) |
d9898ee8 |
20701 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
dd184caf |
20702 | # A ".." for each directory in $ac_dir_suffix. |
20703 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
20704 | case $ac_top_builddir_sub in |
20705 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
20706 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
20707 | esac ;; |
20708 | esac |
20709 | ac_abs_top_builddir=$ac_pwd |
20710 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
20711 | # for backward compatibility: |
20712 | ac_top_builddir=$ac_top_build_prefix |
d9898ee8 |
20713 | |
20714 | case $srcdir in |
dd184caf |
20715 | .) # We are building in place. |
d9898ee8 |
20716 | ac_srcdir=. |
dd184caf |
20717 | ac_top_srcdir=$ac_top_builddir_sub |
20718 | ac_abs_top_srcdir=$ac_pwd ;; |
20719 | [\\/]* | ?:[\\/]* ) # Absolute name. |
d9898ee8 |
20720 | ac_srcdir=$srcdir$ac_dir_suffix; |
dd184caf |
20721 | ac_top_srcdir=$srcdir |
20722 | ac_abs_top_srcdir=$srcdir ;; |
20723 | *) # Relative name. |
20724 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
20725 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
20726 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
d9898ee8 |
20727 | esac |
dd184caf |
20728 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
d9898ee8 |
20729 | |
d9898ee8 |
20730 | |
dd184caf |
20731 | case $ac_mode in |
20732 | :F) |
20733 | # |
20734 | # CONFIG_FILE |
20735 | # |
d9898ee8 |
20736 | |
20737 | case $INSTALL in |
20738 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
dd184caf |
20739 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
20740 | esac |
20741 | ac_MKDIR_P=$MKDIR_P |
20742 | case $MKDIR_P in |
20743 | [\\/$]* | ?:[\\/]* ) ;; |
20744 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
d9898ee8 |
20745 | esac |
dd184caf |
20746 | _ACEOF |
d9898ee8 |
20747 | |
dd184caf |
20748 | cat >>$CONFIG_STATUS <<\_ACEOF |
20749 | # If the template does not know about datarootdir, expand it. |
20750 | # FIXME: This hack should be removed a few years after 2.60. |
20751 | ac_datarootdir_hack=; ac_datarootdir_seen= |
20752 | |
20753 | case `sed -n '/datarootdir/ { |
20754 | p |
20755 | q |
20756 | } |
20757 | /@datadir@/p |
20758 | /@docdir@/p |
20759 | /@infodir@/p |
20760 | /@localedir@/p |
20761 | /@mandir@/p |
20762 | ' $ac_file_inputs` in |
20763 | *datarootdir*) ac_datarootdir_seen=yes;; |
20764 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
20765 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
20766 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
d9898ee8 |
20767 | _ACEOF |
dd184caf |
20768 | cat >>$CONFIG_STATUS <<_ACEOF |
20769 | ac_datarootdir_hack=' |
20770 | s&@datadir@&$datadir&g |
20771 | s&@docdir@&$docdir&g |
20772 | s&@infodir@&$infodir&g |
20773 | s&@localedir@&$localedir&g |
20774 | s&@mandir@&$mandir&g |
20775 | s&\\\${datarootdir}&$datarootdir&g' ;; |
20776 | esac |
20777 | _ACEOF |
20778 | |
20779 | # Neutralize VPATH when `$srcdir' = `.'. |
20780 | # Shell code in configure.ac might set extrasub. |
20781 | # FIXME: do we really want to maintain this feature? |
d9898ee8 |
20782 | cat >>$CONFIG_STATUS <<_ACEOF |
20783 | sed "$ac_vpsub |
20784 | $extrasub |
20785 | _ACEOF |
20786 | cat >>$CONFIG_STATUS <<\_ACEOF |
20787 | :t |
20788 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
dd184caf |
20789 | s&@configure_input@&$configure_input&;t t |
20790 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
20791 | s&@srcdir@&$ac_srcdir&;t t |
20792 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
20793 | s&@top_srcdir@&$ac_top_srcdir&;t t |
20794 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
20795 | s&@builddir@&$ac_builddir&;t t |
20796 | s&@abs_builddir@&$ac_abs_builddir&;t t |
20797 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
20798 | s&@INSTALL@&$ac_INSTALL&;t t |
20799 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
20800 | $ac_datarootdir_hack |
20801 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
20802 | |
20803 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
20804 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
20805 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
20806 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
20807 | which seems to be undefined. Please make sure it is defined." >&5 |
20808 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
20809 | which seems to be undefined. Please make sure it is defined." >&2;} |
20810 | |
20811 | rm -f "$tmp/stdin" |
d9898ee8 |
20812 | case $ac_file in |
dd184caf |
20813 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
20814 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
d9898ee8 |
20815 | esac |
dd184caf |
20816 | ;; |
20817 | :H) |
20818 | # |
20819 | # CONFIG_HEADER |
20820 | # |
d9898ee8 |
20821 | _ACEOF |
20822 | |
dd184caf |
20823 | # Transform confdefs.h into a sed script `conftest.defines', that |
20824 | # substitutes the proper values into config.h.in to produce config.h. |
20825 | rm -f conftest.defines conftest.tail |
20826 | # First, append a space to every undef/define line, to ease matching. |
20827 | echo 's/$/ /' >conftest.defines |
20828 | # Then, protect against being on the right side of a sed subst, or in |
20829 | # an unquoted here document, in config.status. If some macros were |
20830 | # called several times there might be several #defines for the same |
20831 | # symbol, which is useless. But do not sort them, since the last |
20832 | # AC_DEFINE must be honored. |
20833 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
20834 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
20835 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
20836 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
20837 | # just an empty string. |
20838 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
20839 | ac_dB='\\)[ (].*,\\1define\\2' |
20840 | ac_dC=' ' |
20841 | ac_dD=' ,' |
20842 | |
20843 | uniq confdefs.h | |
20844 | sed -n ' |
20845 | t rset |
20846 | :rset |
20847 | s/^[ ]*#[ ]*define[ ][ ]*// |
20848 | t ok |
20849 | d |
20850 | :ok |
20851 | s/[\\&,]/\\&/g |
20852 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
20853 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
20854 | ' >>conftest.defines |
20855 | |
20856 | # Remove the space that was appended to ease matching. |
20857 | # Then replace #undef with comments. This is necessary, for |
d9898ee8 |
20858 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
20859 | # on some systems where configure will not decide to define it. |
dd184caf |
20860 | # (The regexp can be short, since the line contains either #define or #undef.) |
20861 | echo 's/ $// |
20862 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
20863 | |
20864 | # Break up conftest.defines: |
20865 | ac_max_sed_lines=50 |
20866 | |
20867 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
20868 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
20869 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
20870 | # et cetera. |
20871 | ac_in='$ac_file_inputs' |
20872 | ac_out='"$tmp/out1"' |
20873 | ac_nxt='"$tmp/out2"' |
20874 | |
20875 | while : |
d9898ee8 |
20876 | do |
dd184caf |
20877 | # Write a here document: |
20878 | cat >>$CONFIG_STATUS <<_ACEOF |
20879 | # First, check the format of the line: |
20880 | cat >"\$tmp/defines.sed" <<\\CEOF |
20881 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
20882 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
20883 | b |
20884 | :def |
20885 | _ACEOF |
20886 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
d9898ee8 |
20887 | echo 'CEOF |
dd184caf |
20888 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
20889 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
20890 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
20891 | grep . conftest.tail >/dev/null || break |
d9898ee8 |
20892 | rm -f conftest.defines |
20893 | mv conftest.tail conftest.defines |
20894 | done |
dd184caf |
20895 | rm -f conftest.defines conftest.tail |
d9898ee8 |
20896 | |
dd184caf |
20897 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
d9898ee8 |
20898 | cat >>$CONFIG_STATUS <<\_ACEOF |
d9898ee8 |
20899 | if test x"$ac_file" != x-; then |
dd184caf |
20900 | echo "/* $configure_input */" >"$tmp/config.h" |
20901 | cat "$ac_result" >>"$tmp/config.h" |
20902 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
d9898ee8 |
20903 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
20904 | echo "$as_me: $ac_file is unchanged" >&6;} |
20905 | else |
d9898ee8 |
20906 | rm -f $ac_file |
dd184caf |
20907 | mv "$tmp/config.h" $ac_file |
d9898ee8 |
20908 | fi |
20909 | else |
dd184caf |
20910 | echo "/* $configure_input */" |
20911 | cat "$ac_result" |
d9898ee8 |
20912 | fi |
dd184caf |
20913 | rm -f "$tmp/out12" |
d9898ee8 |
20914 | # Compute $ac_file's index in $config_headers. |
20915 | _am_stamp_count=1 |
20916 | for _am_header in $config_headers :; do |
20917 | case $_am_header in |
20918 | $ac_file | $ac_file:* ) |
20919 | break ;; |
20920 | * ) |
20921 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
20922 | esac |
20923 | done |
dd184caf |
20924 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
d9898ee8 |
20925 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20926 | X$ac_file : 'X\(//\)[^/]' \| \ |
20927 | X$ac_file : 'X\(//\)$' \| \ |
dd184caf |
20928 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
20929 | echo X$ac_file | |
dd184caf |
20930 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
20931 | s//\1/ |
20932 | q |
20933 | } |
20934 | /^X\(\/\/\)[^/].*/{ |
20935 | s//\1/ |
20936 | q |
20937 | } |
20938 | /^X\(\/\/\)$/{ |
20939 | s//\1/ |
20940 | q |
20941 | } |
20942 | /^X\(\/\).*/{ |
20943 | s//\1/ |
20944 | q |
20945 | } |
20946 | s/.*/./; q'`/stamp-h$_am_stamp_count |
20947 | ;; |
d9898ee8 |
20948 | |
dd184caf |
20949 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
20950 | echo "$as_me: executing $ac_file commands" >&6;} |
20951 | ;; |
20952 | esac |
d9898ee8 |
20953 | |
20954 | |
dd184caf |
20955 | case $ac_file$ac_mode in |
20956 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
d9898ee8 |
20957 | # Strip MF so we end up with the name of the file. |
20958 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
20959 | # Check whether this is an Automake generated Makefile or not. |
20960 | # We used to match only the files named `Makefile.in', but |
20961 | # some people rename them; so instead we look at the file content. |
20962 | # Grep'ing the first line is not enough: some people post-process |
20963 | # each Makefile.in and add a new line on top of each file to say so. |
dd184caf |
20964 | # Grep'ing the whole file is not good either: AIX grep has a line |
20965 | # limit of 2048, but all sed's we know have understand at least 4000. |
20966 | if sed 10q "$mf" | grep '^#.*generated by automake' > /dev/null 2>&1; then |
20967 | dirpart=`$as_dirname -- "$mf" || |
d9898ee8 |
20968 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
20969 | X"$mf" : 'X\(//\)[^/]' \| \ |
20970 | X"$mf" : 'X\(//\)$' \| \ |
dd184caf |
20971 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
20972 | echo X"$mf" | |
dd184caf |
20973 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
20974 | s//\1/ |
20975 | q |
20976 | } |
20977 | /^X\(\/\/\)[^/].*/{ |
20978 | s//\1/ |
20979 | q |
20980 | } |
20981 | /^X\(\/\/\)$/{ |
20982 | s//\1/ |
20983 | q |
20984 | } |
20985 | /^X\(\/\).*/{ |
20986 | s//\1/ |
20987 | q |
20988 | } |
20989 | s/.*/./; q'` |
d9898ee8 |
20990 | else |
20991 | continue |
20992 | fi |
20993 | # Extract the definition of DEPDIR, am__include, and am__quote |
20994 | # from the Makefile without running `make'. |
20995 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
20996 | test -z "$DEPDIR" && continue |
20997 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
20998 | test -z "am__include" && continue |
20999 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
21000 | # When using ansi2knr, U may be empty or an underscore; expand it |
21001 | U=`sed -n 's/^U = //p' < "$mf"` |
21002 | # Find all dependency output files, they are included files with |
21003 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
21004 | # simplest approach to changing $(DEPDIR) to its actual value in the |
21005 | # expansion. |
21006 | for file in `sed -n " |
21007 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
21008 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
21009 | # Make sure the directory exists. |
21010 | test -f "$dirpart/$file" && continue |
dd184caf |
21011 | fdir=`$as_dirname -- "$file" || |
d9898ee8 |
21012 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21013 | X"$file" : 'X\(//\)[^/]' \| \ |
21014 | X"$file" : 'X\(//\)$' \| \ |
dd184caf |
21015 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21016 | echo X"$file" | |
dd184caf |
21017 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21018 | s//\1/ |
21019 | q |
21020 | } |
21021 | /^X\(\/\/\)[^/].*/{ |
21022 | s//\1/ |
21023 | q |
21024 | } |
21025 | /^X\(\/\/\)$/{ |
21026 | s//\1/ |
21027 | q |
21028 | } |
21029 | /^X\(\/\).*/{ |
21030 | s//\1/ |
21031 | q |
21032 | } |
21033 | s/.*/./; q'` |
21034 | { as_dir=$dirpart/$fdir |
21035 | case $as_dir in #( |
21036 | -*) as_dir=./$as_dir;; |
21037 | esac |
21038 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
d9898ee8 |
21039 | as_dirs= |
dd184caf |
21040 | while :; do |
21041 | case $as_dir in #( |
21042 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
21043 | *) as_qdir=$as_dir;; |
21044 | esac |
21045 | as_dirs="'$as_qdir' $as_dirs" |
21046 | as_dir=`$as_dirname -- "$as_dir" || |
d9898ee8 |
21047 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
21048 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
21049 | X"$as_dir" : 'X\(//\)$' \| \ |
dd184caf |
21050 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
d9898ee8 |
21051 | echo X"$as_dir" | |
dd184caf |
21052 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
21053 | s//\1/ |
21054 | q |
21055 | } |
21056 | /^X\(\/\/\)[^/].*/{ |
21057 | s//\1/ |
21058 | q |
21059 | } |
21060 | /^X\(\/\/\)$/{ |
21061 | s//\1/ |
21062 | q |
21063 | } |
21064 | /^X\(\/\).*/{ |
21065 | s//\1/ |
21066 | q |
21067 | } |
21068 | s/.*/./; q'` |
21069 | test -d "$as_dir" && break |
d9898ee8 |
21070 | done |
dd184caf |
21071 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
21072 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
21073 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
d9898ee8 |
21074 | { (exit 1); exit 1; }; }; } |
d9898ee8 |
21075 | # echo "creating $dirpart/$file" |
21076 | echo '# dummy' > "$dirpart/$file" |
21077 | done |
21078 | done |
21079 | ;; |
dd184caf |
21080 | |
d9898ee8 |
21081 | esac |
dd184caf |
21082 | done # for ac_tag |
d9898ee8 |
21083 | |
d9898ee8 |
21084 | |
21085 | { (exit 0); exit 0; } |
21086 | _ACEOF |
21087 | chmod +x $CONFIG_STATUS |
21088 | ac_clean_files=$ac_clean_files_save |
21089 | |
21090 | |
21091 | # configure is writing to config.log, and then calls config.status. |
21092 | # config.status does its own redirection, appending to config.log. |
21093 | # Unfortunately, on DOS this fails, as config.log is still kept open |
21094 | # by configure, so config.status won't be able to write to it; its |
21095 | # output is simply discarded. So we exec the FD to /dev/null, |
21096 | # effectively closing config.log, so it can be properly (re)opened and |
21097 | # appended to by config.status. When coming back to configure, we |
21098 | # need to make the FD available again. |
21099 | if test "$no_create" != yes; then |
21100 | ac_cs_success=: |
21101 | ac_config_status_args= |
21102 | test "$silent" = yes && |
21103 | ac_config_status_args="$ac_config_status_args --quiet" |
21104 | exec 5>/dev/null |
21105 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
21106 | exec 5>>config.log |
21107 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
21108 | # would make configure fail if this is the last instruction. |
21109 | $ac_cs_success || { (exit 1); exit 1; } |
21110 | fi |
21111 | |