blob: 508d09ccfaee99535cece7a74f2747cb32c26a0e
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.61 for ntfs-3g 2010.5.16. |
4 | # |
5 | # Report bugs to <ntfs-3g-devel@lists.sf.net>. |
6 | # |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
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 | |
15 | # Be more Bourne compatible |
16 | DUALCASE=1; export DUALCASE # for MKS sh |
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+"$@"}'='"$@"' |
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 |
53 | fi |
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 | |
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 | |
96 | # Work around bugs in pre-3.0 UWIN ksh. |
97 | for as_var in ENV MAIL MAILPATH |
98 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
99 | done |
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 |
113 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
114 | fi |
115 | done |
116 | |
117 | # Required to use basename. |
118 | if expr a : '\(a\)' >/dev/null 2>&1 && |
119 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
120 | as_expr=expr |
121 | else |
122 | as_expr=false |
123 | fi |
124 | |
125 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
126 | as_basename=basename |
127 | else |
128 | as_basename=false |
129 | fi |
130 | |
131 | |
132 | # Name of the executable. |
133 | as_me=`$as_basename -- "$0" || |
134 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
135 | X"$0" : 'X\(//\)$' \| \ |
136 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
137 | echo X/"$0" | |
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'` |
151 | |
152 | # CDPATH. |
153 | $as_unset CDPATH |
154 | |
155 | |
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 |
161 | fi |
162 | |
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 | } |
179 | |
180 | exitcode=0 |
181 | if as_func_success; then |
182 | : |
183 | else |
184 | exitcode=1 |
185 | echo as_func_success failed. |
186 | fi |
187 | |
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= |
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=. |
228 | case $as_dir in |
229 | /*) |
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 | ( |
330 | as_lineno_1=$LINENO |
331 | as_lineno_2=$LINENO |
332 | test "x$as_lineno_1" != "x$as_lineno_2" && |
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" || { |
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 |
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. |
437 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
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 | |
444 | sed ' |
445 | s/[$]LINENO.*/&-/ |
446 | t lineno |
447 | b |
448 | :lineno |
449 | N |
450 | :loop |
451 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
452 | t loop |
453 | s/-\n.*// |
454 | ' >$as_me.lineno && |
455 | chmod +x "$as_me.lineno" || |
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 |
461 | # original and so on. Autoconf is especially sensitive to this). |
462 | . "./$as_me.lineno" |
463 | # Exit status is that of the last command. |
464 | exit |
465 | } |
466 | |
467 | |
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';; |
483 | esac |
484 | |
485 | if expr a : '\(a\)' >/dev/null 2>&1 && |
486 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
487 | as_expr=expr |
488 | else |
489 | as_expr=false |
490 | fi |
491 | |
492 | rm -f conf$$ conf$$.exe conf$$.file |
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 |
499 | echo >conf$$.file |
500 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
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 || |
507 | as_ln_s='cp -p' |
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 |
513 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
514 | rmdir conf$$.dir 2>/dev/null |
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 | |
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 |
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 | |
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 | |
708 | exec 7<&0 </dev/null 6>&1 |
709 | |
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 | |
715 | # |
716 | # Initializations. |
717 | # |
718 | ac_default_prefix=/usr/local |
719 | ac_clean_files= |
720 | ac_config_libobj_dir=. |
721 | LIBOBJS= |
722 | cross_compiling=no |
723 | subdirs= |
724 | MFLAGS= |
725 | MAKEFLAGS= |
726 | SHELL=${CONFIG_SHELL-/bin/sh} |
727 | |
728 | # Identity of this package. |
729 | PACKAGE_NAME='ntfs-3g' |
730 | PACKAGE_TARNAME='ntfs-3g' |
731 | PACKAGE_VERSION='2010.5.16' |
732 | PACKAGE_STRING='ntfs-3g 2010.5.16' |
733 | PACKAGE_BUGREPORT='ntfs-3g-devel@lists.sf.net' |
734 | |
735 | ac_unique_file="src/ntfs-3g.c" |
736 | # Factoring default headers for most tests. |
737 | ac_includes_default="\ |
738 | #include <stdio.h> |
739 | #ifdef HAVE_SYS_TYPES_H |
740 | # include <sys/types.h> |
741 | #endif |
742 | #ifdef HAVE_SYS_STAT_H |
743 | # include <sys/stat.h> |
744 | #endif |
745 | #ifdef STDC_HEADERS |
746 | # include <stdlib.h> |
747 | # include <stddef.h> |
748 | #else |
749 | # ifdef HAVE_STDLIB_H |
750 | # include <stdlib.h> |
751 | # endif |
752 | #endif |
753 | #ifdef HAVE_STRING_H |
754 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
755 | # include <memory.h> |
756 | # endif |
757 | # include <string.h> |
758 | #endif |
759 | #ifdef HAVE_STRINGS_H |
760 | # include <strings.h> |
761 | #endif |
762 | #ifdef HAVE_INTTYPES_H |
763 | # include <inttypes.h> |
764 | #endif |
765 | #ifdef HAVE_STDINT_H |
766 | # include <stdint.h> |
767 | #endif |
768 | #ifdef HAVE_UNISTD_H |
769 | # include <unistd.h> |
770 | #endif" |
771 | |
772 | ac_header_list= |
773 | ac_subst_vars='SHELL |
774 | PATH_SEPARATOR |
775 | PACKAGE_NAME |
776 | PACKAGE_TARNAME |
777 | PACKAGE_VERSION |
778 | PACKAGE_STRING |
779 | PACKAGE_BUGREPORT |
780 | exec_prefix |
781 | prefix |
782 | program_transform_name |
783 | bindir |
784 | sbindir |
785 | libexecdir |
786 | datarootdir |
787 | datadir |
788 | sysconfdir |
789 | sharedstatedir |
790 | localstatedir |
791 | includedir |
792 | oldincludedir |
793 | docdir |
794 | infodir |
795 | htmldir |
796 | dvidir |
797 | pdfdir |
798 | psdir |
799 | libdir |
800 | localedir |
801 | mandir |
802 | DEFS |
803 | ECHO_C |
804 | ECHO_N |
805 | ECHO_T |
806 | LIBS |
807 | build_alias |
808 | host_alias |
809 | target_alias |
810 | build |
811 | build_cpu |
812 | build_vendor |
813 | build_os |
814 | host |
815 | host_cpu |
816 | host_vendor |
817 | host_os |
818 | target |
819 | target_cpu |
820 | target_vendor |
821 | target_os |
822 | INSTALL_PROGRAM |
823 | INSTALL_SCRIPT |
824 | INSTALL_DATA |
825 | am__isrc |
826 | CYGPATH_W |
827 | PACKAGE |
828 | VERSION |
829 | ACLOCAL |
830 | AUTOCONF |
831 | AUTOMAKE |
832 | AUTOHEADER |
833 | MAKEINFO |
834 | install_sh |
835 | STRIP |
836 | INSTALL_STRIP_PROGRAM |
837 | mkdir_p |
838 | AWK |
839 | SET_MAKE |
840 | am__leading_dot |
841 | AMTAR |
842 | am__tar |
843 | am__untar |
844 | MAINTAINER_MODE_TRUE |
845 | MAINTAINER_MODE_FALSE |
846 | MAINT |
847 | CC |
848 | CFLAGS |
849 | LDFLAGS |
850 | CPPFLAGS |
851 | ac_ct_CC |
852 | EXEEXT |
853 | OBJEXT |
854 | DEPDIR |
855 | am__include |
856 | am__quote |
857 | AMDEP_TRUE |
858 | AMDEP_FALSE |
859 | AMDEPBACKSLASH |
860 | CCDEPMODE |
861 | am__fastdepCC_TRUE |
862 | am__fastdepCC_FALSE |
863 | LN_S |
864 | SED |
865 | GREP |
866 | EGREP |
867 | ECHO |
868 | AR |
869 | RANLIB |
870 | DSYMUTIL |
871 | NMEDIT |
872 | CPP |
873 | CXX |
874 | CXXFLAGS |
875 | ac_ct_CXX |
876 | CXXDEPMODE |
877 | am__fastdepCXX_TRUE |
878 | am__fastdepCXX_FALSE |
879 | CXXCPP |
880 | F77 |
881 | FFLAGS |
882 | ac_ct_F77 |
883 | LIBTOOL |
884 | MV |
885 | RM |
886 | LDCONFIG |
887 | PKG_CONFIG |
888 | FUSE_MODULE_CFLAGS |
889 | FUSE_MODULE_LIBS |
890 | LIBOBJS |
891 | pkgconfigdir |
892 | ntfs3gincludedir |
893 | rootbindir |
894 | rootsbindir |
895 | rootlibdir |
896 | LIBNTFS_3G_VERSION |
897 | LIBFUSE_LITE_LIBS |
898 | OUTPUT_FORMAT |
899 | FUSE_INTERNAL_TRUE |
900 | FUSE_INTERNAL_FALSE |
901 | GENERATE_LDSCRIPT_TRUE |
902 | GENERATE_LDSCRIPT_FALSE |
903 | WINDOWS_TRUE |
904 | WINDOWS_FALSE |
905 | NTFS_DEVICE_DEFAULT_IO_OPS_TRUE |
906 | NTFS_DEVICE_DEFAULT_IO_OPS_FALSE |
907 | RUN_LDCONFIG_TRUE |
908 | RUN_LDCONFIG_FALSE |
909 | REALLYSTATIC_TRUE |
910 | REALLYSTATIC_FALSE |
911 | INSTALL_LIBRARY_TRUE |
912 | INSTALL_LIBRARY_FALSE |
913 | ENABLE_MOUNT_HELPER_TRUE |
914 | ENABLE_MOUNT_HELPER_FALSE |
915 | MKDIR_P |
916 | LTLIBOBJS' |
917 | ac_subst_files='' |
918 | ac_precious_vars='build_alias |
919 | host_alias |
920 | target_alias |
921 | CC |
922 | CFLAGS |
923 | LDFLAGS |
924 | LIBS |
925 | CPPFLAGS |
926 | CPP |
927 | CXX |
928 | CXXFLAGS |
929 | CCC |
930 | CXXCPP |
931 | F77 |
932 | FFLAGS |
933 | LDCONFIG |
934 | PKG_CONFIG |
935 | FUSE_MODULE_CFLAGS |
936 | FUSE_MODULE_LIBS' |
937 | |
938 | |
939 | # Initialize some variables set by options. |
940 | ac_init_help= |
941 | ac_init_version=false |
942 | # The variables have the same names as the options, with |
943 | # dashes changed to underlines. |
944 | cache_file=/dev/null |
945 | exec_prefix=NONE |
946 | no_create= |
947 | no_recursion= |
948 | prefix=NONE |
949 | program_prefix=NONE |
950 | program_suffix=NONE |
951 | program_transform_name=s,x,x, |
952 | silent= |
953 | site= |
954 | srcdir= |
955 | verbose= |
956 | x_includes=NONE |
957 | x_libraries=NONE |
958 | |
959 | # Installation directory options. |
960 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
961 | # and all the variables that are supposed to be based on exec_prefix |
962 | # by default will actually change. |
963 | # Use braces instead of parens because sh, perl, etc. also accept them. |
964 | # (The list follows the same order as the GNU Coding Standards.) |
965 | bindir='${exec_prefix}/bin' |
966 | sbindir='${exec_prefix}/sbin' |
967 | libexecdir='${exec_prefix}/libexec' |
968 | datarootdir='${prefix}/share' |
969 | datadir='${datarootdir}' |
970 | sysconfdir='${prefix}/etc' |
971 | sharedstatedir='${prefix}/com' |
972 | localstatedir='${prefix}/var' |
973 | includedir='${prefix}/include' |
974 | oldincludedir='/usr/include' |
975 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
976 | infodir='${datarootdir}/info' |
977 | htmldir='${docdir}' |
978 | dvidir='${docdir}' |
979 | pdfdir='${docdir}' |
980 | psdir='${docdir}' |
981 | libdir='${exec_prefix}/lib' |
982 | localedir='${datarootdir}/locale' |
983 | mandir='${datarootdir}/man' |
984 | |
985 | ac_prev= |
986 | ac_dashdash= |
987 | for ac_option |
988 | do |
989 | # If the previous option needs an argument, assign it. |
990 | if test -n "$ac_prev"; then |
991 | eval $ac_prev=\$ac_option |
992 | ac_prev= |
993 | continue |
994 | fi |
995 | |
996 | case $ac_option in |
997 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
998 | *) ac_optarg=yes ;; |
999 | esac |
1000 | |
1001 | # Accept the important Cygnus configure options, so we can diagnose typos. |
1002 | |
1003 | case $ac_dashdash$ac_option in |
1004 | --) |
1005 | ac_dashdash=yes ;; |
1006 | |
1007 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
1008 | ac_prev=bindir ;; |
1009 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
1010 | bindir=$ac_optarg ;; |
1011 | |
1012 | -build | --build | --buil | --bui | --bu) |
1013 | ac_prev=build_alias ;; |
1014 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1015 | build_alias=$ac_optarg ;; |
1016 | |
1017 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
1018 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
1019 | ac_prev=cache_file ;; |
1020 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
1021 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
1022 | cache_file=$ac_optarg ;; |
1023 | |
1024 | --config-cache | -C) |
1025 | cache_file=config.cache ;; |
1026 | |
1027 | -datadir | --datadir | --datadi | --datad) |
1028 | ac_prev=datadir ;; |
1029 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1030 | datadir=$ac_optarg ;; |
1031 | |
1032 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1033 | | --dataroo | --dataro | --datar) |
1034 | ac_prev=datarootdir ;; |
1035 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
1036 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
1037 | datarootdir=$ac_optarg ;; |
1038 | |
1039 | -disable-* | --disable-*) |
1040 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1041 | # Reject names that are not valid shell variable names. |
1042 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1043 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1044 | { (exit 1); exit 1; }; } |
1045 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1046 | eval enable_$ac_feature=no ;; |
1047 | |
1048 | -docdir | --docdir | --docdi | --doc | --do) |
1049 | ac_prev=docdir ;; |
1050 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
1051 | docdir=$ac_optarg ;; |
1052 | |
1053 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
1054 | ac_prev=dvidir ;; |
1055 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
1056 | dvidir=$ac_optarg ;; |
1057 | |
1058 | -enable-* | --enable-*) |
1059 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1060 | # Reject names that are not valid shell variable names. |
1061 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1062 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1063 | { (exit 1); exit 1; }; } |
1064 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1065 | eval enable_$ac_feature=\$ac_optarg ;; |
1066 | |
1067 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1068 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
1069 | | --exec | --exe | --ex) |
1070 | ac_prev=exec_prefix ;; |
1071 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
1072 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
1073 | | --exec=* | --exe=* | --ex=*) |
1074 | exec_prefix=$ac_optarg ;; |
1075 | |
1076 | -gas | --gas | --ga | --g) |
1077 | # Obsolete; use --with-gas. |
1078 | with_gas=yes ;; |
1079 | |
1080 | -help | --help | --hel | --he | -h) |
1081 | ac_init_help=long ;; |
1082 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
1083 | ac_init_help=recursive ;; |
1084 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
1085 | ac_init_help=short ;; |
1086 | |
1087 | -host | --host | --hos | --ho) |
1088 | ac_prev=host_alias ;; |
1089 | -host=* | --host=* | --hos=* | --ho=*) |
1090 | host_alias=$ac_optarg ;; |
1091 | |
1092 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1093 | ac_prev=htmldir ;; |
1094 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1095 | | --ht=*) |
1096 | htmldir=$ac_optarg ;; |
1097 | |
1098 | -includedir | --includedir | --includedi | --included | --include \ |
1099 | | --includ | --inclu | --incl | --inc) |
1100 | ac_prev=includedir ;; |
1101 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
1102 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
1103 | includedir=$ac_optarg ;; |
1104 | |
1105 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
1106 | ac_prev=infodir ;; |
1107 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1108 | infodir=$ac_optarg ;; |
1109 | |
1110 | -libdir | --libdir | --libdi | --libd) |
1111 | ac_prev=libdir ;; |
1112 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
1113 | libdir=$ac_optarg ;; |
1114 | |
1115 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1116 | | --libexe | --libex | --libe) |
1117 | ac_prev=libexecdir ;; |
1118 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1119 | | --libexe=* | --libex=* | --libe=*) |
1120 | libexecdir=$ac_optarg ;; |
1121 | |
1122 | -localedir | --localedir | --localedi | --localed | --locale) |
1123 | ac_prev=localedir ;; |
1124 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1125 | localedir=$ac_optarg ;; |
1126 | |
1127 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
1128 | | --localstate | --localstat | --localsta | --localst | --locals) |
1129 | ac_prev=localstatedir ;; |
1130 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
1131 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1132 | localstatedir=$ac_optarg ;; |
1133 | |
1134 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1135 | ac_prev=mandir ;; |
1136 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1137 | mandir=$ac_optarg ;; |
1138 | |
1139 | -nfp | --nfp | --nf) |
1140 | # Obsolete; use --without-fp. |
1141 | with_fp=no ;; |
1142 | |
1143 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1144 | | --no-cr | --no-c | -n) |
1145 | no_create=yes ;; |
1146 | |
1147 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1148 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1149 | no_recursion=yes ;; |
1150 | |
1151 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1152 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1153 | | --oldin | --oldi | --old | --ol | --o) |
1154 | ac_prev=oldincludedir ;; |
1155 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1156 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1157 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1158 | oldincludedir=$ac_optarg ;; |
1159 | |
1160 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1161 | ac_prev=prefix ;; |
1162 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1163 | prefix=$ac_optarg ;; |
1164 | |
1165 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1166 | | --program-pre | --program-pr | --program-p) |
1167 | ac_prev=program_prefix ;; |
1168 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1169 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1170 | program_prefix=$ac_optarg ;; |
1171 | |
1172 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1173 | | --program-suf | --program-su | --program-s) |
1174 | ac_prev=program_suffix ;; |
1175 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1176 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1177 | program_suffix=$ac_optarg ;; |
1178 | |
1179 | -program-transform-name | --program-transform-name \ |
1180 | | --program-transform-nam | --program-transform-na \ |
1181 | | --program-transform-n | --program-transform- \ |
1182 | | --program-transform | --program-transfor \ |
1183 | | --program-transfo | --program-transf \ |
1184 | | --program-trans | --program-tran \ |
1185 | | --progr-tra | --program-tr | --program-t) |
1186 | ac_prev=program_transform_name ;; |
1187 | -program-transform-name=* | --program-transform-name=* \ |
1188 | | --program-transform-nam=* | --program-transform-na=* \ |
1189 | | --program-transform-n=* | --program-transform-=* \ |
1190 | | --program-transform=* | --program-transfor=* \ |
1191 | | --program-transfo=* | --program-transf=* \ |
1192 | | --program-trans=* | --program-tran=* \ |
1193 | | --progr-tra=* | --program-tr=* | --program-t=*) |
1194 | program_transform_name=$ac_optarg ;; |
1195 | |
1196 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1197 | ac_prev=pdfdir ;; |
1198 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1199 | pdfdir=$ac_optarg ;; |
1200 | |
1201 | -psdir | --psdir | --psdi | --psd | --ps) |
1202 | ac_prev=psdir ;; |
1203 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1204 | psdir=$ac_optarg ;; |
1205 | |
1206 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1207 | | -silent | --silent | --silen | --sile | --sil) |
1208 | silent=yes ;; |
1209 | |
1210 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1211 | ac_prev=sbindir ;; |
1212 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1213 | | --sbi=* | --sb=*) |
1214 | sbindir=$ac_optarg ;; |
1215 | |
1216 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1217 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1218 | | --sharedst | --shareds | --shared | --share | --shar \ |
1219 | | --sha | --sh) |
1220 | ac_prev=sharedstatedir ;; |
1221 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1222 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1223 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1224 | | --sha=* | --sh=*) |
1225 | sharedstatedir=$ac_optarg ;; |
1226 | |
1227 | -site | --site | --sit) |
1228 | ac_prev=site ;; |
1229 | -site=* | --site=* | --sit=*) |
1230 | site=$ac_optarg ;; |
1231 | |
1232 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1233 | ac_prev=srcdir ;; |
1234 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1235 | srcdir=$ac_optarg ;; |
1236 | |
1237 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1238 | | --syscon | --sysco | --sysc | --sys | --sy) |
1239 | ac_prev=sysconfdir ;; |
1240 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1241 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1242 | sysconfdir=$ac_optarg ;; |
1243 | |
1244 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1245 | ac_prev=target_alias ;; |
1246 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1247 | target_alias=$ac_optarg ;; |
1248 | |
1249 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1250 | verbose=yes ;; |
1251 | |
1252 | -version | --version | --versio | --versi | --vers | -V) |
1253 | ac_init_version=: ;; |
1254 | |
1255 | -with-* | --with-*) |
1256 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1257 | # Reject names that are not valid shell variable names. |
1258 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1259 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1260 | { (exit 1); exit 1; }; } |
1261 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1262 | eval with_$ac_package=\$ac_optarg ;; |
1263 | |
1264 | -without-* | --without-*) |
1265 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1266 | # Reject names that are not valid shell variable names. |
1267 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1268 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1269 | { (exit 1); exit 1; }; } |
1270 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1271 | eval with_$ac_package=no ;; |
1272 | |
1273 | --x) |
1274 | # Obsolete; use --with-x. |
1275 | with_x=yes ;; |
1276 | |
1277 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1278 | | --x-incl | --x-inc | --x-in | --x-i) |
1279 | ac_prev=x_includes ;; |
1280 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1281 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1282 | x_includes=$ac_optarg ;; |
1283 | |
1284 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1285 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1286 | ac_prev=x_libraries ;; |
1287 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1288 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1289 | x_libraries=$ac_optarg ;; |
1290 | |
1291 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1292 | Try \`$0 --help' for more information." >&2 |
1293 | { (exit 1); exit 1; }; } |
1294 | ;; |
1295 | |
1296 | *=*) |
1297 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1298 | # Reject names that are not valid shell variable names. |
1299 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1300 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1301 | { (exit 1); exit 1; }; } |
1302 | eval $ac_envvar=\$ac_optarg |
1303 | export $ac_envvar ;; |
1304 | |
1305 | *) |
1306 | # FIXME: should be removed in autoconf 3.0. |
1307 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1308 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1309 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1310 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1311 | ;; |
1312 | |
1313 | esac |
1314 | done |
1315 | |
1316 | if test -n "$ac_prev"; then |
1317 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1318 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1319 | { (exit 1); exit 1; }; } |
1320 | fi |
1321 | |
1322 | # Be sure to have absolute directory names. |
1323 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1324 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1325 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1326 | libdir localedir mandir |
1327 | do |
1328 | eval ac_val=\$$ac_var |
1329 | case $ac_val in |
1330 | [\\/$]* | ?:[\\/]* ) continue;; |
1331 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1332 | esac |
1333 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1334 | { (exit 1); exit 1; }; } |
1335 | done |
1336 | |
1337 | # There might be people who depend on the old broken behavior: `$host' |
1338 | # used to hold the argument of --host etc. |
1339 | # FIXME: To remove some day. |
1340 | build=$build_alias |
1341 | host=$host_alias |
1342 | target=$target_alias |
1343 | |
1344 | # FIXME: To remove some day. |
1345 | if test "x$host_alias" != x; then |
1346 | if test "x$build_alias" = x; then |
1347 | cross_compiling=maybe |
1348 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1349 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1350 | elif test "x$build_alias" != "x$host_alias"; then |
1351 | cross_compiling=yes |
1352 | fi |
1353 | fi |
1354 | |
1355 | ac_tool_prefix= |
1356 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1357 | |
1358 | test "$silent" = yes && exec 6>/dev/null |
1359 | |
1360 | |
1361 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1362 | ac_ls_di=`ls -di .` && |
1363 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1364 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
1365 | { (exit 1); exit 1; }; } |
1366 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1367 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
1368 | { (exit 1); exit 1; }; } |
1369 | |
1370 | |
1371 | # Find the source files, if location was not specified. |
1372 | if test -z "$srcdir"; then |
1373 | ac_srcdir_defaulted=yes |
1374 | # Try the directory containing this script, then the parent directory. |
1375 | ac_confdir=`$as_dirname -- "$0" || |
1376 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1377 | X"$0" : 'X\(//\)[^/]' \| \ |
1378 | X"$0" : 'X\(//\)$' \| \ |
1379 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1380 | echo X"$0" | |
1381 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1382 | s//\1/ |
1383 | q |
1384 | } |
1385 | /^X\(\/\/\)[^/].*/{ |
1386 | s//\1/ |
1387 | q |
1388 | } |
1389 | /^X\(\/\/\)$/{ |
1390 | s//\1/ |
1391 | q |
1392 | } |
1393 | /^X\(\/\).*/{ |
1394 | s//\1/ |
1395 | q |
1396 | } |
1397 | s/.*/./; q'` |
1398 | srcdir=$ac_confdir |
1399 | if test ! -r "$srcdir/$ac_unique_file"; then |
1400 | srcdir=.. |
1401 | fi |
1402 | else |
1403 | ac_srcdir_defaulted=no |
1404 | fi |
1405 | if test ! -r "$srcdir/$ac_unique_file"; then |
1406 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1407 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
1408 | { (exit 1); exit 1; }; } |
1409 | fi |
1410 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1411 | ac_abs_confdir=`( |
1412 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
1413 | { (exit 1); exit 1; }; } |
1414 | pwd)` |
1415 | # When building in place, set srcdir=. |
1416 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1417 | srcdir=. |
1418 | fi |
1419 | # Remove unnecessary trailing slashes from srcdir. |
1420 | # Double slashes in file names in object file debugging info |
1421 | # mess up M-x gdb in Emacs. |
1422 | case $srcdir in |
1423 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1424 | esac |
1425 | for ac_var in $ac_precious_vars; do |
1426 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1427 | eval ac_env_${ac_var}_value=\$${ac_var} |
1428 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1429 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1430 | done |
1431 | |
1432 | # |
1433 | # Report the --help message. |
1434 | # |
1435 | if test "$ac_init_help" = "long"; then |
1436 | # Omit some internal or obsolete options to make the list less imposing. |
1437 | # This message is too long to be a string in the A/UX 3.1 sh. |
1438 | cat <<_ACEOF |
1439 | \`configure' configures ntfs-3g 2010.5.16 to adapt to many kinds of systems. |
1440 | |
1441 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1442 | |
1443 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1444 | VAR=VALUE. See below for descriptions of some of the useful variables. |
1445 | |
1446 | Defaults for the options are specified in brackets. |
1447 | |
1448 | Configuration: |
1449 | -h, --help display this help and exit |
1450 | --help=short display options specific to this package |
1451 | --help=recursive display the short help of all the included packages |
1452 | -V, --version display version information and exit |
1453 | -q, --quiet, --silent do not print \`checking...' messages |
1454 | --cache-file=FILE cache test results in FILE [disabled] |
1455 | -C, --config-cache alias for \`--cache-file=config.cache' |
1456 | -n, --no-create do not create output files |
1457 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1458 | |
1459 | Installation directories: |
1460 | --prefix=PREFIX install architecture-independent files in PREFIX |
1461 | [$ac_default_prefix] |
1462 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1463 | [PREFIX] |
1464 | |
1465 | By default, \`make install' will install all the files in |
1466 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1467 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1468 | for instance \`--prefix=\$HOME'. |
1469 | |
1470 | For better control, use the options below. |
1471 | |
1472 | Fine tuning of the installation directories: |
1473 | --bindir=DIR user executables [EPREFIX/bin] |
1474 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1475 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1476 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1477 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1478 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1479 | --libdir=DIR object code libraries [EPREFIX/lib] |
1480 | --includedir=DIR C header files [PREFIX/include] |
1481 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1482 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1483 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1484 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1485 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1486 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1487 | --docdir=DIR documentation root [DATAROOTDIR/doc/ntfs-3g] |
1488 | --htmldir=DIR html documentation [DOCDIR] |
1489 | --dvidir=DIR dvi documentation [DOCDIR] |
1490 | --pdfdir=DIR pdf documentation [DOCDIR] |
1491 | --psdir=DIR ps documentation [DOCDIR] |
1492 | _ACEOF |
1493 | |
1494 | cat <<\_ACEOF |
1495 | |
1496 | Program names: |
1497 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1498 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1499 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1500 | |
1501 | System types: |
1502 | --build=BUILD configure for building on BUILD [guessed] |
1503 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1504 | --target=TARGET configure for building compilers for TARGET [HOST] |
1505 | _ACEOF |
1506 | fi |
1507 | |
1508 | if test -n "$ac_init_help"; then |
1509 | case $ac_init_help in |
1510 | short | recursive ) echo "Configuration of ntfs-3g 2010.5.16:";; |
1511 | esac |
1512 | cat <<\_ACEOF |
1513 | |
1514 | Optional Features: |
1515 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1516 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1517 | --enable-maintainer-mode enable make rules and dependencies not useful |
1518 | (and sometimes confusing) to the casual installer |
1519 | --enable-debug enable debugging code and output |
1520 | --enable-warnings enable lots of compiler warnings |
1521 | --enable-pedantic enable compile pedantic mode |
1522 | --enable-really-static create fully static binaries |
1523 | --enable-mount-helper install mount helper [default=enabled for linux] |
1524 | --enable-ldscript use ldscript instead of .so symlink |
1525 | --disable-ldconfig do not update dynamic linker cache using ldconfig |
1526 | --disable-library do not install libntfs-3g but link it into ntfs-3g |
1527 | --disable-mtab disable and ignore usage of /etc/mtab |
1528 | --enable-posix-acls enable POSIX ACL support |
1529 | --disable-device-default-io-ops |
1530 | install default IO ops |
1531 | --disable-nfconv disable the 'nfconv' patch, which adds support for |
1532 | Unicode normalization form conversion when built on |
1533 | Mac OS X [default=enabled for Mac OS X] |
1534 | --disable-dependency-tracking speeds up one-time build |
1535 | --enable-dependency-tracking do not reject slow dependency extractors |
1536 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1537 | --enable-static[=PKGS] build static libraries [default=yes] |
1538 | --enable-fast-install[=PKGS] |
1539 | optimize for fast installation [default=yes] |
1540 | --disable-libtool-lock avoid locking (might break parallel builds) |
1541 | --disable-largefile omit support for large files |
1542 | |
1543 | Optional Packages: |
1544 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1545 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1546 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1547 | --with-pic try to use only PIC/non-PIC objects [default=use |
1548 | both] |
1549 | --with-tags[=TAGS] include additional configurations [automatic] |
1550 | --with-fuse=<internal|external> |
1551 | Select FUSE library: internal or external |
1552 | [default=internal] |
1553 | |
1554 | Some influential environment variables: |
1555 | CC C compiler command |
1556 | CFLAGS C compiler flags |
1557 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1558 | nonstandard directory <lib dir> |
1559 | LIBS libraries to pass to the linker, e.g. -l<library> |
1560 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1561 | you have headers in a nonstandard directory <include dir> |
1562 | CPP C preprocessor |
1563 | CXX C++ compiler command |
1564 | CXXFLAGS C++ compiler flags |
1565 | CXXCPP C++ preprocessor |
1566 | F77 Fortran 77 compiler command |
1567 | FFLAGS Fortran 77 compiler flags |
1568 | LDCONFIG ldconfig utility |
1569 | PKG_CONFIG path to pkg-config utility |
1570 | FUSE_MODULE_CFLAGS |
1571 | C compiler flags for FUSE_MODULE, overriding pkg-config |
1572 | FUSE_MODULE_LIBS |
1573 | linker flags for FUSE_MODULE, overriding pkg-config |
1574 | |
1575 | Use these variables to override the choices made by `configure' or to help |
1576 | it to find libraries and programs with nonstandard names/locations. |
1577 | |
1578 | Report bugs to <ntfs-3g-devel@lists.sf.net>. |
1579 | _ACEOF |
1580 | ac_status=$? |
1581 | fi |
1582 | |
1583 | if test "$ac_init_help" = "recursive"; then |
1584 | # If there are subdirs, report their specific --help. |
1585 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1586 | test -d "$ac_dir" || continue |
1587 | ac_builddir=. |
1588 | |
1589 | case "$ac_dir" in |
1590 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1591 | *) |
1592 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1593 | # A ".." for each directory in $ac_dir_suffix. |
1594 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1595 | case $ac_top_builddir_sub in |
1596 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1597 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1598 | esac ;; |
1599 | esac |
1600 | ac_abs_top_builddir=$ac_pwd |
1601 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1602 | # for backward compatibility: |
1603 | ac_top_builddir=$ac_top_build_prefix |
1604 | |
1605 | case $srcdir in |
1606 | .) # We are building in place. |
1607 | ac_srcdir=. |
1608 | ac_top_srcdir=$ac_top_builddir_sub |
1609 | ac_abs_top_srcdir=$ac_pwd ;; |
1610 | [\\/]* | ?:[\\/]* ) # Absolute name. |
1611 | ac_srcdir=$srcdir$ac_dir_suffix; |
1612 | ac_top_srcdir=$srcdir |
1613 | ac_abs_top_srcdir=$srcdir ;; |
1614 | *) # Relative name. |
1615 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1616 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
1617 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1618 | esac |
1619 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1620 | |
1621 | cd "$ac_dir" || { ac_status=$?; continue; } |
1622 | # Check for guested configure. |
1623 | if test -f "$ac_srcdir/configure.gnu"; then |
1624 | echo && |
1625 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1626 | elif test -f "$ac_srcdir/configure"; then |
1627 | echo && |
1628 | $SHELL "$ac_srcdir/configure" --help=recursive |
1629 | else |
1630 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1631 | fi || ac_status=$? |
1632 | cd "$ac_pwd" || { ac_status=$?; break; } |
1633 | done |
1634 | fi |
1635 | |
1636 | test -n "$ac_init_help" && exit $ac_status |
1637 | if $ac_init_version; then |
1638 | cat <<\_ACEOF |
1639 | ntfs-3g configure 2010.5.16 |
1640 | generated by GNU Autoconf 2.61 |
1641 | |
1642 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1643 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
1644 | This configure script is free software; the Free Software Foundation |
1645 | gives unlimited permission to copy, distribute and modify it. |
1646 | _ACEOF |
1647 | exit |
1648 | fi |
1649 | cat >config.log <<_ACEOF |
1650 | This file contains any messages produced by compilers while |
1651 | running configure, to aid debugging if configure makes a mistake. |
1652 | |
1653 | It was created by ntfs-3g $as_me 2010.5.16, which was |
1654 | generated by GNU Autoconf 2.61. Invocation command line was |
1655 | |
1656 | $ $0 $@ |
1657 | |
1658 | _ACEOF |
1659 | exec 5>>config.log |
1660 | { |
1661 | cat <<_ASUNAME |
1662 | ## --------- ## |
1663 | ## Platform. ## |
1664 | ## --------- ## |
1665 | |
1666 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1667 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1668 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1669 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1670 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1671 | |
1672 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1673 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1674 | |
1675 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1676 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1677 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1678 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1679 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1680 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1681 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1682 | |
1683 | _ASUNAME |
1684 | |
1685 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1686 | for as_dir in $PATH |
1687 | do |
1688 | IFS=$as_save_IFS |
1689 | test -z "$as_dir" && as_dir=. |
1690 | echo "PATH: $as_dir" |
1691 | done |
1692 | IFS=$as_save_IFS |
1693 | |
1694 | } >&5 |
1695 | |
1696 | cat >&5 <<_ACEOF |
1697 | |
1698 | |
1699 | ## ----------- ## |
1700 | ## Core tests. ## |
1701 | ## ----------- ## |
1702 | |
1703 | _ACEOF |
1704 | |
1705 | |
1706 | # Keep a trace of the command line. |
1707 | # Strip out --no-create and --no-recursion so they do not pile up. |
1708 | # Strip out --silent because we don't want to record it for future runs. |
1709 | # Also quote any args containing shell meta-characters. |
1710 | # Make two passes to allow for proper duplicate-argument suppression. |
1711 | ac_configure_args= |
1712 | ac_configure_args0= |
1713 | ac_configure_args1= |
1714 | ac_must_keep_next=false |
1715 | for ac_pass in 1 2 |
1716 | do |
1717 | for ac_arg |
1718 | do |
1719 | case $ac_arg in |
1720 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1721 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1722 | | -silent | --silent | --silen | --sile | --sil) |
1723 | continue ;; |
1724 | *\'*) |
1725 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1726 | esac |
1727 | case $ac_pass in |
1728 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1729 | 2) |
1730 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1731 | if test $ac_must_keep_next = true; then |
1732 | ac_must_keep_next=false # Got value, back to normal. |
1733 | else |
1734 | case $ac_arg in |
1735 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1736 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1737 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1738 | | -with-* | --with-* | -without-* | --without-* | --x) |
1739 | case "$ac_configure_args0 " in |
1740 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1741 | esac |
1742 | ;; |
1743 | -* ) ac_must_keep_next=true ;; |
1744 | esac |
1745 | fi |
1746 | ac_configure_args="$ac_configure_args '$ac_arg'" |
1747 | ;; |
1748 | esac |
1749 | done |
1750 | done |
1751 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1752 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1753 | |
1754 | # When interrupted or exit'd, cleanup temporary files, and complete |
1755 | # config.log. We remove comments because anyway the quotes in there |
1756 | # would cause problems or look ugly. |
1757 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1758 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1759 | trap 'exit_status=$? |
1760 | # Save into config.log some information that might help in debugging. |
1761 | { |
1762 | echo |
1763 | |
1764 | cat <<\_ASBOX |
1765 | ## ---------------- ## |
1766 | ## Cache variables. ## |
1767 | ## ---------------- ## |
1768 | _ASBOX |
1769 | echo |
1770 | # The following way of writing the cache mishandles newlines in values, |
1771 | ( |
1772 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1773 | eval ac_val=\$$ac_var |
1774 | case $ac_val in #( |
1775 | *${as_nl}*) |
1776 | case $ac_var in #( |
1777 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1778 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1779 | esac |
1780 | case $ac_var in #( |
1781 | _ | IFS | as_nl) ;; #( |
1782 | *) $as_unset $ac_var ;; |
1783 | esac ;; |
1784 | esac |
1785 | done |
1786 | (set) 2>&1 | |
1787 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1788 | *${as_nl}ac_space=\ *) |
1789 | sed -n \ |
1790 | "s/'\''/'\''\\\\'\'''\''/g; |
1791 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1792 | ;; #( |
1793 | *) |
1794 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1795 | ;; |
1796 | esac | |
1797 | sort |
1798 | ) |
1799 | echo |
1800 | |
1801 | cat <<\_ASBOX |
1802 | ## ----------------- ## |
1803 | ## Output variables. ## |
1804 | ## ----------------- ## |
1805 | _ASBOX |
1806 | echo |
1807 | for ac_var in $ac_subst_vars |
1808 | do |
1809 | eval ac_val=\$$ac_var |
1810 | case $ac_val in |
1811 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1812 | esac |
1813 | echo "$ac_var='\''$ac_val'\''" |
1814 | done | sort |
1815 | echo |
1816 | |
1817 | if test -n "$ac_subst_files"; then |
1818 | cat <<\_ASBOX |
1819 | ## ------------------- ## |
1820 | ## File substitutions. ## |
1821 | ## ------------------- ## |
1822 | _ASBOX |
1823 | echo |
1824 | for ac_var in $ac_subst_files |
1825 | do |
1826 | eval ac_val=\$$ac_var |
1827 | case $ac_val in |
1828 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1829 | esac |
1830 | echo "$ac_var='\''$ac_val'\''" |
1831 | done | sort |
1832 | echo |
1833 | fi |
1834 | |
1835 | if test -s confdefs.h; then |
1836 | cat <<\_ASBOX |
1837 | ## ----------- ## |
1838 | ## confdefs.h. ## |
1839 | ## ----------- ## |
1840 | _ASBOX |
1841 | echo |
1842 | cat confdefs.h |
1843 | echo |
1844 | fi |
1845 | test "$ac_signal" != 0 && |
1846 | echo "$as_me: caught signal $ac_signal" |
1847 | echo "$as_me: exit $exit_status" |
1848 | } >&5 |
1849 | rm -f core *.core core.conftest.* && |
1850 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1851 | exit $exit_status |
1852 | ' 0 |
1853 | for ac_signal in 1 2 13 15; do |
1854 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1855 | done |
1856 | ac_signal=0 |
1857 | |
1858 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1859 | rm -f -r conftest* confdefs.h |
1860 | |
1861 | # Predefined preprocessor variables. |
1862 | |
1863 | cat >>confdefs.h <<_ACEOF |
1864 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1865 | _ACEOF |
1866 | |
1867 | |
1868 | cat >>confdefs.h <<_ACEOF |
1869 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1870 | _ACEOF |
1871 | |
1872 | |
1873 | cat >>confdefs.h <<_ACEOF |
1874 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1875 | _ACEOF |
1876 | |
1877 | |
1878 | cat >>confdefs.h <<_ACEOF |
1879 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1880 | _ACEOF |
1881 | |
1882 | |
1883 | cat >>confdefs.h <<_ACEOF |
1884 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1885 | _ACEOF |
1886 | |
1887 | |
1888 | # Let the site file select an alternate cache file if it wants to. |
1889 | # Prefer explicitly selected file to automatically selected ones. |
1890 | if test -n "$CONFIG_SITE"; then |
1891 | set x "$CONFIG_SITE" |
1892 | elif test "x$prefix" != xNONE; then |
1893 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1894 | else |
1895 | set x "$ac_default_prefix/share/config.site" \ |
1896 | "$ac_default_prefix/etc/config.site" |
1897 | fi |
1898 | shift |
1899 | for ac_site_file |
1900 | do |
1901 | if test -r "$ac_site_file"; then |
1902 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1903 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1904 | sed 's/^/| /' "$ac_site_file" >&5 |
1905 | . "$ac_site_file" |
1906 | fi |
1907 | done |
1908 | |
1909 | if test -r "$cache_file"; then |
1910 | # Some versions of bash will fail to source /dev/null (special |
1911 | # files actually), so we avoid doing that. |
1912 | if test -f "$cache_file"; then |
1913 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1914 | echo "$as_me: loading cache $cache_file" >&6;} |
1915 | case $cache_file in |
1916 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1917 | *) . "./$cache_file";; |
1918 | esac |
1919 | fi |
1920 | else |
1921 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1922 | echo "$as_me: creating cache $cache_file" >&6;} |
1923 | >$cache_file |
1924 | fi |
1925 | |
1926 | ac_header_list="$ac_header_list utime.h" |
1927 | # Check that the precious variables saved in the cache have kept the same |
1928 | # value. |
1929 | ac_cache_corrupted=false |
1930 | for ac_var in $ac_precious_vars; do |
1931 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1932 | eval ac_new_set=\$ac_env_${ac_var}_set |
1933 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1934 | eval ac_new_val=\$ac_env_${ac_var}_value |
1935 | case $ac_old_set,$ac_new_set in |
1936 | set,) |
1937 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1938 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1939 | ac_cache_corrupted=: ;; |
1940 | ,set) |
1941 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1942 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1943 | ac_cache_corrupted=: ;; |
1944 | ,);; |
1945 | *) |
1946 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1947 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1948 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1949 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1950 | echo "$as_me: former value: $ac_old_val" >&2;} |
1951 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1952 | echo "$as_me: current value: $ac_new_val" >&2;} |
1953 | ac_cache_corrupted=: |
1954 | fi;; |
1955 | esac |
1956 | # Pass precious variables to config.status. |
1957 | if test "$ac_new_set" = set; then |
1958 | case $ac_new_val in |
1959 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1960 | *) ac_arg=$ac_var=$ac_new_val ;; |
1961 | esac |
1962 | case " $ac_configure_args " in |
1963 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1964 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1965 | esac |
1966 | fi |
1967 | done |
1968 | if $ac_cache_corrupted; then |
1969 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1970 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1971 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1972 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1973 | { (exit 1); exit 1; }; } |
1974 | fi |
1975 | |
1976 | |
1977 | |
1978 | |
1979 | |
1980 | |
1981 | |
1982 | |
1983 | |
1984 | |
1985 | |
1986 | |
1987 | |
1988 | |
1989 | |
1990 | |
1991 | |
1992 | |
1993 | |
1994 | |
1995 | |
1996 | |
1997 | |
1998 | |
1999 | |
2000 | ac_ext=c |
2001 | ac_cpp='$CPP $CPPFLAGS' |
2002 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2003 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2004 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2005 | |
2006 | |
2007 | LIBNTFS_3G_VERSION="76" |
2008 | |
2009 | |
2010 | # Environment |
2011 | ac_aux_dir= |
2012 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2013 | if test -f "$ac_dir/install-sh"; then |
2014 | ac_aux_dir=$ac_dir |
2015 | ac_install_sh="$ac_aux_dir/install-sh -c" |
2016 | break |
2017 | elif test -f "$ac_dir/install.sh"; then |
2018 | ac_aux_dir=$ac_dir |
2019 | ac_install_sh="$ac_aux_dir/install.sh -c" |
2020 | break |
2021 | elif test -f "$ac_dir/shtool"; then |
2022 | ac_aux_dir=$ac_dir |
2023 | ac_install_sh="$ac_aux_dir/shtool install -c" |
2024 | break |
2025 | fi |
2026 | done |
2027 | if test -z "$ac_aux_dir"; then |
2028 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
2029 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
2030 | { (exit 1); exit 1; }; } |
2031 | fi |
2032 | |
2033 | # These three variables are undocumented and unsupported, |
2034 | # and are intended to be withdrawn in a future Autoconf release. |
2035 | # They can cause serious problems if a builder's source tree is in a directory |
2036 | # whose full name contains unusual characters. |
2037 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
2038 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
2039 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
2040 | |
2041 | |
2042 | # Make sure we can run config.sub. |
2043 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2044 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2045 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
2046 | { (exit 1); exit 1; }; } |
2047 | |
2048 | { echo "$as_me:$LINENO: checking build system type" >&5 |
2049 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
2050 | if test "${ac_cv_build+set}" = set; then |
2051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2052 | else |
2053 | ac_build_alias=$build_alias |
2054 | test "x$ac_build_alias" = x && |
2055 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
2056 | test "x$ac_build_alias" = x && |
2057 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2058 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
2059 | { (exit 1); exit 1; }; } |
2060 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2061 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2062 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
2063 | { (exit 1); exit 1; }; } |
2064 | |
2065 | fi |
2066 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2067 | echo "${ECHO_T}$ac_cv_build" >&6; } |
2068 | case $ac_cv_build in |
2069 | *-*-*) ;; |
2070 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2071 | echo "$as_me: error: invalid value of canonical build" >&2;} |
2072 | { (exit 1); exit 1; }; };; |
2073 | esac |
2074 | build=$ac_cv_build |
2075 | ac_save_IFS=$IFS; IFS='-' |
2076 | set x $ac_cv_build |
2077 | shift |
2078 | build_cpu=$1 |
2079 | build_vendor=$2 |
2080 | shift; shift |
2081 | # Remember, the first character of IFS is used to create $*, |
2082 | # except with old shells: |
2083 | build_os=$* |
2084 | IFS=$ac_save_IFS |
2085 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
2086 | |
2087 | |
2088 | { echo "$as_me:$LINENO: checking host system type" >&5 |
2089 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
2090 | if test "${ac_cv_host+set}" = set; then |
2091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2092 | else |
2093 | if test "x$host_alias" = x; then |
2094 | ac_cv_host=$ac_cv_build |
2095 | else |
2096 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2097 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2098 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
2099 | { (exit 1); exit 1; }; } |
2100 | fi |
2101 | |
2102 | fi |
2103 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2104 | echo "${ECHO_T}$ac_cv_host" >&6; } |
2105 | case $ac_cv_host in |
2106 | *-*-*) ;; |
2107 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2108 | echo "$as_me: error: invalid value of canonical host" >&2;} |
2109 | { (exit 1); exit 1; }; };; |
2110 | esac |
2111 | host=$ac_cv_host |
2112 | ac_save_IFS=$IFS; IFS='-' |
2113 | set x $ac_cv_host |
2114 | shift |
2115 | host_cpu=$1 |
2116 | host_vendor=$2 |
2117 | shift; shift |
2118 | # Remember, the first character of IFS is used to create $*, |
2119 | # except with old shells: |
2120 | host_os=$* |
2121 | IFS=$ac_save_IFS |
2122 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
2123 | |
2124 | |
2125 | { echo "$as_me:$LINENO: checking target system type" >&5 |
2126 | echo $ECHO_N "checking target system type... $ECHO_C" >&6; } |
2127 | if test "${ac_cv_target+set}" = set; then |
2128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2129 | else |
2130 | if test "x$target_alias" = x; then |
2131 | ac_cv_target=$ac_cv_host |
2132 | else |
2133 | ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || |
2134 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5 |
2135 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;} |
2136 | { (exit 1); exit 1; }; } |
2137 | fi |
2138 | |
2139 | fi |
2140 | { echo "$as_me:$LINENO: result: $ac_cv_target" >&5 |
2141 | echo "${ECHO_T}$ac_cv_target" >&6; } |
2142 | case $ac_cv_target in |
2143 | *-*-*) ;; |
2144 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5 |
2145 | echo "$as_me: error: invalid value of canonical target" >&2;} |
2146 | { (exit 1); exit 1; }; };; |
2147 | esac |
2148 | target=$ac_cv_target |
2149 | ac_save_IFS=$IFS; IFS='-' |
2150 | set x $ac_cv_target |
2151 | shift |
2152 | target_cpu=$1 |
2153 | target_vendor=$2 |
2154 | shift; shift |
2155 | # Remember, the first character of IFS is used to create $*, |
2156 | # except with old shells: |
2157 | target_os=$* |
2158 | IFS=$ac_save_IFS |
2159 | case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac |
2160 | |
2161 | |
2162 | # The aliases save the names the user supplied, while $host etc. |
2163 | # will get canonicalized. |
2164 | test -n "$target_alias" && |
2165 | test "$program_prefix$program_suffix$program_transform_name" = \ |
2166 | NONENONEs,x,x, && |
2167 | program_prefix=${target_alias}- |
2168 | |
2169 | # Automake |
2170 | am__api_version='1.10' |
2171 | |
2172 | # Find a good install program. We prefer a C program (faster), |
2173 | # so one script is as good as another. But avoid the broken or |
2174 | # incompatible versions: |
2175 | # SysV /etc/install, /usr/sbin/install |
2176 | # SunOS /usr/etc/install |
2177 | # IRIX /sbin/install |
2178 | # AIX /bin/install |
2179 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
2180 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2181 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2182 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2183 | # OS/2's system install, which has a completely different semantic |
2184 | # ./install, which can be erroneously created by make from ./install.sh. |
2185 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2186 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
2187 | if test -z "$INSTALL"; then |
2188 | if test "${ac_cv_path_install+set}" = set; then |
2189 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2190 | else |
2191 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2192 | for as_dir in $PATH |
2193 | do |
2194 | IFS=$as_save_IFS |
2195 | test -z "$as_dir" && as_dir=. |
2196 | # Account for people who put trailing slashes in PATH elements. |
2197 | case $as_dir/ in |
2198 | ./ | .// | /cC/* | \ |
2199 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2200 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2201 | /usr/ucb/* ) ;; |
2202 | *) |
2203 | # OSF1 and SCO ODT 3.0 have their own names for install. |
2204 | # Don't use installbsd from OSF since it installs stuff as root |
2205 | # by default. |
2206 | for ac_prog in ginstall scoinst install; do |
2207 | for ac_exec_ext in '' $ac_executable_extensions; do |
2208 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
2209 | if test $ac_prog = install && |
2210 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2211 | # AIX install. It has an incompatible calling convention. |
2212 | : |
2213 | elif test $ac_prog = install && |
2214 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2215 | # program-specific install script used by HP pwplus--don't use. |
2216 | : |
2217 | else |
2218 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2219 | break 3 |
2220 | fi |
2221 | fi |
2222 | done |
2223 | done |
2224 | ;; |
2225 | esac |
2226 | done |
2227 | IFS=$as_save_IFS |
2228 | |
2229 | |
2230 | fi |
2231 | if test "${ac_cv_path_install+set}" = set; then |
2232 | INSTALL=$ac_cv_path_install |
2233 | else |
2234 | # As a last resort, use the slow shell script. Don't cache a |
2235 | # value for INSTALL within a source directory, because that will |
2236 | # break other packages using the cache if that directory is |
2237 | # removed, or if the value is a relative name. |
2238 | INSTALL=$ac_install_sh |
2239 | fi |
2240 | fi |
2241 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2242 | echo "${ECHO_T}$INSTALL" >&6; } |
2243 | |
2244 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2245 | # It thinks the first close brace ends the variable substitution. |
2246 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2247 | |
2248 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2249 | |
2250 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2251 | |
2252 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2253 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
2254 | # Just in case |
2255 | sleep 1 |
2256 | echo timestamp > conftest.file |
2257 | # Do `set' in a subshell so we don't clobber the current shell's |
2258 | # arguments. Must try -L first in case configure is actually a |
2259 | # symlink; some systems play weird games with the mod time of symlinks |
2260 | # (eg FreeBSD returns the mod time of the symlink's containing |
2261 | # directory). |
2262 | if ( |
2263 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
2264 | if test "$*" = "X"; then |
2265 | # -L didn't work. |
2266 | set X `ls -t $srcdir/configure conftest.file` |
2267 | fi |
2268 | rm -f conftest.file |
2269 | if test "$*" != "X $srcdir/configure conftest.file" \ |
2270 | && test "$*" != "X conftest.file $srcdir/configure"; then |
2271 | |
2272 | # If neither matched, then we have a broken ls. This can happen |
2273 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
2274 | # broken ls alias from the environment. This has actually |
2275 | # happened. Such a system could not be considered "sane". |
2276 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2277 | alias in your environment" >&5 |
2278 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
2279 | alias in your environment" >&2;} |
2280 | { (exit 1); exit 1; }; } |
2281 | fi |
2282 | |
2283 | test "$2" = conftest.file |
2284 | ) |
2285 | then |
2286 | # Ok. |
2287 | : |
2288 | else |
2289 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2290 | Check your system clock" >&5 |
2291 | echo "$as_me: error: newly created file is older than distributed files! |
2292 | Check your system clock" >&2;} |
2293 | { (exit 1); exit 1; }; } |
2294 | fi |
2295 | { echo "$as_me:$LINENO: result: yes" >&5 |
2296 | echo "${ECHO_T}yes" >&6; } |
2297 | test "$program_prefix" != NONE && |
2298 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2299 | # Use a double $ so make ignores it. |
2300 | test "$program_suffix" != NONE && |
2301 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2302 | # Double any \ or $. echo might interpret backslashes. |
2303 | # By default was `s,x,x', remove it if useless. |
2304 | cat <<\_ACEOF >conftest.sed |
2305 | s/[\\$]/&&/g;s/;s,x,x,$// |
2306 | _ACEOF |
2307 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
2308 | rm -f conftest.sed |
2309 | |
2310 | # expand $ac_aux_dir to an absolute path |
2311 | am_aux_dir=`cd $ac_aux_dir && pwd` |
2312 | |
2313 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
2314 | # Use eval to expand $SHELL |
2315 | if eval "$MISSING --run true"; then |
2316 | am_missing_run="$MISSING --run " |
2317 | else |
2318 | am_missing_run= |
2319 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2320 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2321 | fi |
2322 | |
2323 | { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5 |
2324 | echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; } |
2325 | if test -z "$MKDIR_P"; then |
2326 | if test "${ac_cv_path_mkdir+set}" = set; then |
2327 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2328 | else |
2329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2330 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin |
2331 | do |
2332 | IFS=$as_save_IFS |
2333 | test -z "$as_dir" && as_dir=. |
2334 | for ac_prog in mkdir gmkdir; do |
2335 | for ac_exec_ext in '' $ac_executable_extensions; do |
2336 | { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue |
2337 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( |
2338 | 'mkdir (GNU coreutils) '* | \ |
2339 | 'mkdir (coreutils) '* | \ |
2340 | 'mkdir (fileutils) '4.1*) |
2341 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext |
2342 | break 3;; |
2343 | esac |
2344 | done |
2345 | done |
2346 | done |
2347 | IFS=$as_save_IFS |
2348 | |
2349 | fi |
2350 | |
2351 | if test "${ac_cv_path_mkdir+set}" = set; then |
2352 | MKDIR_P="$ac_cv_path_mkdir -p" |
2353 | else |
2354 | # As a last resort, use the slow shell script. Don't cache a |
2355 | # value for MKDIR_P within a source directory, because that will |
2356 | # break other packages using the cache if that directory is |
2357 | # removed, or if the value is a relative name. |
2358 | test -d ./--version && rmdir ./--version |
2359 | MKDIR_P="$ac_install_sh -d" |
2360 | fi |
2361 | fi |
2362 | { echo "$as_me:$LINENO: result: $MKDIR_P" >&5 |
2363 | echo "${ECHO_T}$MKDIR_P" >&6; } |
2364 | |
2365 | mkdir_p="$MKDIR_P" |
2366 | case $mkdir_p in |
2367 | [\\/$]* | ?:[\\/]*) ;; |
2368 | */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; |
2369 | esac |
2370 | |
2371 | for ac_prog in gawk mawk nawk awk |
2372 | do |
2373 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2374 | set dummy $ac_prog; ac_word=$2 |
2375 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2376 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2377 | if test "${ac_cv_prog_AWK+set}" = set; then |
2378 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2379 | else |
2380 | if test -n "$AWK"; then |
2381 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2382 | else |
2383 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2384 | for as_dir in $PATH |
2385 | do |
2386 | IFS=$as_save_IFS |
2387 | test -z "$as_dir" && as_dir=. |
2388 | for ac_exec_ext in '' $ac_executable_extensions; do |
2389 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2390 | ac_cv_prog_AWK="$ac_prog" |
2391 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2392 | break 2 |
2393 | fi |
2394 | done |
2395 | done |
2396 | IFS=$as_save_IFS |
2397 | |
2398 | fi |
2399 | fi |
2400 | AWK=$ac_cv_prog_AWK |
2401 | if test -n "$AWK"; then |
2402 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2403 | echo "${ECHO_T}$AWK" >&6; } |
2404 | else |
2405 | { echo "$as_me:$LINENO: result: no" >&5 |
2406 | echo "${ECHO_T}no" >&6; } |
2407 | fi |
2408 | |
2409 | |
2410 | test -n "$AWK" && break |
2411 | done |
2412 | |
2413 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2414 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
2415 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2416 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
2417 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2418 | else |
2419 | cat >conftest.make <<\_ACEOF |
2420 | SHELL = /bin/sh |
2421 | all: |
2422 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
2423 | _ACEOF |
2424 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
2425 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2426 | *@@@%%%=?*=@@@%%%*) |
2427 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
2428 | *) |
2429 | eval ac_cv_prog_make_${ac_make}_set=no;; |
2430 | esac |
2431 | rm -f conftest.make |
2432 | fi |
2433 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2434 | { echo "$as_me:$LINENO: result: yes" >&5 |
2435 | echo "${ECHO_T}yes" >&6; } |
2436 | SET_MAKE= |
2437 | else |
2438 | { echo "$as_me:$LINENO: result: no" >&5 |
2439 | echo "${ECHO_T}no" >&6; } |
2440 | SET_MAKE="MAKE=${MAKE-make}" |
2441 | fi |
2442 | |
2443 | rm -rf .tst 2>/dev/null |
2444 | mkdir .tst 2>/dev/null |
2445 | if test -d .tst; then |
2446 | am__leading_dot=. |
2447 | else |
2448 | am__leading_dot=_ |
2449 | fi |
2450 | rmdir .tst 2>/dev/null |
2451 | |
2452 | if test "`cd $srcdir && pwd`" != "`pwd`"; then |
2453 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output |
2454 | # is not polluted with repeated "-I." |
2455 | am__isrc=' -I$(srcdir)' |
2456 | # test to see if srcdir already configured |
2457 | if test -f $srcdir/config.status; then |
2458 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2459 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2460 | { (exit 1); exit 1; }; } |
2461 | fi |
2462 | fi |
2463 | |
2464 | # test whether we have cygpath |
2465 | if test -z "$CYGPATH_W"; then |
2466 | if (cygpath --version) >/dev/null 2>/dev/null; then |
2467 | CYGPATH_W='cygpath -w' |
2468 | else |
2469 | CYGPATH_W=echo |
2470 | fi |
2471 | fi |
2472 | |
2473 | |
2474 | # Define the identity of the package. |
2475 | PACKAGE=${PACKAGE_NAME} |
2476 | VERSION=${PACKAGE_VERSION} |
2477 | |
2478 | |
2479 | cat >>confdefs.h <<_ACEOF |
2480 | #define PACKAGE "$PACKAGE" |
2481 | _ACEOF |
2482 | |
2483 | |
2484 | cat >>confdefs.h <<_ACEOF |
2485 | #define VERSION "$VERSION" |
2486 | _ACEOF |
2487 | |
2488 | # Some tools Automake needs. |
2489 | |
2490 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2491 | |
2492 | |
2493 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2494 | |
2495 | |
2496 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2497 | |
2498 | |
2499 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2500 | |
2501 | |
2502 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2503 | |
2504 | install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"} |
2505 | |
2506 | # Installed binaries are usually stripped using `strip' when the user |
2507 | # run `make install-strip'. However `strip' might not be the right |
2508 | # tool to use in cross-compilation environments, therefore Automake |
2509 | # will honor the `STRIP' environment variable to overrule this program. |
2510 | if test "$cross_compiling" != no; then |
2511 | if test -n "$ac_tool_prefix"; then |
2512 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2513 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
2514 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2515 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2516 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2517 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2518 | else |
2519 | if test -n "$STRIP"; then |
2520 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2521 | else |
2522 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2523 | for as_dir in $PATH |
2524 | do |
2525 | IFS=$as_save_IFS |
2526 | test -z "$as_dir" && as_dir=. |
2527 | for ac_exec_ext in '' $ac_executable_extensions; do |
2528 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2529 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2530 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2531 | break 2 |
2532 | fi |
2533 | done |
2534 | done |
2535 | IFS=$as_save_IFS |
2536 | |
2537 | fi |
2538 | fi |
2539 | STRIP=$ac_cv_prog_STRIP |
2540 | if test -n "$STRIP"; then |
2541 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2542 | echo "${ECHO_T}$STRIP" >&6; } |
2543 | else |
2544 | { echo "$as_me:$LINENO: result: no" >&5 |
2545 | echo "${ECHO_T}no" >&6; } |
2546 | fi |
2547 | |
2548 | |
2549 | fi |
2550 | if test -z "$ac_cv_prog_STRIP"; then |
2551 | ac_ct_STRIP=$STRIP |
2552 | # Extract the first word of "strip", so it can be a program name with args. |
2553 | set dummy strip; ac_word=$2 |
2554 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2555 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2556 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2557 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2558 | else |
2559 | if test -n "$ac_ct_STRIP"; then |
2560 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2561 | else |
2562 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2563 | for as_dir in $PATH |
2564 | do |
2565 | IFS=$as_save_IFS |
2566 | test -z "$as_dir" && as_dir=. |
2567 | for ac_exec_ext in '' $ac_executable_extensions; do |
2568 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2569 | ac_cv_prog_ac_ct_STRIP="strip" |
2570 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2571 | break 2 |
2572 | fi |
2573 | done |
2574 | done |
2575 | IFS=$as_save_IFS |
2576 | |
2577 | fi |
2578 | fi |
2579 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2580 | if test -n "$ac_ct_STRIP"; then |
2581 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2582 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
2583 | else |
2584 | { echo "$as_me:$LINENO: result: no" >&5 |
2585 | echo "${ECHO_T}no" >&6; } |
2586 | fi |
2587 | |
2588 | if test "x$ac_ct_STRIP" = x; then |
2589 | STRIP=":" |
2590 | else |
2591 | case $cross_compiling:$ac_tool_warned in |
2592 | yes:) |
2593 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2594 | whose name does not start with the host triplet. If you think this |
2595 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2596 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2597 | whose name does not start with the host triplet. If you think this |
2598 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2599 | ac_tool_warned=yes ;; |
2600 | esac |
2601 | STRIP=$ac_ct_STRIP |
2602 | fi |
2603 | else |
2604 | STRIP="$ac_cv_prog_STRIP" |
2605 | fi |
2606 | |
2607 | fi |
2608 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" |
2609 | |
2610 | # We need awk for the "check" target. The system "awk" is bad on |
2611 | # some platforms. |
2612 | # Always define AMTAR for backward compatibility. |
2613 | |
2614 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
2615 | |
2616 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
2617 | |
2618 | |
2619 | |
2620 | |
2621 | |
2622 | ac_config_headers="$ac_config_headers config.h" |
2623 | |
2624 | |
2625 | { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2626 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } |
2627 | # Check whether --enable-maintainer-mode was given. |
2628 | if test "${enable_maintainer_mode+set}" = set; then |
2629 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2630 | else |
2631 | USE_MAINTAINER_MODE=no |
2632 | fi |
2633 | |
2634 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
2635 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } |
2636 | if test $USE_MAINTAINER_MODE = yes; then |
2637 | MAINTAINER_MODE_TRUE= |
2638 | MAINTAINER_MODE_FALSE='#' |
2639 | else |
2640 | MAINTAINER_MODE_TRUE='#' |
2641 | MAINTAINER_MODE_FALSE= |
2642 | fi |
2643 | |
2644 | MAINT=$MAINTAINER_MODE_TRUE |
2645 | |
2646 | |
2647 | |
2648 | # Options |
2649 | # Check whether --enable-debug was given. |
2650 | if test "${enable_debug+set}" = set; then |
2651 | enableval=$enable_debug; |
2652 | else |
2653 | enable_debug="no" |
2654 | |
2655 | fi |
2656 | |
2657 | |
2658 | # Check whether --enable-warnings was given. |
2659 | if test "${enable_warnings+set}" = set; then |
2660 | enableval=$enable_warnings; |
2661 | else |
2662 | enable_warnings="no" |
2663 | |
2664 | fi |
2665 | |
2666 | |
2667 | # Check whether --enable-pedantic was given. |
2668 | if test "${enable_pedantic+set}" = set; then |
2669 | enableval=$enable_pedantic; |
2670 | else |
2671 | enable_pedantic="no" |
2672 | |
2673 | fi |
2674 | |
2675 | |
2676 | # Check whether --enable-really-static was given. |
2677 | if test "${enable_really_static+set}" = set; then |
2678 | enableval=$enable_really_static; |
2679 | else |
2680 | enable_really_static="no" |
2681 | |
2682 | fi |
2683 | |
2684 | |
2685 | # Check whether --enable-mount-helper was given. |
2686 | if test "${enable_mount_helper+set}" = set; then |
2687 | enableval=$enable_mount_helper; |
2688 | else |
2689 | |
2690 | case "${target_os}" in |
2691 | linux*) enable_mount_helper="yes" ;; |
2692 | *) enable_mount_helper="no" ;; |
2693 | esac |
2694 | |
2695 | |
2696 | fi |
2697 | |
2698 | |
2699 | # Check whether --enable-ldscript was given. |
2700 | if test "${enable_ldscript+set}" = set; then |
2701 | enableval=$enable_ldscript; |
2702 | else |
2703 | enable_ldscript="no" |
2704 | |
2705 | fi |
2706 | |
2707 | |
2708 | # Check whether --enable-ldconfig was given. |
2709 | if test "${enable_ldconfig+set}" = set; then |
2710 | enableval=$enable_ldconfig; |
2711 | else |
2712 | enable_ldconfig="yes" |
2713 | |
2714 | fi |
2715 | |
2716 | |
2717 | # Check whether --enable-library was given. |
2718 | if test "${enable_library+set}" = set; then |
2719 | enableval=$enable_library; |
2720 | else |
2721 | enable_library="yes" |
2722 | |
2723 | fi |
2724 | |
2725 | |
2726 | # Check whether --enable-mtab was given. |
2727 | if test "${enable_mtab+set}" = set; then |
2728 | enableval=$enable_mtab; |
2729 | else |
2730 | enable_mtab="yes" |
2731 | |
2732 | fi |
2733 | |
2734 | |
2735 | # Check whether --enable-posix-acls was given. |
2736 | if test "${enable_posix_acls+set}" = set; then |
2737 | enableval=$enable_posix_acls; |
2738 | else |
2739 | enable_posix_acls="no" |
2740 | |
2741 | fi |
2742 | |
2743 | |
2744 | # Check whether --enable-device-default-io-ops was given. |
2745 | if test "${enable_device_default_io_ops+set}" = set; then |
2746 | enableval=$enable_device_default_io_ops; |
2747 | else |
2748 | enable_device_default_io_ops="yes" |
2749 | |
2750 | fi |
2751 | |
2752 | |
2753 | # Check whether --enable-nfconv was given. |
2754 | if test "${enable_nfconv+set}" = set; then |
2755 | enableval=$enable_nfconv; enable_nfconv="no" |
2756 | else |
2757 | |
2758 | case "${target_os}" in |
2759 | darwin*) enable_nfconv="yes" ;; |
2760 | *) enable_nfconv="no" ;; |
2761 | esac |
2762 | |
2763 | |
2764 | fi |
2765 | |
2766 | |
2767 | # pthread_rwlock_t requires _GNU_SOURCE |
2768 | |
2769 | cat >>confdefs.h <<\_ACEOF |
2770 | #define _GNU_SOURCE 1 |
2771 | _ACEOF |
2772 | |
2773 | |
2774 | |
2775 | # Programs |
2776 | ac_ext=c |
2777 | ac_cpp='$CPP $CPPFLAGS' |
2778 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2779 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2780 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2781 | if test -n "$ac_tool_prefix"; then |
2782 | for ac_prog in gcc cc |
2783 | do |
2784 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2785 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2786 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2787 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2788 | if test "${ac_cv_prog_CC+set}" = set; then |
2789 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2790 | else |
2791 | if test -n "$CC"; then |
2792 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2793 | else |
2794 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2795 | for as_dir in $PATH |
2796 | do |
2797 | IFS=$as_save_IFS |
2798 | test -z "$as_dir" && as_dir=. |
2799 | for ac_exec_ext in '' $ac_executable_extensions; do |
2800 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2801 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2802 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2803 | break 2 |
2804 | fi |
2805 | done |
2806 | done |
2807 | IFS=$as_save_IFS |
2808 | |
2809 | fi |
2810 | fi |
2811 | CC=$ac_cv_prog_CC |
2812 | if test -n "$CC"; then |
2813 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2814 | echo "${ECHO_T}$CC" >&6; } |
2815 | else |
2816 | { echo "$as_me:$LINENO: result: no" >&5 |
2817 | echo "${ECHO_T}no" >&6; } |
2818 | fi |
2819 | |
2820 | |
2821 | test -n "$CC" && break |
2822 | done |
2823 | fi |
2824 | if test -z "$CC"; then |
2825 | ac_ct_CC=$CC |
2826 | for ac_prog in gcc cc |
2827 | do |
2828 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2829 | set dummy $ac_prog; ac_word=$2 |
2830 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2831 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2832 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2833 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2834 | else |
2835 | if test -n "$ac_ct_CC"; then |
2836 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2837 | else |
2838 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2839 | for as_dir in $PATH |
2840 | do |
2841 | IFS=$as_save_IFS |
2842 | test -z "$as_dir" && as_dir=. |
2843 | for ac_exec_ext in '' $ac_executable_extensions; do |
2844 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2845 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2846 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2847 | break 2 |
2848 | fi |
2849 | done |
2850 | done |
2851 | IFS=$as_save_IFS |
2852 | |
2853 | fi |
2854 | fi |
2855 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2856 | if test -n "$ac_ct_CC"; then |
2857 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2858 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
2859 | else |
2860 | { echo "$as_me:$LINENO: result: no" >&5 |
2861 | echo "${ECHO_T}no" >&6; } |
2862 | fi |
2863 | |
2864 | |
2865 | test -n "$ac_ct_CC" && break |
2866 | done |
2867 | |
2868 | if test "x$ac_ct_CC" = x; then |
2869 | CC="" |
2870 | else |
2871 | case $cross_compiling:$ac_tool_warned in |
2872 | yes:) |
2873 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2874 | whose name does not start with the host triplet. If you think this |
2875 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2876 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2877 | whose name does not start with the host triplet. If you think this |
2878 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2879 | ac_tool_warned=yes ;; |
2880 | esac |
2881 | CC=$ac_ct_CC |
2882 | fi |
2883 | fi |
2884 | |
2885 | |
2886 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2887 | See \`config.log' for more details." >&5 |
2888 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2889 | See \`config.log' for more details." >&2;} |
2890 | { (exit 1); exit 1; }; } |
2891 | |
2892 | # Provide some information about the compiler. |
2893 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2894 | ac_compiler=`set X $ac_compile; echo $2` |
2895 | { (ac_try="$ac_compiler --version >&5" |
2896 | case "(($ac_try" in |
2897 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2898 | *) ac_try_echo=$ac_try;; |
2899 | esac |
2900 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2901 | (eval "$ac_compiler --version >&5") 2>&5 |
2902 | ac_status=$? |
2903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2904 | (exit $ac_status); } |
2905 | { (ac_try="$ac_compiler -v >&5" |
2906 | case "(($ac_try" in |
2907 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2908 | *) ac_try_echo=$ac_try;; |
2909 | esac |
2910 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2911 | (eval "$ac_compiler -v >&5") 2>&5 |
2912 | ac_status=$? |
2913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2914 | (exit $ac_status); } |
2915 | { (ac_try="$ac_compiler -V >&5" |
2916 | case "(($ac_try" in |
2917 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2918 | *) ac_try_echo=$ac_try;; |
2919 | esac |
2920 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2921 | (eval "$ac_compiler -V >&5") 2>&5 |
2922 | ac_status=$? |
2923 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2924 | (exit $ac_status); } |
2925 | |
2926 | cat >conftest.$ac_ext <<_ACEOF |
2927 | /* confdefs.h. */ |
2928 | _ACEOF |
2929 | cat confdefs.h >>conftest.$ac_ext |
2930 | cat >>conftest.$ac_ext <<_ACEOF |
2931 | /* end confdefs.h. */ |
2932 | |
2933 | int |
2934 | main () |
2935 | { |
2936 | |
2937 | ; |
2938 | return 0; |
2939 | } |
2940 | _ACEOF |
2941 | ac_clean_files_save=$ac_clean_files |
2942 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2943 | # Try to create an executable without -o first, disregard a.out. |
2944 | # It will help us diagnose broken compilers, and finding out an intuition |
2945 | # of exeext. |
2946 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2947 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
2948 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2949 | # |
2950 | # List of possible output files, starting from the most likely. |
2951 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2952 | # only as a last resort. b.out is created by i960 compilers. |
2953 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2954 | # |
2955 | # The IRIX 6 linker writes into existing files which may not be |
2956 | # executable, retaining their permissions. Remove them first so a |
2957 | # subsequent execution test works. |
2958 | ac_rmfiles= |
2959 | for ac_file in $ac_files |
2960 | do |
2961 | case $ac_file in |
2962 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2963 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2964 | esac |
2965 | done |
2966 | rm -f $ac_rmfiles |
2967 | |
2968 | if { (ac_try="$ac_link_default" |
2969 | case "(($ac_try" in |
2970 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2971 | *) ac_try_echo=$ac_try;; |
2972 | esac |
2973 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2974 | (eval "$ac_link_default") 2>&5 |
2975 | ac_status=$? |
2976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2977 | (exit $ac_status); }; then |
2978 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2979 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2980 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2981 | # so that the user can short-circuit this test for compilers unknown to |
2982 | # Autoconf. |
2983 | for ac_file in $ac_files '' |
2984 | do |
2985 | test -f "$ac_file" || continue |
2986 | case $ac_file in |
2987 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
2988 | ;; |
2989 | [ab].out ) |
2990 | # We found the default executable, but exeext='' is most |
2991 | # certainly right. |
2992 | break;; |
2993 | *.* ) |
2994 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2995 | then :; else |
2996 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2997 | fi |
2998 | # We set ac_cv_exeext here because the later test for it is not |
2999 | # safe: cross compilers may not add the suffix if given an `-o' |
3000 | # argument, so we may need to know it at that point already. |
3001 | # Even if this section looks crufty: it has the advantage of |
3002 | # actually working. |
3003 | break;; |
3004 | * ) |
3005 | break;; |
3006 | esac |
3007 | done |
3008 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3009 | |
3010 | else |
3011 | ac_file='' |
3012 | fi |
3013 | |
3014 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
3015 | echo "${ECHO_T}$ac_file" >&6; } |
3016 | if test -z "$ac_file"; then |
3017 | echo "$as_me: failed program was:" >&5 |
3018 | sed 's/^/| /' conftest.$ac_ext >&5 |
3019 | |
3020 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
3021 | See \`config.log' for more details." >&5 |
3022 | echo "$as_me: error: C compiler cannot create executables |
3023 | See \`config.log' for more details." >&2;} |
3024 | { (exit 77); exit 77; }; } |
3025 | fi |
3026 | |
3027 | ac_exeext=$ac_cv_exeext |
3028 | |
3029 | # Check that the compiler produces executables we can run. If not, either |
3030 | # the compiler is broken, or we cross compile. |
3031 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3032 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
3033 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3034 | # If not cross compiling, check that we can run a simple program. |
3035 | if test "$cross_compiling" != yes; then |
3036 | if { ac_try='./$ac_file' |
3037 | { (case "(($ac_try" in |
3038 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3039 | *) ac_try_echo=$ac_try;; |
3040 | esac |
3041 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3042 | (eval "$ac_try") 2>&5 |
3043 | ac_status=$? |
3044 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3045 | (exit $ac_status); }; }; then |
3046 | cross_compiling=no |
3047 | else |
3048 | if test "$cross_compiling" = maybe; then |
3049 | cross_compiling=yes |
3050 | else |
3051 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
3052 | If you meant to cross compile, use \`--host'. |
3053 | See \`config.log' for more details." >&5 |
3054 | echo "$as_me: error: cannot run C compiled programs. |
3055 | If you meant to cross compile, use \`--host'. |
3056 | See \`config.log' for more details." >&2;} |
3057 | { (exit 1); exit 1; }; } |
3058 | fi |
3059 | fi |
3060 | fi |
3061 | { echo "$as_me:$LINENO: result: yes" >&5 |
3062 | echo "${ECHO_T}yes" >&6; } |
3063 | |
3064 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
3065 | ac_clean_files=$ac_clean_files_save |
3066 | # Check that the compiler produces executables we can run. If not, either |
3067 | # the compiler is broken, or we cross compile. |
3068 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3069 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
3070 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
3071 | echo "${ECHO_T}$cross_compiling" >&6; } |
3072 | |
3073 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3074 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
3075 | if { (ac_try="$ac_link" |
3076 | case "(($ac_try" in |
3077 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3078 | *) ac_try_echo=$ac_try;; |
3079 | esac |
3080 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3081 | (eval "$ac_link") 2>&5 |
3082 | ac_status=$? |
3083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3084 | (exit $ac_status); }; then |
3085 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3086 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3087 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
3088 | # `rm'. |
3089 | for ac_file in conftest.exe conftest conftest.*; do |
3090 | test -f "$ac_file" || continue |
3091 | case $ac_file in |
3092 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
3093 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3094 | break;; |
3095 | * ) break;; |
3096 | esac |
3097 | done |
3098 | else |
3099 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3100 | See \`config.log' for more details." >&5 |
3101 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
3102 | See \`config.log' for more details." >&2;} |
3103 | { (exit 1); exit 1; }; } |
3104 | fi |
3105 | |
3106 | rm -f conftest$ac_cv_exeext |
3107 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3108 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
3109 | |
3110 | rm -f conftest.$ac_ext |
3111 | EXEEXT=$ac_cv_exeext |
3112 | ac_exeext=$EXEEXT |
3113 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3114 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
3115 | if test "${ac_cv_objext+set}" = set; then |
3116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3117 | else |
3118 | cat >conftest.$ac_ext <<_ACEOF |
3119 | /* confdefs.h. */ |
3120 | _ACEOF |
3121 | cat confdefs.h >>conftest.$ac_ext |
3122 | cat >>conftest.$ac_ext <<_ACEOF |
3123 | /* end confdefs.h. */ |
3124 | |
3125 | int |
3126 | main () |
3127 | { |
3128 | |
3129 | ; |
3130 | return 0; |
3131 | } |
3132 | _ACEOF |
3133 | rm -f conftest.o conftest.obj |
3134 | if { (ac_try="$ac_compile" |
3135 | case "(($ac_try" in |
3136 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3137 | *) ac_try_echo=$ac_try;; |
3138 | esac |
3139 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3140 | (eval "$ac_compile") 2>&5 |
3141 | ac_status=$? |
3142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3143 | (exit $ac_status); }; then |
3144 | for ac_file in conftest.o conftest.obj conftest.*; do |
3145 | test -f "$ac_file" || continue; |
3146 | case $ac_file in |
3147 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
3148 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3149 | break;; |
3150 | esac |
3151 | done |
3152 | else |
3153 | echo "$as_me: failed program was:" >&5 |
3154 | sed 's/^/| /' conftest.$ac_ext >&5 |
3155 | |
3156 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3157 | See \`config.log' for more details." >&5 |
3158 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
3159 | See \`config.log' for more details." >&2;} |
3160 | { (exit 1); exit 1; }; } |
3161 | fi |
3162 | |
3163 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3164 | fi |
3165 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3166 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
3167 | OBJEXT=$ac_cv_objext |
3168 | ac_objext=$OBJEXT |
3169 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3170 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
3171 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3173 | else |
3174 | cat >conftest.$ac_ext <<_ACEOF |
3175 | /* confdefs.h. */ |
3176 | _ACEOF |
3177 | cat confdefs.h >>conftest.$ac_ext |
3178 | cat >>conftest.$ac_ext <<_ACEOF |
3179 | /* end confdefs.h. */ |
3180 | |
3181 | int |
3182 | main () |
3183 | { |
3184 | #ifndef __GNUC__ |
3185 | choke me |
3186 | #endif |
3187 | |
3188 | ; |
3189 | return 0; |
3190 | } |
3191 | _ACEOF |
3192 | rm -f conftest.$ac_objext |
3193 | if { (ac_try="$ac_compile" |
3194 | case "(($ac_try" in |
3195 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3196 | *) ac_try_echo=$ac_try;; |
3197 | esac |
3198 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3199 | (eval "$ac_compile") 2>conftest.er1 |
3200 | ac_status=$? |
3201 | grep -v '^ *+' conftest.er1 >conftest.err |
3202 | rm -f conftest.er1 |
3203 | cat conftest.err >&5 |
3204 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3205 | (exit $ac_status); } && { |
3206 | test -z "$ac_c_werror_flag" || |
3207 | test ! -s conftest.err |
3208 | } && test -s conftest.$ac_objext; then |
3209 | ac_compiler_gnu=yes |
3210 | else |
3211 | echo "$as_me: failed program was:" >&5 |
3212 | sed 's/^/| /' conftest.$ac_ext >&5 |
3213 | |
3214 | ac_compiler_gnu=no |
3215 | fi |
3216 | |
3217 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3218 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3219 | |
3220 | fi |
3221 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3222 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
3223 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3224 | ac_test_CFLAGS=${CFLAGS+set} |
3225 | ac_save_CFLAGS=$CFLAGS |
3226 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3227 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
3228 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3229 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3230 | else |
3231 | ac_save_c_werror_flag=$ac_c_werror_flag |
3232 | ac_c_werror_flag=yes |
3233 | ac_cv_prog_cc_g=no |
3234 | CFLAGS="-g" |
3235 | cat >conftest.$ac_ext <<_ACEOF |
3236 | /* confdefs.h. */ |
3237 | _ACEOF |
3238 | cat confdefs.h >>conftest.$ac_ext |
3239 | cat >>conftest.$ac_ext <<_ACEOF |
3240 | /* end confdefs.h. */ |
3241 | |
3242 | int |
3243 | main () |
3244 | { |
3245 | |
3246 | ; |
3247 | return 0; |
3248 | } |
3249 | _ACEOF |
3250 | rm -f conftest.$ac_objext |
3251 | if { (ac_try="$ac_compile" |
3252 | case "(($ac_try" in |
3253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3254 | *) ac_try_echo=$ac_try;; |
3255 | esac |
3256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3257 | (eval "$ac_compile") 2>conftest.er1 |
3258 | ac_status=$? |
3259 | grep -v '^ *+' conftest.er1 >conftest.err |
3260 | rm -f conftest.er1 |
3261 | cat conftest.err >&5 |
3262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3263 | (exit $ac_status); } && { |
3264 | test -z "$ac_c_werror_flag" || |
3265 | test ! -s conftest.err |
3266 | } && test -s conftest.$ac_objext; then |
3267 | ac_cv_prog_cc_g=yes |
3268 | else |
3269 | echo "$as_me: failed program was:" >&5 |
3270 | sed 's/^/| /' conftest.$ac_ext >&5 |
3271 | |
3272 | CFLAGS="" |
3273 | cat >conftest.$ac_ext <<_ACEOF |
3274 | /* confdefs.h. */ |
3275 | _ACEOF |
3276 | cat confdefs.h >>conftest.$ac_ext |
3277 | cat >>conftest.$ac_ext <<_ACEOF |
3278 | /* end confdefs.h. */ |
3279 | |
3280 | int |
3281 | main () |
3282 | { |
3283 | |
3284 | ; |
3285 | return 0; |
3286 | } |
3287 | _ACEOF |
3288 | rm -f conftest.$ac_objext |
3289 | if { (ac_try="$ac_compile" |
3290 | case "(($ac_try" in |
3291 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3292 | *) ac_try_echo=$ac_try;; |
3293 | esac |
3294 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3295 | (eval "$ac_compile") 2>conftest.er1 |
3296 | ac_status=$? |
3297 | grep -v '^ *+' conftest.er1 >conftest.err |
3298 | rm -f conftest.er1 |
3299 | cat conftest.err >&5 |
3300 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3301 | (exit $ac_status); } && { |
3302 | test -z "$ac_c_werror_flag" || |
3303 | test ! -s conftest.err |
3304 | } && test -s conftest.$ac_objext; then |
3305 | : |
3306 | else |
3307 | echo "$as_me: failed program was:" >&5 |
3308 | sed 's/^/| /' conftest.$ac_ext >&5 |
3309 | |
3310 | ac_c_werror_flag=$ac_save_c_werror_flag |
3311 | CFLAGS="-g" |
3312 | cat >conftest.$ac_ext <<_ACEOF |
3313 | /* confdefs.h. */ |
3314 | _ACEOF |
3315 | cat confdefs.h >>conftest.$ac_ext |
3316 | cat >>conftest.$ac_ext <<_ACEOF |
3317 | /* end confdefs.h. */ |
3318 | |
3319 | int |
3320 | main () |
3321 | { |
3322 | |
3323 | ; |
3324 | return 0; |
3325 | } |
3326 | _ACEOF |
3327 | rm -f conftest.$ac_objext |
3328 | if { (ac_try="$ac_compile" |
3329 | case "(($ac_try" in |
3330 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3331 | *) ac_try_echo=$ac_try;; |
3332 | esac |
3333 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3334 | (eval "$ac_compile") 2>conftest.er1 |
3335 | ac_status=$? |
3336 | grep -v '^ *+' conftest.er1 >conftest.err |
3337 | rm -f conftest.er1 |
3338 | cat conftest.err >&5 |
3339 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3340 | (exit $ac_status); } && { |
3341 | test -z "$ac_c_werror_flag" || |
3342 | test ! -s conftest.err |
3343 | } && test -s conftest.$ac_objext; then |
3344 | ac_cv_prog_cc_g=yes |
3345 | else |
3346 | echo "$as_me: failed program was:" >&5 |
3347 | sed 's/^/| /' conftest.$ac_ext >&5 |
3348 | |
3349 | |
3350 | fi |
3351 | |
3352 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3353 | fi |
3354 | |
3355 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3356 | fi |
3357 | |
3358 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3359 | ac_c_werror_flag=$ac_save_c_werror_flag |
3360 | fi |
3361 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3362 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
3363 | if test "$ac_test_CFLAGS" = set; then |
3364 | CFLAGS=$ac_save_CFLAGS |
3365 | elif test $ac_cv_prog_cc_g = yes; then |
3366 | if test "$GCC" = yes; then |
3367 | CFLAGS="-g -O2" |
3368 | else |
3369 | CFLAGS="-g" |
3370 | fi |
3371 | else |
3372 | if test "$GCC" = yes; then |
3373 | CFLAGS="-O2" |
3374 | else |
3375 | CFLAGS= |
3376 | fi |
3377 | fi |
3378 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3379 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3380 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
3381 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3382 | else |
3383 | ac_cv_prog_cc_c89=no |
3384 | ac_save_CC=$CC |
3385 | cat >conftest.$ac_ext <<_ACEOF |
3386 | /* confdefs.h. */ |
3387 | _ACEOF |
3388 | cat confdefs.h >>conftest.$ac_ext |
3389 | cat >>conftest.$ac_ext <<_ACEOF |
3390 | /* end confdefs.h. */ |
3391 | #include <stdarg.h> |
3392 | #include <stdio.h> |
3393 | #include <sys/types.h> |
3394 | #include <sys/stat.h> |
3395 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3396 | struct buf { int x; }; |
3397 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3398 | static char *e (p, i) |
3399 | char **p; |
3400 | int i; |
3401 | { |
3402 | return p[i]; |
3403 | } |
3404 | static char *f (char * (*g) (char **, int), char **p, ...) |
3405 | { |
3406 | char *s; |
3407 | va_list v; |
3408 | va_start (v,p); |
3409 | s = g (p, va_arg (v,int)); |
3410 | va_end (v); |
3411 | return s; |
3412 | } |
3413 | |
3414 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3415 | function prototypes and stuff, but not '\xHH' hex character constants. |
3416 | These don't provoke an error unfortunately, instead are silently treated |
3417 | as 'x'. The following induces an error, until -std is added to get |
3418 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3419 | array size at least. It's necessary to write '\x00'==0 to get something |
3420 | that's true only with -std. */ |
3421 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3422 | |
3423 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3424 | inside strings and character constants. */ |
3425 | #define FOO(x) 'x' |
3426 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3427 | |
3428 | int test (int i, double x); |
3429 | struct s1 {int (*f) (int a);}; |
3430 | struct s2 {int (*f) (double a);}; |
3431 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3432 | int argc; |
3433 | char **argv; |
3434 | int |
3435 | main () |
3436 | { |
3437 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3438 | ; |
3439 | return 0; |
3440 | } |
3441 | _ACEOF |
3442 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3443 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3444 | do |
3445 | CC="$ac_save_CC $ac_arg" |
3446 | rm -f conftest.$ac_objext |
3447 | if { (ac_try="$ac_compile" |
3448 | case "(($ac_try" in |
3449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3450 | *) ac_try_echo=$ac_try;; |
3451 | esac |
3452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3453 | (eval "$ac_compile") 2>conftest.er1 |
3454 | ac_status=$? |
3455 | grep -v '^ *+' conftest.er1 >conftest.err |
3456 | rm -f conftest.er1 |
3457 | cat conftest.err >&5 |
3458 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3459 | (exit $ac_status); } && { |
3460 | test -z "$ac_c_werror_flag" || |
3461 | test ! -s conftest.err |
3462 | } && test -s conftest.$ac_objext; then |
3463 | ac_cv_prog_cc_c89=$ac_arg |
3464 | else |
3465 | echo "$as_me: failed program was:" >&5 |
3466 | sed 's/^/| /' conftest.$ac_ext >&5 |
3467 | |
3468 | |
3469 | fi |
3470 | |
3471 | rm -f core conftest.err conftest.$ac_objext |
3472 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
3473 | done |
3474 | rm -f conftest.$ac_ext |
3475 | CC=$ac_save_CC |
3476 | |
3477 | fi |
3478 | # AC_CACHE_VAL |
3479 | case "x$ac_cv_prog_cc_c89" in |
3480 | x) |
3481 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3482 | echo "${ECHO_T}none needed" >&6; } ;; |
3483 | xno) |
3484 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3485 | echo "${ECHO_T}unsupported" >&6; } ;; |
3486 | *) |
3487 | CC="$CC $ac_cv_prog_cc_c89" |
3488 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3489 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
3490 | esac |
3491 | |
3492 | |
3493 | ac_ext=c |
3494 | ac_cpp='$CPP $CPPFLAGS' |
3495 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3496 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3497 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3498 | DEPDIR="${am__leading_dot}deps" |
3499 | |
3500 | ac_config_commands="$ac_config_commands depfiles" |
3501 | |
3502 | |
3503 | am_make=${MAKE-make} |
3504 | cat > confinc << 'END' |
3505 | am__doit: |
3506 | @echo done |
3507 | .PHONY: am__doit |
3508 | END |
3509 | # If we don't find an include directive, just comment out the code. |
3510 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3511 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
3512 | am__include="#" |
3513 | am__quote= |
3514 | _am_result=none |
3515 | # First try GNU make style include. |
3516 | echo "include confinc" > confmf |
3517 | # We grep out `Entering directory' and `Leaving directory' |
3518 | # messages which can occur if `w' ends up in MAKEFLAGS. |
3519 | # In particular we don't look at `^make:' because GNU make might |
3520 | # be invoked under some other name (usually "gmake"), in which |
3521 | # case it prints its new name instead of `make'. |
3522 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
3523 | am__include=include |
3524 | am__quote= |
3525 | _am_result=GNU |
3526 | fi |
3527 | # Now try BSD make style include. |
3528 | if test "$am__include" = "#"; then |
3529 | echo '.include "confinc"' > confmf |
3530 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
3531 | am__include=.include |
3532 | am__quote="\"" |
3533 | _am_result=BSD |
3534 | fi |
3535 | fi |
3536 | |
3537 | |
3538 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
3539 | echo "${ECHO_T}$_am_result" >&6; } |
3540 | rm -f confinc confmf |
3541 | |
3542 | # Check whether --enable-dependency-tracking was given. |
3543 | if test "${enable_dependency_tracking+set}" = set; then |
3544 | enableval=$enable_dependency_tracking; |
3545 | fi |
3546 | |
3547 | if test "x$enable_dependency_tracking" != xno; then |
3548 | am_depcomp="$ac_aux_dir/depcomp" |
3549 | AMDEPBACKSLASH='\' |
3550 | fi |
3551 | if test "x$enable_dependency_tracking" != xno; then |
3552 | AMDEP_TRUE= |
3553 | AMDEP_FALSE='#' |
3554 | else |
3555 | AMDEP_TRUE='#' |
3556 | AMDEP_FALSE= |
3557 | fi |
3558 | |
3559 | |
3560 | |
3561 | depcc="$CC" am_compiler_list= |
3562 | |
3563 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3564 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
3565 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3567 | else |
3568 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3569 | # We make a subdir and do the tests there. Otherwise we can end up |
3570 | # making bogus files that we don't know about and never remove. For |
3571 | # instance it was reported that on HP-UX the gcc test will end up |
3572 | # making a dummy file named `D' -- because `-MD' means `put the output |
3573 | # in D'. |
3574 | mkdir conftest.dir |
3575 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3576 | # using a relative directory. |
3577 | cp "$am_depcomp" conftest.dir |
3578 | cd conftest.dir |
3579 | # We will build objects and dependencies in a subdirectory because |
3580 | # it helps to detect inapplicable dependency modes. For instance |
3581 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3582 | # side effect of compilation, but ICC will put the dependencies in |
3583 | # the current directory while Tru64 will put them in the object |
3584 | # directory. |
3585 | mkdir sub |
3586 | |
3587 | am_cv_CC_dependencies_compiler_type=none |
3588 | if test "$am_compiler_list" = ""; then |
3589 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3590 | fi |
3591 | for depmode in $am_compiler_list; do |
3592 | # Setup a source with many dependencies, because some compilers |
3593 | # like to wrap large dependency lists on column 80 (with \), and |
3594 | # we should not choose a depcomp mode which is confused by this. |
3595 | # |
3596 | # We need to recreate these files for each test, as the compiler may |
3597 | # overwrite some of them when testing with obscure command lines. |
3598 | # This happens at least with the AIX C compiler. |
3599 | : > sub/conftest.c |
3600 | for i in 1 2 3 4 5 6; do |
3601 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3602 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3603 | # Solaris 8's {/usr,}/bin/sh. |
3604 | touch sub/conftst$i.h |
3605 | done |
3606 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3607 | |
3608 | case $depmode in |
3609 | nosideeffect) |
3610 | # after this tag, mechanisms are not by side-effect, so they'll |
3611 | # only be used when explicitly requested |
3612 | if test "x$enable_dependency_tracking" = xyes; then |
3613 | continue |
3614 | else |
3615 | break |
3616 | fi |
3617 | ;; |
3618 | none) break ;; |
3619 | esac |
3620 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3621 | # mode. It turns out that the SunPro C++ compiler does not properly |
3622 | # handle `-M -o', and we need to detect this. |
3623 | if depmode=$depmode \ |
3624 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3625 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3626 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3627 | >/dev/null 2>conftest.err && |
3628 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
3629 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3630 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3631 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3632 | # icc doesn't choke on unknown options, it will just issue warnings |
3633 | # or remarks (even with -Werror). So we grep stderr for any message |
3634 | # that says an option was ignored or not supported. |
3635 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3636 | # icc: Command line warning: ignoring option '-M'; no argument required |
3637 | # The diagnosis changed in icc 8.0: |
3638 | # icc: Command line remark: option '-MP' not supported |
3639 | if (grep 'ignoring option' conftest.err || |
3640 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3641 | am_cv_CC_dependencies_compiler_type=$depmode |
3642 | break |
3643 | fi |
3644 | fi |
3645 | done |
3646 | |
3647 | cd .. |
3648 | rm -rf conftest.dir |
3649 | else |
3650 | am_cv_CC_dependencies_compiler_type=none |
3651 | fi |
3652 | |
3653 | fi |
3654 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3655 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
3656 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3657 | |
3658 | if |
3659 | test "x$enable_dependency_tracking" != xno \ |
3660 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3661 | am__fastdepCC_TRUE= |
3662 | am__fastdepCC_FALSE='#' |
3663 | else |
3664 | am__fastdepCC_TRUE='#' |
3665 | am__fastdepCC_FALSE= |
3666 | fi |
3667 | |
3668 | |
3669 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
3670 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
3671 | LN_S=$as_ln_s |
3672 | if test "$LN_S" = "ln -s"; then |
3673 | { echo "$as_me:$LINENO: result: yes" >&5 |
3674 | echo "${ECHO_T}yes" >&6; } |
3675 | else |
3676 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
3677 | echo "${ECHO_T}no, using $LN_S" >&6; } |
3678 | fi |
3679 | |
3680 | if test "x$CC" != xcc; then |
3681 | { echo "$as_me:$LINENO: checking whether $CC and cc understand -c and -o together" >&5 |
3682 | echo $ECHO_N "checking whether $CC and cc understand -c and -o together... $ECHO_C" >&6; } |
3683 | else |
3684 | { echo "$as_me:$LINENO: checking whether cc understands -c and -o together" >&5 |
3685 | echo $ECHO_N "checking whether cc understands -c and -o together... $ECHO_C" >&6; } |
3686 | fi |
3687 | set dummy $CC; ac_cc=`echo $2 | |
3688 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
3689 | if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then |
3690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3691 | else |
3692 | cat >conftest.$ac_ext <<_ACEOF |
3693 | /* confdefs.h. */ |
3694 | _ACEOF |
3695 | cat confdefs.h >>conftest.$ac_ext |
3696 | cat >>conftest.$ac_ext <<_ACEOF |
3697 | /* end confdefs.h. */ |
3698 | |
3699 | int |
3700 | main () |
3701 | { |
3702 | |
3703 | ; |
3704 | return 0; |
3705 | } |
3706 | _ACEOF |
3707 | # Make sure it works both with $CC and with simple cc. |
3708 | # We do the test twice because some compilers refuse to overwrite an |
3709 | # existing .o file with -o, though they will create one. |
3710 | ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
3711 | rm -f conftest2.* |
3712 | if { (case "(($ac_try" in |
3713 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3714 | *) ac_try_echo=$ac_try;; |
3715 | esac |
3716 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3717 | (eval "$ac_try") 2>&5 |
3718 | ac_status=$? |
3719 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3720 | (exit $ac_status); } && |
3721 | test -f conftest2.$ac_objext && { (case "(($ac_try" in |
3722 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3723 | *) ac_try_echo=$ac_try;; |
3724 | esac |
3725 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3726 | (eval "$ac_try") 2>&5 |
3727 | ac_status=$? |
3728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3729 | (exit $ac_status); }; |
3730 | then |
3731 | eval ac_cv_prog_cc_${ac_cc}_c_o=yes |
3732 | if test "x$CC" != xcc; then |
3733 | # Test first that cc exists at all. |
3734 | if { ac_try='cc -c conftest.$ac_ext >&5' |
3735 | { (case "(($ac_try" in |
3736 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3737 | *) ac_try_echo=$ac_try;; |
3738 | esac |
3739 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3740 | (eval "$ac_try") 2>&5 |
3741 | ac_status=$? |
3742 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3743 | (exit $ac_status); }; }; then |
3744 | ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' |
3745 | rm -f conftest2.* |
3746 | if { (case "(($ac_try" in |
3747 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3748 | *) ac_try_echo=$ac_try;; |
3749 | esac |
3750 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3751 | (eval "$ac_try") 2>&5 |
3752 | ac_status=$? |
3753 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3754 | (exit $ac_status); } && |
3755 | test -f conftest2.$ac_objext && { (case "(($ac_try" in |
3756 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3757 | *) ac_try_echo=$ac_try;; |
3758 | esac |
3759 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3760 | (eval "$ac_try") 2>&5 |
3761 | ac_status=$? |
3762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3763 | (exit $ac_status); }; |
3764 | then |
3765 | # cc works too. |
3766 | : |
3767 | else |
3768 | # cc exists but doesn't like -o. |
3769 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
3770 | fi |
3771 | fi |
3772 | fi |
3773 | else |
3774 | eval ac_cv_prog_cc_${ac_cc}_c_o=no |
3775 | fi |
3776 | rm -f core conftest* |
3777 | |
3778 | fi |
3779 | if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then |
3780 | { echo "$as_me:$LINENO: result: yes" >&5 |
3781 | echo "${ECHO_T}yes" >&6; } |
3782 | else |
3783 | { echo "$as_me:$LINENO: result: no" >&5 |
3784 | echo "${ECHO_T}no" >&6; } |
3785 | |
3786 | cat >>confdefs.h <<\_ACEOF |
3787 | #define NO_MINUS_C_MINUS_O 1 |
3788 | _ACEOF |
3789 | |
3790 | fi |
3791 | |
3792 | # FIXME: we rely on the cache variable name because |
3793 | # there is no other way. |
3794 | set dummy $CC |
3795 | ac_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` |
3796 | if eval "test \"`echo '$ac_cv_prog_cc_'${ac_cc}_c_o`\" != yes"; then |
3797 | # Losing compiler, so override with the script. |
3798 | # FIXME: It is wrong to rewrite CC. |
3799 | # But if we don't then we get into trouble of one sort or another. |
3800 | # A longer-term fix would be to have automake use am__CC in this case, |
3801 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" |
3802 | CC="$am_aux_dir/compile $CC" |
3803 | fi |
3804 | |
3805 | |
3806 | |
3807 | # Check whether --enable-shared was given. |
3808 | if test "${enable_shared+set}" = set; then |
3809 | enableval=$enable_shared; p=${PACKAGE-default} |
3810 | case $enableval in |
3811 | yes) enable_shared=yes ;; |
3812 | no) enable_shared=no ;; |
3813 | *) |
3814 | enable_shared=no |
3815 | # Look at the argument we got. We use all the common list separators. |
3816 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3817 | for pkg in $enableval; do |
3818 | IFS="$lt_save_ifs" |
3819 | if test "X$pkg" = "X$p"; then |
3820 | enable_shared=yes |
3821 | fi |
3822 | done |
3823 | IFS="$lt_save_ifs" |
3824 | ;; |
3825 | esac |
3826 | else |
3827 | enable_shared=yes |
3828 | fi |
3829 | |
3830 | |
3831 | # Check whether --enable-static was given. |
3832 | if test "${enable_static+set}" = set; then |
3833 | enableval=$enable_static; p=${PACKAGE-default} |
3834 | case $enableval in |
3835 | yes) enable_static=yes ;; |
3836 | no) enable_static=no ;; |
3837 | *) |
3838 | enable_static=no |
3839 | # Look at the argument we got. We use all the common list separators. |
3840 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3841 | for pkg in $enableval; do |
3842 | IFS="$lt_save_ifs" |
3843 | if test "X$pkg" = "X$p"; then |
3844 | enable_static=yes |
3845 | fi |
3846 | done |
3847 | IFS="$lt_save_ifs" |
3848 | ;; |
3849 | esac |
3850 | else |
3851 | enable_static=yes |
3852 | fi |
3853 | |
3854 | |
3855 | # Check whether --enable-fast-install was given. |
3856 | if test "${enable_fast_install+set}" = set; then |
3857 | enableval=$enable_fast_install; p=${PACKAGE-default} |
3858 | case $enableval in |
3859 | yes) enable_fast_install=yes ;; |
3860 | no) enable_fast_install=no ;; |
3861 | *) |
3862 | enable_fast_install=no |
3863 | # Look at the argument we got. We use all the common list separators. |
3864 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
3865 | for pkg in $enableval; do |
3866 | IFS="$lt_save_ifs" |
3867 | if test "X$pkg" = "X$p"; then |
3868 | enable_fast_install=yes |
3869 | fi |
3870 | done |
3871 | IFS="$lt_save_ifs" |
3872 | ;; |
3873 | esac |
3874 | else |
3875 | enable_fast_install=yes |
3876 | fi |
3877 | |
3878 | |
3879 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3880 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
3881 | if test "${lt_cv_path_SED+set}" = set; then |
3882 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3883 | else |
3884 | # Loop through the user's path and test for sed and gsed. |
3885 | # Then use that list of sed's as ones to test for truncation. |
3886 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3887 | for as_dir in $PATH |
3888 | do |
3889 | IFS=$as_save_IFS |
3890 | test -z "$as_dir" && as_dir=. |
3891 | for lt_ac_prog in sed gsed; do |
3892 | for ac_exec_ext in '' $ac_executable_extensions; do |
3893 | if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then |
3894 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3895 | fi |
3896 | done |
3897 | done |
3898 | done |
3899 | IFS=$as_save_IFS |
3900 | lt_ac_max=0 |
3901 | lt_ac_count=0 |
3902 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3903 | # along with /bin/sed that truncates output. |
3904 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
3905 | test ! -f $lt_ac_sed && continue |
3906 | cat /dev/null > conftest.in |
3907 | lt_ac_count=0 |
3908 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
3909 | # Check for GNU sed and select it if it is found. |
3910 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
3911 | lt_cv_path_SED=$lt_ac_sed |
3912 | break |
3913 | fi |
3914 | while true; do |
3915 | cat conftest.in conftest.in >conftest.tmp |
3916 | mv conftest.tmp conftest.in |
3917 | cp conftest.in conftest.nl |
3918 | echo >>conftest.nl |
3919 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
3920 | cmp -s conftest.out conftest.nl || break |
3921 | # 10000 chars as input seems more than enough |
3922 | test $lt_ac_count -gt 10 && break |
3923 | lt_ac_count=`expr $lt_ac_count + 1` |
3924 | if test $lt_ac_count -gt $lt_ac_max; then |
3925 | lt_ac_max=$lt_ac_count |
3926 | lt_cv_path_SED=$lt_ac_sed |
3927 | fi |
3928 | done |
3929 | done |
3930 | |
3931 | fi |
3932 | |
3933 | SED=$lt_cv_path_SED |
3934 | |
3935 | { echo "$as_me:$LINENO: result: $SED" >&5 |
3936 | echo "${ECHO_T}$SED" >&6; } |
3937 | |
3938 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3939 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3940 | if test "${ac_cv_path_GREP+set}" = set; then |
3941 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3942 | else |
3943 | # Extract the first word of "grep ggrep" to use in msg output |
3944 | if test -z "$GREP"; then |
3945 | set dummy grep ggrep; ac_prog_name=$2 |
3946 | if test "${ac_cv_path_GREP+set}" = set; then |
3947 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3948 | else |
3949 | ac_path_GREP_found=false |
3950 | # Loop through the user's path and test for each of PROGNAME-LIST |
3951 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3952 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3953 | do |
3954 | IFS=$as_save_IFS |
3955 | test -z "$as_dir" && as_dir=. |
3956 | for ac_prog in grep ggrep; do |
3957 | for ac_exec_ext in '' $ac_executable_extensions; do |
3958 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3959 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
3960 | # Check for GNU ac_path_GREP and select it if it is found. |
3961 | # Check for GNU $ac_path_GREP |
3962 | case `"$ac_path_GREP" --version 2>&1` in |
3963 | *GNU*) |
3964 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
3965 | *) |
3966 | ac_count=0 |
3967 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3968 | while : |
3969 | do |
3970 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3971 | mv "conftest.tmp" "conftest.in" |
3972 | cp "conftest.in" "conftest.nl" |
3973 | echo 'GREP' >> "conftest.nl" |
3974 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3975 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3976 | ac_count=`expr $ac_count + 1` |
3977 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
3978 | # Best one so far, save it but keep looking for a better one |
3979 | ac_cv_path_GREP="$ac_path_GREP" |
3980 | ac_path_GREP_max=$ac_count |
3981 | fi |
3982 | # 10*(2^10) chars as input seems more than enough |
3983 | test $ac_count -gt 10 && break |
3984 | done |
3985 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3986 | esac |
3987 | |
3988 | |
3989 | $ac_path_GREP_found && break 3 |
3990 | done |
3991 | done |
3992 | |
3993 | done |
3994 | IFS=$as_save_IFS |
3995 | |
3996 | |
3997 | fi |
3998 | |
3999 | GREP="$ac_cv_path_GREP" |
4000 | if test -z "$GREP"; then |
4001 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
4002 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
4003 | { (exit 1); exit 1; }; } |
4004 | fi |
4005 | |
4006 | else |
4007 | ac_cv_path_GREP=$GREP |
4008 | fi |
4009 | |
4010 | |
4011 | fi |
4012 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
4013 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
4014 | GREP="$ac_cv_path_GREP" |
4015 | |
4016 | |
4017 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
4018 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
4019 | if test "${ac_cv_path_EGREP+set}" = set; then |
4020 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4021 | else |
4022 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4023 | then ac_cv_path_EGREP="$GREP -E" |
4024 | else |
4025 | # Extract the first word of "egrep" to use in msg output |
4026 | if test -z "$EGREP"; then |
4027 | set dummy egrep; ac_prog_name=$2 |
4028 | if test "${ac_cv_path_EGREP+set}" = set; then |
4029 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4030 | else |
4031 | ac_path_EGREP_found=false |
4032 | # Loop through the user's path and test for each of PROGNAME-LIST |
4033 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4034 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4035 | do |
4036 | IFS=$as_save_IFS |
4037 | test -z "$as_dir" && as_dir=. |
4038 | for ac_prog in egrep; do |
4039 | for ac_exec_ext in '' $ac_executable_extensions; do |
4040 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4041 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
4042 | # Check for GNU ac_path_EGREP and select it if it is found. |
4043 | # Check for GNU $ac_path_EGREP |
4044 | case `"$ac_path_EGREP" --version 2>&1` in |
4045 | *GNU*) |
4046 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
4047 | *) |
4048 | ac_count=0 |
4049 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
4050 | while : |
4051 | do |
4052 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
4053 | mv "conftest.tmp" "conftest.in" |
4054 | cp "conftest.in" "conftest.nl" |
4055 | echo 'EGREP' >> "conftest.nl" |
4056 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4057 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4058 | ac_count=`expr $ac_count + 1` |
4059 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4060 | # Best one so far, save it but keep looking for a better one |
4061 | ac_cv_path_EGREP="$ac_path_EGREP" |
4062 | ac_path_EGREP_max=$ac_count |
4063 | fi |
4064 | # 10*(2^10) chars as input seems more than enough |
4065 | test $ac_count -gt 10 && break |
4066 | done |
4067 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4068 | esac |
4069 | |
4070 | |
4071 | $ac_path_EGREP_found && break 3 |
4072 | done |
4073 | done |
4074 | |
4075 | done |
4076 | IFS=$as_save_IFS |
4077 | |
4078 | |
4079 | fi |
4080 | |
4081 | EGREP="$ac_cv_path_EGREP" |
4082 | if test -z "$EGREP"; then |
4083 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
4084 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
4085 | { (exit 1); exit 1; }; } |
4086 | fi |
4087 | |
4088 | else |
4089 | ac_cv_path_EGREP=$EGREP |
4090 | fi |
4091 | |
4092 | |
4093 | fi |
4094 | fi |
4095 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4096 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
4097 | EGREP="$ac_cv_path_EGREP" |
4098 | |
4099 | |
4100 | |
4101 | # Check whether --with-gnu-ld was given. |
4102 | if test "${with_gnu_ld+set}" = set; then |
4103 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
4104 | else |
4105 | with_gnu_ld=no |
4106 | fi |
4107 | |
4108 | ac_prog=ld |
4109 | if test "$GCC" = yes; then |
4110 | # Check if gcc -print-prog-name=ld gives a path. |
4111 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
4112 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
4113 | case $host in |
4114 | *-*-mingw*) |
4115 | # gcc leaves a trailing carriage return which upsets mingw |
4116 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
4117 | *) |
4118 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
4119 | esac |
4120 | case $ac_prog in |
4121 | # Accept absolute paths. |
4122 | [\\/]* | ?:[\\/]*) |
4123 | re_direlt='/[^/][^/]*/\.\./' |
4124 | # Canonicalize the pathname of ld |
4125 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
4126 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
4127 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
4128 | done |
4129 | test -z "$LD" && LD="$ac_prog" |
4130 | ;; |
4131 | "") |
4132 | # If it fails, then pretend we aren't using GCC. |
4133 | ac_prog=ld |
4134 | ;; |
4135 | *) |
4136 | # If it is relative, then search for the first ld in PATH. |
4137 | with_gnu_ld=unknown |
4138 | ;; |
4139 | esac |
4140 | elif test "$with_gnu_ld" = yes; then |
4141 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
4142 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
4143 | else |
4144 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
4145 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
4146 | fi |
4147 | if test "${lt_cv_path_LD+set}" = set; then |
4148 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4149 | else |
4150 | if test -z "$LD"; then |
4151 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4152 | for ac_dir in $PATH; do |
4153 | IFS="$lt_save_ifs" |
4154 | test -z "$ac_dir" && ac_dir=. |
4155 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
4156 | lt_cv_path_LD="$ac_dir/$ac_prog" |
4157 | # Check to see if the program is GNU ld. I'd rather use --version, |
4158 | # but apparently some variants of GNU ld only accept -v. |
4159 | # Break only if it was the GNU/non-GNU ld that we prefer. |
4160 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
4161 | *GNU* | *'with BFD'*) |
4162 | test "$with_gnu_ld" != no && break |
4163 | ;; |
4164 | *) |
4165 | test "$with_gnu_ld" != yes && break |
4166 | ;; |
4167 | esac |
4168 | fi |
4169 | done |
4170 | IFS="$lt_save_ifs" |
4171 | else |
4172 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
4173 | fi |
4174 | fi |
4175 | |
4176 | LD="$lt_cv_path_LD" |
4177 | if test -n "$LD"; then |
4178 | { echo "$as_me:$LINENO: result: $LD" >&5 |
4179 | echo "${ECHO_T}$LD" >&6; } |
4180 | else |
4181 | { echo "$as_me:$LINENO: result: no" >&5 |
4182 | echo "${ECHO_T}no" >&6; } |
4183 | fi |
4184 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4185 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
4186 | { (exit 1); exit 1; }; } |
4187 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4188 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
4189 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4191 | else |
4192 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4193 | case `$LD -v 2>&1 </dev/null` in |
4194 | *GNU* | *'with BFD'*) |
4195 | lt_cv_prog_gnu_ld=yes |
4196 | ;; |
4197 | *) |
4198 | lt_cv_prog_gnu_ld=no |
4199 | ;; |
4200 | esac |
4201 | fi |
4202 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4203 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
4204 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4205 | |
4206 | |
4207 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
4208 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
4209 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
4210 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4211 | else |
4212 | lt_cv_ld_reload_flag='-r' |
4213 | fi |
4214 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4215 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
4216 | reload_flag=$lt_cv_ld_reload_flag |
4217 | case $reload_flag in |
4218 | "" | " "*) ;; |
4219 | *) reload_flag=" $reload_flag" ;; |
4220 | esac |
4221 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4222 | case $host_os in |
4223 | darwin*) |
4224 | if test "$GCC" = yes; then |
4225 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
4226 | else |
4227 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4228 | fi |
4229 | ;; |
4230 | esac |
4231 | |
4232 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4233 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
4234 | if test "${lt_cv_path_NM+set}" = set; then |
4235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4236 | else |
4237 | if test -n "$NM"; then |
4238 | # Let the user override the test. |
4239 | lt_cv_path_NM="$NM" |
4240 | else |
4241 | lt_nm_to_check="${ac_tool_prefix}nm" |
4242 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4243 | lt_nm_to_check="$lt_nm_to_check nm" |
4244 | fi |
4245 | for lt_tmp_nm in $lt_nm_to_check; do |
4246 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4247 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4248 | IFS="$lt_save_ifs" |
4249 | test -z "$ac_dir" && ac_dir=. |
4250 | tmp_nm="$ac_dir/$lt_tmp_nm" |
4251 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4252 | # Check to see if the nm accepts a BSD-compat flag. |
4253 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4254 | # nm: unknown option "B" ignored |
4255 | # Tru64's nm complains that /dev/null is an invalid object file |
4256 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4257 | */dev/null* | *'Invalid file or object type'*) |
4258 | lt_cv_path_NM="$tmp_nm -B" |
4259 | break |
4260 | ;; |
4261 | *) |
4262 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4263 | */dev/null*) |
4264 | lt_cv_path_NM="$tmp_nm -p" |
4265 | break |
4266 | ;; |
4267 | *) |
4268 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4269 | continue # so that we can try to find one that supports BSD flags |
4270 | ;; |
4271 | esac |
4272 | ;; |
4273 | esac |
4274 | fi |
4275 | done |
4276 | IFS="$lt_save_ifs" |
4277 | done |
4278 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4279 | fi |
4280 | fi |
4281 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4282 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
4283 | NM="$lt_cv_path_NM" |
4284 | |
4285 | { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 |
4286 | echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; } |
4287 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4288 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4289 | else |
4290 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4291 | lt_cv_file_magic_test_file= |
4292 | lt_cv_deplibs_check_method='unknown' |
4293 | # Need to set the preceding variable on all platforms that support |
4294 | # interlibrary dependencies. |
4295 | # 'none' -- dependencies not supported. |
4296 | # `unknown' -- same as none, but documents that we really don't know. |
4297 | # 'pass_all' -- all dependencies passed with no checks. |
4298 | # 'test_compile' -- check by making test program. |
4299 | # 'file_magic [[regex]]' -- check by looking for files in library path |
4300 | # which responds to the $file_magic_cmd with a given extended regex. |
4301 | # If you have `file' or equivalent on your system and you're not sure |
4302 | # whether `pass_all' will *always* work, you probably want this one. |
4303 | |
4304 | case $host_os in |
4305 | aix[4-9]*) |
4306 | lt_cv_deplibs_check_method=pass_all |
4307 | ;; |
4308 | |
4309 | beos*) |
4310 | lt_cv_deplibs_check_method=pass_all |
4311 | ;; |
4312 | |
4313 | bsdi[45]*) |
4314 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4315 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
4316 | lt_cv_file_magic_test_file=/shlib/libc.so |
4317 | ;; |
4318 | |
4319 | cygwin*) |
4320 | # func_win32_libid is a shell function defined in ltmain.sh |
4321 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4322 | lt_cv_file_magic_cmd='func_win32_libid' |
4323 | ;; |
4324 | |
4325 | mingw* | pw32*) |
4326 | # Base MSYS/MinGW do not provide the 'file' command needed by |
4327 | # func_win32_libid shell function, so use a weaker test based on 'objdump', |
4328 | # unless we find 'file', for example because we are cross-compiling. |
4329 | if ( file / ) >/dev/null 2>&1; then |
4330 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4331 | lt_cv_file_magic_cmd='func_win32_libid' |
4332 | else |
4333 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4334 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4335 | fi |
4336 | ;; |
4337 | |
4338 | darwin* | rhapsody*) |
4339 | lt_cv_deplibs_check_method=pass_all |
4340 | ;; |
4341 | |
4342 | freebsd* | dragonfly*) |
4343 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4344 | case $host_cpu in |
4345 | i*86 ) |
4346 | # Not sure whether the presence of OpenBSD here was a mistake. |
4347 | # Let's accept both of them until this is cleared up. |
4348 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
4349 | lt_cv_file_magic_cmd=/usr/bin/file |
4350 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4351 | ;; |
4352 | esac |
4353 | else |
4354 | lt_cv_deplibs_check_method=pass_all |
4355 | fi |
4356 | ;; |
4357 | |
4358 | gnu*) |
4359 | lt_cv_deplibs_check_method=pass_all |
4360 | ;; |
4361 | |
4362 | hpux10.20* | hpux11*) |
4363 | lt_cv_file_magic_cmd=/usr/bin/file |
4364 | case $host_cpu in |
4365 | ia64*) |
4366 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4367 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4368 | ;; |
4369 | hppa*64*) |
4370 | 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]' |
4371 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4372 | ;; |
4373 | *) |
4374 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4375 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4376 | ;; |
4377 | esac |
4378 | ;; |
4379 | |
4380 | interix[3-9]*) |
4381 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
4382 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
4383 | ;; |
4384 | |
4385 | irix5* | irix6* | nonstopux*) |
4386 | case $LD in |
4387 | *-32|*"-32 ") libmagic=32-bit;; |
4388 | *-n32|*"-n32 ") libmagic=N32;; |
4389 | *-64|*"-64 ") libmagic=64-bit;; |
4390 | *) libmagic=never-match;; |
4391 | esac |
4392 | lt_cv_deplibs_check_method=pass_all |
4393 | ;; |
4394 | |
4395 | # This must be Linux ELF. |
4396 | linux* | k*bsd*-gnu) |
4397 | lt_cv_deplibs_check_method=pass_all |
4398 | ;; |
4399 | |
4400 | netbsd*) |
4401 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4402 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4403 | else |
4404 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4405 | fi |
4406 | ;; |
4407 | |
4408 | newos6*) |
4409 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
4410 | lt_cv_file_magic_cmd=/usr/bin/file |
4411 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4412 | ;; |
4413 | |
4414 | nto-qnx*) |
4415 | lt_cv_deplibs_check_method=unknown |
4416 | ;; |
4417 | |
4418 | openbsd*) |
4419 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4420 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
4421 | else |
4422 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4423 | fi |
4424 | ;; |
4425 | |
4426 | osf3* | osf4* | osf5*) |
4427 | lt_cv_deplibs_check_method=pass_all |
4428 | ;; |
4429 | |
4430 | rdos*) |
4431 | lt_cv_deplibs_check_method=pass_all |
4432 | ;; |
4433 | |
4434 | solaris*) |
4435 | lt_cv_deplibs_check_method=pass_all |
4436 | ;; |
4437 | |
4438 | sysv4 | sysv4.3*) |
4439 | case $host_vendor in |
4440 | motorola) |
4441 | 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]' |
4442 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
4443 | ;; |
4444 | ncr) |
4445 | lt_cv_deplibs_check_method=pass_all |
4446 | ;; |
4447 | sequent) |
4448 | lt_cv_file_magic_cmd='/bin/file' |
4449 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
4450 | ;; |
4451 | sni) |
4452 | lt_cv_file_magic_cmd='/bin/file' |
4453 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
4454 | lt_cv_file_magic_test_file=/lib/libc.so |
4455 | ;; |
4456 | siemens) |
4457 | lt_cv_deplibs_check_method=pass_all |
4458 | ;; |
4459 | pc) |
4460 | lt_cv_deplibs_check_method=pass_all |
4461 | ;; |
4462 | esac |
4463 | ;; |
4464 | |
4465 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4466 | lt_cv_deplibs_check_method=pass_all |
4467 | ;; |
4468 | esac |
4469 | |
4470 | fi |
4471 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4472 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
4473 | file_magic_cmd=$lt_cv_file_magic_cmd |
4474 | deplibs_check_method=$lt_cv_deplibs_check_method |
4475 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4476 | |
4477 | |
4478 | |
4479 | |
4480 | # If no C compiler was specified, use CC. |
4481 | LTCC=${LTCC-"$CC"} |
4482 | |
4483 | # If no C compiler flags were specified, use CFLAGS. |
4484 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
4485 | |
4486 | # Allow CC to be a program name with arguments. |
4487 | compiler=$CC |
4488 | |
4489 | |
4490 | # Check whether --enable-libtool-lock was given. |
4491 | if test "${enable_libtool_lock+set}" = set; then |
4492 | enableval=$enable_libtool_lock; |
4493 | fi |
4494 | |
4495 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4496 | |
4497 | # Some flags need to be propagated to the compiler or linker for good |
4498 | # libtool support. |
4499 | case $host in |
4500 | ia64-*-hpux*) |
4501 | # Find out which ABI we are using. |
4502 | echo 'int i;' > conftest.$ac_ext |
4503 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4504 | (eval $ac_compile) 2>&5 |
4505 | ac_status=$? |
4506 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4507 | (exit $ac_status); }; then |
4508 | case `/usr/bin/file conftest.$ac_objext` in |
4509 | *ELF-32*) |
4510 | HPUX_IA64_MODE="32" |
4511 | ;; |
4512 | *ELF-64*) |
4513 | HPUX_IA64_MODE="64" |
4514 | ;; |
4515 | esac |
4516 | fi |
4517 | rm -rf conftest* |
4518 | ;; |
4519 | *-*-irix6*) |
4520 | # Find out which ABI we are using. |
4521 | echo '#line 4521 "configure"' > conftest.$ac_ext |
4522 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4523 | (eval $ac_compile) 2>&5 |
4524 | ac_status=$? |
4525 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4526 | (exit $ac_status); }; then |
4527 | if test "$lt_cv_prog_gnu_ld" = yes; then |
4528 | case `/usr/bin/file conftest.$ac_objext` in |
4529 | *32-bit*) |
4530 | LD="${LD-ld} -melf32bsmip" |
4531 | ;; |
4532 | *N32*) |
4533 | LD="${LD-ld} -melf32bmipn32" |
4534 | ;; |
4535 | *64-bit*) |
4536 | LD="${LD-ld} -melf64bmip" |
4537 | ;; |
4538 | esac |
4539 | else |
4540 | case `/usr/bin/file conftest.$ac_objext` in |
4541 | *32-bit*) |
4542 | LD="${LD-ld} -32" |
4543 | ;; |
4544 | *N32*) |
4545 | LD="${LD-ld} -n32" |
4546 | ;; |
4547 | *64-bit*) |
4548 | LD="${LD-ld} -64" |
4549 | ;; |
4550 | esac |
4551 | fi |
4552 | fi |
4553 | rm -rf conftest* |
4554 | ;; |
4555 | |
4556 | x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ |
4557 | s390*-*linux*|sparc*-*linux*) |
4558 | # Find out which ABI we are using. |
4559 | echo 'int i;' > conftest.$ac_ext |
4560 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4561 | (eval $ac_compile) 2>&5 |
4562 | ac_status=$? |
4563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4564 | (exit $ac_status); }; then |
4565 | case `/usr/bin/file conftest.o` in |
4566 | *32-bit*) |
4567 | case $host in |
4568 | x86_64-*kfreebsd*-gnu) |
4569 | LD="${LD-ld} -m elf_i386_fbsd" |
4570 | ;; |
4571 | x86_64-*linux*) |
4572 | LD="${LD-ld} -m elf_i386" |
4573 | ;; |
4574 | ppc64-*linux*|powerpc64-*linux*) |
4575 | LD="${LD-ld} -m elf32ppclinux" |
4576 | ;; |
4577 | s390x-*linux*) |
4578 | LD="${LD-ld} -m elf_s390" |
4579 | ;; |
4580 | sparc64-*linux*) |
4581 | LD="${LD-ld} -m elf32_sparc" |
4582 | ;; |
4583 | esac |
4584 | ;; |
4585 | *64-bit*) |
4586 | case $host in |
4587 | x86_64-*kfreebsd*-gnu) |
4588 | LD="${LD-ld} -m elf_x86_64_fbsd" |
4589 | ;; |
4590 | x86_64-*linux*) |
4591 | LD="${LD-ld} -m elf_x86_64" |
4592 | ;; |
4593 | ppc*-*linux*|powerpc*-*linux*) |
4594 | LD="${LD-ld} -m elf64ppc" |
4595 | ;; |
4596 | s390*-*linux*) |
4597 | LD="${LD-ld} -m elf64_s390" |
4598 | ;; |
4599 | sparc*-*linux*) |
4600 | LD="${LD-ld} -m elf64_sparc" |
4601 | ;; |
4602 | esac |
4603 | ;; |
4604 | esac |
4605 | fi |
4606 | rm -rf conftest* |
4607 | ;; |
4608 | |
4609 | *-*-sco3.2v5*) |
4610 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
4611 | SAVE_CFLAGS="$CFLAGS" |
4612 | CFLAGS="$CFLAGS -belf" |
4613 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4614 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
4615 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
4616 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4617 | else |
4618 | ac_ext=c |
4619 | ac_cpp='$CPP $CPPFLAGS' |
4620 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4621 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4622 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4623 | |
4624 | cat >conftest.$ac_ext <<_ACEOF |
4625 | /* confdefs.h. */ |
4626 | _ACEOF |
4627 | cat confdefs.h >>conftest.$ac_ext |
4628 | cat >>conftest.$ac_ext <<_ACEOF |
4629 | /* end confdefs.h. */ |
4630 | |
4631 | int |
4632 | main () |
4633 | { |
4634 | |
4635 | ; |
4636 | return 0; |
4637 | } |
4638 | _ACEOF |
4639 | rm -f conftest.$ac_objext conftest$ac_exeext |
4640 | if { (ac_try="$ac_link" |
4641 | case "(($ac_try" in |
4642 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4643 | *) ac_try_echo=$ac_try;; |
4644 | esac |
4645 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4646 | (eval "$ac_link") 2>conftest.er1 |
4647 | ac_status=$? |
4648 | grep -v '^ *+' conftest.er1 >conftest.err |
4649 | rm -f conftest.er1 |
4650 | cat conftest.err >&5 |
4651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4652 | (exit $ac_status); } && { |
4653 | test -z "$ac_c_werror_flag" || |
4654 | test ! -s conftest.err |
4655 | } && test -s conftest$ac_exeext && |
4656 | $as_test_x conftest$ac_exeext; then |
4657 | lt_cv_cc_needs_belf=yes |
4658 | else |
4659 | echo "$as_me: failed program was:" >&5 |
4660 | sed 's/^/| /' conftest.$ac_ext >&5 |
4661 | |
4662 | lt_cv_cc_needs_belf=no |
4663 | fi |
4664 | |
4665 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4666 | conftest$ac_exeext conftest.$ac_ext |
4667 | ac_ext=c |
4668 | ac_cpp='$CPP $CPPFLAGS' |
4669 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4670 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4671 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4672 | |
4673 | fi |
4674 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4675 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
4676 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4677 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4678 | CFLAGS="$SAVE_CFLAGS" |
4679 | fi |
4680 | ;; |
4681 | sparc*-*solaris*) |
4682 | # Find out which ABI we are using. |
4683 | echo 'int i;' > conftest.$ac_ext |
4684 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4685 | (eval $ac_compile) 2>&5 |
4686 | ac_status=$? |
4687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4688 | (exit $ac_status); }; then |
4689 | case `/usr/bin/file conftest.o` in |
4690 | *64-bit*) |
4691 | case $lt_cv_prog_gnu_ld in |
4692 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
4693 | *) |
4694 | if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then |
4695 | LD="${LD-ld} -64" |
4696 | fi |
4697 | ;; |
4698 | esac |
4699 | ;; |
4700 | esac |
4701 | fi |
4702 | rm -rf conftest* |
4703 | ;; |
4704 | |
4705 | |
4706 | esac |
4707 | |
4708 | need_locks="$enable_libtool_lock" |
4709 | |
4710 | |
4711 | ac_ext=c |
4712 | ac_cpp='$CPP $CPPFLAGS' |
4713 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4714 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4715 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4716 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4717 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
4718 | # On Suns, sometimes $CPP names a directory. |
4719 | if test -n "$CPP" && test -d "$CPP"; then |
4720 | CPP= |
4721 | fi |
4722 | if test -z "$CPP"; then |
4723 | if test "${ac_cv_prog_CPP+set}" = set; then |
4724 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4725 | else |
4726 | # Double quotes because CPP needs to be expanded |
4727 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4728 | do |
4729 | ac_preproc_ok=false |
4730 | for ac_c_preproc_warn_flag in '' yes |
4731 | do |
4732 | # Use a header file that comes with gcc, so configuring glibc |
4733 | # with a fresh cross-compiler works. |
4734 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4735 | # <limits.h> exists even on freestanding compilers. |
4736 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4737 | # not just through cpp. "Syntax error" is here to catch this case. |
4738 | cat >conftest.$ac_ext <<_ACEOF |
4739 | /* confdefs.h. */ |
4740 | _ACEOF |
4741 | cat confdefs.h >>conftest.$ac_ext |
4742 | cat >>conftest.$ac_ext <<_ACEOF |
4743 | /* end confdefs.h. */ |
4744 | #ifdef __STDC__ |
4745 | # include <limits.h> |
4746 | #else |
4747 | # include <assert.h> |
4748 | #endif |
4749 | Syntax error |
4750 | _ACEOF |
4751 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4752 | case "(($ac_try" in |
4753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4754 | *) ac_try_echo=$ac_try;; |
4755 | esac |
4756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4757 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4758 | ac_status=$? |
4759 | grep -v '^ *+' conftest.er1 >conftest.err |
4760 | rm -f conftest.er1 |
4761 | cat conftest.err >&5 |
4762 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4763 | (exit $ac_status); } >/dev/null && { |
4764 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4765 | test ! -s conftest.err |
4766 | }; then |
4767 | : |
4768 | else |
4769 | echo "$as_me: failed program was:" >&5 |
4770 | sed 's/^/| /' conftest.$ac_ext >&5 |
4771 | |
4772 | # Broken: fails on valid input. |
4773 | continue |
4774 | fi |
4775 | |
4776 | rm -f conftest.err conftest.$ac_ext |
4777 | |
4778 | # OK, works on sane cases. Now check whether nonexistent headers |
4779 | # can be detected and how. |
4780 | cat >conftest.$ac_ext <<_ACEOF |
4781 | /* confdefs.h. */ |
4782 | _ACEOF |
4783 | cat confdefs.h >>conftest.$ac_ext |
4784 | cat >>conftest.$ac_ext <<_ACEOF |
4785 | /* end confdefs.h. */ |
4786 | #include <ac_nonexistent.h> |
4787 | _ACEOF |
4788 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4789 | case "(($ac_try" in |
4790 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4791 | *) ac_try_echo=$ac_try;; |
4792 | esac |
4793 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4794 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4795 | ac_status=$? |
4796 | grep -v '^ *+' conftest.er1 >conftest.err |
4797 | rm -f conftest.er1 |
4798 | cat conftest.err >&5 |
4799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4800 | (exit $ac_status); } >/dev/null && { |
4801 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4802 | test ! -s conftest.err |
4803 | }; then |
4804 | # Broken: success on invalid input. |
4805 | continue |
4806 | else |
4807 | echo "$as_me: failed program was:" >&5 |
4808 | sed 's/^/| /' conftest.$ac_ext >&5 |
4809 | |
4810 | # Passes both tests. |
4811 | ac_preproc_ok=: |
4812 | break |
4813 | fi |
4814 | |
4815 | rm -f conftest.err conftest.$ac_ext |
4816 | |
4817 | done |
4818 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4819 | rm -f conftest.err conftest.$ac_ext |
4820 | if $ac_preproc_ok; then |
4821 | break |
4822 | fi |
4823 | |
4824 | done |
4825 | ac_cv_prog_CPP=$CPP |
4826 | |
4827 | fi |
4828 | CPP=$ac_cv_prog_CPP |
4829 | else |
4830 | ac_cv_prog_CPP=$CPP |
4831 | fi |
4832 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4833 | echo "${ECHO_T}$CPP" >&6; } |
4834 | ac_preproc_ok=false |
4835 | for ac_c_preproc_warn_flag in '' yes |
4836 | do |
4837 | # Use a header file that comes with gcc, so configuring glibc |
4838 | # with a fresh cross-compiler works. |
4839 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4840 | # <limits.h> exists even on freestanding compilers. |
4841 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4842 | # not just through cpp. "Syntax error" is here to catch this case. |
4843 | cat >conftest.$ac_ext <<_ACEOF |
4844 | /* confdefs.h. */ |
4845 | _ACEOF |
4846 | cat confdefs.h >>conftest.$ac_ext |
4847 | cat >>conftest.$ac_ext <<_ACEOF |
4848 | /* end confdefs.h. */ |
4849 | #ifdef __STDC__ |
4850 | # include <limits.h> |
4851 | #else |
4852 | # include <assert.h> |
4853 | #endif |
4854 | Syntax error |
4855 | _ACEOF |
4856 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4857 | case "(($ac_try" in |
4858 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4859 | *) ac_try_echo=$ac_try;; |
4860 | esac |
4861 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4862 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4863 | ac_status=$? |
4864 | grep -v '^ *+' conftest.er1 >conftest.err |
4865 | rm -f conftest.er1 |
4866 | cat conftest.err >&5 |
4867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4868 | (exit $ac_status); } >/dev/null && { |
4869 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4870 | test ! -s conftest.err |
4871 | }; then |
4872 | : |
4873 | else |
4874 | echo "$as_me: failed program was:" >&5 |
4875 | sed 's/^/| /' conftest.$ac_ext >&5 |
4876 | |
4877 | # Broken: fails on valid input. |
4878 | continue |
4879 | fi |
4880 | |
4881 | rm -f conftest.err conftest.$ac_ext |
4882 | |
4883 | # OK, works on sane cases. Now check whether nonexistent headers |
4884 | # can be detected and how. |
4885 | cat >conftest.$ac_ext <<_ACEOF |
4886 | /* confdefs.h. */ |
4887 | _ACEOF |
4888 | cat confdefs.h >>conftest.$ac_ext |
4889 | cat >>conftest.$ac_ext <<_ACEOF |
4890 | /* end confdefs.h. */ |
4891 | #include <ac_nonexistent.h> |
4892 | _ACEOF |
4893 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4894 | case "(($ac_try" in |
4895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4896 | *) ac_try_echo=$ac_try;; |
4897 | esac |
4898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4899 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4900 | ac_status=$? |
4901 | grep -v '^ *+' conftest.er1 >conftest.err |
4902 | rm -f conftest.er1 |
4903 | cat conftest.err >&5 |
4904 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4905 | (exit $ac_status); } >/dev/null && { |
4906 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4907 | test ! -s conftest.err |
4908 | }; then |
4909 | # Broken: success on invalid input. |
4910 | continue |
4911 | else |
4912 | echo "$as_me: failed program was:" >&5 |
4913 | sed 's/^/| /' conftest.$ac_ext >&5 |
4914 | |
4915 | # Passes both tests. |
4916 | ac_preproc_ok=: |
4917 | break |
4918 | fi |
4919 | |
4920 | rm -f conftest.err conftest.$ac_ext |
4921 | |
4922 | done |
4923 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4924 | rm -f conftest.err conftest.$ac_ext |
4925 | if $ac_preproc_ok; then |
4926 | : |
4927 | else |
4928 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4929 | See \`config.log' for more details." >&5 |
4930 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4931 | See \`config.log' for more details." >&2;} |
4932 | { (exit 1); exit 1; }; } |
4933 | fi |
4934 | |
4935 | ac_ext=c |
4936 | ac_cpp='$CPP $CPPFLAGS' |
4937 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4938 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4939 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4940 | |
4941 | |
4942 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4943 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
4944 | if test "${ac_cv_header_stdc+set}" = set; then |
4945 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4946 | else |
4947 | cat >conftest.$ac_ext <<_ACEOF |
4948 | /* confdefs.h. */ |
4949 | _ACEOF |
4950 | cat confdefs.h >>conftest.$ac_ext |
4951 | cat >>conftest.$ac_ext <<_ACEOF |
4952 | /* end confdefs.h. */ |
4953 | #include <stdlib.h> |
4954 | #include <stdarg.h> |
4955 | #include <string.h> |
4956 | #include <float.h> |
4957 | |
4958 | int |
4959 | main () |
4960 | { |
4961 | |
4962 | ; |
4963 | return 0; |
4964 | } |
4965 | _ACEOF |
4966 | rm -f conftest.$ac_objext |
4967 | if { (ac_try="$ac_compile" |
4968 | case "(($ac_try" in |
4969 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4970 | *) ac_try_echo=$ac_try;; |
4971 | esac |
4972 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4973 | (eval "$ac_compile") 2>conftest.er1 |
4974 | ac_status=$? |
4975 | grep -v '^ *+' conftest.er1 >conftest.err |
4976 | rm -f conftest.er1 |
4977 | cat conftest.err >&5 |
4978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4979 | (exit $ac_status); } && { |
4980 | test -z "$ac_c_werror_flag" || |
4981 | test ! -s conftest.err |
4982 | } && test -s conftest.$ac_objext; then |
4983 | ac_cv_header_stdc=yes |
4984 | else |
4985 | echo "$as_me: failed program was:" >&5 |
4986 | sed 's/^/| /' conftest.$ac_ext >&5 |
4987 | |
4988 | ac_cv_header_stdc=no |
4989 | fi |
4990 | |
4991 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4992 | |
4993 | if test $ac_cv_header_stdc = yes; then |
4994 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4995 | cat >conftest.$ac_ext <<_ACEOF |
4996 | /* confdefs.h. */ |
4997 | _ACEOF |
4998 | cat confdefs.h >>conftest.$ac_ext |
4999 | cat >>conftest.$ac_ext <<_ACEOF |
5000 | /* end confdefs.h. */ |
5001 | #include <string.h> |
5002 | |
5003 | _ACEOF |
5004 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5005 | $EGREP "memchr" >/dev/null 2>&1; then |
5006 | : |
5007 | else |
5008 | ac_cv_header_stdc=no |
5009 | fi |
5010 | rm -f conftest* |
5011 | |
5012 | fi |
5013 | |
5014 | if test $ac_cv_header_stdc = yes; then |
5015 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
5016 | cat >conftest.$ac_ext <<_ACEOF |
5017 | /* confdefs.h. */ |
5018 | _ACEOF |
5019 | cat confdefs.h >>conftest.$ac_ext |
5020 | cat >>conftest.$ac_ext <<_ACEOF |
5021 | /* end confdefs.h. */ |
5022 | #include <stdlib.h> |
5023 | |
5024 | _ACEOF |
5025 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
5026 | $EGREP "free" >/dev/null 2>&1; then |
5027 | : |
5028 | else |
5029 | ac_cv_header_stdc=no |
5030 | fi |
5031 | rm -f conftest* |
5032 | |
5033 | fi |
5034 | |
5035 | if test $ac_cv_header_stdc = yes; then |
5036 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
5037 | if test "$cross_compiling" = yes; then |
5038 | : |
5039 | else |
5040 | cat >conftest.$ac_ext <<_ACEOF |
5041 | /* confdefs.h. */ |
5042 | _ACEOF |
5043 | cat confdefs.h >>conftest.$ac_ext |
5044 | cat >>conftest.$ac_ext <<_ACEOF |
5045 | /* end confdefs.h. */ |
5046 | #include <ctype.h> |
5047 | #include <stdlib.h> |
5048 | #if ((' ' & 0x0FF) == 0x020) |
5049 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
5050 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
5051 | #else |
5052 | # define ISLOWER(c) \ |
5053 | (('a' <= (c) && (c) <= 'i') \ |
5054 | || ('j' <= (c) && (c) <= 'r') \ |
5055 | || ('s' <= (c) && (c) <= 'z')) |
5056 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
5057 | #endif |
5058 | |
5059 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
5060 | int |
5061 | main () |
5062 | { |
5063 | int i; |
5064 | for (i = 0; i < 256; i++) |
5065 | if (XOR (islower (i), ISLOWER (i)) |
5066 | || toupper (i) != TOUPPER (i)) |
5067 | return 2; |
5068 | return 0; |
5069 | } |
5070 | _ACEOF |
5071 | rm -f conftest$ac_exeext |
5072 | if { (ac_try="$ac_link" |
5073 | case "(($ac_try" in |
5074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5075 | *) ac_try_echo=$ac_try;; |
5076 | esac |
5077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5078 | (eval "$ac_link") 2>&5 |
5079 | ac_status=$? |
5080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5081 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
5082 | { (case "(($ac_try" in |
5083 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5084 | *) ac_try_echo=$ac_try;; |
5085 | esac |
5086 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5087 | (eval "$ac_try") 2>&5 |
5088 | ac_status=$? |
5089 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5090 | (exit $ac_status); }; }; then |
5091 | : |
5092 | else |
5093 | echo "$as_me: program exited with status $ac_status" >&5 |
5094 | echo "$as_me: failed program was:" >&5 |
5095 | sed 's/^/| /' conftest.$ac_ext >&5 |
5096 | |
5097 | ( exit $ac_status ) |
5098 | ac_cv_header_stdc=no |
5099 | fi |
5100 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5101 | fi |
5102 | |
5103 | |
5104 | fi |
5105 | fi |
5106 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
5107 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
5108 | if test $ac_cv_header_stdc = yes; then |
5109 | |
5110 | cat >>confdefs.h <<\_ACEOF |
5111 | #define STDC_HEADERS 1 |
5112 | _ACEOF |
5113 | |
5114 | fi |
5115 | |
5116 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
5117 | |
5118 | |
5119 | |
5120 | |
5121 | |
5122 | |
5123 | |
5124 | |
5125 | |
5126 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
5127 | inttypes.h stdint.h unistd.h |
5128 | do |
5129 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5130 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5131 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5132 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5133 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5134 | else |
5135 | cat >conftest.$ac_ext <<_ACEOF |
5136 | /* confdefs.h. */ |
5137 | _ACEOF |
5138 | cat confdefs.h >>conftest.$ac_ext |
5139 | cat >>conftest.$ac_ext <<_ACEOF |
5140 | /* end confdefs.h. */ |
5141 | $ac_includes_default |
5142 | |
5143 | #include <$ac_header> |
5144 | _ACEOF |
5145 | rm -f conftest.$ac_objext |
5146 | if { (ac_try="$ac_compile" |
5147 | case "(($ac_try" in |
5148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5149 | *) ac_try_echo=$ac_try;; |
5150 | esac |
5151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5152 | (eval "$ac_compile") 2>conftest.er1 |
5153 | ac_status=$? |
5154 | grep -v '^ *+' conftest.er1 >conftest.err |
5155 | rm -f conftest.er1 |
5156 | cat conftest.err >&5 |
5157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5158 | (exit $ac_status); } && { |
5159 | test -z "$ac_c_werror_flag" || |
5160 | test ! -s conftest.err |
5161 | } && test -s conftest.$ac_objext; then |
5162 | eval "$as_ac_Header=yes" |
5163 | else |
5164 | echo "$as_me: failed program was:" >&5 |
5165 | sed 's/^/| /' conftest.$ac_ext >&5 |
5166 | |
5167 | eval "$as_ac_Header=no" |
5168 | fi |
5169 | |
5170 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5171 | fi |
5172 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5173 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5174 | echo "${ECHO_T}$ac_res" >&6; } |
5175 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5176 | cat >>confdefs.h <<_ACEOF |
5177 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5178 | _ACEOF |
5179 | |
5180 | fi |
5181 | |
5182 | done |
5183 | |
5184 | |
5185 | |
5186 | for ac_header in dlfcn.h |
5187 | do |
5188 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5189 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5190 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5191 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5192 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5193 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5194 | fi |
5195 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5196 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5197 | echo "${ECHO_T}$ac_res" >&6; } |
5198 | else |
5199 | # Is the header compilable? |
5200 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5201 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
5202 | cat >conftest.$ac_ext <<_ACEOF |
5203 | /* confdefs.h. */ |
5204 | _ACEOF |
5205 | cat confdefs.h >>conftest.$ac_ext |
5206 | cat >>conftest.$ac_ext <<_ACEOF |
5207 | /* end confdefs.h. */ |
5208 | $ac_includes_default |
5209 | #include <$ac_header> |
5210 | _ACEOF |
5211 | rm -f conftest.$ac_objext |
5212 | if { (ac_try="$ac_compile" |
5213 | case "(($ac_try" in |
5214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5215 | *) ac_try_echo=$ac_try;; |
5216 | esac |
5217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5218 | (eval "$ac_compile") 2>conftest.er1 |
5219 | ac_status=$? |
5220 | grep -v '^ *+' conftest.er1 >conftest.err |
5221 | rm -f conftest.er1 |
5222 | cat conftest.err >&5 |
5223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5224 | (exit $ac_status); } && { |
5225 | test -z "$ac_c_werror_flag" || |
5226 | test ! -s conftest.err |
5227 | } && test -s conftest.$ac_objext; then |
5228 | ac_header_compiler=yes |
5229 | else |
5230 | echo "$as_me: failed program was:" >&5 |
5231 | sed 's/^/| /' conftest.$ac_ext >&5 |
5232 | |
5233 | ac_header_compiler=no |
5234 | fi |
5235 | |
5236 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5237 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5238 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
5239 | |
5240 | # Is the header present? |
5241 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5242 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
5243 | cat >conftest.$ac_ext <<_ACEOF |
5244 | /* confdefs.h. */ |
5245 | _ACEOF |
5246 | cat confdefs.h >>conftest.$ac_ext |
5247 | cat >>conftest.$ac_ext <<_ACEOF |
5248 | /* end confdefs.h. */ |
5249 | #include <$ac_header> |
5250 | _ACEOF |
5251 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5252 | case "(($ac_try" in |
5253 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5254 | *) ac_try_echo=$ac_try;; |
5255 | esac |
5256 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5257 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
5258 | ac_status=$? |
5259 | grep -v '^ *+' conftest.er1 >conftest.err |
5260 | rm -f conftest.er1 |
5261 | cat conftest.err >&5 |
5262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5263 | (exit $ac_status); } >/dev/null && { |
5264 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
5265 | test ! -s conftest.err |
5266 | }; then |
5267 | ac_header_preproc=yes |
5268 | else |
5269 | echo "$as_me: failed program was:" >&5 |
5270 | sed 's/^/| /' conftest.$ac_ext >&5 |
5271 | |
5272 | ac_header_preproc=no |
5273 | fi |
5274 | |
5275 | rm -f conftest.err conftest.$ac_ext |
5276 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5277 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
5278 | |
5279 | # So? What about this header? |
5280 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5281 | yes:no: ) |
5282 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5283 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5284 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5285 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
5286 | ac_header_preproc=yes |
5287 | ;; |
5288 | no:yes:* ) |
5289 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5290 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
5291 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5292 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
5293 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
5294 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
5295 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
5296 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
5297 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5298 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5299 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5300 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
5301 | ( cat <<\_ASBOX |
5302 | ## ----------------------------------------- ## |
5303 | ## Report this to ntfs-3g-devel@lists.sf.net ## |
5304 | ## ----------------------------------------- ## |
5305 | _ASBOX |
5306 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
5307 | ;; |
5308 | esac |
5309 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5310 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5311 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5312 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5313 | else |
5314 | eval "$as_ac_Header=\$ac_header_preproc" |
5315 | fi |
5316 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5317 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5318 | echo "${ECHO_T}$ac_res" >&6; } |
5319 | |
5320 | fi |
5321 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5322 | cat >>confdefs.h <<_ACEOF |
5323 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5324 | _ACEOF |
5325 | |
5326 | fi |
5327 | |
5328 | done |
5329 | |
5330 | ac_ext=cpp |
5331 | ac_cpp='$CXXCPP $CPPFLAGS' |
5332 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5333 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5334 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5335 | if test -z "$CXX"; then |
5336 | if test -n "$CCC"; then |
5337 | CXX=$CCC |
5338 | else |
5339 | if test -n "$ac_tool_prefix"; then |
5340 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
5341 | do |
5342 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5343 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5344 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5345 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5346 | if test "${ac_cv_prog_CXX+set}" = set; then |
5347 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5348 | else |
5349 | if test -n "$CXX"; then |
5350 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
5351 | else |
5352 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5353 | for as_dir in $PATH |
5354 | do |
5355 | IFS=$as_save_IFS |
5356 | test -z "$as_dir" && as_dir=. |
5357 | for ac_exec_ext in '' $ac_executable_extensions; do |
5358 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5359 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5360 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5361 | break 2 |
5362 | fi |
5363 | done |
5364 | done |
5365 | IFS=$as_save_IFS |
5366 | |
5367 | fi |
5368 | fi |
5369 | CXX=$ac_cv_prog_CXX |
5370 | if test -n "$CXX"; then |
5371 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
5372 | echo "${ECHO_T}$CXX" >&6; } |
5373 | else |
5374 | { echo "$as_me:$LINENO: result: no" >&5 |
5375 | echo "${ECHO_T}no" >&6; } |
5376 | fi |
5377 | |
5378 | |
5379 | test -n "$CXX" && break |
5380 | done |
5381 | fi |
5382 | if test -z "$CXX"; then |
5383 | ac_ct_CXX=$CXX |
5384 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
5385 | do |
5386 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5387 | set dummy $ac_prog; ac_word=$2 |
5388 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5389 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5390 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
5391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5392 | else |
5393 | if test -n "$ac_ct_CXX"; then |
5394 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
5395 | else |
5396 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5397 | for as_dir in $PATH |
5398 | do |
5399 | IFS=$as_save_IFS |
5400 | test -z "$as_dir" && as_dir=. |
5401 | for ac_exec_ext in '' $ac_executable_extensions; do |
5402 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
5403 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5404 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5405 | break 2 |
5406 | fi |
5407 | done |
5408 | done |
5409 | IFS=$as_save_IFS |
5410 | |
5411 | fi |
5412 | fi |
5413 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5414 | if test -n "$ac_ct_CXX"; then |
5415 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
5416 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
5417 | else |
5418 | { echo "$as_me:$LINENO: result: no" >&5 |
5419 | echo "${ECHO_T}no" >&6; } |
5420 | fi |
5421 | |
5422 | |
5423 | test -n "$ac_ct_CXX" && break |
5424 | done |
5425 | |
5426 | if test "x$ac_ct_CXX" = x; then |
5427 | CXX="g++" |
5428 | else |
5429 | case $cross_compiling:$ac_tool_warned in |
5430 | yes:) |
5431 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
5432 | whose name does not start with the host triplet. If you think this |
5433 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
5434 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
5435 | whose name does not start with the host triplet. If you think this |
5436 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
5437 | ac_tool_warned=yes ;; |
5438 | esac |
5439 | CXX=$ac_ct_CXX |
5440 | fi |
5441 | fi |
5442 | |
5443 | fi |
5444 | fi |
5445 | # Provide some information about the compiler. |
5446 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
5447 | ac_compiler=`set X $ac_compile; echo $2` |
5448 | { (ac_try="$ac_compiler --version >&5" |
5449 | case "(($ac_try" in |
5450 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5451 | *) ac_try_echo=$ac_try;; |
5452 | esac |
5453 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5454 | (eval "$ac_compiler --version >&5") 2>&5 |
5455 | ac_status=$? |
5456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5457 | (exit $ac_status); } |
5458 | { (ac_try="$ac_compiler -v >&5" |
5459 | case "(($ac_try" in |
5460 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5461 | *) ac_try_echo=$ac_try;; |
5462 | esac |
5463 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5464 | (eval "$ac_compiler -v >&5") 2>&5 |
5465 | ac_status=$? |
5466 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5467 | (exit $ac_status); } |
5468 | { (ac_try="$ac_compiler -V >&5" |
5469 | case "(($ac_try" in |
5470 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5471 | *) ac_try_echo=$ac_try;; |
5472 | esac |
5473 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5474 | (eval "$ac_compiler -V >&5") 2>&5 |
5475 | ac_status=$? |
5476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5477 | (exit $ac_status); } |
5478 | |
5479 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
5480 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
5481 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
5482 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5483 | else |
5484 | cat >conftest.$ac_ext <<_ACEOF |
5485 | /* confdefs.h. */ |
5486 | _ACEOF |
5487 | cat confdefs.h >>conftest.$ac_ext |
5488 | cat >>conftest.$ac_ext <<_ACEOF |
5489 | /* end confdefs.h. */ |
5490 | |
5491 | int |
5492 | main () |
5493 | { |
5494 | #ifndef __GNUC__ |
5495 | choke me |
5496 | #endif |
5497 | |
5498 | ; |
5499 | return 0; |
5500 | } |
5501 | _ACEOF |
5502 | rm -f conftest.$ac_objext |
5503 | if { (ac_try="$ac_compile" |
5504 | case "(($ac_try" in |
5505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5506 | *) ac_try_echo=$ac_try;; |
5507 | esac |
5508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5509 | (eval "$ac_compile") 2>conftest.er1 |
5510 | ac_status=$? |
5511 | grep -v '^ *+' conftest.er1 >conftest.err |
5512 | rm -f conftest.er1 |
5513 | cat conftest.err >&5 |
5514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5515 | (exit $ac_status); } && { |
5516 | test -z "$ac_cxx_werror_flag" || |
5517 | test ! -s conftest.err |
5518 | } && test -s conftest.$ac_objext; then |
5519 | ac_compiler_gnu=yes |
5520 | else |
5521 | echo "$as_me: failed program was:" >&5 |
5522 | sed 's/^/| /' conftest.$ac_ext >&5 |
5523 | |
5524 | ac_compiler_gnu=no |
5525 | fi |
5526 | |
5527 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5528 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5529 | |
5530 | fi |
5531 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
5532 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
5533 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
5534 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5535 | ac_save_CXXFLAGS=$CXXFLAGS |
5536 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
5537 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
5538 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
5539 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5540 | else |
5541 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5542 | ac_cxx_werror_flag=yes |
5543 | ac_cv_prog_cxx_g=no |
5544 | CXXFLAGS="-g" |
5545 | cat >conftest.$ac_ext <<_ACEOF |
5546 | /* confdefs.h. */ |
5547 | _ACEOF |
5548 | cat confdefs.h >>conftest.$ac_ext |
5549 | cat >>conftest.$ac_ext <<_ACEOF |
5550 | /* end confdefs.h. */ |
5551 | |
5552 | int |
5553 | main () |
5554 | { |
5555 | |
5556 | ; |
5557 | return 0; |
5558 | } |
5559 | _ACEOF |
5560 | rm -f conftest.$ac_objext |
5561 | if { (ac_try="$ac_compile" |
5562 | case "(($ac_try" in |
5563 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5564 | *) ac_try_echo=$ac_try;; |
5565 | esac |
5566 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5567 | (eval "$ac_compile") 2>conftest.er1 |
5568 | ac_status=$? |
5569 | grep -v '^ *+' conftest.er1 >conftest.err |
5570 | rm -f conftest.er1 |
5571 | cat conftest.err >&5 |
5572 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5573 | (exit $ac_status); } && { |
5574 | test -z "$ac_cxx_werror_flag" || |
5575 | test ! -s conftest.err |
5576 | } && test -s conftest.$ac_objext; then |
5577 | ac_cv_prog_cxx_g=yes |
5578 | else |
5579 | echo "$as_me: failed program was:" >&5 |
5580 | sed 's/^/| /' conftest.$ac_ext >&5 |
5581 | |
5582 | CXXFLAGS="" |
5583 | cat >conftest.$ac_ext <<_ACEOF |
5584 | /* confdefs.h. */ |
5585 | _ACEOF |
5586 | cat confdefs.h >>conftest.$ac_ext |
5587 | cat >>conftest.$ac_ext <<_ACEOF |
5588 | /* end confdefs.h. */ |
5589 | |
5590 | int |
5591 | main () |
5592 | { |
5593 | |
5594 | ; |
5595 | return 0; |
5596 | } |
5597 | _ACEOF |
5598 | rm -f conftest.$ac_objext |
5599 | if { (ac_try="$ac_compile" |
5600 | case "(($ac_try" in |
5601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5602 | *) ac_try_echo=$ac_try;; |
5603 | esac |
5604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5605 | (eval "$ac_compile") 2>conftest.er1 |
5606 | ac_status=$? |
5607 | grep -v '^ *+' conftest.er1 >conftest.err |
5608 | rm -f conftest.er1 |
5609 | cat conftest.err >&5 |
5610 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5611 | (exit $ac_status); } && { |
5612 | test -z "$ac_cxx_werror_flag" || |
5613 | test ! -s conftest.err |
5614 | } && test -s conftest.$ac_objext; then |
5615 | : |
5616 | else |
5617 | echo "$as_me: failed program was:" >&5 |
5618 | sed 's/^/| /' conftest.$ac_ext >&5 |
5619 | |
5620 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5621 | CXXFLAGS="-g" |
5622 | cat >conftest.$ac_ext <<_ACEOF |
5623 | /* confdefs.h. */ |
5624 | _ACEOF |
5625 | cat confdefs.h >>conftest.$ac_ext |
5626 | cat >>conftest.$ac_ext <<_ACEOF |
5627 | /* end confdefs.h. */ |
5628 | |
5629 | int |
5630 | main () |
5631 | { |
5632 | |
5633 | ; |
5634 | return 0; |
5635 | } |
5636 | _ACEOF |
5637 | rm -f conftest.$ac_objext |
5638 | if { (ac_try="$ac_compile" |
5639 | case "(($ac_try" in |
5640 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5641 | *) ac_try_echo=$ac_try;; |
5642 | esac |
5643 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5644 | (eval "$ac_compile") 2>conftest.er1 |
5645 | ac_status=$? |
5646 | grep -v '^ *+' conftest.er1 >conftest.err |
5647 | rm -f conftest.er1 |
5648 | cat conftest.err >&5 |
5649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5650 | (exit $ac_status); } && { |
5651 | test -z "$ac_cxx_werror_flag" || |
5652 | test ! -s conftest.err |
5653 | } && test -s conftest.$ac_objext; then |
5654 | ac_cv_prog_cxx_g=yes |
5655 | else |
5656 | echo "$as_me: failed program was:" >&5 |
5657 | sed 's/^/| /' conftest.$ac_ext >&5 |
5658 | |
5659 | |
5660 | fi |
5661 | |
5662 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5663 | fi |
5664 | |
5665 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5666 | fi |
5667 | |
5668 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5669 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5670 | fi |
5671 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
5672 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
5673 | if test "$ac_test_CXXFLAGS" = set; then |
5674 | CXXFLAGS=$ac_save_CXXFLAGS |
5675 | elif test $ac_cv_prog_cxx_g = yes; then |
5676 | if test "$GXX" = yes; then |
5677 | CXXFLAGS="-g -O2" |
5678 | else |
5679 | CXXFLAGS="-g" |
5680 | fi |
5681 | else |
5682 | if test "$GXX" = yes; then |
5683 | CXXFLAGS="-O2" |
5684 | else |
5685 | CXXFLAGS= |
5686 | fi |
5687 | fi |
5688 | ac_ext=cpp |
5689 | ac_cpp='$CXXCPP $CPPFLAGS' |
5690 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5691 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5692 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5693 | |
5694 | depcc="$CXX" am_compiler_list= |
5695 | |
5696 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5697 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
5698 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
5699 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5700 | else |
5701 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5702 | # We make a subdir and do the tests there. Otherwise we can end up |
5703 | # making bogus files that we don't know about and never remove. For |
5704 | # instance it was reported that on HP-UX the gcc test will end up |
5705 | # making a dummy file named `D' -- because `-MD' means `put the output |
5706 | # in D'. |
5707 | mkdir conftest.dir |
5708 | # Copy depcomp to subdir because otherwise we won't find it if we're |
5709 | # using a relative directory. |
5710 | cp "$am_depcomp" conftest.dir |
5711 | cd conftest.dir |
5712 | # We will build objects and dependencies in a subdirectory because |
5713 | # it helps to detect inapplicable dependency modes. For instance |
5714 | # both Tru64's cc and ICC support -MD to output dependencies as a |
5715 | # side effect of compilation, but ICC will put the dependencies in |
5716 | # the current directory while Tru64 will put them in the object |
5717 | # directory. |
5718 | mkdir sub |
5719 | |
5720 | am_cv_CXX_dependencies_compiler_type=none |
5721 | if test "$am_compiler_list" = ""; then |
5722 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
5723 | fi |
5724 | for depmode in $am_compiler_list; do |
5725 | # Setup a source with many dependencies, because some compilers |
5726 | # like to wrap large dependency lists on column 80 (with \), and |
5727 | # we should not choose a depcomp mode which is confused by this. |
5728 | # |
5729 | # We need to recreate these files for each test, as the compiler may |
5730 | # overwrite some of them when testing with obscure command lines. |
5731 | # This happens at least with the AIX C compiler. |
5732 | : > sub/conftest.c |
5733 | for i in 1 2 3 4 5 6; do |
5734 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
5735 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
5736 | # Solaris 8's {/usr,}/bin/sh. |
5737 | touch sub/conftst$i.h |
5738 | done |
5739 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
5740 | |
5741 | case $depmode in |
5742 | nosideeffect) |
5743 | # after this tag, mechanisms are not by side-effect, so they'll |
5744 | # only be used when explicitly requested |
5745 | if test "x$enable_dependency_tracking" = xyes; then |
5746 | continue |
5747 | else |
5748 | break |
5749 | fi |
5750 | ;; |
5751 | none) break ;; |
5752 | esac |
5753 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5754 | # mode. It turns out that the SunPro C++ compiler does not properly |
5755 | # handle `-M -o', and we need to detect this. |
5756 | if depmode=$depmode \ |
5757 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
5758 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5759 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
5760 | >/dev/null 2>conftest.err && |
5761 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && |
5762 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5763 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
5764 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5765 | # icc doesn't choke on unknown options, it will just issue warnings |
5766 | # or remarks (even with -Werror). So we grep stderr for any message |
5767 | # that says an option was ignored or not supported. |
5768 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
5769 | # icc: Command line warning: ignoring option '-M'; no argument required |
5770 | # The diagnosis changed in icc 8.0: |
5771 | # icc: Command line remark: option '-MP' not supported |
5772 | if (grep 'ignoring option' conftest.err || |
5773 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
5774 | am_cv_CXX_dependencies_compiler_type=$depmode |
5775 | break |
5776 | fi |
5777 | fi |
5778 | done |
5779 | |
5780 | cd .. |
5781 | rm -rf conftest.dir |
5782 | else |
5783 | am_cv_CXX_dependencies_compiler_type=none |
5784 | fi |
5785 | |
5786 | fi |
5787 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5788 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
5789 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5790 | |
5791 | if |
5792 | test "x$enable_dependency_tracking" != xno \ |
5793 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
5794 | am__fastdepCXX_TRUE= |
5795 | am__fastdepCXX_FALSE='#' |
5796 | else |
5797 | am__fastdepCXX_TRUE='#' |
5798 | am__fastdepCXX_FALSE= |
5799 | fi |
5800 | |
5801 | |
5802 | |
5803 | |
5804 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5805 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5806 | (test "X$CXX" != "Xg++"))) ; then |
5807 | ac_ext=cpp |
5808 | ac_cpp='$CXXCPP $CPPFLAGS' |
5809 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5810 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5811 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5812 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5813 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
5814 | if test -z "$CXXCPP"; then |
5815 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5816 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5817 | else |
5818 | # Double quotes because CXXCPP needs to be expanded |
5819 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5820 | do |
5821 | ac_preproc_ok=false |
5822 | for ac_cxx_preproc_warn_flag in '' yes |
5823 | do |
5824 | # Use a header file that comes with gcc, so configuring glibc |
5825 | # with a fresh cross-compiler works. |
5826 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5827 | # <limits.h> exists even on freestanding compilers. |
5828 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5829 | # not just through cpp. "Syntax error" is here to catch this case. |
5830 | cat >conftest.$ac_ext <<_ACEOF |
5831 | /* confdefs.h. */ |
5832 | _ACEOF |
5833 | cat confdefs.h >>conftest.$ac_ext |
5834 | cat >>conftest.$ac_ext <<_ACEOF |
5835 | /* end confdefs.h. */ |
5836 | #ifdef __STDC__ |
5837 | # include <limits.h> |
5838 | #else |
5839 | # include <assert.h> |
5840 | #endif |
5841 | Syntax error |
5842 | _ACEOF |
5843 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5844 | case "(($ac_try" in |
5845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5846 | *) ac_try_echo=$ac_try;; |
5847 | esac |
5848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5849 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
5850 | ac_status=$? |
5851 | grep -v '^ *+' conftest.er1 >conftest.err |
5852 | rm -f conftest.er1 |
5853 | cat conftest.err >&5 |
5854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5855 | (exit $ac_status); } >/dev/null && { |
5856 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5857 | test ! -s conftest.err |
5858 | }; then |
5859 | : |
5860 | else |
5861 | echo "$as_me: failed program was:" >&5 |
5862 | sed 's/^/| /' conftest.$ac_ext >&5 |
5863 | |
5864 | # Broken: fails on valid input. |
5865 | continue |
5866 | fi |
5867 | |
5868 | rm -f conftest.err conftest.$ac_ext |
5869 | |
5870 | # OK, works on sane cases. Now check whether nonexistent headers |
5871 | # can be detected and how. |
5872 | cat >conftest.$ac_ext <<_ACEOF |
5873 | /* confdefs.h. */ |
5874 | _ACEOF |
5875 | cat confdefs.h >>conftest.$ac_ext |
5876 | cat >>conftest.$ac_ext <<_ACEOF |
5877 | /* end confdefs.h. */ |
5878 | #include <ac_nonexistent.h> |
5879 | _ACEOF |
5880 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5881 | case "(($ac_try" in |
5882 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5883 | *) ac_try_echo=$ac_try;; |
5884 | esac |
5885 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5886 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
5887 | ac_status=$? |
5888 | grep -v '^ *+' conftest.er1 >conftest.err |
5889 | rm -f conftest.er1 |
5890 | cat conftest.err >&5 |
5891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5892 | (exit $ac_status); } >/dev/null && { |
5893 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5894 | test ! -s conftest.err |
5895 | }; then |
5896 | # Broken: success on invalid input. |
5897 | continue |
5898 | else |
5899 | echo "$as_me: failed program was:" >&5 |
5900 | sed 's/^/| /' conftest.$ac_ext >&5 |
5901 | |
5902 | # Passes both tests. |
5903 | ac_preproc_ok=: |
5904 | break |
5905 | fi |
5906 | |
5907 | rm -f conftest.err conftest.$ac_ext |
5908 | |
5909 | done |
5910 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5911 | rm -f conftest.err conftest.$ac_ext |
5912 | if $ac_preproc_ok; then |
5913 | break |
5914 | fi |
5915 | |
5916 | done |
5917 | ac_cv_prog_CXXCPP=$CXXCPP |
5918 | |
5919 | fi |
5920 | CXXCPP=$ac_cv_prog_CXXCPP |
5921 | else |
5922 | ac_cv_prog_CXXCPP=$CXXCPP |
5923 | fi |
5924 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5925 | echo "${ECHO_T}$CXXCPP" >&6; } |
5926 | ac_preproc_ok=false |
5927 | for ac_cxx_preproc_warn_flag in '' yes |
5928 | do |
5929 | # Use a header file that comes with gcc, so configuring glibc |
5930 | # with a fresh cross-compiler works. |
5931 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5932 | # <limits.h> exists even on freestanding compilers. |
5933 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5934 | # not just through cpp. "Syntax error" is here to catch this case. |
5935 | cat >conftest.$ac_ext <<_ACEOF |
5936 | /* confdefs.h. */ |
5937 | _ACEOF |
5938 | cat confdefs.h >>conftest.$ac_ext |
5939 | cat >>conftest.$ac_ext <<_ACEOF |
5940 | /* end confdefs.h. */ |
5941 | #ifdef __STDC__ |
5942 | # include <limits.h> |
5943 | #else |
5944 | # include <assert.h> |
5945 | #endif |
5946 | Syntax error |
5947 | _ACEOF |
5948 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5949 | case "(($ac_try" in |
5950 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5951 | *) ac_try_echo=$ac_try;; |
5952 | esac |
5953 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5954 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
5955 | ac_status=$? |
5956 | grep -v '^ *+' conftest.er1 >conftest.err |
5957 | rm -f conftest.er1 |
5958 | cat conftest.err >&5 |
5959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5960 | (exit $ac_status); } >/dev/null && { |
5961 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5962 | test ! -s conftest.err |
5963 | }; then |
5964 | : |
5965 | else |
5966 | echo "$as_me: failed program was:" >&5 |
5967 | sed 's/^/| /' conftest.$ac_ext >&5 |
5968 | |
5969 | # Broken: fails on valid input. |
5970 | continue |
5971 | fi |
5972 | |
5973 | rm -f conftest.err conftest.$ac_ext |
5974 | |
5975 | # OK, works on sane cases. Now check whether nonexistent headers |
5976 | # can be detected and how. |
5977 | cat >conftest.$ac_ext <<_ACEOF |
5978 | /* confdefs.h. */ |
5979 | _ACEOF |
5980 | cat confdefs.h >>conftest.$ac_ext |
5981 | cat >>conftest.$ac_ext <<_ACEOF |
5982 | /* end confdefs.h. */ |
5983 | #include <ac_nonexistent.h> |
5984 | _ACEOF |
5985 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5986 | case "(($ac_try" in |
5987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5988 | *) ac_try_echo=$ac_try;; |
5989 | esac |
5990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5991 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
5992 | ac_status=$? |
5993 | grep -v '^ *+' conftest.er1 >conftest.err |
5994 | rm -f conftest.er1 |
5995 | cat conftest.err >&5 |
5996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5997 | (exit $ac_status); } >/dev/null && { |
5998 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
5999 | test ! -s conftest.err |
6000 | }; then |
6001 | # Broken: success on invalid input. |
6002 | continue |
6003 | else |
6004 | echo "$as_me: failed program was:" >&5 |
6005 | sed 's/^/| /' conftest.$ac_ext >&5 |
6006 | |
6007 | # Passes both tests. |
6008 | ac_preproc_ok=: |
6009 | break |
6010 | fi |
6011 | |
6012 | rm -f conftest.err conftest.$ac_ext |
6013 | |
6014 | done |
6015 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6016 | rm -f conftest.err conftest.$ac_ext |
6017 | if $ac_preproc_ok; then |
6018 | : |
6019 | else |
6020 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6021 | See \`config.log' for more details." >&5 |
6022 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6023 | See \`config.log' for more details." >&2;} |
6024 | { (exit 1); exit 1; }; } |
6025 | fi |
6026 | |
6027 | ac_ext=cpp |
6028 | ac_cpp='$CXXCPP $CPPFLAGS' |
6029 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6030 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6031 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
6032 | |
6033 | fi |
6034 | |
6035 | |
6036 | ac_ext=f |
6037 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
6038 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6039 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
6040 | if test -n "$ac_tool_prefix"; then |
6041 | 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 |
6042 | do |
6043 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
6044 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
6045 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6046 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6047 | if test "${ac_cv_prog_F77+set}" = set; then |
6048 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6049 | else |
6050 | if test -n "$F77"; then |
6051 | ac_cv_prog_F77="$F77" # Let the user override the test. |
6052 | else |
6053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6054 | for as_dir in $PATH |
6055 | do |
6056 | IFS=$as_save_IFS |
6057 | test -z "$as_dir" && as_dir=. |
6058 | for ac_exec_ext in '' $ac_executable_extensions; do |
6059 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6060 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
6061 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6062 | break 2 |
6063 | fi |
6064 | done |
6065 | done |
6066 | IFS=$as_save_IFS |
6067 | |
6068 | fi |
6069 | fi |
6070 | F77=$ac_cv_prog_F77 |
6071 | if test -n "$F77"; then |
6072 | { echo "$as_me:$LINENO: result: $F77" >&5 |
6073 | echo "${ECHO_T}$F77" >&6; } |
6074 | else |
6075 | { echo "$as_me:$LINENO: result: no" >&5 |
6076 | echo "${ECHO_T}no" >&6; } |
6077 | fi |
6078 | |
6079 | |
6080 | test -n "$F77" && break |
6081 | done |
6082 | fi |
6083 | if test -z "$F77"; then |
6084 | ac_ct_F77=$F77 |
6085 | 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 |
6086 | do |
6087 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
6088 | set dummy $ac_prog; ac_word=$2 |
6089 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6090 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6091 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
6092 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6093 | else |
6094 | if test -n "$ac_ct_F77"; then |
6095 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
6096 | else |
6097 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6098 | for as_dir in $PATH |
6099 | do |
6100 | IFS=$as_save_IFS |
6101 | test -z "$as_dir" && as_dir=. |
6102 | for ac_exec_ext in '' $ac_executable_extensions; do |
6103 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6104 | ac_cv_prog_ac_ct_F77="$ac_prog" |
6105 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6106 | break 2 |
6107 | fi |
6108 | done |
6109 | done |
6110 | IFS=$as_save_IFS |
6111 | |
6112 | fi |
6113 | fi |
6114 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
6115 | if test -n "$ac_ct_F77"; then |
6116 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
6117 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
6118 | else |
6119 | { echo "$as_me:$LINENO: result: no" >&5 |
6120 | echo "${ECHO_T}no" >&6; } |
6121 | fi |
6122 | |
6123 | |
6124 | test -n "$ac_ct_F77" && break |
6125 | done |
6126 | |
6127 | if test "x$ac_ct_F77" = x; then |
6128 | F77="" |
6129 | else |
6130 | case $cross_compiling:$ac_tool_warned in |
6131 | yes:) |
6132 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6133 | whose name does not start with the host triplet. If you think this |
6134 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6135 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6136 | whose name does not start with the host triplet. If you think this |
6137 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6138 | ac_tool_warned=yes ;; |
6139 | esac |
6140 | F77=$ac_ct_F77 |
6141 | fi |
6142 | fi |
6143 | |
6144 | |
6145 | # Provide some information about the compiler. |
6146 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
6147 | ac_compiler=`set X $ac_compile; echo $2` |
6148 | { (ac_try="$ac_compiler --version >&5" |
6149 | case "(($ac_try" in |
6150 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6151 | *) ac_try_echo=$ac_try;; |
6152 | esac |
6153 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6154 | (eval "$ac_compiler --version >&5") 2>&5 |
6155 | ac_status=$? |
6156 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6157 | (exit $ac_status); } |
6158 | { (ac_try="$ac_compiler -v >&5" |
6159 | case "(($ac_try" in |
6160 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6161 | *) ac_try_echo=$ac_try;; |
6162 | esac |
6163 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6164 | (eval "$ac_compiler -v >&5") 2>&5 |
6165 | ac_status=$? |
6166 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6167 | (exit $ac_status); } |
6168 | { (ac_try="$ac_compiler -V >&5" |
6169 | case "(($ac_try" in |
6170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6171 | *) ac_try_echo=$ac_try;; |
6172 | esac |
6173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6174 | (eval "$ac_compiler -V >&5") 2>&5 |
6175 | ac_status=$? |
6176 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6177 | (exit $ac_status); } |
6178 | rm -f a.out |
6179 | |
6180 | # If we don't use `.F' as extension, the preprocessor is not run on the |
6181 | # input file. (Note that this only needs to work for GNU compilers.) |
6182 | ac_save_ext=$ac_ext |
6183 | ac_ext=F |
6184 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
6185 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
6186 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
6187 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6188 | else |
6189 | cat >conftest.$ac_ext <<_ACEOF |
6190 | program main |
6191 | #ifndef __GNUC__ |
6192 | choke me |
6193 | #endif |
6194 | |
6195 | end |
6196 | _ACEOF |
6197 | rm -f conftest.$ac_objext |
6198 | if { (ac_try="$ac_compile" |
6199 | case "(($ac_try" in |
6200 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6201 | *) ac_try_echo=$ac_try;; |
6202 | esac |
6203 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6204 | (eval "$ac_compile") 2>conftest.er1 |
6205 | ac_status=$? |
6206 | grep -v '^ *+' conftest.er1 >conftest.err |
6207 | rm -f conftest.er1 |
6208 | cat conftest.err >&5 |
6209 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6210 | (exit $ac_status); } && { |
6211 | test -z "$ac_f77_werror_flag" || |
6212 | test ! -s conftest.err |
6213 | } && test -s conftest.$ac_objext; then |
6214 | ac_compiler_gnu=yes |
6215 | else |
6216 | echo "$as_me: failed program was:" >&5 |
6217 | sed 's/^/| /' conftest.$ac_ext >&5 |
6218 | |
6219 | ac_compiler_gnu=no |
6220 | fi |
6221 | |
6222 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6223 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
6224 | |
6225 | fi |
6226 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
6227 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
6228 | ac_ext=$ac_save_ext |
6229 | ac_test_FFLAGS=${FFLAGS+set} |
6230 | ac_save_FFLAGS=$FFLAGS |
6231 | FFLAGS= |
6232 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
6233 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
6234 | if test "${ac_cv_prog_f77_g+set}" = set; then |
6235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6236 | else |
6237 | FFLAGS=-g |
6238 | cat >conftest.$ac_ext <<_ACEOF |
6239 | program main |
6240 | |
6241 | end |
6242 | _ACEOF |
6243 | rm -f conftest.$ac_objext |
6244 | if { (ac_try="$ac_compile" |
6245 | case "(($ac_try" in |
6246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6247 | *) ac_try_echo=$ac_try;; |
6248 | esac |
6249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6250 | (eval "$ac_compile") 2>conftest.er1 |
6251 | ac_status=$? |
6252 | grep -v '^ *+' conftest.er1 >conftest.err |
6253 | rm -f conftest.er1 |
6254 | cat conftest.err >&5 |
6255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6256 | (exit $ac_status); } && { |
6257 | test -z "$ac_f77_werror_flag" || |
6258 | test ! -s conftest.err |
6259 | } && test -s conftest.$ac_objext; then |
6260 | ac_cv_prog_f77_g=yes |
6261 | else |
6262 | echo "$as_me: failed program was:" >&5 |
6263 | sed 's/^/| /' conftest.$ac_ext >&5 |
6264 | |
6265 | ac_cv_prog_f77_g=no |
6266 | fi |
6267 | |
6268 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6269 | |
6270 | fi |
6271 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
6272 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
6273 | if test "$ac_test_FFLAGS" = set; then |
6274 | FFLAGS=$ac_save_FFLAGS |
6275 | elif test $ac_cv_prog_f77_g = yes; then |
6276 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6277 | FFLAGS="-g -O2" |
6278 | else |
6279 | FFLAGS="-g" |
6280 | fi |
6281 | else |
6282 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6283 | FFLAGS="-O2" |
6284 | else |
6285 | FFLAGS= |
6286 | fi |
6287 | fi |
6288 | |
6289 | G77=`test $ac_compiler_gnu = yes && echo yes` |
6290 | ac_ext=c |
6291 | ac_cpp='$CPP $CPPFLAGS' |
6292 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6293 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6294 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6295 | |
6296 | |
6297 | |
6298 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
6299 | # find the maximum length of command line arguments |
6300 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
6301 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
6302 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
6303 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6304 | else |
6305 | i=0 |
6306 | teststring="ABCD" |
6307 | |
6308 | case $build_os in |
6309 | msdosdjgpp*) |
6310 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
6311 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
6312 | # during glob expansion). Even if it were fixed, the result of this |
6313 | # check would be larger than it should be. |
6314 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
6315 | ;; |
6316 | |
6317 | gnu*) |
6318 | # Under GNU Hurd, this test is not required because there is |
6319 | # no limit to the length of command line arguments. |
6320 | # Libtool will interpret -1 as no limit whatsoever |
6321 | lt_cv_sys_max_cmd_len=-1; |
6322 | ;; |
6323 | |
6324 | cygwin* | mingw*) |
6325 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6326 | # about 5 minutes as the teststring grows exponentially. |
6327 | # Worse, since 9x/ME are not pre-emptively multitasking, |
6328 | # you end up with a "frozen" computer, even though with patience |
6329 | # the test eventually succeeds (with a max line length of 256k). |
6330 | # Instead, let's just punt: use the minimum linelength reported by |
6331 | # all of the supported platforms: 8192 (on NT/2K/XP). |
6332 | lt_cv_sys_max_cmd_len=8192; |
6333 | ;; |
6334 | |
6335 | amigaos*) |
6336 | # On AmigaOS with pdksh, this test takes hours, literally. |
6337 | # So we just punt and use a minimum line length of 8192. |
6338 | lt_cv_sys_max_cmd_len=8192; |
6339 | ;; |
6340 | |
6341 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6342 | # This has been around since 386BSD, at least. Likely further. |
6343 | if test -x /sbin/sysctl; then |
6344 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
6345 | elif test -x /usr/sbin/sysctl; then |
6346 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
6347 | else |
6348 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
6349 | fi |
6350 | # And add a safety zone |
6351 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6352 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6353 | ;; |
6354 | |
6355 | interix*) |
6356 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
6357 | lt_cv_sys_max_cmd_len=196608 |
6358 | ;; |
6359 | |
6360 | osf*) |
6361 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
6362 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
6363 | # nice to cause kernel panics so lets avoid the loop below. |
6364 | # First set a reasonable default. |
6365 | lt_cv_sys_max_cmd_len=16384 |
6366 | # |
6367 | if test -x /sbin/sysconfig; then |
6368 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
6369 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
6370 | esac |
6371 | fi |
6372 | ;; |
6373 | sco3.2v5*) |
6374 | lt_cv_sys_max_cmd_len=102400 |
6375 | ;; |
6376 | sysv5* | sco5v6* | sysv4.2uw2*) |
6377 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
6378 | if test -n "$kargmax"; then |
6379 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
6380 | else |
6381 | lt_cv_sys_max_cmd_len=32768 |
6382 | fi |
6383 | ;; |
6384 | *) |
6385 | lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` |
6386 | if test -n "$lt_cv_sys_max_cmd_len"; then |
6387 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6388 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6389 | else |
6390 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
6391 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
6392 | = "XX$teststring") >/dev/null 2>&1 && |
6393 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
6394 | lt_cv_sys_max_cmd_len=$new_result && |
6395 | test $i != 17 # 1/2 MB should be enough |
6396 | do |
6397 | i=`expr $i + 1` |
6398 | teststring=$teststring$teststring |
6399 | done |
6400 | teststring= |
6401 | # Add a significant safety factor because C++ compilers can tack on massive |
6402 | # amounts of additional arguments before passing them to the linker. |
6403 | # It appears as though 1/2 is a usable value. |
6404 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6405 | fi |
6406 | ;; |
6407 | esac |
6408 | |
6409 | fi |
6410 | |
6411 | if test -n $lt_cv_sys_max_cmd_len ; then |
6412 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
6413 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
6414 | else |
6415 | { echo "$as_me:$LINENO: result: none" >&5 |
6416 | echo "${ECHO_T}none" >&6; } |
6417 | fi |
6418 | |
6419 | |
6420 | |
6421 | |
6422 | |
6423 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
6424 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
6425 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
6426 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
6427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6428 | else |
6429 | |
6430 | # These are sane defaults that work on at least a few old systems. |
6431 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6432 | |
6433 | # Character class describing NM global symbol codes. |
6434 | symcode='[BCDEGRST]' |
6435 | |
6436 | # Regexp to match symbols that can be accessed directly from C. |
6437 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6438 | |
6439 | # Transform an extracted symbol line into a proper C declaration |
6440 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
6441 | |
6442 | # Transform an extracted symbol line into symbol name and symbol address |
6443 | 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'" |
6444 | |
6445 | # Define system-specific variables. |
6446 | case $host_os in |
6447 | aix*) |
6448 | symcode='[BCDT]' |
6449 | ;; |
6450 | cygwin* | mingw* | pw32*) |
6451 | symcode='[ABCDGISTW]' |
6452 | ;; |
6453 | hpux*) # Its linker distinguishes data from code symbols |
6454 | if test "$host_cpu" = ia64; then |
6455 | symcode='[ABCDEGRST]' |
6456 | fi |
6457 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6458 | 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'" |
6459 | ;; |
6460 | linux* | k*bsd*-gnu) |
6461 | if test "$host_cpu" = ia64; then |
6462 | symcode='[ABCDGIRSTW]' |
6463 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6464 | 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'" |
6465 | fi |
6466 | ;; |
6467 | irix* | nonstopux*) |
6468 | symcode='[BCDEGRST]' |
6469 | ;; |
6470 | osf*) |
6471 | symcode='[BCDEGQRST]' |
6472 | ;; |
6473 | solaris*) |
6474 | symcode='[BDRT]' |
6475 | ;; |
6476 | sco3.2v5*) |
6477 | symcode='[DT]' |
6478 | ;; |
6479 | sysv4.2uw2*) |
6480 | symcode='[DT]' |
6481 | ;; |
6482 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6483 | symcode='[ABDT]' |
6484 | ;; |
6485 | sysv4) |
6486 | symcode='[DFNSTU]' |
6487 | ;; |
6488 | esac |
6489 | |
6490 | # Handle CRLF in mingw tool chain |
6491 | opt_cr= |
6492 | case $build_os in |
6493 | mingw*) |
6494 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6495 | ;; |
6496 | esac |
6497 | |
6498 | # If we're using GNU nm, then use its standard symbol codes. |
6499 | case `$NM -V 2>&1` in |
6500 | *GNU* | *'with BFD'*) |
6501 | symcode='[ABCDGIRSTW]' ;; |
6502 | esac |
6503 | |
6504 | # Try without a prefix undercore, then with it. |
6505 | for ac_symprfx in "" "_"; do |
6506 | |
6507 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6508 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
6509 | |
6510 | # Write the raw and C identifiers. |
6511 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6512 | |
6513 | # Check to see that the pipe works correctly. |
6514 | pipe_works=no |
6515 | |
6516 | rm -f conftest* |
6517 | cat > conftest.$ac_ext <<EOF |
6518 | #ifdef __cplusplus |
6519 | extern "C" { |
6520 | #endif |
6521 | char nm_test_var; |
6522 | void nm_test_func(){} |
6523 | #ifdef __cplusplus |
6524 | } |
6525 | #endif |
6526 | int main(){nm_test_var='a';nm_test_func();return(0);} |
6527 | EOF |
6528 | |
6529 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6530 | (eval $ac_compile) 2>&5 |
6531 | ac_status=$? |
6532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6533 | (exit $ac_status); }; then |
6534 | # Now try to grab the symbols. |
6535 | nlist=conftest.nm |
6536 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
6537 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
6538 | ac_status=$? |
6539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6540 | (exit $ac_status); } && test -s "$nlist"; then |
6541 | # Try sorting and uniquifying the output. |
6542 | if sort "$nlist" | uniq > "$nlist"T; then |
6543 | mv -f "$nlist"T "$nlist" |
6544 | else |
6545 | rm -f "$nlist"T |
6546 | fi |
6547 | |
6548 | # Make sure that we snagged all the symbols we need. |
6549 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
6550 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
6551 | cat <<EOF > conftest.$ac_ext |
6552 | #ifdef __cplusplus |
6553 | extern "C" { |
6554 | #endif |
6555 | |
6556 | EOF |
6557 | # Now generate the symbol file. |
6558 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
6559 | |
6560 | cat <<EOF >> conftest.$ac_ext |
6561 | #if defined (__STDC__) && __STDC__ |
6562 | # define lt_ptr_t void * |
6563 | #else |
6564 | # define lt_ptr_t char * |
6565 | # define const |
6566 | #endif |
6567 | |
6568 | /* The mapping between symbol names and symbols. */ |
6569 | const struct { |
6570 | const char *name; |
6571 | lt_ptr_t address; |
6572 | } |
6573 | lt_preloaded_symbols[] = |
6574 | { |
6575 | EOF |
6576 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
6577 | cat <<\EOF >> conftest.$ac_ext |
6578 | {0, (lt_ptr_t) 0} |
6579 | }; |
6580 | |
6581 | #ifdef __cplusplus |
6582 | } |
6583 | #endif |
6584 | EOF |
6585 | # Now try linking the two files. |
6586 | mv conftest.$ac_objext conftstm.$ac_objext |
6587 | lt_save_LIBS="$LIBS" |
6588 | lt_save_CFLAGS="$CFLAGS" |
6589 | LIBS="conftstm.$ac_objext" |
6590 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6591 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6592 | (eval $ac_link) 2>&5 |
6593 | ac_status=$? |
6594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6595 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6596 | pipe_works=yes |
6597 | fi |
6598 | LIBS="$lt_save_LIBS" |
6599 | CFLAGS="$lt_save_CFLAGS" |
6600 | else |
6601 | echo "cannot find nm_test_func in $nlist" >&5 |
6602 | fi |
6603 | else |
6604 | echo "cannot find nm_test_var in $nlist" >&5 |
6605 | fi |
6606 | else |
6607 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6608 | fi |
6609 | else |
6610 | echo "$progname: failed program was:" >&5 |
6611 | cat conftest.$ac_ext >&5 |
6612 | fi |
6613 | rm -rf conftest* conftst* |
6614 | |
6615 | # Do not use the global_symbol_pipe unless it works. |
6616 | if test "$pipe_works" = yes; then |
6617 | break |
6618 | else |
6619 | lt_cv_sys_global_symbol_pipe= |
6620 | fi |
6621 | done |
6622 | |
6623 | fi |
6624 | |
6625 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6626 | lt_cv_sys_global_symbol_to_cdecl= |
6627 | fi |
6628 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
6629 | { echo "$as_me:$LINENO: result: failed" >&5 |
6630 | echo "${ECHO_T}failed" >&6; } |
6631 | else |
6632 | { echo "$as_me:$LINENO: result: ok" >&5 |
6633 | echo "${ECHO_T}ok" >&6; } |
6634 | fi |
6635 | |
6636 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
6637 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
6638 | if test "${lt_cv_objdir+set}" = set; then |
6639 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6640 | else |
6641 | rm -f .libs 2>/dev/null |
6642 | mkdir .libs 2>/dev/null |
6643 | if test -d .libs; then |
6644 | lt_cv_objdir=.libs |
6645 | else |
6646 | # MS-DOS does not allow filenames that begin with a dot. |
6647 | lt_cv_objdir=_libs |
6648 | fi |
6649 | rmdir .libs 2>/dev/null |
6650 | fi |
6651 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6652 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
6653 | objdir=$lt_cv_objdir |
6654 | |
6655 | |
6656 | |
6657 | |
6658 | |
6659 | case $host_os in |
6660 | aix3*) |
6661 | # AIX sometimes has problems with the GCC collect2 program. For some |
6662 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
6663 | # vanish in a puff of smoke. |
6664 | if test "X${COLLECT_NAMES+set}" != Xset; then |
6665 | COLLECT_NAMES= |
6666 | export COLLECT_NAMES |
6667 | fi |
6668 | ;; |
6669 | esac |
6670 | |
6671 | # Sed substitution that helps us do robust quoting. It backslashifies |
6672 | # metacharacters that are still active within double-quoted strings. |
6673 | Xsed='sed -e 1s/^X//' |
6674 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6675 | |
6676 | # Same as above, but do not quote variable references. |
6677 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
6678 | |
6679 | # Sed substitution to delay expansion of an escaped shell variable in a |
6680 | # double_quote_subst'ed string. |
6681 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
6682 | |
6683 | # Sed substitution to avoid accidental globbing in evaled expressions |
6684 | no_glob_subst='s/\*/\\\*/g' |
6685 | |
6686 | # Constants: |
6687 | rm="rm -f" |
6688 | |
6689 | # Global variables: |
6690 | default_ofile=libtool |
6691 | can_build_shared=yes |
6692 | |
6693 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6694 | # which needs '.lib'). |
6695 | libext=a |
6696 | ltmain="$ac_aux_dir/ltmain.sh" |
6697 | ofile="$default_ofile" |
6698 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
6699 | |
6700 | if test -n "$ac_tool_prefix"; then |
6701 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6702 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
6703 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6704 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6705 | if test "${ac_cv_prog_AR+set}" = set; then |
6706 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6707 | else |
6708 | if test -n "$AR"; then |
6709 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6710 | else |
6711 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6712 | for as_dir in $PATH |
6713 | do |
6714 | IFS=$as_save_IFS |
6715 | test -z "$as_dir" && as_dir=. |
6716 | for ac_exec_ext in '' $ac_executable_extensions; do |
6717 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6718 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6719 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6720 | break 2 |
6721 | fi |
6722 | done |
6723 | done |
6724 | IFS=$as_save_IFS |
6725 | |
6726 | fi |
6727 | fi |
6728 | AR=$ac_cv_prog_AR |
6729 | if test -n "$AR"; then |
6730 | { echo "$as_me:$LINENO: result: $AR" >&5 |
6731 | echo "${ECHO_T}$AR" >&6; } |
6732 | else |
6733 | { echo "$as_me:$LINENO: result: no" >&5 |
6734 | echo "${ECHO_T}no" >&6; } |
6735 | fi |
6736 | |
6737 | |
6738 | fi |
6739 | if test -z "$ac_cv_prog_AR"; then |
6740 | ac_ct_AR=$AR |
6741 | # Extract the first word of "ar", so it can be a program name with args. |
6742 | set dummy ar; ac_word=$2 |
6743 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6744 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6745 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6746 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6747 | else |
6748 | if test -n "$ac_ct_AR"; then |
6749 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6750 | else |
6751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6752 | for as_dir in $PATH |
6753 | do |
6754 | IFS=$as_save_IFS |
6755 | test -z "$as_dir" && as_dir=. |
6756 | for ac_exec_ext in '' $ac_executable_extensions; do |
6757 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6758 | ac_cv_prog_ac_ct_AR="ar" |
6759 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6760 | break 2 |
6761 | fi |
6762 | done |
6763 | done |
6764 | IFS=$as_save_IFS |
6765 | |
6766 | fi |
6767 | fi |
6768 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6769 | if test -n "$ac_ct_AR"; then |
6770 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6771 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
6772 | else |
6773 | { echo "$as_me:$LINENO: result: no" >&5 |
6774 | echo "${ECHO_T}no" >&6; } |
6775 | fi |
6776 | |
6777 | if test "x$ac_ct_AR" = x; then |
6778 | AR="false" |
6779 | else |
6780 | case $cross_compiling:$ac_tool_warned in |
6781 | yes:) |
6782 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6783 | whose name does not start with the host triplet. If you think this |
6784 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6785 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6786 | whose name does not start with the host triplet. If you think this |
6787 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6788 | ac_tool_warned=yes ;; |
6789 | esac |
6790 | AR=$ac_ct_AR |
6791 | fi |
6792 | else |
6793 | AR="$ac_cv_prog_AR" |
6794 | fi |
6795 | |
6796 | if test -n "$ac_tool_prefix"; then |
6797 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6798 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6799 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6800 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6801 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6803 | else |
6804 | if test -n "$RANLIB"; then |
6805 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6806 | else |
6807 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6808 | for as_dir in $PATH |
6809 | do |
6810 | IFS=$as_save_IFS |
6811 | test -z "$as_dir" && as_dir=. |
6812 | for ac_exec_ext in '' $ac_executable_extensions; do |
6813 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6814 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6815 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6816 | break 2 |
6817 | fi |
6818 | done |
6819 | done |
6820 | IFS=$as_save_IFS |
6821 | |
6822 | fi |
6823 | fi |
6824 | RANLIB=$ac_cv_prog_RANLIB |
6825 | if test -n "$RANLIB"; then |
6826 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6827 | echo "${ECHO_T}$RANLIB" >&6; } |
6828 | else |
6829 | { echo "$as_me:$LINENO: result: no" >&5 |
6830 | echo "${ECHO_T}no" >&6; } |
6831 | fi |
6832 | |
6833 | |
6834 | fi |
6835 | if test -z "$ac_cv_prog_RANLIB"; then |
6836 | ac_ct_RANLIB=$RANLIB |
6837 | # Extract the first word of "ranlib", so it can be a program name with args. |
6838 | set dummy ranlib; ac_word=$2 |
6839 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6840 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6841 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6842 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6843 | else |
6844 | if test -n "$ac_ct_RANLIB"; then |
6845 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6846 | else |
6847 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6848 | for as_dir in $PATH |
6849 | do |
6850 | IFS=$as_save_IFS |
6851 | test -z "$as_dir" && as_dir=. |
6852 | for ac_exec_ext in '' $ac_executable_extensions; do |
6853 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6854 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6855 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6856 | break 2 |
6857 | fi |
6858 | done |
6859 | done |
6860 | IFS=$as_save_IFS |
6861 | |
6862 | fi |
6863 | fi |
6864 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6865 | if test -n "$ac_ct_RANLIB"; then |
6866 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6867 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
6868 | else |
6869 | { echo "$as_me:$LINENO: result: no" >&5 |
6870 | echo "${ECHO_T}no" >&6; } |
6871 | fi |
6872 | |
6873 | if test "x$ac_ct_RANLIB" = x; then |
6874 | RANLIB=":" |
6875 | else |
6876 | case $cross_compiling:$ac_tool_warned in |
6877 | yes:) |
6878 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6879 | whose name does not start with the host triplet. If you think this |
6880 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6881 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6882 | whose name does not start with the host triplet. If you think this |
6883 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6884 | ac_tool_warned=yes ;; |
6885 | esac |
6886 | RANLIB=$ac_ct_RANLIB |
6887 | fi |
6888 | else |
6889 | RANLIB="$ac_cv_prog_RANLIB" |
6890 | fi |
6891 | |
6892 | if test -n "$ac_tool_prefix"; then |
6893 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6894 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6895 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6896 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6897 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6898 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6899 | else |
6900 | if test -n "$STRIP"; then |
6901 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6902 | else |
6903 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6904 | for as_dir in $PATH |
6905 | do |
6906 | IFS=$as_save_IFS |
6907 | test -z "$as_dir" && as_dir=. |
6908 | for ac_exec_ext in '' $ac_executable_extensions; do |
6909 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6910 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6911 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6912 | break 2 |
6913 | fi |
6914 | done |
6915 | done |
6916 | IFS=$as_save_IFS |
6917 | |
6918 | fi |
6919 | fi |
6920 | STRIP=$ac_cv_prog_STRIP |
6921 | if test -n "$STRIP"; then |
6922 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
6923 | echo "${ECHO_T}$STRIP" >&6; } |
6924 | else |
6925 | { echo "$as_me:$LINENO: result: no" >&5 |
6926 | echo "${ECHO_T}no" >&6; } |
6927 | fi |
6928 | |
6929 | |
6930 | fi |
6931 | if test -z "$ac_cv_prog_STRIP"; then |
6932 | ac_ct_STRIP=$STRIP |
6933 | # Extract the first word of "strip", so it can be a program name with args. |
6934 | set dummy strip; ac_word=$2 |
6935 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6936 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6937 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6938 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6939 | else |
6940 | if test -n "$ac_ct_STRIP"; then |
6941 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6942 | else |
6943 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6944 | for as_dir in $PATH |
6945 | do |
6946 | IFS=$as_save_IFS |
6947 | test -z "$as_dir" && as_dir=. |
6948 | for ac_exec_ext in '' $ac_executable_extensions; do |
6949 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6950 | ac_cv_prog_ac_ct_STRIP="strip" |
6951 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6952 | break 2 |
6953 | fi |
6954 | done |
6955 | done |
6956 | IFS=$as_save_IFS |
6957 | |
6958 | fi |
6959 | fi |
6960 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6961 | if test -n "$ac_ct_STRIP"; then |
6962 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6963 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
6964 | else |
6965 | { echo "$as_me:$LINENO: result: no" >&5 |
6966 | echo "${ECHO_T}no" >&6; } |
6967 | fi |
6968 | |
6969 | if test "x$ac_ct_STRIP" = x; then |
6970 | STRIP=":" |
6971 | else |
6972 | case $cross_compiling:$ac_tool_warned in |
6973 | yes:) |
6974 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6975 | whose name does not start with the host triplet. If you think this |
6976 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6977 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6978 | whose name does not start with the host triplet. If you think this |
6979 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6980 | ac_tool_warned=yes ;; |
6981 | esac |
6982 | STRIP=$ac_ct_STRIP |
6983 | fi |
6984 | else |
6985 | STRIP="$ac_cv_prog_STRIP" |
6986 | fi |
6987 | |
6988 | |
6989 | old_CC="$CC" |
6990 | old_CFLAGS="$CFLAGS" |
6991 | |
6992 | # Set sane defaults for various variables |
6993 | test -z "$AR" && AR=ar |
6994 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
6995 | test -z "$AS" && AS=as |
6996 | test -z "$CC" && CC=cc |
6997 | test -z "$LTCC" && LTCC=$CC |
6998 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
6999 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
7000 | test -z "$LD" && LD=ld |
7001 | test -z "$LN_S" && LN_S="ln -s" |
7002 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
7003 | test -z "$NM" && NM=nm |
7004 | test -z "$SED" && SED=sed |
7005 | test -z "$OBJDUMP" && OBJDUMP=objdump |
7006 | test -z "$RANLIB" && RANLIB=: |
7007 | test -z "$STRIP" && STRIP=: |
7008 | test -z "$ac_objext" && ac_objext=o |
7009 | |
7010 | # Determine commands to create old-style static archives. |
7011 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' |
7012 | old_postinstall_cmds='chmod 644 $oldlib' |
7013 | old_postuninstall_cmds= |
7014 | |
7015 | if test -n "$RANLIB"; then |
7016 | case $host_os in |
7017 | openbsd*) |
7018 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
7019 | ;; |
7020 | *) |
7021 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
7022 | ;; |
7023 | esac |
7024 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
7025 | fi |
7026 | |
7027 | for cc_temp in $compiler""; do |
7028 | case $cc_temp in |
7029 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7030 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7031 | \-*) ;; |
7032 | *) break;; |
7033 | esac |
7034 | done |
7035 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7036 | |
7037 | |
7038 | # Only perform the check for file, if the check method requires it |
7039 | case $deplibs_check_method in |
7040 | file_magic*) |
7041 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
7042 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
7043 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
7044 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7046 | else |
7047 | case $MAGIC_CMD in |
7048 | [\\/*] | ?:[\\/]*) |
7049 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7050 | ;; |
7051 | *) |
7052 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7053 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7054 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7055 | for ac_dir in $ac_dummy; do |
7056 | IFS="$lt_save_ifs" |
7057 | test -z "$ac_dir" && ac_dir=. |
7058 | if test -f $ac_dir/${ac_tool_prefix}file; then |
7059 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
7060 | if test -n "$file_magic_test_file"; then |
7061 | case $deplibs_check_method in |
7062 | "file_magic "*) |
7063 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7064 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7065 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7066 | $EGREP "$file_magic_regex" > /dev/null; then |
7067 | : |
7068 | else |
7069 | cat <<EOF 1>&2 |
7070 | |
7071 | *** Warning: the command libtool uses to detect shared libraries, |
7072 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7073 | *** The result is that libtool may fail to recognize shared libraries |
7074 | *** as such. This will affect the creation of libtool libraries that |
7075 | *** depend on shared libraries, but programs linked with such libtool |
7076 | *** libraries will work regardless of this problem. Nevertheless, you |
7077 | *** may want to report the problem to your system manager and/or to |
7078 | *** bug-libtool@gnu.org |
7079 | |
7080 | EOF |
7081 | fi ;; |
7082 | esac |
7083 | fi |
7084 | break |
7085 | fi |
7086 | done |
7087 | IFS="$lt_save_ifs" |
7088 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7089 | ;; |
7090 | esac |
7091 | fi |
7092 | |
7093 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7094 | if test -n "$MAGIC_CMD"; then |
7095 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7096 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
7097 | else |
7098 | { echo "$as_me:$LINENO: result: no" >&5 |
7099 | echo "${ECHO_T}no" >&6; } |
7100 | fi |
7101 | |
7102 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7103 | if test -n "$ac_tool_prefix"; then |
7104 | { echo "$as_me:$LINENO: checking for file" >&5 |
7105 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
7106 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7107 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7108 | else |
7109 | case $MAGIC_CMD in |
7110 | [\\/*] | ?:[\\/]*) |
7111 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7112 | ;; |
7113 | *) |
7114 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7115 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7116 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7117 | for ac_dir in $ac_dummy; do |
7118 | IFS="$lt_save_ifs" |
7119 | test -z "$ac_dir" && ac_dir=. |
7120 | if test -f $ac_dir/file; then |
7121 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
7122 | if test -n "$file_magic_test_file"; then |
7123 | case $deplibs_check_method in |
7124 | "file_magic "*) |
7125 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7126 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7127 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7128 | $EGREP "$file_magic_regex" > /dev/null; then |
7129 | : |
7130 | else |
7131 | cat <<EOF 1>&2 |
7132 | |
7133 | *** Warning: the command libtool uses to detect shared libraries, |
7134 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7135 | *** The result is that libtool may fail to recognize shared libraries |
7136 | *** as such. This will affect the creation of libtool libraries that |
7137 | *** depend on shared libraries, but programs linked with such libtool |
7138 | *** libraries will work regardless of this problem. Nevertheless, you |
7139 | *** may want to report the problem to your system manager and/or to |
7140 | *** bug-libtool@gnu.org |
7141 | |
7142 | EOF |
7143 | fi ;; |
7144 | esac |
7145 | fi |
7146 | break |
7147 | fi |
7148 | done |
7149 | IFS="$lt_save_ifs" |
7150 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7151 | ;; |
7152 | esac |
7153 | fi |
7154 | |
7155 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7156 | if test -n "$MAGIC_CMD"; then |
7157 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7158 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
7159 | else |
7160 | { echo "$as_me:$LINENO: result: no" >&5 |
7161 | echo "${ECHO_T}no" >&6; } |
7162 | fi |
7163 | |
7164 | else |
7165 | MAGIC_CMD=: |
7166 | fi |
7167 | fi |
7168 | |
7169 | fi |
7170 | ;; |
7171 | esac |
7172 | |
7173 | |
7174 | case $host_os in |
7175 | rhapsody* | darwin*) |
7176 | if test -n "$ac_tool_prefix"; then |
7177 | # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. |
7178 | set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 |
7179 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7180 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
7181 | if test "${ac_cv_prog_DSYMUTIL+set}" = set; then |
7182 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7183 | else |
7184 | if test -n "$DSYMUTIL"; then |
7185 | ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. |
7186 | else |
7187 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7188 | for as_dir in $PATH |
7189 | do |
7190 | IFS=$as_save_IFS |
7191 | test -z "$as_dir" && as_dir=. |
7192 | for ac_exec_ext in '' $ac_executable_extensions; do |
7193 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7194 | ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" |
7195 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7196 | break 2 |
7197 | fi |
7198 | done |
7199 | done |
7200 | IFS=$as_save_IFS |
7201 | |
7202 | fi |
7203 | fi |
7204 | DSYMUTIL=$ac_cv_prog_DSYMUTIL |
7205 | if test -n "$DSYMUTIL"; then |
7206 | { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5 |
7207 | echo "${ECHO_T}$DSYMUTIL" >&6; } |
7208 | else |
7209 | { echo "$as_me:$LINENO: result: no" >&5 |
7210 | echo "${ECHO_T}no" >&6; } |
7211 | fi |
7212 | |
7213 | |
7214 | fi |
7215 | if test -z "$ac_cv_prog_DSYMUTIL"; then |
7216 | ac_ct_DSYMUTIL=$DSYMUTIL |
7217 | # Extract the first word of "dsymutil", so it can be a program name with args. |
7218 | set dummy dsymutil; ac_word=$2 |
7219 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7220 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
7221 | if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then |
7222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7223 | else |
7224 | if test -n "$ac_ct_DSYMUTIL"; then |
7225 | ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. |
7226 | else |
7227 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7228 | for as_dir in $PATH |
7229 | do |
7230 | IFS=$as_save_IFS |
7231 | test -z "$as_dir" && as_dir=. |
7232 | for ac_exec_ext in '' $ac_executable_extensions; do |
7233 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7234 | ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" |
7235 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7236 | break 2 |
7237 | fi |
7238 | done |
7239 | done |
7240 | IFS=$as_save_IFS |
7241 | |
7242 | fi |
7243 | fi |
7244 | ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL |
7245 | if test -n "$ac_ct_DSYMUTIL"; then |
7246 | { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5 |
7247 | echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; } |
7248 | else |
7249 | { echo "$as_me:$LINENO: result: no" >&5 |
7250 | echo "${ECHO_T}no" >&6; } |
7251 | fi |
7252 | |
7253 | if test "x$ac_ct_DSYMUTIL" = x; then |
7254 | DSYMUTIL=":" |
7255 | else |
7256 | case $cross_compiling:$ac_tool_warned in |
7257 | yes:) |
7258 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7259 | whose name does not start with the host triplet. If you think this |
7260 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
7261 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7262 | whose name does not start with the host triplet. If you think this |
7263 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
7264 | ac_tool_warned=yes ;; |
7265 | esac |
7266 | DSYMUTIL=$ac_ct_DSYMUTIL |
7267 | fi |
7268 | else |
7269 | DSYMUTIL="$ac_cv_prog_DSYMUTIL" |
7270 | fi |
7271 | |
7272 | if test -n "$ac_tool_prefix"; then |
7273 | # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. |
7274 | set dummy ${ac_tool_prefix}nmedit; ac_word=$2 |
7275 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7276 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
7277 | if test "${ac_cv_prog_NMEDIT+set}" = set; then |
7278 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7279 | else |
7280 | if test -n "$NMEDIT"; then |
7281 | ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. |
7282 | else |
7283 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7284 | for as_dir in $PATH |
7285 | do |
7286 | IFS=$as_save_IFS |
7287 | test -z "$as_dir" && as_dir=. |
7288 | for ac_exec_ext in '' $ac_executable_extensions; do |
7289 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7290 | ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" |
7291 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7292 | break 2 |
7293 | fi |
7294 | done |
7295 | done |
7296 | IFS=$as_save_IFS |
7297 | |
7298 | fi |
7299 | fi |
7300 | NMEDIT=$ac_cv_prog_NMEDIT |
7301 | if test -n "$NMEDIT"; then |
7302 | { echo "$as_me:$LINENO: result: $NMEDIT" >&5 |
7303 | echo "${ECHO_T}$NMEDIT" >&6; } |
7304 | else |
7305 | { echo "$as_me:$LINENO: result: no" >&5 |
7306 | echo "${ECHO_T}no" >&6; } |
7307 | fi |
7308 | |
7309 | |
7310 | fi |
7311 | if test -z "$ac_cv_prog_NMEDIT"; then |
7312 | ac_ct_NMEDIT=$NMEDIT |
7313 | # Extract the first word of "nmedit", so it can be a program name with args. |
7314 | set dummy nmedit; ac_word=$2 |
7315 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7316 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
7317 | if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then |
7318 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7319 | else |
7320 | if test -n "$ac_ct_NMEDIT"; then |
7321 | ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. |
7322 | else |
7323 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7324 | for as_dir in $PATH |
7325 | do |
7326 | IFS=$as_save_IFS |
7327 | test -z "$as_dir" && as_dir=. |
7328 | for ac_exec_ext in '' $ac_executable_extensions; do |
7329 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7330 | ac_cv_prog_ac_ct_NMEDIT="nmedit" |
7331 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7332 | break 2 |
7333 | fi |
7334 | done |
7335 | done |
7336 | IFS=$as_save_IFS |
7337 | |
7338 | fi |
7339 | fi |
7340 | ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT |
7341 | if test -n "$ac_ct_NMEDIT"; then |
7342 | { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5 |
7343 | echo "${ECHO_T}$ac_ct_NMEDIT" >&6; } |
7344 | else |
7345 | { echo "$as_me:$LINENO: result: no" >&5 |
7346 | echo "${ECHO_T}no" >&6; } |
7347 | fi |
7348 | |
7349 | if test "x$ac_ct_NMEDIT" = x; then |
7350 | NMEDIT=":" |
7351 | else |
7352 | case $cross_compiling:$ac_tool_warned in |
7353 | yes:) |
7354 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7355 | whose name does not start with the host triplet. If you think this |
7356 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
7357 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7358 | whose name does not start with the host triplet. If you think this |
7359 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
7360 | ac_tool_warned=yes ;; |
7361 | esac |
7362 | NMEDIT=$ac_ct_NMEDIT |
7363 | fi |
7364 | else |
7365 | NMEDIT="$ac_cv_prog_NMEDIT" |
7366 | fi |
7367 | |
7368 | |
7369 | { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5 |
7370 | echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; } |
7371 | if test "${lt_cv_apple_cc_single_mod+set}" = set; then |
7372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7373 | else |
7374 | lt_cv_apple_cc_single_mod=no |
7375 | if test -z "${LT_MULTI_MODULE}"; then |
7376 | # By default we will add the -single_module flag. You can override |
7377 | # by either setting the environment variable LT_MULTI_MODULE |
7378 | # non-empty at configure time, or by adding -multi_module to the |
7379 | # link flags. |
7380 | echo "int foo(void){return 1;}" > conftest.c |
7381 | $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ |
7382 | -dynamiclib ${wl}-single_module conftest.c |
7383 | if test -f libconftest.dylib; then |
7384 | lt_cv_apple_cc_single_mod=yes |
7385 | rm -rf libconftest.dylib* |
7386 | fi |
7387 | rm conftest.c |
7388 | fi |
7389 | fi |
7390 | { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5 |
7391 | echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; } |
7392 | { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5 |
7393 | echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; } |
7394 | if test "${lt_cv_ld_exported_symbols_list+set}" = set; then |
7395 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7396 | else |
7397 | lt_cv_ld_exported_symbols_list=no |
7398 | save_LDFLAGS=$LDFLAGS |
7399 | echo "_main" > conftest.sym |
7400 | LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" |
7401 | cat >conftest.$ac_ext <<_ACEOF |
7402 | /* confdefs.h. */ |
7403 | _ACEOF |
7404 | cat confdefs.h >>conftest.$ac_ext |
7405 | cat >>conftest.$ac_ext <<_ACEOF |
7406 | /* end confdefs.h. */ |
7407 | |
7408 | int |
7409 | main () |
7410 | { |
7411 | |
7412 | ; |
7413 | return 0; |
7414 | } |
7415 | _ACEOF |
7416 | rm -f conftest.$ac_objext conftest$ac_exeext |
7417 | if { (ac_try="$ac_link" |
7418 | case "(($ac_try" in |
7419 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
7420 | *) ac_try_echo=$ac_try;; |
7421 | esac |
7422 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
7423 | (eval "$ac_link") 2>conftest.er1 |
7424 | ac_status=$? |
7425 | grep -v '^ *+' conftest.er1 >conftest.err |
7426 | rm -f conftest.er1 |
7427 | cat conftest.err >&5 |
7428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
7429 | (exit $ac_status); } && { |
7430 | test -z "$ac_c_werror_flag" || |
7431 | test ! -s conftest.err |
7432 | } && test -s conftest$ac_exeext && |
7433 | $as_test_x conftest$ac_exeext; then |
7434 | lt_cv_ld_exported_symbols_list=yes |
7435 | else |
7436 | echo "$as_me: failed program was:" >&5 |
7437 | sed 's/^/| /' conftest.$ac_ext >&5 |
7438 | |
7439 | lt_cv_ld_exported_symbols_list=no |
7440 | fi |
7441 | |
7442 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
7443 | conftest$ac_exeext conftest.$ac_ext |
7444 | LDFLAGS="$save_LDFLAGS" |
7445 | |
7446 | fi |
7447 | { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5 |
7448 | echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; } |
7449 | case $host_os in |
7450 | rhapsody* | darwin1.[0123]) |
7451 | _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; |
7452 | darwin1.*) |
7453 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7454 | darwin*) |
7455 | # if running on 10.5 or later, the deployment target defaults |
7456 | # to the OS version, if on x86, and 10.4, the deployment |
7457 | # target defaults to 10.4. Don't you love it? |
7458 | case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in |
7459 | 10.0,*86*-darwin8*|10.0,*-darwin[91]*) |
7460 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
7461 | 10.[012]*) |
7462 | _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; |
7463 | 10.*) |
7464 | _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; |
7465 | esac |
7466 | ;; |
7467 | esac |
7468 | if test "$lt_cv_apple_cc_single_mod" = "yes"; then |
7469 | _lt_dar_single_mod='$single_module' |
7470 | fi |
7471 | if test "$lt_cv_ld_exported_symbols_list" = "yes"; then |
7472 | _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' |
7473 | else |
7474 | _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}" |
7475 | fi |
7476 | if test "$DSYMUTIL" != ":"; then |
7477 | _lt_dsymutil="~$DSYMUTIL \$lib || :" |
7478 | else |
7479 | _lt_dsymutil= |
7480 | fi |
7481 | ;; |
7482 | esac |
7483 | |
7484 | |
7485 | enable_dlopen=no |
7486 | enable_win32_dll=no |
7487 | |
7488 | # Check whether --enable-libtool-lock was given. |
7489 | if test "${enable_libtool_lock+set}" = set; then |
7490 | enableval=$enable_libtool_lock; |
7491 | fi |
7492 | |
7493 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7494 | |
7495 | |
7496 | # Check whether --with-pic was given. |
7497 | if test "${with_pic+set}" = set; then |
7498 | withval=$with_pic; pic_mode="$withval" |
7499 | else |
7500 | pic_mode=default |
7501 | fi |
7502 | |
7503 | test -z "$pic_mode" && pic_mode=default |
7504 | |
7505 | # Use C for the default configuration in the libtool script |
7506 | tagname= |
7507 | lt_save_CC="$CC" |
7508 | ac_ext=c |
7509 | ac_cpp='$CPP $CPPFLAGS' |
7510 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7511 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7512 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7513 | |
7514 | |
7515 | # Source file extension for C test sources. |
7516 | ac_ext=c |
7517 | |
7518 | # Object file extension for compiled C test sources. |
7519 | objext=o |
7520 | objext=$objext |
7521 | |
7522 | # Code to be used in simple compile tests |
7523 | lt_simple_compile_test_code="int some_variable = 0;" |
7524 | |
7525 | # Code to be used in simple link tests |
7526 | lt_simple_link_test_code='int main(){return(0);}' |
7527 | |
7528 | |
7529 | # If no C compiler was specified, use CC. |
7530 | LTCC=${LTCC-"$CC"} |
7531 | |
7532 | # If no C compiler flags were specified, use CFLAGS. |
7533 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
7534 | |
7535 | # Allow CC to be a program name with arguments. |
7536 | compiler=$CC |
7537 | |
7538 | |
7539 | # save warnings/boilerplate of simple test code |
7540 | ac_outfile=conftest.$ac_objext |
7541 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
7542 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7543 | _lt_compiler_boilerplate=`cat conftest.err` |
7544 | $rm conftest* |
7545 | |
7546 | ac_outfile=conftest.$ac_objext |
7547 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
7548 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7549 | _lt_linker_boilerplate=`cat conftest.err` |
7550 | $rm -r conftest* |
7551 | |
7552 | |
7553 | |
7554 | lt_prog_compiler_no_builtin_flag= |
7555 | |
7556 | if test "$GCC" = yes; then |
7557 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
7558 | |
7559 | |
7560 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7561 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
7562 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
7563 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7564 | else |
7565 | lt_cv_prog_compiler_rtti_exceptions=no |
7566 | ac_outfile=conftest.$ac_objext |
7567 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
7568 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
7569 | # Insert the option either (1) after the last *FLAGS variable, or |
7570 | # (2) before a word containing "conftest.", or (3) at the end. |
7571 | # Note that $ac_compile itself does not contain backslashes and begins |
7572 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7573 | # The option is referenced via a variable to avoid confusing sed. |
7574 | lt_compile=`echo "$ac_compile" | $SED \ |
7575 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7576 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7577 | -e 's:$: $lt_compiler_flag:'` |
7578 | (eval echo "\"\$as_me:7578: $lt_compile\"" >&5) |
7579 | (eval "$lt_compile" 2>conftest.err) |
7580 | ac_status=$? |
7581 | cat conftest.err >&5 |
7582 | echo "$as_me:7582: \$? = $ac_status" >&5 |
7583 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7584 | # The compiler can only warn and ignore the option if not recognized |
7585 | # So say no if there are warnings other than the usual output. |
7586 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7587 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7588 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7589 | lt_cv_prog_compiler_rtti_exceptions=yes |
7590 | fi |
7591 | fi |
7592 | $rm conftest* |
7593 | |
7594 | fi |
7595 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7596 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
7597 | |
7598 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7599 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
7600 | else |
7601 | : |
7602 | fi |
7603 | |
7604 | fi |
7605 | |
7606 | lt_prog_compiler_wl= |
7607 | lt_prog_compiler_pic= |
7608 | lt_prog_compiler_static= |
7609 | |
7610 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7611 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
7612 | |
7613 | if test "$GCC" = yes; then |
7614 | lt_prog_compiler_wl='-Wl,' |
7615 | lt_prog_compiler_static='-static' |
7616 | |
7617 | case $host_os in |
7618 | aix*) |
7619 | # All AIX code is PIC. |
7620 | if test "$host_cpu" = ia64; then |
7621 | # AIX 5 now supports IA64 processor |
7622 | lt_prog_compiler_static='-Bstatic' |
7623 | fi |
7624 | ;; |
7625 | |
7626 | amigaos*) |
7627 | # FIXME: we need at least 68020 code to build shared libraries, but |
7628 | # adding the `-m68020' flag to GCC prevents building anything better, |
7629 | # like `-m68040'. |
7630 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
7631 | ;; |
7632 | |
7633 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7634 | # PIC is the default for these OSes. |
7635 | ;; |
7636 | |
7637 | mingw* | cygwin* | pw32* | os2*) |
7638 | # This hack is so that the source file can tell whether it is being |
7639 | # built for inclusion in a dll (and should export symbols for example). |
7640 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
7641 | # (--disable-auto-import) libraries |
7642 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7643 | ;; |
7644 | |
7645 | darwin* | rhapsody*) |
7646 | # PIC is the default on this platform |
7647 | # Common symbols not allowed in MH_DYLIB files |
7648 | lt_prog_compiler_pic='-fno-common' |
7649 | ;; |
7650 | |
7651 | interix[3-9]*) |
7652 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
7653 | # Instead, we relocate shared libraries at runtime. |
7654 | ;; |
7655 | |
7656 | msdosdjgpp*) |
7657 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
7658 | # on systems that don't support them. |
7659 | lt_prog_compiler_can_build_shared=no |
7660 | enable_shared=no |
7661 | ;; |
7662 | |
7663 | sysv4*MP*) |
7664 | if test -d /usr/nec; then |
7665 | lt_prog_compiler_pic=-Kconform_pic |
7666 | fi |
7667 | ;; |
7668 | |
7669 | hpux*) |
7670 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7671 | # not for PA HP-UX. |
7672 | case $host_cpu in |
7673 | hppa*64*|ia64*) |
7674 | # +Z the default |
7675 | ;; |
7676 | *) |
7677 | lt_prog_compiler_pic='-fPIC' |
7678 | ;; |
7679 | esac |
7680 | ;; |
7681 | |
7682 | *) |
7683 | lt_prog_compiler_pic='-fPIC' |
7684 | ;; |
7685 | esac |
7686 | else |
7687 | # PORTME Check for flag to pass linker flags through the system compiler. |
7688 | case $host_os in |
7689 | aix*) |
7690 | lt_prog_compiler_wl='-Wl,' |
7691 | if test "$host_cpu" = ia64; then |
7692 | # AIX 5 now supports IA64 processor |
7693 | lt_prog_compiler_static='-Bstatic' |
7694 | else |
7695 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
7696 | fi |
7697 | ;; |
7698 | darwin*) |
7699 | # PIC is the default on this platform |
7700 | # Common symbols not allowed in MH_DYLIB files |
7701 | case $cc_basename in |
7702 | xlc*) |
7703 | lt_prog_compiler_pic='-qnocommon' |
7704 | lt_prog_compiler_wl='-Wl,' |
7705 | ;; |
7706 | esac |
7707 | ;; |
7708 | |
7709 | mingw* | cygwin* | pw32* | os2*) |
7710 | # This hack is so that the source file can tell whether it is being |
7711 | # built for inclusion in a dll (and should export symbols for example). |
7712 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7713 | ;; |
7714 | |
7715 | hpux9* | hpux10* | hpux11*) |
7716 | lt_prog_compiler_wl='-Wl,' |
7717 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7718 | # not for PA HP-UX. |
7719 | case $host_cpu in |
7720 | hppa*64*|ia64*) |
7721 | # +Z the default |
7722 | ;; |
7723 | *) |
7724 | lt_prog_compiler_pic='+Z' |
7725 | ;; |
7726 | esac |
7727 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
7728 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
7729 | ;; |
7730 | |
7731 | irix5* | irix6* | nonstopux*) |
7732 | lt_prog_compiler_wl='-Wl,' |
7733 | # PIC (with -KPIC) is the default. |
7734 | lt_prog_compiler_static='-non_shared' |
7735 | ;; |
7736 | |
7737 | newsos6) |
7738 | lt_prog_compiler_pic='-KPIC' |
7739 | lt_prog_compiler_static='-Bstatic' |
7740 | ;; |
7741 | |
7742 | linux* | k*bsd*-gnu) |
7743 | case $cc_basename in |
7744 | icc* | ecc*) |
7745 | lt_prog_compiler_wl='-Wl,' |
7746 | lt_prog_compiler_pic='-KPIC' |
7747 | lt_prog_compiler_static='-static' |
7748 | ;; |
7749 | pgcc* | pgf77* | pgf90* | pgf95*) |
7750 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7751 | # which looks to be a dead project) |
7752 | lt_prog_compiler_wl='-Wl,' |
7753 | lt_prog_compiler_pic='-fpic' |
7754 | lt_prog_compiler_static='-Bstatic' |
7755 | ;; |
7756 | ccc*) |
7757 | lt_prog_compiler_wl='-Wl,' |
7758 | # All Alpha code is PIC. |
7759 | lt_prog_compiler_static='-non_shared' |
7760 | ;; |
7761 | *) |
7762 | case `$CC -V 2>&1 | sed 5q` in |
7763 | *Sun\ C*) |
7764 | # Sun C 5.9 |
7765 | lt_prog_compiler_pic='-KPIC' |
7766 | lt_prog_compiler_static='-Bstatic' |
7767 | lt_prog_compiler_wl='-Wl,' |
7768 | ;; |
7769 | *Sun\ F*) |
7770 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
7771 | lt_prog_compiler_pic='-KPIC' |
7772 | lt_prog_compiler_static='-Bstatic' |
7773 | lt_prog_compiler_wl='' |
7774 | ;; |
7775 | esac |
7776 | ;; |
7777 | esac |
7778 | ;; |
7779 | |
7780 | osf3* | osf4* | osf5*) |
7781 | lt_prog_compiler_wl='-Wl,' |
7782 | # All OSF/1 code is PIC. |
7783 | lt_prog_compiler_static='-non_shared' |
7784 | ;; |
7785 | |
7786 | rdos*) |
7787 | lt_prog_compiler_static='-non_shared' |
7788 | ;; |
7789 | |
7790 | solaris*) |
7791 | lt_prog_compiler_pic='-KPIC' |
7792 | lt_prog_compiler_static='-Bstatic' |
7793 | case $cc_basename in |
7794 | f77* | f90* | f95*) |
7795 | lt_prog_compiler_wl='-Qoption ld ';; |
7796 | *) |
7797 | lt_prog_compiler_wl='-Wl,';; |
7798 | esac |
7799 | ;; |
7800 | |
7801 | sunos4*) |
7802 | lt_prog_compiler_wl='-Qoption ld ' |
7803 | lt_prog_compiler_pic='-PIC' |
7804 | lt_prog_compiler_static='-Bstatic' |
7805 | ;; |
7806 | |
7807 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7808 | lt_prog_compiler_wl='-Wl,' |
7809 | lt_prog_compiler_pic='-KPIC' |
7810 | lt_prog_compiler_static='-Bstatic' |
7811 | ;; |
7812 | |
7813 | sysv4*MP*) |
7814 | if test -d /usr/nec ;then |
7815 | lt_prog_compiler_pic='-Kconform_pic' |
7816 | lt_prog_compiler_static='-Bstatic' |
7817 | fi |
7818 | ;; |
7819 | |
7820 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7821 | lt_prog_compiler_wl='-Wl,' |
7822 | lt_prog_compiler_pic='-KPIC' |
7823 | lt_prog_compiler_static='-Bstatic' |
7824 | ;; |
7825 | |
7826 | unicos*) |
7827 | lt_prog_compiler_wl='-Wl,' |
7828 | lt_prog_compiler_can_build_shared=no |
7829 | ;; |
7830 | |
7831 | uts4*) |
7832 | lt_prog_compiler_pic='-pic' |
7833 | lt_prog_compiler_static='-Bstatic' |
7834 | ;; |
7835 | |
7836 | *) |
7837 | lt_prog_compiler_can_build_shared=no |
7838 | ;; |
7839 | esac |
7840 | fi |
7841 | |
7842 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
7843 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
7844 | |
7845 | # |
7846 | # Check to make sure the PIC flag actually works. |
7847 | # |
7848 | if test -n "$lt_prog_compiler_pic"; then |
7849 | |
7850 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7851 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
7852 | if test "${lt_cv_prog_compiler_pic_works+set}" = set; then |
7853 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7854 | else |
7855 | lt_cv_prog_compiler_pic_works=no |
7856 | ac_outfile=conftest.$ac_objext |
7857 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
7858 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
7859 | # Insert the option either (1) after the last *FLAGS variable, or |
7860 | # (2) before a word containing "conftest.", or (3) at the end. |
7861 | # Note that $ac_compile itself does not contain backslashes and begins |
7862 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7863 | # The option is referenced via a variable to avoid confusing sed. |
7864 | lt_compile=`echo "$ac_compile" | $SED \ |
7865 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7866 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7867 | -e 's:$: $lt_compiler_flag:'` |
7868 | (eval echo "\"\$as_me:7868: $lt_compile\"" >&5) |
7869 | (eval "$lt_compile" 2>conftest.err) |
7870 | ac_status=$? |
7871 | cat conftest.err >&5 |
7872 | echo "$as_me:7872: \$? = $ac_status" >&5 |
7873 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7874 | # The compiler can only warn and ignore the option if not recognized |
7875 | # So say no if there are warnings other than the usual output. |
7876 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7877 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7878 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7879 | lt_cv_prog_compiler_pic_works=yes |
7880 | fi |
7881 | fi |
7882 | $rm conftest* |
7883 | |
7884 | fi |
7885 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5 |
7886 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; } |
7887 | |
7888 | if test x"$lt_cv_prog_compiler_pic_works" = xyes; then |
7889 | case $lt_prog_compiler_pic in |
7890 | "" | " "*) ;; |
7891 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
7892 | esac |
7893 | else |
7894 | lt_prog_compiler_pic= |
7895 | lt_prog_compiler_can_build_shared=no |
7896 | fi |
7897 | |
7898 | fi |
7899 | case $host_os in |
7900 | # For platforms which do not support PIC, -DPIC is meaningless: |
7901 | *djgpp*) |
7902 | lt_prog_compiler_pic= |
7903 | ;; |
7904 | *) |
7905 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
7906 | ;; |
7907 | esac |
7908 | |
7909 | # |
7910 | # Check to make sure the static flag actually works. |
7911 | # |
7912 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
7913 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
7914 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
7915 | if test "${lt_cv_prog_compiler_static_works+set}" = set; then |
7916 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7917 | else |
7918 | lt_cv_prog_compiler_static_works=no |
7919 | save_LDFLAGS="$LDFLAGS" |
7920 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
7921 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
7922 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
7923 | # The linker can only warn and ignore the option if not recognized |
7924 | # So say no if there are warnings |
7925 | if test -s conftest.err; then |
7926 | # Append any errors to the config.log. |
7927 | cat conftest.err 1>&5 |
7928 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
7929 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7930 | if diff conftest.exp conftest.er2 >/dev/null; then |
7931 | lt_cv_prog_compiler_static_works=yes |
7932 | fi |
7933 | else |
7934 | lt_cv_prog_compiler_static_works=yes |
7935 | fi |
7936 | fi |
7937 | $rm -r conftest* |
7938 | LDFLAGS="$save_LDFLAGS" |
7939 | |
7940 | fi |
7941 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5 |
7942 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; } |
7943 | |
7944 | if test x"$lt_cv_prog_compiler_static_works" = xyes; then |
7945 | : |
7946 | else |
7947 | lt_prog_compiler_static= |
7948 | fi |
7949 | |
7950 | |
7951 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7952 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
7953 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7954 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7955 | else |
7956 | lt_cv_prog_compiler_c_o=no |
7957 | $rm -r conftest 2>/dev/null |
7958 | mkdir conftest |
7959 | cd conftest |
7960 | mkdir out |
7961 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
7962 | |
7963 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7964 | # Insert the option either (1) after the last *FLAGS variable, or |
7965 | # (2) before a word containing "conftest.", or (3) at the end. |
7966 | # Note that $ac_compile itself does not contain backslashes and begins |
7967 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7968 | lt_compile=`echo "$ac_compile" | $SED \ |
7969 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7970 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7971 | -e 's:$: $lt_compiler_flag:'` |
7972 | (eval echo "\"\$as_me:7972: $lt_compile\"" >&5) |
7973 | (eval "$lt_compile" 2>out/conftest.err) |
7974 | ac_status=$? |
7975 | cat out/conftest.err >&5 |
7976 | echo "$as_me:7976: \$? = $ac_status" >&5 |
7977 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7978 | then |
7979 | # The compiler can only warn and ignore the option if not recognized |
7980 | # So say no if there are warnings |
7981 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
7982 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
7983 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7984 | lt_cv_prog_compiler_c_o=yes |
7985 | fi |
7986 | fi |
7987 | chmod u+w . 2>&5 |
7988 | $rm conftest* |
7989 | # SGI C++ compiler will create directory out/ii_files/ for |
7990 | # template instantiation |
7991 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
7992 | $rm out/* && rmdir out |
7993 | cd .. |
7994 | rmdir conftest |
7995 | $rm conftest* |
7996 | |
7997 | fi |
7998 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7999 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
8000 | |
8001 | |
8002 | hard_links="nottested" |
8003 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
8004 | # do not overwrite the value of need_locks provided by the user |
8005 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
8006 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
8007 | hard_links=yes |
8008 | $rm conftest* |
8009 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
8010 | touch conftest.a |
8011 | ln conftest.a conftest.b 2>&5 || hard_links=no |
8012 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
8013 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
8014 | echo "${ECHO_T}$hard_links" >&6; } |
8015 | if test "$hard_links" = no; then |
8016 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8017 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
8018 | need_locks=warn |
8019 | fi |
8020 | else |
8021 | need_locks=no |
8022 | fi |
8023 | |
8024 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8025 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
8026 | |
8027 | runpath_var= |
8028 | allow_undefined_flag= |
8029 | enable_shared_with_static_runtimes=no |
8030 | archive_cmds= |
8031 | archive_expsym_cmds= |
8032 | old_archive_From_new_cmds= |
8033 | old_archive_from_expsyms_cmds= |
8034 | export_dynamic_flag_spec= |
8035 | whole_archive_flag_spec= |
8036 | thread_safe_flag_spec= |
8037 | hardcode_libdir_flag_spec= |
8038 | hardcode_libdir_flag_spec_ld= |
8039 | hardcode_libdir_separator= |
8040 | hardcode_direct=no |
8041 | hardcode_minus_L=no |
8042 | hardcode_shlibpath_var=unsupported |
8043 | link_all_deplibs=unknown |
8044 | hardcode_automatic=no |
8045 | module_cmds= |
8046 | module_expsym_cmds= |
8047 | always_export_symbols=no |
8048 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
8049 | # include_expsyms should be a list of space-separated symbols to be *always* |
8050 | # included in the symbol list |
8051 | include_expsyms= |
8052 | # exclude_expsyms can be an extended regexp of symbols to exclude |
8053 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
8054 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
8055 | # as well as any symbol that contains `d'. |
8056 | exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
8057 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8058 | # platforms (ab)use it in PIC code, but their linkers get confused if |
8059 | # the symbol is explicitly referenced. Since portable code cannot |
8060 | # rely on this symbol name, it's probably fine to never include it in |
8061 | # preloaded symbol tables. |
8062 | # Exclude shared library initialization/finalization symbols. |
8063 | extract_expsyms_cmds= |
8064 | # Just being paranoid about ensuring that cc_basename is set. |
8065 | for cc_temp in $compiler""; do |
8066 | case $cc_temp in |
8067 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
8068 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
8069 | \-*) ;; |
8070 | *) break;; |
8071 | esac |
8072 | done |
8073 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
8074 | |
8075 | case $host_os in |
8076 | cygwin* | mingw* | pw32*) |
8077 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8078 | # When not using gcc, we currently assume that we are using |
8079 | # Microsoft Visual C++. |
8080 | if test "$GCC" != yes; then |
8081 | with_gnu_ld=no |
8082 | fi |
8083 | ;; |
8084 | interix*) |
8085 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
8086 | with_gnu_ld=yes |
8087 | ;; |
8088 | openbsd*) |
8089 | with_gnu_ld=no |
8090 | ;; |
8091 | esac |
8092 | |
8093 | ld_shlibs=yes |
8094 | if test "$with_gnu_ld" = yes; then |
8095 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8096 | wlarc='${wl}' |
8097 | |
8098 | # Set some defaults for GNU ld with shared library support. These |
8099 | # are reset later if shared libraries are not supported. Putting them |
8100 | # here allows them to be overridden if necessary. |
8101 | runpath_var=LD_RUN_PATH |
8102 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
8103 | export_dynamic_flag_spec='${wl}--export-dynamic' |
8104 | # ancient GNU ld didn't support --whole-archive et. al. |
8105 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
8106 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
8107 | else |
8108 | whole_archive_flag_spec= |
8109 | fi |
8110 | supports_anon_versioning=no |
8111 | case `$LD -v 2>/dev/null` in |
8112 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8113 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
8114 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
8115 | *\ 2.11.*) ;; # other 2.11 versions |
8116 | *) supports_anon_versioning=yes ;; |
8117 | esac |
8118 | |
8119 | # See if GNU ld supports shared libraries. |
8120 | case $host_os in |
8121 | aix[3-9]*) |
8122 | # On AIX/PPC, the GNU linker is very broken |
8123 | if test "$host_cpu" != ia64; then |
8124 | ld_shlibs=no |
8125 | cat <<EOF 1>&2 |
8126 | |
8127 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
8128 | *** to be unable to reliably create shared libraries on AIX. |
8129 | *** Therefore, libtool is disabling shared libraries support. If you |
8130 | *** really care for shared libraries, you may want to modify your PATH |
8131 | *** so that a non-GNU linker is found, and then restart. |
8132 | |
8133 | EOF |
8134 | fi |
8135 | ;; |
8136 | |
8137 | amigaos*) |
8138 | 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)' |
8139 | hardcode_libdir_flag_spec='-L$libdir' |
8140 | hardcode_minus_L=yes |
8141 | |
8142 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
8143 | # that the semantics of dynamic libraries on AmigaOS, at least up |
8144 | # to version 4, is to share data among multiple programs linked |
8145 | # with the same dynamic library. Since this doesn't match the |
8146 | # behavior of shared libraries on other platforms, we can't use |
8147 | # them. |
8148 | ld_shlibs=no |
8149 | ;; |
8150 | |
8151 | beos*) |
8152 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8153 | allow_undefined_flag=unsupported |
8154 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
8155 | # support --undefined. This deserves some investigation. FIXME |
8156 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8157 | else |
8158 | ld_shlibs=no |
8159 | fi |
8160 | ;; |
8161 | |
8162 | cygwin* | mingw* | pw32*) |
8163 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8164 | # as there is no search path for DLLs. |
8165 | hardcode_libdir_flag_spec='-L$libdir' |
8166 | allow_undefined_flag=unsupported |
8167 | always_export_symbols=no |
8168 | enable_shared_with_static_runtimes=yes |
8169 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
8170 | |
8171 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
8172 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
8173 | # If the export-symbols file already is a .def file (1st line |
8174 | # is EXPORTS), use it as is; otherwise, prepend... |
8175 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
8176 | cp $export_symbols $output_objdir/$soname.def; |
8177 | else |
8178 | echo EXPORTS > $output_objdir/$soname.def; |
8179 | cat $export_symbols >> $output_objdir/$soname.def; |
8180 | fi~ |
8181 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
8182 | else |
8183 | ld_shlibs=no |
8184 | fi |
8185 | ;; |
8186 | |
8187 | interix[3-9]*) |
8188 | hardcode_direct=no |
8189 | hardcode_shlibpath_var=no |
8190 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8191 | export_dynamic_flag_spec='${wl}-E' |
8192 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
8193 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
8194 | # default) and relocated if they conflict, which is a slow very memory |
8195 | # consuming and fragmenting process. To avoid this, we pick a random, |
8196 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
8197 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
8198 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
8199 | 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' |
8200 | ;; |
8201 | |
8202 | gnu* | linux* | k*bsd*-gnu) |
8203 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8204 | tmp_addflag= |
8205 | case $cc_basename,$host_cpu in |
8206 | pgcc*) # Portland Group C compiler |
8207 | 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' |
8208 | tmp_addflag=' $pic_flag' |
8209 | ;; |
8210 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
8211 | 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' |
8212 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8213 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
8214 | tmp_addflag=' -i_dynamic' ;; |
8215 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
8216 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
8217 | ifc* | ifort*) # Intel Fortran compiler |
8218 | tmp_addflag=' -nofor_main' ;; |
8219 | esac |
8220 | case `$CC -V 2>&1 | sed 5q` in |
8221 | *Sun\ C*) # Sun C 5.9 |
8222 | whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
8223 | tmp_sharedflag='-G' ;; |
8224 | *Sun\ F*) # Sun Fortran 8.3 |
8225 | tmp_sharedflag='-G' ;; |
8226 | *) |
8227 | tmp_sharedflag='-shared' ;; |
8228 | esac |
8229 | archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8230 | |
8231 | if test $supports_anon_versioning = yes; then |
8232 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
8233 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
8234 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
8235 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
8236 | fi |
8237 | else |
8238 | ld_shlibs=no |
8239 | fi |
8240 | ;; |
8241 | |
8242 | netbsd*) |
8243 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8244 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
8245 | wlarc= |
8246 | else |
8247 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8248 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
8249 | fi |
8250 | ;; |
8251 | |
8252 | solaris*) |
8253 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
8254 | ld_shlibs=no |
8255 | cat <<EOF 1>&2 |
8256 | |
8257 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8258 | *** create shared libraries on Solaris systems. Therefore, libtool |
8259 | *** is disabling shared libraries support. We urge you to upgrade GNU |
8260 | *** binutils to release 2.9.1 or newer. Another option is to modify |
8261 | *** your PATH or compiler configuration so that the native linker is |
8262 | *** used, and then restart. |
8263 | |
8264 | EOF |
8265 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8266 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8267 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
8268 | else |
8269 | ld_shlibs=no |
8270 | fi |
8271 | ;; |
8272 | |
8273 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
8274 | case `$LD -v 2>&1` in |
8275 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
8276 | ld_shlibs=no |
8277 | cat <<_LT_EOF 1>&2 |
8278 | |
8279 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
8280 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
8281 | *** is disabling shared libraries support. We urge you to upgrade GNU |
8282 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
8283 | *** your PATH or compiler configuration so that the native linker is |
8284 | *** used, and then restart. |
8285 | |
8286 | _LT_EOF |
8287 | ;; |
8288 | *) |
8289 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8290 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
8291 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
8292 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
8293 | else |
8294 | ld_shlibs=no |
8295 | fi |
8296 | ;; |
8297 | esac |
8298 | ;; |
8299 | |
8300 | sunos4*) |
8301 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8302 | wlarc= |
8303 | hardcode_direct=yes |
8304 | hardcode_shlibpath_var=no |
8305 | ;; |
8306 | |
8307 | *) |
8308 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8309 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8310 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
8311 | else |
8312 | ld_shlibs=no |
8313 | fi |
8314 | ;; |
8315 | esac |
8316 | |
8317 | if test "$ld_shlibs" = no; then |
8318 | runpath_var= |
8319 | hardcode_libdir_flag_spec= |
8320 | export_dynamic_flag_spec= |
8321 | whole_archive_flag_spec= |
8322 | fi |
8323 | else |
8324 | # PORTME fill in a description of your system's linker (not GNU ld) |
8325 | case $host_os in |
8326 | aix3*) |
8327 | allow_undefined_flag=unsupported |
8328 | always_export_symbols=yes |
8329 | 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' |
8330 | # Note: this linker hardcodes the directories in LIBPATH if there |
8331 | # are no directories specified by -L. |
8332 | hardcode_minus_L=yes |
8333 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
8334 | # Neither direct hardcoding nor static linking is supported with a |
8335 | # broken collect2. |
8336 | hardcode_direct=unsupported |
8337 | fi |
8338 | ;; |
8339 | |
8340 | aix[4-9]*) |
8341 | if test "$host_cpu" = ia64; then |
8342 | # On IA64, the linker does run time linking by default, so we don't |
8343 | # have to do anything special. |
8344 | aix_use_runtimelinking=no |
8345 | exp_sym_flag='-Bexport' |
8346 | no_entry_flag="" |
8347 | else |
8348 | # If we're using GNU nm, then we don't want the "-C" option. |
8349 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
8350 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
8351 | 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' |
8352 | else |
8353 | 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' |
8354 | fi |
8355 | aix_use_runtimelinking=no |
8356 | |
8357 | # Test if we are trying to use run time linking or normal |
8358 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
8359 | # need to do runtime linking. |
8360 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
8361 | for ld_flag in $LDFLAGS; do |
8362 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
8363 | aix_use_runtimelinking=yes |
8364 | break |
8365 | fi |
8366 | done |
8367 | ;; |
8368 | esac |
8369 | |
8370 | exp_sym_flag='-bexport' |
8371 | no_entry_flag='-bnoentry' |
8372 | fi |
8373 | |
8374 | # When large executables or shared objects are built, AIX ld can |
8375 | # have problems creating the table of contents. If linking a library |
8376 | # or program results in "error TOC overflow" add -mminimal-toc to |
8377 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
8378 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
8379 | |
8380 | archive_cmds='' |
8381 | hardcode_direct=yes |
8382 | hardcode_libdir_separator=':' |
8383 | link_all_deplibs=yes |
8384 | |
8385 | if test "$GCC" = yes; then |
8386 | case $host_os in aix4.[012]|aix4.[012].*) |
8387 | # We only want to do this on AIX 4.2 and lower, the check |
8388 | # below for broken collect2 doesn't work under 4.3+ |
8389 | collect2name=`${CC} -print-prog-name=collect2` |
8390 | if test -f "$collect2name" && \ |
8391 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
8392 | then |
8393 | # We have reworked collect2 |
8394 | : |
8395 | else |
8396 | # We have old collect2 |
8397 | hardcode_direct=unsupported |
8398 | # It fails to find uninstalled libraries when the uninstalled |
8399 | # path is not listed in the libpath. Setting hardcode_minus_L |
8400 | # to unsupported forces relinking |
8401 | hardcode_minus_L=yes |
8402 | hardcode_libdir_flag_spec='-L$libdir' |
8403 | hardcode_libdir_separator= |
8404 | fi |
8405 | ;; |
8406 | esac |
8407 | shared_flag='-shared' |
8408 | if test "$aix_use_runtimelinking" = yes; then |
8409 | shared_flag="$shared_flag "'${wl}-G' |
8410 | fi |
8411 | else |
8412 | # not using gcc |
8413 | if test "$host_cpu" = ia64; then |
8414 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
8415 | # chokes on -Wl,-G. The following line is correct: |
8416 | shared_flag='-G' |
8417 | else |
8418 | if test "$aix_use_runtimelinking" = yes; then |
8419 | shared_flag='${wl}-G' |
8420 | else |
8421 | shared_flag='${wl}-bM:SRE' |
8422 | fi |
8423 | fi |
8424 | fi |
8425 | |
8426 | # It seems that -bexpall does not export symbols beginning with |
8427 | # underscore (_), so it is better to generate a list of symbols to export. |
8428 | always_export_symbols=yes |
8429 | if test "$aix_use_runtimelinking" = yes; then |
8430 | # Warning - without using the other runtime loading flags (-brtl), |
8431 | # -berok will link without error, but may produce a broken library. |
8432 | allow_undefined_flag='-berok' |
8433 | # Determine the default libpath from the value encoded in an empty executable. |
8434 | cat >conftest.$ac_ext <<_ACEOF |
8435 | /* confdefs.h. */ |
8436 | _ACEOF |
8437 | cat confdefs.h >>conftest.$ac_ext |
8438 | cat >>conftest.$ac_ext <<_ACEOF |
8439 | /* end confdefs.h. */ |
8440 | |
8441 | int |
8442 | main () |
8443 | { |
8444 | |
8445 | ; |
8446 | return 0; |
8447 | } |
8448 | _ACEOF |
8449 | rm -f conftest.$ac_objext conftest$ac_exeext |
8450 | if { (ac_try="$ac_link" |
8451 | case "(($ac_try" in |
8452 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8453 | *) ac_try_echo=$ac_try;; |
8454 | esac |
8455 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8456 | (eval "$ac_link") 2>conftest.er1 |
8457 | ac_status=$? |
8458 | grep -v '^ *+' conftest.er1 >conftest.err |
8459 | rm -f conftest.er1 |
8460 | cat conftest.err >&5 |
8461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8462 | (exit $ac_status); } && { |
8463 | test -z "$ac_c_werror_flag" || |
8464 | test ! -s conftest.err |
8465 | } && test -s conftest$ac_exeext && |
8466 | $as_test_x conftest$ac_exeext; then |
8467 | |
8468 | lt_aix_libpath_sed=' |
8469 | /Import File Strings/,/^$/ { |
8470 | /^0/ { |
8471 | s/^0 *\(.*\)$/\1/ |
8472 | p |
8473 | } |
8474 | }' |
8475 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
8476 | # Check for a 64-bit object if we didn't find anything. |
8477 | if test -z "$aix_libpath"; then |
8478 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
8479 | fi |
8480 | else |
8481 | echo "$as_me: failed program was:" >&5 |
8482 | sed 's/^/| /' conftest.$ac_ext >&5 |
8483 | |
8484 | |
8485 | fi |
8486 | |
8487 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8488 | conftest$ac_exeext conftest.$ac_ext |
8489 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8490 | |
8491 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8492 | 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" |
8493 | else |
8494 | if test "$host_cpu" = ia64; then |
8495 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8496 | allow_undefined_flag="-z nodefs" |
8497 | 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" |
8498 | else |
8499 | # Determine the default libpath from the value encoded in an empty executable. |
8500 | cat >conftest.$ac_ext <<_ACEOF |
8501 | /* confdefs.h. */ |
8502 | _ACEOF |
8503 | cat confdefs.h >>conftest.$ac_ext |
8504 | cat >>conftest.$ac_ext <<_ACEOF |
8505 | /* end confdefs.h. */ |
8506 | |
8507 | int |
8508 | main () |
8509 | { |
8510 | |
8511 | ; |
8512 | return 0; |
8513 | } |
8514 | _ACEOF |
8515 | rm -f conftest.$ac_objext conftest$ac_exeext |
8516 | if { (ac_try="$ac_link" |
8517 | case "(($ac_try" in |
8518 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8519 | *) ac_try_echo=$ac_try;; |
8520 | esac |
8521 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8522 | (eval "$ac_link") 2>conftest.er1 |
8523 | ac_status=$? |
8524 | grep -v '^ *+' conftest.er1 >conftest.err |
8525 | rm -f conftest.er1 |
8526 | cat conftest.err >&5 |
8527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8528 | (exit $ac_status); } && { |
8529 | test -z "$ac_c_werror_flag" || |
8530 | test ! -s conftest.err |
8531 | } && test -s conftest$ac_exeext && |
8532 | $as_test_x conftest$ac_exeext; then |
8533 | |
8534 | lt_aix_libpath_sed=' |
8535 | /Import File Strings/,/^$/ { |
8536 | /^0/ { |
8537 | s/^0 *\(.*\)$/\1/ |
8538 | p |
8539 | } |
8540 | }' |
8541 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
8542 | # Check for a 64-bit object if we didn't find anything. |
8543 | if test -z "$aix_libpath"; then |
8544 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
8545 | fi |
8546 | else |
8547 | echo "$as_me: failed program was:" >&5 |
8548 | sed 's/^/| /' conftest.$ac_ext >&5 |
8549 | |
8550 | |
8551 | fi |
8552 | |
8553 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8554 | conftest$ac_exeext conftest.$ac_ext |
8555 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8556 | |
8557 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8558 | # Warning - without using the other run time loading flags, |
8559 | # -berok will link without error, but may produce a broken library. |
8560 | no_undefined_flag=' ${wl}-bernotok' |
8561 | allow_undefined_flag=' ${wl}-berok' |
8562 | # Exported symbols can be pulled into shared objects from archives |
8563 | whole_archive_flag_spec='$convenience' |
8564 | archive_cmds_need_lc=yes |
8565 | # This is similar to how AIX traditionally builds its shared libraries. |
8566 | 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' |
8567 | fi |
8568 | fi |
8569 | ;; |
8570 | |
8571 | amigaos*) |
8572 | 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)' |
8573 | hardcode_libdir_flag_spec='-L$libdir' |
8574 | hardcode_minus_L=yes |
8575 | # see comment about different semantics on the GNU ld section |
8576 | ld_shlibs=no |
8577 | ;; |
8578 | |
8579 | bsdi[45]*) |
8580 | export_dynamic_flag_spec=-rdynamic |
8581 | ;; |
8582 | |
8583 | cygwin* | mingw* | pw32*) |
8584 | # When not using gcc, we currently assume that we are using |
8585 | # Microsoft Visual C++. |
8586 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
8587 | # no search path for DLLs. |
8588 | hardcode_libdir_flag_spec=' ' |
8589 | allow_undefined_flag=unsupported |
8590 | # Tell ltmain to make .lib files, not .a files. |
8591 | libext=lib |
8592 | # Tell ltmain to make .dll files, not .so files. |
8593 | shrext_cmds=".dll" |
8594 | # FIXME: Setting linknames here is a bad hack. |
8595 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
8596 | # The linker will automatically build a .lib file if we build a DLL. |
8597 | old_archive_From_new_cmds='true' |
8598 | # FIXME: Should let the user specify the lib program. |
8599 | old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' |
8600 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
8601 | enable_shared_with_static_runtimes=yes |
8602 | ;; |
8603 | |
8604 | darwin* | rhapsody*) |
8605 | case $host_os in |
8606 | rhapsody* | darwin1.[012]) |
8607 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
8608 | ;; |
8609 | *) # Darwin 1.3 on |
8610 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
8611 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8612 | else |
8613 | case ${MACOSX_DEPLOYMENT_TARGET} in |
8614 | 10.[012]) |
8615 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8616 | ;; |
8617 | 10.*) |
8618 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
8619 | ;; |
8620 | esac |
8621 | fi |
8622 | ;; |
8623 | esac |
8624 | archive_cmds_need_lc=no |
8625 | hardcode_direct=no |
8626 | hardcode_automatic=yes |
8627 | hardcode_shlibpath_var=unsupported |
8628 | whole_archive_flag_spec='' |
8629 | link_all_deplibs=yes |
8630 | if test "$GCC" = yes ; then |
8631 | output_verbose_link_cmd='echo' |
8632 | archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
8633 | module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
8634 | archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
8635 | module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
8636 | else |
8637 | case $cc_basename in |
8638 | xlc*) |
8639 | output_verbose_link_cmd='echo' |
8640 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
8641 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8642 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8643 | 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
8644 | 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}' |
8645 | ;; |
8646 | *) |
8647 | ld_shlibs=no |
8648 | ;; |
8649 | esac |
8650 | fi |
8651 | ;; |
8652 | |
8653 | dgux*) |
8654 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8655 | hardcode_libdir_flag_spec='-L$libdir' |
8656 | hardcode_shlibpath_var=no |
8657 | ;; |
8658 | |
8659 | freebsd1*) |
8660 | ld_shlibs=no |
8661 | ;; |
8662 | |
8663 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8664 | # support. Future versions do this automatically, but an explicit c++rt0.o |
8665 | # does not break anything, and helps significantly (at the cost of a little |
8666 | # extra space). |
8667 | freebsd2.2*) |
8668 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
8669 | hardcode_libdir_flag_spec='-R$libdir' |
8670 | hardcode_direct=yes |
8671 | hardcode_shlibpath_var=no |
8672 | ;; |
8673 | |
8674 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8675 | freebsd2*) |
8676 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8677 | hardcode_direct=yes |
8678 | hardcode_minus_L=yes |
8679 | hardcode_shlibpath_var=no |
8680 | ;; |
8681 | |
8682 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8683 | freebsd* | dragonfly*) |
8684 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
8685 | hardcode_libdir_flag_spec='-R$libdir' |
8686 | hardcode_direct=yes |
8687 | hardcode_shlibpath_var=no |
8688 | ;; |
8689 | |
8690 | hpux9*) |
8691 | if test "$GCC" = yes; then |
8692 | 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' |
8693 | else |
8694 | 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' |
8695 | fi |
8696 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8697 | hardcode_libdir_separator=: |
8698 | hardcode_direct=yes |
8699 | |
8700 | # hardcode_minus_L: Not really in the search PATH, |
8701 | # but as the default location of the library. |
8702 | hardcode_minus_L=yes |
8703 | export_dynamic_flag_spec='${wl}-E' |
8704 | ;; |
8705 | |
8706 | hpux10*) |
8707 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8708 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8709 | else |
8710 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
8711 | fi |
8712 | if test "$with_gnu_ld" = no; then |
8713 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8714 | hardcode_libdir_separator=: |
8715 | |
8716 | hardcode_direct=yes |
8717 | export_dynamic_flag_spec='${wl}-E' |
8718 | |
8719 | # hardcode_minus_L: Not really in the search PATH, |
8720 | # but as the default location of the library. |
8721 | hardcode_minus_L=yes |
8722 | fi |
8723 | ;; |
8724 | |
8725 | hpux11*) |
8726 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8727 | case $host_cpu in |
8728 | hppa*64*) |
8729 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8730 | ;; |
8731 | ia64*) |
8732 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8733 | ;; |
8734 | *) |
8735 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8736 | ;; |
8737 | esac |
8738 | else |
8739 | case $host_cpu in |
8740 | hppa*64*) |
8741 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8742 | ;; |
8743 | ia64*) |
8744 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8745 | ;; |
8746 | *) |
8747 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8748 | ;; |
8749 | esac |
8750 | fi |
8751 | if test "$with_gnu_ld" = no; then |
8752 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8753 | hardcode_libdir_separator=: |
8754 | |
8755 | case $host_cpu in |
8756 | hppa*64*|ia64*) |
8757 | hardcode_libdir_flag_spec_ld='+b $libdir' |
8758 | hardcode_direct=no |
8759 | hardcode_shlibpath_var=no |
8760 | ;; |
8761 | *) |
8762 | hardcode_direct=yes |
8763 | export_dynamic_flag_spec='${wl}-E' |
8764 | |
8765 | # hardcode_minus_L: Not really in the search PATH, |
8766 | # but as the default location of the library. |
8767 | hardcode_minus_L=yes |
8768 | ;; |
8769 | esac |
8770 | fi |
8771 | ;; |
8772 | |
8773 | irix5* | irix6* | nonstopux*) |
8774 | if test "$GCC" = yes; then |
8775 | 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' |
8776 | else |
8777 | 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' |
8778 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
8779 | fi |
8780 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8781 | hardcode_libdir_separator=: |
8782 | link_all_deplibs=yes |
8783 | ;; |
8784 | |
8785 | netbsd*) |
8786 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8787 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
8788 | else |
8789 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
8790 | fi |
8791 | hardcode_libdir_flag_spec='-R$libdir' |
8792 | hardcode_direct=yes |
8793 | hardcode_shlibpath_var=no |
8794 | ;; |
8795 | |
8796 | newsos6) |
8797 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8798 | hardcode_direct=yes |
8799 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8800 | hardcode_libdir_separator=: |
8801 | hardcode_shlibpath_var=no |
8802 | ;; |
8803 | |
8804 | openbsd*) |
8805 | if test -f /usr/libexec/ld.so; then |
8806 | hardcode_direct=yes |
8807 | hardcode_shlibpath_var=no |
8808 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8809 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8810 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
8811 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8812 | export_dynamic_flag_spec='${wl}-E' |
8813 | else |
8814 | case $host_os in |
8815 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
8816 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8817 | hardcode_libdir_flag_spec='-R$libdir' |
8818 | ;; |
8819 | *) |
8820 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8821 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8822 | ;; |
8823 | esac |
8824 | fi |
8825 | else |
8826 | ld_shlibs=no |
8827 | fi |
8828 | ;; |
8829 | |
8830 | os2*) |
8831 | hardcode_libdir_flag_spec='-L$libdir' |
8832 | hardcode_minus_L=yes |
8833 | allow_undefined_flag=unsupported |
8834 | 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' |
8835 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
8836 | ;; |
8837 | |
8838 | osf3*) |
8839 | if test "$GCC" = yes; then |
8840 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8841 | 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' |
8842 | else |
8843 | allow_undefined_flag=' -expect_unresolved \*' |
8844 | 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' |
8845 | fi |
8846 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8847 | hardcode_libdir_separator=: |
8848 | ;; |
8849 | |
8850 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8851 | if test "$GCC" = yes; then |
8852 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8853 | 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' |
8854 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8855 | else |
8856 | allow_undefined_flag=' -expect_unresolved \*' |
8857 | 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' |
8858 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
8859 | $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' |
8860 | |
8861 | # Both c and cxx compiler support -rpath directly |
8862 | hardcode_libdir_flag_spec='-rpath $libdir' |
8863 | fi |
8864 | hardcode_libdir_separator=: |
8865 | ;; |
8866 | |
8867 | solaris*) |
8868 | no_undefined_flag=' -z text' |
8869 | if test "$GCC" = yes; then |
8870 | wlarc='${wl}' |
8871 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8872 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8873 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
8874 | else |
8875 | wlarc='' |
8876 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8877 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8878 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
8879 | fi |
8880 | hardcode_libdir_flag_spec='-R$libdir' |
8881 | hardcode_shlibpath_var=no |
8882 | case $host_os in |
8883 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
8884 | *) |
8885 | # The compiler driver will combine and reorder linker options, |
8886 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
8887 | # but is careful enough not to reorder. |
8888 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
8889 | if test "$GCC" = yes; then |
8890 | whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
8891 | else |
8892 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' |
8893 | fi |
8894 | ;; |
8895 | esac |
8896 | link_all_deplibs=yes |
8897 | ;; |
8898 | |
8899 | sunos4*) |
8900 | if test "x$host_vendor" = xsequent; then |
8901 | # Use $CC to link under sequent, because it throws in some extra .o |
8902 | # files that make .init and .fini sections work. |
8903 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8904 | else |
8905 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
8906 | fi |
8907 | hardcode_libdir_flag_spec='-L$libdir' |
8908 | hardcode_direct=yes |
8909 | hardcode_minus_L=yes |
8910 | hardcode_shlibpath_var=no |
8911 | ;; |
8912 | |
8913 | sysv4) |
8914 | case $host_vendor in |
8915 | sni) |
8916 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8917 | hardcode_direct=yes # is this really true??? |
8918 | ;; |
8919 | siemens) |
8920 | ## LD is ld it makes a PLAMLIB |
8921 | ## CC just makes a GrossModule. |
8922 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
8923 | reload_cmds='$CC -r -o $output$reload_objs' |
8924 | hardcode_direct=no |
8925 | ;; |
8926 | motorola) |
8927 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8928 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
8929 | ;; |
8930 | esac |
8931 | runpath_var='LD_RUN_PATH' |
8932 | hardcode_shlibpath_var=no |
8933 | ;; |
8934 | |
8935 | sysv4.3*) |
8936 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8937 | hardcode_shlibpath_var=no |
8938 | export_dynamic_flag_spec='-Bexport' |
8939 | ;; |
8940 | |
8941 | sysv4*MP*) |
8942 | if test -d /usr/nec; then |
8943 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8944 | hardcode_shlibpath_var=no |
8945 | runpath_var=LD_RUN_PATH |
8946 | hardcode_runpath_var=yes |
8947 | ld_shlibs=yes |
8948 | fi |
8949 | ;; |
8950 | |
8951 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
8952 | no_undefined_flag='${wl}-z,text' |
8953 | archive_cmds_need_lc=no |
8954 | hardcode_shlibpath_var=no |
8955 | runpath_var='LD_RUN_PATH' |
8956 | |
8957 | if test "$GCC" = yes; then |
8958 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8959 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8960 | else |
8961 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8962 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8963 | fi |
8964 | ;; |
8965 | |
8966 | sysv5* | sco3.2v5* | sco5v6*) |
8967 | # Note: We can NOT use -z defs as we might desire, because we do not |
8968 | # link with -lc, and that would cause any symbols used from libc to |
8969 | # always be unresolved, which means just about no library would |
8970 | # ever link correctly. If we're not using GNU ld we use -z text |
8971 | # though, which does catch some bad symbols but isn't as heavy-handed |
8972 | # as -z defs. |
8973 | no_undefined_flag='${wl}-z,text' |
8974 | allow_undefined_flag='${wl}-z,nodefs' |
8975 | archive_cmds_need_lc=no |
8976 | hardcode_shlibpath_var=no |
8977 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
8978 | hardcode_libdir_separator=':' |
8979 | link_all_deplibs=yes |
8980 | export_dynamic_flag_spec='${wl}-Bexport' |
8981 | runpath_var='LD_RUN_PATH' |
8982 | |
8983 | if test "$GCC" = yes; then |
8984 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8985 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8986 | else |
8987 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8988 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8989 | fi |
8990 | ;; |
8991 | |
8992 | uts4*) |
8993 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8994 | hardcode_libdir_flag_spec='-L$libdir' |
8995 | hardcode_shlibpath_var=no |
8996 | ;; |
8997 | |
8998 | *) |
8999 | ld_shlibs=no |
9000 | ;; |
9001 | esac |
9002 | fi |
9003 | |
9004 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
9005 | echo "${ECHO_T}$ld_shlibs" >&6; } |
9006 | test "$ld_shlibs" = no && can_build_shared=no |
9007 | |
9008 | # |
9009 | # Do we need to explicitly link libc? |
9010 | # |
9011 | case "x$archive_cmds_need_lc" in |
9012 | x|xyes) |
9013 | # Assume -lc should be added |
9014 | archive_cmds_need_lc=yes |
9015 | |
9016 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
9017 | case $archive_cmds in |
9018 | *'~'*) |
9019 | # FIXME: we may have to deal with multi-command sequences. |
9020 | ;; |
9021 | '$CC '*) |
9022 | # Test whether the compiler implicitly links with -lc since on some |
9023 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
9024 | # to ld, don't add -lc before -lgcc. |
9025 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
9026 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
9027 | $rm conftest* |
9028 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
9029 | |
9030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
9031 | (eval $ac_compile) 2>&5 |
9032 | ac_status=$? |
9033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9034 | (exit $ac_status); } 2>conftest.err; then |
9035 | soname=conftest |
9036 | lib=conftest |
9037 | libobjs=conftest.$ac_objext |
9038 | deplibs= |
9039 | wl=$lt_prog_compiler_wl |
9040 | pic_flag=$lt_prog_compiler_pic |
9041 | compiler_flags=-v |
9042 | linker_flags=-v |
9043 | verstring= |
9044 | output_objdir=. |
9045 | libname=conftest |
9046 | lt_save_allow_undefined_flag=$allow_undefined_flag |
9047 | allow_undefined_flag= |
9048 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
9049 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9050 | ac_status=$? |
9051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9052 | (exit $ac_status); } |
9053 | then |
9054 | archive_cmds_need_lc=no |
9055 | else |
9056 | archive_cmds_need_lc=yes |
9057 | fi |
9058 | allow_undefined_flag=$lt_save_allow_undefined_flag |
9059 | else |
9060 | cat conftest.err 1>&5 |
9061 | fi |
9062 | $rm conftest* |
9063 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
9064 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
9065 | ;; |
9066 | esac |
9067 | fi |
9068 | ;; |
9069 | esac |
9070 | |
9071 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
9072 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
9073 | library_names_spec= |
9074 | libname_spec='lib$name' |
9075 | soname_spec= |
9076 | shrext_cmds=".so" |
9077 | postinstall_cmds= |
9078 | postuninstall_cmds= |
9079 | finish_cmds= |
9080 | finish_eval= |
9081 | shlibpath_var= |
9082 | shlibpath_overrides_runpath=unknown |
9083 | version_type=none |
9084 | dynamic_linker="$host_os ld.so" |
9085 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
9086 | |
9087 | if test "$GCC" = yes; then |
9088 | case $host_os in |
9089 | darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; |
9090 | *) lt_awk_arg="/^libraries:/" ;; |
9091 | esac |
9092 | lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
9093 | if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then |
9094 | # if the path contains ";" then we assume it to be the separator |
9095 | # otherwise default to the standard path separator (i.e. ":") - it is |
9096 | # assumed that no part of a normal pathname contains ";" but that should |
9097 | # okay in the real world where ";" in dirpaths is itself problematic. |
9098 | lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'` |
9099 | else |
9100 | lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
9101 | fi |
9102 | # Ok, now we have the path, separated by spaces, we can step through it |
9103 | # and add multilib dir if necessary. |
9104 | lt_tmp_lt_search_path_spec= |
9105 | lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` |
9106 | for lt_sys_path in $lt_search_path_spec; do |
9107 | if test -d "$lt_sys_path/$lt_multi_os_dir"; then |
9108 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" |
9109 | else |
9110 | test -d "$lt_sys_path" && \ |
9111 | lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" |
9112 | fi |
9113 | done |
9114 | lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk ' |
9115 | BEGIN {RS=" "; FS="/|\n";} { |
9116 | lt_foo=""; |
9117 | lt_count=0; |
9118 | for (lt_i = NF; lt_i > 0; lt_i--) { |
9119 | if ($lt_i != "" && $lt_i != ".") { |
9120 | if ($lt_i == "..") { |
9121 | lt_count++; |
9122 | } else { |
9123 | if (lt_count == 0) { |
9124 | lt_foo="/" $lt_i lt_foo; |
9125 | } else { |
9126 | lt_count--; |
9127 | } |
9128 | } |
9129 | } |
9130 | } |
9131 | if (lt_foo != "") { lt_freq[lt_foo]++; } |
9132 | if (lt_freq[lt_foo] == 1) { print lt_foo; } |
9133 | }'` |
9134 | sys_lib_search_path_spec=`echo $lt_search_path_spec` |
9135 | else |
9136 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
9137 | fi |
9138 | need_lib_prefix=unknown |
9139 | hardcode_into_libs=no |
9140 | |
9141 | # when you set need_version to no, make sure it does not cause -set_version |
9142 | # flags to be left without arguments |
9143 | need_version=unknown |
9144 | |
9145 | case $host_os in |
9146 | aix3*) |
9147 | version_type=linux |
9148 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
9149 | shlibpath_var=LIBPATH |
9150 | |
9151 | # AIX 3 has no versioning support, so we append a major version to the name. |
9152 | soname_spec='${libname}${release}${shared_ext}$major' |
9153 | ;; |
9154 | |
9155 | aix[4-9]*) |
9156 | version_type=linux |
9157 | need_lib_prefix=no |
9158 | need_version=no |
9159 | hardcode_into_libs=yes |
9160 | if test "$host_cpu" = ia64; then |
9161 | # AIX 5 supports IA64 |
9162 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
9163 | shlibpath_var=LD_LIBRARY_PATH |
9164 | else |
9165 | # With GCC up to 2.95.x, collect2 would create an import file |
9166 | # for dependence libraries. The import file would start with |
9167 | # the line `#! .'. This would cause the generated library to |
9168 | # depend on `.', always an invalid library. This was fixed in |
9169 | # development snapshots of GCC prior to 3.0. |
9170 | case $host_os in |
9171 | aix4 | aix4.[01] | aix4.[01].*) |
9172 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
9173 | echo ' yes ' |
9174 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
9175 | : |
9176 | else |
9177 | can_build_shared=no |
9178 | fi |
9179 | ;; |
9180 | esac |
9181 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
9182 | # soname into executable. Probably we can add versioning support to |
9183 | # collect2, so additional links can be useful in future. |
9184 | if test "$aix_use_runtimelinking" = yes; then |
9185 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
9186 | # instead of lib<name>.a to let people know that these are not |
9187 | # typical AIX shared libraries. |
9188 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9189 | else |
9190 | # We preserve .a as extension for shared libraries through AIX4.2 |
9191 | # and later when we are not doing run time linking. |
9192 | library_names_spec='${libname}${release}.a $libname.a' |
9193 | soname_spec='${libname}${release}${shared_ext}$major' |
9194 | fi |
9195 | shlibpath_var=LIBPATH |
9196 | fi |
9197 | ;; |
9198 | |
9199 | amigaos*) |
9200 | library_names_spec='$libname.ixlibrary $libname.a' |
9201 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
9202 | 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' |
9203 | ;; |
9204 | |
9205 | beos*) |
9206 | library_names_spec='${libname}${shared_ext}' |
9207 | dynamic_linker="$host_os ld.so" |
9208 | shlibpath_var=LIBRARY_PATH |
9209 | ;; |
9210 | |
9211 | bsdi[45]*) |
9212 | version_type=linux |
9213 | need_version=no |
9214 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9215 | soname_spec='${libname}${release}${shared_ext}$major' |
9216 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
9217 | shlibpath_var=LD_LIBRARY_PATH |
9218 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
9219 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
9220 | # the default ld.so.conf also contains /usr/contrib/lib and |
9221 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
9222 | # libtool to hard-code these into programs |
9223 | ;; |
9224 | |
9225 | cygwin* | mingw* | pw32*) |
9226 | version_type=windows |
9227 | shrext_cmds=".dll" |
9228 | need_version=no |
9229 | need_lib_prefix=no |
9230 | |
9231 | case $GCC,$host_os in |
9232 | yes,cygwin* | yes,mingw* | yes,pw32*) |
9233 | library_names_spec='$libname.dll.a' |
9234 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
9235 | postinstall_cmds='base_file=`basename \${file}`~ |
9236 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
9237 | dldir=$destdir/`dirname \$dlpath`~ |
9238 | test -d \$dldir || mkdir -p \$dldir~ |
9239 | $install_prog $dir/$dlname \$dldir/$dlname~ |
9240 | chmod a+x \$dldir/$dlname' |
9241 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
9242 | dlpath=$dir/\$dldll~ |
9243 | $rm \$dlpath' |
9244 | shlibpath_overrides_runpath=yes |
9245 | |
9246 | case $host_os in |
9247 | cygwin*) |
9248 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
9249 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
9250 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
9251 | ;; |
9252 | mingw*) |
9253 | # MinGW DLLs use traditional 'lib' prefix |
9254 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
9255 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
9256 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
9257 | # It is most probably a Windows format PATH printed by |
9258 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
9259 | # path with ; separators, and with drive letters. We can handle the |
9260 | # drive letters (cygwin fileutils understands them), so leave them, |
9261 | # especially as we might pass files found there to a mingw objdump, |
9262 | # which wouldn't understand a cygwinified path. Ahh. |
9263 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
9264 | else |
9265 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
9266 | fi |
9267 | ;; |
9268 | pw32*) |
9269 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
9270 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
9271 | ;; |
9272 | esac |
9273 | ;; |
9274 | |
9275 | *) |
9276 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
9277 | ;; |
9278 | esac |
9279 | dynamic_linker='Win32 ld.exe' |
9280 | # FIXME: first we should search . and the directory the executable is in |
9281 | shlibpath_var=PATH |
9282 | ;; |
9283 | |
9284 | darwin* | rhapsody*) |
9285 | dynamic_linker="$host_os dyld" |
9286 | version_type=darwin |
9287 | need_lib_prefix=no |
9288 | need_version=no |
9289 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
9290 | soname_spec='${libname}${release}${major}$shared_ext' |
9291 | shlibpath_overrides_runpath=yes |
9292 | shlibpath_var=DYLD_LIBRARY_PATH |
9293 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
9294 | |
9295 | sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" |
9296 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
9297 | ;; |
9298 | |
9299 | dgux*) |
9300 | version_type=linux |
9301 | need_lib_prefix=no |
9302 | need_version=no |
9303 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
9304 | soname_spec='${libname}${release}${shared_ext}$major' |
9305 | shlibpath_var=LD_LIBRARY_PATH |
9306 | ;; |
9307 | |
9308 | freebsd1*) |
9309 | dynamic_linker=no |
9310 | ;; |
9311 | |
9312 | freebsd* | dragonfly*) |
9313 | # DragonFly does not have aout. When/if they implement a new |
9314 | # versioning mechanism, adjust this. |
9315 | if test -x /usr/bin/objformat; then |
9316 | objformat=`/usr/bin/objformat` |
9317 | else |
9318 | case $host_os in |
9319 | freebsd[123]*) objformat=aout ;; |
9320 | *) objformat=elf ;; |
9321 | esac |
9322 | fi |
9323 | version_type=freebsd-$objformat |
9324 | case $version_type in |
9325 | freebsd-elf*) |
9326 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9327 | need_version=no |
9328 | need_lib_prefix=no |
9329 | ;; |
9330 | freebsd-*) |
9331 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
9332 | need_version=yes |
9333 | ;; |
9334 | esac |
9335 | shlibpath_var=LD_LIBRARY_PATH |
9336 | case $host_os in |
9337 | freebsd2*) |
9338 | shlibpath_overrides_runpath=yes |
9339 | ;; |
9340 | freebsd3.[01]* | freebsdelf3.[01]*) |
9341 | shlibpath_overrides_runpath=yes |
9342 | hardcode_into_libs=yes |
9343 | ;; |
9344 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
9345 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
9346 | shlibpath_overrides_runpath=no |
9347 | hardcode_into_libs=yes |
9348 | ;; |
9349 | *) # from 4.6 on, and DragonFly |
9350 | shlibpath_overrides_runpath=yes |
9351 | hardcode_into_libs=yes |
9352 | ;; |
9353 | esac |
9354 | ;; |
9355 | |
9356 | gnu*) |
9357 | version_type=linux |
9358 | need_lib_prefix=no |
9359 | need_version=no |
9360 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
9361 | soname_spec='${libname}${release}${shared_ext}$major' |
9362 | shlibpath_var=LD_LIBRARY_PATH |
9363 | hardcode_into_libs=yes |
9364 | ;; |
9365 | |
9366 | hpux9* | hpux10* | hpux11*) |
9367 | # Give a soname corresponding to the major version so that dld.sl refuses to |
9368 | # link against other versions. |
9369 | version_type=sunos |
9370 | need_lib_prefix=no |
9371 | need_version=no |
9372 | case $host_cpu in |
9373 | ia64*) |
9374 | shrext_cmds='.so' |
9375 | hardcode_into_libs=yes |
9376 | dynamic_linker="$host_os dld.so" |
9377 | shlibpath_var=LD_LIBRARY_PATH |
9378 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
9379 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9380 | soname_spec='${libname}${release}${shared_ext}$major' |
9381 | if test "X$HPUX_IA64_MODE" = X32; then |
9382 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
9383 | else |
9384 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
9385 | fi |
9386 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
9387 | ;; |
9388 | hppa*64*) |
9389 | shrext_cmds='.sl' |
9390 | hardcode_into_libs=yes |
9391 | dynamic_linker="$host_os dld.sl" |
9392 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
9393 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
9394 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9395 | soname_spec='${libname}${release}${shared_ext}$major' |
9396 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
9397 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
9398 | ;; |
9399 | *) |
9400 | shrext_cmds='.sl' |
9401 | dynamic_linker="$host_os dld.sl" |
9402 | shlibpath_var=SHLIB_PATH |
9403 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
9404 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9405 | soname_spec='${libname}${release}${shared_ext}$major' |
9406 | ;; |
9407 | esac |
9408 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
9409 | postinstall_cmds='chmod 555 $lib' |
9410 | ;; |
9411 | |
9412 | interix[3-9]*) |
9413 | version_type=linux |
9414 | need_lib_prefix=no |
9415 | need_version=no |
9416 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9417 | soname_spec='${libname}${release}${shared_ext}$major' |
9418 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
9419 | shlibpath_var=LD_LIBRARY_PATH |
9420 | shlibpath_overrides_runpath=no |
9421 | hardcode_into_libs=yes |
9422 | ;; |
9423 | |
9424 | irix5* | irix6* | nonstopux*) |
9425 | case $host_os in |
9426 | nonstopux*) version_type=nonstopux ;; |
9427 | *) |
9428 | if test "$lt_cv_prog_gnu_ld" = yes; then |
9429 | version_type=linux |
9430 | else |
9431 | version_type=irix |
9432 | fi ;; |
9433 | esac |
9434 | need_lib_prefix=no |
9435 | need_version=no |
9436 | soname_spec='${libname}${release}${shared_ext}$major' |
9437 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
9438 | case $host_os in |
9439 | irix5* | nonstopux*) |
9440 | libsuff= shlibsuff= |
9441 | ;; |
9442 | *) |
9443 | case $LD in # libtool.m4 will add one of these switches to LD |
9444 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
9445 | libsuff= shlibsuff= libmagic=32-bit;; |
9446 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
9447 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
9448 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
9449 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
9450 | *) libsuff= shlibsuff= libmagic=never-match;; |
9451 | esac |
9452 | ;; |
9453 | esac |
9454 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
9455 | shlibpath_overrides_runpath=no |
9456 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
9457 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
9458 | hardcode_into_libs=yes |
9459 | ;; |
9460 | |
9461 | # No shared lib support for Linux oldld, aout, or coff. |
9462 | linux*oldld* | linux*aout* | linux*coff*) |
9463 | dynamic_linker=no |
9464 | ;; |
9465 | |
9466 | # This must be Linux ELF. |
9467 | linux* | k*bsd*-gnu) |
9468 | version_type=linux |
9469 | need_lib_prefix=no |
9470 | need_version=no |
9471 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9472 | soname_spec='${libname}${release}${shared_ext}$major' |
9473 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
9474 | shlibpath_var=LD_LIBRARY_PATH |
9475 | shlibpath_overrides_runpath=no |
9476 | # This implies no fast_install, which is unacceptable. |
9477 | # Some rework will be needed to allow for fast_install |
9478 | # before this can be enabled. |
9479 | hardcode_into_libs=yes |
9480 | |
9481 | # Append ld.so.conf contents to the search path |
9482 | if test -f /etc/ld.so.conf; then |
9483 | 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
9484 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
9485 | fi |
9486 | |
9487 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
9488 | # powerpc, because MkLinux only supported shared libraries with the |
9489 | # GNU dynamic linker. Since this was broken with cross compilers, |
9490 | # most powerpc-linux boxes support dynamic linking these days and |
9491 | # people can always --disable-shared, the test was removed, and we |
9492 | # assume the GNU/Linux dynamic linker is in use. |
9493 | dynamic_linker='GNU/Linux ld.so' |
9494 | ;; |
9495 | |
9496 | netbsd*) |
9497 | version_type=sunos |
9498 | need_lib_prefix=no |
9499 | need_version=no |
9500 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
9501 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9502 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9503 | dynamic_linker='NetBSD (a.out) ld.so' |
9504 | else |
9505 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9506 | soname_spec='${libname}${release}${shared_ext}$major' |
9507 | dynamic_linker='NetBSD ld.elf_so' |
9508 | fi |
9509 | shlibpath_var=LD_LIBRARY_PATH |
9510 | shlibpath_overrides_runpath=yes |
9511 | hardcode_into_libs=yes |
9512 | ;; |
9513 | |
9514 | newsos6) |
9515 | version_type=linux |
9516 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9517 | shlibpath_var=LD_LIBRARY_PATH |
9518 | shlibpath_overrides_runpath=yes |
9519 | ;; |
9520 | |
9521 | nto-qnx*) |
9522 | version_type=linux |
9523 | need_lib_prefix=no |
9524 | need_version=no |
9525 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9526 | soname_spec='${libname}${release}${shared_ext}$major' |
9527 | shlibpath_var=LD_LIBRARY_PATH |
9528 | shlibpath_overrides_runpath=yes |
9529 | ;; |
9530 | |
9531 | openbsd*) |
9532 | version_type=sunos |
9533 | sys_lib_dlsearch_path_spec="/usr/lib" |
9534 | need_lib_prefix=no |
9535 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
9536 | case $host_os in |
9537 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
9538 | *) need_version=no ;; |
9539 | esac |
9540 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9541 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9542 | shlibpath_var=LD_LIBRARY_PATH |
9543 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9544 | case $host_os in |
9545 | openbsd2.[89] | openbsd2.[89].*) |
9546 | shlibpath_overrides_runpath=no |
9547 | ;; |
9548 | *) |
9549 | shlibpath_overrides_runpath=yes |
9550 | ;; |
9551 | esac |
9552 | else |
9553 | shlibpath_overrides_runpath=yes |
9554 | fi |
9555 | ;; |
9556 | |
9557 | os2*) |
9558 | libname_spec='$name' |
9559 | shrext_cmds=".dll" |
9560 | need_lib_prefix=no |
9561 | library_names_spec='$libname${shared_ext} $libname.a' |
9562 | dynamic_linker='OS/2 ld.exe' |
9563 | shlibpath_var=LIBPATH |
9564 | ;; |
9565 | |
9566 | osf3* | osf4* | osf5*) |
9567 | version_type=osf |
9568 | need_lib_prefix=no |
9569 | need_version=no |
9570 | soname_spec='${libname}${release}${shared_ext}$major' |
9571 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9572 | shlibpath_var=LD_LIBRARY_PATH |
9573 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
9574 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
9575 | ;; |
9576 | |
9577 | rdos*) |
9578 | dynamic_linker=no |
9579 | ;; |
9580 | |
9581 | solaris*) |
9582 | version_type=linux |
9583 | need_lib_prefix=no |
9584 | need_version=no |
9585 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9586 | soname_spec='${libname}${release}${shared_ext}$major' |
9587 | shlibpath_var=LD_LIBRARY_PATH |
9588 | shlibpath_overrides_runpath=yes |
9589 | hardcode_into_libs=yes |
9590 | # ldd complains unless libraries are executable |
9591 | postinstall_cmds='chmod +x $lib' |
9592 | ;; |
9593 | |
9594 | sunos4*) |
9595 | version_type=sunos |
9596 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9597 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
9598 | shlibpath_var=LD_LIBRARY_PATH |
9599 | shlibpath_overrides_runpath=yes |
9600 | if test "$with_gnu_ld" = yes; then |
9601 | need_lib_prefix=no |
9602 | fi |
9603 | need_version=yes |
9604 | ;; |
9605 | |
9606 | sysv4 | sysv4.3*) |
9607 | version_type=linux |
9608 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9609 | soname_spec='${libname}${release}${shared_ext}$major' |
9610 | shlibpath_var=LD_LIBRARY_PATH |
9611 | case $host_vendor in |
9612 | sni) |
9613 | shlibpath_overrides_runpath=no |
9614 | need_lib_prefix=no |
9615 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
9616 | runpath_var=LD_RUN_PATH |
9617 | ;; |
9618 | siemens) |
9619 | need_lib_prefix=no |
9620 | ;; |
9621 | motorola) |
9622 | need_lib_prefix=no |
9623 | need_version=no |
9624 | shlibpath_overrides_runpath=no |
9625 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
9626 | ;; |
9627 | esac |
9628 | ;; |
9629 | |
9630 | sysv4*MP*) |
9631 | if test -d /usr/nec ;then |
9632 | version_type=linux |
9633 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
9634 | soname_spec='$libname${shared_ext}.$major' |
9635 | shlibpath_var=LD_LIBRARY_PATH |
9636 | fi |
9637 | ;; |
9638 | |
9639 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9640 | version_type=freebsd-elf |
9641 | need_lib_prefix=no |
9642 | need_version=no |
9643 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9644 | soname_spec='${libname}${release}${shared_ext}$major' |
9645 | shlibpath_var=LD_LIBRARY_PATH |
9646 | hardcode_into_libs=yes |
9647 | if test "$with_gnu_ld" = yes; then |
9648 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
9649 | shlibpath_overrides_runpath=no |
9650 | else |
9651 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
9652 | shlibpath_overrides_runpath=yes |
9653 | case $host_os in |
9654 | sco3.2v5*) |
9655 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
9656 | ;; |
9657 | esac |
9658 | fi |
9659 | sys_lib_dlsearch_path_spec='/usr/lib' |
9660 | ;; |
9661 | |
9662 | uts4*) |
9663 | version_type=linux |
9664 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9665 | soname_spec='${libname}${release}${shared_ext}$major' |
9666 | shlibpath_var=LD_LIBRARY_PATH |
9667 | ;; |
9668 | |
9669 | *) |
9670 | dynamic_linker=no |
9671 | ;; |
9672 | esac |
9673 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
9674 | echo "${ECHO_T}$dynamic_linker" >&6; } |
9675 | test "$dynamic_linker" = no && can_build_shared=no |
9676 | |
9677 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
9678 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9679 | else |
9680 | lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" |
9681 | fi |
9682 | |
9683 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
9684 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
9685 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9686 | else |
9687 | lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" |
9688 | fi |
9689 | |
9690 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
9691 | |
9692 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9693 | if test "$GCC" = yes; then |
9694 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
9695 | fi |
9696 | |
9697 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
9698 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
9699 | hardcode_action= |
9700 | if test -n "$hardcode_libdir_flag_spec" || \ |
9701 | test -n "$runpath_var" || \ |
9702 | test "X$hardcode_automatic" = "Xyes" ; then |
9703 | |
9704 | # We can hardcode non-existant directories. |
9705 | if test "$hardcode_direct" != no && |
9706 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
9707 | # have to relink, otherwise we might link with an installed library |
9708 | # when we should be linking with a yet-to-be-installed one |
9709 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
9710 | test "$hardcode_minus_L" != no; then |
9711 | # Linking always hardcodes the temporary library directory. |
9712 | hardcode_action=relink |
9713 | else |
9714 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
9715 | hardcode_action=immediate |
9716 | fi |
9717 | else |
9718 | # We cannot hardcode anything, or else we can only hardcode existing |
9719 | # directories. |
9720 | hardcode_action=unsupported |
9721 | fi |
9722 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9723 | echo "${ECHO_T}$hardcode_action" >&6; } |
9724 | |
9725 | if test "$hardcode_action" = relink; then |
9726 | # Fast installation is not supported |
9727 | enable_fast_install=no |
9728 | elif test "$shlibpath_overrides_runpath" = yes || |
9729 | test "$enable_shared" = no; then |
9730 | # Fast installation is not necessary |
9731 | enable_fast_install=needless |
9732 | fi |
9733 | |
9734 | striplib= |
9735 | old_striplib= |
9736 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
9737 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
9738 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
9739 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
9740 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
9741 | { echo "$as_me:$LINENO: result: yes" >&5 |
9742 | echo "${ECHO_T}yes" >&6; } |
9743 | else |
9744 | # FIXME - insert some real tests, host_os isn't really good enough |
9745 | case $host_os in |
9746 | darwin*) |
9747 | if test -n "$STRIP" ; then |
9748 | striplib="$STRIP -x" |
9749 | old_striplib="$STRIP -S" |
9750 | { echo "$as_me:$LINENO: result: yes" >&5 |
9751 | echo "${ECHO_T}yes" >&6; } |
9752 | else |
9753 | { echo "$as_me:$LINENO: result: no" >&5 |
9754 | echo "${ECHO_T}no" >&6; } |
9755 | fi |
9756 | ;; |
9757 | *) |
9758 | { echo "$as_me:$LINENO: result: no" >&5 |
9759 | echo "${ECHO_T}no" >&6; } |
9760 | ;; |
9761 | esac |
9762 | fi |
9763 | |
9764 | if test "x$enable_dlopen" != xyes; then |
9765 | enable_dlopen=unknown |
9766 | enable_dlopen_self=unknown |
9767 | enable_dlopen_self_static=unknown |
9768 | else |
9769 | lt_cv_dlopen=no |
9770 | lt_cv_dlopen_libs= |
9771 | |
9772 | case $host_os in |
9773 | beos*) |
9774 | lt_cv_dlopen="load_add_on" |
9775 | lt_cv_dlopen_libs= |
9776 | lt_cv_dlopen_self=yes |
9777 | ;; |
9778 | |
9779 | mingw* | pw32*) |
9780 | lt_cv_dlopen="LoadLibrary" |
9781 | lt_cv_dlopen_libs= |
9782 | ;; |
9783 | |
9784 | cygwin*) |
9785 | lt_cv_dlopen="dlopen" |
9786 | lt_cv_dlopen_libs= |
9787 | ;; |
9788 | |
9789 | darwin*) |
9790 | # if libdl is installed we need to link against it |
9791 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9792 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
9793 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9794 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9795 | else |
9796 | ac_check_lib_save_LIBS=$LIBS |
9797 | LIBS="-ldl $LIBS" |
9798 | cat >conftest.$ac_ext <<_ACEOF |
9799 | /* confdefs.h. */ |
9800 | _ACEOF |
9801 | cat confdefs.h >>conftest.$ac_ext |
9802 | cat >>conftest.$ac_ext <<_ACEOF |
9803 | /* end confdefs.h. */ |
9804 | |
9805 | /* Override any GCC internal prototype to avoid an error. |
9806 | Use char because int might match the return type of a GCC |
9807 | builtin and then its argument prototype would still apply. */ |
9808 | #ifdef __cplusplus |
9809 | extern "C" |
9810 | #endif |
9811 | char dlopen (); |
9812 | int |
9813 | main () |
9814 | { |
9815 | return dlopen (); |
9816 | ; |
9817 | return 0; |
9818 | } |
9819 | _ACEOF |
9820 | rm -f conftest.$ac_objext conftest$ac_exeext |
9821 | if { (ac_try="$ac_link" |
9822 | case "(($ac_try" in |
9823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9824 | *) ac_try_echo=$ac_try;; |
9825 | esac |
9826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9827 | (eval "$ac_link") 2>conftest.er1 |
9828 | ac_status=$? |
9829 | grep -v '^ *+' conftest.er1 >conftest.err |
9830 | rm -f conftest.er1 |
9831 | cat conftest.err >&5 |
9832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9833 | (exit $ac_status); } && { |
9834 | test -z "$ac_c_werror_flag" || |
9835 | test ! -s conftest.err |
9836 | } && test -s conftest$ac_exeext && |
9837 | $as_test_x conftest$ac_exeext; then |
9838 | ac_cv_lib_dl_dlopen=yes |
9839 | else |
9840 | echo "$as_me: failed program was:" >&5 |
9841 | sed 's/^/| /' conftest.$ac_ext >&5 |
9842 | |
9843 | ac_cv_lib_dl_dlopen=no |
9844 | fi |
9845 | |
9846 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9847 | conftest$ac_exeext conftest.$ac_ext |
9848 | LIBS=$ac_check_lib_save_LIBS |
9849 | fi |
9850 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9851 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
9852 | if test $ac_cv_lib_dl_dlopen = yes; then |
9853 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9854 | else |
9855 | |
9856 | lt_cv_dlopen="dyld" |
9857 | lt_cv_dlopen_libs= |
9858 | lt_cv_dlopen_self=yes |
9859 | |
9860 | fi |
9861 | |
9862 | ;; |
9863 | |
9864 | *) |
9865 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
9866 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
9867 | if test "${ac_cv_func_shl_load+set}" = set; then |
9868 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9869 | else |
9870 | cat >conftest.$ac_ext <<_ACEOF |
9871 | /* confdefs.h. */ |
9872 | _ACEOF |
9873 | cat confdefs.h >>conftest.$ac_ext |
9874 | cat >>conftest.$ac_ext <<_ACEOF |
9875 | /* end confdefs.h. */ |
9876 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
9877 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9878 | #define shl_load innocuous_shl_load |
9879 | |
9880 | /* System header to define __stub macros and hopefully few prototypes, |
9881 | which can conflict with char shl_load (); below. |
9882 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9883 | <limits.h> exists even on freestanding compilers. */ |
9884 | |
9885 | #ifdef __STDC__ |
9886 | # include <limits.h> |
9887 | #else |
9888 | # include <assert.h> |
9889 | #endif |
9890 | |
9891 | #undef shl_load |
9892 | |
9893 | /* Override any GCC internal prototype to avoid an error. |
9894 | Use char because int might match the return type of a GCC |
9895 | builtin and then its argument prototype would still apply. */ |
9896 | #ifdef __cplusplus |
9897 | extern "C" |
9898 | #endif |
9899 | char shl_load (); |
9900 | /* The GNU C library defines this for functions which it implements |
9901 | to always fail with ENOSYS. Some functions are actually named |
9902 | something starting with __ and the normal name is an alias. */ |
9903 | #if defined __stub_shl_load || defined __stub___shl_load |
9904 | choke me |
9905 | #endif |
9906 | |
9907 | int |
9908 | main () |
9909 | { |
9910 | return shl_load (); |
9911 | ; |
9912 | return 0; |
9913 | } |
9914 | _ACEOF |
9915 | rm -f conftest.$ac_objext conftest$ac_exeext |
9916 | if { (ac_try="$ac_link" |
9917 | case "(($ac_try" in |
9918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9919 | *) ac_try_echo=$ac_try;; |
9920 | esac |
9921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9922 | (eval "$ac_link") 2>conftest.er1 |
9923 | ac_status=$? |
9924 | grep -v '^ *+' conftest.er1 >conftest.err |
9925 | rm -f conftest.er1 |
9926 | cat conftest.err >&5 |
9927 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9928 | (exit $ac_status); } && { |
9929 | test -z "$ac_c_werror_flag" || |
9930 | test ! -s conftest.err |
9931 | } && test -s conftest$ac_exeext && |
9932 | $as_test_x conftest$ac_exeext; then |
9933 | ac_cv_func_shl_load=yes |
9934 | else |
9935 | echo "$as_me: failed program was:" >&5 |
9936 | sed 's/^/| /' conftest.$ac_ext >&5 |
9937 | |
9938 | ac_cv_func_shl_load=no |
9939 | fi |
9940 | |
9941 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9942 | conftest$ac_exeext conftest.$ac_ext |
9943 | fi |
9944 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
9945 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
9946 | if test $ac_cv_func_shl_load = yes; then |
9947 | lt_cv_dlopen="shl_load" |
9948 | else |
9949 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
9950 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
9951 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
9952 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9953 | else |
9954 | ac_check_lib_save_LIBS=$LIBS |
9955 | LIBS="-ldld $LIBS" |
9956 | cat >conftest.$ac_ext <<_ACEOF |
9957 | /* confdefs.h. */ |
9958 | _ACEOF |
9959 | cat confdefs.h >>conftest.$ac_ext |
9960 | cat >>conftest.$ac_ext <<_ACEOF |
9961 | /* end confdefs.h. */ |
9962 | |
9963 | /* Override any GCC internal prototype to avoid an error. |
9964 | Use char because int might match the return type of a GCC |
9965 | builtin and then its argument prototype would still apply. */ |
9966 | #ifdef __cplusplus |
9967 | extern "C" |
9968 | #endif |
9969 | char shl_load (); |
9970 | int |
9971 | main () |
9972 | { |
9973 | return shl_load (); |
9974 | ; |
9975 | return 0; |
9976 | } |
9977 | _ACEOF |
9978 | rm -f conftest.$ac_objext conftest$ac_exeext |
9979 | if { (ac_try="$ac_link" |
9980 | case "(($ac_try" in |
9981 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9982 | *) ac_try_echo=$ac_try;; |
9983 | esac |
9984 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9985 | (eval "$ac_link") 2>conftest.er1 |
9986 | ac_status=$? |
9987 | grep -v '^ *+' conftest.er1 >conftest.err |
9988 | rm -f conftest.er1 |
9989 | cat conftest.err >&5 |
9990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9991 | (exit $ac_status); } && { |
9992 | test -z "$ac_c_werror_flag" || |
9993 | test ! -s conftest.err |
9994 | } && test -s conftest$ac_exeext && |
9995 | $as_test_x conftest$ac_exeext; then |
9996 | ac_cv_lib_dld_shl_load=yes |
9997 | else |
9998 | echo "$as_me: failed program was:" >&5 |
9999 | sed 's/^/| /' conftest.$ac_ext >&5 |
10000 | |
10001 | ac_cv_lib_dld_shl_load=no |
10002 | fi |
10003 | |
10004 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10005 | conftest$ac_exeext conftest.$ac_ext |
10006 | LIBS=$ac_check_lib_save_LIBS |
10007 | fi |
10008 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
10009 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
10010 | if test $ac_cv_lib_dld_shl_load = yes; then |
10011 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" |
10012 | else |
10013 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
10014 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
10015 | if test "${ac_cv_func_dlopen+set}" = set; then |
10016 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10017 | else |
10018 | cat >conftest.$ac_ext <<_ACEOF |
10019 | /* confdefs.h. */ |
10020 | _ACEOF |
10021 | cat confdefs.h >>conftest.$ac_ext |
10022 | cat >>conftest.$ac_ext <<_ACEOF |
10023 | /* end confdefs.h. */ |
10024 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
10025 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
10026 | #define dlopen innocuous_dlopen |
10027 | |
10028 | /* System header to define __stub macros and hopefully few prototypes, |
10029 | which can conflict with char dlopen (); below. |
10030 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
10031 | <limits.h> exists even on freestanding compilers. */ |
10032 | |
10033 | #ifdef __STDC__ |
10034 | # include <limits.h> |
10035 | #else |
10036 | # include <assert.h> |
10037 | #endif |
10038 | |
10039 | #undef dlopen |
10040 | |
10041 | /* Override any GCC internal prototype to avoid an error. |
10042 | Use char because int might match the return type of a GCC |
10043 | builtin and then its argument prototype would still apply. */ |
10044 | #ifdef __cplusplus |
10045 | extern "C" |
10046 | #endif |
10047 | char dlopen (); |
10048 | /* The GNU C library defines this for functions which it implements |
10049 | to always fail with ENOSYS. Some functions are actually named |
10050 | something starting with __ and the normal name is an alias. */ |
10051 | #if defined __stub_dlopen || defined __stub___dlopen |
10052 | choke me |
10053 | #endif |
10054 | |
10055 | int |
10056 | main () |
10057 | { |
10058 | return dlopen (); |
10059 | ; |
10060 | return 0; |
10061 | } |
10062 | _ACEOF |
10063 | rm -f conftest.$ac_objext conftest$ac_exeext |
10064 | if { (ac_try="$ac_link" |
10065 | case "(($ac_try" in |
10066 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10067 | *) ac_try_echo=$ac_try;; |
10068 | esac |
10069 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10070 | (eval "$ac_link") 2>conftest.er1 |
10071 | ac_status=$? |
10072 | grep -v '^ *+' conftest.er1 >conftest.err |
10073 | rm -f conftest.er1 |
10074 | cat conftest.err >&5 |
10075 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10076 | (exit $ac_status); } && { |
10077 | test -z "$ac_c_werror_flag" || |
10078 | test ! -s conftest.err |
10079 | } && test -s conftest$ac_exeext && |
10080 | $as_test_x conftest$ac_exeext; then |
10081 | ac_cv_func_dlopen=yes |
10082 | else |
10083 | echo "$as_me: failed program was:" >&5 |
10084 | sed 's/^/| /' conftest.$ac_ext >&5 |
10085 | |
10086 | ac_cv_func_dlopen=no |
10087 | fi |
10088 | |
10089 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10090 | conftest$ac_exeext conftest.$ac_ext |
10091 | fi |
10092 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
10093 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
10094 | if test $ac_cv_func_dlopen = yes; then |
10095 | lt_cv_dlopen="dlopen" |
10096 | else |
10097 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
10098 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
10099 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
10100 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10101 | else |
10102 | ac_check_lib_save_LIBS=$LIBS |
10103 | LIBS="-ldl $LIBS" |
10104 | cat >conftest.$ac_ext <<_ACEOF |
10105 | /* confdefs.h. */ |
10106 | _ACEOF |
10107 | cat confdefs.h >>conftest.$ac_ext |
10108 | cat >>conftest.$ac_ext <<_ACEOF |
10109 | /* end confdefs.h. */ |
10110 | |
10111 | /* Override any GCC internal prototype to avoid an error. |
10112 | Use char because int might match the return type of a GCC |
10113 | builtin and then its argument prototype would still apply. */ |
10114 | #ifdef __cplusplus |
10115 | extern "C" |
10116 | #endif |
10117 | char dlopen (); |
10118 | int |
10119 | main () |
10120 | { |
10121 | return dlopen (); |
10122 | ; |
10123 | return 0; |
10124 | } |
10125 | _ACEOF |
10126 | rm -f conftest.$ac_objext conftest$ac_exeext |
10127 | if { (ac_try="$ac_link" |
10128 | case "(($ac_try" in |
10129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10130 | *) ac_try_echo=$ac_try;; |
10131 | esac |
10132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10133 | (eval "$ac_link") 2>conftest.er1 |
10134 | ac_status=$? |
10135 | grep -v '^ *+' conftest.er1 >conftest.err |
10136 | rm -f conftest.er1 |
10137 | cat conftest.err >&5 |
10138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10139 | (exit $ac_status); } && { |
10140 | test -z "$ac_c_werror_flag" || |
10141 | test ! -s conftest.err |
10142 | } && test -s conftest$ac_exeext && |
10143 | $as_test_x conftest$ac_exeext; then |
10144 | ac_cv_lib_dl_dlopen=yes |
10145 | else |
10146 | echo "$as_me: failed program was:" >&5 |
10147 | sed 's/^/| /' conftest.$ac_ext >&5 |
10148 | |
10149 | ac_cv_lib_dl_dlopen=no |
10150 | fi |
10151 | |
10152 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10153 | conftest$ac_exeext conftest.$ac_ext |
10154 | LIBS=$ac_check_lib_save_LIBS |
10155 | fi |
10156 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
10157 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
10158 | if test $ac_cv_lib_dl_dlopen = yes; then |
10159 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10160 | else |
10161 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
10162 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
10163 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
10164 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10165 | else |
10166 | ac_check_lib_save_LIBS=$LIBS |
10167 | LIBS="-lsvld $LIBS" |
10168 | cat >conftest.$ac_ext <<_ACEOF |
10169 | /* confdefs.h. */ |
10170 | _ACEOF |
10171 | cat confdefs.h >>conftest.$ac_ext |
10172 | cat >>conftest.$ac_ext <<_ACEOF |
10173 | /* end confdefs.h. */ |
10174 | |
10175 | /* Override any GCC internal prototype to avoid an error. |
10176 | Use char because int might match the return type of a GCC |
10177 | builtin and then its argument prototype would still apply. */ |
10178 | #ifdef __cplusplus |
10179 | extern "C" |
10180 | #endif |
10181 | char dlopen (); |
10182 | int |
10183 | main () |
10184 | { |
10185 | return dlopen (); |
10186 | ; |
10187 | return 0; |
10188 | } |
10189 | _ACEOF |
10190 | rm -f conftest.$ac_objext conftest$ac_exeext |
10191 | if { (ac_try="$ac_link" |
10192 | case "(($ac_try" in |
10193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10194 | *) ac_try_echo=$ac_try;; |
10195 | esac |
10196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10197 | (eval "$ac_link") 2>conftest.er1 |
10198 | ac_status=$? |
10199 | grep -v '^ *+' conftest.er1 >conftest.err |
10200 | rm -f conftest.er1 |
10201 | cat conftest.err >&5 |
10202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10203 | (exit $ac_status); } && { |
10204 | test -z "$ac_c_werror_flag" || |
10205 | test ! -s conftest.err |
10206 | } && test -s conftest$ac_exeext && |
10207 | $as_test_x conftest$ac_exeext; then |
10208 | ac_cv_lib_svld_dlopen=yes |
10209 | else |
10210 | echo "$as_me: failed program was:" >&5 |
10211 | sed 's/^/| /' conftest.$ac_ext >&5 |
10212 | |
10213 | ac_cv_lib_svld_dlopen=no |
10214 | fi |
10215 | |
10216 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10217 | conftest$ac_exeext conftest.$ac_ext |
10218 | LIBS=$ac_check_lib_save_LIBS |
10219 | fi |
10220 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
10221 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
10222 | if test $ac_cv_lib_svld_dlopen = yes; then |
10223 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
10224 | else |
10225 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
10226 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
10227 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
10228 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10229 | else |
10230 | ac_check_lib_save_LIBS=$LIBS |
10231 | LIBS="-ldld $LIBS" |
10232 | cat >conftest.$ac_ext <<_ACEOF |
10233 | /* confdefs.h. */ |
10234 | _ACEOF |
10235 | cat confdefs.h >>conftest.$ac_ext |
10236 | cat >>conftest.$ac_ext <<_ACEOF |
10237 | /* end confdefs.h. */ |
10238 | |
10239 | /* Override any GCC internal prototype to avoid an error. |
10240 | Use char because int might match the return type of a GCC |
10241 | builtin and then its argument prototype would still apply. */ |
10242 | #ifdef __cplusplus |
10243 | extern "C" |
10244 | #endif |
10245 | char dld_link (); |
10246 | int |
10247 | main () |
10248 | { |
10249 | return dld_link (); |
10250 | ; |
10251 | return 0; |
10252 | } |
10253 | _ACEOF |
10254 | rm -f conftest.$ac_objext conftest$ac_exeext |
10255 | if { (ac_try="$ac_link" |
10256 | case "(($ac_try" in |
10257 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10258 | *) ac_try_echo=$ac_try;; |
10259 | esac |
10260 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10261 | (eval "$ac_link") 2>conftest.er1 |
10262 | ac_status=$? |
10263 | grep -v '^ *+' conftest.er1 >conftest.err |
10264 | rm -f conftest.er1 |
10265 | cat conftest.err >&5 |
10266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10267 | (exit $ac_status); } && { |
10268 | test -z "$ac_c_werror_flag" || |
10269 | test ! -s conftest.err |
10270 | } && test -s conftest$ac_exeext && |
10271 | $as_test_x conftest$ac_exeext; then |
10272 | ac_cv_lib_dld_dld_link=yes |
10273 | else |
10274 | echo "$as_me: failed program was:" >&5 |
10275 | sed 's/^/| /' conftest.$ac_ext >&5 |
10276 | |
10277 | ac_cv_lib_dld_dld_link=no |
10278 | fi |
10279 | |
10280 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10281 | conftest$ac_exeext conftest.$ac_ext |
10282 | LIBS=$ac_check_lib_save_LIBS |
10283 | fi |
10284 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
10285 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
10286 | if test $ac_cv_lib_dld_dld_link = yes; then |
10287 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" |
10288 | fi |
10289 | |
10290 | |
10291 | fi |
10292 | |
10293 | |
10294 | fi |
10295 | |
10296 | |
10297 | fi |
10298 | |
10299 | |
10300 | fi |
10301 | |
10302 | |
10303 | fi |
10304 | |
10305 | ;; |
10306 | esac |
10307 | |
10308 | if test "x$lt_cv_dlopen" != xno; then |
10309 | enable_dlopen=yes |
10310 | else |
10311 | enable_dlopen=no |
10312 | fi |
10313 | |
10314 | case $lt_cv_dlopen in |
10315 | dlopen) |
10316 | save_CPPFLAGS="$CPPFLAGS" |
10317 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
10318 | |
10319 | save_LDFLAGS="$LDFLAGS" |
10320 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
10321 | |
10322 | save_LIBS="$LIBS" |
10323 | LIBS="$lt_cv_dlopen_libs $LIBS" |
10324 | |
10325 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
10326 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
10327 | if test "${lt_cv_dlopen_self+set}" = set; then |
10328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10329 | else |
10330 | if test "$cross_compiling" = yes; then : |
10331 | lt_cv_dlopen_self=cross |
10332 | else |
10333 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10334 | lt_status=$lt_dlunknown |
10335 | cat > conftest.$ac_ext <<EOF |
10336 | #line 10336 "configure" |
10337 | #include "confdefs.h" |
10338 | |
10339 | #if HAVE_DLFCN_H |
10340 | #include <dlfcn.h> |
10341 | #endif |
10342 | |
10343 | #include <stdio.h> |
10344 | |
10345 | #ifdef RTLD_GLOBAL |
10346 | # define LT_DLGLOBAL RTLD_GLOBAL |
10347 | #else |
10348 | # ifdef DL_GLOBAL |
10349 | # define LT_DLGLOBAL DL_GLOBAL |
10350 | # else |
10351 | # define LT_DLGLOBAL 0 |
10352 | # endif |
10353 | #endif |
10354 | |
10355 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10356 | find out it does not work in some platform. */ |
10357 | #ifndef LT_DLLAZY_OR_NOW |
10358 | # ifdef RTLD_LAZY |
10359 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
10360 | # else |
10361 | # ifdef DL_LAZY |
10362 | # define LT_DLLAZY_OR_NOW DL_LAZY |
10363 | # else |
10364 | # ifdef RTLD_NOW |
10365 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10366 | # else |
10367 | # ifdef DL_NOW |
10368 | # define LT_DLLAZY_OR_NOW DL_NOW |
10369 | # else |
10370 | # define LT_DLLAZY_OR_NOW 0 |
10371 | # endif |
10372 | # endif |
10373 | # endif |
10374 | # endif |
10375 | #endif |
10376 | |
10377 | #ifdef __cplusplus |
10378 | extern "C" void exit (int); |
10379 | #endif |
10380 | |
10381 | void fnord() { int i=42;} |
10382 | int main () |
10383 | { |
10384 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10385 | int status = $lt_dlunknown; |
10386 | |
10387 | if (self) |
10388 | { |
10389 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10390 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10391 | /* dlclose (self); */ |
10392 | } |
10393 | else |
10394 | puts (dlerror ()); |
10395 | |
10396 | exit (status); |
10397 | } |
10398 | EOF |
10399 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10400 | (eval $ac_link) 2>&5 |
10401 | ac_status=$? |
10402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10403 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10404 | (./conftest; exit; ) >&5 2>/dev/null |
10405 | lt_status=$? |
10406 | case x$lt_status in |
10407 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
10408 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
10409 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
10410 | esac |
10411 | else : |
10412 | # compilation failed |
10413 | lt_cv_dlopen_self=no |
10414 | fi |
10415 | fi |
10416 | rm -fr conftest* |
10417 | |
10418 | |
10419 | fi |
10420 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
10421 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
10422 | |
10423 | if test "x$lt_cv_dlopen_self" = xyes; then |
10424 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
10425 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
10426 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
10427 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
10428 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10429 | else |
10430 | if test "$cross_compiling" = yes; then : |
10431 | lt_cv_dlopen_self_static=cross |
10432 | else |
10433 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10434 | lt_status=$lt_dlunknown |
10435 | cat > conftest.$ac_ext <<EOF |
10436 | #line 10436 "configure" |
10437 | #include "confdefs.h" |
10438 | |
10439 | #if HAVE_DLFCN_H |
10440 | #include <dlfcn.h> |
10441 | #endif |
10442 | |
10443 | #include <stdio.h> |
10444 | |
10445 | #ifdef RTLD_GLOBAL |
10446 | # define LT_DLGLOBAL RTLD_GLOBAL |
10447 | #else |
10448 | # ifdef DL_GLOBAL |
10449 | # define LT_DLGLOBAL DL_GLOBAL |
10450 | # else |
10451 | # define LT_DLGLOBAL 0 |
10452 | # endif |
10453 | #endif |
10454 | |
10455 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10456 | find out it does not work in some platform. */ |
10457 | #ifndef LT_DLLAZY_OR_NOW |
10458 | # ifdef RTLD_LAZY |
10459 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
10460 | # else |
10461 | # ifdef DL_LAZY |
10462 | # define LT_DLLAZY_OR_NOW DL_LAZY |
10463 | # else |
10464 | # ifdef RTLD_NOW |
10465 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10466 | # else |
10467 | # ifdef DL_NOW |
10468 | # define LT_DLLAZY_OR_NOW DL_NOW |
10469 | # else |
10470 | # define LT_DLLAZY_OR_NOW 0 |
10471 | # endif |
10472 | # endif |
10473 | # endif |
10474 | # endif |
10475 | #endif |
10476 | |
10477 | #ifdef __cplusplus |
10478 | extern "C" void exit (int); |
10479 | #endif |
10480 | |
10481 | void fnord() { int i=42;} |
10482 | int main () |
10483 | { |
10484 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10485 | int status = $lt_dlunknown; |
10486 | |
10487 | if (self) |
10488 | { |
10489 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10490 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10491 | /* dlclose (self); */ |
10492 | } |
10493 | else |
10494 | puts (dlerror ()); |
10495 | |
10496 | exit (status); |
10497 | } |
10498 | EOF |
10499 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10500 | (eval $ac_link) 2>&5 |
10501 | ac_status=$? |
10502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10503 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10504 | (./conftest; exit; ) >&5 2>/dev/null |
10505 | lt_status=$? |
10506 | case x$lt_status in |
10507 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
10508 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
10509 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
10510 | esac |
10511 | else : |
10512 | # compilation failed |
10513 | lt_cv_dlopen_self_static=no |
10514 | fi |
10515 | fi |
10516 | rm -fr conftest* |
10517 | |
10518 | |
10519 | fi |
10520 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10521 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
10522 | fi |
10523 | |
10524 | CPPFLAGS="$save_CPPFLAGS" |
10525 | LDFLAGS="$save_LDFLAGS" |
10526 | LIBS="$save_LIBS" |
10527 | ;; |
10528 | esac |
10529 | |
10530 | case $lt_cv_dlopen_self in |
10531 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
10532 | *) enable_dlopen_self=unknown ;; |
10533 | esac |
10534 | |
10535 | case $lt_cv_dlopen_self_static in |
10536 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
10537 | *) enable_dlopen_self_static=unknown ;; |
10538 | esac |
10539 | fi |
10540 | |
10541 | |
10542 | # Report which library types will actually be built |
10543 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
10544 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
10545 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
10546 | echo "${ECHO_T}$can_build_shared" >&6; } |
10547 | |
10548 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
10549 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
10550 | test "$can_build_shared" = "no" && enable_shared=no |
10551 | |
10552 | # On AIX, shared libraries and static libraries use the same namespace, and |
10553 | # are all built from PIC. |
10554 | case $host_os in |
10555 | aix3*) |
10556 | test "$enable_shared" = yes && enable_static=no |
10557 | if test -n "$RANLIB"; then |
10558 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
10559 | postinstall_cmds='$RANLIB $lib' |
10560 | fi |
10561 | ;; |
10562 | |
10563 | aix[4-9]*) |
10564 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10565 | test "$enable_shared" = yes && enable_static=no |
10566 | fi |
10567 | ;; |
10568 | esac |
10569 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
10570 | echo "${ECHO_T}$enable_shared" >&6; } |
10571 | |
10572 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
10573 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
10574 | # Make sure either enable_shared or enable_static is yes. |
10575 | test "$enable_shared" = yes || enable_static=yes |
10576 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
10577 | echo "${ECHO_T}$enable_static" >&6; } |
10578 | |
10579 | # The else clause should only fire when bootstrapping the |
10580 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
10581 | # with your package, and you will get complaints that there are |
10582 | # no rules to generate ltmain.sh. |
10583 | if test -f "$ltmain"; then |
10584 | # See if we are running on zsh, and set the options which allow our commands through |
10585 | # without removal of \ escapes. |
10586 | if test -n "${ZSH_VERSION+set}" ; then |
10587 | setopt NO_GLOB_SUBST |
10588 | fi |
10589 | # Now quote all the things that may contain metacharacters while being |
10590 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
10591 | # variables and quote the copies for generation of the libtool script. |
10592 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
10593 | SED SHELL STRIP \ |
10594 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
10595 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
10596 | deplibs_check_method reload_flag reload_cmds need_locks \ |
10597 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
10598 | lt_cv_sys_global_symbol_to_c_name_address \ |
10599 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
10600 | old_postinstall_cmds old_postuninstall_cmds \ |
10601 | compiler \ |
10602 | CC \ |
10603 | LD \ |
10604 | lt_prog_compiler_wl \ |
10605 | lt_prog_compiler_pic \ |
10606 | lt_prog_compiler_static \ |
10607 | lt_prog_compiler_no_builtin_flag \ |
10608 | export_dynamic_flag_spec \ |
10609 | thread_safe_flag_spec \ |
10610 | whole_archive_flag_spec \ |
10611 | enable_shared_with_static_runtimes \ |
10612 | old_archive_cmds \ |
10613 | old_archive_from_new_cmds \ |
10614 | predep_objects \ |
10615 | postdep_objects \ |
10616 | predeps \ |
10617 | postdeps \ |
10618 | compiler_lib_search_path \ |
10619 | compiler_lib_search_dirs \ |
10620 | archive_cmds \ |
10621 | archive_expsym_cmds \ |
10622 | postinstall_cmds \ |
10623 | postuninstall_cmds \ |
10624 | old_archive_from_expsyms_cmds \ |
10625 | allow_undefined_flag \ |
10626 | no_undefined_flag \ |
10627 | export_symbols_cmds \ |
10628 | hardcode_libdir_flag_spec \ |
10629 | hardcode_libdir_flag_spec_ld \ |
10630 | hardcode_libdir_separator \ |
10631 | hardcode_automatic \ |
10632 | module_cmds \ |
10633 | module_expsym_cmds \ |
10634 | lt_cv_prog_compiler_c_o \ |
10635 | fix_srcfile_path \ |
10636 | exclude_expsyms \ |
10637 | include_expsyms; do |
10638 | |
10639 | case $var in |
10640 | old_archive_cmds | \ |
10641 | old_archive_from_new_cmds | \ |
10642 | archive_cmds | \ |
10643 | archive_expsym_cmds | \ |
10644 | module_cmds | \ |
10645 | module_expsym_cmds | \ |
10646 | old_archive_from_expsyms_cmds | \ |
10647 | export_symbols_cmds | \ |
10648 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
10649 | postinstall_cmds | postuninstall_cmds | \ |
10650 | old_postinstall_cmds | old_postuninstall_cmds | \ |
10651 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
10652 | # Double-quote double-evaled strings. |
10653 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
10654 | ;; |
10655 | *) |
10656 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
10657 | ;; |
10658 | esac |
10659 | done |
10660 | |
10661 | case $lt_echo in |
10662 | *'\$0 --fallback-echo"') |
10663 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
10664 | ;; |
10665 | esac |
10666 | |
10667 | cfgfile="${ofile}T" |
10668 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
10669 | $rm -f "$cfgfile" |
10670 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
10671 | echo "$as_me: creating $ofile" >&6;} |
10672 | |
10673 | cat <<__EOF__ >> "$cfgfile" |
10674 | #! $SHELL |
10675 | |
10676 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
10677 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
10678 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
10679 | # |
10680 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 |
10681 | # Free Software Foundation, Inc. |
10682 | # |
10683 | # This file is part of GNU Libtool: |
10684 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
10685 | # |
10686 | # This program is free software; you can redistribute it and/or modify |
10687 | # it under the terms of the GNU General Public License as published by |
10688 | # the Free Software Foundation; either version 2 of the License, or |
10689 | # (at your option) any later version. |
10690 | # |
10691 | # This program is distributed in the hope that it will be useful, but |
10692 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
10693 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
10694 | # General Public License for more details. |
10695 | # |
10696 | # You should have received a copy of the GNU General Public License |
10697 | # along with this program; if not, write to the Free Software |
10698 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
10699 | # |
10700 | # As a special exception to the GNU General Public License, if you |
10701 | # distribute this file as part of a program that contains a |
10702 | # configuration script generated by Autoconf, you may include it under |
10703 | # the same distribution terms that you use for the rest of that program. |
10704 | |
10705 | # A sed program that does not truncate output. |
10706 | SED=$lt_SED |
10707 | |
10708 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
10709 | Xsed="$SED -e 1s/^X//" |
10710 | |
10711 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
10712 | # if CDPATH is set. |
10713 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
10714 | |
10715 | # The names of the tagged configurations supported by this script. |
10716 | available_tags= |
10717 | |
10718 | # ### BEGIN LIBTOOL CONFIG |
10719 | |
10720 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
10721 | |
10722 | # Shell to use when invoking shell scripts. |
10723 | SHELL=$lt_SHELL |
10724 | |
10725 | # Whether or not to build shared libraries. |
10726 | build_libtool_libs=$enable_shared |
10727 | |
10728 | # Whether or not to build static libraries. |
10729 | build_old_libs=$enable_static |
10730 | |
10731 | # Whether or not to add -lc for building shared libraries. |
10732 | build_libtool_need_lc=$archive_cmds_need_lc |
10733 | |
10734 | # Whether or not to disallow shared libs when runtime libs are static |
10735 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
10736 | |
10737 | # Whether or not to optimize for fast installation. |
10738 | fast_install=$enable_fast_install |
10739 | |
10740 | # The host system. |
10741 | host_alias=$host_alias |
10742 | host=$host |
10743 | host_os=$host_os |
10744 | |
10745 | # The build system. |
10746 | build_alias=$build_alias |
10747 | build=$build |
10748 | build_os=$build_os |
10749 | |
10750 | # An echo program that does not interpret backslashes. |
10751 | echo=$lt_echo |
10752 | |
10753 | # The archiver. |
10754 | AR=$lt_AR |
10755 | AR_FLAGS=$lt_AR_FLAGS |
10756 | |
10757 | # A C compiler. |
10758 | LTCC=$lt_LTCC |
10759 | |
10760 | # LTCC compiler flags. |
10761 | LTCFLAGS=$lt_LTCFLAGS |
10762 | |
10763 | # A language-specific compiler. |
10764 | CC=$lt_compiler |
10765 | |
10766 | # Is the compiler the GNU C compiler? |
10767 | with_gcc=$GCC |
10768 | |
10769 | # An ERE matcher. |
10770 | EGREP=$lt_EGREP |
10771 | |
10772 | # The linker used to build libraries. |
10773 | LD=$lt_LD |
10774 | |
10775 | # Whether we need hard or soft links. |
10776 | LN_S=$lt_LN_S |
10777 | |
10778 | # A BSD-compatible nm program. |
10779 | NM=$lt_NM |
10780 | |
10781 | # A symbol stripping program |
10782 | STRIP=$lt_STRIP |
10783 | |
10784 | # Used to examine libraries when file_magic_cmd begins "file" |
10785 | MAGIC_CMD=$MAGIC_CMD |
10786 | |
10787 | # Used on cygwin: DLL creation program. |
10788 | DLLTOOL="$DLLTOOL" |
10789 | |
10790 | # Used on cygwin: object dumper. |
10791 | OBJDUMP="$OBJDUMP" |
10792 | |
10793 | # Used on cygwin: assembler. |
10794 | AS="$AS" |
10795 | |
10796 | # The name of the directory that contains temporary libtool files. |
10797 | objdir=$objdir |
10798 | |
10799 | # How to create reloadable object files. |
10800 | reload_flag=$lt_reload_flag |
10801 | reload_cmds=$lt_reload_cmds |
10802 | |
10803 | # How to pass a linker flag through the compiler. |
10804 | wl=$lt_lt_prog_compiler_wl |
10805 | |
10806 | # Object file suffix (normally "o"). |
10807 | objext="$ac_objext" |
10808 | |
10809 | # Old archive suffix (normally "a"). |
10810 | libext="$libext" |
10811 | |
10812 | # Shared library suffix (normally ".so"). |
10813 | shrext_cmds='$shrext_cmds' |
10814 | |
10815 | # Executable file suffix (normally ""). |
10816 | exeext="$exeext" |
10817 | |
10818 | # Additional compiler flags for building library objects. |
10819 | pic_flag=$lt_lt_prog_compiler_pic |
10820 | pic_mode=$pic_mode |
10821 | |
10822 | # What is the maximum length of a command? |
10823 | max_cmd_len=$lt_cv_sys_max_cmd_len |
10824 | |
10825 | # Does compiler simultaneously support -c and -o options? |
10826 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
10827 | |
10828 | # Must we lock files when doing compilation? |
10829 | need_locks=$lt_need_locks |
10830 | |
10831 | # Do we need the lib prefix for modules? |
10832 | need_lib_prefix=$need_lib_prefix |
10833 | |
10834 | # Do we need a version for libraries? |
10835 | need_version=$need_version |
10836 | |
10837 | # Whether dlopen is supported. |
10838 | dlopen_support=$enable_dlopen |
10839 | |
10840 | # Whether dlopen of programs is supported. |
10841 | dlopen_self=$enable_dlopen_self |
10842 | |
10843 | # Whether dlopen of statically linked programs is supported. |
10844 | dlopen_self_static=$enable_dlopen_self_static |
10845 | |
10846 | # Compiler flag to prevent dynamic linking. |
10847 | link_static_flag=$lt_lt_prog_compiler_static |
10848 | |
10849 | # Compiler flag to turn off builtin functions. |
10850 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
10851 | |
10852 | # Compiler flag to allow reflexive dlopens. |
10853 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
10854 | |
10855 | # Compiler flag to generate shared objects directly from archives. |
10856 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
10857 | |
10858 | # Compiler flag to generate thread-safe objects. |
10859 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
10860 | |
10861 | # Library versioning type. |
10862 | version_type=$version_type |
10863 | |
10864 | # Format of library name prefix. |
10865 | libname_spec=$lt_libname_spec |
10866 | |
10867 | # List of archive names. First name is the real one, the rest are links. |
10868 | # The last name is the one that the linker finds with -lNAME. |
10869 | library_names_spec=$lt_library_names_spec |
10870 | |
10871 | # The coded name of the library, if different from the real name. |
10872 | soname_spec=$lt_soname_spec |
10873 | |
10874 | # Commands used to build and install an old-style archive. |
10875 | RANLIB=$lt_RANLIB |
10876 | old_archive_cmds=$lt_old_archive_cmds |
10877 | old_postinstall_cmds=$lt_old_postinstall_cmds |
10878 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
10879 | |
10880 | # Create an old-style archive from a shared archive. |
10881 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
10882 | |
10883 | # Create a temporary old-style archive to link instead of a shared archive. |
10884 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
10885 | |
10886 | # Commands used to build and install a shared archive. |
10887 | archive_cmds=$lt_archive_cmds |
10888 | archive_expsym_cmds=$lt_archive_expsym_cmds |
10889 | postinstall_cmds=$lt_postinstall_cmds |
10890 | postuninstall_cmds=$lt_postuninstall_cmds |
10891 | |
10892 | # Commands used to build a loadable module (assumed same as above if empty) |
10893 | module_cmds=$lt_module_cmds |
10894 | module_expsym_cmds=$lt_module_expsym_cmds |
10895 | |
10896 | # Commands to strip libraries. |
10897 | old_striplib=$lt_old_striplib |
10898 | striplib=$lt_striplib |
10899 | |
10900 | # Dependencies to place before the objects being linked to create a |
10901 | # shared library. |
10902 | predep_objects=$lt_predep_objects |
10903 | |
10904 | # Dependencies to place after the objects being linked to create a |
10905 | # shared library. |
10906 | postdep_objects=$lt_postdep_objects |
10907 | |
10908 | # Dependencies to place before the objects being linked to create a |
10909 | # shared library. |
10910 | predeps=$lt_predeps |
10911 | |
10912 | # Dependencies to place after the objects being linked to create a |
10913 | # shared library. |
10914 | postdeps=$lt_postdeps |
10915 | |
10916 | # The directories searched by this compiler when creating a shared |
10917 | # library |
10918 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs |
10919 | |
10920 | # The library search path used internally by the compiler when linking |
10921 | # a shared library. |
10922 | compiler_lib_search_path=$lt_compiler_lib_search_path |
10923 | |
10924 | # Method to check whether dependent libraries are shared objects. |
10925 | deplibs_check_method=$lt_deplibs_check_method |
10926 | |
10927 | # Command to use when deplibs_check_method == file_magic. |
10928 | file_magic_cmd=$lt_file_magic_cmd |
10929 | |
10930 | # Flag that allows shared libraries with undefined symbols to be built. |
10931 | allow_undefined_flag=$lt_allow_undefined_flag |
10932 | |
10933 | # Flag that forces no undefined symbols. |
10934 | no_undefined_flag=$lt_no_undefined_flag |
10935 | |
10936 | # Commands used to finish a libtool library installation in a directory. |
10937 | finish_cmds=$lt_finish_cmds |
10938 | |
10939 | # Same as above, but a single script fragment to be evaled but not shown. |
10940 | finish_eval=$lt_finish_eval |
10941 | |
10942 | # Take the output of nm and produce a listing of raw symbols and C names. |
10943 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
10944 | |
10945 | # Transform the output of nm in a proper C declaration |
10946 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
10947 | |
10948 | # Transform the output of nm in a C name address pair |
10949 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
10950 | |
10951 | # This is the shared library runtime path variable. |
10952 | runpath_var=$runpath_var |
10953 | |
10954 | # This is the shared library path variable. |
10955 | shlibpath_var=$shlibpath_var |
10956 | |
10957 | # Is shlibpath searched before the hard-coded library search path? |
10958 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
10959 | |
10960 | # How to hardcode a shared library path into an executable. |
10961 | hardcode_action=$hardcode_action |
10962 | |
10963 | # Whether we should hardcode library paths into libraries. |
10964 | hardcode_into_libs=$hardcode_into_libs |
10965 | |
10966 | # Flag to hardcode \$libdir into a binary during linking. |
10967 | # This must work even if \$libdir does not exist. |
10968 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
10969 | |
10970 | # If ld is used when linking, flag to hardcode \$libdir into |
10971 | # a binary during linking. This must work even if \$libdir does |
10972 | # not exist. |
10973 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
10974 | |
10975 | # Whether we need a single -rpath flag with a separated argument. |
10976 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
10977 | |
10978 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
10979 | # resulting binary. |
10980 | hardcode_direct=$hardcode_direct |
10981 | |
10982 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
10983 | # resulting binary. |
10984 | hardcode_minus_L=$hardcode_minus_L |
10985 | |
10986 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
10987 | # the resulting binary. |
10988 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
10989 | |
10990 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
10991 | # and all subsequent libraries and executables linked against it. |
10992 | hardcode_automatic=$hardcode_automatic |
10993 | |
10994 | # Variables whose values should be saved in libtool wrapper scripts and |
10995 | # restored at relink time. |
10996 | variables_saved_for_relink="$variables_saved_for_relink" |
10997 | |
10998 | # Whether libtool must link a program against all its dependency libraries. |
10999 | link_all_deplibs=$link_all_deplibs |
11000 | |
11001 | # Compile-time system search path for libraries |
11002 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
11003 | |
11004 | # Run-time system search path for libraries |
11005 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
11006 | |
11007 | # Fix the shell variable \$srcfile for the compiler. |
11008 | fix_srcfile_path=$lt_fix_srcfile_path |
11009 | |
11010 | # Set to yes if exported symbols are required. |
11011 | always_export_symbols=$always_export_symbols |
11012 | |
11013 | # The commands to list exported symbols. |
11014 | export_symbols_cmds=$lt_export_symbols_cmds |
11015 | |
11016 | # The commands to extract the exported symbol list from a shared archive. |
11017 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
11018 | |
11019 | # Symbols that should not be listed in the preloaded symbols. |
11020 | exclude_expsyms=$lt_exclude_expsyms |
11021 | |
11022 | # Symbols that must always be exported. |
11023 | include_expsyms=$lt_include_expsyms |
11024 | |
11025 | # ### END LIBTOOL CONFIG |
11026 | |
11027 | __EOF__ |
11028 | |
11029 | |
11030 | case $host_os in |
11031 | aix3*) |
11032 | cat <<\EOF >> "$cfgfile" |
11033 | |
11034 | # AIX sometimes has problems with the GCC collect2 program. For some |
11035 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
11036 | # vanish in a puff of smoke. |
11037 | if test "X${COLLECT_NAMES+set}" != Xset; then |
11038 | COLLECT_NAMES= |
11039 | export COLLECT_NAMES |
11040 | fi |
11041 | EOF |
11042 | ;; |
11043 | esac |
11044 | |
11045 | # We use sed instead of cat because bash on DJGPP gets confused if |
11046 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
11047 | # text mode, it properly converts lines to CR/LF. This bash problem |
11048 | # is reportedly fixed, but why not run on old versions too? |
11049 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
11050 | |
11051 | mv -f "$cfgfile" "$ofile" || \ |
11052 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
11053 | chmod +x "$ofile" |
11054 | |
11055 | else |
11056 | # If there is no Makefile yet, we rely on a make rule to execute |
11057 | # `config.status --recheck' to rerun these tests and create the |
11058 | # libtool script then. |
11059 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
11060 | if test -f "$ltmain_in"; then |
11061 | test -f Makefile && make "$ltmain" |
11062 | fi |
11063 | fi |
11064 | |
11065 | |
11066 | ac_ext=c |
11067 | ac_cpp='$CPP $CPPFLAGS' |
11068 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11069 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11070 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
11071 | |
11072 | CC="$lt_save_CC" |
11073 | |
11074 | |
11075 | # Check whether --with-tags was given. |
11076 | if test "${with_tags+set}" = set; then |
11077 | withval=$with_tags; tagnames="$withval" |
11078 | fi |
11079 | |
11080 | |
11081 | if test -f "$ltmain" && test -n "$tagnames"; then |
11082 | if test ! -f "${ofile}"; then |
11083 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
11084 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
11085 | fi |
11086 | |
11087 | if test -z "$LTCC"; then |
11088 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
11089 | if test -z "$LTCC"; then |
11090 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
11091 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
11092 | else |
11093 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
11094 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
11095 | fi |
11096 | fi |
11097 | if test -z "$LTCFLAGS"; then |
11098 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
11099 | fi |
11100 | |
11101 | # Extract list of available tagged configurations in $ofile. |
11102 | # Note that this assumes the entire list is on one line. |
11103 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
11104 | |
11105 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
11106 | for tagname in $tagnames; do |
11107 | IFS="$lt_save_ifs" |
11108 | # Check whether tagname contains only valid characters |
11109 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
11110 | "") ;; |
11111 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
11112 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
11113 | { (exit 1); exit 1; }; } |
11114 | ;; |
11115 | esac |
11116 | |
11117 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
11118 | then |
11119 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
11120 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
11121 | { (exit 1); exit 1; }; } |
11122 | fi |
11123 | |
11124 | # Update the list of available tags. |
11125 | if test -n "$tagname"; then |
11126 | echo appending configuration tag \"$tagname\" to $ofile |
11127 | |
11128 | case $tagname in |
11129 | CXX) |
11130 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
11131 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
11132 | (test "X$CXX" != "Xg++"))) ; then |
11133 | ac_ext=cpp |
11134 | ac_cpp='$CXXCPP $CPPFLAGS' |
11135 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11136 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11137 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11138 | |
11139 | |
11140 | |
11141 | |
11142 | archive_cmds_need_lc_CXX=no |
11143 | allow_undefined_flag_CXX= |
11144 | always_export_symbols_CXX=no |
11145 | archive_expsym_cmds_CXX= |
11146 | export_dynamic_flag_spec_CXX= |
11147 | hardcode_direct_CXX=no |
11148 | hardcode_libdir_flag_spec_CXX= |
11149 | hardcode_libdir_flag_spec_ld_CXX= |
11150 | hardcode_libdir_separator_CXX= |
11151 | hardcode_minus_L_CXX=no |
11152 | hardcode_shlibpath_var_CXX=unsupported |
11153 | hardcode_automatic_CXX=no |
11154 | module_cmds_CXX= |
11155 | module_expsym_cmds_CXX= |
11156 | link_all_deplibs_CXX=unknown |
11157 | old_archive_cmds_CXX=$old_archive_cmds |
11158 | no_undefined_flag_CXX= |
11159 | whole_archive_flag_spec_CXX= |
11160 | enable_shared_with_static_runtimes_CXX=no |
11161 | |
11162 | # Dependencies to place before and after the object being linked: |
11163 | predep_objects_CXX= |
11164 | postdep_objects_CXX= |
11165 | predeps_CXX= |
11166 | postdeps_CXX= |
11167 | compiler_lib_search_path_CXX= |
11168 | compiler_lib_search_dirs_CXX= |
11169 | |
11170 | # Source file extension for C++ test sources. |
11171 | ac_ext=cpp |
11172 | |
11173 | # Object file extension for compiled C++ test sources. |
11174 | objext=o |
11175 | objext_CXX=$objext |
11176 | |
11177 | # Code to be used in simple compile tests |
11178 | lt_simple_compile_test_code="int some_variable = 0;" |
11179 | |
11180 | # Code to be used in simple link tests |
11181 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }' |
11182 | |
11183 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
11184 | |
11185 | # If no C compiler was specified, use CC. |
11186 | LTCC=${LTCC-"$CC"} |
11187 | |
11188 | # If no C compiler flags were specified, use CFLAGS. |
11189 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
11190 | |
11191 | # Allow CC to be a program name with arguments. |
11192 | compiler=$CC |
11193 | |
11194 | |
11195 | # save warnings/boilerplate of simple test code |
11196 | ac_outfile=conftest.$ac_objext |
11197 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
11198 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
11199 | _lt_compiler_boilerplate=`cat conftest.err` |
11200 | $rm conftest* |
11201 | |
11202 | ac_outfile=conftest.$ac_objext |
11203 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
11204 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
11205 | _lt_linker_boilerplate=`cat conftest.err` |
11206 | $rm -r conftest* |
11207 | |
11208 | |
11209 | # Allow CC to be a program name with arguments. |
11210 | lt_save_CC=$CC |
11211 | lt_save_LD=$LD |
11212 | lt_save_GCC=$GCC |
11213 | GCC=$GXX |
11214 | lt_save_with_gnu_ld=$with_gnu_ld |
11215 | lt_save_path_LD=$lt_cv_path_LD |
11216 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
11217 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
11218 | else |
11219 | $as_unset lt_cv_prog_gnu_ld |
11220 | fi |
11221 | if test -n "${lt_cv_path_LDCXX+set}"; then |
11222 | lt_cv_path_LD=$lt_cv_path_LDCXX |
11223 | else |
11224 | $as_unset lt_cv_path_LD |
11225 | fi |
11226 | test -z "${LDCXX+set}" || LD=$LDCXX |
11227 | CC=${CXX-"c++"} |
11228 | compiler=$CC |
11229 | compiler_CXX=$CC |
11230 | for cc_temp in $compiler""; do |
11231 | case $cc_temp in |
11232 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
11233 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
11234 | \-*) ;; |
11235 | *) break;; |
11236 | esac |
11237 | done |
11238 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
11239 | |
11240 | |
11241 | # We don't want -fno-exception wen compiling C++ code, so set the |
11242 | # no_builtin_flag separately |
11243 | if test "$GXX" = yes; then |
11244 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
11245 | else |
11246 | lt_prog_compiler_no_builtin_flag_CXX= |
11247 | fi |
11248 | |
11249 | if test "$GXX" = yes; then |
11250 | # Set up default GNU C++ configuration |
11251 | |
11252 | |
11253 | # Check whether --with-gnu-ld was given. |
11254 | if test "${with_gnu_ld+set}" = set; then |
11255 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
11256 | else |
11257 | with_gnu_ld=no |
11258 | fi |
11259 | |
11260 | ac_prog=ld |
11261 | if test "$GCC" = yes; then |
11262 | # Check if gcc -print-prog-name=ld gives a path. |
11263 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
11264 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
11265 | case $host in |
11266 | *-*-mingw*) |
11267 | # gcc leaves a trailing carriage return which upsets mingw |
11268 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
11269 | *) |
11270 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
11271 | esac |
11272 | case $ac_prog in |
11273 | # Accept absolute paths. |
11274 | [\\/]* | ?:[\\/]*) |
11275 | re_direlt='/[^/][^/]*/\.\./' |
11276 | # Canonicalize the pathname of ld |
11277 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
11278 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
11279 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
11280 | done |
11281 | test -z "$LD" && LD="$ac_prog" |
11282 | ;; |
11283 | "") |
11284 | # If it fails, then pretend we aren't using GCC. |
11285 | ac_prog=ld |
11286 | ;; |
11287 | *) |
11288 | # If it is relative, then search for the first ld in PATH. |
11289 | with_gnu_ld=unknown |
11290 | ;; |
11291 | esac |
11292 | elif test "$with_gnu_ld" = yes; then |
11293 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
11294 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
11295 | else |
11296 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
11297 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
11298 | fi |
11299 | if test "${lt_cv_path_LD+set}" = set; then |
11300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11301 | else |
11302 | if test -z "$LD"; then |
11303 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
11304 | for ac_dir in $PATH; do |
11305 | IFS="$lt_save_ifs" |
11306 | test -z "$ac_dir" && ac_dir=. |
11307 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
11308 | lt_cv_path_LD="$ac_dir/$ac_prog" |
11309 | # Check to see if the program is GNU ld. I'd rather use --version, |
11310 | # but apparently some variants of GNU ld only accept -v. |
11311 | # Break only if it was the GNU/non-GNU ld that we prefer. |
11312 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
11313 | *GNU* | *'with BFD'*) |
11314 | test "$with_gnu_ld" != no && break |
11315 | ;; |
11316 | *) |
11317 | test "$with_gnu_ld" != yes && break |
11318 | ;; |
11319 | esac |
11320 | fi |
11321 | done |
11322 | IFS="$lt_save_ifs" |
11323 | else |
11324 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
11325 | fi |
11326 | fi |
11327 | |
11328 | LD="$lt_cv_path_LD" |
11329 | if test -n "$LD"; then |
11330 | { echo "$as_me:$LINENO: result: $LD" >&5 |
11331 | echo "${ECHO_T}$LD" >&6; } |
11332 | else |
11333 | { echo "$as_me:$LINENO: result: no" >&5 |
11334 | echo "${ECHO_T}no" >&6; } |
11335 | fi |
11336 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
11337 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
11338 | { (exit 1); exit 1; }; } |
11339 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
11340 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
11341 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
11342 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11343 | else |
11344 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
11345 | case `$LD -v 2>&1 </dev/null` in |
11346 | *GNU* | *'with BFD'*) |
11347 | lt_cv_prog_gnu_ld=yes |
11348 | ;; |
11349 | *) |
11350 | lt_cv_prog_gnu_ld=no |
11351 | ;; |
11352 | esac |
11353 | fi |
11354 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
11355 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
11356 | with_gnu_ld=$lt_cv_prog_gnu_ld |
11357 | |
11358 | |
11359 | |
11360 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
11361 | # archiving commands below assume that GNU ld is being used. |
11362 | if test "$with_gnu_ld" = yes; then |
11363 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11364 | 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' |
11365 | |
11366 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11367 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11368 | |
11369 | # If archive_cmds runs LD, not CC, wlarc should be empty |
11370 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
11371 | # investigate it a little bit more. (MM) |
11372 | wlarc='${wl}' |
11373 | |
11374 | # ancient GNU ld didn't support --whole-archive et. al. |
11375 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
11376 | grep 'no-whole-archive' > /dev/null; then |
11377 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11378 | else |
11379 | whole_archive_flag_spec_CXX= |
11380 | fi |
11381 | else |
11382 | with_gnu_ld=no |
11383 | wlarc= |
11384 | |
11385 | # A generic and very simple default shared library creation |
11386 | # command for GNU C++ for the case where it uses the native |
11387 | # linker, instead of GNU ld. If possible, this setting should |
11388 | # overridden to take advantage of the native linker features on |
11389 | # the platform it is being used on. |
11390 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11391 | fi |
11392 | |
11393 | # Commands to make compiler produce verbose output that lists |
11394 | # what "hidden" libraries, object files and flags are used when |
11395 | # linking a shared library. |
11396 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11397 | |
11398 | else |
11399 | GXX=no |
11400 | with_gnu_ld=no |
11401 | wlarc= |
11402 | fi |
11403 | |
11404 | # PORTME: fill in a description of your system's C++ link characteristics |
11405 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
11406 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
11407 | ld_shlibs_CXX=yes |
11408 | case $host_os in |
11409 | aix3*) |
11410 | # FIXME: insert proper C++ library support |
11411 | ld_shlibs_CXX=no |
11412 | ;; |
11413 | aix[4-9]*) |
11414 | if test "$host_cpu" = ia64; then |
11415 | # On IA64, the linker does run time linking by default, so we don't |
11416 | # have to do anything special. |
11417 | aix_use_runtimelinking=no |
11418 | exp_sym_flag='-Bexport' |
11419 | no_entry_flag="" |
11420 | else |
11421 | aix_use_runtimelinking=no |
11422 | |
11423 | # Test if we are trying to use run time linking or normal |
11424 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
11425 | # need to do runtime linking. |
11426 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
11427 | for ld_flag in $LDFLAGS; do |
11428 | case $ld_flag in |
11429 | *-brtl*) |
11430 | aix_use_runtimelinking=yes |
11431 | break |
11432 | ;; |
11433 | esac |
11434 | done |
11435 | ;; |
11436 | esac |
11437 | |
11438 | exp_sym_flag='-bexport' |
11439 | no_entry_flag='-bnoentry' |
11440 | fi |
11441 | |
11442 | # When large executables or shared objects are built, AIX ld can |
11443 | # have problems creating the table of contents. If linking a library |
11444 | # or program results in "error TOC overflow" add -mminimal-toc to |
11445 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
11446 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
11447 | |
11448 | archive_cmds_CXX='' |
11449 | hardcode_direct_CXX=yes |
11450 | hardcode_libdir_separator_CXX=':' |
11451 | link_all_deplibs_CXX=yes |
11452 | |
11453 | if test "$GXX" = yes; then |
11454 | case $host_os in aix4.[012]|aix4.[012].*) |
11455 | # We only want to do this on AIX 4.2 and lower, the check |
11456 | # below for broken collect2 doesn't work under 4.3+ |
11457 | collect2name=`${CC} -print-prog-name=collect2` |
11458 | if test -f "$collect2name" && \ |
11459 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
11460 | then |
11461 | # We have reworked collect2 |
11462 | : |
11463 | else |
11464 | # We have old collect2 |
11465 | hardcode_direct_CXX=unsupported |
11466 | # It fails to find uninstalled libraries when the uninstalled |
11467 | # path is not listed in the libpath. Setting hardcode_minus_L |
11468 | # to unsupported forces relinking |
11469 | hardcode_minus_L_CXX=yes |
11470 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11471 | hardcode_libdir_separator_CXX= |
11472 | fi |
11473 | ;; |
11474 | esac |
11475 | shared_flag='-shared' |
11476 | if test "$aix_use_runtimelinking" = yes; then |
11477 | shared_flag="$shared_flag "'${wl}-G' |
11478 | fi |
11479 | else |
11480 | # not using gcc |
11481 | if test "$host_cpu" = ia64; then |
11482 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
11483 | # chokes on -Wl,-G. The following line is correct: |
11484 | shared_flag='-G' |
11485 | else |
11486 | if test "$aix_use_runtimelinking" = yes; then |
11487 | shared_flag='${wl}-G' |
11488 | else |
11489 | shared_flag='${wl}-bM:SRE' |
11490 | fi |
11491 | fi |
11492 | fi |
11493 | |
11494 | # It seems that -bexpall does not export symbols beginning with |
11495 | # underscore (_), so it is better to generate a list of symbols to export. |
11496 | always_export_symbols_CXX=yes |
11497 | if test "$aix_use_runtimelinking" = yes; then |
11498 | # Warning - without using the other runtime loading flags (-brtl), |
11499 | # -berok will link without error, but may produce a broken library. |
11500 | allow_undefined_flag_CXX='-berok' |
11501 | # Determine the default libpath from the value encoded in an empty executable. |
11502 | cat >conftest.$ac_ext <<_ACEOF |
11503 | /* confdefs.h. */ |
11504 | _ACEOF |
11505 | cat confdefs.h >>conftest.$ac_ext |
11506 | cat >>conftest.$ac_ext <<_ACEOF |
11507 | /* end confdefs.h. */ |
11508 | |
11509 | int |
11510 | main () |
11511 | { |
11512 | |
11513 | ; |
11514 | return 0; |
11515 | } |
11516 | _ACEOF |
11517 | rm -f conftest.$ac_objext conftest$ac_exeext |
11518 | if { (ac_try="$ac_link" |
11519 | case "(($ac_try" in |
11520 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11521 | *) ac_try_echo=$ac_try;; |
11522 | esac |
11523 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11524 | (eval "$ac_link") 2>conftest.er1 |
11525 | ac_status=$? |
11526 | grep -v '^ *+' conftest.er1 >conftest.err |
11527 | rm -f conftest.er1 |
11528 | cat conftest.err >&5 |
11529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11530 | (exit $ac_status); } && { |
11531 | test -z "$ac_cxx_werror_flag" || |
11532 | test ! -s conftest.err |
11533 | } && test -s conftest$ac_exeext && |
11534 | $as_test_x conftest$ac_exeext; then |
11535 | |
11536 | lt_aix_libpath_sed=' |
11537 | /Import File Strings/,/^$/ { |
11538 | /^0/ { |
11539 | s/^0 *\(.*\)$/\1/ |
11540 | p |
11541 | } |
11542 | }' |
11543 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
11544 | # Check for a 64-bit object if we didn't find anything. |
11545 | if test -z "$aix_libpath"; then |
11546 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
11547 | fi |
11548 | else |
11549 | echo "$as_me: failed program was:" >&5 |
11550 | sed 's/^/| /' conftest.$ac_ext >&5 |
11551 | |
11552 | |
11553 | fi |
11554 | |
11555 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11556 | conftest$ac_exeext conftest.$ac_ext |
11557 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11558 | |
11559 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11560 | |
11561 | 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" |
11562 | else |
11563 | if test "$host_cpu" = ia64; then |
11564 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
11565 | allow_undefined_flag_CXX="-z nodefs" |
11566 | 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" |
11567 | else |
11568 | # Determine the default libpath from the value encoded in an empty executable. |
11569 | cat >conftest.$ac_ext <<_ACEOF |
11570 | /* confdefs.h. */ |
11571 | _ACEOF |
11572 | cat confdefs.h >>conftest.$ac_ext |
11573 | cat >>conftest.$ac_ext <<_ACEOF |
11574 | /* end confdefs.h. */ |
11575 | |
11576 | int |
11577 | main () |
11578 | { |
11579 | |
11580 | ; |
11581 | return 0; |
11582 | } |
11583 | _ACEOF |
11584 | rm -f conftest.$ac_objext conftest$ac_exeext |
11585 | if { (ac_try="$ac_link" |
11586 | case "(($ac_try" in |
11587 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11588 | *) ac_try_echo=$ac_try;; |
11589 | esac |
11590 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11591 | (eval "$ac_link") 2>conftest.er1 |
11592 | ac_status=$? |
11593 | grep -v '^ *+' conftest.er1 >conftest.err |
11594 | rm -f conftest.er1 |
11595 | cat conftest.err >&5 |
11596 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11597 | (exit $ac_status); } && { |
11598 | test -z "$ac_cxx_werror_flag" || |
11599 | test ! -s conftest.err |
11600 | } && test -s conftest$ac_exeext && |
11601 | $as_test_x conftest$ac_exeext; then |
11602 | |
11603 | lt_aix_libpath_sed=' |
11604 | /Import File Strings/,/^$/ { |
11605 | /^0/ { |
11606 | s/^0 *\(.*\)$/\1/ |
11607 | p |
11608 | } |
11609 | }' |
11610 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
11611 | # Check for a 64-bit object if we didn't find anything. |
11612 | if test -z "$aix_libpath"; then |
11613 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
11614 | fi |
11615 | else |
11616 | echo "$as_me: failed program was:" >&5 |
11617 | sed 's/^/| /' conftest.$ac_ext >&5 |
11618 | |
11619 | |
11620 | fi |
11621 | |
11622 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11623 | conftest$ac_exeext conftest.$ac_ext |
11624 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11625 | |
11626 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11627 | # Warning - without using the other run time loading flags, |
11628 | # -berok will link without error, but may produce a broken library. |
11629 | no_undefined_flag_CXX=' ${wl}-bernotok' |
11630 | allow_undefined_flag_CXX=' ${wl}-berok' |
11631 | # Exported symbols can be pulled into shared objects from archives |
11632 | whole_archive_flag_spec_CXX='$convenience' |
11633 | archive_cmds_need_lc_CXX=yes |
11634 | # This is similar to how AIX traditionally builds its shared libraries. |
11635 | 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' |
11636 | fi |
11637 | fi |
11638 | ;; |
11639 | |
11640 | beos*) |
11641 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
11642 | allow_undefined_flag_CXX=unsupported |
11643 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
11644 | # support --undefined. This deserves some investigation. FIXME |
11645 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11646 | else |
11647 | ld_shlibs_CXX=no |
11648 | fi |
11649 | ;; |
11650 | |
11651 | chorus*) |
11652 | case $cc_basename in |
11653 | *) |
11654 | # FIXME: insert proper C++ library support |
11655 | ld_shlibs_CXX=no |
11656 | ;; |
11657 | esac |
11658 | ;; |
11659 | |
11660 | cygwin* | mingw* | pw32*) |
11661 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
11662 | # as there is no search path for DLLs. |
11663 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11664 | allow_undefined_flag_CXX=unsupported |
11665 | always_export_symbols_CXX=no |
11666 | enable_shared_with_static_runtimes_CXX=yes |
11667 | |
11668 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
11669 | 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' |
11670 | # If the export-symbols file already is a .def file (1st line |
11671 | # is EXPORTS), use it as is; otherwise, prepend... |
11672 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
11673 | cp $export_symbols $output_objdir/$soname.def; |
11674 | else |
11675 | echo EXPORTS > $output_objdir/$soname.def; |
11676 | cat $export_symbols >> $output_objdir/$soname.def; |
11677 | fi~ |
11678 | $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' |
11679 | else |
11680 | ld_shlibs_CXX=no |
11681 | fi |
11682 | ;; |
11683 | darwin* | rhapsody*) |
11684 | archive_cmds_need_lc_CXX=no |
11685 | hardcode_direct_CXX=no |
11686 | hardcode_automatic_CXX=yes |
11687 | hardcode_shlibpath_var_CXX=unsupported |
11688 | whole_archive_flag_spec_CXX='' |
11689 | link_all_deplibs_CXX=yes |
11690 | allow_undefined_flag_CXX="$_lt_dar_allow_undefined" |
11691 | if test "$GXX" = yes ; then |
11692 | output_verbose_link_cmd='echo' |
11693 | archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
11694 | module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
11695 | archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
11696 | module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
11697 | if test "$lt_cv_apple_cc_single_mod" != "yes"; then |
11698 | 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${_lt_dsymutil}" |
11699 | archive_expsym_cmds_CXX="sed '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${_lt_dar_export_syms}${_lt_dsymutil}" |
11700 | fi |
11701 | else |
11702 | case $cc_basename in |
11703 | xlc*) |
11704 | output_verbose_link_cmd='echo' |
11705 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
11706 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11707 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11708 | 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
11709 | 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}' |
11710 | ;; |
11711 | *) |
11712 | ld_shlibs_CXX=no |
11713 | ;; |
11714 | esac |
11715 | fi |
11716 | ;; |
11717 | |
11718 | dgux*) |
11719 | case $cc_basename in |
11720 | ec++*) |
11721 | # FIXME: insert proper C++ library support |
11722 | ld_shlibs_CXX=no |
11723 | ;; |
11724 | ghcx*) |
11725 | # Green Hills C++ Compiler |
11726 | # FIXME: insert proper C++ library support |
11727 | ld_shlibs_CXX=no |
11728 | ;; |
11729 | *) |
11730 | # FIXME: insert proper C++ library support |
11731 | ld_shlibs_CXX=no |
11732 | ;; |
11733 | esac |
11734 | ;; |
11735 | freebsd[12]*) |
11736 | # C++ shared libraries reported to be fairly broken before switch to ELF |
11737 | ld_shlibs_CXX=no |
11738 | ;; |
11739 | freebsd-elf*) |
11740 | archive_cmds_need_lc_CXX=no |
11741 | ;; |
11742 | freebsd* | dragonfly*) |
11743 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
11744 | # conventions |
11745 | ld_shlibs_CXX=yes |
11746 | ;; |
11747 | gnu*) |
11748 | ;; |
11749 | hpux9*) |
11750 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11751 | hardcode_libdir_separator_CXX=: |
11752 | export_dynamic_flag_spec_CXX='${wl}-E' |
11753 | hardcode_direct_CXX=yes |
11754 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11755 | # but as the default |
11756 | # location of the library. |
11757 | |
11758 | case $cc_basename in |
11759 | CC*) |
11760 | # FIXME: insert proper C++ library support |
11761 | ld_shlibs_CXX=no |
11762 | ;; |
11763 | aCC*) |
11764 | 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' |
11765 | # Commands to make compiler produce verbose output that lists |
11766 | # what "hidden" libraries, object files and flags are used when |
11767 | # linking a shared library. |
11768 | # |
11769 | # There doesn't appear to be a way to prevent this compiler from |
11770 | # explicitly linking system object files so we need to strip them |
11771 | # from the output so that they don't get included in the library |
11772 | # dependencies. |
11773 | 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' |
11774 | ;; |
11775 | *) |
11776 | if test "$GXX" = yes; then |
11777 | 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' |
11778 | else |
11779 | # FIXME: insert proper C++ library support |
11780 | ld_shlibs_CXX=no |
11781 | fi |
11782 | ;; |
11783 | esac |
11784 | ;; |
11785 | hpux10*|hpux11*) |
11786 | if test $with_gnu_ld = no; then |
11787 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11788 | hardcode_libdir_separator_CXX=: |
11789 | |
11790 | case $host_cpu in |
11791 | hppa*64*|ia64*) ;; |
11792 | *) |
11793 | export_dynamic_flag_spec_CXX='${wl}-E' |
11794 | ;; |
11795 | esac |
11796 | fi |
11797 | case $host_cpu in |
11798 | hppa*64*|ia64*) |
11799 | hardcode_direct_CXX=no |
11800 | hardcode_shlibpath_var_CXX=no |
11801 | ;; |
11802 | *) |
11803 | hardcode_direct_CXX=yes |
11804 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11805 | # but as the default |
11806 | # location of the library. |
11807 | ;; |
11808 | esac |
11809 | |
11810 | case $cc_basename in |
11811 | CC*) |
11812 | # FIXME: insert proper C++ library support |
11813 | ld_shlibs_CXX=no |
11814 | ;; |
11815 | aCC*) |
11816 | case $host_cpu in |
11817 | hppa*64*) |
11818 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11819 | ;; |
11820 | ia64*) |
11821 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11822 | ;; |
11823 | *) |
11824 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11825 | ;; |
11826 | esac |
11827 | # Commands to make compiler produce verbose output that lists |
11828 | # what "hidden" libraries, object files and flags are used when |
11829 | # linking a shared library. |
11830 | # |
11831 | # There doesn't appear to be a way to prevent this compiler from |
11832 | # explicitly linking system object files so we need to strip them |
11833 | # from the output so that they don't get included in the library |
11834 | # dependencies. |
11835 | 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' |
11836 | ;; |
11837 | *) |
11838 | if test "$GXX" = yes; then |
11839 | if test $with_gnu_ld = no; then |
11840 | case $host_cpu in |
11841 | hppa*64*) |
11842 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11843 | ;; |
11844 | ia64*) |
11845 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11846 | ;; |
11847 | *) |
11848 | 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' |
11849 | ;; |
11850 | esac |
11851 | fi |
11852 | else |
11853 | # FIXME: insert proper C++ library support |
11854 | ld_shlibs_CXX=no |
11855 | fi |
11856 | ;; |
11857 | esac |
11858 | ;; |
11859 | interix[3-9]*) |
11860 | hardcode_direct_CXX=no |
11861 | hardcode_shlibpath_var_CXX=no |
11862 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11863 | export_dynamic_flag_spec_CXX='${wl}-E' |
11864 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
11865 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
11866 | # default) and relocated if they conflict, which is a slow very memory |
11867 | # consuming and fragmenting process. To avoid this, we pick a random, |
11868 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
11869 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
11870 | 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' |
11871 | 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' |
11872 | ;; |
11873 | irix5* | irix6*) |
11874 | case $cc_basename in |
11875 | CC*) |
11876 | # SGI C++ |
11877 | 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' |
11878 | |
11879 | # Archives containing C++ object files must be created using |
11880 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
11881 | # necessary to make sure instantiated templates are included |
11882 | # in the archive. |
11883 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
11884 | ;; |
11885 | *) |
11886 | if test "$GXX" = yes; then |
11887 | if test "$with_gnu_ld" = no; then |
11888 | 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' |
11889 | else |
11890 | 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' |
11891 | fi |
11892 | fi |
11893 | link_all_deplibs_CXX=yes |
11894 | ;; |
11895 | esac |
11896 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11897 | hardcode_libdir_separator_CXX=: |
11898 | ;; |
11899 | linux* | k*bsd*-gnu) |
11900 | case $cc_basename in |
11901 | KCC*) |
11902 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11903 | |
11904 | # KCC will only create a shared library if the output file |
11905 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11906 | # to its proper name (with version) after linking. |
11907 | 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' |
11908 | 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' |
11909 | # Commands to make compiler produce verbose output that lists |
11910 | # what "hidden" libraries, object files and flags are used when |
11911 | # linking a shared library. |
11912 | # |
11913 | # There doesn't appear to be a way to prevent this compiler from |
11914 | # explicitly linking system object files so we need to strip them |
11915 | # from the output so that they don't get included in the library |
11916 | # dependencies. |
11917 | 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' |
11918 | |
11919 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
11920 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11921 | |
11922 | # Archives containing C++ object files must be created using |
11923 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11924 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11925 | ;; |
11926 | icpc*) |
11927 | # Intel C++ |
11928 | with_gnu_ld=yes |
11929 | # version 8.0 and above of icpc choke on multiply defined symbols |
11930 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
11931 | # earlier do not add the objects themselves. |
11932 | case `$CC -V 2>&1` in |
11933 | *"Version 7."*) |
11934 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11935 | 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' |
11936 | ;; |
11937 | *) # Version 8.0 or newer |
11938 | tmp_idyn= |
11939 | case $host_cpu in |
11940 | ia64*) tmp_idyn=' -i_dynamic';; |
11941 | esac |
11942 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11943 | 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' |
11944 | ;; |
11945 | esac |
11946 | archive_cmds_need_lc_CXX=no |
11947 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11948 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11949 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
11950 | ;; |
11951 | pgCC* | pgcpp*) |
11952 | # Portland Group C++ compiler |
11953 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
11954 | 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' |
11955 | |
11956 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11957 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11958 | 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' |
11959 | ;; |
11960 | cxx*) |
11961 | # Compaq C++ |
11962 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11963 | 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' |
11964 | |
11965 | runpath_var=LD_RUN_PATH |
11966 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11967 | hardcode_libdir_separator_CXX=: |
11968 | |
11969 | # Commands to make compiler produce verbose output that lists |
11970 | # what "hidden" libraries, object files and flags are used when |
11971 | # linking a shared library. |
11972 | # |
11973 | # There doesn't appear to be a way to prevent this compiler from |
11974 | # explicitly linking system object files so we need to strip them |
11975 | # from the output so that they don't get included in the library |
11976 | # dependencies. |
11977 | 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' |
11978 | ;; |
11979 | *) |
11980 | case `$CC -V 2>&1 | sed 5q` in |
11981 | *Sun\ C*) |
11982 | # Sun C++ 5.9 |
11983 | no_undefined_flag_CXX=' -zdefs' |
11984 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11985 | archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' |
11986 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11987 | whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
11988 | |
11989 | # Not sure whether something based on |
11990 | # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 |
11991 | # would be better. |
11992 | output_verbose_link_cmd='echo' |
11993 | |
11994 | # Archives containing C++ object files must be created using |
11995 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
11996 | # necessary to make sure instantiated templates are included |
11997 | # in the archive. |
11998 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
11999 | ;; |
12000 | esac |
12001 | ;; |
12002 | esac |
12003 | ;; |
12004 | lynxos*) |
12005 | # FIXME: insert proper C++ library support |
12006 | ld_shlibs_CXX=no |
12007 | ;; |
12008 | m88k*) |
12009 | # FIXME: insert proper C++ library support |
12010 | ld_shlibs_CXX=no |
12011 | ;; |
12012 | mvs*) |
12013 | case $cc_basename in |
12014 | cxx*) |
12015 | # FIXME: insert proper C++ library support |
12016 | ld_shlibs_CXX=no |
12017 | ;; |
12018 | *) |
12019 | # FIXME: insert proper C++ library support |
12020 | ld_shlibs_CXX=no |
12021 | ;; |
12022 | esac |
12023 | ;; |
12024 | netbsd*) |
12025 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
12026 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
12027 | wlarc= |
12028 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
12029 | hardcode_direct_CXX=yes |
12030 | hardcode_shlibpath_var_CXX=no |
12031 | fi |
12032 | # Workaround some broken pre-1.5 toolchains |
12033 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
12034 | ;; |
12035 | openbsd2*) |
12036 | # C++ shared libraries are fairly broken |
12037 | ld_shlibs_CXX=no |
12038 | ;; |
12039 | openbsd*) |
12040 | if test -f /usr/libexec/ld.so; then |
12041 | hardcode_direct_CXX=yes |
12042 | hardcode_shlibpath_var_CXX=no |
12043 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
12044 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
12045 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
12046 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
12047 | export_dynamic_flag_spec_CXX='${wl}-E' |
12048 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
12049 | fi |
12050 | output_verbose_link_cmd='echo' |
12051 | else |
12052 | ld_shlibs_CXX=no |
12053 | fi |
12054 | ;; |
12055 | osf3*) |
12056 | case $cc_basename in |
12057 | KCC*) |
12058 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
12059 | |
12060 | # KCC will only create a shared library if the output file |
12061 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
12062 | # to its proper name (with version) after linking. |
12063 | 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' |
12064 | |
12065 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
12066 | hardcode_libdir_separator_CXX=: |
12067 | |
12068 | # Archives containing C++ object files must be created using |
12069 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
12070 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
12071 | |
12072 | ;; |
12073 | RCC*) |
12074 | # Rational C++ 2.4.1 |
12075 | # FIXME: insert proper C++ library support |
12076 | ld_shlibs_CXX=no |
12077 | ;; |
12078 | cxx*) |
12079 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
12080 | 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' |
12081 | |
12082 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
12083 | hardcode_libdir_separator_CXX=: |
12084 | |
12085 | # Commands to make compiler produce verbose output that lists |
12086 | # what "hidden" libraries, object files and flags are used when |
12087 | # linking a shared library. |
12088 | # |
12089 | # There doesn't appear to be a way to prevent this compiler from |
12090 | # explicitly linking system object files so we need to strip them |
12091 | # from the output so that they don't get included in the library |
12092 | # dependencies. |
12093 | 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' |
12094 | ;; |
12095 | *) |
12096 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
12097 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
12098 | 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' |
12099 | |
12100 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
12101 | hardcode_libdir_separator_CXX=: |
12102 | |
12103 | # Commands to make compiler produce verbose output that lists |
12104 | # what "hidden" libraries, object files and flags are used when |
12105 | # linking a shared library. |
12106 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
12107 | |
12108 | else |
12109 | # FIXME: insert proper C++ library support |
12110 | ld_shlibs_CXX=no |
12111 | fi |
12112 | ;; |
12113 | esac |
12114 | ;; |
12115 | osf4* | osf5*) |
12116 | case $cc_basename in |
12117 | KCC*) |
12118 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
12119 | |
12120 | # KCC will only create a shared library if the output file |
12121 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
12122 | # to its proper name (with version) after linking. |
12123 | 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' |
12124 | |
12125 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
12126 | hardcode_libdir_separator_CXX=: |
12127 | |
12128 | # Archives containing C++ object files must be created using |
12129 | # the KAI C++ compiler. |
12130 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
12131 | ;; |
12132 | RCC*) |
12133 | # Rational C++ 2.4.1 |
12134 | # FIXME: insert proper C++ library support |
12135 | ld_shlibs_CXX=no |
12136 | ;; |
12137 | cxx*) |
12138 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
12139 | 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' |
12140 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
12141 | echo "-hidden">> $lib.exp~ |
12142 | $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~ |
12143 | $rm $lib.exp' |
12144 | |
12145 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
12146 | hardcode_libdir_separator_CXX=: |
12147 | |
12148 | # Commands to make compiler produce verbose output that lists |
12149 | # what "hidden" libraries, object files and flags are used when |
12150 | # linking a shared library. |
12151 | # |
12152 | # There doesn't appear to be a way to prevent this compiler from |
12153 | # explicitly linking system object files so we need to strip them |
12154 | # from the output so that they don't get included in the library |
12155 | # dependencies. |
12156 | 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' |
12157 | ;; |
12158 | *) |
12159 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
12160 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
12161 | 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' |
12162 | |
12163 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
12164 | hardcode_libdir_separator_CXX=: |
12165 | |
12166 | # Commands to make compiler produce verbose output that lists |
12167 | # what "hidden" libraries, object files and flags are used when |
12168 | # linking a shared library. |
12169 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
12170 | |
12171 | else |
12172 | # FIXME: insert proper C++ library support |
12173 | ld_shlibs_CXX=no |
12174 | fi |
12175 | ;; |
12176 | esac |
12177 | ;; |
12178 | psos*) |
12179 | # FIXME: insert proper C++ library support |
12180 | ld_shlibs_CXX=no |
12181 | ;; |
12182 | sunos4*) |
12183 | case $cc_basename in |
12184 | CC*) |
12185 | # Sun C++ 4.x |
12186 | # FIXME: insert proper C++ library support |
12187 | ld_shlibs_CXX=no |
12188 | ;; |
12189 | lcc*) |
12190 | # Lucid |
12191 | # FIXME: insert proper C++ library support |
12192 | ld_shlibs_CXX=no |
12193 | ;; |
12194 | *) |
12195 | # FIXME: insert proper C++ library support |
12196 | ld_shlibs_CXX=no |
12197 | ;; |
12198 | esac |
12199 | ;; |
12200 | solaris*) |
12201 | case $cc_basename in |
12202 | CC*) |
12203 | # Sun C++ 4.2, 5.x and Centerline C++ |
12204 | archive_cmds_need_lc_CXX=yes |
12205 | no_undefined_flag_CXX=' -zdefs' |
12206 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
12207 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
12208 | $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' |
12209 | |
12210 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
12211 | hardcode_shlibpath_var_CXX=no |
12212 | case $host_os in |
12213 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
12214 | *) |
12215 | # The compiler driver will combine and reorder linker options, |
12216 | # but understands `-z linker_flag'. |
12217 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
12218 | whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' |
12219 | ;; |
12220 | esac |
12221 | link_all_deplibs_CXX=yes |
12222 | |
12223 | output_verbose_link_cmd='echo' |
12224 | |
12225 | # Archives containing C++ object files must be created using |
12226 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
12227 | # necessary to make sure instantiated templates are included |
12228 | # in the archive. |
12229 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
12230 | ;; |
12231 | gcx*) |
12232 | # Green Hills C++ Compiler |
12233 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
12234 | |
12235 | # The C++ compiler must be used to create the archive. |
12236 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
12237 | ;; |
12238 | *) |
12239 | # GNU C++ compiler with Solaris linker |
12240 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
12241 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
12242 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
12243 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
12244 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
12245 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
12246 | |
12247 | # Commands to make compiler produce verbose output that lists |
12248 | # what "hidden" libraries, object files and flags are used when |
12249 | # linking a shared library. |
12250 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
12251 | else |
12252 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
12253 | # platform. |
12254 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
12255 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
12256 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
12257 | |
12258 | # Commands to make compiler produce verbose output that lists |
12259 | # what "hidden" libraries, object files and flags are used when |
12260 | # linking a shared library. |
12261 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
12262 | fi |
12263 | |
12264 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
12265 | case $host_os in |
12266 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
12267 | *) |
12268 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
12269 | ;; |
12270 | esac |
12271 | fi |
12272 | ;; |
12273 | esac |
12274 | ;; |
12275 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
12276 | no_undefined_flag_CXX='${wl}-z,text' |
12277 | archive_cmds_need_lc_CXX=no |
12278 | hardcode_shlibpath_var_CXX=no |
12279 | runpath_var='LD_RUN_PATH' |
12280 | |
12281 | case $cc_basename in |
12282 | CC*) |
12283 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12284 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12285 | ;; |
12286 | *) |
12287 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12288 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12289 | ;; |
12290 | esac |
12291 | ;; |
12292 | sysv5* | sco3.2v5* | sco5v6*) |
12293 | # Note: We can NOT use -z defs as we might desire, because we do not |
12294 | # link with -lc, and that would cause any symbols used from libc to |
12295 | # always be unresolved, which means just about no library would |
12296 | # ever link correctly. If we're not using GNU ld we use -z text |
12297 | # though, which does catch some bad symbols but isn't as heavy-handed |
12298 | # as -z defs. |
12299 | # For security reasons, it is highly recommended that you always |
12300 | # use absolute paths for naming shared libraries, and exclude the |
12301 | # DT_RUNPATH tag from executables and libraries. But doing so |
12302 | # requires that you compile everything twice, which is a pain. |
12303 | # So that behaviour is only enabled if SCOABSPATH is set to a |
12304 | # non-empty value in the environment. Most likely only useful for |
12305 | # creating official distributions of packages. |
12306 | # This is a hack until libtool officially supports absolute path |
12307 | # names for shared libraries. |
12308 | no_undefined_flag_CXX='${wl}-z,text' |
12309 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
12310 | archive_cmds_need_lc_CXX=no |
12311 | hardcode_shlibpath_var_CXX=no |
12312 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
12313 | hardcode_libdir_separator_CXX=':' |
12314 | link_all_deplibs_CXX=yes |
12315 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
12316 | runpath_var='LD_RUN_PATH' |
12317 | |
12318 | case $cc_basename in |
12319 | CC*) |
12320 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12321 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12322 | ;; |
12323 | *) |
12324 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12325 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12326 | ;; |
12327 | esac |
12328 | ;; |
12329 | tandem*) |
12330 | case $cc_basename in |
12331 | NCC*) |
12332 | # NonStop-UX NCC 3.20 |
12333 | # FIXME: insert proper C++ library support |
12334 | ld_shlibs_CXX=no |
12335 | ;; |
12336 | *) |
12337 | # FIXME: insert proper C++ library support |
12338 | ld_shlibs_CXX=no |
12339 | ;; |
12340 | esac |
12341 | ;; |
12342 | vxworks*) |
12343 | # FIXME: insert proper C++ library support |
12344 | ld_shlibs_CXX=no |
12345 | ;; |
12346 | *) |
12347 | # FIXME: insert proper C++ library support |
12348 | ld_shlibs_CXX=no |
12349 | ;; |
12350 | esac |
12351 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12352 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
12353 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12354 | |
12355 | GCC_CXX="$GXX" |
12356 | LD_CXX="$LD" |
12357 | |
12358 | cat > conftest.$ac_ext <<EOF |
12359 | class Foo |
12360 | { |
12361 | public: |
12362 | Foo (void) { a = 0; } |
12363 | private: |
12364 | int a; |
12365 | }; |
12366 | EOF |
12367 | |
12368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12369 | (eval $ac_compile) 2>&5 |
12370 | ac_status=$? |
12371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12372 | (exit $ac_status); }; then |
12373 | # Parse the compiler output and extract the necessary |
12374 | # objects, libraries and library flags. |
12375 | |
12376 | # Sentinel used to keep track of whether or not we are before |
12377 | # the conftest object file. |
12378 | pre_test_object_deps_done=no |
12379 | |
12380 | # The `*' in the case matches for architectures that use `case' in |
12381 | # $output_verbose_cmd can trigger glob expansion during the loop |
12382 | # eval without this substitution. |
12383 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
12384 | |
12385 | for p in `eval $output_verbose_link_cmd`; do |
12386 | case $p in |
12387 | |
12388 | -L* | -R* | -l*) |
12389 | # Some compilers place space between "-{L,R}" and the path. |
12390 | # Remove the space. |
12391 | if test $p = "-L" \ |
12392 | || test $p = "-R"; then |
12393 | prev=$p |
12394 | continue |
12395 | else |
12396 | prev= |
12397 | fi |
12398 | |
12399 | if test "$pre_test_object_deps_done" = no; then |
12400 | case $p in |
12401 | -L* | -R*) |
12402 | # Internal compiler library paths should come after those |
12403 | # provided the user. The postdeps already come after the |
12404 | # user supplied libs so there is no need to process them. |
12405 | if test -z "$compiler_lib_search_path_CXX"; then |
12406 | compiler_lib_search_path_CXX="${prev}${p}" |
12407 | else |
12408 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
12409 | fi |
12410 | ;; |
12411 | # The "-l" case would never come before the object being |
12412 | # linked, so don't bother handling this case. |
12413 | esac |
12414 | else |
12415 | if test -z "$postdeps_CXX"; then |
12416 | postdeps_CXX="${prev}${p}" |
12417 | else |
12418 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
12419 | fi |
12420 | fi |
12421 | ;; |
12422 | |
12423 | *.$objext) |
12424 | # This assumes that the test object file only shows up |
12425 | # once in the compiler output. |
12426 | if test "$p" = "conftest.$objext"; then |
12427 | pre_test_object_deps_done=yes |
12428 | continue |
12429 | fi |
12430 | |
12431 | if test "$pre_test_object_deps_done" = no; then |
12432 | if test -z "$predep_objects_CXX"; then |
12433 | predep_objects_CXX="$p" |
12434 | else |
12435 | predep_objects_CXX="$predep_objects_CXX $p" |
12436 | fi |
12437 | else |
12438 | if test -z "$postdep_objects_CXX"; then |
12439 | postdep_objects_CXX="$p" |
12440 | else |
12441 | postdep_objects_CXX="$postdep_objects_CXX $p" |
12442 | fi |
12443 | fi |
12444 | ;; |
12445 | |
12446 | *) ;; # Ignore the rest. |
12447 | |
12448 | esac |
12449 | done |
12450 | |
12451 | # Clean up. |
12452 | rm -f a.out a.exe |
12453 | else |
12454 | echo "libtool.m4: error: problem compiling CXX test program" |
12455 | fi |
12456 | |
12457 | $rm -f confest.$objext |
12458 | |
12459 | compiler_lib_search_dirs_CXX= |
12460 | if test -n "$compiler_lib_search_path_CXX"; then |
12461 | compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` |
12462 | fi |
12463 | |
12464 | # PORTME: override above test on systems where it is broken |
12465 | case $host_os in |
12466 | interix[3-9]*) |
12467 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
12468 | # hack all around it, let's just trust "g++" to DTRT. |
12469 | predep_objects_CXX= |
12470 | postdep_objects_CXX= |
12471 | postdeps_CXX= |
12472 | ;; |
12473 | |
12474 | linux*) |
12475 | case `$CC -V 2>&1 | sed 5q` in |
12476 | *Sun\ C*) |
12477 | # Sun C++ 5.9 |
12478 | # |
12479 | # The more standards-conforming stlport4 library is |
12480 | # incompatible with the Cstd library. Avoid specifying |
12481 | # it if it's in CXXFLAGS. Ignore libCrun as |
12482 | # -library=stlport4 depends on it. |
12483 | case " $CXX $CXXFLAGS " in |
12484 | *" -library=stlport4 "*) |
12485 | solaris_use_stlport4=yes |
12486 | ;; |
12487 | esac |
12488 | if test "$solaris_use_stlport4" != yes; then |
12489 | postdeps_CXX='-library=Cstd -library=Crun' |
12490 | fi |
12491 | ;; |
12492 | esac |
12493 | ;; |
12494 | |
12495 | solaris*) |
12496 | case $cc_basename in |
12497 | CC*) |
12498 | # The more standards-conforming stlport4 library is |
12499 | # incompatible with the Cstd library. Avoid specifying |
12500 | # it if it's in CXXFLAGS. Ignore libCrun as |
12501 | # -library=stlport4 depends on it. |
12502 | case " $CXX $CXXFLAGS " in |
12503 | *" -library=stlport4 "*) |
12504 | solaris_use_stlport4=yes |
12505 | ;; |
12506 | esac |
12507 | |
12508 | # Adding this requires a known-good setup of shared libraries for |
12509 | # Sun compiler versions before 5.6, else PIC objects from an old |
12510 | # archive will be linked into the output, leading to subtle bugs. |
12511 | if test "$solaris_use_stlport4" != yes; then |
12512 | postdeps_CXX='-library=Cstd -library=Crun' |
12513 | fi |
12514 | ;; |
12515 | esac |
12516 | ;; |
12517 | esac |
12518 | |
12519 | case " $postdeps_CXX " in |
12520 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
12521 | esac |
12522 | |
12523 | lt_prog_compiler_wl_CXX= |
12524 | lt_prog_compiler_pic_CXX= |
12525 | lt_prog_compiler_static_CXX= |
12526 | |
12527 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
12528 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
12529 | |
12530 | # C++ specific cases for pic, static, wl, etc. |
12531 | if test "$GXX" = yes; then |
12532 | lt_prog_compiler_wl_CXX='-Wl,' |
12533 | lt_prog_compiler_static_CXX='-static' |
12534 | |
12535 | case $host_os in |
12536 | aix*) |
12537 | # All AIX code is PIC. |
12538 | if test "$host_cpu" = ia64; then |
12539 | # AIX 5 now supports IA64 processor |
12540 | lt_prog_compiler_static_CXX='-Bstatic' |
12541 | fi |
12542 | ;; |
12543 | amigaos*) |
12544 | # FIXME: we need at least 68020 code to build shared libraries, but |
12545 | # adding the `-m68020' flag to GCC prevents building anything better, |
12546 | # like `-m68040'. |
12547 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
12548 | ;; |
12549 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
12550 | # PIC is the default for these OSes. |
12551 | ;; |
12552 | mingw* | cygwin* | os2* | pw32*) |
12553 | # This hack is so that the source file can tell whether it is being |
12554 | # built for inclusion in a dll (and should export symbols for example). |
12555 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
12556 | # (--disable-auto-import) libraries |
12557 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
12558 | ;; |
12559 | darwin* | rhapsody*) |
12560 | # PIC is the default on this platform |
12561 | # Common symbols not allowed in MH_DYLIB files |
12562 | lt_prog_compiler_pic_CXX='-fno-common' |
12563 | ;; |
12564 | *djgpp*) |
12565 | # DJGPP does not support shared libraries at all |
12566 | lt_prog_compiler_pic_CXX= |
12567 | ;; |
12568 | interix[3-9]*) |
12569 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
12570 | # Instead, we relocate shared libraries at runtime. |
12571 | ;; |
12572 | sysv4*MP*) |
12573 | if test -d /usr/nec; then |
12574 | lt_prog_compiler_pic_CXX=-Kconform_pic |
12575 | fi |
12576 | ;; |
12577 | hpux*) |
12578 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
12579 | # not for PA HP-UX. |
12580 | case $host_cpu in |
12581 | hppa*64*|ia64*) |
12582 | ;; |
12583 | *) |
12584 | lt_prog_compiler_pic_CXX='-fPIC' |
12585 | ;; |
12586 | esac |
12587 | ;; |
12588 | *) |
12589 | lt_prog_compiler_pic_CXX='-fPIC' |
12590 | ;; |
12591 | esac |
12592 | else |
12593 | case $host_os in |
12594 | aix[4-9]*) |
12595 | # All AIX code is PIC. |
12596 | if test "$host_cpu" = ia64; then |
12597 | # AIX 5 now supports IA64 processor |
12598 | lt_prog_compiler_static_CXX='-Bstatic' |
12599 | else |
12600 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
12601 | fi |
12602 | ;; |
12603 | chorus*) |
12604 | case $cc_basename in |
12605 | cxch68*) |
12606 | # Green Hills C++ Compiler |
12607 | # _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" |
12608 | ;; |
12609 | esac |
12610 | ;; |
12611 | darwin*) |
12612 | # PIC is the default on this platform |
12613 | # Common symbols not allowed in MH_DYLIB files |
12614 | case $cc_basename in |
12615 | xlc*) |
12616 | lt_prog_compiler_pic_CXX='-qnocommon' |
12617 | lt_prog_compiler_wl_CXX='-Wl,' |
12618 | ;; |
12619 | esac |
12620 | ;; |
12621 | dgux*) |
12622 | case $cc_basename in |
12623 | ec++*) |
12624 | lt_prog_compiler_pic_CXX='-KPIC' |
12625 | ;; |
12626 | ghcx*) |
12627 | # Green Hills C++ Compiler |
12628 | lt_prog_compiler_pic_CXX='-pic' |
12629 | ;; |
12630 | *) |
12631 | ;; |
12632 | esac |
12633 | ;; |
12634 | freebsd* | dragonfly*) |
12635 | # FreeBSD uses GNU C++ |
12636 | ;; |
12637 | hpux9* | hpux10* | hpux11*) |
12638 | case $cc_basename in |
12639 | CC*) |
12640 | lt_prog_compiler_wl_CXX='-Wl,' |
12641 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12642 | if test "$host_cpu" != ia64; then |
12643 | lt_prog_compiler_pic_CXX='+Z' |
12644 | fi |
12645 | ;; |
12646 | aCC*) |
12647 | lt_prog_compiler_wl_CXX='-Wl,' |
12648 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12649 | case $host_cpu in |
12650 | hppa*64*|ia64*) |
12651 | # +Z the default |
12652 | ;; |
12653 | *) |
12654 | lt_prog_compiler_pic_CXX='+Z' |
12655 | ;; |
12656 | esac |
12657 | ;; |
12658 | *) |
12659 | ;; |
12660 | esac |
12661 | ;; |
12662 | interix*) |
12663 | # This is c89, which is MS Visual C++ (no shared libs) |
12664 | # Anyone wants to do a port? |
12665 | ;; |
12666 | irix5* | irix6* | nonstopux*) |
12667 | case $cc_basename in |
12668 | CC*) |
12669 | lt_prog_compiler_wl_CXX='-Wl,' |
12670 | lt_prog_compiler_static_CXX='-non_shared' |
12671 | # CC pic flag -KPIC is the default. |
12672 | ;; |
12673 | *) |
12674 | ;; |
12675 | esac |
12676 | ;; |
12677 | linux* | k*bsd*-gnu) |
12678 | case $cc_basename in |
12679 | KCC*) |
12680 | # KAI C++ Compiler |
12681 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12682 | lt_prog_compiler_pic_CXX='-fPIC' |
12683 | ;; |
12684 | icpc* | ecpc*) |
12685 | # Intel C++ |
12686 | lt_prog_compiler_wl_CXX='-Wl,' |
12687 | lt_prog_compiler_pic_CXX='-KPIC' |
12688 | lt_prog_compiler_static_CXX='-static' |
12689 | ;; |
12690 | pgCC* | pgcpp*) |
12691 | # Portland Group C++ compiler. |
12692 | lt_prog_compiler_wl_CXX='-Wl,' |
12693 | lt_prog_compiler_pic_CXX='-fpic' |
12694 | lt_prog_compiler_static_CXX='-Bstatic' |
12695 | ;; |
12696 | cxx*) |
12697 | # Compaq C++ |
12698 | # Make sure the PIC flag is empty. It appears that all Alpha |
12699 | # Linux and Compaq Tru64 Unix objects are PIC. |
12700 | lt_prog_compiler_pic_CXX= |
12701 | lt_prog_compiler_static_CXX='-non_shared' |
12702 | ;; |
12703 | *) |
12704 | case `$CC -V 2>&1 | sed 5q` in |
12705 | *Sun\ C*) |
12706 | # Sun C++ 5.9 |
12707 | lt_prog_compiler_pic_CXX='-KPIC' |
12708 | lt_prog_compiler_static_CXX='-Bstatic' |
12709 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12710 | ;; |
12711 | esac |
12712 | ;; |
12713 | esac |
12714 | ;; |
12715 | lynxos*) |
12716 | ;; |
12717 | m88k*) |
12718 | ;; |
12719 | mvs*) |
12720 | case $cc_basename in |
12721 | cxx*) |
12722 | lt_prog_compiler_pic_CXX='-W c,exportall' |
12723 | ;; |
12724 | *) |
12725 | ;; |
12726 | esac |
12727 | ;; |
12728 | netbsd*) |
12729 | ;; |
12730 | osf3* | osf4* | osf5*) |
12731 | case $cc_basename in |
12732 | KCC*) |
12733 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12734 | ;; |
12735 | RCC*) |
12736 | # Rational C++ 2.4.1 |
12737 | lt_prog_compiler_pic_CXX='-pic' |
12738 | ;; |
12739 | cxx*) |
12740 | # Digital/Compaq C++ |
12741 | lt_prog_compiler_wl_CXX='-Wl,' |
12742 | # Make sure the PIC flag is empty. It appears that all Alpha |
12743 | # Linux and Compaq Tru64 Unix objects are PIC. |
12744 | lt_prog_compiler_pic_CXX= |
12745 | lt_prog_compiler_static_CXX='-non_shared' |
12746 | ;; |
12747 | *) |
12748 | ;; |
12749 | esac |
12750 | ;; |
12751 | psos*) |
12752 | ;; |
12753 | solaris*) |
12754 | case $cc_basename in |
12755 | CC*) |
12756 | # Sun C++ 4.2, 5.x and Centerline C++ |
12757 | lt_prog_compiler_pic_CXX='-KPIC' |
12758 | lt_prog_compiler_static_CXX='-Bstatic' |
12759 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12760 | ;; |
12761 | gcx*) |
12762 | # Green Hills C++ Compiler |
12763 | lt_prog_compiler_pic_CXX='-PIC' |
12764 | ;; |
12765 | *) |
12766 | ;; |
12767 | esac |
12768 | ;; |
12769 | sunos4*) |
12770 | case $cc_basename in |
12771 | CC*) |
12772 | # Sun C++ 4.x |
12773 | lt_prog_compiler_pic_CXX='-pic' |
12774 | lt_prog_compiler_static_CXX='-Bstatic' |
12775 | ;; |
12776 | lcc*) |
12777 | # Lucid |
12778 | lt_prog_compiler_pic_CXX='-pic' |
12779 | ;; |
12780 | *) |
12781 | ;; |
12782 | esac |
12783 | ;; |
12784 | tandem*) |
12785 | case $cc_basename in |
12786 | NCC*) |
12787 | # NonStop-UX NCC 3.20 |
12788 | lt_prog_compiler_pic_CXX='-KPIC' |
12789 | ;; |
12790 | *) |
12791 | ;; |
12792 | esac |
12793 | ;; |
12794 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
12795 | case $cc_basename in |
12796 | CC*) |
12797 | lt_prog_compiler_wl_CXX='-Wl,' |
12798 | lt_prog_compiler_pic_CXX='-KPIC' |
12799 | lt_prog_compiler_static_CXX='-Bstatic' |
12800 | ;; |
12801 | esac |
12802 | ;; |
12803 | vxworks*) |
12804 | ;; |
12805 | *) |
12806 | lt_prog_compiler_can_build_shared_CXX=no |
12807 | ;; |
12808 | esac |
12809 | fi |
12810 | |
12811 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
12812 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
12813 | |
12814 | # |
12815 | # Check to make sure the PIC flag actually works. |
12816 | # |
12817 | if test -n "$lt_prog_compiler_pic_CXX"; then |
12818 | |
12819 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
12820 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
12821 | if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then |
12822 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12823 | else |
12824 | lt_cv_prog_compiler_pic_works_CXX=no |
12825 | ac_outfile=conftest.$ac_objext |
12826 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
12827 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
12828 | # Insert the option either (1) after the last *FLAGS variable, or |
12829 | # (2) before a word containing "conftest.", or (3) at the end. |
12830 | # Note that $ac_compile itself does not contain backslashes and begins |
12831 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12832 | # The option is referenced via a variable to avoid confusing sed. |
12833 | lt_compile=`echo "$ac_compile" | $SED \ |
12834 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12835 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12836 | -e 's:$: $lt_compiler_flag:'` |
12837 | (eval echo "\"\$as_me:12837: $lt_compile\"" >&5) |
12838 | (eval "$lt_compile" 2>conftest.err) |
12839 | ac_status=$? |
12840 | cat conftest.err >&5 |
12841 | echo "$as_me:12841: \$? = $ac_status" >&5 |
12842 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12843 | # The compiler can only warn and ignore the option if not recognized |
12844 | # So say no if there are warnings other than the usual output. |
12845 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
12846 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12847 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
12848 | lt_cv_prog_compiler_pic_works_CXX=yes |
12849 | fi |
12850 | fi |
12851 | $rm conftest* |
12852 | |
12853 | fi |
12854 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 |
12855 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; } |
12856 | |
12857 | if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then |
12858 | case $lt_prog_compiler_pic_CXX in |
12859 | "" | " "*) ;; |
12860 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
12861 | esac |
12862 | else |
12863 | lt_prog_compiler_pic_CXX= |
12864 | lt_prog_compiler_can_build_shared_CXX=no |
12865 | fi |
12866 | |
12867 | fi |
12868 | case $host_os in |
12869 | # For platforms which do not support PIC, -DPIC is meaningless: |
12870 | *djgpp*) |
12871 | lt_prog_compiler_pic_CXX= |
12872 | ;; |
12873 | *) |
12874 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
12875 | ;; |
12876 | esac |
12877 | |
12878 | # |
12879 | # Check to make sure the static flag actually works. |
12880 | # |
12881 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
12882 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12883 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
12884 | if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then |
12885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12886 | else |
12887 | lt_cv_prog_compiler_static_works_CXX=no |
12888 | save_LDFLAGS="$LDFLAGS" |
12889 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
12890 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
12891 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
12892 | # The linker can only warn and ignore the option if not recognized |
12893 | # So say no if there are warnings |
12894 | if test -s conftest.err; then |
12895 | # Append any errors to the config.log. |
12896 | cat conftest.err 1>&5 |
12897 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
12898 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12899 | if diff conftest.exp conftest.er2 >/dev/null; then |
12900 | lt_cv_prog_compiler_static_works_CXX=yes |
12901 | fi |
12902 | else |
12903 | lt_cv_prog_compiler_static_works_CXX=yes |
12904 | fi |
12905 | fi |
12906 | $rm -r conftest* |
12907 | LDFLAGS="$save_LDFLAGS" |
12908 | |
12909 | fi |
12910 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5 |
12911 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; } |
12912 | |
12913 | if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then |
12914 | : |
12915 | else |
12916 | lt_prog_compiler_static_CXX= |
12917 | fi |
12918 | |
12919 | |
12920 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12921 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
12922 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
12923 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12924 | else |
12925 | lt_cv_prog_compiler_c_o_CXX=no |
12926 | $rm -r conftest 2>/dev/null |
12927 | mkdir conftest |
12928 | cd conftest |
12929 | mkdir out |
12930 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
12931 | |
12932 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
12933 | # Insert the option either (1) after the last *FLAGS variable, or |
12934 | # (2) before a word containing "conftest.", or (3) at the end. |
12935 | # Note that $ac_compile itself does not contain backslashes and begins |
12936 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12937 | lt_compile=`echo "$ac_compile" | $SED \ |
12938 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12939 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12940 | -e 's:$: $lt_compiler_flag:'` |
12941 | (eval echo "\"\$as_me:12941: $lt_compile\"" >&5) |
12942 | (eval "$lt_compile" 2>out/conftest.err) |
12943 | ac_status=$? |
12944 | cat out/conftest.err >&5 |
12945 | echo "$as_me:12945: \$? = $ac_status" >&5 |
12946 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12947 | then |
12948 | # The compiler can only warn and ignore the option if not recognized |
12949 | # So say no if there are warnings |
12950 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
12951 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12952 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
12953 | lt_cv_prog_compiler_c_o_CXX=yes |
12954 | fi |
12955 | fi |
12956 | chmod u+w . 2>&5 |
12957 | $rm conftest* |
12958 | # SGI C++ compiler will create directory out/ii_files/ for |
12959 | # template instantiation |
12960 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
12961 | $rm out/* && rmdir out |
12962 | cd .. |
12963 | rmdir conftest |
12964 | $rm conftest* |
12965 | |
12966 | fi |
12967 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
12968 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
12969 | |
12970 | |
12971 | hard_links="nottested" |
12972 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
12973 | # do not overwrite the value of need_locks provided by the user |
12974 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
12975 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
12976 | hard_links=yes |
12977 | $rm conftest* |
12978 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
12979 | touch conftest.a |
12980 | ln conftest.a conftest.b 2>&5 || hard_links=no |
12981 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
12982 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
12983 | echo "${ECHO_T}$hard_links" >&6; } |
12984 | if test "$hard_links" = no; then |
12985 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12986 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
12987 | need_locks=warn |
12988 | fi |
12989 | else |
12990 | need_locks=no |
12991 | fi |
12992 | |
12993 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12994 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
12995 | |
12996 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12997 | case $host_os in |
12998 | aix[4-9]*) |
12999 | # If we're using GNU nm, then we don't want the "-C" option. |
13000 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
13001 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
13002 | 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' |
13003 | else |
13004 | 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' |
13005 | fi |
13006 | ;; |
13007 | pw32*) |
13008 | export_symbols_cmds_CXX="$ltdll_cmds" |
13009 | ;; |
13010 | cygwin* | mingw*) |
13011 | 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' |
13012 | ;; |
13013 | *) |
13014 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
13015 | ;; |
13016 | esac |
13017 | exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
13018 | |
13019 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
13020 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
13021 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
13022 | |
13023 | # |
13024 | # Do we need to explicitly link libc? |
13025 | # |
13026 | case "x$archive_cmds_need_lc_CXX" in |
13027 | x|xyes) |
13028 | # Assume -lc should be added |
13029 | archive_cmds_need_lc_CXX=yes |
13030 | |
13031 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
13032 | case $archive_cmds_CXX in |
13033 | *'~'*) |
13034 | # FIXME: we may have to deal with multi-command sequences. |
13035 | ;; |
13036 | '$CC '*) |
13037 | # Test whether the compiler implicitly links with -lc since on some |
13038 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
13039 | # to ld, don't add -lc before -lgcc. |
13040 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
13041 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
13042 | $rm conftest* |
13043 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
13044 | |
13045 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
13046 | (eval $ac_compile) 2>&5 |
13047 | ac_status=$? |
13048 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13049 | (exit $ac_status); } 2>conftest.err; then |
13050 | soname=conftest |
13051 | lib=conftest |
13052 | libobjs=conftest.$ac_objext |
13053 | deplibs= |
13054 | wl=$lt_prog_compiler_wl_CXX |
13055 | pic_flag=$lt_prog_compiler_pic_CXX |
13056 | compiler_flags=-v |
13057 | linker_flags=-v |
13058 | verstring= |
13059 | output_objdir=. |
13060 | libname=conftest |
13061 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
13062 | allow_undefined_flag_CXX= |
13063 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
13064 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
13065 | ac_status=$? |
13066 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13067 | (exit $ac_status); } |
13068 | then |
13069 | archive_cmds_need_lc_CXX=no |
13070 | else |
13071 | archive_cmds_need_lc_CXX=yes |
13072 | fi |
13073 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
13074 | else |
13075 | cat conftest.err 1>&5 |
13076 | fi |
13077 | $rm conftest* |
13078 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
13079 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
13080 | ;; |
13081 | esac |
13082 | fi |
13083 | ;; |
13084 | esac |
13085 | |
13086 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
13087 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
13088 | library_names_spec= |
13089 | libname_spec='lib$name' |
13090 | soname_spec= |
13091 | shrext_cmds=".so" |
13092 | postinstall_cmds= |
13093 | postuninstall_cmds= |
13094 | finish_cmds= |
13095 | finish_eval= |
13096 | shlibpath_var= |
13097 | shlibpath_overrides_runpath=unknown |
13098 | version_type=none |
13099 | dynamic_linker="$host_os ld.so" |
13100 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
13101 | |
13102 | need_lib_prefix=unknown |
13103 | hardcode_into_libs=no |
13104 | |
13105 | # when you set need_version to no, make sure it does not cause -set_version |
13106 | # flags to be left without arguments |
13107 | need_version=unknown |
13108 | |
13109 | case $host_os in |
13110 | aix3*) |
13111 | version_type=linux |
13112 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
13113 | shlibpath_var=LIBPATH |
13114 | |
13115 | # AIX 3 has no versioning support, so we append a major version to the name. |
13116 | soname_spec='${libname}${release}${shared_ext}$major' |
13117 | ;; |
13118 | |
13119 | aix[4-9]*) |
13120 | version_type=linux |
13121 | need_lib_prefix=no |
13122 | need_version=no |
13123 | hardcode_into_libs=yes |
13124 | if test "$host_cpu" = ia64; then |
13125 | # AIX 5 supports IA64 |
13126 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
13127 | shlibpath_var=LD_LIBRARY_PATH |
13128 | else |
13129 | # With GCC up to 2.95.x, collect2 would create an import file |
13130 | # for dependence libraries. The import file would start with |
13131 | # the line `#! .'. This would cause the generated library to |
13132 | # depend on `.', always an invalid library. This was fixed in |
13133 | # development snapshots of GCC prior to 3.0. |
13134 | case $host_os in |
13135 | aix4 | aix4.[01] | aix4.[01].*) |
13136 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
13137 | echo ' yes ' |
13138 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
13139 | : |
13140 | else |
13141 | can_build_shared=no |
13142 | fi |
13143 | ;; |
13144 | esac |
13145 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
13146 | # soname into executable. Probably we can add versioning support to |
13147 | # collect2, so additional links can be useful in future. |
13148 | if test "$aix_use_runtimelinking" = yes; then |
13149 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
13150 | # instead of lib<name>.a to let people know that these are not |
13151 | # typical AIX shared libraries. |
13152 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13153 | else |
13154 | # We preserve .a as extension for shared libraries through AIX4.2 |
13155 | # and later when we are not doing run time linking. |
13156 | library_names_spec='${libname}${release}.a $libname.a' |
13157 | soname_spec='${libname}${release}${shared_ext}$major' |
13158 | fi |
13159 | shlibpath_var=LIBPATH |
13160 | fi |
13161 | ;; |
13162 | |
13163 | amigaos*) |
13164 | library_names_spec='$libname.ixlibrary $libname.a' |
13165 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
13166 | 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' |
13167 | ;; |
13168 | |
13169 | beos*) |
13170 | library_names_spec='${libname}${shared_ext}' |
13171 | dynamic_linker="$host_os ld.so" |
13172 | shlibpath_var=LIBRARY_PATH |
13173 | ;; |
13174 | |
13175 | bsdi[45]*) |
13176 | version_type=linux |
13177 | need_version=no |
13178 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13179 | soname_spec='${libname}${release}${shared_ext}$major' |
13180 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
13181 | shlibpath_var=LD_LIBRARY_PATH |
13182 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
13183 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
13184 | # the default ld.so.conf also contains /usr/contrib/lib and |
13185 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
13186 | # libtool to hard-code these into programs |
13187 | ;; |
13188 | |
13189 | cygwin* | mingw* | pw32*) |
13190 | version_type=windows |
13191 | shrext_cmds=".dll" |
13192 | need_version=no |
13193 | need_lib_prefix=no |
13194 | |
13195 | case $GCC,$host_os in |
13196 | yes,cygwin* | yes,mingw* | yes,pw32*) |
13197 | library_names_spec='$libname.dll.a' |
13198 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
13199 | postinstall_cmds='base_file=`basename \${file}`~ |
13200 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
13201 | dldir=$destdir/`dirname \$dlpath`~ |
13202 | test -d \$dldir || mkdir -p \$dldir~ |
13203 | $install_prog $dir/$dlname \$dldir/$dlname~ |
13204 | chmod a+x \$dldir/$dlname' |
13205 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
13206 | dlpath=$dir/\$dldll~ |
13207 | $rm \$dlpath' |
13208 | shlibpath_overrides_runpath=yes |
13209 | |
13210 | case $host_os in |
13211 | cygwin*) |
13212 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
13213 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
13214 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
13215 | ;; |
13216 | mingw*) |
13217 | # MinGW DLLs use traditional 'lib' prefix |
13218 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
13219 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
13220 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
13221 | # It is most probably a Windows format PATH printed by |
13222 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
13223 | # path with ; separators, and with drive letters. We can handle the |
13224 | # drive letters (cygwin fileutils understands them), so leave them, |
13225 | # especially as we might pass files found there to a mingw objdump, |
13226 | # which wouldn't understand a cygwinified path. Ahh. |
13227 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
13228 | else |
13229 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
13230 | fi |
13231 | ;; |
13232 | pw32*) |
13233 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
13234 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
13235 | ;; |
13236 | esac |
13237 | ;; |
13238 | |
13239 | *) |
13240 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
13241 | ;; |
13242 | esac |
13243 | dynamic_linker='Win32 ld.exe' |
13244 | # FIXME: first we should search . and the directory the executable is in |
13245 | shlibpath_var=PATH |
13246 | ;; |
13247 | |
13248 | darwin* | rhapsody*) |
13249 | dynamic_linker="$host_os dyld" |
13250 | version_type=darwin |
13251 | need_lib_prefix=no |
13252 | need_version=no |
13253 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
13254 | soname_spec='${libname}${release}${major}$shared_ext' |
13255 | shlibpath_overrides_runpath=yes |
13256 | shlibpath_var=DYLD_LIBRARY_PATH |
13257 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
13258 | |
13259 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
13260 | ;; |
13261 | |
13262 | dgux*) |
13263 | version_type=linux |
13264 | need_lib_prefix=no |
13265 | need_version=no |
13266 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
13267 | soname_spec='${libname}${release}${shared_ext}$major' |
13268 | shlibpath_var=LD_LIBRARY_PATH |
13269 | ;; |
13270 | |
13271 | freebsd1*) |
13272 | dynamic_linker=no |
13273 | ;; |
13274 | |
13275 | freebsd* | dragonfly*) |
13276 | # DragonFly does not have aout. When/if they implement a new |
13277 | # versioning mechanism, adjust this. |
13278 | if test -x /usr/bin/objformat; then |
13279 | objformat=`/usr/bin/objformat` |
13280 | else |
13281 | case $host_os in |
13282 | freebsd[123]*) objformat=aout ;; |
13283 | *) objformat=elf ;; |
13284 | esac |
13285 | fi |
13286 | version_type=freebsd-$objformat |
13287 | case $version_type in |
13288 | freebsd-elf*) |
13289 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
13290 | need_version=no |
13291 | need_lib_prefix=no |
13292 | ;; |
13293 | freebsd-*) |
13294 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
13295 | need_version=yes |
13296 | ;; |
13297 | esac |
13298 | shlibpath_var=LD_LIBRARY_PATH |
13299 | case $host_os in |
13300 | freebsd2*) |
13301 | shlibpath_overrides_runpath=yes |
13302 | ;; |
13303 | freebsd3.[01]* | freebsdelf3.[01]*) |
13304 | shlibpath_overrides_runpath=yes |
13305 | hardcode_into_libs=yes |
13306 | ;; |
13307 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
13308 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
13309 | shlibpath_overrides_runpath=no |
13310 | hardcode_into_libs=yes |
13311 | ;; |
13312 | *) # from 4.6 on, and DragonFly |
13313 | shlibpath_overrides_runpath=yes |
13314 | hardcode_into_libs=yes |
13315 | ;; |
13316 | esac |
13317 | ;; |
13318 | |
13319 | gnu*) |
13320 | version_type=linux |
13321 | need_lib_prefix=no |
13322 | need_version=no |
13323 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
13324 | soname_spec='${libname}${release}${shared_ext}$major' |
13325 | shlibpath_var=LD_LIBRARY_PATH |
13326 | hardcode_into_libs=yes |
13327 | ;; |
13328 | |
13329 | hpux9* | hpux10* | hpux11*) |
13330 | # Give a soname corresponding to the major version so that dld.sl refuses to |
13331 | # link against other versions. |
13332 | version_type=sunos |
13333 | need_lib_prefix=no |
13334 | need_version=no |
13335 | case $host_cpu in |
13336 | ia64*) |
13337 | shrext_cmds='.so' |
13338 | hardcode_into_libs=yes |
13339 | dynamic_linker="$host_os dld.so" |
13340 | shlibpath_var=LD_LIBRARY_PATH |
13341 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
13342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13343 | soname_spec='${libname}${release}${shared_ext}$major' |
13344 | if test "X$HPUX_IA64_MODE" = X32; then |
13345 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
13346 | else |
13347 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
13348 | fi |
13349 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
13350 | ;; |
13351 | hppa*64*) |
13352 | shrext_cmds='.sl' |
13353 | hardcode_into_libs=yes |
13354 | dynamic_linker="$host_os dld.sl" |
13355 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
13356 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
13357 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13358 | soname_spec='${libname}${release}${shared_ext}$major' |
13359 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
13360 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
13361 | ;; |
13362 | *) |
13363 | shrext_cmds='.sl' |
13364 | dynamic_linker="$host_os dld.sl" |
13365 | shlibpath_var=SHLIB_PATH |
13366 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
13367 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13368 | soname_spec='${libname}${release}${shared_ext}$major' |
13369 | ;; |
13370 | esac |
13371 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
13372 | postinstall_cmds='chmod 555 $lib' |
13373 | ;; |
13374 | |
13375 | interix[3-9]*) |
13376 | version_type=linux |
13377 | need_lib_prefix=no |
13378 | need_version=no |
13379 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13380 | soname_spec='${libname}${release}${shared_ext}$major' |
13381 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
13382 | shlibpath_var=LD_LIBRARY_PATH |
13383 | shlibpath_overrides_runpath=no |
13384 | hardcode_into_libs=yes |
13385 | ;; |
13386 | |
13387 | irix5* | irix6* | nonstopux*) |
13388 | case $host_os in |
13389 | nonstopux*) version_type=nonstopux ;; |
13390 | *) |
13391 | if test "$lt_cv_prog_gnu_ld" = yes; then |
13392 | version_type=linux |
13393 | else |
13394 | version_type=irix |
13395 | fi ;; |
13396 | esac |
13397 | need_lib_prefix=no |
13398 | need_version=no |
13399 | soname_spec='${libname}${release}${shared_ext}$major' |
13400 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
13401 | case $host_os in |
13402 | irix5* | nonstopux*) |
13403 | libsuff= shlibsuff= |
13404 | ;; |
13405 | *) |
13406 | case $LD in # libtool.m4 will add one of these switches to LD |
13407 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
13408 | libsuff= shlibsuff= libmagic=32-bit;; |
13409 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
13410 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
13411 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
13412 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
13413 | *) libsuff= shlibsuff= libmagic=never-match;; |
13414 | esac |
13415 | ;; |
13416 | esac |
13417 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
13418 | shlibpath_overrides_runpath=no |
13419 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
13420 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
13421 | hardcode_into_libs=yes |
13422 | ;; |
13423 | |
13424 | # No shared lib support for Linux oldld, aout, or coff. |
13425 | linux*oldld* | linux*aout* | linux*coff*) |
13426 | dynamic_linker=no |
13427 | ;; |
13428 | |
13429 | # This must be Linux ELF. |
13430 | linux* | k*bsd*-gnu) |
13431 | version_type=linux |
13432 | need_lib_prefix=no |
13433 | need_version=no |
13434 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13435 | soname_spec='${libname}${release}${shared_ext}$major' |
13436 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
13437 | shlibpath_var=LD_LIBRARY_PATH |
13438 | shlibpath_overrides_runpath=no |
13439 | # This implies no fast_install, which is unacceptable. |
13440 | # Some rework will be needed to allow for fast_install |
13441 | # before this can be enabled. |
13442 | hardcode_into_libs=yes |
13443 | |
13444 | # Append ld.so.conf contents to the search path |
13445 | if test -f /etc/ld.so.conf; then |
13446 | 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
13447 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
13448 | fi |
13449 | |
13450 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13451 | # powerpc, because MkLinux only supported shared libraries with the |
13452 | # GNU dynamic linker. Since this was broken with cross compilers, |
13453 | # most powerpc-linux boxes support dynamic linking these days and |
13454 | # people can always --disable-shared, the test was removed, and we |
13455 | # assume the GNU/Linux dynamic linker is in use. |
13456 | dynamic_linker='GNU/Linux ld.so' |
13457 | ;; |
13458 | |
13459 | netbsd*) |
13460 | version_type=sunos |
13461 | need_lib_prefix=no |
13462 | need_version=no |
13463 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13464 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13465 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13466 | dynamic_linker='NetBSD (a.out) ld.so' |
13467 | else |
13468 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13469 | soname_spec='${libname}${release}${shared_ext}$major' |
13470 | dynamic_linker='NetBSD ld.elf_so' |
13471 | fi |
13472 | shlibpath_var=LD_LIBRARY_PATH |
13473 | shlibpath_overrides_runpath=yes |
13474 | hardcode_into_libs=yes |
13475 | ;; |
13476 | |
13477 | newsos6) |
13478 | version_type=linux |
13479 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13480 | shlibpath_var=LD_LIBRARY_PATH |
13481 | shlibpath_overrides_runpath=yes |
13482 | ;; |
13483 | |
13484 | nto-qnx*) |
13485 | version_type=linux |
13486 | need_lib_prefix=no |
13487 | need_version=no |
13488 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13489 | soname_spec='${libname}${release}${shared_ext}$major' |
13490 | shlibpath_var=LD_LIBRARY_PATH |
13491 | shlibpath_overrides_runpath=yes |
13492 | ;; |
13493 | |
13494 | openbsd*) |
13495 | version_type=sunos |
13496 | sys_lib_dlsearch_path_spec="/usr/lib" |
13497 | need_lib_prefix=no |
13498 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
13499 | case $host_os in |
13500 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
13501 | *) need_version=no ;; |
13502 | esac |
13503 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13504 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13505 | shlibpath_var=LD_LIBRARY_PATH |
13506 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
13507 | case $host_os in |
13508 | openbsd2.[89] | openbsd2.[89].*) |
13509 | shlibpath_overrides_runpath=no |
13510 | ;; |
13511 | *) |
13512 | shlibpath_overrides_runpath=yes |
13513 | ;; |
13514 | esac |
13515 | else |
13516 | shlibpath_overrides_runpath=yes |
13517 | fi |
13518 | ;; |
13519 | |
13520 | os2*) |
13521 | libname_spec='$name' |
13522 | shrext_cmds=".dll" |
13523 | need_lib_prefix=no |
13524 | library_names_spec='$libname${shared_ext} $libname.a' |
13525 | dynamic_linker='OS/2 ld.exe' |
13526 | shlibpath_var=LIBPATH |
13527 | ;; |
13528 | |
13529 | osf3* | osf4* | osf5*) |
13530 | version_type=osf |
13531 | need_lib_prefix=no |
13532 | need_version=no |
13533 | soname_spec='${libname}${release}${shared_ext}$major' |
13534 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13535 | shlibpath_var=LD_LIBRARY_PATH |
13536 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
13537 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
13538 | ;; |
13539 | |
13540 | rdos*) |
13541 | dynamic_linker=no |
13542 | ;; |
13543 | |
13544 | solaris*) |
13545 | version_type=linux |
13546 | need_lib_prefix=no |
13547 | need_version=no |
13548 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13549 | soname_spec='${libname}${release}${shared_ext}$major' |
13550 | shlibpath_var=LD_LIBRARY_PATH |
13551 | shlibpath_overrides_runpath=yes |
13552 | hardcode_into_libs=yes |
13553 | # ldd complains unless libraries are executable |
13554 | postinstall_cmds='chmod +x $lib' |
13555 | ;; |
13556 | |
13557 | sunos4*) |
13558 | version_type=sunos |
13559 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13560 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
13561 | shlibpath_var=LD_LIBRARY_PATH |
13562 | shlibpath_overrides_runpath=yes |
13563 | if test "$with_gnu_ld" = yes; then |
13564 | need_lib_prefix=no |
13565 | fi |
13566 | need_version=yes |
13567 | ;; |
13568 | |
13569 | sysv4 | sysv4.3*) |
13570 | version_type=linux |
13571 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13572 | soname_spec='${libname}${release}${shared_ext}$major' |
13573 | shlibpath_var=LD_LIBRARY_PATH |
13574 | case $host_vendor in |
13575 | sni) |
13576 | shlibpath_overrides_runpath=no |
13577 | need_lib_prefix=no |
13578 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
13579 | runpath_var=LD_RUN_PATH |
13580 | ;; |
13581 | siemens) |
13582 | need_lib_prefix=no |
13583 | ;; |
13584 | motorola) |
13585 | need_lib_prefix=no |
13586 | need_version=no |
13587 | shlibpath_overrides_runpath=no |
13588 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
13589 | ;; |
13590 | esac |
13591 | ;; |
13592 | |
13593 | sysv4*MP*) |
13594 | if test -d /usr/nec ;then |
13595 | version_type=linux |
13596 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
13597 | soname_spec='$libname${shared_ext}.$major' |
13598 | shlibpath_var=LD_LIBRARY_PATH |
13599 | fi |
13600 | ;; |
13601 | |
13602 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13603 | version_type=freebsd-elf |
13604 | need_lib_prefix=no |
13605 | need_version=no |
13606 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
13607 | soname_spec='${libname}${release}${shared_ext}$major' |
13608 | shlibpath_var=LD_LIBRARY_PATH |
13609 | hardcode_into_libs=yes |
13610 | if test "$with_gnu_ld" = yes; then |
13611 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
13612 | shlibpath_overrides_runpath=no |
13613 | else |
13614 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
13615 | shlibpath_overrides_runpath=yes |
13616 | case $host_os in |
13617 | sco3.2v5*) |
13618 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
13619 | ;; |
13620 | esac |
13621 | fi |
13622 | sys_lib_dlsearch_path_spec='/usr/lib' |
13623 | ;; |
13624 | |
13625 | uts4*) |
13626 | version_type=linux |
13627 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13628 | soname_spec='${libname}${release}${shared_ext}$major' |
13629 | shlibpath_var=LD_LIBRARY_PATH |
13630 | ;; |
13631 | |
13632 | *) |
13633 | dynamic_linker=no |
13634 | ;; |
13635 | esac |
13636 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
13637 | echo "${ECHO_T}$dynamic_linker" >&6; } |
13638 | test "$dynamic_linker" = no && can_build_shared=no |
13639 | |
13640 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
13641 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13642 | else |
13643 | lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" |
13644 | fi |
13645 | |
13646 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
13647 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
13648 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13649 | else |
13650 | lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" |
13651 | fi |
13652 | |
13653 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
13654 | |
13655 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
13656 | if test "$GCC" = yes; then |
13657 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
13658 | fi |
13659 | |
13660 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
13661 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
13662 | hardcode_action_CXX= |
13663 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
13664 | test -n "$runpath_var_CXX" || \ |
13665 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
13666 | |
13667 | # We can hardcode non-existant directories. |
13668 | if test "$hardcode_direct_CXX" != no && |
13669 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
13670 | # have to relink, otherwise we might link with an installed library |
13671 | # when we should be linking with a yet-to-be-installed one |
13672 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
13673 | test "$hardcode_minus_L_CXX" != no; then |
13674 | # Linking always hardcodes the temporary library directory. |
13675 | hardcode_action_CXX=relink |
13676 | else |
13677 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
13678 | hardcode_action_CXX=immediate |
13679 | fi |
13680 | else |
13681 | # We cannot hardcode anything, or else we can only hardcode existing |
13682 | # directories. |
13683 | hardcode_action_CXX=unsupported |
13684 | fi |
13685 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
13686 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
13687 | |
13688 | if test "$hardcode_action_CXX" = relink; then |
13689 | # Fast installation is not supported |
13690 | enable_fast_install=no |
13691 | elif test "$shlibpath_overrides_runpath" = yes || |
13692 | test "$enable_shared" = no; then |
13693 | # Fast installation is not necessary |
13694 | enable_fast_install=needless |
13695 | fi |
13696 | |
13697 | |
13698 | # The else clause should only fire when bootstrapping the |
13699 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
13700 | # with your package, and you will get complaints that there are |
13701 | # no rules to generate ltmain.sh. |
13702 | if test -f "$ltmain"; then |
13703 | # See if we are running on zsh, and set the options which allow our commands through |
13704 | # without removal of \ escapes. |
13705 | if test -n "${ZSH_VERSION+set}" ; then |
13706 | setopt NO_GLOB_SUBST |
13707 | fi |
13708 | # Now quote all the things that may contain metacharacters while being |
13709 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
13710 | # variables and quote the copies for generation of the libtool script. |
13711 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
13712 | SED SHELL STRIP \ |
13713 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
13714 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
13715 | deplibs_check_method reload_flag reload_cmds need_locks \ |
13716 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
13717 | lt_cv_sys_global_symbol_to_c_name_address \ |
13718 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
13719 | old_postinstall_cmds old_postuninstall_cmds \ |
13720 | compiler_CXX \ |
13721 | CC_CXX \ |
13722 | LD_CXX \ |
13723 | lt_prog_compiler_wl_CXX \ |
13724 | lt_prog_compiler_pic_CXX \ |
13725 | lt_prog_compiler_static_CXX \ |
13726 | lt_prog_compiler_no_builtin_flag_CXX \ |
13727 | export_dynamic_flag_spec_CXX \ |
13728 | thread_safe_flag_spec_CXX \ |
13729 | whole_archive_flag_spec_CXX \ |
13730 | enable_shared_with_static_runtimes_CXX \ |
13731 | old_archive_cmds_CXX \ |
13732 | old_archive_from_new_cmds_CXX \ |
13733 | predep_objects_CXX \ |
13734 | postdep_objects_CXX \ |
13735 | predeps_CXX \ |
13736 | postdeps_CXX \ |
13737 | compiler_lib_search_path_CXX \ |
13738 | compiler_lib_search_dirs_CXX \ |
13739 | archive_cmds_CXX \ |
13740 | archive_expsym_cmds_CXX \ |
13741 | postinstall_cmds_CXX \ |
13742 | postuninstall_cmds_CXX \ |
13743 | old_archive_from_expsyms_cmds_CXX \ |
13744 | allow_undefined_flag_CXX \ |
13745 | no_undefined_flag_CXX \ |
13746 | export_symbols_cmds_CXX \ |
13747 | hardcode_libdir_flag_spec_CXX \ |
13748 | hardcode_libdir_flag_spec_ld_CXX \ |
13749 | hardcode_libdir_separator_CXX \ |
13750 | hardcode_automatic_CXX \ |
13751 | module_cmds_CXX \ |
13752 | module_expsym_cmds_CXX \ |
13753 | lt_cv_prog_compiler_c_o_CXX \ |
13754 | fix_srcfile_path_CXX \ |
13755 | exclude_expsyms_CXX \ |
13756 | include_expsyms_CXX; do |
13757 | |
13758 | case $var in |
13759 | old_archive_cmds_CXX | \ |
13760 | old_archive_from_new_cmds_CXX | \ |
13761 | archive_cmds_CXX | \ |
13762 | archive_expsym_cmds_CXX | \ |
13763 | module_cmds_CXX | \ |
13764 | module_expsym_cmds_CXX | \ |
13765 | old_archive_from_expsyms_cmds_CXX | \ |
13766 | export_symbols_cmds_CXX | \ |
13767 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
13768 | postinstall_cmds | postuninstall_cmds | \ |
13769 | old_postinstall_cmds | old_postuninstall_cmds | \ |
13770 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
13771 | # Double-quote double-evaled strings. |
13772 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
13773 | ;; |
13774 | *) |
13775 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
13776 | ;; |
13777 | esac |
13778 | done |
13779 | |
13780 | case $lt_echo in |
13781 | *'\$0 --fallback-echo"') |
13782 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
13783 | ;; |
13784 | esac |
13785 | |
13786 | cfgfile="$ofile" |
13787 | |
13788 | cat <<__EOF__ >> "$cfgfile" |
13789 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
13790 | |
13791 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13792 | |
13793 | # Shell to use when invoking shell scripts. |
13794 | SHELL=$lt_SHELL |
13795 | |
13796 | # Whether or not to build shared libraries. |
13797 | build_libtool_libs=$enable_shared |
13798 | |
13799 | # Whether or not to build static libraries. |
13800 | build_old_libs=$enable_static |
13801 | |
13802 | # Whether or not to add -lc for building shared libraries. |
13803 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
13804 | |
13805 | # Whether or not to disallow shared libs when runtime libs are static |
13806 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
13807 | |
13808 | # Whether or not to optimize for fast installation. |
13809 | fast_install=$enable_fast_install |
13810 | |
13811 | # The host system. |
13812 | host_alias=$host_alias |
13813 | host=$host |
13814 | host_os=$host_os |
13815 | |
13816 | # The build system. |
13817 | build_alias=$build_alias |
13818 | build=$build |
13819 | build_os=$build_os |
13820 | |
13821 | # An echo program that does not interpret backslashes. |
13822 | echo=$lt_echo |
13823 | |
13824 | # The archiver. |
13825 | AR=$lt_AR |
13826 | AR_FLAGS=$lt_AR_FLAGS |
13827 | |
13828 | # A C compiler. |
13829 | LTCC=$lt_LTCC |
13830 | |
13831 | # LTCC compiler flags. |
13832 | LTCFLAGS=$lt_LTCFLAGS |
13833 | |
13834 | # A language-specific compiler. |
13835 | CC=$lt_compiler_CXX |
13836 | |
13837 | # Is the compiler the GNU C compiler? |
13838 | with_gcc=$GCC_CXX |
13839 | |
13840 | # An ERE matcher. |
13841 | EGREP=$lt_EGREP |
13842 | |
13843 | # The linker used to build libraries. |
13844 | LD=$lt_LD_CXX |
13845 | |
13846 | # Whether we need hard or soft links. |
13847 | LN_S=$lt_LN_S |
13848 | |
13849 | # A BSD-compatible nm program. |
13850 | NM=$lt_NM |
13851 | |
13852 | # A symbol stripping program |
13853 | STRIP=$lt_STRIP |
13854 | |
13855 | # Used to examine libraries when file_magic_cmd begins "file" |
13856 | MAGIC_CMD=$MAGIC_CMD |
13857 | |
13858 | # Used on cygwin: DLL creation program. |
13859 | DLLTOOL="$DLLTOOL" |
13860 | |
13861 | # Used on cygwin: object dumper. |
13862 | OBJDUMP="$OBJDUMP" |
13863 | |
13864 | # Used on cygwin: assembler. |
13865 | AS="$AS" |
13866 | |
13867 | # The name of the directory that contains temporary libtool files. |
13868 | objdir=$objdir |
13869 | |
13870 | # How to create reloadable object files. |
13871 | reload_flag=$lt_reload_flag |
13872 | reload_cmds=$lt_reload_cmds |
13873 | |
13874 | # How to pass a linker flag through the compiler. |
13875 | wl=$lt_lt_prog_compiler_wl_CXX |
13876 | |
13877 | # Object file suffix (normally "o"). |
13878 | objext="$ac_objext" |
13879 | |
13880 | # Old archive suffix (normally "a"). |
13881 | libext="$libext" |
13882 | |
13883 | # Shared library suffix (normally ".so"). |
13884 | shrext_cmds='$shrext_cmds' |
13885 | |
13886 | # Executable file suffix (normally ""). |
13887 | exeext="$exeext" |
13888 | |
13889 | # Additional compiler flags for building library objects. |
13890 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
13891 | pic_mode=$pic_mode |
13892 | |
13893 | # What is the maximum length of a command? |
13894 | max_cmd_len=$lt_cv_sys_max_cmd_len |
13895 | |
13896 | # Does compiler simultaneously support -c and -o options? |
13897 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
13898 | |
13899 | # Must we lock files when doing compilation? |
13900 | need_locks=$lt_need_locks |
13901 | |
13902 | # Do we need the lib prefix for modules? |
13903 | need_lib_prefix=$need_lib_prefix |
13904 | |
13905 | # Do we need a version for libraries? |
13906 | need_version=$need_version |
13907 | |
13908 | # Whether dlopen is supported. |
13909 | dlopen_support=$enable_dlopen |
13910 | |
13911 | # Whether dlopen of programs is supported. |
13912 | dlopen_self=$enable_dlopen_self |
13913 | |
13914 | # Whether dlopen of statically linked programs is supported. |
13915 | dlopen_self_static=$enable_dlopen_self_static |
13916 | |
13917 | # Compiler flag to prevent dynamic linking. |
13918 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
13919 | |
13920 | # Compiler flag to turn off builtin functions. |
13921 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
13922 | |
13923 | # Compiler flag to allow reflexive dlopens. |
13924 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
13925 | |
13926 | # Compiler flag to generate shared objects directly from archives. |
13927 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
13928 | |
13929 | # Compiler flag to generate thread-safe objects. |
13930 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
13931 | |
13932 | # Library versioning type. |
13933 | version_type=$version_type |
13934 | |
13935 | # Format of library name prefix. |
13936 | libname_spec=$lt_libname_spec |
13937 | |
13938 | # List of archive names. First name is the real one, the rest are links. |
13939 | # The last name is the one that the linker finds with -lNAME. |
13940 | library_names_spec=$lt_library_names_spec |
13941 | |
13942 | # The coded name of the library, if different from the real name. |
13943 | soname_spec=$lt_soname_spec |
13944 | |
13945 | # Commands used to build and install an old-style archive. |
13946 | RANLIB=$lt_RANLIB |
13947 | old_archive_cmds=$lt_old_archive_cmds_CXX |
13948 | old_postinstall_cmds=$lt_old_postinstall_cmds |
13949 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
13950 | |
13951 | # Create an old-style archive from a shared archive. |
13952 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
13953 | |
13954 | # Create a temporary old-style archive to link instead of a shared archive. |
13955 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
13956 | |
13957 | # Commands used to build and install a shared archive. |
13958 | archive_cmds=$lt_archive_cmds_CXX |
13959 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
13960 | postinstall_cmds=$lt_postinstall_cmds |
13961 | postuninstall_cmds=$lt_postuninstall_cmds |
13962 | |
13963 | # Commands used to build a loadable module (assumed same as above if empty) |
13964 | module_cmds=$lt_module_cmds_CXX |
13965 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
13966 | |
13967 | # Commands to strip libraries. |
13968 | old_striplib=$lt_old_striplib |
13969 | striplib=$lt_striplib |
13970 | |
13971 | # Dependencies to place before the objects being linked to create a |
13972 | # shared library. |
13973 | predep_objects=$lt_predep_objects_CXX |
13974 | |
13975 | # Dependencies to place after the objects being linked to create a |
13976 | # shared library. |
13977 | postdep_objects=$lt_postdep_objects_CXX |
13978 | |
13979 | # Dependencies to place before the objects being linked to create a |
13980 | # shared library. |
13981 | predeps=$lt_predeps_CXX |
13982 | |
13983 | # Dependencies to place after the objects being linked to create a |
13984 | # shared library. |
13985 | postdeps=$lt_postdeps_CXX |
13986 | |
13987 | # The directories searched by this compiler when creating a shared |
13988 | # library |
13989 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX |
13990 | |
13991 | # The library search path used internally by the compiler when linking |
13992 | # a shared library. |
13993 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
13994 | |
13995 | # Method to check whether dependent libraries are shared objects. |
13996 | deplibs_check_method=$lt_deplibs_check_method |
13997 | |
13998 | # Command to use when deplibs_check_method == file_magic. |
13999 | file_magic_cmd=$lt_file_magic_cmd |
14000 | |
14001 | # Flag that allows shared libraries with undefined symbols to be built. |
14002 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
14003 | |
14004 | # Flag that forces no undefined symbols. |
14005 | no_undefined_flag=$lt_no_undefined_flag_CXX |
14006 | |
14007 | # Commands used to finish a libtool library installation in a directory. |
14008 | finish_cmds=$lt_finish_cmds |
14009 | |
14010 | # Same as above, but a single script fragment to be evaled but not shown. |
14011 | finish_eval=$lt_finish_eval |
14012 | |
14013 | # Take the output of nm and produce a listing of raw symbols and C names. |
14014 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
14015 | |
14016 | # Transform the output of nm in a proper C declaration |
14017 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
14018 | |
14019 | # Transform the output of nm in a C name address pair |
14020 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
14021 | |
14022 | # This is the shared library runtime path variable. |
14023 | runpath_var=$runpath_var |
14024 | |
14025 | # This is the shared library path variable. |
14026 | shlibpath_var=$shlibpath_var |
14027 | |
14028 | # Is shlibpath searched before the hard-coded library search path? |
14029 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
14030 | |
14031 | # How to hardcode a shared library path into an executable. |
14032 | hardcode_action=$hardcode_action_CXX |
14033 | |
14034 | # Whether we should hardcode library paths into libraries. |
14035 | hardcode_into_libs=$hardcode_into_libs |
14036 | |
14037 | # Flag to hardcode \$libdir into a binary during linking. |
14038 | # This must work even if \$libdir does not exist. |
14039 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
14040 | |
14041 | # If ld is used when linking, flag to hardcode \$libdir into |
14042 | # a binary during linking. This must work even if \$libdir does |
14043 | # not exist. |
14044 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
14045 | |
14046 | # Whether we need a single -rpath flag with a separated argument. |
14047 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
14048 | |
14049 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
14050 | # resulting binary. |
14051 | hardcode_direct=$hardcode_direct_CXX |
14052 | |
14053 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
14054 | # resulting binary. |
14055 | hardcode_minus_L=$hardcode_minus_L_CXX |
14056 | |
14057 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
14058 | # the resulting binary. |
14059 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
14060 | |
14061 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
14062 | # and all subsequent libraries and executables linked against it. |
14063 | hardcode_automatic=$hardcode_automatic_CXX |
14064 | |
14065 | # Variables whose values should be saved in libtool wrapper scripts and |
14066 | # restored at relink time. |
14067 | variables_saved_for_relink="$variables_saved_for_relink" |
14068 | |
14069 | # Whether libtool must link a program against all its dependency libraries. |
14070 | link_all_deplibs=$link_all_deplibs_CXX |
14071 | |
14072 | # Compile-time system search path for libraries |
14073 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
14074 | |
14075 | # Run-time system search path for libraries |
14076 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
14077 | |
14078 | # Fix the shell variable \$srcfile for the compiler. |
14079 | fix_srcfile_path=$lt_fix_srcfile_path |
14080 | |
14081 | # Set to yes if exported symbols are required. |
14082 | always_export_symbols=$always_export_symbols_CXX |
14083 | |
14084 | # The commands to list exported symbols. |
14085 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
14086 | |
14087 | # The commands to extract the exported symbol list from a shared archive. |
14088 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
14089 | |
14090 | # Symbols that should not be listed in the preloaded symbols. |
14091 | exclude_expsyms=$lt_exclude_expsyms_CXX |
14092 | |
14093 | # Symbols that must always be exported. |
14094 | include_expsyms=$lt_include_expsyms_CXX |
14095 | |
14096 | # ### END LIBTOOL TAG CONFIG: $tagname |
14097 | |
14098 | __EOF__ |
14099 | |
14100 | |
14101 | else |
14102 | # If there is no Makefile yet, we rely on a make rule to execute |
14103 | # `config.status --recheck' to rerun these tests and create the |
14104 | # libtool script then. |
14105 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
14106 | if test -f "$ltmain_in"; then |
14107 | test -f Makefile && make "$ltmain" |
14108 | fi |
14109 | fi |
14110 | |
14111 | |
14112 | ac_ext=c |
14113 | ac_cpp='$CPP $CPPFLAGS' |
14114 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
14115 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
14116 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
14117 | |
14118 | CC=$lt_save_CC |
14119 | LDCXX=$LD |
14120 | LD=$lt_save_LD |
14121 | GCC=$lt_save_GCC |
14122 | with_gnu_ldcxx=$with_gnu_ld |
14123 | with_gnu_ld=$lt_save_with_gnu_ld |
14124 | lt_cv_path_LDCXX=$lt_cv_path_LD |
14125 | lt_cv_path_LD=$lt_save_path_LD |
14126 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
14127 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
14128 | |
14129 | else |
14130 | tagname="" |
14131 | fi |
14132 | ;; |
14133 | |
14134 | F77) |
14135 | if test -n "$F77" && test "X$F77" != "Xno"; then |
14136 | |
14137 | ac_ext=f |
14138 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
14139 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
14140 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
14141 | |
14142 | |
14143 | archive_cmds_need_lc_F77=no |
14144 | allow_undefined_flag_F77= |
14145 | always_export_symbols_F77=no |
14146 | archive_expsym_cmds_F77= |
14147 | export_dynamic_flag_spec_F77= |
14148 | hardcode_direct_F77=no |
14149 | hardcode_libdir_flag_spec_F77= |
14150 | hardcode_libdir_flag_spec_ld_F77= |
14151 | hardcode_libdir_separator_F77= |
14152 | hardcode_minus_L_F77=no |
14153 | hardcode_automatic_F77=no |
14154 | module_cmds_F77= |
14155 | module_expsym_cmds_F77= |
14156 | link_all_deplibs_F77=unknown |
14157 | old_archive_cmds_F77=$old_archive_cmds |
14158 | no_undefined_flag_F77= |
14159 | whole_archive_flag_spec_F77= |
14160 | enable_shared_with_static_runtimes_F77=no |
14161 | |
14162 | # Source file extension for f77 test sources. |
14163 | ac_ext=f |
14164 | |
14165 | # Object file extension for compiled f77 test sources. |
14166 | objext=o |
14167 | objext_F77=$objext |
14168 | |
14169 | # Code to be used in simple compile tests |
14170 | lt_simple_compile_test_code="\ |
14171 | subroutine t |
14172 | return |
14173 | end |
14174 | " |
14175 | |
14176 | # Code to be used in simple link tests |
14177 | lt_simple_link_test_code="\ |
14178 | program t |
14179 | end |
14180 | " |
14181 | |
14182 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
14183 | |
14184 | # If no C compiler was specified, use CC. |
14185 | LTCC=${LTCC-"$CC"} |
14186 | |
14187 | # If no C compiler flags were specified, use CFLAGS. |
14188 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
14189 | |
14190 | # Allow CC to be a program name with arguments. |
14191 | compiler=$CC |
14192 | |
14193 | |
14194 | # save warnings/boilerplate of simple test code |
14195 | ac_outfile=conftest.$ac_objext |
14196 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
14197 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
14198 | _lt_compiler_boilerplate=`cat conftest.err` |
14199 | $rm conftest* |
14200 | |
14201 | ac_outfile=conftest.$ac_objext |
14202 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
14203 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
14204 | _lt_linker_boilerplate=`cat conftest.err` |
14205 | $rm -r conftest* |
14206 | |
14207 | |
14208 | # Allow CC to be a program name with arguments. |
14209 | lt_save_CC="$CC" |
14210 | CC=${F77-"f77"} |
14211 | compiler=$CC |
14212 | compiler_F77=$CC |
14213 | for cc_temp in $compiler""; do |
14214 | case $cc_temp in |
14215 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
14216 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
14217 | \-*) ;; |
14218 | *) break;; |
14219 | esac |
14220 | done |
14221 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
14222 | |
14223 | |
14224 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
14225 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
14226 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
14227 | echo "${ECHO_T}$can_build_shared" >&6; } |
14228 | |
14229 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
14230 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
14231 | test "$can_build_shared" = "no" && enable_shared=no |
14232 | |
14233 | # On AIX, shared libraries and static libraries use the same namespace, and |
14234 | # are all built from PIC. |
14235 | case $host_os in |
14236 | aix3*) |
14237 | test "$enable_shared" = yes && enable_static=no |
14238 | if test -n "$RANLIB"; then |
14239 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
14240 | postinstall_cmds='$RANLIB $lib' |
14241 | fi |
14242 | ;; |
14243 | aix[4-9]*) |
14244 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
14245 | test "$enable_shared" = yes && enable_static=no |
14246 | fi |
14247 | ;; |
14248 | esac |
14249 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
14250 | echo "${ECHO_T}$enable_shared" >&6; } |
14251 | |
14252 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
14253 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
14254 | # Make sure either enable_shared or enable_static is yes. |
14255 | test "$enable_shared" = yes || enable_static=yes |
14256 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
14257 | echo "${ECHO_T}$enable_static" >&6; } |
14258 | |
14259 | GCC_F77="$G77" |
14260 | LD_F77="$LD" |
14261 | |
14262 | lt_prog_compiler_wl_F77= |
14263 | lt_prog_compiler_pic_F77= |
14264 | lt_prog_compiler_static_F77= |
14265 | |
14266 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
14267 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
14268 | |
14269 | if test "$GCC" = yes; then |
14270 | lt_prog_compiler_wl_F77='-Wl,' |
14271 | lt_prog_compiler_static_F77='-static' |
14272 | |
14273 | case $host_os in |
14274 | aix*) |
14275 | # All AIX code is PIC. |
14276 | if test "$host_cpu" = ia64; then |
14277 | # AIX 5 now supports IA64 processor |
14278 | lt_prog_compiler_static_F77='-Bstatic' |
14279 | fi |
14280 | ;; |
14281 | |
14282 | amigaos*) |
14283 | # FIXME: we need at least 68020 code to build shared libraries, but |
14284 | # adding the `-m68020' flag to GCC prevents building anything better, |
14285 | # like `-m68040'. |
14286 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
14287 | ;; |
14288 | |
14289 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
14290 | # PIC is the default for these OSes. |
14291 | ;; |
14292 | |
14293 | mingw* | cygwin* | pw32* | os2*) |
14294 | # This hack is so that the source file can tell whether it is being |
14295 | # built for inclusion in a dll (and should export symbols for example). |
14296 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
14297 | # (--disable-auto-import) libraries |
14298 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
14299 | ;; |
14300 | |
14301 | darwin* | rhapsody*) |
14302 | # PIC is the default on this platform |
14303 | # Common symbols not allowed in MH_DYLIB files |
14304 | lt_prog_compiler_pic_F77='-fno-common' |
14305 | ;; |
14306 | |
14307 | interix[3-9]*) |
14308 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
14309 | # Instead, we relocate shared libraries at runtime. |
14310 | ;; |
14311 | |
14312 | msdosdjgpp*) |
14313 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
14314 | # on systems that don't support them. |
14315 | lt_prog_compiler_can_build_shared_F77=no |
14316 | enable_shared=no |
14317 | ;; |
14318 | |
14319 | sysv4*MP*) |
14320 | if test -d /usr/nec; then |
14321 | lt_prog_compiler_pic_F77=-Kconform_pic |
14322 | fi |
14323 | ;; |
14324 | |
14325 | hpux*) |
14326 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
14327 | # not for PA HP-UX. |
14328 | case $host_cpu in |
14329 | hppa*64*|ia64*) |
14330 | # +Z the default |
14331 | ;; |
14332 | *) |
14333 | lt_prog_compiler_pic_F77='-fPIC' |
14334 | ;; |
14335 | esac |
14336 | ;; |
14337 | |
14338 | *) |
14339 | lt_prog_compiler_pic_F77='-fPIC' |
14340 | ;; |
14341 | esac |
14342 | else |
14343 | # PORTME Check for flag to pass linker flags through the system compiler. |
14344 | case $host_os in |
14345 | aix*) |
14346 | lt_prog_compiler_wl_F77='-Wl,' |
14347 | if test "$host_cpu" = ia64; then |
14348 | # AIX 5 now supports IA64 processor |
14349 | lt_prog_compiler_static_F77='-Bstatic' |
14350 | else |
14351 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
14352 | fi |
14353 | ;; |
14354 | darwin*) |
14355 | # PIC is the default on this platform |
14356 | # Common symbols not allowed in MH_DYLIB files |
14357 | case $cc_basename in |
14358 | xlc*) |
14359 | lt_prog_compiler_pic_F77='-qnocommon' |
14360 | lt_prog_compiler_wl_F77='-Wl,' |
14361 | ;; |
14362 | esac |
14363 | ;; |
14364 | |
14365 | mingw* | cygwin* | pw32* | os2*) |
14366 | # This hack is so that the source file can tell whether it is being |
14367 | # built for inclusion in a dll (and should export symbols for example). |
14368 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
14369 | ;; |
14370 | |
14371 | hpux9* | hpux10* | hpux11*) |
14372 | lt_prog_compiler_wl_F77='-Wl,' |
14373 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
14374 | # not for PA HP-UX. |
14375 | case $host_cpu in |
14376 | hppa*64*|ia64*) |
14377 | # +Z the default |
14378 | ;; |
14379 | *) |
14380 | lt_prog_compiler_pic_F77='+Z' |
14381 | ;; |
14382 | esac |
14383 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
14384 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
14385 | ;; |
14386 | |
14387 | irix5* | irix6* | nonstopux*) |
14388 | lt_prog_compiler_wl_F77='-Wl,' |
14389 | # PIC (with -KPIC) is the default. |
14390 | lt_prog_compiler_static_F77='-non_shared' |
14391 | ;; |
14392 | |
14393 | newsos6) |
14394 | lt_prog_compiler_pic_F77='-KPIC' |
14395 | lt_prog_compiler_static_F77='-Bstatic' |
14396 | ;; |
14397 | |
14398 | linux* | k*bsd*-gnu) |
14399 | case $cc_basename in |
14400 | icc* | ecc*) |
14401 | lt_prog_compiler_wl_F77='-Wl,' |
14402 | lt_prog_compiler_pic_F77='-KPIC' |
14403 | lt_prog_compiler_static_F77='-static' |
14404 | ;; |
14405 | pgcc* | pgf77* | pgf90* | pgf95*) |
14406 | # Portland Group compilers (*not* the Pentium gcc compiler, |
14407 | # which looks to be a dead project) |
14408 | lt_prog_compiler_wl_F77='-Wl,' |
14409 | lt_prog_compiler_pic_F77='-fpic' |
14410 | lt_prog_compiler_static_F77='-Bstatic' |
14411 | ;; |
14412 | ccc*) |
14413 | lt_prog_compiler_wl_F77='-Wl,' |
14414 | # All Alpha code is PIC. |
14415 | lt_prog_compiler_static_F77='-non_shared' |
14416 | ;; |
14417 | *) |
14418 | case `$CC -V 2>&1 | sed 5q` in |
14419 | *Sun\ C*) |
14420 | # Sun C 5.9 |
14421 | lt_prog_compiler_pic_F77='-KPIC' |
14422 | lt_prog_compiler_static_F77='-Bstatic' |
14423 | lt_prog_compiler_wl_F77='-Wl,' |
14424 | ;; |
14425 | *Sun\ F*) |
14426 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
14427 | lt_prog_compiler_pic_F77='-KPIC' |
14428 | lt_prog_compiler_static_F77='-Bstatic' |
14429 | lt_prog_compiler_wl_F77='' |
14430 | ;; |
14431 | esac |
14432 | ;; |
14433 | esac |
14434 | ;; |
14435 | |
14436 | osf3* | osf4* | osf5*) |
14437 | lt_prog_compiler_wl_F77='-Wl,' |
14438 | # All OSF/1 code is PIC. |
14439 | lt_prog_compiler_static_F77='-non_shared' |
14440 | ;; |
14441 | |
14442 | rdos*) |
14443 | lt_prog_compiler_static_F77='-non_shared' |
14444 | ;; |
14445 | |
14446 | solaris*) |
14447 | lt_prog_compiler_pic_F77='-KPIC' |
14448 | lt_prog_compiler_static_F77='-Bstatic' |
14449 | case $cc_basename in |
14450 | f77* | f90* | f95*) |
14451 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
14452 | *) |
14453 | lt_prog_compiler_wl_F77='-Wl,';; |
14454 | esac |
14455 | ;; |
14456 | |
14457 | sunos4*) |
14458 | lt_prog_compiler_wl_F77='-Qoption ld ' |
14459 | lt_prog_compiler_pic_F77='-PIC' |
14460 | lt_prog_compiler_static_F77='-Bstatic' |
14461 | ;; |
14462 | |
14463 | sysv4 | sysv4.2uw2* | sysv4.3*) |
14464 | lt_prog_compiler_wl_F77='-Wl,' |
14465 | lt_prog_compiler_pic_F77='-KPIC' |
14466 | lt_prog_compiler_static_F77='-Bstatic' |
14467 | ;; |
14468 | |
14469 | sysv4*MP*) |
14470 | if test -d /usr/nec ;then |
14471 | lt_prog_compiler_pic_F77='-Kconform_pic' |
14472 | lt_prog_compiler_static_F77='-Bstatic' |
14473 | fi |
14474 | ;; |
14475 | |
14476 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
14477 | lt_prog_compiler_wl_F77='-Wl,' |
14478 | lt_prog_compiler_pic_F77='-KPIC' |
14479 | lt_prog_compiler_static_F77='-Bstatic' |
14480 | ;; |
14481 | |
14482 | unicos*) |
14483 | lt_prog_compiler_wl_F77='-Wl,' |
14484 | lt_prog_compiler_can_build_shared_F77=no |
14485 | ;; |
14486 | |
14487 | uts4*) |
14488 | lt_prog_compiler_pic_F77='-pic' |
14489 | lt_prog_compiler_static_F77='-Bstatic' |
14490 | ;; |
14491 | |
14492 | *) |
14493 | lt_prog_compiler_can_build_shared_F77=no |
14494 | ;; |
14495 | esac |
14496 | fi |
14497 | |
14498 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
14499 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
14500 | |
14501 | # |
14502 | # Check to make sure the PIC flag actually works. |
14503 | # |
14504 | if test -n "$lt_prog_compiler_pic_F77"; then |
14505 | |
14506 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
14507 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
14508 | if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then |
14509 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14510 | else |
14511 | lt_cv_prog_compiler_pic_works_F77=no |
14512 | ac_outfile=conftest.$ac_objext |
14513 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
14514 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
14515 | # Insert the option either (1) after the last *FLAGS variable, or |
14516 | # (2) before a word containing "conftest.", or (3) at the end. |
14517 | # Note that $ac_compile itself does not contain backslashes and begins |
14518 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14519 | # The option is referenced via a variable to avoid confusing sed. |
14520 | lt_compile=`echo "$ac_compile" | $SED \ |
14521 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14522 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14523 | -e 's:$: $lt_compiler_flag:'` |
14524 | (eval echo "\"\$as_me:14524: $lt_compile\"" >&5) |
14525 | (eval "$lt_compile" 2>conftest.err) |
14526 | ac_status=$? |
14527 | cat conftest.err >&5 |
14528 | echo "$as_me:14528: \$? = $ac_status" >&5 |
14529 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14530 | # The compiler can only warn and ignore the option if not recognized |
14531 | # So say no if there are warnings other than the usual output. |
14532 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
14533 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14534 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
14535 | lt_cv_prog_compiler_pic_works_F77=yes |
14536 | fi |
14537 | fi |
14538 | $rm conftest* |
14539 | |
14540 | fi |
14541 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5 |
14542 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; } |
14543 | |
14544 | if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then |
14545 | case $lt_prog_compiler_pic_F77 in |
14546 | "" | " "*) ;; |
14547 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
14548 | esac |
14549 | else |
14550 | lt_prog_compiler_pic_F77= |
14551 | lt_prog_compiler_can_build_shared_F77=no |
14552 | fi |
14553 | |
14554 | fi |
14555 | case $host_os in |
14556 | # For platforms which do not support PIC, -DPIC is meaningless: |
14557 | *djgpp*) |
14558 | lt_prog_compiler_pic_F77= |
14559 | ;; |
14560 | *) |
14561 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
14562 | ;; |
14563 | esac |
14564 | |
14565 | # |
14566 | # Check to make sure the static flag actually works. |
14567 | # |
14568 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
14569 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
14570 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
14571 | if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then |
14572 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14573 | else |
14574 | lt_cv_prog_compiler_static_works_F77=no |
14575 | save_LDFLAGS="$LDFLAGS" |
14576 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
14577 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
14578 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
14579 | # The linker can only warn and ignore the option if not recognized |
14580 | # So say no if there are warnings |
14581 | if test -s conftest.err; then |
14582 | # Append any errors to the config.log. |
14583 | cat conftest.err 1>&5 |
14584 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
14585 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14586 | if diff conftest.exp conftest.er2 >/dev/null; then |
14587 | lt_cv_prog_compiler_static_works_F77=yes |
14588 | fi |
14589 | else |
14590 | lt_cv_prog_compiler_static_works_F77=yes |
14591 | fi |
14592 | fi |
14593 | $rm -r conftest* |
14594 | LDFLAGS="$save_LDFLAGS" |
14595 | |
14596 | fi |
14597 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5 |
14598 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; } |
14599 | |
14600 | if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then |
14601 | : |
14602 | else |
14603 | lt_prog_compiler_static_F77= |
14604 | fi |
14605 | |
14606 | |
14607 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14608 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
14609 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
14610 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14611 | else |
14612 | lt_cv_prog_compiler_c_o_F77=no |
14613 | $rm -r conftest 2>/dev/null |
14614 | mkdir conftest |
14615 | cd conftest |
14616 | mkdir out |
14617 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
14618 | |
14619 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
14620 | # Insert the option either (1) after the last *FLAGS variable, or |
14621 | # (2) before a word containing "conftest.", or (3) at the end. |
14622 | # Note that $ac_compile itself does not contain backslashes and begins |
14623 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14624 | lt_compile=`echo "$ac_compile" | $SED \ |
14625 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14626 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14627 | -e 's:$: $lt_compiler_flag:'` |
14628 | (eval echo "\"\$as_me:14628: $lt_compile\"" >&5) |
14629 | (eval "$lt_compile" 2>out/conftest.err) |
14630 | ac_status=$? |
14631 | cat out/conftest.err >&5 |
14632 | echo "$as_me:14632: \$? = $ac_status" >&5 |
14633 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14634 | then |
14635 | # The compiler can only warn and ignore the option if not recognized |
14636 | # So say no if there are warnings |
14637 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
14638 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14639 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
14640 | lt_cv_prog_compiler_c_o_F77=yes |
14641 | fi |
14642 | fi |
14643 | chmod u+w . 2>&5 |
14644 | $rm conftest* |
14645 | # SGI C++ compiler will create directory out/ii_files/ for |
14646 | # template instantiation |
14647 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
14648 | $rm out/* && rmdir out |
14649 | cd .. |
14650 | rmdir conftest |
14651 | $rm conftest* |
14652 | |
14653 | fi |
14654 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
14655 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
14656 | |
14657 | |
14658 | hard_links="nottested" |
14659 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
14660 | # do not overwrite the value of need_locks provided by the user |
14661 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
14662 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
14663 | hard_links=yes |
14664 | $rm conftest* |
14665 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14666 | touch conftest.a |
14667 | ln conftest.a conftest.b 2>&5 || hard_links=no |
14668 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14669 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
14670 | echo "${ECHO_T}$hard_links" >&6; } |
14671 | if test "$hard_links" = no; then |
14672 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14673 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
14674 | need_locks=warn |
14675 | fi |
14676 | else |
14677 | need_locks=no |
14678 | fi |
14679 | |
14680 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14681 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
14682 | |
14683 | runpath_var= |
14684 | allow_undefined_flag_F77= |
14685 | enable_shared_with_static_runtimes_F77=no |
14686 | archive_cmds_F77= |
14687 | archive_expsym_cmds_F77= |
14688 | old_archive_From_new_cmds_F77= |
14689 | old_archive_from_expsyms_cmds_F77= |
14690 | export_dynamic_flag_spec_F77= |
14691 | whole_archive_flag_spec_F77= |
14692 | thread_safe_flag_spec_F77= |
14693 | hardcode_libdir_flag_spec_F77= |
14694 | hardcode_libdir_flag_spec_ld_F77= |
14695 | hardcode_libdir_separator_F77= |
14696 | hardcode_direct_F77=no |
14697 | hardcode_minus_L_F77=no |
14698 | hardcode_shlibpath_var_F77=unsupported |
14699 | link_all_deplibs_F77=unknown |
14700 | hardcode_automatic_F77=no |
14701 | module_cmds_F77= |
14702 | module_expsym_cmds_F77= |
14703 | always_export_symbols_F77=no |
14704 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
14705 | # include_expsyms should be a list of space-separated symbols to be *always* |
14706 | # included in the symbol list |
14707 | include_expsyms_F77= |
14708 | # exclude_expsyms can be an extended regexp of symbols to exclude |
14709 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
14710 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
14711 | # as well as any symbol that contains `d'. |
14712 | exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
14713 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14714 | # platforms (ab)use it in PIC code, but their linkers get confused if |
14715 | # the symbol is explicitly referenced. Since portable code cannot |
14716 | # rely on this symbol name, it's probably fine to never include it in |
14717 | # preloaded symbol tables. |
14718 | # Exclude shared library initialization/finalization symbols. |
14719 | extract_expsyms_cmds= |
14720 | # Just being paranoid about ensuring that cc_basename is set. |
14721 | for cc_temp in $compiler""; do |
14722 | case $cc_temp in |
14723 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
14724 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
14725 | \-*) ;; |
14726 | *) break;; |
14727 | esac |
14728 | done |
14729 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
14730 | |
14731 | case $host_os in |
14732 | cygwin* | mingw* | pw32*) |
14733 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14734 | # When not using gcc, we currently assume that we are using |
14735 | # Microsoft Visual C++. |
14736 | if test "$GCC" != yes; then |
14737 | with_gnu_ld=no |
14738 | fi |
14739 | ;; |
14740 | interix*) |
14741 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
14742 | with_gnu_ld=yes |
14743 | ;; |
14744 | openbsd*) |
14745 | with_gnu_ld=no |
14746 | ;; |
14747 | esac |
14748 | |
14749 | ld_shlibs_F77=yes |
14750 | if test "$with_gnu_ld" = yes; then |
14751 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14752 | wlarc='${wl}' |
14753 | |
14754 | # Set some defaults for GNU ld with shared library support. These |
14755 | # are reset later if shared libraries are not supported. Putting them |
14756 | # here allows them to be overridden if necessary. |
14757 | runpath_var=LD_RUN_PATH |
14758 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
14759 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
14760 | # ancient GNU ld didn't support --whole-archive et. al. |
14761 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
14762 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
14763 | else |
14764 | whole_archive_flag_spec_F77= |
14765 | fi |
14766 | supports_anon_versioning=no |
14767 | case `$LD -v 2>/dev/null` in |
14768 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14769 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
14770 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
14771 | *\ 2.11.*) ;; # other 2.11 versions |
14772 | *) supports_anon_versioning=yes ;; |
14773 | esac |
14774 | |
14775 | # See if GNU ld supports shared libraries. |
14776 | case $host_os in |
14777 | aix[3-9]*) |
14778 | # On AIX/PPC, the GNU linker is very broken |
14779 | if test "$host_cpu" != ia64; then |
14780 | ld_shlibs_F77=no |
14781 | cat <<EOF 1>&2 |
14782 | |
14783 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
14784 | *** to be unable to reliably create shared libraries on AIX. |
14785 | *** Therefore, libtool is disabling shared libraries support. If you |
14786 | *** really care for shared libraries, you may want to modify your PATH |
14787 | *** so that a non-GNU linker is found, and then restart. |
14788 | |
14789 | EOF |
14790 | fi |
14791 | ;; |
14792 | |
14793 | amigaos*) |
14794 | 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)' |
14795 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14796 | hardcode_minus_L_F77=yes |
14797 | |
14798 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
14799 | # that the semantics of dynamic libraries on AmigaOS, at least up |
14800 | # to version 4, is to share data among multiple programs linked |
14801 | # with the same dynamic library. Since this doesn't match the |
14802 | # behavior of shared libraries on other platforms, we can't use |
14803 | # them. |
14804 | ld_shlibs_F77=no |
14805 | ;; |
14806 | |
14807 | beos*) |
14808 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14809 | allow_undefined_flag_F77=unsupported |
14810 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
14811 | # support --undefined. This deserves some investigation. FIXME |
14812 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14813 | else |
14814 | ld_shlibs_F77=no |
14815 | fi |
14816 | ;; |
14817 | |
14818 | cygwin* | mingw* | pw32*) |
14819 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
14820 | # as there is no search path for DLLs. |
14821 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14822 | allow_undefined_flag_F77=unsupported |
14823 | always_export_symbols_F77=no |
14824 | enable_shared_with_static_runtimes_F77=yes |
14825 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
14826 | |
14827 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
14828 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14829 | # If the export-symbols file already is a .def file (1st line |
14830 | # is EXPORTS), use it as is; otherwise, prepend... |
14831 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
14832 | cp $export_symbols $output_objdir/$soname.def; |
14833 | else |
14834 | echo EXPORTS > $output_objdir/$soname.def; |
14835 | cat $export_symbols >> $output_objdir/$soname.def; |
14836 | fi~ |
14837 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14838 | else |
14839 | ld_shlibs_F77=no |
14840 | fi |
14841 | ;; |
14842 | |
14843 | interix[3-9]*) |
14844 | hardcode_direct_F77=no |
14845 | hardcode_shlibpath_var_F77=no |
14846 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14847 | export_dynamic_flag_spec_F77='${wl}-E' |
14848 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
14849 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
14850 | # default) and relocated if they conflict, which is a slow very memory |
14851 | # consuming and fragmenting process. To avoid this, we pick a random, |
14852 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
14853 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
14854 | 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' |
14855 | 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' |
14856 | ;; |
14857 | |
14858 | gnu* | linux* | k*bsd*-gnu) |
14859 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14860 | tmp_addflag= |
14861 | case $cc_basename,$host_cpu in |
14862 | pgcc*) # Portland Group C compiler |
14863 | 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' |
14864 | tmp_addflag=' $pic_flag' |
14865 | ;; |
14866 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
14867 | 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' |
14868 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14869 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
14870 | tmp_addflag=' -i_dynamic' ;; |
14871 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
14872 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
14873 | ifc* | ifort*) # Intel Fortran compiler |
14874 | tmp_addflag=' -nofor_main' ;; |
14875 | esac |
14876 | case `$CC -V 2>&1 | sed 5q` in |
14877 | *Sun\ C*) # Sun C 5.9 |
14878 | whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
14879 | tmp_sharedflag='-G' ;; |
14880 | *Sun\ F*) # Sun Fortran 8.3 |
14881 | tmp_sharedflag='-G' ;; |
14882 | *) |
14883 | tmp_sharedflag='-shared' ;; |
14884 | esac |
14885 | archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14886 | |
14887 | if test $supports_anon_versioning = yes; then |
14888 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
14889 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
14890 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
14891 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
14892 | fi |
14893 | else |
14894 | ld_shlibs_F77=no |
14895 | fi |
14896 | ;; |
14897 | |
14898 | netbsd*) |
14899 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14900 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
14901 | wlarc= |
14902 | else |
14903 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14904 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14905 | fi |
14906 | ;; |
14907 | |
14908 | solaris*) |
14909 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
14910 | ld_shlibs_F77=no |
14911 | cat <<EOF 1>&2 |
14912 | |
14913 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
14914 | *** create shared libraries on Solaris systems. Therefore, libtool |
14915 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14916 | *** binutils to release 2.9.1 or newer. Another option is to modify |
14917 | *** your PATH or compiler configuration so that the native linker is |
14918 | *** used, and then restart. |
14919 | |
14920 | EOF |
14921 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14922 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14923 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14924 | else |
14925 | ld_shlibs_F77=no |
14926 | fi |
14927 | ;; |
14928 | |
14929 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
14930 | case `$LD -v 2>&1` in |
14931 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
14932 | ld_shlibs_F77=no |
14933 | cat <<_LT_EOF 1>&2 |
14934 | |
14935 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
14936 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
14937 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14938 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
14939 | *** your PATH or compiler configuration so that the native linker is |
14940 | *** used, and then restart. |
14941 | |
14942 | _LT_EOF |
14943 | ;; |
14944 | *) |
14945 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14946 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
14947 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
14948 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
14949 | else |
14950 | ld_shlibs_F77=no |
14951 | fi |
14952 | ;; |
14953 | esac |
14954 | ;; |
14955 | |
14956 | sunos4*) |
14957 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14958 | wlarc= |
14959 | hardcode_direct_F77=yes |
14960 | hardcode_shlibpath_var_F77=no |
14961 | ;; |
14962 | |
14963 | *) |
14964 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14965 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14966 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14967 | else |
14968 | ld_shlibs_F77=no |
14969 | fi |
14970 | ;; |
14971 | esac |
14972 | |
14973 | if test "$ld_shlibs_F77" = no; then |
14974 | runpath_var= |
14975 | hardcode_libdir_flag_spec_F77= |
14976 | export_dynamic_flag_spec_F77= |
14977 | whole_archive_flag_spec_F77= |
14978 | fi |
14979 | else |
14980 | # PORTME fill in a description of your system's linker (not GNU ld) |
14981 | case $host_os in |
14982 | aix3*) |
14983 | allow_undefined_flag_F77=unsupported |
14984 | always_export_symbols_F77=yes |
14985 | 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' |
14986 | # Note: this linker hardcodes the directories in LIBPATH if there |
14987 | # are no directories specified by -L. |
14988 | hardcode_minus_L_F77=yes |
14989 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
14990 | # Neither direct hardcoding nor static linking is supported with a |
14991 | # broken collect2. |
14992 | hardcode_direct_F77=unsupported |
14993 | fi |
14994 | ;; |
14995 | |
14996 | aix[4-9]*) |
14997 | if test "$host_cpu" = ia64; then |
14998 | # On IA64, the linker does run time linking by default, so we don't |
14999 | # have to do anything special. |
15000 | aix_use_runtimelinking=no |
15001 | exp_sym_flag='-Bexport' |
15002 | no_entry_flag="" |
15003 | else |
15004 | # If we're using GNU nm, then we don't want the "-C" option. |
15005 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
15006 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
15007 | 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' |
15008 | else |
15009 | 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' |
15010 | fi |
15011 | aix_use_runtimelinking=no |
15012 | |
15013 | # Test if we are trying to use run time linking or normal |
15014 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
15015 | # need to do runtime linking. |
15016 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
15017 | for ld_flag in $LDFLAGS; do |
15018 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
15019 | aix_use_runtimelinking=yes |
15020 | break |
15021 | fi |
15022 | done |
15023 | ;; |
15024 | esac |
15025 | |
15026 | exp_sym_flag='-bexport' |
15027 | no_entry_flag='-bnoentry' |
15028 | fi |
15029 | |
15030 | # When large executables or shared objects are built, AIX ld can |
15031 | # have problems creating the table of contents. If linking a library |
15032 | # or program results in "error TOC overflow" add -mminimal-toc to |
15033 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
15034 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
15035 | |
15036 | archive_cmds_F77='' |
15037 | hardcode_direct_F77=yes |
15038 | hardcode_libdir_separator_F77=':' |
15039 | link_all_deplibs_F77=yes |
15040 | |
15041 | if test "$GCC" = yes; then |
15042 | case $host_os in aix4.[012]|aix4.[012].*) |
15043 | # We only want to do this on AIX 4.2 and lower, the check |
15044 | # below for broken collect2 doesn't work under 4.3+ |
15045 | collect2name=`${CC} -print-prog-name=collect2` |
15046 | if test -f "$collect2name" && \ |
15047 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
15048 | then |
15049 | # We have reworked collect2 |
15050 | : |
15051 | else |
15052 | # We have old collect2 |
15053 | hardcode_direct_F77=unsupported |
15054 | # It fails to find uninstalled libraries when the uninstalled |
15055 | # path is not listed in the libpath. Setting hardcode_minus_L |
15056 | # to unsupported forces relinking |
15057 | hardcode_minus_L_F77=yes |
15058 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15059 | hardcode_libdir_separator_F77= |
15060 | fi |
15061 | ;; |
15062 | esac |
15063 | shared_flag='-shared' |
15064 | if test "$aix_use_runtimelinking" = yes; then |
15065 | shared_flag="$shared_flag "'${wl}-G' |
15066 | fi |
15067 | else |
15068 | # not using gcc |
15069 | if test "$host_cpu" = ia64; then |
15070 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
15071 | # chokes on -Wl,-G. The following line is correct: |
15072 | shared_flag='-G' |
15073 | else |
15074 | if test "$aix_use_runtimelinking" = yes; then |
15075 | shared_flag='${wl}-G' |
15076 | else |
15077 | shared_flag='${wl}-bM:SRE' |
15078 | fi |
15079 | fi |
15080 | fi |
15081 | |
15082 | # It seems that -bexpall does not export symbols beginning with |
15083 | # underscore (_), so it is better to generate a list of symbols to export. |
15084 | always_export_symbols_F77=yes |
15085 | if test "$aix_use_runtimelinking" = yes; then |
15086 | # Warning - without using the other runtime loading flags (-brtl), |
15087 | # -berok will link without error, but may produce a broken library. |
15088 | allow_undefined_flag_F77='-berok' |
15089 | # Determine the default libpath from the value encoded in an empty executable. |
15090 | cat >conftest.$ac_ext <<_ACEOF |
15091 | program main |
15092 | |
15093 | end |
15094 | _ACEOF |
15095 | rm -f conftest.$ac_objext conftest$ac_exeext |
15096 | if { (ac_try="$ac_link" |
15097 | case "(($ac_try" in |
15098 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
15099 | *) ac_try_echo=$ac_try;; |
15100 | esac |
15101 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
15102 | (eval "$ac_link") 2>conftest.er1 |
15103 | ac_status=$? |
15104 | grep -v '^ *+' conftest.er1 >conftest.err |
15105 | rm -f conftest.er1 |
15106 | cat conftest.err >&5 |
15107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15108 | (exit $ac_status); } && { |
15109 | test -z "$ac_f77_werror_flag" || |
15110 | test ! -s conftest.err |
15111 | } && test -s conftest$ac_exeext && |
15112 | $as_test_x conftest$ac_exeext; then |
15113 | |
15114 | lt_aix_libpath_sed=' |
15115 | /Import File Strings/,/^$/ { |
15116 | /^0/ { |
15117 | s/^0 *\(.*\)$/\1/ |
15118 | p |
15119 | } |
15120 | }' |
15121 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
15122 | # Check for a 64-bit object if we didn't find anything. |
15123 | if test -z "$aix_libpath"; then |
15124 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
15125 | fi |
15126 | else |
15127 | echo "$as_me: failed program was:" >&5 |
15128 | sed 's/^/| /' conftest.$ac_ext >&5 |
15129 | |
15130 | |
15131 | fi |
15132 | |
15133 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
15134 | conftest$ac_exeext conftest.$ac_ext |
15135 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
15136 | |
15137 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
15138 | 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" |
15139 | else |
15140 | if test "$host_cpu" = ia64; then |
15141 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
15142 | allow_undefined_flag_F77="-z nodefs" |
15143 | 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" |
15144 | else |
15145 | # Determine the default libpath from the value encoded in an empty executable. |
15146 | cat >conftest.$ac_ext <<_ACEOF |
15147 | program main |
15148 | |
15149 | end |
15150 | _ACEOF |
15151 | rm -f conftest.$ac_objext conftest$ac_exeext |
15152 | if { (ac_try="$ac_link" |
15153 | case "(($ac_try" in |
15154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
15155 | *) ac_try_echo=$ac_try;; |
15156 | esac |
15157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
15158 | (eval "$ac_link") 2>conftest.er1 |
15159 | ac_status=$? |
15160 | grep -v '^ *+' conftest.er1 >conftest.err |
15161 | rm -f conftest.er1 |
15162 | cat conftest.err >&5 |
15163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15164 | (exit $ac_status); } && { |
15165 | test -z "$ac_f77_werror_flag" || |
15166 | test ! -s conftest.err |
15167 | } && test -s conftest$ac_exeext && |
15168 | $as_test_x conftest$ac_exeext; then |
15169 | |
15170 | lt_aix_libpath_sed=' |
15171 | /Import File Strings/,/^$/ { |
15172 | /^0/ { |
15173 | s/^0 *\(.*\)$/\1/ |
15174 | p |
15175 | } |
15176 | }' |
15177 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
15178 | # Check for a 64-bit object if we didn't find anything. |
15179 | if test -z "$aix_libpath"; then |
15180 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
15181 | fi |
15182 | else |
15183 | echo "$as_me: failed program was:" >&5 |
15184 | sed 's/^/| /' conftest.$ac_ext >&5 |
15185 | |
15186 | |
15187 | fi |
15188 | |
15189 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
15190 | conftest$ac_exeext conftest.$ac_ext |
15191 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
15192 | |
15193 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
15194 | # Warning - without using the other run time loading flags, |
15195 | # -berok will link without error, but may produce a broken library. |
15196 | no_undefined_flag_F77=' ${wl}-bernotok' |
15197 | allow_undefined_flag_F77=' ${wl}-berok' |
15198 | # Exported symbols can be pulled into shared objects from archives |
15199 | whole_archive_flag_spec_F77='$convenience' |
15200 | archive_cmds_need_lc_F77=yes |
15201 | # This is similar to how AIX traditionally builds its shared libraries. |
15202 | 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' |
15203 | fi |
15204 | fi |
15205 | ;; |
15206 | |
15207 | amigaos*) |
15208 | 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)' |
15209 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15210 | hardcode_minus_L_F77=yes |
15211 | # see comment about different semantics on the GNU ld section |
15212 | ld_shlibs_F77=no |
15213 | ;; |
15214 | |
15215 | bsdi[45]*) |
15216 | export_dynamic_flag_spec_F77=-rdynamic |
15217 | ;; |
15218 | |
15219 | cygwin* | mingw* | pw32*) |
15220 | # When not using gcc, we currently assume that we are using |
15221 | # Microsoft Visual C++. |
15222 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
15223 | # no search path for DLLs. |
15224 | hardcode_libdir_flag_spec_F77=' ' |
15225 | allow_undefined_flag_F77=unsupported |
15226 | # Tell ltmain to make .lib files, not .a files. |
15227 | libext=lib |
15228 | # Tell ltmain to make .dll files, not .so files. |
15229 | shrext_cmds=".dll" |
15230 | # FIXME: Setting linknames here is a bad hack. |
15231 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
15232 | # The linker will automatically build a .lib file if we build a DLL. |
15233 | old_archive_From_new_cmds_F77='true' |
15234 | # FIXME: Should let the user specify the lib program. |
15235 | old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' |
15236 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
15237 | enable_shared_with_static_runtimes_F77=yes |
15238 | ;; |
15239 | |
15240 | darwin* | rhapsody*) |
15241 | case $host_os in |
15242 | rhapsody* | darwin1.[012]) |
15243 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
15244 | ;; |
15245 | *) # Darwin 1.3 on |
15246 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
15247 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
15248 | else |
15249 | case ${MACOSX_DEPLOYMENT_TARGET} in |
15250 | 10.[012]) |
15251 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
15252 | ;; |
15253 | 10.*) |
15254 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
15255 | ;; |
15256 | esac |
15257 | fi |
15258 | ;; |
15259 | esac |
15260 | archive_cmds_need_lc_F77=no |
15261 | hardcode_direct_F77=no |
15262 | hardcode_automatic_F77=yes |
15263 | hardcode_shlibpath_var_F77=unsupported |
15264 | whole_archive_flag_spec_F77='' |
15265 | link_all_deplibs_F77=yes |
15266 | if test "$GCC" = yes ; then |
15267 | output_verbose_link_cmd='echo' |
15268 | archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
15269 | module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
15270 | archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
15271 | module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
15272 | else |
15273 | case $cc_basename in |
15274 | xlc*) |
15275 | output_verbose_link_cmd='echo' |
15276 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
15277 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
15278 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
15279 | 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
15280 | 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}' |
15281 | ;; |
15282 | *) |
15283 | ld_shlibs_F77=no |
15284 | ;; |
15285 | esac |
15286 | fi |
15287 | ;; |
15288 | |
15289 | dgux*) |
15290 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15291 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15292 | hardcode_shlibpath_var_F77=no |
15293 | ;; |
15294 | |
15295 | freebsd1*) |
15296 | ld_shlibs_F77=no |
15297 | ;; |
15298 | |
15299 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
15300 | # support. Future versions do this automatically, but an explicit c++rt0.o |
15301 | # does not break anything, and helps significantly (at the cost of a little |
15302 | # extra space). |
15303 | freebsd2.2*) |
15304 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
15305 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15306 | hardcode_direct_F77=yes |
15307 | hardcode_shlibpath_var_F77=no |
15308 | ;; |
15309 | |
15310 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
15311 | freebsd2*) |
15312 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
15313 | hardcode_direct_F77=yes |
15314 | hardcode_minus_L_F77=yes |
15315 | hardcode_shlibpath_var_F77=no |
15316 | ;; |
15317 | |
15318 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
15319 | freebsd* | dragonfly*) |
15320 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
15321 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15322 | hardcode_direct_F77=yes |
15323 | hardcode_shlibpath_var_F77=no |
15324 | ;; |
15325 | |
15326 | hpux9*) |
15327 | if test "$GCC" = yes; then |
15328 | 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' |
15329 | else |
15330 | 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' |
15331 | fi |
15332 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
15333 | hardcode_libdir_separator_F77=: |
15334 | hardcode_direct_F77=yes |
15335 | |
15336 | # hardcode_minus_L: Not really in the search PATH, |
15337 | # but as the default location of the library. |
15338 | hardcode_minus_L_F77=yes |
15339 | export_dynamic_flag_spec_F77='${wl}-E' |
15340 | ;; |
15341 | |
15342 | hpux10*) |
15343 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
15344 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
15345 | else |
15346 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
15347 | fi |
15348 | if test "$with_gnu_ld" = no; then |
15349 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
15350 | hardcode_libdir_separator_F77=: |
15351 | |
15352 | hardcode_direct_F77=yes |
15353 | export_dynamic_flag_spec_F77='${wl}-E' |
15354 | |
15355 | # hardcode_minus_L: Not really in the search PATH, |
15356 | # but as the default location of the library. |
15357 | hardcode_minus_L_F77=yes |
15358 | fi |
15359 | ;; |
15360 | |
15361 | hpux11*) |
15362 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
15363 | case $host_cpu in |
15364 | hppa*64*) |
15365 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15366 | ;; |
15367 | ia64*) |
15368 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
15369 | ;; |
15370 | *) |
15371 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
15372 | ;; |
15373 | esac |
15374 | else |
15375 | case $host_cpu in |
15376 | hppa*64*) |
15377 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15378 | ;; |
15379 | ia64*) |
15380 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
15381 | ;; |
15382 | *) |
15383 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
15384 | ;; |
15385 | esac |
15386 | fi |
15387 | if test "$with_gnu_ld" = no; then |
15388 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
15389 | hardcode_libdir_separator_F77=: |
15390 | |
15391 | case $host_cpu in |
15392 | hppa*64*|ia64*) |
15393 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
15394 | hardcode_direct_F77=no |
15395 | hardcode_shlibpath_var_F77=no |
15396 | ;; |
15397 | *) |
15398 | hardcode_direct_F77=yes |
15399 | export_dynamic_flag_spec_F77='${wl}-E' |
15400 | |
15401 | # hardcode_minus_L: Not really in the search PATH, |
15402 | # but as the default location of the library. |
15403 | hardcode_minus_L_F77=yes |
15404 | ;; |
15405 | esac |
15406 | fi |
15407 | ;; |
15408 | |
15409 | irix5* | irix6* | nonstopux*) |
15410 | if test "$GCC" = yes; then |
15411 | 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' |
15412 | else |
15413 | 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' |
15414 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
15415 | fi |
15416 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15417 | hardcode_libdir_separator_F77=: |
15418 | link_all_deplibs_F77=yes |
15419 | ;; |
15420 | |
15421 | netbsd*) |
15422 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15423 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
15424 | else |
15425 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
15426 | fi |
15427 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15428 | hardcode_direct_F77=yes |
15429 | hardcode_shlibpath_var_F77=no |
15430 | ;; |
15431 | |
15432 | newsos6) |
15433 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15434 | hardcode_direct_F77=yes |
15435 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15436 | hardcode_libdir_separator_F77=: |
15437 | hardcode_shlibpath_var_F77=no |
15438 | ;; |
15439 | |
15440 | openbsd*) |
15441 | if test -f /usr/libexec/ld.so; then |
15442 | hardcode_direct_F77=yes |
15443 | hardcode_shlibpath_var_F77=no |
15444 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15445 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15446 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
15447 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15448 | export_dynamic_flag_spec_F77='${wl}-E' |
15449 | else |
15450 | case $host_os in |
15451 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
15452 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
15453 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15454 | ;; |
15455 | *) |
15456 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15457 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15458 | ;; |
15459 | esac |
15460 | fi |
15461 | else |
15462 | ld_shlibs_F77=no |
15463 | fi |
15464 | ;; |
15465 | |
15466 | os2*) |
15467 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15468 | hardcode_minus_L_F77=yes |
15469 | allow_undefined_flag_F77=unsupported |
15470 | 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' |
15471 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
15472 | ;; |
15473 | |
15474 | osf3*) |
15475 | if test "$GCC" = yes; then |
15476 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15477 | 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' |
15478 | else |
15479 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15480 | 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' |
15481 | fi |
15482 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15483 | hardcode_libdir_separator_F77=: |
15484 | ;; |
15485 | |
15486 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
15487 | if test "$GCC" = yes; then |
15488 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15489 | 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' |
15490 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15491 | else |
15492 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15493 | 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' |
15494 | 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~ |
15495 | $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' |
15496 | |
15497 | # Both c and cxx compiler support -rpath directly |
15498 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
15499 | fi |
15500 | hardcode_libdir_separator_F77=: |
15501 | ;; |
15502 | |
15503 | solaris*) |
15504 | no_undefined_flag_F77=' -z text' |
15505 | if test "$GCC" = yes; then |
15506 | wlarc='${wl}' |
15507 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15508 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15509 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
15510 | else |
15511 | wlarc='' |
15512 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15513 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15514 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
15515 | fi |
15516 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15517 | hardcode_shlibpath_var_F77=no |
15518 | case $host_os in |
15519 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
15520 | *) |
15521 | # The compiler driver will combine and reorder linker options, |
15522 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
15523 | # but is careful enough not to reorder. |
15524 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
15525 | if test "$GCC" = yes; then |
15526 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
15527 | else |
15528 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' |
15529 | fi |
15530 | ;; |
15531 | esac |
15532 | link_all_deplibs_F77=yes |
15533 | ;; |
15534 | |
15535 | sunos4*) |
15536 | if test "x$host_vendor" = xsequent; then |
15537 | # Use $CC to link under sequent, because it throws in some extra .o |
15538 | # files that make .init and .fini sections work. |
15539 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
15540 | else |
15541 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
15542 | fi |
15543 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15544 | hardcode_direct_F77=yes |
15545 | hardcode_minus_L_F77=yes |
15546 | hardcode_shlibpath_var_F77=no |
15547 | ;; |
15548 | |
15549 | sysv4) |
15550 | case $host_vendor in |
15551 | sni) |
15552 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15553 | hardcode_direct_F77=yes # is this really true??? |
15554 | ;; |
15555 | siemens) |
15556 | ## LD is ld it makes a PLAMLIB |
15557 | ## CC just makes a GrossModule. |
15558 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
15559 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
15560 | hardcode_direct_F77=no |
15561 | ;; |
15562 | motorola) |
15563 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15564 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
15565 | ;; |
15566 | esac |
15567 | runpath_var='LD_RUN_PATH' |
15568 | hardcode_shlibpath_var_F77=no |
15569 | ;; |
15570 | |
15571 | sysv4.3*) |
15572 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15573 | hardcode_shlibpath_var_F77=no |
15574 | export_dynamic_flag_spec_F77='-Bexport' |
15575 | ;; |
15576 | |
15577 | sysv4*MP*) |
15578 | if test -d /usr/nec; then |
15579 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15580 | hardcode_shlibpath_var_F77=no |
15581 | runpath_var=LD_RUN_PATH |
15582 | hardcode_runpath_var=yes |
15583 | ld_shlibs_F77=yes |
15584 | fi |
15585 | ;; |
15586 | |
15587 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
15588 | no_undefined_flag_F77='${wl}-z,text' |
15589 | archive_cmds_need_lc_F77=no |
15590 | hardcode_shlibpath_var_F77=no |
15591 | runpath_var='LD_RUN_PATH' |
15592 | |
15593 | if test "$GCC" = yes; then |
15594 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15595 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15596 | else |
15597 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15598 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15599 | fi |
15600 | ;; |
15601 | |
15602 | sysv5* | sco3.2v5* | sco5v6*) |
15603 | # Note: We can NOT use -z defs as we might desire, because we do not |
15604 | # link with -lc, and that would cause any symbols used from libc to |
15605 | # always be unresolved, which means just about no library would |
15606 | # ever link correctly. If we're not using GNU ld we use -z text |
15607 | # though, which does catch some bad symbols but isn't as heavy-handed |
15608 | # as -z defs. |
15609 | no_undefined_flag_F77='${wl}-z,text' |
15610 | allow_undefined_flag_F77='${wl}-z,nodefs' |
15611 | archive_cmds_need_lc_F77=no |
15612 | hardcode_shlibpath_var_F77=no |
15613 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
15614 | hardcode_libdir_separator_F77=':' |
15615 | link_all_deplibs_F77=yes |
15616 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
15617 | runpath_var='LD_RUN_PATH' |
15618 | |
15619 | if test "$GCC" = yes; then |
15620 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15621 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15622 | else |
15623 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15624 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15625 | fi |
15626 | ;; |
15627 | |
15628 | uts4*) |
15629 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15630 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15631 | hardcode_shlibpath_var_F77=no |
15632 | ;; |
15633 | |
15634 | *) |
15635 | ld_shlibs_F77=no |
15636 | ;; |
15637 | esac |
15638 | fi |
15639 | |
15640 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
15641 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
15642 | test "$ld_shlibs_F77" = no && can_build_shared=no |
15643 | |
15644 | # |
15645 | # Do we need to explicitly link libc? |
15646 | # |
15647 | case "x$archive_cmds_need_lc_F77" in |
15648 | x|xyes) |
15649 | # Assume -lc should be added |
15650 | archive_cmds_need_lc_F77=yes |
15651 | |
15652 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
15653 | case $archive_cmds_F77 in |
15654 | *'~'*) |
15655 | # FIXME: we may have to deal with multi-command sequences. |
15656 | ;; |
15657 | '$CC '*) |
15658 | # Test whether the compiler implicitly links with -lc since on some |
15659 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
15660 | # to ld, don't add -lc before -lgcc. |
15661 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
15662 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
15663 | $rm conftest* |
15664 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
15665 | |
15666 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15667 | (eval $ac_compile) 2>&5 |
15668 | ac_status=$? |
15669 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15670 | (exit $ac_status); } 2>conftest.err; then |
15671 | soname=conftest |
15672 | lib=conftest |
15673 | libobjs=conftest.$ac_objext |
15674 | deplibs= |
15675 | wl=$lt_prog_compiler_wl_F77 |
15676 | pic_flag=$lt_prog_compiler_pic_F77 |
15677 | compiler_flags=-v |
15678 | linker_flags=-v |
15679 | verstring= |
15680 | output_objdir=. |
15681 | libname=conftest |
15682 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
15683 | allow_undefined_flag_F77= |
15684 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
15685 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
15686 | ac_status=$? |
15687 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15688 | (exit $ac_status); } |
15689 | then |
15690 | archive_cmds_need_lc_F77=no |
15691 | else |
15692 | archive_cmds_need_lc_F77=yes |
15693 | fi |
15694 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
15695 | else |
15696 | cat conftest.err 1>&5 |
15697 | fi |
15698 | $rm conftest* |
15699 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
15700 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
15701 | ;; |
15702 | esac |
15703 | fi |
15704 | ;; |
15705 | esac |
15706 | |
15707 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
15708 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
15709 | library_names_spec= |
15710 | libname_spec='lib$name' |
15711 | soname_spec= |
15712 | shrext_cmds=".so" |
15713 | postinstall_cmds= |
15714 | postuninstall_cmds= |
15715 | finish_cmds= |
15716 | finish_eval= |
15717 | shlibpath_var= |
15718 | shlibpath_overrides_runpath=unknown |
15719 | version_type=none |
15720 | dynamic_linker="$host_os ld.so" |
15721 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
15722 | |
15723 | need_lib_prefix=unknown |
15724 | hardcode_into_libs=no |
15725 | |
15726 | # when you set need_version to no, make sure it does not cause -set_version |
15727 | # flags to be left without arguments |
15728 | need_version=unknown |
15729 | |
15730 | case $host_os in |
15731 | aix3*) |
15732 | version_type=linux |
15733 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
15734 | shlibpath_var=LIBPATH |
15735 | |
15736 | # AIX 3 has no versioning support, so we append a major version to the name. |
15737 | soname_spec='${libname}${release}${shared_ext}$major' |
15738 | ;; |
15739 | |
15740 | aix[4-9]*) |
15741 | version_type=linux |
15742 | need_lib_prefix=no |
15743 | need_version=no |
15744 | hardcode_into_libs=yes |
15745 | if test "$host_cpu" = ia64; then |
15746 | # AIX 5 supports IA64 |
15747 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
15748 | shlibpath_var=LD_LIBRARY_PATH |
15749 | else |
15750 | # With GCC up to 2.95.x, collect2 would create an import file |
15751 | # for dependence libraries. The import file would start with |
15752 | # the line `#! .'. This would cause the generated library to |
15753 | # depend on `.', always an invalid library. This was fixed in |
15754 | # development snapshots of GCC prior to 3.0. |
15755 | case $host_os in |
15756 | aix4 | aix4.[01] | aix4.[01].*) |
15757 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
15758 | echo ' yes ' |
15759 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
15760 | : |
15761 | else |
15762 | can_build_shared=no |
15763 | fi |
15764 | ;; |
15765 | esac |
15766 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
15767 | # soname into executable. Probably we can add versioning support to |
15768 | # collect2, so additional links can be useful in future. |
15769 | if test "$aix_use_runtimelinking" = yes; then |
15770 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
15771 | # instead of lib<name>.a to let people know that these are not |
15772 | # typical AIX shared libraries. |
15773 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15774 | else |
15775 | # We preserve .a as extension for shared libraries through AIX4.2 |
15776 | # and later when we are not doing run time linking. |
15777 | library_names_spec='${libname}${release}.a $libname.a' |
15778 | soname_spec='${libname}${release}${shared_ext}$major' |
15779 | fi |
15780 | shlibpath_var=LIBPATH |
15781 | fi |
15782 | ;; |
15783 | |
15784 | amigaos*) |
15785 | library_names_spec='$libname.ixlibrary $libname.a' |
15786 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
15787 | 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' |
15788 | ;; |
15789 | |
15790 | beos*) |
15791 | library_names_spec='${libname}${shared_ext}' |
15792 | dynamic_linker="$host_os ld.so" |
15793 | shlibpath_var=LIBRARY_PATH |
15794 | ;; |
15795 | |
15796 | bsdi[45]*) |
15797 | version_type=linux |
15798 | need_version=no |
15799 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15800 | soname_spec='${libname}${release}${shared_ext}$major' |
15801 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
15802 | shlibpath_var=LD_LIBRARY_PATH |
15803 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
15804 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
15805 | # the default ld.so.conf also contains /usr/contrib/lib and |
15806 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
15807 | # libtool to hard-code these into programs |
15808 | ;; |
15809 | |
15810 | cygwin* | mingw* | pw32*) |
15811 | version_type=windows |
15812 | shrext_cmds=".dll" |
15813 | need_version=no |
15814 | need_lib_prefix=no |
15815 | |
15816 | case $GCC,$host_os in |
15817 | yes,cygwin* | yes,mingw* | yes,pw32*) |
15818 | library_names_spec='$libname.dll.a' |
15819 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
15820 | postinstall_cmds='base_file=`basename \${file}`~ |
15821 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
15822 | dldir=$destdir/`dirname \$dlpath`~ |
15823 | test -d \$dldir || mkdir -p \$dldir~ |
15824 | $install_prog $dir/$dlname \$dldir/$dlname~ |
15825 | chmod a+x \$dldir/$dlname' |
15826 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
15827 | dlpath=$dir/\$dldll~ |
15828 | $rm \$dlpath' |
15829 | shlibpath_overrides_runpath=yes |
15830 | |
15831 | case $host_os in |
15832 | cygwin*) |
15833 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
15834 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15835 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
15836 | ;; |
15837 | mingw*) |
15838 | # MinGW DLLs use traditional 'lib' prefix |
15839 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15840 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15841 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
15842 | # It is most probably a Windows format PATH printed by |
15843 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
15844 | # path with ; separators, and with drive letters. We can handle the |
15845 | # drive letters (cygwin fileutils understands them), so leave them, |
15846 | # especially as we might pass files found there to a mingw objdump, |
15847 | # which wouldn't understand a cygwinified path. Ahh. |
15848 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15849 | else |
15850 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15851 | fi |
15852 | ;; |
15853 | pw32*) |
15854 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
15855 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15856 | ;; |
15857 | esac |
15858 | ;; |
15859 | |
15860 | *) |
15861 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
15862 | ;; |
15863 | esac |
15864 | dynamic_linker='Win32 ld.exe' |
15865 | # FIXME: first we should search . and the directory the executable is in |
15866 | shlibpath_var=PATH |
15867 | ;; |
15868 | |
15869 | darwin* | rhapsody*) |
15870 | dynamic_linker="$host_os dyld" |
15871 | version_type=darwin |
15872 | need_lib_prefix=no |
15873 | need_version=no |
15874 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
15875 | soname_spec='${libname}${release}${major}$shared_ext' |
15876 | shlibpath_overrides_runpath=yes |
15877 | shlibpath_var=DYLD_LIBRARY_PATH |
15878 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
15879 | |
15880 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15881 | ;; |
15882 | |
15883 | dgux*) |
15884 | version_type=linux |
15885 | need_lib_prefix=no |
15886 | need_version=no |
15887 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
15888 | soname_spec='${libname}${release}${shared_ext}$major' |
15889 | shlibpath_var=LD_LIBRARY_PATH |
15890 | ;; |
15891 | |
15892 | freebsd1*) |
15893 | dynamic_linker=no |
15894 | ;; |
15895 | |
15896 | freebsd* | dragonfly*) |
15897 | # DragonFly does not have aout. When/if they implement a new |
15898 | # versioning mechanism, adjust this. |
15899 | if test -x /usr/bin/objformat; then |
15900 | objformat=`/usr/bin/objformat` |
15901 | else |
15902 | case $host_os in |
15903 | freebsd[123]*) objformat=aout ;; |
15904 | *) objformat=elf ;; |
15905 | esac |
15906 | fi |
15907 | version_type=freebsd-$objformat |
15908 | case $version_type in |
15909 | freebsd-elf*) |
15910 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15911 | need_version=no |
15912 | need_lib_prefix=no |
15913 | ;; |
15914 | freebsd-*) |
15915 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
15916 | need_version=yes |
15917 | ;; |
15918 | esac |
15919 | shlibpath_var=LD_LIBRARY_PATH |
15920 | case $host_os in |
15921 | freebsd2*) |
15922 | shlibpath_overrides_runpath=yes |
15923 | ;; |
15924 | freebsd3.[01]* | freebsdelf3.[01]*) |
15925 | shlibpath_overrides_runpath=yes |
15926 | hardcode_into_libs=yes |
15927 | ;; |
15928 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
15929 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
15930 | shlibpath_overrides_runpath=no |
15931 | hardcode_into_libs=yes |
15932 | ;; |
15933 | *) # from 4.6 on, and DragonFly |
15934 | shlibpath_overrides_runpath=yes |
15935 | hardcode_into_libs=yes |
15936 | ;; |
15937 | esac |
15938 | ;; |
15939 | |
15940 | gnu*) |
15941 | version_type=linux |
15942 | need_lib_prefix=no |
15943 | need_version=no |
15944 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
15945 | soname_spec='${libname}${release}${shared_ext}$major' |
15946 | shlibpath_var=LD_LIBRARY_PATH |
15947 | hardcode_into_libs=yes |
15948 | ;; |
15949 | |
15950 | hpux9* | hpux10* | hpux11*) |
15951 | # Give a soname corresponding to the major version so that dld.sl refuses to |
15952 | # link against other versions. |
15953 | version_type=sunos |
15954 | need_lib_prefix=no |
15955 | need_version=no |
15956 | case $host_cpu in |
15957 | ia64*) |
15958 | shrext_cmds='.so' |
15959 | hardcode_into_libs=yes |
15960 | dynamic_linker="$host_os dld.so" |
15961 | shlibpath_var=LD_LIBRARY_PATH |
15962 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15963 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15964 | soname_spec='${libname}${release}${shared_ext}$major' |
15965 | if test "X$HPUX_IA64_MODE" = X32; then |
15966 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
15967 | else |
15968 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
15969 | fi |
15970 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15971 | ;; |
15972 | hppa*64*) |
15973 | shrext_cmds='.sl' |
15974 | hardcode_into_libs=yes |
15975 | dynamic_linker="$host_os dld.sl" |
15976 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
15977 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15978 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15979 | soname_spec='${libname}${release}${shared_ext}$major' |
15980 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
15981 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15982 | ;; |
15983 | *) |
15984 | shrext_cmds='.sl' |
15985 | dynamic_linker="$host_os dld.sl" |
15986 | shlibpath_var=SHLIB_PATH |
15987 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
15988 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15989 | soname_spec='${libname}${release}${shared_ext}$major' |
15990 | ;; |
15991 | esac |
15992 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
15993 | postinstall_cmds='chmod 555 $lib' |
15994 | ;; |
15995 | |
15996 | interix[3-9]*) |
15997 | version_type=linux |
15998 | need_lib_prefix=no |
15999 | need_version=no |
16000 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
16001 | soname_spec='${libname}${release}${shared_ext}$major' |
16002 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
16003 | shlibpath_var=LD_LIBRARY_PATH |
16004 | shlibpath_overrides_runpath=no |
16005 | hardcode_into_libs=yes |
16006 | ;; |
16007 | |
16008 | irix5* | irix6* | nonstopux*) |
16009 | case $host_os in |
16010 | nonstopux*) version_type=nonstopux ;; |
16011 | *) |
16012 | if test "$lt_cv_prog_gnu_ld" = yes; then |
16013 | version_type=linux |
16014 | else |
16015 | version_type=irix |
16016 | fi ;; |
16017 | esac |
16018 | need_lib_prefix=no |
16019 | need_version=no |
16020 | soname_spec='${libname}${release}${shared_ext}$major' |
16021 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
16022 | case $host_os in |
16023 | irix5* | nonstopux*) |
16024 | libsuff= shlibsuff= |
16025 | ;; |
16026 | *) |
16027 | case $LD in # libtool.m4 will add one of these switches to LD |
16028 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
16029 | libsuff= shlibsuff= libmagic=32-bit;; |
16030 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
16031 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
16032 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
16033 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
16034 | *) libsuff= shlibsuff= libmagic=never-match;; |
16035 | esac |
16036 | ;; |
16037 | esac |
16038 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
16039 | shlibpath_overrides_runpath=no |
16040 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
16041 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
16042 | hardcode_into_libs=yes |
16043 | ;; |
16044 | |
16045 | # No shared lib support for Linux oldld, aout, or coff. |
16046 | linux*oldld* | linux*aout* | linux*coff*) |
16047 | dynamic_linker=no |
16048 | ;; |
16049 | |
16050 | # This must be Linux ELF. |
16051 | linux* | k*bsd*-gnu) |
16052 | version_type=linux |
16053 | need_lib_prefix=no |
16054 | need_version=no |
16055 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16056 | soname_spec='${libname}${release}${shared_ext}$major' |
16057 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
16058 | shlibpath_var=LD_LIBRARY_PATH |
16059 | shlibpath_overrides_runpath=no |
16060 | # This implies no fast_install, which is unacceptable. |
16061 | # Some rework will be needed to allow for fast_install |
16062 | # before this can be enabled. |
16063 | hardcode_into_libs=yes |
16064 | |
16065 | # Append ld.so.conf contents to the search path |
16066 | if test -f /etc/ld.so.conf; then |
16067 | 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
16068 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
16069 | fi |
16070 | |
16071 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
16072 | # powerpc, because MkLinux only supported shared libraries with the |
16073 | # GNU dynamic linker. Since this was broken with cross compilers, |
16074 | # most powerpc-linux boxes support dynamic linking these days and |
16075 | # people can always --disable-shared, the test was removed, and we |
16076 | # assume the GNU/Linux dynamic linker is in use. |
16077 | dynamic_linker='GNU/Linux ld.so' |
16078 | ;; |
16079 | |
16080 | netbsd*) |
16081 | version_type=sunos |
16082 | need_lib_prefix=no |
16083 | need_version=no |
16084 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16085 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
16086 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
16087 | dynamic_linker='NetBSD (a.out) ld.so' |
16088 | else |
16089 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
16090 | soname_spec='${libname}${release}${shared_ext}$major' |
16091 | dynamic_linker='NetBSD ld.elf_so' |
16092 | fi |
16093 | shlibpath_var=LD_LIBRARY_PATH |
16094 | shlibpath_overrides_runpath=yes |
16095 | hardcode_into_libs=yes |
16096 | ;; |
16097 | |
16098 | newsos6) |
16099 | version_type=linux |
16100 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16101 | shlibpath_var=LD_LIBRARY_PATH |
16102 | shlibpath_overrides_runpath=yes |
16103 | ;; |
16104 | |
16105 | nto-qnx*) |
16106 | version_type=linux |
16107 | need_lib_prefix=no |
16108 | need_version=no |
16109 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16110 | soname_spec='${libname}${release}${shared_ext}$major' |
16111 | shlibpath_var=LD_LIBRARY_PATH |
16112 | shlibpath_overrides_runpath=yes |
16113 | ;; |
16114 | |
16115 | openbsd*) |
16116 | version_type=sunos |
16117 | sys_lib_dlsearch_path_spec="/usr/lib" |
16118 | need_lib_prefix=no |
16119 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
16120 | case $host_os in |
16121 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
16122 | *) need_version=no ;; |
16123 | esac |
16124 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
16125 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
16126 | shlibpath_var=LD_LIBRARY_PATH |
16127 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
16128 | case $host_os in |
16129 | openbsd2.[89] | openbsd2.[89].*) |
16130 | shlibpath_overrides_runpath=no |
16131 | ;; |
16132 | *) |
16133 | shlibpath_overrides_runpath=yes |
16134 | ;; |
16135 | esac |
16136 | else |
16137 | shlibpath_overrides_runpath=yes |
16138 | fi |
16139 | ;; |
16140 | |
16141 | os2*) |
16142 | libname_spec='$name' |
16143 | shrext_cmds=".dll" |
16144 | need_lib_prefix=no |
16145 | library_names_spec='$libname${shared_ext} $libname.a' |
16146 | dynamic_linker='OS/2 ld.exe' |
16147 | shlibpath_var=LIBPATH |
16148 | ;; |
16149 | |
16150 | osf3* | osf4* | osf5*) |
16151 | version_type=osf |
16152 | need_lib_prefix=no |
16153 | need_version=no |
16154 | soname_spec='${libname}${release}${shared_ext}$major' |
16155 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16156 | shlibpath_var=LD_LIBRARY_PATH |
16157 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
16158 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
16159 | ;; |
16160 | |
16161 | rdos*) |
16162 | dynamic_linker=no |
16163 | ;; |
16164 | |
16165 | solaris*) |
16166 | version_type=linux |
16167 | need_lib_prefix=no |
16168 | need_version=no |
16169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16170 | soname_spec='${libname}${release}${shared_ext}$major' |
16171 | shlibpath_var=LD_LIBRARY_PATH |
16172 | shlibpath_overrides_runpath=yes |
16173 | hardcode_into_libs=yes |
16174 | # ldd complains unless libraries are executable |
16175 | postinstall_cmds='chmod +x $lib' |
16176 | ;; |
16177 | |
16178 | sunos4*) |
16179 | version_type=sunos |
16180 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
16181 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
16182 | shlibpath_var=LD_LIBRARY_PATH |
16183 | shlibpath_overrides_runpath=yes |
16184 | if test "$with_gnu_ld" = yes; then |
16185 | need_lib_prefix=no |
16186 | fi |
16187 | need_version=yes |
16188 | ;; |
16189 | |
16190 | sysv4 | sysv4.3*) |
16191 | version_type=linux |
16192 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16193 | soname_spec='${libname}${release}${shared_ext}$major' |
16194 | shlibpath_var=LD_LIBRARY_PATH |
16195 | case $host_vendor in |
16196 | sni) |
16197 | shlibpath_overrides_runpath=no |
16198 | need_lib_prefix=no |
16199 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
16200 | runpath_var=LD_RUN_PATH |
16201 | ;; |
16202 | siemens) |
16203 | need_lib_prefix=no |
16204 | ;; |
16205 | motorola) |
16206 | need_lib_prefix=no |
16207 | need_version=no |
16208 | shlibpath_overrides_runpath=no |
16209 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
16210 | ;; |
16211 | esac |
16212 | ;; |
16213 | |
16214 | sysv4*MP*) |
16215 | if test -d /usr/nec ;then |
16216 | version_type=linux |
16217 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
16218 | soname_spec='$libname${shared_ext}.$major' |
16219 | shlibpath_var=LD_LIBRARY_PATH |
16220 | fi |
16221 | ;; |
16222 | |
16223 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
16224 | version_type=freebsd-elf |
16225 | need_lib_prefix=no |
16226 | need_version=no |
16227 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
16228 | soname_spec='${libname}${release}${shared_ext}$major' |
16229 | shlibpath_var=LD_LIBRARY_PATH |
16230 | hardcode_into_libs=yes |
16231 | if test "$with_gnu_ld" = yes; then |
16232 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
16233 | shlibpath_overrides_runpath=no |
16234 | else |
16235 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
16236 | shlibpath_overrides_runpath=yes |
16237 | case $host_os in |
16238 | sco3.2v5*) |
16239 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
16240 | ;; |
16241 | esac |
16242 | fi |
16243 | sys_lib_dlsearch_path_spec='/usr/lib' |
16244 | ;; |
16245 | |
16246 | uts4*) |
16247 | version_type=linux |
16248 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16249 | soname_spec='${libname}${release}${shared_ext}$major' |
16250 | shlibpath_var=LD_LIBRARY_PATH |
16251 | ;; |
16252 | |
16253 | *) |
16254 | dynamic_linker=no |
16255 | ;; |
16256 | esac |
16257 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
16258 | echo "${ECHO_T}$dynamic_linker" >&6; } |
16259 | test "$dynamic_linker" = no && can_build_shared=no |
16260 | |
16261 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
16262 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16263 | else |
16264 | lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" |
16265 | fi |
16266 | |
16267 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
16268 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
16269 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16270 | else |
16271 | lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" |
16272 | fi |
16273 | |
16274 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
16275 | |
16276 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
16277 | if test "$GCC" = yes; then |
16278 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
16279 | fi |
16280 | |
16281 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
16282 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
16283 | hardcode_action_F77= |
16284 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
16285 | test -n "$runpath_var_F77" || \ |
16286 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
16287 | |
16288 | # We can hardcode non-existant directories. |
16289 | if test "$hardcode_direct_F77" != no && |
16290 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
16291 | # have to relink, otherwise we might link with an installed library |
16292 | # when we should be linking with a yet-to-be-installed one |
16293 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
16294 | test "$hardcode_minus_L_F77" != no; then |
16295 | # Linking always hardcodes the temporary library directory. |
16296 | hardcode_action_F77=relink |
16297 | else |
16298 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
16299 | hardcode_action_F77=immediate |
16300 | fi |
16301 | else |
16302 | # We cannot hardcode anything, or else we can only hardcode existing |
16303 | # directories. |
16304 | hardcode_action_F77=unsupported |
16305 | fi |
16306 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
16307 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
16308 | |
16309 | if test "$hardcode_action_F77" = relink; then |
16310 | # Fast installation is not supported |
16311 | enable_fast_install=no |
16312 | elif test "$shlibpath_overrides_runpath" = yes || |
16313 | test "$enable_shared" = no; then |
16314 | # Fast installation is not necessary |
16315 | enable_fast_install=needless |
16316 | fi |
16317 | |
16318 | |
16319 | # The else clause should only fire when bootstrapping the |
16320 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
16321 | # with your package, and you will get complaints that there are |
16322 | # no rules to generate ltmain.sh. |
16323 | if test -f "$ltmain"; then |
16324 | # See if we are running on zsh, and set the options which allow our commands through |
16325 | # without removal of \ escapes. |
16326 | if test -n "${ZSH_VERSION+set}" ; then |
16327 | setopt NO_GLOB_SUBST |
16328 | fi |
16329 | # Now quote all the things that may contain metacharacters while being |
16330 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
16331 | # variables and quote the copies for generation of the libtool script. |
16332 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
16333 | SED SHELL STRIP \ |
16334 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
16335 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
16336 | deplibs_check_method reload_flag reload_cmds need_locks \ |
16337 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
16338 | lt_cv_sys_global_symbol_to_c_name_address \ |
16339 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
16340 | old_postinstall_cmds old_postuninstall_cmds \ |
16341 | compiler_F77 \ |
16342 | CC_F77 \ |
16343 | LD_F77 \ |
16344 | lt_prog_compiler_wl_F77 \ |
16345 | lt_prog_compiler_pic_F77 \ |
16346 | lt_prog_compiler_static_F77 \ |
16347 | lt_prog_compiler_no_builtin_flag_F77 \ |
16348 | export_dynamic_flag_spec_F77 \ |
16349 | thread_safe_flag_spec_F77 \ |
16350 | whole_archive_flag_spec_F77 \ |
16351 | enable_shared_with_static_runtimes_F77 \ |
16352 | old_archive_cmds_F77 \ |
16353 | old_archive_from_new_cmds_F77 \ |
16354 | predep_objects_F77 \ |
16355 | postdep_objects_F77 \ |
16356 | predeps_F77 \ |
16357 | postdeps_F77 \ |
16358 | compiler_lib_search_path_F77 \ |
16359 | compiler_lib_search_dirs_F77 \ |
16360 | archive_cmds_F77 \ |
16361 | archive_expsym_cmds_F77 \ |
16362 | postinstall_cmds_F77 \ |
16363 | postuninstall_cmds_F77 \ |
16364 | old_archive_from_expsyms_cmds_F77 \ |
16365 | allow_undefined_flag_F77 \ |
16366 | no_undefined_flag_F77 \ |
16367 | export_symbols_cmds_F77 \ |
16368 | hardcode_libdir_flag_spec_F77 \ |
16369 | hardcode_libdir_flag_spec_ld_F77 \ |
16370 | hardcode_libdir_separator_F77 \ |
16371 | hardcode_automatic_F77 \ |
16372 | module_cmds_F77 \ |
16373 | module_expsym_cmds_F77 \ |
16374 | lt_cv_prog_compiler_c_o_F77 \ |
16375 | fix_srcfile_path_F77 \ |
16376 | exclude_expsyms_F77 \ |
16377 | include_expsyms_F77; do |
16378 | |
16379 | case $var in |
16380 | old_archive_cmds_F77 | \ |
16381 | old_archive_from_new_cmds_F77 | \ |
16382 | archive_cmds_F77 | \ |
16383 | archive_expsym_cmds_F77 | \ |
16384 | module_cmds_F77 | \ |
16385 | module_expsym_cmds_F77 | \ |
16386 | old_archive_from_expsyms_cmds_F77 | \ |
16387 | export_symbols_cmds_F77 | \ |
16388 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
16389 | postinstall_cmds | postuninstall_cmds | \ |
16390 | old_postinstall_cmds | old_postuninstall_cmds | \ |
16391 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
16392 | # Double-quote double-evaled strings. |
16393 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
16394 | ;; |
16395 | *) |
16396 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
16397 | ;; |
16398 | esac |
16399 | done |
16400 | |
16401 | case $lt_echo in |
16402 | *'\$0 --fallback-echo"') |
16403 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
16404 | ;; |
16405 | esac |
16406 | |
16407 | cfgfile="$ofile" |
16408 | |
16409 | cat <<__EOF__ >> "$cfgfile" |
16410 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
16411 | |
16412 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
16413 | |
16414 | # Shell to use when invoking shell scripts. |
16415 | SHELL=$lt_SHELL |
16416 | |
16417 | # Whether or not to build shared libraries. |
16418 | build_libtool_libs=$enable_shared |
16419 | |
16420 | # Whether or not to build static libraries. |
16421 | build_old_libs=$enable_static |
16422 | |
16423 | # Whether or not to add -lc for building shared libraries. |
16424 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
16425 | |
16426 | # Whether or not to disallow shared libs when runtime libs are static |
16427 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
16428 | |
16429 | # Whether or not to optimize for fast installation. |
16430 | fast_install=$enable_fast_install |
16431 | |
16432 | # The host system. |
16433 | host_alias=$host_alias |
16434 | host=$host |
16435 | host_os=$host_os |
16436 | |
16437 | # The build system. |
16438 | build_alias=$build_alias |
16439 | build=$build |
16440 | build_os=$build_os |
16441 | |
16442 | # An echo program that does not interpret backslashes. |
16443 | echo=$lt_echo |
16444 | |
16445 | # The archiver. |
16446 | AR=$lt_AR |
16447 | AR_FLAGS=$lt_AR_FLAGS |
16448 | |
16449 | # A C compiler. |
16450 | LTCC=$lt_LTCC |
16451 | |
16452 | # LTCC compiler flags. |
16453 | LTCFLAGS=$lt_LTCFLAGS |
16454 | |
16455 | # A language-specific compiler. |
16456 | CC=$lt_compiler_F77 |
16457 | |
16458 | # Is the compiler the GNU C compiler? |
16459 | with_gcc=$GCC_F77 |
16460 | |
16461 | # An ERE matcher. |
16462 | EGREP=$lt_EGREP |
16463 | |
16464 | # The linker used to build libraries. |
16465 | LD=$lt_LD_F77 |
16466 | |
16467 | # Whether we need hard or soft links. |
16468 | LN_S=$lt_LN_S |
16469 | |
16470 | # A BSD-compatible nm program. |
16471 | NM=$lt_NM |
16472 | |
16473 | # A symbol stripping program |
16474 | STRIP=$lt_STRIP |
16475 | |
16476 | # Used to examine libraries when file_magic_cmd begins "file" |
16477 | MAGIC_CMD=$MAGIC_CMD |
16478 | |
16479 | # Used on cygwin: DLL creation program. |
16480 | DLLTOOL="$DLLTOOL" |
16481 | |
16482 | # Used on cygwin: object dumper. |
16483 | OBJDUMP="$OBJDUMP" |
16484 | |
16485 | # Used on cygwin: assembler. |
16486 | AS="$AS" |
16487 | |
16488 | # The name of the directory that contains temporary libtool files. |
16489 | objdir=$objdir |
16490 | |
16491 | # How to create reloadable object files. |
16492 | reload_flag=$lt_reload_flag |
16493 | reload_cmds=$lt_reload_cmds |
16494 | |
16495 | # How to pass a linker flag through the compiler. |
16496 | wl=$lt_lt_prog_compiler_wl_F77 |
16497 | |
16498 | # Object file suffix (normally "o"). |
16499 | objext="$ac_objext" |
16500 | |
16501 | # Old archive suffix (normally "a"). |
16502 | libext="$libext" |
16503 | |
16504 | # Shared library suffix (normally ".so"). |
16505 | shrext_cmds='$shrext_cmds' |
16506 | |
16507 | # Executable file suffix (normally ""). |
16508 | exeext="$exeext" |
16509 | |
16510 | # Additional compiler flags for building library objects. |
16511 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
16512 | pic_mode=$pic_mode |
16513 | |
16514 | # What is the maximum length of a command? |
16515 | max_cmd_len=$lt_cv_sys_max_cmd_len |
16516 | |
16517 | # Does compiler simultaneously support -c and -o options? |
16518 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
16519 | |
16520 | # Must we lock files when doing compilation? |
16521 | need_locks=$lt_need_locks |
16522 | |
16523 | # Do we need the lib prefix for modules? |
16524 | need_lib_prefix=$need_lib_prefix |
16525 | |
16526 | # Do we need a version for libraries? |
16527 | need_version=$need_version |
16528 | |
16529 | # Whether dlopen is supported. |
16530 | dlopen_support=$enable_dlopen |
16531 | |
16532 | # Whether dlopen of programs is supported. |
16533 | dlopen_self=$enable_dlopen_self |
16534 | |
16535 | # Whether dlopen of statically linked programs is supported. |
16536 | dlopen_self_static=$enable_dlopen_self_static |
16537 | |
16538 | # Compiler flag to prevent dynamic linking. |
16539 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
16540 | |
16541 | # Compiler flag to turn off builtin functions. |
16542 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
16543 | |
16544 | # Compiler flag to allow reflexive dlopens. |
16545 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
16546 | |
16547 | # Compiler flag to generate shared objects directly from archives. |
16548 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
16549 | |
16550 | # Compiler flag to generate thread-safe objects. |
16551 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
16552 | |
16553 | # Library versioning type. |
16554 | version_type=$version_type |
16555 | |
16556 | # Format of library name prefix. |
16557 | libname_spec=$lt_libname_spec |
16558 | |
16559 | # List of archive names. First name is the real one, the rest are links. |
16560 | # The last name is the one that the linker finds with -lNAME. |
16561 | library_names_spec=$lt_library_names_spec |
16562 | |
16563 | # The coded name of the library, if different from the real name. |
16564 | soname_spec=$lt_soname_spec |
16565 | |
16566 | # Commands used to build and install an old-style archive. |
16567 | RANLIB=$lt_RANLIB |
16568 | old_archive_cmds=$lt_old_archive_cmds_F77 |
16569 | old_postinstall_cmds=$lt_old_postinstall_cmds |
16570 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
16571 | |
16572 | # Create an old-style archive from a shared archive. |
16573 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
16574 | |
16575 | # Create a temporary old-style archive to link instead of a shared archive. |
16576 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
16577 | |
16578 | # Commands used to build and install a shared archive. |
16579 | archive_cmds=$lt_archive_cmds_F77 |
16580 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
16581 | postinstall_cmds=$lt_postinstall_cmds |
16582 | postuninstall_cmds=$lt_postuninstall_cmds |
16583 | |
16584 | # Commands used to build a loadable module (assumed same as above if empty) |
16585 | module_cmds=$lt_module_cmds_F77 |
16586 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
16587 | |
16588 | # Commands to strip libraries. |
16589 | old_striplib=$lt_old_striplib |
16590 | striplib=$lt_striplib |
16591 | |
16592 | # Dependencies to place before the objects being linked to create a |
16593 | # shared library. |
16594 | predep_objects=$lt_predep_objects_F77 |
16595 | |
16596 | # Dependencies to place after the objects being linked to create a |
16597 | # shared library. |
16598 | postdep_objects=$lt_postdep_objects_F77 |
16599 | |
16600 | # Dependencies to place before the objects being linked to create a |
16601 | # shared library. |
16602 | predeps=$lt_predeps_F77 |
16603 | |
16604 | # Dependencies to place after the objects being linked to create a |
16605 | # shared library. |
16606 | postdeps=$lt_postdeps_F77 |
16607 | |
16608 | # The directories searched by this compiler when creating a shared |
16609 | # library |
16610 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 |
16611 | |
16612 | # The library search path used internally by the compiler when linking |
16613 | # a shared library. |
16614 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
16615 | |
16616 | # Method to check whether dependent libraries are shared objects. |
16617 | deplibs_check_method=$lt_deplibs_check_method |
16618 | |
16619 | # Command to use when deplibs_check_method == file_magic. |
16620 | file_magic_cmd=$lt_file_magic_cmd |
16621 | |
16622 | # Flag that allows shared libraries with undefined symbols to be built. |
16623 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
16624 | |
16625 | # Flag that forces no undefined symbols. |
16626 | no_undefined_flag=$lt_no_undefined_flag_F77 |
16627 | |
16628 | # Commands used to finish a libtool library installation in a directory. |
16629 | finish_cmds=$lt_finish_cmds |
16630 | |
16631 | # Same as above, but a single script fragment to be evaled but not shown. |
16632 | finish_eval=$lt_finish_eval |
16633 | |
16634 | # Take the output of nm and produce a listing of raw symbols and C names. |
16635 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
16636 | |
16637 | # Transform the output of nm in a proper C declaration |
16638 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
16639 | |
16640 | # Transform the output of nm in a C name address pair |
16641 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
16642 | |
16643 | # This is the shared library runtime path variable. |
16644 | runpath_var=$runpath_var |
16645 | |
16646 | # This is the shared library path variable. |
16647 | shlibpath_var=$shlibpath_var |
16648 | |
16649 | # Is shlibpath searched before the hard-coded library search path? |
16650 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
16651 | |
16652 | # How to hardcode a shared library path into an executable. |
16653 | hardcode_action=$hardcode_action_F77 |
16654 | |
16655 | # Whether we should hardcode library paths into libraries. |
16656 | hardcode_into_libs=$hardcode_into_libs |
16657 | |
16658 | # Flag to hardcode \$libdir into a binary during linking. |
16659 | # This must work even if \$libdir does not exist. |
16660 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
16661 | |
16662 | # If ld is used when linking, flag to hardcode \$libdir into |
16663 | # a binary during linking. This must work even if \$libdir does |
16664 | # not exist. |
16665 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
16666 | |
16667 | # Whether we need a single -rpath flag with a separated argument. |
16668 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
16669 | |
16670 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
16671 | # resulting binary. |
16672 | hardcode_direct=$hardcode_direct_F77 |
16673 | |
16674 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
16675 | # resulting binary. |
16676 | hardcode_minus_L=$hardcode_minus_L_F77 |
16677 | |
16678 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
16679 | # the resulting binary. |
16680 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
16681 | |
16682 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
16683 | # and all subsequent libraries and executables linked against it. |
16684 | hardcode_automatic=$hardcode_automatic_F77 |
16685 | |
16686 | # Variables whose values should be saved in libtool wrapper scripts and |
16687 | # restored at relink time. |
16688 | variables_saved_for_relink="$variables_saved_for_relink" |
16689 | |
16690 | # Whether libtool must link a program against all its dependency libraries. |
16691 | link_all_deplibs=$link_all_deplibs_F77 |
16692 | |
16693 | # Compile-time system search path for libraries |
16694 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
16695 | |
16696 | # Run-time system search path for libraries |
16697 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
16698 | |
16699 | # Fix the shell variable \$srcfile for the compiler. |
16700 | fix_srcfile_path=$lt_fix_srcfile_path |
16701 | |
16702 | # Set to yes if exported symbols are required. |
16703 | always_export_symbols=$always_export_symbols_F77 |
16704 | |
16705 | # The commands to list exported symbols. |
16706 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
16707 | |
16708 | # The commands to extract the exported symbol list from a shared archive. |
16709 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
16710 | |
16711 | # Symbols that should not be listed in the preloaded symbols. |
16712 | exclude_expsyms=$lt_exclude_expsyms_F77 |
16713 | |
16714 | # Symbols that must always be exported. |
16715 | include_expsyms=$lt_include_expsyms_F77 |
16716 | |
16717 | # ### END LIBTOOL TAG CONFIG: $tagname |
16718 | |
16719 | __EOF__ |
16720 | |
16721 | |
16722 | else |
16723 | # If there is no Makefile yet, we rely on a make rule to execute |
16724 | # `config.status --recheck' to rerun these tests and create the |
16725 | # libtool script then. |
16726 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
16727 | if test -f "$ltmain_in"; then |
16728 | test -f Makefile && make "$ltmain" |
16729 | fi |
16730 | fi |
16731 | |
16732 | |
16733 | ac_ext=c |
16734 | ac_cpp='$CPP $CPPFLAGS' |
16735 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16736 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
16737 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
16738 | |
16739 | CC="$lt_save_CC" |
16740 | |
16741 | else |
16742 | tagname="" |
16743 | fi |
16744 | ;; |
16745 | |
16746 | GCJ) |
16747 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
16748 | |
16749 | |
16750 | # Source file extension for Java test sources. |
16751 | ac_ext=java |
16752 | |
16753 | # Object file extension for compiled Java test sources. |
16754 | objext=o |
16755 | objext_GCJ=$objext |
16756 | |
16757 | # Code to be used in simple compile tests |
16758 | lt_simple_compile_test_code="class foo {}" |
16759 | |
16760 | # Code to be used in simple link tests |
16761 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }' |
16762 | |
16763 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
16764 | |
16765 | # If no C compiler was specified, use CC. |
16766 | LTCC=${LTCC-"$CC"} |
16767 | |
16768 | # If no C compiler flags were specified, use CFLAGS. |
16769 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
16770 | |
16771 | # Allow CC to be a program name with arguments. |
16772 | compiler=$CC |
16773 | |
16774 | |
16775 | # save warnings/boilerplate of simple test code |
16776 | ac_outfile=conftest.$ac_objext |
16777 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
16778 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16779 | _lt_compiler_boilerplate=`cat conftest.err` |
16780 | $rm conftest* |
16781 | |
16782 | ac_outfile=conftest.$ac_objext |
16783 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
16784 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16785 | _lt_linker_boilerplate=`cat conftest.err` |
16786 | $rm -r conftest* |
16787 | |
16788 | |
16789 | # Allow CC to be a program name with arguments. |
16790 | lt_save_CC="$CC" |
16791 | CC=${GCJ-"gcj"} |
16792 | compiler=$CC |
16793 | compiler_GCJ=$CC |
16794 | for cc_temp in $compiler""; do |
16795 | case $cc_temp in |
16796 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16797 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16798 | \-*) ;; |
16799 | *) break;; |
16800 | esac |
16801 | done |
16802 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16803 | |
16804 | |
16805 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
16806 | archive_cmds_need_lc_GCJ=no |
16807 | |
16808 | old_archive_cmds_GCJ=$old_archive_cmds |
16809 | |
16810 | |
16811 | lt_prog_compiler_no_builtin_flag_GCJ= |
16812 | |
16813 | if test "$GCC" = yes; then |
16814 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
16815 | |
16816 | |
16817 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
16818 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
16819 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
16820 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16821 | else |
16822 | lt_cv_prog_compiler_rtti_exceptions=no |
16823 | ac_outfile=conftest.$ac_objext |
16824 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
16825 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
16826 | # Insert the option either (1) after the last *FLAGS variable, or |
16827 | # (2) before a word containing "conftest.", or (3) at the end. |
16828 | # Note that $ac_compile itself does not contain backslashes and begins |
16829 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16830 | # The option is referenced via a variable to avoid confusing sed. |
16831 | lt_compile=`echo "$ac_compile" | $SED \ |
16832 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16833 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16834 | -e 's:$: $lt_compiler_flag:'` |
16835 | (eval echo "\"\$as_me:16835: $lt_compile\"" >&5) |
16836 | (eval "$lt_compile" 2>conftest.err) |
16837 | ac_status=$? |
16838 | cat conftest.err >&5 |
16839 | echo "$as_me:16839: \$? = $ac_status" >&5 |
16840 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16841 | # The compiler can only warn and ignore the option if not recognized |
16842 | # So say no if there are warnings other than the usual output. |
16843 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16844 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16845 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16846 | lt_cv_prog_compiler_rtti_exceptions=yes |
16847 | fi |
16848 | fi |
16849 | $rm conftest* |
16850 | |
16851 | fi |
16852 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
16853 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
16854 | |
16855 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
16856 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
16857 | else |
16858 | : |
16859 | fi |
16860 | |
16861 | fi |
16862 | |
16863 | lt_prog_compiler_wl_GCJ= |
16864 | lt_prog_compiler_pic_GCJ= |
16865 | lt_prog_compiler_static_GCJ= |
16866 | |
16867 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
16868 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
16869 | |
16870 | if test "$GCC" = yes; then |
16871 | lt_prog_compiler_wl_GCJ='-Wl,' |
16872 | lt_prog_compiler_static_GCJ='-static' |
16873 | |
16874 | case $host_os in |
16875 | aix*) |
16876 | # All AIX code is PIC. |
16877 | if test "$host_cpu" = ia64; then |
16878 | # AIX 5 now supports IA64 processor |
16879 | lt_prog_compiler_static_GCJ='-Bstatic' |
16880 | fi |
16881 | ;; |
16882 | |
16883 | amigaos*) |
16884 | # FIXME: we need at least 68020 code to build shared libraries, but |
16885 | # adding the `-m68020' flag to GCC prevents building anything better, |
16886 | # like `-m68040'. |
16887 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
16888 | ;; |
16889 | |
16890 | beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
16891 | # PIC is the default for these OSes. |
16892 | ;; |
16893 | |
16894 | mingw* | cygwin* | pw32* | os2*) |
16895 | # This hack is so that the source file can tell whether it is being |
16896 | # built for inclusion in a dll (and should export symbols for example). |
16897 | # Although the cygwin gcc ignores -fPIC, still need this for old-style |
16898 | # (--disable-auto-import) libraries |
16899 | |
16900 | ;; |
16901 | |
16902 | darwin* | rhapsody*) |
16903 | # PIC is the default on this platform |
16904 | # Common symbols not allowed in MH_DYLIB files |
16905 | lt_prog_compiler_pic_GCJ='-fno-common' |
16906 | ;; |
16907 | |
16908 | interix[3-9]*) |
16909 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
16910 | # Instead, we relocate shared libraries at runtime. |
16911 | ;; |
16912 | |
16913 | msdosdjgpp*) |
16914 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
16915 | # on systems that don't support them. |
16916 | lt_prog_compiler_can_build_shared_GCJ=no |
16917 | enable_shared=no |
16918 | ;; |
16919 | |
16920 | sysv4*MP*) |
16921 | if test -d /usr/nec; then |
16922 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
16923 | fi |
16924 | ;; |
16925 | |
16926 | hpux*) |
16927 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16928 | # not for PA HP-UX. |
16929 | case $host_cpu in |
16930 | hppa*64*|ia64*) |
16931 | # +Z the default |
16932 | ;; |
16933 | *) |
16934 | lt_prog_compiler_pic_GCJ='-fPIC' |
16935 | ;; |
16936 | esac |
16937 | ;; |
16938 | |
16939 | *) |
16940 | lt_prog_compiler_pic_GCJ='-fPIC' |
16941 | ;; |
16942 | esac |
16943 | else |
16944 | # PORTME Check for flag to pass linker flags through the system compiler. |
16945 | case $host_os in |
16946 | aix*) |
16947 | lt_prog_compiler_wl_GCJ='-Wl,' |
16948 | if test "$host_cpu" = ia64; then |
16949 | # AIX 5 now supports IA64 processor |
16950 | lt_prog_compiler_static_GCJ='-Bstatic' |
16951 | else |
16952 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
16953 | fi |
16954 | ;; |
16955 | darwin*) |
16956 | # PIC is the default on this platform |
16957 | # Common symbols not allowed in MH_DYLIB files |
16958 | case $cc_basename in |
16959 | xlc*) |
16960 | lt_prog_compiler_pic_GCJ='-qnocommon' |
16961 | lt_prog_compiler_wl_GCJ='-Wl,' |
16962 | ;; |
16963 | esac |
16964 | ;; |
16965 | |
16966 | mingw* | cygwin* | pw32* | os2*) |
16967 | # This hack is so that the source file can tell whether it is being |
16968 | # built for inclusion in a dll (and should export symbols for example). |
16969 | |
16970 | ;; |
16971 | |
16972 | hpux9* | hpux10* | hpux11*) |
16973 | lt_prog_compiler_wl_GCJ='-Wl,' |
16974 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16975 | # not for PA HP-UX. |
16976 | case $host_cpu in |
16977 | hppa*64*|ia64*) |
16978 | # +Z the default |
16979 | ;; |
16980 | *) |
16981 | lt_prog_compiler_pic_GCJ='+Z' |
16982 | ;; |
16983 | esac |
16984 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
16985 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
16986 | ;; |
16987 | |
16988 | irix5* | irix6* | nonstopux*) |
16989 | lt_prog_compiler_wl_GCJ='-Wl,' |
16990 | # PIC (with -KPIC) is the default. |
16991 | lt_prog_compiler_static_GCJ='-non_shared' |
16992 | ;; |
16993 | |
16994 | newsos6) |
16995 | lt_prog_compiler_pic_GCJ='-KPIC' |
16996 | lt_prog_compiler_static_GCJ='-Bstatic' |
16997 | ;; |
16998 | |
16999 | linux* | k*bsd*-gnu) |
17000 | case $cc_basename in |
17001 | icc* | ecc*) |
17002 | lt_prog_compiler_wl_GCJ='-Wl,' |
17003 | lt_prog_compiler_pic_GCJ='-KPIC' |
17004 | lt_prog_compiler_static_GCJ='-static' |
17005 | ;; |
17006 | pgcc* | pgf77* | pgf90* | pgf95*) |
17007 | # Portland Group compilers (*not* the Pentium gcc compiler, |
17008 | # which looks to be a dead project) |
17009 | lt_prog_compiler_wl_GCJ='-Wl,' |
17010 | lt_prog_compiler_pic_GCJ='-fpic' |
17011 | lt_prog_compiler_static_GCJ='-Bstatic' |
17012 | ;; |
17013 | ccc*) |
17014 | lt_prog_compiler_wl_GCJ='-Wl,' |
17015 | # All Alpha code is PIC. |
17016 | lt_prog_compiler_static_GCJ='-non_shared' |
17017 | ;; |
17018 | *) |
17019 | case `$CC -V 2>&1 | sed 5q` in |
17020 | *Sun\ C*) |
17021 | # Sun C 5.9 |
17022 | lt_prog_compiler_pic_GCJ='-KPIC' |
17023 | lt_prog_compiler_static_GCJ='-Bstatic' |
17024 | lt_prog_compiler_wl_GCJ='-Wl,' |
17025 | ;; |
17026 | *Sun\ F*) |
17027 | # Sun Fortran 8.3 passes all unrecognized flags to the linker |
17028 | lt_prog_compiler_pic_GCJ='-KPIC' |
17029 | lt_prog_compiler_static_GCJ='-Bstatic' |
17030 | lt_prog_compiler_wl_GCJ='' |
17031 | ;; |
17032 | esac |
17033 | ;; |
17034 | esac |
17035 | ;; |
17036 | |
17037 | osf3* | osf4* | osf5*) |
17038 | lt_prog_compiler_wl_GCJ='-Wl,' |
17039 | # All OSF/1 code is PIC. |
17040 | lt_prog_compiler_static_GCJ='-non_shared' |
17041 | ;; |
17042 | |
17043 | rdos*) |
17044 | lt_prog_compiler_static_GCJ='-non_shared' |
17045 | ;; |
17046 | |
17047 | solaris*) |
17048 | lt_prog_compiler_pic_GCJ='-KPIC' |
17049 | lt_prog_compiler_static_GCJ='-Bstatic' |
17050 | case $cc_basename in |
17051 | f77* | f90* | f95*) |
17052 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
17053 | *) |
17054 | lt_prog_compiler_wl_GCJ='-Wl,';; |
17055 | esac |
17056 | ;; |
17057 | |
17058 | sunos4*) |
17059 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
17060 | lt_prog_compiler_pic_GCJ='-PIC' |
17061 | lt_prog_compiler_static_GCJ='-Bstatic' |
17062 | ;; |
17063 | |
17064 | sysv4 | sysv4.2uw2* | sysv4.3*) |
17065 | lt_prog_compiler_wl_GCJ='-Wl,' |
17066 | lt_prog_compiler_pic_GCJ='-KPIC' |
17067 | lt_prog_compiler_static_GCJ='-Bstatic' |
17068 | ;; |
17069 | |
17070 | sysv4*MP*) |
17071 | if test -d /usr/nec ;then |
17072 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
17073 | lt_prog_compiler_static_GCJ='-Bstatic' |
17074 | fi |
17075 | ;; |
17076 | |
17077 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
17078 | lt_prog_compiler_wl_GCJ='-Wl,' |
17079 | lt_prog_compiler_pic_GCJ='-KPIC' |
17080 | lt_prog_compiler_static_GCJ='-Bstatic' |
17081 | ;; |
17082 | |
17083 | unicos*) |
17084 | lt_prog_compiler_wl_GCJ='-Wl,' |
17085 | lt_prog_compiler_can_build_shared_GCJ=no |
17086 | ;; |
17087 | |
17088 | uts4*) |
17089 | lt_prog_compiler_pic_GCJ='-pic' |
17090 | lt_prog_compiler_static_GCJ='-Bstatic' |
17091 | ;; |
17092 | |
17093 | *) |
17094 | lt_prog_compiler_can_build_shared_GCJ=no |
17095 | ;; |
17096 | esac |
17097 | fi |
17098 | |
17099 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
17100 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
17101 | |
17102 | # |
17103 | # Check to make sure the PIC flag actually works. |
17104 | # |
17105 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
17106 | |
17107 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
17108 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
17109 | if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then |
17110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17111 | else |
17112 | lt_cv_prog_compiler_pic_works_GCJ=no |
17113 | ac_outfile=conftest.$ac_objext |
17114 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
17115 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
17116 | # Insert the option either (1) after the last *FLAGS variable, or |
17117 | # (2) before a word containing "conftest.", or (3) at the end. |
17118 | # Note that $ac_compile itself does not contain backslashes and begins |
17119 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
17120 | # The option is referenced via a variable to avoid confusing sed. |
17121 | lt_compile=`echo "$ac_compile" | $SED \ |
17122 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
17123 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
17124 | -e 's:$: $lt_compiler_flag:'` |
17125 | (eval echo "\"\$as_me:17125: $lt_compile\"" >&5) |
17126 | (eval "$lt_compile" 2>conftest.err) |
17127 | ac_status=$? |
17128 | cat conftest.err >&5 |
17129 | echo "$as_me:17129: \$? = $ac_status" >&5 |
17130 | if (exit $ac_status) && test -s "$ac_outfile"; then |
17131 | # The compiler can only warn and ignore the option if not recognized |
17132 | # So say no if there are warnings other than the usual output. |
17133 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
17134 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
17135 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
17136 | lt_cv_prog_compiler_pic_works_GCJ=yes |
17137 | fi |
17138 | fi |
17139 | $rm conftest* |
17140 | |
17141 | fi |
17142 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5 |
17143 | echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; } |
17144 | |
17145 | if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then |
17146 | case $lt_prog_compiler_pic_GCJ in |
17147 | "" | " "*) ;; |
17148 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
17149 | esac |
17150 | else |
17151 | lt_prog_compiler_pic_GCJ= |
17152 | lt_prog_compiler_can_build_shared_GCJ=no |
17153 | fi |
17154 | |
17155 | fi |
17156 | case $host_os in |
17157 | # For platforms which do not support PIC, -DPIC is meaningless: |
17158 | *djgpp*) |
17159 | lt_prog_compiler_pic_GCJ= |
17160 | ;; |
17161 | *) |
17162 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
17163 | ;; |
17164 | esac |
17165 | |
17166 | # |
17167 | # Check to make sure the static flag actually works. |
17168 | # |
17169 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
17170 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
17171 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
17172 | if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then |
17173 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17174 | else |
17175 | lt_cv_prog_compiler_static_works_GCJ=no |
17176 | save_LDFLAGS="$LDFLAGS" |
17177 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
17178 | echo "$lt_simple_link_test_code" > conftest.$ac_ext |
17179 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
17180 | # The linker can only warn and ignore the option if not recognized |
17181 | # So say no if there are warnings |
17182 | if test -s conftest.err; then |
17183 | # Append any errors to the config.log. |
17184 | cat conftest.err 1>&5 |
17185 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
17186 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
17187 | if diff conftest.exp conftest.er2 >/dev/null; then |
17188 | lt_cv_prog_compiler_static_works_GCJ=yes |
17189 | fi |
17190 | else |
17191 | lt_cv_prog_compiler_static_works_GCJ=yes |
17192 | fi |
17193 | fi |
17194 | $rm -r conftest* |
17195 | LDFLAGS="$save_LDFLAGS" |
17196 | |
17197 | fi |
17198 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5 |
17199 | echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; } |
17200 | |
17201 | if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then |
17202 | : |
17203 | else |
17204 | lt_prog_compiler_static_GCJ= |
17205 | fi |
17206 | |
17207 | |
17208 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
17209 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
17210 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
17211 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17212 | else |
17213 | lt_cv_prog_compiler_c_o_GCJ=no |
17214 | $rm -r conftest 2>/dev/null |
17215 | mkdir conftest |
17216 | cd conftest |
17217 | mkdir out |
17218 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
17219 | |
17220 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
17221 | # Insert the option either (1) after the last *FLAGS variable, or |
17222 | # (2) before a word containing "conftest.", or (3) at the end. |
17223 | # Note that $ac_compile itself does not contain backslashes and begins |
17224 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
17225 | lt_compile=`echo "$ac_compile" | $SED \ |
17226 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
17227 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
17228 | -e 's:$: $lt_compiler_flag:'` |
17229 | (eval echo "\"\$as_me:17229: $lt_compile\"" >&5) |
17230 | (eval "$lt_compile" 2>out/conftest.err) |
17231 | ac_status=$? |
17232 | cat out/conftest.err >&5 |
17233 | echo "$as_me:17233: \$? = $ac_status" >&5 |
17234 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
17235 | then |
17236 | # The compiler can only warn and ignore the option if not recognized |
17237 | # So say no if there are warnings |
17238 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
17239 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
17240 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
17241 | lt_cv_prog_compiler_c_o_GCJ=yes |
17242 | fi |
17243 | fi |
17244 | chmod u+w . 2>&5 |
17245 | $rm conftest* |
17246 | # SGI C++ compiler will create directory out/ii_files/ for |
17247 | # template instantiation |
17248 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
17249 | $rm out/* && rmdir out |
17250 | cd .. |
17251 | rmdir conftest |
17252 | $rm conftest* |
17253 | |
17254 | fi |
17255 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
17256 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
17257 | |
17258 | |
17259 | hard_links="nottested" |
17260 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
17261 | # do not overwrite the value of need_locks provided by the user |
17262 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
17263 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
17264 | hard_links=yes |
17265 | $rm conftest* |
17266 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
17267 | touch conftest.a |
17268 | ln conftest.a conftest.b 2>&5 || hard_links=no |
17269 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
17270 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
17271 | echo "${ECHO_T}$hard_links" >&6; } |
17272 | if test "$hard_links" = no; then |
17273 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
17274 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
17275 | need_locks=warn |
17276 | fi |
17277 | else |
17278 | need_locks=no |
17279 | fi |
17280 | |
17281 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
17282 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
17283 | |
17284 | runpath_var= |
17285 | allow_undefined_flag_GCJ= |
17286 | enable_shared_with_static_runtimes_GCJ=no |
17287 | archive_cmds_GCJ= |
17288 | archive_expsym_cmds_GCJ= |
17289 | old_archive_From_new_cmds_GCJ= |
17290 | old_archive_from_expsyms_cmds_GCJ= |
17291 | export_dynamic_flag_spec_GCJ= |
17292 | whole_archive_flag_spec_GCJ= |
17293 | thread_safe_flag_spec_GCJ= |
17294 | hardcode_libdir_flag_spec_GCJ= |
17295 | hardcode_libdir_flag_spec_ld_GCJ= |
17296 | hardcode_libdir_separator_GCJ= |
17297 | hardcode_direct_GCJ=no |
17298 | hardcode_minus_L_GCJ=no |
17299 | hardcode_shlibpath_var_GCJ=unsupported |
17300 | link_all_deplibs_GCJ=unknown |
17301 | hardcode_automatic_GCJ=no |
17302 | module_cmds_GCJ= |
17303 | module_expsym_cmds_GCJ= |
17304 | always_export_symbols_GCJ=no |
17305 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
17306 | # include_expsyms should be a list of space-separated symbols to be *always* |
17307 | # included in the symbol list |
17308 | include_expsyms_GCJ= |
17309 | # exclude_expsyms can be an extended regexp of symbols to exclude |
17310 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
17311 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
17312 | # as well as any symbol that contains `d'. |
17313 | exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' |
17314 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
17315 | # platforms (ab)use it in PIC code, but their linkers get confused if |
17316 | # the symbol is explicitly referenced. Since portable code cannot |
17317 | # rely on this symbol name, it's probably fine to never include it in |
17318 | # preloaded symbol tables. |
17319 | # Exclude shared library initialization/finalization symbols. |
17320 | extract_expsyms_cmds= |
17321 | # Just being paranoid about ensuring that cc_basename is set. |
17322 | for cc_temp in $compiler""; do |
17323 | case $cc_temp in |
17324 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
17325 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
17326 | \-*) ;; |
17327 | *) break;; |
17328 | esac |
17329 | done |
17330 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
17331 | |
17332 | case $host_os in |
17333 | cygwin* | mingw* | pw32*) |
17334 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
17335 | # When not using gcc, we currently assume that we are using |
17336 | # Microsoft Visual C++. |
17337 | if test "$GCC" != yes; then |
17338 | with_gnu_ld=no |
17339 | fi |
17340 | ;; |
17341 | interix*) |
17342 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
17343 | with_gnu_ld=yes |
17344 | ;; |
17345 | openbsd*) |
17346 | with_gnu_ld=no |
17347 | ;; |
17348 | esac |
17349 | |
17350 | ld_shlibs_GCJ=yes |
17351 | if test "$with_gnu_ld" = yes; then |
17352 | # If archive_cmds runs LD, not CC, wlarc should be empty |
17353 | wlarc='${wl}' |
17354 | |
17355 | # Set some defaults for GNU ld with shared library support. These |
17356 | # are reset later if shared libraries are not supported. Putting them |
17357 | # here allows them to be overridden if necessary. |
17358 | runpath_var=LD_RUN_PATH |
17359 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
17360 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
17361 | # ancient GNU ld didn't support --whole-archive et. al. |
17362 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
17363 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
17364 | else |
17365 | whole_archive_flag_spec_GCJ= |
17366 | fi |
17367 | supports_anon_versioning=no |
17368 | case `$LD -v 2>/dev/null` in |
17369 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
17370 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
17371 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
17372 | *\ 2.11.*) ;; # other 2.11 versions |
17373 | *) supports_anon_versioning=yes ;; |
17374 | esac |
17375 | |
17376 | # See if GNU ld supports shared libraries. |
17377 | case $host_os in |
17378 | aix[3-9]*) |
17379 | # On AIX/PPC, the GNU linker is very broken |
17380 | if test "$host_cpu" != ia64; then |
17381 | ld_shlibs_GCJ=no |
17382 | cat <<EOF 1>&2 |
17383 | |
17384 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
17385 | *** to be unable to reliably create shared libraries on AIX. |
17386 | *** Therefore, libtool is disabling shared libraries support. If you |
17387 | *** really care for shared libraries, you may want to modify your PATH |
17388 | *** so that a non-GNU linker is found, and then restart. |
17389 | |
17390 | EOF |
17391 | fi |
17392 | ;; |
17393 | |
17394 | amigaos*) |
17395 | 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)' |
17396 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17397 | hardcode_minus_L_GCJ=yes |
17398 | |
17399 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
17400 | # that the semantics of dynamic libraries on AmigaOS, at least up |
17401 | # to version 4, is to share data among multiple programs linked |
17402 | # with the same dynamic library. Since this doesn't match the |
17403 | # behavior of shared libraries on other platforms, we can't use |
17404 | # them. |
17405 | ld_shlibs_GCJ=no |
17406 | ;; |
17407 | |
17408 | beos*) |
17409 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17410 | allow_undefined_flag_GCJ=unsupported |
17411 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
17412 | # support --undefined. This deserves some investigation. FIXME |
17413 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17414 | else |
17415 | ld_shlibs_GCJ=no |
17416 | fi |
17417 | ;; |
17418 | |
17419 | cygwin* | mingw* | pw32*) |
17420 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
17421 | # as there is no search path for DLLs. |
17422 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17423 | allow_undefined_flag_GCJ=unsupported |
17424 | always_export_symbols_GCJ=no |
17425 | enable_shared_with_static_runtimes_GCJ=yes |
17426 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' |
17427 | |
17428 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
17429 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
17430 | # If the export-symbols file already is a .def file (1st line |
17431 | # is EXPORTS), use it as is; otherwise, prepend... |
17432 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
17433 | cp $export_symbols $output_objdir/$soname.def; |
17434 | else |
17435 | echo EXPORTS > $output_objdir/$soname.def; |
17436 | cat $export_symbols >> $output_objdir/$soname.def; |
17437 | fi~ |
17438 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
17439 | else |
17440 | ld_shlibs_GCJ=no |
17441 | fi |
17442 | ;; |
17443 | |
17444 | interix[3-9]*) |
17445 | hardcode_direct_GCJ=no |
17446 | hardcode_shlibpath_var_GCJ=no |
17447 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17448 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17449 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
17450 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
17451 | # default) and relocated if they conflict, which is a slow very memory |
17452 | # consuming and fragmenting process. To avoid this, we pick a random, |
17453 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
17454 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
17455 | 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' |
17456 | 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' |
17457 | ;; |
17458 | |
17459 | gnu* | linux* | k*bsd*-gnu) |
17460 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17461 | tmp_addflag= |
17462 | case $cc_basename,$host_cpu in |
17463 | pgcc*) # Portland Group C compiler |
17464 | 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' |
17465 | tmp_addflag=' $pic_flag' |
17466 | ;; |
17467 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
17468 | 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' |
17469 | tmp_addflag=' $pic_flag -Mnomain' ;; |
17470 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
17471 | tmp_addflag=' -i_dynamic' ;; |
17472 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
17473 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
17474 | ifc* | ifort*) # Intel Fortran compiler |
17475 | tmp_addflag=' -nofor_main' ;; |
17476 | esac |
17477 | case `$CC -V 2>&1 | sed 5q` in |
17478 | *Sun\ C*) # Sun C 5.9 |
17479 | whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive' |
17480 | tmp_sharedflag='-G' ;; |
17481 | *Sun\ F*) # Sun Fortran 8.3 |
17482 | tmp_sharedflag='-G' ;; |
17483 | *) |
17484 | tmp_sharedflag='-shared' ;; |
17485 | esac |
17486 | archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17487 | |
17488 | if test $supports_anon_versioning = yes; then |
17489 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
17490 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
17491 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
17492 | $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
17493 | fi |
17494 | else |
17495 | ld_shlibs_GCJ=no |
17496 | fi |
17497 | ;; |
17498 | |
17499 | netbsd*) |
17500 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17501 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
17502 | wlarc= |
17503 | else |
17504 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17505 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17506 | fi |
17507 | ;; |
17508 | |
17509 | solaris*) |
17510 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
17511 | ld_shlibs_GCJ=no |
17512 | cat <<EOF 1>&2 |
17513 | |
17514 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
17515 | *** create shared libraries on Solaris systems. Therefore, libtool |
17516 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17517 | *** binutils to release 2.9.1 or newer. Another option is to modify |
17518 | *** your PATH or compiler configuration so that the native linker is |
17519 | *** used, and then restart. |
17520 | |
17521 | EOF |
17522 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17523 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17524 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17525 | else |
17526 | ld_shlibs_GCJ=no |
17527 | fi |
17528 | ;; |
17529 | |
17530 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
17531 | case `$LD -v 2>&1` in |
17532 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
17533 | ld_shlibs_GCJ=no |
17534 | cat <<_LT_EOF 1>&2 |
17535 | |
17536 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
17537 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
17538 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17539 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
17540 | *** your PATH or compiler configuration so that the native linker is |
17541 | *** used, and then restart. |
17542 | |
17543 | _LT_EOF |
17544 | ;; |
17545 | *) |
17546 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17547 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
17548 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
17549 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
17550 | else |
17551 | ld_shlibs_GCJ=no |
17552 | fi |
17553 | ;; |
17554 | esac |
17555 | ;; |
17556 | |
17557 | sunos4*) |
17558 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17559 | wlarc= |
17560 | hardcode_direct_GCJ=yes |
17561 | hardcode_shlibpath_var_GCJ=no |
17562 | ;; |
17563 | |
17564 | *) |
17565 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17566 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17567 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17568 | else |
17569 | ld_shlibs_GCJ=no |
17570 | fi |
17571 | ;; |
17572 | esac |
17573 | |
17574 | if test "$ld_shlibs_GCJ" = no; then |
17575 | runpath_var= |
17576 | hardcode_libdir_flag_spec_GCJ= |
17577 | export_dynamic_flag_spec_GCJ= |
17578 | whole_archive_flag_spec_GCJ= |
17579 | fi |
17580 | else |
17581 | # PORTME fill in a description of your system's linker (not GNU ld) |
17582 | case $host_os in |
17583 | aix3*) |
17584 | allow_undefined_flag_GCJ=unsupported |
17585 | always_export_symbols_GCJ=yes |
17586 | 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' |
17587 | # Note: this linker hardcodes the directories in LIBPATH if there |
17588 | # are no directories specified by -L. |
17589 | hardcode_minus_L_GCJ=yes |
17590 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
17591 | # Neither direct hardcoding nor static linking is supported with a |
17592 | # broken collect2. |
17593 | hardcode_direct_GCJ=unsupported |
17594 | fi |
17595 | ;; |
17596 | |
17597 | aix[4-9]*) |
17598 | if test "$host_cpu" = ia64; then |
17599 | # On IA64, the linker does run time linking by default, so we don't |
17600 | # have to do anything special. |
17601 | aix_use_runtimelinking=no |
17602 | exp_sym_flag='-Bexport' |
17603 | no_entry_flag="" |
17604 | else |
17605 | # If we're using GNU nm, then we don't want the "-C" option. |
17606 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
17607 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
17608 | 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' |
17609 | else |
17610 | 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' |
17611 | fi |
17612 | aix_use_runtimelinking=no |
17613 | |
17614 | # Test if we are trying to use run time linking or normal |
17615 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
17616 | # need to do runtime linking. |
17617 | case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) |
17618 | for ld_flag in $LDFLAGS; do |
17619 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
17620 | aix_use_runtimelinking=yes |
17621 | break |
17622 | fi |
17623 | done |
17624 | ;; |
17625 | esac |
17626 | |
17627 | exp_sym_flag='-bexport' |
17628 | no_entry_flag='-bnoentry' |
17629 | fi |
17630 | |
17631 | # When large executables or shared objects are built, AIX ld can |
17632 | # have problems creating the table of contents. If linking a library |
17633 | # or program results in "error TOC overflow" add -mminimal-toc to |
17634 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
17635 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
17636 | |
17637 | archive_cmds_GCJ='' |
17638 | hardcode_direct_GCJ=yes |
17639 | hardcode_libdir_separator_GCJ=':' |
17640 | link_all_deplibs_GCJ=yes |
17641 | |
17642 | if test "$GCC" = yes; then |
17643 | case $host_os in aix4.[012]|aix4.[012].*) |
17644 | # We only want to do this on AIX 4.2 and lower, the check |
17645 | # below for broken collect2 doesn't work under 4.3+ |
17646 | collect2name=`${CC} -print-prog-name=collect2` |
17647 | if test -f "$collect2name" && \ |
17648 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
17649 | then |
17650 | # We have reworked collect2 |
17651 | : |
17652 | else |
17653 | # We have old collect2 |
17654 | hardcode_direct_GCJ=unsupported |
17655 | # It fails to find uninstalled libraries when the uninstalled |
17656 | # path is not listed in the libpath. Setting hardcode_minus_L |
17657 | # to unsupported forces relinking |
17658 | hardcode_minus_L_GCJ=yes |
17659 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17660 | hardcode_libdir_separator_GCJ= |
17661 | fi |
17662 | ;; |
17663 | esac |
17664 | shared_flag='-shared' |
17665 | if test "$aix_use_runtimelinking" = yes; then |
17666 | shared_flag="$shared_flag "'${wl}-G' |
17667 | fi |
17668 | else |
17669 | # not using gcc |
17670 | if test "$host_cpu" = ia64; then |
17671 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
17672 | # chokes on -Wl,-G. The following line is correct: |
17673 | shared_flag='-G' |
17674 | else |
17675 | if test "$aix_use_runtimelinking" = yes; then |
17676 | shared_flag='${wl}-G' |
17677 | else |
17678 | shared_flag='${wl}-bM:SRE' |
17679 | fi |
17680 | fi |
17681 | fi |
17682 | |
17683 | # It seems that -bexpall does not export symbols beginning with |
17684 | # underscore (_), so it is better to generate a list of symbols to export. |
17685 | always_export_symbols_GCJ=yes |
17686 | if test "$aix_use_runtimelinking" = yes; then |
17687 | # Warning - without using the other runtime loading flags (-brtl), |
17688 | # -berok will link without error, but may produce a broken library. |
17689 | allow_undefined_flag_GCJ='-berok' |
17690 | # Determine the default libpath from the value encoded in an empty executable. |
17691 | cat >conftest.$ac_ext <<_ACEOF |
17692 | /* confdefs.h. */ |
17693 | _ACEOF |
17694 | cat confdefs.h >>conftest.$ac_ext |
17695 | cat >>conftest.$ac_ext <<_ACEOF |
17696 | /* end confdefs.h. */ |
17697 | |
17698 | int |
17699 | main () |
17700 | { |
17701 | |
17702 | ; |
17703 | return 0; |
17704 | } |
17705 | _ACEOF |
17706 | rm -f conftest.$ac_objext conftest$ac_exeext |
17707 | if { (ac_try="$ac_link" |
17708 | case "(($ac_try" in |
17709 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17710 | *) ac_try_echo=$ac_try;; |
17711 | esac |
17712 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17713 | (eval "$ac_link") 2>conftest.er1 |
17714 | ac_status=$? |
17715 | grep -v '^ *+' conftest.er1 >conftest.err |
17716 | rm -f conftest.er1 |
17717 | cat conftest.err >&5 |
17718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17719 | (exit $ac_status); } && { |
17720 | test -z "$ac_c_werror_flag" || |
17721 | test ! -s conftest.err |
17722 | } && test -s conftest$ac_exeext && |
17723 | $as_test_x conftest$ac_exeext; then |
17724 | |
17725 | lt_aix_libpath_sed=' |
17726 | /Import File Strings/,/^$/ { |
17727 | /^0/ { |
17728 | s/^0 *\(.*\)$/\1/ |
17729 | p |
17730 | } |
17731 | }' |
17732 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
17733 | # Check for a 64-bit object if we didn't find anything. |
17734 | if test -z "$aix_libpath"; then |
17735 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
17736 | fi |
17737 | else |
17738 | echo "$as_me: failed program was:" >&5 |
17739 | sed 's/^/| /' conftest.$ac_ext >&5 |
17740 | |
17741 | |
17742 | fi |
17743 | |
17744 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
17745 | conftest$ac_exeext conftest.$ac_ext |
17746 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17747 | |
17748 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17749 | 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" |
17750 | else |
17751 | if test "$host_cpu" = ia64; then |
17752 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
17753 | allow_undefined_flag_GCJ="-z nodefs" |
17754 | 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" |
17755 | else |
17756 | # Determine the default libpath from the value encoded in an empty executable. |
17757 | cat >conftest.$ac_ext <<_ACEOF |
17758 | /* confdefs.h. */ |
17759 | _ACEOF |
17760 | cat confdefs.h >>conftest.$ac_ext |
17761 | cat >>conftest.$ac_ext <<_ACEOF |
17762 | /* end confdefs.h. */ |
17763 | |
17764 | int |
17765 | main () |
17766 | { |
17767 | |
17768 | ; |
17769 | return 0; |
17770 | } |
17771 | _ACEOF |
17772 | rm -f conftest.$ac_objext conftest$ac_exeext |
17773 | if { (ac_try="$ac_link" |
17774 | case "(($ac_try" in |
17775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17776 | *) ac_try_echo=$ac_try;; |
17777 | esac |
17778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17779 | (eval "$ac_link") 2>conftest.er1 |
17780 | ac_status=$? |
17781 | grep -v '^ *+' conftest.er1 >conftest.err |
17782 | rm -f conftest.er1 |
17783 | cat conftest.err >&5 |
17784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17785 | (exit $ac_status); } && { |
17786 | test -z "$ac_c_werror_flag" || |
17787 | test ! -s conftest.err |
17788 | } && test -s conftest$ac_exeext && |
17789 | $as_test_x conftest$ac_exeext; then |
17790 | |
17791 | lt_aix_libpath_sed=' |
17792 | /Import File Strings/,/^$/ { |
17793 | /^0/ { |
17794 | s/^0 *\(.*\)$/\1/ |
17795 | p |
17796 | } |
17797 | }' |
17798 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
17799 | # Check for a 64-bit object if we didn't find anything. |
17800 | if test -z "$aix_libpath"; then |
17801 | aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` |
17802 | fi |
17803 | else |
17804 | echo "$as_me: failed program was:" >&5 |
17805 | sed 's/^/| /' conftest.$ac_ext >&5 |
17806 | |
17807 | |
17808 | fi |
17809 | |
17810 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
17811 | conftest$ac_exeext conftest.$ac_ext |
17812 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17813 | |
17814 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17815 | # Warning - without using the other run time loading flags, |
17816 | # -berok will link without error, but may produce a broken library. |
17817 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
17818 | allow_undefined_flag_GCJ=' ${wl}-berok' |
17819 | # Exported symbols can be pulled into shared objects from archives |
17820 | whole_archive_flag_spec_GCJ='$convenience' |
17821 | archive_cmds_need_lc_GCJ=yes |
17822 | # This is similar to how AIX traditionally builds its shared libraries. |
17823 | 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' |
17824 | fi |
17825 | fi |
17826 | ;; |
17827 | |
17828 | amigaos*) |
17829 | 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)' |
17830 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17831 | hardcode_minus_L_GCJ=yes |
17832 | # see comment about different semantics on the GNU ld section |
17833 | ld_shlibs_GCJ=no |
17834 | ;; |
17835 | |
17836 | bsdi[45]*) |
17837 | export_dynamic_flag_spec_GCJ=-rdynamic |
17838 | ;; |
17839 | |
17840 | cygwin* | mingw* | pw32*) |
17841 | # When not using gcc, we currently assume that we are using |
17842 | # Microsoft Visual C++. |
17843 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
17844 | # no search path for DLLs. |
17845 | hardcode_libdir_flag_spec_GCJ=' ' |
17846 | allow_undefined_flag_GCJ=unsupported |
17847 | # Tell ltmain to make .lib files, not .a files. |
17848 | libext=lib |
17849 | # Tell ltmain to make .dll files, not .so files. |
17850 | shrext_cmds=".dll" |
17851 | # FIXME: Setting linknames here is a bad hack. |
17852 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
17853 | # The linker will automatically build a .lib file if we build a DLL. |
17854 | old_archive_From_new_cmds_GCJ='true' |
17855 | # FIXME: Should let the user specify the lib program. |
17856 | old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs' |
17857 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
17858 | enable_shared_with_static_runtimes_GCJ=yes |
17859 | ;; |
17860 | |
17861 | darwin* | rhapsody*) |
17862 | case $host_os in |
17863 | rhapsody* | darwin1.[012]) |
17864 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
17865 | ;; |
17866 | *) # Darwin 1.3 on |
17867 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
17868 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17869 | else |
17870 | case ${MACOSX_DEPLOYMENT_TARGET} in |
17871 | 10.[012]) |
17872 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17873 | ;; |
17874 | 10.*) |
17875 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
17876 | ;; |
17877 | esac |
17878 | fi |
17879 | ;; |
17880 | esac |
17881 | archive_cmds_need_lc_GCJ=no |
17882 | hardcode_direct_GCJ=no |
17883 | hardcode_automatic_GCJ=yes |
17884 | hardcode_shlibpath_var_GCJ=unsupported |
17885 | whole_archive_flag_spec_GCJ='' |
17886 | link_all_deplibs_GCJ=yes |
17887 | if test "$GCC" = yes ; then |
17888 | output_verbose_link_cmd='echo' |
17889 | archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" |
17890 | module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" |
17891 | archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" |
17892 | module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" |
17893 | else |
17894 | case $cc_basename in |
17895 | xlc*) |
17896 | output_verbose_link_cmd='echo' |
17897 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring' |
17898 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17899 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17900 | 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 $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
17901 | 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}' |
17902 | ;; |
17903 | *) |
17904 | ld_shlibs_GCJ=no |
17905 | ;; |
17906 | esac |
17907 | fi |
17908 | ;; |
17909 | |
17910 | dgux*) |
17911 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17912 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17913 | hardcode_shlibpath_var_GCJ=no |
17914 | ;; |
17915 | |
17916 | freebsd1*) |
17917 | ld_shlibs_GCJ=no |
17918 | ;; |
17919 | |
17920 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
17921 | # support. Future versions do this automatically, but an explicit c++rt0.o |
17922 | # does not break anything, and helps significantly (at the cost of a little |
17923 | # extra space). |
17924 | freebsd2.2*) |
17925 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
17926 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17927 | hardcode_direct_GCJ=yes |
17928 | hardcode_shlibpath_var_GCJ=no |
17929 | ;; |
17930 | |
17931 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
17932 | freebsd2*) |
17933 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17934 | hardcode_direct_GCJ=yes |
17935 | hardcode_minus_L_GCJ=yes |
17936 | hardcode_shlibpath_var_GCJ=no |
17937 | ;; |
17938 | |
17939 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
17940 | freebsd* | dragonfly*) |
17941 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
17942 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17943 | hardcode_direct_GCJ=yes |
17944 | hardcode_shlibpath_var_GCJ=no |
17945 | ;; |
17946 | |
17947 | hpux9*) |
17948 | if test "$GCC" = yes; then |
17949 | 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' |
17950 | else |
17951 | 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' |
17952 | fi |
17953 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17954 | hardcode_libdir_separator_GCJ=: |
17955 | hardcode_direct_GCJ=yes |
17956 | |
17957 | # hardcode_minus_L: Not really in the search PATH, |
17958 | # but as the default location of the library. |
17959 | hardcode_minus_L_GCJ=yes |
17960 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17961 | ;; |
17962 | |
17963 | hpux10*) |
17964 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17965 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17966 | else |
17967 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
17968 | fi |
17969 | if test "$with_gnu_ld" = no; then |
17970 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17971 | hardcode_libdir_separator_GCJ=: |
17972 | |
17973 | hardcode_direct_GCJ=yes |
17974 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17975 | |
17976 | # hardcode_minus_L: Not really in the search PATH, |
17977 | # but as the default location of the library. |
17978 | hardcode_minus_L_GCJ=yes |
17979 | fi |
17980 | ;; |
17981 | |
17982 | hpux11*) |
17983 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17984 | case $host_cpu in |
17985 | hppa*64*) |
17986 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17987 | ;; |
17988 | ia64*) |
17989 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17990 | ;; |
17991 | *) |
17992 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17993 | ;; |
17994 | esac |
17995 | else |
17996 | case $host_cpu in |
17997 | hppa*64*) |
17998 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17999 | ;; |
18000 | ia64*) |
18001 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
18002 | ;; |
18003 | *) |
18004 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
18005 | ;; |
18006 | esac |
18007 | fi |
18008 | if test "$with_gnu_ld" = no; then |
18009 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
18010 | hardcode_libdir_separator_GCJ=: |
18011 | |
18012 | case $host_cpu in |
18013 | hppa*64*|ia64*) |
18014 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
18015 | hardcode_direct_GCJ=no |
18016 | hardcode_shlibpath_var_GCJ=no |
18017 | ;; |
18018 | *) |
18019 | hardcode_direct_GCJ=yes |
18020 | export_dynamic_flag_spec_GCJ='${wl}-E' |
18021 | |
18022 | # hardcode_minus_L: Not really in the search PATH, |
18023 | # but as the default location of the library. |
18024 | hardcode_minus_L_GCJ=yes |
18025 | ;; |
18026 | esac |
18027 | fi |
18028 | ;; |
18029 | |
18030 | irix5* | irix6* | nonstopux*) |
18031 | if test "$GCC" = yes; then |
18032 | 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' |
18033 | else |
18034 | 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' |
18035 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
18036 | fi |
18037 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
18038 | hardcode_libdir_separator_GCJ=: |
18039 | link_all_deplibs_GCJ=yes |
18040 | ;; |
18041 | |
18042 | netbsd*) |
18043 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
18044 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
18045 | else |
18046 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
18047 | fi |
18048 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
18049 | hardcode_direct_GCJ=yes |
18050 | hardcode_shlibpath_var_GCJ=no |
18051 | ;; |
18052 | |
18053 | newsos6) |
18054 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18055 | hardcode_direct_GCJ=yes |
18056 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
18057 | hardcode_libdir_separator_GCJ=: |
18058 | hardcode_shlibpath_var_GCJ=no |
18059 | ;; |
18060 | |
18061 | openbsd*) |
18062 | if test -f /usr/libexec/ld.so; then |
18063 | hardcode_direct_GCJ=yes |
18064 | hardcode_shlibpath_var_GCJ=no |
18065 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
18066 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
18067 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
18068 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
18069 | export_dynamic_flag_spec_GCJ='${wl}-E' |
18070 | else |
18071 | case $host_os in |
18072 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
18073 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
18074 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
18075 | ;; |
18076 | *) |
18077 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
18078 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
18079 | ;; |
18080 | esac |
18081 | fi |
18082 | else |
18083 | ld_shlibs_GCJ=no |
18084 | fi |
18085 | ;; |
18086 | |
18087 | os2*) |
18088 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
18089 | hardcode_minus_L_GCJ=yes |
18090 | allow_undefined_flag_GCJ=unsupported |
18091 | 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' |
18092 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
18093 | ;; |
18094 | |
18095 | osf3*) |
18096 | if test "$GCC" = yes; then |
18097 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
18098 | 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' |
18099 | else |
18100 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
18101 | 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' |
18102 | fi |
18103 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
18104 | hardcode_libdir_separator_GCJ=: |
18105 | ;; |
18106 | |
18107 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
18108 | if test "$GCC" = yes; then |
18109 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
18110 | 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' |
18111 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
18112 | else |
18113 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
18114 | 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' |
18115 | 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~ |
18116 | $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' |
18117 | |
18118 | # Both c and cxx compiler support -rpath directly |
18119 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
18120 | fi |
18121 | hardcode_libdir_separator_GCJ=: |
18122 | ;; |
18123 | |
18124 | solaris*) |
18125 | no_undefined_flag_GCJ=' -z text' |
18126 | if test "$GCC" = yes; then |
18127 | wlarc='${wl}' |
18128 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
18129 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
18130 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
18131 | else |
18132 | wlarc='' |
18133 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18134 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
18135 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
18136 | fi |
18137 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
18138 | hardcode_shlibpath_var_GCJ=no |
18139 | case $host_os in |
18140 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
18141 | *) |
18142 | # The compiler driver will combine and reorder linker options, |
18143 | # but understands `-z linker_flag'. GCC discards it without `$wl', |
18144 | # but is careful enough not to reorder. |
18145 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
18146 | if test "$GCC" = yes; then |
18147 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' |
18148 | else |
18149 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' |
18150 | fi |
18151 | ;; |
18152 | esac |
18153 | link_all_deplibs_GCJ=yes |
18154 | ;; |
18155 | |
18156 | sunos4*) |
18157 | if test "x$host_vendor" = xsequent; then |
18158 | # Use $CC to link under sequent, because it throws in some extra .o |
18159 | # files that make .init and .fini sections work. |
18160 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
18161 | else |
18162 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
18163 | fi |
18164 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
18165 | hardcode_direct_GCJ=yes |
18166 | hardcode_minus_L_GCJ=yes |
18167 | hardcode_shlibpath_var_GCJ=no |
18168 | ;; |
18169 | |
18170 | sysv4) |
18171 | case $host_vendor in |
18172 | sni) |
18173 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18174 | hardcode_direct_GCJ=yes # is this really true??? |
18175 | ;; |
18176 | siemens) |
18177 | ## LD is ld it makes a PLAMLIB |
18178 | ## CC just makes a GrossModule. |
18179 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
18180 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
18181 | hardcode_direct_GCJ=no |
18182 | ;; |
18183 | motorola) |
18184 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18185 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
18186 | ;; |
18187 | esac |
18188 | runpath_var='LD_RUN_PATH' |
18189 | hardcode_shlibpath_var_GCJ=no |
18190 | ;; |
18191 | |
18192 | sysv4.3*) |
18193 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18194 | hardcode_shlibpath_var_GCJ=no |
18195 | export_dynamic_flag_spec_GCJ='-Bexport' |
18196 | ;; |
18197 | |
18198 | sysv4*MP*) |
18199 | if test -d /usr/nec; then |
18200 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18201 | hardcode_shlibpath_var_GCJ=no |
18202 | runpath_var=LD_RUN_PATH |
18203 | hardcode_runpath_var=yes |
18204 | ld_shlibs_GCJ=yes |
18205 | fi |
18206 | ;; |
18207 | |
18208 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
18209 | no_undefined_flag_GCJ='${wl}-z,text' |
18210 | archive_cmds_need_lc_GCJ=no |
18211 | hardcode_shlibpath_var_GCJ=no |
18212 | runpath_var='LD_RUN_PATH' |
18213 | |
18214 | if test "$GCC" = yes; then |
18215 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
18216 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
18217 | else |
18218 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
18219 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
18220 | fi |
18221 | ;; |
18222 | |
18223 | sysv5* | sco3.2v5* | sco5v6*) |
18224 | # Note: We can NOT use -z defs as we might desire, because we do not |
18225 | # link with -lc, and that would cause any symbols used from libc to |
18226 | # always be unresolved, which means just about no library would |
18227 | # ever link correctly. If we're not using GNU ld we use -z text |
18228 | # though, which does catch some bad symbols but isn't as heavy-handed |
18229 | # as -z defs. |
18230 | no_undefined_flag_GCJ='${wl}-z,text' |
18231 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
18232 | archive_cmds_need_lc_GCJ=no |
18233 | hardcode_shlibpath_var_GCJ=no |
18234 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
18235 | hardcode_libdir_separator_GCJ=':' |
18236 | link_all_deplibs_GCJ=yes |
18237 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
18238 | runpath_var='LD_RUN_PATH' |
18239 | |
18240 | if test "$GCC" = yes; then |
18241 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
18242 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
18243 | else |
18244 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
18245 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
18246 | fi |
18247 | ;; |
18248 | |
18249 | uts4*) |
18250 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18251 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
18252 | hardcode_shlibpath_var_GCJ=no |
18253 | ;; |
18254 | |
18255 | *) |
18256 | ld_shlibs_GCJ=no |
18257 | ;; |
18258 | esac |
18259 | fi |
18260 | |
18261 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
18262 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
18263 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
18264 | |
18265 | # |
18266 | # Do we need to explicitly link libc? |
18267 | # |
18268 | case "x$archive_cmds_need_lc_GCJ" in |
18269 | x|xyes) |
18270 | # Assume -lc should be added |
18271 | archive_cmds_need_lc_GCJ=yes |
18272 | |
18273 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
18274 | case $archive_cmds_GCJ in |
18275 | *'~'*) |
18276 | # FIXME: we may have to deal with multi-command sequences. |
18277 | ;; |
18278 | '$CC '*) |
18279 | # Test whether the compiler implicitly links with -lc since on some |
18280 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
18281 | # to ld, don't add -lc before -lgcc. |
18282 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
18283 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
18284 | $rm conftest* |
18285 | echo "$lt_simple_compile_test_code" > conftest.$ac_ext |
18286 | |
18287 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18288 | (eval $ac_compile) 2>&5 |
18289 | ac_status=$? |
18290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18291 | (exit $ac_status); } 2>conftest.err; then |
18292 | soname=conftest |
18293 | lib=conftest |
18294 | libobjs=conftest.$ac_objext |
18295 | deplibs= |
18296 | wl=$lt_prog_compiler_wl_GCJ |
18297 | pic_flag=$lt_prog_compiler_pic_GCJ |
18298 | compiler_flags=-v |
18299 | linker_flags=-v |
18300 | verstring= |
18301 | output_objdir=. |
18302 | libname=conftest |
18303 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
18304 | allow_undefined_flag_GCJ= |
18305 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
18306 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
18307 | ac_status=$? |
18308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18309 | (exit $ac_status); } |
18310 | then |
18311 | archive_cmds_need_lc_GCJ=no |
18312 | else |
18313 | archive_cmds_need_lc_GCJ=yes |
18314 | fi |
18315 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
18316 | else |
18317 | cat conftest.err 1>&5 |
18318 | fi |
18319 | $rm conftest* |
18320 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
18321 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
18322 | ;; |
18323 | esac |
18324 | fi |
18325 | ;; |
18326 | esac |
18327 | |
18328 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
18329 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
18330 | library_names_spec= |
18331 | libname_spec='lib$name' |
18332 | soname_spec= |
18333 | shrext_cmds=".so" |
18334 | postinstall_cmds= |
18335 | postuninstall_cmds= |
18336 | finish_cmds= |
18337 | finish_eval= |
18338 | shlibpath_var= |
18339 | shlibpath_overrides_runpath=unknown |
18340 | version_type=none |
18341 | dynamic_linker="$host_os ld.so" |
18342 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
18343 | |
18344 | need_lib_prefix=unknown |
18345 | hardcode_into_libs=no |
18346 | |
18347 | # when you set need_version to no, make sure it does not cause -set_version |
18348 | # flags to be left without arguments |
18349 | need_version=unknown |
18350 | |
18351 | case $host_os in |
18352 | aix3*) |
18353 | version_type=linux |
18354 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
18355 | shlibpath_var=LIBPATH |
18356 | |
18357 | # AIX 3 has no versioning support, so we append a major version to the name. |
18358 | soname_spec='${libname}${release}${shared_ext}$major' |
18359 | ;; |
18360 | |
18361 | aix[4-9]*) |
18362 | version_type=linux |
18363 | need_lib_prefix=no |
18364 | need_version=no |
18365 | hardcode_into_libs=yes |
18366 | if test "$host_cpu" = ia64; then |
18367 | # AIX 5 supports IA64 |
18368 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
18369 | shlibpath_var=LD_LIBRARY_PATH |
18370 | else |
18371 | # With GCC up to 2.95.x, collect2 would create an import file |
18372 | # for dependence libraries. The import file would start with |
18373 | # the line `#! .'. This would cause the generated library to |
18374 | # depend on `.', always an invalid library. This was fixed in |
18375 | # development snapshots of GCC prior to 3.0. |
18376 | case $host_os in |
18377 | aix4 | aix4.[01] | aix4.[01].*) |
18378 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
18379 | echo ' yes ' |
18380 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
18381 | : |
18382 | else |
18383 | can_build_shared=no |
18384 | fi |
18385 | ;; |
18386 | esac |
18387 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
18388 | # soname into executable. Probably we can add versioning support to |
18389 | # collect2, so additional links can be useful in future. |
18390 | if test "$aix_use_runtimelinking" = yes; then |
18391 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
18392 | # instead of lib<name>.a to let people know that these are not |
18393 | # typical AIX shared libraries. |
18394 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18395 | else |
18396 | # We preserve .a as extension for shared libraries through AIX4.2 |
18397 | # and later when we are not doing run time linking. |
18398 | library_names_spec='${libname}${release}.a $libname.a' |
18399 | soname_spec='${libname}${release}${shared_ext}$major' |
18400 | fi |
18401 | shlibpath_var=LIBPATH |
18402 | fi |
18403 | ;; |
18404 | |
18405 | amigaos*) |
18406 | library_names_spec='$libname.ixlibrary $libname.a' |
18407 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
18408 | 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' |
18409 | ;; |
18410 | |
18411 | beos*) |
18412 | library_names_spec='${libname}${shared_ext}' |
18413 | dynamic_linker="$host_os ld.so" |
18414 | shlibpath_var=LIBRARY_PATH |
18415 | ;; |
18416 | |
18417 | bsdi[45]*) |
18418 | version_type=linux |
18419 | need_version=no |
18420 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18421 | soname_spec='${libname}${release}${shared_ext}$major' |
18422 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
18423 | shlibpath_var=LD_LIBRARY_PATH |
18424 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
18425 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
18426 | # the default ld.so.conf also contains /usr/contrib/lib and |
18427 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
18428 | # libtool to hard-code these into programs |
18429 | ;; |
18430 | |
18431 | cygwin* | mingw* | pw32*) |
18432 | version_type=windows |
18433 | shrext_cmds=".dll" |
18434 | need_version=no |
18435 | need_lib_prefix=no |
18436 | |
18437 | case $GCC,$host_os in |
18438 | yes,cygwin* | yes,mingw* | yes,pw32*) |
18439 | library_names_spec='$libname.dll.a' |
18440 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
18441 | postinstall_cmds='base_file=`basename \${file}`~ |
18442 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
18443 | dldir=$destdir/`dirname \$dlpath`~ |
18444 | test -d \$dldir || mkdir -p \$dldir~ |
18445 | $install_prog $dir/$dlname \$dldir/$dlname~ |
18446 | chmod a+x \$dldir/$dlname' |
18447 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
18448 | dlpath=$dir/\$dldll~ |
18449 | $rm \$dlpath' |
18450 | shlibpath_overrides_runpath=yes |
18451 | |
18452 | case $host_os in |
18453 | cygwin*) |
18454 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
18455 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18456 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
18457 | ;; |
18458 | mingw*) |
18459 | # MinGW DLLs use traditional 'lib' prefix |
18460 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18461 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
18462 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
18463 | # It is most probably a Windows format PATH printed by |
18464 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
18465 | # path with ; separators, and with drive letters. We can handle the |
18466 | # drive letters (cygwin fileutils understands them), so leave them, |
18467 | # especially as we might pass files found there to a mingw objdump, |
18468 | # which wouldn't understand a cygwinified path. Ahh. |
18469 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
18470 | else |
18471 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
18472 | fi |
18473 | ;; |
18474 | pw32*) |
18475 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
18476 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18477 | ;; |
18478 | esac |
18479 | ;; |
18480 | |
18481 | *) |
18482 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
18483 | ;; |
18484 | esac |
18485 | dynamic_linker='Win32 ld.exe' |
18486 | # FIXME: first we should search . and the directory the executable is in |
18487 | shlibpath_var=PATH |
18488 | ;; |
18489 | |
18490 | darwin* | rhapsody*) |
18491 | dynamic_linker="$host_os dyld" |
18492 | version_type=darwin |
18493 | need_lib_prefix=no |
18494 | need_version=no |
18495 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
18496 | soname_spec='${libname}${release}${major}$shared_ext' |
18497 | shlibpath_overrides_runpath=yes |
18498 | shlibpath_var=DYLD_LIBRARY_PATH |
18499 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
18500 | |
18501 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
18502 | ;; |
18503 | |
18504 | dgux*) |
18505 | version_type=linux |
18506 | need_lib_prefix=no |
18507 | need_version=no |
18508 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
18509 | soname_spec='${libname}${release}${shared_ext}$major' |
18510 | shlibpath_var=LD_LIBRARY_PATH |
18511 | ;; |
18512 | |
18513 | freebsd1*) |
18514 | dynamic_linker=no |
18515 | ;; |
18516 | |
18517 | freebsd* | dragonfly*) |
18518 | # DragonFly does not have aout. When/if they implement a new |
18519 | # versioning mechanism, adjust this. |
18520 | if test -x /usr/bin/objformat; then |
18521 | objformat=`/usr/bin/objformat` |
18522 | else |
18523 | case $host_os in |
18524 | freebsd[123]*) objformat=aout ;; |
18525 | *) objformat=elf ;; |
18526 | esac |
18527 | fi |
18528 | version_type=freebsd-$objformat |
18529 | case $version_type in |
18530 | freebsd-elf*) |
18531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18532 | need_version=no |
18533 | need_lib_prefix=no |
18534 | ;; |
18535 | freebsd-*) |
18536 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
18537 | need_version=yes |
18538 | ;; |
18539 | esac |
18540 | shlibpath_var=LD_LIBRARY_PATH |
18541 | case $host_os in |
18542 | freebsd2*) |
18543 | shlibpath_overrides_runpath=yes |
18544 | ;; |
18545 | freebsd3.[01]* | freebsdelf3.[01]*) |
18546 | shlibpath_overrides_runpath=yes |
18547 | hardcode_into_libs=yes |
18548 | ;; |
18549 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
18550 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
18551 | shlibpath_overrides_runpath=no |
18552 | hardcode_into_libs=yes |
18553 | ;; |
18554 | *) # from 4.6 on, and DragonFly |
18555 | shlibpath_overrides_runpath=yes |
18556 | hardcode_into_libs=yes |
18557 | ;; |
18558 | esac |
18559 | ;; |
18560 | |
18561 | gnu*) |
18562 | version_type=linux |
18563 | need_lib_prefix=no |
18564 | need_version=no |
18565 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
18566 | soname_spec='${libname}${release}${shared_ext}$major' |
18567 | shlibpath_var=LD_LIBRARY_PATH |
18568 | hardcode_into_libs=yes |
18569 | ;; |
18570 | |
18571 | hpux9* | hpux10* | hpux11*) |
18572 | # Give a soname corresponding to the major version so that dld.sl refuses to |
18573 | # link against other versions. |
18574 | version_type=sunos |
18575 | need_lib_prefix=no |
18576 | need_version=no |
18577 | case $host_cpu in |
18578 | ia64*) |
18579 | shrext_cmds='.so' |
18580 | hardcode_into_libs=yes |
18581 | dynamic_linker="$host_os dld.so" |
18582 | shlibpath_var=LD_LIBRARY_PATH |
18583 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18584 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18585 | soname_spec='${libname}${release}${shared_ext}$major' |
18586 | if test "X$HPUX_IA64_MODE" = X32; then |
18587 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
18588 | else |
18589 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
18590 | fi |
18591 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18592 | ;; |
18593 | hppa*64*) |
18594 | shrext_cmds='.sl' |
18595 | hardcode_into_libs=yes |
18596 | dynamic_linker="$host_os dld.sl" |
18597 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
18598 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18599 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18600 | soname_spec='${libname}${release}${shared_ext}$major' |
18601 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
18602 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18603 | ;; |
18604 | *) |
18605 | shrext_cmds='.sl' |
18606 | dynamic_linker="$host_os dld.sl" |
18607 | shlibpath_var=SHLIB_PATH |
18608 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
18609 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18610 | soname_spec='${libname}${release}${shared_ext}$major' |
18611 | ;; |
18612 | esac |
18613 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
18614 | postinstall_cmds='chmod 555 $lib' |
18615 | ;; |
18616 | |
18617 | interix[3-9]*) |
18618 | version_type=linux |
18619 | need_lib_prefix=no |
18620 | need_version=no |
18621 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18622 | soname_spec='${libname}${release}${shared_ext}$major' |
18623 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
18624 | shlibpath_var=LD_LIBRARY_PATH |
18625 | shlibpath_overrides_runpath=no |
18626 | hardcode_into_libs=yes |
18627 | ;; |
18628 | |
18629 | irix5* | irix6* | nonstopux*) |
18630 | case $host_os in |
18631 | nonstopux*) version_type=nonstopux ;; |
18632 | *) |
18633 | if test "$lt_cv_prog_gnu_ld" = yes; then |
18634 | version_type=linux |
18635 | else |
18636 | version_type=irix |
18637 | fi ;; |
18638 | esac |
18639 | need_lib_prefix=no |
18640 | need_version=no |
18641 | soname_spec='${libname}${release}${shared_ext}$major' |
18642 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
18643 | case $host_os in |
18644 | irix5* | nonstopux*) |
18645 | libsuff= shlibsuff= |
18646 | ;; |
18647 | *) |
18648 | case $LD in # libtool.m4 will add one of these switches to LD |
18649 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
18650 | libsuff= shlibsuff= libmagic=32-bit;; |
18651 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
18652 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
18653 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
18654 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
18655 | *) libsuff= shlibsuff= libmagic=never-match;; |
18656 | esac |
18657 | ;; |
18658 | esac |
18659 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
18660 | shlibpath_overrides_runpath=no |
18661 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
18662 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
18663 | hardcode_into_libs=yes |
18664 | ;; |
18665 | |
18666 | # No shared lib support for Linux oldld, aout, or coff. |
18667 | linux*oldld* | linux*aout* | linux*coff*) |
18668 | dynamic_linker=no |
18669 | ;; |
18670 | |
18671 | # This must be Linux ELF. |
18672 | linux* | k*bsd*-gnu) |
18673 | version_type=linux |
18674 | need_lib_prefix=no |
18675 | need_version=no |
18676 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18677 | soname_spec='${libname}${release}${shared_ext}$major' |
18678 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
18679 | shlibpath_var=LD_LIBRARY_PATH |
18680 | shlibpath_overrides_runpath=no |
18681 | # This implies no fast_install, which is unacceptable. |
18682 | # Some rework will be needed to allow for fast_install |
18683 | # before this can be enabled. |
18684 | hardcode_into_libs=yes |
18685 | |
18686 | # Append ld.so.conf contents to the search path |
18687 | if test -f /etc/ld.so.conf; then |
18688 | 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/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
18689 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
18690 | fi |
18691 | |
18692 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
18693 | # powerpc, because MkLinux only supported shared libraries with the |
18694 | # GNU dynamic linker. Since this was broken with cross compilers, |
18695 | # most powerpc-linux boxes support dynamic linking these days and |
18696 | # people can always --disable-shared, the test was removed, and we |
18697 | # assume the GNU/Linux dynamic linker is in use. |
18698 | dynamic_linker='GNU/Linux ld.so' |
18699 | ;; |
18700 | |
18701 | netbsd*) |
18702 | version_type=sunos |
18703 | need_lib_prefix=no |
18704 | need_version=no |
18705 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
18706 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18707 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18708 | dynamic_linker='NetBSD (a.out) ld.so' |
18709 | else |
18710 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18711 | soname_spec='${libname}${release}${shared_ext}$major' |
18712 | dynamic_linker='NetBSD ld.elf_so' |
18713 | fi |
18714 | shlibpath_var=LD_LIBRARY_PATH |
18715 | shlibpath_overrides_runpath=yes |
18716 | hardcode_into_libs=yes |
18717 | ;; |
18718 | |
18719 | newsos6) |
18720 | version_type=linux |
18721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18722 | shlibpath_var=LD_LIBRARY_PATH |
18723 | shlibpath_overrides_runpath=yes |
18724 | ;; |
18725 | |
18726 | nto-qnx*) |
18727 | version_type=linux |
18728 | need_lib_prefix=no |
18729 | need_version=no |
18730 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18731 | soname_spec='${libname}${release}${shared_ext}$major' |
18732 | shlibpath_var=LD_LIBRARY_PATH |
18733 | shlibpath_overrides_runpath=yes |
18734 | ;; |
18735 | |
18736 | openbsd*) |
18737 | version_type=sunos |
18738 | sys_lib_dlsearch_path_spec="/usr/lib" |
18739 | need_lib_prefix=no |
18740 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
18741 | case $host_os in |
18742 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
18743 | *) need_version=no ;; |
18744 | esac |
18745 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18746 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18747 | shlibpath_var=LD_LIBRARY_PATH |
18748 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
18749 | case $host_os in |
18750 | openbsd2.[89] | openbsd2.[89].*) |
18751 | shlibpath_overrides_runpath=no |
18752 | ;; |
18753 | *) |
18754 | shlibpath_overrides_runpath=yes |
18755 | ;; |
18756 | esac |
18757 | else |
18758 | shlibpath_overrides_runpath=yes |
18759 | fi |
18760 | ;; |
18761 | |
18762 | os2*) |
18763 | libname_spec='$name' |
18764 | shrext_cmds=".dll" |
18765 | need_lib_prefix=no |
18766 | library_names_spec='$libname${shared_ext} $libname.a' |
18767 | dynamic_linker='OS/2 ld.exe' |
18768 | shlibpath_var=LIBPATH |
18769 | ;; |
18770 | |
18771 | osf3* | osf4* | osf5*) |
18772 | version_type=osf |
18773 | need_lib_prefix=no |
18774 | need_version=no |
18775 | soname_spec='${libname}${release}${shared_ext}$major' |
18776 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18777 | shlibpath_var=LD_LIBRARY_PATH |
18778 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
18779 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
18780 | ;; |
18781 | |
18782 | rdos*) |
18783 | dynamic_linker=no |
18784 | ;; |
18785 | |
18786 | solaris*) |
18787 | version_type=linux |
18788 | need_lib_prefix=no |
18789 | need_version=no |
18790 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18791 | soname_spec='${libname}${release}${shared_ext}$major' |
18792 | shlibpath_var=LD_LIBRARY_PATH |
18793 | shlibpath_overrides_runpath=yes |
18794 | hardcode_into_libs=yes |
18795 | # ldd complains unless libraries are executable |
18796 | postinstall_cmds='chmod +x $lib' |
18797 | ;; |
18798 | |
18799 | sunos4*) |
18800 | version_type=sunos |
18801 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18802 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
18803 | shlibpath_var=LD_LIBRARY_PATH |
18804 | shlibpath_overrides_runpath=yes |
18805 | if test "$with_gnu_ld" = yes; then |
18806 | need_lib_prefix=no |
18807 | fi |
18808 | need_version=yes |
18809 | ;; |
18810 | |
18811 | sysv4 | sysv4.3*) |
18812 | version_type=linux |
18813 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18814 | soname_spec='${libname}${release}${shared_ext}$major' |
18815 | shlibpath_var=LD_LIBRARY_PATH |
18816 | case $host_vendor in |
18817 | sni) |
18818 | shlibpath_overrides_runpath=no |
18819 | need_lib_prefix=no |
18820 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
18821 | runpath_var=LD_RUN_PATH |
18822 | ;; |
18823 | siemens) |
18824 | need_lib_prefix=no |
18825 | ;; |
18826 | motorola) |
18827 | need_lib_prefix=no |
18828 | need_version=no |
18829 | shlibpath_overrides_runpath=no |
18830 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
18831 | ;; |
18832 | esac |
18833 | ;; |
18834 | |
18835 | sysv4*MP*) |
18836 | if test -d /usr/nec ;then |
18837 | version_type=linux |
18838 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
18839 | soname_spec='$libname${shared_ext}.$major' |
18840 | shlibpath_var=LD_LIBRARY_PATH |
18841 | fi |
18842 | ;; |
18843 | |
18844 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
18845 | version_type=freebsd-elf |
18846 | need_lib_prefix=no |
18847 | need_version=no |
18848 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18849 | soname_spec='${libname}${release}${shared_ext}$major' |
18850 | shlibpath_var=LD_LIBRARY_PATH |
18851 | hardcode_into_libs=yes |
18852 | if test "$with_gnu_ld" = yes; then |
18853 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
18854 | shlibpath_overrides_runpath=no |
18855 | else |
18856 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
18857 | shlibpath_overrides_runpath=yes |
18858 | case $host_os in |
18859 | sco3.2v5*) |
18860 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
18861 | ;; |
18862 | esac |
18863 | fi |
18864 | sys_lib_dlsearch_path_spec='/usr/lib' |
18865 | ;; |
18866 | |
18867 | uts4*) |
18868 | version_type=linux |
18869 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18870 | soname_spec='${libname}${release}${shared_ext}$major' |
18871 | shlibpath_var=LD_LIBRARY_PATH |
18872 | ;; |
18873 | |
18874 | *) |
18875 | dynamic_linker=no |
18876 | ;; |
18877 | esac |
18878 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
18879 | echo "${ECHO_T}$dynamic_linker" >&6; } |
18880 | test "$dynamic_linker" = no && can_build_shared=no |
18881 | |
18882 | if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then |
18883 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18884 | else |
18885 | lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec" |
18886 | fi |
18887 | |
18888 | sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" |
18889 | if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then |
18890 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
18891 | else |
18892 | lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec" |
18893 | fi |
18894 | |
18895 | sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" |
18896 | |
18897 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
18898 | if test "$GCC" = yes; then |
18899 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
18900 | fi |
18901 | |
18902 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
18903 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
18904 | hardcode_action_GCJ= |
18905 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
18906 | test -n "$runpath_var_GCJ" || \ |
18907 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
18908 | |
18909 | # We can hardcode non-existant directories. |
18910 | if test "$hardcode_direct_GCJ" != no && |
18911 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
18912 | # have to relink, otherwise we might link with an installed library |
18913 | # when we should be linking with a yet-to-be-installed one |
18914 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
18915 | test "$hardcode_minus_L_GCJ" != no; then |
18916 | # Linking always hardcodes the temporary library directory. |
18917 | hardcode_action_GCJ=relink |
18918 | else |
18919 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
18920 | hardcode_action_GCJ=immediate |
18921 | fi |
18922 | else |
18923 | # We cannot hardcode anything, or else we can only hardcode existing |
18924 | # directories. |
18925 | hardcode_action_GCJ=unsupported |
18926 | fi |
18927 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
18928 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
18929 | |
18930 | if test "$hardcode_action_GCJ" = relink; then |
18931 | # Fast installation is not supported |
18932 | enable_fast_install=no |
18933 | elif test "$shlibpath_overrides_runpath" = yes || |
18934 | test "$enable_shared" = no; then |
18935 | # Fast installation is not necessary |
18936 | enable_fast_install=needless |
18937 | fi |
18938 | |
18939 | |
18940 | # The else clause should only fire when bootstrapping the |
18941 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18942 | # with your package, and you will get complaints that there are |
18943 | # no rules to generate ltmain.sh. |
18944 | if test -f "$ltmain"; then |
18945 | # See if we are running on zsh, and set the options which allow our commands through |
18946 | # without removal of \ escapes. |
18947 | if test -n "${ZSH_VERSION+set}" ; then |
18948 | setopt NO_GLOB_SUBST |
18949 | fi |
18950 | # Now quote all the things that may contain metacharacters while being |
18951 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18952 | # variables and quote the copies for generation of the libtool script. |
18953 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18954 | SED SHELL STRIP \ |
18955 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18956 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18957 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18958 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18959 | lt_cv_sys_global_symbol_to_c_name_address \ |
18960 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18961 | old_postinstall_cmds old_postuninstall_cmds \ |
18962 | compiler_GCJ \ |
18963 | CC_GCJ \ |
18964 | LD_GCJ \ |
18965 | lt_prog_compiler_wl_GCJ \ |
18966 | lt_prog_compiler_pic_GCJ \ |
18967 | lt_prog_compiler_static_GCJ \ |
18968 | lt_prog_compiler_no_builtin_flag_GCJ \ |
18969 | export_dynamic_flag_spec_GCJ \ |
18970 | thread_safe_flag_spec_GCJ \ |
18971 | whole_archive_flag_spec_GCJ \ |
18972 | enable_shared_with_static_runtimes_GCJ \ |
18973 | old_archive_cmds_GCJ \ |
18974 | old_archive_from_new_cmds_GCJ \ |
18975 | predep_objects_GCJ \ |
18976 | postdep_objects_GCJ \ |
18977 | predeps_GCJ \ |
18978 | postdeps_GCJ \ |
18979 | compiler_lib_search_path_GCJ \ |
18980 | compiler_lib_search_dirs_GCJ \ |
18981 | archive_cmds_GCJ \ |
18982 | archive_expsym_cmds_GCJ \ |
18983 | postinstall_cmds_GCJ \ |
18984 | postuninstall_cmds_GCJ \ |
18985 | old_archive_from_expsyms_cmds_GCJ \ |
18986 | allow_undefined_flag_GCJ \ |
18987 | no_undefined_flag_GCJ \ |
18988 | export_symbols_cmds_GCJ \ |
18989 | hardcode_libdir_flag_spec_GCJ \ |
18990 | hardcode_libdir_flag_spec_ld_GCJ \ |
18991 | hardcode_libdir_separator_GCJ \ |
18992 | hardcode_automatic_GCJ \ |
18993 | module_cmds_GCJ \ |
18994 | module_expsym_cmds_GCJ \ |
18995 | lt_cv_prog_compiler_c_o_GCJ \ |
18996 | fix_srcfile_path_GCJ \ |
18997 | exclude_expsyms_GCJ \ |
18998 | include_expsyms_GCJ; do |
18999 | |
19000 | case $var in |
19001 | old_archive_cmds_GCJ | \ |
19002 | old_archive_from_new_cmds_GCJ | \ |
19003 | archive_cmds_GCJ | \ |
19004 | archive_expsym_cmds_GCJ | \ |
19005 | module_cmds_GCJ | \ |
19006 | module_expsym_cmds_GCJ | \ |
19007 | old_archive_from_expsyms_cmds_GCJ | \ |
19008 | export_symbols_cmds_GCJ | \ |
19009 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
19010 | postinstall_cmds | postuninstall_cmds | \ |
19011 | old_postinstall_cmds | old_postuninstall_cmds | \ |
19012 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
19013 | # Double-quote double-evaled strings. |
19014 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
19015 | ;; |
19016 | *) |
19017 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
19018 | ;; |
19019 | esac |
19020 | done |
19021 | |
19022 | case $lt_echo in |
19023 | *'\$0 --fallback-echo"') |
19024 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
19025 | ;; |
19026 | esac |
19027 | |
19028 | cfgfile="$ofile" |
19029 | |
19030 | cat <<__EOF__ >> "$cfgfile" |
19031 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
19032 | |
19033 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19034 | |
19035 | # Shell to use when invoking shell scripts. |
19036 | SHELL=$lt_SHELL |
19037 | |
19038 | # Whether or not to build shared libraries. |
19039 | build_libtool_libs=$enable_shared |
19040 | |
19041 | # Whether or not to build static libraries. |
19042 | build_old_libs=$enable_static |
19043 | |
19044 | # Whether or not to add -lc for building shared libraries. |
19045 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
19046 | |
19047 | # Whether or not to disallow shared libs when runtime libs are static |
19048 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
19049 | |
19050 | # Whether or not to optimize for fast installation. |
19051 | fast_install=$enable_fast_install |
19052 | |
19053 | # The host system. |
19054 | host_alias=$host_alias |
19055 | host=$host |
19056 | host_os=$host_os |
19057 | |
19058 | # The build system. |
19059 | build_alias=$build_alias |
19060 | build=$build |
19061 | build_os=$build_os |
19062 | |
19063 | # An echo program that does not interpret backslashes. |
19064 | echo=$lt_echo |
19065 | |
19066 | # The archiver. |
19067 | AR=$lt_AR |
19068 | AR_FLAGS=$lt_AR_FLAGS |
19069 | |
19070 | # A C compiler. |
19071 | LTCC=$lt_LTCC |
19072 | |
19073 | # LTCC compiler flags. |
19074 | LTCFLAGS=$lt_LTCFLAGS |
19075 | |
19076 | # A language-specific compiler. |
19077 | CC=$lt_compiler_GCJ |
19078 | |
19079 | # Is the compiler the GNU C compiler? |
19080 | with_gcc=$GCC_GCJ |
19081 | |
19082 | # An ERE matcher. |
19083 | EGREP=$lt_EGREP |
19084 | |
19085 | # The linker used to build libraries. |
19086 | LD=$lt_LD_GCJ |
19087 | |
19088 | # Whether we need hard or soft links. |
19089 | LN_S=$lt_LN_S |
19090 | |
19091 | # A BSD-compatible nm program. |
19092 | NM=$lt_NM |
19093 | |
19094 | # A symbol stripping program |
19095 | STRIP=$lt_STRIP |
19096 | |
19097 | # Used to examine libraries when file_magic_cmd begins "file" |
19098 | MAGIC_CMD=$MAGIC_CMD |
19099 | |
19100 | # Used on cygwin: DLL creation program. |
19101 | DLLTOOL="$DLLTOOL" |
19102 | |
19103 | # Used on cygwin: object dumper. |
19104 | OBJDUMP="$OBJDUMP" |
19105 | |
19106 | # Used on cygwin: assembler. |
19107 | AS="$AS" |
19108 | |
19109 | # The name of the directory that contains temporary libtool files. |
19110 | objdir=$objdir |
19111 | |
19112 | # How to create reloadable object files. |
19113 | reload_flag=$lt_reload_flag |
19114 | reload_cmds=$lt_reload_cmds |
19115 | |
19116 | # How to pass a linker flag through the compiler. |
19117 | wl=$lt_lt_prog_compiler_wl_GCJ |
19118 | |
19119 | # Object file suffix (normally "o"). |
19120 | objext="$ac_objext" |
19121 | |
19122 | # Old archive suffix (normally "a"). |
19123 | libext="$libext" |
19124 | |
19125 | # Shared library suffix (normally ".so"). |
19126 | shrext_cmds='$shrext_cmds' |
19127 | |
19128 | # Executable file suffix (normally ""). |
19129 | exeext="$exeext" |
19130 | |
19131 | # Additional compiler flags for building library objects. |
19132 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
19133 | pic_mode=$pic_mode |
19134 | |
19135 | # What is the maximum length of a command? |
19136 | max_cmd_len=$lt_cv_sys_max_cmd_len |
19137 | |
19138 | # Does compiler simultaneously support -c and -o options? |
19139 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
19140 | |
19141 | # Must we lock files when doing compilation? |
19142 | need_locks=$lt_need_locks |
19143 | |
19144 | # Do we need the lib prefix for modules? |
19145 | need_lib_prefix=$need_lib_prefix |
19146 | |
19147 | # Do we need a version for libraries? |
19148 | need_version=$need_version |
19149 | |
19150 | # Whether dlopen is supported. |
19151 | dlopen_support=$enable_dlopen |
19152 | |
19153 | # Whether dlopen of programs is supported. |
19154 | dlopen_self=$enable_dlopen_self |
19155 | |
19156 | # Whether dlopen of statically linked programs is supported. |
19157 | dlopen_self_static=$enable_dlopen_self_static |
19158 | |
19159 | # Compiler flag to prevent dynamic linking. |
19160 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
19161 | |
19162 | # Compiler flag to turn off builtin functions. |
19163 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
19164 | |
19165 | # Compiler flag to allow reflexive dlopens. |
19166 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
19167 | |
19168 | # Compiler flag to generate shared objects directly from archives. |
19169 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
19170 | |
19171 | # Compiler flag to generate thread-safe objects. |
19172 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
19173 | |
19174 | # Library versioning type. |
19175 | version_type=$version_type |
19176 | |
19177 | # Format of library name prefix. |
19178 | libname_spec=$lt_libname_spec |
19179 | |
19180 | # List of archive names. First name is the real one, the rest are links. |
19181 | # The last name is the one that the linker finds with -lNAME. |
19182 | library_names_spec=$lt_library_names_spec |
19183 | |
19184 | # The coded name of the library, if different from the real name. |
19185 | soname_spec=$lt_soname_spec |
19186 | |
19187 | # Commands used to build and install an old-style archive. |
19188 | RANLIB=$lt_RANLIB |
19189 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
19190 | old_postinstall_cmds=$lt_old_postinstall_cmds |
19191 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19192 | |
19193 | # Create an old-style archive from a shared archive. |
19194 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
19195 | |
19196 | # Create a temporary old-style archive to link instead of a shared archive. |
19197 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
19198 | |
19199 | # Commands used to build and install a shared archive. |
19200 | archive_cmds=$lt_archive_cmds_GCJ |
19201 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
19202 | postinstall_cmds=$lt_postinstall_cmds |
19203 | postuninstall_cmds=$lt_postuninstall_cmds |
19204 | |
19205 | # Commands used to build a loadable module (assumed same as above if empty) |
19206 | module_cmds=$lt_module_cmds_GCJ |
19207 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
19208 | |
19209 | # Commands to strip libraries. |
19210 | old_striplib=$lt_old_striplib |
19211 | striplib=$lt_striplib |
19212 | |
19213 | # Dependencies to place before the objects being linked to create a |
19214 | # shared library. |
19215 | predep_objects=$lt_predep_objects_GCJ |
19216 | |
19217 | # Dependencies to place after the objects being linked to create a |
19218 | # shared library. |
19219 | postdep_objects=$lt_postdep_objects_GCJ |
19220 | |
19221 | # Dependencies to place before the objects being linked to create a |
19222 | # shared library. |
19223 | predeps=$lt_predeps_GCJ |
19224 | |
19225 | # Dependencies to place after the objects being linked to create a |
19226 | # shared library. |
19227 | postdeps=$lt_postdeps_GCJ |
19228 | |
19229 | # The directories searched by this compiler when creating a shared |
19230 | # library |
19231 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ |
19232 | |
19233 | # The library search path used internally by the compiler when linking |
19234 | # a shared library. |
19235 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
19236 | |
19237 | # Method to check whether dependent libraries are shared objects. |
19238 | deplibs_check_method=$lt_deplibs_check_method |
19239 | |
19240 | # Command to use when deplibs_check_method == file_magic. |
19241 | file_magic_cmd=$lt_file_magic_cmd |
19242 | |
19243 | # Flag that allows shared libraries with undefined symbols to be built. |
19244 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
19245 | |
19246 | # Flag that forces no undefined symbols. |
19247 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
19248 | |
19249 | # Commands used to finish a libtool library installation in a directory. |
19250 | finish_cmds=$lt_finish_cmds |
19251 | |
19252 | # Same as above, but a single script fragment to be evaled but not shown. |
19253 | finish_eval=$lt_finish_eval |
19254 | |
19255 | # Take the output of nm and produce a listing of raw symbols and C names. |
19256 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19257 | |
19258 | # Transform the output of nm in a proper C declaration |
19259 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19260 | |
19261 | # Transform the output of nm in a C name address pair |
19262 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19263 | |
19264 | # This is the shared library runtime path variable. |
19265 | runpath_var=$runpath_var |
19266 | |
19267 | # This is the shared library path variable. |
19268 | shlibpath_var=$shlibpath_var |
19269 | |
19270 | # Is shlibpath searched before the hard-coded library search path? |
19271 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19272 | |
19273 | # How to hardcode a shared library path into an executable. |
19274 | hardcode_action=$hardcode_action_GCJ |
19275 | |
19276 | # Whether we should hardcode library paths into libraries. |
19277 | hardcode_into_libs=$hardcode_into_libs |
19278 | |
19279 | # Flag to hardcode \$libdir into a binary during linking. |
19280 | # This must work even if \$libdir does not exist. |
19281 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
19282 | |
19283 | # If ld is used when linking, flag to hardcode \$libdir into |
19284 | # a binary during linking. This must work even if \$libdir does |
19285 | # not exist. |
19286 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
19287 | |
19288 | # Whether we need a single -rpath flag with a separated argument. |
19289 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
19290 | |
19291 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19292 | # resulting binary. |
19293 | hardcode_direct=$hardcode_direct_GCJ |
19294 | |
19295 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19296 | # resulting binary. |
19297 | hardcode_minus_L=$hardcode_minus_L_GCJ |
19298 | |
19299 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19300 | # the resulting binary. |
19301 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
19302 | |
19303 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
19304 | # and all subsequent libraries and executables linked against it. |
19305 | hardcode_automatic=$hardcode_automatic_GCJ |
19306 | |
19307 | # Variables whose values should be saved in libtool wrapper scripts and |
19308 | # restored at relink time. |
19309 | variables_saved_for_relink="$variables_saved_for_relink" |
19310 | |
19311 | # Whether libtool must link a program against all its dependency libraries. |
19312 | link_all_deplibs=$link_all_deplibs_GCJ |
19313 | |
19314 | # Compile-time system search path for libraries |
19315 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
19316 | |
19317 | # Run-time system search path for libraries |
19318 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19319 | |
19320 | # Fix the shell variable \$srcfile for the compiler. |
19321 | fix_srcfile_path=$lt_fix_srcfile_path |
19322 | |
19323 | # Set to yes if exported symbols are required. |
19324 | always_export_symbols=$always_export_symbols_GCJ |
19325 | |
19326 | # The commands to list exported symbols. |
19327 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
19328 | |
19329 | # The commands to extract the exported symbol list from a shared archive. |
19330 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19331 | |
19332 | # Symbols that should not be listed in the preloaded symbols. |
19333 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
19334 | |
19335 | # Symbols that must always be exported. |
19336 | include_expsyms=$lt_include_expsyms_GCJ |
19337 | |
19338 | # ### END LIBTOOL TAG CONFIG: $tagname |
19339 | |
19340 | __EOF__ |
19341 | |
19342 | |
19343 | else |
19344 | # If there is no Makefile yet, we rely on a make rule to execute |
19345 | # `config.status --recheck' to rerun these tests and create the |
19346 | # libtool script then. |
19347 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19348 | if test -f "$ltmain_in"; then |
19349 | test -f Makefile && make "$ltmain" |
19350 | fi |
19351 | fi |
19352 | |
19353 | |
19354 | ac_ext=c |
19355 | ac_cpp='$CPP $CPPFLAGS' |
19356 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19357 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19358 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19359 | |
19360 | CC="$lt_save_CC" |
19361 | |
19362 | else |
19363 | tagname="" |
19364 | fi |
19365 | ;; |
19366 | |
19367 | RC) |
19368 | |
19369 | |
19370 | # Source file extension for RC test sources. |
19371 | ac_ext=rc |
19372 | |
19373 | # Object file extension for compiled RC test sources. |
19374 | objext=o |
19375 | objext_RC=$objext |
19376 | |
19377 | # Code to be used in simple compile tests |
19378 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }' |
19379 | |
19380 | # Code to be used in simple link tests |
19381 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
19382 | |
19383 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
19384 | |
19385 | # If no C compiler was specified, use CC. |
19386 | LTCC=${LTCC-"$CC"} |
19387 | |
19388 | # If no C compiler flags were specified, use CFLAGS. |
19389 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
19390 | |
19391 | # Allow CC to be a program name with arguments. |
19392 | compiler=$CC |
19393 | |
19394 | |
19395 | # save warnings/boilerplate of simple test code |
19396 | ac_outfile=conftest.$ac_objext |
19397 | echo "$lt_simple_compile_test_code" >conftest.$ac_ext |
19398 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
19399 | _lt_compiler_boilerplate=`cat conftest.err` |
19400 | $rm conftest* |
19401 | |
19402 | ac_outfile=conftest.$ac_objext |
19403 | echo "$lt_simple_link_test_code" >conftest.$ac_ext |
19404 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
19405 | _lt_linker_boilerplate=`cat conftest.err` |
19406 | $rm -r conftest* |
19407 | |
19408 | |
19409 | # Allow CC to be a program name with arguments. |
19410 | lt_save_CC="$CC" |
19411 | CC=${RC-"windres"} |
19412 | compiler=$CC |
19413 | compiler_RC=$CC |
19414 | for cc_temp in $compiler""; do |
19415 | case $cc_temp in |
19416 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
19417 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
19418 | \-*) ;; |
19419 | *) break;; |
19420 | esac |
19421 | done |
19422 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
19423 | |
19424 | lt_cv_prog_compiler_c_o_RC=yes |
19425 | |
19426 | # The else clause should only fire when bootstrapping the |
19427 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
19428 | # with your package, and you will get complaints that there are |
19429 | # no rules to generate ltmain.sh. |
19430 | if test -f "$ltmain"; then |
19431 | # See if we are running on zsh, and set the options which allow our commands through |
19432 | # without removal of \ escapes. |
19433 | if test -n "${ZSH_VERSION+set}" ; then |
19434 | setopt NO_GLOB_SUBST |
19435 | fi |
19436 | # Now quote all the things that may contain metacharacters while being |
19437 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
19438 | # variables and quote the copies for generation of the libtool script. |
19439 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
19440 | SED SHELL STRIP \ |
19441 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
19442 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
19443 | deplibs_check_method reload_flag reload_cmds need_locks \ |
19444 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
19445 | lt_cv_sys_global_symbol_to_c_name_address \ |
19446 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
19447 | old_postinstall_cmds old_postuninstall_cmds \ |
19448 | compiler_RC \ |
19449 | CC_RC \ |
19450 | LD_RC \ |
19451 | lt_prog_compiler_wl_RC \ |
19452 | lt_prog_compiler_pic_RC \ |
19453 | lt_prog_compiler_static_RC \ |
19454 | lt_prog_compiler_no_builtin_flag_RC \ |
19455 | export_dynamic_flag_spec_RC \ |
19456 | thread_safe_flag_spec_RC \ |
19457 | whole_archive_flag_spec_RC \ |
19458 | enable_shared_with_static_runtimes_RC \ |
19459 | old_archive_cmds_RC \ |
19460 | old_archive_from_new_cmds_RC \ |
19461 | predep_objects_RC \ |
19462 | postdep_objects_RC \ |
19463 | predeps_RC \ |
19464 | postdeps_RC \ |
19465 | compiler_lib_search_path_RC \ |
19466 | compiler_lib_search_dirs_RC \ |
19467 | archive_cmds_RC \ |
19468 | archive_expsym_cmds_RC \ |
19469 | postinstall_cmds_RC \ |
19470 | postuninstall_cmds_RC \ |
19471 | old_archive_from_expsyms_cmds_RC \ |
19472 | allow_undefined_flag_RC \ |
19473 | no_undefined_flag_RC \ |
19474 | export_symbols_cmds_RC \ |
19475 | hardcode_libdir_flag_spec_RC \ |
19476 | hardcode_libdir_flag_spec_ld_RC \ |
19477 | hardcode_libdir_separator_RC \ |
19478 | hardcode_automatic_RC \ |
19479 | module_cmds_RC \ |
19480 | module_expsym_cmds_RC \ |
19481 | lt_cv_prog_compiler_c_o_RC \ |
19482 | fix_srcfile_path_RC \ |
19483 | exclude_expsyms_RC \ |
19484 | include_expsyms_RC; do |
19485 | |
19486 | case $var in |
19487 | old_archive_cmds_RC | \ |
19488 | old_archive_from_new_cmds_RC | \ |
19489 | archive_cmds_RC | \ |
19490 | archive_expsym_cmds_RC | \ |
19491 | module_cmds_RC | \ |
19492 | module_expsym_cmds_RC | \ |
19493 | old_archive_from_expsyms_cmds_RC | \ |
19494 | export_symbols_cmds_RC | \ |
19495 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
19496 | postinstall_cmds | postuninstall_cmds | \ |
19497 | old_postinstall_cmds | old_postuninstall_cmds | \ |
19498 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
19499 | # Double-quote double-evaled strings. |
19500 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
19501 | ;; |
19502 | *) |
19503 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
19504 | ;; |
19505 | esac |
19506 | done |
19507 | |
19508 | case $lt_echo in |
19509 | *'\$0 --fallback-echo"') |
19510 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
19511 | ;; |
19512 | esac |
19513 | |
19514 | cfgfile="$ofile" |
19515 | |
19516 | cat <<__EOF__ >> "$cfgfile" |
19517 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
19518 | |
19519 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19520 | |
19521 | # Shell to use when invoking shell scripts. |
19522 | SHELL=$lt_SHELL |
19523 | |
19524 | # Whether or not to build shared libraries. |
19525 | build_libtool_libs=$enable_shared |
19526 | |
19527 | # Whether or not to build static libraries. |
19528 | build_old_libs=$enable_static |
19529 | |
19530 | # Whether or not to add -lc for building shared libraries. |
19531 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
19532 | |
19533 | # Whether or not to disallow shared libs when runtime libs are static |
19534 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
19535 | |
19536 | # Whether or not to optimize for fast installation. |
19537 | fast_install=$enable_fast_install |
19538 | |
19539 | # The host system. |
19540 | host_alias=$host_alias |
19541 | host=$host |
19542 | host_os=$host_os |
19543 | |
19544 | # The build system. |
19545 | build_alias=$build_alias |
19546 | build=$build |
19547 | build_os=$build_os |
19548 | |
19549 | # An echo program that does not interpret backslashes. |
19550 | echo=$lt_echo |
19551 | |
19552 | # The archiver. |
19553 | AR=$lt_AR |
19554 | AR_FLAGS=$lt_AR_FLAGS |
19555 | |
19556 | # A C compiler. |
19557 | LTCC=$lt_LTCC |
19558 | |
19559 | # LTCC compiler flags. |
19560 | LTCFLAGS=$lt_LTCFLAGS |
19561 | |
19562 | # A language-specific compiler. |
19563 | CC=$lt_compiler_RC |
19564 | |
19565 | # Is the compiler the GNU C compiler? |
19566 | with_gcc=$GCC_RC |
19567 | |
19568 | # An ERE matcher. |
19569 | EGREP=$lt_EGREP |
19570 | |
19571 | # The linker used to build libraries. |
19572 | LD=$lt_LD_RC |
19573 | |
19574 | # Whether we need hard or soft links. |
19575 | LN_S=$lt_LN_S |
19576 | |
19577 | # A BSD-compatible nm program. |
19578 | NM=$lt_NM |
19579 | |
19580 | # A symbol stripping program |
19581 | STRIP=$lt_STRIP |
19582 | |
19583 | # Used to examine libraries when file_magic_cmd begins "file" |
19584 | MAGIC_CMD=$MAGIC_CMD |
19585 | |
19586 | # Used on cygwin: DLL creation program. |
19587 | DLLTOOL="$DLLTOOL" |
19588 | |
19589 | # Used on cygwin: object dumper. |
19590 | OBJDUMP="$OBJDUMP" |
19591 | |
19592 | # Used on cygwin: assembler. |
19593 | AS="$AS" |
19594 | |
19595 | # The name of the directory that contains temporary libtool files. |
19596 | objdir=$objdir |
19597 | |
19598 | # How to create reloadable object files. |
19599 | reload_flag=$lt_reload_flag |
19600 | reload_cmds=$lt_reload_cmds |
19601 | |
19602 | # How to pass a linker flag through the compiler. |
19603 | wl=$lt_lt_prog_compiler_wl_RC |
19604 | |
19605 | # Object file suffix (normally "o"). |
19606 | objext="$ac_objext" |
19607 | |
19608 | # Old archive suffix (normally "a"). |
19609 | libext="$libext" |
19610 | |
19611 | # Shared library suffix (normally ".so"). |
19612 | shrext_cmds='$shrext_cmds' |
19613 | |
19614 | # Executable file suffix (normally ""). |
19615 | exeext="$exeext" |
19616 | |
19617 | # Additional compiler flags for building library objects. |
19618 | pic_flag=$lt_lt_prog_compiler_pic_RC |
19619 | pic_mode=$pic_mode |
19620 | |
19621 | # What is the maximum length of a command? |
19622 | max_cmd_len=$lt_cv_sys_max_cmd_len |
19623 | |
19624 | # Does compiler simultaneously support -c and -o options? |
19625 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
19626 | |
19627 | # Must we lock files when doing compilation? |
19628 | need_locks=$lt_need_locks |
19629 | |
19630 | # Do we need the lib prefix for modules? |
19631 | need_lib_prefix=$need_lib_prefix |
19632 | |
19633 | # Do we need a version for libraries? |
19634 | need_version=$need_version |
19635 | |
19636 | # Whether dlopen is supported. |
19637 | dlopen_support=$enable_dlopen |
19638 | |
19639 | # Whether dlopen of programs is supported. |
19640 | dlopen_self=$enable_dlopen_self |
19641 | |
19642 | # Whether dlopen of statically linked programs is supported. |
19643 | dlopen_self_static=$enable_dlopen_self_static |
19644 | |
19645 | # Compiler flag to prevent dynamic linking. |
19646 | link_static_flag=$lt_lt_prog_compiler_static_RC |
19647 | |
19648 | # Compiler flag to turn off builtin functions. |
19649 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
19650 | |
19651 | # Compiler flag to allow reflexive dlopens. |
19652 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
19653 | |
19654 | # Compiler flag to generate shared objects directly from archives. |
19655 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
19656 | |
19657 | # Compiler flag to generate thread-safe objects. |
19658 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
19659 | |
19660 | # Library versioning type. |
19661 | version_type=$version_type |
19662 | |
19663 | # Format of library name prefix. |
19664 | libname_spec=$lt_libname_spec |
19665 | |
19666 | # List of archive names. First name is the real one, the rest are links. |
19667 | # The last name is the one that the linker finds with -lNAME. |
19668 | library_names_spec=$lt_library_names_spec |
19669 | |
19670 | # The coded name of the library, if different from the real name. |
19671 | soname_spec=$lt_soname_spec |
19672 | |
19673 | # Commands used to build and install an old-style archive. |
19674 | RANLIB=$lt_RANLIB |
19675 | old_archive_cmds=$lt_old_archive_cmds_RC |
19676 | old_postinstall_cmds=$lt_old_postinstall_cmds |
19677 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19678 | |
19679 | # Create an old-style archive from a shared archive. |
19680 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
19681 | |
19682 | # Create a temporary old-style archive to link instead of a shared archive. |
19683 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
19684 | |
19685 | # Commands used to build and install a shared archive. |
19686 | archive_cmds=$lt_archive_cmds_RC |
19687 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
19688 | postinstall_cmds=$lt_postinstall_cmds |
19689 | postuninstall_cmds=$lt_postuninstall_cmds |
19690 | |
19691 | # Commands used to build a loadable module (assumed same as above if empty) |
19692 | module_cmds=$lt_module_cmds_RC |
19693 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
19694 | |
19695 | # Commands to strip libraries. |
19696 | old_striplib=$lt_old_striplib |
19697 | striplib=$lt_striplib |
19698 | |
19699 | # Dependencies to place before the objects being linked to create a |
19700 | # shared library. |
19701 | predep_objects=$lt_predep_objects_RC |
19702 | |
19703 | # Dependencies to place after the objects being linked to create a |
19704 | # shared library. |
19705 | postdep_objects=$lt_postdep_objects_RC |
19706 | |
19707 | # Dependencies to place before the objects being linked to create a |
19708 | # shared library. |
19709 | predeps=$lt_predeps_RC |
19710 | |
19711 | # Dependencies to place after the objects being linked to create a |
19712 | # shared library. |
19713 | postdeps=$lt_postdeps_RC |
19714 | |
19715 | # The directories searched by this compiler when creating a shared |
19716 | # library |
19717 | compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC |
19718 | |
19719 | # The library search path used internally by the compiler when linking |
19720 | # a shared library. |
19721 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
19722 | |
19723 | # Method to check whether dependent libraries are shared objects. |
19724 | deplibs_check_method=$lt_deplibs_check_method |
19725 | |
19726 | # Command to use when deplibs_check_method == file_magic. |
19727 | file_magic_cmd=$lt_file_magic_cmd |
19728 | |
19729 | # Flag that allows shared libraries with undefined symbols to be built. |
19730 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
19731 | |
19732 | # Flag that forces no undefined symbols. |
19733 | no_undefined_flag=$lt_no_undefined_flag_RC |
19734 | |
19735 | # Commands used to finish a libtool library installation in a directory. |
19736 | finish_cmds=$lt_finish_cmds |
19737 | |
19738 | # Same as above, but a single script fragment to be evaled but not shown. |
19739 | finish_eval=$lt_finish_eval |
19740 | |
19741 | # Take the output of nm and produce a listing of raw symbols and C names. |
19742 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19743 | |
19744 | # Transform the output of nm in a proper C declaration |
19745 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19746 | |
19747 | # Transform the output of nm in a C name address pair |
19748 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19749 | |
19750 | # This is the shared library runtime path variable. |
19751 | runpath_var=$runpath_var |
19752 | |
19753 | # This is the shared library path variable. |
19754 | shlibpath_var=$shlibpath_var |
19755 | |
19756 | # Is shlibpath searched before the hard-coded library search path? |
19757 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19758 | |
19759 | # How to hardcode a shared library path into an executable. |
19760 | hardcode_action=$hardcode_action_RC |
19761 | |
19762 | # Whether we should hardcode library paths into libraries. |
19763 | hardcode_into_libs=$hardcode_into_libs |
19764 | |
19765 | # Flag to hardcode \$libdir into a binary during linking. |
19766 | # This must work even if \$libdir does not exist. |
19767 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
19768 | |
19769 | # If ld is used when linking, flag to hardcode \$libdir into |
19770 | # a binary during linking. This must work even if \$libdir does |
19771 | # not exist. |
19772 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
19773 | |
19774 | # Whether we need a single -rpath flag with a separated argument. |
19775 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
19776 | |
19777 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19778 | # resulting binary. |
19779 | hardcode_direct=$hardcode_direct_RC |
19780 | |
19781 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19782 | # resulting binary. |
19783 | hardcode_minus_L=$hardcode_minus_L_RC |
19784 | |
19785 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19786 | # the resulting binary. |
19787 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
19788 | |
19789 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
19790 | # and all subsequent libraries and executables linked against it. |
19791 | hardcode_automatic=$hardcode_automatic_RC |
19792 | |
19793 | # Variables whose values should be saved in libtool wrapper scripts and |
19794 | # restored at relink time. |
19795 | variables_saved_for_relink="$variables_saved_for_relink" |
19796 | |
19797 | # Whether libtool must link a program against all its dependency libraries. |
19798 | link_all_deplibs=$link_all_deplibs_RC |
19799 | |
19800 | # Compile-time system search path for libraries |
19801 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
19802 | |
19803 | # Run-time system search path for libraries |
19804 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19805 | |
19806 | # Fix the shell variable \$srcfile for the compiler. |
19807 | fix_srcfile_path=$lt_fix_srcfile_path |
19808 | |
19809 | # Set to yes if exported symbols are required. |
19810 | always_export_symbols=$always_export_symbols_RC |
19811 | |
19812 | # The commands to list exported symbols. |
19813 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
19814 | |
19815 | # The commands to extract the exported symbol list from a shared archive. |
19816 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19817 | |
19818 | # Symbols that should not be listed in the preloaded symbols. |
19819 | exclude_expsyms=$lt_exclude_expsyms_RC |
19820 | |
19821 | # Symbols that must always be exported. |
19822 | include_expsyms=$lt_include_expsyms_RC |
19823 | |
19824 | # ### END LIBTOOL TAG CONFIG: $tagname |
19825 | |
19826 | __EOF__ |
19827 | |
19828 | |
19829 | else |
19830 | # If there is no Makefile yet, we rely on a make rule to execute |
19831 | # `config.status --recheck' to rerun these tests and create the |
19832 | # libtool script then. |
19833 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19834 | if test -f "$ltmain_in"; then |
19835 | test -f Makefile && make "$ltmain" |
19836 | fi |
19837 | fi |
19838 | |
19839 | |
19840 | ac_ext=c |
19841 | ac_cpp='$CPP $CPPFLAGS' |
19842 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19843 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19844 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19845 | |
19846 | CC="$lt_save_CC" |
19847 | |
19848 | ;; |
19849 | |
19850 | *) |
19851 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
19852 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
19853 | { (exit 1); exit 1; }; } |
19854 | ;; |
19855 | esac |
19856 | |
19857 | # Append the new tag name to the list of available tags. |
19858 | if test -n "$tagname" ; then |
19859 | available_tags="$available_tags $tagname" |
19860 | fi |
19861 | fi |
19862 | done |
19863 | IFS="$lt_save_ifs" |
19864 | |
19865 | # Now substitute the updated list of available tags. |
19866 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
19867 | mv "${ofile}T" "$ofile" |
19868 | chmod +x "$ofile" |
19869 | else |
19870 | rm -f "${ofile}T" |
19871 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
19872 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
19873 | { (exit 1); exit 1; }; } |
19874 | fi |
19875 | fi |
19876 | |
19877 | |
19878 | |
19879 | # This can be used to rebuild libtool when needed |
19880 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
19881 | |
19882 | # Always use our own libtool. |
19883 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
19884 | |
19885 | # Prevent multiple expansion |
19886 | |
19887 | |
19888 | |
19889 | |
19890 | |
19891 | |
19892 | |
19893 | |
19894 | |
19895 | |
19896 | |
19897 | |
19898 | |
19899 | |
19900 | |
19901 | |
19902 | |
19903 | |
19904 | |
19905 | |
19906 | |
19907 | |
19908 | # Extract the first word of "mv", so it can be a program name with args. |
19909 | set dummy mv; ac_word=$2 |
19910 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19911 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
19912 | if test "${ac_cv_path_MV+set}" = set; then |
19913 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19914 | else |
19915 | case $MV in |
19916 | [\\/]* | ?:[\\/]*) |
19917 | ac_cv_path_MV="$MV" # Let the user override the test with a path. |
19918 | ;; |
19919 | *) |
19920 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19921 | for as_dir in $PATH |
19922 | do |
19923 | IFS=$as_save_IFS |
19924 | test -z "$as_dir" && as_dir=. |
19925 | for ac_exec_ext in '' $ac_executable_extensions; do |
19926 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
19927 | ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext" |
19928 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
19929 | break 2 |
19930 | fi |
19931 | done |
19932 | done |
19933 | IFS=$as_save_IFS |
19934 | |
19935 | ;; |
19936 | esac |
19937 | fi |
19938 | MV=$ac_cv_path_MV |
19939 | if test -n "$MV"; then |
19940 | { echo "$as_me:$LINENO: result: $MV" >&5 |
19941 | echo "${ECHO_T}$MV" >&6; } |
19942 | else |
19943 | { echo "$as_me:$LINENO: result: no" >&5 |
19944 | echo "${ECHO_T}no" >&6; } |
19945 | fi |
19946 | |
19947 | |
19948 | # Extract the first word of "rm", so it can be a program name with args. |
19949 | set dummy rm; ac_word=$2 |
19950 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19951 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
19952 | if test "${ac_cv_path_RM+set}" = set; then |
19953 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19954 | else |
19955 | case $RM in |
19956 | [\\/]* | ?:[\\/]*) |
19957 | ac_cv_path_RM="$RM" # Let the user override the test with a path. |
19958 | ;; |
19959 | *) |
19960 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19961 | for as_dir in $PATH |
19962 | do |
19963 | IFS=$as_save_IFS |
19964 | test -z "$as_dir" && as_dir=. |
19965 | for ac_exec_ext in '' $ac_executable_extensions; do |
19966 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
19967 | ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext" |
19968 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
19969 | break 2 |
19970 | fi |
19971 | done |
19972 | done |
19973 | IFS=$as_save_IFS |
19974 | |
19975 | ;; |
19976 | esac |
19977 | fi |
19978 | RM=$ac_cv_path_RM |
19979 | if test -n "$RM"; then |
19980 | { echo "$as_me:$LINENO: result: $RM" >&5 |
19981 | echo "${ECHO_T}$RM" >&6; } |
19982 | else |
19983 | { echo "$as_me:$LINENO: result: no" >&5 |
19984 | echo "${ECHO_T}no" >&6; } |
19985 | fi |
19986 | |
19987 | |
19988 | # Extract the first word of "sed", so it can be a program name with args. |
19989 | set dummy sed; ac_word=$2 |
19990 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19991 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
19992 | if test "${ac_cv_path_SED+set}" = set; then |
19993 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19994 | else |
19995 | case $SED in |
19996 | [\\/]* | ?:[\\/]*) |
19997 | ac_cv_path_SED="$SED" # Let the user override the test with a path. |
19998 | ;; |
19999 | *) |
20000 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20001 | for as_dir in $PATH |
20002 | do |
20003 | IFS=$as_save_IFS |
20004 | test -z "$as_dir" && as_dir=. |
20005 | for ac_exec_ext in '' $ac_executable_extensions; do |
20006 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
20007 | ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext" |
20008 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20009 | break 2 |
20010 | fi |
20011 | done |
20012 | done |
20013 | IFS=$as_save_IFS |
20014 | |
20015 | ;; |
20016 | esac |
20017 | fi |
20018 | SED=$ac_cv_path_SED |
20019 | if test -n "$SED"; then |
20020 | { echo "$as_me:$LINENO: result: $SED" >&5 |
20021 | echo "${ECHO_T}$SED" >&6; } |
20022 | else |
20023 | { echo "$as_me:$LINENO: result: no" >&5 |
20024 | echo "${ECHO_T}no" >&6; } |
20025 | fi |
20026 | |
20027 | |
20028 | |
20029 | # Extract the first word of "ldconfig", so it can be a program name with args. |
20030 | set dummy ldconfig; ac_word=$2 |
20031 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20032 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
20033 | if test "${ac_cv_path_LDCONFIG+set}" = set; then |
20034 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20035 | else |
20036 | case $LDCONFIG in |
20037 | [\\/]* | ?:[\\/]*) |
20038 | ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path. |
20039 | ;; |
20040 | *) |
20041 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20042 | for as_dir in /sbin /usr/sbin $PATH |
20043 | do |
20044 | IFS=$as_save_IFS |
20045 | test -z "$as_dir" && as_dir=. |
20046 | for ac_exec_ext in '' $ac_executable_extensions; do |
20047 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
20048 | ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext" |
20049 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20050 | break 2 |
20051 | fi |
20052 | done |
20053 | done |
20054 | IFS=$as_save_IFS |
20055 | |
20056 | test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true" |
20057 | ;; |
20058 | esac |
20059 | fi |
20060 | LDCONFIG=$ac_cv_path_LDCONFIG |
20061 | if test -n "$LDCONFIG"; then |
20062 | { echo "$as_me:$LINENO: result: $LDCONFIG" >&5 |
20063 | echo "${ECHO_T}$LDCONFIG" >&6; } |
20064 | else |
20065 | { echo "$as_me:$LINENO: result: no" >&5 |
20066 | echo "${ECHO_T}no" >&6; } |
20067 | fi |
20068 | |
20069 | |
20070 | |
20071 | # Environment |
20072 | { echo "$as_me:$LINENO: checking Windows OS" >&5 |
20073 | echo $ECHO_N "checking Windows OS... $ECHO_C" >&6; } |
20074 | case "${target}" in |
20075 | *-mingw32*|*-winnt*|*-cygwin*) |
20076 | { echo "$as_me:$LINENO: result: yes" >&5 |
20077 | echo "${ECHO_T}yes" >&6; } |
20078 | WINDOWS="yes" |
20079 | |
20080 | cat >>confdefs.h <<\_ACEOF |
20081 | #define WINDOWS 1 |
20082 | _ACEOF |
20083 | |
20084 | ;; |
20085 | *) |
20086 | { echo "$as_me:$LINENO: result: no" >&5 |
20087 | echo "${ECHO_T}no" >&6; } |
20088 | WINDOWS="no" |
20089 | ;; |
20090 | esac |
20091 | |
20092 | { echo "$as_me:$LINENO: checking fuse compatibility" >&5 |
20093 | echo $ECHO_N "checking fuse compatibility... $ECHO_C" >&6; } |
20094 | case "${target_os}" in |
20095 | linux*) |
20096 | |
20097 | # Check whether --with-fuse was given. |
20098 | if test "${with_fuse+set}" = set; then |
20099 | withval=$with_fuse; |
20100 | else |
20101 | with_fuse="internal" |
20102 | |
20103 | fi |
20104 | |
20105 | ;; |
20106 | darwin*|netbsd*|solaris*) |
20107 | with_fuse="external" |
20108 | ;; |
20109 | freebsd*) |
20110 | { { echo "$as_me:$LINENO: error: Please see FreeBSD support at http://www.freshports.org/sysutils/fusefs-ntfs" >&5 |
20111 | echo "$as_me: error: Please see FreeBSD support at http://www.freshports.org/sysutils/fusefs-ntfs" >&2;} |
20112 | { (exit 1); exit 1; }; } |
20113 | ;; |
20114 | *) |
20115 | { { echo "$as_me:$LINENO: error: ntfs-3g can be built for Linux, FreeBSD, Mac OS X, NetBSD, and Solaris only." >&5 |
20116 | echo "$as_me: error: ntfs-3g can be built for Linux, FreeBSD, Mac OS X, NetBSD, and Solaris only." >&2;} |
20117 | { (exit 1); exit 1; }; } |
20118 | ;; |
20119 | esac |
20120 | { echo "$as_me:$LINENO: result: ${with_fuse}" >&5 |
20121 | echo "${ECHO_T}${with_fuse}" >&6; } |
20122 | |
20123 | case "${target_os}" in |
20124 | solaris*) |
20125 | if test "x$GCC" != "xyes" ; then |
20126 | { { echo "$as_me:$LINENO: error: ntfs-3g can be built only with gcc on Solaris. Install it by 'pkg install gcc-dev' and retry.)" >&5 |
20127 | echo "$as_me: error: ntfs-3g can be built only with gcc on Solaris. Install it by 'pkg install gcc-dev' and retry.)" >&2;} |
20128 | { (exit 1); exit 1; }; } |
20129 | fi |
20130 | ;; |
20131 | esac |
20132 | |
20133 | if test "${enable_ldscript}" = "yes"; then |
20134 | { echo "$as_me:$LINENO: checking Output format" >&5 |
20135 | echo $ECHO_N "checking Output format... $ECHO_C" >&6; } |
20136 | OUTPUT_FORMAT="$(${CC} ${CFLAGS} ${LDFLAGS} -Wl,--verbose 2>&1 | ${SED} -n 's/^OUTPUT_FORMAT("\([^"]*\)",.*/\1/p')" |
20137 | if test -z "${OUTPUT_FORMAT}"; then |
20138 | { echo "$as_me:$LINENO: result: None" >&5 |
20139 | echo "${ECHO_T}None" >&6; } |
20140 | else |
20141 | { echo "$as_me:$LINENO: result: ${OUTPUT_FORMAT}" >&5 |
20142 | echo "${ECHO_T}${OUTPUT_FORMAT}" >&6; } |
20143 | OUTPUT_FORMAT="OUTPUT_FORMAT ( ${OUTPUT_FORMAT} )" |
20144 | fi |
20145 | fi |
20146 | |
20147 | # Libraries |
20148 | if test "${with_fuse}" = "internal"; then |
20149 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
20150 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
20151 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
20152 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20153 | else |
20154 | ac_check_lib_save_LIBS=$LIBS |
20155 | LIBS="-lpthread $LIBS" |
20156 | cat >conftest.$ac_ext <<_ACEOF |
20157 | /* confdefs.h. */ |
20158 | _ACEOF |
20159 | cat confdefs.h >>conftest.$ac_ext |
20160 | cat >>conftest.$ac_ext <<_ACEOF |
20161 | /* end confdefs.h. */ |
20162 | |
20163 | /* Override any GCC internal prototype to avoid an error. |
20164 | Use char because int might match the return type of a GCC |
20165 | builtin and then its argument prototype would still apply. */ |
20166 | #ifdef __cplusplus |
20167 | extern "C" |
20168 | #endif |
20169 | char pthread_create (); |
20170 | int |
20171 | main () |
20172 | { |
20173 | return pthread_create (); |
20174 | ; |
20175 | return 0; |
20176 | } |
20177 | _ACEOF |
20178 | rm -f conftest.$ac_objext conftest$ac_exeext |
20179 | if { (ac_try="$ac_link" |
20180 | case "(($ac_try" in |
20181 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20182 | *) ac_try_echo=$ac_try;; |
20183 | esac |
20184 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20185 | (eval "$ac_link") 2>conftest.er1 |
20186 | ac_status=$? |
20187 | grep -v '^ *+' conftest.er1 >conftest.err |
20188 | rm -f conftest.er1 |
20189 | cat conftest.err >&5 |
20190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20191 | (exit $ac_status); } && { |
20192 | test -z "$ac_c_werror_flag" || |
20193 | test ! -s conftest.err |
20194 | } && test -s conftest$ac_exeext && |
20195 | $as_test_x conftest$ac_exeext; then |
20196 | ac_cv_lib_pthread_pthread_create=yes |
20197 | else |
20198 | echo "$as_me: failed program was:" >&5 |
20199 | sed 's/^/| /' conftest.$ac_ext >&5 |
20200 | |
20201 | ac_cv_lib_pthread_pthread_create=no |
20202 | fi |
20203 | |
20204 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
20205 | conftest$ac_exeext conftest.$ac_ext |
20206 | LIBS=$ac_check_lib_save_LIBS |
20207 | fi |
20208 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
20209 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } |
20210 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
20211 | LIBFUSE_LITE_LIBS="${LIBFUSE_LITE_LIBS} -lpthread" |
20212 | else |
20213 | { { echo "$as_me:$LINENO: error: Cannot find pthread library" >&5 |
20214 | echo "$as_me: error: Cannot find pthread library" >&2;} |
20215 | { (exit 1); exit 1; }; } |
20216 | |
20217 | fi |
20218 | |
20219 | |
20220 | cat >>confdefs.h <<\_ACEOF |
20221 | #define _REENTRANT 1 |
20222 | _ACEOF |
20223 | |
20224 | # required so that we re-compile anything |
20225 | |
20226 | cat >>confdefs.h <<\_ACEOF |
20227 | #define FUSE_INTERNAL 1 |
20228 | _ACEOF |
20229 | |
20230 | else |
20231 | if test -z "$PKG_CONFIG"; then |
20232 | # Extract the first word of "pkg-config", so it can be a program name with args. |
20233 | set dummy pkg-config; ac_word=$2 |
20234 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20235 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
20236 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
20237 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20238 | else |
20239 | case $PKG_CONFIG in |
20240 | [\\/]* | ?:[\\/]*) |
20241 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
20242 | ;; |
20243 | *) |
20244 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20245 | for as_dir in $PATH |
20246 | do |
20247 | IFS=$as_save_IFS |
20248 | test -z "$as_dir" && as_dir=. |
20249 | for ac_exec_ext in '' $ac_executable_extensions; do |
20250 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
20251 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
20252 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20253 | break 2 |
20254 | fi |
20255 | done |
20256 | done |
20257 | IFS=$as_save_IFS |
20258 | |
20259 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
20260 | ;; |
20261 | esac |
20262 | fi |
20263 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
20264 | if test -n "$PKG_CONFIG"; then |
20265 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
20266 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
20267 | else |
20268 | { echo "$as_me:$LINENO: result: no" >&5 |
20269 | echo "${ECHO_T}no" >&6; } |
20270 | fi |
20271 | |
20272 | |
20273 | fi |
20274 | test "x${PKG_CONFIG}" = "xno" && { { echo "$as_me:$LINENO: error: pkg-config wasn't found! Please install from your vendor, or see http://pkg-config.freedesktop.org/wiki/" >&5 |
20275 | echo "$as_me: error: pkg-config wasn't found! Please install from your vendor, or see http://pkg-config.freedesktop.org/wiki/" >&2;} |
20276 | { (exit 1); exit 1; }; } |
20277 | # Libraries often install their metadata .pc files in directories |
20278 | # not searched by pkg-config. Let's workaround this. |
20279 | export PKG_CONFIG_PATH=${PKG_CONFIG_PATH}:/lib/pkgconfig:/usr/lib/pkgconfig:/opt/gnome/lib/pkgconfig:/usr/share/pkgconfig:/usr/local/lib/pkgconfig:$prefix/lib/pkgconfig:/opt/gnome/share/pkgconfig:/usr/local/share/pkgconfig |
20280 | |
20281 | |
20282 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
20283 | if test -n "$ac_tool_prefix"; then |
20284 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
20285 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
20286 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20287 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
20288 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
20289 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20290 | else |
20291 | case $PKG_CONFIG in |
20292 | [\\/]* | ?:[\\/]*) |
20293 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
20294 | ;; |
20295 | *) |
20296 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20297 | for as_dir in $PATH |
20298 | do |
20299 | IFS=$as_save_IFS |
20300 | test -z "$as_dir" && as_dir=. |
20301 | for ac_exec_ext in '' $ac_executable_extensions; do |
20302 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
20303 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
20304 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20305 | break 2 |
20306 | fi |
20307 | done |
20308 | done |
20309 | IFS=$as_save_IFS |
20310 | |
20311 | ;; |
20312 | esac |
20313 | fi |
20314 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
20315 | if test -n "$PKG_CONFIG"; then |
20316 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
20317 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
20318 | else |
20319 | { echo "$as_me:$LINENO: result: no" >&5 |
20320 | echo "${ECHO_T}no" >&6; } |
20321 | fi |
20322 | |
20323 | |
20324 | fi |
20325 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
20326 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
20327 | # Extract the first word of "pkg-config", so it can be a program name with args. |
20328 | set dummy pkg-config; ac_word=$2 |
20329 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20330 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
20331 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
20332 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20333 | else |
20334 | case $ac_pt_PKG_CONFIG in |
20335 | [\\/]* | ?:[\\/]*) |
20336 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
20337 | ;; |
20338 | *) |
20339 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20340 | for as_dir in $PATH |
20341 | do |
20342 | IFS=$as_save_IFS |
20343 | test -z "$as_dir" && as_dir=. |
20344 | for ac_exec_ext in '' $ac_executable_extensions; do |
20345 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
20346 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
20347 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20348 | break 2 |
20349 | fi |
20350 | done |
20351 | done |
20352 | IFS=$as_save_IFS |
20353 | |
20354 | ;; |
20355 | esac |
20356 | fi |
20357 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
20358 | if test -n "$ac_pt_PKG_CONFIG"; then |
20359 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
20360 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
20361 | else |
20362 | { echo "$as_me:$LINENO: result: no" >&5 |
20363 | echo "${ECHO_T}no" >&6; } |
20364 | fi |
20365 | |
20366 | if test "x$ac_pt_PKG_CONFIG" = x; then |
20367 | PKG_CONFIG="" |
20368 | else |
20369 | case $cross_compiling:$ac_tool_warned in |
20370 | yes:) |
20371 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
20372 | whose name does not start with the host triplet. If you think this |
20373 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
20374 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
20375 | whose name does not start with the host triplet. If you think this |
20376 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
20377 | ac_tool_warned=yes ;; |
20378 | esac |
20379 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
20380 | fi |
20381 | else |
20382 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
20383 | fi |
20384 | |
20385 | fi |
20386 | if test -n "$PKG_CONFIG"; then |
20387 | _pkg_min_version=0.9.0 |
20388 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
20389 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } |
20390 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
20391 | { echo "$as_me:$LINENO: result: yes" >&5 |
20392 | echo "${ECHO_T}yes" >&6; } |
20393 | else |
20394 | { echo "$as_me:$LINENO: result: no" >&5 |
20395 | echo "${ECHO_T}no" >&6; } |
20396 | PKG_CONFIG="" |
20397 | fi |
20398 | |
20399 | fi |
20400 | |
20401 | pkg_failed=no |
20402 | { echo "$as_me:$LINENO: checking for FUSE_MODULE" >&5 |
20403 | echo $ECHO_N "checking for FUSE_MODULE... $ECHO_C" >&6; } |
20404 | |
20405 | if test -n "$FUSE_MODULE_CFLAGS"; then |
20406 | pkg_cv_FUSE_MODULE_CFLAGS="$FUSE_MODULE_CFLAGS" |
20407 | elif test -n "$PKG_CONFIG"; then |
20408 | if test -n "$PKG_CONFIG" && \ |
20409 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6.0\"") >&5 |
20410 | ($PKG_CONFIG --exists --print-errors "fuse >= 2.6.0") 2>&5 |
20411 | ac_status=$? |
20412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20413 | (exit $ac_status); }; then |
20414 | pkg_cv_FUSE_MODULE_CFLAGS=`$PKG_CONFIG --cflags "fuse >= 2.6.0" 2>/dev/null` |
20415 | else |
20416 | pkg_failed=yes |
20417 | fi |
20418 | else |
20419 | pkg_failed=untried |
20420 | fi |
20421 | if test -n "$FUSE_MODULE_LIBS"; then |
20422 | pkg_cv_FUSE_MODULE_LIBS="$FUSE_MODULE_LIBS" |
20423 | elif test -n "$PKG_CONFIG"; then |
20424 | if test -n "$PKG_CONFIG" && \ |
20425 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"fuse >= 2.6.0\"") >&5 |
20426 | ($PKG_CONFIG --exists --print-errors "fuse >= 2.6.0") 2>&5 |
20427 | ac_status=$? |
20428 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20429 | (exit $ac_status); }; then |
20430 | pkg_cv_FUSE_MODULE_LIBS=`$PKG_CONFIG --libs "fuse >= 2.6.0" 2>/dev/null` |
20431 | else |
20432 | pkg_failed=yes |
20433 | fi |
20434 | else |
20435 | pkg_failed=untried |
20436 | fi |
20437 | |
20438 | |
20439 | |
20440 | if test $pkg_failed = yes; then |
20441 | |
20442 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
20443 | _pkg_short_errors_supported=yes |
20444 | else |
20445 | _pkg_short_errors_supported=no |
20446 | fi |
20447 | if test $_pkg_short_errors_supported = yes; then |
20448 | FUSE_MODULE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fuse >= 2.6.0" 2>&1` |
20449 | else |
20450 | FUSE_MODULE_PKG_ERRORS=`$PKG_CONFIG --print-errors "fuse >= 2.6.0" 2>&1` |
20451 | fi |
20452 | # Put the nasty error message in config.log where it belongs |
20453 | echo "$FUSE_MODULE_PKG_ERRORS" >&5 |
20454 | |
20455 | { echo "$as_me:$LINENO: result: no" >&5 |
20456 | echo "${ECHO_T}no" >&6; } |
20457 | |
20458 | { { echo "$as_me:$LINENO: error: FUSE >= 2.6.0 was not found. Either older FUSE is still present, or FUSE is not fully installed (e.g. fuse, libfuse, libfuse2, libfuse-dev, etc packages). Source code: http://fuse.sf.net" >&5 |
20459 | echo "$as_me: error: FUSE >= 2.6.0 was not found. Either older FUSE is still present, or FUSE is not fully installed (e.g. fuse, libfuse, libfuse2, libfuse-dev, etc packages). Source code: http://fuse.sf.net" >&2;} |
20460 | { (exit 1); exit 1; }; } |
20461 | |
20462 | |
20463 | elif test $pkg_failed = untried; then |
20464 | |
20465 | { { echo "$as_me:$LINENO: error: FUSE >= 2.6.0 was not found. Either older FUSE is still present, or FUSE is not fully installed (e.g. fuse, libfuse, libfuse2, libfuse-dev, etc packages). Source code: http://fuse.sf.net" >&5 |
20466 | echo "$as_me: error: FUSE >= 2.6.0 was not found. Either older FUSE is still present, or FUSE is not fully installed (e.g. fuse, libfuse, libfuse2, libfuse-dev, etc packages). Source code: http://fuse.sf.net" >&2;} |
20467 | { (exit 1); exit 1; }; } |
20468 | |
20469 | |
20470 | else |
20471 | FUSE_MODULE_CFLAGS=$pkg_cv_FUSE_MODULE_CFLAGS |
20472 | FUSE_MODULE_LIBS=$pkg_cv_FUSE_MODULE_LIBS |
20473 | { echo "$as_me:$LINENO: result: yes" >&5 |
20474 | echo "${ECHO_T}yes" >&6; } |
20475 | : |
20476 | fi |
20477 | FUSE_LIB_PATH=`$PKG_CONFIG --libs-only-L fuse | sed -e 's,//*,/,g' -e 's, *$,,'` |
20478 | fi |
20479 | |
20480 | # Checks for header files. |
20481 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
20482 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
20483 | if test "${ac_cv_header_stdc+set}" = set; then |
20484 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20485 | else |
20486 | cat >conftest.$ac_ext <<_ACEOF |
20487 | /* confdefs.h. */ |
20488 | _ACEOF |
20489 | cat confdefs.h >>conftest.$ac_ext |
20490 | cat >>conftest.$ac_ext <<_ACEOF |
20491 | /* end confdefs.h. */ |
20492 | #include <stdlib.h> |
20493 | #include <stdarg.h> |
20494 | #include <string.h> |
20495 | #include <float.h> |
20496 | |
20497 | int |
20498 | main () |
20499 | { |
20500 | |
20501 | ; |
20502 | return 0; |
20503 | } |
20504 | _ACEOF |
20505 | rm -f conftest.$ac_objext |
20506 | if { (ac_try="$ac_compile" |
20507 | case "(($ac_try" in |
20508 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20509 | *) ac_try_echo=$ac_try;; |
20510 | esac |
20511 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20512 | (eval "$ac_compile") 2>conftest.er1 |
20513 | ac_status=$? |
20514 | grep -v '^ *+' conftest.er1 >conftest.err |
20515 | rm -f conftest.er1 |
20516 | cat conftest.err >&5 |
20517 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20518 | (exit $ac_status); } && { |
20519 | test -z "$ac_c_werror_flag" || |
20520 | test ! -s conftest.err |
20521 | } && test -s conftest.$ac_objext; then |
20522 | ac_cv_header_stdc=yes |
20523 | else |
20524 | echo "$as_me: failed program was:" >&5 |
20525 | sed 's/^/| /' conftest.$ac_ext >&5 |
20526 | |
20527 | ac_cv_header_stdc=no |
20528 | fi |
20529 | |
20530 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
20531 | |
20532 | if test $ac_cv_header_stdc = yes; then |
20533 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
20534 | cat >conftest.$ac_ext <<_ACEOF |
20535 | /* confdefs.h. */ |
20536 | _ACEOF |
20537 | cat confdefs.h >>conftest.$ac_ext |
20538 | cat >>conftest.$ac_ext <<_ACEOF |
20539 | /* end confdefs.h. */ |
20540 | #include <string.h> |
20541 | |
20542 | _ACEOF |
20543 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
20544 | $EGREP "memchr" >/dev/null 2>&1; then |
20545 | : |
20546 | else |
20547 | ac_cv_header_stdc=no |
20548 | fi |
20549 | rm -f conftest* |
20550 | |
20551 | fi |
20552 | |
20553 | if test $ac_cv_header_stdc = yes; then |
20554 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
20555 | cat >conftest.$ac_ext <<_ACEOF |
20556 | /* confdefs.h. */ |
20557 | _ACEOF |
20558 | cat confdefs.h >>conftest.$ac_ext |
20559 | cat >>conftest.$ac_ext <<_ACEOF |
20560 | /* end confdefs.h. */ |
20561 | #include <stdlib.h> |
20562 | |
20563 | _ACEOF |
20564 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
20565 | $EGREP "free" >/dev/null 2>&1; then |
20566 | : |
20567 | else |
20568 | ac_cv_header_stdc=no |
20569 | fi |
20570 | rm -f conftest* |
20571 | |
20572 | fi |
20573 | |
20574 | if test $ac_cv_header_stdc = yes; then |
20575 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
20576 | if test "$cross_compiling" = yes; then |
20577 | : |
20578 | else |
20579 | cat >conftest.$ac_ext <<_ACEOF |
20580 | /* confdefs.h. */ |
20581 | _ACEOF |
20582 | cat confdefs.h >>conftest.$ac_ext |
20583 | cat >>conftest.$ac_ext <<_ACEOF |
20584 | /* end confdefs.h. */ |
20585 | #include <ctype.h> |
20586 | #include <stdlib.h> |
20587 | #if ((' ' & 0x0FF) == 0x020) |
20588 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
20589 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
20590 | #else |
20591 | # define ISLOWER(c) \ |
20592 | (('a' <= (c) && (c) <= 'i') \ |
20593 | || ('j' <= (c) && (c) <= 'r') \ |
20594 | || ('s' <= (c) && (c) <= 'z')) |
20595 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
20596 | #endif |
20597 | |
20598 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
20599 | int |
20600 | main () |
20601 | { |
20602 | int i; |
20603 | for (i = 0; i < 256; i++) |
20604 | if (XOR (islower (i), ISLOWER (i)) |
20605 | || toupper (i) != TOUPPER (i)) |
20606 | return 2; |
20607 | return 0; |
20608 | } |
20609 | _ACEOF |
20610 | rm -f conftest$ac_exeext |
20611 | if { (ac_try="$ac_link" |
20612 | case "(($ac_try" in |
20613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20614 | *) ac_try_echo=$ac_try;; |
20615 | esac |
20616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20617 | (eval "$ac_link") 2>&5 |
20618 | ac_status=$? |
20619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20620 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
20621 | { (case "(($ac_try" in |
20622 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20623 | *) ac_try_echo=$ac_try;; |
20624 | esac |
20625 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20626 | (eval "$ac_try") 2>&5 |
20627 | ac_status=$? |
20628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20629 | (exit $ac_status); }; }; then |
20630 | : |
20631 | else |
20632 | echo "$as_me: program exited with status $ac_status" >&5 |
20633 | echo "$as_me: failed program was:" >&5 |
20634 | sed 's/^/| /' conftest.$ac_ext >&5 |
20635 | |
20636 | ( exit $ac_status ) |
20637 | ac_cv_header_stdc=no |
20638 | fi |
20639 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
20640 | fi |
20641 | |
20642 | |
20643 | fi |
20644 | fi |
20645 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
20646 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
20647 | if test $ac_cv_header_stdc = yes; then |
20648 | |
20649 | cat >>confdefs.h <<\_ACEOF |
20650 | #define STDC_HEADERS 1 |
20651 | _ACEOF |
20652 | |
20653 | fi |
20654 | |
20655 | |
20656 | |
20657 | |
20658 | |
20659 | |
20660 | |
20661 | |
20662 | |
20663 | |
20664 | |
20665 | |
20666 | |
20667 | |
20668 | |
20669 | |
20670 | |
20671 | |
20672 | |
20673 | |
20674 | |
20675 | |
20676 | |
20677 | |
20678 | |
20679 | |
20680 | |
20681 | |
20682 | |
20683 | |
20684 | |
20685 | |
20686 | |
20687 | |
20688 | |
20689 | |
20690 | |
20691 | |
20692 | |
20693 | |
20694 | |
20695 | for ac_header in ctype.h fcntl.h libgen.h libintl.h limits.h locale.h \ |
20696 | mntent.h stddef.h stdint.h stdlib.h stdio.h stdarg.h string.h \ |
20697 | strings.h errno.h time.h unistd.h utime.h wchar.h getopt.h features.h \ |
20698 | endian.h byteswap.h sys/byteorder.h sys/endian.h sys/param.h \ |
20699 | sys/ioctl.h sys/mkdev.h sys/mount.h sys/stat.h sys/types.h sys/vfs.h \ |
20700 | sys/statvfs.h sys/sysmacros.h linux/major.h linux/fd.h linux/hdreg.h \ |
20701 | machine/endian.h windows.h syslog.h |
20702 | do |
20703 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
20704 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
20705 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20706 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
20707 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
20708 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20709 | fi |
20710 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20711 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
20712 | echo "${ECHO_T}$ac_res" >&6; } |
20713 | else |
20714 | # Is the header compilable? |
20715 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
20716 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
20717 | cat >conftest.$ac_ext <<_ACEOF |
20718 | /* confdefs.h. */ |
20719 | _ACEOF |
20720 | cat confdefs.h >>conftest.$ac_ext |
20721 | cat >>conftest.$ac_ext <<_ACEOF |
20722 | /* end confdefs.h. */ |
20723 | $ac_includes_default |
20724 | #include <$ac_header> |
20725 | _ACEOF |
20726 | rm -f conftest.$ac_objext |
20727 | if { (ac_try="$ac_compile" |
20728 | case "(($ac_try" in |
20729 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20730 | *) ac_try_echo=$ac_try;; |
20731 | esac |
20732 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20733 | (eval "$ac_compile") 2>conftest.er1 |
20734 | ac_status=$? |
20735 | grep -v '^ *+' conftest.er1 >conftest.err |
20736 | rm -f conftest.er1 |
20737 | cat conftest.err >&5 |
20738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20739 | (exit $ac_status); } && { |
20740 | test -z "$ac_c_werror_flag" || |
20741 | test ! -s conftest.err |
20742 | } && test -s conftest.$ac_objext; then |
20743 | ac_header_compiler=yes |
20744 | else |
20745 | echo "$as_me: failed program was:" >&5 |
20746 | sed 's/^/| /' conftest.$ac_ext >&5 |
20747 | |
20748 | ac_header_compiler=no |
20749 | fi |
20750 | |
20751 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
20752 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
20753 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
20754 | |
20755 | # Is the header present? |
20756 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
20757 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
20758 | cat >conftest.$ac_ext <<_ACEOF |
20759 | /* confdefs.h. */ |
20760 | _ACEOF |
20761 | cat confdefs.h >>conftest.$ac_ext |
20762 | cat >>conftest.$ac_ext <<_ACEOF |
20763 | /* end confdefs.h. */ |
20764 | #include <$ac_header> |
20765 | _ACEOF |
20766 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
20767 | case "(($ac_try" in |
20768 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20769 | *) ac_try_echo=$ac_try;; |
20770 | esac |
20771 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20772 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
20773 | ac_status=$? |
20774 | grep -v '^ *+' conftest.er1 >conftest.err |
20775 | rm -f conftest.er1 |
20776 | cat conftest.err >&5 |
20777 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20778 | (exit $ac_status); } >/dev/null && { |
20779 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
20780 | test ! -s conftest.err |
20781 | }; then |
20782 | ac_header_preproc=yes |
20783 | else |
20784 | echo "$as_me: failed program was:" >&5 |
20785 | sed 's/^/| /' conftest.$ac_ext >&5 |
20786 | |
20787 | ac_header_preproc=no |
20788 | fi |
20789 | |
20790 | rm -f conftest.err conftest.$ac_ext |
20791 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
20792 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
20793 | |
20794 | # So? What about this header? |
20795 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
20796 | yes:no: ) |
20797 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
20798 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
20799 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
20800 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
20801 | ac_header_preproc=yes |
20802 | ;; |
20803 | no:yes:* ) |
20804 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
20805 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
20806 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
20807 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
20808 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
20809 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
20810 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
20811 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
20812 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
20813 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
20814 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
20815 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
20816 | ( cat <<\_ASBOX |
20817 | ## ----------------------------------------- ## |
20818 | ## Report this to ntfs-3g-devel@lists.sf.net ## |
20819 | ## ----------------------------------------- ## |
20820 | _ASBOX |
20821 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
20822 | ;; |
20823 | esac |
20824 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
20825 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
20826 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
20827 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20828 | else |
20829 | eval "$as_ac_Header=\$ac_header_preproc" |
20830 | fi |
20831 | ac_res=`eval echo '${'$as_ac_Header'}'` |
20832 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
20833 | echo "${ECHO_T}$ac_res" >&6; } |
20834 | |
20835 | fi |
20836 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
20837 | cat >>confdefs.h <<_ACEOF |
20838 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
20839 | _ACEOF |
20840 | |
20841 | fi |
20842 | |
20843 | done |
20844 | |
20845 | |
20846 | # Checks for typedefs, structures, and compiler characteristics. |
20847 | { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
20848 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } |
20849 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
20850 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20851 | else |
20852 | cat >conftest.$ac_ext <<_ACEOF |
20853 | /* confdefs.h. */ |
20854 | _ACEOF |
20855 | cat confdefs.h >>conftest.$ac_ext |
20856 | cat >>conftest.$ac_ext <<_ACEOF |
20857 | /* end confdefs.h. */ |
20858 | |
20859 | #include <stdbool.h> |
20860 | #ifndef bool |
20861 | "error: bool is not defined" |
20862 | #endif |
20863 | #ifndef false |
20864 | "error: false is not defined" |
20865 | #endif |
20866 | #if false |
20867 | "error: false is not 0" |
20868 | #endif |
20869 | #ifndef true |
20870 | "error: true is not defined" |
20871 | #endif |
20872 | #if true != 1 |
20873 | "error: true is not 1" |
20874 | #endif |
20875 | #ifndef __bool_true_false_are_defined |
20876 | "error: __bool_true_false_are_defined is not defined" |
20877 | #endif |
20878 | |
20879 | struct s { _Bool s: 1; _Bool t; } s; |
20880 | |
20881 | char a[true == 1 ? 1 : -1]; |
20882 | char b[false == 0 ? 1 : -1]; |
20883 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
20884 | char d[(bool) 0.5 == true ? 1 : -1]; |
20885 | bool e = &s; |
20886 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
20887 | char g[true]; |
20888 | char h[sizeof (_Bool)]; |
20889 | char i[sizeof s.t]; |
20890 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
20891 | _Bool n[m]; |
20892 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
20893 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
20894 | # if defined __xlc__ || defined __GNUC__ |
20895 | /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 |
20896 | reported by James Lemley on 2005-10-05; see |
20897 | http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html |
20898 | This test is not quite right, since xlc is allowed to |
20899 | reject this program, as the initializer for xlcbug is |
20900 | not one of the forms that C requires support for. |
20901 | However, doing the test right would require a runtime |
20902 | test, and that would make cross-compilation harder. |
20903 | Let us hope that IBM fixes the xlc bug, and also adds |
20904 | support for this kind of constant expression. In the |
20905 | meantime, this test will reject xlc, which is OK, since |
20906 | our stdbool.h substitute should suffice. We also test |
20907 | this with GCC, where it should work, to detect more |
20908 | quickly whether someone messes up the test in the |
20909 | future. */ |
20910 | char digs[] = "0123456789"; |
20911 | int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); |
20912 | # endif |
20913 | /* Catch a bug in an HP-UX C compiler. See |
20914 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
20915 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
20916 | */ |
20917 | _Bool q = true; |
20918 | _Bool *pq = &q; |
20919 | |
20920 | int |
20921 | main () |
20922 | { |
20923 | |
20924 | *pq |= q; |
20925 | *pq |= ! q; |
20926 | /* Refer to every declared value, to avoid compiler optimizations. */ |
20927 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
20928 | + !m + !n + !o + !p + !q + !pq); |
20929 | |
20930 | ; |
20931 | return 0; |
20932 | } |
20933 | _ACEOF |
20934 | rm -f conftest.$ac_objext |
20935 | if { (ac_try="$ac_compile" |
20936 | case "(($ac_try" in |
20937 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20938 | *) ac_try_echo=$ac_try;; |
20939 | esac |
20940 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20941 | (eval "$ac_compile") 2>conftest.er1 |
20942 | ac_status=$? |
20943 | grep -v '^ *+' conftest.er1 >conftest.err |
20944 | rm -f conftest.er1 |
20945 | cat conftest.err >&5 |
20946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20947 | (exit $ac_status); } && { |
20948 | test -z "$ac_c_werror_flag" || |
20949 | test ! -s conftest.err |
20950 | } && test -s conftest.$ac_objext; then |
20951 | ac_cv_header_stdbool_h=yes |
20952 | else |
20953 | echo "$as_me: failed program was:" >&5 |
20954 | sed 's/^/| /' conftest.$ac_ext >&5 |
20955 | |
20956 | ac_cv_header_stdbool_h=no |
20957 | fi |
20958 | |
20959 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
20960 | fi |
20961 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
20962 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } |
20963 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
20964 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
20965 | if test "${ac_cv_type__Bool+set}" = set; then |
20966 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20967 | else |
20968 | cat >conftest.$ac_ext <<_ACEOF |
20969 | /* confdefs.h. */ |
20970 | _ACEOF |
20971 | cat confdefs.h >>conftest.$ac_ext |
20972 | cat >>conftest.$ac_ext <<_ACEOF |
20973 | /* end confdefs.h. */ |
20974 | $ac_includes_default |
20975 | typedef _Bool ac__type_new_; |
20976 | int |
20977 | main () |
20978 | { |
20979 | if ((ac__type_new_ *) 0) |
20980 | return 0; |
20981 | if (sizeof (ac__type_new_)) |
20982 | return 0; |
20983 | ; |
20984 | return 0; |
20985 | } |
20986 | _ACEOF |
20987 | rm -f conftest.$ac_objext |
20988 | if { (ac_try="$ac_compile" |
20989 | case "(($ac_try" in |
20990 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20991 | *) ac_try_echo=$ac_try;; |
20992 | esac |
20993 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20994 | (eval "$ac_compile") 2>conftest.er1 |
20995 | ac_status=$? |
20996 | grep -v '^ *+' conftest.er1 >conftest.err |
20997 | rm -f conftest.er1 |
20998 | cat conftest.err >&5 |
20999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21000 | (exit $ac_status); } && { |
21001 | test -z "$ac_c_werror_flag" || |
21002 | test ! -s conftest.err |
21003 | } && test -s conftest.$ac_objext; then |
21004 | ac_cv_type__Bool=yes |
21005 | else |
21006 | echo "$as_me: failed program was:" >&5 |
21007 | sed 's/^/| /' conftest.$ac_ext >&5 |
21008 | |
21009 | ac_cv_type__Bool=no |
21010 | fi |
21011 | |
21012 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21013 | fi |
21014 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
21015 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
21016 | if test $ac_cv_type__Bool = yes; then |
21017 | |
21018 | cat >>confdefs.h <<_ACEOF |
21019 | #define HAVE__BOOL 1 |
21020 | _ACEOF |
21021 | |
21022 | |
21023 | fi |
21024 | |
21025 | if test $ac_cv_header_stdbool_h = yes; then |
21026 | |
21027 | cat >>confdefs.h <<\_ACEOF |
21028 | #define HAVE_STDBOOL_H 1 |
21029 | _ACEOF |
21030 | |
21031 | fi |
21032 | |
21033 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
21034 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
21035 | if test "${ac_cv_c_bigendian+set}" = set; then |
21036 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21037 | else |
21038 | # See if sys/param.h defines the BYTE_ORDER macro. |
21039 | cat >conftest.$ac_ext <<_ACEOF |
21040 | /* confdefs.h. */ |
21041 | _ACEOF |
21042 | cat confdefs.h >>conftest.$ac_ext |
21043 | cat >>conftest.$ac_ext <<_ACEOF |
21044 | /* end confdefs.h. */ |
21045 | #include <sys/types.h> |
21046 | #include <sys/param.h> |
21047 | |
21048 | int |
21049 | main () |
21050 | { |
21051 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
21052 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
21053 | bogus endian macros |
21054 | #endif |
21055 | |
21056 | ; |
21057 | return 0; |
21058 | } |
21059 | _ACEOF |
21060 | rm -f conftest.$ac_objext |
21061 | if { (ac_try="$ac_compile" |
21062 | case "(($ac_try" in |
21063 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21064 | *) ac_try_echo=$ac_try;; |
21065 | esac |
21066 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21067 | (eval "$ac_compile") 2>conftest.er1 |
21068 | ac_status=$? |
21069 | grep -v '^ *+' conftest.er1 >conftest.err |
21070 | rm -f conftest.er1 |
21071 | cat conftest.err >&5 |
21072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21073 | (exit $ac_status); } && { |
21074 | test -z "$ac_c_werror_flag" || |
21075 | test ! -s conftest.err |
21076 | } && test -s conftest.$ac_objext; then |
21077 | # It does; now see whether it defined to BIG_ENDIAN or not. |
21078 | cat >conftest.$ac_ext <<_ACEOF |
21079 | /* confdefs.h. */ |
21080 | _ACEOF |
21081 | cat confdefs.h >>conftest.$ac_ext |
21082 | cat >>conftest.$ac_ext <<_ACEOF |
21083 | /* end confdefs.h. */ |
21084 | #include <sys/types.h> |
21085 | #include <sys/param.h> |
21086 | |
21087 | int |
21088 | main () |
21089 | { |
21090 | #if BYTE_ORDER != BIG_ENDIAN |
21091 | not big endian |
21092 | #endif |
21093 | |
21094 | ; |
21095 | return 0; |
21096 | } |
21097 | _ACEOF |
21098 | rm -f conftest.$ac_objext |
21099 | if { (ac_try="$ac_compile" |
21100 | case "(($ac_try" in |
21101 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21102 | *) ac_try_echo=$ac_try;; |
21103 | esac |
21104 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21105 | (eval "$ac_compile") 2>conftest.er1 |
21106 | ac_status=$? |
21107 | grep -v '^ *+' conftest.er1 >conftest.err |
21108 | rm -f conftest.er1 |
21109 | cat conftest.err >&5 |
21110 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21111 | (exit $ac_status); } && { |
21112 | test -z "$ac_c_werror_flag" || |
21113 | test ! -s conftest.err |
21114 | } && test -s conftest.$ac_objext; then |
21115 | ac_cv_c_bigendian=yes |
21116 | else |
21117 | echo "$as_me: failed program was:" >&5 |
21118 | sed 's/^/| /' conftest.$ac_ext >&5 |
21119 | |
21120 | ac_cv_c_bigendian=no |
21121 | fi |
21122 | |
21123 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21124 | else |
21125 | echo "$as_me: failed program was:" >&5 |
21126 | sed 's/^/| /' conftest.$ac_ext >&5 |
21127 | |
21128 | # It does not; compile a test program. |
21129 | if test "$cross_compiling" = yes; then |
21130 | # try to guess the endianness by grepping values into an object file |
21131 | ac_cv_c_bigendian=unknown |
21132 | cat >conftest.$ac_ext <<_ACEOF |
21133 | /* confdefs.h. */ |
21134 | _ACEOF |
21135 | cat confdefs.h >>conftest.$ac_ext |
21136 | cat >>conftest.$ac_ext <<_ACEOF |
21137 | /* end confdefs.h. */ |
21138 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
21139 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
21140 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
21141 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
21142 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
21143 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
21144 | int |
21145 | main () |
21146 | { |
21147 | _ascii (); _ebcdic (); |
21148 | ; |
21149 | return 0; |
21150 | } |
21151 | _ACEOF |
21152 | rm -f conftest.$ac_objext |
21153 | if { (ac_try="$ac_compile" |
21154 | case "(($ac_try" in |
21155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21156 | *) ac_try_echo=$ac_try;; |
21157 | esac |
21158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21159 | (eval "$ac_compile") 2>conftest.er1 |
21160 | ac_status=$? |
21161 | grep -v '^ *+' conftest.er1 >conftest.err |
21162 | rm -f conftest.er1 |
21163 | cat conftest.err >&5 |
21164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21165 | (exit $ac_status); } && { |
21166 | test -z "$ac_c_werror_flag" || |
21167 | test ! -s conftest.err |
21168 | } && test -s conftest.$ac_objext; then |
21169 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
21170 | ac_cv_c_bigendian=yes |
21171 | fi |
21172 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
21173 | if test "$ac_cv_c_bigendian" = unknown; then |
21174 | ac_cv_c_bigendian=no |
21175 | else |
21176 | # finding both strings is unlikely to happen, but who knows? |
21177 | ac_cv_c_bigendian=unknown |
21178 | fi |
21179 | fi |
21180 | else |
21181 | echo "$as_me: failed program was:" >&5 |
21182 | sed 's/^/| /' conftest.$ac_ext >&5 |
21183 | |
21184 | |
21185 | fi |
21186 | |
21187 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21188 | else |
21189 | cat >conftest.$ac_ext <<_ACEOF |
21190 | /* confdefs.h. */ |
21191 | _ACEOF |
21192 | cat confdefs.h >>conftest.$ac_ext |
21193 | cat >>conftest.$ac_ext <<_ACEOF |
21194 | /* end confdefs.h. */ |
21195 | $ac_includes_default |
21196 | int |
21197 | main () |
21198 | { |
21199 | |
21200 | /* Are we little or big endian? From Harbison&Steele. */ |
21201 | union |
21202 | { |
21203 | long int l; |
21204 | char c[sizeof (long int)]; |
21205 | } u; |
21206 | u.l = 1; |
21207 | return u.c[sizeof (long int) - 1] == 1; |
21208 | |
21209 | ; |
21210 | return 0; |
21211 | } |
21212 | _ACEOF |
21213 | rm -f conftest$ac_exeext |
21214 | if { (ac_try="$ac_link" |
21215 | case "(($ac_try" in |
21216 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21217 | *) ac_try_echo=$ac_try;; |
21218 | esac |
21219 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21220 | (eval "$ac_link") 2>&5 |
21221 | ac_status=$? |
21222 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21223 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
21224 | { (case "(($ac_try" in |
21225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21226 | *) ac_try_echo=$ac_try;; |
21227 | esac |
21228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21229 | (eval "$ac_try") 2>&5 |
21230 | ac_status=$? |
21231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21232 | (exit $ac_status); }; }; then |
21233 | ac_cv_c_bigendian=no |
21234 | else |
21235 | echo "$as_me: program exited with status $ac_status" >&5 |
21236 | echo "$as_me: failed program was:" >&5 |
21237 | sed 's/^/| /' conftest.$ac_ext >&5 |
21238 | |
21239 | ( exit $ac_status ) |
21240 | ac_cv_c_bigendian=yes |
21241 | fi |
21242 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
21243 | fi |
21244 | |
21245 | |
21246 | fi |
21247 | |
21248 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21249 | fi |
21250 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
21251 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
21252 | case $ac_cv_c_bigendian in |
21253 | yes) |
21254 | |
21255 | cat >>confdefs.h <<\_ACEOF |
21256 | #define WORDS_BIGENDIAN 1 |
21257 | _ACEOF |
21258 | ;; |
21259 | no) |
21260 | |
21261 | |
21262 | cat >>confdefs.h <<\_ACEOF |
21263 | #define WORDS_LITTLEENDIAN 1 |
21264 | _ACEOF |
21265 | |
21266 | |
21267 | ;; |
21268 | *) |
21269 | { { echo "$as_me:$LINENO: error: unknown endianness |
21270 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
21271 | echo "$as_me: error: unknown endianness |
21272 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
21273 | { (exit 1); exit 1; }; } ;; |
21274 | esac |
21275 | |
21276 | { echo "$as_me:$LINENO: checking for inline" >&5 |
21277 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
21278 | if test "${ac_cv_c_inline+set}" = set; then |
21279 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21280 | else |
21281 | ac_cv_c_inline=no |
21282 | for ac_kw in inline __inline__ __inline; do |
21283 | cat >conftest.$ac_ext <<_ACEOF |
21284 | /* confdefs.h. */ |
21285 | _ACEOF |
21286 | cat confdefs.h >>conftest.$ac_ext |
21287 | cat >>conftest.$ac_ext <<_ACEOF |
21288 | /* end confdefs.h. */ |
21289 | #ifndef __cplusplus |
21290 | typedef int foo_t; |
21291 | static $ac_kw foo_t static_foo () {return 0; } |
21292 | $ac_kw foo_t foo () {return 0; } |
21293 | #endif |
21294 | |
21295 | _ACEOF |
21296 | rm -f conftest.$ac_objext |
21297 | if { (ac_try="$ac_compile" |
21298 | case "(($ac_try" in |
21299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21300 | *) ac_try_echo=$ac_try;; |
21301 | esac |
21302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21303 | (eval "$ac_compile") 2>conftest.er1 |
21304 | ac_status=$? |
21305 | grep -v '^ *+' conftest.er1 >conftest.err |
21306 | rm -f conftest.er1 |
21307 | cat conftest.err >&5 |
21308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21309 | (exit $ac_status); } && { |
21310 | test -z "$ac_c_werror_flag" || |
21311 | test ! -s conftest.err |
21312 | } && test -s conftest.$ac_objext; then |
21313 | ac_cv_c_inline=$ac_kw |
21314 | else |
21315 | echo "$as_me: failed program was:" >&5 |
21316 | sed 's/^/| /' conftest.$ac_ext >&5 |
21317 | |
21318 | |
21319 | fi |
21320 | |
21321 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21322 | test "$ac_cv_c_inline" != no && break |
21323 | done |
21324 | |
21325 | fi |
21326 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
21327 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
21328 | |
21329 | |
21330 | case $ac_cv_c_inline in |
21331 | inline | yes) ;; |
21332 | *) |
21333 | case $ac_cv_c_inline in |
21334 | no) ac_val=;; |
21335 | *) ac_val=$ac_cv_c_inline;; |
21336 | esac |
21337 | cat >>confdefs.h <<_ACEOF |
21338 | #ifndef __cplusplus |
21339 | #define inline $ac_val |
21340 | #endif |
21341 | _ACEOF |
21342 | ;; |
21343 | esac |
21344 | |
21345 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
21346 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
21347 | if test "${ac_cv_type_off_t+set}" = set; then |
21348 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21349 | else |
21350 | cat >conftest.$ac_ext <<_ACEOF |
21351 | /* confdefs.h. */ |
21352 | _ACEOF |
21353 | cat confdefs.h >>conftest.$ac_ext |
21354 | cat >>conftest.$ac_ext <<_ACEOF |
21355 | /* end confdefs.h. */ |
21356 | $ac_includes_default |
21357 | typedef off_t ac__type_new_; |
21358 | int |
21359 | main () |
21360 | { |
21361 | if ((ac__type_new_ *) 0) |
21362 | return 0; |
21363 | if (sizeof (ac__type_new_)) |
21364 | return 0; |
21365 | ; |
21366 | return 0; |
21367 | } |
21368 | _ACEOF |
21369 | rm -f conftest.$ac_objext |
21370 | if { (ac_try="$ac_compile" |
21371 | case "(($ac_try" in |
21372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21373 | *) ac_try_echo=$ac_try;; |
21374 | esac |
21375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21376 | (eval "$ac_compile") 2>conftest.er1 |
21377 | ac_status=$? |
21378 | grep -v '^ *+' conftest.er1 >conftest.err |
21379 | rm -f conftest.er1 |
21380 | cat conftest.err >&5 |
21381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21382 | (exit $ac_status); } && { |
21383 | test -z "$ac_c_werror_flag" || |
21384 | test ! -s conftest.err |
21385 | } && test -s conftest.$ac_objext; then |
21386 | ac_cv_type_off_t=yes |
21387 | else |
21388 | echo "$as_me: failed program was:" >&5 |
21389 | sed 's/^/| /' conftest.$ac_ext >&5 |
21390 | |
21391 | ac_cv_type_off_t=no |
21392 | fi |
21393 | |
21394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21395 | fi |
21396 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
21397 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
21398 | if test $ac_cv_type_off_t = yes; then |
21399 | : |
21400 | else |
21401 | |
21402 | cat >>confdefs.h <<_ACEOF |
21403 | #define off_t long int |
21404 | _ACEOF |
21405 | |
21406 | fi |
21407 | |
21408 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
21409 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
21410 | if test "${ac_cv_type_size_t+set}" = set; then |
21411 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21412 | else |
21413 | cat >conftest.$ac_ext <<_ACEOF |
21414 | /* confdefs.h. */ |
21415 | _ACEOF |
21416 | cat confdefs.h >>conftest.$ac_ext |
21417 | cat >>conftest.$ac_ext <<_ACEOF |
21418 | /* end confdefs.h. */ |
21419 | $ac_includes_default |
21420 | typedef size_t ac__type_new_; |
21421 | int |
21422 | main () |
21423 | { |
21424 | if ((ac__type_new_ *) 0) |
21425 | return 0; |
21426 | if (sizeof (ac__type_new_)) |
21427 | return 0; |
21428 | ; |
21429 | return 0; |
21430 | } |
21431 | _ACEOF |
21432 | rm -f conftest.$ac_objext |
21433 | if { (ac_try="$ac_compile" |
21434 | case "(($ac_try" in |
21435 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21436 | *) ac_try_echo=$ac_try;; |
21437 | esac |
21438 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21439 | (eval "$ac_compile") 2>conftest.er1 |
21440 | ac_status=$? |
21441 | grep -v '^ *+' conftest.er1 >conftest.err |
21442 | rm -f conftest.er1 |
21443 | cat conftest.err >&5 |
21444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21445 | (exit $ac_status); } && { |
21446 | test -z "$ac_c_werror_flag" || |
21447 | test ! -s conftest.err |
21448 | } && test -s conftest.$ac_objext; then |
21449 | ac_cv_type_size_t=yes |
21450 | else |
21451 | echo "$as_me: failed program was:" >&5 |
21452 | sed 's/^/| /' conftest.$ac_ext >&5 |
21453 | |
21454 | ac_cv_type_size_t=no |
21455 | fi |
21456 | |
21457 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21458 | fi |
21459 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
21460 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
21461 | if test $ac_cv_type_size_t = yes; then |
21462 | : |
21463 | else |
21464 | |
21465 | cat >>confdefs.h <<_ACEOF |
21466 | #define size_t unsigned int |
21467 | _ACEOF |
21468 | |
21469 | fi |
21470 | |
21471 | { echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
21472 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6; } |
21473 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then |
21474 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21475 | else |
21476 | cat >conftest.$ac_ext <<_ACEOF |
21477 | /* confdefs.h. */ |
21478 | _ACEOF |
21479 | cat confdefs.h >>conftest.$ac_ext |
21480 | cat >>conftest.$ac_ext <<_ACEOF |
21481 | /* end confdefs.h. */ |
21482 | $ac_includes_default |
21483 | int |
21484 | main () |
21485 | { |
21486 | static struct stat ac_aggr; |
21487 | if (ac_aggr.st_blocks) |
21488 | return 0; |
21489 | ; |
21490 | return 0; |
21491 | } |
21492 | _ACEOF |
21493 | rm -f conftest.$ac_objext |
21494 | if { (ac_try="$ac_compile" |
21495 | case "(($ac_try" in |
21496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21497 | *) ac_try_echo=$ac_try;; |
21498 | esac |
21499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21500 | (eval "$ac_compile") 2>conftest.er1 |
21501 | ac_status=$? |
21502 | grep -v '^ *+' conftest.er1 >conftest.err |
21503 | rm -f conftest.er1 |
21504 | cat conftest.err >&5 |
21505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21506 | (exit $ac_status); } && { |
21507 | test -z "$ac_c_werror_flag" || |
21508 | test ! -s conftest.err |
21509 | } && test -s conftest.$ac_objext; then |
21510 | ac_cv_member_struct_stat_st_blocks=yes |
21511 | else |
21512 | echo "$as_me: failed program was:" >&5 |
21513 | sed 's/^/| /' conftest.$ac_ext >&5 |
21514 | |
21515 | cat >conftest.$ac_ext <<_ACEOF |
21516 | /* confdefs.h. */ |
21517 | _ACEOF |
21518 | cat confdefs.h >>conftest.$ac_ext |
21519 | cat >>conftest.$ac_ext <<_ACEOF |
21520 | /* end confdefs.h. */ |
21521 | $ac_includes_default |
21522 | int |
21523 | main () |
21524 | { |
21525 | static struct stat ac_aggr; |
21526 | if (sizeof ac_aggr.st_blocks) |
21527 | return 0; |
21528 | ; |
21529 | return 0; |
21530 | } |
21531 | _ACEOF |
21532 | rm -f conftest.$ac_objext |
21533 | if { (ac_try="$ac_compile" |
21534 | case "(($ac_try" in |
21535 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21536 | *) ac_try_echo=$ac_try;; |
21537 | esac |
21538 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21539 | (eval "$ac_compile") 2>conftest.er1 |
21540 | ac_status=$? |
21541 | grep -v '^ *+' conftest.er1 >conftest.err |
21542 | rm -f conftest.er1 |
21543 | cat conftest.err >&5 |
21544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21545 | (exit $ac_status); } && { |
21546 | test -z "$ac_c_werror_flag" || |
21547 | test ! -s conftest.err |
21548 | } && test -s conftest.$ac_objext; then |
21549 | ac_cv_member_struct_stat_st_blocks=yes |
21550 | else |
21551 | echo "$as_me: failed program was:" >&5 |
21552 | sed 's/^/| /' conftest.$ac_ext >&5 |
21553 | |
21554 | ac_cv_member_struct_stat_st_blocks=no |
21555 | fi |
21556 | |
21557 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21558 | fi |
21559 | |
21560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21561 | fi |
21562 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 |
21563 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6; } |
21564 | if test $ac_cv_member_struct_stat_st_blocks = yes; then |
21565 | |
21566 | cat >>confdefs.h <<_ACEOF |
21567 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
21568 | _ACEOF |
21569 | |
21570 | |
21571 | cat >>confdefs.h <<\_ACEOF |
21572 | #define HAVE_ST_BLOCKS 1 |
21573 | _ACEOF |
21574 | |
21575 | else |
21576 | case " $LIBOBJS " in |
21577 | *" fileblocks.$ac_objext "* ) ;; |
21578 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" |
21579 | ;; |
21580 | esac |
21581 | |
21582 | fi |
21583 | |
21584 | |
21585 | { echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
21586 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6; } |
21587 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then |
21588 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21589 | else |
21590 | cat >conftest.$ac_ext <<_ACEOF |
21591 | /* confdefs.h. */ |
21592 | _ACEOF |
21593 | cat confdefs.h >>conftest.$ac_ext |
21594 | cat >>conftest.$ac_ext <<_ACEOF |
21595 | /* end confdefs.h. */ |
21596 | $ac_includes_default |
21597 | int |
21598 | main () |
21599 | { |
21600 | static struct stat ac_aggr; |
21601 | if (ac_aggr.st_rdev) |
21602 | return 0; |
21603 | ; |
21604 | return 0; |
21605 | } |
21606 | _ACEOF |
21607 | rm -f conftest.$ac_objext |
21608 | if { (ac_try="$ac_compile" |
21609 | case "(($ac_try" in |
21610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21611 | *) ac_try_echo=$ac_try;; |
21612 | esac |
21613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21614 | (eval "$ac_compile") 2>conftest.er1 |
21615 | ac_status=$? |
21616 | grep -v '^ *+' conftest.er1 >conftest.err |
21617 | rm -f conftest.er1 |
21618 | cat conftest.err >&5 |
21619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21620 | (exit $ac_status); } && { |
21621 | test -z "$ac_c_werror_flag" || |
21622 | test ! -s conftest.err |
21623 | } && test -s conftest.$ac_objext; then |
21624 | ac_cv_member_struct_stat_st_rdev=yes |
21625 | else |
21626 | echo "$as_me: failed program was:" >&5 |
21627 | sed 's/^/| /' conftest.$ac_ext >&5 |
21628 | |
21629 | cat >conftest.$ac_ext <<_ACEOF |
21630 | /* confdefs.h. */ |
21631 | _ACEOF |
21632 | cat confdefs.h >>conftest.$ac_ext |
21633 | cat >>conftest.$ac_ext <<_ACEOF |
21634 | /* end confdefs.h. */ |
21635 | $ac_includes_default |
21636 | int |
21637 | main () |
21638 | { |
21639 | static struct stat ac_aggr; |
21640 | if (sizeof ac_aggr.st_rdev) |
21641 | return 0; |
21642 | ; |
21643 | return 0; |
21644 | } |
21645 | _ACEOF |
21646 | rm -f conftest.$ac_objext |
21647 | if { (ac_try="$ac_compile" |
21648 | case "(($ac_try" in |
21649 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21650 | *) ac_try_echo=$ac_try;; |
21651 | esac |
21652 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21653 | (eval "$ac_compile") 2>conftest.er1 |
21654 | ac_status=$? |
21655 | grep -v '^ *+' conftest.er1 >conftest.err |
21656 | rm -f conftest.er1 |
21657 | cat conftest.err >&5 |
21658 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21659 | (exit $ac_status); } && { |
21660 | test -z "$ac_c_werror_flag" || |
21661 | test ! -s conftest.err |
21662 | } && test -s conftest.$ac_objext; then |
21663 | ac_cv_member_struct_stat_st_rdev=yes |
21664 | else |
21665 | echo "$as_me: failed program was:" >&5 |
21666 | sed 's/^/| /' conftest.$ac_ext >&5 |
21667 | |
21668 | ac_cv_member_struct_stat_st_rdev=no |
21669 | fi |
21670 | |
21671 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21672 | fi |
21673 | |
21674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21675 | fi |
21676 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 |
21677 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6; } |
21678 | if test $ac_cv_member_struct_stat_st_rdev = yes; then |
21679 | |
21680 | cat >>confdefs.h <<_ACEOF |
21681 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
21682 | _ACEOF |
21683 | |
21684 | |
21685 | fi |
21686 | |
21687 | { echo "$as_me:$LINENO: checking for struct stat.st_atim" >&5 |
21688 | echo $ECHO_N "checking for struct stat.st_atim... $ECHO_C" >&6; } |
21689 | if test "${ac_cv_member_struct_stat_st_atim+set}" = set; then |
21690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21691 | else |
21692 | cat >conftest.$ac_ext <<_ACEOF |
21693 | /* confdefs.h. */ |
21694 | _ACEOF |
21695 | cat confdefs.h >>conftest.$ac_ext |
21696 | cat >>conftest.$ac_ext <<_ACEOF |
21697 | /* end confdefs.h. */ |
21698 | $ac_includes_default |
21699 | int |
21700 | main () |
21701 | { |
21702 | static struct stat ac_aggr; |
21703 | if (ac_aggr.st_atim) |
21704 | return 0; |
21705 | ; |
21706 | return 0; |
21707 | } |
21708 | _ACEOF |
21709 | rm -f conftest.$ac_objext |
21710 | if { (ac_try="$ac_compile" |
21711 | case "(($ac_try" in |
21712 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21713 | *) ac_try_echo=$ac_try;; |
21714 | esac |
21715 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21716 | (eval "$ac_compile") 2>conftest.er1 |
21717 | ac_status=$? |
21718 | grep -v '^ *+' conftest.er1 >conftest.err |
21719 | rm -f conftest.er1 |
21720 | cat conftest.err >&5 |
21721 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21722 | (exit $ac_status); } && { |
21723 | test -z "$ac_c_werror_flag" || |
21724 | test ! -s conftest.err |
21725 | } && test -s conftest.$ac_objext; then |
21726 | ac_cv_member_struct_stat_st_atim=yes |
21727 | else |
21728 | echo "$as_me: failed program was:" >&5 |
21729 | sed 's/^/| /' conftest.$ac_ext >&5 |
21730 | |
21731 | cat >conftest.$ac_ext <<_ACEOF |
21732 | /* confdefs.h. */ |
21733 | _ACEOF |
21734 | cat confdefs.h >>conftest.$ac_ext |
21735 | cat >>conftest.$ac_ext <<_ACEOF |
21736 | /* end confdefs.h. */ |
21737 | $ac_includes_default |
21738 | int |
21739 | main () |
21740 | { |
21741 | static struct stat ac_aggr; |
21742 | if (sizeof ac_aggr.st_atim) |
21743 | return 0; |
21744 | ; |
21745 | return 0; |
21746 | } |
21747 | _ACEOF |
21748 | rm -f conftest.$ac_objext |
21749 | if { (ac_try="$ac_compile" |
21750 | case "(($ac_try" in |
21751 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21752 | *) ac_try_echo=$ac_try;; |
21753 | esac |
21754 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21755 | (eval "$ac_compile") 2>conftest.er1 |
21756 | ac_status=$? |
21757 | grep -v '^ *+' conftest.er1 >conftest.err |
21758 | rm -f conftest.er1 |
21759 | cat conftest.err >&5 |
21760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21761 | (exit $ac_status); } && { |
21762 | test -z "$ac_c_werror_flag" || |
21763 | test ! -s conftest.err |
21764 | } && test -s conftest.$ac_objext; then |
21765 | ac_cv_member_struct_stat_st_atim=yes |
21766 | else |
21767 | echo "$as_me: failed program was:" >&5 |
21768 | sed 's/^/| /' conftest.$ac_ext >&5 |
21769 | |
21770 | ac_cv_member_struct_stat_st_atim=no |
21771 | fi |
21772 | |
21773 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21774 | fi |
21775 | |
21776 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21777 | fi |
21778 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atim" >&5 |
21779 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_atim" >&6; } |
21780 | if test $ac_cv_member_struct_stat_st_atim = yes; then |
21781 | |
21782 | cat >>confdefs.h <<_ACEOF |
21783 | #define HAVE_STRUCT_STAT_ST_ATIM 1 |
21784 | _ACEOF |
21785 | |
21786 | |
21787 | fi |
21788 | |
21789 | { echo "$as_me:$LINENO: checking for struct stat.st_atimespec" >&5 |
21790 | echo $ECHO_N "checking for struct stat.st_atimespec... $ECHO_C" >&6; } |
21791 | if test "${ac_cv_member_struct_stat_st_atimespec+set}" = set; then |
21792 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21793 | else |
21794 | cat >conftest.$ac_ext <<_ACEOF |
21795 | /* confdefs.h. */ |
21796 | _ACEOF |
21797 | cat confdefs.h >>conftest.$ac_ext |
21798 | cat >>conftest.$ac_ext <<_ACEOF |
21799 | /* end confdefs.h. */ |
21800 | $ac_includes_default |
21801 | int |
21802 | main () |
21803 | { |
21804 | static struct stat ac_aggr; |
21805 | if (ac_aggr.st_atimespec) |
21806 | return 0; |
21807 | ; |
21808 | return 0; |
21809 | } |
21810 | _ACEOF |
21811 | rm -f conftest.$ac_objext |
21812 | if { (ac_try="$ac_compile" |
21813 | case "(($ac_try" in |
21814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21815 | *) ac_try_echo=$ac_try;; |
21816 | esac |
21817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21818 | (eval "$ac_compile") 2>conftest.er1 |
21819 | ac_status=$? |
21820 | grep -v '^ *+' conftest.er1 >conftest.err |
21821 | rm -f conftest.er1 |
21822 | cat conftest.err >&5 |
21823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21824 | (exit $ac_status); } && { |
21825 | test -z "$ac_c_werror_flag" || |
21826 | test ! -s conftest.err |
21827 | } && test -s conftest.$ac_objext; then |
21828 | ac_cv_member_struct_stat_st_atimespec=yes |
21829 | else |
21830 | echo "$as_me: failed program was:" >&5 |
21831 | sed 's/^/| /' conftest.$ac_ext >&5 |
21832 | |
21833 | cat >conftest.$ac_ext <<_ACEOF |
21834 | /* confdefs.h. */ |
21835 | _ACEOF |
21836 | cat confdefs.h >>conftest.$ac_ext |
21837 | cat >>conftest.$ac_ext <<_ACEOF |
21838 | /* end confdefs.h. */ |
21839 | $ac_includes_default |
21840 | int |
21841 | main () |
21842 | { |
21843 | static struct stat ac_aggr; |
21844 | if (sizeof ac_aggr.st_atimespec) |
21845 | return 0; |
21846 | ; |
21847 | return 0; |
21848 | } |
21849 | _ACEOF |
21850 | rm -f conftest.$ac_objext |
21851 | if { (ac_try="$ac_compile" |
21852 | case "(($ac_try" in |
21853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21854 | *) ac_try_echo=$ac_try;; |
21855 | esac |
21856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21857 | (eval "$ac_compile") 2>conftest.er1 |
21858 | ac_status=$? |
21859 | grep -v '^ *+' conftest.er1 >conftest.err |
21860 | rm -f conftest.er1 |
21861 | cat conftest.err >&5 |
21862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21863 | (exit $ac_status); } && { |
21864 | test -z "$ac_c_werror_flag" || |
21865 | test ! -s conftest.err |
21866 | } && test -s conftest.$ac_objext; then |
21867 | ac_cv_member_struct_stat_st_atimespec=yes |
21868 | else |
21869 | echo "$as_me: failed program was:" >&5 |
21870 | sed 's/^/| /' conftest.$ac_ext >&5 |
21871 | |
21872 | ac_cv_member_struct_stat_st_atimespec=no |
21873 | fi |
21874 | |
21875 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21876 | fi |
21877 | |
21878 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21879 | fi |
21880 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimespec" >&5 |
21881 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimespec" >&6; } |
21882 | if test $ac_cv_member_struct_stat_st_atimespec = yes; then |
21883 | |
21884 | cat >>confdefs.h <<_ACEOF |
21885 | #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1 |
21886 | _ACEOF |
21887 | |
21888 | |
21889 | fi |
21890 | |
21891 | { echo "$as_me:$LINENO: checking for struct stat.st_atimensec" >&5 |
21892 | echo $ECHO_N "checking for struct stat.st_atimensec... $ECHO_C" >&6; } |
21893 | if test "${ac_cv_member_struct_stat_st_atimensec+set}" = set; then |
21894 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21895 | else |
21896 | cat >conftest.$ac_ext <<_ACEOF |
21897 | /* confdefs.h. */ |
21898 | _ACEOF |
21899 | cat confdefs.h >>conftest.$ac_ext |
21900 | cat >>conftest.$ac_ext <<_ACEOF |
21901 | /* end confdefs.h. */ |
21902 | $ac_includes_default |
21903 | int |
21904 | main () |
21905 | { |
21906 | static struct stat ac_aggr; |
21907 | if (ac_aggr.st_atimensec) |
21908 | return 0; |
21909 | ; |
21910 | return 0; |
21911 | } |
21912 | _ACEOF |
21913 | rm -f conftest.$ac_objext |
21914 | if { (ac_try="$ac_compile" |
21915 | case "(($ac_try" in |
21916 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21917 | *) ac_try_echo=$ac_try;; |
21918 | esac |
21919 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21920 | (eval "$ac_compile") 2>conftest.er1 |
21921 | ac_status=$? |
21922 | grep -v '^ *+' conftest.er1 >conftest.err |
21923 | rm -f conftest.er1 |
21924 | cat conftest.err >&5 |
21925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21926 | (exit $ac_status); } && { |
21927 | test -z "$ac_c_werror_flag" || |
21928 | test ! -s conftest.err |
21929 | } && test -s conftest.$ac_objext; then |
21930 | ac_cv_member_struct_stat_st_atimensec=yes |
21931 | else |
21932 | echo "$as_me: failed program was:" >&5 |
21933 | sed 's/^/| /' conftest.$ac_ext >&5 |
21934 | |
21935 | cat >conftest.$ac_ext <<_ACEOF |
21936 | /* confdefs.h. */ |
21937 | _ACEOF |
21938 | cat confdefs.h >>conftest.$ac_ext |
21939 | cat >>conftest.$ac_ext <<_ACEOF |
21940 | /* end confdefs.h. */ |
21941 | $ac_includes_default |
21942 | int |
21943 | main () |
21944 | { |
21945 | static struct stat ac_aggr; |
21946 | if (sizeof ac_aggr.st_atimensec) |
21947 | return 0; |
21948 | ; |
21949 | return 0; |
21950 | } |
21951 | _ACEOF |
21952 | rm -f conftest.$ac_objext |
21953 | if { (ac_try="$ac_compile" |
21954 | case "(($ac_try" in |
21955 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21956 | *) ac_try_echo=$ac_try;; |
21957 | esac |
21958 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21959 | (eval "$ac_compile") 2>conftest.er1 |
21960 | ac_status=$? |
21961 | grep -v '^ *+' conftest.er1 >conftest.err |
21962 | rm -f conftest.er1 |
21963 | cat conftest.err >&5 |
21964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21965 | (exit $ac_status); } && { |
21966 | test -z "$ac_c_werror_flag" || |
21967 | test ! -s conftest.err |
21968 | } && test -s conftest.$ac_objext; then |
21969 | ac_cv_member_struct_stat_st_atimensec=yes |
21970 | else |
21971 | echo "$as_me: failed program was:" >&5 |
21972 | sed 's/^/| /' conftest.$ac_ext >&5 |
21973 | |
21974 | ac_cv_member_struct_stat_st_atimensec=no |
21975 | fi |
21976 | |
21977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21978 | fi |
21979 | |
21980 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21981 | fi |
21982 | { echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_atimensec" >&5 |
21983 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_atimensec" >&6; } |
21984 | if test $ac_cv_member_struct_stat_st_atimensec = yes; then |
21985 | |
21986 | cat >>confdefs.h <<_ACEOF |
21987 | #define HAVE_STRUCT_STAT_ST_ATIMENSEC 1 |
21988 | _ACEOF |
21989 | |
21990 | |
21991 | fi |
21992 | |
21993 | |
21994 | # For the 'nfconv' patch (Mac OS X only): |
21995 | case "${target_os}" in |
21996 | darwin*) |
21997 | if test "${enable_nfconv}" = "yes"; then |
21998 | if test "${ac_cv_header_CoreFoundation_CoreFoundation_h+set}" = set; then |
21999 | { echo "$as_me:$LINENO: checking for CoreFoundation/CoreFoundation.h" >&5 |
22000 | echo $ECHO_N "checking for CoreFoundation/CoreFoundation.h... $ECHO_C" >&6; } |
22001 | if test "${ac_cv_header_CoreFoundation_CoreFoundation_h+set}" = set; then |
22002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22003 | fi |
22004 | { echo "$as_me:$LINENO: result: $ac_cv_header_CoreFoundation_CoreFoundation_h" >&5 |
22005 | echo "${ECHO_T}$ac_cv_header_CoreFoundation_CoreFoundation_h" >&6; } |
22006 | else |
22007 | # Is the header compilable? |
22008 | { echo "$as_me:$LINENO: checking CoreFoundation/CoreFoundation.h usability" >&5 |
22009 | echo $ECHO_N "checking CoreFoundation/CoreFoundation.h usability... $ECHO_C" >&6; } |
22010 | cat >conftest.$ac_ext <<_ACEOF |
22011 | /* confdefs.h. */ |
22012 | _ACEOF |
22013 | cat confdefs.h >>conftest.$ac_ext |
22014 | cat >>conftest.$ac_ext <<_ACEOF |
22015 | /* end confdefs.h. */ |
22016 | $ac_includes_default |
22017 | #include <CoreFoundation/CoreFoundation.h> |
22018 | _ACEOF |
22019 | rm -f conftest.$ac_objext |
22020 | if { (ac_try="$ac_compile" |
22021 | case "(($ac_try" in |
22022 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22023 | *) ac_try_echo=$ac_try;; |
22024 | esac |
22025 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22026 | (eval "$ac_compile") 2>conftest.er1 |
22027 | ac_status=$? |
22028 | grep -v '^ *+' conftest.er1 >conftest.err |
22029 | rm -f conftest.er1 |
22030 | cat conftest.err >&5 |
22031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22032 | (exit $ac_status); } && { |
22033 | test -z "$ac_c_werror_flag" || |
22034 | test ! -s conftest.err |
22035 | } && test -s conftest.$ac_objext; then |
22036 | ac_header_compiler=yes |
22037 | else |
22038 | echo "$as_me: failed program was:" >&5 |
22039 | sed 's/^/| /' conftest.$ac_ext >&5 |
22040 | |
22041 | ac_header_compiler=no |
22042 | fi |
22043 | |
22044 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22045 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22046 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
22047 | |
22048 | # Is the header present? |
22049 | { echo "$as_me:$LINENO: checking CoreFoundation/CoreFoundation.h presence" >&5 |
22050 | echo $ECHO_N "checking CoreFoundation/CoreFoundation.h presence... $ECHO_C" >&6; } |
22051 | cat >conftest.$ac_ext <<_ACEOF |
22052 | /* confdefs.h. */ |
22053 | _ACEOF |
22054 | cat confdefs.h >>conftest.$ac_ext |
22055 | cat >>conftest.$ac_ext <<_ACEOF |
22056 | /* end confdefs.h. */ |
22057 | #include <CoreFoundation/CoreFoundation.h> |
22058 | _ACEOF |
22059 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22060 | case "(($ac_try" in |
22061 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22062 | *) ac_try_echo=$ac_try;; |
22063 | esac |
22064 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22065 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
22066 | ac_status=$? |
22067 | grep -v '^ *+' conftest.er1 >conftest.err |
22068 | rm -f conftest.er1 |
22069 | cat conftest.err >&5 |
22070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22071 | (exit $ac_status); } >/dev/null && { |
22072 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
22073 | test ! -s conftest.err |
22074 | }; then |
22075 | ac_header_preproc=yes |
22076 | else |
22077 | echo "$as_me: failed program was:" >&5 |
22078 | sed 's/^/| /' conftest.$ac_ext >&5 |
22079 | |
22080 | ac_header_preproc=no |
22081 | fi |
22082 | |
22083 | rm -f conftest.err conftest.$ac_ext |
22084 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22085 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
22086 | |
22087 | # So? What about this header? |
22088 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22089 | yes:no: ) |
22090 | { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: accepted by the compiler, rejected by the preprocessor!" >&5 |
22091 | echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: accepted by the compiler, rejected by the preprocessor!" >&2;} |
22092 | { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: proceeding with the compiler's result" >&5 |
22093 | echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: proceeding with the compiler's result" >&2;} |
22094 | ac_header_preproc=yes |
22095 | ;; |
22096 | no:yes:* ) |
22097 | { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: present but cannot be compiled" >&5 |
22098 | echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: present but cannot be compiled" >&2;} |
22099 | { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: check for missing prerequisite headers?" >&5 |
22100 | echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: check for missing prerequisite headers?" >&2;} |
22101 | { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: see the Autoconf documentation" >&5 |
22102 | echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: see the Autoconf documentation" >&2;} |
22103 | { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: section \"Present But Cannot Be Compiled\"" >&5 |
22104 | echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: section \"Present But Cannot Be Compiled\"" >&2;} |
22105 | { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: proceeding with the preprocessor's result" >&5 |
22106 | echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: proceeding with the preprocessor's result" >&2;} |
22107 | { echo "$as_me:$LINENO: WARNING: CoreFoundation/CoreFoundation.h: in the future, the compiler will take precedence" >&5 |
22108 | echo "$as_me: WARNING: CoreFoundation/CoreFoundation.h: in the future, the compiler will take precedence" >&2;} |
22109 | ( cat <<\_ASBOX |
22110 | ## ----------------------------------------- ## |
22111 | ## Report this to ntfs-3g-devel@lists.sf.net ## |
22112 | ## ----------------------------------------- ## |
22113 | _ASBOX |
22114 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
22115 | ;; |
22116 | esac |
22117 | { echo "$as_me:$LINENO: checking for CoreFoundation/CoreFoundation.h" >&5 |
22118 | echo $ECHO_N "checking for CoreFoundation/CoreFoundation.h... $ECHO_C" >&6; } |
22119 | if test "${ac_cv_header_CoreFoundation_CoreFoundation_h+set}" = set; then |
22120 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22121 | else |
22122 | ac_cv_header_CoreFoundation_CoreFoundation_h=$ac_header_preproc |
22123 | fi |
22124 | { echo "$as_me:$LINENO: result: $ac_cv_header_CoreFoundation_CoreFoundation_h" >&5 |
22125 | echo "${ECHO_T}$ac_cv_header_CoreFoundation_CoreFoundation_h" >&6; } |
22126 | |
22127 | fi |
22128 | if test $ac_cv_header_CoreFoundation_CoreFoundation_h = yes; then |
22129 | |
22130 | LDFLAGS="${LDFLAGS} -framework CoreFoundation" |
22131 | |
22132 | cat >>confdefs.h <<\_ACEOF |
22133 | #define ENABLE_NFCONV 1 |
22134 | _ACEOF |
22135 | |
22136 | |
22137 | else |
22138 | { { echo "$as_me:$LINENO: error: Cannot find CoreFoundation required for 'nfconv' functionality Mac OS X. You may use the --disable-nfconv 'configure' option to avoid this error." >&5 |
22139 | echo "$as_me: error: Cannot find CoreFoundation required for 'nfconv' functionality Mac OS X. You may use the --disable-nfconv 'configure' option to avoid this error." >&2;} |
22140 | { (exit 1); exit 1; }; } |
22141 | |
22142 | fi |
22143 | |
22144 | |
22145 | fi |
22146 | ;; |
22147 | esac |
22148 | |
22149 | # Checks for library functions. |
22150 | # getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, |
22151 | # -lseq on Dynix/PTX, -lgen on Unixware. |
22152 | { echo "$as_me:$LINENO: checking for library containing getmntent" >&5 |
22153 | echo $ECHO_N "checking for library containing getmntent... $ECHO_C" >&6; } |
22154 | if test "${ac_cv_search_getmntent+set}" = set; then |
22155 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22156 | else |
22157 | ac_func_search_save_LIBS=$LIBS |
22158 | cat >conftest.$ac_ext <<_ACEOF |
22159 | /* confdefs.h. */ |
22160 | _ACEOF |
22161 | cat confdefs.h >>conftest.$ac_ext |
22162 | cat >>conftest.$ac_ext <<_ACEOF |
22163 | /* end confdefs.h. */ |
22164 | |
22165 | /* Override any GCC internal prototype to avoid an error. |
22166 | Use char because int might match the return type of a GCC |
22167 | builtin and then its argument prototype would still apply. */ |
22168 | #ifdef __cplusplus |
22169 | extern "C" |
22170 | #endif |
22171 | char getmntent (); |
22172 | int |
22173 | main () |
22174 | { |
22175 | return getmntent (); |
22176 | ; |
22177 | return 0; |
22178 | } |
22179 | _ACEOF |
22180 | for ac_lib in '' sun seq gen; do |
22181 | if test -z "$ac_lib"; then |
22182 | ac_res="none required" |
22183 | else |
22184 | ac_res=-l$ac_lib |
22185 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" |
22186 | fi |
22187 | rm -f conftest.$ac_objext conftest$ac_exeext |
22188 | if { (ac_try="$ac_link" |
22189 | case "(($ac_try" in |
22190 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22191 | *) ac_try_echo=$ac_try;; |
22192 | esac |
22193 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22194 | (eval "$ac_link") 2>conftest.er1 |
22195 | ac_status=$? |
22196 | grep -v '^ *+' conftest.er1 >conftest.err |
22197 | rm -f conftest.er1 |
22198 | cat conftest.err >&5 |
22199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22200 | (exit $ac_status); } && { |
22201 | test -z "$ac_c_werror_flag" || |
22202 | test ! -s conftest.err |
22203 | } && test -s conftest$ac_exeext && |
22204 | $as_test_x conftest$ac_exeext; then |
22205 | ac_cv_search_getmntent=$ac_res |
22206 | else |
22207 | echo "$as_me: failed program was:" >&5 |
22208 | sed 's/^/| /' conftest.$ac_ext >&5 |
22209 | |
22210 | |
22211 | fi |
22212 | |
22213 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
22214 | conftest$ac_exeext |
22215 | if test "${ac_cv_search_getmntent+set}" = set; then |
22216 | break |
22217 | fi |
22218 | done |
22219 | if test "${ac_cv_search_getmntent+set}" = set; then |
22220 | : |
22221 | else |
22222 | ac_cv_search_getmntent=no |
22223 | fi |
22224 | rm conftest.$ac_ext |
22225 | LIBS=$ac_func_search_save_LIBS |
22226 | fi |
22227 | { echo "$as_me:$LINENO: result: $ac_cv_search_getmntent" >&5 |
22228 | echo "${ECHO_T}$ac_cv_search_getmntent" >&6; } |
22229 | ac_res=$ac_cv_search_getmntent |
22230 | if test "$ac_res" != no; then |
22231 | test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" |
22232 | ac_cv_func_getmntent=yes |
22233 | |
22234 | cat >>confdefs.h <<\_ACEOF |
22235 | #define HAVE_GETMNTENT |
22236 | _ACEOF |
22237 | |
22238 | else |
22239 | ac_cv_func_getmntent=no |
22240 | fi |
22241 | |
22242 | |
22243 | |
22244 | { echo "$as_me:$LINENO: checking whether mbrtowc and mbstate_t are properly declared" >&5 |
22245 | echo $ECHO_N "checking whether mbrtowc and mbstate_t are properly declared... $ECHO_C" >&6; } |
22246 | if test "${ac_cv_func_mbrtowc+set}" = set; then |
22247 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22248 | else |
22249 | cat >conftest.$ac_ext <<_ACEOF |
22250 | /* confdefs.h. */ |
22251 | _ACEOF |
22252 | cat confdefs.h >>conftest.$ac_ext |
22253 | cat >>conftest.$ac_ext <<_ACEOF |
22254 | /* end confdefs.h. */ |
22255 | #include <wchar.h> |
22256 | int |
22257 | main () |
22258 | { |
22259 | wchar_t wc; |
22260 | char const s[] = ""; |
22261 | size_t n = 1; |
22262 | mbstate_t state; |
22263 | return ! (sizeof state && (mbrtowc) (&wc, s, n, &state)); |
22264 | ; |
22265 | return 0; |
22266 | } |
22267 | _ACEOF |
22268 | rm -f conftest.$ac_objext conftest$ac_exeext |
22269 | if { (ac_try="$ac_link" |
22270 | case "(($ac_try" in |
22271 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22272 | *) ac_try_echo=$ac_try;; |
22273 | esac |
22274 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22275 | (eval "$ac_link") 2>conftest.er1 |
22276 | ac_status=$? |
22277 | grep -v '^ *+' conftest.er1 >conftest.err |
22278 | rm -f conftest.er1 |
22279 | cat conftest.err >&5 |
22280 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22281 | (exit $ac_status); } && { |
22282 | test -z "$ac_c_werror_flag" || |
22283 | test ! -s conftest.err |
22284 | } && test -s conftest$ac_exeext && |
22285 | $as_test_x conftest$ac_exeext; then |
22286 | ac_cv_func_mbrtowc=yes |
22287 | else |
22288 | echo "$as_me: failed program was:" >&5 |
22289 | sed 's/^/| /' conftest.$ac_ext >&5 |
22290 | |
22291 | ac_cv_func_mbrtowc=no |
22292 | fi |
22293 | |
22294 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
22295 | conftest$ac_exeext conftest.$ac_ext |
22296 | fi |
22297 | { echo "$as_me:$LINENO: result: $ac_cv_func_mbrtowc" >&5 |
22298 | echo "${ECHO_T}$ac_cv_func_mbrtowc" >&6; } |
22299 | if test $ac_cv_func_mbrtowc = yes; then |
22300 | |
22301 | cat >>confdefs.h <<\_ACEOF |
22302 | #define HAVE_MBRTOWC 1 |
22303 | _ACEOF |
22304 | |
22305 | fi |
22306 | |
22307 | { echo "$as_me:$LINENO: checking for working memcmp" >&5 |
22308 | echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6; } |
22309 | if test "${ac_cv_func_memcmp_working+set}" = set; then |
22310 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22311 | else |
22312 | if test "$cross_compiling" = yes; then |
22313 | ac_cv_func_memcmp_working=no |
22314 | else |
22315 | cat >conftest.$ac_ext <<_ACEOF |
22316 | /* confdefs.h. */ |
22317 | _ACEOF |
22318 | cat confdefs.h >>conftest.$ac_ext |
22319 | cat >>conftest.$ac_ext <<_ACEOF |
22320 | /* end confdefs.h. */ |
22321 | $ac_includes_default |
22322 | int |
22323 | main () |
22324 | { |
22325 | |
22326 | /* Some versions of memcmp are not 8-bit clean. */ |
22327 | char c0 = '\100', c1 = '\200', c2 = '\201'; |
22328 | if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0) |
22329 | return 1; |
22330 | |
22331 | /* The Next x86 OpenStep bug shows up only when comparing 16 bytes |
22332 | or more and with at least one buffer not starting on a 4-byte boundary. |
22333 | William Lewis provided this test program. */ |
22334 | { |
22335 | char foo[21]; |
22336 | char bar[21]; |
22337 | int i; |
22338 | for (i = 0; i < 4; i++) |
22339 | { |
22340 | char *a = foo + i; |
22341 | char *b = bar + i; |
22342 | strcpy (a, "--------01111111"); |
22343 | strcpy (b, "--------10000000"); |
22344 | if (memcmp (a, b, 16) >= 0) |
22345 | return 1; |
22346 | } |
22347 | return 0; |
22348 | } |
22349 | |
22350 | ; |
22351 | return 0; |
22352 | } |
22353 | _ACEOF |
22354 | rm -f conftest$ac_exeext |
22355 | if { (ac_try="$ac_link" |
22356 | case "(($ac_try" in |
22357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22358 | *) ac_try_echo=$ac_try;; |
22359 | esac |
22360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22361 | (eval "$ac_link") 2>&5 |
22362 | ac_status=$? |
22363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22364 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
22365 | { (case "(($ac_try" in |
22366 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22367 | *) ac_try_echo=$ac_try;; |
22368 | esac |
22369 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22370 | (eval "$ac_try") 2>&5 |
22371 | ac_status=$? |
22372 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22373 | (exit $ac_status); }; }; then |
22374 | ac_cv_func_memcmp_working=yes |
22375 | else |
22376 | echo "$as_me: program exited with status $ac_status" >&5 |
22377 | echo "$as_me: failed program was:" >&5 |
22378 | sed 's/^/| /' conftest.$ac_ext >&5 |
22379 | |
22380 | ( exit $ac_status ) |
22381 | ac_cv_func_memcmp_working=no |
22382 | fi |
22383 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
22384 | fi |
22385 | |
22386 | |
22387 | fi |
22388 | { echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5 |
22389 | echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6; } |
22390 | test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in |
22391 | *" memcmp.$ac_objext "* ) ;; |
22392 | *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" |
22393 | ;; |
22394 | esac |
22395 | |
22396 | |
22397 | { echo "$as_me:$LINENO: checking whether lstat dereferences a symlink specified with a trailing slash" >&5 |
22398 | echo $ECHO_N "checking whether lstat dereferences a symlink specified with a trailing slash... $ECHO_C" >&6; } |
22399 | if test "${ac_cv_func_lstat_dereferences_slashed_symlink+set}" = set; then |
22400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22401 | else |
22402 | rm -f conftest.sym conftest.file |
22403 | echo >conftest.file |
22404 | if test "$as_ln_s" = "ln -s" && ln -s conftest.file conftest.sym; then |
22405 | if test "$cross_compiling" = yes; then |
22406 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
22407 | else |
22408 | cat >conftest.$ac_ext <<_ACEOF |
22409 | /* confdefs.h. */ |
22410 | _ACEOF |
22411 | cat confdefs.h >>conftest.$ac_ext |
22412 | cat >>conftest.$ac_ext <<_ACEOF |
22413 | /* end confdefs.h. */ |
22414 | $ac_includes_default |
22415 | int |
22416 | main () |
22417 | { |
22418 | struct stat sbuf; |
22419 | /* Linux will dereference the symlink and fail. |
22420 | That is better in the sense that it means we will not |
22421 | have to compile and use the lstat wrapper. */ |
22422 | return lstat ("conftest.sym/", &sbuf) == 0; |
22423 | ; |
22424 | return 0; |
22425 | } |
22426 | _ACEOF |
22427 | rm -f conftest$ac_exeext |
22428 | if { (ac_try="$ac_link" |
22429 | case "(($ac_try" in |
22430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22431 | *) ac_try_echo=$ac_try;; |
22432 | esac |
22433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22434 | (eval "$ac_link") 2>&5 |
22435 | ac_status=$? |
22436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22437 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
22438 | { (case "(($ac_try" in |
22439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22440 | *) ac_try_echo=$ac_try;; |
22441 | esac |
22442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22443 | (eval "$ac_try") 2>&5 |
22444 | ac_status=$? |
22445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22446 | (exit $ac_status); }; }; then |
22447 | ac_cv_func_lstat_dereferences_slashed_symlink=yes |
22448 | else |
22449 | echo "$as_me: program exited with status $ac_status" >&5 |
22450 | echo "$as_me: failed program was:" >&5 |
22451 | sed 's/^/| /' conftest.$ac_ext >&5 |
22452 | |
22453 | ( exit $ac_status ) |
22454 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
22455 | fi |
22456 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
22457 | fi |
22458 | |
22459 | |
22460 | else |
22461 | # If the `ln -s' command failed, then we probably don't even |
22462 | # have an lstat function. |
22463 | ac_cv_func_lstat_dereferences_slashed_symlink=no |
22464 | fi |
22465 | rm -f conftest.sym conftest.file |
22466 | |
22467 | fi |
22468 | { echo "$as_me:$LINENO: result: $ac_cv_func_lstat_dereferences_slashed_symlink" >&5 |
22469 | echo "${ECHO_T}$ac_cv_func_lstat_dereferences_slashed_symlink" >&6; } |
22470 | |
22471 | test $ac_cv_func_lstat_dereferences_slashed_symlink = yes && |
22472 | |
22473 | cat >>confdefs.h <<_ACEOF |
22474 | #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1 |
22475 | _ACEOF |
22476 | |
22477 | |
22478 | if test $ac_cv_func_lstat_dereferences_slashed_symlink = no; then |
22479 | case " $LIBOBJS " in |
22480 | *" lstat.$ac_objext "* ) ;; |
22481 | *) LIBOBJS="$LIBOBJS lstat.$ac_objext" |
22482 | ;; |
22483 | esac |
22484 | |
22485 | fi |
22486 | |
22487 | { echo "$as_me:$LINENO: checking whether stat accepts an empty string" >&5 |
22488 | echo $ECHO_N "checking whether stat accepts an empty string... $ECHO_C" >&6; } |
22489 | if test "${ac_cv_func_stat_empty_string_bug+set}" = set; then |
22490 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22491 | else |
22492 | if test "$cross_compiling" = yes; then |
22493 | ac_cv_func_stat_empty_string_bug=yes |
22494 | else |
22495 | cat >conftest.$ac_ext <<_ACEOF |
22496 | /* confdefs.h. */ |
22497 | _ACEOF |
22498 | cat confdefs.h >>conftest.$ac_ext |
22499 | cat >>conftest.$ac_ext <<_ACEOF |
22500 | /* end confdefs.h. */ |
22501 | $ac_includes_default |
22502 | int |
22503 | main () |
22504 | { |
22505 | struct stat sbuf; |
22506 | return stat ("", &sbuf) == 0; |
22507 | ; |
22508 | return 0; |
22509 | } |
22510 | _ACEOF |
22511 | rm -f conftest$ac_exeext |
22512 | if { (ac_try="$ac_link" |
22513 | case "(($ac_try" in |
22514 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22515 | *) ac_try_echo=$ac_try;; |
22516 | esac |
22517 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22518 | (eval "$ac_link") 2>&5 |
22519 | ac_status=$? |
22520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22521 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
22522 | { (case "(($ac_try" in |
22523 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22524 | *) ac_try_echo=$ac_try;; |
22525 | esac |
22526 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22527 | (eval "$ac_try") 2>&5 |
22528 | ac_status=$? |
22529 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22530 | (exit $ac_status); }; }; then |
22531 | ac_cv_func_stat_empty_string_bug=no |
22532 | else |
22533 | echo "$as_me: program exited with status $ac_status" >&5 |
22534 | echo "$as_me: failed program was:" >&5 |
22535 | sed 's/^/| /' conftest.$ac_ext >&5 |
22536 | |
22537 | ( exit $ac_status ) |
22538 | ac_cv_func_stat_empty_string_bug=yes |
22539 | fi |
22540 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
22541 | fi |
22542 | |
22543 | |
22544 | fi |
22545 | { echo "$as_me:$LINENO: result: $ac_cv_func_stat_empty_string_bug" >&5 |
22546 | echo "${ECHO_T}$ac_cv_func_stat_empty_string_bug" >&6; } |
22547 | if test $ac_cv_func_stat_empty_string_bug = yes; then |
22548 | case " $LIBOBJS " in |
22549 | *" stat.$ac_objext "* ) ;; |
22550 | *) LIBOBJS="$LIBOBJS stat.$ac_objext" |
22551 | ;; |
22552 | esac |
22553 | |
22554 | |
22555 | cat >>confdefs.h <<_ACEOF |
22556 | #define HAVE_STAT_EMPTY_STRING_BUG 1 |
22557 | _ACEOF |
22558 | |
22559 | fi |
22560 | |
22561 | |
22562 | for ac_func in strftime |
22563 | do |
22564 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
22565 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22566 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
22567 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
22568 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22569 | else |
22570 | cat >conftest.$ac_ext <<_ACEOF |
22571 | /* confdefs.h. */ |
22572 | _ACEOF |
22573 | cat confdefs.h >>conftest.$ac_ext |
22574 | cat >>conftest.$ac_ext <<_ACEOF |
22575 | /* end confdefs.h. */ |
22576 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22577 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
22578 | #define $ac_func innocuous_$ac_func |
22579 | |
22580 | /* System header to define __stub macros and hopefully few prototypes, |
22581 | which can conflict with char $ac_func (); below. |
22582 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22583 | <limits.h> exists even on freestanding compilers. */ |
22584 | |
22585 | #ifdef __STDC__ |
22586 | # include <limits.h> |
22587 | #else |
22588 | # include <assert.h> |
22589 | #endif |
22590 | |
22591 | #undef $ac_func |
22592 | |
22593 | /* Override any GCC internal prototype to avoid an error. |
22594 | Use char because int might match the return type of a GCC |
22595 | builtin and then its argument prototype would still apply. */ |
22596 | #ifdef __cplusplus |
22597 | extern "C" |
22598 | #endif |
22599 | char $ac_func (); |
22600 | /* The GNU C library defines this for functions which it implements |
22601 | to always fail with ENOSYS. Some functions are actually named |
22602 | something starting with __ and the normal name is an alias. */ |
22603 | #if defined __stub_$ac_func || defined __stub___$ac_func |
22604 | choke me |
22605 | #endif |
22606 | |
22607 | int |
22608 | main () |
22609 | { |
22610 | return $ac_func (); |
22611 | ; |
22612 | return 0; |
22613 | } |
22614 | _ACEOF |
22615 | rm -f conftest.$ac_objext conftest$ac_exeext |
22616 | if { (ac_try="$ac_link" |
22617 | case "(($ac_try" in |
22618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22619 | *) ac_try_echo=$ac_try;; |
22620 | esac |
22621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22622 | (eval "$ac_link") 2>conftest.er1 |
22623 | ac_status=$? |
22624 | grep -v '^ *+' conftest.er1 >conftest.err |
22625 | rm -f conftest.er1 |
22626 | cat conftest.err >&5 |
22627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22628 | (exit $ac_status); } && { |
22629 | test -z "$ac_c_werror_flag" || |
22630 | test ! -s conftest.err |
22631 | } && test -s conftest$ac_exeext && |
22632 | $as_test_x conftest$ac_exeext; then |
22633 | eval "$as_ac_var=yes" |
22634 | else |
22635 | echo "$as_me: failed program was:" >&5 |
22636 | sed 's/^/| /' conftest.$ac_ext >&5 |
22637 | |
22638 | eval "$as_ac_var=no" |
22639 | fi |
22640 | |
22641 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
22642 | conftest$ac_exeext conftest.$ac_ext |
22643 | fi |
22644 | ac_res=`eval echo '${'$as_ac_var'}'` |
22645 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22646 | echo "${ECHO_T}$ac_res" >&6; } |
22647 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
22648 | cat >>confdefs.h <<_ACEOF |
22649 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
22650 | _ACEOF |
22651 | |
22652 | else |
22653 | # strftime is in -lintl on SCO UNIX. |
22654 | { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5 |
22655 | echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; } |
22656 | if test "${ac_cv_lib_intl_strftime+set}" = set; then |
22657 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22658 | else |
22659 | ac_check_lib_save_LIBS=$LIBS |
22660 | LIBS="-lintl $LIBS" |
22661 | cat >conftest.$ac_ext <<_ACEOF |
22662 | /* confdefs.h. */ |
22663 | _ACEOF |
22664 | cat confdefs.h >>conftest.$ac_ext |
22665 | cat >>conftest.$ac_ext <<_ACEOF |
22666 | /* end confdefs.h. */ |
22667 | |
22668 | /* Override any GCC internal prototype to avoid an error. |
22669 | Use char because int might match the return type of a GCC |
22670 | builtin and then its argument prototype would still apply. */ |
22671 | #ifdef __cplusplus |
22672 | extern "C" |
22673 | #endif |
22674 | char strftime (); |
22675 | int |
22676 | main () |
22677 | { |
22678 | return strftime (); |
22679 | ; |
22680 | return 0; |
22681 | } |
22682 | _ACEOF |
22683 | rm -f conftest.$ac_objext conftest$ac_exeext |
22684 | if { (ac_try="$ac_link" |
22685 | case "(($ac_try" in |
22686 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22687 | *) ac_try_echo=$ac_try;; |
22688 | esac |
22689 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22690 | (eval "$ac_link") 2>conftest.er1 |
22691 | ac_status=$? |
22692 | grep -v '^ *+' conftest.er1 >conftest.err |
22693 | rm -f conftest.er1 |
22694 | cat conftest.err >&5 |
22695 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22696 | (exit $ac_status); } && { |
22697 | test -z "$ac_c_werror_flag" || |
22698 | test ! -s conftest.err |
22699 | } && test -s conftest$ac_exeext && |
22700 | $as_test_x conftest$ac_exeext; then |
22701 | ac_cv_lib_intl_strftime=yes |
22702 | else |
22703 | echo "$as_me: failed program was:" >&5 |
22704 | sed 's/^/| /' conftest.$ac_ext >&5 |
22705 | |
22706 | ac_cv_lib_intl_strftime=no |
22707 | fi |
22708 | |
22709 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
22710 | conftest$ac_exeext conftest.$ac_ext |
22711 | LIBS=$ac_check_lib_save_LIBS |
22712 | fi |
22713 | { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5 |
22714 | echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; } |
22715 | if test $ac_cv_lib_intl_strftime = yes; then |
22716 | cat >>confdefs.h <<\_ACEOF |
22717 | #define HAVE_STRFTIME 1 |
22718 | _ACEOF |
22719 | |
22720 | LIBS="-lintl $LIBS" |
22721 | fi |
22722 | |
22723 | fi |
22724 | done |
22725 | |
22726 | |
22727 | |
22728 | |
22729 | |
22730 | for ac_header in $ac_header_list |
22731 | do |
22732 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
22733 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
22734 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22735 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
22736 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
22737 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22738 | fi |
22739 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22740 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22741 | echo "${ECHO_T}$ac_res" >&6; } |
22742 | else |
22743 | # Is the header compilable? |
22744 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
22745 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
22746 | cat >conftest.$ac_ext <<_ACEOF |
22747 | /* confdefs.h. */ |
22748 | _ACEOF |
22749 | cat confdefs.h >>conftest.$ac_ext |
22750 | cat >>conftest.$ac_ext <<_ACEOF |
22751 | /* end confdefs.h. */ |
22752 | $ac_includes_default |
22753 | #include <$ac_header> |
22754 | _ACEOF |
22755 | rm -f conftest.$ac_objext |
22756 | if { (ac_try="$ac_compile" |
22757 | case "(($ac_try" in |
22758 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22759 | *) ac_try_echo=$ac_try;; |
22760 | esac |
22761 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22762 | (eval "$ac_compile") 2>conftest.er1 |
22763 | ac_status=$? |
22764 | grep -v '^ *+' conftest.er1 >conftest.err |
22765 | rm -f conftest.er1 |
22766 | cat conftest.err >&5 |
22767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22768 | (exit $ac_status); } && { |
22769 | test -z "$ac_c_werror_flag" || |
22770 | test ! -s conftest.err |
22771 | } && test -s conftest.$ac_objext; then |
22772 | ac_header_compiler=yes |
22773 | else |
22774 | echo "$as_me: failed program was:" >&5 |
22775 | sed 's/^/| /' conftest.$ac_ext >&5 |
22776 | |
22777 | ac_header_compiler=no |
22778 | fi |
22779 | |
22780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22781 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22782 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
22783 | |
22784 | # Is the header present? |
22785 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
22786 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
22787 | cat >conftest.$ac_ext <<_ACEOF |
22788 | /* confdefs.h. */ |
22789 | _ACEOF |
22790 | cat confdefs.h >>conftest.$ac_ext |
22791 | cat >>conftest.$ac_ext <<_ACEOF |
22792 | /* end confdefs.h. */ |
22793 | #include <$ac_header> |
22794 | _ACEOF |
22795 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22796 | case "(($ac_try" in |
22797 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22798 | *) ac_try_echo=$ac_try;; |
22799 | esac |
22800 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22801 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
22802 | ac_status=$? |
22803 | grep -v '^ *+' conftest.er1 >conftest.err |
22804 | rm -f conftest.er1 |
22805 | cat conftest.err >&5 |
22806 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22807 | (exit $ac_status); } >/dev/null && { |
22808 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
22809 | test ! -s conftest.err |
22810 | }; then |
22811 | ac_header_preproc=yes |
22812 | else |
22813 | echo "$as_me: failed program was:" >&5 |
22814 | sed 's/^/| /' conftest.$ac_ext >&5 |
22815 | |
22816 | ac_header_preproc=no |
22817 | fi |
22818 | |
22819 | rm -f conftest.err conftest.$ac_ext |
22820 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22821 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
22822 | |
22823 | # So? What about this header? |
22824 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22825 | yes:no: ) |
22826 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22827 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
22828 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22829 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
22830 | ac_header_preproc=yes |
22831 | ;; |
22832 | no:yes:* ) |
22833 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22834 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
22835 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22836 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
22837 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
22838 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
22839 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
22840 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
22841 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22842 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
22843 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22844 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
22845 | ( cat <<\_ASBOX |
22846 | ## ----------------------------------------- ## |
22847 | ## Report this to ntfs-3g-devel@lists.sf.net ## |
22848 | ## ----------------------------------------- ## |
22849 | _ASBOX |
22850 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
22851 | ;; |
22852 | esac |
22853 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22854 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
22855 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
22856 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22857 | else |
22858 | eval "$as_ac_Header=\$ac_header_preproc" |
22859 | fi |
22860 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22861 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22862 | echo "${ECHO_T}$ac_res" >&6; } |
22863 | |
22864 | fi |
22865 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
22866 | cat >>confdefs.h <<_ACEOF |
22867 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
22868 | _ACEOF |
22869 | |
22870 | fi |
22871 | |
22872 | done |
22873 | |
22874 | |
22875 | |
22876 | |
22877 | |
22878 | |
22879 | |
22880 | |
22881 | |
22882 | { echo "$as_me:$LINENO: checking whether utime accepts a null argument" >&5 |
22883 | echo $ECHO_N "checking whether utime accepts a null argument... $ECHO_C" >&6; } |
22884 | if test "${ac_cv_func_utime_null+set}" = set; then |
22885 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22886 | else |
22887 | rm -f conftest.data; >conftest.data |
22888 | # Sequent interprets utime(file, 0) to mean use start of epoch. Wrong. |
22889 | if test "$cross_compiling" = yes; then |
22890 | ac_cv_func_utime_null=no |
22891 | else |
22892 | cat >conftest.$ac_ext <<_ACEOF |
22893 | /* confdefs.h. */ |
22894 | _ACEOF |
22895 | cat confdefs.h >>conftest.$ac_ext |
22896 | cat >>conftest.$ac_ext <<_ACEOF |
22897 | /* end confdefs.h. */ |
22898 | $ac_includes_default |
22899 | #ifdef HAVE_UTIME_H |
22900 | # include <utime.h> |
22901 | #endif |
22902 | int |
22903 | main () |
22904 | { |
22905 | struct stat s, t; |
22906 | return ! (stat ("conftest.data", &s) == 0 |
22907 | && utime ("conftest.data", 0) == 0 |
22908 | && stat ("conftest.data", &t) == 0 |
22909 | && t.st_mtime >= s.st_mtime |
22910 | && t.st_mtime - s.st_mtime < 120); |
22911 | ; |
22912 | return 0; |
22913 | } |
22914 | _ACEOF |
22915 | rm -f conftest$ac_exeext |
22916 | if { (ac_try="$ac_link" |
22917 | case "(($ac_try" in |
22918 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22919 | *) ac_try_echo=$ac_try;; |
22920 | esac |
22921 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22922 | (eval "$ac_link") 2>&5 |
22923 | ac_status=$? |
22924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22925 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
22926 | { (case "(($ac_try" in |
22927 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22928 | *) ac_try_echo=$ac_try;; |
22929 | esac |
22930 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22931 | (eval "$ac_try") 2>&5 |
22932 | ac_status=$? |
22933 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22934 | (exit $ac_status); }; }; then |
22935 | ac_cv_func_utime_null=yes |
22936 | else |
22937 | echo "$as_me: program exited with status $ac_status" >&5 |
22938 | echo "$as_me: failed program was:" >&5 |
22939 | sed 's/^/| /' conftest.$ac_ext >&5 |
22940 | |
22941 | ( exit $ac_status ) |
22942 | ac_cv_func_utime_null=no |
22943 | fi |
22944 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
22945 | fi |
22946 | |
22947 | |
22948 | fi |
22949 | { echo "$as_me:$LINENO: result: $ac_cv_func_utime_null" >&5 |
22950 | echo "${ECHO_T}$ac_cv_func_utime_null" >&6; } |
22951 | if test $ac_cv_func_utime_null = yes; then |
22952 | |
22953 | cat >>confdefs.h <<\_ACEOF |
22954 | #define HAVE_UTIME_NULL 1 |
22955 | _ACEOF |
22956 | |
22957 | fi |
22958 | rm -f conftest.data |
22959 | |
22960 | |
22961 | for ac_func in vprintf |
22962 | do |
22963 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
22964 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
22965 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
22966 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
22967 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22968 | else |
22969 | cat >conftest.$ac_ext <<_ACEOF |
22970 | /* confdefs.h. */ |
22971 | _ACEOF |
22972 | cat confdefs.h >>conftest.$ac_ext |
22973 | cat >>conftest.$ac_ext <<_ACEOF |
22974 | /* end confdefs.h. */ |
22975 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
22976 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
22977 | #define $ac_func innocuous_$ac_func |
22978 | |
22979 | /* System header to define __stub macros and hopefully few prototypes, |
22980 | which can conflict with char $ac_func (); below. |
22981 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22982 | <limits.h> exists even on freestanding compilers. */ |
22983 | |
22984 | #ifdef __STDC__ |
22985 | # include <limits.h> |
22986 | #else |
22987 | # include <assert.h> |
22988 | #endif |
22989 | |
22990 | #undef $ac_func |
22991 | |
22992 | /* Override any GCC internal prototype to avoid an error. |
22993 | Use char because int might match the return type of a GCC |
22994 | builtin and then its argument prototype would still apply. */ |
22995 | #ifdef __cplusplus |
22996 | extern "C" |
22997 | #endif |
22998 | char $ac_func (); |
22999 | /* The GNU C library defines this for functions which it implements |
23000 | to always fail with ENOSYS. Some functions are actually named |
23001 | something starting with __ and the normal name is an alias. */ |
23002 | #if defined __stub_$ac_func || defined __stub___$ac_func |
23003 | choke me |
23004 | #endif |
23005 | |
23006 | int |
23007 | main () |
23008 | { |
23009 | return $ac_func (); |
23010 | ; |
23011 | return 0; |
23012 | } |
23013 | _ACEOF |
23014 | rm -f conftest.$ac_objext conftest$ac_exeext |
23015 | if { (ac_try="$ac_link" |
23016 | case "(($ac_try" in |
23017 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23018 | *) ac_try_echo=$ac_try;; |
23019 | esac |
23020 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23021 | (eval "$ac_link") 2>conftest.er1 |
23022 | ac_status=$? |
23023 | grep -v '^ *+' conftest.er1 >conftest.err |
23024 | rm -f conftest.er1 |
23025 | cat conftest.err >&5 |
23026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23027 | (exit $ac_status); } && { |
23028 | test -z "$ac_c_werror_flag" || |
23029 | test ! -s conftest.err |
23030 | } && test -s conftest$ac_exeext && |
23031 | $as_test_x conftest$ac_exeext; then |
23032 | eval "$as_ac_var=yes" |
23033 | else |
23034 | echo "$as_me: failed program was:" >&5 |
23035 | sed 's/^/| /' conftest.$ac_ext >&5 |
23036 | |
23037 | eval "$as_ac_var=no" |
23038 | fi |
23039 | |
23040 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
23041 | conftest$ac_exeext conftest.$ac_ext |
23042 | fi |
23043 | ac_res=`eval echo '${'$as_ac_var'}'` |
23044 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
23045 | echo "${ECHO_T}$ac_res" >&6; } |
23046 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
23047 | cat >>confdefs.h <<_ACEOF |
23048 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
23049 | _ACEOF |
23050 | |
23051 | { echo "$as_me:$LINENO: checking for _doprnt" >&5 |
23052 | echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6; } |
23053 | if test "${ac_cv_func__doprnt+set}" = set; then |
23054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23055 | else |
23056 | cat >conftest.$ac_ext <<_ACEOF |
23057 | /* confdefs.h. */ |
23058 | _ACEOF |
23059 | cat confdefs.h >>conftest.$ac_ext |
23060 | cat >>conftest.$ac_ext <<_ACEOF |
23061 | /* end confdefs.h. */ |
23062 | /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt. |
23063 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
23064 | #define _doprnt innocuous__doprnt |
23065 | |
23066 | /* System header to define __stub macros and hopefully few prototypes, |
23067 | which can conflict with char _doprnt (); below. |
23068 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
23069 | <limits.h> exists even on freestanding compilers. */ |
23070 | |
23071 | #ifdef __STDC__ |
23072 | # include <limits.h> |
23073 | #else |
23074 | # include <assert.h> |
23075 | #endif |
23076 | |
23077 | #undef _doprnt |
23078 | |
23079 | /* Override any GCC internal prototype to avoid an error. |
23080 | Use char because int might match the return type of a GCC |
23081 | builtin and then its argument prototype would still apply. */ |
23082 | #ifdef __cplusplus |
23083 | extern "C" |
23084 | #endif |
23085 | char _doprnt (); |
23086 | /* The GNU C library defines this for functions which it implements |
23087 | to always fail with ENOSYS. Some functions are actually named |
23088 | something starting with __ and the normal name is an alias. */ |
23089 | #if defined __stub__doprnt || defined __stub____doprnt |
23090 | choke me |
23091 | #endif |
23092 | |
23093 | int |
23094 | main () |
23095 | { |
23096 | return _doprnt (); |
23097 | ; |
23098 | return 0; |
23099 | } |
23100 | _ACEOF |
23101 | rm -f conftest.$ac_objext conftest$ac_exeext |
23102 | if { (ac_try="$ac_link" |
23103 | case "(($ac_try" in |
23104 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23105 | *) ac_try_echo=$ac_try;; |
23106 | esac |
23107 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23108 | (eval "$ac_link") 2>conftest.er1 |
23109 | ac_status=$? |
23110 | grep -v '^ *+' conftest.er1 >conftest.err |
23111 | rm -f conftest.er1 |
23112 | cat conftest.err >&5 |
23113 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23114 | (exit $ac_status); } && { |
23115 | test -z "$ac_c_werror_flag" || |
23116 | test ! -s conftest.err |
23117 | } && test -s conftest$ac_exeext && |
23118 | $as_test_x conftest$ac_exeext; then |
23119 | ac_cv_func__doprnt=yes |
23120 | else |
23121 | echo "$as_me: failed program was:" >&5 |
23122 | sed 's/^/| /' conftest.$ac_ext >&5 |
23123 | |
23124 | ac_cv_func__doprnt=no |
23125 | fi |
23126 | |
23127 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
23128 | conftest$ac_exeext conftest.$ac_ext |
23129 | fi |
23130 | { echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5 |
23131 | echo "${ECHO_T}$ac_cv_func__doprnt" >&6; } |
23132 | if test $ac_cv_func__doprnt = yes; then |
23133 | |
23134 | cat >>confdefs.h <<\_ACEOF |
23135 | #define HAVE_DOPRNT 1 |
23136 | _ACEOF |
23137 | |
23138 | fi |
23139 | |
23140 | fi |
23141 | done |
23142 | |
23143 | |
23144 | |
23145 | |
23146 | |
23147 | |
23148 | |
23149 | |
23150 | |
23151 | |
23152 | |
23153 | |
23154 | |
23155 | |
23156 | |
23157 | |
23158 | |
23159 | |
23160 | |
23161 | |
23162 | |
23163 | |
23164 | |
23165 | |
23166 | |
23167 | |
23168 | |
23169 | |
23170 | |
23171 | |
23172 | |
23173 | for ac_func in \ |
23174 | atexit basename daemon dup2 fdatasync ffs getopt_long hasmntopt \ |
23175 | mbsinit memmove memset realpath regcomp setlocale setxattr \ |
23176 | strcasecmp strchr strdup strerror strnlen strsep strtol strtoul \ |
23177 | sysconf utime utimensat gettimeofday clock_gettime fork \ |
23178 | |
23179 | do |
23180 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
23181 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
23182 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
23183 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
23184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23185 | else |
23186 | cat >conftest.$ac_ext <<_ACEOF |
23187 | /* confdefs.h. */ |
23188 | _ACEOF |
23189 | cat confdefs.h >>conftest.$ac_ext |
23190 | cat >>conftest.$ac_ext <<_ACEOF |
23191 | /* end confdefs.h. */ |
23192 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
23193 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
23194 | #define $ac_func innocuous_$ac_func |
23195 | |
23196 | /* System header to define __stub macros and hopefully few prototypes, |
23197 | which can conflict with char $ac_func (); below. |
23198 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
23199 | <limits.h> exists even on freestanding compilers. */ |
23200 | |
23201 | #ifdef __STDC__ |
23202 | # include <limits.h> |
23203 | #else |
23204 | # include <assert.h> |
23205 | #endif |
23206 | |
23207 | #undef $ac_func |
23208 | |
23209 | /* Override any GCC internal prototype to avoid an error. |
23210 | Use char because int might match the return type of a GCC |
23211 | builtin and then its argument prototype would still apply. */ |
23212 | #ifdef __cplusplus |
23213 | extern "C" |
23214 | #endif |
23215 | char $ac_func (); |
23216 | /* The GNU C library defines this for functions which it implements |
23217 | to always fail with ENOSYS. Some functions are actually named |
23218 | something starting with __ and the normal name is an alias. */ |
23219 | #if defined __stub_$ac_func || defined __stub___$ac_func |
23220 | choke me |
23221 | #endif |
23222 | |
23223 | int |
23224 | main () |
23225 | { |
23226 | return $ac_func (); |
23227 | ; |
23228 | return 0; |
23229 | } |
23230 | _ACEOF |
23231 | rm -f conftest.$ac_objext conftest$ac_exeext |
23232 | if { (ac_try="$ac_link" |
23233 | case "(($ac_try" in |
23234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23235 | *) ac_try_echo=$ac_try;; |
23236 | esac |
23237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23238 | (eval "$ac_link") 2>conftest.er1 |
23239 | ac_status=$? |
23240 | grep -v '^ *+' conftest.er1 >conftest.err |
23241 | rm -f conftest.er1 |
23242 | cat conftest.err >&5 |
23243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23244 | (exit $ac_status); } && { |
23245 | test -z "$ac_c_werror_flag" || |
23246 | test ! -s conftest.err |
23247 | } && test -s conftest$ac_exeext && |
23248 | $as_test_x conftest$ac_exeext; then |
23249 | eval "$as_ac_var=yes" |
23250 | else |
23251 | echo "$as_me: failed program was:" >&5 |
23252 | sed 's/^/| /' conftest.$ac_ext >&5 |
23253 | |
23254 | eval "$as_ac_var=no" |
23255 | fi |
23256 | |
23257 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
23258 | conftest$ac_exeext conftest.$ac_ext |
23259 | fi |
23260 | ac_res=`eval echo '${'$as_ac_var'}'` |
23261 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
23262 | echo "${ECHO_T}$ac_res" >&6; } |
23263 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
23264 | cat >>confdefs.h <<_ACEOF |
23265 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
23266 | _ACEOF |
23267 | |
23268 | fi |
23269 | done |
23270 | |
23271 | # Check whether --enable-largefile was given. |
23272 | if test "${enable_largefile+set}" = set; then |
23273 | enableval=$enable_largefile; |
23274 | fi |
23275 | |
23276 | if test "$enable_largefile" != no; then |
23277 | |
23278 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
23279 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } |
23280 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
23281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23282 | else |
23283 | ac_cv_sys_largefile_CC=no |
23284 | if test "$GCC" != yes; then |
23285 | ac_save_CC=$CC |
23286 | while :; do |
23287 | # IRIX 6.2 and later do not support large files by default, |
23288 | # so use the C compiler's -n32 option if that helps. |
23289 | cat >conftest.$ac_ext <<_ACEOF |
23290 | /* confdefs.h. */ |
23291 | _ACEOF |
23292 | cat confdefs.h >>conftest.$ac_ext |
23293 | cat >>conftest.$ac_ext <<_ACEOF |
23294 | /* end confdefs.h. */ |
23295 | #include <sys/types.h> |
23296 | /* Check that off_t can represent 2**63 - 1 correctly. |
23297 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
23298 | since some C++ compilers masquerading as C compilers |
23299 | incorrectly reject 9223372036854775807. */ |
23300 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
23301 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
23302 | && LARGE_OFF_T % 2147483647 == 1) |
23303 | ? 1 : -1]; |
23304 | int |
23305 | main () |
23306 | { |
23307 | |
23308 | ; |
23309 | return 0; |
23310 | } |
23311 | _ACEOF |
23312 | rm -f conftest.$ac_objext |
23313 | if { (ac_try="$ac_compile" |
23314 | case "(($ac_try" in |
23315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23316 | *) ac_try_echo=$ac_try;; |
23317 | esac |
23318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23319 | (eval "$ac_compile") 2>conftest.er1 |
23320 | ac_status=$? |
23321 | grep -v '^ *+' conftest.er1 >conftest.err |
23322 | rm -f conftest.er1 |
23323 | cat conftest.err >&5 |
23324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23325 | (exit $ac_status); } && { |
23326 | test -z "$ac_c_werror_flag" || |
23327 | test ! -s conftest.err |
23328 | } && test -s conftest.$ac_objext; then |
23329 | break |
23330 | else |
23331 | echo "$as_me: failed program was:" >&5 |
23332 | sed 's/^/| /' conftest.$ac_ext >&5 |
23333 | |
23334 | |
23335 | fi |
23336 | |
23337 | rm -f core conftest.err conftest.$ac_objext |
23338 | CC="$CC -n32" |
23339 | rm -f conftest.$ac_objext |
23340 | if { (ac_try="$ac_compile" |
23341 | case "(($ac_try" in |
23342 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23343 | *) ac_try_echo=$ac_try;; |
23344 | esac |
23345 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23346 | (eval "$ac_compile") 2>conftest.er1 |
23347 | ac_status=$? |
23348 | grep -v '^ *+' conftest.er1 >conftest.err |
23349 | rm -f conftest.er1 |
23350 | cat conftest.err >&5 |
23351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23352 | (exit $ac_status); } && { |
23353 | test -z "$ac_c_werror_flag" || |
23354 | test ! -s conftest.err |
23355 | } && test -s conftest.$ac_objext; then |
23356 | ac_cv_sys_largefile_CC=' -n32'; break |
23357 | else |
23358 | echo "$as_me: failed program was:" >&5 |
23359 | sed 's/^/| /' conftest.$ac_ext >&5 |
23360 | |
23361 | |
23362 | fi |
23363 | |
23364 | rm -f core conftest.err conftest.$ac_objext |
23365 | break |
23366 | done |
23367 | CC=$ac_save_CC |
23368 | rm -f conftest.$ac_ext |
23369 | fi |
23370 | fi |
23371 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
23372 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } |
23373 | if test "$ac_cv_sys_largefile_CC" != no; then |
23374 | CC=$CC$ac_cv_sys_largefile_CC |
23375 | fi |
23376 | |
23377 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
23378 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } |
23379 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
23380 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23381 | else |
23382 | while :; do |
23383 | cat >conftest.$ac_ext <<_ACEOF |
23384 | /* confdefs.h. */ |
23385 | _ACEOF |
23386 | cat confdefs.h >>conftest.$ac_ext |
23387 | cat >>conftest.$ac_ext <<_ACEOF |
23388 | /* end confdefs.h. */ |
23389 | #include <sys/types.h> |
23390 | /* Check that off_t can represent 2**63 - 1 correctly. |
23391 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
23392 | since some C++ compilers masquerading as C compilers |
23393 | incorrectly reject 9223372036854775807. */ |
23394 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
23395 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
23396 | && LARGE_OFF_T % 2147483647 == 1) |
23397 | ? 1 : -1]; |
23398 | int |
23399 | main () |
23400 | { |
23401 | |
23402 | ; |
23403 | return 0; |
23404 | } |
23405 | _ACEOF |
23406 | rm -f conftest.$ac_objext |
23407 | if { (ac_try="$ac_compile" |
23408 | case "(($ac_try" in |
23409 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23410 | *) ac_try_echo=$ac_try;; |
23411 | esac |
23412 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23413 | (eval "$ac_compile") 2>conftest.er1 |
23414 | ac_status=$? |
23415 | grep -v '^ *+' conftest.er1 >conftest.err |
23416 | rm -f conftest.er1 |
23417 | cat conftest.err >&5 |
23418 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23419 | (exit $ac_status); } && { |
23420 | test -z "$ac_c_werror_flag" || |
23421 | test ! -s conftest.err |
23422 | } && test -s conftest.$ac_objext; then |
23423 | ac_cv_sys_file_offset_bits=no; break |
23424 | else |
23425 | echo "$as_me: failed program was:" >&5 |
23426 | sed 's/^/| /' conftest.$ac_ext >&5 |
23427 | |
23428 | |
23429 | fi |
23430 | |
23431 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
23432 | cat >conftest.$ac_ext <<_ACEOF |
23433 | /* confdefs.h. */ |
23434 | _ACEOF |
23435 | cat confdefs.h >>conftest.$ac_ext |
23436 | cat >>conftest.$ac_ext <<_ACEOF |
23437 | /* end confdefs.h. */ |
23438 | #define _FILE_OFFSET_BITS 64 |
23439 | #include <sys/types.h> |
23440 | /* Check that off_t can represent 2**63 - 1 correctly. |
23441 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
23442 | since some C++ compilers masquerading as C compilers |
23443 | incorrectly reject 9223372036854775807. */ |
23444 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
23445 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
23446 | && LARGE_OFF_T % 2147483647 == 1) |
23447 | ? 1 : -1]; |
23448 | int |
23449 | main () |
23450 | { |
23451 | |
23452 | ; |
23453 | return 0; |
23454 | } |
23455 | _ACEOF |
23456 | rm -f conftest.$ac_objext |
23457 | if { (ac_try="$ac_compile" |
23458 | case "(($ac_try" in |
23459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23460 | *) ac_try_echo=$ac_try;; |
23461 | esac |
23462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23463 | (eval "$ac_compile") 2>conftest.er1 |
23464 | ac_status=$? |
23465 | grep -v '^ *+' conftest.er1 >conftest.err |
23466 | rm -f conftest.er1 |
23467 | cat conftest.err >&5 |
23468 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23469 | (exit $ac_status); } && { |
23470 | test -z "$ac_c_werror_flag" || |
23471 | test ! -s conftest.err |
23472 | } && test -s conftest.$ac_objext; then |
23473 | ac_cv_sys_file_offset_bits=64; break |
23474 | else |
23475 | echo "$as_me: failed program was:" >&5 |
23476 | sed 's/^/| /' conftest.$ac_ext >&5 |
23477 | |
23478 | |
23479 | fi |
23480 | |
23481 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
23482 | ac_cv_sys_file_offset_bits=unknown |
23483 | break |
23484 | done |
23485 | fi |
23486 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
23487 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } |
23488 | case $ac_cv_sys_file_offset_bits in #( |
23489 | no | unknown) ;; |
23490 | *) |
23491 | cat >>confdefs.h <<_ACEOF |
23492 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
23493 | _ACEOF |
23494 | ;; |
23495 | esac |
23496 | rm -f conftest* |
23497 | if test $ac_cv_sys_file_offset_bits = unknown; then |
23498 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
23499 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } |
23500 | if test "${ac_cv_sys_large_files+set}" = set; then |
23501 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23502 | else |
23503 | while :; do |
23504 | cat >conftest.$ac_ext <<_ACEOF |
23505 | /* confdefs.h. */ |
23506 | _ACEOF |
23507 | cat confdefs.h >>conftest.$ac_ext |
23508 | cat >>conftest.$ac_ext <<_ACEOF |
23509 | /* end confdefs.h. */ |
23510 | #include <sys/types.h> |
23511 | /* Check that off_t can represent 2**63 - 1 correctly. |
23512 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
23513 | since some C++ compilers masquerading as C compilers |
23514 | incorrectly reject 9223372036854775807. */ |
23515 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
23516 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
23517 | && LARGE_OFF_T % 2147483647 == 1) |
23518 | ? 1 : -1]; |
23519 | int |
23520 | main () |
23521 | { |
23522 | |
23523 | ; |
23524 | return 0; |
23525 | } |
23526 | _ACEOF |
23527 | rm -f conftest.$ac_objext |
23528 | if { (ac_try="$ac_compile" |
23529 | case "(($ac_try" in |
23530 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23531 | *) ac_try_echo=$ac_try;; |
23532 | esac |
23533 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23534 | (eval "$ac_compile") 2>conftest.er1 |
23535 | ac_status=$? |
23536 | grep -v '^ *+' conftest.er1 >conftest.err |
23537 | rm -f conftest.er1 |
23538 | cat conftest.err >&5 |
23539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23540 | (exit $ac_status); } && { |
23541 | test -z "$ac_c_werror_flag" || |
23542 | test ! -s conftest.err |
23543 | } && test -s conftest.$ac_objext; then |
23544 | ac_cv_sys_large_files=no; break |
23545 | else |
23546 | echo "$as_me: failed program was:" >&5 |
23547 | sed 's/^/| /' conftest.$ac_ext >&5 |
23548 | |
23549 | |
23550 | fi |
23551 | |
23552 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
23553 | cat >conftest.$ac_ext <<_ACEOF |
23554 | /* confdefs.h. */ |
23555 | _ACEOF |
23556 | cat confdefs.h >>conftest.$ac_ext |
23557 | cat >>conftest.$ac_ext <<_ACEOF |
23558 | /* end confdefs.h. */ |
23559 | #define _LARGE_FILES 1 |
23560 | #include <sys/types.h> |
23561 | /* Check that off_t can represent 2**63 - 1 correctly. |
23562 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
23563 | since some C++ compilers masquerading as C compilers |
23564 | incorrectly reject 9223372036854775807. */ |
23565 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
23566 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
23567 | && LARGE_OFF_T % 2147483647 == 1) |
23568 | ? 1 : -1]; |
23569 | int |
23570 | main () |
23571 | { |
23572 | |
23573 | ; |
23574 | return 0; |
23575 | } |
23576 | _ACEOF |
23577 | rm -f conftest.$ac_objext |
23578 | if { (ac_try="$ac_compile" |
23579 | case "(($ac_try" in |
23580 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23581 | *) ac_try_echo=$ac_try;; |
23582 | esac |
23583 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23584 | (eval "$ac_compile") 2>conftest.er1 |
23585 | ac_status=$? |
23586 | grep -v '^ *+' conftest.er1 >conftest.err |
23587 | rm -f conftest.er1 |
23588 | cat conftest.err >&5 |
23589 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23590 | (exit $ac_status); } && { |
23591 | test -z "$ac_c_werror_flag" || |
23592 | test ! -s conftest.err |
23593 | } && test -s conftest.$ac_objext; then |
23594 | ac_cv_sys_large_files=1; break |
23595 | else |
23596 | echo "$as_me: failed program was:" >&5 |
23597 | sed 's/^/| /' conftest.$ac_ext >&5 |
23598 | |
23599 | |
23600 | fi |
23601 | |
23602 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
23603 | ac_cv_sys_large_files=unknown |
23604 | break |
23605 | done |
23606 | fi |
23607 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
23608 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } |
23609 | case $ac_cv_sys_large_files in #( |
23610 | no | unknown) ;; |
23611 | *) |
23612 | cat >>confdefs.h <<_ACEOF |
23613 | #define _LARGE_FILES $ac_cv_sys_large_files |
23614 | _ACEOF |
23615 | ;; |
23616 | esac |
23617 | rm -f conftest* |
23618 | fi |
23619 | fi |
23620 | |
23621 | |
23622 | if test "$GCC" = "yes" ; then |
23623 | # We add -Wall to enable some compiler warnings. |
23624 | CFLAGS="${CFLAGS} -Wall" |
23625 | fi |
23626 | |
23627 | if test "${enable_pedantic}" = "yes"; then |
23628 | enable_warnings="yes" |
23629 | CFLAGS="${CFLAGS} -pedantic" |
23630 | fi |
23631 | |
23632 | if test "${enable_warnings}" = "yes"; then |
23633 | CFLAGS="${CFLAGS} -W -Wall -Waggregate-return -Wbad-function-cast -Wcast-align -Wcast-qual -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Winline -Wmissing-declarations -Wmissing-format-attribute -Wmissing-noreturn -Wmissing-prototypes -Wmultichar -Wnested-externs -Wpointer-arith -Wredundant-decls -Wshadow -Wsign-compare -Wstrict-prototypes -Wundef -Wwrite-strings -Wformat -Wformat-security -Wuninitialized" |
23634 | fi |
23635 | |
23636 | if test "${enable_debug}" = "yes"; then |
23637 | CFLAGS="${CFLAGS} -ggdb3 -DDEBUG" |
23638 | |
23639 | cat >>confdefs.h <<\_ACEOF |
23640 | #define ENABLE_DEBUG 1 |
23641 | _ACEOF |
23642 | |
23643 | fi |
23644 | |
23645 | test "${enable_device_default_io_ops}" = "no" && |
23646 | cat >>confdefs.h <<\_ACEOF |
23647 | #define NO_NTFS_DEVICE_DEFAULT_IO_OPS 1 |
23648 | _ACEOF |
23649 | |
23650 | |
23651 | test "${enable_mtab}" = "no" && |
23652 | cat >>confdefs.h <<\_ACEOF |
23653 | #define IGNORE_MTAB 1 |
23654 | _ACEOF |
23655 | |
23656 | test "${enable_posix_acls}" != "no" && |
23657 | cat >>confdefs.h <<\_ACEOF |
23658 | #define POSIXACLS 1 |
23659 | _ACEOF |
23660 | |
23661 | |
23662 | test "${enable_really_static}" = "yes" && enable_library="no" |
23663 | test "${enable_library}" = "no" && enable_ldconfig="no" |
23664 | |
23665 | if test "x${DISTCHECK_HACK}" != "x"; then |
23666 | enable_mount_helper="no" |
23667 | enable_ldconfig="no" |
23668 | fi |
23669 | |
23670 | # Settings |
23671 | pkgconfigdir="\$(libdir)/pkgconfig" |
23672 | ntfs3gincludedir="\$(includedir)/ntfs-3g" |
23673 | # Executables should be installed to the root filesystem, otherwise |
23674 | # automounting NTFS volumes can fail during boot if the driver binaries |
23675 | # and their dependencies are on an unmounted partition. Use --exec-prefix |
23676 | # to override this. |
23677 | if test "x${exec_prefix}" = "xNONE"; then |
23678 | rootbindir="/bin" |
23679 | rootsbindir="/sbin" |
23680 | rootlibdir="/lib${libdir##*/lib}" |
23681 | else |
23682 | rootbindir="\$(bindir)" |
23683 | rootsbindir="\$(sbindir)" |
23684 | rootlibdir="\$(libdir)" |
23685 | fi |
23686 | |
23687 | |
23688 | |
23689 | |
23690 | |
23691 | |
23692 | |
23693 | |
23694 | if test "${with_fuse}" = "internal"; then |
23695 | FUSE_INTERNAL_TRUE= |
23696 | FUSE_INTERNAL_FALSE='#' |
23697 | else |
23698 | FUSE_INTERNAL_TRUE='#' |
23699 | FUSE_INTERNAL_FALSE= |
23700 | fi |
23701 | |
23702 | if test "${enable_ldscript}" = "yes"; then |
23703 | GENERATE_LDSCRIPT_TRUE= |
23704 | GENERATE_LDSCRIPT_FALSE='#' |
23705 | else |
23706 | GENERATE_LDSCRIPT_TRUE='#' |
23707 | GENERATE_LDSCRIPT_FALSE= |
23708 | fi |
23709 | |
23710 | if test "${WINDOWS}" = "yes"; then |
23711 | WINDOWS_TRUE= |
23712 | WINDOWS_FALSE='#' |
23713 | else |
23714 | WINDOWS_TRUE='#' |
23715 | WINDOWS_FALSE= |
23716 | fi |
23717 | |
23718 | if test "${enable_device_default_io_ops}" = "yes"; then |
23719 | NTFS_DEVICE_DEFAULT_IO_OPS_TRUE= |
23720 | NTFS_DEVICE_DEFAULT_IO_OPS_FALSE='#' |
23721 | else |
23722 | NTFS_DEVICE_DEFAULT_IO_OPS_TRUE='#' |
23723 | NTFS_DEVICE_DEFAULT_IO_OPS_FALSE= |
23724 | fi |
23725 | |
23726 | if test "${enable_ldconfig}" = "yes"; then |
23727 | RUN_LDCONFIG_TRUE= |
23728 | RUN_LDCONFIG_FALSE='#' |
23729 | else |
23730 | RUN_LDCONFIG_TRUE='#' |
23731 | RUN_LDCONFIG_FALSE= |
23732 | fi |
23733 | |
23734 | if test "${enable_really_static}" = "yes"; then |
23735 | REALLYSTATIC_TRUE= |
23736 | REALLYSTATIC_FALSE='#' |
23737 | else |
23738 | REALLYSTATIC_TRUE='#' |
23739 | REALLYSTATIC_FALSE= |
23740 | fi |
23741 | |
23742 | if test "${enable_library}" = "yes"; then |
23743 | INSTALL_LIBRARY_TRUE= |
23744 | INSTALL_LIBRARY_FALSE='#' |
23745 | else |
23746 | INSTALL_LIBRARY_TRUE='#' |
23747 | INSTALL_LIBRARY_FALSE= |
23748 | fi |
23749 | |
23750 | if test "${enable_mount_helper}" = "yes"; then |
23751 | ENABLE_MOUNT_HELPER_TRUE= |
23752 | ENABLE_MOUNT_HELPER_FALSE='#' |
23753 | else |
23754 | ENABLE_MOUNT_HELPER_TRUE='#' |
23755 | ENABLE_MOUNT_HELPER_FALSE= |
23756 | fi |
23757 | |
23758 | |
23759 | # workaround for <autoconf-2.60 |
23760 | if test -z "${docdir}"; then |
23761 | docdir="\$(datarootdir)/doc/\$(PACKAGE_NAME)" |
23762 | |
23763 | fi |
23764 | # workaround for <automake-1.10 |
23765 | if test -z "${MKDIR_P}"; then |
23766 | MKDIR_P="\$(mkdir_p)" |
23767 | |
23768 | fi |
23769 | |
23770 | # generate files |
23771 | ac_config_files="$ac_config_files Makefile include/Makefile include/fuse-lite/Makefile include/ntfs-3g/Makefile libfuse-lite/Makefile libntfs-3g/Makefile libntfs-3g/libntfs-3g.pc libntfs-3g/libntfs-3g.script.so src/Makefile src/ntfs-3g.8 src/ntfs-3g.probe.8 src/ntfs-3g.usermap.8 src/ntfs-3g.secaudit.8" |
23772 | |
23773 | cat >confcache <<\_ACEOF |
23774 | # This file is a shell script that caches the results of configure |
23775 | # tests run on this system so they can be shared between configure |
23776 | # scripts and configure runs, see configure's option --config-cache. |
23777 | # It is not useful on other systems. If it contains results you don't |
23778 | # want to keep, you may remove or edit it. |
23779 | # |
23780 | # config.status only pays attention to the cache file if you give it |
23781 | # the --recheck option to rerun configure. |
23782 | # |
23783 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
23784 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
23785 | # following values. |
23786 | |
23787 | _ACEOF |
23788 | |
23789 | # The following way of writing the cache mishandles newlines in values, |
23790 | # but we know of no workaround that is simple, portable, and efficient. |
23791 | # So, we kill variables containing newlines. |
23792 | # Ultrix sh set writes to stderr and can't be redirected directly, |
23793 | # and sets the high bit in the cache file unless we assign to the vars. |
23794 | ( |
23795 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
23796 | eval ac_val=\$$ac_var |
23797 | case $ac_val in #( |
23798 | *${as_nl}*) |
23799 | case $ac_var in #( |
23800 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
23801 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
23802 | esac |
23803 | case $ac_var in #( |
23804 | _ | IFS | as_nl) ;; #( |
23805 | *) $as_unset $ac_var ;; |
23806 | esac ;; |
23807 | esac |
23808 | done |
23809 | |
23810 | (set) 2>&1 | |
23811 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
23812 | *${as_nl}ac_space=\ *) |
23813 | # `set' does not quote correctly, so add quotes (double-quote |
23814 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
23815 | sed -n \ |
23816 | "s/'/'\\\\''/g; |
23817 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
23818 | ;; #( |
23819 | *) |
23820 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
23821 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
23822 | ;; |
23823 | esac | |
23824 | sort |
23825 | ) | |
23826 | sed ' |
23827 | /^ac_cv_env_/b end |
23828 | t clear |
23829 | :clear |
23830 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
23831 | t end |
23832 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
23833 | :end' >>confcache |
23834 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
23835 | if test -w "$cache_file"; then |
23836 | test "x$cache_file" != "x/dev/null" && |
23837 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
23838 | echo "$as_me: updating cache $cache_file" >&6;} |
23839 | cat confcache >$cache_file |
23840 | else |
23841 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
23842 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
23843 | fi |
23844 | fi |
23845 | rm -f confcache |
23846 | |
23847 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
23848 | # Let make expand exec_prefix. |
23849 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
23850 | |
23851 | DEFS=-DHAVE_CONFIG_H |
23852 | |
23853 | ac_libobjs= |
23854 | ac_ltlibobjs= |
23855 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
23856 | # 1. Remove the extension, and $U if already installed. |
23857 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
23858 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
23859 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
23860 | # will be set to the directory where LIBOBJS objects are built. |
23861 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
23862 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
23863 | done |
23864 | LIBOBJS=$ac_libobjs |
23865 | |
23866 | LTLIBOBJS=$ac_ltlibobjs |
23867 | |
23868 | |
23869 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
23870 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
23871 | Usually this means the macro was only invoked conditionally." >&5 |
23872 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
23873 | Usually this means the macro was only invoked conditionally." >&2;} |
23874 | { (exit 1); exit 1; }; } |
23875 | fi |
23876 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
23877 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
23878 | Usually this means the macro was only invoked conditionally." >&5 |
23879 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
23880 | Usually this means the macro was only invoked conditionally." >&2;} |
23881 | { (exit 1); exit 1; }; } |
23882 | fi |
23883 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
23884 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
23885 | Usually this means the macro was only invoked conditionally." >&5 |
23886 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
23887 | Usually this means the macro was only invoked conditionally." >&2;} |
23888 | { (exit 1); exit 1; }; } |
23889 | fi |
23890 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
23891 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
23892 | Usually this means the macro was only invoked conditionally." >&5 |
23893 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
23894 | Usually this means the macro was only invoked conditionally." >&2;} |
23895 | { (exit 1); exit 1; }; } |
23896 | fi |
23897 | if test -z "${FUSE_INTERNAL_TRUE}" && test -z "${FUSE_INTERNAL_FALSE}"; then |
23898 | { { echo "$as_me:$LINENO: error: conditional \"FUSE_INTERNAL\" was never defined. |
23899 | Usually this means the macro was only invoked conditionally." >&5 |
23900 | echo "$as_me: error: conditional \"FUSE_INTERNAL\" was never defined. |
23901 | Usually this means the macro was only invoked conditionally." >&2;} |
23902 | { (exit 1); exit 1; }; } |
23903 | fi |
23904 | if test -z "${GENERATE_LDSCRIPT_TRUE}" && test -z "${GENERATE_LDSCRIPT_FALSE}"; then |
23905 | { { echo "$as_me:$LINENO: error: conditional \"GENERATE_LDSCRIPT\" was never defined. |
23906 | Usually this means the macro was only invoked conditionally." >&5 |
23907 | echo "$as_me: error: conditional \"GENERATE_LDSCRIPT\" was never defined. |
23908 | Usually this means the macro was only invoked conditionally." >&2;} |
23909 | { (exit 1); exit 1; }; } |
23910 | fi |
23911 | if test -z "${WINDOWS_TRUE}" && test -z "${WINDOWS_FALSE}"; then |
23912 | { { echo "$as_me:$LINENO: error: conditional \"WINDOWS\" was never defined. |
23913 | Usually this means the macro was only invoked conditionally." >&5 |
23914 | echo "$as_me: error: conditional \"WINDOWS\" was never defined. |
23915 | Usually this means the macro was only invoked conditionally." >&2;} |
23916 | { (exit 1); exit 1; }; } |
23917 | fi |
23918 | if test -z "${NTFS_DEVICE_DEFAULT_IO_OPS_TRUE}" && test -z "${NTFS_DEVICE_DEFAULT_IO_OPS_FALSE}"; then |
23919 | { { echo "$as_me:$LINENO: error: conditional \"NTFS_DEVICE_DEFAULT_IO_OPS\" was never defined. |
23920 | Usually this means the macro was only invoked conditionally." >&5 |
23921 | echo "$as_me: error: conditional \"NTFS_DEVICE_DEFAULT_IO_OPS\" was never defined. |
23922 | Usually this means the macro was only invoked conditionally." >&2;} |
23923 | { (exit 1); exit 1; }; } |
23924 | fi |
23925 | if test -z "${RUN_LDCONFIG_TRUE}" && test -z "${RUN_LDCONFIG_FALSE}"; then |
23926 | { { echo "$as_me:$LINENO: error: conditional \"RUN_LDCONFIG\" was never defined. |
23927 | Usually this means the macro was only invoked conditionally." >&5 |
23928 | echo "$as_me: error: conditional \"RUN_LDCONFIG\" was never defined. |
23929 | Usually this means the macro was only invoked conditionally." >&2;} |
23930 | { (exit 1); exit 1; }; } |
23931 | fi |
23932 | if test -z "${REALLYSTATIC_TRUE}" && test -z "${REALLYSTATIC_FALSE}"; then |
23933 | { { echo "$as_me:$LINENO: error: conditional \"REALLYSTATIC\" was never defined. |
23934 | Usually this means the macro was only invoked conditionally." >&5 |
23935 | echo "$as_me: error: conditional \"REALLYSTATIC\" was never defined. |
23936 | Usually this means the macro was only invoked conditionally." >&2;} |
23937 | { (exit 1); exit 1; }; } |
23938 | fi |
23939 | if test -z "${INSTALL_LIBRARY_TRUE}" && test -z "${INSTALL_LIBRARY_FALSE}"; then |
23940 | { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LIBRARY\" was never defined. |
23941 | Usually this means the macro was only invoked conditionally." >&5 |
23942 | echo "$as_me: error: conditional \"INSTALL_LIBRARY\" was never defined. |
23943 | Usually this means the macro was only invoked conditionally." >&2;} |
23944 | { (exit 1); exit 1; }; } |
23945 | fi |
23946 | if test -z "${ENABLE_MOUNT_HELPER_TRUE}" && test -z "${ENABLE_MOUNT_HELPER_FALSE}"; then |
23947 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_MOUNT_HELPER\" was never defined. |
23948 | Usually this means the macro was only invoked conditionally." >&5 |
23949 | echo "$as_me: error: conditional \"ENABLE_MOUNT_HELPER\" was never defined. |
23950 | Usually this means the macro was only invoked conditionally." >&2;} |
23951 | { (exit 1); exit 1; }; } |
23952 | fi |
23953 | |
23954 | : ${CONFIG_STATUS=./config.status} |
23955 | ac_clean_files_save=$ac_clean_files |
23956 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
23957 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
23958 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
23959 | cat >$CONFIG_STATUS <<_ACEOF |
23960 | #! $SHELL |
23961 | # Generated by $as_me. |
23962 | # Run this file to recreate the current configuration. |
23963 | # Compiler output produced by configure, useful for debugging |
23964 | # configure, is in config.log if it exists. |
23965 | |
23966 | debug=false |
23967 | ac_cs_recheck=false |
23968 | ac_cs_silent=false |
23969 | SHELL=\${CONFIG_SHELL-$SHELL} |
23970 | _ACEOF |
23971 | |
23972 | cat >>$CONFIG_STATUS <<\_ACEOF |
23973 | ## --------------------- ## |
23974 | ## M4sh Initialization. ## |
23975 | ## --------------------- ## |
23976 | |
23977 | # Be more Bourne compatible |
23978 | DUALCASE=1; export DUALCASE # for MKS sh |
23979 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
23980 | emulate sh |
23981 | NULLCMD=: |
23982 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
23983 | # is contrary to our usage. Disable this feature. |
23984 | alias -g '${1+"$@"}'='"$@"' |
23985 | setopt NO_GLOB_SUBST |
23986 | else |
23987 | case `(set -o) 2>/dev/null` in |
23988 | *posix*) set -o posix ;; |
23989 | esac |
23990 | |
23991 | fi |
23992 | |
23993 | |
23994 | |
23995 | |
23996 | # PATH needs CR |
23997 | # Avoid depending upon Character Ranges. |
23998 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
23999 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
24000 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
24001 | as_cr_digits='0123456789' |
24002 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
24003 | |
24004 | # The user is always right. |
24005 | if test "${PATH_SEPARATOR+set}" != set; then |
24006 | echo "#! /bin/sh" >conf$$.sh |
24007 | echo "exit 0" >>conf$$.sh |
24008 | chmod +x conf$$.sh |
24009 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
24010 | PATH_SEPARATOR=';' |
24011 | else |
24012 | PATH_SEPARATOR=: |
24013 | fi |
24014 | rm -f conf$$.sh |
24015 | fi |
24016 | |
24017 | # Support unset when possible. |
24018 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
24019 | as_unset=unset |
24020 | else |
24021 | as_unset=false |
24022 | fi |
24023 | |
24024 | |
24025 | # IFS |
24026 | # We need space, tab and new line, in precisely that order. Quoting is |
24027 | # there to prevent editors from complaining about space-tab. |
24028 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
24029 | # splitting by setting IFS to empty value.) |
24030 | as_nl=' |
24031 | ' |
24032 | IFS=" "" $as_nl" |
24033 | |
24034 | # Find who we are. Look in the path if we contain no directory separator. |
24035 | case $0 in |
24036 | *[\\/]* ) as_myself=$0 ;; |
24037 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
24038 | for as_dir in $PATH |
24039 | do |
24040 | IFS=$as_save_IFS |
24041 | test -z "$as_dir" && as_dir=. |
24042 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
24043 | done |
24044 | IFS=$as_save_IFS |
24045 | |
24046 | ;; |
24047 | esac |
24048 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
24049 | # in which case we are not to be found in the path. |
24050 | if test "x$as_myself" = x; then |
24051 | as_myself=$0 |
24052 | fi |
24053 | if test ! -f "$as_myself"; then |
24054 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
24055 | { (exit 1); exit 1; } |
24056 | fi |
24057 | |
24058 | # Work around bugs in pre-3.0 UWIN ksh. |
24059 | for as_var in ENV MAIL MAILPATH |
24060 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
24061 | done |
24062 | PS1='$ ' |
24063 | PS2='> ' |
24064 | PS4='+ ' |
24065 | |
24066 | # NLS nuisances. |
24067 | for as_var in \ |
24068 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
24069 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
24070 | LC_TELEPHONE LC_TIME |
24071 | do |
24072 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
24073 | eval $as_var=C; export $as_var |
24074 | else |
24075 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
24076 | fi |
24077 | done |
24078 | |
24079 | # Required to use basename. |
24080 | if expr a : '\(a\)' >/dev/null 2>&1 && |
24081 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
24082 | as_expr=expr |
24083 | else |
24084 | as_expr=false |
24085 | fi |
24086 | |
24087 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
24088 | as_basename=basename |
24089 | else |
24090 | as_basename=false |
24091 | fi |
24092 | |
24093 | |
24094 | # Name of the executable. |
24095 | as_me=`$as_basename -- "$0" || |
24096 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
24097 | X"$0" : 'X\(//\)$' \| \ |
24098 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
24099 | echo X/"$0" | |
24100 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
24101 | s//\1/ |
24102 | q |
24103 | } |
24104 | /^X\/\(\/\/\)$/{ |
24105 | s//\1/ |
24106 | q |
24107 | } |
24108 | /^X\/\(\/\).*/{ |
24109 | s//\1/ |
24110 | q |
24111 | } |
24112 | s/.*/./; q'` |
24113 | |
24114 | # CDPATH. |
24115 | $as_unset CDPATH |
24116 | |
24117 | |
24118 | |
24119 | as_lineno_1=$LINENO |
24120 | as_lineno_2=$LINENO |
24121 | test "x$as_lineno_1" != "x$as_lineno_2" && |
24122 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
24123 | |
24124 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
24125 | # uniformly replaced by the line number. The first 'sed' inserts a |
24126 | # line-number line after each line using $LINENO; the second 'sed' |
24127 | # does the real work. The second script uses 'N' to pair each |
24128 | # line-number line with the line containing $LINENO, and appends |
24129 | # trailing '-' during substitution so that $LINENO is not a special |
24130 | # case at line end. |
24131 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
24132 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
24133 | # E. McMahon (1931-1989) for sed's syntax. :-) |
24134 | sed -n ' |
24135 | p |
24136 | /[$]LINENO/= |
24137 | ' <$as_myself | |
24138 | sed ' |
24139 | s/[$]LINENO.*/&-/ |
24140 | t lineno |
24141 | b |
24142 | :lineno |
24143 | N |
24144 | :loop |
24145 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
24146 | t loop |
24147 | s/-\n.*// |
24148 | ' >$as_me.lineno && |
24149 | chmod +x "$as_me.lineno" || |
24150 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
24151 | { (exit 1); exit 1; }; } |
24152 | |
24153 | # Don't try to exec as it changes $[0], causing all sort of problems |
24154 | # (the dirname of $[0] is not the place where we might find the |
24155 | # original and so on. Autoconf is especially sensitive to this). |
24156 | . "./$as_me.lineno" |
24157 | # Exit status is that of the last command. |
24158 | exit |
24159 | } |
24160 | |
24161 | |
24162 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
24163 | as_dirname=dirname |
24164 | else |
24165 | as_dirname=false |
24166 | fi |
24167 | |
24168 | ECHO_C= ECHO_N= ECHO_T= |
24169 | case `echo -n x` in |
24170 | -n*) |
24171 | case `echo 'x\c'` in |
24172 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
24173 | *) ECHO_C='\c';; |
24174 | esac;; |
24175 | *) |
24176 | ECHO_N='-n';; |
24177 | esac |
24178 | |
24179 | if expr a : '\(a\)' >/dev/null 2>&1 && |
24180 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
24181 | as_expr=expr |
24182 | else |
24183 | as_expr=false |
24184 | fi |
24185 | |
24186 | rm -f conf$$ conf$$.exe conf$$.file |
24187 | if test -d conf$$.dir; then |
24188 | rm -f conf$$.dir/conf$$.file |
24189 | else |
24190 | rm -f conf$$.dir |
24191 | mkdir conf$$.dir |
24192 | fi |
24193 | echo >conf$$.file |
24194 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
24195 | as_ln_s='ln -s' |
24196 | # ... but there are two gotchas: |
24197 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
24198 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
24199 | # In both cases, we have to default to `cp -p'. |
24200 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
24201 | as_ln_s='cp -p' |
24202 | elif ln conf$$.file conf$$ 2>/dev/null; then |
24203 | as_ln_s=ln |
24204 | else |
24205 | as_ln_s='cp -p' |
24206 | fi |
24207 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
24208 | rmdir conf$$.dir 2>/dev/null |
24209 | |
24210 | if mkdir -p . 2>/dev/null; then |
24211 | as_mkdir_p=: |
24212 | else |
24213 | test -d ./-p && rmdir ./-p |
24214 | as_mkdir_p=false |
24215 | fi |
24216 | |
24217 | if test -x / >/dev/null 2>&1; then |
24218 | as_test_x='test -x' |
24219 | else |
24220 | if ls -dL / >/dev/null 2>&1; then |
24221 | as_ls_L_option=L |
24222 | else |
24223 | as_ls_L_option= |
24224 | fi |
24225 | as_test_x=' |
24226 | eval sh -c '\'' |
24227 | if test -d "$1"; then |
24228 | test -d "$1/."; |
24229 | else |
24230 | case $1 in |
24231 | -*)set "./$1";; |
24232 | esac; |
24233 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
24234 | ???[sx]*):;;*)false;;esac;fi |
24235 | '\'' sh |
24236 | ' |
24237 | fi |
24238 | as_executable_p=$as_test_x |
24239 | |
24240 | # Sed expression to map a string onto a valid CPP name. |
24241 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
24242 | |
24243 | # Sed expression to map a string onto a valid variable name. |
24244 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
24245 | |
24246 | |
24247 | exec 6>&1 |
24248 | |
24249 | # Save the log message, to keep $[0] and so on meaningful, and to |
24250 | # report actual input values of CONFIG_FILES etc. instead of their |
24251 | # values after options handling. |
24252 | ac_log=" |
24253 | This file was extended by ntfs-3g $as_me 2010.5.16, which was |
24254 | generated by GNU Autoconf 2.61. Invocation command line was |
24255 | |
24256 | CONFIG_FILES = $CONFIG_FILES |
24257 | CONFIG_HEADERS = $CONFIG_HEADERS |
24258 | CONFIG_LINKS = $CONFIG_LINKS |
24259 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
24260 | $ $0 $@ |
24261 | |
24262 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
24263 | " |
24264 | |
24265 | _ACEOF |
24266 | |
24267 | cat >>$CONFIG_STATUS <<_ACEOF |
24268 | # Files that config.status was made for. |
24269 | config_files="$ac_config_files" |
24270 | config_headers="$ac_config_headers" |
24271 | config_commands="$ac_config_commands" |
24272 | |
24273 | _ACEOF |
24274 | |
24275 | cat >>$CONFIG_STATUS <<\_ACEOF |
24276 | ac_cs_usage="\ |
24277 | \`$as_me' instantiates files from templates according to the |
24278 | current configuration. |
24279 | |
24280 | Usage: $0 [OPTIONS] [FILE]... |
24281 | |
24282 | -h, --help print this help, then exit |
24283 | -V, --version print version number and configuration settings, then exit |
24284 | -q, --quiet do not print progress messages |
24285 | -d, --debug don't remove temporary files |
24286 | --recheck update $as_me by reconfiguring in the same conditions |
24287 | --file=FILE[:TEMPLATE] |
24288 | instantiate the configuration file FILE |
24289 | --header=FILE[:TEMPLATE] |
24290 | instantiate the configuration header FILE |
24291 | |
24292 | Configuration files: |
24293 | $config_files |
24294 | |
24295 | Configuration headers: |
24296 | $config_headers |
24297 | |
24298 | Configuration commands: |
24299 | $config_commands |
24300 | |
24301 | Report bugs to <bug-autoconf@gnu.org>." |
24302 | |
24303 | _ACEOF |
24304 | cat >>$CONFIG_STATUS <<_ACEOF |
24305 | ac_cs_version="\\ |
24306 | ntfs-3g config.status 2010.5.16 |
24307 | configured by $0, generated by GNU Autoconf 2.61, |
24308 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
24309 | |
24310 | Copyright (C) 2006 Free Software Foundation, Inc. |
24311 | This config.status script is free software; the Free Software Foundation |
24312 | gives unlimited permission to copy, distribute and modify it." |
24313 | |
24314 | ac_pwd='$ac_pwd' |
24315 | srcdir='$srcdir' |
24316 | INSTALL='$INSTALL' |
24317 | MKDIR_P='$MKDIR_P' |
24318 | _ACEOF |
24319 | |
24320 | cat >>$CONFIG_STATUS <<\_ACEOF |
24321 | # If no file are specified by the user, then we need to provide default |
24322 | # value. By we need to know if files were specified by the user. |
24323 | ac_need_defaults=: |
24324 | while test $# != 0 |
24325 | do |
24326 | case $1 in |
24327 | --*=*) |
24328 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
24329 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
24330 | ac_shift=: |
24331 | ;; |
24332 | *) |
24333 | ac_option=$1 |
24334 | ac_optarg=$2 |
24335 | ac_shift=shift |
24336 | ;; |
24337 | esac |
24338 | |
24339 | case $ac_option in |
24340 | # Handling of the options. |
24341 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
24342 | ac_cs_recheck=: ;; |
24343 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
24344 | echo "$ac_cs_version"; exit ;; |
24345 | --debug | --debu | --deb | --de | --d | -d ) |
24346 | debug=: ;; |
24347 | --file | --fil | --fi | --f ) |
24348 | $ac_shift |
24349 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
24350 | ac_need_defaults=false;; |
24351 | --header | --heade | --head | --hea ) |
24352 | $ac_shift |
24353 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
24354 | ac_need_defaults=false;; |
24355 | --he | --h) |
24356 | # Conflict between --help and --header |
24357 | { echo "$as_me: error: ambiguous option: $1 |
24358 | Try \`$0 --help' for more information." >&2 |
24359 | { (exit 1); exit 1; }; };; |
24360 | --help | --hel | -h ) |
24361 | echo "$ac_cs_usage"; exit ;; |
24362 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
24363 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
24364 | ac_cs_silent=: ;; |
24365 | |
24366 | # This is an error. |
24367 | -*) { echo "$as_me: error: unrecognized option: $1 |
24368 | Try \`$0 --help' for more information." >&2 |
24369 | { (exit 1); exit 1; }; } ;; |
24370 | |
24371 | *) ac_config_targets="$ac_config_targets $1" |
24372 | ac_need_defaults=false ;; |
24373 | |
24374 | esac |
24375 | shift |
24376 | done |
24377 | |
24378 | ac_configure_extra_args= |
24379 | |
24380 | if $ac_cs_silent; then |
24381 | exec 6>/dev/null |
24382 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
24383 | fi |
24384 | |
24385 | _ACEOF |
24386 | cat >>$CONFIG_STATUS <<_ACEOF |
24387 | if \$ac_cs_recheck; then |
24388 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
24389 | CONFIG_SHELL=$SHELL |
24390 | export CONFIG_SHELL |
24391 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
24392 | fi |
24393 | |
24394 | _ACEOF |
24395 | cat >>$CONFIG_STATUS <<\_ACEOF |
24396 | exec 5>>config.log |
24397 | { |
24398 | echo |
24399 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
24400 | ## Running $as_me. ## |
24401 | _ASBOX |
24402 | echo "$ac_log" |
24403 | } >&5 |
24404 | |
24405 | _ACEOF |
24406 | cat >>$CONFIG_STATUS <<_ACEOF |
24407 | # |
24408 | # INIT-COMMANDS |
24409 | # |
24410 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
24411 | |
24412 | _ACEOF |
24413 | |
24414 | cat >>$CONFIG_STATUS <<\_ACEOF |
24415 | |
24416 | # Handling of arguments. |
24417 | for ac_config_target in $ac_config_targets |
24418 | do |
24419 | case $ac_config_target in |
24420 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
24421 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
24422 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
24423 | "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;; |
24424 | "include/fuse-lite/Makefile") CONFIG_FILES="$CONFIG_FILES include/fuse-lite/Makefile" ;; |
24425 | "include/ntfs-3g/Makefile") CONFIG_FILES="$CONFIG_FILES include/ntfs-3g/Makefile" ;; |
24426 | "libfuse-lite/Makefile") CONFIG_FILES="$CONFIG_FILES libfuse-lite/Makefile" ;; |
24427 | "libntfs-3g/Makefile") CONFIG_FILES="$CONFIG_FILES libntfs-3g/Makefile" ;; |
24428 | "libntfs-3g/libntfs-3g.pc") CONFIG_FILES="$CONFIG_FILES libntfs-3g/libntfs-3g.pc" ;; |
24429 | "libntfs-3g/libntfs-3g.script.so") CONFIG_FILES="$CONFIG_FILES libntfs-3g/libntfs-3g.script.so" ;; |
24430 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
24431 | "src/ntfs-3g.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.8" ;; |
24432 | "src/ntfs-3g.probe.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.probe.8" ;; |
24433 | "src/ntfs-3g.usermap.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.usermap.8" ;; |
24434 | "src/ntfs-3g.secaudit.8") CONFIG_FILES="$CONFIG_FILES src/ntfs-3g.secaudit.8" ;; |
24435 | |
24436 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
24437 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
24438 | { (exit 1); exit 1; }; };; |
24439 | esac |
24440 | done |
24441 | |
24442 | |
24443 | # If the user did not use the arguments to specify the items to instantiate, |
24444 | # then the envvar interface is used. Set only those that are not. |
24445 | # We use the long form for the default assignment because of an extremely |
24446 | # bizarre bug on SunOS 4.1.3. |
24447 | if $ac_need_defaults; then |
24448 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
24449 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
24450 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
24451 | fi |
24452 | |
24453 | # Have a temporary directory for convenience. Make it in the build tree |
24454 | # simply because there is no reason against having it here, and in addition, |
24455 | # creating and moving files from /tmp can sometimes cause problems. |
24456 | # Hook for its removal unless debugging. |
24457 | # Note that there is a small window in which the directory will not be cleaned: |
24458 | # after its creation but before its name has been assigned to `$tmp'. |
24459 | $debug || |
24460 | { |
24461 | tmp= |
24462 | trap 'exit_status=$? |
24463 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
24464 | ' 0 |
24465 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
24466 | } |
24467 | # Create a (secure) tmp directory for tmp files. |
24468 | |
24469 | { |
24470 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
24471 | test -n "$tmp" && test -d "$tmp" |
24472 | } || |
24473 | { |
24474 | tmp=./conf$$-$RANDOM |
24475 | (umask 077 && mkdir "$tmp") |
24476 | } || |
24477 | { |
24478 | echo "$me: cannot create a temporary directory in ." >&2 |
24479 | { (exit 1); exit 1; } |
24480 | } |
24481 | |
24482 | # |
24483 | # Set up the sed scripts for CONFIG_FILES section. |
24484 | # |
24485 | |
24486 | # No need to generate the scripts if there are no CONFIG_FILES. |
24487 | # This happens for instance when ./config.status config.h |
24488 | if test -n "$CONFIG_FILES"; then |
24489 | |
24490 | _ACEOF |
24491 | |
24492 | |
24493 | |
24494 | ac_delim='%!_!# ' |
24495 | for ac_last_try in false false false false false :; do |
24496 | cat >conf$$subs.sed <<_ACEOF |
24497 | SHELL!$SHELL$ac_delim |
24498 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
24499 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
24500 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
24501 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
24502 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
24503 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
24504 | exec_prefix!$exec_prefix$ac_delim |
24505 | prefix!$prefix$ac_delim |
24506 | program_transform_name!$program_transform_name$ac_delim |
24507 | bindir!$bindir$ac_delim |
24508 | sbindir!$sbindir$ac_delim |
24509 | libexecdir!$libexecdir$ac_delim |
24510 | datarootdir!$datarootdir$ac_delim |
24511 | datadir!$datadir$ac_delim |
24512 | sysconfdir!$sysconfdir$ac_delim |
24513 | sharedstatedir!$sharedstatedir$ac_delim |
24514 | localstatedir!$localstatedir$ac_delim |
24515 | includedir!$includedir$ac_delim |
24516 | oldincludedir!$oldincludedir$ac_delim |
24517 | docdir!$docdir$ac_delim |
24518 | infodir!$infodir$ac_delim |
24519 | htmldir!$htmldir$ac_delim |
24520 | dvidir!$dvidir$ac_delim |
24521 | pdfdir!$pdfdir$ac_delim |
24522 | psdir!$psdir$ac_delim |
24523 | libdir!$libdir$ac_delim |
24524 | localedir!$localedir$ac_delim |
24525 | mandir!$mandir$ac_delim |
24526 | DEFS!$DEFS$ac_delim |
24527 | ECHO_C!$ECHO_C$ac_delim |
24528 | ECHO_N!$ECHO_N$ac_delim |
24529 | ECHO_T!$ECHO_T$ac_delim |
24530 | LIBS!$LIBS$ac_delim |
24531 | build_alias!$build_alias$ac_delim |
24532 | host_alias!$host_alias$ac_delim |
24533 | target_alias!$target_alias$ac_delim |
24534 | build!$build$ac_delim |
24535 | build_cpu!$build_cpu$ac_delim |
24536 | build_vendor!$build_vendor$ac_delim |
24537 | build_os!$build_os$ac_delim |
24538 | host!$host$ac_delim |
24539 | host_cpu!$host_cpu$ac_delim |
24540 | host_vendor!$host_vendor$ac_delim |
24541 | host_os!$host_os$ac_delim |
24542 | target!$target$ac_delim |
24543 | target_cpu!$target_cpu$ac_delim |
24544 | target_vendor!$target_vendor$ac_delim |
24545 | target_os!$target_os$ac_delim |
24546 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
24547 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
24548 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
24549 | am__isrc!$am__isrc$ac_delim |
24550 | CYGPATH_W!$CYGPATH_W$ac_delim |
24551 | PACKAGE!$PACKAGE$ac_delim |
24552 | VERSION!$VERSION$ac_delim |
24553 | ACLOCAL!$ACLOCAL$ac_delim |
24554 | AUTOCONF!$AUTOCONF$ac_delim |
24555 | AUTOMAKE!$AUTOMAKE$ac_delim |
24556 | AUTOHEADER!$AUTOHEADER$ac_delim |
24557 | MAKEINFO!$MAKEINFO$ac_delim |
24558 | install_sh!$install_sh$ac_delim |
24559 | STRIP!$STRIP$ac_delim |
24560 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
24561 | mkdir_p!$mkdir_p$ac_delim |
24562 | AWK!$AWK$ac_delim |
24563 | SET_MAKE!$SET_MAKE$ac_delim |
24564 | am__leading_dot!$am__leading_dot$ac_delim |
24565 | AMTAR!$AMTAR$ac_delim |
24566 | am__tar!$am__tar$ac_delim |
24567 | am__untar!$am__untar$ac_delim |
24568 | MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim |
24569 | MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim |
24570 | MAINT!$MAINT$ac_delim |
24571 | CC!$CC$ac_delim |
24572 | CFLAGS!$CFLAGS$ac_delim |
24573 | LDFLAGS!$LDFLAGS$ac_delim |
24574 | CPPFLAGS!$CPPFLAGS$ac_delim |
24575 | ac_ct_CC!$ac_ct_CC$ac_delim |
24576 | EXEEXT!$EXEEXT$ac_delim |
24577 | OBJEXT!$OBJEXT$ac_delim |
24578 | DEPDIR!$DEPDIR$ac_delim |
24579 | am__include!$am__include$ac_delim |
24580 | am__quote!$am__quote$ac_delim |
24581 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
24582 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
24583 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
24584 | CCDEPMODE!$CCDEPMODE$ac_delim |
24585 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
24586 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
24587 | LN_S!$LN_S$ac_delim |
24588 | SED!$SED$ac_delim |
24589 | GREP!$GREP$ac_delim |
24590 | EGREP!$EGREP$ac_delim |
24591 | ECHO!$ECHO$ac_delim |
24592 | AR!$AR$ac_delim |
24593 | RANLIB!$RANLIB$ac_delim |
24594 | _ACEOF |
24595 | |
24596 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
24597 | break |
24598 | elif $ac_last_try; then |
24599 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
24600 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
24601 | { (exit 1); exit 1; }; } |
24602 | else |
24603 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
24604 | fi |
24605 | done |
24606 | |
24607 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
24608 | if test -n "$ac_eof"; then |
24609 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
24610 | ac_eof=`expr $ac_eof + 1` |
24611 | fi |
24612 | |
24613 | cat >>$CONFIG_STATUS <<_ACEOF |
24614 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
24615 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
24616 | _ACEOF |
24617 | sed ' |
24618 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
24619 | s/^/s,@/; s/!/@,|#_!!_#|/ |
24620 | :n |
24621 | t n |
24622 | s/'"$ac_delim"'$/,g/; t |
24623 | s/$/\\/; p |
24624 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
24625 | ' >>$CONFIG_STATUS <conf$$subs.sed |
24626 | rm -f conf$$subs.sed |
24627 | cat >>$CONFIG_STATUS <<_ACEOF |
24628 | CEOF$ac_eof |
24629 | _ACEOF |
24630 | |
24631 | |
24632 | ac_delim='%!_!# ' |
24633 | for ac_last_try in false false false false false :; do |
24634 | cat >conf$$subs.sed <<_ACEOF |
24635 | DSYMUTIL!$DSYMUTIL$ac_delim |
24636 | NMEDIT!$NMEDIT$ac_delim |
24637 | CPP!$CPP$ac_delim |
24638 | CXX!$CXX$ac_delim |
24639 | CXXFLAGS!$CXXFLAGS$ac_delim |
24640 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
24641 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
24642 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
24643 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
24644 | CXXCPP!$CXXCPP$ac_delim |
24645 | F77!$F77$ac_delim |
24646 | FFLAGS!$FFLAGS$ac_delim |
24647 | ac_ct_F77!$ac_ct_F77$ac_delim |
24648 | LIBTOOL!$LIBTOOL$ac_delim |
24649 | MV!$MV$ac_delim |
24650 | RM!$RM$ac_delim |
24651 | LDCONFIG!$LDCONFIG$ac_delim |
24652 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
24653 | FUSE_MODULE_CFLAGS!$FUSE_MODULE_CFLAGS$ac_delim |
24654 | FUSE_MODULE_LIBS!$FUSE_MODULE_LIBS$ac_delim |
24655 | LIBOBJS!$LIBOBJS$ac_delim |
24656 | pkgconfigdir!$pkgconfigdir$ac_delim |
24657 | ntfs3gincludedir!$ntfs3gincludedir$ac_delim |
24658 | rootbindir!$rootbindir$ac_delim |
24659 | rootsbindir!$rootsbindir$ac_delim |
24660 | rootlibdir!$rootlibdir$ac_delim |
24661 | LIBNTFS_3G_VERSION!$LIBNTFS_3G_VERSION$ac_delim |
24662 | LIBFUSE_LITE_LIBS!$LIBFUSE_LITE_LIBS$ac_delim |
24663 | OUTPUT_FORMAT!$OUTPUT_FORMAT$ac_delim |
24664 | FUSE_INTERNAL_TRUE!$FUSE_INTERNAL_TRUE$ac_delim |
24665 | FUSE_INTERNAL_FALSE!$FUSE_INTERNAL_FALSE$ac_delim |
24666 | GENERATE_LDSCRIPT_TRUE!$GENERATE_LDSCRIPT_TRUE$ac_delim |
24667 | GENERATE_LDSCRIPT_FALSE!$GENERATE_LDSCRIPT_FALSE$ac_delim |
24668 | WINDOWS_TRUE!$WINDOWS_TRUE$ac_delim |
24669 | WINDOWS_FALSE!$WINDOWS_FALSE$ac_delim |
24670 | NTFS_DEVICE_DEFAULT_IO_OPS_TRUE!$NTFS_DEVICE_DEFAULT_IO_OPS_TRUE$ac_delim |
24671 | NTFS_DEVICE_DEFAULT_IO_OPS_FALSE!$NTFS_DEVICE_DEFAULT_IO_OPS_FALSE$ac_delim |
24672 | RUN_LDCONFIG_TRUE!$RUN_LDCONFIG_TRUE$ac_delim |
24673 | RUN_LDCONFIG_FALSE!$RUN_LDCONFIG_FALSE$ac_delim |
24674 | REALLYSTATIC_TRUE!$REALLYSTATIC_TRUE$ac_delim |
24675 | REALLYSTATIC_FALSE!$REALLYSTATIC_FALSE$ac_delim |
24676 | INSTALL_LIBRARY_TRUE!$INSTALL_LIBRARY_TRUE$ac_delim |
24677 | INSTALL_LIBRARY_FALSE!$INSTALL_LIBRARY_FALSE$ac_delim |
24678 | ENABLE_MOUNT_HELPER_TRUE!$ENABLE_MOUNT_HELPER_TRUE$ac_delim |
24679 | ENABLE_MOUNT_HELPER_FALSE!$ENABLE_MOUNT_HELPER_FALSE$ac_delim |
24680 | MKDIR_P!$MKDIR_P$ac_delim |
24681 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
24682 | _ACEOF |
24683 | |
24684 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 47; then |
24685 | break |
24686 | elif $ac_last_try; then |
24687 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
24688 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
24689 | { (exit 1); exit 1; }; } |
24690 | else |
24691 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
24692 | fi |
24693 | done |
24694 | |
24695 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
24696 | if test -n "$ac_eof"; then |
24697 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
24698 | ac_eof=`expr $ac_eof + 1` |
24699 | fi |
24700 | |
24701 | cat >>$CONFIG_STATUS <<_ACEOF |
24702 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
24703 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
24704 | _ACEOF |
24705 | sed ' |
24706 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
24707 | s/^/s,@/; s/!/@,|#_!!_#|/ |
24708 | :n |
24709 | t n |
24710 | s/'"$ac_delim"'$/,g/; t |
24711 | s/$/\\/; p |
24712 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
24713 | ' >>$CONFIG_STATUS <conf$$subs.sed |
24714 | rm -f conf$$subs.sed |
24715 | cat >>$CONFIG_STATUS <<_ACEOF |
24716 | :end |
24717 | s/|#_!!_#|//g |
24718 | CEOF$ac_eof |
24719 | _ACEOF |
24720 | |
24721 | |
24722 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
24723 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
24724 | # trailing colons and then remove the whole line if VPATH becomes empty |
24725 | # (actually we leave an empty line to preserve line numbers). |
24726 | if test "x$srcdir" = x.; then |
24727 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
24728 | s/:*\$(srcdir):*/:/ |
24729 | s/:*\${srcdir}:*/:/ |
24730 | s/:*@srcdir@:*/:/ |
24731 | s/^\([^=]*=[ ]*\):*/\1/ |
24732 | s/:*$// |
24733 | s/^[^=]*=[ ]*$// |
24734 | }' |
24735 | fi |
24736 | |
24737 | cat >>$CONFIG_STATUS <<\_ACEOF |
24738 | fi # test -n "$CONFIG_FILES" |
24739 | |
24740 | |
24741 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
24742 | do |
24743 | case $ac_tag in |
24744 | :[FHLC]) ac_mode=$ac_tag; continue;; |
24745 | esac |
24746 | case $ac_mode$ac_tag in |
24747 | :[FHL]*:*);; |
24748 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
24749 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
24750 | { (exit 1); exit 1; }; };; |
24751 | :[FH]-) ac_tag=-:-;; |
24752 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
24753 | esac |
24754 | ac_save_IFS=$IFS |
24755 | IFS=: |
24756 | set x $ac_tag |
24757 | IFS=$ac_save_IFS |
24758 | shift |
24759 | ac_file=$1 |
24760 | shift |
24761 | |
24762 | case $ac_mode in |
24763 | :L) ac_source=$1;; |
24764 | :[FH]) |
24765 | ac_file_inputs= |
24766 | for ac_f |
24767 | do |
24768 | case $ac_f in |
24769 | -) ac_f="$tmp/stdin";; |
24770 | *) # Look for the file first in the build tree, then in the source tree |
24771 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
24772 | # because $ac_f cannot contain `:'. |
24773 | test -f "$ac_f" || |
24774 | case $ac_f in |
24775 | [\\/$]*) false;; |
24776 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
24777 | esac || |
24778 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
24779 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
24780 | { (exit 1); exit 1; }; };; |
24781 | esac |
24782 | ac_file_inputs="$ac_file_inputs $ac_f" |
24783 | done |
24784 | |
24785 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
24786 | # use $as_me), people would be surprised to read: |
24787 | # /* config.h. Generated by config.status. */ |
24788 | configure_input="Generated from "`IFS=: |
24789 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
24790 | if test x"$ac_file" != x-; then |
24791 | configure_input="$ac_file. $configure_input" |
24792 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
24793 | echo "$as_me: creating $ac_file" >&6;} |
24794 | fi |
24795 | |
24796 | case $ac_tag in |
24797 | *:-:* | *:-) cat >"$tmp/stdin";; |
24798 | esac |
24799 | ;; |
24800 | esac |
24801 | |
24802 | ac_dir=`$as_dirname -- "$ac_file" || |
24803 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
24804 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
24805 | X"$ac_file" : 'X\(//\)$' \| \ |
24806 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
24807 | echo X"$ac_file" | |
24808 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
24809 | s//\1/ |
24810 | q |
24811 | } |
24812 | /^X\(\/\/\)[^/].*/{ |
24813 | s//\1/ |
24814 | q |
24815 | } |
24816 | /^X\(\/\/\)$/{ |
24817 | s//\1/ |
24818 | q |
24819 | } |
24820 | /^X\(\/\).*/{ |
24821 | s//\1/ |
24822 | q |
24823 | } |
24824 | s/.*/./; q'` |
24825 | { as_dir="$ac_dir" |
24826 | case $as_dir in #( |
24827 | -*) as_dir=./$as_dir;; |
24828 | esac |
24829 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
24830 | as_dirs= |
24831 | while :; do |
24832 | case $as_dir in #( |
24833 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
24834 | *) as_qdir=$as_dir;; |
24835 | esac |
24836 | as_dirs="'$as_qdir' $as_dirs" |
24837 | as_dir=`$as_dirname -- "$as_dir" || |
24838 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
24839 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
24840 | X"$as_dir" : 'X\(//\)$' \| \ |
24841 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
24842 | echo X"$as_dir" | |
24843 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
24844 | s//\1/ |
24845 | q |
24846 | } |
24847 | /^X\(\/\/\)[^/].*/{ |
24848 | s//\1/ |
24849 | q |
24850 | } |
24851 | /^X\(\/\/\)$/{ |
24852 | s//\1/ |
24853 | q |
24854 | } |
24855 | /^X\(\/\).*/{ |
24856 | s//\1/ |
24857 | q |
24858 | } |
24859 | s/.*/./; q'` |
24860 | test -d "$as_dir" && break |
24861 | done |
24862 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
24863 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
24864 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
24865 | { (exit 1); exit 1; }; }; } |
24866 | ac_builddir=. |
24867 | |
24868 | case "$ac_dir" in |
24869 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
24870 | *) |
24871 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
24872 | # A ".." for each directory in $ac_dir_suffix. |
24873 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
24874 | case $ac_top_builddir_sub in |
24875 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
24876 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
24877 | esac ;; |
24878 | esac |
24879 | ac_abs_top_builddir=$ac_pwd |
24880 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
24881 | # for backward compatibility: |
24882 | ac_top_builddir=$ac_top_build_prefix |
24883 | |
24884 | case $srcdir in |
24885 | .) # We are building in place. |
24886 | ac_srcdir=. |
24887 | ac_top_srcdir=$ac_top_builddir_sub |
24888 | ac_abs_top_srcdir=$ac_pwd ;; |
24889 | [\\/]* | ?:[\\/]* ) # Absolute name. |
24890 | ac_srcdir=$srcdir$ac_dir_suffix; |
24891 | ac_top_srcdir=$srcdir |
24892 | ac_abs_top_srcdir=$srcdir ;; |
24893 | *) # Relative name. |
24894 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
24895 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
24896 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
24897 | esac |
24898 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
24899 | |
24900 | |
24901 | case $ac_mode in |
24902 | :F) |
24903 | # |
24904 | # CONFIG_FILE |
24905 | # |
24906 | |
24907 | case $INSTALL in |
24908 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
24909 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
24910 | esac |
24911 | ac_MKDIR_P=$MKDIR_P |
24912 | case $MKDIR_P in |
24913 | [\\/$]* | ?:[\\/]* ) ;; |
24914 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; |
24915 | esac |
24916 | _ACEOF |
24917 | |
24918 | cat >>$CONFIG_STATUS <<\_ACEOF |
24919 | # If the template does not know about datarootdir, expand it. |
24920 | # FIXME: This hack should be removed a few years after 2.60. |
24921 | ac_datarootdir_hack=; ac_datarootdir_seen= |
24922 | |
24923 | case `sed -n '/datarootdir/ { |
24924 | p |
24925 | q |
24926 | } |
24927 | /@datadir@/p |
24928 | /@docdir@/p |
24929 | /@infodir@/p |
24930 | /@localedir@/p |
24931 | /@mandir@/p |
24932 | ' $ac_file_inputs` in |
24933 | *datarootdir*) ac_datarootdir_seen=yes;; |
24934 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
24935 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
24936 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
24937 | _ACEOF |
24938 | cat >>$CONFIG_STATUS <<_ACEOF |
24939 | ac_datarootdir_hack=' |
24940 | s&@datadir@&$datadir&g |
24941 | s&@docdir@&$docdir&g |
24942 | s&@infodir@&$infodir&g |
24943 | s&@localedir@&$localedir&g |
24944 | s&@mandir@&$mandir&g |
24945 | s&\\\${datarootdir}&$datarootdir&g' ;; |
24946 | esac |
24947 | _ACEOF |
24948 | |
24949 | # Neutralize VPATH when `$srcdir' = `.'. |
24950 | # Shell code in configure.ac might set extrasub. |
24951 | # FIXME: do we really want to maintain this feature? |
24952 | cat >>$CONFIG_STATUS <<_ACEOF |
24953 | sed "$ac_vpsub |
24954 | $extrasub |
24955 | _ACEOF |
24956 | cat >>$CONFIG_STATUS <<\_ACEOF |
24957 | :t |
24958 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
24959 | s&@configure_input@&$configure_input&;t t |
24960 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
24961 | s&@srcdir@&$ac_srcdir&;t t |
24962 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
24963 | s&@top_srcdir@&$ac_top_srcdir&;t t |
24964 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
24965 | s&@builddir@&$ac_builddir&;t t |
24966 | s&@abs_builddir@&$ac_abs_builddir&;t t |
24967 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
24968 | s&@INSTALL@&$ac_INSTALL&;t t |
24969 | s&@MKDIR_P@&$ac_MKDIR_P&;t t |
24970 | $ac_datarootdir_hack |
24971 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
24972 | |
24973 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
24974 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
24975 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
24976 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
24977 | which seems to be undefined. Please make sure it is defined." >&5 |
24978 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
24979 | which seems to be undefined. Please make sure it is defined." >&2;} |
24980 | |
24981 | rm -f "$tmp/stdin" |
24982 | case $ac_file in |
24983 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
24984 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
24985 | esac |
24986 | ;; |
24987 | :H) |
24988 | # |
24989 | # CONFIG_HEADER |
24990 | # |
24991 | _ACEOF |
24992 | |
24993 | # Transform confdefs.h into a sed script `conftest.defines', that |
24994 | # substitutes the proper values into config.h.in to produce config.h. |
24995 | rm -f conftest.defines conftest.tail |
24996 | # First, append a space to every undef/define line, to ease matching. |
24997 | echo 's/$/ /' >conftest.defines |
24998 | # Then, protect against being on the right side of a sed subst, or in |
24999 | # an unquoted here document, in config.status. If some macros were |
25000 | # called several times there might be several #defines for the same |
25001 | # symbol, which is useless. But do not sort them, since the last |
25002 | # AC_DEFINE must be honored. |
25003 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
25004 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
25005 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
25006 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
25007 | # just an empty string. |
25008 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
25009 | ac_dB='\\)[ (].*,\\1define\\2' |
25010 | ac_dC=' ' |
25011 | ac_dD=' ,' |
25012 | |
25013 | uniq confdefs.h | |
25014 | sed -n ' |
25015 | t rset |
25016 | :rset |
25017 | s/^[ ]*#[ ]*define[ ][ ]*// |
25018 | t ok |
25019 | d |
25020 | :ok |
25021 | s/[\\&,]/\\&/g |
25022 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
25023 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
25024 | ' >>conftest.defines |
25025 | |
25026 | # Remove the space that was appended to ease matching. |
25027 | # Then replace #undef with comments. This is necessary, for |
25028 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
25029 | # on some systems where configure will not decide to define it. |
25030 | # (The regexp can be short, since the line contains either #define or #undef.) |
25031 | echo 's/ $// |
25032 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
25033 | |
25034 | # Break up conftest.defines: |
25035 | ac_max_sed_lines=50 |
25036 | |
25037 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
25038 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
25039 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
25040 | # et cetera. |
25041 | ac_in='$ac_file_inputs' |
25042 | ac_out='"$tmp/out1"' |
25043 | ac_nxt='"$tmp/out2"' |
25044 | |
25045 | while : |
25046 | do |
25047 | # Write a here document: |
25048 | cat >>$CONFIG_STATUS <<_ACEOF |
25049 | # First, check the format of the line: |
25050 | cat >"\$tmp/defines.sed" <<\\CEOF |
25051 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
25052 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
25053 | b |
25054 | :def |
25055 | _ACEOF |
25056 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
25057 | echo 'CEOF |
25058 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
25059 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
25060 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
25061 | grep . conftest.tail >/dev/null || break |
25062 | rm -f conftest.defines |
25063 | mv conftest.tail conftest.defines |
25064 | done |
25065 | rm -f conftest.defines conftest.tail |
25066 | |
25067 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
25068 | cat >>$CONFIG_STATUS <<\_ACEOF |
25069 | if test x"$ac_file" != x-; then |
25070 | echo "/* $configure_input */" >"$tmp/config.h" |
25071 | cat "$ac_result" >>"$tmp/config.h" |
25072 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
25073 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
25074 | echo "$as_me: $ac_file is unchanged" >&6;} |
25075 | else |
25076 | rm -f $ac_file |
25077 | mv "$tmp/config.h" $ac_file |
25078 | fi |
25079 | else |
25080 | echo "/* $configure_input */" |
25081 | cat "$ac_result" |
25082 | fi |
25083 | rm -f "$tmp/out12" |
25084 | # Compute $ac_file's index in $config_headers. |
25085 | _am_arg=$ac_file |
25086 | _am_stamp_count=1 |
25087 | for _am_header in $config_headers :; do |
25088 | case $_am_header in |
25089 | $_am_arg | $_am_arg:* ) |
25090 | break ;; |
25091 | * ) |
25092 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
25093 | esac |
25094 | done |
25095 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || |
25096 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
25097 | X"$_am_arg" : 'X\(//\)[^/]' \| \ |
25098 | X"$_am_arg" : 'X\(//\)$' \| \ |
25099 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || |
25100 | echo X"$_am_arg" | |
25101 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
25102 | s//\1/ |
25103 | q |
25104 | } |
25105 | /^X\(\/\/\)[^/].*/{ |
25106 | s//\1/ |
25107 | q |
25108 | } |
25109 | /^X\(\/\/\)$/{ |
25110 | s//\1/ |
25111 | q |
25112 | } |
25113 | /^X\(\/\).*/{ |
25114 | s//\1/ |
25115 | q |
25116 | } |
25117 | s/.*/./; q'`/stamp-h$_am_stamp_count |
25118 | ;; |
25119 | |
25120 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
25121 | echo "$as_me: executing $ac_file commands" >&6;} |
25122 | ;; |
25123 | esac |
25124 | |
25125 | |
25126 | case $ac_file$ac_mode in |
25127 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
25128 | # Strip MF so we end up with the name of the file. |
25129 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
25130 | # Check whether this is an Automake generated Makefile or not. |
25131 | # We used to match only the files named `Makefile.in', but |
25132 | # some people rename them; so instead we look at the file content. |
25133 | # Grep'ing the first line is not enough: some people post-process |
25134 | # each Makefile.in and add a new line on top of each file to say so. |
25135 | # Grep'ing the whole file is not good either: AIX grep has a line |
25136 | # limit of 2048, but all sed's we know have understand at least 4000. |
25137 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then |
25138 | dirpart=`$as_dirname -- "$mf" || |
25139 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
25140 | X"$mf" : 'X\(//\)[^/]' \| \ |
25141 | X"$mf" : 'X\(//\)$' \| \ |
25142 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
25143 | echo X"$mf" | |
25144 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
25145 | s//\1/ |
25146 | q |
25147 | } |
25148 | /^X\(\/\/\)[^/].*/{ |
25149 | s//\1/ |
25150 | q |
25151 | } |
25152 | /^X\(\/\/\)$/{ |
25153 | s//\1/ |
25154 | q |
25155 | } |
25156 | /^X\(\/\).*/{ |
25157 | s//\1/ |
25158 | q |
25159 | } |
25160 | s/.*/./; q'` |
25161 | else |
25162 | continue |
25163 | fi |
25164 | # Extract the definition of DEPDIR, am__include, and am__quote |
25165 | # from the Makefile without running `make'. |
25166 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
25167 | test -z "$DEPDIR" && continue |
25168 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
25169 | test -z "am__include" && continue |
25170 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
25171 | # When using ansi2knr, U may be empty or an underscore; expand it |
25172 | U=`sed -n 's/^U = //p' < "$mf"` |
25173 | # Find all dependency output files, they are included files with |
25174 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
25175 | # simplest approach to changing $(DEPDIR) to its actual value in the |
25176 | # expansion. |
25177 | for file in `sed -n " |
25178 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
25179 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
25180 | # Make sure the directory exists. |
25181 | test -f "$dirpart/$file" && continue |
25182 | fdir=`$as_dirname -- "$file" || |
25183 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
25184 | X"$file" : 'X\(//\)[^/]' \| \ |
25185 | X"$file" : 'X\(//\)$' \| \ |
25186 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
25187 | echo X"$file" | |
25188 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
25189 | s//\1/ |
25190 | q |
25191 | } |
25192 | /^X\(\/\/\)[^/].*/{ |
25193 | s//\1/ |
25194 | q |
25195 | } |
25196 | /^X\(\/\/\)$/{ |
25197 | s//\1/ |
25198 | q |
25199 | } |
25200 | /^X\(\/\).*/{ |
25201 | s//\1/ |
25202 | q |
25203 | } |
25204 | s/.*/./; q'` |
25205 | { as_dir=$dirpart/$fdir |
25206 | case $as_dir in #( |
25207 | -*) as_dir=./$as_dir;; |
25208 | esac |
25209 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
25210 | as_dirs= |
25211 | while :; do |
25212 | case $as_dir in #( |
25213 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
25214 | *) as_qdir=$as_dir;; |
25215 | esac |
25216 | as_dirs="'$as_qdir' $as_dirs" |
25217 | as_dir=`$as_dirname -- "$as_dir" || |
25218 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
25219 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
25220 | X"$as_dir" : 'X\(//\)$' \| \ |
25221 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
25222 | echo X"$as_dir" | |
25223 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
25224 | s//\1/ |
25225 | q |
25226 | } |
25227 | /^X\(\/\/\)[^/].*/{ |
25228 | s//\1/ |
25229 | q |
25230 | } |
25231 | /^X\(\/\/\)$/{ |
25232 | s//\1/ |
25233 | q |
25234 | } |
25235 | /^X\(\/\).*/{ |
25236 | s//\1/ |
25237 | q |
25238 | } |
25239 | s/.*/./; q'` |
25240 | test -d "$as_dir" && break |
25241 | done |
25242 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
25243 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
25244 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
25245 | { (exit 1); exit 1; }; }; } |
25246 | # echo "creating $dirpart/$file" |
25247 | echo '# dummy' > "$dirpart/$file" |
25248 | done |
25249 | done |
25250 | ;; |
25251 | |
25252 | esac |
25253 | done # for ac_tag |
25254 | |
25255 | |
25256 | { (exit 0); exit 0; } |
25257 | _ACEOF |
25258 | chmod +x $CONFIG_STATUS |
25259 | ac_clean_files=$ac_clean_files_save |
25260 | |
25261 | |
25262 | # configure is writing to config.log, and then calls config.status. |
25263 | # config.status does its own redirection, appending to config.log. |
25264 | # Unfortunately, on DOS this fails, as config.log is still kept open |
25265 | # by configure, so config.status won't be able to write to it; its |
25266 | # output is simply discarded. So we exec the FD to /dev/null, |
25267 | # effectively closing config.log, so it can be properly (re)opened and |
25268 | # appended to by config.status. When coming back to configure, we |
25269 | # need to make the FD available again. |
25270 | if test "$no_create" != yes; then |
25271 | ac_cs_success=: |
25272 | ac_config_status_args= |
25273 | test "$silent" = yes && |
25274 | ac_config_status_args="$ac_config_status_args --quiet" |
25275 | exec 5>/dev/null |
25276 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
25277 | exec 5>>config.log |
25278 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
25279 | # would make configure fail if this is the last instruction. |
25280 | $ac_cs_success || { (exit 1); exit 1; } |
25281 | fi |
25282 | |
25283 | |
25284 | if test "${with_fuse}" = "external"; then |
25285 | if ! echo "x$FUSE_LIB_PATH" | grep -- "x-L/lib" > /dev/null; then |
25286 | cat <<EOF |
25287 | **************************************************************************** |
25288 | * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING * |
25289 | * The FUSE user space binaries were NOT installed with root directory * |
25290 | * executable prefix. This means that automounting NTFS volumes during boot * |
25291 | * could fail. This can be fixed the below way by reinstalling FUSE using * |
25292 | * the right 'configure' option during FUSE compilation: * |
25293 | * ./configure --exec-prefix=/ * |
25294 | * make && sudo make install * |
25295 | * WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING * |
25296 | **************************************************************************** |
25297 | EOF |
25298 | fi |
25299 | fi |
25300 | |
25301 | echo "You can type now 'make' to build ntfs-3g." |
25302 | |
25303 |