blob: 361eb19a5dcd64568fbb908b4d5ee8099d67ed7d
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.61 for zvbi 0.2.33. |
4 | # |
5 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
6 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
7 | # This configure script is free software; the Free Software Foundation |
8 | # gives unlimited permission to copy, distribute and modify it. |
9 | ## --------------------- ## |
10 | ## M4sh Initialization. ## |
11 | ## --------------------- ## |
12 | |
13 | # Be more Bourne compatible |
14 | DUALCASE=1; export DUALCASE # for MKS sh |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
16 | emulate sh |
17 | NULLCMD=: |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
19 | # is contrary to our usage. Disable this feature. |
20 | alias -g '${1+"$@"}'='"$@"' |
21 | setopt NO_GLOB_SUBST |
22 | else |
23 | case `(set -o) 2>/dev/null` in |
24 | *posix*) set -o posix ;; |
25 | esac |
26 | |
27 | fi |
28 | |
29 | |
30 | |
31 | |
32 | # PATH needs CR |
33 | # Avoid depending upon Character Ranges. |
34 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
35 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
36 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
37 | as_cr_digits='0123456789' |
38 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
39 | |
40 | # The user is always right. |
41 | if test "${PATH_SEPARATOR+set}" != set; then |
42 | echo "#! /bin/sh" >conf$$.sh |
43 | echo "exit 0" >>conf$$.sh |
44 | chmod +x conf$$.sh |
45 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
46 | PATH_SEPARATOR=';' |
47 | else |
48 | PATH_SEPARATOR=: |
49 | fi |
50 | rm -f conf$$.sh |
51 | fi |
52 | |
53 | # Support unset when possible. |
54 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
55 | as_unset=unset |
56 | else |
57 | as_unset=false |
58 | fi |
59 | |
60 | |
61 | # IFS |
62 | # We need space, tab and new line, in precisely that order. Quoting is |
63 | # there to prevent editors from complaining about space-tab. |
64 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
65 | # splitting by setting IFS to empty value.) |
66 | as_nl=' |
67 | ' |
68 | IFS=" "" $as_nl" |
69 | |
70 | # Find who we are. Look in the path if we contain no directory separator. |
71 | case $0 in |
72 | *[\\/]* ) as_myself=$0 ;; |
73 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
74 | for as_dir in $PATH |
75 | do |
76 | IFS=$as_save_IFS |
77 | test -z "$as_dir" && as_dir=. |
78 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
79 | done |
80 | IFS=$as_save_IFS |
81 | |
82 | ;; |
83 | esac |
84 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
85 | # in which case we are not to be found in the path. |
86 | if test "x$as_myself" = x; then |
87 | as_myself=$0 |
88 | fi |
89 | if test ! -f "$as_myself"; then |
90 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
91 | { (exit 1); exit 1; } |
92 | fi |
93 | |
94 | # Work around bugs in pre-3.0 UWIN ksh. |
95 | for as_var in ENV MAIL MAILPATH |
96 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
97 | done |
98 | PS1='$ ' |
99 | PS2='> ' |
100 | PS4='+ ' |
101 | |
102 | # NLS nuisances. |
103 | for as_var in \ |
104 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
105 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
106 | LC_TELEPHONE LC_TIME |
107 | do |
108 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
109 | eval $as_var=C; export $as_var |
110 | else |
111 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
112 | fi |
113 | done |
114 | |
115 | # Required to use basename. |
116 | if expr a : '\(a\)' >/dev/null 2>&1 && |
117 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
118 | as_expr=expr |
119 | else |
120 | as_expr=false |
121 | fi |
122 | |
123 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
124 | as_basename=basename |
125 | else |
126 | as_basename=false |
127 | fi |
128 | |
129 | |
130 | # Name of the executable. |
131 | as_me=`$as_basename -- "$0" || |
132 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
133 | X"$0" : 'X\(//\)$' \| \ |
134 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
135 | echo X/"$0" | |
136 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
137 | s//\1/ |
138 | q |
139 | } |
140 | /^X\/\(\/\/\)$/{ |
141 | s//\1/ |
142 | q |
143 | } |
144 | /^X\/\(\/\).*/{ |
145 | s//\1/ |
146 | q |
147 | } |
148 | s/.*/./; q'` |
149 | |
150 | # CDPATH. |
151 | $as_unset CDPATH |
152 | |
153 | |
154 | if test "x$CONFIG_SHELL" = x; then |
155 | if (eval ":") 2>/dev/null; then |
156 | as_have_required=yes |
157 | else |
158 | as_have_required=no |
159 | fi |
160 | |
161 | if test $as_have_required = yes && (eval ": |
162 | (as_func_return () { |
163 | (exit \$1) |
164 | } |
165 | as_func_success () { |
166 | as_func_return 0 |
167 | } |
168 | as_func_failure () { |
169 | as_func_return 1 |
170 | } |
171 | as_func_ret_success () { |
172 | return 0 |
173 | } |
174 | as_func_ret_failure () { |
175 | return 1 |
176 | } |
177 | |
178 | exitcode=0 |
179 | if as_func_success; then |
180 | : |
181 | else |
182 | exitcode=1 |
183 | echo as_func_success failed. |
184 | fi |
185 | |
186 | if as_func_failure; then |
187 | exitcode=1 |
188 | echo as_func_failure succeeded. |
189 | fi |
190 | |
191 | if as_func_ret_success; then |
192 | : |
193 | else |
194 | exitcode=1 |
195 | echo as_func_ret_success failed. |
196 | fi |
197 | |
198 | if as_func_ret_failure; then |
199 | exitcode=1 |
200 | echo as_func_ret_failure succeeded. |
201 | fi |
202 | |
203 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
204 | : |
205 | else |
206 | exitcode=1 |
207 | echo positional parameters were not saved. |
208 | fi |
209 | |
210 | test \$exitcode = 0) || { (exit 1); exit 1; } |
211 | |
212 | ( |
213 | as_lineno_1=\$LINENO |
214 | as_lineno_2=\$LINENO |
215 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
216 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
217 | ") 2> /dev/null; then |
218 | : |
219 | else |
220 | as_candidate_shells= |
221 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
222 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
223 | do |
224 | IFS=$as_save_IFS |
225 | test -z "$as_dir" && as_dir=. |
226 | case $as_dir in |
227 | /*) |
228 | for as_base in sh bash ksh sh5; do |
229 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
230 | done;; |
231 | esac |
232 | done |
233 | IFS=$as_save_IFS |
234 | |
235 | |
236 | for as_shell in $as_candidate_shells $SHELL; do |
237 | # Try only shells that exist, to save several forks. |
238 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
239 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
240 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
241 | emulate sh |
242 | NULLCMD=: |
243 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
244 | # is contrary to our usage. Disable this feature. |
245 | alias -g '${1+"$@"}'='"$@"' |
246 | setopt NO_GLOB_SUBST |
247 | else |
248 | case `(set -o) 2>/dev/null` in |
249 | *posix*) set -o posix ;; |
250 | esac |
251 | |
252 | fi |
253 | |
254 | |
255 | : |
256 | _ASEOF |
257 | }; then |
258 | CONFIG_SHELL=$as_shell |
259 | as_have_required=yes |
260 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
261 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
262 | emulate sh |
263 | NULLCMD=: |
264 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
265 | # is contrary to our usage. Disable this feature. |
266 | alias -g '${1+"$@"}'='"$@"' |
267 | setopt NO_GLOB_SUBST |
268 | else |
269 | case `(set -o) 2>/dev/null` in |
270 | *posix*) set -o posix ;; |
271 | esac |
272 | |
273 | fi |
274 | |
275 | |
276 | : |
277 | (as_func_return () { |
278 | (exit $1) |
279 | } |
280 | as_func_success () { |
281 | as_func_return 0 |
282 | } |
283 | as_func_failure () { |
284 | as_func_return 1 |
285 | } |
286 | as_func_ret_success () { |
287 | return 0 |
288 | } |
289 | as_func_ret_failure () { |
290 | return 1 |
291 | } |
292 | |
293 | exitcode=0 |
294 | if as_func_success; then |
295 | : |
296 | else |
297 | exitcode=1 |
298 | echo as_func_success failed. |
299 | fi |
300 | |
301 | if as_func_failure; then |
302 | exitcode=1 |
303 | echo as_func_failure succeeded. |
304 | fi |
305 | |
306 | if as_func_ret_success; then |
307 | : |
308 | else |
309 | exitcode=1 |
310 | echo as_func_ret_success failed. |
311 | fi |
312 | |
313 | if as_func_ret_failure; then |
314 | exitcode=1 |
315 | echo as_func_ret_failure succeeded. |
316 | fi |
317 | |
318 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
319 | : |
320 | else |
321 | exitcode=1 |
322 | echo positional parameters were not saved. |
323 | fi |
324 | |
325 | test $exitcode = 0) || { (exit 1); exit 1; } |
326 | |
327 | ( |
328 | as_lineno_1=$LINENO |
329 | as_lineno_2=$LINENO |
330 | test "x$as_lineno_1" != "x$as_lineno_2" && |
331 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
332 | |
333 | _ASEOF |
334 | }; then |
335 | break |
336 | fi |
337 | |
338 | fi |
339 | |
340 | done |
341 | |
342 | if test "x$CONFIG_SHELL" != x; then |
343 | for as_var in BASH_ENV ENV |
344 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
345 | done |
346 | export CONFIG_SHELL |
347 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
348 | fi |
349 | |
350 | |
351 | if test $as_have_required = no; then |
352 | echo This script requires a shell more modern than all the |
353 | echo shells that I found on your system. Please install a |
354 | echo modern shell, or manually run the script under such a |
355 | echo shell if you do have one. |
356 | { (exit 1); exit 1; } |
357 | fi |
358 | |
359 | |
360 | fi |
361 | |
362 | fi |
363 | |
364 | |
365 | |
366 | (eval "as_func_return () { |
367 | (exit \$1) |
368 | } |
369 | as_func_success () { |
370 | as_func_return 0 |
371 | } |
372 | as_func_failure () { |
373 | as_func_return 1 |
374 | } |
375 | as_func_ret_success () { |
376 | return 0 |
377 | } |
378 | as_func_ret_failure () { |
379 | return 1 |
380 | } |
381 | |
382 | exitcode=0 |
383 | if as_func_success; then |
384 | : |
385 | else |
386 | exitcode=1 |
387 | echo as_func_success failed. |
388 | fi |
389 | |
390 | if as_func_failure; then |
391 | exitcode=1 |
392 | echo as_func_failure succeeded. |
393 | fi |
394 | |
395 | if as_func_ret_success; then |
396 | : |
397 | else |
398 | exitcode=1 |
399 | echo as_func_ret_success failed. |
400 | fi |
401 | |
402 | if as_func_ret_failure; then |
403 | exitcode=1 |
404 | echo as_func_ret_failure succeeded. |
405 | fi |
406 | |
407 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
408 | : |
409 | else |
410 | exitcode=1 |
411 | echo positional parameters were not saved. |
412 | fi |
413 | |
414 | test \$exitcode = 0") || { |
415 | echo No shell found that supports shell functions. |
416 | echo Please tell autoconf@gnu.org about your system, |
417 | echo including any error possibly output before this |
418 | echo message |
419 | } |
420 | |
421 | |
422 | |
423 | as_lineno_1=$LINENO |
424 | as_lineno_2=$LINENO |
425 | test "x$as_lineno_1" != "x$as_lineno_2" && |
426 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
427 | |
428 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
429 | # uniformly replaced by the line number. The first 'sed' inserts a |
430 | # line-number line after each line using $LINENO; the second 'sed' |
431 | # does the real work. The second script uses 'N' to pair each |
432 | # line-number line with the line containing $LINENO, and appends |
433 | # trailing '-' during substitution so that $LINENO is not a special |
434 | # case at line end. |
435 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
436 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
437 | # E. McMahon (1931-1989) for sed's syntax. :-) |
438 | sed -n ' |
439 | p |
440 | /[$]LINENO/= |
441 | ' <$as_myself | |
442 | sed ' |
443 | s/[$]LINENO.*/&-/ |
444 | t lineno |
445 | b |
446 | :lineno |
447 | N |
448 | :loop |
449 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
450 | t loop |
451 | s/-\n.*// |
452 | ' >$as_me.lineno && |
453 | chmod +x "$as_me.lineno" || |
454 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
455 | { (exit 1); exit 1; }; } |
456 | |
457 | # Don't try to exec as it changes $[0], causing all sort of problems |
458 | # (the dirname of $[0] is not the place where we might find the |
459 | # original and so on. Autoconf is especially sensitive to this). |
460 | . "./$as_me.lineno" |
461 | # Exit status is that of the last command. |
462 | exit |
463 | } |
464 | |
465 | |
466 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
467 | as_dirname=dirname |
468 | else |
469 | as_dirname=false |
470 | fi |
471 | |
472 | ECHO_C= ECHO_N= ECHO_T= |
473 | case `echo -n x` in |
474 | -n*) |
475 | case `echo 'x\c'` in |
476 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
477 | *) ECHO_C='\c';; |
478 | esac;; |
479 | *) |
480 | ECHO_N='-n';; |
481 | esac |
482 | |
483 | if expr a : '\(a\)' >/dev/null 2>&1 && |
484 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
485 | as_expr=expr |
486 | else |
487 | as_expr=false |
488 | fi |
489 | |
490 | rm -f conf$$ conf$$.exe conf$$.file |
491 | if test -d conf$$.dir; then |
492 | rm -f conf$$.dir/conf$$.file |
493 | else |
494 | rm -f conf$$.dir |
495 | mkdir conf$$.dir |
496 | fi |
497 | echo >conf$$.file |
498 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
499 | as_ln_s='ln -s' |
500 | # ... but there are two gotchas: |
501 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
502 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
503 | # In both cases, we have to default to `cp -p'. |
504 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
505 | as_ln_s='cp -p' |
506 | elif ln conf$$.file conf$$ 2>/dev/null; then |
507 | as_ln_s=ln |
508 | else |
509 | as_ln_s='cp -p' |
510 | fi |
511 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
512 | rmdir conf$$.dir 2>/dev/null |
513 | |
514 | if mkdir -p . 2>/dev/null; then |
515 | as_mkdir_p=: |
516 | else |
517 | test -d ./-p && rmdir ./-p |
518 | as_mkdir_p=false |
519 | fi |
520 | |
521 | if test -x / >/dev/null 2>&1; then |
522 | as_test_x='test -x' |
523 | else |
524 | if ls -dL / >/dev/null 2>&1; then |
525 | as_ls_L_option=L |
526 | else |
527 | as_ls_L_option= |
528 | fi |
529 | as_test_x=' |
530 | eval sh -c '\'' |
531 | if test -d "$1"; then |
532 | test -d "$1/."; |
533 | else |
534 | case $1 in |
535 | -*)set "./$1";; |
536 | esac; |
537 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
538 | ???[sx]*):;;*)false;;esac;fi |
539 | '\'' sh |
540 | ' |
541 | fi |
542 | as_executable_p=$as_test_x |
543 | |
544 | # Sed expression to map a string onto a valid CPP name. |
545 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
546 | |
547 | # Sed expression to map a string onto a valid variable name. |
548 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
549 | |
550 | |
551 | |
552 | |
553 | # Check that we are running under the correct shell. |
554 | SHELL=${CONFIG_SHELL-/bin/sh} |
555 | |
556 | case X$ECHO in |
557 | X*--fallback-echo) |
558 | # Remove one level of quotation (which was required for Make). |
559 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
560 | ;; |
561 | esac |
562 | |
563 | echo=${ECHO-echo} |
564 | if test "X$1" = X--no-reexec; then |
565 | # Discard the --no-reexec flag, and continue. |
566 | shift |
567 | elif test "X$1" = X--fallback-echo; then |
568 | # Avoid inline document here, it may be left over |
569 | : |
570 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
571 | # Yippee, $echo works! |
572 | : |
573 | else |
574 | # Restart under the correct shell. |
575 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
576 | fi |
577 | |
578 | if test "X$1" = X--fallback-echo; then |
579 | # used as fallback echo |
580 | shift |
581 | cat <<EOF |
582 | $* |
583 | EOF |
584 | exit 0 |
585 | fi |
586 | |
587 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
588 | # if CDPATH is set. |
589 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
590 | |
591 | if test -z "$ECHO"; then |
592 | if test "X${echo_test_string+set}" != Xset; then |
593 | # find a string as large as possible, as long as the shell can cope with it |
594 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
595 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
596 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
597 | echo_test_string=`eval $cmd` && |
598 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
599 | then |
600 | break |
601 | fi |
602 | done |
603 | fi |
604 | |
605 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
606 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
607 | test "X$echo_testing_string" = "X$echo_test_string"; then |
608 | : |
609 | else |
610 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
611 | # backslashes. This makes it impossible to quote backslashes using |
612 | # echo "$something" | sed 's/\\/\\\\/g' |
613 | # |
614 | # So, first we look for a working echo in the user's PATH. |
615 | |
616 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
617 | for dir in $PATH /usr/ucb; do |
618 | IFS="$lt_save_ifs" |
619 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
620 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
621 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
622 | test "X$echo_testing_string" = "X$echo_test_string"; then |
623 | echo="$dir/echo" |
624 | break |
625 | fi |
626 | done |
627 | IFS="$lt_save_ifs" |
628 | |
629 | if test "X$echo" = Xecho; then |
630 | # We didn't find a better echo, so look for alternatives. |
631 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
632 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
633 | test "X$echo_testing_string" = "X$echo_test_string"; then |
634 | # This shell has a builtin print -r that does the trick. |
635 | echo='print -r' |
636 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
637 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
638 | # If we have ksh, try running configure again with it. |
639 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
640 | export ORIGINAL_CONFIG_SHELL |
641 | CONFIG_SHELL=/bin/ksh |
642 | export CONFIG_SHELL |
643 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
644 | else |
645 | # Try using printf. |
646 | echo='printf %s\n' |
647 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
648 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
649 | test "X$echo_testing_string" = "X$echo_test_string"; then |
650 | # Cool, printf works |
651 | : |
652 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
653 | test "X$echo_testing_string" = 'X\t' && |
654 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
655 | test "X$echo_testing_string" = "X$echo_test_string"; then |
656 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
657 | export CONFIG_SHELL |
658 | SHELL="$CONFIG_SHELL" |
659 | export SHELL |
660 | echo="$CONFIG_SHELL $0 --fallback-echo" |
661 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
662 | test "X$echo_testing_string" = 'X\t' && |
663 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
664 | test "X$echo_testing_string" = "X$echo_test_string"; then |
665 | echo="$CONFIG_SHELL $0 --fallback-echo" |
666 | else |
667 | # maybe with a smaller string... |
668 | prev=: |
669 | |
670 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
671 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
672 | then |
673 | break |
674 | fi |
675 | prev="$cmd" |
676 | done |
677 | |
678 | if test "$prev" != 'sed 50q "$0"'; then |
679 | echo_test_string=`eval $prev` |
680 | export echo_test_string |
681 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
682 | else |
683 | # Oops. We lost completely, so just stick with echo. |
684 | echo=echo |
685 | fi |
686 | fi |
687 | fi |
688 | fi |
689 | fi |
690 | fi |
691 | |
692 | # Copy echo and quote the copy suitably for passing to libtool from |
693 | # the Makefile, instead of quoting the original, which is used later. |
694 | ECHO=$echo |
695 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
696 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
697 | fi |
698 | |
699 | |
700 | |
701 | |
702 | tagnames=${tagnames+${tagnames},}CXX |
703 | |
704 | tagnames=${tagnames+${tagnames},}F77 |
705 | |
706 | exec 7<&0 </dev/null 6>&1 |
707 | |
708 | # Name of the host. |
709 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
710 | # so uname gets run too. |
711 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
712 | |
713 | # |
714 | # Initializations. |
715 | # |
716 | ac_default_prefix=/usr/local |
717 | ac_clean_files= |
718 | ac_config_libobj_dir=. |
719 | LIBOBJS= |
720 | cross_compiling=no |
721 | subdirs= |
722 | MFLAGS= |
723 | MAKEFLAGS= |
724 | SHELL=${CONFIG_SHELL-/bin/sh} |
725 | |
726 | # Identity of this package. |
727 | PACKAGE_NAME='zvbi' |
728 | PACKAGE_TARNAME='zvbi' |
729 | PACKAGE_VERSION='0.2.33' |
730 | PACKAGE_STRING='zvbi 0.2.33' |
731 | PACKAGE_BUGREPORT='' |
732 | |
733 | ac_unique_file="src/vbi.c" |
734 | # Factoring default headers for most tests. |
735 | ac_includes_default="\ |
736 | #include <stdio.h> |
737 | #ifdef HAVE_SYS_TYPES_H |
738 | # include <sys/types.h> |
739 | #endif |
740 | #ifdef HAVE_SYS_STAT_H |
741 | # include <sys/stat.h> |
742 | #endif |
743 | #ifdef STDC_HEADERS |
744 | # include <stdlib.h> |
745 | # include <stddef.h> |
746 | #else |
747 | # ifdef HAVE_STDLIB_H |
748 | # include <stdlib.h> |
749 | # endif |
750 | #endif |
751 | #ifdef HAVE_STRING_H |
752 | # if !defined STDC_HEADERS && defined HAVE_MEMORY_H |
753 | # include <memory.h> |
754 | # endif |
755 | # include <string.h> |
756 | #endif |
757 | #ifdef HAVE_STRINGS_H |
758 | # include <strings.h> |
759 | #endif |
760 | #ifdef HAVE_INTTYPES_H |
761 | # include <inttypes.h> |
762 | #endif |
763 | #ifdef HAVE_STDINT_H |
764 | # include <stdint.h> |
765 | #endif |
766 | #ifdef HAVE_UNISTD_H |
767 | # include <unistd.h> |
768 | #endif" |
769 | |
770 | gt_needs= |
771 | ac_subst_vars='SHELL |
772 | PATH_SEPARATOR |
773 | PACKAGE_NAME |
774 | PACKAGE_TARNAME |
775 | PACKAGE_VERSION |
776 | PACKAGE_STRING |
777 | PACKAGE_BUGREPORT |
778 | exec_prefix |
779 | prefix |
780 | program_transform_name |
781 | bindir |
782 | sbindir |
783 | libexecdir |
784 | datarootdir |
785 | datadir |
786 | sysconfdir |
787 | sharedstatedir |
788 | localstatedir |
789 | includedir |
790 | oldincludedir |
791 | docdir |
792 | infodir |
793 | htmldir |
794 | dvidir |
795 | pdfdir |
796 | psdir |
797 | libdir |
798 | localedir |
799 | mandir |
800 | DEFS |
801 | ECHO_C |
802 | ECHO_N |
803 | ECHO_T |
804 | LIBS |
805 | build_alias |
806 | host_alias |
807 | target_alias |
808 | INSTALL_PROGRAM |
809 | INSTALL_SCRIPT |
810 | INSTALL_DATA |
811 | CYGPATH_W |
812 | PACKAGE |
813 | VERSION |
814 | ACLOCAL |
815 | AUTOCONF |
816 | AUTOMAKE |
817 | AUTOHEADER |
818 | MAKEINFO |
819 | install_sh |
820 | STRIP |
821 | INSTALL_STRIP_PROGRAM |
822 | mkdir_p |
823 | AWK |
824 | SET_MAKE |
825 | am__leading_dot |
826 | AMTAR |
827 | am__tar |
828 | am__untar |
829 | INSIDE_GNOME_COMMON_TRUE |
830 | INSIDE_GNOME_COMMON_FALSE |
831 | MAINTAINER_MODE_TRUE |
832 | MAINTAINER_MODE_FALSE |
833 | MAINT |
834 | LIBZVBI_SO_VERSION |
835 | CC |
836 | CFLAGS |
837 | LDFLAGS |
838 | CPPFLAGS |
839 | ac_ct_CC |
840 | EXEEXT |
841 | OBJEXT |
842 | DEPDIR |
843 | am__include |
844 | am__quote |
845 | AMDEP_TRUE |
846 | AMDEP_FALSE |
847 | AMDEPBACKSLASH |
848 | CCDEPMODE |
849 | am__fastdepCC_TRUE |
850 | am__fastdepCC_FALSE |
851 | CXX |
852 | CXXFLAGS |
853 | ac_ct_CXX |
854 | CXXDEPMODE |
855 | am__fastdepCXX_TRUE |
856 | am__fastdepCXX_FALSE |
857 | CPP |
858 | GREP |
859 | EGREP |
860 | build |
861 | build_cpu |
862 | build_vendor |
863 | build_os |
864 | host |
865 | host_cpu |
866 | host_vendor |
867 | host_os |
868 | LN_S |
869 | ECHO |
870 | AR |
871 | RANLIB |
872 | CXXCPP |
873 | F77 |
874 | FFLAGS |
875 | ac_ct_F77 |
876 | LIBTOOL |
877 | HAVE_GCC_LIMITS_TRUE |
878 | HAVE_GCC_LIMITS_FALSE |
879 | HAVE_GCC_C89_SUPPORT_TRUE |
880 | HAVE_GCC_C89_SUPPORT_FALSE |
881 | HAVE_GCC_C94_SUPPORT_TRUE |
882 | HAVE_GCC_C94_SUPPORT_FALSE |
883 | HAVE_GCC_C99_SUPPORT_TRUE |
884 | HAVE_GCC_C99_SUPPORT_FALSE |
885 | HAVE_GXX_CXX98_SUPPORT_TRUE |
886 | HAVE_GXX_CXX98_SUPPORT_FALSE |
887 | UNICODE_CFLAGS |
888 | UNICODE_LIBS |
889 | LIBICONV |
890 | LTLIBICONV |
891 | XMKMF |
892 | X_CFLAGS |
893 | X_PRE_LIBS |
894 | X_LIBS |
895 | X_EXTRA_LIBS |
896 | HAVE_X_TRUE |
897 | HAVE_X_FALSE |
898 | ENABLE_DVB_TRUE |
899 | ENABLE_DVB_FALSE |
900 | ENABLE_PROXY_TRUE |
901 | ENABLE_PROXY_FALSE |
902 | USE_NLS |
903 | MSGFMT |
904 | GMSGFMT |
905 | MSGFMT_015 |
906 | GMSGFMT_015 |
907 | XGETTEXT |
908 | XGETTEXT_015 |
909 | MSGMERGE |
910 | INTL_MACOSX_LIBS |
911 | INTLLIBS |
912 | LIBINTL |
913 | LTLIBINTL |
914 | POSUB |
915 | HAVE_DOXYGEN |
916 | HAVE_DOXYGEN_TRUE |
917 | HAVE_DOXYGEN_FALSE |
918 | BUILD_STATIC_LIB_TRUE |
919 | BUILD_STATIC_LIB_FALSE |
920 | LIBOBJS |
921 | LTLIBOBJS' |
922 | ac_subst_files='' |
923 | ac_precious_vars='build_alias |
924 | host_alias |
925 | target_alias |
926 | CC |
927 | CFLAGS |
928 | LDFLAGS |
929 | LIBS |
930 | CPPFLAGS |
931 | CXX |
932 | CXXFLAGS |
933 | CCC |
934 | CPP |
935 | CXXCPP |
936 | F77 |
937 | FFLAGS |
938 | XMKMF' |
939 | |
940 | |
941 | # Initialize some variables set by options. |
942 | ac_init_help= |
943 | ac_init_version=false |
944 | # The variables have the same names as the options, with |
945 | # dashes changed to underlines. |
946 | cache_file=/dev/null |
947 | exec_prefix=NONE |
948 | no_create= |
949 | no_recursion= |
950 | prefix=NONE |
951 | program_prefix=NONE |
952 | program_suffix=NONE |
953 | program_transform_name=s,x,x, |
954 | silent= |
955 | site= |
956 | srcdir= |
957 | verbose= |
958 | x_includes=NONE |
959 | x_libraries=NONE |
960 | |
961 | # Installation directory options. |
962 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
963 | # and all the variables that are supposed to be based on exec_prefix |
964 | # by default will actually change. |
965 | # Use braces instead of parens because sh, perl, etc. also accept them. |
966 | # (The list follows the same order as the GNU Coding Standards.) |
967 | bindir='${exec_prefix}/bin' |
968 | sbindir='${exec_prefix}/sbin' |
969 | libexecdir='${exec_prefix}/libexec' |
970 | datarootdir='${prefix}/share' |
971 | datadir='${datarootdir}' |
972 | sysconfdir='${prefix}/etc' |
973 | sharedstatedir='${prefix}/com' |
974 | localstatedir='${prefix}/var' |
975 | includedir='${prefix}/include' |
976 | oldincludedir='/usr/include' |
977 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
978 | infodir='${datarootdir}/info' |
979 | htmldir='${docdir}' |
980 | dvidir='${docdir}' |
981 | pdfdir='${docdir}' |
982 | psdir='${docdir}' |
983 | libdir='${exec_prefix}/lib' |
984 | localedir='${datarootdir}/locale' |
985 | mandir='${datarootdir}/man' |
986 | |
987 | ac_prev= |
988 | ac_dashdash= |
989 | for ac_option |
990 | do |
991 | # If the previous option needs an argument, assign it. |
992 | if test -n "$ac_prev"; then |
993 | eval $ac_prev=\$ac_option |
994 | ac_prev= |
995 | continue |
996 | fi |
997 | |
998 | case $ac_option in |
999 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
1000 | *) ac_optarg=yes ;; |
1001 | esac |
1002 | |
1003 | # Accept the important Cygnus configure options, so we can diagnose typos. |
1004 | |
1005 | case $ac_dashdash$ac_option in |
1006 | --) |
1007 | ac_dashdash=yes ;; |
1008 | |
1009 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
1010 | ac_prev=bindir ;; |
1011 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
1012 | bindir=$ac_optarg ;; |
1013 | |
1014 | -build | --build | --buil | --bui | --bu) |
1015 | ac_prev=build_alias ;; |
1016 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
1017 | build_alias=$ac_optarg ;; |
1018 | |
1019 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
1020 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
1021 | ac_prev=cache_file ;; |
1022 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
1023 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
1024 | cache_file=$ac_optarg ;; |
1025 | |
1026 | --config-cache | -C) |
1027 | cache_file=config.cache ;; |
1028 | |
1029 | -datadir | --datadir | --datadi | --datad) |
1030 | ac_prev=datadir ;; |
1031 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
1032 | datadir=$ac_optarg ;; |
1033 | |
1034 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
1035 | | --dataroo | --dataro | --datar) |
1036 | ac_prev=datarootdir ;; |
1037 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
1038 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
1039 | datarootdir=$ac_optarg ;; |
1040 | |
1041 | -disable-* | --disable-*) |
1042 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1043 | # Reject names that are not valid shell variable names. |
1044 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1045 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1046 | { (exit 1); exit 1; }; } |
1047 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1048 | eval enable_$ac_feature=no ;; |
1049 | |
1050 | -docdir | --docdir | --docdi | --doc | --do) |
1051 | ac_prev=docdir ;; |
1052 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
1053 | docdir=$ac_optarg ;; |
1054 | |
1055 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
1056 | ac_prev=dvidir ;; |
1057 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
1058 | dvidir=$ac_optarg ;; |
1059 | |
1060 | -enable-* | --enable-*) |
1061 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1062 | # Reject names that are not valid shell variable names. |
1063 | expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1064 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1065 | { (exit 1); exit 1; }; } |
1066 | ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'` |
1067 | eval enable_$ac_feature=\$ac_optarg ;; |
1068 | |
1069 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1070 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
1071 | | --exec | --exe | --ex) |
1072 | ac_prev=exec_prefix ;; |
1073 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
1074 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
1075 | | --exec=* | --exe=* | --ex=*) |
1076 | exec_prefix=$ac_optarg ;; |
1077 | |
1078 | -gas | --gas | --ga | --g) |
1079 | # Obsolete; use --with-gas. |
1080 | with_gas=yes ;; |
1081 | |
1082 | -help | --help | --hel | --he | -h) |
1083 | ac_init_help=long ;; |
1084 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
1085 | ac_init_help=recursive ;; |
1086 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
1087 | ac_init_help=short ;; |
1088 | |
1089 | -host | --host | --hos | --ho) |
1090 | ac_prev=host_alias ;; |
1091 | -host=* | --host=* | --hos=* | --ho=*) |
1092 | host_alias=$ac_optarg ;; |
1093 | |
1094 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1095 | ac_prev=htmldir ;; |
1096 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1097 | | --ht=*) |
1098 | htmldir=$ac_optarg ;; |
1099 | |
1100 | -includedir | --includedir | --includedi | --included | --include \ |
1101 | | --includ | --inclu | --incl | --inc) |
1102 | ac_prev=includedir ;; |
1103 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
1104 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
1105 | includedir=$ac_optarg ;; |
1106 | |
1107 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
1108 | ac_prev=infodir ;; |
1109 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1110 | infodir=$ac_optarg ;; |
1111 | |
1112 | -libdir | --libdir | --libdi | --libd) |
1113 | ac_prev=libdir ;; |
1114 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
1115 | libdir=$ac_optarg ;; |
1116 | |
1117 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1118 | | --libexe | --libex | --libe) |
1119 | ac_prev=libexecdir ;; |
1120 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1121 | | --libexe=* | --libex=* | --libe=*) |
1122 | libexecdir=$ac_optarg ;; |
1123 | |
1124 | -localedir | --localedir | --localedi | --localed | --locale) |
1125 | ac_prev=localedir ;; |
1126 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1127 | localedir=$ac_optarg ;; |
1128 | |
1129 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
1130 | | --localstate | --localstat | --localsta | --localst | --locals) |
1131 | ac_prev=localstatedir ;; |
1132 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
1133 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1134 | localstatedir=$ac_optarg ;; |
1135 | |
1136 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1137 | ac_prev=mandir ;; |
1138 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1139 | mandir=$ac_optarg ;; |
1140 | |
1141 | -nfp | --nfp | --nf) |
1142 | # Obsolete; use --without-fp. |
1143 | with_fp=no ;; |
1144 | |
1145 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1146 | | --no-cr | --no-c | -n) |
1147 | no_create=yes ;; |
1148 | |
1149 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1150 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1151 | no_recursion=yes ;; |
1152 | |
1153 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1154 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1155 | | --oldin | --oldi | --old | --ol | --o) |
1156 | ac_prev=oldincludedir ;; |
1157 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1158 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1159 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1160 | oldincludedir=$ac_optarg ;; |
1161 | |
1162 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1163 | ac_prev=prefix ;; |
1164 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1165 | prefix=$ac_optarg ;; |
1166 | |
1167 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1168 | | --program-pre | --program-pr | --program-p) |
1169 | ac_prev=program_prefix ;; |
1170 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1171 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1172 | program_prefix=$ac_optarg ;; |
1173 | |
1174 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1175 | | --program-suf | --program-su | --program-s) |
1176 | ac_prev=program_suffix ;; |
1177 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1178 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1179 | program_suffix=$ac_optarg ;; |
1180 | |
1181 | -program-transform-name | --program-transform-name \ |
1182 | | --program-transform-nam | --program-transform-na \ |
1183 | | --program-transform-n | --program-transform- \ |
1184 | | --program-transform | --program-transfor \ |
1185 | | --program-transfo | --program-transf \ |
1186 | | --program-trans | --program-tran \ |
1187 | | --progr-tra | --program-tr | --program-t) |
1188 | ac_prev=program_transform_name ;; |
1189 | -program-transform-name=* | --program-transform-name=* \ |
1190 | | --program-transform-nam=* | --program-transform-na=* \ |
1191 | | --program-transform-n=* | --program-transform-=* \ |
1192 | | --program-transform=* | --program-transfor=* \ |
1193 | | --program-transfo=* | --program-transf=* \ |
1194 | | --program-trans=* | --program-tran=* \ |
1195 | | --progr-tra=* | --program-tr=* | --program-t=*) |
1196 | program_transform_name=$ac_optarg ;; |
1197 | |
1198 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1199 | ac_prev=pdfdir ;; |
1200 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1201 | pdfdir=$ac_optarg ;; |
1202 | |
1203 | -psdir | --psdir | --psdi | --psd | --ps) |
1204 | ac_prev=psdir ;; |
1205 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1206 | psdir=$ac_optarg ;; |
1207 | |
1208 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1209 | | -silent | --silent | --silen | --sile | --sil) |
1210 | silent=yes ;; |
1211 | |
1212 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1213 | ac_prev=sbindir ;; |
1214 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1215 | | --sbi=* | --sb=*) |
1216 | sbindir=$ac_optarg ;; |
1217 | |
1218 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1219 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1220 | | --sharedst | --shareds | --shared | --share | --shar \ |
1221 | | --sha | --sh) |
1222 | ac_prev=sharedstatedir ;; |
1223 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1224 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1225 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1226 | | --sha=* | --sh=*) |
1227 | sharedstatedir=$ac_optarg ;; |
1228 | |
1229 | -site | --site | --sit) |
1230 | ac_prev=site ;; |
1231 | -site=* | --site=* | --sit=*) |
1232 | site=$ac_optarg ;; |
1233 | |
1234 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1235 | ac_prev=srcdir ;; |
1236 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1237 | srcdir=$ac_optarg ;; |
1238 | |
1239 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1240 | | --syscon | --sysco | --sysc | --sys | --sy) |
1241 | ac_prev=sysconfdir ;; |
1242 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1243 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1244 | sysconfdir=$ac_optarg ;; |
1245 | |
1246 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1247 | ac_prev=target_alias ;; |
1248 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1249 | target_alias=$ac_optarg ;; |
1250 | |
1251 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1252 | verbose=yes ;; |
1253 | |
1254 | -version | --version | --versio | --versi | --vers | -V) |
1255 | ac_init_version=: ;; |
1256 | |
1257 | -with-* | --with-*) |
1258 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1259 | # Reject names that are not valid shell variable names. |
1260 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1261 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1262 | { (exit 1); exit 1; }; } |
1263 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1264 | eval with_$ac_package=\$ac_optarg ;; |
1265 | |
1266 | -without-* | --without-*) |
1267 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1268 | # Reject names that are not valid shell variable names. |
1269 | expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1270 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1271 | { (exit 1); exit 1; }; } |
1272 | ac_package=`echo $ac_package | sed 's/[-.]/_/g'` |
1273 | eval with_$ac_package=no ;; |
1274 | |
1275 | --x) |
1276 | # Obsolete; use --with-x. |
1277 | with_x=yes ;; |
1278 | |
1279 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1280 | | --x-incl | --x-inc | --x-in | --x-i) |
1281 | ac_prev=x_includes ;; |
1282 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1283 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1284 | x_includes=$ac_optarg ;; |
1285 | |
1286 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1287 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1288 | ac_prev=x_libraries ;; |
1289 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1290 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1291 | x_libraries=$ac_optarg ;; |
1292 | |
1293 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1294 | Try \`$0 --help' for more information." >&2 |
1295 | { (exit 1); exit 1; }; } |
1296 | ;; |
1297 | |
1298 | *=*) |
1299 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1300 | # Reject names that are not valid shell variable names. |
1301 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1302 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1303 | { (exit 1); exit 1; }; } |
1304 | eval $ac_envvar=\$ac_optarg |
1305 | export $ac_envvar ;; |
1306 | |
1307 | *) |
1308 | # FIXME: should be removed in autoconf 3.0. |
1309 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1310 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1311 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1312 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1313 | ;; |
1314 | |
1315 | esac |
1316 | done |
1317 | |
1318 | if test -n "$ac_prev"; then |
1319 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1320 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1321 | { (exit 1); exit 1; }; } |
1322 | fi |
1323 | |
1324 | # Be sure to have absolute directory names. |
1325 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1326 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1327 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1328 | libdir localedir mandir |
1329 | do |
1330 | eval ac_val=\$$ac_var |
1331 | case $ac_val in |
1332 | [\\/$]* | ?:[\\/]* ) continue;; |
1333 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1334 | esac |
1335 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1336 | { (exit 1); exit 1; }; } |
1337 | done |
1338 | |
1339 | # There might be people who depend on the old broken behavior: `$host' |
1340 | # used to hold the argument of --host etc. |
1341 | # FIXME: To remove some day. |
1342 | build=$build_alias |
1343 | host=$host_alias |
1344 | target=$target_alias |
1345 | |
1346 | # FIXME: To remove some day. |
1347 | if test "x$host_alias" != x; then |
1348 | if test "x$build_alias" = x; then |
1349 | cross_compiling=maybe |
1350 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1351 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1352 | elif test "x$build_alias" != "x$host_alias"; then |
1353 | cross_compiling=yes |
1354 | fi |
1355 | fi |
1356 | |
1357 | ac_tool_prefix= |
1358 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1359 | |
1360 | test "$silent" = yes && exec 6>/dev/null |
1361 | |
1362 | |
1363 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1364 | ac_ls_di=`ls -di .` && |
1365 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1366 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
1367 | { (exit 1); exit 1; }; } |
1368 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1369 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
1370 | { (exit 1); exit 1; }; } |
1371 | |
1372 | |
1373 | # Find the source files, if location was not specified. |
1374 | if test -z "$srcdir"; then |
1375 | ac_srcdir_defaulted=yes |
1376 | # Try the directory containing this script, then the parent directory. |
1377 | ac_confdir=`$as_dirname -- "$0" || |
1378 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1379 | X"$0" : 'X\(//\)[^/]' \| \ |
1380 | X"$0" : 'X\(//\)$' \| \ |
1381 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1382 | echo X"$0" | |
1383 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1384 | s//\1/ |
1385 | q |
1386 | } |
1387 | /^X\(\/\/\)[^/].*/{ |
1388 | s//\1/ |
1389 | q |
1390 | } |
1391 | /^X\(\/\/\)$/{ |
1392 | s//\1/ |
1393 | q |
1394 | } |
1395 | /^X\(\/\).*/{ |
1396 | s//\1/ |
1397 | q |
1398 | } |
1399 | s/.*/./; q'` |
1400 | srcdir=$ac_confdir |
1401 | if test ! -r "$srcdir/$ac_unique_file"; then |
1402 | srcdir=.. |
1403 | fi |
1404 | else |
1405 | ac_srcdir_defaulted=no |
1406 | fi |
1407 | if test ! -r "$srcdir/$ac_unique_file"; then |
1408 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1409 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
1410 | { (exit 1); exit 1; }; } |
1411 | fi |
1412 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1413 | ac_abs_confdir=`( |
1414 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
1415 | { (exit 1); exit 1; }; } |
1416 | pwd)` |
1417 | # When building in place, set srcdir=. |
1418 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1419 | srcdir=. |
1420 | fi |
1421 | # Remove unnecessary trailing slashes from srcdir. |
1422 | # Double slashes in file names in object file debugging info |
1423 | # mess up M-x gdb in Emacs. |
1424 | case $srcdir in |
1425 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1426 | esac |
1427 | for ac_var in $ac_precious_vars; do |
1428 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1429 | eval ac_env_${ac_var}_value=\$${ac_var} |
1430 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1431 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1432 | done |
1433 | |
1434 | # |
1435 | # Report the --help message. |
1436 | # |
1437 | if test "$ac_init_help" = "long"; then |
1438 | # Omit some internal or obsolete options to make the list less imposing. |
1439 | # This message is too long to be a string in the A/UX 3.1 sh. |
1440 | cat <<_ACEOF |
1441 | \`configure' configures zvbi 0.2.33 to adapt to many kinds of systems. |
1442 | |
1443 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1444 | |
1445 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1446 | VAR=VALUE. See below for descriptions of some of the useful variables. |
1447 | |
1448 | Defaults for the options are specified in brackets. |
1449 | |
1450 | Configuration: |
1451 | -h, --help display this help and exit |
1452 | --help=short display options specific to this package |
1453 | --help=recursive display the short help of all the included packages |
1454 | -V, --version display version information and exit |
1455 | -q, --quiet, --silent do not print \`checking...' messages |
1456 | --cache-file=FILE cache test results in FILE [disabled] |
1457 | -C, --config-cache alias for \`--cache-file=config.cache' |
1458 | -n, --no-create do not create output files |
1459 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1460 | |
1461 | Installation directories: |
1462 | --prefix=PREFIX install architecture-independent files in PREFIX |
1463 | [$ac_default_prefix] |
1464 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1465 | [PREFIX] |
1466 | |
1467 | By default, \`make install' will install all the files in |
1468 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1469 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1470 | for instance \`--prefix=\$HOME'. |
1471 | |
1472 | For better control, use the options below. |
1473 | |
1474 | Fine tuning of the installation directories: |
1475 | --bindir=DIR user executables [EPREFIX/bin] |
1476 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1477 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1478 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1479 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1480 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1481 | --libdir=DIR object code libraries [EPREFIX/lib] |
1482 | --includedir=DIR C header files [PREFIX/include] |
1483 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1484 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1485 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1486 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1487 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1488 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1489 | --docdir=DIR documentation root [DATAROOTDIR/doc/zvbi] |
1490 | --htmldir=DIR html documentation [DOCDIR] |
1491 | --dvidir=DIR dvi documentation [DOCDIR] |
1492 | --pdfdir=DIR pdf documentation [DOCDIR] |
1493 | --psdir=DIR ps documentation [DOCDIR] |
1494 | _ACEOF |
1495 | |
1496 | cat <<\_ACEOF |
1497 | |
1498 | Program names: |
1499 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1500 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1501 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1502 | |
1503 | X features: |
1504 | --x-includes=DIR X include files are in DIR |
1505 | --x-libraries=DIR X library files are in DIR |
1506 | |
1507 | System types: |
1508 | --build=BUILD configure for building on BUILD [guessed] |
1509 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1510 | _ACEOF |
1511 | fi |
1512 | |
1513 | if test -n "$ac_init_help"; then |
1514 | case $ac_init_help in |
1515 | short | recursive ) echo "Configuration of zvbi 0.2.33:";; |
1516 | esac |
1517 | cat <<\_ACEOF |
1518 | |
1519 | Optional Features: |
1520 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1521 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1522 | --enable-maintainer-mode enable make rules and dependencies not useful |
1523 | (and sometimes confusing) to the casual installer |
1524 | --disable-dependency-tracking speeds up one-time build |
1525 | --enable-dependency-tracking do not reject slow dependency extractors |
1526 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1527 | --enable-static[=PKGS] build static libraries [default=yes] |
1528 | --enable-fast-install[=PKGS] |
1529 | optimize for fast installation [default=yes] |
1530 | --disable-libtool-lock avoid locking (might break parallel builds) |
1531 | --disable-rpath do not hardcode runtime library paths |
1532 | --enable-v4l Include the V4L and V4L2 interface (auto) |
1533 | --enable-dvb Include the DVB interface (auto) |
1534 | --enable-bktr Include the *BSD bktr driver interface (auto) |
1535 | --enable-proxy Build the vbi proxy daemon and interface (auto) |
1536 | --disable-nls do not use Native Language Support |
1537 | |
1538 | Optional Packages: |
1539 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1540 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1541 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1542 | --with-pic try to use only PIC/non-PIC objects [default=use |
1543 | both] |
1544 | --with-tags[=TAGS] include additional configurations [automatic] |
1545 | --with-gnu-ld assume the C compiler uses GNU ld default=no |
1546 | --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib |
1547 | --without-libiconv-prefix don't search for libiconv in includedir and libdir |
1548 | --with-x use the X Window System |
1549 | --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib |
1550 | --without-libintl-prefix don't search for libintl in includedir and libdir |
1551 | --without-doxygen Disable building of API documentation |
1552 | |
1553 | Some influential environment variables: |
1554 | CC C compiler command |
1555 | CFLAGS C compiler flags |
1556 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1557 | nonstandard directory <lib dir> |
1558 | LIBS libraries to pass to the linker, e.g. -l<library> |
1559 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1560 | you have headers in a nonstandard directory <include dir> |
1561 | CXX C++ compiler command |
1562 | CXXFLAGS C++ compiler flags |
1563 | CPP C preprocessor |
1564 | CXXCPP C++ preprocessor |
1565 | F77 Fortran 77 compiler command |
1566 | FFLAGS Fortran 77 compiler flags |
1567 | XMKMF Path to xmkmf, Makefile generator for X Window System |
1568 | |
1569 | Use these variables to override the choices made by `configure' or to help |
1570 | it to find libraries and programs with nonstandard names/locations. |
1571 | |
1572 | _ACEOF |
1573 | ac_status=$? |
1574 | fi |
1575 | |
1576 | if test "$ac_init_help" = "recursive"; then |
1577 | # If there are subdirs, report their specific --help. |
1578 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1579 | test -d "$ac_dir" || continue |
1580 | ac_builddir=. |
1581 | |
1582 | case "$ac_dir" in |
1583 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1584 | *) |
1585 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1586 | # A ".." for each directory in $ac_dir_suffix. |
1587 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1588 | case $ac_top_builddir_sub in |
1589 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1590 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1591 | esac ;; |
1592 | esac |
1593 | ac_abs_top_builddir=$ac_pwd |
1594 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1595 | # for backward compatibility: |
1596 | ac_top_builddir=$ac_top_build_prefix |
1597 | |
1598 | case $srcdir in |
1599 | .) # We are building in place. |
1600 | ac_srcdir=. |
1601 | ac_top_srcdir=$ac_top_builddir_sub |
1602 | ac_abs_top_srcdir=$ac_pwd ;; |
1603 | [\\/]* | ?:[\\/]* ) # Absolute name. |
1604 | ac_srcdir=$srcdir$ac_dir_suffix; |
1605 | ac_top_srcdir=$srcdir |
1606 | ac_abs_top_srcdir=$srcdir ;; |
1607 | *) # Relative name. |
1608 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1609 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
1610 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1611 | esac |
1612 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1613 | |
1614 | cd "$ac_dir" || { ac_status=$?; continue; } |
1615 | # Check for guested configure. |
1616 | if test -f "$ac_srcdir/configure.gnu"; then |
1617 | echo && |
1618 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1619 | elif test -f "$ac_srcdir/configure"; then |
1620 | echo && |
1621 | $SHELL "$ac_srcdir/configure" --help=recursive |
1622 | else |
1623 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1624 | fi || ac_status=$? |
1625 | cd "$ac_pwd" || { ac_status=$?; break; } |
1626 | done |
1627 | fi |
1628 | |
1629 | test -n "$ac_init_help" && exit $ac_status |
1630 | if $ac_init_version; then |
1631 | cat <<\_ACEOF |
1632 | zvbi configure 0.2.33 |
1633 | generated by GNU Autoconf 2.61 |
1634 | |
1635 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1636 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
1637 | This configure script is free software; the Free Software Foundation |
1638 | gives unlimited permission to copy, distribute and modify it. |
1639 | _ACEOF |
1640 | exit |
1641 | fi |
1642 | cat >config.log <<_ACEOF |
1643 | This file contains any messages produced by compilers while |
1644 | running configure, to aid debugging if configure makes a mistake. |
1645 | |
1646 | It was created by zvbi $as_me 0.2.33, which was |
1647 | generated by GNU Autoconf 2.61. Invocation command line was |
1648 | |
1649 | $ $0 $@ |
1650 | |
1651 | _ACEOF |
1652 | exec 5>>config.log |
1653 | { |
1654 | cat <<_ASUNAME |
1655 | ## --------- ## |
1656 | ## Platform. ## |
1657 | ## --------- ## |
1658 | |
1659 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1660 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1661 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1662 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1663 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1664 | |
1665 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1666 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1667 | |
1668 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1669 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1670 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1671 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1672 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1673 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1674 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1675 | |
1676 | _ASUNAME |
1677 | |
1678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1679 | for as_dir in $PATH |
1680 | do |
1681 | IFS=$as_save_IFS |
1682 | test -z "$as_dir" && as_dir=. |
1683 | echo "PATH: $as_dir" |
1684 | done |
1685 | IFS=$as_save_IFS |
1686 | |
1687 | } >&5 |
1688 | |
1689 | cat >&5 <<_ACEOF |
1690 | |
1691 | |
1692 | ## ----------- ## |
1693 | ## Core tests. ## |
1694 | ## ----------- ## |
1695 | |
1696 | _ACEOF |
1697 | |
1698 | |
1699 | # Keep a trace of the command line. |
1700 | # Strip out --no-create and --no-recursion so they do not pile up. |
1701 | # Strip out --silent because we don't want to record it for future runs. |
1702 | # Also quote any args containing shell meta-characters. |
1703 | # Make two passes to allow for proper duplicate-argument suppression. |
1704 | ac_configure_args= |
1705 | ac_configure_args0= |
1706 | ac_configure_args1= |
1707 | ac_must_keep_next=false |
1708 | for ac_pass in 1 2 |
1709 | do |
1710 | for ac_arg |
1711 | do |
1712 | case $ac_arg in |
1713 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1714 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1715 | | -silent | --silent | --silen | --sile | --sil) |
1716 | continue ;; |
1717 | *\'*) |
1718 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1719 | esac |
1720 | case $ac_pass in |
1721 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1722 | 2) |
1723 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1724 | if test $ac_must_keep_next = true; then |
1725 | ac_must_keep_next=false # Got value, back to normal. |
1726 | else |
1727 | case $ac_arg in |
1728 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1729 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1730 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1731 | | -with-* | --with-* | -without-* | --without-* | --x) |
1732 | case "$ac_configure_args0 " in |
1733 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1734 | esac |
1735 | ;; |
1736 | -* ) ac_must_keep_next=true ;; |
1737 | esac |
1738 | fi |
1739 | ac_configure_args="$ac_configure_args '$ac_arg'" |
1740 | ;; |
1741 | esac |
1742 | done |
1743 | done |
1744 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1745 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1746 | |
1747 | # When interrupted or exit'd, cleanup temporary files, and complete |
1748 | # config.log. We remove comments because anyway the quotes in there |
1749 | # would cause problems or look ugly. |
1750 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1751 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1752 | trap 'exit_status=$? |
1753 | # Save into config.log some information that might help in debugging. |
1754 | { |
1755 | echo |
1756 | |
1757 | cat <<\_ASBOX |
1758 | ## ---------------- ## |
1759 | ## Cache variables. ## |
1760 | ## ---------------- ## |
1761 | _ASBOX |
1762 | echo |
1763 | # The following way of writing the cache mishandles newlines in values, |
1764 | ( |
1765 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1766 | eval ac_val=\$$ac_var |
1767 | case $ac_val in #( |
1768 | *${as_nl}*) |
1769 | case $ac_var in #( |
1770 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1771 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1772 | esac |
1773 | case $ac_var in #( |
1774 | _ | IFS | as_nl) ;; #( |
1775 | *) $as_unset $ac_var ;; |
1776 | esac ;; |
1777 | esac |
1778 | done |
1779 | (set) 2>&1 | |
1780 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1781 | *${as_nl}ac_space=\ *) |
1782 | sed -n \ |
1783 | "s/'\''/'\''\\\\'\'''\''/g; |
1784 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1785 | ;; #( |
1786 | *) |
1787 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1788 | ;; |
1789 | esac | |
1790 | sort |
1791 | ) |
1792 | echo |
1793 | |
1794 | cat <<\_ASBOX |
1795 | ## ----------------- ## |
1796 | ## Output variables. ## |
1797 | ## ----------------- ## |
1798 | _ASBOX |
1799 | echo |
1800 | for ac_var in $ac_subst_vars |
1801 | do |
1802 | eval ac_val=\$$ac_var |
1803 | case $ac_val in |
1804 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1805 | esac |
1806 | echo "$ac_var='\''$ac_val'\''" |
1807 | done | sort |
1808 | echo |
1809 | |
1810 | if test -n "$ac_subst_files"; then |
1811 | cat <<\_ASBOX |
1812 | ## ------------------- ## |
1813 | ## File substitutions. ## |
1814 | ## ------------------- ## |
1815 | _ASBOX |
1816 | echo |
1817 | for ac_var in $ac_subst_files |
1818 | do |
1819 | eval ac_val=\$$ac_var |
1820 | case $ac_val in |
1821 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1822 | esac |
1823 | echo "$ac_var='\''$ac_val'\''" |
1824 | done | sort |
1825 | echo |
1826 | fi |
1827 | |
1828 | if test -s confdefs.h; then |
1829 | cat <<\_ASBOX |
1830 | ## ----------- ## |
1831 | ## confdefs.h. ## |
1832 | ## ----------- ## |
1833 | _ASBOX |
1834 | echo |
1835 | cat confdefs.h |
1836 | echo |
1837 | fi |
1838 | test "$ac_signal" != 0 && |
1839 | echo "$as_me: caught signal $ac_signal" |
1840 | echo "$as_me: exit $exit_status" |
1841 | } >&5 |
1842 | rm -f core *.core core.conftest.* && |
1843 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1844 | exit $exit_status |
1845 | ' 0 |
1846 | for ac_signal in 1 2 13 15; do |
1847 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1848 | done |
1849 | ac_signal=0 |
1850 | |
1851 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1852 | rm -f -r conftest* confdefs.h |
1853 | |
1854 | # Predefined preprocessor variables. |
1855 | |
1856 | cat >>confdefs.h <<_ACEOF |
1857 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1858 | _ACEOF |
1859 | |
1860 | |
1861 | cat >>confdefs.h <<_ACEOF |
1862 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1863 | _ACEOF |
1864 | |
1865 | |
1866 | cat >>confdefs.h <<_ACEOF |
1867 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1868 | _ACEOF |
1869 | |
1870 | |
1871 | cat >>confdefs.h <<_ACEOF |
1872 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1873 | _ACEOF |
1874 | |
1875 | |
1876 | cat >>confdefs.h <<_ACEOF |
1877 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1878 | _ACEOF |
1879 | |
1880 | |
1881 | # Let the site file select an alternate cache file if it wants to. |
1882 | # Prefer explicitly selected file to automatically selected ones. |
1883 | if test -n "$CONFIG_SITE"; then |
1884 | set x "$CONFIG_SITE" |
1885 | elif test "x$prefix" != xNONE; then |
1886 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1887 | else |
1888 | set x "$ac_default_prefix/share/config.site" \ |
1889 | "$ac_default_prefix/etc/config.site" |
1890 | fi |
1891 | shift |
1892 | for ac_site_file |
1893 | do |
1894 | if test -r "$ac_site_file"; then |
1895 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1896 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1897 | sed 's/^/| /' "$ac_site_file" >&5 |
1898 | . "$ac_site_file" |
1899 | fi |
1900 | done |
1901 | |
1902 | if test -r "$cache_file"; then |
1903 | # Some versions of bash will fail to source /dev/null (special |
1904 | # files actually), so we avoid doing that. |
1905 | if test -f "$cache_file"; then |
1906 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1907 | echo "$as_me: loading cache $cache_file" >&6;} |
1908 | case $cache_file in |
1909 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1910 | *) . "./$cache_file";; |
1911 | esac |
1912 | fi |
1913 | else |
1914 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1915 | echo "$as_me: creating cache $cache_file" >&6;} |
1916 | >$cache_file |
1917 | fi |
1918 | |
1919 | gt_needs="$gt_needs need-ngettext" |
1920 | # Check that the precious variables saved in the cache have kept the same |
1921 | # value. |
1922 | ac_cache_corrupted=false |
1923 | for ac_var in $ac_precious_vars; do |
1924 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1925 | eval ac_new_set=\$ac_env_${ac_var}_set |
1926 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1927 | eval ac_new_val=\$ac_env_${ac_var}_value |
1928 | case $ac_old_set,$ac_new_set in |
1929 | set,) |
1930 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1931 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1932 | ac_cache_corrupted=: ;; |
1933 | ,set) |
1934 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1935 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1936 | ac_cache_corrupted=: ;; |
1937 | ,);; |
1938 | *) |
1939 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1940 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1941 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1942 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1943 | echo "$as_me: former value: $ac_old_val" >&2;} |
1944 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1945 | echo "$as_me: current value: $ac_new_val" >&2;} |
1946 | ac_cache_corrupted=: |
1947 | fi;; |
1948 | esac |
1949 | # Pass precious variables to config.status. |
1950 | if test "$ac_new_set" = set; then |
1951 | case $ac_new_val in |
1952 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1953 | *) ac_arg=$ac_var=$ac_new_val ;; |
1954 | esac |
1955 | case " $ac_configure_args " in |
1956 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1957 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1958 | esac |
1959 | fi |
1960 | done |
1961 | if $ac_cache_corrupted; then |
1962 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1963 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1964 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1965 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1966 | { (exit 1); exit 1; }; } |
1967 | fi |
1968 | |
1969 | |
1970 | |
1971 | |
1972 | |
1973 | |
1974 | |
1975 | |
1976 | |
1977 | |
1978 | |
1979 | |
1980 | |
1981 | |
1982 | |
1983 | |
1984 | |
1985 | |
1986 | |
1987 | |
1988 | |
1989 | |
1990 | |
1991 | |
1992 | |
1993 | ac_ext=c |
1994 | ac_cpp='$CPP $CPPFLAGS' |
1995 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1996 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1997 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1998 | |
1999 | |
2000 | |
2001 | |
2002 | am__api_version="1.9" |
2003 | ac_aux_dir= |
2004 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
2005 | if test -f "$ac_dir/install-sh"; then |
2006 | ac_aux_dir=$ac_dir |
2007 | ac_install_sh="$ac_aux_dir/install-sh -c" |
2008 | break |
2009 | elif test -f "$ac_dir/install.sh"; then |
2010 | ac_aux_dir=$ac_dir |
2011 | ac_install_sh="$ac_aux_dir/install.sh -c" |
2012 | break |
2013 | elif test -f "$ac_dir/shtool"; then |
2014 | ac_aux_dir=$ac_dir |
2015 | ac_install_sh="$ac_aux_dir/shtool install -c" |
2016 | break |
2017 | fi |
2018 | done |
2019 | if test -z "$ac_aux_dir"; then |
2020 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
2021 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
2022 | { (exit 1); exit 1; }; } |
2023 | fi |
2024 | |
2025 | # These three variables are undocumented and unsupported, |
2026 | # and are intended to be withdrawn in a future Autoconf release. |
2027 | # They can cause serious problems if a builder's source tree is in a directory |
2028 | # whose full name contains unusual characters. |
2029 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
2030 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
2031 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
2032 | |
2033 | |
2034 | # Find a good install program. We prefer a C program (faster), |
2035 | # so one script is as good as another. But avoid the broken or |
2036 | # incompatible versions: |
2037 | # SysV /etc/install, /usr/sbin/install |
2038 | # SunOS /usr/etc/install |
2039 | # IRIX /sbin/install |
2040 | # AIX /bin/install |
2041 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
2042 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
2043 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
2044 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
2045 | # OS/2's system install, which has a completely different semantic |
2046 | # ./install, which can be erroneously created by make from ./install.sh. |
2047 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
2048 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
2049 | if test -z "$INSTALL"; then |
2050 | if test "${ac_cv_path_install+set}" = set; then |
2051 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2052 | else |
2053 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2054 | for as_dir in $PATH |
2055 | do |
2056 | IFS=$as_save_IFS |
2057 | test -z "$as_dir" && as_dir=. |
2058 | # Account for people who put trailing slashes in PATH elements. |
2059 | case $as_dir/ in |
2060 | ./ | .// | /cC/* | \ |
2061 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2062 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2063 | /usr/ucb/* ) ;; |
2064 | *) |
2065 | # OSF1 and SCO ODT 3.0 have their own names for install. |
2066 | # Don't use installbsd from OSF since it installs stuff as root |
2067 | # by default. |
2068 | for ac_prog in ginstall scoinst install; do |
2069 | for ac_exec_ext in '' $ac_executable_extensions; do |
2070 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then |
2071 | if test $ac_prog = install && |
2072 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2073 | # AIX install. It has an incompatible calling convention. |
2074 | : |
2075 | elif test $ac_prog = install && |
2076 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2077 | # program-specific install script used by HP pwplus--don't use. |
2078 | : |
2079 | else |
2080 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2081 | break 3 |
2082 | fi |
2083 | fi |
2084 | done |
2085 | done |
2086 | ;; |
2087 | esac |
2088 | done |
2089 | IFS=$as_save_IFS |
2090 | |
2091 | |
2092 | fi |
2093 | if test "${ac_cv_path_install+set}" = set; then |
2094 | INSTALL=$ac_cv_path_install |
2095 | else |
2096 | # As a last resort, use the slow shell script. Don't cache a |
2097 | # value for INSTALL within a source directory, because that will |
2098 | # break other packages using the cache if that directory is |
2099 | # removed, or if the value is a relative name. |
2100 | INSTALL=$ac_install_sh |
2101 | fi |
2102 | fi |
2103 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2104 | echo "${ECHO_T}$INSTALL" >&6; } |
2105 | |
2106 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2107 | # It thinks the first close brace ends the variable substitution. |
2108 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2109 | |
2110 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2111 | |
2112 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2113 | |
2114 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2115 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
2116 | # Just in case |
2117 | sleep 1 |
2118 | echo timestamp > conftest.file |
2119 | # Do `set' in a subshell so we don't clobber the current shell's |
2120 | # arguments. Must try -L first in case configure is actually a |
2121 | # symlink; some systems play weird games with the mod time of symlinks |
2122 | # (eg FreeBSD returns the mod time of the symlink's containing |
2123 | # directory). |
2124 | if ( |
2125 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
2126 | if test "$*" = "X"; then |
2127 | # -L didn't work. |
2128 | set X `ls -t $srcdir/configure conftest.file` |
2129 | fi |
2130 | rm -f conftest.file |
2131 | if test "$*" != "X $srcdir/configure conftest.file" \ |
2132 | && test "$*" != "X conftest.file $srcdir/configure"; then |
2133 | |
2134 | # If neither matched, then we have a broken ls. This can happen |
2135 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
2136 | # broken ls alias from the environment. This has actually |
2137 | # happened. Such a system could not be considered "sane". |
2138 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2139 | alias in your environment" >&5 |
2140 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
2141 | alias in your environment" >&2;} |
2142 | { (exit 1); exit 1; }; } |
2143 | fi |
2144 | |
2145 | test "$2" = conftest.file |
2146 | ) |
2147 | then |
2148 | # Ok. |
2149 | : |
2150 | else |
2151 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2152 | Check your system clock" >&5 |
2153 | echo "$as_me: error: newly created file is older than distributed files! |
2154 | Check your system clock" >&2;} |
2155 | { (exit 1); exit 1; }; } |
2156 | fi |
2157 | { echo "$as_me:$LINENO: result: yes" >&5 |
2158 | echo "${ECHO_T}yes" >&6; } |
2159 | test "$program_prefix" != NONE && |
2160 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2161 | # Use a double $ so make ignores it. |
2162 | test "$program_suffix" != NONE && |
2163 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2164 | # Double any \ or $. echo might interpret backslashes. |
2165 | # By default was `s,x,x', remove it if useless. |
2166 | cat <<\_ACEOF >conftest.sed |
2167 | s/[\\$]/&&/g;s/;s,x,x,$// |
2168 | _ACEOF |
2169 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
2170 | rm -f conftest.sed |
2171 | |
2172 | # expand $ac_aux_dir to an absolute path |
2173 | am_aux_dir=`cd $ac_aux_dir && pwd` |
2174 | |
2175 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
2176 | # Use eval to expand $SHELL |
2177 | if eval "$MISSING --run true"; then |
2178 | am_missing_run="$MISSING --run " |
2179 | else |
2180 | am_missing_run= |
2181 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2182 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2183 | fi |
2184 | |
2185 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then |
2186 | # We used to keeping the `.' as first argument, in order to |
2187 | # allow $(mkdir_p) to be used without argument. As in |
2188 | # $(mkdir_p) $(somedir) |
2189 | # where $(somedir) is conditionally defined. However this is wrong |
2190 | # for two reasons: |
2191 | # 1. if the package is installed by a user who cannot write `.' |
2192 | # make install will fail, |
2193 | # 2. the above comment should most certainly read |
2194 | # $(mkdir_p) $(DESTDIR)$(somedir) |
2195 | # so it does not work when $(somedir) is undefined and |
2196 | # $(DESTDIR) is not. |
2197 | # To support the latter case, we have to write |
2198 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), |
2199 | # so the `.' trick is pointless. |
2200 | mkdir_p='mkdir -p --' |
2201 | else |
2202 | # On NextStep and OpenStep, the `mkdir' command does not |
2203 | # recognize any option. It will interpret all options as |
2204 | # directories to create, and then abort because `.' already |
2205 | # exists. |
2206 | for d in ./-p ./--version; |
2207 | do |
2208 | test -d $d && rmdir $d |
2209 | done |
2210 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. |
2211 | if test -f "$ac_aux_dir/mkinstalldirs"; then |
2212 | mkdir_p='$(mkinstalldirs)' |
2213 | else |
2214 | mkdir_p='$(install_sh) -d' |
2215 | fi |
2216 | fi |
2217 | |
2218 | for ac_prog in gawk mawk nawk awk |
2219 | do |
2220 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2221 | set dummy $ac_prog; ac_word=$2 |
2222 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2223 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2224 | if test "${ac_cv_prog_AWK+set}" = set; then |
2225 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2226 | else |
2227 | if test -n "$AWK"; then |
2228 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2229 | else |
2230 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2231 | for as_dir in $PATH |
2232 | do |
2233 | IFS=$as_save_IFS |
2234 | test -z "$as_dir" && as_dir=. |
2235 | for ac_exec_ext in '' $ac_executable_extensions; do |
2236 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2237 | ac_cv_prog_AWK="$ac_prog" |
2238 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2239 | break 2 |
2240 | fi |
2241 | done |
2242 | done |
2243 | IFS=$as_save_IFS |
2244 | |
2245 | fi |
2246 | fi |
2247 | AWK=$ac_cv_prog_AWK |
2248 | if test -n "$AWK"; then |
2249 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2250 | echo "${ECHO_T}$AWK" >&6; } |
2251 | else |
2252 | { echo "$as_me:$LINENO: result: no" >&5 |
2253 | echo "${ECHO_T}no" >&6; } |
2254 | fi |
2255 | |
2256 | |
2257 | test -n "$AWK" && break |
2258 | done |
2259 | |
2260 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2261 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
2262 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2263 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
2264 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2265 | else |
2266 | cat >conftest.make <<\_ACEOF |
2267 | SHELL = /bin/sh |
2268 | all: |
2269 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
2270 | _ACEOF |
2271 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
2272 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2273 | *@@@%%%=?*=@@@%%%*) |
2274 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
2275 | *) |
2276 | eval ac_cv_prog_make_${ac_make}_set=no;; |
2277 | esac |
2278 | rm -f conftest.make |
2279 | fi |
2280 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2281 | { echo "$as_me:$LINENO: result: yes" >&5 |
2282 | echo "${ECHO_T}yes" >&6; } |
2283 | SET_MAKE= |
2284 | else |
2285 | { echo "$as_me:$LINENO: result: no" >&5 |
2286 | echo "${ECHO_T}no" >&6; } |
2287 | SET_MAKE="MAKE=${MAKE-make}" |
2288 | fi |
2289 | |
2290 | rm -rf .tst 2>/dev/null |
2291 | mkdir .tst 2>/dev/null |
2292 | if test -d .tst; then |
2293 | am__leading_dot=. |
2294 | else |
2295 | am__leading_dot=_ |
2296 | fi |
2297 | rmdir .tst 2>/dev/null |
2298 | |
2299 | # test to see if srcdir already configured |
2300 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
2301 | test -f $srcdir/config.status; then |
2302 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2303 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2304 | { (exit 1); exit 1; }; } |
2305 | fi |
2306 | |
2307 | # test whether we have cygpath |
2308 | if test -z "$CYGPATH_W"; then |
2309 | if (cygpath --version) >/dev/null 2>/dev/null; then |
2310 | CYGPATH_W='cygpath -w' |
2311 | else |
2312 | CYGPATH_W=echo |
2313 | fi |
2314 | fi |
2315 | |
2316 | |
2317 | # Define the identity of the package. |
2318 | PACKAGE='zvbi' |
2319 | VERSION='0.2.33' |
2320 | |
2321 | |
2322 | cat >>confdefs.h <<_ACEOF |
2323 | #define PACKAGE "$PACKAGE" |
2324 | _ACEOF |
2325 | |
2326 | |
2327 | cat >>confdefs.h <<_ACEOF |
2328 | #define VERSION "$VERSION" |
2329 | _ACEOF |
2330 | |
2331 | # Some tools Automake needs. |
2332 | |
2333 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2334 | |
2335 | |
2336 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2337 | |
2338 | |
2339 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2340 | |
2341 | |
2342 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2343 | |
2344 | |
2345 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2346 | |
2347 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
2348 | |
2349 | # Installed binaries are usually stripped using `strip' when the user |
2350 | # run `make install-strip'. However `strip' might not be the right |
2351 | # tool to use in cross-compilation environments, therefore Automake |
2352 | # will honor the `STRIP' environment variable to overrule this program. |
2353 | if test "$cross_compiling" != no; then |
2354 | if test -n "$ac_tool_prefix"; then |
2355 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2356 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
2357 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2358 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2359 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2360 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2361 | else |
2362 | if test -n "$STRIP"; then |
2363 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2364 | else |
2365 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2366 | for as_dir in $PATH |
2367 | do |
2368 | IFS=$as_save_IFS |
2369 | test -z "$as_dir" && as_dir=. |
2370 | for ac_exec_ext in '' $ac_executable_extensions; do |
2371 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2372 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2373 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2374 | break 2 |
2375 | fi |
2376 | done |
2377 | done |
2378 | IFS=$as_save_IFS |
2379 | |
2380 | fi |
2381 | fi |
2382 | STRIP=$ac_cv_prog_STRIP |
2383 | if test -n "$STRIP"; then |
2384 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2385 | echo "${ECHO_T}$STRIP" >&6; } |
2386 | else |
2387 | { echo "$as_me:$LINENO: result: no" >&5 |
2388 | echo "${ECHO_T}no" >&6; } |
2389 | fi |
2390 | |
2391 | |
2392 | fi |
2393 | if test -z "$ac_cv_prog_STRIP"; then |
2394 | ac_ct_STRIP=$STRIP |
2395 | # Extract the first word of "strip", so it can be a program name with args. |
2396 | set dummy strip; ac_word=$2 |
2397 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2398 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2399 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2400 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2401 | else |
2402 | if test -n "$ac_ct_STRIP"; then |
2403 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2404 | else |
2405 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2406 | for as_dir in $PATH |
2407 | do |
2408 | IFS=$as_save_IFS |
2409 | test -z "$as_dir" && as_dir=. |
2410 | for ac_exec_ext in '' $ac_executable_extensions; do |
2411 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2412 | ac_cv_prog_ac_ct_STRIP="strip" |
2413 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2414 | break 2 |
2415 | fi |
2416 | done |
2417 | done |
2418 | IFS=$as_save_IFS |
2419 | |
2420 | fi |
2421 | fi |
2422 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2423 | if test -n "$ac_ct_STRIP"; then |
2424 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2425 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
2426 | else |
2427 | { echo "$as_me:$LINENO: result: no" >&5 |
2428 | echo "${ECHO_T}no" >&6; } |
2429 | fi |
2430 | |
2431 | if test "x$ac_ct_STRIP" = x; then |
2432 | STRIP=":" |
2433 | else |
2434 | case $cross_compiling:$ac_tool_warned in |
2435 | yes:) |
2436 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2437 | whose name does not start with the host triplet. If you think this |
2438 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2439 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2440 | whose name does not start with the host triplet. If you think this |
2441 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2442 | ac_tool_warned=yes ;; |
2443 | esac |
2444 | STRIP=$ac_ct_STRIP |
2445 | fi |
2446 | else |
2447 | STRIP="$ac_cv_prog_STRIP" |
2448 | fi |
2449 | |
2450 | fi |
2451 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
2452 | |
2453 | # We need awk for the "check" target. The system "awk" is bad on |
2454 | # some platforms. |
2455 | # Always define AMTAR for backward compatibility. |
2456 | |
2457 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
2458 | |
2459 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' |
2460 | |
2461 | |
2462 | |
2463 | |
2464 | |
2465 | ac_config_headers="$ac_config_headers config.h" |
2466 | |
2467 | |
2468 | |
2469 | |
2470 | if test x = y; then |
2471 | INSIDE_GNOME_COMMON_TRUE= |
2472 | INSIDE_GNOME_COMMON_FALSE='#' |
2473 | else |
2474 | INSIDE_GNOME_COMMON_TRUE='#' |
2475 | INSIDE_GNOME_COMMON_FALSE= |
2476 | fi |
2477 | |
2478 | |
2479 | test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS" |
2480 | |
2481 | for k in m4 ; do ACLOCAL="$ACLOCAL -I $k" ; done |
2482 | |
2483 | { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 |
2484 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; } |
2485 | # Check whether --enable-maintainer-mode was given. |
2486 | if test "${enable_maintainer_mode+set}" = set; then |
2487 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval |
2488 | else |
2489 | USE_MAINTAINER_MODE=no |
2490 | fi |
2491 | |
2492 | { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 |
2493 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; } |
2494 | |
2495 | |
2496 | if test $USE_MAINTAINER_MODE = yes; then |
2497 | MAINTAINER_MODE_TRUE= |
2498 | MAINTAINER_MODE_FALSE='#' |
2499 | else |
2500 | MAINTAINER_MODE_TRUE='#' |
2501 | MAINTAINER_MODE_FALSE= |
2502 | fi |
2503 | |
2504 | MAINT=$MAINTAINER_MODE_TRUE |
2505 | |
2506 | |
2507 | |
2508 | LIBZVBI_SO_VERSION=13:1:13 |
2509 | |
2510 | |
2511 | |
2512 | cat >>confdefs.h <<\_ACEOF |
2513 | #define _GNU_SOURCE 1 |
2514 | _ACEOF |
2515 | |
2516 | |
2517 | |
2518 | ac_ext=c |
2519 | ac_cpp='$CPP $CPPFLAGS' |
2520 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2521 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2522 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2523 | if test -n "$ac_tool_prefix"; then |
2524 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2525 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2526 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2527 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2528 | if test "${ac_cv_prog_CC+set}" = set; then |
2529 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2530 | else |
2531 | if test -n "$CC"; then |
2532 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2533 | else |
2534 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2535 | for as_dir in $PATH |
2536 | do |
2537 | IFS=$as_save_IFS |
2538 | test -z "$as_dir" && as_dir=. |
2539 | for ac_exec_ext in '' $ac_executable_extensions; do |
2540 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2541 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2542 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2543 | break 2 |
2544 | fi |
2545 | done |
2546 | done |
2547 | IFS=$as_save_IFS |
2548 | |
2549 | fi |
2550 | fi |
2551 | CC=$ac_cv_prog_CC |
2552 | if test -n "$CC"; then |
2553 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2554 | echo "${ECHO_T}$CC" >&6; } |
2555 | else |
2556 | { echo "$as_me:$LINENO: result: no" >&5 |
2557 | echo "${ECHO_T}no" >&6; } |
2558 | fi |
2559 | |
2560 | |
2561 | fi |
2562 | if test -z "$ac_cv_prog_CC"; then |
2563 | ac_ct_CC=$CC |
2564 | # Extract the first word of "gcc", so it can be a program name with args. |
2565 | set dummy gcc; ac_word=$2 |
2566 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2567 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2568 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2569 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2570 | else |
2571 | if test -n "$ac_ct_CC"; then |
2572 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2573 | else |
2574 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2575 | for as_dir in $PATH |
2576 | do |
2577 | IFS=$as_save_IFS |
2578 | test -z "$as_dir" && as_dir=. |
2579 | for ac_exec_ext in '' $ac_executable_extensions; do |
2580 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2581 | ac_cv_prog_ac_ct_CC="gcc" |
2582 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2583 | break 2 |
2584 | fi |
2585 | done |
2586 | done |
2587 | IFS=$as_save_IFS |
2588 | |
2589 | fi |
2590 | fi |
2591 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2592 | if test -n "$ac_ct_CC"; then |
2593 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2594 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
2595 | else |
2596 | { echo "$as_me:$LINENO: result: no" >&5 |
2597 | echo "${ECHO_T}no" >&6; } |
2598 | fi |
2599 | |
2600 | if test "x$ac_ct_CC" = x; then |
2601 | CC="" |
2602 | else |
2603 | case $cross_compiling:$ac_tool_warned in |
2604 | yes:) |
2605 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2606 | whose name does not start with the host triplet. If you think this |
2607 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2608 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2609 | whose name does not start with the host triplet. If you think this |
2610 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2611 | ac_tool_warned=yes ;; |
2612 | esac |
2613 | CC=$ac_ct_CC |
2614 | fi |
2615 | else |
2616 | CC="$ac_cv_prog_CC" |
2617 | fi |
2618 | |
2619 | if test -z "$CC"; then |
2620 | if test -n "$ac_tool_prefix"; then |
2621 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2622 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2623 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2624 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2625 | if test "${ac_cv_prog_CC+set}" = set; then |
2626 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2627 | else |
2628 | if test -n "$CC"; then |
2629 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2630 | else |
2631 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2632 | for as_dir in $PATH |
2633 | do |
2634 | IFS=$as_save_IFS |
2635 | test -z "$as_dir" && as_dir=. |
2636 | for ac_exec_ext in '' $ac_executable_extensions; do |
2637 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2638 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2639 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2640 | break 2 |
2641 | fi |
2642 | done |
2643 | done |
2644 | IFS=$as_save_IFS |
2645 | |
2646 | fi |
2647 | fi |
2648 | CC=$ac_cv_prog_CC |
2649 | if test -n "$CC"; then |
2650 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2651 | echo "${ECHO_T}$CC" >&6; } |
2652 | else |
2653 | { echo "$as_me:$LINENO: result: no" >&5 |
2654 | echo "${ECHO_T}no" >&6; } |
2655 | fi |
2656 | |
2657 | |
2658 | fi |
2659 | fi |
2660 | if test -z "$CC"; then |
2661 | # Extract the first word of "cc", so it can be a program name with args. |
2662 | set dummy cc; ac_word=$2 |
2663 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2664 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2665 | if test "${ac_cv_prog_CC+set}" = set; then |
2666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2667 | else |
2668 | if test -n "$CC"; then |
2669 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2670 | else |
2671 | ac_prog_rejected=no |
2672 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2673 | for as_dir in $PATH |
2674 | do |
2675 | IFS=$as_save_IFS |
2676 | test -z "$as_dir" && as_dir=. |
2677 | for ac_exec_ext in '' $ac_executable_extensions; do |
2678 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2679 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2680 | ac_prog_rejected=yes |
2681 | continue |
2682 | fi |
2683 | ac_cv_prog_CC="cc" |
2684 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2685 | break 2 |
2686 | fi |
2687 | done |
2688 | done |
2689 | IFS=$as_save_IFS |
2690 | |
2691 | if test $ac_prog_rejected = yes; then |
2692 | # We found a bogon in the path, so make sure we never use it. |
2693 | set dummy $ac_cv_prog_CC |
2694 | shift |
2695 | if test $# != 0; then |
2696 | # We chose a different compiler from the bogus one. |
2697 | # However, it has the same basename, so the bogon will be chosen |
2698 | # first if we set CC to just the basename; use the full file name. |
2699 | shift |
2700 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2701 | fi |
2702 | fi |
2703 | fi |
2704 | fi |
2705 | CC=$ac_cv_prog_CC |
2706 | if test -n "$CC"; then |
2707 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2708 | echo "${ECHO_T}$CC" >&6; } |
2709 | else |
2710 | { echo "$as_me:$LINENO: result: no" >&5 |
2711 | echo "${ECHO_T}no" >&6; } |
2712 | fi |
2713 | |
2714 | |
2715 | fi |
2716 | if test -z "$CC"; then |
2717 | if test -n "$ac_tool_prefix"; then |
2718 | for ac_prog in cl.exe |
2719 | do |
2720 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2721 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2722 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2723 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2724 | if test "${ac_cv_prog_CC+set}" = set; then |
2725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2726 | else |
2727 | if test -n "$CC"; then |
2728 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2729 | else |
2730 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2731 | for as_dir in $PATH |
2732 | do |
2733 | IFS=$as_save_IFS |
2734 | test -z "$as_dir" && as_dir=. |
2735 | for ac_exec_ext in '' $ac_executable_extensions; do |
2736 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2737 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2738 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2739 | break 2 |
2740 | fi |
2741 | done |
2742 | done |
2743 | IFS=$as_save_IFS |
2744 | |
2745 | fi |
2746 | fi |
2747 | CC=$ac_cv_prog_CC |
2748 | if test -n "$CC"; then |
2749 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2750 | echo "${ECHO_T}$CC" >&6; } |
2751 | else |
2752 | { echo "$as_me:$LINENO: result: no" >&5 |
2753 | echo "${ECHO_T}no" >&6; } |
2754 | fi |
2755 | |
2756 | |
2757 | test -n "$CC" && break |
2758 | done |
2759 | fi |
2760 | if test -z "$CC"; then |
2761 | ac_ct_CC=$CC |
2762 | for ac_prog in cl.exe |
2763 | do |
2764 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2765 | set dummy $ac_prog; ac_word=$2 |
2766 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2767 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2768 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2769 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2770 | else |
2771 | if test -n "$ac_ct_CC"; then |
2772 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2773 | else |
2774 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2775 | for as_dir in $PATH |
2776 | do |
2777 | IFS=$as_save_IFS |
2778 | test -z "$as_dir" && as_dir=. |
2779 | for ac_exec_ext in '' $ac_executable_extensions; do |
2780 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
2781 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2782 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2783 | break 2 |
2784 | fi |
2785 | done |
2786 | done |
2787 | IFS=$as_save_IFS |
2788 | |
2789 | fi |
2790 | fi |
2791 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2792 | if test -n "$ac_ct_CC"; then |
2793 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2794 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
2795 | else |
2796 | { echo "$as_me:$LINENO: result: no" >&5 |
2797 | echo "${ECHO_T}no" >&6; } |
2798 | fi |
2799 | |
2800 | |
2801 | test -n "$ac_ct_CC" && break |
2802 | done |
2803 | |
2804 | if test "x$ac_ct_CC" = x; then |
2805 | CC="" |
2806 | else |
2807 | case $cross_compiling:$ac_tool_warned in |
2808 | yes:) |
2809 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2810 | whose name does not start with the host triplet. If you think this |
2811 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2812 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2813 | whose name does not start with the host triplet. If you think this |
2814 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2815 | ac_tool_warned=yes ;; |
2816 | esac |
2817 | CC=$ac_ct_CC |
2818 | fi |
2819 | fi |
2820 | |
2821 | fi |
2822 | |
2823 | |
2824 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2825 | See \`config.log' for more details." >&5 |
2826 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2827 | See \`config.log' for more details." >&2;} |
2828 | { (exit 1); exit 1; }; } |
2829 | |
2830 | # Provide some information about the compiler. |
2831 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2832 | ac_compiler=`set X $ac_compile; echo $2` |
2833 | { (ac_try="$ac_compiler --version >&5" |
2834 | case "(($ac_try" in |
2835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2836 | *) ac_try_echo=$ac_try;; |
2837 | esac |
2838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2839 | (eval "$ac_compiler --version >&5") 2>&5 |
2840 | ac_status=$? |
2841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2842 | (exit $ac_status); } |
2843 | { (ac_try="$ac_compiler -v >&5" |
2844 | case "(($ac_try" in |
2845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2846 | *) ac_try_echo=$ac_try;; |
2847 | esac |
2848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2849 | (eval "$ac_compiler -v >&5") 2>&5 |
2850 | ac_status=$? |
2851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2852 | (exit $ac_status); } |
2853 | { (ac_try="$ac_compiler -V >&5" |
2854 | case "(($ac_try" in |
2855 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2856 | *) ac_try_echo=$ac_try;; |
2857 | esac |
2858 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2859 | (eval "$ac_compiler -V >&5") 2>&5 |
2860 | ac_status=$? |
2861 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2862 | (exit $ac_status); } |
2863 | |
2864 | cat >conftest.$ac_ext <<_ACEOF |
2865 | /* confdefs.h. */ |
2866 | _ACEOF |
2867 | cat confdefs.h >>conftest.$ac_ext |
2868 | cat >>conftest.$ac_ext <<_ACEOF |
2869 | /* end confdefs.h. */ |
2870 | |
2871 | int |
2872 | main () |
2873 | { |
2874 | |
2875 | ; |
2876 | return 0; |
2877 | } |
2878 | _ACEOF |
2879 | ac_clean_files_save=$ac_clean_files |
2880 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2881 | # Try to create an executable without -o first, disregard a.out. |
2882 | # It will help us diagnose broken compilers, and finding out an intuition |
2883 | # of exeext. |
2884 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2885 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
2886 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2887 | # |
2888 | # List of possible output files, starting from the most likely. |
2889 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2890 | # only as a last resort. b.out is created by i960 compilers. |
2891 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2892 | # |
2893 | # The IRIX 6 linker writes into existing files which may not be |
2894 | # executable, retaining their permissions. Remove them first so a |
2895 | # subsequent execution test works. |
2896 | ac_rmfiles= |
2897 | for ac_file in $ac_files |
2898 | do |
2899 | case $ac_file in |
2900 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2901 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2902 | esac |
2903 | done |
2904 | rm -f $ac_rmfiles |
2905 | |
2906 | if { (ac_try="$ac_link_default" |
2907 | case "(($ac_try" in |
2908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2909 | *) ac_try_echo=$ac_try;; |
2910 | esac |
2911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2912 | (eval "$ac_link_default") 2>&5 |
2913 | ac_status=$? |
2914 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2915 | (exit $ac_status); }; then |
2916 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2917 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2918 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2919 | # so that the user can short-circuit this test for compilers unknown to |
2920 | # Autoconf. |
2921 | for ac_file in $ac_files '' |
2922 | do |
2923 | test -f "$ac_file" || continue |
2924 | case $ac_file in |
2925 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
2926 | ;; |
2927 | [ab].out ) |
2928 | # We found the default executable, but exeext='' is most |
2929 | # certainly right. |
2930 | break;; |
2931 | *.* ) |
2932 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
2933 | then :; else |
2934 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
2935 | fi |
2936 | # We set ac_cv_exeext here because the later test for it is not |
2937 | # safe: cross compilers may not add the suffix if given an `-o' |
2938 | # argument, so we may need to know it at that point already. |
2939 | # Even if this section looks crufty: it has the advantage of |
2940 | # actually working. |
2941 | break;; |
2942 | * ) |
2943 | break;; |
2944 | esac |
2945 | done |
2946 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
2947 | |
2948 | else |
2949 | ac_file='' |
2950 | fi |
2951 | |
2952 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
2953 | echo "${ECHO_T}$ac_file" >&6; } |
2954 | if test -z "$ac_file"; then |
2955 | echo "$as_me: failed program was:" >&5 |
2956 | sed 's/^/| /' conftest.$ac_ext >&5 |
2957 | |
2958 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
2959 | See \`config.log' for more details." >&5 |
2960 | echo "$as_me: error: C compiler cannot create executables |
2961 | See \`config.log' for more details." >&2;} |
2962 | { (exit 77); exit 77; }; } |
2963 | fi |
2964 | |
2965 | ac_exeext=$ac_cv_exeext |
2966 | |
2967 | # Check that the compiler produces executables we can run. If not, either |
2968 | # the compiler is broken, or we cross compile. |
2969 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
2970 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
2971 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
2972 | # If not cross compiling, check that we can run a simple program. |
2973 | if test "$cross_compiling" != yes; then |
2974 | if { ac_try='./$ac_file' |
2975 | { (case "(($ac_try" in |
2976 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2977 | *) ac_try_echo=$ac_try;; |
2978 | esac |
2979 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2980 | (eval "$ac_try") 2>&5 |
2981 | ac_status=$? |
2982 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2983 | (exit $ac_status); }; }; then |
2984 | cross_compiling=no |
2985 | else |
2986 | if test "$cross_compiling" = maybe; then |
2987 | cross_compiling=yes |
2988 | else |
2989 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
2990 | If you meant to cross compile, use \`--host'. |
2991 | See \`config.log' for more details." >&5 |
2992 | echo "$as_me: error: cannot run C compiled programs. |
2993 | If you meant to cross compile, use \`--host'. |
2994 | See \`config.log' for more details." >&2;} |
2995 | { (exit 1); exit 1; }; } |
2996 | fi |
2997 | fi |
2998 | fi |
2999 | { echo "$as_me:$LINENO: result: yes" >&5 |
3000 | echo "${ECHO_T}yes" >&6; } |
3001 | |
3002 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
3003 | ac_clean_files=$ac_clean_files_save |
3004 | # Check that the compiler produces executables we can run. If not, either |
3005 | # the compiler is broken, or we cross compile. |
3006 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3007 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
3008 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
3009 | echo "${ECHO_T}$cross_compiling" >&6; } |
3010 | |
3011 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3012 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
3013 | if { (ac_try="$ac_link" |
3014 | case "(($ac_try" in |
3015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3016 | *) ac_try_echo=$ac_try;; |
3017 | esac |
3018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3019 | (eval "$ac_link") 2>&5 |
3020 | ac_status=$? |
3021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3022 | (exit $ac_status); }; then |
3023 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3024 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3025 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
3026 | # `rm'. |
3027 | for ac_file in conftest.exe conftest conftest.*; do |
3028 | test -f "$ac_file" || continue |
3029 | case $ac_file in |
3030 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
3031 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3032 | break;; |
3033 | * ) break;; |
3034 | esac |
3035 | done |
3036 | else |
3037 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3038 | See \`config.log' for more details." >&5 |
3039 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
3040 | See \`config.log' for more details." >&2;} |
3041 | { (exit 1); exit 1; }; } |
3042 | fi |
3043 | |
3044 | rm -f conftest$ac_cv_exeext |
3045 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3046 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
3047 | |
3048 | rm -f conftest.$ac_ext |
3049 | EXEEXT=$ac_cv_exeext |
3050 | ac_exeext=$EXEEXT |
3051 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3052 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
3053 | if test "${ac_cv_objext+set}" = set; then |
3054 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3055 | else |
3056 | cat >conftest.$ac_ext <<_ACEOF |
3057 | /* confdefs.h. */ |
3058 | _ACEOF |
3059 | cat confdefs.h >>conftest.$ac_ext |
3060 | cat >>conftest.$ac_ext <<_ACEOF |
3061 | /* end confdefs.h. */ |
3062 | |
3063 | int |
3064 | main () |
3065 | { |
3066 | |
3067 | ; |
3068 | return 0; |
3069 | } |
3070 | _ACEOF |
3071 | rm -f conftest.o conftest.obj |
3072 | if { (ac_try="$ac_compile" |
3073 | case "(($ac_try" in |
3074 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3075 | *) ac_try_echo=$ac_try;; |
3076 | esac |
3077 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3078 | (eval "$ac_compile") 2>&5 |
3079 | ac_status=$? |
3080 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3081 | (exit $ac_status); }; then |
3082 | for ac_file in conftest.o conftest.obj conftest.*; do |
3083 | test -f "$ac_file" || continue; |
3084 | case $ac_file in |
3085 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
3086 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3087 | break;; |
3088 | esac |
3089 | done |
3090 | else |
3091 | echo "$as_me: failed program was:" >&5 |
3092 | sed 's/^/| /' conftest.$ac_ext >&5 |
3093 | |
3094 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3095 | See \`config.log' for more details." >&5 |
3096 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
3097 | See \`config.log' for more details." >&2;} |
3098 | { (exit 1); exit 1; }; } |
3099 | fi |
3100 | |
3101 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3102 | fi |
3103 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3104 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
3105 | OBJEXT=$ac_cv_objext |
3106 | ac_objext=$OBJEXT |
3107 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3108 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
3109 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3110 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3111 | else |
3112 | cat >conftest.$ac_ext <<_ACEOF |
3113 | /* confdefs.h. */ |
3114 | _ACEOF |
3115 | cat confdefs.h >>conftest.$ac_ext |
3116 | cat >>conftest.$ac_ext <<_ACEOF |
3117 | /* end confdefs.h. */ |
3118 | |
3119 | int |
3120 | main () |
3121 | { |
3122 | #ifndef __GNUC__ |
3123 | choke me |
3124 | #endif |
3125 | |
3126 | ; |
3127 | return 0; |
3128 | } |
3129 | _ACEOF |
3130 | rm -f conftest.$ac_objext |
3131 | if { (ac_try="$ac_compile" |
3132 | case "(($ac_try" in |
3133 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3134 | *) ac_try_echo=$ac_try;; |
3135 | esac |
3136 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3137 | (eval "$ac_compile") 2>conftest.er1 |
3138 | ac_status=$? |
3139 | grep -v '^ *+' conftest.er1 >conftest.err |
3140 | rm -f conftest.er1 |
3141 | cat conftest.err >&5 |
3142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3143 | (exit $ac_status); } && { |
3144 | test -z "$ac_c_werror_flag" || |
3145 | test ! -s conftest.err |
3146 | } && test -s conftest.$ac_objext; then |
3147 | ac_compiler_gnu=yes |
3148 | else |
3149 | echo "$as_me: failed program was:" >&5 |
3150 | sed 's/^/| /' conftest.$ac_ext >&5 |
3151 | |
3152 | ac_compiler_gnu=no |
3153 | fi |
3154 | |
3155 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3156 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3157 | |
3158 | fi |
3159 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3160 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
3161 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3162 | ac_test_CFLAGS=${CFLAGS+set} |
3163 | ac_save_CFLAGS=$CFLAGS |
3164 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3165 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
3166 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3167 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3168 | else |
3169 | ac_save_c_werror_flag=$ac_c_werror_flag |
3170 | ac_c_werror_flag=yes |
3171 | ac_cv_prog_cc_g=no |
3172 | CFLAGS="-g" |
3173 | cat >conftest.$ac_ext <<_ACEOF |
3174 | /* confdefs.h. */ |
3175 | _ACEOF |
3176 | cat confdefs.h >>conftest.$ac_ext |
3177 | cat >>conftest.$ac_ext <<_ACEOF |
3178 | /* end confdefs.h. */ |
3179 | |
3180 | int |
3181 | main () |
3182 | { |
3183 | |
3184 | ; |
3185 | return 0; |
3186 | } |
3187 | _ACEOF |
3188 | rm -f conftest.$ac_objext |
3189 | if { (ac_try="$ac_compile" |
3190 | case "(($ac_try" in |
3191 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3192 | *) ac_try_echo=$ac_try;; |
3193 | esac |
3194 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3195 | (eval "$ac_compile") 2>conftest.er1 |
3196 | ac_status=$? |
3197 | grep -v '^ *+' conftest.er1 >conftest.err |
3198 | rm -f conftest.er1 |
3199 | cat conftest.err >&5 |
3200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3201 | (exit $ac_status); } && { |
3202 | test -z "$ac_c_werror_flag" || |
3203 | test ! -s conftest.err |
3204 | } && test -s conftest.$ac_objext; then |
3205 | ac_cv_prog_cc_g=yes |
3206 | else |
3207 | echo "$as_me: failed program was:" >&5 |
3208 | sed 's/^/| /' conftest.$ac_ext >&5 |
3209 | |
3210 | CFLAGS="" |
3211 | cat >conftest.$ac_ext <<_ACEOF |
3212 | /* confdefs.h. */ |
3213 | _ACEOF |
3214 | cat confdefs.h >>conftest.$ac_ext |
3215 | cat >>conftest.$ac_ext <<_ACEOF |
3216 | /* end confdefs.h. */ |
3217 | |
3218 | int |
3219 | main () |
3220 | { |
3221 | |
3222 | ; |
3223 | return 0; |
3224 | } |
3225 | _ACEOF |
3226 | rm -f conftest.$ac_objext |
3227 | if { (ac_try="$ac_compile" |
3228 | case "(($ac_try" in |
3229 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3230 | *) ac_try_echo=$ac_try;; |
3231 | esac |
3232 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3233 | (eval "$ac_compile") 2>conftest.er1 |
3234 | ac_status=$? |
3235 | grep -v '^ *+' conftest.er1 >conftest.err |
3236 | rm -f conftest.er1 |
3237 | cat conftest.err >&5 |
3238 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3239 | (exit $ac_status); } && { |
3240 | test -z "$ac_c_werror_flag" || |
3241 | test ! -s conftest.err |
3242 | } && test -s conftest.$ac_objext; then |
3243 | : |
3244 | else |
3245 | echo "$as_me: failed program was:" >&5 |
3246 | sed 's/^/| /' conftest.$ac_ext >&5 |
3247 | |
3248 | ac_c_werror_flag=$ac_save_c_werror_flag |
3249 | CFLAGS="-g" |
3250 | cat >conftest.$ac_ext <<_ACEOF |
3251 | /* confdefs.h. */ |
3252 | _ACEOF |
3253 | cat confdefs.h >>conftest.$ac_ext |
3254 | cat >>conftest.$ac_ext <<_ACEOF |
3255 | /* end confdefs.h. */ |
3256 | |
3257 | int |
3258 | main () |
3259 | { |
3260 | |
3261 | ; |
3262 | return 0; |
3263 | } |
3264 | _ACEOF |
3265 | rm -f conftest.$ac_objext |
3266 | if { (ac_try="$ac_compile" |
3267 | case "(($ac_try" in |
3268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3269 | *) ac_try_echo=$ac_try;; |
3270 | esac |
3271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3272 | (eval "$ac_compile") 2>conftest.er1 |
3273 | ac_status=$? |
3274 | grep -v '^ *+' conftest.er1 >conftest.err |
3275 | rm -f conftest.er1 |
3276 | cat conftest.err >&5 |
3277 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3278 | (exit $ac_status); } && { |
3279 | test -z "$ac_c_werror_flag" || |
3280 | test ! -s conftest.err |
3281 | } && test -s conftest.$ac_objext; then |
3282 | ac_cv_prog_cc_g=yes |
3283 | else |
3284 | echo "$as_me: failed program was:" >&5 |
3285 | sed 's/^/| /' conftest.$ac_ext >&5 |
3286 | |
3287 | |
3288 | fi |
3289 | |
3290 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3291 | fi |
3292 | |
3293 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3294 | fi |
3295 | |
3296 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3297 | ac_c_werror_flag=$ac_save_c_werror_flag |
3298 | fi |
3299 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3300 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
3301 | if test "$ac_test_CFLAGS" = set; then |
3302 | CFLAGS=$ac_save_CFLAGS |
3303 | elif test $ac_cv_prog_cc_g = yes; then |
3304 | if test "$GCC" = yes; then |
3305 | CFLAGS="-g -O2" |
3306 | else |
3307 | CFLAGS="-g" |
3308 | fi |
3309 | else |
3310 | if test "$GCC" = yes; then |
3311 | CFLAGS="-O2" |
3312 | else |
3313 | CFLAGS= |
3314 | fi |
3315 | fi |
3316 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3317 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3318 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
3319 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3320 | else |
3321 | ac_cv_prog_cc_c89=no |
3322 | ac_save_CC=$CC |
3323 | cat >conftest.$ac_ext <<_ACEOF |
3324 | /* confdefs.h. */ |
3325 | _ACEOF |
3326 | cat confdefs.h >>conftest.$ac_ext |
3327 | cat >>conftest.$ac_ext <<_ACEOF |
3328 | /* end confdefs.h. */ |
3329 | #include <stdarg.h> |
3330 | #include <stdio.h> |
3331 | #include <sys/types.h> |
3332 | #include <sys/stat.h> |
3333 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3334 | struct buf { int x; }; |
3335 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3336 | static char *e (p, i) |
3337 | char **p; |
3338 | int i; |
3339 | { |
3340 | return p[i]; |
3341 | } |
3342 | static char *f (char * (*g) (char **, int), char **p, ...) |
3343 | { |
3344 | char *s; |
3345 | va_list v; |
3346 | va_start (v,p); |
3347 | s = g (p, va_arg (v,int)); |
3348 | va_end (v); |
3349 | return s; |
3350 | } |
3351 | |
3352 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3353 | function prototypes and stuff, but not '\xHH' hex character constants. |
3354 | These don't provoke an error unfortunately, instead are silently treated |
3355 | as 'x'. The following induces an error, until -std is added to get |
3356 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3357 | array size at least. It's necessary to write '\x00'==0 to get something |
3358 | that's true only with -std. */ |
3359 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3360 | |
3361 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3362 | inside strings and character constants. */ |
3363 | #define FOO(x) 'x' |
3364 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3365 | |
3366 | int test (int i, double x); |
3367 | struct s1 {int (*f) (int a);}; |
3368 | struct s2 {int (*f) (double a);}; |
3369 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3370 | int argc; |
3371 | char **argv; |
3372 | int |
3373 | main () |
3374 | { |
3375 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3376 | ; |
3377 | return 0; |
3378 | } |
3379 | _ACEOF |
3380 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3381 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3382 | do |
3383 | CC="$ac_save_CC $ac_arg" |
3384 | rm -f conftest.$ac_objext |
3385 | if { (ac_try="$ac_compile" |
3386 | case "(($ac_try" in |
3387 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3388 | *) ac_try_echo=$ac_try;; |
3389 | esac |
3390 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3391 | (eval "$ac_compile") 2>conftest.er1 |
3392 | ac_status=$? |
3393 | grep -v '^ *+' conftest.er1 >conftest.err |
3394 | rm -f conftest.er1 |
3395 | cat conftest.err >&5 |
3396 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3397 | (exit $ac_status); } && { |
3398 | test -z "$ac_c_werror_flag" || |
3399 | test ! -s conftest.err |
3400 | } && test -s conftest.$ac_objext; then |
3401 | ac_cv_prog_cc_c89=$ac_arg |
3402 | else |
3403 | echo "$as_me: failed program was:" >&5 |
3404 | sed 's/^/| /' conftest.$ac_ext >&5 |
3405 | |
3406 | |
3407 | fi |
3408 | |
3409 | rm -f core conftest.err conftest.$ac_objext |
3410 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
3411 | done |
3412 | rm -f conftest.$ac_ext |
3413 | CC=$ac_save_CC |
3414 | |
3415 | fi |
3416 | # AC_CACHE_VAL |
3417 | case "x$ac_cv_prog_cc_c89" in |
3418 | x) |
3419 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3420 | echo "${ECHO_T}none needed" >&6; } ;; |
3421 | xno) |
3422 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3423 | echo "${ECHO_T}unsupported" >&6; } ;; |
3424 | *) |
3425 | CC="$CC $ac_cv_prog_cc_c89" |
3426 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3427 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
3428 | esac |
3429 | |
3430 | |
3431 | ac_ext=c |
3432 | ac_cpp='$CPP $CPPFLAGS' |
3433 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3434 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3435 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3436 | DEPDIR="${am__leading_dot}deps" |
3437 | |
3438 | ac_config_commands="$ac_config_commands depfiles" |
3439 | |
3440 | |
3441 | am_make=${MAKE-make} |
3442 | cat > confinc << 'END' |
3443 | am__doit: |
3444 | @echo done |
3445 | .PHONY: am__doit |
3446 | END |
3447 | # If we don't find an include directive, just comment out the code. |
3448 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
3449 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
3450 | am__include="#" |
3451 | am__quote= |
3452 | _am_result=none |
3453 | # First try GNU make style include. |
3454 | echo "include confinc" > confmf |
3455 | # We grep out `Entering directory' and `Leaving directory' |
3456 | # messages which can occur if `w' ends up in MAKEFLAGS. |
3457 | # In particular we don't look at `^make:' because GNU make might |
3458 | # be invoked under some other name (usually "gmake"), in which |
3459 | # case it prints its new name instead of `make'. |
3460 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
3461 | am__include=include |
3462 | am__quote= |
3463 | _am_result=GNU |
3464 | fi |
3465 | # Now try BSD make style include. |
3466 | if test "$am__include" = "#"; then |
3467 | echo '.include "confinc"' > confmf |
3468 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
3469 | am__include=.include |
3470 | am__quote="\"" |
3471 | _am_result=BSD |
3472 | fi |
3473 | fi |
3474 | |
3475 | |
3476 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
3477 | echo "${ECHO_T}$_am_result" >&6; } |
3478 | rm -f confinc confmf |
3479 | |
3480 | # Check whether --enable-dependency-tracking was given. |
3481 | if test "${enable_dependency_tracking+set}" = set; then |
3482 | enableval=$enable_dependency_tracking; |
3483 | fi |
3484 | |
3485 | if test "x$enable_dependency_tracking" != xno; then |
3486 | am_depcomp="$ac_aux_dir/depcomp" |
3487 | AMDEPBACKSLASH='\' |
3488 | fi |
3489 | |
3490 | |
3491 | if test "x$enable_dependency_tracking" != xno; then |
3492 | AMDEP_TRUE= |
3493 | AMDEP_FALSE='#' |
3494 | else |
3495 | AMDEP_TRUE='#' |
3496 | AMDEP_FALSE= |
3497 | fi |
3498 | |
3499 | |
3500 | |
3501 | |
3502 | depcc="$CC" am_compiler_list= |
3503 | |
3504 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3505 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
3506 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3508 | else |
3509 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3510 | # We make a subdir and do the tests there. Otherwise we can end up |
3511 | # making bogus files that we don't know about and never remove. For |
3512 | # instance it was reported that on HP-UX the gcc test will end up |
3513 | # making a dummy file named `D' -- because `-MD' means `put the output |
3514 | # in D'. |
3515 | mkdir conftest.dir |
3516 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3517 | # using a relative directory. |
3518 | cp "$am_depcomp" conftest.dir |
3519 | cd conftest.dir |
3520 | # We will build objects and dependencies in a subdirectory because |
3521 | # it helps to detect inapplicable dependency modes. For instance |
3522 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3523 | # side effect of compilation, but ICC will put the dependencies in |
3524 | # the current directory while Tru64 will put them in the object |
3525 | # directory. |
3526 | mkdir sub |
3527 | |
3528 | am_cv_CC_dependencies_compiler_type=none |
3529 | if test "$am_compiler_list" = ""; then |
3530 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3531 | fi |
3532 | for depmode in $am_compiler_list; do |
3533 | # Setup a source with many dependencies, because some compilers |
3534 | # like to wrap large dependency lists on column 80 (with \), and |
3535 | # we should not choose a depcomp mode which is confused by this. |
3536 | # |
3537 | # We need to recreate these files for each test, as the compiler may |
3538 | # overwrite some of them when testing with obscure command lines. |
3539 | # This happens at least with the AIX C compiler. |
3540 | : > sub/conftest.c |
3541 | for i in 1 2 3 4 5 6; do |
3542 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3543 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
3544 | # Solaris 8's {/usr,}/bin/sh. |
3545 | touch sub/conftst$i.h |
3546 | done |
3547 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3548 | |
3549 | case $depmode in |
3550 | nosideeffect) |
3551 | # after this tag, mechanisms are not by side-effect, so they'll |
3552 | # only be used when explicitly requested |
3553 | if test "x$enable_dependency_tracking" = xyes; then |
3554 | continue |
3555 | else |
3556 | break |
3557 | fi |
3558 | ;; |
3559 | none) break ;; |
3560 | esac |
3561 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3562 | # mode. It turns out that the SunPro C++ compiler does not properly |
3563 | # handle `-M -o', and we need to detect this. |
3564 | if depmode=$depmode \ |
3565 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3566 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3567 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3568 | >/dev/null 2>conftest.err && |
3569 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3570 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3571 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3572 | # icc doesn't choke on unknown options, it will just issue warnings |
3573 | # or remarks (even with -Werror). So we grep stderr for any message |
3574 | # that says an option was ignored or not supported. |
3575 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
3576 | # icc: Command line warning: ignoring option '-M'; no argument required |
3577 | # The diagnosis changed in icc 8.0: |
3578 | # icc: Command line remark: option '-MP' not supported |
3579 | if (grep 'ignoring option' conftest.err || |
3580 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
3581 | am_cv_CC_dependencies_compiler_type=$depmode |
3582 | break |
3583 | fi |
3584 | fi |
3585 | done |
3586 | |
3587 | cd .. |
3588 | rm -rf conftest.dir |
3589 | else |
3590 | am_cv_CC_dependencies_compiler_type=none |
3591 | fi |
3592 | |
3593 | fi |
3594 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3595 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
3596 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3597 | |
3598 | |
3599 | |
3600 | if |
3601 | test "x$enable_dependency_tracking" != xno \ |
3602 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3603 | am__fastdepCC_TRUE= |
3604 | am__fastdepCC_FALSE='#' |
3605 | else |
3606 | am__fastdepCC_TRUE='#' |
3607 | am__fastdepCC_FALSE= |
3608 | fi |
3609 | |
3610 | |
3611 | |
3612 | ac_ext=cpp |
3613 | ac_cpp='$CXXCPP $CPPFLAGS' |
3614 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3615 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3616 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
3617 | if test -z "$CXX"; then |
3618 | if test -n "$CCC"; then |
3619 | CXX=$CCC |
3620 | else |
3621 | if test -n "$ac_tool_prefix"; then |
3622 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
3623 | do |
3624 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
3625 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
3626 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3628 | if test "${ac_cv_prog_CXX+set}" = set; then |
3629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3630 | else |
3631 | if test -n "$CXX"; then |
3632 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
3633 | else |
3634 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3635 | for as_dir in $PATH |
3636 | do |
3637 | IFS=$as_save_IFS |
3638 | test -z "$as_dir" && as_dir=. |
3639 | for ac_exec_ext in '' $ac_executable_extensions; do |
3640 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3641 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
3642 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3643 | break 2 |
3644 | fi |
3645 | done |
3646 | done |
3647 | IFS=$as_save_IFS |
3648 | |
3649 | fi |
3650 | fi |
3651 | CXX=$ac_cv_prog_CXX |
3652 | if test -n "$CXX"; then |
3653 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
3654 | echo "${ECHO_T}$CXX" >&6; } |
3655 | else |
3656 | { echo "$as_me:$LINENO: result: no" >&5 |
3657 | echo "${ECHO_T}no" >&6; } |
3658 | fi |
3659 | |
3660 | |
3661 | test -n "$CXX" && break |
3662 | done |
3663 | fi |
3664 | if test -z "$CXX"; then |
3665 | ac_ct_CXX=$CXX |
3666 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
3667 | do |
3668 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
3669 | set dummy $ac_prog; ac_word=$2 |
3670 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
3671 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
3672 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
3673 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3674 | else |
3675 | if test -n "$ac_ct_CXX"; then |
3676 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
3677 | else |
3678 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3679 | for as_dir in $PATH |
3680 | do |
3681 | IFS=$as_save_IFS |
3682 | test -z "$as_dir" && as_dir=. |
3683 | for ac_exec_ext in '' $ac_executable_extensions; do |
3684 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
3685 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
3686 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
3687 | break 2 |
3688 | fi |
3689 | done |
3690 | done |
3691 | IFS=$as_save_IFS |
3692 | |
3693 | fi |
3694 | fi |
3695 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
3696 | if test -n "$ac_ct_CXX"; then |
3697 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
3698 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
3699 | else |
3700 | { echo "$as_me:$LINENO: result: no" >&5 |
3701 | echo "${ECHO_T}no" >&6; } |
3702 | fi |
3703 | |
3704 | |
3705 | test -n "$ac_ct_CXX" && break |
3706 | done |
3707 | |
3708 | if test "x$ac_ct_CXX" = x; then |
3709 | CXX="g++" |
3710 | else |
3711 | case $cross_compiling:$ac_tool_warned in |
3712 | yes:) |
3713 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
3714 | whose name does not start with the host triplet. If you think this |
3715 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
3716 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
3717 | whose name does not start with the host triplet. If you think this |
3718 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
3719 | ac_tool_warned=yes ;; |
3720 | esac |
3721 | CXX=$ac_ct_CXX |
3722 | fi |
3723 | fi |
3724 | |
3725 | fi |
3726 | fi |
3727 | # Provide some information about the compiler. |
3728 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
3729 | ac_compiler=`set X $ac_compile; echo $2` |
3730 | { (ac_try="$ac_compiler --version >&5" |
3731 | case "(($ac_try" in |
3732 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3733 | *) ac_try_echo=$ac_try;; |
3734 | esac |
3735 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3736 | (eval "$ac_compiler --version >&5") 2>&5 |
3737 | ac_status=$? |
3738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3739 | (exit $ac_status); } |
3740 | { (ac_try="$ac_compiler -v >&5" |
3741 | case "(($ac_try" in |
3742 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3743 | *) ac_try_echo=$ac_try;; |
3744 | esac |
3745 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3746 | (eval "$ac_compiler -v >&5") 2>&5 |
3747 | ac_status=$? |
3748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3749 | (exit $ac_status); } |
3750 | { (ac_try="$ac_compiler -V >&5" |
3751 | case "(($ac_try" in |
3752 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3753 | *) ac_try_echo=$ac_try;; |
3754 | esac |
3755 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3756 | (eval "$ac_compiler -V >&5") 2>&5 |
3757 | ac_status=$? |
3758 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3759 | (exit $ac_status); } |
3760 | |
3761 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
3762 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
3763 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
3764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3765 | else |
3766 | cat >conftest.$ac_ext <<_ACEOF |
3767 | /* confdefs.h. */ |
3768 | _ACEOF |
3769 | cat confdefs.h >>conftest.$ac_ext |
3770 | cat >>conftest.$ac_ext <<_ACEOF |
3771 | /* end confdefs.h. */ |
3772 | |
3773 | int |
3774 | main () |
3775 | { |
3776 | #ifndef __GNUC__ |
3777 | choke me |
3778 | #endif |
3779 | |
3780 | ; |
3781 | return 0; |
3782 | } |
3783 | _ACEOF |
3784 | rm -f conftest.$ac_objext |
3785 | if { (ac_try="$ac_compile" |
3786 | case "(($ac_try" in |
3787 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3788 | *) ac_try_echo=$ac_try;; |
3789 | esac |
3790 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3791 | (eval "$ac_compile") 2>conftest.er1 |
3792 | ac_status=$? |
3793 | grep -v '^ *+' conftest.er1 >conftest.err |
3794 | rm -f conftest.er1 |
3795 | cat conftest.err >&5 |
3796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3797 | (exit $ac_status); } && { |
3798 | test -z "$ac_cxx_werror_flag" || |
3799 | test ! -s conftest.err |
3800 | } && test -s conftest.$ac_objext; then |
3801 | ac_compiler_gnu=yes |
3802 | else |
3803 | echo "$as_me: failed program was:" >&5 |
3804 | sed 's/^/| /' conftest.$ac_ext >&5 |
3805 | |
3806 | ac_compiler_gnu=no |
3807 | fi |
3808 | |
3809 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3810 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
3811 | |
3812 | fi |
3813 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
3814 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
3815 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
3816 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
3817 | ac_save_CXXFLAGS=$CXXFLAGS |
3818 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
3819 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
3820 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
3821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3822 | else |
3823 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
3824 | ac_cxx_werror_flag=yes |
3825 | ac_cv_prog_cxx_g=no |
3826 | CXXFLAGS="-g" |
3827 | cat >conftest.$ac_ext <<_ACEOF |
3828 | /* confdefs.h. */ |
3829 | _ACEOF |
3830 | cat confdefs.h >>conftest.$ac_ext |
3831 | cat >>conftest.$ac_ext <<_ACEOF |
3832 | /* end confdefs.h. */ |
3833 | |
3834 | int |
3835 | main () |
3836 | { |
3837 | |
3838 | ; |
3839 | return 0; |
3840 | } |
3841 | _ACEOF |
3842 | rm -f conftest.$ac_objext |
3843 | if { (ac_try="$ac_compile" |
3844 | case "(($ac_try" in |
3845 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3846 | *) ac_try_echo=$ac_try;; |
3847 | esac |
3848 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3849 | (eval "$ac_compile") 2>conftest.er1 |
3850 | ac_status=$? |
3851 | grep -v '^ *+' conftest.er1 >conftest.err |
3852 | rm -f conftest.er1 |
3853 | cat conftest.err >&5 |
3854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3855 | (exit $ac_status); } && { |
3856 | test -z "$ac_cxx_werror_flag" || |
3857 | test ! -s conftest.err |
3858 | } && test -s conftest.$ac_objext; then |
3859 | ac_cv_prog_cxx_g=yes |
3860 | else |
3861 | echo "$as_me: failed program was:" >&5 |
3862 | sed 's/^/| /' conftest.$ac_ext >&5 |
3863 | |
3864 | CXXFLAGS="" |
3865 | cat >conftest.$ac_ext <<_ACEOF |
3866 | /* confdefs.h. */ |
3867 | _ACEOF |
3868 | cat confdefs.h >>conftest.$ac_ext |
3869 | cat >>conftest.$ac_ext <<_ACEOF |
3870 | /* end confdefs.h. */ |
3871 | |
3872 | int |
3873 | main () |
3874 | { |
3875 | |
3876 | ; |
3877 | return 0; |
3878 | } |
3879 | _ACEOF |
3880 | rm -f conftest.$ac_objext |
3881 | if { (ac_try="$ac_compile" |
3882 | case "(($ac_try" in |
3883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3884 | *) ac_try_echo=$ac_try;; |
3885 | esac |
3886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3887 | (eval "$ac_compile") 2>conftest.er1 |
3888 | ac_status=$? |
3889 | grep -v '^ *+' conftest.er1 >conftest.err |
3890 | rm -f conftest.er1 |
3891 | cat conftest.err >&5 |
3892 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3893 | (exit $ac_status); } && { |
3894 | test -z "$ac_cxx_werror_flag" || |
3895 | test ! -s conftest.err |
3896 | } && test -s conftest.$ac_objext; then |
3897 | : |
3898 | else |
3899 | echo "$as_me: failed program was:" >&5 |
3900 | sed 's/^/| /' conftest.$ac_ext >&5 |
3901 | |
3902 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3903 | CXXFLAGS="-g" |
3904 | cat >conftest.$ac_ext <<_ACEOF |
3905 | /* confdefs.h. */ |
3906 | _ACEOF |
3907 | cat confdefs.h >>conftest.$ac_ext |
3908 | cat >>conftest.$ac_ext <<_ACEOF |
3909 | /* end confdefs.h. */ |
3910 | |
3911 | int |
3912 | main () |
3913 | { |
3914 | |
3915 | ; |
3916 | return 0; |
3917 | } |
3918 | _ACEOF |
3919 | rm -f conftest.$ac_objext |
3920 | if { (ac_try="$ac_compile" |
3921 | case "(($ac_try" in |
3922 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3923 | *) ac_try_echo=$ac_try;; |
3924 | esac |
3925 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3926 | (eval "$ac_compile") 2>conftest.er1 |
3927 | ac_status=$? |
3928 | grep -v '^ *+' conftest.er1 >conftest.err |
3929 | rm -f conftest.er1 |
3930 | cat conftest.err >&5 |
3931 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3932 | (exit $ac_status); } && { |
3933 | test -z "$ac_cxx_werror_flag" || |
3934 | test ! -s conftest.err |
3935 | } && test -s conftest.$ac_objext; then |
3936 | ac_cv_prog_cxx_g=yes |
3937 | else |
3938 | echo "$as_me: failed program was:" >&5 |
3939 | sed 's/^/| /' conftest.$ac_ext >&5 |
3940 | |
3941 | |
3942 | fi |
3943 | |
3944 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3945 | fi |
3946 | |
3947 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3948 | fi |
3949 | |
3950 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3951 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
3952 | fi |
3953 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
3954 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
3955 | if test "$ac_test_CXXFLAGS" = set; then |
3956 | CXXFLAGS=$ac_save_CXXFLAGS |
3957 | elif test $ac_cv_prog_cxx_g = yes; then |
3958 | if test "$GXX" = yes; then |
3959 | CXXFLAGS="-g -O2" |
3960 | else |
3961 | CXXFLAGS="-g" |
3962 | fi |
3963 | else |
3964 | if test "$GXX" = yes; then |
3965 | CXXFLAGS="-O2" |
3966 | else |
3967 | CXXFLAGS= |
3968 | fi |
3969 | fi |
3970 | ac_ext=c |
3971 | ac_cpp='$CPP $CPPFLAGS' |
3972 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3973 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3974 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3975 | |
3976 | depcc="$CXX" am_compiler_list= |
3977 | |
3978 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3979 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
3980 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
3981 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3982 | else |
3983 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3984 | # We make a subdir and do the tests there. Otherwise we can end up |
3985 | # making bogus files that we don't know about and never remove. For |
3986 | # instance it was reported that on HP-UX the gcc test will end up |
3987 | # making a dummy file named `D' -- because `-MD' means `put the output |
3988 | # in D'. |
3989 | mkdir conftest.dir |
3990 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3991 | # using a relative directory. |
3992 | cp "$am_depcomp" conftest.dir |
3993 | cd conftest.dir |
3994 | # We will build objects and dependencies in a subdirectory because |
3995 | # it helps to detect inapplicable dependency modes. For instance |
3996 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3997 | # side effect of compilation, but ICC will put the dependencies in |
3998 | # the current directory while Tru64 will put them in the object |
3999 | # directory. |
4000 | mkdir sub |
4001 | |
4002 | am_cv_CXX_dependencies_compiler_type=none |
4003 | if test "$am_compiler_list" = ""; then |
4004 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
4005 | fi |
4006 | for depmode in $am_compiler_list; do |
4007 | # Setup a source with many dependencies, because some compilers |
4008 | # like to wrap large dependency lists on column 80 (with \), and |
4009 | # we should not choose a depcomp mode which is confused by this. |
4010 | # |
4011 | # We need to recreate these files for each test, as the compiler may |
4012 | # overwrite some of them when testing with obscure command lines. |
4013 | # This happens at least with the AIX C compiler. |
4014 | : > sub/conftest.c |
4015 | for i in 1 2 3 4 5 6; do |
4016 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
4017 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with |
4018 | # Solaris 8's {/usr,}/bin/sh. |
4019 | touch sub/conftst$i.h |
4020 | done |
4021 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
4022 | |
4023 | case $depmode in |
4024 | nosideeffect) |
4025 | # after this tag, mechanisms are not by side-effect, so they'll |
4026 | # only be used when explicitly requested |
4027 | if test "x$enable_dependency_tracking" = xyes; then |
4028 | continue |
4029 | else |
4030 | break |
4031 | fi |
4032 | ;; |
4033 | none) break ;; |
4034 | esac |
4035 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
4036 | # mode. It turns out that the SunPro C++ compiler does not properly |
4037 | # handle `-M -o', and we need to detect this. |
4038 | if depmode=$depmode \ |
4039 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
4040 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
4041 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
4042 | >/dev/null 2>conftest.err && |
4043 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
4044 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
4045 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
4046 | # icc doesn't choke on unknown options, it will just issue warnings |
4047 | # or remarks (even with -Werror). So we grep stderr for any message |
4048 | # that says an option was ignored or not supported. |
4049 | # When given -MP, icc 7.0 and 7.1 complain thusly: |
4050 | # icc: Command line warning: ignoring option '-M'; no argument required |
4051 | # The diagnosis changed in icc 8.0: |
4052 | # icc: Command line remark: option '-MP' not supported |
4053 | if (grep 'ignoring option' conftest.err || |
4054 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else |
4055 | am_cv_CXX_dependencies_compiler_type=$depmode |
4056 | break |
4057 | fi |
4058 | fi |
4059 | done |
4060 | |
4061 | cd .. |
4062 | rm -rf conftest.dir |
4063 | else |
4064 | am_cv_CXX_dependencies_compiler_type=none |
4065 | fi |
4066 | |
4067 | fi |
4068 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
4069 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
4070 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
4071 | |
4072 | |
4073 | |
4074 | if |
4075 | test "x$enable_dependency_tracking" != xno \ |
4076 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
4077 | am__fastdepCXX_TRUE= |
4078 | am__fastdepCXX_FALSE='#' |
4079 | else |
4080 | am__fastdepCXX_TRUE='#' |
4081 | am__fastdepCXX_FALSE= |
4082 | fi |
4083 | |
4084 | |
4085 | |
4086 | LIBS="$LIBS -lm" |
4087 | |
4088 | |
4089 | |
4090 | |
4091 | |
4092 | |
4093 | |
4094 | |
4095 | |
4096 | |
4097 | for ac_func in strndup strlcpy asprintf vasprintf getopt_long \ |
4098 | getaddrinfo clock_settime program_invocation_name |
4099 | do |
4100 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4101 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
4102 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
4103 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
4104 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4105 | else |
4106 | cat >conftest.$ac_ext <<_ACEOF |
4107 | /* confdefs.h. */ |
4108 | _ACEOF |
4109 | cat confdefs.h >>conftest.$ac_ext |
4110 | cat >>conftest.$ac_ext <<_ACEOF |
4111 | /* end confdefs.h. */ |
4112 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
4113 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
4114 | #define $ac_func innocuous_$ac_func |
4115 | |
4116 | /* System header to define __stub macros and hopefully few prototypes, |
4117 | which can conflict with char $ac_func (); below. |
4118 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4119 | <limits.h> exists even on freestanding compilers. */ |
4120 | |
4121 | #ifdef __STDC__ |
4122 | # include <limits.h> |
4123 | #else |
4124 | # include <assert.h> |
4125 | #endif |
4126 | |
4127 | #undef $ac_func |
4128 | |
4129 | /* Override any GCC internal prototype to avoid an error. |
4130 | Use char because int might match the return type of a GCC |
4131 | builtin and then its argument prototype would still apply. */ |
4132 | #ifdef __cplusplus |
4133 | extern "C" |
4134 | #endif |
4135 | char $ac_func (); |
4136 | /* The GNU C library defines this for functions which it implements |
4137 | to always fail with ENOSYS. Some functions are actually named |
4138 | something starting with __ and the normal name is an alias. */ |
4139 | #if defined __stub_$ac_func || defined __stub___$ac_func |
4140 | choke me |
4141 | #endif |
4142 | |
4143 | int |
4144 | main () |
4145 | { |
4146 | return $ac_func (); |
4147 | ; |
4148 | return 0; |
4149 | } |
4150 | _ACEOF |
4151 | rm -f conftest.$ac_objext conftest$ac_exeext |
4152 | if { (ac_try="$ac_link" |
4153 | case "(($ac_try" in |
4154 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4155 | *) ac_try_echo=$ac_try;; |
4156 | esac |
4157 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4158 | (eval "$ac_link") 2>conftest.er1 |
4159 | ac_status=$? |
4160 | grep -v '^ *+' conftest.er1 >conftest.err |
4161 | rm -f conftest.er1 |
4162 | cat conftest.err >&5 |
4163 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4164 | (exit $ac_status); } && { |
4165 | test -z "$ac_c_werror_flag" || |
4166 | test ! -s conftest.err |
4167 | } && test -s conftest$ac_exeext && |
4168 | $as_test_x conftest$ac_exeext; then |
4169 | eval "$as_ac_var=yes" |
4170 | else |
4171 | echo "$as_me: failed program was:" >&5 |
4172 | sed 's/^/| /' conftest.$ac_ext >&5 |
4173 | |
4174 | eval "$as_ac_var=no" |
4175 | fi |
4176 | |
4177 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4178 | conftest$ac_exeext conftest.$ac_ext |
4179 | fi |
4180 | ac_res=`eval echo '${'$as_ac_var'}'` |
4181 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
4182 | echo "${ECHO_T}$ac_res" >&6; } |
4183 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
4184 | cat >>confdefs.h <<_ACEOF |
4185 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
4186 | _ACEOF |
4187 | |
4188 | fi |
4189 | done |
4190 | |
4191 | |
4192 | { echo "$as_me:$LINENO: checking for sincos" >&5 |
4193 | echo $ECHO_N "checking for sincos... $ECHO_C" >&6; } |
4194 | cat >conftest.$ac_ext <<_ACEOF |
4195 | |
4196 | #include <stdio.h> |
4197 | #include <math.h> |
4198 | int main (void) { |
4199 | double s, c; |
4200 | scanf ("%f", &s); |
4201 | sincos (s, &s, &c); |
4202 | printf ("%f %f", s, c); |
4203 | return 0; |
4204 | } |
4205 | |
4206 | _ACEOF |
4207 | rm -f conftest.$ac_objext conftest$ac_exeext |
4208 | if { (ac_try="$ac_link" |
4209 | case "(($ac_try" in |
4210 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4211 | *) ac_try_echo=$ac_try;; |
4212 | esac |
4213 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4214 | (eval "$ac_link") 2>conftest.er1 |
4215 | ac_status=$? |
4216 | grep -v '^ *+' conftest.er1 >conftest.err |
4217 | rm -f conftest.er1 |
4218 | cat conftest.err >&5 |
4219 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4220 | (exit $ac_status); } && { |
4221 | test -z "$ac_c_werror_flag" || |
4222 | test ! -s conftest.err |
4223 | } && test -s conftest$ac_exeext && |
4224 | $as_test_x conftest$ac_exeext; then |
4225 | |
4226 | { echo "$as_me:$LINENO: result: yes" >&5 |
4227 | echo "${ECHO_T}yes" >&6; } |
4228 | |
4229 | cat >>confdefs.h <<\_ACEOF |
4230 | #define HAVE_SINCOS 1 |
4231 | _ACEOF |
4232 | |
4233 | |
4234 | else |
4235 | echo "$as_me: failed program was:" >&5 |
4236 | sed 's/^/| /' conftest.$ac_ext >&5 |
4237 | |
4238 | |
4239 | { echo "$as_me:$LINENO: result: no" >&5 |
4240 | echo "${ECHO_T}no" >&6; } |
4241 | |
4242 | fi |
4243 | |
4244 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4245 | conftest$ac_exeext conftest.$ac_ext |
4246 | |
4247 | { echo "$as_me:$LINENO: checking for log2" >&5 |
4248 | echo $ECHO_N "checking for log2... $ECHO_C" >&6; } |
4249 | cat >conftest.$ac_ext <<_ACEOF |
4250 | |
4251 | #include <stdio.h> |
4252 | #include <math.h> |
4253 | int main (void) { |
4254 | double x; |
4255 | scanf ("%f", &x); |
4256 | printf ("%f", log2 (x)); |
4257 | return 0; |
4258 | } |
4259 | |
4260 | _ACEOF |
4261 | rm -f conftest.$ac_objext conftest$ac_exeext |
4262 | if { (ac_try="$ac_link" |
4263 | case "(($ac_try" in |
4264 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4265 | *) ac_try_echo=$ac_try;; |
4266 | esac |
4267 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4268 | (eval "$ac_link") 2>conftest.er1 |
4269 | ac_status=$? |
4270 | grep -v '^ *+' conftest.er1 >conftest.err |
4271 | rm -f conftest.er1 |
4272 | cat conftest.err >&5 |
4273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4274 | (exit $ac_status); } && { |
4275 | test -z "$ac_c_werror_flag" || |
4276 | test ! -s conftest.err |
4277 | } && test -s conftest$ac_exeext && |
4278 | $as_test_x conftest$ac_exeext; then |
4279 | |
4280 | { echo "$as_me:$LINENO: result: yes" >&5 |
4281 | echo "${ECHO_T}yes" >&6; } |
4282 | |
4283 | cat >>confdefs.h <<\_ACEOF |
4284 | #define HAVE_LOG2 1 |
4285 | _ACEOF |
4286 | |
4287 | |
4288 | else |
4289 | echo "$as_me: failed program was:" >&5 |
4290 | sed 's/^/| /' conftest.$ac_ext >&5 |
4291 | |
4292 | |
4293 | { echo "$as_me:$LINENO: result: no" >&5 |
4294 | echo "${ECHO_T}no" >&6; } |
4295 | |
4296 | fi |
4297 | |
4298 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
4299 | conftest$ac_exeext conftest.$ac_ext |
4300 | |
4301 | { echo "$as_me:$LINENO: checking for strerror_r" >&5 |
4302 | echo $ECHO_N "checking for strerror_r... $ECHO_C" >&6; } |
4303 | cat >conftest.$ac_ext <<_ACEOF |
4304 | |
4305 | #include <stdlib.h> |
4306 | #include <string.h> |
4307 | int main (void) { |
4308 | return *strerror_r (22, malloc (128), 128); |
4309 | } |
4310 | |
4311 | _ACEOF |
4312 | rm -f conftest.$ac_objext |
4313 | if { (ac_try="$ac_compile" |
4314 | case "(($ac_try" in |
4315 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4316 | *) ac_try_echo=$ac_try;; |
4317 | esac |
4318 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4319 | (eval "$ac_compile") 2>conftest.er1 |
4320 | ac_status=$? |
4321 | grep -v '^ *+' conftest.er1 >conftest.err |
4322 | rm -f conftest.er1 |
4323 | cat conftest.err >&5 |
4324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4325 | (exit $ac_status); } && { |
4326 | test -z "$ac_c_werror_flag" || |
4327 | test ! -s conftest.err |
4328 | } && test -s conftest.$ac_objext; then |
4329 | |
4330 | { echo "$as_me:$LINENO: result: yes, GNU version" >&5 |
4331 | echo "${ECHO_T}yes, GNU version" >&6; } |
4332 | |
4333 | cat >>confdefs.h <<\_ACEOF |
4334 | #define HAVE_GNU_STRERROR_R 1 |
4335 | _ACEOF |
4336 | |
4337 | |
4338 | else |
4339 | echo "$as_me: failed program was:" >&5 |
4340 | sed 's/^/| /' conftest.$ac_ext >&5 |
4341 | |
4342 | |
4343 | cat >conftest.$ac_ext <<_ACEOF |
4344 | |
4345 | #include <stdio.h> |
4346 | #include <stdlib.h> |
4347 | #include <string.h> |
4348 | int main (void) { |
4349 | printf ("%f", 1.0 + strerror_r (22, malloc (128), 128)); |
4350 | return 0; |
4351 | } |
4352 | |
4353 | _ACEOF |
4354 | rm -f conftest.$ac_objext |
4355 | if { (ac_try="$ac_compile" |
4356 | case "(($ac_try" in |
4357 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4358 | *) ac_try_echo=$ac_try;; |
4359 | esac |
4360 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4361 | (eval "$ac_compile") 2>conftest.er1 |
4362 | ac_status=$? |
4363 | grep -v '^ *+' conftest.er1 >conftest.err |
4364 | rm -f conftest.er1 |
4365 | cat conftest.err >&5 |
4366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4367 | (exit $ac_status); } && { |
4368 | test -z "$ac_c_werror_flag" || |
4369 | test ! -s conftest.err |
4370 | } && test -s conftest.$ac_objext; then |
4371 | |
4372 | { echo "$as_me:$LINENO: result: yes, SUSV3 version" >&5 |
4373 | echo "${ECHO_T}yes, SUSV3 version" >&6; } |
4374 | |
4375 | cat >>confdefs.h <<\_ACEOF |
4376 | #define HAVE_SUSV3_STRERROR_R 1 |
4377 | _ACEOF |
4378 | |
4379 | |
4380 | else |
4381 | echo "$as_me: failed program was:" >&5 |
4382 | sed 's/^/| /' conftest.$ac_ext >&5 |
4383 | |
4384 | |
4385 | { echo "$as_me:$LINENO: result: no" >&5 |
4386 | echo "${ECHO_T}no" >&6; } |
4387 | |
4388 | fi |
4389 | |
4390 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4391 | |
4392 | fi |
4393 | |
4394 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4395 | |
4396 | |
4397 | cat >>confdefs.h <<\_ACEOF |
4398 | #define Z_LITTLE_ENDIAN 1234 |
4399 | _ACEOF |
4400 | |
4401 | |
4402 | cat >>confdefs.h <<\_ACEOF |
4403 | #define Z_BIG_ENDIAN 4321 |
4404 | _ACEOF |
4405 | |
4406 | ac_ext=c |
4407 | ac_cpp='$CPP $CPPFLAGS' |
4408 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4409 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4410 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4411 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4412 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
4413 | # On Suns, sometimes $CPP names a directory. |
4414 | if test -n "$CPP" && test -d "$CPP"; then |
4415 | CPP= |
4416 | fi |
4417 | if test -z "$CPP"; then |
4418 | if test "${ac_cv_prog_CPP+set}" = set; then |
4419 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4420 | else |
4421 | # Double quotes because CPP needs to be expanded |
4422 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4423 | do |
4424 | ac_preproc_ok=false |
4425 | for ac_c_preproc_warn_flag in '' yes |
4426 | do |
4427 | # Use a header file that comes with gcc, so configuring glibc |
4428 | # with a fresh cross-compiler works. |
4429 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4430 | # <limits.h> exists even on freestanding compilers. |
4431 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4432 | # not just through cpp. "Syntax error" is here to catch this case. |
4433 | cat >conftest.$ac_ext <<_ACEOF |
4434 | /* confdefs.h. */ |
4435 | _ACEOF |
4436 | cat confdefs.h >>conftest.$ac_ext |
4437 | cat >>conftest.$ac_ext <<_ACEOF |
4438 | /* end confdefs.h. */ |
4439 | #ifdef __STDC__ |
4440 | # include <limits.h> |
4441 | #else |
4442 | # include <assert.h> |
4443 | #endif |
4444 | Syntax error |
4445 | _ACEOF |
4446 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4447 | case "(($ac_try" in |
4448 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4449 | *) ac_try_echo=$ac_try;; |
4450 | esac |
4451 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4452 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4453 | ac_status=$? |
4454 | grep -v '^ *+' conftest.er1 >conftest.err |
4455 | rm -f conftest.er1 |
4456 | cat conftest.err >&5 |
4457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4458 | (exit $ac_status); } >/dev/null && { |
4459 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4460 | test ! -s conftest.err |
4461 | }; then |
4462 | : |
4463 | else |
4464 | echo "$as_me: failed program was:" >&5 |
4465 | sed 's/^/| /' conftest.$ac_ext >&5 |
4466 | |
4467 | # Broken: fails on valid input. |
4468 | continue |
4469 | fi |
4470 | |
4471 | rm -f conftest.err conftest.$ac_ext |
4472 | |
4473 | # OK, works on sane cases. Now check whether nonexistent headers |
4474 | # can be detected and how. |
4475 | cat >conftest.$ac_ext <<_ACEOF |
4476 | /* confdefs.h. */ |
4477 | _ACEOF |
4478 | cat confdefs.h >>conftest.$ac_ext |
4479 | cat >>conftest.$ac_ext <<_ACEOF |
4480 | /* end confdefs.h. */ |
4481 | #include <ac_nonexistent.h> |
4482 | _ACEOF |
4483 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4484 | case "(($ac_try" in |
4485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4486 | *) ac_try_echo=$ac_try;; |
4487 | esac |
4488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4489 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4490 | ac_status=$? |
4491 | grep -v '^ *+' conftest.er1 >conftest.err |
4492 | rm -f conftest.er1 |
4493 | cat conftest.err >&5 |
4494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4495 | (exit $ac_status); } >/dev/null && { |
4496 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4497 | test ! -s conftest.err |
4498 | }; then |
4499 | # Broken: success on invalid input. |
4500 | continue |
4501 | else |
4502 | echo "$as_me: failed program was:" >&5 |
4503 | sed 's/^/| /' conftest.$ac_ext >&5 |
4504 | |
4505 | # Passes both tests. |
4506 | ac_preproc_ok=: |
4507 | break |
4508 | fi |
4509 | |
4510 | rm -f conftest.err conftest.$ac_ext |
4511 | |
4512 | done |
4513 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4514 | rm -f conftest.err conftest.$ac_ext |
4515 | if $ac_preproc_ok; then |
4516 | break |
4517 | fi |
4518 | |
4519 | done |
4520 | ac_cv_prog_CPP=$CPP |
4521 | |
4522 | fi |
4523 | CPP=$ac_cv_prog_CPP |
4524 | else |
4525 | ac_cv_prog_CPP=$CPP |
4526 | fi |
4527 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4528 | echo "${ECHO_T}$CPP" >&6; } |
4529 | ac_preproc_ok=false |
4530 | for ac_c_preproc_warn_flag in '' yes |
4531 | do |
4532 | # Use a header file that comes with gcc, so configuring glibc |
4533 | # with a fresh cross-compiler works. |
4534 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4535 | # <limits.h> exists even on freestanding compilers. |
4536 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4537 | # not just through cpp. "Syntax error" is here to catch this case. |
4538 | cat >conftest.$ac_ext <<_ACEOF |
4539 | /* confdefs.h. */ |
4540 | _ACEOF |
4541 | cat confdefs.h >>conftest.$ac_ext |
4542 | cat >>conftest.$ac_ext <<_ACEOF |
4543 | /* end confdefs.h. */ |
4544 | #ifdef __STDC__ |
4545 | # include <limits.h> |
4546 | #else |
4547 | # include <assert.h> |
4548 | #endif |
4549 | Syntax error |
4550 | _ACEOF |
4551 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4552 | case "(($ac_try" in |
4553 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4554 | *) ac_try_echo=$ac_try;; |
4555 | esac |
4556 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4557 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4558 | ac_status=$? |
4559 | grep -v '^ *+' conftest.er1 >conftest.err |
4560 | rm -f conftest.er1 |
4561 | cat conftest.err >&5 |
4562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4563 | (exit $ac_status); } >/dev/null && { |
4564 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4565 | test ! -s conftest.err |
4566 | }; then |
4567 | : |
4568 | else |
4569 | echo "$as_me: failed program was:" >&5 |
4570 | sed 's/^/| /' conftest.$ac_ext >&5 |
4571 | |
4572 | # Broken: fails on valid input. |
4573 | continue |
4574 | fi |
4575 | |
4576 | rm -f conftest.err conftest.$ac_ext |
4577 | |
4578 | # OK, works on sane cases. Now check whether nonexistent headers |
4579 | # can be detected and how. |
4580 | cat >conftest.$ac_ext <<_ACEOF |
4581 | /* confdefs.h. */ |
4582 | _ACEOF |
4583 | cat confdefs.h >>conftest.$ac_ext |
4584 | cat >>conftest.$ac_ext <<_ACEOF |
4585 | /* end confdefs.h. */ |
4586 | #include <ac_nonexistent.h> |
4587 | _ACEOF |
4588 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4589 | case "(($ac_try" in |
4590 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4591 | *) ac_try_echo=$ac_try;; |
4592 | esac |
4593 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4594 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4595 | ac_status=$? |
4596 | grep -v '^ *+' conftest.er1 >conftest.err |
4597 | rm -f conftest.er1 |
4598 | cat conftest.err >&5 |
4599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4600 | (exit $ac_status); } >/dev/null && { |
4601 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
4602 | test ! -s conftest.err |
4603 | }; then |
4604 | # Broken: success on invalid input. |
4605 | continue |
4606 | else |
4607 | echo "$as_me: failed program was:" >&5 |
4608 | sed 's/^/| /' conftest.$ac_ext >&5 |
4609 | |
4610 | # Passes both tests. |
4611 | ac_preproc_ok=: |
4612 | break |
4613 | fi |
4614 | |
4615 | rm -f conftest.err conftest.$ac_ext |
4616 | |
4617 | done |
4618 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4619 | rm -f conftest.err conftest.$ac_ext |
4620 | if $ac_preproc_ok; then |
4621 | : |
4622 | else |
4623 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4624 | See \`config.log' for more details." >&5 |
4625 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4626 | See \`config.log' for more details." >&2;} |
4627 | { (exit 1); exit 1; }; } |
4628 | fi |
4629 | |
4630 | ac_ext=c |
4631 | ac_cpp='$CPP $CPPFLAGS' |
4632 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4633 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4634 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4635 | |
4636 | |
4637 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
4638 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
4639 | if test "${ac_cv_path_GREP+set}" = set; then |
4640 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4641 | else |
4642 | # Extract the first word of "grep ggrep" to use in msg output |
4643 | if test -z "$GREP"; then |
4644 | set dummy grep ggrep; ac_prog_name=$2 |
4645 | if test "${ac_cv_path_GREP+set}" = set; then |
4646 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4647 | else |
4648 | ac_path_GREP_found=false |
4649 | # Loop through the user's path and test for each of PROGNAME-LIST |
4650 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4651 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4652 | do |
4653 | IFS=$as_save_IFS |
4654 | test -z "$as_dir" && as_dir=. |
4655 | for ac_prog in grep ggrep; do |
4656 | for ac_exec_ext in '' $ac_executable_extensions; do |
4657 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
4658 | { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue |
4659 | # Check for GNU ac_path_GREP and select it if it is found. |
4660 | # Check for GNU $ac_path_GREP |
4661 | case `"$ac_path_GREP" --version 2>&1` in |
4662 | *GNU*) |
4663 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
4664 | *) |
4665 | ac_count=0 |
4666 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
4667 | while : |
4668 | do |
4669 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
4670 | mv "conftest.tmp" "conftest.in" |
4671 | cp "conftest.in" "conftest.nl" |
4672 | echo 'GREP' >> "conftest.nl" |
4673 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4674 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4675 | ac_count=`expr $ac_count + 1` |
4676 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
4677 | # Best one so far, save it but keep looking for a better one |
4678 | ac_cv_path_GREP="$ac_path_GREP" |
4679 | ac_path_GREP_max=$ac_count |
4680 | fi |
4681 | # 10*(2^10) chars as input seems more than enough |
4682 | test $ac_count -gt 10 && break |
4683 | done |
4684 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4685 | esac |
4686 | |
4687 | |
4688 | $ac_path_GREP_found && break 3 |
4689 | done |
4690 | done |
4691 | |
4692 | done |
4693 | IFS=$as_save_IFS |
4694 | |
4695 | |
4696 | fi |
4697 | |
4698 | GREP="$ac_cv_path_GREP" |
4699 | if test -z "$GREP"; then |
4700 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
4701 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
4702 | { (exit 1); exit 1; }; } |
4703 | fi |
4704 | |
4705 | else |
4706 | ac_cv_path_GREP=$GREP |
4707 | fi |
4708 | |
4709 | |
4710 | fi |
4711 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
4712 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
4713 | GREP="$ac_cv_path_GREP" |
4714 | |
4715 | |
4716 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
4717 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
4718 | if test "${ac_cv_path_EGREP+set}" = set; then |
4719 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4720 | else |
4721 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
4722 | then ac_cv_path_EGREP="$GREP -E" |
4723 | else |
4724 | # Extract the first word of "egrep" to use in msg output |
4725 | if test -z "$EGREP"; then |
4726 | set dummy egrep; ac_prog_name=$2 |
4727 | if test "${ac_cv_path_EGREP+set}" = set; then |
4728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4729 | else |
4730 | ac_path_EGREP_found=false |
4731 | # Loop through the user's path and test for each of PROGNAME-LIST |
4732 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
4733 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
4734 | do |
4735 | IFS=$as_save_IFS |
4736 | test -z "$as_dir" && as_dir=. |
4737 | for ac_prog in egrep; do |
4738 | for ac_exec_ext in '' $ac_executable_extensions; do |
4739 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
4740 | { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue |
4741 | # Check for GNU ac_path_EGREP and select it if it is found. |
4742 | # Check for GNU $ac_path_EGREP |
4743 | case `"$ac_path_EGREP" --version 2>&1` in |
4744 | *GNU*) |
4745 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
4746 | *) |
4747 | ac_count=0 |
4748 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
4749 | while : |
4750 | do |
4751 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
4752 | mv "conftest.tmp" "conftest.in" |
4753 | cp "conftest.in" "conftest.nl" |
4754 | echo 'EGREP' >> "conftest.nl" |
4755 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
4756 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
4757 | ac_count=`expr $ac_count + 1` |
4758 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
4759 | # Best one so far, save it but keep looking for a better one |
4760 | ac_cv_path_EGREP="$ac_path_EGREP" |
4761 | ac_path_EGREP_max=$ac_count |
4762 | fi |
4763 | # 10*(2^10) chars as input seems more than enough |
4764 | test $ac_count -gt 10 && break |
4765 | done |
4766 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
4767 | esac |
4768 | |
4769 | |
4770 | $ac_path_EGREP_found && break 3 |
4771 | done |
4772 | done |
4773 | |
4774 | done |
4775 | IFS=$as_save_IFS |
4776 | |
4777 | |
4778 | fi |
4779 | |
4780 | EGREP="$ac_cv_path_EGREP" |
4781 | if test -z "$EGREP"; then |
4782 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
4783 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
4784 | { (exit 1); exit 1; }; } |
4785 | fi |
4786 | |
4787 | else |
4788 | ac_cv_path_EGREP=$EGREP |
4789 | fi |
4790 | |
4791 | |
4792 | fi |
4793 | fi |
4794 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
4795 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
4796 | EGREP="$ac_cv_path_EGREP" |
4797 | |
4798 | |
4799 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4800 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
4801 | if test "${ac_cv_header_stdc+set}" = set; then |
4802 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4803 | else |
4804 | cat >conftest.$ac_ext <<_ACEOF |
4805 | /* confdefs.h. */ |
4806 | _ACEOF |
4807 | cat confdefs.h >>conftest.$ac_ext |
4808 | cat >>conftest.$ac_ext <<_ACEOF |
4809 | /* end confdefs.h. */ |
4810 | #include <stdlib.h> |
4811 | #include <stdarg.h> |
4812 | #include <string.h> |
4813 | #include <float.h> |
4814 | |
4815 | int |
4816 | main () |
4817 | { |
4818 | |
4819 | ; |
4820 | return 0; |
4821 | } |
4822 | _ACEOF |
4823 | rm -f conftest.$ac_objext |
4824 | if { (ac_try="$ac_compile" |
4825 | case "(($ac_try" in |
4826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4827 | *) ac_try_echo=$ac_try;; |
4828 | esac |
4829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4830 | (eval "$ac_compile") 2>conftest.er1 |
4831 | ac_status=$? |
4832 | grep -v '^ *+' conftest.er1 >conftest.err |
4833 | rm -f conftest.er1 |
4834 | cat conftest.err >&5 |
4835 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4836 | (exit $ac_status); } && { |
4837 | test -z "$ac_c_werror_flag" || |
4838 | test ! -s conftest.err |
4839 | } && test -s conftest.$ac_objext; then |
4840 | ac_cv_header_stdc=yes |
4841 | else |
4842 | echo "$as_me: failed program was:" >&5 |
4843 | sed 's/^/| /' conftest.$ac_ext >&5 |
4844 | |
4845 | ac_cv_header_stdc=no |
4846 | fi |
4847 | |
4848 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4849 | |
4850 | if test $ac_cv_header_stdc = yes; then |
4851 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4852 | cat >conftest.$ac_ext <<_ACEOF |
4853 | /* confdefs.h. */ |
4854 | _ACEOF |
4855 | cat confdefs.h >>conftest.$ac_ext |
4856 | cat >>conftest.$ac_ext <<_ACEOF |
4857 | /* end confdefs.h. */ |
4858 | #include <string.h> |
4859 | |
4860 | _ACEOF |
4861 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4862 | $EGREP "memchr" >/dev/null 2>&1; then |
4863 | : |
4864 | else |
4865 | ac_cv_header_stdc=no |
4866 | fi |
4867 | rm -f conftest* |
4868 | |
4869 | fi |
4870 | |
4871 | if test $ac_cv_header_stdc = yes; then |
4872 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4873 | cat >conftest.$ac_ext <<_ACEOF |
4874 | /* confdefs.h. */ |
4875 | _ACEOF |
4876 | cat confdefs.h >>conftest.$ac_ext |
4877 | cat >>conftest.$ac_ext <<_ACEOF |
4878 | /* end confdefs.h. */ |
4879 | #include <stdlib.h> |
4880 | |
4881 | _ACEOF |
4882 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4883 | $EGREP "free" >/dev/null 2>&1; then |
4884 | : |
4885 | else |
4886 | ac_cv_header_stdc=no |
4887 | fi |
4888 | rm -f conftest* |
4889 | |
4890 | fi |
4891 | |
4892 | if test $ac_cv_header_stdc = yes; then |
4893 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4894 | if test "$cross_compiling" = yes; then |
4895 | : |
4896 | else |
4897 | cat >conftest.$ac_ext <<_ACEOF |
4898 | /* confdefs.h. */ |
4899 | _ACEOF |
4900 | cat confdefs.h >>conftest.$ac_ext |
4901 | cat >>conftest.$ac_ext <<_ACEOF |
4902 | /* end confdefs.h. */ |
4903 | #include <ctype.h> |
4904 | #include <stdlib.h> |
4905 | #if ((' ' & 0x0FF) == 0x020) |
4906 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4907 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4908 | #else |
4909 | # define ISLOWER(c) \ |
4910 | (('a' <= (c) && (c) <= 'i') \ |
4911 | || ('j' <= (c) && (c) <= 'r') \ |
4912 | || ('s' <= (c) && (c) <= 'z')) |
4913 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4914 | #endif |
4915 | |
4916 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4917 | int |
4918 | main () |
4919 | { |
4920 | int i; |
4921 | for (i = 0; i < 256; i++) |
4922 | if (XOR (islower (i), ISLOWER (i)) |
4923 | || toupper (i) != TOUPPER (i)) |
4924 | return 2; |
4925 | return 0; |
4926 | } |
4927 | _ACEOF |
4928 | rm -f conftest$ac_exeext |
4929 | if { (ac_try="$ac_link" |
4930 | case "(($ac_try" in |
4931 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4932 | *) ac_try_echo=$ac_try;; |
4933 | esac |
4934 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4935 | (eval "$ac_link") 2>&5 |
4936 | ac_status=$? |
4937 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4938 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4939 | { (case "(($ac_try" in |
4940 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4941 | *) ac_try_echo=$ac_try;; |
4942 | esac |
4943 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4944 | (eval "$ac_try") 2>&5 |
4945 | ac_status=$? |
4946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4947 | (exit $ac_status); }; }; then |
4948 | : |
4949 | else |
4950 | echo "$as_me: program exited with status $ac_status" >&5 |
4951 | echo "$as_me: failed program was:" >&5 |
4952 | sed 's/^/| /' conftest.$ac_ext >&5 |
4953 | |
4954 | ( exit $ac_status ) |
4955 | ac_cv_header_stdc=no |
4956 | fi |
4957 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4958 | fi |
4959 | |
4960 | |
4961 | fi |
4962 | fi |
4963 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4964 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
4965 | if test $ac_cv_header_stdc = yes; then |
4966 | |
4967 | cat >>confdefs.h <<\_ACEOF |
4968 | #define STDC_HEADERS 1 |
4969 | _ACEOF |
4970 | |
4971 | fi |
4972 | |
4973 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4974 | |
4975 | |
4976 | |
4977 | |
4978 | |
4979 | |
4980 | |
4981 | |
4982 | |
4983 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4984 | inttypes.h stdint.h unistd.h |
4985 | do |
4986 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4987 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4988 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
4989 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
4990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4991 | else |
4992 | cat >conftest.$ac_ext <<_ACEOF |
4993 | /* confdefs.h. */ |
4994 | _ACEOF |
4995 | cat confdefs.h >>conftest.$ac_ext |
4996 | cat >>conftest.$ac_ext <<_ACEOF |
4997 | /* end confdefs.h. */ |
4998 | $ac_includes_default |
4999 | |
5000 | #include <$ac_header> |
5001 | _ACEOF |
5002 | rm -f conftest.$ac_objext |
5003 | if { (ac_try="$ac_compile" |
5004 | case "(($ac_try" in |
5005 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5006 | *) ac_try_echo=$ac_try;; |
5007 | esac |
5008 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5009 | (eval "$ac_compile") 2>conftest.er1 |
5010 | ac_status=$? |
5011 | grep -v '^ *+' conftest.er1 >conftest.err |
5012 | rm -f conftest.er1 |
5013 | cat conftest.err >&5 |
5014 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5015 | (exit $ac_status); } && { |
5016 | test -z "$ac_c_werror_flag" || |
5017 | test ! -s conftest.err |
5018 | } && test -s conftest.$ac_objext; then |
5019 | eval "$as_ac_Header=yes" |
5020 | else |
5021 | echo "$as_me: failed program was:" >&5 |
5022 | sed 's/^/| /' conftest.$ac_ext >&5 |
5023 | |
5024 | eval "$as_ac_Header=no" |
5025 | fi |
5026 | |
5027 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5028 | fi |
5029 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5030 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5031 | echo "${ECHO_T}$ac_res" >&6; } |
5032 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5033 | cat >>confdefs.h <<_ACEOF |
5034 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5035 | _ACEOF |
5036 | |
5037 | fi |
5038 | |
5039 | done |
5040 | |
5041 | |
5042 | { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
5043 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; } |
5044 | if test "${ac_cv_c_bigendian+set}" = set; then |
5045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5046 | else |
5047 | # See if sys/param.h defines the BYTE_ORDER macro. |
5048 | cat >conftest.$ac_ext <<_ACEOF |
5049 | /* confdefs.h. */ |
5050 | _ACEOF |
5051 | cat confdefs.h >>conftest.$ac_ext |
5052 | cat >>conftest.$ac_ext <<_ACEOF |
5053 | /* end confdefs.h. */ |
5054 | #include <sys/types.h> |
5055 | #include <sys/param.h> |
5056 | |
5057 | int |
5058 | main () |
5059 | { |
5060 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN && defined LITTLE_ENDIAN \ |
5061 | && BYTE_ORDER && BIG_ENDIAN && LITTLE_ENDIAN) |
5062 | bogus endian macros |
5063 | #endif |
5064 | |
5065 | ; |
5066 | return 0; |
5067 | } |
5068 | _ACEOF |
5069 | rm -f conftest.$ac_objext |
5070 | if { (ac_try="$ac_compile" |
5071 | case "(($ac_try" in |
5072 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5073 | *) ac_try_echo=$ac_try;; |
5074 | esac |
5075 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5076 | (eval "$ac_compile") 2>conftest.er1 |
5077 | ac_status=$? |
5078 | grep -v '^ *+' conftest.er1 >conftest.err |
5079 | rm -f conftest.er1 |
5080 | cat conftest.err >&5 |
5081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5082 | (exit $ac_status); } && { |
5083 | test -z "$ac_c_werror_flag" || |
5084 | test ! -s conftest.err |
5085 | } && test -s conftest.$ac_objext; then |
5086 | # It does; now see whether it defined to BIG_ENDIAN or not. |
5087 | cat >conftest.$ac_ext <<_ACEOF |
5088 | /* confdefs.h. */ |
5089 | _ACEOF |
5090 | cat confdefs.h >>conftest.$ac_ext |
5091 | cat >>conftest.$ac_ext <<_ACEOF |
5092 | /* end confdefs.h. */ |
5093 | #include <sys/types.h> |
5094 | #include <sys/param.h> |
5095 | |
5096 | int |
5097 | main () |
5098 | { |
5099 | #if BYTE_ORDER != BIG_ENDIAN |
5100 | not big endian |
5101 | #endif |
5102 | |
5103 | ; |
5104 | return 0; |
5105 | } |
5106 | _ACEOF |
5107 | rm -f conftest.$ac_objext |
5108 | if { (ac_try="$ac_compile" |
5109 | case "(($ac_try" in |
5110 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5111 | *) ac_try_echo=$ac_try;; |
5112 | esac |
5113 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5114 | (eval "$ac_compile") 2>conftest.er1 |
5115 | ac_status=$? |
5116 | grep -v '^ *+' conftest.er1 >conftest.err |
5117 | rm -f conftest.er1 |
5118 | cat conftest.err >&5 |
5119 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5120 | (exit $ac_status); } && { |
5121 | test -z "$ac_c_werror_flag" || |
5122 | test ! -s conftest.err |
5123 | } && test -s conftest.$ac_objext; then |
5124 | ac_cv_c_bigendian=yes |
5125 | else |
5126 | echo "$as_me: failed program was:" >&5 |
5127 | sed 's/^/| /' conftest.$ac_ext >&5 |
5128 | |
5129 | ac_cv_c_bigendian=no |
5130 | fi |
5131 | |
5132 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5133 | else |
5134 | echo "$as_me: failed program was:" >&5 |
5135 | sed 's/^/| /' conftest.$ac_ext >&5 |
5136 | |
5137 | # It does not; compile a test program. |
5138 | if test "$cross_compiling" = yes; then |
5139 | # try to guess the endianness by grepping values into an object file |
5140 | ac_cv_c_bigendian=unknown |
5141 | cat >conftest.$ac_ext <<_ACEOF |
5142 | /* confdefs.h. */ |
5143 | _ACEOF |
5144 | cat confdefs.h >>conftest.$ac_ext |
5145 | cat >>conftest.$ac_ext <<_ACEOF |
5146 | /* end confdefs.h. */ |
5147 | short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; |
5148 | short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; |
5149 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } |
5150 | short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; |
5151 | short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; |
5152 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } |
5153 | int |
5154 | main () |
5155 | { |
5156 | _ascii (); _ebcdic (); |
5157 | ; |
5158 | return 0; |
5159 | } |
5160 | _ACEOF |
5161 | rm -f conftest.$ac_objext |
5162 | if { (ac_try="$ac_compile" |
5163 | case "(($ac_try" in |
5164 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5165 | *) ac_try_echo=$ac_try;; |
5166 | esac |
5167 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5168 | (eval "$ac_compile") 2>conftest.er1 |
5169 | ac_status=$? |
5170 | grep -v '^ *+' conftest.er1 >conftest.err |
5171 | rm -f conftest.er1 |
5172 | cat conftest.err >&5 |
5173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5174 | (exit $ac_status); } && { |
5175 | test -z "$ac_c_werror_flag" || |
5176 | test ! -s conftest.err |
5177 | } && test -s conftest.$ac_objext; then |
5178 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then |
5179 | ac_cv_c_bigendian=yes |
5180 | fi |
5181 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then |
5182 | if test "$ac_cv_c_bigendian" = unknown; then |
5183 | ac_cv_c_bigendian=no |
5184 | else |
5185 | # finding both strings is unlikely to happen, but who knows? |
5186 | ac_cv_c_bigendian=unknown |
5187 | fi |
5188 | fi |
5189 | else |
5190 | echo "$as_me: failed program was:" >&5 |
5191 | sed 's/^/| /' conftest.$ac_ext >&5 |
5192 | |
5193 | |
5194 | fi |
5195 | |
5196 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5197 | else |
5198 | cat >conftest.$ac_ext <<_ACEOF |
5199 | /* confdefs.h. */ |
5200 | _ACEOF |
5201 | cat confdefs.h >>conftest.$ac_ext |
5202 | cat >>conftest.$ac_ext <<_ACEOF |
5203 | /* end confdefs.h. */ |
5204 | $ac_includes_default |
5205 | int |
5206 | main () |
5207 | { |
5208 | |
5209 | /* Are we little or big endian? From Harbison&Steele. */ |
5210 | union |
5211 | { |
5212 | long int l; |
5213 | char c[sizeof (long int)]; |
5214 | } u; |
5215 | u.l = 1; |
5216 | return u.c[sizeof (long int) - 1] == 1; |
5217 | |
5218 | ; |
5219 | return 0; |
5220 | } |
5221 | _ACEOF |
5222 | rm -f conftest$ac_exeext |
5223 | if { (ac_try="$ac_link" |
5224 | case "(($ac_try" in |
5225 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5226 | *) ac_try_echo=$ac_try;; |
5227 | esac |
5228 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5229 | (eval "$ac_link") 2>&5 |
5230 | ac_status=$? |
5231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5232 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
5233 | { (case "(($ac_try" in |
5234 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5235 | *) ac_try_echo=$ac_try;; |
5236 | esac |
5237 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5238 | (eval "$ac_try") 2>&5 |
5239 | ac_status=$? |
5240 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5241 | (exit $ac_status); }; }; then |
5242 | ac_cv_c_bigendian=no |
5243 | else |
5244 | echo "$as_me: program exited with status $ac_status" >&5 |
5245 | echo "$as_me: failed program was:" >&5 |
5246 | sed 's/^/| /' conftest.$ac_ext >&5 |
5247 | |
5248 | ( exit $ac_status ) |
5249 | ac_cv_c_bigendian=yes |
5250 | fi |
5251 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
5252 | fi |
5253 | |
5254 | |
5255 | fi |
5256 | |
5257 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5258 | fi |
5259 | { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
5260 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6; } |
5261 | case $ac_cv_c_bigendian in |
5262 | yes) |
5263 | |
5264 | cat >>confdefs.h <<\_ACEOF |
5265 | #define Z_BYTE_ORDER 4321 |
5266 | _ACEOF |
5267 | ;; |
5268 | no) |
5269 | |
5270 | cat >>confdefs.h <<\_ACEOF |
5271 | #define Z_BYTE_ORDER 1234 |
5272 | _ACEOF |
5273 | ;; |
5274 | *) |
5275 | { { echo "$as_me:$LINENO: error: unknown endianness |
5276 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 |
5277 | echo "$as_me: error: unknown endianness |
5278 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} |
5279 | { (exit 1); exit 1; }; } ;; |
5280 | esac |
5281 | |
5282 | |
5283 | # Check whether --enable-shared was given. |
5284 | if test "${enable_shared+set}" = set; then |
5285 | enableval=$enable_shared; p=${PACKAGE-default} |
5286 | case $enableval in |
5287 | yes) enable_shared=yes ;; |
5288 | no) enable_shared=no ;; |
5289 | *) |
5290 | enable_shared=no |
5291 | # Look at the argument we got. We use all the common list separators. |
5292 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
5293 | for pkg in $enableval; do |
5294 | IFS="$lt_save_ifs" |
5295 | if test "X$pkg" = "X$p"; then |
5296 | enable_shared=yes |
5297 | fi |
5298 | done |
5299 | IFS="$lt_save_ifs" |
5300 | ;; |
5301 | esac |
5302 | else |
5303 | enable_shared=yes |
5304 | fi |
5305 | |
5306 | |
5307 | # Check whether --enable-static was given. |
5308 | if test "${enable_static+set}" = set; then |
5309 | enableval=$enable_static; p=${PACKAGE-default} |
5310 | case $enableval in |
5311 | yes) enable_static=yes ;; |
5312 | no) enable_static=no ;; |
5313 | *) |
5314 | enable_static=no |
5315 | # Look at the argument we got. We use all the common list separators. |
5316 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
5317 | for pkg in $enableval; do |
5318 | IFS="$lt_save_ifs" |
5319 | if test "X$pkg" = "X$p"; then |
5320 | enable_static=yes |
5321 | fi |
5322 | done |
5323 | IFS="$lt_save_ifs" |
5324 | ;; |
5325 | esac |
5326 | else |
5327 | enable_static=yes |
5328 | fi |
5329 | |
5330 | |
5331 | # Check whether --enable-fast-install was given. |
5332 | if test "${enable_fast_install+set}" = set; then |
5333 | enableval=$enable_fast_install; p=${PACKAGE-default} |
5334 | case $enableval in |
5335 | yes) enable_fast_install=yes ;; |
5336 | no) enable_fast_install=no ;; |
5337 | *) |
5338 | enable_fast_install=no |
5339 | # Look at the argument we got. We use all the common list separators. |
5340 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
5341 | for pkg in $enableval; do |
5342 | IFS="$lt_save_ifs" |
5343 | if test "X$pkg" = "X$p"; then |
5344 | enable_fast_install=yes |
5345 | fi |
5346 | done |
5347 | IFS="$lt_save_ifs" |
5348 | ;; |
5349 | esac |
5350 | else |
5351 | enable_fast_install=yes |
5352 | fi |
5353 | |
5354 | |
5355 | # Make sure we can run config.sub. |
5356 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
5357 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
5358 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
5359 | { (exit 1); exit 1; }; } |
5360 | |
5361 | { echo "$as_me:$LINENO: checking build system type" >&5 |
5362 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
5363 | if test "${ac_cv_build+set}" = set; then |
5364 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5365 | else |
5366 | ac_build_alias=$build_alias |
5367 | test "x$ac_build_alias" = x && |
5368 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
5369 | test "x$ac_build_alias" = x && |
5370 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
5371 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
5372 | { (exit 1); exit 1; }; } |
5373 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
5374 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
5375 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
5376 | { (exit 1); exit 1; }; } |
5377 | |
5378 | fi |
5379 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
5380 | echo "${ECHO_T}$ac_cv_build" >&6; } |
5381 | case $ac_cv_build in |
5382 | *-*-*) ;; |
5383 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
5384 | echo "$as_me: error: invalid value of canonical build" >&2;} |
5385 | { (exit 1); exit 1; }; };; |
5386 | esac |
5387 | build=$ac_cv_build |
5388 | ac_save_IFS=$IFS; IFS='-' |
5389 | set x $ac_cv_build |
5390 | shift |
5391 | build_cpu=$1 |
5392 | build_vendor=$2 |
5393 | shift; shift |
5394 | # Remember, the first character of IFS is used to create $*, |
5395 | # except with old shells: |
5396 | build_os=$* |
5397 | IFS=$ac_save_IFS |
5398 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
5399 | |
5400 | |
5401 | { echo "$as_me:$LINENO: checking host system type" >&5 |
5402 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
5403 | if test "${ac_cv_host+set}" = set; then |
5404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5405 | else |
5406 | if test "x$host_alias" = x; then |
5407 | ac_cv_host=$ac_cv_build |
5408 | else |
5409 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
5410 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
5411 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
5412 | { (exit 1); exit 1; }; } |
5413 | fi |
5414 | |
5415 | fi |
5416 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
5417 | echo "${ECHO_T}$ac_cv_host" >&6; } |
5418 | case $ac_cv_host in |
5419 | *-*-*) ;; |
5420 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
5421 | echo "$as_me: error: invalid value of canonical host" >&2;} |
5422 | { (exit 1); exit 1; }; };; |
5423 | esac |
5424 | host=$ac_cv_host |
5425 | ac_save_IFS=$IFS; IFS='-' |
5426 | set x $ac_cv_host |
5427 | shift |
5428 | host_cpu=$1 |
5429 | host_vendor=$2 |
5430 | shift; shift |
5431 | # Remember, the first character of IFS is used to create $*, |
5432 | # except with old shells: |
5433 | host_os=$* |
5434 | IFS=$ac_save_IFS |
5435 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
5436 | |
5437 | |
5438 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
5439 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
5440 | if test "${lt_cv_path_SED+set}" = set; then |
5441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5442 | else |
5443 | # Loop through the user's path and test for sed and gsed. |
5444 | # Then use that list of sed's as ones to test for truncation. |
5445 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5446 | for as_dir in $PATH |
5447 | do |
5448 | IFS=$as_save_IFS |
5449 | test -z "$as_dir" && as_dir=. |
5450 | for lt_ac_prog in sed gsed; do |
5451 | for ac_exec_ext in '' $ac_executable_extensions; do |
5452 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
5453 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
5454 | fi |
5455 | done |
5456 | done |
5457 | done |
5458 | lt_ac_max=0 |
5459 | lt_ac_count=0 |
5460 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
5461 | # along with /bin/sed that truncates output. |
5462 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
5463 | test ! -f $lt_ac_sed && continue |
5464 | cat /dev/null > conftest.in |
5465 | lt_ac_count=0 |
5466 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
5467 | # Check for GNU sed and select it if it is found. |
5468 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
5469 | lt_cv_path_SED=$lt_ac_sed |
5470 | break |
5471 | fi |
5472 | while true; do |
5473 | cat conftest.in conftest.in >conftest.tmp |
5474 | mv conftest.tmp conftest.in |
5475 | cp conftest.in conftest.nl |
5476 | echo >>conftest.nl |
5477 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
5478 | cmp -s conftest.out conftest.nl || break |
5479 | # 10000 chars as input seems more than enough |
5480 | test $lt_ac_count -gt 10 && break |
5481 | lt_ac_count=`expr $lt_ac_count + 1` |
5482 | if test $lt_ac_count -gt $lt_ac_max; then |
5483 | lt_ac_max=$lt_ac_count |
5484 | lt_cv_path_SED=$lt_ac_sed |
5485 | fi |
5486 | done |
5487 | done |
5488 | |
5489 | fi |
5490 | |
5491 | SED=$lt_cv_path_SED |
5492 | { echo "$as_me:$LINENO: result: $SED" >&5 |
5493 | echo "${ECHO_T}$SED" >&6; } |
5494 | |
5495 | |
5496 | # Check whether --with-gnu-ld was given. |
5497 | if test "${with_gnu_ld+set}" = set; then |
5498 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
5499 | else |
5500 | with_gnu_ld=no |
5501 | fi |
5502 | |
5503 | ac_prog=ld |
5504 | if test "$GCC" = yes; then |
5505 | # Check if gcc -print-prog-name=ld gives a path. |
5506 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
5507 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
5508 | case $host in |
5509 | *-*-mingw*) |
5510 | # gcc leaves a trailing carriage return which upsets mingw |
5511 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
5512 | *) |
5513 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
5514 | esac |
5515 | case $ac_prog in |
5516 | # Accept absolute paths. |
5517 | [\\/]* | ?:[\\/]*) |
5518 | re_direlt='/[^/][^/]*/\.\./' |
5519 | # Canonicalize the pathname of ld |
5520 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
5521 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
5522 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
5523 | done |
5524 | test -z "$LD" && LD="$ac_prog" |
5525 | ;; |
5526 | "") |
5527 | # If it fails, then pretend we aren't using GCC. |
5528 | ac_prog=ld |
5529 | ;; |
5530 | *) |
5531 | # If it is relative, then search for the first ld in PATH. |
5532 | with_gnu_ld=unknown |
5533 | ;; |
5534 | esac |
5535 | elif test "$with_gnu_ld" = yes; then |
5536 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
5537 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
5538 | else |
5539 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
5540 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
5541 | fi |
5542 | if test "${lt_cv_path_LD+set}" = set; then |
5543 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5544 | else |
5545 | if test -z "$LD"; then |
5546 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
5547 | for ac_dir in $PATH; do |
5548 | IFS="$lt_save_ifs" |
5549 | test -z "$ac_dir" && ac_dir=. |
5550 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
5551 | lt_cv_path_LD="$ac_dir/$ac_prog" |
5552 | # Check to see if the program is GNU ld. I'd rather use --version, |
5553 | # but apparently some variants of GNU ld only accept -v. |
5554 | # Break only if it was the GNU/non-GNU ld that we prefer. |
5555 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
5556 | *GNU* | *'with BFD'*) |
5557 | test "$with_gnu_ld" != no && break |
5558 | ;; |
5559 | *) |
5560 | test "$with_gnu_ld" != yes && break |
5561 | ;; |
5562 | esac |
5563 | fi |
5564 | done |
5565 | IFS="$lt_save_ifs" |
5566 | else |
5567 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
5568 | fi |
5569 | fi |
5570 | |
5571 | LD="$lt_cv_path_LD" |
5572 | if test -n "$LD"; then |
5573 | { echo "$as_me:$LINENO: result: $LD" >&5 |
5574 | echo "${ECHO_T}$LD" >&6; } |
5575 | else |
5576 | { echo "$as_me:$LINENO: result: no" >&5 |
5577 | echo "${ECHO_T}no" >&6; } |
5578 | fi |
5579 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
5580 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
5581 | { (exit 1); exit 1; }; } |
5582 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
5583 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
5584 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
5585 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5586 | else |
5587 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
5588 | case `$LD -v 2>&1 </dev/null` in |
5589 | *GNU* | *'with BFD'*) |
5590 | lt_cv_prog_gnu_ld=yes |
5591 | ;; |
5592 | *) |
5593 | lt_cv_prog_gnu_ld=no |
5594 | ;; |
5595 | esac |
5596 | fi |
5597 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
5598 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
5599 | with_gnu_ld=$lt_cv_prog_gnu_ld |
5600 | |
5601 | |
5602 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
5603 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
5604 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
5605 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5606 | else |
5607 | lt_cv_ld_reload_flag='-r' |
5608 | fi |
5609 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
5610 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
5611 | reload_flag=$lt_cv_ld_reload_flag |
5612 | case $reload_flag in |
5613 | "" | " "*) ;; |
5614 | *) reload_flag=" $reload_flag" ;; |
5615 | esac |
5616 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5617 | case $host_os in |
5618 | darwin*) |
5619 | if test "$GCC" = yes; then |
5620 | reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs' |
5621 | else |
5622 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
5623 | fi |
5624 | ;; |
5625 | esac |
5626 | |
5627 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
5628 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
5629 | if test "${lt_cv_path_NM+set}" = set; then |
5630 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5631 | else |
5632 | if test -n "$NM"; then |
5633 | # Let the user override the test. |
5634 | lt_cv_path_NM="$NM" |
5635 | else |
5636 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
5637 | for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do |
5638 | IFS="$lt_save_ifs" |
5639 | test -z "$ac_dir" && ac_dir=. |
5640 | tmp_nm="$ac_dir/${ac_tool_prefix}nm" |
5641 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
5642 | # Check to see if the nm accepts a BSD-compat flag. |
5643 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
5644 | # nm: unknown option "B" ignored |
5645 | # Tru64's nm complains that /dev/null is an invalid object file |
5646 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
5647 | */dev/null* | *'Invalid file or object type'*) |
5648 | lt_cv_path_NM="$tmp_nm -B" |
5649 | break |
5650 | ;; |
5651 | *) |
5652 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
5653 | */dev/null*) |
5654 | lt_cv_path_NM="$tmp_nm -p" |
5655 | break |
5656 | ;; |
5657 | *) |
5658 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
5659 | continue # so that we can try to find one that supports BSD flags |
5660 | ;; |
5661 | esac |
5662 | esac |
5663 | fi |
5664 | done |
5665 | IFS="$lt_save_ifs" |
5666 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
5667 | fi |
5668 | fi |
5669 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
5670 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
5671 | NM="$lt_cv_path_NM" |
5672 | |
5673 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
5674 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
5675 | LN_S=$as_ln_s |
5676 | if test "$LN_S" = "ln -s"; then |
5677 | { echo "$as_me:$LINENO: result: yes" >&5 |
5678 | echo "${ECHO_T}yes" >&6; } |
5679 | else |
5680 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
5681 | echo "${ECHO_T}no, using $LN_S" >&6; } |
5682 | fi |
5683 | |
5684 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
5685 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
5686 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
5687 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5688 | else |
5689 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
5690 | lt_cv_file_magic_test_file= |
5691 | lt_cv_deplibs_check_method='unknown' |
5692 | # Need to set the preceding variable on all platforms that support |
5693 | # interlibrary dependencies. |
5694 | # 'none' -- dependencies not supported. |
5695 | # `unknown' -- same as none, but documents that we really don't know. |
5696 | # 'pass_all' -- all dependencies passed with no checks. |
5697 | # 'test_compile' -- check by making test program. |
5698 | # 'file_magic [[regex]]' -- check by looking for files in library path |
5699 | # which responds to the $file_magic_cmd with a given extended regex. |
5700 | # If you have `file' or equivalent on your system and you're not sure |
5701 | # whether `pass_all' will *always* work, you probably want this one. |
5702 | |
5703 | case $host_os in |
5704 | aix4* | aix5*) |
5705 | lt_cv_deplibs_check_method=pass_all |
5706 | ;; |
5707 | |
5708 | beos*) |
5709 | lt_cv_deplibs_check_method=pass_all |
5710 | ;; |
5711 | |
5712 | bsdi[45]*) |
5713 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
5714 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
5715 | lt_cv_file_magic_test_file=/shlib/libc.so |
5716 | ;; |
5717 | |
5718 | cygwin*) |
5719 | # func_win32_libid is a shell function defined in ltmain.sh |
5720 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
5721 | lt_cv_file_magic_cmd='func_win32_libid' |
5722 | ;; |
5723 | |
5724 | mingw* | pw32*) |
5725 | # Base MSYS/MinGW do not provide the 'file' command needed by |
5726 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
5727 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
5728 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
5729 | ;; |
5730 | |
5731 | darwin* | rhapsody*) |
5732 | lt_cv_deplibs_check_method=pass_all |
5733 | ;; |
5734 | |
5735 | freebsd* | kfreebsd*-gnu | dragonfly*) |
5736 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
5737 | case $host_cpu in |
5738 | i*86 ) |
5739 | # Not sure whether the presence of OpenBSD here was a mistake. |
5740 | # Let's accept both of them until this is cleared up. |
5741 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
5742 | lt_cv_file_magic_cmd=/usr/bin/file |
5743 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
5744 | ;; |
5745 | esac |
5746 | else |
5747 | lt_cv_deplibs_check_method=pass_all |
5748 | fi |
5749 | ;; |
5750 | |
5751 | gnu*) |
5752 | lt_cv_deplibs_check_method=pass_all |
5753 | ;; |
5754 | |
5755 | hpux10.20* | hpux11*) |
5756 | lt_cv_file_magic_cmd=/usr/bin/file |
5757 | case $host_cpu in |
5758 | ia64*) |
5759 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
5760 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
5761 | ;; |
5762 | hppa*64*) |
5763 | 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]' |
5764 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
5765 | ;; |
5766 | *) |
5767 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
5768 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
5769 | ;; |
5770 | esac |
5771 | ;; |
5772 | |
5773 | irix5* | irix6* | nonstopux*) |
5774 | case $LD in |
5775 | *-32|*"-32 ") libmagic=32-bit;; |
5776 | *-n32|*"-n32 ") libmagic=N32;; |
5777 | *-64|*"-64 ") libmagic=64-bit;; |
5778 | *) libmagic=never-match;; |
5779 | esac |
5780 | lt_cv_deplibs_check_method=pass_all |
5781 | ;; |
5782 | |
5783 | # This must be Linux ELF. |
5784 | linux*) |
5785 | lt_cv_deplibs_check_method=pass_all |
5786 | ;; |
5787 | |
5788 | netbsd*) |
5789 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
5790 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
5791 | else |
5792 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
5793 | fi |
5794 | ;; |
5795 | |
5796 | newos6*) |
5797 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
5798 | lt_cv_file_magic_cmd=/usr/bin/file |
5799 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
5800 | ;; |
5801 | |
5802 | nto-qnx*) |
5803 | lt_cv_deplibs_check_method=unknown |
5804 | ;; |
5805 | |
5806 | openbsd*) |
5807 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
5808 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
5809 | else |
5810 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
5811 | fi |
5812 | ;; |
5813 | |
5814 | osf3* | osf4* | osf5*) |
5815 | lt_cv_deplibs_check_method=pass_all |
5816 | ;; |
5817 | |
5818 | sco3.2v5*) |
5819 | lt_cv_deplibs_check_method=pass_all |
5820 | ;; |
5821 | |
5822 | solaris*) |
5823 | lt_cv_deplibs_check_method=pass_all |
5824 | ;; |
5825 | |
5826 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
5827 | case $host_vendor in |
5828 | motorola) |
5829 | 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]' |
5830 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
5831 | ;; |
5832 | ncr) |
5833 | lt_cv_deplibs_check_method=pass_all |
5834 | ;; |
5835 | sequent) |
5836 | lt_cv_file_magic_cmd='/bin/file' |
5837 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
5838 | ;; |
5839 | sni) |
5840 | lt_cv_file_magic_cmd='/bin/file' |
5841 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
5842 | lt_cv_file_magic_test_file=/lib/libc.so |
5843 | ;; |
5844 | siemens) |
5845 | lt_cv_deplibs_check_method=pass_all |
5846 | ;; |
5847 | esac |
5848 | ;; |
5849 | |
5850 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) |
5851 | lt_cv_deplibs_check_method=pass_all |
5852 | ;; |
5853 | esac |
5854 | |
5855 | fi |
5856 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
5857 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
5858 | file_magic_cmd=$lt_cv_file_magic_cmd |
5859 | deplibs_check_method=$lt_cv_deplibs_check_method |
5860 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
5861 | |
5862 | |
5863 | |
5864 | |
5865 | # If no C compiler was specified, use CC. |
5866 | LTCC=${LTCC-"$CC"} |
5867 | |
5868 | # Allow CC to be a program name with arguments. |
5869 | compiler=$CC |
5870 | |
5871 | # Check whether --enable-libtool-lock was given. |
5872 | if test "${enable_libtool_lock+set}" = set; then |
5873 | enableval=$enable_libtool_lock; |
5874 | fi |
5875 | |
5876 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
5877 | |
5878 | # Some flags need to be propagated to the compiler or linker for good |
5879 | # libtool support. |
5880 | case $host in |
5881 | ia64-*-hpux*) |
5882 | # Find out which ABI we are using. |
5883 | echo 'int i;' > conftest.$ac_ext |
5884 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5885 | (eval $ac_compile) 2>&5 |
5886 | ac_status=$? |
5887 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5888 | (exit $ac_status); }; then |
5889 | case `/usr/bin/file conftest.$ac_objext` in |
5890 | *ELF-32*) |
5891 | HPUX_IA64_MODE="32" |
5892 | ;; |
5893 | *ELF-64*) |
5894 | HPUX_IA64_MODE="64" |
5895 | ;; |
5896 | esac |
5897 | fi |
5898 | rm -rf conftest* |
5899 | ;; |
5900 | *-*-irix6*) |
5901 | # Find out which ABI we are using. |
5902 | echo '#line 5902 "configure"' > conftest.$ac_ext |
5903 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5904 | (eval $ac_compile) 2>&5 |
5905 | ac_status=$? |
5906 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5907 | (exit $ac_status); }; then |
5908 | if test "$lt_cv_prog_gnu_ld" = yes; then |
5909 | case `/usr/bin/file conftest.$ac_objext` in |
5910 | *32-bit*) |
5911 | LD="${LD-ld} -melf32bsmip" |
5912 | ;; |
5913 | *N32*) |
5914 | LD="${LD-ld} -melf32bmipn32" |
5915 | ;; |
5916 | *64-bit*) |
5917 | LD="${LD-ld} -melf64bmip" |
5918 | ;; |
5919 | esac |
5920 | else |
5921 | case `/usr/bin/file conftest.$ac_objext` in |
5922 | *32-bit*) |
5923 | LD="${LD-ld} -32" |
5924 | ;; |
5925 | *N32*) |
5926 | LD="${LD-ld} -n32" |
5927 | ;; |
5928 | *64-bit*) |
5929 | LD="${LD-ld} -64" |
5930 | ;; |
5931 | esac |
5932 | fi |
5933 | fi |
5934 | rm -rf conftest* |
5935 | ;; |
5936 | |
5937 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
5938 | # Find out which ABI we are using. |
5939 | echo 'int i;' > conftest.$ac_ext |
5940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
5941 | (eval $ac_compile) 2>&5 |
5942 | ac_status=$? |
5943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5944 | (exit $ac_status); }; then |
5945 | case `/usr/bin/file conftest.o` in |
5946 | *32-bit*) |
5947 | case $host in |
5948 | x86_64-*linux*) |
5949 | LD="${LD-ld} -m elf_i386" |
5950 | ;; |
5951 | ppc64-*linux*|powerpc64-*linux*) |
5952 | LD="${LD-ld} -m elf32ppclinux" |
5953 | ;; |
5954 | s390x-*linux*) |
5955 | LD="${LD-ld} -m elf_s390" |
5956 | ;; |
5957 | sparc64-*linux*) |
5958 | LD="${LD-ld} -m elf32_sparc" |
5959 | ;; |
5960 | esac |
5961 | ;; |
5962 | *64-bit*) |
5963 | case $host in |
5964 | x86_64-*linux*) |
5965 | LD="${LD-ld} -m elf_x86_64" |
5966 | ;; |
5967 | ppc*-*linux*|powerpc*-*linux*) |
5968 | LD="${LD-ld} -m elf64ppc" |
5969 | ;; |
5970 | s390*-*linux*) |
5971 | LD="${LD-ld} -m elf64_s390" |
5972 | ;; |
5973 | sparc*-*linux*) |
5974 | LD="${LD-ld} -m elf64_sparc" |
5975 | ;; |
5976 | esac |
5977 | ;; |
5978 | esac |
5979 | fi |
5980 | rm -rf conftest* |
5981 | ;; |
5982 | |
5983 | *-*-sco3.2v5*) |
5984 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
5985 | SAVE_CFLAGS="$CFLAGS" |
5986 | CFLAGS="$CFLAGS -belf" |
5987 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
5988 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
5989 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
5990 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5991 | else |
5992 | ac_ext=c |
5993 | ac_cpp='$CPP $CPPFLAGS' |
5994 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5995 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5996 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
5997 | |
5998 | cat >conftest.$ac_ext <<_ACEOF |
5999 | /* confdefs.h. */ |
6000 | _ACEOF |
6001 | cat confdefs.h >>conftest.$ac_ext |
6002 | cat >>conftest.$ac_ext <<_ACEOF |
6003 | /* end confdefs.h. */ |
6004 | |
6005 | int |
6006 | main () |
6007 | { |
6008 | |
6009 | ; |
6010 | return 0; |
6011 | } |
6012 | _ACEOF |
6013 | rm -f conftest.$ac_objext conftest$ac_exeext |
6014 | if { (ac_try="$ac_link" |
6015 | case "(($ac_try" in |
6016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6017 | *) ac_try_echo=$ac_try;; |
6018 | esac |
6019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6020 | (eval "$ac_link") 2>conftest.er1 |
6021 | ac_status=$? |
6022 | grep -v '^ *+' conftest.er1 >conftest.err |
6023 | rm -f conftest.er1 |
6024 | cat conftest.err >&5 |
6025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6026 | (exit $ac_status); } && { |
6027 | test -z "$ac_c_werror_flag" || |
6028 | test ! -s conftest.err |
6029 | } && test -s conftest$ac_exeext && |
6030 | $as_test_x conftest$ac_exeext; then |
6031 | lt_cv_cc_needs_belf=yes |
6032 | else |
6033 | echo "$as_me: failed program was:" >&5 |
6034 | sed 's/^/| /' conftest.$ac_ext >&5 |
6035 | |
6036 | lt_cv_cc_needs_belf=no |
6037 | fi |
6038 | |
6039 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
6040 | conftest$ac_exeext conftest.$ac_ext |
6041 | ac_ext=c |
6042 | ac_cpp='$CPP $CPPFLAGS' |
6043 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6044 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6045 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6046 | |
6047 | fi |
6048 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
6049 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
6050 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
6051 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
6052 | CFLAGS="$SAVE_CFLAGS" |
6053 | fi |
6054 | ;; |
6055 | |
6056 | esac |
6057 | |
6058 | need_locks="$enable_libtool_lock" |
6059 | |
6060 | |
6061 | |
6062 | for ac_header in dlfcn.h |
6063 | do |
6064 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6065 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6066 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6067 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
6068 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6069 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6070 | fi |
6071 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6072 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
6073 | echo "${ECHO_T}$ac_res" >&6; } |
6074 | else |
6075 | # Is the header compilable? |
6076 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
6077 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
6078 | cat >conftest.$ac_ext <<_ACEOF |
6079 | /* confdefs.h. */ |
6080 | _ACEOF |
6081 | cat confdefs.h >>conftest.$ac_ext |
6082 | cat >>conftest.$ac_ext <<_ACEOF |
6083 | /* end confdefs.h. */ |
6084 | $ac_includes_default |
6085 | #include <$ac_header> |
6086 | _ACEOF |
6087 | rm -f conftest.$ac_objext |
6088 | if { (ac_try="$ac_compile" |
6089 | case "(($ac_try" in |
6090 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6091 | *) ac_try_echo=$ac_try;; |
6092 | esac |
6093 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6094 | (eval "$ac_compile") 2>conftest.er1 |
6095 | ac_status=$? |
6096 | grep -v '^ *+' conftest.er1 >conftest.err |
6097 | rm -f conftest.er1 |
6098 | cat conftest.err >&5 |
6099 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6100 | (exit $ac_status); } && { |
6101 | test -z "$ac_c_werror_flag" || |
6102 | test ! -s conftest.err |
6103 | } && test -s conftest.$ac_objext; then |
6104 | ac_header_compiler=yes |
6105 | else |
6106 | echo "$as_me: failed program was:" >&5 |
6107 | sed 's/^/| /' conftest.$ac_ext >&5 |
6108 | |
6109 | ac_header_compiler=no |
6110 | fi |
6111 | |
6112 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6113 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
6114 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
6115 | |
6116 | # Is the header present? |
6117 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
6118 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
6119 | cat >conftest.$ac_ext <<_ACEOF |
6120 | /* confdefs.h. */ |
6121 | _ACEOF |
6122 | cat confdefs.h >>conftest.$ac_ext |
6123 | cat >>conftest.$ac_ext <<_ACEOF |
6124 | /* end confdefs.h. */ |
6125 | #include <$ac_header> |
6126 | _ACEOF |
6127 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6128 | case "(($ac_try" in |
6129 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6130 | *) ac_try_echo=$ac_try;; |
6131 | esac |
6132 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6133 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
6134 | ac_status=$? |
6135 | grep -v '^ *+' conftest.er1 >conftest.err |
6136 | rm -f conftest.er1 |
6137 | cat conftest.err >&5 |
6138 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6139 | (exit $ac_status); } >/dev/null && { |
6140 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
6141 | test ! -s conftest.err |
6142 | }; then |
6143 | ac_header_preproc=yes |
6144 | else |
6145 | echo "$as_me: failed program was:" >&5 |
6146 | sed 's/^/| /' conftest.$ac_ext >&5 |
6147 | |
6148 | ac_header_preproc=no |
6149 | fi |
6150 | |
6151 | rm -f conftest.err conftest.$ac_ext |
6152 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
6153 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
6154 | |
6155 | # So? What about this header? |
6156 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
6157 | yes:no: ) |
6158 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
6159 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
6160 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
6161 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
6162 | ac_header_preproc=yes |
6163 | ;; |
6164 | no:yes:* ) |
6165 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
6166 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
6167 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
6168 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
6169 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
6170 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
6171 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
6172 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
6173 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
6174 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
6175 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
6176 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
6177 | |
6178 | ;; |
6179 | esac |
6180 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
6181 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
6182 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
6183 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6184 | else |
6185 | eval "$as_ac_Header=\$ac_header_preproc" |
6186 | fi |
6187 | ac_res=`eval echo '${'$as_ac_Header'}'` |
6188 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
6189 | echo "${ECHO_T}$ac_res" >&6; } |
6190 | |
6191 | fi |
6192 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
6193 | cat >>confdefs.h <<_ACEOF |
6194 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
6195 | _ACEOF |
6196 | |
6197 | fi |
6198 | |
6199 | done |
6200 | |
6201 | |
6202 | |
6203 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
6204 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
6205 | (test "X$CXX" != "Xg++"))) ; then |
6206 | ac_ext=cpp |
6207 | ac_cpp='$CXXCPP $CPPFLAGS' |
6208 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6209 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6210 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
6211 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
6212 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
6213 | if test -z "$CXXCPP"; then |
6214 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
6215 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6216 | else |
6217 | # Double quotes because CXXCPP needs to be expanded |
6218 | for CXXCPP in "$CXX -E" "/lib/cpp" |
6219 | do |
6220 | ac_preproc_ok=false |
6221 | for ac_cxx_preproc_warn_flag in '' yes |
6222 | do |
6223 | # Use a header file that comes with gcc, so configuring glibc |
6224 | # with a fresh cross-compiler works. |
6225 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6226 | # <limits.h> exists even on freestanding compilers. |
6227 | # On the NeXT, cc -E runs the code through the compiler's parser, |
6228 | # not just through cpp. "Syntax error" is here to catch this case. |
6229 | cat >conftest.$ac_ext <<_ACEOF |
6230 | /* confdefs.h. */ |
6231 | _ACEOF |
6232 | cat confdefs.h >>conftest.$ac_ext |
6233 | cat >>conftest.$ac_ext <<_ACEOF |
6234 | /* end confdefs.h. */ |
6235 | #ifdef __STDC__ |
6236 | # include <limits.h> |
6237 | #else |
6238 | # include <assert.h> |
6239 | #endif |
6240 | Syntax error |
6241 | _ACEOF |
6242 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6243 | case "(($ac_try" in |
6244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6245 | *) ac_try_echo=$ac_try;; |
6246 | esac |
6247 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6248 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
6249 | ac_status=$? |
6250 | grep -v '^ *+' conftest.er1 >conftest.err |
6251 | rm -f conftest.er1 |
6252 | cat conftest.err >&5 |
6253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6254 | (exit $ac_status); } >/dev/null && { |
6255 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
6256 | test ! -s conftest.err |
6257 | }; then |
6258 | : |
6259 | else |
6260 | echo "$as_me: failed program was:" >&5 |
6261 | sed 's/^/| /' conftest.$ac_ext >&5 |
6262 | |
6263 | # Broken: fails on valid input. |
6264 | continue |
6265 | fi |
6266 | |
6267 | rm -f conftest.err conftest.$ac_ext |
6268 | |
6269 | # OK, works on sane cases. Now check whether nonexistent headers |
6270 | # can be detected and how. |
6271 | cat >conftest.$ac_ext <<_ACEOF |
6272 | /* confdefs.h. */ |
6273 | _ACEOF |
6274 | cat confdefs.h >>conftest.$ac_ext |
6275 | cat >>conftest.$ac_ext <<_ACEOF |
6276 | /* end confdefs.h. */ |
6277 | #include <ac_nonexistent.h> |
6278 | _ACEOF |
6279 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6280 | case "(($ac_try" in |
6281 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6282 | *) ac_try_echo=$ac_try;; |
6283 | esac |
6284 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6285 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
6286 | ac_status=$? |
6287 | grep -v '^ *+' conftest.er1 >conftest.err |
6288 | rm -f conftest.er1 |
6289 | cat conftest.err >&5 |
6290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6291 | (exit $ac_status); } >/dev/null && { |
6292 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
6293 | test ! -s conftest.err |
6294 | }; then |
6295 | # Broken: success on invalid input. |
6296 | continue |
6297 | else |
6298 | echo "$as_me: failed program was:" >&5 |
6299 | sed 's/^/| /' conftest.$ac_ext >&5 |
6300 | |
6301 | # Passes both tests. |
6302 | ac_preproc_ok=: |
6303 | break |
6304 | fi |
6305 | |
6306 | rm -f conftest.err conftest.$ac_ext |
6307 | |
6308 | done |
6309 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6310 | rm -f conftest.err conftest.$ac_ext |
6311 | if $ac_preproc_ok; then |
6312 | break |
6313 | fi |
6314 | |
6315 | done |
6316 | ac_cv_prog_CXXCPP=$CXXCPP |
6317 | |
6318 | fi |
6319 | CXXCPP=$ac_cv_prog_CXXCPP |
6320 | else |
6321 | ac_cv_prog_CXXCPP=$CXXCPP |
6322 | fi |
6323 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
6324 | echo "${ECHO_T}$CXXCPP" >&6; } |
6325 | ac_preproc_ok=false |
6326 | for ac_cxx_preproc_warn_flag in '' yes |
6327 | do |
6328 | # Use a header file that comes with gcc, so configuring glibc |
6329 | # with a fresh cross-compiler works. |
6330 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
6331 | # <limits.h> exists even on freestanding compilers. |
6332 | # On the NeXT, cc -E runs the code through the compiler's parser, |
6333 | # not just through cpp. "Syntax error" is here to catch this case. |
6334 | cat >conftest.$ac_ext <<_ACEOF |
6335 | /* confdefs.h. */ |
6336 | _ACEOF |
6337 | cat confdefs.h >>conftest.$ac_ext |
6338 | cat >>conftest.$ac_ext <<_ACEOF |
6339 | /* end confdefs.h. */ |
6340 | #ifdef __STDC__ |
6341 | # include <limits.h> |
6342 | #else |
6343 | # include <assert.h> |
6344 | #endif |
6345 | Syntax error |
6346 | _ACEOF |
6347 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6348 | case "(($ac_try" in |
6349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6350 | *) ac_try_echo=$ac_try;; |
6351 | esac |
6352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6353 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
6354 | ac_status=$? |
6355 | grep -v '^ *+' conftest.er1 >conftest.err |
6356 | rm -f conftest.er1 |
6357 | cat conftest.err >&5 |
6358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6359 | (exit $ac_status); } >/dev/null && { |
6360 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
6361 | test ! -s conftest.err |
6362 | }; then |
6363 | : |
6364 | else |
6365 | echo "$as_me: failed program was:" >&5 |
6366 | sed 's/^/| /' conftest.$ac_ext >&5 |
6367 | |
6368 | # Broken: fails on valid input. |
6369 | continue |
6370 | fi |
6371 | |
6372 | rm -f conftest.err conftest.$ac_ext |
6373 | |
6374 | # OK, works on sane cases. Now check whether nonexistent headers |
6375 | # can be detected and how. |
6376 | cat >conftest.$ac_ext <<_ACEOF |
6377 | /* confdefs.h. */ |
6378 | _ACEOF |
6379 | cat confdefs.h >>conftest.$ac_ext |
6380 | cat >>conftest.$ac_ext <<_ACEOF |
6381 | /* end confdefs.h. */ |
6382 | #include <ac_nonexistent.h> |
6383 | _ACEOF |
6384 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
6385 | case "(($ac_try" in |
6386 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6387 | *) ac_try_echo=$ac_try;; |
6388 | esac |
6389 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6390 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
6391 | ac_status=$? |
6392 | grep -v '^ *+' conftest.er1 >conftest.err |
6393 | rm -f conftest.er1 |
6394 | cat conftest.err >&5 |
6395 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6396 | (exit $ac_status); } >/dev/null && { |
6397 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || |
6398 | test ! -s conftest.err |
6399 | }; then |
6400 | # Broken: success on invalid input. |
6401 | continue |
6402 | else |
6403 | echo "$as_me: failed program was:" >&5 |
6404 | sed 's/^/| /' conftest.$ac_ext >&5 |
6405 | |
6406 | # Passes both tests. |
6407 | ac_preproc_ok=: |
6408 | break |
6409 | fi |
6410 | |
6411 | rm -f conftest.err conftest.$ac_ext |
6412 | |
6413 | done |
6414 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6415 | rm -f conftest.err conftest.$ac_ext |
6416 | if $ac_preproc_ok; then |
6417 | : |
6418 | else |
6419 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6420 | See \`config.log' for more details." >&5 |
6421 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6422 | See \`config.log' for more details." >&2;} |
6423 | { (exit 1); exit 1; }; } |
6424 | fi |
6425 | |
6426 | ac_ext=cpp |
6427 | ac_cpp='$CXXCPP $CPPFLAGS' |
6428 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6429 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6430 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
6431 | |
6432 | fi |
6433 | |
6434 | |
6435 | ac_ext=f |
6436 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
6437 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6438 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
6439 | if test -n "$ac_tool_prefix"; then |
6440 | 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 |
6441 | do |
6442 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
6443 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
6444 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6445 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6446 | if test "${ac_cv_prog_F77+set}" = set; then |
6447 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6448 | else |
6449 | if test -n "$F77"; then |
6450 | ac_cv_prog_F77="$F77" # Let the user override the test. |
6451 | else |
6452 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6453 | for as_dir in $PATH |
6454 | do |
6455 | IFS=$as_save_IFS |
6456 | test -z "$as_dir" && as_dir=. |
6457 | for ac_exec_ext in '' $ac_executable_extensions; do |
6458 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6459 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
6460 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6461 | break 2 |
6462 | fi |
6463 | done |
6464 | done |
6465 | IFS=$as_save_IFS |
6466 | |
6467 | fi |
6468 | fi |
6469 | F77=$ac_cv_prog_F77 |
6470 | if test -n "$F77"; then |
6471 | { echo "$as_me:$LINENO: result: $F77" >&5 |
6472 | echo "${ECHO_T}$F77" >&6; } |
6473 | else |
6474 | { echo "$as_me:$LINENO: result: no" >&5 |
6475 | echo "${ECHO_T}no" >&6; } |
6476 | fi |
6477 | |
6478 | |
6479 | test -n "$F77" && break |
6480 | done |
6481 | fi |
6482 | if test -z "$F77"; then |
6483 | ac_ct_F77=$F77 |
6484 | 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 |
6485 | do |
6486 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
6487 | set dummy $ac_prog; ac_word=$2 |
6488 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6489 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6490 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
6491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6492 | else |
6493 | if test -n "$ac_ct_F77"; then |
6494 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
6495 | else |
6496 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6497 | for as_dir in $PATH |
6498 | do |
6499 | IFS=$as_save_IFS |
6500 | test -z "$as_dir" && as_dir=. |
6501 | for ac_exec_ext in '' $ac_executable_extensions; do |
6502 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
6503 | ac_cv_prog_ac_ct_F77="$ac_prog" |
6504 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6505 | break 2 |
6506 | fi |
6507 | done |
6508 | done |
6509 | IFS=$as_save_IFS |
6510 | |
6511 | fi |
6512 | fi |
6513 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
6514 | if test -n "$ac_ct_F77"; then |
6515 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
6516 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
6517 | else |
6518 | { echo "$as_me:$LINENO: result: no" >&5 |
6519 | echo "${ECHO_T}no" >&6; } |
6520 | fi |
6521 | |
6522 | |
6523 | test -n "$ac_ct_F77" && break |
6524 | done |
6525 | |
6526 | if test "x$ac_ct_F77" = x; then |
6527 | F77="" |
6528 | else |
6529 | case $cross_compiling:$ac_tool_warned in |
6530 | yes:) |
6531 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6532 | whose name does not start with the host triplet. If you think this |
6533 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6534 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6535 | whose name does not start with the host triplet. If you think this |
6536 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6537 | ac_tool_warned=yes ;; |
6538 | esac |
6539 | F77=$ac_ct_F77 |
6540 | fi |
6541 | fi |
6542 | |
6543 | |
6544 | # Provide some information about the compiler. |
6545 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
6546 | ac_compiler=`set X $ac_compile; echo $2` |
6547 | { (ac_try="$ac_compiler --version >&5" |
6548 | case "(($ac_try" in |
6549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6550 | *) ac_try_echo=$ac_try;; |
6551 | esac |
6552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6553 | (eval "$ac_compiler --version >&5") 2>&5 |
6554 | ac_status=$? |
6555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6556 | (exit $ac_status); } |
6557 | { (ac_try="$ac_compiler -v >&5" |
6558 | case "(($ac_try" in |
6559 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6560 | *) ac_try_echo=$ac_try;; |
6561 | esac |
6562 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6563 | (eval "$ac_compiler -v >&5") 2>&5 |
6564 | ac_status=$? |
6565 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6566 | (exit $ac_status); } |
6567 | { (ac_try="$ac_compiler -V >&5" |
6568 | case "(($ac_try" in |
6569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6570 | *) ac_try_echo=$ac_try;; |
6571 | esac |
6572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6573 | (eval "$ac_compiler -V >&5") 2>&5 |
6574 | ac_status=$? |
6575 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6576 | (exit $ac_status); } |
6577 | rm -f a.out |
6578 | |
6579 | # If we don't use `.F' as extension, the preprocessor is not run on the |
6580 | # input file. (Note that this only needs to work for GNU compilers.) |
6581 | ac_save_ext=$ac_ext |
6582 | ac_ext=F |
6583 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
6584 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
6585 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
6586 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6587 | else |
6588 | cat >conftest.$ac_ext <<_ACEOF |
6589 | program main |
6590 | #ifndef __GNUC__ |
6591 | choke me |
6592 | #endif |
6593 | |
6594 | end |
6595 | _ACEOF |
6596 | rm -f conftest.$ac_objext |
6597 | if { (ac_try="$ac_compile" |
6598 | case "(($ac_try" in |
6599 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6600 | *) ac_try_echo=$ac_try;; |
6601 | esac |
6602 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6603 | (eval "$ac_compile") 2>conftest.er1 |
6604 | ac_status=$? |
6605 | grep -v '^ *+' conftest.er1 >conftest.err |
6606 | rm -f conftest.er1 |
6607 | cat conftest.err >&5 |
6608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6609 | (exit $ac_status); } && { |
6610 | test -z "$ac_f77_werror_flag" || |
6611 | test ! -s conftest.err |
6612 | } && test -s conftest.$ac_objext; then |
6613 | ac_compiler_gnu=yes |
6614 | else |
6615 | echo "$as_me: failed program was:" >&5 |
6616 | sed 's/^/| /' conftest.$ac_ext >&5 |
6617 | |
6618 | ac_compiler_gnu=no |
6619 | fi |
6620 | |
6621 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6622 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
6623 | |
6624 | fi |
6625 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
6626 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
6627 | ac_ext=$ac_save_ext |
6628 | ac_test_FFLAGS=${FFLAGS+set} |
6629 | ac_save_FFLAGS=$FFLAGS |
6630 | FFLAGS= |
6631 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
6632 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
6633 | if test "${ac_cv_prog_f77_g+set}" = set; then |
6634 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6635 | else |
6636 | FFLAGS=-g |
6637 | cat >conftest.$ac_ext <<_ACEOF |
6638 | program main |
6639 | |
6640 | end |
6641 | _ACEOF |
6642 | rm -f conftest.$ac_objext |
6643 | if { (ac_try="$ac_compile" |
6644 | case "(($ac_try" in |
6645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6646 | *) ac_try_echo=$ac_try;; |
6647 | esac |
6648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6649 | (eval "$ac_compile") 2>conftest.er1 |
6650 | ac_status=$? |
6651 | grep -v '^ *+' conftest.er1 >conftest.err |
6652 | rm -f conftest.er1 |
6653 | cat conftest.err >&5 |
6654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6655 | (exit $ac_status); } && { |
6656 | test -z "$ac_f77_werror_flag" || |
6657 | test ! -s conftest.err |
6658 | } && test -s conftest.$ac_objext; then |
6659 | ac_cv_prog_f77_g=yes |
6660 | else |
6661 | echo "$as_me: failed program was:" >&5 |
6662 | sed 's/^/| /' conftest.$ac_ext >&5 |
6663 | |
6664 | ac_cv_prog_f77_g=no |
6665 | fi |
6666 | |
6667 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6668 | |
6669 | fi |
6670 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
6671 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
6672 | if test "$ac_test_FFLAGS" = set; then |
6673 | FFLAGS=$ac_save_FFLAGS |
6674 | elif test $ac_cv_prog_f77_g = yes; then |
6675 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6676 | FFLAGS="-g -O2" |
6677 | else |
6678 | FFLAGS="-g" |
6679 | fi |
6680 | else |
6681 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6682 | FFLAGS="-O2" |
6683 | else |
6684 | FFLAGS= |
6685 | fi |
6686 | fi |
6687 | |
6688 | G77=`test $ac_compiler_gnu = yes && echo yes` |
6689 | ac_ext=c |
6690 | ac_cpp='$CPP $CPPFLAGS' |
6691 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6692 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6693 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6694 | |
6695 | |
6696 | |
6697 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
6698 | |
6699 | # find the maximum length of command line arguments |
6700 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
6701 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
6702 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
6703 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6704 | else |
6705 | i=0 |
6706 | teststring="ABCD" |
6707 | |
6708 | case $build_os in |
6709 | msdosdjgpp*) |
6710 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
6711 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
6712 | # during glob expansion). Even if it were fixed, the result of this |
6713 | # check would be larger than it should be. |
6714 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
6715 | ;; |
6716 | |
6717 | gnu*) |
6718 | # Under GNU Hurd, this test is not required because there is |
6719 | # no limit to the length of command line arguments. |
6720 | # Libtool will interpret -1 as no limit whatsoever |
6721 | lt_cv_sys_max_cmd_len=-1; |
6722 | ;; |
6723 | |
6724 | cygwin* | mingw*) |
6725 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6726 | # about 5 minutes as the teststring grows exponentially. |
6727 | # Worse, since 9x/ME are not pre-emptively multitasking, |
6728 | # you end up with a "frozen" computer, even though with patience |
6729 | # the test eventually succeeds (with a max line length of 256k). |
6730 | # Instead, let's just punt: use the minimum linelength reported by |
6731 | # all of the supported platforms: 8192 (on NT/2K/XP). |
6732 | lt_cv_sys_max_cmd_len=8192; |
6733 | ;; |
6734 | |
6735 | amigaos*) |
6736 | # On AmigaOS with pdksh, this test takes hours, literally. |
6737 | # So we just punt and use a minimum line length of 8192. |
6738 | lt_cv_sys_max_cmd_len=8192; |
6739 | ;; |
6740 | |
6741 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6742 | # This has been around since 386BSD, at least. Likely further. |
6743 | if test -x /sbin/sysctl; then |
6744 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
6745 | elif test -x /usr/sbin/sysctl; then |
6746 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
6747 | else |
6748 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
6749 | fi |
6750 | # And add a safety zone |
6751 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6752 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6753 | ;; |
6754 | osf*) |
6755 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
6756 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
6757 | # nice to cause kernel panics so lets avoid the loop below. |
6758 | # First set a reasonable default. |
6759 | lt_cv_sys_max_cmd_len=16384 |
6760 | # |
6761 | if test -x /sbin/sysconfig; then |
6762 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
6763 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
6764 | esac |
6765 | fi |
6766 | ;; |
6767 | *) |
6768 | # If test is not a shell built-in, we'll probably end up computing a |
6769 | # maximum length that is only half of the actual maximum length, but |
6770 | # we can't tell. |
6771 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
6772 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
6773 | = "XX$teststring") >/dev/null 2>&1 && |
6774 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
6775 | lt_cv_sys_max_cmd_len=$new_result && |
6776 | test $i != 17 # 1/2 MB should be enough |
6777 | do |
6778 | i=`expr $i + 1` |
6779 | teststring=$teststring$teststring |
6780 | done |
6781 | teststring= |
6782 | # Add a significant safety factor because C++ compilers can tack on massive |
6783 | # amounts of additional arguments before passing them to the linker. |
6784 | # It appears as though 1/2 is a usable value. |
6785 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6786 | ;; |
6787 | esac |
6788 | |
6789 | fi |
6790 | |
6791 | if test -n $lt_cv_sys_max_cmd_len ; then |
6792 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
6793 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
6794 | else |
6795 | { echo "$as_me:$LINENO: result: none" >&5 |
6796 | echo "${ECHO_T}none" >&6; } |
6797 | fi |
6798 | |
6799 | |
6800 | |
6801 | |
6802 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
6803 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
6804 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
6805 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
6806 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6807 | else |
6808 | |
6809 | # These are sane defaults that work on at least a few old systems. |
6810 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6811 | |
6812 | # Character class describing NM global symbol codes. |
6813 | symcode='[BCDEGRST]' |
6814 | |
6815 | # Regexp to match symbols that can be accessed directly from C. |
6816 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6817 | |
6818 | # Transform an extracted symbol line into a proper C declaration |
6819 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
6820 | |
6821 | # Transform an extracted symbol line into symbol name and symbol address |
6822 | 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'" |
6823 | |
6824 | # Define system-specific variables. |
6825 | case $host_os in |
6826 | aix*) |
6827 | symcode='[BCDT]' |
6828 | ;; |
6829 | cygwin* | mingw* | pw32*) |
6830 | symcode='[ABCDGISTW]' |
6831 | ;; |
6832 | hpux*) # Its linker distinguishes data from code symbols |
6833 | if test "$host_cpu" = ia64; then |
6834 | symcode='[ABCDEGRST]' |
6835 | fi |
6836 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6837 | 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'" |
6838 | ;; |
6839 | linux*) |
6840 | if test "$host_cpu" = ia64; then |
6841 | symcode='[ABCDGIRSTW]' |
6842 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6843 | 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'" |
6844 | fi |
6845 | ;; |
6846 | irix* | nonstopux*) |
6847 | symcode='[BCDEGRST]' |
6848 | ;; |
6849 | osf*) |
6850 | symcode='[BCDEGQRST]' |
6851 | ;; |
6852 | solaris* | sysv5*) |
6853 | symcode='[BDRT]' |
6854 | ;; |
6855 | sysv4) |
6856 | symcode='[DFNSTU]' |
6857 | ;; |
6858 | esac |
6859 | |
6860 | # Handle CRLF in mingw tool chain |
6861 | opt_cr= |
6862 | case $build_os in |
6863 | mingw*) |
6864 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6865 | ;; |
6866 | esac |
6867 | |
6868 | # If we're using GNU nm, then use its standard symbol codes. |
6869 | case `$NM -V 2>&1` in |
6870 | *GNU* | *'with BFD'*) |
6871 | symcode='[ABCDGIRSTW]' ;; |
6872 | esac |
6873 | |
6874 | # Try without a prefix undercore, then with it. |
6875 | for ac_symprfx in "" "_"; do |
6876 | |
6877 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6878 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
6879 | |
6880 | # Write the raw and C identifiers. |
6881 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6882 | |
6883 | # Check to see that the pipe works correctly. |
6884 | pipe_works=no |
6885 | |
6886 | rm -f conftest* |
6887 | cat > conftest.$ac_ext <<EOF |
6888 | #ifdef __cplusplus |
6889 | extern "C" { |
6890 | #endif |
6891 | char nm_test_var; |
6892 | void nm_test_func(){} |
6893 | #ifdef __cplusplus |
6894 | } |
6895 | #endif |
6896 | int main(){nm_test_var='a';nm_test_func();return(0);} |
6897 | EOF |
6898 | |
6899 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6900 | (eval $ac_compile) 2>&5 |
6901 | ac_status=$? |
6902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6903 | (exit $ac_status); }; then |
6904 | # Now try to grab the symbols. |
6905 | nlist=conftest.nm |
6906 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
6907 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
6908 | ac_status=$? |
6909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6910 | (exit $ac_status); } && test -s "$nlist"; then |
6911 | # Try sorting and uniquifying the output. |
6912 | if sort "$nlist" | uniq > "$nlist"T; then |
6913 | mv -f "$nlist"T "$nlist" |
6914 | else |
6915 | rm -f "$nlist"T |
6916 | fi |
6917 | |
6918 | # Make sure that we snagged all the symbols we need. |
6919 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
6920 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
6921 | cat <<EOF > conftest.$ac_ext |
6922 | #ifdef __cplusplus |
6923 | extern "C" { |
6924 | #endif |
6925 | |
6926 | EOF |
6927 | # Now generate the symbol file. |
6928 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
6929 | |
6930 | cat <<EOF >> conftest.$ac_ext |
6931 | #if defined (__STDC__) && __STDC__ |
6932 | # define lt_ptr_t void * |
6933 | #else |
6934 | # define lt_ptr_t char * |
6935 | # define const |
6936 | #endif |
6937 | |
6938 | /* The mapping between symbol names and symbols. */ |
6939 | const struct { |
6940 | const char *name; |
6941 | lt_ptr_t address; |
6942 | } |
6943 | lt_preloaded_symbols[] = |
6944 | { |
6945 | EOF |
6946 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
6947 | cat <<\EOF >> conftest.$ac_ext |
6948 | {0, (lt_ptr_t) 0} |
6949 | }; |
6950 | |
6951 | #ifdef __cplusplus |
6952 | } |
6953 | #endif |
6954 | EOF |
6955 | # Now try linking the two files. |
6956 | mv conftest.$ac_objext conftstm.$ac_objext |
6957 | lt_save_LIBS="$LIBS" |
6958 | lt_save_CFLAGS="$CFLAGS" |
6959 | LIBS="conftstm.$ac_objext" |
6960 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6961 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6962 | (eval $ac_link) 2>&5 |
6963 | ac_status=$? |
6964 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6965 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6966 | pipe_works=yes |
6967 | fi |
6968 | LIBS="$lt_save_LIBS" |
6969 | CFLAGS="$lt_save_CFLAGS" |
6970 | else |
6971 | echo "cannot find nm_test_func in $nlist" >&5 |
6972 | fi |
6973 | else |
6974 | echo "cannot find nm_test_var in $nlist" >&5 |
6975 | fi |
6976 | else |
6977 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6978 | fi |
6979 | else |
6980 | echo "$progname: failed program was:" >&5 |
6981 | cat conftest.$ac_ext >&5 |
6982 | fi |
6983 | rm -f conftest* conftst* |
6984 | |
6985 | # Do not use the global_symbol_pipe unless it works. |
6986 | if test "$pipe_works" = yes; then |
6987 | break |
6988 | else |
6989 | lt_cv_sys_global_symbol_pipe= |
6990 | fi |
6991 | done |
6992 | |
6993 | fi |
6994 | |
6995 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6996 | lt_cv_sys_global_symbol_to_cdecl= |
6997 | fi |
6998 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
6999 | { echo "$as_me:$LINENO: result: failed" >&5 |
7000 | echo "${ECHO_T}failed" >&6; } |
7001 | else |
7002 | { echo "$as_me:$LINENO: result: ok" >&5 |
7003 | echo "${ECHO_T}ok" >&6; } |
7004 | fi |
7005 | |
7006 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
7007 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
7008 | if test "${lt_cv_objdir+set}" = set; then |
7009 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7010 | else |
7011 | rm -f .libs 2>/dev/null |
7012 | mkdir .libs 2>/dev/null |
7013 | if test -d .libs; then |
7014 | lt_cv_objdir=.libs |
7015 | else |
7016 | # MS-DOS does not allow filenames that begin with a dot. |
7017 | lt_cv_objdir=_libs |
7018 | fi |
7019 | rmdir .libs 2>/dev/null |
7020 | fi |
7021 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
7022 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
7023 | objdir=$lt_cv_objdir |
7024 | |
7025 | |
7026 | |
7027 | |
7028 | |
7029 | case $host_os in |
7030 | aix3*) |
7031 | # AIX sometimes has problems with the GCC collect2 program. For some |
7032 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
7033 | # vanish in a puff of smoke. |
7034 | if test "X${COLLECT_NAMES+set}" != Xset; then |
7035 | COLLECT_NAMES= |
7036 | export COLLECT_NAMES |
7037 | fi |
7038 | ;; |
7039 | esac |
7040 | |
7041 | # Sed substitution that helps us do robust quoting. It backslashifies |
7042 | # metacharacters that are still active within double-quoted strings. |
7043 | Xsed='sed -e 1s/^X//' |
7044 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
7045 | |
7046 | # Same as above, but do not quote variable references. |
7047 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
7048 | |
7049 | # Sed substitution to delay expansion of an escaped shell variable in a |
7050 | # double_quote_subst'ed string. |
7051 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
7052 | |
7053 | # Sed substitution to avoid accidental globbing in evaled expressions |
7054 | no_glob_subst='s/\*/\\\*/g' |
7055 | |
7056 | # Constants: |
7057 | rm="rm -f" |
7058 | |
7059 | # Global variables: |
7060 | default_ofile=libtool |
7061 | can_build_shared=yes |
7062 | |
7063 | # All known linkers require a `.a' archive for static linking (except MSVC, |
7064 | # which needs '.lib'). |
7065 | libext=a |
7066 | ltmain="$ac_aux_dir/ltmain.sh" |
7067 | ofile="$default_ofile" |
7068 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
7069 | |
7070 | if test -n "$ac_tool_prefix"; then |
7071 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
7072 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
7073 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7074 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
7075 | if test "${ac_cv_prog_AR+set}" = set; then |
7076 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7077 | else |
7078 | if test -n "$AR"; then |
7079 | ac_cv_prog_AR="$AR" # Let the user override the test. |
7080 | else |
7081 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7082 | for as_dir in $PATH |
7083 | do |
7084 | IFS=$as_save_IFS |
7085 | test -z "$as_dir" && as_dir=. |
7086 | for ac_exec_ext in '' $ac_executable_extensions; do |
7087 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7088 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
7089 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7090 | break 2 |
7091 | fi |
7092 | done |
7093 | done |
7094 | IFS=$as_save_IFS |
7095 | |
7096 | fi |
7097 | fi |
7098 | AR=$ac_cv_prog_AR |
7099 | if test -n "$AR"; then |
7100 | { echo "$as_me:$LINENO: result: $AR" >&5 |
7101 | echo "${ECHO_T}$AR" >&6; } |
7102 | else |
7103 | { echo "$as_me:$LINENO: result: no" >&5 |
7104 | echo "${ECHO_T}no" >&6; } |
7105 | fi |
7106 | |
7107 | |
7108 | fi |
7109 | if test -z "$ac_cv_prog_AR"; then |
7110 | ac_ct_AR=$AR |
7111 | # Extract the first word of "ar", so it can be a program name with args. |
7112 | set dummy ar; ac_word=$2 |
7113 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7114 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
7115 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
7116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7117 | else |
7118 | if test -n "$ac_ct_AR"; then |
7119 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
7120 | else |
7121 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7122 | for as_dir in $PATH |
7123 | do |
7124 | IFS=$as_save_IFS |
7125 | test -z "$as_dir" && as_dir=. |
7126 | for ac_exec_ext in '' $ac_executable_extensions; do |
7127 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7128 | ac_cv_prog_ac_ct_AR="ar" |
7129 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7130 | break 2 |
7131 | fi |
7132 | done |
7133 | done |
7134 | IFS=$as_save_IFS |
7135 | |
7136 | fi |
7137 | fi |
7138 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
7139 | if test -n "$ac_ct_AR"; then |
7140 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
7141 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
7142 | else |
7143 | { echo "$as_me:$LINENO: result: no" >&5 |
7144 | echo "${ECHO_T}no" >&6; } |
7145 | fi |
7146 | |
7147 | if test "x$ac_ct_AR" = x; then |
7148 | AR="false" |
7149 | else |
7150 | case $cross_compiling:$ac_tool_warned in |
7151 | yes:) |
7152 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7153 | whose name does not start with the host triplet. If you think this |
7154 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
7155 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7156 | whose name does not start with the host triplet. If you think this |
7157 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
7158 | ac_tool_warned=yes ;; |
7159 | esac |
7160 | AR=$ac_ct_AR |
7161 | fi |
7162 | else |
7163 | AR="$ac_cv_prog_AR" |
7164 | fi |
7165 | |
7166 | if test -n "$ac_tool_prefix"; then |
7167 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
7168 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
7169 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7170 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
7171 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
7172 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7173 | else |
7174 | if test -n "$RANLIB"; then |
7175 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
7176 | else |
7177 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7178 | for as_dir in $PATH |
7179 | do |
7180 | IFS=$as_save_IFS |
7181 | test -z "$as_dir" && as_dir=. |
7182 | for ac_exec_ext in '' $ac_executable_extensions; do |
7183 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7184 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
7185 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7186 | break 2 |
7187 | fi |
7188 | done |
7189 | done |
7190 | IFS=$as_save_IFS |
7191 | |
7192 | fi |
7193 | fi |
7194 | RANLIB=$ac_cv_prog_RANLIB |
7195 | if test -n "$RANLIB"; then |
7196 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
7197 | echo "${ECHO_T}$RANLIB" >&6; } |
7198 | else |
7199 | { echo "$as_me:$LINENO: result: no" >&5 |
7200 | echo "${ECHO_T}no" >&6; } |
7201 | fi |
7202 | |
7203 | |
7204 | fi |
7205 | if test -z "$ac_cv_prog_RANLIB"; then |
7206 | ac_ct_RANLIB=$RANLIB |
7207 | # Extract the first word of "ranlib", so it can be a program name with args. |
7208 | set dummy ranlib; ac_word=$2 |
7209 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7210 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
7211 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
7212 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7213 | else |
7214 | if test -n "$ac_ct_RANLIB"; then |
7215 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
7216 | else |
7217 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7218 | for as_dir in $PATH |
7219 | do |
7220 | IFS=$as_save_IFS |
7221 | test -z "$as_dir" && as_dir=. |
7222 | for ac_exec_ext in '' $ac_executable_extensions; do |
7223 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7224 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
7225 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7226 | break 2 |
7227 | fi |
7228 | done |
7229 | done |
7230 | IFS=$as_save_IFS |
7231 | |
7232 | fi |
7233 | fi |
7234 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
7235 | if test -n "$ac_ct_RANLIB"; then |
7236 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
7237 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
7238 | else |
7239 | { echo "$as_me:$LINENO: result: no" >&5 |
7240 | echo "${ECHO_T}no" >&6; } |
7241 | fi |
7242 | |
7243 | if test "x$ac_ct_RANLIB" = x; then |
7244 | RANLIB=":" |
7245 | else |
7246 | case $cross_compiling:$ac_tool_warned in |
7247 | yes:) |
7248 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7249 | whose name does not start with the host triplet. If you think this |
7250 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
7251 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7252 | whose name does not start with the host triplet. If you think this |
7253 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
7254 | ac_tool_warned=yes ;; |
7255 | esac |
7256 | RANLIB=$ac_ct_RANLIB |
7257 | fi |
7258 | else |
7259 | RANLIB="$ac_cv_prog_RANLIB" |
7260 | fi |
7261 | |
7262 | if test -n "$ac_tool_prefix"; then |
7263 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
7264 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
7265 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7266 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
7267 | if test "${ac_cv_prog_STRIP+set}" = set; then |
7268 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7269 | else |
7270 | if test -n "$STRIP"; then |
7271 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
7272 | else |
7273 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7274 | for as_dir in $PATH |
7275 | do |
7276 | IFS=$as_save_IFS |
7277 | test -z "$as_dir" && as_dir=. |
7278 | for ac_exec_ext in '' $ac_executable_extensions; do |
7279 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7280 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
7281 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7282 | break 2 |
7283 | fi |
7284 | done |
7285 | done |
7286 | IFS=$as_save_IFS |
7287 | |
7288 | fi |
7289 | fi |
7290 | STRIP=$ac_cv_prog_STRIP |
7291 | if test -n "$STRIP"; then |
7292 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
7293 | echo "${ECHO_T}$STRIP" >&6; } |
7294 | else |
7295 | { echo "$as_me:$LINENO: result: no" >&5 |
7296 | echo "${ECHO_T}no" >&6; } |
7297 | fi |
7298 | |
7299 | |
7300 | fi |
7301 | if test -z "$ac_cv_prog_STRIP"; then |
7302 | ac_ct_STRIP=$STRIP |
7303 | # Extract the first word of "strip", so it can be a program name with args. |
7304 | set dummy strip; ac_word=$2 |
7305 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
7306 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
7307 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
7308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7309 | else |
7310 | if test -n "$ac_ct_STRIP"; then |
7311 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
7312 | else |
7313 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
7314 | for as_dir in $PATH |
7315 | do |
7316 | IFS=$as_save_IFS |
7317 | test -z "$as_dir" && as_dir=. |
7318 | for ac_exec_ext in '' $ac_executable_extensions; do |
7319 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
7320 | ac_cv_prog_ac_ct_STRIP="strip" |
7321 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
7322 | break 2 |
7323 | fi |
7324 | done |
7325 | done |
7326 | IFS=$as_save_IFS |
7327 | |
7328 | fi |
7329 | fi |
7330 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
7331 | if test -n "$ac_ct_STRIP"; then |
7332 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
7333 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
7334 | else |
7335 | { echo "$as_me:$LINENO: result: no" >&5 |
7336 | echo "${ECHO_T}no" >&6; } |
7337 | fi |
7338 | |
7339 | if test "x$ac_ct_STRIP" = x; then |
7340 | STRIP=":" |
7341 | else |
7342 | case $cross_compiling:$ac_tool_warned in |
7343 | yes:) |
7344 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7345 | whose name does not start with the host triplet. If you think this |
7346 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
7347 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7348 | whose name does not start with the host triplet. If you think this |
7349 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
7350 | ac_tool_warned=yes ;; |
7351 | esac |
7352 | STRIP=$ac_ct_STRIP |
7353 | fi |
7354 | else |
7355 | STRIP="$ac_cv_prog_STRIP" |
7356 | fi |
7357 | |
7358 | |
7359 | old_CC="$CC" |
7360 | old_CFLAGS="$CFLAGS" |
7361 | |
7362 | # Set sane defaults for various variables |
7363 | test -z "$AR" && AR=ar |
7364 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
7365 | test -z "$AS" && AS=as |
7366 | test -z "$CC" && CC=cc |
7367 | test -z "$LTCC" && LTCC=$CC |
7368 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
7369 | test -z "$LD" && LD=ld |
7370 | test -z "$LN_S" && LN_S="ln -s" |
7371 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
7372 | test -z "$NM" && NM=nm |
7373 | test -z "$SED" && SED=sed |
7374 | test -z "$OBJDUMP" && OBJDUMP=objdump |
7375 | test -z "$RANLIB" && RANLIB=: |
7376 | test -z "$STRIP" && STRIP=: |
7377 | test -z "$ac_objext" && ac_objext=o |
7378 | |
7379 | # Determine commands to create old-style static archives. |
7380 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
7381 | old_postinstall_cmds='chmod 644 $oldlib' |
7382 | old_postuninstall_cmds= |
7383 | |
7384 | if test -n "$RANLIB"; then |
7385 | case $host_os in |
7386 | openbsd*) |
7387 | old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" |
7388 | ;; |
7389 | *) |
7390 | old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" |
7391 | ;; |
7392 | esac |
7393 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
7394 | fi |
7395 | |
7396 | for cc_temp in $compiler""; do |
7397 | case $cc_temp in |
7398 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7399 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7400 | \-*) ;; |
7401 | *) break;; |
7402 | esac |
7403 | done |
7404 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7405 | |
7406 | |
7407 | # Only perform the check for file, if the check method requires it |
7408 | case $deplibs_check_method in |
7409 | file_magic*) |
7410 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
7411 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
7412 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
7413 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7414 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7415 | else |
7416 | case $MAGIC_CMD in |
7417 | [\\/*] | ?:[\\/]*) |
7418 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7419 | ;; |
7420 | *) |
7421 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7422 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7423 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7424 | for ac_dir in $ac_dummy; do |
7425 | IFS="$lt_save_ifs" |
7426 | test -z "$ac_dir" && ac_dir=. |
7427 | if test -f $ac_dir/${ac_tool_prefix}file; then |
7428 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
7429 | if test -n "$file_magic_test_file"; then |
7430 | case $deplibs_check_method in |
7431 | "file_magic "*) |
7432 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7433 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7434 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7435 | $EGREP "$file_magic_regex" > /dev/null; then |
7436 | : |
7437 | else |
7438 | cat <<EOF 1>&2 |
7439 | |
7440 | *** Warning: the command libtool uses to detect shared libraries, |
7441 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7442 | *** The result is that libtool may fail to recognize shared libraries |
7443 | *** as such. This will affect the creation of libtool libraries that |
7444 | *** depend on shared libraries, but programs linked with such libtool |
7445 | *** libraries will work regardless of this problem. Nevertheless, you |
7446 | *** may want to report the problem to your system manager and/or to |
7447 | *** bug-libtool@gnu.org |
7448 | |
7449 | EOF |
7450 | fi ;; |
7451 | esac |
7452 | fi |
7453 | break |
7454 | fi |
7455 | done |
7456 | IFS="$lt_save_ifs" |
7457 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7458 | ;; |
7459 | esac |
7460 | fi |
7461 | |
7462 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7463 | if test -n "$MAGIC_CMD"; then |
7464 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7465 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
7466 | else |
7467 | { echo "$as_me:$LINENO: result: no" >&5 |
7468 | echo "${ECHO_T}no" >&6; } |
7469 | fi |
7470 | |
7471 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7472 | if test -n "$ac_tool_prefix"; then |
7473 | { echo "$as_me:$LINENO: checking for file" >&5 |
7474 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
7475 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7476 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7477 | else |
7478 | case $MAGIC_CMD in |
7479 | [\\/*] | ?:[\\/]*) |
7480 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7481 | ;; |
7482 | *) |
7483 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7484 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7485 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7486 | for ac_dir in $ac_dummy; do |
7487 | IFS="$lt_save_ifs" |
7488 | test -z "$ac_dir" && ac_dir=. |
7489 | if test -f $ac_dir/file; then |
7490 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
7491 | if test -n "$file_magic_test_file"; then |
7492 | case $deplibs_check_method in |
7493 | "file_magic "*) |
7494 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7495 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7496 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7497 | $EGREP "$file_magic_regex" > /dev/null; then |
7498 | : |
7499 | else |
7500 | cat <<EOF 1>&2 |
7501 | |
7502 | *** Warning: the command libtool uses to detect shared libraries, |
7503 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7504 | *** The result is that libtool may fail to recognize shared libraries |
7505 | *** as such. This will affect the creation of libtool libraries that |
7506 | *** depend on shared libraries, but programs linked with such libtool |
7507 | *** libraries will work regardless of this problem. Nevertheless, you |
7508 | *** may want to report the problem to your system manager and/or to |
7509 | *** bug-libtool@gnu.org |
7510 | |
7511 | EOF |
7512 | fi ;; |
7513 | esac |
7514 | fi |
7515 | break |
7516 | fi |
7517 | done |
7518 | IFS="$lt_save_ifs" |
7519 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7520 | ;; |
7521 | esac |
7522 | fi |
7523 | |
7524 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7525 | if test -n "$MAGIC_CMD"; then |
7526 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7527 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
7528 | else |
7529 | { echo "$as_me:$LINENO: result: no" >&5 |
7530 | echo "${ECHO_T}no" >&6; } |
7531 | fi |
7532 | |
7533 | else |
7534 | MAGIC_CMD=: |
7535 | fi |
7536 | fi |
7537 | |
7538 | fi |
7539 | ;; |
7540 | esac |
7541 | |
7542 | enable_dlopen=no |
7543 | enable_win32_dll=no |
7544 | |
7545 | # Check whether --enable-libtool-lock was given. |
7546 | if test "${enable_libtool_lock+set}" = set; then |
7547 | enableval=$enable_libtool_lock; |
7548 | fi |
7549 | |
7550 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7551 | |
7552 | |
7553 | # Check whether --with-pic was given. |
7554 | if test "${with_pic+set}" = set; then |
7555 | withval=$with_pic; pic_mode="$withval" |
7556 | else |
7557 | pic_mode=default |
7558 | fi |
7559 | |
7560 | test -z "$pic_mode" && pic_mode=default |
7561 | |
7562 | # Use C for the default configuration in the libtool script |
7563 | tagname= |
7564 | lt_save_CC="$CC" |
7565 | ac_ext=c |
7566 | ac_cpp='$CPP $CPPFLAGS' |
7567 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7568 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7569 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7570 | |
7571 | |
7572 | # Source file extension for C test sources. |
7573 | ac_ext=c |
7574 | |
7575 | # Object file extension for compiled C test sources. |
7576 | objext=o |
7577 | objext=$objext |
7578 | |
7579 | # Code to be used in simple compile tests |
7580 | lt_simple_compile_test_code="int some_variable = 0;\n" |
7581 | |
7582 | # Code to be used in simple link tests |
7583 | lt_simple_link_test_code='int main(){return(0);}\n' |
7584 | |
7585 | |
7586 | # If no C compiler was specified, use CC. |
7587 | LTCC=${LTCC-"$CC"} |
7588 | |
7589 | # Allow CC to be a program name with arguments. |
7590 | compiler=$CC |
7591 | |
7592 | |
7593 | # save warnings/boilerplate of simple test code |
7594 | ac_outfile=conftest.$ac_objext |
7595 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
7596 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
7597 | _lt_compiler_boilerplate=`cat conftest.err` |
7598 | $rm conftest* |
7599 | |
7600 | ac_outfile=conftest.$ac_objext |
7601 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
7602 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
7603 | _lt_linker_boilerplate=`cat conftest.err` |
7604 | $rm conftest* |
7605 | |
7606 | |
7607 | # |
7608 | # Check for any special shared library compilation flags. |
7609 | # |
7610 | lt_prog_cc_shlib= |
7611 | if test "$GCC" = no; then |
7612 | case $host_os in |
7613 | sco3.2v5*) |
7614 | lt_prog_cc_shlib='-belf' |
7615 | ;; |
7616 | esac |
7617 | fi |
7618 | if test -n "$lt_prog_cc_shlib"; then |
7619 | { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 |
7620 | echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} |
7621 | if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : |
7622 | else |
7623 | { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 |
7624 | echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} |
7625 | lt_cv_prog_cc_can_build_shared=no |
7626 | fi |
7627 | fi |
7628 | |
7629 | |
7630 | # |
7631 | # Check to make sure the static flag actually works. |
7632 | # |
7633 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 |
7634 | echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6; } |
7635 | if test "${lt_prog_compiler_static_works+set}" = set; then |
7636 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7637 | else |
7638 | lt_prog_compiler_static_works=no |
7639 | save_LDFLAGS="$LDFLAGS" |
7640 | LDFLAGS="$LDFLAGS $lt_prog_compiler_static" |
7641 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
7642 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
7643 | # The linker can only warn and ignore the option if not recognized |
7644 | # So say no if there are warnings |
7645 | if test -s conftest.err; then |
7646 | # Append any errors to the config.log. |
7647 | cat conftest.err 1>&5 |
7648 | $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp |
7649 | $SED '/^$/d' conftest.err >conftest.er2 |
7650 | if diff conftest.exp conftest.er2 >/dev/null; then |
7651 | lt_prog_compiler_static_works=yes |
7652 | fi |
7653 | else |
7654 | lt_prog_compiler_static_works=yes |
7655 | fi |
7656 | fi |
7657 | $rm conftest* |
7658 | LDFLAGS="$save_LDFLAGS" |
7659 | |
7660 | fi |
7661 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
7662 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
7663 | |
7664 | if test x"$lt_prog_compiler_static_works" = xyes; then |
7665 | : |
7666 | else |
7667 | lt_prog_compiler_static= |
7668 | fi |
7669 | |
7670 | |
7671 | |
7672 | |
7673 | lt_prog_compiler_no_builtin_flag= |
7674 | |
7675 | if test "$GCC" = yes; then |
7676 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
7677 | |
7678 | |
7679 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7680 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
7681 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
7682 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7683 | else |
7684 | lt_cv_prog_compiler_rtti_exceptions=no |
7685 | ac_outfile=conftest.$ac_objext |
7686 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7687 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
7688 | # Insert the option either (1) after the last *FLAGS variable, or |
7689 | # (2) before a word containing "conftest.", or (3) at the end. |
7690 | # Note that $ac_compile itself does not contain backslashes and begins |
7691 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7692 | # The option is referenced via a variable to avoid confusing sed. |
7693 | lt_compile=`echo "$ac_compile" | $SED \ |
7694 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7695 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7696 | -e 's:$: $lt_compiler_flag:'` |
7697 | (eval echo "\"\$as_me:7697: $lt_compile\"" >&5) |
7698 | (eval "$lt_compile" 2>conftest.err) |
7699 | ac_status=$? |
7700 | cat conftest.err >&5 |
7701 | echo "$as_me:7701: \$? = $ac_status" >&5 |
7702 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7703 | # The compiler can only warn and ignore the option if not recognized |
7704 | # So say no if there are warnings other than the usual output. |
7705 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
7706 | $SED '/^$/d' conftest.err >conftest.er2 |
7707 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
7708 | lt_cv_prog_compiler_rtti_exceptions=yes |
7709 | fi |
7710 | fi |
7711 | $rm conftest* |
7712 | |
7713 | fi |
7714 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7715 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
7716 | |
7717 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7718 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
7719 | else |
7720 | : |
7721 | fi |
7722 | |
7723 | fi |
7724 | |
7725 | lt_prog_compiler_wl= |
7726 | lt_prog_compiler_pic= |
7727 | lt_prog_compiler_static= |
7728 | |
7729 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7730 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
7731 | |
7732 | if test "$GCC" = yes; then |
7733 | lt_prog_compiler_wl='-Wl,' |
7734 | lt_prog_compiler_static='-static' |
7735 | |
7736 | case $host_os in |
7737 | aix*) |
7738 | # All AIX code is PIC. |
7739 | if test "$host_cpu" = ia64; then |
7740 | # AIX 5 now supports IA64 processor |
7741 | lt_prog_compiler_static='-Bstatic' |
7742 | fi |
7743 | ;; |
7744 | |
7745 | amigaos*) |
7746 | # FIXME: we need at least 68020 code to build shared libraries, but |
7747 | # adding the `-m68020' flag to GCC prevents building anything better, |
7748 | # like `-m68040'. |
7749 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
7750 | ;; |
7751 | |
7752 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7753 | # PIC is the default for these OSes. |
7754 | ;; |
7755 | |
7756 | mingw* | pw32* | os2*) |
7757 | # This hack is so that the source file can tell whether it is being |
7758 | # built for inclusion in a dll (and should export symbols for example). |
7759 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7760 | ;; |
7761 | |
7762 | darwin* | rhapsody*) |
7763 | # PIC is the default on this platform |
7764 | # Common symbols not allowed in MH_DYLIB files |
7765 | lt_prog_compiler_pic='-fno-common' |
7766 | ;; |
7767 | |
7768 | msdosdjgpp*) |
7769 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
7770 | # on systems that don't support them. |
7771 | lt_prog_compiler_can_build_shared=no |
7772 | enable_shared=no |
7773 | ;; |
7774 | |
7775 | sysv4*MP*) |
7776 | if test -d /usr/nec; then |
7777 | lt_prog_compiler_pic=-Kconform_pic |
7778 | fi |
7779 | ;; |
7780 | |
7781 | hpux*) |
7782 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7783 | # not for PA HP-UX. |
7784 | case $host_cpu in |
7785 | hppa*64*|ia64*) |
7786 | # +Z the default |
7787 | ;; |
7788 | *) |
7789 | lt_prog_compiler_pic='-fPIC' |
7790 | ;; |
7791 | esac |
7792 | ;; |
7793 | |
7794 | *) |
7795 | lt_prog_compiler_pic='-fPIC' |
7796 | ;; |
7797 | esac |
7798 | else |
7799 | # PORTME Check for flag to pass linker flags through the system compiler. |
7800 | case $host_os in |
7801 | aix*) |
7802 | lt_prog_compiler_wl='-Wl,' |
7803 | if test "$host_cpu" = ia64; then |
7804 | # AIX 5 now supports IA64 processor |
7805 | lt_prog_compiler_static='-Bstatic' |
7806 | else |
7807 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
7808 | fi |
7809 | ;; |
7810 | darwin*) |
7811 | # PIC is the default on this platform |
7812 | # Common symbols not allowed in MH_DYLIB files |
7813 | case $cc_basename in |
7814 | xlc*) |
7815 | lt_prog_compiler_pic='-qnocommon' |
7816 | lt_prog_compiler_wl='-Wl,' |
7817 | ;; |
7818 | esac |
7819 | ;; |
7820 | |
7821 | mingw* | pw32* | os2*) |
7822 | # This hack is so that the source file can tell whether it is being |
7823 | # built for inclusion in a dll (and should export symbols for example). |
7824 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7825 | ;; |
7826 | |
7827 | hpux9* | hpux10* | hpux11*) |
7828 | lt_prog_compiler_wl='-Wl,' |
7829 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7830 | # not for PA HP-UX. |
7831 | case $host_cpu in |
7832 | hppa*64*|ia64*) |
7833 | # +Z the default |
7834 | ;; |
7835 | *) |
7836 | lt_prog_compiler_pic='+Z' |
7837 | ;; |
7838 | esac |
7839 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
7840 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
7841 | ;; |
7842 | |
7843 | irix5* | irix6* | nonstopux*) |
7844 | lt_prog_compiler_wl='-Wl,' |
7845 | # PIC (with -KPIC) is the default. |
7846 | lt_prog_compiler_static='-non_shared' |
7847 | ;; |
7848 | |
7849 | newsos6) |
7850 | lt_prog_compiler_pic='-KPIC' |
7851 | lt_prog_compiler_static='-Bstatic' |
7852 | ;; |
7853 | |
7854 | linux*) |
7855 | case $cc_basename in |
7856 | icc* | ecc*) |
7857 | lt_prog_compiler_wl='-Wl,' |
7858 | lt_prog_compiler_pic='-KPIC' |
7859 | lt_prog_compiler_static='-static' |
7860 | ;; |
7861 | pgcc* | pgf77* | pgf90* | pgf95*) |
7862 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7863 | # which looks to be a dead project) |
7864 | lt_prog_compiler_wl='-Wl,' |
7865 | lt_prog_compiler_pic='-fpic' |
7866 | lt_prog_compiler_static='-Bstatic' |
7867 | ;; |
7868 | ccc*) |
7869 | lt_prog_compiler_wl='-Wl,' |
7870 | # All Alpha code is PIC. |
7871 | lt_prog_compiler_static='-non_shared' |
7872 | ;; |
7873 | esac |
7874 | ;; |
7875 | |
7876 | osf3* | osf4* | osf5*) |
7877 | lt_prog_compiler_wl='-Wl,' |
7878 | # All OSF/1 code is PIC. |
7879 | lt_prog_compiler_static='-non_shared' |
7880 | ;; |
7881 | |
7882 | sco3.2v5*) |
7883 | lt_prog_compiler_pic='-Kpic' |
7884 | lt_prog_compiler_static='-dn' |
7885 | ;; |
7886 | |
7887 | solaris*) |
7888 | lt_prog_compiler_pic='-KPIC' |
7889 | lt_prog_compiler_static='-Bstatic' |
7890 | case $cc_basename in |
7891 | f77* | f90* | f95*) |
7892 | lt_prog_compiler_wl='-Qoption ld ';; |
7893 | *) |
7894 | lt_prog_compiler_wl='-Wl,';; |
7895 | esac |
7896 | ;; |
7897 | |
7898 | sunos4*) |
7899 | lt_prog_compiler_wl='-Qoption ld ' |
7900 | lt_prog_compiler_pic='-PIC' |
7901 | lt_prog_compiler_static='-Bstatic' |
7902 | ;; |
7903 | |
7904 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
7905 | lt_prog_compiler_wl='-Wl,' |
7906 | lt_prog_compiler_pic='-KPIC' |
7907 | lt_prog_compiler_static='-Bstatic' |
7908 | ;; |
7909 | |
7910 | sysv4*MP*) |
7911 | if test -d /usr/nec ;then |
7912 | lt_prog_compiler_pic='-Kconform_pic' |
7913 | lt_prog_compiler_static='-Bstatic' |
7914 | fi |
7915 | ;; |
7916 | |
7917 | unicos*) |
7918 | lt_prog_compiler_wl='-Wl,' |
7919 | lt_prog_compiler_can_build_shared=no |
7920 | ;; |
7921 | |
7922 | uts4*) |
7923 | lt_prog_compiler_pic='-pic' |
7924 | lt_prog_compiler_static='-Bstatic' |
7925 | ;; |
7926 | |
7927 | *) |
7928 | lt_prog_compiler_can_build_shared=no |
7929 | ;; |
7930 | esac |
7931 | fi |
7932 | |
7933 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
7934 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
7935 | |
7936 | # |
7937 | # Check to make sure the PIC flag actually works. |
7938 | # |
7939 | if test -n "$lt_prog_compiler_pic"; then |
7940 | |
7941 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7942 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
7943 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
7944 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7945 | else |
7946 | lt_prog_compiler_pic_works=no |
7947 | ac_outfile=conftest.$ac_objext |
7948 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7949 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
7950 | # Insert the option either (1) after the last *FLAGS variable, or |
7951 | # (2) before a word containing "conftest.", or (3) at the end. |
7952 | # Note that $ac_compile itself does not contain backslashes and begins |
7953 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7954 | # The option is referenced via a variable to avoid confusing sed. |
7955 | lt_compile=`echo "$ac_compile" | $SED \ |
7956 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7957 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7958 | -e 's:$: $lt_compiler_flag:'` |
7959 | (eval echo "\"\$as_me:7959: $lt_compile\"" >&5) |
7960 | (eval "$lt_compile" 2>conftest.err) |
7961 | ac_status=$? |
7962 | cat conftest.err >&5 |
7963 | echo "$as_me:7963: \$? = $ac_status" >&5 |
7964 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7965 | # The compiler can only warn and ignore the option if not recognized |
7966 | # So say no if there are warnings other than the usual output. |
7967 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
7968 | $SED '/^$/d' conftest.err >conftest.er2 |
7969 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
7970 | lt_prog_compiler_pic_works=yes |
7971 | fi |
7972 | fi |
7973 | $rm conftest* |
7974 | |
7975 | fi |
7976 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
7977 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
7978 | |
7979 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
7980 | case $lt_prog_compiler_pic in |
7981 | "" | " "*) ;; |
7982 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
7983 | esac |
7984 | else |
7985 | lt_prog_compiler_pic= |
7986 | lt_prog_compiler_can_build_shared=no |
7987 | fi |
7988 | |
7989 | fi |
7990 | case $host_os in |
7991 | # For platforms which do not support PIC, -DPIC is meaningless: |
7992 | *djgpp*) |
7993 | lt_prog_compiler_pic= |
7994 | ;; |
7995 | *) |
7996 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
7997 | ;; |
7998 | esac |
7999 | |
8000 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
8001 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
8002 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
8003 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
8004 | else |
8005 | lt_cv_prog_compiler_c_o=no |
8006 | $rm -r conftest 2>/dev/null |
8007 | mkdir conftest |
8008 | cd conftest |
8009 | mkdir out |
8010 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
8011 | |
8012 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
8013 | # Insert the option either (1) after the last *FLAGS variable, or |
8014 | # (2) before a word containing "conftest.", or (3) at the end. |
8015 | # Note that $ac_compile itself does not contain backslashes and begins |
8016 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
8017 | lt_compile=`echo "$ac_compile" | $SED \ |
8018 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
8019 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
8020 | -e 's:$: $lt_compiler_flag:'` |
8021 | (eval echo "\"\$as_me:8021: $lt_compile\"" >&5) |
8022 | (eval "$lt_compile" 2>out/conftest.err) |
8023 | ac_status=$? |
8024 | cat out/conftest.err >&5 |
8025 | echo "$as_me:8025: \$? = $ac_status" >&5 |
8026 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
8027 | then |
8028 | # The compiler can only warn and ignore the option if not recognized |
8029 | # So say no if there are warnings |
8030 | $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp |
8031 | $SED '/^$/d' out/conftest.err >out/conftest.er2 |
8032 | if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
8033 | lt_cv_prog_compiler_c_o=yes |
8034 | fi |
8035 | fi |
8036 | chmod u+w . 2>&5 |
8037 | $rm conftest* |
8038 | # SGI C++ compiler will create directory out/ii_files/ for |
8039 | # template instantiation |
8040 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
8041 | $rm out/* && rmdir out |
8042 | cd .. |
8043 | rmdir conftest |
8044 | $rm conftest* |
8045 | |
8046 | fi |
8047 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
8048 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
8049 | |
8050 | |
8051 | hard_links="nottested" |
8052 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
8053 | # do not overwrite the value of need_locks provided by the user |
8054 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
8055 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
8056 | hard_links=yes |
8057 | $rm conftest* |
8058 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
8059 | touch conftest.a |
8060 | ln conftest.a conftest.b 2>&5 || hard_links=no |
8061 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
8062 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
8063 | echo "${ECHO_T}$hard_links" >&6; } |
8064 | if test "$hard_links" = no; then |
8065 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
8066 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
8067 | need_locks=warn |
8068 | fi |
8069 | else |
8070 | need_locks=no |
8071 | fi |
8072 | |
8073 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
8074 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
8075 | |
8076 | runpath_var= |
8077 | allow_undefined_flag= |
8078 | enable_shared_with_static_runtimes=no |
8079 | archive_cmds= |
8080 | archive_expsym_cmds= |
8081 | old_archive_From_new_cmds= |
8082 | old_archive_from_expsyms_cmds= |
8083 | export_dynamic_flag_spec= |
8084 | whole_archive_flag_spec= |
8085 | thread_safe_flag_spec= |
8086 | hardcode_libdir_flag_spec= |
8087 | hardcode_libdir_flag_spec_ld= |
8088 | hardcode_libdir_separator= |
8089 | hardcode_direct=no |
8090 | hardcode_minus_L=no |
8091 | hardcode_shlibpath_var=unsupported |
8092 | link_all_deplibs=unknown |
8093 | hardcode_automatic=no |
8094 | module_cmds= |
8095 | module_expsym_cmds= |
8096 | always_export_symbols=no |
8097 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
8098 | # include_expsyms should be a list of space-separated symbols to be *always* |
8099 | # included in the symbol list |
8100 | include_expsyms= |
8101 | # exclude_expsyms can be an extended regexp of symbols to exclude |
8102 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
8103 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
8104 | # as well as any symbol that contains `d'. |
8105 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
8106 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
8107 | # platforms (ab)use it in PIC code, but their linkers get confused if |
8108 | # the symbol is explicitly referenced. Since portable code cannot |
8109 | # rely on this symbol name, it's probably fine to never include it in |
8110 | # preloaded symbol tables. |
8111 | extract_expsyms_cmds= |
8112 | # Just being paranoid about ensuring that cc_basename is set. |
8113 | for cc_temp in $compiler""; do |
8114 | case $cc_temp in |
8115 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
8116 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
8117 | \-*) ;; |
8118 | *) break;; |
8119 | esac |
8120 | done |
8121 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
8122 | |
8123 | case $host_os in |
8124 | cygwin* | mingw* | pw32*) |
8125 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
8126 | # When not using gcc, we currently assume that we are using |
8127 | # Microsoft Visual C++. |
8128 | if test "$GCC" != yes; then |
8129 | with_gnu_ld=no |
8130 | fi |
8131 | ;; |
8132 | openbsd*) |
8133 | with_gnu_ld=no |
8134 | ;; |
8135 | esac |
8136 | |
8137 | ld_shlibs=yes |
8138 | if test "$with_gnu_ld" = yes; then |
8139 | # If archive_cmds runs LD, not CC, wlarc should be empty |
8140 | wlarc='${wl}' |
8141 | |
8142 | # Set some defaults for GNU ld with shared library support. These |
8143 | # are reset later if shared libraries are not supported. Putting them |
8144 | # here allows them to be overridden if necessary. |
8145 | runpath_var=LD_RUN_PATH |
8146 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
8147 | export_dynamic_flag_spec='${wl}--export-dynamic' |
8148 | # ancient GNU ld didn't support --whole-archive et. al. |
8149 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
8150 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
8151 | else |
8152 | whole_archive_flag_spec= |
8153 | fi |
8154 | supports_anon_versioning=no |
8155 | case `$LD -v 2>/dev/null` in |
8156 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
8157 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
8158 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
8159 | *\ 2.11.*) ;; # other 2.11 versions |
8160 | *) supports_anon_versioning=yes ;; |
8161 | esac |
8162 | |
8163 | # See if GNU ld supports shared libraries. |
8164 | case $host_os in |
8165 | aix3* | aix4* | aix5*) |
8166 | # On AIX/PPC, the GNU linker is very broken |
8167 | if test "$host_cpu" != ia64; then |
8168 | ld_shlibs=no |
8169 | cat <<EOF 1>&2 |
8170 | |
8171 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
8172 | *** to be unable to reliably create shared libraries on AIX. |
8173 | *** Therefore, libtool is disabling shared libraries support. If you |
8174 | *** really care for shared libraries, you may want to modify your PATH |
8175 | *** so that a non-GNU linker is found, and then restart. |
8176 | |
8177 | EOF |
8178 | fi |
8179 | ;; |
8180 | |
8181 | amigaos*) |
8182 | 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)' |
8183 | hardcode_libdir_flag_spec='-L$libdir' |
8184 | hardcode_minus_L=yes |
8185 | |
8186 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
8187 | # that the semantics of dynamic libraries on AmigaOS, at least up |
8188 | # to version 4, is to share data among multiple programs linked |
8189 | # with the same dynamic library. Since this doesn't match the |
8190 | # behavior of shared libraries on other platforms, we can't use |
8191 | # them. |
8192 | ld_shlibs=no |
8193 | ;; |
8194 | |
8195 | beos*) |
8196 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8197 | allow_undefined_flag=unsupported |
8198 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
8199 | # support --undefined. This deserves some investigation. FIXME |
8200 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8201 | else |
8202 | ld_shlibs=no |
8203 | fi |
8204 | ;; |
8205 | |
8206 | cygwin* | mingw* | pw32*) |
8207 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
8208 | # as there is no search path for DLLs. |
8209 | hardcode_libdir_flag_spec='-L$libdir' |
8210 | allow_undefined_flag=unsupported |
8211 | always_export_symbols=no |
8212 | enable_shared_with_static_runtimes=yes |
8213 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
8214 | |
8215 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
8216 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
8217 | # If the export-symbols file already is a .def file (1st line |
8218 | # is EXPORTS), use it as is; otherwise, prepend... |
8219 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
8220 | cp $export_symbols $output_objdir/$soname.def; |
8221 | else |
8222 | echo EXPORTS > $output_objdir/$soname.def; |
8223 | cat $export_symbols >> $output_objdir/$soname.def; |
8224 | fi~ |
8225 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
8226 | else |
8227 | ld_shlibs=no |
8228 | fi |
8229 | ;; |
8230 | |
8231 | linux*) |
8232 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8233 | tmp_addflag= |
8234 | case $cc_basename,$host_cpu in |
8235 | pgcc*) # Portland Group C compiler |
8236 | 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' |
8237 | tmp_addflag=' $pic_flag' |
8238 | ;; |
8239 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
8240 | 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' |
8241 | tmp_addflag=' $pic_flag -Mnomain' ;; |
8242 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
8243 | tmp_addflag=' -i_dynamic' ;; |
8244 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
8245 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
8246 | ifc* | ifort*) # Intel Fortran compiler |
8247 | tmp_addflag=' -nofor_main' ;; |
8248 | esac |
8249 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8250 | |
8251 | if test $supports_anon_versioning = yes; then |
8252 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
8253 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
8254 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
8255 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
8256 | fi |
8257 | else |
8258 | ld_shlibs=no |
8259 | fi |
8260 | ;; |
8261 | |
8262 | netbsd*) |
8263 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8264 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
8265 | wlarc= |
8266 | else |
8267 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8268 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
8269 | fi |
8270 | ;; |
8271 | |
8272 | solaris* | sysv5*) |
8273 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
8274 | ld_shlibs=no |
8275 | cat <<EOF 1>&2 |
8276 | |
8277 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
8278 | *** create shared libraries on Solaris systems. Therefore, libtool |
8279 | *** is disabling shared libraries support. We urge you to upgrade GNU |
8280 | *** binutils to release 2.9.1 or newer. Another option is to modify |
8281 | *** your PATH or compiler configuration so that the native linker is |
8282 | *** used, and then restart. |
8283 | |
8284 | EOF |
8285 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8286 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8287 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
8288 | else |
8289 | ld_shlibs=no |
8290 | fi |
8291 | ;; |
8292 | |
8293 | sunos4*) |
8294 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8295 | wlarc= |
8296 | hardcode_direct=yes |
8297 | hardcode_shlibpath_var=no |
8298 | ;; |
8299 | |
8300 | *) |
8301 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
8302 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
8303 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
8304 | else |
8305 | ld_shlibs=no |
8306 | fi |
8307 | ;; |
8308 | esac |
8309 | |
8310 | if test "$ld_shlibs" = no; then |
8311 | runpath_var= |
8312 | hardcode_libdir_flag_spec= |
8313 | export_dynamic_flag_spec= |
8314 | whole_archive_flag_spec= |
8315 | fi |
8316 | else |
8317 | # PORTME fill in a description of your system's linker (not GNU ld) |
8318 | case $host_os in |
8319 | aix3*) |
8320 | allow_undefined_flag=unsupported |
8321 | always_export_symbols=yes |
8322 | 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' |
8323 | # Note: this linker hardcodes the directories in LIBPATH if there |
8324 | # are no directories specified by -L. |
8325 | hardcode_minus_L=yes |
8326 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
8327 | # Neither direct hardcoding nor static linking is supported with a |
8328 | # broken collect2. |
8329 | hardcode_direct=unsupported |
8330 | fi |
8331 | ;; |
8332 | |
8333 | aix4* | aix5*) |
8334 | if test "$host_cpu" = ia64; then |
8335 | # On IA64, the linker does run time linking by default, so we don't |
8336 | # have to do anything special. |
8337 | aix_use_runtimelinking=no |
8338 | exp_sym_flag='-Bexport' |
8339 | no_entry_flag="" |
8340 | else |
8341 | # If we're using GNU nm, then we don't want the "-C" option. |
8342 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
8343 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
8344 | 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' |
8345 | else |
8346 | 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' |
8347 | fi |
8348 | aix_use_runtimelinking=no |
8349 | |
8350 | # Test if we are trying to use run time linking or normal |
8351 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
8352 | # need to do runtime linking. |
8353 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
8354 | for ld_flag in $LDFLAGS; do |
8355 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
8356 | aix_use_runtimelinking=yes |
8357 | break |
8358 | fi |
8359 | done |
8360 | esac |
8361 | |
8362 | exp_sym_flag='-bexport' |
8363 | no_entry_flag='-bnoentry' |
8364 | fi |
8365 | |
8366 | # When large executables or shared objects are built, AIX ld can |
8367 | # have problems creating the table of contents. If linking a library |
8368 | # or program results in "error TOC overflow" add -mminimal-toc to |
8369 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
8370 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
8371 | |
8372 | archive_cmds='' |
8373 | hardcode_direct=yes |
8374 | hardcode_libdir_separator=':' |
8375 | link_all_deplibs=yes |
8376 | |
8377 | if test "$GCC" = yes; then |
8378 | case $host_os in aix4.[012]|aix4.[012].*) |
8379 | # We only want to do this on AIX 4.2 and lower, the check |
8380 | # below for broken collect2 doesn't work under 4.3+ |
8381 | collect2name=`${CC} -print-prog-name=collect2` |
8382 | if test -f "$collect2name" && \ |
8383 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
8384 | then |
8385 | # We have reworked collect2 |
8386 | hardcode_direct=yes |
8387 | else |
8388 | # We have old collect2 |
8389 | hardcode_direct=unsupported |
8390 | # It fails to find uninstalled libraries when the uninstalled |
8391 | # path is not listed in the libpath. Setting hardcode_minus_L |
8392 | # to unsupported forces relinking |
8393 | hardcode_minus_L=yes |
8394 | hardcode_libdir_flag_spec='-L$libdir' |
8395 | hardcode_libdir_separator= |
8396 | fi |
8397 | esac |
8398 | shared_flag='-shared' |
8399 | if test "$aix_use_runtimelinking" = yes; then |
8400 | shared_flag="$shared_flag "'${wl}-G' |
8401 | fi |
8402 | else |
8403 | # not using gcc |
8404 | if test "$host_cpu" = ia64; then |
8405 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
8406 | # chokes on -Wl,-G. The following line is correct: |
8407 | shared_flag='-G' |
8408 | else |
8409 | if test "$aix_use_runtimelinking" = yes; then |
8410 | shared_flag='${wl}-G' |
8411 | else |
8412 | shared_flag='${wl}-bM:SRE' |
8413 | fi |
8414 | fi |
8415 | fi |
8416 | |
8417 | # It seems that -bexpall does not export symbols beginning with |
8418 | # underscore (_), so it is better to generate a list of symbols to export. |
8419 | always_export_symbols=yes |
8420 | if test "$aix_use_runtimelinking" = yes; then |
8421 | # Warning - without using the other runtime loading flags (-brtl), |
8422 | # -berok will link without error, but may produce a broken library. |
8423 | allow_undefined_flag='-berok' |
8424 | # Determine the default libpath from the value encoded in an empty executable. |
8425 | cat >conftest.$ac_ext <<_ACEOF |
8426 | /* confdefs.h. */ |
8427 | _ACEOF |
8428 | cat confdefs.h >>conftest.$ac_ext |
8429 | cat >>conftest.$ac_ext <<_ACEOF |
8430 | /* end confdefs.h. */ |
8431 | |
8432 | int |
8433 | main () |
8434 | { |
8435 | |
8436 | ; |
8437 | return 0; |
8438 | } |
8439 | _ACEOF |
8440 | rm -f conftest.$ac_objext conftest$ac_exeext |
8441 | if { (ac_try="$ac_link" |
8442 | case "(($ac_try" in |
8443 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8444 | *) ac_try_echo=$ac_try;; |
8445 | esac |
8446 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8447 | (eval "$ac_link") 2>conftest.er1 |
8448 | ac_status=$? |
8449 | grep -v '^ *+' conftest.er1 >conftest.err |
8450 | rm -f conftest.er1 |
8451 | cat conftest.err >&5 |
8452 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8453 | (exit $ac_status); } && { |
8454 | test -z "$ac_c_werror_flag" || |
8455 | test ! -s conftest.err |
8456 | } && test -s conftest$ac_exeext && |
8457 | $as_test_x conftest$ac_exeext; then |
8458 | |
8459 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8460 | }'` |
8461 | # Check for a 64-bit object if we didn't find anything. |
8462 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8463 | }'`; fi |
8464 | else |
8465 | echo "$as_me: failed program was:" >&5 |
8466 | sed 's/^/| /' conftest.$ac_ext >&5 |
8467 | |
8468 | |
8469 | fi |
8470 | |
8471 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8472 | conftest$ac_exeext conftest.$ac_ext |
8473 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8474 | |
8475 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8476 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
8477 | else |
8478 | if test "$host_cpu" = ia64; then |
8479 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8480 | allow_undefined_flag="-z nodefs" |
8481 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
8482 | else |
8483 | # Determine the default libpath from the value encoded in an empty executable. |
8484 | cat >conftest.$ac_ext <<_ACEOF |
8485 | /* confdefs.h. */ |
8486 | _ACEOF |
8487 | cat confdefs.h >>conftest.$ac_ext |
8488 | cat >>conftest.$ac_ext <<_ACEOF |
8489 | /* end confdefs.h. */ |
8490 | |
8491 | int |
8492 | main () |
8493 | { |
8494 | |
8495 | ; |
8496 | return 0; |
8497 | } |
8498 | _ACEOF |
8499 | rm -f conftest.$ac_objext conftest$ac_exeext |
8500 | if { (ac_try="$ac_link" |
8501 | case "(($ac_try" in |
8502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8503 | *) ac_try_echo=$ac_try;; |
8504 | esac |
8505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8506 | (eval "$ac_link") 2>conftest.er1 |
8507 | ac_status=$? |
8508 | grep -v '^ *+' conftest.er1 >conftest.err |
8509 | rm -f conftest.er1 |
8510 | cat conftest.err >&5 |
8511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8512 | (exit $ac_status); } && { |
8513 | test -z "$ac_c_werror_flag" || |
8514 | test ! -s conftest.err |
8515 | } && test -s conftest$ac_exeext && |
8516 | $as_test_x conftest$ac_exeext; then |
8517 | |
8518 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8519 | }'` |
8520 | # Check for a 64-bit object if we didn't find anything. |
8521 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8522 | }'`; fi |
8523 | else |
8524 | echo "$as_me: failed program was:" >&5 |
8525 | sed 's/^/| /' conftest.$ac_ext >&5 |
8526 | |
8527 | |
8528 | fi |
8529 | |
8530 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
8531 | conftest$ac_exeext conftest.$ac_ext |
8532 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8533 | |
8534 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8535 | # Warning - without using the other run time loading flags, |
8536 | # -berok will link without error, but may produce a broken library. |
8537 | no_undefined_flag=' ${wl}-bernotok' |
8538 | allow_undefined_flag=' ${wl}-berok' |
8539 | # -bexpall does not export symbols beginning with underscore (_) |
8540 | always_export_symbols=yes |
8541 | # Exported symbols can be pulled into shared objects from archives |
8542 | whole_archive_flag_spec=' ' |
8543 | archive_cmds_need_lc=yes |
8544 | # This is similar to how AIX traditionally builds its shared libraries. |
8545 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
8546 | fi |
8547 | fi |
8548 | ;; |
8549 | |
8550 | amigaos*) |
8551 | 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)' |
8552 | hardcode_libdir_flag_spec='-L$libdir' |
8553 | hardcode_minus_L=yes |
8554 | # see comment about different semantics on the GNU ld section |
8555 | ld_shlibs=no |
8556 | ;; |
8557 | |
8558 | bsdi[45]*) |
8559 | export_dynamic_flag_spec=-rdynamic |
8560 | ;; |
8561 | |
8562 | cygwin* | mingw* | pw32*) |
8563 | # When not using gcc, we currently assume that we are using |
8564 | # Microsoft Visual C++. |
8565 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
8566 | # no search path for DLLs. |
8567 | hardcode_libdir_flag_spec=' ' |
8568 | allow_undefined_flag=unsupported |
8569 | # Tell ltmain to make .lib files, not .a files. |
8570 | libext=lib |
8571 | # Tell ltmain to make .dll files, not .so files. |
8572 | shrext_cmds=".dll" |
8573 | # FIXME: Setting linknames here is a bad hack. |
8574 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
8575 | # The linker will automatically build a .lib file if we build a DLL. |
8576 | old_archive_From_new_cmds='true' |
8577 | # FIXME: Should let the user specify the lib program. |
8578 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
8579 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
8580 | enable_shared_with_static_runtimes=yes |
8581 | ;; |
8582 | |
8583 | darwin* | rhapsody*) |
8584 | case $host_os in |
8585 | rhapsody* | darwin1.[012]) |
8586 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
8587 | ;; |
8588 | *) # Darwin 1.3 on |
8589 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
8590 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8591 | else |
8592 | case ${MACOSX_DEPLOYMENT_TARGET} in |
8593 | 10.[012]) |
8594 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8595 | ;; |
8596 | 10.*) |
8597 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
8598 | ;; |
8599 | esac |
8600 | fi |
8601 | ;; |
8602 | esac |
8603 | archive_cmds_need_lc=no |
8604 | hardcode_direct=no |
8605 | hardcode_automatic=yes |
8606 | hardcode_shlibpath_var=unsupported |
8607 | whole_archive_flag_spec='' |
8608 | link_all_deplibs=yes |
8609 | if test "$GCC" = yes ; then |
8610 | output_verbose_link_cmd='echo' |
8611 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
8612 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8613 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8614 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
8615 | 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}' |
8616 | else |
8617 | case $cc_basename in |
8618 | xlc*) |
8619 | output_verbose_link_cmd='echo' |
8620 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
8621 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8622 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8623 | archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
8624 | 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}' |
8625 | ;; |
8626 | *) |
8627 | ld_shlibs=no |
8628 | ;; |
8629 | esac |
8630 | fi |
8631 | ;; |
8632 | |
8633 | dgux*) |
8634 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8635 | hardcode_libdir_flag_spec='-L$libdir' |
8636 | hardcode_shlibpath_var=no |
8637 | ;; |
8638 | |
8639 | freebsd1*) |
8640 | ld_shlibs=no |
8641 | ;; |
8642 | |
8643 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8644 | # support. Future versions do this automatically, but an explicit c++rt0.o |
8645 | # does not break anything, and helps significantly (at the cost of a little |
8646 | # extra space). |
8647 | freebsd2.2*) |
8648 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
8649 | hardcode_libdir_flag_spec='-R$libdir' |
8650 | hardcode_direct=yes |
8651 | hardcode_shlibpath_var=no |
8652 | ;; |
8653 | |
8654 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8655 | freebsd2*) |
8656 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8657 | hardcode_direct=yes |
8658 | hardcode_minus_L=yes |
8659 | hardcode_shlibpath_var=no |
8660 | ;; |
8661 | |
8662 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8663 | freebsd* | kfreebsd*-gnu | dragonfly*) |
8664 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
8665 | hardcode_libdir_flag_spec='-R$libdir' |
8666 | hardcode_direct=yes |
8667 | hardcode_shlibpath_var=no |
8668 | ;; |
8669 | |
8670 | hpux9*) |
8671 | if test "$GCC" = yes; then |
8672 | 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' |
8673 | else |
8674 | 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' |
8675 | fi |
8676 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8677 | hardcode_libdir_separator=: |
8678 | hardcode_direct=yes |
8679 | |
8680 | # hardcode_minus_L: Not really in the search PATH, |
8681 | # but as the default location of the library. |
8682 | hardcode_minus_L=yes |
8683 | export_dynamic_flag_spec='${wl}-E' |
8684 | ;; |
8685 | |
8686 | hpux10* | hpux11*) |
8687 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8688 | case $host_cpu in |
8689 | hppa*64*|ia64*) |
8690 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8691 | ;; |
8692 | *) |
8693 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8694 | ;; |
8695 | esac |
8696 | else |
8697 | case $host_cpu in |
8698 | hppa*64*|ia64*) |
8699 | archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
8700 | ;; |
8701 | *) |
8702 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
8703 | ;; |
8704 | esac |
8705 | fi |
8706 | if test "$with_gnu_ld" = no; then |
8707 | case $host_cpu in |
8708 | hppa*64*) |
8709 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8710 | hardcode_libdir_flag_spec_ld='+b $libdir' |
8711 | hardcode_libdir_separator=: |
8712 | hardcode_direct=no |
8713 | hardcode_shlibpath_var=no |
8714 | ;; |
8715 | ia64*) |
8716 | hardcode_libdir_flag_spec='-L$libdir' |
8717 | hardcode_direct=no |
8718 | hardcode_shlibpath_var=no |
8719 | |
8720 | # hardcode_minus_L: Not really in the search PATH, |
8721 | # but as the default location of the library. |
8722 | hardcode_minus_L=yes |
8723 | ;; |
8724 | *) |
8725 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8726 | hardcode_libdir_separator=: |
8727 | hardcode_direct=yes |
8728 | export_dynamic_flag_spec='${wl}-E' |
8729 | |
8730 | # hardcode_minus_L: Not really in the search PATH, |
8731 | # but as the default location of the library. |
8732 | hardcode_minus_L=yes |
8733 | ;; |
8734 | esac |
8735 | fi |
8736 | ;; |
8737 | |
8738 | irix5* | irix6* | nonstopux*) |
8739 | if test "$GCC" = yes; then |
8740 | 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' |
8741 | else |
8742 | 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' |
8743 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
8744 | fi |
8745 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8746 | hardcode_libdir_separator=: |
8747 | link_all_deplibs=yes |
8748 | ;; |
8749 | |
8750 | netbsd*) |
8751 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8752 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
8753 | else |
8754 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
8755 | fi |
8756 | hardcode_libdir_flag_spec='-R$libdir' |
8757 | hardcode_direct=yes |
8758 | hardcode_shlibpath_var=no |
8759 | ;; |
8760 | |
8761 | newsos6) |
8762 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8763 | hardcode_direct=yes |
8764 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8765 | hardcode_libdir_separator=: |
8766 | hardcode_shlibpath_var=no |
8767 | ;; |
8768 | |
8769 | openbsd*) |
8770 | hardcode_direct=yes |
8771 | hardcode_shlibpath_var=no |
8772 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8773 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8774 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
8775 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8776 | export_dynamic_flag_spec='${wl}-E' |
8777 | else |
8778 | case $host_os in |
8779 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
8780 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8781 | hardcode_libdir_flag_spec='-R$libdir' |
8782 | ;; |
8783 | *) |
8784 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8785 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8786 | ;; |
8787 | esac |
8788 | fi |
8789 | ;; |
8790 | |
8791 | os2*) |
8792 | hardcode_libdir_flag_spec='-L$libdir' |
8793 | hardcode_minus_L=yes |
8794 | allow_undefined_flag=unsupported |
8795 | 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' |
8796 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
8797 | ;; |
8798 | |
8799 | osf3*) |
8800 | if test "$GCC" = yes; then |
8801 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8802 | 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' |
8803 | else |
8804 | allow_undefined_flag=' -expect_unresolved \*' |
8805 | 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' |
8806 | fi |
8807 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8808 | hardcode_libdir_separator=: |
8809 | ;; |
8810 | |
8811 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8812 | if test "$GCC" = yes; then |
8813 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8814 | 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' |
8815 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8816 | else |
8817 | allow_undefined_flag=' -expect_unresolved \*' |
8818 | 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' |
8819 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
8820 | $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' |
8821 | |
8822 | # Both c and cxx compiler support -rpath directly |
8823 | hardcode_libdir_flag_spec='-rpath $libdir' |
8824 | fi |
8825 | hardcode_libdir_separator=: |
8826 | ;; |
8827 | |
8828 | sco3.2v5*) |
8829 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8830 | hardcode_shlibpath_var=no |
8831 | export_dynamic_flag_spec='${wl}-Bexport' |
8832 | runpath_var=LD_RUN_PATH |
8833 | hardcode_runpath_var=yes |
8834 | ;; |
8835 | |
8836 | solaris*) |
8837 | no_undefined_flag=' -z text' |
8838 | if test "$GCC" = yes; then |
8839 | wlarc='${wl}' |
8840 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8841 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8842 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
8843 | else |
8844 | wlarc='' |
8845 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8846 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8847 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
8848 | fi |
8849 | hardcode_libdir_flag_spec='-R$libdir' |
8850 | hardcode_shlibpath_var=no |
8851 | case $host_os in |
8852 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
8853 | *) |
8854 | # The compiler driver will combine linker options so we |
8855 | # cannot just pass the convience library names through |
8856 | # without $wl, iff we do not link with $LD. |
8857 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
8858 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
8859 | case $wlarc in |
8860 | '') |
8861 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
8862 | *) |
8863 | whole_archive_flag_spec='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
8864 | esac ;; |
8865 | esac |
8866 | link_all_deplibs=yes |
8867 | ;; |
8868 | |
8869 | sunos4*) |
8870 | if test "x$host_vendor" = xsequent; then |
8871 | # Use $CC to link under sequent, because it throws in some extra .o |
8872 | # files that make .init and .fini sections work. |
8873 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8874 | else |
8875 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
8876 | fi |
8877 | hardcode_libdir_flag_spec='-L$libdir' |
8878 | hardcode_direct=yes |
8879 | hardcode_minus_L=yes |
8880 | hardcode_shlibpath_var=no |
8881 | ;; |
8882 | |
8883 | sysv4) |
8884 | case $host_vendor in |
8885 | sni) |
8886 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8887 | hardcode_direct=yes # is this really true??? |
8888 | ;; |
8889 | siemens) |
8890 | ## LD is ld it makes a PLAMLIB |
8891 | ## CC just makes a GrossModule. |
8892 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
8893 | reload_cmds='$CC -r -o $output$reload_objs' |
8894 | hardcode_direct=no |
8895 | ;; |
8896 | motorola) |
8897 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8898 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
8899 | ;; |
8900 | esac |
8901 | runpath_var='LD_RUN_PATH' |
8902 | hardcode_shlibpath_var=no |
8903 | ;; |
8904 | |
8905 | sysv4.3*) |
8906 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8907 | hardcode_shlibpath_var=no |
8908 | export_dynamic_flag_spec='-Bexport' |
8909 | ;; |
8910 | |
8911 | sysv4*MP*) |
8912 | if test -d /usr/nec; then |
8913 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8914 | hardcode_shlibpath_var=no |
8915 | runpath_var=LD_RUN_PATH |
8916 | hardcode_runpath_var=yes |
8917 | ld_shlibs=yes |
8918 | fi |
8919 | ;; |
8920 | |
8921 | sysv4.2uw2*) |
8922 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
8923 | hardcode_direct=yes |
8924 | hardcode_minus_L=no |
8925 | hardcode_shlibpath_var=no |
8926 | hardcode_runpath_var=yes |
8927 | runpath_var=LD_RUN_PATH |
8928 | ;; |
8929 | |
8930 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
8931 | no_undefined_flag='${wl}-z ${wl}text' |
8932 | if test "$GCC" = yes; then |
8933 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8934 | else |
8935 | archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8936 | fi |
8937 | runpath_var='LD_RUN_PATH' |
8938 | hardcode_shlibpath_var=no |
8939 | ;; |
8940 | |
8941 | sysv5*) |
8942 | no_undefined_flag=' -z text' |
8943 | # $CC -shared without GNU ld will not create a library from C++ |
8944 | # object files and a static libstdc++, better avoid it by now |
8945 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8946 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8947 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
8948 | hardcode_libdir_flag_spec= |
8949 | hardcode_shlibpath_var=no |
8950 | runpath_var='LD_RUN_PATH' |
8951 | ;; |
8952 | |
8953 | uts4*) |
8954 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8955 | hardcode_libdir_flag_spec='-L$libdir' |
8956 | hardcode_shlibpath_var=no |
8957 | ;; |
8958 | |
8959 | *) |
8960 | ld_shlibs=no |
8961 | ;; |
8962 | esac |
8963 | fi |
8964 | |
8965 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8966 | echo "${ECHO_T}$ld_shlibs" >&6; } |
8967 | test "$ld_shlibs" = no && can_build_shared=no |
8968 | |
8969 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
8970 | if test "$GCC" = yes; then |
8971 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
8972 | fi |
8973 | |
8974 | # |
8975 | # Do we need to explicitly link libc? |
8976 | # |
8977 | case "x$archive_cmds_need_lc" in |
8978 | x|xyes) |
8979 | # Assume -lc should be added |
8980 | archive_cmds_need_lc=yes |
8981 | |
8982 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
8983 | case $archive_cmds in |
8984 | *'~'*) |
8985 | # FIXME: we may have to deal with multi-command sequences. |
8986 | ;; |
8987 | '$CC '*) |
8988 | # Test whether the compiler implicitly links with -lc since on some |
8989 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
8990 | # to ld, don't add -lc before -lgcc. |
8991 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
8992 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
8993 | $rm conftest* |
8994 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
8995 | |
8996 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8997 | (eval $ac_compile) 2>&5 |
8998 | ac_status=$? |
8999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9000 | (exit $ac_status); } 2>conftest.err; then |
9001 | soname=conftest |
9002 | lib=conftest |
9003 | libobjs=conftest.$ac_objext |
9004 | deplibs= |
9005 | wl=$lt_prog_compiler_wl |
9006 | compiler_flags=-v |
9007 | linker_flags=-v |
9008 | verstring= |
9009 | output_objdir=. |
9010 | libname=conftest |
9011 | lt_save_allow_undefined_flag=$allow_undefined_flag |
9012 | allow_undefined_flag= |
9013 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
9014 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
9015 | ac_status=$? |
9016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9017 | (exit $ac_status); } |
9018 | then |
9019 | archive_cmds_need_lc=no |
9020 | else |
9021 | archive_cmds_need_lc=yes |
9022 | fi |
9023 | allow_undefined_flag=$lt_save_allow_undefined_flag |
9024 | else |
9025 | cat conftest.err 1>&5 |
9026 | fi |
9027 | $rm conftest* |
9028 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
9029 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
9030 | ;; |
9031 | esac |
9032 | fi |
9033 | ;; |
9034 | esac |
9035 | |
9036 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
9037 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
9038 | library_names_spec= |
9039 | libname_spec='lib$name' |
9040 | soname_spec= |
9041 | shrext_cmds=".so" |
9042 | postinstall_cmds= |
9043 | postuninstall_cmds= |
9044 | finish_cmds= |
9045 | finish_eval= |
9046 | shlibpath_var= |
9047 | shlibpath_overrides_runpath=unknown |
9048 | version_type=none |
9049 | dynamic_linker="$host_os ld.so" |
9050 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
9051 | if test "$GCC" = yes; then |
9052 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
9053 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
9054 | # if the path contains ";" then we assume it to be the separator |
9055 | # otherwise default to the standard path separator (i.e. ":") - it is |
9056 | # assumed that no part of a normal pathname contains ";" but that should |
9057 | # okay in the real world where ";" in dirpaths is itself problematic. |
9058 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
9059 | else |
9060 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
9061 | fi |
9062 | else |
9063 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
9064 | fi |
9065 | need_lib_prefix=unknown |
9066 | hardcode_into_libs=no |
9067 | |
9068 | # when you set need_version to no, make sure it does not cause -set_version |
9069 | # flags to be left without arguments |
9070 | need_version=unknown |
9071 | |
9072 | case $host_os in |
9073 | aix3*) |
9074 | version_type=linux |
9075 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
9076 | shlibpath_var=LIBPATH |
9077 | |
9078 | # AIX 3 has no versioning support, so we append a major version to the name. |
9079 | soname_spec='${libname}${release}${shared_ext}$major' |
9080 | ;; |
9081 | |
9082 | aix4* | aix5*) |
9083 | version_type=linux |
9084 | need_lib_prefix=no |
9085 | need_version=no |
9086 | hardcode_into_libs=yes |
9087 | if test "$host_cpu" = ia64; then |
9088 | # AIX 5 supports IA64 |
9089 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
9090 | shlibpath_var=LD_LIBRARY_PATH |
9091 | else |
9092 | # With GCC up to 2.95.x, collect2 would create an import file |
9093 | # for dependence libraries. The import file would start with |
9094 | # the line `#! .'. This would cause the generated library to |
9095 | # depend on `.', always an invalid library. This was fixed in |
9096 | # development snapshots of GCC prior to 3.0. |
9097 | case $host_os in |
9098 | aix4 | aix4.[01] | aix4.[01].*) |
9099 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
9100 | echo ' yes ' |
9101 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
9102 | : |
9103 | else |
9104 | can_build_shared=no |
9105 | fi |
9106 | ;; |
9107 | esac |
9108 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
9109 | # soname into executable. Probably we can add versioning support to |
9110 | # collect2, so additional links can be useful in future. |
9111 | if test "$aix_use_runtimelinking" = yes; then |
9112 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
9113 | # instead of lib<name>.a to let people know that these are not |
9114 | # typical AIX shared libraries. |
9115 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9116 | else |
9117 | # We preserve .a as extension for shared libraries through AIX4.2 |
9118 | # and later when we are not doing run time linking. |
9119 | library_names_spec='${libname}${release}.a $libname.a' |
9120 | soname_spec='${libname}${release}${shared_ext}$major' |
9121 | fi |
9122 | shlibpath_var=LIBPATH |
9123 | fi |
9124 | ;; |
9125 | |
9126 | amigaos*) |
9127 | library_names_spec='$libname.ixlibrary $libname.a' |
9128 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
9129 | 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' |
9130 | ;; |
9131 | |
9132 | beos*) |
9133 | library_names_spec='${libname}${shared_ext}' |
9134 | dynamic_linker="$host_os ld.so" |
9135 | shlibpath_var=LIBRARY_PATH |
9136 | ;; |
9137 | |
9138 | bsdi[45]*) |
9139 | version_type=linux |
9140 | need_version=no |
9141 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9142 | soname_spec='${libname}${release}${shared_ext}$major' |
9143 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
9144 | shlibpath_var=LD_LIBRARY_PATH |
9145 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
9146 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
9147 | # the default ld.so.conf also contains /usr/contrib/lib and |
9148 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
9149 | # libtool to hard-code these into programs |
9150 | ;; |
9151 | |
9152 | cygwin* | mingw* | pw32*) |
9153 | version_type=windows |
9154 | shrext_cmds=".dll" |
9155 | need_version=no |
9156 | need_lib_prefix=no |
9157 | |
9158 | case $GCC,$host_os in |
9159 | yes,cygwin* | yes,mingw* | yes,pw32*) |
9160 | library_names_spec='$libname.dll.a' |
9161 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
9162 | postinstall_cmds='base_file=`basename \${file}`~ |
9163 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
9164 | dldir=$destdir/`dirname \$dlpath`~ |
9165 | test -d \$dldir || mkdir -p \$dldir~ |
9166 | $install_prog $dir/$dlname \$dldir/$dlname~ |
9167 | chmod a+x \$dldir/$dlname' |
9168 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
9169 | dlpath=$dir/\$dldll~ |
9170 | $rm \$dlpath' |
9171 | shlibpath_overrides_runpath=yes |
9172 | |
9173 | case $host_os in |
9174 | cygwin*) |
9175 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
9176 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
9177 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
9178 | ;; |
9179 | mingw*) |
9180 | # MinGW DLLs use traditional 'lib' prefix |
9181 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
9182 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
9183 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
9184 | # It is most probably a Windows format PATH printed by |
9185 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
9186 | # path with ; separators, and with drive letters. We can handle the |
9187 | # drive letters (cygwin fileutils understands them), so leave them, |
9188 | # especially as we might pass files found there to a mingw objdump, |
9189 | # which wouldn't understand a cygwinified path. Ahh. |
9190 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
9191 | else |
9192 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
9193 | fi |
9194 | ;; |
9195 | pw32*) |
9196 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
9197 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
9198 | ;; |
9199 | esac |
9200 | ;; |
9201 | |
9202 | *) |
9203 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
9204 | ;; |
9205 | esac |
9206 | dynamic_linker='Win32 ld.exe' |
9207 | # FIXME: first we should search . and the directory the executable is in |
9208 | shlibpath_var=PATH |
9209 | ;; |
9210 | |
9211 | darwin* | rhapsody*) |
9212 | dynamic_linker="$host_os dyld" |
9213 | version_type=darwin |
9214 | need_lib_prefix=no |
9215 | need_version=no |
9216 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
9217 | soname_spec='${libname}${release}${major}$shared_ext' |
9218 | shlibpath_overrides_runpath=yes |
9219 | shlibpath_var=DYLD_LIBRARY_PATH |
9220 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
9221 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
9222 | if test "$GCC" = yes; then |
9223 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
9224 | else |
9225 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
9226 | fi |
9227 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
9228 | ;; |
9229 | |
9230 | dgux*) |
9231 | version_type=linux |
9232 | need_lib_prefix=no |
9233 | need_version=no |
9234 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
9235 | soname_spec='${libname}${release}${shared_ext}$major' |
9236 | shlibpath_var=LD_LIBRARY_PATH |
9237 | ;; |
9238 | |
9239 | freebsd1*) |
9240 | dynamic_linker=no |
9241 | ;; |
9242 | |
9243 | kfreebsd*-gnu) |
9244 | version_type=linux |
9245 | need_lib_prefix=no |
9246 | need_version=no |
9247 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9248 | soname_spec='${libname}${release}${shared_ext}$major' |
9249 | shlibpath_var=LD_LIBRARY_PATH |
9250 | shlibpath_overrides_runpath=no |
9251 | hardcode_into_libs=yes |
9252 | dynamic_linker='GNU ld.so' |
9253 | ;; |
9254 | |
9255 | freebsd* | dragonfly*) |
9256 | # DragonFly does not have aout. When/if they implement a new |
9257 | # versioning mechanism, adjust this. |
9258 | if test -x /usr/bin/objformat; then |
9259 | objformat=`/usr/bin/objformat` |
9260 | else |
9261 | case $host_os in |
9262 | freebsd[123]*) objformat=aout ;; |
9263 | *) objformat=elf ;; |
9264 | esac |
9265 | fi |
9266 | version_type=freebsd-$objformat |
9267 | case $version_type in |
9268 | freebsd-elf*) |
9269 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9270 | need_version=no |
9271 | need_lib_prefix=no |
9272 | ;; |
9273 | freebsd-*) |
9274 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
9275 | need_version=yes |
9276 | ;; |
9277 | esac |
9278 | shlibpath_var=LD_LIBRARY_PATH |
9279 | case $host_os in |
9280 | freebsd2*) |
9281 | shlibpath_overrides_runpath=yes |
9282 | ;; |
9283 | freebsd3.[01]* | freebsdelf3.[01]*) |
9284 | shlibpath_overrides_runpath=yes |
9285 | hardcode_into_libs=yes |
9286 | ;; |
9287 | *) # from 3.2 on |
9288 | shlibpath_overrides_runpath=no |
9289 | hardcode_into_libs=yes |
9290 | ;; |
9291 | esac |
9292 | ;; |
9293 | |
9294 | gnu*) |
9295 | version_type=linux |
9296 | need_lib_prefix=no |
9297 | need_version=no |
9298 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
9299 | soname_spec='${libname}${release}${shared_ext}$major' |
9300 | shlibpath_var=LD_LIBRARY_PATH |
9301 | hardcode_into_libs=yes |
9302 | ;; |
9303 | |
9304 | hpux9* | hpux10* | hpux11*) |
9305 | # Give a soname corresponding to the major version so that dld.sl refuses to |
9306 | # link against other versions. |
9307 | version_type=sunos |
9308 | need_lib_prefix=no |
9309 | need_version=no |
9310 | case $host_cpu in |
9311 | ia64*) |
9312 | shrext_cmds='.so' |
9313 | hardcode_into_libs=yes |
9314 | dynamic_linker="$host_os dld.so" |
9315 | shlibpath_var=LD_LIBRARY_PATH |
9316 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
9317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9318 | soname_spec='${libname}${release}${shared_ext}$major' |
9319 | if test "X$HPUX_IA64_MODE" = X32; then |
9320 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
9321 | else |
9322 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
9323 | fi |
9324 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
9325 | ;; |
9326 | hppa*64*) |
9327 | shrext_cmds='.sl' |
9328 | hardcode_into_libs=yes |
9329 | dynamic_linker="$host_os dld.sl" |
9330 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
9331 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
9332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9333 | soname_spec='${libname}${release}${shared_ext}$major' |
9334 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
9335 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
9336 | ;; |
9337 | *) |
9338 | shrext_cmds='.sl' |
9339 | dynamic_linker="$host_os dld.sl" |
9340 | shlibpath_var=SHLIB_PATH |
9341 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
9342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9343 | soname_spec='${libname}${release}${shared_ext}$major' |
9344 | ;; |
9345 | esac |
9346 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
9347 | postinstall_cmds='chmod 555 $lib' |
9348 | ;; |
9349 | |
9350 | irix5* | irix6* | nonstopux*) |
9351 | case $host_os in |
9352 | nonstopux*) version_type=nonstopux ;; |
9353 | *) |
9354 | if test "$lt_cv_prog_gnu_ld" = yes; then |
9355 | version_type=linux |
9356 | else |
9357 | version_type=irix |
9358 | fi ;; |
9359 | esac |
9360 | need_lib_prefix=no |
9361 | need_version=no |
9362 | soname_spec='${libname}${release}${shared_ext}$major' |
9363 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
9364 | case $host_os in |
9365 | irix5* | nonstopux*) |
9366 | libsuff= shlibsuff= |
9367 | ;; |
9368 | *) |
9369 | case $LD in # libtool.m4 will add one of these switches to LD |
9370 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
9371 | libsuff= shlibsuff= libmagic=32-bit;; |
9372 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
9373 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
9374 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
9375 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
9376 | *) libsuff= shlibsuff= libmagic=never-match;; |
9377 | esac |
9378 | ;; |
9379 | esac |
9380 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
9381 | shlibpath_overrides_runpath=no |
9382 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
9383 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
9384 | hardcode_into_libs=yes |
9385 | ;; |
9386 | |
9387 | # No shared lib support for Linux oldld, aout, or coff. |
9388 | linux*oldld* | linux*aout* | linux*coff*) |
9389 | dynamic_linker=no |
9390 | ;; |
9391 | |
9392 | # This must be Linux ELF. |
9393 | linux*) |
9394 | version_type=linux |
9395 | need_lib_prefix=no |
9396 | need_version=no |
9397 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9398 | soname_spec='${libname}${release}${shared_ext}$major' |
9399 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
9400 | shlibpath_var=LD_LIBRARY_PATH |
9401 | shlibpath_overrides_runpath=no |
9402 | # This implies no fast_install, which is unacceptable. |
9403 | # Some rework will be needed to allow for fast_install |
9404 | # before this can be enabled. |
9405 | hardcode_into_libs=yes |
9406 | |
9407 | # Append ld.so.conf contents to the search path |
9408 | if test -f /etc/ld.so.conf; then |
9409 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
9410 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
9411 | fi |
9412 | |
9413 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
9414 | # powerpc, because MkLinux only supported shared libraries with the |
9415 | # GNU dynamic linker. Since this was broken with cross compilers, |
9416 | # most powerpc-linux boxes support dynamic linking these days and |
9417 | # people can always --disable-shared, the test was removed, and we |
9418 | # assume the GNU/Linux dynamic linker is in use. |
9419 | dynamic_linker='GNU/Linux ld.so' |
9420 | ;; |
9421 | |
9422 | knetbsd*-gnu) |
9423 | version_type=linux |
9424 | need_lib_prefix=no |
9425 | need_version=no |
9426 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9427 | soname_spec='${libname}${release}${shared_ext}$major' |
9428 | shlibpath_var=LD_LIBRARY_PATH |
9429 | shlibpath_overrides_runpath=no |
9430 | hardcode_into_libs=yes |
9431 | dynamic_linker='GNU ld.so' |
9432 | ;; |
9433 | |
9434 | netbsd*) |
9435 | version_type=sunos |
9436 | need_lib_prefix=no |
9437 | need_version=no |
9438 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
9439 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9440 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9441 | dynamic_linker='NetBSD (a.out) ld.so' |
9442 | else |
9443 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9444 | soname_spec='${libname}${release}${shared_ext}$major' |
9445 | dynamic_linker='NetBSD ld.elf_so' |
9446 | fi |
9447 | shlibpath_var=LD_LIBRARY_PATH |
9448 | shlibpath_overrides_runpath=yes |
9449 | hardcode_into_libs=yes |
9450 | ;; |
9451 | |
9452 | newsos6) |
9453 | version_type=linux |
9454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9455 | shlibpath_var=LD_LIBRARY_PATH |
9456 | shlibpath_overrides_runpath=yes |
9457 | ;; |
9458 | |
9459 | nto-qnx*) |
9460 | version_type=linux |
9461 | need_lib_prefix=no |
9462 | need_version=no |
9463 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9464 | soname_spec='${libname}${release}${shared_ext}$major' |
9465 | shlibpath_var=LD_LIBRARY_PATH |
9466 | shlibpath_overrides_runpath=yes |
9467 | ;; |
9468 | |
9469 | openbsd*) |
9470 | version_type=sunos |
9471 | need_lib_prefix=no |
9472 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
9473 | case $host_os in |
9474 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
9475 | *) need_version=no ;; |
9476 | esac |
9477 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9478 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9479 | shlibpath_var=LD_LIBRARY_PATH |
9480 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9481 | case $host_os in |
9482 | openbsd2.[89] | openbsd2.[89].*) |
9483 | shlibpath_overrides_runpath=no |
9484 | ;; |
9485 | *) |
9486 | shlibpath_overrides_runpath=yes |
9487 | ;; |
9488 | esac |
9489 | else |
9490 | shlibpath_overrides_runpath=yes |
9491 | fi |
9492 | ;; |
9493 | |
9494 | os2*) |
9495 | libname_spec='$name' |
9496 | shrext_cmds=".dll" |
9497 | need_lib_prefix=no |
9498 | library_names_spec='$libname${shared_ext} $libname.a' |
9499 | dynamic_linker='OS/2 ld.exe' |
9500 | shlibpath_var=LIBPATH |
9501 | ;; |
9502 | |
9503 | osf3* | osf4* | osf5*) |
9504 | version_type=osf |
9505 | need_lib_prefix=no |
9506 | need_version=no |
9507 | soname_spec='${libname}${release}${shared_ext}$major' |
9508 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9509 | shlibpath_var=LD_LIBRARY_PATH |
9510 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
9511 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
9512 | ;; |
9513 | |
9514 | sco3.2v5*) |
9515 | version_type=osf |
9516 | soname_spec='${libname}${release}${shared_ext}$major' |
9517 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9518 | shlibpath_var=LD_LIBRARY_PATH |
9519 | ;; |
9520 | |
9521 | solaris*) |
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 | hardcode_into_libs=yes |
9530 | # ldd complains unless libraries are executable |
9531 | postinstall_cmds='chmod +x $lib' |
9532 | ;; |
9533 | |
9534 | sunos4*) |
9535 | version_type=sunos |
9536 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9537 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
9538 | shlibpath_var=LD_LIBRARY_PATH |
9539 | shlibpath_overrides_runpath=yes |
9540 | if test "$with_gnu_ld" = yes; then |
9541 | need_lib_prefix=no |
9542 | fi |
9543 | need_version=yes |
9544 | ;; |
9545 | |
9546 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
9547 | version_type=linux |
9548 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9549 | soname_spec='${libname}${release}${shared_ext}$major' |
9550 | shlibpath_var=LD_LIBRARY_PATH |
9551 | case $host_vendor in |
9552 | sni) |
9553 | shlibpath_overrides_runpath=no |
9554 | need_lib_prefix=no |
9555 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
9556 | runpath_var=LD_RUN_PATH |
9557 | ;; |
9558 | siemens) |
9559 | need_lib_prefix=no |
9560 | ;; |
9561 | motorola) |
9562 | need_lib_prefix=no |
9563 | need_version=no |
9564 | shlibpath_overrides_runpath=no |
9565 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
9566 | ;; |
9567 | esac |
9568 | ;; |
9569 | |
9570 | sysv4*MP*) |
9571 | if test -d /usr/nec ;then |
9572 | version_type=linux |
9573 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
9574 | soname_spec='$libname${shared_ext}.$major' |
9575 | shlibpath_var=LD_LIBRARY_PATH |
9576 | fi |
9577 | ;; |
9578 | |
9579 | uts4*) |
9580 | version_type=linux |
9581 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9582 | soname_spec='${libname}${release}${shared_ext}$major' |
9583 | shlibpath_var=LD_LIBRARY_PATH |
9584 | ;; |
9585 | |
9586 | *) |
9587 | dynamic_linker=no |
9588 | ;; |
9589 | esac |
9590 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
9591 | echo "${ECHO_T}$dynamic_linker" >&6; } |
9592 | test "$dynamic_linker" = no && can_build_shared=no |
9593 | |
9594 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
9595 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
9596 | hardcode_action= |
9597 | if test -n "$hardcode_libdir_flag_spec" || \ |
9598 | test -n "$runpath_var" || \ |
9599 | test "X$hardcode_automatic" = "Xyes" ; then |
9600 | |
9601 | # We can hardcode non-existant directories. |
9602 | if test "$hardcode_direct" != no && |
9603 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
9604 | # have to relink, otherwise we might link with an installed library |
9605 | # when we should be linking with a yet-to-be-installed one |
9606 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
9607 | test "$hardcode_minus_L" != no; then |
9608 | # Linking always hardcodes the temporary library directory. |
9609 | hardcode_action=relink |
9610 | else |
9611 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
9612 | hardcode_action=immediate |
9613 | fi |
9614 | else |
9615 | # We cannot hardcode anything, or else we can only hardcode existing |
9616 | # directories. |
9617 | hardcode_action=unsupported |
9618 | fi |
9619 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9620 | echo "${ECHO_T}$hardcode_action" >&6; } |
9621 | |
9622 | if test "$hardcode_action" = relink; then |
9623 | # Fast installation is not supported |
9624 | enable_fast_install=no |
9625 | elif test "$shlibpath_overrides_runpath" = yes || |
9626 | test "$enable_shared" = no; then |
9627 | # Fast installation is not necessary |
9628 | enable_fast_install=needless |
9629 | fi |
9630 | |
9631 | striplib= |
9632 | old_striplib= |
9633 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
9634 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
9635 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
9636 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
9637 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
9638 | { echo "$as_me:$LINENO: result: yes" >&5 |
9639 | echo "${ECHO_T}yes" >&6; } |
9640 | else |
9641 | # FIXME - insert some real tests, host_os isn't really good enough |
9642 | case $host_os in |
9643 | darwin*) |
9644 | if test -n "$STRIP" ; then |
9645 | striplib="$STRIP -x" |
9646 | { echo "$as_me:$LINENO: result: yes" >&5 |
9647 | echo "${ECHO_T}yes" >&6; } |
9648 | else |
9649 | { echo "$as_me:$LINENO: result: no" >&5 |
9650 | echo "${ECHO_T}no" >&6; } |
9651 | fi |
9652 | ;; |
9653 | *) |
9654 | { echo "$as_me:$LINENO: result: no" >&5 |
9655 | echo "${ECHO_T}no" >&6; } |
9656 | ;; |
9657 | esac |
9658 | fi |
9659 | |
9660 | if test "x$enable_dlopen" != xyes; then |
9661 | enable_dlopen=unknown |
9662 | enable_dlopen_self=unknown |
9663 | enable_dlopen_self_static=unknown |
9664 | else |
9665 | lt_cv_dlopen=no |
9666 | lt_cv_dlopen_libs= |
9667 | |
9668 | case $host_os in |
9669 | beos*) |
9670 | lt_cv_dlopen="load_add_on" |
9671 | lt_cv_dlopen_libs= |
9672 | lt_cv_dlopen_self=yes |
9673 | ;; |
9674 | |
9675 | mingw* | pw32*) |
9676 | lt_cv_dlopen="LoadLibrary" |
9677 | lt_cv_dlopen_libs= |
9678 | ;; |
9679 | |
9680 | cygwin*) |
9681 | lt_cv_dlopen="dlopen" |
9682 | lt_cv_dlopen_libs= |
9683 | ;; |
9684 | |
9685 | darwin*) |
9686 | # if libdl is installed we need to link against it |
9687 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9688 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
9689 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9690 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9691 | else |
9692 | ac_check_lib_save_LIBS=$LIBS |
9693 | LIBS="-ldl $LIBS" |
9694 | cat >conftest.$ac_ext <<_ACEOF |
9695 | /* confdefs.h. */ |
9696 | _ACEOF |
9697 | cat confdefs.h >>conftest.$ac_ext |
9698 | cat >>conftest.$ac_ext <<_ACEOF |
9699 | /* end confdefs.h. */ |
9700 | |
9701 | /* Override any GCC internal prototype to avoid an error. |
9702 | Use char because int might match the return type of a GCC |
9703 | builtin and then its argument prototype would still apply. */ |
9704 | #ifdef __cplusplus |
9705 | extern "C" |
9706 | #endif |
9707 | char dlopen (); |
9708 | int |
9709 | main () |
9710 | { |
9711 | return dlopen (); |
9712 | ; |
9713 | return 0; |
9714 | } |
9715 | _ACEOF |
9716 | rm -f conftest.$ac_objext conftest$ac_exeext |
9717 | if { (ac_try="$ac_link" |
9718 | case "(($ac_try" in |
9719 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9720 | *) ac_try_echo=$ac_try;; |
9721 | esac |
9722 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9723 | (eval "$ac_link") 2>conftest.er1 |
9724 | ac_status=$? |
9725 | grep -v '^ *+' conftest.er1 >conftest.err |
9726 | rm -f conftest.er1 |
9727 | cat conftest.err >&5 |
9728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9729 | (exit $ac_status); } && { |
9730 | test -z "$ac_c_werror_flag" || |
9731 | test ! -s conftest.err |
9732 | } && test -s conftest$ac_exeext && |
9733 | $as_test_x conftest$ac_exeext; then |
9734 | ac_cv_lib_dl_dlopen=yes |
9735 | else |
9736 | echo "$as_me: failed program was:" >&5 |
9737 | sed 's/^/| /' conftest.$ac_ext >&5 |
9738 | |
9739 | ac_cv_lib_dl_dlopen=no |
9740 | fi |
9741 | |
9742 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9743 | conftest$ac_exeext conftest.$ac_ext |
9744 | LIBS=$ac_check_lib_save_LIBS |
9745 | fi |
9746 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9747 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
9748 | if test $ac_cv_lib_dl_dlopen = yes; then |
9749 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9750 | else |
9751 | |
9752 | lt_cv_dlopen="dyld" |
9753 | lt_cv_dlopen_libs= |
9754 | lt_cv_dlopen_self=yes |
9755 | |
9756 | fi |
9757 | |
9758 | ;; |
9759 | |
9760 | *) |
9761 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
9762 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
9763 | if test "${ac_cv_func_shl_load+set}" = set; then |
9764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9765 | else |
9766 | cat >conftest.$ac_ext <<_ACEOF |
9767 | /* confdefs.h. */ |
9768 | _ACEOF |
9769 | cat confdefs.h >>conftest.$ac_ext |
9770 | cat >>conftest.$ac_ext <<_ACEOF |
9771 | /* end confdefs.h. */ |
9772 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
9773 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9774 | #define shl_load innocuous_shl_load |
9775 | |
9776 | /* System header to define __stub macros and hopefully few prototypes, |
9777 | which can conflict with char shl_load (); below. |
9778 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9779 | <limits.h> exists even on freestanding compilers. */ |
9780 | |
9781 | #ifdef __STDC__ |
9782 | # include <limits.h> |
9783 | #else |
9784 | # include <assert.h> |
9785 | #endif |
9786 | |
9787 | #undef shl_load |
9788 | |
9789 | /* Override any GCC internal prototype to avoid an error. |
9790 | Use char because int might match the return type of a GCC |
9791 | builtin and then its argument prototype would still apply. */ |
9792 | #ifdef __cplusplus |
9793 | extern "C" |
9794 | #endif |
9795 | char shl_load (); |
9796 | /* The GNU C library defines this for functions which it implements |
9797 | to always fail with ENOSYS. Some functions are actually named |
9798 | something starting with __ and the normal name is an alias. */ |
9799 | #if defined __stub_shl_load || defined __stub___shl_load |
9800 | choke me |
9801 | #endif |
9802 | |
9803 | int |
9804 | main () |
9805 | { |
9806 | return shl_load (); |
9807 | ; |
9808 | return 0; |
9809 | } |
9810 | _ACEOF |
9811 | rm -f conftest.$ac_objext conftest$ac_exeext |
9812 | if { (ac_try="$ac_link" |
9813 | case "(($ac_try" in |
9814 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9815 | *) ac_try_echo=$ac_try;; |
9816 | esac |
9817 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9818 | (eval "$ac_link") 2>conftest.er1 |
9819 | ac_status=$? |
9820 | grep -v '^ *+' conftest.er1 >conftest.err |
9821 | rm -f conftest.er1 |
9822 | cat conftest.err >&5 |
9823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9824 | (exit $ac_status); } && { |
9825 | test -z "$ac_c_werror_flag" || |
9826 | test ! -s conftest.err |
9827 | } && test -s conftest$ac_exeext && |
9828 | $as_test_x conftest$ac_exeext; then |
9829 | ac_cv_func_shl_load=yes |
9830 | else |
9831 | echo "$as_me: failed program was:" >&5 |
9832 | sed 's/^/| /' conftest.$ac_ext >&5 |
9833 | |
9834 | ac_cv_func_shl_load=no |
9835 | fi |
9836 | |
9837 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9838 | conftest$ac_exeext conftest.$ac_ext |
9839 | fi |
9840 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
9841 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
9842 | if test $ac_cv_func_shl_load = yes; then |
9843 | lt_cv_dlopen="shl_load" |
9844 | else |
9845 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
9846 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
9847 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
9848 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9849 | else |
9850 | ac_check_lib_save_LIBS=$LIBS |
9851 | LIBS="-ldld $LIBS" |
9852 | cat >conftest.$ac_ext <<_ACEOF |
9853 | /* confdefs.h. */ |
9854 | _ACEOF |
9855 | cat confdefs.h >>conftest.$ac_ext |
9856 | cat >>conftest.$ac_ext <<_ACEOF |
9857 | /* end confdefs.h. */ |
9858 | |
9859 | /* Override any GCC internal prototype to avoid an error. |
9860 | Use char because int might match the return type of a GCC |
9861 | builtin and then its argument prototype would still apply. */ |
9862 | #ifdef __cplusplus |
9863 | extern "C" |
9864 | #endif |
9865 | char shl_load (); |
9866 | int |
9867 | main () |
9868 | { |
9869 | return shl_load (); |
9870 | ; |
9871 | return 0; |
9872 | } |
9873 | _ACEOF |
9874 | rm -f conftest.$ac_objext conftest$ac_exeext |
9875 | if { (ac_try="$ac_link" |
9876 | case "(($ac_try" in |
9877 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9878 | *) ac_try_echo=$ac_try;; |
9879 | esac |
9880 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9881 | (eval "$ac_link") 2>conftest.er1 |
9882 | ac_status=$? |
9883 | grep -v '^ *+' conftest.er1 >conftest.err |
9884 | rm -f conftest.er1 |
9885 | cat conftest.err >&5 |
9886 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9887 | (exit $ac_status); } && { |
9888 | test -z "$ac_c_werror_flag" || |
9889 | test ! -s conftest.err |
9890 | } && test -s conftest$ac_exeext && |
9891 | $as_test_x conftest$ac_exeext; then |
9892 | ac_cv_lib_dld_shl_load=yes |
9893 | else |
9894 | echo "$as_me: failed program was:" >&5 |
9895 | sed 's/^/| /' conftest.$ac_ext >&5 |
9896 | |
9897 | ac_cv_lib_dld_shl_load=no |
9898 | fi |
9899 | |
9900 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9901 | conftest$ac_exeext conftest.$ac_ext |
9902 | LIBS=$ac_check_lib_save_LIBS |
9903 | fi |
9904 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
9905 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
9906 | if test $ac_cv_lib_dld_shl_load = yes; then |
9907 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
9908 | else |
9909 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
9910 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
9911 | if test "${ac_cv_func_dlopen+set}" = set; then |
9912 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9913 | else |
9914 | cat >conftest.$ac_ext <<_ACEOF |
9915 | /* confdefs.h. */ |
9916 | _ACEOF |
9917 | cat confdefs.h >>conftest.$ac_ext |
9918 | cat >>conftest.$ac_ext <<_ACEOF |
9919 | /* end confdefs.h. */ |
9920 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
9921 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9922 | #define dlopen innocuous_dlopen |
9923 | |
9924 | /* System header to define __stub macros and hopefully few prototypes, |
9925 | which can conflict with char dlopen (); below. |
9926 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9927 | <limits.h> exists even on freestanding compilers. */ |
9928 | |
9929 | #ifdef __STDC__ |
9930 | # include <limits.h> |
9931 | #else |
9932 | # include <assert.h> |
9933 | #endif |
9934 | |
9935 | #undef dlopen |
9936 | |
9937 | /* Override any GCC internal prototype to avoid an error. |
9938 | Use char because int might match the return type of a GCC |
9939 | builtin and then its argument prototype would still apply. */ |
9940 | #ifdef __cplusplus |
9941 | extern "C" |
9942 | #endif |
9943 | char dlopen (); |
9944 | /* The GNU C library defines this for functions which it implements |
9945 | to always fail with ENOSYS. Some functions are actually named |
9946 | something starting with __ and the normal name is an alias. */ |
9947 | #if defined __stub_dlopen || defined __stub___dlopen |
9948 | choke me |
9949 | #endif |
9950 | |
9951 | int |
9952 | main () |
9953 | { |
9954 | return dlopen (); |
9955 | ; |
9956 | return 0; |
9957 | } |
9958 | _ACEOF |
9959 | rm -f conftest.$ac_objext conftest$ac_exeext |
9960 | if { (ac_try="$ac_link" |
9961 | case "(($ac_try" in |
9962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9963 | *) ac_try_echo=$ac_try;; |
9964 | esac |
9965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9966 | (eval "$ac_link") 2>conftest.er1 |
9967 | ac_status=$? |
9968 | grep -v '^ *+' conftest.er1 >conftest.err |
9969 | rm -f conftest.er1 |
9970 | cat conftest.err >&5 |
9971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9972 | (exit $ac_status); } && { |
9973 | test -z "$ac_c_werror_flag" || |
9974 | test ! -s conftest.err |
9975 | } && test -s conftest$ac_exeext && |
9976 | $as_test_x conftest$ac_exeext; then |
9977 | ac_cv_func_dlopen=yes |
9978 | else |
9979 | echo "$as_me: failed program was:" >&5 |
9980 | sed 's/^/| /' conftest.$ac_ext >&5 |
9981 | |
9982 | ac_cv_func_dlopen=no |
9983 | fi |
9984 | |
9985 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
9986 | conftest$ac_exeext conftest.$ac_ext |
9987 | fi |
9988 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
9989 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
9990 | if test $ac_cv_func_dlopen = yes; then |
9991 | lt_cv_dlopen="dlopen" |
9992 | else |
9993 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9994 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
9995 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9997 | else |
9998 | ac_check_lib_save_LIBS=$LIBS |
9999 | LIBS="-ldl $LIBS" |
10000 | cat >conftest.$ac_ext <<_ACEOF |
10001 | /* confdefs.h. */ |
10002 | _ACEOF |
10003 | cat confdefs.h >>conftest.$ac_ext |
10004 | cat >>conftest.$ac_ext <<_ACEOF |
10005 | /* end confdefs.h. */ |
10006 | |
10007 | /* Override any GCC internal prototype to avoid an error. |
10008 | Use char because int might match the return type of a GCC |
10009 | builtin and then its argument prototype would still apply. */ |
10010 | #ifdef __cplusplus |
10011 | extern "C" |
10012 | #endif |
10013 | char dlopen (); |
10014 | int |
10015 | main () |
10016 | { |
10017 | return dlopen (); |
10018 | ; |
10019 | return 0; |
10020 | } |
10021 | _ACEOF |
10022 | rm -f conftest.$ac_objext conftest$ac_exeext |
10023 | if { (ac_try="$ac_link" |
10024 | case "(($ac_try" in |
10025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10026 | *) ac_try_echo=$ac_try;; |
10027 | esac |
10028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10029 | (eval "$ac_link") 2>conftest.er1 |
10030 | ac_status=$? |
10031 | grep -v '^ *+' conftest.er1 >conftest.err |
10032 | rm -f conftest.er1 |
10033 | cat conftest.err >&5 |
10034 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10035 | (exit $ac_status); } && { |
10036 | test -z "$ac_c_werror_flag" || |
10037 | test ! -s conftest.err |
10038 | } && test -s conftest$ac_exeext && |
10039 | $as_test_x conftest$ac_exeext; then |
10040 | ac_cv_lib_dl_dlopen=yes |
10041 | else |
10042 | echo "$as_me: failed program was:" >&5 |
10043 | sed 's/^/| /' conftest.$ac_ext >&5 |
10044 | |
10045 | ac_cv_lib_dl_dlopen=no |
10046 | fi |
10047 | |
10048 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10049 | conftest$ac_exeext conftest.$ac_ext |
10050 | LIBS=$ac_check_lib_save_LIBS |
10051 | fi |
10052 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
10053 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
10054 | if test $ac_cv_lib_dl_dlopen = yes; then |
10055 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
10056 | else |
10057 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
10058 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
10059 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
10060 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10061 | else |
10062 | ac_check_lib_save_LIBS=$LIBS |
10063 | LIBS="-lsvld $LIBS" |
10064 | cat >conftest.$ac_ext <<_ACEOF |
10065 | /* confdefs.h. */ |
10066 | _ACEOF |
10067 | cat confdefs.h >>conftest.$ac_ext |
10068 | cat >>conftest.$ac_ext <<_ACEOF |
10069 | /* end confdefs.h. */ |
10070 | |
10071 | /* Override any GCC internal prototype to avoid an error. |
10072 | Use char because int might match the return type of a GCC |
10073 | builtin and then its argument prototype would still apply. */ |
10074 | #ifdef __cplusplus |
10075 | extern "C" |
10076 | #endif |
10077 | char dlopen (); |
10078 | int |
10079 | main () |
10080 | { |
10081 | return dlopen (); |
10082 | ; |
10083 | return 0; |
10084 | } |
10085 | _ACEOF |
10086 | rm -f conftest.$ac_objext conftest$ac_exeext |
10087 | if { (ac_try="$ac_link" |
10088 | case "(($ac_try" in |
10089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10090 | *) ac_try_echo=$ac_try;; |
10091 | esac |
10092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10093 | (eval "$ac_link") 2>conftest.er1 |
10094 | ac_status=$? |
10095 | grep -v '^ *+' conftest.er1 >conftest.err |
10096 | rm -f conftest.er1 |
10097 | cat conftest.err >&5 |
10098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10099 | (exit $ac_status); } && { |
10100 | test -z "$ac_c_werror_flag" || |
10101 | test ! -s conftest.err |
10102 | } && test -s conftest$ac_exeext && |
10103 | $as_test_x conftest$ac_exeext; then |
10104 | ac_cv_lib_svld_dlopen=yes |
10105 | else |
10106 | echo "$as_me: failed program was:" >&5 |
10107 | sed 's/^/| /' conftest.$ac_ext >&5 |
10108 | |
10109 | ac_cv_lib_svld_dlopen=no |
10110 | fi |
10111 | |
10112 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10113 | conftest$ac_exeext conftest.$ac_ext |
10114 | LIBS=$ac_check_lib_save_LIBS |
10115 | fi |
10116 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
10117 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
10118 | if test $ac_cv_lib_svld_dlopen = yes; then |
10119 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
10120 | else |
10121 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
10122 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
10123 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
10124 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10125 | else |
10126 | ac_check_lib_save_LIBS=$LIBS |
10127 | LIBS="-ldld $LIBS" |
10128 | cat >conftest.$ac_ext <<_ACEOF |
10129 | /* confdefs.h. */ |
10130 | _ACEOF |
10131 | cat confdefs.h >>conftest.$ac_ext |
10132 | cat >>conftest.$ac_ext <<_ACEOF |
10133 | /* end confdefs.h. */ |
10134 | |
10135 | /* Override any GCC internal prototype to avoid an error. |
10136 | Use char because int might match the return type of a GCC |
10137 | builtin and then its argument prototype would still apply. */ |
10138 | #ifdef __cplusplus |
10139 | extern "C" |
10140 | #endif |
10141 | char dld_link (); |
10142 | int |
10143 | main () |
10144 | { |
10145 | return dld_link (); |
10146 | ; |
10147 | return 0; |
10148 | } |
10149 | _ACEOF |
10150 | rm -f conftest.$ac_objext conftest$ac_exeext |
10151 | if { (ac_try="$ac_link" |
10152 | case "(($ac_try" in |
10153 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10154 | *) ac_try_echo=$ac_try;; |
10155 | esac |
10156 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10157 | (eval "$ac_link") 2>conftest.er1 |
10158 | ac_status=$? |
10159 | grep -v '^ *+' conftest.er1 >conftest.err |
10160 | rm -f conftest.er1 |
10161 | cat conftest.err >&5 |
10162 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10163 | (exit $ac_status); } && { |
10164 | test -z "$ac_c_werror_flag" || |
10165 | test ! -s conftest.err |
10166 | } && test -s conftest$ac_exeext && |
10167 | $as_test_x conftest$ac_exeext; then |
10168 | ac_cv_lib_dld_dld_link=yes |
10169 | else |
10170 | echo "$as_me: failed program was:" >&5 |
10171 | sed 's/^/| /' conftest.$ac_ext >&5 |
10172 | |
10173 | ac_cv_lib_dld_dld_link=no |
10174 | fi |
10175 | |
10176 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
10177 | conftest$ac_exeext conftest.$ac_ext |
10178 | LIBS=$ac_check_lib_save_LIBS |
10179 | fi |
10180 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
10181 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
10182 | if test $ac_cv_lib_dld_dld_link = yes; then |
10183 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
10184 | fi |
10185 | |
10186 | |
10187 | fi |
10188 | |
10189 | |
10190 | fi |
10191 | |
10192 | |
10193 | fi |
10194 | |
10195 | |
10196 | fi |
10197 | |
10198 | |
10199 | fi |
10200 | |
10201 | ;; |
10202 | esac |
10203 | |
10204 | if test "x$lt_cv_dlopen" != xno; then |
10205 | enable_dlopen=yes |
10206 | else |
10207 | enable_dlopen=no |
10208 | fi |
10209 | |
10210 | case $lt_cv_dlopen in |
10211 | dlopen) |
10212 | save_CPPFLAGS="$CPPFLAGS" |
10213 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
10214 | |
10215 | save_LDFLAGS="$LDFLAGS" |
10216 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
10217 | |
10218 | save_LIBS="$LIBS" |
10219 | LIBS="$lt_cv_dlopen_libs $LIBS" |
10220 | |
10221 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
10222 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
10223 | if test "${lt_cv_dlopen_self+set}" = set; then |
10224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10225 | else |
10226 | if test "$cross_compiling" = yes; then : |
10227 | lt_cv_dlopen_self=cross |
10228 | else |
10229 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10230 | lt_status=$lt_dlunknown |
10231 | cat > conftest.$ac_ext <<EOF |
10232 | #line 10232 "configure" |
10233 | #include "confdefs.h" |
10234 | |
10235 | #if HAVE_DLFCN_H |
10236 | #include <dlfcn.h> |
10237 | #endif |
10238 | |
10239 | #include <stdio.h> |
10240 | |
10241 | #ifdef RTLD_GLOBAL |
10242 | # define LT_DLGLOBAL RTLD_GLOBAL |
10243 | #else |
10244 | # ifdef DL_GLOBAL |
10245 | # define LT_DLGLOBAL DL_GLOBAL |
10246 | # else |
10247 | # define LT_DLGLOBAL 0 |
10248 | # endif |
10249 | #endif |
10250 | |
10251 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10252 | find out it does not work in some platform. */ |
10253 | #ifndef LT_DLLAZY_OR_NOW |
10254 | # ifdef RTLD_LAZY |
10255 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
10256 | # else |
10257 | # ifdef DL_LAZY |
10258 | # define LT_DLLAZY_OR_NOW DL_LAZY |
10259 | # else |
10260 | # ifdef RTLD_NOW |
10261 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10262 | # else |
10263 | # ifdef DL_NOW |
10264 | # define LT_DLLAZY_OR_NOW DL_NOW |
10265 | # else |
10266 | # define LT_DLLAZY_OR_NOW 0 |
10267 | # endif |
10268 | # endif |
10269 | # endif |
10270 | # endif |
10271 | #endif |
10272 | |
10273 | #ifdef __cplusplus |
10274 | extern "C" void exit (int); |
10275 | #endif |
10276 | |
10277 | void fnord() { int i=42;} |
10278 | int main () |
10279 | { |
10280 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10281 | int status = $lt_dlunknown; |
10282 | |
10283 | if (self) |
10284 | { |
10285 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10286 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10287 | /* dlclose (self); */ |
10288 | } |
10289 | |
10290 | exit (status); |
10291 | } |
10292 | EOF |
10293 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10294 | (eval $ac_link) 2>&5 |
10295 | ac_status=$? |
10296 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10297 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10298 | (./conftest; exit; ) >&5 2>/dev/null |
10299 | lt_status=$? |
10300 | case x$lt_status in |
10301 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
10302 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
10303 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
10304 | esac |
10305 | else : |
10306 | # compilation failed |
10307 | lt_cv_dlopen_self=no |
10308 | fi |
10309 | fi |
10310 | rm -fr conftest* |
10311 | |
10312 | |
10313 | fi |
10314 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
10315 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
10316 | |
10317 | if test "x$lt_cv_dlopen_self" = xyes; then |
10318 | LDFLAGS="$LDFLAGS $link_static_flag" |
10319 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
10320 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
10321 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
10322 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10323 | else |
10324 | if test "$cross_compiling" = yes; then : |
10325 | lt_cv_dlopen_self_static=cross |
10326 | else |
10327 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10328 | lt_status=$lt_dlunknown |
10329 | cat > conftest.$ac_ext <<EOF |
10330 | #line 10330 "configure" |
10331 | #include "confdefs.h" |
10332 | |
10333 | #if HAVE_DLFCN_H |
10334 | #include <dlfcn.h> |
10335 | #endif |
10336 | |
10337 | #include <stdio.h> |
10338 | |
10339 | #ifdef RTLD_GLOBAL |
10340 | # define LT_DLGLOBAL RTLD_GLOBAL |
10341 | #else |
10342 | # ifdef DL_GLOBAL |
10343 | # define LT_DLGLOBAL DL_GLOBAL |
10344 | # else |
10345 | # define LT_DLGLOBAL 0 |
10346 | # endif |
10347 | #endif |
10348 | |
10349 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10350 | find out it does not work in some platform. */ |
10351 | #ifndef LT_DLLAZY_OR_NOW |
10352 | # ifdef RTLD_LAZY |
10353 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
10354 | # else |
10355 | # ifdef DL_LAZY |
10356 | # define LT_DLLAZY_OR_NOW DL_LAZY |
10357 | # else |
10358 | # ifdef RTLD_NOW |
10359 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10360 | # else |
10361 | # ifdef DL_NOW |
10362 | # define LT_DLLAZY_OR_NOW DL_NOW |
10363 | # else |
10364 | # define LT_DLLAZY_OR_NOW 0 |
10365 | # endif |
10366 | # endif |
10367 | # endif |
10368 | # endif |
10369 | #endif |
10370 | |
10371 | #ifdef __cplusplus |
10372 | extern "C" void exit (int); |
10373 | #endif |
10374 | |
10375 | void fnord() { int i=42;} |
10376 | int main () |
10377 | { |
10378 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10379 | int status = $lt_dlunknown; |
10380 | |
10381 | if (self) |
10382 | { |
10383 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10384 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10385 | /* dlclose (self); */ |
10386 | } |
10387 | |
10388 | exit (status); |
10389 | } |
10390 | EOF |
10391 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10392 | (eval $ac_link) 2>&5 |
10393 | ac_status=$? |
10394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10395 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10396 | (./conftest; exit; ) >&5 2>/dev/null |
10397 | lt_status=$? |
10398 | case x$lt_status in |
10399 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
10400 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
10401 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
10402 | esac |
10403 | else : |
10404 | # compilation failed |
10405 | lt_cv_dlopen_self_static=no |
10406 | fi |
10407 | fi |
10408 | rm -fr conftest* |
10409 | |
10410 | |
10411 | fi |
10412 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10413 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
10414 | fi |
10415 | |
10416 | CPPFLAGS="$save_CPPFLAGS" |
10417 | LDFLAGS="$save_LDFLAGS" |
10418 | LIBS="$save_LIBS" |
10419 | ;; |
10420 | esac |
10421 | |
10422 | case $lt_cv_dlopen_self in |
10423 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
10424 | *) enable_dlopen_self=unknown ;; |
10425 | esac |
10426 | |
10427 | case $lt_cv_dlopen_self_static in |
10428 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
10429 | *) enable_dlopen_self_static=unknown ;; |
10430 | esac |
10431 | fi |
10432 | |
10433 | |
10434 | # Report which librarie types wil actually be built |
10435 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
10436 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
10437 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
10438 | echo "${ECHO_T}$can_build_shared" >&6; } |
10439 | |
10440 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
10441 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
10442 | test "$can_build_shared" = "no" && enable_shared=no |
10443 | |
10444 | # On AIX, shared libraries and static libraries use the same namespace, and |
10445 | # are all built from PIC. |
10446 | case $host_os in |
10447 | aix3*) |
10448 | test "$enable_shared" = yes && enable_static=no |
10449 | if test -n "$RANLIB"; then |
10450 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
10451 | postinstall_cmds='$RANLIB $lib' |
10452 | fi |
10453 | ;; |
10454 | |
10455 | aix4* | aix5*) |
10456 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10457 | test "$enable_shared" = yes && enable_static=no |
10458 | fi |
10459 | ;; |
10460 | esac |
10461 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
10462 | echo "${ECHO_T}$enable_shared" >&6; } |
10463 | |
10464 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
10465 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
10466 | # Make sure either enable_shared or enable_static is yes. |
10467 | test "$enable_shared" = yes || enable_static=yes |
10468 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
10469 | echo "${ECHO_T}$enable_static" >&6; } |
10470 | |
10471 | # The else clause should only fire when bootstrapping the |
10472 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
10473 | # with your package, and you will get complaints that there are |
10474 | # no rules to generate ltmain.sh. |
10475 | if test -f "$ltmain"; then |
10476 | # See if we are running on zsh, and set the options which allow our commands through |
10477 | # without removal of \ escapes. |
10478 | if test -n "${ZSH_VERSION+set}" ; then |
10479 | setopt NO_GLOB_SUBST |
10480 | fi |
10481 | # Now quote all the things that may contain metacharacters while being |
10482 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
10483 | # variables and quote the copies for generation of the libtool script. |
10484 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
10485 | SED SHELL STRIP \ |
10486 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
10487 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
10488 | deplibs_check_method reload_flag reload_cmds need_locks \ |
10489 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
10490 | lt_cv_sys_global_symbol_to_c_name_address \ |
10491 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
10492 | old_postinstall_cmds old_postuninstall_cmds \ |
10493 | compiler \ |
10494 | CC \ |
10495 | LD \ |
10496 | lt_prog_compiler_wl \ |
10497 | lt_prog_compiler_pic \ |
10498 | lt_prog_compiler_static \ |
10499 | lt_prog_compiler_no_builtin_flag \ |
10500 | export_dynamic_flag_spec \ |
10501 | thread_safe_flag_spec \ |
10502 | whole_archive_flag_spec \ |
10503 | enable_shared_with_static_runtimes \ |
10504 | old_archive_cmds \ |
10505 | old_archive_from_new_cmds \ |
10506 | predep_objects \ |
10507 | postdep_objects \ |
10508 | predeps \ |
10509 | postdeps \ |
10510 | compiler_lib_search_path \ |
10511 | archive_cmds \ |
10512 | archive_expsym_cmds \ |
10513 | postinstall_cmds \ |
10514 | postuninstall_cmds \ |
10515 | old_archive_from_expsyms_cmds \ |
10516 | allow_undefined_flag \ |
10517 | no_undefined_flag \ |
10518 | export_symbols_cmds \ |
10519 | hardcode_libdir_flag_spec \ |
10520 | hardcode_libdir_flag_spec_ld \ |
10521 | hardcode_libdir_separator \ |
10522 | hardcode_automatic \ |
10523 | module_cmds \ |
10524 | module_expsym_cmds \ |
10525 | lt_cv_prog_compiler_c_o \ |
10526 | exclude_expsyms \ |
10527 | include_expsyms; do |
10528 | |
10529 | case $var in |
10530 | old_archive_cmds | \ |
10531 | old_archive_from_new_cmds | \ |
10532 | archive_cmds | \ |
10533 | archive_expsym_cmds | \ |
10534 | module_cmds | \ |
10535 | module_expsym_cmds | \ |
10536 | old_archive_from_expsyms_cmds | \ |
10537 | export_symbols_cmds | \ |
10538 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
10539 | postinstall_cmds | postuninstall_cmds | \ |
10540 | old_postinstall_cmds | old_postuninstall_cmds | \ |
10541 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
10542 | # Double-quote double-evaled strings. |
10543 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
10544 | ;; |
10545 | *) |
10546 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
10547 | ;; |
10548 | esac |
10549 | done |
10550 | |
10551 | case $lt_echo in |
10552 | *'\$0 --fallback-echo"') |
10553 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
10554 | ;; |
10555 | esac |
10556 | |
10557 | cfgfile="${ofile}T" |
10558 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
10559 | $rm -f "$cfgfile" |
10560 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
10561 | echo "$as_me: creating $ofile" >&6;} |
10562 | |
10563 | cat <<__EOF__ >> "$cfgfile" |
10564 | #! $SHELL |
10565 | |
10566 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
10567 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
10568 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
10569 | # |
10570 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
10571 | # Free Software Foundation, Inc. |
10572 | # |
10573 | # This file is part of GNU Libtool: |
10574 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
10575 | # |
10576 | # This program is free software; you can redistribute it and/or modify |
10577 | # it under the terms of the GNU General Public License as published by |
10578 | # the Free Software Foundation; either version 2 of the License, or |
10579 | # (at your option) any later version. |
10580 | # |
10581 | # This program is distributed in the hope that it will be useful, but |
10582 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
10583 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
10584 | # General Public License for more details. |
10585 | # |
10586 | # You should have received a copy of the GNU General Public License |
10587 | # along with this program; if not, write to the Free Software |
10588 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
10589 | # |
10590 | # As a special exception to the GNU General Public License, if you |
10591 | # distribute this file as part of a program that contains a |
10592 | # configuration script generated by Autoconf, you may include it under |
10593 | # the same distribution terms that you use for the rest of that program. |
10594 | |
10595 | # A sed program that does not truncate output. |
10596 | SED=$lt_SED |
10597 | |
10598 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
10599 | Xsed="$SED -e 1s/^X//" |
10600 | |
10601 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
10602 | # if CDPATH is set. |
10603 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
10604 | |
10605 | # The names of the tagged configurations supported by this script. |
10606 | available_tags= |
10607 | |
10608 | # ### BEGIN LIBTOOL CONFIG |
10609 | |
10610 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
10611 | |
10612 | # Shell to use when invoking shell scripts. |
10613 | SHELL=$lt_SHELL |
10614 | |
10615 | # Whether or not to build shared libraries. |
10616 | build_libtool_libs=$enable_shared |
10617 | |
10618 | # Whether or not to build static libraries. |
10619 | build_old_libs=$enable_static |
10620 | |
10621 | # Whether or not to add -lc for building shared libraries. |
10622 | build_libtool_need_lc=$archive_cmds_need_lc |
10623 | |
10624 | # Whether or not to disallow shared libs when runtime libs are static |
10625 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
10626 | |
10627 | # Whether or not to optimize for fast installation. |
10628 | fast_install=$enable_fast_install |
10629 | |
10630 | # The host system. |
10631 | host_alias=$host_alias |
10632 | host=$host |
10633 | host_os=$host_os |
10634 | |
10635 | # The build system. |
10636 | build_alias=$build_alias |
10637 | build=$build |
10638 | build_os=$build_os |
10639 | |
10640 | # An echo program that does not interpret backslashes. |
10641 | echo=$lt_echo |
10642 | |
10643 | # The archiver. |
10644 | AR=$lt_AR |
10645 | AR_FLAGS=$lt_AR_FLAGS |
10646 | |
10647 | # A C compiler. |
10648 | LTCC=$lt_LTCC |
10649 | |
10650 | # A language-specific compiler. |
10651 | CC=$lt_compiler |
10652 | |
10653 | # Is the compiler the GNU C compiler? |
10654 | with_gcc=$GCC |
10655 | |
10656 | # An ERE matcher. |
10657 | EGREP=$lt_EGREP |
10658 | |
10659 | # The linker used to build libraries. |
10660 | LD=$lt_LD |
10661 | |
10662 | # Whether we need hard or soft links. |
10663 | LN_S=$lt_LN_S |
10664 | |
10665 | # A BSD-compatible nm program. |
10666 | NM=$lt_NM |
10667 | |
10668 | # A symbol stripping program |
10669 | STRIP=$lt_STRIP |
10670 | |
10671 | # Used to examine libraries when file_magic_cmd begins "file" |
10672 | MAGIC_CMD=$MAGIC_CMD |
10673 | |
10674 | # Used on cygwin: DLL creation program. |
10675 | DLLTOOL="$DLLTOOL" |
10676 | |
10677 | # Used on cygwin: object dumper. |
10678 | OBJDUMP="$OBJDUMP" |
10679 | |
10680 | # Used on cygwin: assembler. |
10681 | AS="$AS" |
10682 | |
10683 | # The name of the directory that contains temporary libtool files. |
10684 | objdir=$objdir |
10685 | |
10686 | # How to create reloadable object files. |
10687 | reload_flag=$lt_reload_flag |
10688 | reload_cmds=$lt_reload_cmds |
10689 | |
10690 | # How to pass a linker flag through the compiler. |
10691 | wl=$lt_lt_prog_compiler_wl |
10692 | |
10693 | # Object file suffix (normally "o"). |
10694 | objext="$ac_objext" |
10695 | |
10696 | # Old archive suffix (normally "a"). |
10697 | libext="$libext" |
10698 | |
10699 | # Shared library suffix (normally ".so"). |
10700 | shrext_cmds='$shrext_cmds' |
10701 | |
10702 | # Executable file suffix (normally ""). |
10703 | exeext="$exeext" |
10704 | |
10705 | # Additional compiler flags for building library objects. |
10706 | pic_flag=$lt_lt_prog_compiler_pic |
10707 | pic_mode=$pic_mode |
10708 | |
10709 | # What is the maximum length of a command? |
10710 | max_cmd_len=$lt_cv_sys_max_cmd_len |
10711 | |
10712 | # Does compiler simultaneously support -c and -o options? |
10713 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
10714 | |
10715 | # Must we lock files when doing compilation? |
10716 | need_locks=$lt_need_locks |
10717 | |
10718 | # Do we need the lib prefix for modules? |
10719 | need_lib_prefix=$need_lib_prefix |
10720 | |
10721 | # Do we need a version for libraries? |
10722 | need_version=$need_version |
10723 | |
10724 | # Whether dlopen is supported. |
10725 | dlopen_support=$enable_dlopen |
10726 | |
10727 | # Whether dlopen of programs is supported. |
10728 | dlopen_self=$enable_dlopen_self |
10729 | |
10730 | # Whether dlopen of statically linked programs is supported. |
10731 | dlopen_self_static=$enable_dlopen_self_static |
10732 | |
10733 | # Compiler flag to prevent dynamic linking. |
10734 | link_static_flag=$lt_lt_prog_compiler_static |
10735 | |
10736 | # Compiler flag to turn off builtin functions. |
10737 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
10738 | |
10739 | # Compiler flag to allow reflexive dlopens. |
10740 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
10741 | |
10742 | # Compiler flag to generate shared objects directly from archives. |
10743 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
10744 | |
10745 | # Compiler flag to generate thread-safe objects. |
10746 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
10747 | |
10748 | # Library versioning type. |
10749 | version_type=$version_type |
10750 | |
10751 | # Format of library name prefix. |
10752 | libname_spec=$lt_libname_spec |
10753 | |
10754 | # List of archive names. First name is the real one, the rest are links. |
10755 | # The last name is the one that the linker finds with -lNAME. |
10756 | library_names_spec=$lt_library_names_spec |
10757 | |
10758 | # The coded name of the library, if different from the real name. |
10759 | soname_spec=$lt_soname_spec |
10760 | |
10761 | # Commands used to build and install an old-style archive. |
10762 | RANLIB=$lt_RANLIB |
10763 | old_archive_cmds=$lt_old_archive_cmds |
10764 | old_postinstall_cmds=$lt_old_postinstall_cmds |
10765 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
10766 | |
10767 | # Create an old-style archive from a shared archive. |
10768 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
10769 | |
10770 | # Create a temporary old-style archive to link instead of a shared archive. |
10771 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
10772 | |
10773 | # Commands used to build and install a shared archive. |
10774 | archive_cmds=$lt_archive_cmds |
10775 | archive_expsym_cmds=$lt_archive_expsym_cmds |
10776 | postinstall_cmds=$lt_postinstall_cmds |
10777 | postuninstall_cmds=$lt_postuninstall_cmds |
10778 | |
10779 | # Commands used to build a loadable module (assumed same as above if empty) |
10780 | module_cmds=$lt_module_cmds |
10781 | module_expsym_cmds=$lt_module_expsym_cmds |
10782 | |
10783 | # Commands to strip libraries. |
10784 | old_striplib=$lt_old_striplib |
10785 | striplib=$lt_striplib |
10786 | |
10787 | # Dependencies to place before the objects being linked to create a |
10788 | # shared library. |
10789 | predep_objects=$lt_predep_objects |
10790 | |
10791 | # Dependencies to place after the objects being linked to create a |
10792 | # shared library. |
10793 | postdep_objects=$lt_postdep_objects |
10794 | |
10795 | # Dependencies to place before the objects being linked to create a |
10796 | # shared library. |
10797 | predeps=$lt_predeps |
10798 | |
10799 | # Dependencies to place after the objects being linked to create a |
10800 | # shared library. |
10801 | postdeps=$lt_postdeps |
10802 | |
10803 | # The library search path used internally by the compiler when linking |
10804 | # a shared library. |
10805 | compiler_lib_search_path=$lt_compiler_lib_search_path |
10806 | |
10807 | # Method to check whether dependent libraries are shared objects. |
10808 | deplibs_check_method=$lt_deplibs_check_method |
10809 | |
10810 | # Command to use when deplibs_check_method == file_magic. |
10811 | file_magic_cmd=$lt_file_magic_cmd |
10812 | |
10813 | # Flag that allows shared libraries with undefined symbols to be built. |
10814 | allow_undefined_flag=$lt_allow_undefined_flag |
10815 | |
10816 | # Flag that forces no undefined symbols. |
10817 | no_undefined_flag=$lt_no_undefined_flag |
10818 | |
10819 | # Commands used to finish a libtool library installation in a directory. |
10820 | finish_cmds=$lt_finish_cmds |
10821 | |
10822 | # Same as above, but a single script fragment to be evaled but not shown. |
10823 | finish_eval=$lt_finish_eval |
10824 | |
10825 | # Take the output of nm and produce a listing of raw symbols and C names. |
10826 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
10827 | |
10828 | # Transform the output of nm in a proper C declaration |
10829 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
10830 | |
10831 | # Transform the output of nm in a C name address pair |
10832 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
10833 | |
10834 | # This is the shared library runtime path variable. |
10835 | runpath_var=$runpath_var |
10836 | |
10837 | # This is the shared library path variable. |
10838 | shlibpath_var=$shlibpath_var |
10839 | |
10840 | # Is shlibpath searched before the hard-coded library search path? |
10841 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
10842 | |
10843 | # How to hardcode a shared library path into an executable. |
10844 | hardcode_action=$hardcode_action |
10845 | |
10846 | # Whether we should hardcode library paths into libraries. |
10847 | hardcode_into_libs=$hardcode_into_libs |
10848 | |
10849 | # Flag to hardcode \$libdir into a binary during linking. |
10850 | # This must work even if \$libdir does not exist. |
10851 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
10852 | |
10853 | # If ld is used when linking, flag to hardcode \$libdir into |
10854 | # a binary during linking. This must work even if \$libdir does |
10855 | # not exist. |
10856 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
10857 | |
10858 | # Whether we need a single -rpath flag with a separated argument. |
10859 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
10860 | |
10861 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
10862 | # resulting binary. |
10863 | hardcode_direct=$hardcode_direct |
10864 | |
10865 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
10866 | # resulting binary. |
10867 | hardcode_minus_L=$hardcode_minus_L |
10868 | |
10869 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
10870 | # the resulting binary. |
10871 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
10872 | |
10873 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
10874 | # and all subsequent libraries and executables linked against it. |
10875 | hardcode_automatic=$hardcode_automatic |
10876 | |
10877 | # Variables whose values should be saved in libtool wrapper scripts and |
10878 | # restored at relink time. |
10879 | variables_saved_for_relink="$variables_saved_for_relink" |
10880 | |
10881 | # Whether libtool must link a program against all its dependency libraries. |
10882 | link_all_deplibs=$link_all_deplibs |
10883 | |
10884 | # Compile-time system search path for libraries |
10885 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
10886 | |
10887 | # Run-time system search path for libraries |
10888 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
10889 | |
10890 | # Fix the shell variable \$srcfile for the compiler. |
10891 | fix_srcfile_path="$fix_srcfile_path" |
10892 | |
10893 | # Set to yes if exported symbols are required. |
10894 | always_export_symbols=$always_export_symbols |
10895 | |
10896 | # The commands to list exported symbols. |
10897 | export_symbols_cmds=$lt_export_symbols_cmds |
10898 | |
10899 | # The commands to extract the exported symbol list from a shared archive. |
10900 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
10901 | |
10902 | # Symbols that should not be listed in the preloaded symbols. |
10903 | exclude_expsyms=$lt_exclude_expsyms |
10904 | |
10905 | # Symbols that must always be exported. |
10906 | include_expsyms=$lt_include_expsyms |
10907 | |
10908 | # ### END LIBTOOL CONFIG |
10909 | |
10910 | __EOF__ |
10911 | |
10912 | |
10913 | case $host_os in |
10914 | aix3*) |
10915 | cat <<\EOF >> "$cfgfile" |
10916 | |
10917 | # AIX sometimes has problems with the GCC collect2 program. For some |
10918 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
10919 | # vanish in a puff of smoke. |
10920 | if test "X${COLLECT_NAMES+set}" != Xset; then |
10921 | COLLECT_NAMES= |
10922 | export COLLECT_NAMES |
10923 | fi |
10924 | EOF |
10925 | ;; |
10926 | esac |
10927 | |
10928 | # We use sed instead of cat because bash on DJGPP gets confused if |
10929 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
10930 | # text mode, it properly converts lines to CR/LF. This bash problem |
10931 | # is reportedly fixed, but why not run on old versions too? |
10932 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
10933 | |
10934 | mv -f "$cfgfile" "$ofile" || \ |
10935 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
10936 | chmod +x "$ofile" |
10937 | |
10938 | else |
10939 | # If there is no Makefile yet, we rely on a make rule to execute |
10940 | # `config.status --recheck' to rerun these tests and create the |
10941 | # libtool script then. |
10942 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
10943 | if test -f "$ltmain_in"; then |
10944 | test -f Makefile && make "$ltmain" |
10945 | fi |
10946 | fi |
10947 | |
10948 | |
10949 | ac_ext=c |
10950 | ac_cpp='$CPP $CPPFLAGS' |
10951 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10952 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10953 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
10954 | |
10955 | CC="$lt_save_CC" |
10956 | |
10957 | |
10958 | # Check whether --with-tags was given. |
10959 | if test "${with_tags+set}" = set; then |
10960 | withval=$with_tags; tagnames="$withval" |
10961 | fi |
10962 | |
10963 | |
10964 | if test -f "$ltmain" && test -n "$tagnames"; then |
10965 | if test ! -f "${ofile}"; then |
10966 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
10967 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
10968 | fi |
10969 | |
10970 | if test -z "$LTCC"; then |
10971 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
10972 | if test -z "$LTCC"; then |
10973 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
10974 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
10975 | else |
10976 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
10977 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
10978 | fi |
10979 | fi |
10980 | |
10981 | # Extract list of available tagged configurations in $ofile. |
10982 | # Note that this assumes the entire list is on one line. |
10983 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
10984 | |
10985 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
10986 | for tagname in $tagnames; do |
10987 | IFS="$lt_save_ifs" |
10988 | # Check whether tagname contains only valid characters |
10989 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
10990 | "") ;; |
10991 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
10992 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
10993 | { (exit 1); exit 1; }; } |
10994 | ;; |
10995 | esac |
10996 | |
10997 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
10998 | then |
10999 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
11000 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
11001 | { (exit 1); exit 1; }; } |
11002 | fi |
11003 | |
11004 | # Update the list of available tags. |
11005 | if test -n "$tagname"; then |
11006 | echo appending configuration tag \"$tagname\" to $ofile |
11007 | |
11008 | case $tagname in |
11009 | CXX) |
11010 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
11011 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
11012 | (test "X$CXX" != "Xg++"))) ; then |
11013 | ac_ext=cpp |
11014 | ac_cpp='$CXXCPP $CPPFLAGS' |
11015 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
11016 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
11017 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
11018 | |
11019 | |
11020 | |
11021 | |
11022 | archive_cmds_need_lc_CXX=no |
11023 | allow_undefined_flag_CXX= |
11024 | always_export_symbols_CXX=no |
11025 | archive_expsym_cmds_CXX= |
11026 | export_dynamic_flag_spec_CXX= |
11027 | hardcode_direct_CXX=no |
11028 | hardcode_libdir_flag_spec_CXX= |
11029 | hardcode_libdir_flag_spec_ld_CXX= |
11030 | hardcode_libdir_separator_CXX= |
11031 | hardcode_minus_L_CXX=no |
11032 | hardcode_automatic_CXX=no |
11033 | module_cmds_CXX= |
11034 | module_expsym_cmds_CXX= |
11035 | link_all_deplibs_CXX=unknown |
11036 | old_archive_cmds_CXX=$old_archive_cmds |
11037 | no_undefined_flag_CXX= |
11038 | whole_archive_flag_spec_CXX= |
11039 | enable_shared_with_static_runtimes_CXX=no |
11040 | |
11041 | # Dependencies to place before and after the object being linked: |
11042 | predep_objects_CXX= |
11043 | postdep_objects_CXX= |
11044 | predeps_CXX= |
11045 | postdeps_CXX= |
11046 | compiler_lib_search_path_CXX= |
11047 | |
11048 | # Source file extension for C++ test sources. |
11049 | ac_ext=cpp |
11050 | |
11051 | # Object file extension for compiled C++ test sources. |
11052 | objext=o |
11053 | objext_CXX=$objext |
11054 | |
11055 | # Code to be used in simple compile tests |
11056 | lt_simple_compile_test_code="int some_variable = 0;\n" |
11057 | |
11058 | # Code to be used in simple link tests |
11059 | lt_simple_link_test_code='int main(int, char *) { return(0); }\n' |
11060 | |
11061 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
11062 | |
11063 | # If no C compiler was specified, use CC. |
11064 | LTCC=${LTCC-"$CC"} |
11065 | |
11066 | # Allow CC to be a program name with arguments. |
11067 | compiler=$CC |
11068 | |
11069 | |
11070 | # save warnings/boilerplate of simple test code |
11071 | ac_outfile=conftest.$ac_objext |
11072 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
11073 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
11074 | _lt_compiler_boilerplate=`cat conftest.err` |
11075 | $rm conftest* |
11076 | |
11077 | ac_outfile=conftest.$ac_objext |
11078 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
11079 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
11080 | _lt_linker_boilerplate=`cat conftest.err` |
11081 | $rm conftest* |
11082 | |
11083 | |
11084 | # Allow CC to be a program name with arguments. |
11085 | lt_save_CC=$CC |
11086 | lt_save_LD=$LD |
11087 | lt_save_GCC=$GCC |
11088 | GCC=$GXX |
11089 | lt_save_with_gnu_ld=$with_gnu_ld |
11090 | lt_save_path_LD=$lt_cv_path_LD |
11091 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
11092 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
11093 | else |
11094 | unset lt_cv_prog_gnu_ld |
11095 | fi |
11096 | if test -n "${lt_cv_path_LDCXX+set}"; then |
11097 | lt_cv_path_LD=$lt_cv_path_LDCXX |
11098 | else |
11099 | unset lt_cv_path_LD |
11100 | fi |
11101 | test -z "${LDCXX+set}" || LD=$LDCXX |
11102 | CC=${CXX-"c++"} |
11103 | compiler=$CC |
11104 | compiler_CXX=$CC |
11105 | for cc_temp in $compiler""; do |
11106 | case $cc_temp in |
11107 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
11108 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
11109 | \-*) ;; |
11110 | *) break;; |
11111 | esac |
11112 | done |
11113 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
11114 | |
11115 | |
11116 | # We don't want -fno-exception wen compiling C++ code, so set the |
11117 | # no_builtin_flag separately |
11118 | if test "$GXX" = yes; then |
11119 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
11120 | else |
11121 | lt_prog_compiler_no_builtin_flag_CXX= |
11122 | fi |
11123 | |
11124 | if test "$GXX" = yes; then |
11125 | # Set up default GNU C++ configuration |
11126 | |
11127 | |
11128 | # Check whether --with-gnu-ld was given. |
11129 | if test "${with_gnu_ld+set}" = set; then |
11130 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
11131 | else |
11132 | with_gnu_ld=no |
11133 | fi |
11134 | |
11135 | ac_prog=ld |
11136 | if test "$GCC" = yes; then |
11137 | # Check if gcc -print-prog-name=ld gives a path. |
11138 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
11139 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
11140 | case $host in |
11141 | *-*-mingw*) |
11142 | # gcc leaves a trailing carriage return which upsets mingw |
11143 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
11144 | *) |
11145 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
11146 | esac |
11147 | case $ac_prog in |
11148 | # Accept absolute paths. |
11149 | [\\/]* | ?:[\\/]*) |
11150 | re_direlt='/[^/][^/]*/\.\./' |
11151 | # Canonicalize the pathname of ld |
11152 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
11153 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
11154 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
11155 | done |
11156 | test -z "$LD" && LD="$ac_prog" |
11157 | ;; |
11158 | "") |
11159 | # If it fails, then pretend we aren't using GCC. |
11160 | ac_prog=ld |
11161 | ;; |
11162 | *) |
11163 | # If it is relative, then search for the first ld in PATH. |
11164 | with_gnu_ld=unknown |
11165 | ;; |
11166 | esac |
11167 | elif test "$with_gnu_ld" = yes; then |
11168 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
11169 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
11170 | else |
11171 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
11172 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
11173 | fi |
11174 | if test "${lt_cv_path_LD+set}" = set; then |
11175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11176 | else |
11177 | if test -z "$LD"; then |
11178 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
11179 | for ac_dir in $PATH; do |
11180 | IFS="$lt_save_ifs" |
11181 | test -z "$ac_dir" && ac_dir=. |
11182 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
11183 | lt_cv_path_LD="$ac_dir/$ac_prog" |
11184 | # Check to see if the program is GNU ld. I'd rather use --version, |
11185 | # but apparently some variants of GNU ld only accept -v. |
11186 | # Break only if it was the GNU/non-GNU ld that we prefer. |
11187 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
11188 | *GNU* | *'with BFD'*) |
11189 | test "$with_gnu_ld" != no && break |
11190 | ;; |
11191 | *) |
11192 | test "$with_gnu_ld" != yes && break |
11193 | ;; |
11194 | esac |
11195 | fi |
11196 | done |
11197 | IFS="$lt_save_ifs" |
11198 | else |
11199 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
11200 | fi |
11201 | fi |
11202 | |
11203 | LD="$lt_cv_path_LD" |
11204 | if test -n "$LD"; then |
11205 | { echo "$as_me:$LINENO: result: $LD" >&5 |
11206 | echo "${ECHO_T}$LD" >&6; } |
11207 | else |
11208 | { echo "$as_me:$LINENO: result: no" >&5 |
11209 | echo "${ECHO_T}no" >&6; } |
11210 | fi |
11211 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
11212 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
11213 | { (exit 1); exit 1; }; } |
11214 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
11215 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
11216 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
11217 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11218 | else |
11219 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
11220 | case `$LD -v 2>&1 </dev/null` in |
11221 | *GNU* | *'with BFD'*) |
11222 | lt_cv_prog_gnu_ld=yes |
11223 | ;; |
11224 | *) |
11225 | lt_cv_prog_gnu_ld=no |
11226 | ;; |
11227 | esac |
11228 | fi |
11229 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
11230 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
11231 | with_gnu_ld=$lt_cv_prog_gnu_ld |
11232 | |
11233 | |
11234 | |
11235 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
11236 | # archiving commands below assume that GNU ld is being used. |
11237 | if test "$with_gnu_ld" = yes; then |
11238 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11239 | 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' |
11240 | |
11241 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11242 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11243 | |
11244 | # If archive_cmds runs LD, not CC, wlarc should be empty |
11245 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
11246 | # investigate it a little bit more. (MM) |
11247 | wlarc='${wl}' |
11248 | |
11249 | # ancient GNU ld didn't support --whole-archive et. al. |
11250 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
11251 | grep 'no-whole-archive' > /dev/null; then |
11252 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11253 | else |
11254 | whole_archive_flag_spec_CXX= |
11255 | fi |
11256 | else |
11257 | with_gnu_ld=no |
11258 | wlarc= |
11259 | |
11260 | # A generic and very simple default shared library creation |
11261 | # command for GNU C++ for the case where it uses the native |
11262 | # linker, instead of GNU ld. If possible, this setting should |
11263 | # overridden to take advantage of the native linker features on |
11264 | # the platform it is being used on. |
11265 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11266 | fi |
11267 | |
11268 | # Commands to make compiler produce verbose output that lists |
11269 | # what "hidden" libraries, object files and flags are used when |
11270 | # linking a shared library. |
11271 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11272 | |
11273 | else |
11274 | GXX=no |
11275 | with_gnu_ld=no |
11276 | wlarc= |
11277 | fi |
11278 | |
11279 | # PORTME: fill in a description of your system's C++ link characteristics |
11280 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
11281 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
11282 | ld_shlibs_CXX=yes |
11283 | case $host_os in |
11284 | aix3*) |
11285 | # FIXME: insert proper C++ library support |
11286 | ld_shlibs_CXX=no |
11287 | ;; |
11288 | aix4* | aix5*) |
11289 | if test "$host_cpu" = ia64; then |
11290 | # On IA64, the linker does run time linking by default, so we don't |
11291 | # have to do anything special. |
11292 | aix_use_runtimelinking=no |
11293 | exp_sym_flag='-Bexport' |
11294 | no_entry_flag="" |
11295 | else |
11296 | aix_use_runtimelinking=no |
11297 | |
11298 | # Test if we are trying to use run time linking or normal |
11299 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
11300 | # need to do runtime linking. |
11301 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
11302 | for ld_flag in $LDFLAGS; do |
11303 | case $ld_flag in |
11304 | *-brtl*) |
11305 | aix_use_runtimelinking=yes |
11306 | break |
11307 | ;; |
11308 | esac |
11309 | done |
11310 | esac |
11311 | |
11312 | exp_sym_flag='-bexport' |
11313 | no_entry_flag='-bnoentry' |
11314 | fi |
11315 | |
11316 | # When large executables or shared objects are built, AIX ld can |
11317 | # have problems creating the table of contents. If linking a library |
11318 | # or program results in "error TOC overflow" add -mminimal-toc to |
11319 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
11320 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
11321 | |
11322 | archive_cmds_CXX='' |
11323 | hardcode_direct_CXX=yes |
11324 | hardcode_libdir_separator_CXX=':' |
11325 | link_all_deplibs_CXX=yes |
11326 | |
11327 | if test "$GXX" = yes; then |
11328 | case $host_os in aix4.[012]|aix4.[012].*) |
11329 | # We only want to do this on AIX 4.2 and lower, the check |
11330 | # below for broken collect2 doesn't work under 4.3+ |
11331 | collect2name=`${CC} -print-prog-name=collect2` |
11332 | if test -f "$collect2name" && \ |
11333 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
11334 | then |
11335 | # We have reworked collect2 |
11336 | hardcode_direct_CXX=yes |
11337 | else |
11338 | # We have old collect2 |
11339 | hardcode_direct_CXX=unsupported |
11340 | # It fails to find uninstalled libraries when the uninstalled |
11341 | # path is not listed in the libpath. Setting hardcode_minus_L |
11342 | # to unsupported forces relinking |
11343 | hardcode_minus_L_CXX=yes |
11344 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11345 | hardcode_libdir_separator_CXX= |
11346 | fi |
11347 | esac |
11348 | shared_flag='-shared' |
11349 | if test "$aix_use_runtimelinking" = yes; then |
11350 | shared_flag="$shared_flag "'${wl}-G' |
11351 | fi |
11352 | else |
11353 | # not using gcc |
11354 | if test "$host_cpu" = ia64; then |
11355 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
11356 | # chokes on -Wl,-G. The following line is correct: |
11357 | shared_flag='-G' |
11358 | else |
11359 | if test "$aix_use_runtimelinking" = yes; then |
11360 | shared_flag='${wl}-G' |
11361 | else |
11362 | shared_flag='${wl}-bM:SRE' |
11363 | fi |
11364 | fi |
11365 | fi |
11366 | |
11367 | # It seems that -bexpall does not export symbols beginning with |
11368 | # underscore (_), so it is better to generate a list of symbols to export. |
11369 | always_export_symbols_CXX=yes |
11370 | if test "$aix_use_runtimelinking" = yes; then |
11371 | # Warning - without using the other runtime loading flags (-brtl), |
11372 | # -berok will link without error, but may produce a broken library. |
11373 | allow_undefined_flag_CXX='-berok' |
11374 | # Determine the default libpath from the value encoded in an empty executable. |
11375 | cat >conftest.$ac_ext <<_ACEOF |
11376 | /* confdefs.h. */ |
11377 | _ACEOF |
11378 | cat confdefs.h >>conftest.$ac_ext |
11379 | cat >>conftest.$ac_ext <<_ACEOF |
11380 | /* end confdefs.h. */ |
11381 | |
11382 | int |
11383 | main () |
11384 | { |
11385 | |
11386 | ; |
11387 | return 0; |
11388 | } |
11389 | _ACEOF |
11390 | rm -f conftest.$ac_objext conftest$ac_exeext |
11391 | if { (ac_try="$ac_link" |
11392 | case "(($ac_try" in |
11393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11394 | *) ac_try_echo=$ac_try;; |
11395 | esac |
11396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11397 | (eval "$ac_link") 2>conftest.er1 |
11398 | ac_status=$? |
11399 | grep -v '^ *+' conftest.er1 >conftest.err |
11400 | rm -f conftest.er1 |
11401 | cat conftest.err >&5 |
11402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11403 | (exit $ac_status); } && { |
11404 | test -z "$ac_cxx_werror_flag" || |
11405 | test ! -s conftest.err |
11406 | } && test -s conftest$ac_exeext && |
11407 | $as_test_x conftest$ac_exeext; then |
11408 | |
11409 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11410 | }'` |
11411 | # Check for a 64-bit object if we didn't find anything. |
11412 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11413 | }'`; fi |
11414 | else |
11415 | echo "$as_me: failed program was:" >&5 |
11416 | sed 's/^/| /' conftest.$ac_ext >&5 |
11417 | |
11418 | |
11419 | fi |
11420 | |
11421 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11422 | conftest$ac_exeext conftest.$ac_ext |
11423 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11424 | |
11425 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11426 | |
11427 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
11428 | else |
11429 | if test "$host_cpu" = ia64; then |
11430 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
11431 | allow_undefined_flag_CXX="-z nodefs" |
11432 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
11433 | else |
11434 | # Determine the default libpath from the value encoded in an empty executable. |
11435 | cat >conftest.$ac_ext <<_ACEOF |
11436 | /* confdefs.h. */ |
11437 | _ACEOF |
11438 | cat confdefs.h >>conftest.$ac_ext |
11439 | cat >>conftest.$ac_ext <<_ACEOF |
11440 | /* end confdefs.h. */ |
11441 | |
11442 | int |
11443 | main () |
11444 | { |
11445 | |
11446 | ; |
11447 | return 0; |
11448 | } |
11449 | _ACEOF |
11450 | rm -f conftest.$ac_objext conftest$ac_exeext |
11451 | if { (ac_try="$ac_link" |
11452 | case "(($ac_try" in |
11453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11454 | *) ac_try_echo=$ac_try;; |
11455 | esac |
11456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11457 | (eval "$ac_link") 2>conftest.er1 |
11458 | ac_status=$? |
11459 | grep -v '^ *+' conftest.er1 >conftest.err |
11460 | rm -f conftest.er1 |
11461 | cat conftest.err >&5 |
11462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11463 | (exit $ac_status); } && { |
11464 | test -z "$ac_cxx_werror_flag" || |
11465 | test ! -s conftest.err |
11466 | } && test -s conftest$ac_exeext && |
11467 | $as_test_x conftest$ac_exeext; then |
11468 | |
11469 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11470 | }'` |
11471 | # Check for a 64-bit object if we didn't find anything. |
11472 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11473 | }'`; fi |
11474 | else |
11475 | echo "$as_me: failed program was:" >&5 |
11476 | sed 's/^/| /' conftest.$ac_ext >&5 |
11477 | |
11478 | |
11479 | fi |
11480 | |
11481 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
11482 | conftest$ac_exeext conftest.$ac_ext |
11483 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11484 | |
11485 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11486 | # Warning - without using the other run time loading flags, |
11487 | # -berok will link without error, but may produce a broken library. |
11488 | no_undefined_flag_CXX=' ${wl}-bernotok' |
11489 | allow_undefined_flag_CXX=' ${wl}-berok' |
11490 | # -bexpall does not export symbols beginning with underscore (_) |
11491 | always_export_symbols_CXX=yes |
11492 | # Exported symbols can be pulled into shared objects from archives |
11493 | whole_archive_flag_spec_CXX=' ' |
11494 | archive_cmds_need_lc_CXX=yes |
11495 | # This is similar to how AIX traditionally builds its shared libraries. |
11496 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
11497 | fi |
11498 | fi |
11499 | ;; |
11500 | chorus*) |
11501 | case $cc_basename in |
11502 | *) |
11503 | # FIXME: insert proper C++ library support |
11504 | ld_shlibs_CXX=no |
11505 | ;; |
11506 | esac |
11507 | ;; |
11508 | |
11509 | |
11510 | cygwin* | mingw* | pw32*) |
11511 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
11512 | # as there is no search path for DLLs. |
11513 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11514 | allow_undefined_flag_CXX=unsupported |
11515 | always_export_symbols_CXX=no |
11516 | enable_shared_with_static_runtimes_CXX=yes |
11517 | |
11518 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
11519 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
11520 | # If the export-symbols file already is a .def file (1st line |
11521 | # is EXPORTS), use it as is; otherwise, prepend... |
11522 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
11523 | cp $export_symbols $output_objdir/$soname.def; |
11524 | else |
11525 | echo EXPORTS > $output_objdir/$soname.def; |
11526 | cat $export_symbols >> $output_objdir/$soname.def; |
11527 | fi~ |
11528 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
11529 | else |
11530 | ld_shlibs_CXX=no |
11531 | fi |
11532 | ;; |
11533 | darwin* | rhapsody*) |
11534 | case $host_os in |
11535 | rhapsody* | darwin1.[012]) |
11536 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
11537 | ;; |
11538 | *) # Darwin 1.3 on |
11539 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
11540 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11541 | else |
11542 | case ${MACOSX_DEPLOYMENT_TARGET} in |
11543 | 10.[012]) |
11544 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11545 | ;; |
11546 | 10.*) |
11547 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
11548 | ;; |
11549 | esac |
11550 | fi |
11551 | ;; |
11552 | esac |
11553 | archive_cmds_need_lc_CXX=no |
11554 | hardcode_direct_CXX=no |
11555 | hardcode_automatic_CXX=yes |
11556 | hardcode_shlibpath_var_CXX=unsupported |
11557 | whole_archive_flag_spec_CXX='' |
11558 | link_all_deplibs_CXX=yes |
11559 | |
11560 | if test "$GXX" = yes ; then |
11561 | lt_int_apple_cc_single_mod=no |
11562 | output_verbose_link_cmd='echo' |
11563 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
11564 | lt_int_apple_cc_single_mod=yes |
11565 | fi |
11566 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11567 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
11568 | else |
11569 | 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' |
11570 | fi |
11571 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11572 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11573 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11574 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
11575 | else |
11576 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
11577 | fi |
11578 | 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}' |
11579 | else |
11580 | case $cc_basename in |
11581 | xlc*) |
11582 | output_verbose_link_cmd='echo' |
11583 | archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
11584 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11585 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11586 | archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
11587 | 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}' |
11588 | ;; |
11589 | *) |
11590 | ld_shlibs_CXX=no |
11591 | ;; |
11592 | esac |
11593 | fi |
11594 | ;; |
11595 | |
11596 | dgux*) |
11597 | case $cc_basename in |
11598 | ec++*) |
11599 | # FIXME: insert proper C++ library support |
11600 | ld_shlibs_CXX=no |
11601 | ;; |
11602 | ghcx*) |
11603 | # Green Hills C++ Compiler |
11604 | # FIXME: insert proper C++ library support |
11605 | ld_shlibs_CXX=no |
11606 | ;; |
11607 | *) |
11608 | # FIXME: insert proper C++ library support |
11609 | ld_shlibs_CXX=no |
11610 | ;; |
11611 | esac |
11612 | ;; |
11613 | freebsd[12]*) |
11614 | # C++ shared libraries reported to be fairly broken before switch to ELF |
11615 | ld_shlibs_CXX=no |
11616 | ;; |
11617 | freebsd-elf*) |
11618 | archive_cmds_need_lc_CXX=no |
11619 | ;; |
11620 | freebsd* | kfreebsd*-gnu | dragonfly*) |
11621 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
11622 | # conventions |
11623 | ld_shlibs_CXX=yes |
11624 | ;; |
11625 | gnu*) |
11626 | ;; |
11627 | hpux9*) |
11628 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11629 | hardcode_libdir_separator_CXX=: |
11630 | export_dynamic_flag_spec_CXX='${wl}-E' |
11631 | hardcode_direct_CXX=yes |
11632 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11633 | # but as the default |
11634 | # location of the library. |
11635 | |
11636 | case $cc_basename in |
11637 | CC*) |
11638 | # FIXME: insert proper C++ library support |
11639 | ld_shlibs_CXX=no |
11640 | ;; |
11641 | aCC*) |
11642 | 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' |
11643 | # Commands to make compiler produce verbose output that lists |
11644 | # what "hidden" libraries, object files and flags are used when |
11645 | # linking a shared library. |
11646 | # |
11647 | # There doesn't appear to be a way to prevent this compiler from |
11648 | # explicitly linking system object files so we need to strip them |
11649 | # from the output so that they don't get included in the library |
11650 | # dependencies. |
11651 | 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' |
11652 | ;; |
11653 | *) |
11654 | if test "$GXX" = yes; then |
11655 | 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' |
11656 | else |
11657 | # FIXME: insert proper C++ library support |
11658 | ld_shlibs_CXX=no |
11659 | fi |
11660 | ;; |
11661 | esac |
11662 | ;; |
11663 | hpux10*|hpux11*) |
11664 | if test $with_gnu_ld = no; then |
11665 | case $host_cpu in |
11666 | hppa*64*) |
11667 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11668 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
11669 | hardcode_libdir_separator_CXX=: |
11670 | ;; |
11671 | ia64*) |
11672 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11673 | ;; |
11674 | *) |
11675 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11676 | hardcode_libdir_separator_CXX=: |
11677 | export_dynamic_flag_spec_CXX='${wl}-E' |
11678 | ;; |
11679 | esac |
11680 | fi |
11681 | case $host_cpu in |
11682 | hppa*64*) |
11683 | hardcode_direct_CXX=no |
11684 | hardcode_shlibpath_var_CXX=no |
11685 | ;; |
11686 | ia64*) |
11687 | hardcode_direct_CXX=no |
11688 | hardcode_shlibpath_var_CXX=no |
11689 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11690 | # but as the default |
11691 | # location of the library. |
11692 | ;; |
11693 | *) |
11694 | hardcode_direct_CXX=yes |
11695 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11696 | # but as the default |
11697 | # location of the library. |
11698 | ;; |
11699 | esac |
11700 | |
11701 | case $cc_basename in |
11702 | CC*) |
11703 | # FIXME: insert proper C++ library support |
11704 | ld_shlibs_CXX=no |
11705 | ;; |
11706 | aCC*) |
11707 | case $host_cpu in |
11708 | hppa*64*|ia64*) |
11709 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
11710 | ;; |
11711 | *) |
11712 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11713 | ;; |
11714 | esac |
11715 | # Commands to make compiler produce verbose output that lists |
11716 | # what "hidden" libraries, object files and flags are used when |
11717 | # linking a shared library. |
11718 | # |
11719 | # There doesn't appear to be a way to prevent this compiler from |
11720 | # explicitly linking system object files so we need to strip them |
11721 | # from the output so that they don't get included in the library |
11722 | # dependencies. |
11723 | 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' |
11724 | ;; |
11725 | *) |
11726 | if test "$GXX" = yes; then |
11727 | if test $with_gnu_ld = no; then |
11728 | case $host_cpu in |
11729 | ia64*|hppa*64*) |
11730 | archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' |
11731 | ;; |
11732 | *) |
11733 | 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' |
11734 | ;; |
11735 | esac |
11736 | fi |
11737 | else |
11738 | # FIXME: insert proper C++ library support |
11739 | ld_shlibs_CXX=no |
11740 | fi |
11741 | ;; |
11742 | esac |
11743 | ;; |
11744 | irix5* | irix6*) |
11745 | case $cc_basename in |
11746 | CC*) |
11747 | # SGI C++ |
11748 | 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' |
11749 | |
11750 | # Archives containing C++ object files must be created using |
11751 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
11752 | # necessary to make sure instantiated templates are included |
11753 | # in the archive. |
11754 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
11755 | ;; |
11756 | *) |
11757 | if test "$GXX" = yes; then |
11758 | if test "$with_gnu_ld" = no; then |
11759 | 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' |
11760 | else |
11761 | 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' |
11762 | fi |
11763 | fi |
11764 | link_all_deplibs_CXX=yes |
11765 | ;; |
11766 | esac |
11767 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11768 | hardcode_libdir_separator_CXX=: |
11769 | ;; |
11770 | linux*) |
11771 | case $cc_basename in |
11772 | KCC*) |
11773 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11774 | |
11775 | # KCC will only create a shared library if the output file |
11776 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11777 | # to its proper name (with version) after linking. |
11778 | 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' |
11779 | 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' |
11780 | # Commands to make compiler produce verbose output that lists |
11781 | # what "hidden" libraries, object files and flags are used when |
11782 | # linking a shared library. |
11783 | # |
11784 | # There doesn't appear to be a way to prevent this compiler from |
11785 | # explicitly linking system object files so we need to strip them |
11786 | # from the output so that they don't get included in the library |
11787 | # dependencies. |
11788 | 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' |
11789 | |
11790 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
11791 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11792 | |
11793 | # Archives containing C++ object files must be created using |
11794 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11795 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11796 | ;; |
11797 | icpc*) |
11798 | # Intel C++ |
11799 | with_gnu_ld=yes |
11800 | # version 8.0 and above of icpc choke on multiply defined symbols |
11801 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
11802 | # earlier do not add the objects themselves. |
11803 | case `$CC -V 2>&1` in |
11804 | *"Version 7."*) |
11805 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11806 | 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' |
11807 | ;; |
11808 | *) # Version 8.0 or newer |
11809 | tmp_idyn= |
11810 | case $host_cpu in |
11811 | ia64*) tmp_idyn=' -i_dynamic';; |
11812 | esac |
11813 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11814 | 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' |
11815 | ;; |
11816 | esac |
11817 | archive_cmds_need_lc_CXX=no |
11818 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11819 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11820 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
11821 | ;; |
11822 | pgCC*) |
11823 | # Portland Group C++ compiler |
11824 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
11825 | 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' |
11826 | |
11827 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11828 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11829 | 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' |
11830 | ;; |
11831 | cxx*) |
11832 | # Compaq C++ |
11833 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11834 | 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' |
11835 | |
11836 | runpath_var=LD_RUN_PATH |
11837 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11838 | hardcode_libdir_separator_CXX=: |
11839 | |
11840 | # Commands to make compiler produce verbose output that lists |
11841 | # what "hidden" libraries, object files and flags are used when |
11842 | # linking a shared library. |
11843 | # |
11844 | # There doesn't appear to be a way to prevent this compiler from |
11845 | # explicitly linking system object files so we need to strip them |
11846 | # from the output so that they don't get included in the library |
11847 | # dependencies. |
11848 | 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' |
11849 | ;; |
11850 | esac |
11851 | ;; |
11852 | lynxos*) |
11853 | # FIXME: insert proper C++ library support |
11854 | ld_shlibs_CXX=no |
11855 | ;; |
11856 | m88k*) |
11857 | # FIXME: insert proper C++ library support |
11858 | ld_shlibs_CXX=no |
11859 | ;; |
11860 | mvs*) |
11861 | case $cc_basename in |
11862 | cxx*) |
11863 | # FIXME: insert proper C++ library support |
11864 | ld_shlibs_CXX=no |
11865 | ;; |
11866 | *) |
11867 | # FIXME: insert proper C++ library support |
11868 | ld_shlibs_CXX=no |
11869 | ;; |
11870 | esac |
11871 | ;; |
11872 | netbsd*) |
11873 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11874 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
11875 | wlarc= |
11876 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11877 | hardcode_direct_CXX=yes |
11878 | hardcode_shlibpath_var_CXX=no |
11879 | fi |
11880 | # Workaround some broken pre-1.5 toolchains |
11881 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
11882 | ;; |
11883 | openbsd2*) |
11884 | # C++ shared libraries are fairly broken |
11885 | ld_shlibs_CXX=no |
11886 | ;; |
11887 | openbsd*) |
11888 | hardcode_direct_CXX=yes |
11889 | hardcode_shlibpath_var_CXX=no |
11890 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11891 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11892 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
11893 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
11894 | export_dynamic_flag_spec_CXX='${wl}-E' |
11895 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11896 | fi |
11897 | output_verbose_link_cmd='echo' |
11898 | ;; |
11899 | osf3*) |
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 | |
11909 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11910 | hardcode_libdir_separator_CXX=: |
11911 | |
11912 | # Archives containing C++ object files must be created using |
11913 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11914 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11915 | |
11916 | ;; |
11917 | RCC*) |
11918 | # Rational C++ 2.4.1 |
11919 | # FIXME: insert proper C++ library support |
11920 | ld_shlibs_CXX=no |
11921 | ;; |
11922 | cxx*) |
11923 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11924 | 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' |
11925 | |
11926 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11927 | hardcode_libdir_separator_CXX=: |
11928 | |
11929 | # Commands to make compiler produce verbose output that lists |
11930 | # what "hidden" libraries, object files and flags are used when |
11931 | # linking a shared library. |
11932 | # |
11933 | # There doesn't appear to be a way to prevent this compiler from |
11934 | # explicitly linking system object files so we need to strip them |
11935 | # from the output so that they don't get included in the library |
11936 | # dependencies. |
11937 | 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' |
11938 | ;; |
11939 | *) |
11940 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11941 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11942 | 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' |
11943 | |
11944 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11945 | hardcode_libdir_separator_CXX=: |
11946 | |
11947 | # Commands to make compiler produce verbose output that lists |
11948 | # what "hidden" libraries, object files and flags are used when |
11949 | # linking a shared library. |
11950 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11951 | |
11952 | else |
11953 | # FIXME: insert proper C++ library support |
11954 | ld_shlibs_CXX=no |
11955 | fi |
11956 | ;; |
11957 | esac |
11958 | ;; |
11959 | osf4* | osf5*) |
11960 | case $cc_basename in |
11961 | KCC*) |
11962 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11963 | |
11964 | # KCC will only create a shared library if the output file |
11965 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11966 | # to its proper name (with version) after linking. |
11967 | 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' |
11968 | |
11969 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11970 | hardcode_libdir_separator_CXX=: |
11971 | |
11972 | # Archives containing C++ object files must be created using |
11973 | # the KAI C++ compiler. |
11974 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
11975 | ;; |
11976 | RCC*) |
11977 | # Rational C++ 2.4.1 |
11978 | # FIXME: insert proper C++ library support |
11979 | ld_shlibs_CXX=no |
11980 | ;; |
11981 | cxx*) |
11982 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
11983 | 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' |
11984 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
11985 | echo "-hidden">> $lib.exp~ |
11986 | $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~ |
11987 | $rm $lib.exp' |
11988 | |
11989 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11990 | hardcode_libdir_separator_CXX=: |
11991 | |
11992 | # Commands to make compiler produce verbose output that lists |
11993 | # what "hidden" libraries, object files and flags are used when |
11994 | # linking a shared library. |
11995 | # |
11996 | # There doesn't appear to be a way to prevent this compiler from |
11997 | # explicitly linking system object files so we need to strip them |
11998 | # from the output so that they don't get included in the library |
11999 | # dependencies. |
12000 | 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' |
12001 | ;; |
12002 | *) |
12003 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
12004 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
12005 | 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' |
12006 | |
12007 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
12008 | hardcode_libdir_separator_CXX=: |
12009 | |
12010 | # Commands to make compiler produce verbose output that lists |
12011 | # what "hidden" libraries, object files and flags are used when |
12012 | # linking a shared library. |
12013 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
12014 | |
12015 | else |
12016 | # FIXME: insert proper C++ library support |
12017 | ld_shlibs_CXX=no |
12018 | fi |
12019 | ;; |
12020 | esac |
12021 | ;; |
12022 | psos*) |
12023 | # FIXME: insert proper C++ library support |
12024 | ld_shlibs_CXX=no |
12025 | ;; |
12026 | sco*) |
12027 | archive_cmds_need_lc_CXX=no |
12028 | case $cc_basename in |
12029 | CC*) |
12030 | # FIXME: insert proper C++ library support |
12031 | ld_shlibs_CXX=no |
12032 | ;; |
12033 | *) |
12034 | # FIXME: insert proper C++ library support |
12035 | ld_shlibs_CXX=no |
12036 | ;; |
12037 | esac |
12038 | ;; |
12039 | sunos4*) |
12040 | case $cc_basename in |
12041 | CC*) |
12042 | # Sun C++ 4.x |
12043 | # FIXME: insert proper C++ library support |
12044 | ld_shlibs_CXX=no |
12045 | ;; |
12046 | lcc*) |
12047 | # Lucid |
12048 | # FIXME: insert proper C++ library support |
12049 | ld_shlibs_CXX=no |
12050 | ;; |
12051 | *) |
12052 | # FIXME: insert proper C++ library support |
12053 | ld_shlibs_CXX=no |
12054 | ;; |
12055 | esac |
12056 | ;; |
12057 | solaris*) |
12058 | case $cc_basename in |
12059 | CC*) |
12060 | # Sun C++ 4.2, 5.x and Centerline C++ |
12061 | archive_cmds_need_lc_CXX=yes |
12062 | no_undefined_flag_CXX=' -zdefs' |
12063 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
12064 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
12065 | $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' |
12066 | |
12067 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
12068 | hardcode_shlibpath_var_CXX=no |
12069 | case $host_os in |
12070 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
12071 | *) |
12072 | # The C++ compiler is used as linker so we must use $wl |
12073 | # flag to pass the commands to the underlying system |
12074 | # linker. We must also pass each convience library through |
12075 | # to the system linker between allextract/defaultextract. |
12076 | # The C++ compiler will combine linker options so we |
12077 | # cannot just pass the convience library names through |
12078 | # without $wl. |
12079 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
12080 | whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' |
12081 | ;; |
12082 | esac |
12083 | link_all_deplibs_CXX=yes |
12084 | |
12085 | output_verbose_link_cmd='echo' |
12086 | |
12087 | # Archives containing C++ object files must be created using |
12088 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
12089 | # necessary to make sure instantiated templates are included |
12090 | # in the archive. |
12091 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
12092 | ;; |
12093 | gcx*) |
12094 | # Green Hills C++ Compiler |
12095 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
12096 | |
12097 | # The C++ compiler must be used to create the archive. |
12098 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
12099 | ;; |
12100 | *) |
12101 | # GNU C++ compiler with Solaris linker |
12102 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
12103 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
12104 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
12105 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
12106 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
12107 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
12108 | |
12109 | # Commands to make compiler produce verbose output that lists |
12110 | # what "hidden" libraries, object files and flags are used when |
12111 | # linking a shared library. |
12112 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
12113 | else |
12114 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
12115 | # platform. |
12116 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
12117 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
12118 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
12119 | |
12120 | # Commands to make compiler produce verbose output that lists |
12121 | # what "hidden" libraries, object files and flags are used when |
12122 | # linking a shared library. |
12123 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
12124 | fi |
12125 | |
12126 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
12127 | fi |
12128 | ;; |
12129 | esac |
12130 | ;; |
12131 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
12132 | archive_cmds_need_lc_CXX=no |
12133 | ;; |
12134 | tandem*) |
12135 | case $cc_basename in |
12136 | NCC*) |
12137 | # NonStop-UX NCC 3.20 |
12138 | # FIXME: insert proper C++ library support |
12139 | ld_shlibs_CXX=no |
12140 | ;; |
12141 | *) |
12142 | # FIXME: insert proper C++ library support |
12143 | ld_shlibs_CXX=no |
12144 | ;; |
12145 | esac |
12146 | ;; |
12147 | vxworks*) |
12148 | # FIXME: insert proper C++ library support |
12149 | ld_shlibs_CXX=no |
12150 | ;; |
12151 | *) |
12152 | # FIXME: insert proper C++ library support |
12153 | ld_shlibs_CXX=no |
12154 | ;; |
12155 | esac |
12156 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12157 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
12158 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12159 | |
12160 | GCC_CXX="$GXX" |
12161 | LD_CXX="$LD" |
12162 | |
12163 | |
12164 | cat > conftest.$ac_ext <<EOF |
12165 | class Foo |
12166 | { |
12167 | public: |
12168 | Foo (void) { a = 0; } |
12169 | private: |
12170 | int a; |
12171 | }; |
12172 | EOF |
12173 | |
12174 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12175 | (eval $ac_compile) 2>&5 |
12176 | ac_status=$? |
12177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12178 | (exit $ac_status); }; then |
12179 | # Parse the compiler output and extract the necessary |
12180 | # objects, libraries and library flags. |
12181 | |
12182 | # Sentinel used to keep track of whether or not we are before |
12183 | # the conftest object file. |
12184 | pre_test_object_deps_done=no |
12185 | |
12186 | # The `*' in the case matches for architectures that use `case' in |
12187 | # $output_verbose_cmd can trigger glob expansion during the loop |
12188 | # eval without this substitution. |
12189 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
12190 | |
12191 | for p in `eval $output_verbose_link_cmd`; do |
12192 | case $p in |
12193 | |
12194 | -L* | -R* | -l*) |
12195 | # Some compilers place space between "-{L,R}" and the path. |
12196 | # Remove the space. |
12197 | if test $p = "-L" \ |
12198 | || test $p = "-R"; then |
12199 | prev=$p |
12200 | continue |
12201 | else |
12202 | prev= |
12203 | fi |
12204 | |
12205 | if test "$pre_test_object_deps_done" = no; then |
12206 | case $p in |
12207 | -L* | -R*) |
12208 | # Internal compiler library paths should come after those |
12209 | # provided the user. The postdeps already come after the |
12210 | # user supplied libs so there is no need to process them. |
12211 | if test -z "$compiler_lib_search_path_CXX"; then |
12212 | compiler_lib_search_path_CXX="${prev}${p}" |
12213 | else |
12214 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
12215 | fi |
12216 | ;; |
12217 | # The "-l" case would never come before the object being |
12218 | # linked, so don't bother handling this case. |
12219 | esac |
12220 | else |
12221 | if test -z "$postdeps_CXX"; then |
12222 | postdeps_CXX="${prev}${p}" |
12223 | else |
12224 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
12225 | fi |
12226 | fi |
12227 | ;; |
12228 | |
12229 | *.$objext) |
12230 | # This assumes that the test object file only shows up |
12231 | # once in the compiler output. |
12232 | if test "$p" = "conftest.$objext"; then |
12233 | pre_test_object_deps_done=yes |
12234 | continue |
12235 | fi |
12236 | |
12237 | if test "$pre_test_object_deps_done" = no; then |
12238 | if test -z "$predep_objects_CXX"; then |
12239 | predep_objects_CXX="$p" |
12240 | else |
12241 | predep_objects_CXX="$predep_objects_CXX $p" |
12242 | fi |
12243 | else |
12244 | if test -z "$postdep_objects_CXX"; then |
12245 | postdep_objects_CXX="$p" |
12246 | else |
12247 | postdep_objects_CXX="$postdep_objects_CXX $p" |
12248 | fi |
12249 | fi |
12250 | ;; |
12251 | |
12252 | *) ;; # Ignore the rest. |
12253 | |
12254 | esac |
12255 | done |
12256 | |
12257 | # Clean up. |
12258 | rm -f a.out a.exe |
12259 | else |
12260 | echo "libtool.m4: error: problem compiling CXX test program" |
12261 | fi |
12262 | |
12263 | $rm -f confest.$objext |
12264 | |
12265 | # PORTME: override above test on systems where it is broken |
12266 | case $host_os in |
12267 | solaris*) |
12268 | case $cc_basename in |
12269 | CC*) |
12270 | # Adding this requires a known-good setup of shared libraries for |
12271 | # Sun compiler versions before 5.6, else PIC objects from an old |
12272 | # archive will be linked into the output, leading to subtle bugs. |
12273 | postdeps_CXX='-lCstd -lCrun' |
12274 | ;; |
12275 | esac |
12276 | esac |
12277 | |
12278 | |
12279 | case " $postdeps_CXX " in |
12280 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
12281 | esac |
12282 | |
12283 | lt_prog_compiler_wl_CXX= |
12284 | lt_prog_compiler_pic_CXX= |
12285 | lt_prog_compiler_static_CXX= |
12286 | |
12287 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
12288 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
12289 | |
12290 | # C++ specific cases for pic, static, wl, etc. |
12291 | if test "$GXX" = yes; then |
12292 | lt_prog_compiler_wl_CXX='-Wl,' |
12293 | lt_prog_compiler_static_CXX='-static' |
12294 | |
12295 | case $host_os in |
12296 | aix*) |
12297 | # All AIX code is PIC. |
12298 | if test "$host_cpu" = ia64; then |
12299 | # AIX 5 now supports IA64 processor |
12300 | lt_prog_compiler_static_CXX='-Bstatic' |
12301 | fi |
12302 | ;; |
12303 | amigaos*) |
12304 | # FIXME: we need at least 68020 code to build shared libraries, but |
12305 | # adding the `-m68020' flag to GCC prevents building anything better, |
12306 | # like `-m68040'. |
12307 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
12308 | ;; |
12309 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
12310 | # PIC is the default for these OSes. |
12311 | ;; |
12312 | mingw* | os2* | pw32*) |
12313 | # This hack is so that the source file can tell whether it is being |
12314 | # built for inclusion in a dll (and should export symbols for example). |
12315 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
12316 | ;; |
12317 | darwin* | rhapsody*) |
12318 | # PIC is the default on this platform |
12319 | # Common symbols not allowed in MH_DYLIB files |
12320 | lt_prog_compiler_pic_CXX='-fno-common' |
12321 | ;; |
12322 | *djgpp*) |
12323 | # DJGPP does not support shared libraries at all |
12324 | lt_prog_compiler_pic_CXX= |
12325 | ;; |
12326 | sysv4*MP*) |
12327 | if test -d /usr/nec; then |
12328 | lt_prog_compiler_pic_CXX=-Kconform_pic |
12329 | fi |
12330 | ;; |
12331 | hpux*) |
12332 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
12333 | # not for PA HP-UX. |
12334 | case $host_cpu in |
12335 | hppa*64*|ia64*) |
12336 | ;; |
12337 | *) |
12338 | lt_prog_compiler_pic_CXX='-fPIC' |
12339 | ;; |
12340 | esac |
12341 | ;; |
12342 | *) |
12343 | lt_prog_compiler_pic_CXX='-fPIC' |
12344 | ;; |
12345 | esac |
12346 | else |
12347 | case $host_os in |
12348 | aix4* | aix5*) |
12349 | # All AIX code is PIC. |
12350 | if test "$host_cpu" = ia64; then |
12351 | # AIX 5 now supports IA64 processor |
12352 | lt_prog_compiler_static_CXX='-Bstatic' |
12353 | else |
12354 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
12355 | fi |
12356 | ;; |
12357 | chorus*) |
12358 | case $cc_basename in |
12359 | cxch68*) |
12360 | # Green Hills C++ Compiler |
12361 | # _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" |
12362 | ;; |
12363 | esac |
12364 | ;; |
12365 | darwin*) |
12366 | # PIC is the default on this platform |
12367 | # Common symbols not allowed in MH_DYLIB files |
12368 | case $cc_basename in |
12369 | xlc*) |
12370 | lt_prog_compiler_pic_CXX='-qnocommon' |
12371 | lt_prog_compiler_wl_CXX='-Wl,' |
12372 | ;; |
12373 | esac |
12374 | ;; |
12375 | dgux*) |
12376 | case $cc_basename in |
12377 | ec++*) |
12378 | lt_prog_compiler_pic_CXX='-KPIC' |
12379 | ;; |
12380 | ghcx*) |
12381 | # Green Hills C++ Compiler |
12382 | lt_prog_compiler_pic_CXX='-pic' |
12383 | ;; |
12384 | *) |
12385 | ;; |
12386 | esac |
12387 | ;; |
12388 | freebsd* | kfreebsd*-gnu | dragonfly*) |
12389 | # FreeBSD uses GNU C++ |
12390 | ;; |
12391 | hpux9* | hpux10* | hpux11*) |
12392 | case $cc_basename in |
12393 | CC*) |
12394 | lt_prog_compiler_wl_CXX='-Wl,' |
12395 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
12396 | if test "$host_cpu" != ia64; then |
12397 | lt_prog_compiler_pic_CXX='+Z' |
12398 | fi |
12399 | ;; |
12400 | aCC*) |
12401 | lt_prog_compiler_wl_CXX='-Wl,' |
12402 | lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" |
12403 | case $host_cpu in |
12404 | hppa*64*|ia64*) |
12405 | # +Z the default |
12406 | ;; |
12407 | *) |
12408 | lt_prog_compiler_pic_CXX='+Z' |
12409 | ;; |
12410 | esac |
12411 | ;; |
12412 | *) |
12413 | ;; |
12414 | esac |
12415 | ;; |
12416 | irix5* | irix6* | nonstopux*) |
12417 | case $cc_basename in |
12418 | CC*) |
12419 | lt_prog_compiler_wl_CXX='-Wl,' |
12420 | lt_prog_compiler_static_CXX='-non_shared' |
12421 | # CC pic flag -KPIC is the default. |
12422 | ;; |
12423 | *) |
12424 | ;; |
12425 | esac |
12426 | ;; |
12427 | linux*) |
12428 | case $cc_basename in |
12429 | KCC*) |
12430 | # KAI C++ Compiler |
12431 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12432 | lt_prog_compiler_pic_CXX='-fPIC' |
12433 | ;; |
12434 | icpc* | ecpc*) |
12435 | # Intel C++ |
12436 | lt_prog_compiler_wl_CXX='-Wl,' |
12437 | lt_prog_compiler_pic_CXX='-KPIC' |
12438 | lt_prog_compiler_static_CXX='-static' |
12439 | ;; |
12440 | pgCC*) |
12441 | # Portland Group C++ compiler. |
12442 | lt_prog_compiler_wl_CXX='-Wl,' |
12443 | lt_prog_compiler_pic_CXX='-fpic' |
12444 | lt_prog_compiler_static_CXX='-Bstatic' |
12445 | ;; |
12446 | cxx*) |
12447 | # Compaq C++ |
12448 | # Make sure the PIC flag is empty. It appears that all Alpha |
12449 | # Linux and Compaq Tru64 Unix objects are PIC. |
12450 | lt_prog_compiler_pic_CXX= |
12451 | lt_prog_compiler_static_CXX='-non_shared' |
12452 | ;; |
12453 | *) |
12454 | ;; |
12455 | esac |
12456 | ;; |
12457 | lynxos*) |
12458 | ;; |
12459 | m88k*) |
12460 | ;; |
12461 | mvs*) |
12462 | case $cc_basename in |
12463 | cxx*) |
12464 | lt_prog_compiler_pic_CXX='-W c,exportall' |
12465 | ;; |
12466 | *) |
12467 | ;; |
12468 | esac |
12469 | ;; |
12470 | netbsd*) |
12471 | ;; |
12472 | osf3* | osf4* | osf5*) |
12473 | case $cc_basename in |
12474 | KCC*) |
12475 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12476 | ;; |
12477 | RCC*) |
12478 | # Rational C++ 2.4.1 |
12479 | lt_prog_compiler_pic_CXX='-pic' |
12480 | ;; |
12481 | cxx*) |
12482 | # Digital/Compaq C++ |
12483 | lt_prog_compiler_wl_CXX='-Wl,' |
12484 | # Make sure the PIC flag is empty. It appears that all Alpha |
12485 | # Linux and Compaq Tru64 Unix objects are PIC. |
12486 | lt_prog_compiler_pic_CXX= |
12487 | lt_prog_compiler_static_CXX='-non_shared' |
12488 | ;; |
12489 | *) |
12490 | ;; |
12491 | esac |
12492 | ;; |
12493 | psos*) |
12494 | ;; |
12495 | sco*) |
12496 | case $cc_basename in |
12497 | CC*) |
12498 | lt_prog_compiler_pic_CXX='-fPIC' |
12499 | ;; |
12500 | *) |
12501 | ;; |
12502 | esac |
12503 | ;; |
12504 | solaris*) |
12505 | case $cc_basename in |
12506 | CC*) |
12507 | # Sun C++ 4.2, 5.x and Centerline C++ |
12508 | lt_prog_compiler_pic_CXX='-KPIC' |
12509 | lt_prog_compiler_static_CXX='-Bstatic' |
12510 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12511 | ;; |
12512 | gcx*) |
12513 | # Green Hills C++ Compiler |
12514 | lt_prog_compiler_pic_CXX='-PIC' |
12515 | ;; |
12516 | *) |
12517 | ;; |
12518 | esac |
12519 | ;; |
12520 | sunos4*) |
12521 | case $cc_basename in |
12522 | CC*) |
12523 | # Sun C++ 4.x |
12524 | lt_prog_compiler_pic_CXX='-pic' |
12525 | lt_prog_compiler_static_CXX='-Bstatic' |
12526 | ;; |
12527 | lcc*) |
12528 | # Lucid |
12529 | lt_prog_compiler_pic_CXX='-pic' |
12530 | ;; |
12531 | *) |
12532 | ;; |
12533 | esac |
12534 | ;; |
12535 | tandem*) |
12536 | case $cc_basename in |
12537 | NCC*) |
12538 | # NonStop-UX NCC 3.20 |
12539 | lt_prog_compiler_pic_CXX='-KPIC' |
12540 | ;; |
12541 | *) |
12542 | ;; |
12543 | esac |
12544 | ;; |
12545 | unixware*) |
12546 | ;; |
12547 | vxworks*) |
12548 | ;; |
12549 | *) |
12550 | lt_prog_compiler_can_build_shared_CXX=no |
12551 | ;; |
12552 | esac |
12553 | fi |
12554 | |
12555 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
12556 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
12557 | |
12558 | # |
12559 | # Check to make sure the PIC flag actually works. |
12560 | # |
12561 | if test -n "$lt_prog_compiler_pic_CXX"; then |
12562 | |
12563 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
12564 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
12565 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
12566 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12567 | else |
12568 | lt_prog_compiler_pic_works_CXX=no |
12569 | ac_outfile=conftest.$ac_objext |
12570 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12571 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
12572 | # Insert the option either (1) after the last *FLAGS variable, or |
12573 | # (2) before a word containing "conftest.", or (3) at the end. |
12574 | # Note that $ac_compile itself does not contain backslashes and begins |
12575 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12576 | # The option is referenced via a variable to avoid confusing sed. |
12577 | lt_compile=`echo "$ac_compile" | $SED \ |
12578 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12579 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12580 | -e 's:$: $lt_compiler_flag:'` |
12581 | (eval echo "\"\$as_me:12581: $lt_compile\"" >&5) |
12582 | (eval "$lt_compile" 2>conftest.err) |
12583 | ac_status=$? |
12584 | cat conftest.err >&5 |
12585 | echo "$as_me:12585: \$? = $ac_status" >&5 |
12586 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12587 | # The compiler can only warn and ignore the option if not recognized |
12588 | # So say no if there are warnings other than the usual output. |
12589 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
12590 | $SED '/^$/d' conftest.err >conftest.er2 |
12591 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
12592 | lt_prog_compiler_pic_works_CXX=yes |
12593 | fi |
12594 | fi |
12595 | $rm conftest* |
12596 | |
12597 | fi |
12598 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
12599 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
12600 | |
12601 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
12602 | case $lt_prog_compiler_pic_CXX in |
12603 | "" | " "*) ;; |
12604 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
12605 | esac |
12606 | else |
12607 | lt_prog_compiler_pic_CXX= |
12608 | lt_prog_compiler_can_build_shared_CXX=no |
12609 | fi |
12610 | |
12611 | fi |
12612 | case $host_os in |
12613 | # For platforms which do not support PIC, -DPIC is meaningless: |
12614 | *djgpp*) |
12615 | lt_prog_compiler_pic_CXX= |
12616 | ;; |
12617 | *) |
12618 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
12619 | ;; |
12620 | esac |
12621 | |
12622 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12623 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
12624 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
12625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12626 | else |
12627 | lt_cv_prog_compiler_c_o_CXX=no |
12628 | $rm -r conftest 2>/dev/null |
12629 | mkdir conftest |
12630 | cd conftest |
12631 | mkdir out |
12632 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12633 | |
12634 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
12635 | # Insert the option either (1) after the last *FLAGS variable, or |
12636 | # (2) before a word containing "conftest.", or (3) at the end. |
12637 | # Note that $ac_compile itself does not contain backslashes and begins |
12638 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12639 | lt_compile=`echo "$ac_compile" | $SED \ |
12640 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12641 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12642 | -e 's:$: $lt_compiler_flag:'` |
12643 | (eval echo "\"\$as_me:12643: $lt_compile\"" >&5) |
12644 | (eval "$lt_compile" 2>out/conftest.err) |
12645 | ac_status=$? |
12646 | cat out/conftest.err >&5 |
12647 | echo "$as_me:12647: \$? = $ac_status" >&5 |
12648 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12649 | then |
12650 | # The compiler can only warn and ignore the option if not recognized |
12651 | # So say no if there are warnings |
12652 | $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp |
12653 | $SED '/^$/d' out/conftest.err >out/conftest.er2 |
12654 | if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
12655 | lt_cv_prog_compiler_c_o_CXX=yes |
12656 | fi |
12657 | fi |
12658 | chmod u+w . 2>&5 |
12659 | $rm conftest* |
12660 | # SGI C++ compiler will create directory out/ii_files/ for |
12661 | # template instantiation |
12662 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
12663 | $rm out/* && rmdir out |
12664 | cd .. |
12665 | rmdir conftest |
12666 | $rm conftest* |
12667 | |
12668 | fi |
12669 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
12670 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
12671 | |
12672 | |
12673 | hard_links="nottested" |
12674 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
12675 | # do not overwrite the value of need_locks provided by the user |
12676 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
12677 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
12678 | hard_links=yes |
12679 | $rm conftest* |
12680 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
12681 | touch conftest.a |
12682 | ln conftest.a conftest.b 2>&5 || hard_links=no |
12683 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
12684 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
12685 | echo "${ECHO_T}$hard_links" >&6; } |
12686 | if test "$hard_links" = no; then |
12687 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12688 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
12689 | need_locks=warn |
12690 | fi |
12691 | else |
12692 | need_locks=no |
12693 | fi |
12694 | |
12695 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12696 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
12697 | |
12698 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12699 | case $host_os in |
12700 | aix4* | aix5*) |
12701 | # If we're using GNU nm, then we don't want the "-C" option. |
12702 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
12703 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
12704 | 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' |
12705 | else |
12706 | 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' |
12707 | fi |
12708 | ;; |
12709 | pw32*) |
12710 | export_symbols_cmds_CXX="$ltdll_cmds" |
12711 | ;; |
12712 | cygwin* | mingw*) |
12713 | 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' |
12714 | ;; |
12715 | *) |
12716 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12717 | ;; |
12718 | esac |
12719 | |
12720 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12721 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
12722 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12723 | |
12724 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
12725 | if test "$GCC" = yes; then |
12726 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
12727 | fi |
12728 | |
12729 | # |
12730 | # Do we need to explicitly link libc? |
12731 | # |
12732 | case "x$archive_cmds_need_lc_CXX" in |
12733 | x|xyes) |
12734 | # Assume -lc should be added |
12735 | archive_cmds_need_lc_CXX=yes |
12736 | |
12737 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
12738 | case $archive_cmds_CXX in |
12739 | *'~'*) |
12740 | # FIXME: we may have to deal with multi-command sequences. |
12741 | ;; |
12742 | '$CC '*) |
12743 | # Test whether the compiler implicitly links with -lc since on some |
12744 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
12745 | # to ld, don't add -lc before -lgcc. |
12746 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
12747 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
12748 | $rm conftest* |
12749 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12750 | |
12751 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12752 | (eval $ac_compile) 2>&5 |
12753 | ac_status=$? |
12754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12755 | (exit $ac_status); } 2>conftest.err; then |
12756 | soname=conftest |
12757 | lib=conftest |
12758 | libobjs=conftest.$ac_objext |
12759 | deplibs= |
12760 | wl=$lt_prog_compiler_wl_CXX |
12761 | compiler_flags=-v |
12762 | linker_flags=-v |
12763 | verstring= |
12764 | output_objdir=. |
12765 | libname=conftest |
12766 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
12767 | allow_undefined_flag_CXX= |
12768 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
12769 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
12770 | ac_status=$? |
12771 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12772 | (exit $ac_status); } |
12773 | then |
12774 | archive_cmds_need_lc_CXX=no |
12775 | else |
12776 | archive_cmds_need_lc_CXX=yes |
12777 | fi |
12778 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
12779 | else |
12780 | cat conftest.err 1>&5 |
12781 | fi |
12782 | $rm conftest* |
12783 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
12784 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
12785 | ;; |
12786 | esac |
12787 | fi |
12788 | ;; |
12789 | esac |
12790 | |
12791 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
12792 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
12793 | library_names_spec= |
12794 | libname_spec='lib$name' |
12795 | soname_spec= |
12796 | shrext_cmds=".so" |
12797 | postinstall_cmds= |
12798 | postuninstall_cmds= |
12799 | finish_cmds= |
12800 | finish_eval= |
12801 | shlibpath_var= |
12802 | shlibpath_overrides_runpath=unknown |
12803 | version_type=none |
12804 | dynamic_linker="$host_os ld.so" |
12805 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
12806 | if test "$GCC" = yes; then |
12807 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12808 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
12809 | # if the path contains ";" then we assume it to be the separator |
12810 | # otherwise default to the standard path separator (i.e. ":") - it is |
12811 | # assumed that no part of a normal pathname contains ";" but that should |
12812 | # okay in the real world where ";" in dirpaths is itself problematic. |
12813 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12814 | else |
12815 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12816 | fi |
12817 | else |
12818 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
12819 | fi |
12820 | need_lib_prefix=unknown |
12821 | hardcode_into_libs=no |
12822 | |
12823 | # when you set need_version to no, make sure it does not cause -set_version |
12824 | # flags to be left without arguments |
12825 | need_version=unknown |
12826 | |
12827 | case $host_os in |
12828 | aix3*) |
12829 | version_type=linux |
12830 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
12831 | shlibpath_var=LIBPATH |
12832 | |
12833 | # AIX 3 has no versioning support, so we append a major version to the name. |
12834 | soname_spec='${libname}${release}${shared_ext}$major' |
12835 | ;; |
12836 | |
12837 | aix4* | aix5*) |
12838 | version_type=linux |
12839 | need_lib_prefix=no |
12840 | need_version=no |
12841 | hardcode_into_libs=yes |
12842 | if test "$host_cpu" = ia64; then |
12843 | # AIX 5 supports IA64 |
12844 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
12845 | shlibpath_var=LD_LIBRARY_PATH |
12846 | else |
12847 | # With GCC up to 2.95.x, collect2 would create an import file |
12848 | # for dependence libraries. The import file would start with |
12849 | # the line `#! .'. This would cause the generated library to |
12850 | # depend on `.', always an invalid library. This was fixed in |
12851 | # development snapshots of GCC prior to 3.0. |
12852 | case $host_os in |
12853 | aix4 | aix4.[01] | aix4.[01].*) |
12854 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
12855 | echo ' yes ' |
12856 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
12857 | : |
12858 | else |
12859 | can_build_shared=no |
12860 | fi |
12861 | ;; |
12862 | esac |
12863 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
12864 | # soname into executable. Probably we can add versioning support to |
12865 | # collect2, so additional links can be useful in future. |
12866 | if test "$aix_use_runtimelinking" = yes; then |
12867 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
12868 | # instead of lib<name>.a to let people know that these are not |
12869 | # typical AIX shared libraries. |
12870 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12871 | else |
12872 | # We preserve .a as extension for shared libraries through AIX4.2 |
12873 | # and later when we are not doing run time linking. |
12874 | library_names_spec='${libname}${release}.a $libname.a' |
12875 | soname_spec='${libname}${release}${shared_ext}$major' |
12876 | fi |
12877 | shlibpath_var=LIBPATH |
12878 | fi |
12879 | ;; |
12880 | |
12881 | amigaos*) |
12882 | library_names_spec='$libname.ixlibrary $libname.a' |
12883 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
12884 | 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' |
12885 | ;; |
12886 | |
12887 | beos*) |
12888 | library_names_spec='${libname}${shared_ext}' |
12889 | dynamic_linker="$host_os ld.so" |
12890 | shlibpath_var=LIBRARY_PATH |
12891 | ;; |
12892 | |
12893 | bsdi[45]*) |
12894 | version_type=linux |
12895 | need_version=no |
12896 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12897 | soname_spec='${libname}${release}${shared_ext}$major' |
12898 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
12899 | shlibpath_var=LD_LIBRARY_PATH |
12900 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
12901 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
12902 | # the default ld.so.conf also contains /usr/contrib/lib and |
12903 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
12904 | # libtool to hard-code these into programs |
12905 | ;; |
12906 | |
12907 | cygwin* | mingw* | pw32*) |
12908 | version_type=windows |
12909 | shrext_cmds=".dll" |
12910 | need_version=no |
12911 | need_lib_prefix=no |
12912 | |
12913 | case $GCC,$host_os in |
12914 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12915 | library_names_spec='$libname.dll.a' |
12916 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12917 | postinstall_cmds='base_file=`basename \${file}`~ |
12918 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12919 | dldir=$destdir/`dirname \$dlpath`~ |
12920 | test -d \$dldir || mkdir -p \$dldir~ |
12921 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12922 | chmod a+x \$dldir/$dlname' |
12923 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12924 | dlpath=$dir/\$dldll~ |
12925 | $rm \$dlpath' |
12926 | shlibpath_overrides_runpath=yes |
12927 | |
12928 | case $host_os in |
12929 | cygwin*) |
12930 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
12931 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12932 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
12933 | ;; |
12934 | mingw*) |
12935 | # MinGW DLLs use traditional 'lib' prefix |
12936 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12937 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12938 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
12939 | # It is most probably a Windows format PATH printed by |
12940 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
12941 | # path with ; separators, and with drive letters. We can handle the |
12942 | # drive letters (cygwin fileutils understands them), so leave them, |
12943 | # especially as we might pass files found there to a mingw objdump, |
12944 | # which wouldn't understand a cygwinified path. Ahh. |
12945 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12946 | else |
12947 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12948 | fi |
12949 | ;; |
12950 | pw32*) |
12951 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12952 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12953 | ;; |
12954 | esac |
12955 | ;; |
12956 | |
12957 | *) |
12958 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12959 | ;; |
12960 | esac |
12961 | dynamic_linker='Win32 ld.exe' |
12962 | # FIXME: first we should search . and the directory the executable is in |
12963 | shlibpath_var=PATH |
12964 | ;; |
12965 | |
12966 | darwin* | rhapsody*) |
12967 | dynamic_linker="$host_os dyld" |
12968 | version_type=darwin |
12969 | need_lib_prefix=no |
12970 | need_version=no |
12971 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
12972 | soname_spec='${libname}${release}${major}$shared_ext' |
12973 | shlibpath_overrides_runpath=yes |
12974 | shlibpath_var=DYLD_LIBRARY_PATH |
12975 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
12976 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
12977 | if test "$GCC" = yes; then |
12978 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
12979 | else |
12980 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
12981 | fi |
12982 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
12983 | ;; |
12984 | |
12985 | dgux*) |
12986 | version_type=linux |
12987 | need_lib_prefix=no |
12988 | need_version=no |
12989 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
12990 | soname_spec='${libname}${release}${shared_ext}$major' |
12991 | shlibpath_var=LD_LIBRARY_PATH |
12992 | ;; |
12993 | |
12994 | freebsd1*) |
12995 | dynamic_linker=no |
12996 | ;; |
12997 | |
12998 | kfreebsd*-gnu) |
12999 | version_type=linux |
13000 | need_lib_prefix=no |
13001 | need_version=no |
13002 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13003 | soname_spec='${libname}${release}${shared_ext}$major' |
13004 | shlibpath_var=LD_LIBRARY_PATH |
13005 | shlibpath_overrides_runpath=no |
13006 | hardcode_into_libs=yes |
13007 | dynamic_linker='GNU ld.so' |
13008 | ;; |
13009 | |
13010 | freebsd* | dragonfly*) |
13011 | # DragonFly does not have aout. When/if they implement a new |
13012 | # versioning mechanism, adjust this. |
13013 | if test -x /usr/bin/objformat; then |
13014 | objformat=`/usr/bin/objformat` |
13015 | else |
13016 | case $host_os in |
13017 | freebsd[123]*) objformat=aout ;; |
13018 | *) objformat=elf ;; |
13019 | esac |
13020 | fi |
13021 | version_type=freebsd-$objformat |
13022 | case $version_type in |
13023 | freebsd-elf*) |
13024 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
13025 | need_version=no |
13026 | need_lib_prefix=no |
13027 | ;; |
13028 | freebsd-*) |
13029 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
13030 | need_version=yes |
13031 | ;; |
13032 | esac |
13033 | shlibpath_var=LD_LIBRARY_PATH |
13034 | case $host_os in |
13035 | freebsd2*) |
13036 | shlibpath_overrides_runpath=yes |
13037 | ;; |
13038 | freebsd3.[01]* | freebsdelf3.[01]*) |
13039 | shlibpath_overrides_runpath=yes |
13040 | hardcode_into_libs=yes |
13041 | ;; |
13042 | *) # from 3.2 on |
13043 | shlibpath_overrides_runpath=no |
13044 | hardcode_into_libs=yes |
13045 | ;; |
13046 | esac |
13047 | ;; |
13048 | |
13049 | gnu*) |
13050 | version_type=linux |
13051 | need_lib_prefix=no |
13052 | need_version=no |
13053 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
13054 | soname_spec='${libname}${release}${shared_ext}$major' |
13055 | shlibpath_var=LD_LIBRARY_PATH |
13056 | hardcode_into_libs=yes |
13057 | ;; |
13058 | |
13059 | hpux9* | hpux10* | hpux11*) |
13060 | # Give a soname corresponding to the major version so that dld.sl refuses to |
13061 | # link against other versions. |
13062 | version_type=sunos |
13063 | need_lib_prefix=no |
13064 | need_version=no |
13065 | case $host_cpu in |
13066 | ia64*) |
13067 | shrext_cmds='.so' |
13068 | hardcode_into_libs=yes |
13069 | dynamic_linker="$host_os dld.so" |
13070 | shlibpath_var=LD_LIBRARY_PATH |
13071 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
13072 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13073 | soname_spec='${libname}${release}${shared_ext}$major' |
13074 | if test "X$HPUX_IA64_MODE" = X32; then |
13075 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
13076 | else |
13077 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
13078 | fi |
13079 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
13080 | ;; |
13081 | hppa*64*) |
13082 | shrext_cmds='.sl' |
13083 | hardcode_into_libs=yes |
13084 | dynamic_linker="$host_os dld.sl" |
13085 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
13086 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
13087 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13088 | soname_spec='${libname}${release}${shared_ext}$major' |
13089 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
13090 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
13091 | ;; |
13092 | *) |
13093 | shrext_cmds='.sl' |
13094 | dynamic_linker="$host_os dld.sl" |
13095 | shlibpath_var=SHLIB_PATH |
13096 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
13097 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13098 | soname_spec='${libname}${release}${shared_ext}$major' |
13099 | ;; |
13100 | esac |
13101 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
13102 | postinstall_cmds='chmod 555 $lib' |
13103 | ;; |
13104 | |
13105 | irix5* | irix6* | nonstopux*) |
13106 | case $host_os in |
13107 | nonstopux*) version_type=nonstopux ;; |
13108 | *) |
13109 | if test "$lt_cv_prog_gnu_ld" = yes; then |
13110 | version_type=linux |
13111 | else |
13112 | version_type=irix |
13113 | fi ;; |
13114 | esac |
13115 | need_lib_prefix=no |
13116 | need_version=no |
13117 | soname_spec='${libname}${release}${shared_ext}$major' |
13118 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
13119 | case $host_os in |
13120 | irix5* | nonstopux*) |
13121 | libsuff= shlibsuff= |
13122 | ;; |
13123 | *) |
13124 | case $LD in # libtool.m4 will add one of these switches to LD |
13125 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
13126 | libsuff= shlibsuff= libmagic=32-bit;; |
13127 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
13128 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
13129 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
13130 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
13131 | *) libsuff= shlibsuff= libmagic=never-match;; |
13132 | esac |
13133 | ;; |
13134 | esac |
13135 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
13136 | shlibpath_overrides_runpath=no |
13137 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
13138 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
13139 | hardcode_into_libs=yes |
13140 | ;; |
13141 | |
13142 | # No shared lib support for Linux oldld, aout, or coff. |
13143 | linux*oldld* | linux*aout* | linux*coff*) |
13144 | dynamic_linker=no |
13145 | ;; |
13146 | |
13147 | # This must be Linux ELF. |
13148 | linux*) |
13149 | version_type=linux |
13150 | need_lib_prefix=no |
13151 | need_version=no |
13152 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13153 | soname_spec='${libname}${release}${shared_ext}$major' |
13154 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
13155 | shlibpath_var=LD_LIBRARY_PATH |
13156 | shlibpath_overrides_runpath=no |
13157 | # This implies no fast_install, which is unacceptable. |
13158 | # Some rework will be needed to allow for fast_install |
13159 | # before this can be enabled. |
13160 | hardcode_into_libs=yes |
13161 | |
13162 | # Append ld.so.conf contents to the search path |
13163 | if test -f /etc/ld.so.conf; then |
13164 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
13165 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
13166 | fi |
13167 | |
13168 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13169 | # powerpc, because MkLinux only supported shared libraries with the |
13170 | # GNU dynamic linker. Since this was broken with cross compilers, |
13171 | # most powerpc-linux boxes support dynamic linking these days and |
13172 | # people can always --disable-shared, the test was removed, and we |
13173 | # assume the GNU/Linux dynamic linker is in use. |
13174 | dynamic_linker='GNU/Linux ld.so' |
13175 | ;; |
13176 | |
13177 | knetbsd*-gnu) |
13178 | version_type=linux |
13179 | need_lib_prefix=no |
13180 | need_version=no |
13181 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13182 | soname_spec='${libname}${release}${shared_ext}$major' |
13183 | shlibpath_var=LD_LIBRARY_PATH |
13184 | shlibpath_overrides_runpath=no |
13185 | hardcode_into_libs=yes |
13186 | dynamic_linker='GNU ld.so' |
13187 | ;; |
13188 | |
13189 | netbsd*) |
13190 | version_type=sunos |
13191 | need_lib_prefix=no |
13192 | need_version=no |
13193 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13194 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13195 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13196 | dynamic_linker='NetBSD (a.out) ld.so' |
13197 | else |
13198 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13199 | soname_spec='${libname}${release}${shared_ext}$major' |
13200 | dynamic_linker='NetBSD ld.elf_so' |
13201 | fi |
13202 | shlibpath_var=LD_LIBRARY_PATH |
13203 | shlibpath_overrides_runpath=yes |
13204 | hardcode_into_libs=yes |
13205 | ;; |
13206 | |
13207 | newsos6) |
13208 | version_type=linux |
13209 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13210 | shlibpath_var=LD_LIBRARY_PATH |
13211 | shlibpath_overrides_runpath=yes |
13212 | ;; |
13213 | |
13214 | nto-qnx*) |
13215 | version_type=linux |
13216 | need_lib_prefix=no |
13217 | need_version=no |
13218 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13219 | soname_spec='${libname}${release}${shared_ext}$major' |
13220 | shlibpath_var=LD_LIBRARY_PATH |
13221 | shlibpath_overrides_runpath=yes |
13222 | ;; |
13223 | |
13224 | openbsd*) |
13225 | version_type=sunos |
13226 | need_lib_prefix=no |
13227 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
13228 | case $host_os in |
13229 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
13230 | *) need_version=no ;; |
13231 | esac |
13232 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13233 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13234 | shlibpath_var=LD_LIBRARY_PATH |
13235 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
13236 | case $host_os in |
13237 | openbsd2.[89] | openbsd2.[89].*) |
13238 | shlibpath_overrides_runpath=no |
13239 | ;; |
13240 | *) |
13241 | shlibpath_overrides_runpath=yes |
13242 | ;; |
13243 | esac |
13244 | else |
13245 | shlibpath_overrides_runpath=yes |
13246 | fi |
13247 | ;; |
13248 | |
13249 | os2*) |
13250 | libname_spec='$name' |
13251 | shrext_cmds=".dll" |
13252 | need_lib_prefix=no |
13253 | library_names_spec='$libname${shared_ext} $libname.a' |
13254 | dynamic_linker='OS/2 ld.exe' |
13255 | shlibpath_var=LIBPATH |
13256 | ;; |
13257 | |
13258 | osf3* | osf4* | osf5*) |
13259 | version_type=osf |
13260 | need_lib_prefix=no |
13261 | need_version=no |
13262 | soname_spec='${libname}${release}${shared_ext}$major' |
13263 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13264 | shlibpath_var=LD_LIBRARY_PATH |
13265 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
13266 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
13267 | ;; |
13268 | |
13269 | sco3.2v5*) |
13270 | version_type=osf |
13271 | soname_spec='${libname}${release}${shared_ext}$major' |
13272 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13273 | shlibpath_var=LD_LIBRARY_PATH |
13274 | ;; |
13275 | |
13276 | solaris*) |
13277 | version_type=linux |
13278 | need_lib_prefix=no |
13279 | need_version=no |
13280 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13281 | soname_spec='${libname}${release}${shared_ext}$major' |
13282 | shlibpath_var=LD_LIBRARY_PATH |
13283 | shlibpath_overrides_runpath=yes |
13284 | hardcode_into_libs=yes |
13285 | # ldd complains unless libraries are executable |
13286 | postinstall_cmds='chmod +x $lib' |
13287 | ;; |
13288 | |
13289 | sunos4*) |
13290 | version_type=sunos |
13291 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13292 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
13293 | shlibpath_var=LD_LIBRARY_PATH |
13294 | shlibpath_overrides_runpath=yes |
13295 | if test "$with_gnu_ld" = yes; then |
13296 | need_lib_prefix=no |
13297 | fi |
13298 | need_version=yes |
13299 | ;; |
13300 | |
13301 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
13302 | version_type=linux |
13303 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13304 | soname_spec='${libname}${release}${shared_ext}$major' |
13305 | shlibpath_var=LD_LIBRARY_PATH |
13306 | case $host_vendor in |
13307 | sni) |
13308 | shlibpath_overrides_runpath=no |
13309 | need_lib_prefix=no |
13310 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
13311 | runpath_var=LD_RUN_PATH |
13312 | ;; |
13313 | siemens) |
13314 | need_lib_prefix=no |
13315 | ;; |
13316 | motorola) |
13317 | need_lib_prefix=no |
13318 | need_version=no |
13319 | shlibpath_overrides_runpath=no |
13320 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
13321 | ;; |
13322 | esac |
13323 | ;; |
13324 | |
13325 | sysv4*MP*) |
13326 | if test -d /usr/nec ;then |
13327 | version_type=linux |
13328 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
13329 | soname_spec='$libname${shared_ext}.$major' |
13330 | shlibpath_var=LD_LIBRARY_PATH |
13331 | fi |
13332 | ;; |
13333 | |
13334 | uts4*) |
13335 | version_type=linux |
13336 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13337 | soname_spec='${libname}${release}${shared_ext}$major' |
13338 | shlibpath_var=LD_LIBRARY_PATH |
13339 | ;; |
13340 | |
13341 | *) |
13342 | dynamic_linker=no |
13343 | ;; |
13344 | esac |
13345 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
13346 | echo "${ECHO_T}$dynamic_linker" >&6; } |
13347 | test "$dynamic_linker" = no && can_build_shared=no |
13348 | |
13349 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
13350 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
13351 | hardcode_action_CXX= |
13352 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
13353 | test -n "$runpath_var_CXX" || \ |
13354 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
13355 | |
13356 | # We can hardcode non-existant directories. |
13357 | if test "$hardcode_direct_CXX" != no && |
13358 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
13359 | # have to relink, otherwise we might link with an installed library |
13360 | # when we should be linking with a yet-to-be-installed one |
13361 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
13362 | test "$hardcode_minus_L_CXX" != no; then |
13363 | # Linking always hardcodes the temporary library directory. |
13364 | hardcode_action_CXX=relink |
13365 | else |
13366 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
13367 | hardcode_action_CXX=immediate |
13368 | fi |
13369 | else |
13370 | # We cannot hardcode anything, or else we can only hardcode existing |
13371 | # directories. |
13372 | hardcode_action_CXX=unsupported |
13373 | fi |
13374 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
13375 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
13376 | |
13377 | if test "$hardcode_action_CXX" = relink; then |
13378 | # Fast installation is not supported |
13379 | enable_fast_install=no |
13380 | elif test "$shlibpath_overrides_runpath" = yes || |
13381 | test "$enable_shared" = no; then |
13382 | # Fast installation is not necessary |
13383 | enable_fast_install=needless |
13384 | fi |
13385 | |
13386 | striplib= |
13387 | old_striplib= |
13388 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
13389 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
13390 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
13391 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
13392 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
13393 | { echo "$as_me:$LINENO: result: yes" >&5 |
13394 | echo "${ECHO_T}yes" >&6; } |
13395 | else |
13396 | # FIXME - insert some real tests, host_os isn't really good enough |
13397 | case $host_os in |
13398 | darwin*) |
13399 | if test -n "$STRIP" ; then |
13400 | striplib="$STRIP -x" |
13401 | { echo "$as_me:$LINENO: result: yes" >&5 |
13402 | echo "${ECHO_T}yes" >&6; } |
13403 | else |
13404 | { echo "$as_me:$LINENO: result: no" >&5 |
13405 | echo "${ECHO_T}no" >&6; } |
13406 | fi |
13407 | ;; |
13408 | *) |
13409 | { echo "$as_me:$LINENO: result: no" >&5 |
13410 | echo "${ECHO_T}no" >&6; } |
13411 | ;; |
13412 | esac |
13413 | fi |
13414 | |
13415 | if test "x$enable_dlopen" != xyes; then |
13416 | enable_dlopen=unknown |
13417 | enable_dlopen_self=unknown |
13418 | enable_dlopen_self_static=unknown |
13419 | else |
13420 | lt_cv_dlopen=no |
13421 | lt_cv_dlopen_libs= |
13422 | |
13423 | case $host_os in |
13424 | beos*) |
13425 | lt_cv_dlopen="load_add_on" |
13426 | lt_cv_dlopen_libs= |
13427 | lt_cv_dlopen_self=yes |
13428 | ;; |
13429 | |
13430 | mingw* | pw32*) |
13431 | lt_cv_dlopen="LoadLibrary" |
13432 | lt_cv_dlopen_libs= |
13433 | ;; |
13434 | |
13435 | cygwin*) |
13436 | lt_cv_dlopen="dlopen" |
13437 | lt_cv_dlopen_libs= |
13438 | ;; |
13439 | |
13440 | darwin*) |
13441 | # if libdl is installed we need to link against it |
13442 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
13443 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
13444 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
13445 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13446 | else |
13447 | ac_check_lib_save_LIBS=$LIBS |
13448 | LIBS="-ldl $LIBS" |
13449 | cat >conftest.$ac_ext <<_ACEOF |
13450 | /* confdefs.h. */ |
13451 | _ACEOF |
13452 | cat confdefs.h >>conftest.$ac_ext |
13453 | cat >>conftest.$ac_ext <<_ACEOF |
13454 | /* end confdefs.h. */ |
13455 | |
13456 | /* Override any GCC internal prototype to avoid an error. |
13457 | Use char because int might match the return type of a GCC |
13458 | builtin and then its argument prototype would still apply. */ |
13459 | #ifdef __cplusplus |
13460 | extern "C" |
13461 | #endif |
13462 | char dlopen (); |
13463 | int |
13464 | main () |
13465 | { |
13466 | return dlopen (); |
13467 | ; |
13468 | return 0; |
13469 | } |
13470 | _ACEOF |
13471 | rm -f conftest.$ac_objext conftest$ac_exeext |
13472 | if { (ac_try="$ac_link" |
13473 | case "(($ac_try" in |
13474 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13475 | *) ac_try_echo=$ac_try;; |
13476 | esac |
13477 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
13478 | (eval "$ac_link") 2>conftest.er1 |
13479 | ac_status=$? |
13480 | grep -v '^ *+' conftest.er1 >conftest.err |
13481 | rm -f conftest.er1 |
13482 | cat conftest.err >&5 |
13483 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13484 | (exit $ac_status); } && { |
13485 | test -z "$ac_cxx_werror_flag" || |
13486 | test ! -s conftest.err |
13487 | } && test -s conftest$ac_exeext && |
13488 | $as_test_x conftest$ac_exeext; then |
13489 | ac_cv_lib_dl_dlopen=yes |
13490 | else |
13491 | echo "$as_me: failed program was:" >&5 |
13492 | sed 's/^/| /' conftest.$ac_ext >&5 |
13493 | |
13494 | ac_cv_lib_dl_dlopen=no |
13495 | fi |
13496 | |
13497 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
13498 | conftest$ac_exeext conftest.$ac_ext |
13499 | LIBS=$ac_check_lib_save_LIBS |
13500 | fi |
13501 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
13502 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
13503 | if test $ac_cv_lib_dl_dlopen = yes; then |
13504 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
13505 | else |
13506 | |
13507 | lt_cv_dlopen="dyld" |
13508 | lt_cv_dlopen_libs= |
13509 | lt_cv_dlopen_self=yes |
13510 | |
13511 | fi |
13512 | |
13513 | ;; |
13514 | |
13515 | *) |
13516 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
13517 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
13518 | if test "${ac_cv_func_shl_load+set}" = set; then |
13519 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13520 | else |
13521 | cat >conftest.$ac_ext <<_ACEOF |
13522 | /* confdefs.h. */ |
13523 | _ACEOF |
13524 | cat confdefs.h >>conftest.$ac_ext |
13525 | cat >>conftest.$ac_ext <<_ACEOF |
13526 | /* end confdefs.h. */ |
13527 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
13528 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
13529 | #define shl_load innocuous_shl_load |
13530 | |
13531 | /* System header to define __stub macros and hopefully few prototypes, |
13532 | which can conflict with char shl_load (); below. |
13533 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
13534 | <limits.h> exists even on freestanding compilers. */ |
13535 | |
13536 | #ifdef __STDC__ |
13537 | # include <limits.h> |
13538 | #else |
13539 | # include <assert.h> |
13540 | #endif |
13541 | |
13542 | #undef shl_load |
13543 | |
13544 | /* Override any GCC internal prototype to avoid an error. |
13545 | Use char because int might match the return type of a GCC |
13546 | builtin and then its argument prototype would still apply. */ |
13547 | #ifdef __cplusplus |
13548 | extern "C" |
13549 | #endif |
13550 | char shl_load (); |
13551 | /* The GNU C library defines this for functions which it implements |
13552 | to always fail with ENOSYS. Some functions are actually named |
13553 | something starting with __ and the normal name is an alias. */ |
13554 | #if defined __stub_shl_load || defined __stub___shl_load |
13555 | choke me |
13556 | #endif |
13557 | |
13558 | int |
13559 | main () |
13560 | { |
13561 | return shl_load (); |
13562 | ; |
13563 | return 0; |
13564 | } |
13565 | _ACEOF |
13566 | rm -f conftest.$ac_objext conftest$ac_exeext |
13567 | if { (ac_try="$ac_link" |
13568 | case "(($ac_try" in |
13569 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13570 | *) ac_try_echo=$ac_try;; |
13571 | esac |
13572 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
13573 | (eval "$ac_link") 2>conftest.er1 |
13574 | ac_status=$? |
13575 | grep -v '^ *+' conftest.er1 >conftest.err |
13576 | rm -f conftest.er1 |
13577 | cat conftest.err >&5 |
13578 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13579 | (exit $ac_status); } && { |
13580 | test -z "$ac_cxx_werror_flag" || |
13581 | test ! -s conftest.err |
13582 | } && test -s conftest$ac_exeext && |
13583 | $as_test_x conftest$ac_exeext; then |
13584 | ac_cv_func_shl_load=yes |
13585 | else |
13586 | echo "$as_me: failed program was:" >&5 |
13587 | sed 's/^/| /' conftest.$ac_ext >&5 |
13588 | |
13589 | ac_cv_func_shl_load=no |
13590 | fi |
13591 | |
13592 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
13593 | conftest$ac_exeext conftest.$ac_ext |
13594 | fi |
13595 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
13596 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
13597 | if test $ac_cv_func_shl_load = yes; then |
13598 | lt_cv_dlopen="shl_load" |
13599 | else |
13600 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
13601 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
13602 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
13603 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13604 | else |
13605 | ac_check_lib_save_LIBS=$LIBS |
13606 | LIBS="-ldld $LIBS" |
13607 | cat >conftest.$ac_ext <<_ACEOF |
13608 | /* confdefs.h. */ |
13609 | _ACEOF |
13610 | cat confdefs.h >>conftest.$ac_ext |
13611 | cat >>conftest.$ac_ext <<_ACEOF |
13612 | /* end confdefs.h. */ |
13613 | |
13614 | /* Override any GCC internal prototype to avoid an error. |
13615 | Use char because int might match the return type of a GCC |
13616 | builtin and then its argument prototype would still apply. */ |
13617 | #ifdef __cplusplus |
13618 | extern "C" |
13619 | #endif |
13620 | char shl_load (); |
13621 | int |
13622 | main () |
13623 | { |
13624 | return shl_load (); |
13625 | ; |
13626 | return 0; |
13627 | } |
13628 | _ACEOF |
13629 | rm -f conftest.$ac_objext conftest$ac_exeext |
13630 | if { (ac_try="$ac_link" |
13631 | case "(($ac_try" in |
13632 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13633 | *) ac_try_echo=$ac_try;; |
13634 | esac |
13635 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
13636 | (eval "$ac_link") 2>conftest.er1 |
13637 | ac_status=$? |
13638 | grep -v '^ *+' conftest.er1 >conftest.err |
13639 | rm -f conftest.er1 |
13640 | cat conftest.err >&5 |
13641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13642 | (exit $ac_status); } && { |
13643 | test -z "$ac_cxx_werror_flag" || |
13644 | test ! -s conftest.err |
13645 | } && test -s conftest$ac_exeext && |
13646 | $as_test_x conftest$ac_exeext; then |
13647 | ac_cv_lib_dld_shl_load=yes |
13648 | else |
13649 | echo "$as_me: failed program was:" >&5 |
13650 | sed 's/^/| /' conftest.$ac_ext >&5 |
13651 | |
13652 | ac_cv_lib_dld_shl_load=no |
13653 | fi |
13654 | |
13655 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
13656 | conftest$ac_exeext conftest.$ac_ext |
13657 | LIBS=$ac_check_lib_save_LIBS |
13658 | fi |
13659 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
13660 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
13661 | if test $ac_cv_lib_dld_shl_load = yes; then |
13662 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
13663 | else |
13664 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
13665 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
13666 | if test "${ac_cv_func_dlopen+set}" = set; then |
13667 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13668 | else |
13669 | cat >conftest.$ac_ext <<_ACEOF |
13670 | /* confdefs.h. */ |
13671 | _ACEOF |
13672 | cat confdefs.h >>conftest.$ac_ext |
13673 | cat >>conftest.$ac_ext <<_ACEOF |
13674 | /* end confdefs.h. */ |
13675 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
13676 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
13677 | #define dlopen innocuous_dlopen |
13678 | |
13679 | /* System header to define __stub macros and hopefully few prototypes, |
13680 | which can conflict with char dlopen (); below. |
13681 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
13682 | <limits.h> exists even on freestanding compilers. */ |
13683 | |
13684 | #ifdef __STDC__ |
13685 | # include <limits.h> |
13686 | #else |
13687 | # include <assert.h> |
13688 | #endif |
13689 | |
13690 | #undef dlopen |
13691 | |
13692 | /* Override any GCC internal prototype to avoid an error. |
13693 | Use char because int might match the return type of a GCC |
13694 | builtin and then its argument prototype would still apply. */ |
13695 | #ifdef __cplusplus |
13696 | extern "C" |
13697 | #endif |
13698 | char dlopen (); |
13699 | /* The GNU C library defines this for functions which it implements |
13700 | to always fail with ENOSYS. Some functions are actually named |
13701 | something starting with __ and the normal name is an alias. */ |
13702 | #if defined __stub_dlopen || defined __stub___dlopen |
13703 | choke me |
13704 | #endif |
13705 | |
13706 | int |
13707 | main () |
13708 | { |
13709 | return dlopen (); |
13710 | ; |
13711 | return 0; |
13712 | } |
13713 | _ACEOF |
13714 | rm -f conftest.$ac_objext conftest$ac_exeext |
13715 | if { (ac_try="$ac_link" |
13716 | case "(($ac_try" in |
13717 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13718 | *) ac_try_echo=$ac_try;; |
13719 | esac |
13720 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
13721 | (eval "$ac_link") 2>conftest.er1 |
13722 | ac_status=$? |
13723 | grep -v '^ *+' conftest.er1 >conftest.err |
13724 | rm -f conftest.er1 |
13725 | cat conftest.err >&5 |
13726 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13727 | (exit $ac_status); } && { |
13728 | test -z "$ac_cxx_werror_flag" || |
13729 | test ! -s conftest.err |
13730 | } && test -s conftest$ac_exeext && |
13731 | $as_test_x conftest$ac_exeext; then |
13732 | ac_cv_func_dlopen=yes |
13733 | else |
13734 | echo "$as_me: failed program was:" >&5 |
13735 | sed 's/^/| /' conftest.$ac_ext >&5 |
13736 | |
13737 | ac_cv_func_dlopen=no |
13738 | fi |
13739 | |
13740 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
13741 | conftest$ac_exeext conftest.$ac_ext |
13742 | fi |
13743 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
13744 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
13745 | if test $ac_cv_func_dlopen = yes; then |
13746 | lt_cv_dlopen="dlopen" |
13747 | else |
13748 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
13749 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
13750 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
13751 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13752 | else |
13753 | ac_check_lib_save_LIBS=$LIBS |
13754 | LIBS="-ldl $LIBS" |
13755 | cat >conftest.$ac_ext <<_ACEOF |
13756 | /* confdefs.h. */ |
13757 | _ACEOF |
13758 | cat confdefs.h >>conftest.$ac_ext |
13759 | cat >>conftest.$ac_ext <<_ACEOF |
13760 | /* end confdefs.h. */ |
13761 | |
13762 | /* Override any GCC internal prototype to avoid an error. |
13763 | Use char because int might match the return type of a GCC |
13764 | builtin and then its argument prototype would still apply. */ |
13765 | #ifdef __cplusplus |
13766 | extern "C" |
13767 | #endif |
13768 | char dlopen (); |
13769 | int |
13770 | main () |
13771 | { |
13772 | return dlopen (); |
13773 | ; |
13774 | return 0; |
13775 | } |
13776 | _ACEOF |
13777 | rm -f conftest.$ac_objext conftest$ac_exeext |
13778 | if { (ac_try="$ac_link" |
13779 | case "(($ac_try" in |
13780 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13781 | *) ac_try_echo=$ac_try;; |
13782 | esac |
13783 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
13784 | (eval "$ac_link") 2>conftest.er1 |
13785 | ac_status=$? |
13786 | grep -v '^ *+' conftest.er1 >conftest.err |
13787 | rm -f conftest.er1 |
13788 | cat conftest.err >&5 |
13789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13790 | (exit $ac_status); } && { |
13791 | test -z "$ac_cxx_werror_flag" || |
13792 | test ! -s conftest.err |
13793 | } && test -s conftest$ac_exeext && |
13794 | $as_test_x conftest$ac_exeext; then |
13795 | ac_cv_lib_dl_dlopen=yes |
13796 | else |
13797 | echo "$as_me: failed program was:" >&5 |
13798 | sed 's/^/| /' conftest.$ac_ext >&5 |
13799 | |
13800 | ac_cv_lib_dl_dlopen=no |
13801 | fi |
13802 | |
13803 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
13804 | conftest$ac_exeext conftest.$ac_ext |
13805 | LIBS=$ac_check_lib_save_LIBS |
13806 | fi |
13807 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
13808 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
13809 | if test $ac_cv_lib_dl_dlopen = yes; then |
13810 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
13811 | else |
13812 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
13813 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
13814 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
13815 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13816 | else |
13817 | ac_check_lib_save_LIBS=$LIBS |
13818 | LIBS="-lsvld $LIBS" |
13819 | cat >conftest.$ac_ext <<_ACEOF |
13820 | /* confdefs.h. */ |
13821 | _ACEOF |
13822 | cat confdefs.h >>conftest.$ac_ext |
13823 | cat >>conftest.$ac_ext <<_ACEOF |
13824 | /* end confdefs.h. */ |
13825 | |
13826 | /* Override any GCC internal prototype to avoid an error. |
13827 | Use char because int might match the return type of a GCC |
13828 | builtin and then its argument prototype would still apply. */ |
13829 | #ifdef __cplusplus |
13830 | extern "C" |
13831 | #endif |
13832 | char dlopen (); |
13833 | int |
13834 | main () |
13835 | { |
13836 | return dlopen (); |
13837 | ; |
13838 | return 0; |
13839 | } |
13840 | _ACEOF |
13841 | rm -f conftest.$ac_objext conftest$ac_exeext |
13842 | if { (ac_try="$ac_link" |
13843 | case "(($ac_try" in |
13844 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13845 | *) ac_try_echo=$ac_try;; |
13846 | esac |
13847 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
13848 | (eval "$ac_link") 2>conftest.er1 |
13849 | ac_status=$? |
13850 | grep -v '^ *+' conftest.er1 >conftest.err |
13851 | rm -f conftest.er1 |
13852 | cat conftest.err >&5 |
13853 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13854 | (exit $ac_status); } && { |
13855 | test -z "$ac_cxx_werror_flag" || |
13856 | test ! -s conftest.err |
13857 | } && test -s conftest$ac_exeext && |
13858 | $as_test_x conftest$ac_exeext; then |
13859 | ac_cv_lib_svld_dlopen=yes |
13860 | else |
13861 | echo "$as_me: failed program was:" >&5 |
13862 | sed 's/^/| /' conftest.$ac_ext >&5 |
13863 | |
13864 | ac_cv_lib_svld_dlopen=no |
13865 | fi |
13866 | |
13867 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
13868 | conftest$ac_exeext conftest.$ac_ext |
13869 | LIBS=$ac_check_lib_save_LIBS |
13870 | fi |
13871 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
13872 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
13873 | if test $ac_cv_lib_svld_dlopen = yes; then |
13874 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
13875 | else |
13876 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
13877 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
13878 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
13879 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13880 | else |
13881 | ac_check_lib_save_LIBS=$LIBS |
13882 | LIBS="-ldld $LIBS" |
13883 | cat >conftest.$ac_ext <<_ACEOF |
13884 | /* confdefs.h. */ |
13885 | _ACEOF |
13886 | cat confdefs.h >>conftest.$ac_ext |
13887 | cat >>conftest.$ac_ext <<_ACEOF |
13888 | /* end confdefs.h. */ |
13889 | |
13890 | /* Override any GCC internal prototype to avoid an error. |
13891 | Use char because int might match the return type of a GCC |
13892 | builtin and then its argument prototype would still apply. */ |
13893 | #ifdef __cplusplus |
13894 | extern "C" |
13895 | #endif |
13896 | char dld_link (); |
13897 | int |
13898 | main () |
13899 | { |
13900 | return dld_link (); |
13901 | ; |
13902 | return 0; |
13903 | } |
13904 | _ACEOF |
13905 | rm -f conftest.$ac_objext conftest$ac_exeext |
13906 | if { (ac_try="$ac_link" |
13907 | case "(($ac_try" in |
13908 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
13909 | *) ac_try_echo=$ac_try;; |
13910 | esac |
13911 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
13912 | (eval "$ac_link") 2>conftest.er1 |
13913 | ac_status=$? |
13914 | grep -v '^ *+' conftest.er1 >conftest.err |
13915 | rm -f conftest.er1 |
13916 | cat conftest.err >&5 |
13917 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
13918 | (exit $ac_status); } && { |
13919 | test -z "$ac_cxx_werror_flag" || |
13920 | test ! -s conftest.err |
13921 | } && test -s conftest$ac_exeext && |
13922 | $as_test_x conftest$ac_exeext; then |
13923 | ac_cv_lib_dld_dld_link=yes |
13924 | else |
13925 | echo "$as_me: failed program was:" >&5 |
13926 | sed 's/^/| /' conftest.$ac_ext >&5 |
13927 | |
13928 | ac_cv_lib_dld_dld_link=no |
13929 | fi |
13930 | |
13931 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
13932 | conftest$ac_exeext conftest.$ac_ext |
13933 | LIBS=$ac_check_lib_save_LIBS |
13934 | fi |
13935 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
13936 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
13937 | if test $ac_cv_lib_dld_dld_link = yes; then |
13938 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
13939 | fi |
13940 | |
13941 | |
13942 | fi |
13943 | |
13944 | |
13945 | fi |
13946 | |
13947 | |
13948 | fi |
13949 | |
13950 | |
13951 | fi |
13952 | |
13953 | |
13954 | fi |
13955 | |
13956 | ;; |
13957 | esac |
13958 | |
13959 | if test "x$lt_cv_dlopen" != xno; then |
13960 | enable_dlopen=yes |
13961 | else |
13962 | enable_dlopen=no |
13963 | fi |
13964 | |
13965 | case $lt_cv_dlopen in |
13966 | dlopen) |
13967 | save_CPPFLAGS="$CPPFLAGS" |
13968 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
13969 | |
13970 | save_LDFLAGS="$LDFLAGS" |
13971 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
13972 | |
13973 | save_LIBS="$LIBS" |
13974 | LIBS="$lt_cv_dlopen_libs $LIBS" |
13975 | |
13976 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
13977 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
13978 | if test "${lt_cv_dlopen_self+set}" = set; then |
13979 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
13980 | else |
13981 | if test "$cross_compiling" = yes; then : |
13982 | lt_cv_dlopen_self=cross |
13983 | else |
13984 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
13985 | lt_status=$lt_dlunknown |
13986 | cat > conftest.$ac_ext <<EOF |
13987 | #line 13987 "configure" |
13988 | #include "confdefs.h" |
13989 | |
13990 | #if HAVE_DLFCN_H |
13991 | #include <dlfcn.h> |
13992 | #endif |
13993 | |
13994 | #include <stdio.h> |
13995 | |
13996 | #ifdef RTLD_GLOBAL |
13997 | # define LT_DLGLOBAL RTLD_GLOBAL |
13998 | #else |
13999 | # ifdef DL_GLOBAL |
14000 | # define LT_DLGLOBAL DL_GLOBAL |
14001 | # else |
14002 | # define LT_DLGLOBAL 0 |
14003 | # endif |
14004 | #endif |
14005 | |
14006 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
14007 | find out it does not work in some platform. */ |
14008 | #ifndef LT_DLLAZY_OR_NOW |
14009 | # ifdef RTLD_LAZY |
14010 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
14011 | # else |
14012 | # ifdef DL_LAZY |
14013 | # define LT_DLLAZY_OR_NOW DL_LAZY |
14014 | # else |
14015 | # ifdef RTLD_NOW |
14016 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
14017 | # else |
14018 | # ifdef DL_NOW |
14019 | # define LT_DLLAZY_OR_NOW DL_NOW |
14020 | # else |
14021 | # define LT_DLLAZY_OR_NOW 0 |
14022 | # endif |
14023 | # endif |
14024 | # endif |
14025 | # endif |
14026 | #endif |
14027 | |
14028 | #ifdef __cplusplus |
14029 | extern "C" void exit (int); |
14030 | #endif |
14031 | |
14032 | void fnord() { int i=42;} |
14033 | int main () |
14034 | { |
14035 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
14036 | int status = $lt_dlunknown; |
14037 | |
14038 | if (self) |
14039 | { |
14040 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
14041 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
14042 | /* dlclose (self); */ |
14043 | } |
14044 | |
14045 | exit (status); |
14046 | } |
14047 | EOF |
14048 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14049 | (eval $ac_link) 2>&5 |
14050 | ac_status=$? |
14051 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14052 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
14053 | (./conftest; exit; ) >&5 2>/dev/null |
14054 | lt_status=$? |
14055 | case x$lt_status in |
14056 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
14057 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
14058 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
14059 | esac |
14060 | else : |
14061 | # compilation failed |
14062 | lt_cv_dlopen_self=no |
14063 | fi |
14064 | fi |
14065 | rm -fr conftest* |
14066 | |
14067 | |
14068 | fi |
14069 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
14070 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
14071 | |
14072 | if test "x$lt_cv_dlopen_self" = xyes; then |
14073 | LDFLAGS="$LDFLAGS $link_static_flag" |
14074 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
14075 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
14076 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
14077 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14078 | else |
14079 | if test "$cross_compiling" = yes; then : |
14080 | lt_cv_dlopen_self_static=cross |
14081 | else |
14082 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
14083 | lt_status=$lt_dlunknown |
14084 | cat > conftest.$ac_ext <<EOF |
14085 | #line 14085 "configure" |
14086 | #include "confdefs.h" |
14087 | |
14088 | #if HAVE_DLFCN_H |
14089 | #include <dlfcn.h> |
14090 | #endif |
14091 | |
14092 | #include <stdio.h> |
14093 | |
14094 | #ifdef RTLD_GLOBAL |
14095 | # define LT_DLGLOBAL RTLD_GLOBAL |
14096 | #else |
14097 | # ifdef DL_GLOBAL |
14098 | # define LT_DLGLOBAL DL_GLOBAL |
14099 | # else |
14100 | # define LT_DLGLOBAL 0 |
14101 | # endif |
14102 | #endif |
14103 | |
14104 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
14105 | find out it does not work in some platform. */ |
14106 | #ifndef LT_DLLAZY_OR_NOW |
14107 | # ifdef RTLD_LAZY |
14108 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
14109 | # else |
14110 | # ifdef DL_LAZY |
14111 | # define LT_DLLAZY_OR_NOW DL_LAZY |
14112 | # else |
14113 | # ifdef RTLD_NOW |
14114 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
14115 | # else |
14116 | # ifdef DL_NOW |
14117 | # define LT_DLLAZY_OR_NOW DL_NOW |
14118 | # else |
14119 | # define LT_DLLAZY_OR_NOW 0 |
14120 | # endif |
14121 | # endif |
14122 | # endif |
14123 | # endif |
14124 | #endif |
14125 | |
14126 | #ifdef __cplusplus |
14127 | extern "C" void exit (int); |
14128 | #endif |
14129 | |
14130 | void fnord() { int i=42;} |
14131 | int main () |
14132 | { |
14133 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
14134 | int status = $lt_dlunknown; |
14135 | |
14136 | if (self) |
14137 | { |
14138 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
14139 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
14140 | /* dlclose (self); */ |
14141 | } |
14142 | |
14143 | exit (status); |
14144 | } |
14145 | EOF |
14146 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
14147 | (eval $ac_link) 2>&5 |
14148 | ac_status=$? |
14149 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14150 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
14151 | (./conftest; exit; ) >&5 2>/dev/null |
14152 | lt_status=$? |
14153 | case x$lt_status in |
14154 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
14155 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
14156 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
14157 | esac |
14158 | else : |
14159 | # compilation failed |
14160 | lt_cv_dlopen_self_static=no |
14161 | fi |
14162 | fi |
14163 | rm -fr conftest* |
14164 | |
14165 | |
14166 | fi |
14167 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
14168 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
14169 | fi |
14170 | |
14171 | CPPFLAGS="$save_CPPFLAGS" |
14172 | LDFLAGS="$save_LDFLAGS" |
14173 | LIBS="$save_LIBS" |
14174 | ;; |
14175 | esac |
14176 | |
14177 | case $lt_cv_dlopen_self in |
14178 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
14179 | *) enable_dlopen_self=unknown ;; |
14180 | esac |
14181 | |
14182 | case $lt_cv_dlopen_self_static in |
14183 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
14184 | *) enable_dlopen_self_static=unknown ;; |
14185 | esac |
14186 | fi |
14187 | |
14188 | |
14189 | # The else clause should only fire when bootstrapping the |
14190 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
14191 | # with your package, and you will get complaints that there are |
14192 | # no rules to generate ltmain.sh. |
14193 | if test -f "$ltmain"; then |
14194 | # See if we are running on zsh, and set the options which allow our commands through |
14195 | # without removal of \ escapes. |
14196 | if test -n "${ZSH_VERSION+set}" ; then |
14197 | setopt NO_GLOB_SUBST |
14198 | fi |
14199 | # Now quote all the things that may contain metacharacters while being |
14200 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
14201 | # variables and quote the copies for generation of the libtool script. |
14202 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
14203 | SED SHELL STRIP \ |
14204 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
14205 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
14206 | deplibs_check_method reload_flag reload_cmds need_locks \ |
14207 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
14208 | lt_cv_sys_global_symbol_to_c_name_address \ |
14209 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
14210 | old_postinstall_cmds old_postuninstall_cmds \ |
14211 | compiler_CXX \ |
14212 | CC_CXX \ |
14213 | LD_CXX \ |
14214 | lt_prog_compiler_wl_CXX \ |
14215 | lt_prog_compiler_pic_CXX \ |
14216 | lt_prog_compiler_static_CXX \ |
14217 | lt_prog_compiler_no_builtin_flag_CXX \ |
14218 | export_dynamic_flag_spec_CXX \ |
14219 | thread_safe_flag_spec_CXX \ |
14220 | whole_archive_flag_spec_CXX \ |
14221 | enable_shared_with_static_runtimes_CXX \ |
14222 | old_archive_cmds_CXX \ |
14223 | old_archive_from_new_cmds_CXX \ |
14224 | predep_objects_CXX \ |
14225 | postdep_objects_CXX \ |
14226 | predeps_CXX \ |
14227 | postdeps_CXX \ |
14228 | compiler_lib_search_path_CXX \ |
14229 | archive_cmds_CXX \ |
14230 | archive_expsym_cmds_CXX \ |
14231 | postinstall_cmds_CXX \ |
14232 | postuninstall_cmds_CXX \ |
14233 | old_archive_from_expsyms_cmds_CXX \ |
14234 | allow_undefined_flag_CXX \ |
14235 | no_undefined_flag_CXX \ |
14236 | export_symbols_cmds_CXX \ |
14237 | hardcode_libdir_flag_spec_CXX \ |
14238 | hardcode_libdir_flag_spec_ld_CXX \ |
14239 | hardcode_libdir_separator_CXX \ |
14240 | hardcode_automatic_CXX \ |
14241 | module_cmds_CXX \ |
14242 | module_expsym_cmds_CXX \ |
14243 | lt_cv_prog_compiler_c_o_CXX \ |
14244 | exclude_expsyms_CXX \ |
14245 | include_expsyms_CXX; do |
14246 | |
14247 | case $var in |
14248 | old_archive_cmds_CXX | \ |
14249 | old_archive_from_new_cmds_CXX | \ |
14250 | archive_cmds_CXX | \ |
14251 | archive_expsym_cmds_CXX | \ |
14252 | module_cmds_CXX | \ |
14253 | module_expsym_cmds_CXX | \ |
14254 | old_archive_from_expsyms_cmds_CXX | \ |
14255 | export_symbols_cmds_CXX | \ |
14256 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
14257 | postinstall_cmds | postuninstall_cmds | \ |
14258 | old_postinstall_cmds | old_postuninstall_cmds | \ |
14259 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
14260 | # Double-quote double-evaled strings. |
14261 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
14262 | ;; |
14263 | *) |
14264 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
14265 | ;; |
14266 | esac |
14267 | done |
14268 | |
14269 | case $lt_echo in |
14270 | *'\$0 --fallback-echo"') |
14271 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
14272 | ;; |
14273 | esac |
14274 | |
14275 | cfgfile="$ofile" |
14276 | |
14277 | cat <<__EOF__ >> "$cfgfile" |
14278 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
14279 | |
14280 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
14281 | |
14282 | # Shell to use when invoking shell scripts. |
14283 | SHELL=$lt_SHELL |
14284 | |
14285 | # Whether or not to build shared libraries. |
14286 | build_libtool_libs=$enable_shared |
14287 | |
14288 | # Whether or not to build static libraries. |
14289 | build_old_libs=$enable_static |
14290 | |
14291 | # Whether or not to add -lc for building shared libraries. |
14292 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
14293 | |
14294 | # Whether or not to disallow shared libs when runtime libs are static |
14295 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
14296 | |
14297 | # Whether or not to optimize for fast installation. |
14298 | fast_install=$enable_fast_install |
14299 | |
14300 | # The host system. |
14301 | host_alias=$host_alias |
14302 | host=$host |
14303 | host_os=$host_os |
14304 | |
14305 | # The build system. |
14306 | build_alias=$build_alias |
14307 | build=$build |
14308 | build_os=$build_os |
14309 | |
14310 | # An echo program that does not interpret backslashes. |
14311 | echo=$lt_echo |
14312 | |
14313 | # The archiver. |
14314 | AR=$lt_AR |
14315 | AR_FLAGS=$lt_AR_FLAGS |
14316 | |
14317 | # A C compiler. |
14318 | LTCC=$lt_LTCC |
14319 | |
14320 | # A language-specific compiler. |
14321 | CC=$lt_compiler_CXX |
14322 | |
14323 | # Is the compiler the GNU C compiler? |
14324 | with_gcc=$GCC_CXX |
14325 | |
14326 | # An ERE matcher. |
14327 | EGREP=$lt_EGREP |
14328 | |
14329 | # The linker used to build libraries. |
14330 | LD=$lt_LD_CXX |
14331 | |
14332 | # Whether we need hard or soft links. |
14333 | LN_S=$lt_LN_S |
14334 | |
14335 | # A BSD-compatible nm program. |
14336 | NM=$lt_NM |
14337 | |
14338 | # A symbol stripping program |
14339 | STRIP=$lt_STRIP |
14340 | |
14341 | # Used to examine libraries when file_magic_cmd begins "file" |
14342 | MAGIC_CMD=$MAGIC_CMD |
14343 | |
14344 | # Used on cygwin: DLL creation program. |
14345 | DLLTOOL="$DLLTOOL" |
14346 | |
14347 | # Used on cygwin: object dumper. |
14348 | OBJDUMP="$OBJDUMP" |
14349 | |
14350 | # Used on cygwin: assembler. |
14351 | AS="$AS" |
14352 | |
14353 | # The name of the directory that contains temporary libtool files. |
14354 | objdir=$objdir |
14355 | |
14356 | # How to create reloadable object files. |
14357 | reload_flag=$lt_reload_flag |
14358 | reload_cmds=$lt_reload_cmds |
14359 | |
14360 | # How to pass a linker flag through the compiler. |
14361 | wl=$lt_lt_prog_compiler_wl_CXX |
14362 | |
14363 | # Object file suffix (normally "o"). |
14364 | objext="$ac_objext" |
14365 | |
14366 | # Old archive suffix (normally "a"). |
14367 | libext="$libext" |
14368 | |
14369 | # Shared library suffix (normally ".so"). |
14370 | shrext_cmds='$shrext_cmds' |
14371 | |
14372 | # Executable file suffix (normally ""). |
14373 | exeext="$exeext" |
14374 | |
14375 | # Additional compiler flags for building library objects. |
14376 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
14377 | pic_mode=$pic_mode |
14378 | |
14379 | # What is the maximum length of a command? |
14380 | max_cmd_len=$lt_cv_sys_max_cmd_len |
14381 | |
14382 | # Does compiler simultaneously support -c and -o options? |
14383 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
14384 | |
14385 | # Must we lock files when doing compilation? |
14386 | need_locks=$lt_need_locks |
14387 | |
14388 | # Do we need the lib prefix for modules? |
14389 | need_lib_prefix=$need_lib_prefix |
14390 | |
14391 | # Do we need a version for libraries? |
14392 | need_version=$need_version |
14393 | |
14394 | # Whether dlopen is supported. |
14395 | dlopen_support=$enable_dlopen |
14396 | |
14397 | # Whether dlopen of programs is supported. |
14398 | dlopen_self=$enable_dlopen_self |
14399 | |
14400 | # Whether dlopen of statically linked programs is supported. |
14401 | dlopen_self_static=$enable_dlopen_self_static |
14402 | |
14403 | # Compiler flag to prevent dynamic linking. |
14404 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
14405 | |
14406 | # Compiler flag to turn off builtin functions. |
14407 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
14408 | |
14409 | # Compiler flag to allow reflexive dlopens. |
14410 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
14411 | |
14412 | # Compiler flag to generate shared objects directly from archives. |
14413 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
14414 | |
14415 | # Compiler flag to generate thread-safe objects. |
14416 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
14417 | |
14418 | # Library versioning type. |
14419 | version_type=$version_type |
14420 | |
14421 | # Format of library name prefix. |
14422 | libname_spec=$lt_libname_spec |
14423 | |
14424 | # List of archive names. First name is the real one, the rest are links. |
14425 | # The last name is the one that the linker finds with -lNAME. |
14426 | library_names_spec=$lt_library_names_spec |
14427 | |
14428 | # The coded name of the library, if different from the real name. |
14429 | soname_spec=$lt_soname_spec |
14430 | |
14431 | # Commands used to build and install an old-style archive. |
14432 | RANLIB=$lt_RANLIB |
14433 | old_archive_cmds=$lt_old_archive_cmds_CXX |
14434 | old_postinstall_cmds=$lt_old_postinstall_cmds |
14435 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
14436 | |
14437 | # Create an old-style archive from a shared archive. |
14438 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
14439 | |
14440 | # Create a temporary old-style archive to link instead of a shared archive. |
14441 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
14442 | |
14443 | # Commands used to build and install a shared archive. |
14444 | archive_cmds=$lt_archive_cmds_CXX |
14445 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
14446 | postinstall_cmds=$lt_postinstall_cmds |
14447 | postuninstall_cmds=$lt_postuninstall_cmds |
14448 | |
14449 | # Commands used to build a loadable module (assumed same as above if empty) |
14450 | module_cmds=$lt_module_cmds_CXX |
14451 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
14452 | |
14453 | # Commands to strip libraries. |
14454 | old_striplib=$lt_old_striplib |
14455 | striplib=$lt_striplib |
14456 | |
14457 | # Dependencies to place before the objects being linked to create a |
14458 | # shared library. |
14459 | predep_objects=$lt_predep_objects_CXX |
14460 | |
14461 | # Dependencies to place after the objects being linked to create a |
14462 | # shared library. |
14463 | postdep_objects=$lt_postdep_objects_CXX |
14464 | |
14465 | # Dependencies to place before the objects being linked to create a |
14466 | # shared library. |
14467 | predeps=$lt_predeps_CXX |
14468 | |
14469 | # Dependencies to place after the objects being linked to create a |
14470 | # shared library. |
14471 | postdeps=$lt_postdeps_CXX |
14472 | |
14473 | # The library search path used internally by the compiler when linking |
14474 | # a shared library. |
14475 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
14476 | |
14477 | # Method to check whether dependent libraries are shared objects. |
14478 | deplibs_check_method=$lt_deplibs_check_method |
14479 | |
14480 | # Command to use when deplibs_check_method == file_magic. |
14481 | file_magic_cmd=$lt_file_magic_cmd |
14482 | |
14483 | # Flag that allows shared libraries with undefined symbols to be built. |
14484 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
14485 | |
14486 | # Flag that forces no undefined symbols. |
14487 | no_undefined_flag=$lt_no_undefined_flag_CXX |
14488 | |
14489 | # Commands used to finish a libtool library installation in a directory. |
14490 | finish_cmds=$lt_finish_cmds |
14491 | |
14492 | # Same as above, but a single script fragment to be evaled but not shown. |
14493 | finish_eval=$lt_finish_eval |
14494 | |
14495 | # Take the output of nm and produce a listing of raw symbols and C names. |
14496 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
14497 | |
14498 | # Transform the output of nm in a proper C declaration |
14499 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
14500 | |
14501 | # Transform the output of nm in a C name address pair |
14502 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
14503 | |
14504 | # This is the shared library runtime path variable. |
14505 | runpath_var=$runpath_var |
14506 | |
14507 | # This is the shared library path variable. |
14508 | shlibpath_var=$shlibpath_var |
14509 | |
14510 | # Is shlibpath searched before the hard-coded library search path? |
14511 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
14512 | |
14513 | # How to hardcode a shared library path into an executable. |
14514 | hardcode_action=$hardcode_action_CXX |
14515 | |
14516 | # Whether we should hardcode library paths into libraries. |
14517 | hardcode_into_libs=$hardcode_into_libs |
14518 | |
14519 | # Flag to hardcode \$libdir into a binary during linking. |
14520 | # This must work even if \$libdir does not exist. |
14521 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
14522 | |
14523 | # If ld is used when linking, flag to hardcode \$libdir into |
14524 | # a binary during linking. This must work even if \$libdir does |
14525 | # not exist. |
14526 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
14527 | |
14528 | # Whether we need a single -rpath flag with a separated argument. |
14529 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
14530 | |
14531 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
14532 | # resulting binary. |
14533 | hardcode_direct=$hardcode_direct_CXX |
14534 | |
14535 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
14536 | # resulting binary. |
14537 | hardcode_minus_L=$hardcode_minus_L_CXX |
14538 | |
14539 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
14540 | # the resulting binary. |
14541 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
14542 | |
14543 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
14544 | # and all subsequent libraries and executables linked against it. |
14545 | hardcode_automatic=$hardcode_automatic_CXX |
14546 | |
14547 | # Variables whose values should be saved in libtool wrapper scripts and |
14548 | # restored at relink time. |
14549 | variables_saved_for_relink="$variables_saved_for_relink" |
14550 | |
14551 | # Whether libtool must link a program against all its dependency libraries. |
14552 | link_all_deplibs=$link_all_deplibs_CXX |
14553 | |
14554 | # Compile-time system search path for libraries |
14555 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
14556 | |
14557 | # Run-time system search path for libraries |
14558 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
14559 | |
14560 | # Fix the shell variable \$srcfile for the compiler. |
14561 | fix_srcfile_path="$fix_srcfile_path_CXX" |
14562 | |
14563 | # Set to yes if exported symbols are required. |
14564 | always_export_symbols=$always_export_symbols_CXX |
14565 | |
14566 | # The commands to list exported symbols. |
14567 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
14568 | |
14569 | # The commands to extract the exported symbol list from a shared archive. |
14570 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
14571 | |
14572 | # Symbols that should not be listed in the preloaded symbols. |
14573 | exclude_expsyms=$lt_exclude_expsyms_CXX |
14574 | |
14575 | # Symbols that must always be exported. |
14576 | include_expsyms=$lt_include_expsyms_CXX |
14577 | |
14578 | # ### END LIBTOOL TAG CONFIG: $tagname |
14579 | |
14580 | __EOF__ |
14581 | |
14582 | |
14583 | else |
14584 | # If there is no Makefile yet, we rely on a make rule to execute |
14585 | # `config.status --recheck' to rerun these tests and create the |
14586 | # libtool script then. |
14587 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
14588 | if test -f "$ltmain_in"; then |
14589 | test -f Makefile && make "$ltmain" |
14590 | fi |
14591 | fi |
14592 | |
14593 | |
14594 | ac_ext=c |
14595 | ac_cpp='$CPP $CPPFLAGS' |
14596 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
14597 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
14598 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
14599 | |
14600 | CC=$lt_save_CC |
14601 | LDCXX=$LD |
14602 | LD=$lt_save_LD |
14603 | GCC=$lt_save_GCC |
14604 | with_gnu_ldcxx=$with_gnu_ld |
14605 | with_gnu_ld=$lt_save_with_gnu_ld |
14606 | lt_cv_path_LDCXX=$lt_cv_path_LD |
14607 | lt_cv_path_LD=$lt_save_path_LD |
14608 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
14609 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
14610 | |
14611 | else |
14612 | tagname="" |
14613 | fi |
14614 | ;; |
14615 | |
14616 | F77) |
14617 | if test -n "$F77" && test "X$F77" != "Xno"; then |
14618 | |
14619 | ac_ext=f |
14620 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
14621 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
14622 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
14623 | |
14624 | |
14625 | archive_cmds_need_lc_F77=no |
14626 | allow_undefined_flag_F77= |
14627 | always_export_symbols_F77=no |
14628 | archive_expsym_cmds_F77= |
14629 | export_dynamic_flag_spec_F77= |
14630 | hardcode_direct_F77=no |
14631 | hardcode_libdir_flag_spec_F77= |
14632 | hardcode_libdir_flag_spec_ld_F77= |
14633 | hardcode_libdir_separator_F77= |
14634 | hardcode_minus_L_F77=no |
14635 | hardcode_automatic_F77=no |
14636 | module_cmds_F77= |
14637 | module_expsym_cmds_F77= |
14638 | link_all_deplibs_F77=unknown |
14639 | old_archive_cmds_F77=$old_archive_cmds |
14640 | no_undefined_flag_F77= |
14641 | whole_archive_flag_spec_F77= |
14642 | enable_shared_with_static_runtimes_F77=no |
14643 | |
14644 | # Source file extension for f77 test sources. |
14645 | ac_ext=f |
14646 | |
14647 | # Object file extension for compiled f77 test sources. |
14648 | objext=o |
14649 | objext_F77=$objext |
14650 | |
14651 | # Code to be used in simple compile tests |
14652 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
14653 | |
14654 | # Code to be used in simple link tests |
14655 | lt_simple_link_test_code=" program t\n end\n" |
14656 | |
14657 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
14658 | |
14659 | # If no C compiler was specified, use CC. |
14660 | LTCC=${LTCC-"$CC"} |
14661 | |
14662 | # Allow CC to be a program name with arguments. |
14663 | compiler=$CC |
14664 | |
14665 | |
14666 | # save warnings/boilerplate of simple test code |
14667 | ac_outfile=conftest.$ac_objext |
14668 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
14669 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
14670 | _lt_compiler_boilerplate=`cat conftest.err` |
14671 | $rm conftest* |
14672 | |
14673 | ac_outfile=conftest.$ac_objext |
14674 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
14675 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
14676 | _lt_linker_boilerplate=`cat conftest.err` |
14677 | $rm conftest* |
14678 | |
14679 | |
14680 | # Allow CC to be a program name with arguments. |
14681 | lt_save_CC="$CC" |
14682 | CC=${F77-"f77"} |
14683 | compiler=$CC |
14684 | compiler_F77=$CC |
14685 | for cc_temp in $compiler""; do |
14686 | case $cc_temp in |
14687 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
14688 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
14689 | \-*) ;; |
14690 | *) break;; |
14691 | esac |
14692 | done |
14693 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
14694 | |
14695 | |
14696 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
14697 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
14698 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
14699 | echo "${ECHO_T}$can_build_shared" >&6; } |
14700 | |
14701 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
14702 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
14703 | test "$can_build_shared" = "no" && enable_shared=no |
14704 | |
14705 | # On AIX, shared libraries and static libraries use the same namespace, and |
14706 | # are all built from PIC. |
14707 | case $host_os in |
14708 | aix3*) |
14709 | test "$enable_shared" = yes && enable_static=no |
14710 | if test -n "$RANLIB"; then |
14711 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
14712 | postinstall_cmds='$RANLIB $lib' |
14713 | fi |
14714 | ;; |
14715 | aix4* | aix5*) |
14716 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
14717 | test "$enable_shared" = yes && enable_static=no |
14718 | fi |
14719 | ;; |
14720 | esac |
14721 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
14722 | echo "${ECHO_T}$enable_shared" >&6; } |
14723 | |
14724 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
14725 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
14726 | # Make sure either enable_shared or enable_static is yes. |
14727 | test "$enable_shared" = yes || enable_static=yes |
14728 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
14729 | echo "${ECHO_T}$enable_static" >&6; } |
14730 | |
14731 | test "$ld_shlibs_F77" = no && can_build_shared=no |
14732 | |
14733 | GCC_F77="$G77" |
14734 | LD_F77="$LD" |
14735 | |
14736 | lt_prog_compiler_wl_F77= |
14737 | lt_prog_compiler_pic_F77= |
14738 | lt_prog_compiler_static_F77= |
14739 | |
14740 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
14741 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
14742 | |
14743 | if test "$GCC" = yes; then |
14744 | lt_prog_compiler_wl_F77='-Wl,' |
14745 | lt_prog_compiler_static_F77='-static' |
14746 | |
14747 | case $host_os in |
14748 | aix*) |
14749 | # All AIX code is PIC. |
14750 | if test "$host_cpu" = ia64; then |
14751 | # AIX 5 now supports IA64 processor |
14752 | lt_prog_compiler_static_F77='-Bstatic' |
14753 | fi |
14754 | ;; |
14755 | |
14756 | amigaos*) |
14757 | # FIXME: we need at least 68020 code to build shared libraries, but |
14758 | # adding the `-m68020' flag to GCC prevents building anything better, |
14759 | # like `-m68040'. |
14760 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
14761 | ;; |
14762 | |
14763 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
14764 | # PIC is the default for these OSes. |
14765 | ;; |
14766 | |
14767 | mingw* | pw32* | os2*) |
14768 | # This hack is so that the source file can tell whether it is being |
14769 | # built for inclusion in a dll (and should export symbols for example). |
14770 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
14771 | ;; |
14772 | |
14773 | darwin* | rhapsody*) |
14774 | # PIC is the default on this platform |
14775 | # Common symbols not allowed in MH_DYLIB files |
14776 | lt_prog_compiler_pic_F77='-fno-common' |
14777 | ;; |
14778 | |
14779 | msdosdjgpp*) |
14780 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
14781 | # on systems that don't support them. |
14782 | lt_prog_compiler_can_build_shared_F77=no |
14783 | enable_shared=no |
14784 | ;; |
14785 | |
14786 | sysv4*MP*) |
14787 | if test -d /usr/nec; then |
14788 | lt_prog_compiler_pic_F77=-Kconform_pic |
14789 | fi |
14790 | ;; |
14791 | |
14792 | hpux*) |
14793 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
14794 | # not for PA HP-UX. |
14795 | case $host_cpu in |
14796 | hppa*64*|ia64*) |
14797 | # +Z the default |
14798 | ;; |
14799 | *) |
14800 | lt_prog_compiler_pic_F77='-fPIC' |
14801 | ;; |
14802 | esac |
14803 | ;; |
14804 | |
14805 | *) |
14806 | lt_prog_compiler_pic_F77='-fPIC' |
14807 | ;; |
14808 | esac |
14809 | else |
14810 | # PORTME Check for flag to pass linker flags through the system compiler. |
14811 | case $host_os in |
14812 | aix*) |
14813 | lt_prog_compiler_wl_F77='-Wl,' |
14814 | if test "$host_cpu" = ia64; then |
14815 | # AIX 5 now supports IA64 processor |
14816 | lt_prog_compiler_static_F77='-Bstatic' |
14817 | else |
14818 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
14819 | fi |
14820 | ;; |
14821 | darwin*) |
14822 | # PIC is the default on this platform |
14823 | # Common symbols not allowed in MH_DYLIB files |
14824 | case $cc_basename in |
14825 | xlc*) |
14826 | lt_prog_compiler_pic_F77='-qnocommon' |
14827 | lt_prog_compiler_wl_F77='-Wl,' |
14828 | ;; |
14829 | esac |
14830 | ;; |
14831 | |
14832 | mingw* | pw32* | os2*) |
14833 | # This hack is so that the source file can tell whether it is being |
14834 | # built for inclusion in a dll (and should export symbols for example). |
14835 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
14836 | ;; |
14837 | |
14838 | hpux9* | hpux10* | hpux11*) |
14839 | lt_prog_compiler_wl_F77='-Wl,' |
14840 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
14841 | # not for PA HP-UX. |
14842 | case $host_cpu in |
14843 | hppa*64*|ia64*) |
14844 | # +Z the default |
14845 | ;; |
14846 | *) |
14847 | lt_prog_compiler_pic_F77='+Z' |
14848 | ;; |
14849 | esac |
14850 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
14851 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
14852 | ;; |
14853 | |
14854 | irix5* | irix6* | nonstopux*) |
14855 | lt_prog_compiler_wl_F77='-Wl,' |
14856 | # PIC (with -KPIC) is the default. |
14857 | lt_prog_compiler_static_F77='-non_shared' |
14858 | ;; |
14859 | |
14860 | newsos6) |
14861 | lt_prog_compiler_pic_F77='-KPIC' |
14862 | lt_prog_compiler_static_F77='-Bstatic' |
14863 | ;; |
14864 | |
14865 | linux*) |
14866 | case $cc_basename in |
14867 | icc* | ecc*) |
14868 | lt_prog_compiler_wl_F77='-Wl,' |
14869 | lt_prog_compiler_pic_F77='-KPIC' |
14870 | lt_prog_compiler_static_F77='-static' |
14871 | ;; |
14872 | pgcc* | pgf77* | pgf90* | pgf95*) |
14873 | # Portland Group compilers (*not* the Pentium gcc compiler, |
14874 | # which looks to be a dead project) |
14875 | lt_prog_compiler_wl_F77='-Wl,' |
14876 | lt_prog_compiler_pic_F77='-fpic' |
14877 | lt_prog_compiler_static_F77='-Bstatic' |
14878 | ;; |
14879 | ccc*) |
14880 | lt_prog_compiler_wl_F77='-Wl,' |
14881 | # All Alpha code is PIC. |
14882 | lt_prog_compiler_static_F77='-non_shared' |
14883 | ;; |
14884 | esac |
14885 | ;; |
14886 | |
14887 | osf3* | osf4* | osf5*) |
14888 | lt_prog_compiler_wl_F77='-Wl,' |
14889 | # All OSF/1 code is PIC. |
14890 | lt_prog_compiler_static_F77='-non_shared' |
14891 | ;; |
14892 | |
14893 | sco3.2v5*) |
14894 | lt_prog_compiler_pic_F77='-Kpic' |
14895 | lt_prog_compiler_static_F77='-dn' |
14896 | ;; |
14897 | |
14898 | solaris*) |
14899 | lt_prog_compiler_pic_F77='-KPIC' |
14900 | lt_prog_compiler_static_F77='-Bstatic' |
14901 | case $cc_basename in |
14902 | f77* | f90* | f95*) |
14903 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
14904 | *) |
14905 | lt_prog_compiler_wl_F77='-Wl,';; |
14906 | esac |
14907 | ;; |
14908 | |
14909 | sunos4*) |
14910 | lt_prog_compiler_wl_F77='-Qoption ld ' |
14911 | lt_prog_compiler_pic_F77='-PIC' |
14912 | lt_prog_compiler_static_F77='-Bstatic' |
14913 | ;; |
14914 | |
14915 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
14916 | lt_prog_compiler_wl_F77='-Wl,' |
14917 | lt_prog_compiler_pic_F77='-KPIC' |
14918 | lt_prog_compiler_static_F77='-Bstatic' |
14919 | ;; |
14920 | |
14921 | sysv4*MP*) |
14922 | if test -d /usr/nec ;then |
14923 | lt_prog_compiler_pic_F77='-Kconform_pic' |
14924 | lt_prog_compiler_static_F77='-Bstatic' |
14925 | fi |
14926 | ;; |
14927 | |
14928 | unicos*) |
14929 | lt_prog_compiler_wl_F77='-Wl,' |
14930 | lt_prog_compiler_can_build_shared_F77=no |
14931 | ;; |
14932 | |
14933 | uts4*) |
14934 | lt_prog_compiler_pic_F77='-pic' |
14935 | lt_prog_compiler_static_F77='-Bstatic' |
14936 | ;; |
14937 | |
14938 | *) |
14939 | lt_prog_compiler_can_build_shared_F77=no |
14940 | ;; |
14941 | esac |
14942 | fi |
14943 | |
14944 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
14945 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
14946 | |
14947 | # |
14948 | # Check to make sure the PIC flag actually works. |
14949 | # |
14950 | if test -n "$lt_prog_compiler_pic_F77"; then |
14951 | |
14952 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
14953 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
14954 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
14955 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14956 | else |
14957 | lt_prog_compiler_pic_works_F77=no |
14958 | ac_outfile=conftest.$ac_objext |
14959 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14960 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
14961 | # Insert the option either (1) after the last *FLAGS variable, or |
14962 | # (2) before a word containing "conftest.", or (3) at the end. |
14963 | # Note that $ac_compile itself does not contain backslashes and begins |
14964 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14965 | # The option is referenced via a variable to avoid confusing sed. |
14966 | lt_compile=`echo "$ac_compile" | $SED \ |
14967 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14968 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14969 | -e 's:$: $lt_compiler_flag:'` |
14970 | (eval echo "\"\$as_me:14970: $lt_compile\"" >&5) |
14971 | (eval "$lt_compile" 2>conftest.err) |
14972 | ac_status=$? |
14973 | cat conftest.err >&5 |
14974 | echo "$as_me:14974: \$? = $ac_status" >&5 |
14975 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14976 | # The compiler can only warn and ignore the option if not recognized |
14977 | # So say no if there are warnings other than the usual output. |
14978 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
14979 | $SED '/^$/d' conftest.err >conftest.er2 |
14980 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
14981 | lt_prog_compiler_pic_works_F77=yes |
14982 | fi |
14983 | fi |
14984 | $rm conftest* |
14985 | |
14986 | fi |
14987 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
14988 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
14989 | |
14990 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
14991 | case $lt_prog_compiler_pic_F77 in |
14992 | "" | " "*) ;; |
14993 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
14994 | esac |
14995 | else |
14996 | lt_prog_compiler_pic_F77= |
14997 | lt_prog_compiler_can_build_shared_F77=no |
14998 | fi |
14999 | |
15000 | fi |
15001 | case $host_os in |
15002 | # For platforms which do not support PIC, -DPIC is meaningless: |
15003 | *djgpp*) |
15004 | lt_prog_compiler_pic_F77= |
15005 | ;; |
15006 | *) |
15007 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
15008 | ;; |
15009 | esac |
15010 | |
15011 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
15012 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
15013 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
15014 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
15015 | else |
15016 | lt_cv_prog_compiler_c_o_F77=no |
15017 | $rm -r conftest 2>/dev/null |
15018 | mkdir conftest |
15019 | cd conftest |
15020 | mkdir out |
15021 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15022 | |
15023 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
15024 | # Insert the option either (1) after the last *FLAGS variable, or |
15025 | # (2) before a word containing "conftest.", or (3) at the end. |
15026 | # Note that $ac_compile itself does not contain backslashes and begins |
15027 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
15028 | lt_compile=`echo "$ac_compile" | $SED \ |
15029 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
15030 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
15031 | -e 's:$: $lt_compiler_flag:'` |
15032 | (eval echo "\"\$as_me:15032: $lt_compile\"" >&5) |
15033 | (eval "$lt_compile" 2>out/conftest.err) |
15034 | ac_status=$? |
15035 | cat out/conftest.err >&5 |
15036 | echo "$as_me:15036: \$? = $ac_status" >&5 |
15037 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
15038 | then |
15039 | # The compiler can only warn and ignore the option if not recognized |
15040 | # So say no if there are warnings |
15041 | $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp |
15042 | $SED '/^$/d' out/conftest.err >out/conftest.er2 |
15043 | if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
15044 | lt_cv_prog_compiler_c_o_F77=yes |
15045 | fi |
15046 | fi |
15047 | chmod u+w . 2>&5 |
15048 | $rm conftest* |
15049 | # SGI C++ compiler will create directory out/ii_files/ for |
15050 | # template instantiation |
15051 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
15052 | $rm out/* && rmdir out |
15053 | cd .. |
15054 | rmdir conftest |
15055 | $rm conftest* |
15056 | |
15057 | fi |
15058 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
15059 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
15060 | |
15061 | |
15062 | hard_links="nottested" |
15063 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
15064 | # do not overwrite the value of need_locks provided by the user |
15065 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
15066 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
15067 | hard_links=yes |
15068 | $rm conftest* |
15069 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
15070 | touch conftest.a |
15071 | ln conftest.a conftest.b 2>&5 || hard_links=no |
15072 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
15073 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
15074 | echo "${ECHO_T}$hard_links" >&6; } |
15075 | if test "$hard_links" = no; then |
15076 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
15077 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
15078 | need_locks=warn |
15079 | fi |
15080 | else |
15081 | need_locks=no |
15082 | fi |
15083 | |
15084 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
15085 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
15086 | |
15087 | runpath_var= |
15088 | allow_undefined_flag_F77= |
15089 | enable_shared_with_static_runtimes_F77=no |
15090 | archive_cmds_F77= |
15091 | archive_expsym_cmds_F77= |
15092 | old_archive_From_new_cmds_F77= |
15093 | old_archive_from_expsyms_cmds_F77= |
15094 | export_dynamic_flag_spec_F77= |
15095 | whole_archive_flag_spec_F77= |
15096 | thread_safe_flag_spec_F77= |
15097 | hardcode_libdir_flag_spec_F77= |
15098 | hardcode_libdir_flag_spec_ld_F77= |
15099 | hardcode_libdir_separator_F77= |
15100 | hardcode_direct_F77=no |
15101 | hardcode_minus_L_F77=no |
15102 | hardcode_shlibpath_var_F77=unsupported |
15103 | link_all_deplibs_F77=unknown |
15104 | hardcode_automatic_F77=no |
15105 | module_cmds_F77= |
15106 | module_expsym_cmds_F77= |
15107 | always_export_symbols_F77=no |
15108 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
15109 | # include_expsyms should be a list of space-separated symbols to be *always* |
15110 | # included in the symbol list |
15111 | include_expsyms_F77= |
15112 | # exclude_expsyms can be an extended regexp of symbols to exclude |
15113 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
15114 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
15115 | # as well as any symbol that contains `d'. |
15116 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
15117 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
15118 | # platforms (ab)use it in PIC code, but their linkers get confused if |
15119 | # the symbol is explicitly referenced. Since portable code cannot |
15120 | # rely on this symbol name, it's probably fine to never include it in |
15121 | # preloaded symbol tables. |
15122 | extract_expsyms_cmds= |
15123 | # Just being paranoid about ensuring that cc_basename is set. |
15124 | for cc_temp in $compiler""; do |
15125 | case $cc_temp in |
15126 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
15127 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
15128 | \-*) ;; |
15129 | *) break;; |
15130 | esac |
15131 | done |
15132 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
15133 | |
15134 | case $host_os in |
15135 | cygwin* | mingw* | pw32*) |
15136 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
15137 | # When not using gcc, we currently assume that we are using |
15138 | # Microsoft Visual C++. |
15139 | if test "$GCC" != yes; then |
15140 | with_gnu_ld=no |
15141 | fi |
15142 | ;; |
15143 | openbsd*) |
15144 | with_gnu_ld=no |
15145 | ;; |
15146 | esac |
15147 | |
15148 | ld_shlibs_F77=yes |
15149 | if test "$with_gnu_ld" = yes; then |
15150 | # If archive_cmds runs LD, not CC, wlarc should be empty |
15151 | wlarc='${wl}' |
15152 | |
15153 | # Set some defaults for GNU ld with shared library support. These |
15154 | # are reset later if shared libraries are not supported. Putting them |
15155 | # here allows them to be overridden if necessary. |
15156 | runpath_var=LD_RUN_PATH |
15157 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
15158 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
15159 | # ancient GNU ld didn't support --whole-archive et. al. |
15160 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
15161 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
15162 | else |
15163 | whole_archive_flag_spec_F77= |
15164 | fi |
15165 | supports_anon_versioning=no |
15166 | case `$LD -v 2>/dev/null` in |
15167 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
15168 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
15169 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
15170 | *\ 2.11.*) ;; # other 2.11 versions |
15171 | *) supports_anon_versioning=yes ;; |
15172 | esac |
15173 | |
15174 | # See if GNU ld supports shared libraries. |
15175 | case $host_os in |
15176 | aix3* | aix4* | aix5*) |
15177 | # On AIX/PPC, the GNU linker is very broken |
15178 | if test "$host_cpu" != ia64; then |
15179 | ld_shlibs_F77=no |
15180 | cat <<EOF 1>&2 |
15181 | |
15182 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
15183 | *** to be unable to reliably create shared libraries on AIX. |
15184 | *** Therefore, libtool is disabling shared libraries support. If you |
15185 | *** really care for shared libraries, you may want to modify your PATH |
15186 | *** so that a non-GNU linker is found, and then restart. |
15187 | |
15188 | EOF |
15189 | fi |
15190 | ;; |
15191 | |
15192 | amigaos*) |
15193 | 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)' |
15194 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15195 | hardcode_minus_L_F77=yes |
15196 | |
15197 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
15198 | # that the semantics of dynamic libraries on AmigaOS, at least up |
15199 | # to version 4, is to share data among multiple programs linked |
15200 | # with the same dynamic library. Since this doesn't match the |
15201 | # behavior of shared libraries on other platforms, we can't use |
15202 | # them. |
15203 | ld_shlibs_F77=no |
15204 | ;; |
15205 | |
15206 | beos*) |
15207 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
15208 | allow_undefined_flag_F77=unsupported |
15209 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
15210 | # support --undefined. This deserves some investigation. FIXME |
15211 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
15212 | else |
15213 | ld_shlibs_F77=no |
15214 | fi |
15215 | ;; |
15216 | |
15217 | cygwin* | mingw* | pw32*) |
15218 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
15219 | # as there is no search path for DLLs. |
15220 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15221 | allow_undefined_flag_F77=unsupported |
15222 | always_export_symbols_F77=no |
15223 | enable_shared_with_static_runtimes_F77=yes |
15224 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
15225 | |
15226 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
15227 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
15228 | # If the export-symbols file already is a .def file (1st line |
15229 | # is EXPORTS), use it as is; otherwise, prepend... |
15230 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
15231 | cp $export_symbols $output_objdir/$soname.def; |
15232 | else |
15233 | echo EXPORTS > $output_objdir/$soname.def; |
15234 | cat $export_symbols >> $output_objdir/$soname.def; |
15235 | fi~ |
15236 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
15237 | else |
15238 | ld_shlibs_F77=no |
15239 | fi |
15240 | ;; |
15241 | |
15242 | linux*) |
15243 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
15244 | tmp_addflag= |
15245 | case $cc_basename,$host_cpu in |
15246 | pgcc*) # Portland Group C compiler |
15247 | 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' |
15248 | tmp_addflag=' $pic_flag' |
15249 | ;; |
15250 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
15251 | 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' |
15252 | tmp_addflag=' $pic_flag -Mnomain' ;; |
15253 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
15254 | tmp_addflag=' -i_dynamic' ;; |
15255 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
15256 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
15257 | ifc* | ifort*) # Intel Fortran compiler |
15258 | tmp_addflag=' -nofor_main' ;; |
15259 | esac |
15260 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
15261 | |
15262 | if test $supports_anon_versioning = yes; then |
15263 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
15264 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
15265 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
15266 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
15267 | fi |
15268 | else |
15269 | ld_shlibs_F77=no |
15270 | fi |
15271 | ;; |
15272 | |
15273 | netbsd*) |
15274 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15275 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
15276 | wlarc= |
15277 | else |
15278 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
15279 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
15280 | fi |
15281 | ;; |
15282 | |
15283 | solaris* | sysv5*) |
15284 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
15285 | ld_shlibs_F77=no |
15286 | cat <<EOF 1>&2 |
15287 | |
15288 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
15289 | *** create shared libraries on Solaris systems. Therefore, libtool |
15290 | *** is disabling shared libraries support. We urge you to upgrade GNU |
15291 | *** binutils to release 2.9.1 or newer. Another option is to modify |
15292 | *** your PATH or compiler configuration so that the native linker is |
15293 | *** used, and then restart. |
15294 | |
15295 | EOF |
15296 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
15297 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
15298 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
15299 | else |
15300 | ld_shlibs_F77=no |
15301 | fi |
15302 | ;; |
15303 | |
15304 | sunos4*) |
15305 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
15306 | wlarc= |
15307 | hardcode_direct_F77=yes |
15308 | hardcode_shlibpath_var_F77=no |
15309 | ;; |
15310 | |
15311 | *) |
15312 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
15313 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
15314 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
15315 | else |
15316 | ld_shlibs_F77=no |
15317 | fi |
15318 | ;; |
15319 | esac |
15320 | |
15321 | if test "$ld_shlibs_F77" = no; then |
15322 | runpath_var= |
15323 | hardcode_libdir_flag_spec_F77= |
15324 | export_dynamic_flag_spec_F77= |
15325 | whole_archive_flag_spec_F77= |
15326 | fi |
15327 | else |
15328 | # PORTME fill in a description of your system's linker (not GNU ld) |
15329 | case $host_os in |
15330 | aix3*) |
15331 | allow_undefined_flag_F77=unsupported |
15332 | always_export_symbols_F77=yes |
15333 | 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' |
15334 | # Note: this linker hardcodes the directories in LIBPATH if there |
15335 | # are no directories specified by -L. |
15336 | hardcode_minus_L_F77=yes |
15337 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
15338 | # Neither direct hardcoding nor static linking is supported with a |
15339 | # broken collect2. |
15340 | hardcode_direct_F77=unsupported |
15341 | fi |
15342 | ;; |
15343 | |
15344 | aix4* | aix5*) |
15345 | if test "$host_cpu" = ia64; then |
15346 | # On IA64, the linker does run time linking by default, so we don't |
15347 | # have to do anything special. |
15348 | aix_use_runtimelinking=no |
15349 | exp_sym_flag='-Bexport' |
15350 | no_entry_flag="" |
15351 | else |
15352 | # If we're using GNU nm, then we don't want the "-C" option. |
15353 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
15354 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
15355 | 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' |
15356 | else |
15357 | 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' |
15358 | fi |
15359 | aix_use_runtimelinking=no |
15360 | |
15361 | # Test if we are trying to use run time linking or normal |
15362 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
15363 | # need to do runtime linking. |
15364 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
15365 | for ld_flag in $LDFLAGS; do |
15366 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
15367 | aix_use_runtimelinking=yes |
15368 | break |
15369 | fi |
15370 | done |
15371 | esac |
15372 | |
15373 | exp_sym_flag='-bexport' |
15374 | no_entry_flag='-bnoentry' |
15375 | fi |
15376 | |
15377 | # When large executables or shared objects are built, AIX ld can |
15378 | # have problems creating the table of contents. If linking a library |
15379 | # or program results in "error TOC overflow" add -mminimal-toc to |
15380 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
15381 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
15382 | |
15383 | archive_cmds_F77='' |
15384 | hardcode_direct_F77=yes |
15385 | hardcode_libdir_separator_F77=':' |
15386 | link_all_deplibs_F77=yes |
15387 | |
15388 | if test "$GCC" = yes; then |
15389 | case $host_os in aix4.[012]|aix4.[012].*) |
15390 | # We only want to do this on AIX 4.2 and lower, the check |
15391 | # below for broken collect2 doesn't work under 4.3+ |
15392 | collect2name=`${CC} -print-prog-name=collect2` |
15393 | if test -f "$collect2name" && \ |
15394 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
15395 | then |
15396 | # We have reworked collect2 |
15397 | hardcode_direct_F77=yes |
15398 | else |
15399 | # We have old collect2 |
15400 | hardcode_direct_F77=unsupported |
15401 | # It fails to find uninstalled libraries when the uninstalled |
15402 | # path is not listed in the libpath. Setting hardcode_minus_L |
15403 | # to unsupported forces relinking |
15404 | hardcode_minus_L_F77=yes |
15405 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15406 | hardcode_libdir_separator_F77= |
15407 | fi |
15408 | esac |
15409 | shared_flag='-shared' |
15410 | if test "$aix_use_runtimelinking" = yes; then |
15411 | shared_flag="$shared_flag "'${wl}-G' |
15412 | fi |
15413 | else |
15414 | # not using gcc |
15415 | if test "$host_cpu" = ia64; then |
15416 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
15417 | # chokes on -Wl,-G. The following line is correct: |
15418 | shared_flag='-G' |
15419 | else |
15420 | if test "$aix_use_runtimelinking" = yes; then |
15421 | shared_flag='${wl}-G' |
15422 | else |
15423 | shared_flag='${wl}-bM:SRE' |
15424 | fi |
15425 | fi |
15426 | fi |
15427 | |
15428 | # It seems that -bexpall does not export symbols beginning with |
15429 | # underscore (_), so it is better to generate a list of symbols to export. |
15430 | always_export_symbols_F77=yes |
15431 | if test "$aix_use_runtimelinking" = yes; then |
15432 | # Warning - without using the other runtime loading flags (-brtl), |
15433 | # -berok will link without error, but may produce a broken library. |
15434 | allow_undefined_flag_F77='-berok' |
15435 | # Determine the default libpath from the value encoded in an empty executable. |
15436 | cat >conftest.$ac_ext <<_ACEOF |
15437 | program main |
15438 | |
15439 | end |
15440 | _ACEOF |
15441 | rm -f conftest.$ac_objext conftest$ac_exeext |
15442 | if { (ac_try="$ac_link" |
15443 | case "(($ac_try" in |
15444 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
15445 | *) ac_try_echo=$ac_try;; |
15446 | esac |
15447 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
15448 | (eval "$ac_link") 2>conftest.er1 |
15449 | ac_status=$? |
15450 | grep -v '^ *+' conftest.er1 >conftest.err |
15451 | rm -f conftest.er1 |
15452 | cat conftest.err >&5 |
15453 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15454 | (exit $ac_status); } && { |
15455 | test -z "$ac_f77_werror_flag" || |
15456 | test ! -s conftest.err |
15457 | } && test -s conftest$ac_exeext && |
15458 | $as_test_x conftest$ac_exeext; then |
15459 | |
15460 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
15461 | }'` |
15462 | # Check for a 64-bit object if we didn't find anything. |
15463 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
15464 | }'`; fi |
15465 | else |
15466 | echo "$as_me: failed program was:" >&5 |
15467 | sed 's/^/| /' conftest.$ac_ext >&5 |
15468 | |
15469 | |
15470 | fi |
15471 | |
15472 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
15473 | conftest$ac_exeext conftest.$ac_ext |
15474 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
15475 | |
15476 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
15477 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
15478 | else |
15479 | if test "$host_cpu" = ia64; then |
15480 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
15481 | allow_undefined_flag_F77="-z nodefs" |
15482 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
15483 | else |
15484 | # Determine the default libpath from the value encoded in an empty executable. |
15485 | cat >conftest.$ac_ext <<_ACEOF |
15486 | program main |
15487 | |
15488 | end |
15489 | _ACEOF |
15490 | rm -f conftest.$ac_objext conftest$ac_exeext |
15491 | if { (ac_try="$ac_link" |
15492 | case "(($ac_try" in |
15493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
15494 | *) ac_try_echo=$ac_try;; |
15495 | esac |
15496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
15497 | (eval "$ac_link") 2>conftest.er1 |
15498 | ac_status=$? |
15499 | grep -v '^ *+' conftest.er1 >conftest.err |
15500 | rm -f conftest.er1 |
15501 | cat conftest.err >&5 |
15502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15503 | (exit $ac_status); } && { |
15504 | test -z "$ac_f77_werror_flag" || |
15505 | test ! -s conftest.err |
15506 | } && test -s conftest$ac_exeext && |
15507 | $as_test_x conftest$ac_exeext; then |
15508 | |
15509 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
15510 | }'` |
15511 | # Check for a 64-bit object if we didn't find anything. |
15512 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
15513 | }'`; fi |
15514 | else |
15515 | echo "$as_me: failed program was:" >&5 |
15516 | sed 's/^/| /' conftest.$ac_ext >&5 |
15517 | |
15518 | |
15519 | fi |
15520 | |
15521 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
15522 | conftest$ac_exeext conftest.$ac_ext |
15523 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
15524 | |
15525 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
15526 | # Warning - without using the other run time loading flags, |
15527 | # -berok will link without error, but may produce a broken library. |
15528 | no_undefined_flag_F77=' ${wl}-bernotok' |
15529 | allow_undefined_flag_F77=' ${wl}-berok' |
15530 | # -bexpall does not export symbols beginning with underscore (_) |
15531 | always_export_symbols_F77=yes |
15532 | # Exported symbols can be pulled into shared objects from archives |
15533 | whole_archive_flag_spec_F77=' ' |
15534 | archive_cmds_need_lc_F77=yes |
15535 | # This is similar to how AIX traditionally builds its shared libraries. |
15536 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
15537 | fi |
15538 | fi |
15539 | ;; |
15540 | |
15541 | amigaos*) |
15542 | 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)' |
15543 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15544 | hardcode_minus_L_F77=yes |
15545 | # see comment about different semantics on the GNU ld section |
15546 | ld_shlibs_F77=no |
15547 | ;; |
15548 | |
15549 | bsdi[45]*) |
15550 | export_dynamic_flag_spec_F77=-rdynamic |
15551 | ;; |
15552 | |
15553 | cygwin* | mingw* | pw32*) |
15554 | # When not using gcc, we currently assume that we are using |
15555 | # Microsoft Visual C++. |
15556 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
15557 | # no search path for DLLs. |
15558 | hardcode_libdir_flag_spec_F77=' ' |
15559 | allow_undefined_flag_F77=unsupported |
15560 | # Tell ltmain to make .lib files, not .a files. |
15561 | libext=lib |
15562 | # Tell ltmain to make .dll files, not .so files. |
15563 | shrext_cmds=".dll" |
15564 | # FIXME: Setting linknames here is a bad hack. |
15565 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
15566 | # The linker will automatically build a .lib file if we build a DLL. |
15567 | old_archive_From_new_cmds_F77='true' |
15568 | # FIXME: Should let the user specify the lib program. |
15569 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
15570 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
15571 | enable_shared_with_static_runtimes_F77=yes |
15572 | ;; |
15573 | |
15574 | darwin* | rhapsody*) |
15575 | case $host_os in |
15576 | rhapsody* | darwin1.[012]) |
15577 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
15578 | ;; |
15579 | *) # Darwin 1.3 on |
15580 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
15581 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
15582 | else |
15583 | case ${MACOSX_DEPLOYMENT_TARGET} in |
15584 | 10.[012]) |
15585 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
15586 | ;; |
15587 | 10.*) |
15588 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
15589 | ;; |
15590 | esac |
15591 | fi |
15592 | ;; |
15593 | esac |
15594 | archive_cmds_need_lc_F77=no |
15595 | hardcode_direct_F77=no |
15596 | hardcode_automatic_F77=yes |
15597 | hardcode_shlibpath_var_F77=unsupported |
15598 | whole_archive_flag_spec_F77='' |
15599 | link_all_deplibs_F77=yes |
15600 | if test "$GCC" = yes ; then |
15601 | output_verbose_link_cmd='echo' |
15602 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
15603 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
15604 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
15605 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
15606 | 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}' |
15607 | else |
15608 | case $cc_basename in |
15609 | xlc*) |
15610 | output_verbose_link_cmd='echo' |
15611 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
15612 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
15613 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
15614 | archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
15615 | 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}' |
15616 | ;; |
15617 | *) |
15618 | ld_shlibs_F77=no |
15619 | ;; |
15620 | esac |
15621 | fi |
15622 | ;; |
15623 | |
15624 | dgux*) |
15625 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15626 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15627 | hardcode_shlibpath_var_F77=no |
15628 | ;; |
15629 | |
15630 | freebsd1*) |
15631 | ld_shlibs_F77=no |
15632 | ;; |
15633 | |
15634 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
15635 | # support. Future versions do this automatically, but an explicit c++rt0.o |
15636 | # does not break anything, and helps significantly (at the cost of a little |
15637 | # extra space). |
15638 | freebsd2.2*) |
15639 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
15640 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15641 | hardcode_direct_F77=yes |
15642 | hardcode_shlibpath_var_F77=no |
15643 | ;; |
15644 | |
15645 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
15646 | freebsd2*) |
15647 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
15648 | hardcode_direct_F77=yes |
15649 | hardcode_minus_L_F77=yes |
15650 | hardcode_shlibpath_var_F77=no |
15651 | ;; |
15652 | |
15653 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
15654 | freebsd* | kfreebsd*-gnu | dragonfly*) |
15655 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
15656 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15657 | hardcode_direct_F77=yes |
15658 | hardcode_shlibpath_var_F77=no |
15659 | ;; |
15660 | |
15661 | hpux9*) |
15662 | if test "$GCC" = yes; then |
15663 | 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' |
15664 | else |
15665 | 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' |
15666 | fi |
15667 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
15668 | hardcode_libdir_separator_F77=: |
15669 | hardcode_direct_F77=yes |
15670 | |
15671 | # hardcode_minus_L: Not really in the search PATH, |
15672 | # but as the default location of the library. |
15673 | hardcode_minus_L_F77=yes |
15674 | export_dynamic_flag_spec_F77='${wl}-E' |
15675 | ;; |
15676 | |
15677 | hpux10* | hpux11*) |
15678 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
15679 | case $host_cpu in |
15680 | hppa*64*|ia64*) |
15681 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15682 | ;; |
15683 | *) |
15684 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
15685 | ;; |
15686 | esac |
15687 | else |
15688 | case $host_cpu in |
15689 | hppa*64*|ia64*) |
15690 | archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
15691 | ;; |
15692 | *) |
15693 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
15694 | ;; |
15695 | esac |
15696 | fi |
15697 | if test "$with_gnu_ld" = no; then |
15698 | case $host_cpu in |
15699 | hppa*64*) |
15700 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
15701 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
15702 | hardcode_libdir_separator_F77=: |
15703 | hardcode_direct_F77=no |
15704 | hardcode_shlibpath_var_F77=no |
15705 | ;; |
15706 | ia64*) |
15707 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15708 | hardcode_direct_F77=no |
15709 | hardcode_shlibpath_var_F77=no |
15710 | |
15711 | # hardcode_minus_L: Not really in the search PATH, |
15712 | # but as the default location of the library. |
15713 | hardcode_minus_L_F77=yes |
15714 | ;; |
15715 | *) |
15716 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
15717 | hardcode_libdir_separator_F77=: |
15718 | hardcode_direct_F77=yes |
15719 | export_dynamic_flag_spec_F77='${wl}-E' |
15720 | |
15721 | # hardcode_minus_L: Not really in the search PATH, |
15722 | # but as the default location of the library. |
15723 | hardcode_minus_L_F77=yes |
15724 | ;; |
15725 | esac |
15726 | fi |
15727 | ;; |
15728 | |
15729 | irix5* | irix6* | nonstopux*) |
15730 | if test "$GCC" = yes; then |
15731 | 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' |
15732 | else |
15733 | 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' |
15734 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
15735 | fi |
15736 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15737 | hardcode_libdir_separator_F77=: |
15738 | link_all_deplibs_F77=yes |
15739 | ;; |
15740 | |
15741 | netbsd*) |
15742 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15743 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
15744 | else |
15745 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
15746 | fi |
15747 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15748 | hardcode_direct_F77=yes |
15749 | hardcode_shlibpath_var_F77=no |
15750 | ;; |
15751 | |
15752 | newsos6) |
15753 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15754 | hardcode_direct_F77=yes |
15755 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15756 | hardcode_libdir_separator_F77=: |
15757 | hardcode_shlibpath_var_F77=no |
15758 | ;; |
15759 | |
15760 | openbsd*) |
15761 | hardcode_direct_F77=yes |
15762 | hardcode_shlibpath_var_F77=no |
15763 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15764 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15765 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
15766 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15767 | export_dynamic_flag_spec_F77='${wl}-E' |
15768 | else |
15769 | case $host_os in |
15770 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
15771 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
15772 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15773 | ;; |
15774 | *) |
15775 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15776 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15777 | ;; |
15778 | esac |
15779 | fi |
15780 | ;; |
15781 | |
15782 | os2*) |
15783 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15784 | hardcode_minus_L_F77=yes |
15785 | allow_undefined_flag_F77=unsupported |
15786 | 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' |
15787 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
15788 | ;; |
15789 | |
15790 | osf3*) |
15791 | if test "$GCC" = yes; then |
15792 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15793 | 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' |
15794 | else |
15795 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15796 | 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' |
15797 | fi |
15798 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15799 | hardcode_libdir_separator_F77=: |
15800 | ;; |
15801 | |
15802 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
15803 | if test "$GCC" = yes; then |
15804 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15805 | 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' |
15806 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15807 | else |
15808 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15809 | 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' |
15810 | 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~ |
15811 | $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' |
15812 | |
15813 | # Both c and cxx compiler support -rpath directly |
15814 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
15815 | fi |
15816 | hardcode_libdir_separator_F77=: |
15817 | ;; |
15818 | |
15819 | sco3.2v5*) |
15820 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15821 | hardcode_shlibpath_var_F77=no |
15822 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
15823 | runpath_var=LD_RUN_PATH |
15824 | hardcode_runpath_var=yes |
15825 | ;; |
15826 | |
15827 | solaris*) |
15828 | no_undefined_flag_F77=' -z text' |
15829 | if test "$GCC" = yes; then |
15830 | wlarc='${wl}' |
15831 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15832 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15833 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
15834 | else |
15835 | wlarc='' |
15836 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15837 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15838 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
15839 | fi |
15840 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15841 | hardcode_shlibpath_var_F77=no |
15842 | case $host_os in |
15843 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
15844 | *) |
15845 | # The compiler driver will combine linker options so we |
15846 | # cannot just pass the convience library names through |
15847 | # without $wl, iff we do not link with $LD. |
15848 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
15849 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
15850 | case $wlarc in |
15851 | '') |
15852 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
15853 | *) |
15854 | whole_archive_flag_spec_F77='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
15855 | esac ;; |
15856 | esac |
15857 | link_all_deplibs_F77=yes |
15858 | ;; |
15859 | |
15860 | sunos4*) |
15861 | if test "x$host_vendor" = xsequent; then |
15862 | # Use $CC to link under sequent, because it throws in some extra .o |
15863 | # files that make .init and .fini sections work. |
15864 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
15865 | else |
15866 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
15867 | fi |
15868 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15869 | hardcode_direct_F77=yes |
15870 | hardcode_minus_L_F77=yes |
15871 | hardcode_shlibpath_var_F77=no |
15872 | ;; |
15873 | |
15874 | sysv4) |
15875 | case $host_vendor in |
15876 | sni) |
15877 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15878 | hardcode_direct_F77=yes # is this really true??? |
15879 | ;; |
15880 | siemens) |
15881 | ## LD is ld it makes a PLAMLIB |
15882 | ## CC just makes a GrossModule. |
15883 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
15884 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
15885 | hardcode_direct_F77=no |
15886 | ;; |
15887 | motorola) |
15888 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15889 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
15890 | ;; |
15891 | esac |
15892 | runpath_var='LD_RUN_PATH' |
15893 | hardcode_shlibpath_var_F77=no |
15894 | ;; |
15895 | |
15896 | sysv4.3*) |
15897 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15898 | hardcode_shlibpath_var_F77=no |
15899 | export_dynamic_flag_spec_F77='-Bexport' |
15900 | ;; |
15901 | |
15902 | sysv4*MP*) |
15903 | if test -d /usr/nec; then |
15904 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15905 | hardcode_shlibpath_var_F77=no |
15906 | runpath_var=LD_RUN_PATH |
15907 | hardcode_runpath_var=yes |
15908 | ld_shlibs_F77=yes |
15909 | fi |
15910 | ;; |
15911 | |
15912 | sysv4.2uw2*) |
15913 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
15914 | hardcode_direct_F77=yes |
15915 | hardcode_minus_L_F77=no |
15916 | hardcode_shlibpath_var_F77=no |
15917 | hardcode_runpath_var=yes |
15918 | runpath_var=LD_RUN_PATH |
15919 | ;; |
15920 | |
15921 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
15922 | no_undefined_flag_F77='${wl}-z ${wl}text' |
15923 | if test "$GCC" = yes; then |
15924 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15925 | else |
15926 | archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15927 | fi |
15928 | runpath_var='LD_RUN_PATH' |
15929 | hardcode_shlibpath_var_F77=no |
15930 | ;; |
15931 | |
15932 | sysv5*) |
15933 | no_undefined_flag_F77=' -z text' |
15934 | # $CC -shared without GNU ld will not create a library from C++ |
15935 | # object files and a static libstdc++, better avoid it by now |
15936 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15937 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15938 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
15939 | hardcode_libdir_flag_spec_F77= |
15940 | hardcode_shlibpath_var_F77=no |
15941 | runpath_var='LD_RUN_PATH' |
15942 | ;; |
15943 | |
15944 | uts4*) |
15945 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15946 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15947 | hardcode_shlibpath_var_F77=no |
15948 | ;; |
15949 | |
15950 | *) |
15951 | ld_shlibs_F77=no |
15952 | ;; |
15953 | esac |
15954 | fi |
15955 | |
15956 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
15957 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
15958 | test "$ld_shlibs_F77" = no && can_build_shared=no |
15959 | |
15960 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
15961 | if test "$GCC" = yes; then |
15962 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
15963 | fi |
15964 | |
15965 | # |
15966 | # Do we need to explicitly link libc? |
15967 | # |
15968 | case "x$archive_cmds_need_lc_F77" in |
15969 | x|xyes) |
15970 | # Assume -lc should be added |
15971 | archive_cmds_need_lc_F77=yes |
15972 | |
15973 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
15974 | case $archive_cmds_F77 in |
15975 | *'~'*) |
15976 | # FIXME: we may have to deal with multi-command sequences. |
15977 | ;; |
15978 | '$CC '*) |
15979 | # Test whether the compiler implicitly links with -lc since on some |
15980 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
15981 | # to ld, don't add -lc before -lgcc. |
15982 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
15983 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
15984 | $rm conftest* |
15985 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15986 | |
15987 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15988 | (eval $ac_compile) 2>&5 |
15989 | ac_status=$? |
15990 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15991 | (exit $ac_status); } 2>conftest.err; then |
15992 | soname=conftest |
15993 | lib=conftest |
15994 | libobjs=conftest.$ac_objext |
15995 | deplibs= |
15996 | wl=$lt_prog_compiler_wl_F77 |
15997 | compiler_flags=-v |
15998 | linker_flags=-v |
15999 | verstring= |
16000 | output_objdir=. |
16001 | libname=conftest |
16002 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
16003 | allow_undefined_flag_F77= |
16004 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
16005 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
16006 | ac_status=$? |
16007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
16008 | (exit $ac_status); } |
16009 | then |
16010 | archive_cmds_need_lc_F77=no |
16011 | else |
16012 | archive_cmds_need_lc_F77=yes |
16013 | fi |
16014 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
16015 | else |
16016 | cat conftest.err 1>&5 |
16017 | fi |
16018 | $rm conftest* |
16019 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
16020 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
16021 | ;; |
16022 | esac |
16023 | fi |
16024 | ;; |
16025 | esac |
16026 | |
16027 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
16028 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
16029 | library_names_spec= |
16030 | libname_spec='lib$name' |
16031 | soname_spec= |
16032 | shrext_cmds=".so" |
16033 | postinstall_cmds= |
16034 | postuninstall_cmds= |
16035 | finish_cmds= |
16036 | finish_eval= |
16037 | shlibpath_var= |
16038 | shlibpath_overrides_runpath=unknown |
16039 | version_type=none |
16040 | dynamic_linker="$host_os ld.so" |
16041 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
16042 | if test "$GCC" = yes; then |
16043 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
16044 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
16045 | # if the path contains ";" then we assume it to be the separator |
16046 | # otherwise default to the standard path separator (i.e. ":") - it is |
16047 | # assumed that no part of a normal pathname contains ";" but that should |
16048 | # okay in the real world where ";" in dirpaths is itself problematic. |
16049 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
16050 | else |
16051 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
16052 | fi |
16053 | else |
16054 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
16055 | fi |
16056 | need_lib_prefix=unknown |
16057 | hardcode_into_libs=no |
16058 | |
16059 | # when you set need_version to no, make sure it does not cause -set_version |
16060 | # flags to be left without arguments |
16061 | need_version=unknown |
16062 | |
16063 | case $host_os in |
16064 | aix3*) |
16065 | version_type=linux |
16066 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
16067 | shlibpath_var=LIBPATH |
16068 | |
16069 | # AIX 3 has no versioning support, so we append a major version to the name. |
16070 | soname_spec='${libname}${release}${shared_ext}$major' |
16071 | ;; |
16072 | |
16073 | aix4* | aix5*) |
16074 | version_type=linux |
16075 | need_lib_prefix=no |
16076 | need_version=no |
16077 | hardcode_into_libs=yes |
16078 | if test "$host_cpu" = ia64; then |
16079 | # AIX 5 supports IA64 |
16080 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
16081 | shlibpath_var=LD_LIBRARY_PATH |
16082 | else |
16083 | # With GCC up to 2.95.x, collect2 would create an import file |
16084 | # for dependence libraries. The import file would start with |
16085 | # the line `#! .'. This would cause the generated library to |
16086 | # depend on `.', always an invalid library. This was fixed in |
16087 | # development snapshots of GCC prior to 3.0. |
16088 | case $host_os in |
16089 | aix4 | aix4.[01] | aix4.[01].*) |
16090 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
16091 | echo ' yes ' |
16092 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
16093 | : |
16094 | else |
16095 | can_build_shared=no |
16096 | fi |
16097 | ;; |
16098 | esac |
16099 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
16100 | # soname into executable. Probably we can add versioning support to |
16101 | # collect2, so additional links can be useful in future. |
16102 | if test "$aix_use_runtimelinking" = yes; then |
16103 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
16104 | # instead of lib<name>.a to let people know that these are not |
16105 | # typical AIX shared libraries. |
16106 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16107 | else |
16108 | # We preserve .a as extension for shared libraries through AIX4.2 |
16109 | # and later when we are not doing run time linking. |
16110 | library_names_spec='${libname}${release}.a $libname.a' |
16111 | soname_spec='${libname}${release}${shared_ext}$major' |
16112 | fi |
16113 | shlibpath_var=LIBPATH |
16114 | fi |
16115 | ;; |
16116 | |
16117 | amigaos*) |
16118 | library_names_spec='$libname.ixlibrary $libname.a' |
16119 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
16120 | 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' |
16121 | ;; |
16122 | |
16123 | beos*) |
16124 | library_names_spec='${libname}${shared_ext}' |
16125 | dynamic_linker="$host_os ld.so" |
16126 | shlibpath_var=LIBRARY_PATH |
16127 | ;; |
16128 | |
16129 | bsdi[45]*) |
16130 | version_type=linux |
16131 | need_version=no |
16132 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16133 | soname_spec='${libname}${release}${shared_ext}$major' |
16134 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
16135 | shlibpath_var=LD_LIBRARY_PATH |
16136 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
16137 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
16138 | # the default ld.so.conf also contains /usr/contrib/lib and |
16139 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
16140 | # libtool to hard-code these into programs |
16141 | ;; |
16142 | |
16143 | cygwin* | mingw* | pw32*) |
16144 | version_type=windows |
16145 | shrext_cmds=".dll" |
16146 | need_version=no |
16147 | need_lib_prefix=no |
16148 | |
16149 | case $GCC,$host_os in |
16150 | yes,cygwin* | yes,mingw* | yes,pw32*) |
16151 | library_names_spec='$libname.dll.a' |
16152 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
16153 | postinstall_cmds='base_file=`basename \${file}`~ |
16154 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
16155 | dldir=$destdir/`dirname \$dlpath`~ |
16156 | test -d \$dldir || mkdir -p \$dldir~ |
16157 | $install_prog $dir/$dlname \$dldir/$dlname~ |
16158 | chmod a+x \$dldir/$dlname' |
16159 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
16160 | dlpath=$dir/\$dldll~ |
16161 | $rm \$dlpath' |
16162 | shlibpath_overrides_runpath=yes |
16163 | |
16164 | case $host_os in |
16165 | cygwin*) |
16166 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
16167 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
16168 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
16169 | ;; |
16170 | mingw*) |
16171 | # MinGW DLLs use traditional 'lib' prefix |
16172 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
16173 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
16174 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
16175 | # It is most probably a Windows format PATH printed by |
16176 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
16177 | # path with ; separators, and with drive letters. We can handle the |
16178 | # drive letters (cygwin fileutils understands them), so leave them, |
16179 | # especially as we might pass files found there to a mingw objdump, |
16180 | # which wouldn't understand a cygwinified path. Ahh. |
16181 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
16182 | else |
16183 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
16184 | fi |
16185 | ;; |
16186 | pw32*) |
16187 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
16188 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
16189 | ;; |
16190 | esac |
16191 | ;; |
16192 | |
16193 | *) |
16194 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
16195 | ;; |
16196 | esac |
16197 | dynamic_linker='Win32 ld.exe' |
16198 | # FIXME: first we should search . and the directory the executable is in |
16199 | shlibpath_var=PATH |
16200 | ;; |
16201 | |
16202 | darwin* | rhapsody*) |
16203 | dynamic_linker="$host_os dyld" |
16204 | version_type=darwin |
16205 | need_lib_prefix=no |
16206 | need_version=no |
16207 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
16208 | soname_spec='${libname}${release}${major}$shared_ext' |
16209 | shlibpath_overrides_runpath=yes |
16210 | shlibpath_var=DYLD_LIBRARY_PATH |
16211 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
16212 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
16213 | if test "$GCC" = yes; then |
16214 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
16215 | else |
16216 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
16217 | fi |
16218 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
16219 | ;; |
16220 | |
16221 | dgux*) |
16222 | version_type=linux |
16223 | need_lib_prefix=no |
16224 | need_version=no |
16225 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
16226 | soname_spec='${libname}${release}${shared_ext}$major' |
16227 | shlibpath_var=LD_LIBRARY_PATH |
16228 | ;; |
16229 | |
16230 | freebsd1*) |
16231 | dynamic_linker=no |
16232 | ;; |
16233 | |
16234 | kfreebsd*-gnu) |
16235 | version_type=linux |
16236 | need_lib_prefix=no |
16237 | need_version=no |
16238 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
16239 | soname_spec='${libname}${release}${shared_ext}$major' |
16240 | shlibpath_var=LD_LIBRARY_PATH |
16241 | shlibpath_overrides_runpath=no |
16242 | hardcode_into_libs=yes |
16243 | dynamic_linker='GNU ld.so' |
16244 | ;; |
16245 | |
16246 | freebsd* | dragonfly*) |
16247 | # DragonFly does not have aout. When/if they implement a new |
16248 | # versioning mechanism, adjust this. |
16249 | if test -x /usr/bin/objformat; then |
16250 | objformat=`/usr/bin/objformat` |
16251 | else |
16252 | case $host_os in |
16253 | freebsd[123]*) objformat=aout ;; |
16254 | *) objformat=elf ;; |
16255 | esac |
16256 | fi |
16257 | version_type=freebsd-$objformat |
16258 | case $version_type in |
16259 | freebsd-elf*) |
16260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
16261 | need_version=no |
16262 | need_lib_prefix=no |
16263 | ;; |
16264 | freebsd-*) |
16265 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
16266 | need_version=yes |
16267 | ;; |
16268 | esac |
16269 | shlibpath_var=LD_LIBRARY_PATH |
16270 | case $host_os in |
16271 | freebsd2*) |
16272 | shlibpath_overrides_runpath=yes |
16273 | ;; |
16274 | freebsd3.[01]* | freebsdelf3.[01]*) |
16275 | shlibpath_overrides_runpath=yes |
16276 | hardcode_into_libs=yes |
16277 | ;; |
16278 | *) # from 3.2 on |
16279 | shlibpath_overrides_runpath=no |
16280 | hardcode_into_libs=yes |
16281 | ;; |
16282 | esac |
16283 | ;; |
16284 | |
16285 | gnu*) |
16286 | version_type=linux |
16287 | need_lib_prefix=no |
16288 | need_version=no |
16289 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
16290 | soname_spec='${libname}${release}${shared_ext}$major' |
16291 | shlibpath_var=LD_LIBRARY_PATH |
16292 | hardcode_into_libs=yes |
16293 | ;; |
16294 | |
16295 | hpux9* | hpux10* | hpux11*) |
16296 | # Give a soname corresponding to the major version so that dld.sl refuses to |
16297 | # link against other versions. |
16298 | version_type=sunos |
16299 | need_lib_prefix=no |
16300 | need_version=no |
16301 | case $host_cpu in |
16302 | ia64*) |
16303 | shrext_cmds='.so' |
16304 | hardcode_into_libs=yes |
16305 | dynamic_linker="$host_os dld.so" |
16306 | shlibpath_var=LD_LIBRARY_PATH |
16307 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
16308 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16309 | soname_spec='${libname}${release}${shared_ext}$major' |
16310 | if test "X$HPUX_IA64_MODE" = X32; then |
16311 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
16312 | else |
16313 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
16314 | fi |
16315 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
16316 | ;; |
16317 | hppa*64*) |
16318 | shrext_cmds='.sl' |
16319 | hardcode_into_libs=yes |
16320 | dynamic_linker="$host_os dld.sl" |
16321 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
16322 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
16323 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16324 | soname_spec='${libname}${release}${shared_ext}$major' |
16325 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
16326 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
16327 | ;; |
16328 | *) |
16329 | shrext_cmds='.sl' |
16330 | dynamic_linker="$host_os dld.sl" |
16331 | shlibpath_var=SHLIB_PATH |
16332 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
16333 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16334 | soname_spec='${libname}${release}${shared_ext}$major' |
16335 | ;; |
16336 | esac |
16337 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
16338 | postinstall_cmds='chmod 555 $lib' |
16339 | ;; |
16340 | |
16341 | irix5* | irix6* | nonstopux*) |
16342 | case $host_os in |
16343 | nonstopux*) version_type=nonstopux ;; |
16344 | *) |
16345 | if test "$lt_cv_prog_gnu_ld" = yes; then |
16346 | version_type=linux |
16347 | else |
16348 | version_type=irix |
16349 | fi ;; |
16350 | esac |
16351 | need_lib_prefix=no |
16352 | need_version=no |
16353 | soname_spec='${libname}${release}${shared_ext}$major' |
16354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
16355 | case $host_os in |
16356 | irix5* | nonstopux*) |
16357 | libsuff= shlibsuff= |
16358 | ;; |
16359 | *) |
16360 | case $LD in # libtool.m4 will add one of these switches to LD |
16361 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
16362 | libsuff= shlibsuff= libmagic=32-bit;; |
16363 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
16364 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
16365 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
16366 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
16367 | *) libsuff= shlibsuff= libmagic=never-match;; |
16368 | esac |
16369 | ;; |
16370 | esac |
16371 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
16372 | shlibpath_overrides_runpath=no |
16373 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
16374 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
16375 | hardcode_into_libs=yes |
16376 | ;; |
16377 | |
16378 | # No shared lib support for Linux oldld, aout, or coff. |
16379 | linux*oldld* | linux*aout* | linux*coff*) |
16380 | dynamic_linker=no |
16381 | ;; |
16382 | |
16383 | # This must be Linux ELF. |
16384 | linux*) |
16385 | version_type=linux |
16386 | need_lib_prefix=no |
16387 | need_version=no |
16388 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16389 | soname_spec='${libname}${release}${shared_ext}$major' |
16390 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
16391 | shlibpath_var=LD_LIBRARY_PATH |
16392 | shlibpath_overrides_runpath=no |
16393 | # This implies no fast_install, which is unacceptable. |
16394 | # Some rework will be needed to allow for fast_install |
16395 | # before this can be enabled. |
16396 | hardcode_into_libs=yes |
16397 | |
16398 | # Append ld.so.conf contents to the search path |
16399 | if test -f /etc/ld.so.conf; then |
16400 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
16401 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
16402 | fi |
16403 | |
16404 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
16405 | # powerpc, because MkLinux only supported shared libraries with the |
16406 | # GNU dynamic linker. Since this was broken with cross compilers, |
16407 | # most powerpc-linux boxes support dynamic linking these days and |
16408 | # people can always --disable-shared, the test was removed, and we |
16409 | # assume the GNU/Linux dynamic linker is in use. |
16410 | dynamic_linker='GNU/Linux ld.so' |
16411 | ;; |
16412 | |
16413 | knetbsd*-gnu) |
16414 | version_type=linux |
16415 | need_lib_prefix=no |
16416 | need_version=no |
16417 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
16418 | soname_spec='${libname}${release}${shared_ext}$major' |
16419 | shlibpath_var=LD_LIBRARY_PATH |
16420 | shlibpath_overrides_runpath=no |
16421 | hardcode_into_libs=yes |
16422 | dynamic_linker='GNU ld.so' |
16423 | ;; |
16424 | |
16425 | netbsd*) |
16426 | version_type=sunos |
16427 | need_lib_prefix=no |
16428 | need_version=no |
16429 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
16430 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
16431 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
16432 | dynamic_linker='NetBSD (a.out) ld.so' |
16433 | else |
16434 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
16435 | soname_spec='${libname}${release}${shared_ext}$major' |
16436 | dynamic_linker='NetBSD ld.elf_so' |
16437 | fi |
16438 | shlibpath_var=LD_LIBRARY_PATH |
16439 | shlibpath_overrides_runpath=yes |
16440 | hardcode_into_libs=yes |
16441 | ;; |
16442 | |
16443 | newsos6) |
16444 | version_type=linux |
16445 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16446 | shlibpath_var=LD_LIBRARY_PATH |
16447 | shlibpath_overrides_runpath=yes |
16448 | ;; |
16449 | |
16450 | nto-qnx*) |
16451 | version_type=linux |
16452 | need_lib_prefix=no |
16453 | need_version=no |
16454 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16455 | soname_spec='${libname}${release}${shared_ext}$major' |
16456 | shlibpath_var=LD_LIBRARY_PATH |
16457 | shlibpath_overrides_runpath=yes |
16458 | ;; |
16459 | |
16460 | openbsd*) |
16461 | version_type=sunos |
16462 | need_lib_prefix=no |
16463 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
16464 | case $host_os in |
16465 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
16466 | *) need_version=no ;; |
16467 | esac |
16468 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
16469 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
16470 | shlibpath_var=LD_LIBRARY_PATH |
16471 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
16472 | case $host_os in |
16473 | openbsd2.[89] | openbsd2.[89].*) |
16474 | shlibpath_overrides_runpath=no |
16475 | ;; |
16476 | *) |
16477 | shlibpath_overrides_runpath=yes |
16478 | ;; |
16479 | esac |
16480 | else |
16481 | shlibpath_overrides_runpath=yes |
16482 | fi |
16483 | ;; |
16484 | |
16485 | os2*) |
16486 | libname_spec='$name' |
16487 | shrext_cmds=".dll" |
16488 | need_lib_prefix=no |
16489 | library_names_spec='$libname${shared_ext} $libname.a' |
16490 | dynamic_linker='OS/2 ld.exe' |
16491 | shlibpath_var=LIBPATH |
16492 | ;; |
16493 | |
16494 | osf3* | osf4* | osf5*) |
16495 | version_type=osf |
16496 | need_lib_prefix=no |
16497 | need_version=no |
16498 | soname_spec='${libname}${release}${shared_ext}$major' |
16499 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16500 | shlibpath_var=LD_LIBRARY_PATH |
16501 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
16502 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
16503 | ;; |
16504 | |
16505 | sco3.2v5*) |
16506 | version_type=osf |
16507 | soname_spec='${libname}${release}${shared_ext}$major' |
16508 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16509 | shlibpath_var=LD_LIBRARY_PATH |
16510 | ;; |
16511 | |
16512 | solaris*) |
16513 | version_type=linux |
16514 | need_lib_prefix=no |
16515 | need_version=no |
16516 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16517 | soname_spec='${libname}${release}${shared_ext}$major' |
16518 | shlibpath_var=LD_LIBRARY_PATH |
16519 | shlibpath_overrides_runpath=yes |
16520 | hardcode_into_libs=yes |
16521 | # ldd complains unless libraries are executable |
16522 | postinstall_cmds='chmod +x $lib' |
16523 | ;; |
16524 | |
16525 | sunos4*) |
16526 | version_type=sunos |
16527 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
16528 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
16529 | shlibpath_var=LD_LIBRARY_PATH |
16530 | shlibpath_overrides_runpath=yes |
16531 | if test "$with_gnu_ld" = yes; then |
16532 | need_lib_prefix=no |
16533 | fi |
16534 | need_version=yes |
16535 | ;; |
16536 | |
16537 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
16538 | version_type=linux |
16539 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16540 | soname_spec='${libname}${release}${shared_ext}$major' |
16541 | shlibpath_var=LD_LIBRARY_PATH |
16542 | case $host_vendor in |
16543 | sni) |
16544 | shlibpath_overrides_runpath=no |
16545 | need_lib_prefix=no |
16546 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
16547 | runpath_var=LD_RUN_PATH |
16548 | ;; |
16549 | siemens) |
16550 | need_lib_prefix=no |
16551 | ;; |
16552 | motorola) |
16553 | need_lib_prefix=no |
16554 | need_version=no |
16555 | shlibpath_overrides_runpath=no |
16556 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
16557 | ;; |
16558 | esac |
16559 | ;; |
16560 | |
16561 | sysv4*MP*) |
16562 | if test -d /usr/nec ;then |
16563 | version_type=linux |
16564 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
16565 | soname_spec='$libname${shared_ext}.$major' |
16566 | shlibpath_var=LD_LIBRARY_PATH |
16567 | fi |
16568 | ;; |
16569 | |
16570 | uts4*) |
16571 | version_type=linux |
16572 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16573 | soname_spec='${libname}${release}${shared_ext}$major' |
16574 | shlibpath_var=LD_LIBRARY_PATH |
16575 | ;; |
16576 | |
16577 | *) |
16578 | dynamic_linker=no |
16579 | ;; |
16580 | esac |
16581 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
16582 | echo "${ECHO_T}$dynamic_linker" >&6; } |
16583 | test "$dynamic_linker" = no && can_build_shared=no |
16584 | |
16585 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
16586 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
16587 | hardcode_action_F77= |
16588 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
16589 | test -n "$runpath_var_F77" || \ |
16590 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
16591 | |
16592 | # We can hardcode non-existant directories. |
16593 | if test "$hardcode_direct_F77" != no && |
16594 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
16595 | # have to relink, otherwise we might link with an installed library |
16596 | # when we should be linking with a yet-to-be-installed one |
16597 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
16598 | test "$hardcode_minus_L_F77" != no; then |
16599 | # Linking always hardcodes the temporary library directory. |
16600 | hardcode_action_F77=relink |
16601 | else |
16602 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
16603 | hardcode_action_F77=immediate |
16604 | fi |
16605 | else |
16606 | # We cannot hardcode anything, or else we can only hardcode existing |
16607 | # directories. |
16608 | hardcode_action_F77=unsupported |
16609 | fi |
16610 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
16611 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
16612 | |
16613 | if test "$hardcode_action_F77" = relink; then |
16614 | # Fast installation is not supported |
16615 | enable_fast_install=no |
16616 | elif test "$shlibpath_overrides_runpath" = yes || |
16617 | test "$enable_shared" = no; then |
16618 | # Fast installation is not necessary |
16619 | enable_fast_install=needless |
16620 | fi |
16621 | |
16622 | striplib= |
16623 | old_striplib= |
16624 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
16625 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
16626 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
16627 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
16628 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
16629 | { echo "$as_me:$LINENO: result: yes" >&5 |
16630 | echo "${ECHO_T}yes" >&6; } |
16631 | else |
16632 | # FIXME - insert some real tests, host_os isn't really good enough |
16633 | case $host_os in |
16634 | darwin*) |
16635 | if test -n "$STRIP" ; then |
16636 | striplib="$STRIP -x" |
16637 | { echo "$as_me:$LINENO: result: yes" >&5 |
16638 | echo "${ECHO_T}yes" >&6; } |
16639 | else |
16640 | { echo "$as_me:$LINENO: result: no" >&5 |
16641 | echo "${ECHO_T}no" >&6; } |
16642 | fi |
16643 | ;; |
16644 | *) |
16645 | { echo "$as_me:$LINENO: result: no" >&5 |
16646 | echo "${ECHO_T}no" >&6; } |
16647 | ;; |
16648 | esac |
16649 | fi |
16650 | |
16651 | |
16652 | |
16653 | # The else clause should only fire when bootstrapping the |
16654 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
16655 | # with your package, and you will get complaints that there are |
16656 | # no rules to generate ltmain.sh. |
16657 | if test -f "$ltmain"; then |
16658 | # See if we are running on zsh, and set the options which allow our commands through |
16659 | # without removal of \ escapes. |
16660 | if test -n "${ZSH_VERSION+set}" ; then |
16661 | setopt NO_GLOB_SUBST |
16662 | fi |
16663 | # Now quote all the things that may contain metacharacters while being |
16664 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
16665 | # variables and quote the copies for generation of the libtool script. |
16666 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
16667 | SED SHELL STRIP \ |
16668 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
16669 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
16670 | deplibs_check_method reload_flag reload_cmds need_locks \ |
16671 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
16672 | lt_cv_sys_global_symbol_to_c_name_address \ |
16673 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
16674 | old_postinstall_cmds old_postuninstall_cmds \ |
16675 | compiler_F77 \ |
16676 | CC_F77 \ |
16677 | LD_F77 \ |
16678 | lt_prog_compiler_wl_F77 \ |
16679 | lt_prog_compiler_pic_F77 \ |
16680 | lt_prog_compiler_static_F77 \ |
16681 | lt_prog_compiler_no_builtin_flag_F77 \ |
16682 | export_dynamic_flag_spec_F77 \ |
16683 | thread_safe_flag_spec_F77 \ |
16684 | whole_archive_flag_spec_F77 \ |
16685 | enable_shared_with_static_runtimes_F77 \ |
16686 | old_archive_cmds_F77 \ |
16687 | old_archive_from_new_cmds_F77 \ |
16688 | predep_objects_F77 \ |
16689 | postdep_objects_F77 \ |
16690 | predeps_F77 \ |
16691 | postdeps_F77 \ |
16692 | compiler_lib_search_path_F77 \ |
16693 | archive_cmds_F77 \ |
16694 | archive_expsym_cmds_F77 \ |
16695 | postinstall_cmds_F77 \ |
16696 | postuninstall_cmds_F77 \ |
16697 | old_archive_from_expsyms_cmds_F77 \ |
16698 | allow_undefined_flag_F77 \ |
16699 | no_undefined_flag_F77 \ |
16700 | export_symbols_cmds_F77 \ |
16701 | hardcode_libdir_flag_spec_F77 \ |
16702 | hardcode_libdir_flag_spec_ld_F77 \ |
16703 | hardcode_libdir_separator_F77 \ |
16704 | hardcode_automatic_F77 \ |
16705 | module_cmds_F77 \ |
16706 | module_expsym_cmds_F77 \ |
16707 | lt_cv_prog_compiler_c_o_F77 \ |
16708 | exclude_expsyms_F77 \ |
16709 | include_expsyms_F77; do |
16710 | |
16711 | case $var in |
16712 | old_archive_cmds_F77 | \ |
16713 | old_archive_from_new_cmds_F77 | \ |
16714 | archive_cmds_F77 | \ |
16715 | archive_expsym_cmds_F77 | \ |
16716 | module_cmds_F77 | \ |
16717 | module_expsym_cmds_F77 | \ |
16718 | old_archive_from_expsyms_cmds_F77 | \ |
16719 | export_symbols_cmds_F77 | \ |
16720 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
16721 | postinstall_cmds | postuninstall_cmds | \ |
16722 | old_postinstall_cmds | old_postuninstall_cmds | \ |
16723 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
16724 | # Double-quote double-evaled strings. |
16725 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
16726 | ;; |
16727 | *) |
16728 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
16729 | ;; |
16730 | esac |
16731 | done |
16732 | |
16733 | case $lt_echo in |
16734 | *'\$0 --fallback-echo"') |
16735 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
16736 | ;; |
16737 | esac |
16738 | |
16739 | cfgfile="$ofile" |
16740 | |
16741 | cat <<__EOF__ >> "$cfgfile" |
16742 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
16743 | |
16744 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
16745 | |
16746 | # Shell to use when invoking shell scripts. |
16747 | SHELL=$lt_SHELL |
16748 | |
16749 | # Whether or not to build shared libraries. |
16750 | build_libtool_libs=$enable_shared |
16751 | |
16752 | # Whether or not to build static libraries. |
16753 | build_old_libs=$enable_static |
16754 | |
16755 | # Whether or not to add -lc for building shared libraries. |
16756 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
16757 | |
16758 | # Whether or not to disallow shared libs when runtime libs are static |
16759 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
16760 | |
16761 | # Whether or not to optimize for fast installation. |
16762 | fast_install=$enable_fast_install |
16763 | |
16764 | # The host system. |
16765 | host_alias=$host_alias |
16766 | host=$host |
16767 | host_os=$host_os |
16768 | |
16769 | # The build system. |
16770 | build_alias=$build_alias |
16771 | build=$build |
16772 | build_os=$build_os |
16773 | |
16774 | # An echo program that does not interpret backslashes. |
16775 | echo=$lt_echo |
16776 | |
16777 | # The archiver. |
16778 | AR=$lt_AR |
16779 | AR_FLAGS=$lt_AR_FLAGS |
16780 | |
16781 | # A C compiler. |
16782 | LTCC=$lt_LTCC |
16783 | |
16784 | # A language-specific compiler. |
16785 | CC=$lt_compiler_F77 |
16786 | |
16787 | # Is the compiler the GNU C compiler? |
16788 | with_gcc=$GCC_F77 |
16789 | |
16790 | # An ERE matcher. |
16791 | EGREP=$lt_EGREP |
16792 | |
16793 | # The linker used to build libraries. |
16794 | LD=$lt_LD_F77 |
16795 | |
16796 | # Whether we need hard or soft links. |
16797 | LN_S=$lt_LN_S |
16798 | |
16799 | # A BSD-compatible nm program. |
16800 | NM=$lt_NM |
16801 | |
16802 | # A symbol stripping program |
16803 | STRIP=$lt_STRIP |
16804 | |
16805 | # Used to examine libraries when file_magic_cmd begins "file" |
16806 | MAGIC_CMD=$MAGIC_CMD |
16807 | |
16808 | # Used on cygwin: DLL creation program. |
16809 | DLLTOOL="$DLLTOOL" |
16810 | |
16811 | # Used on cygwin: object dumper. |
16812 | OBJDUMP="$OBJDUMP" |
16813 | |
16814 | # Used on cygwin: assembler. |
16815 | AS="$AS" |
16816 | |
16817 | # The name of the directory that contains temporary libtool files. |
16818 | objdir=$objdir |
16819 | |
16820 | # How to create reloadable object files. |
16821 | reload_flag=$lt_reload_flag |
16822 | reload_cmds=$lt_reload_cmds |
16823 | |
16824 | # How to pass a linker flag through the compiler. |
16825 | wl=$lt_lt_prog_compiler_wl_F77 |
16826 | |
16827 | # Object file suffix (normally "o"). |
16828 | objext="$ac_objext" |
16829 | |
16830 | # Old archive suffix (normally "a"). |
16831 | libext="$libext" |
16832 | |
16833 | # Shared library suffix (normally ".so"). |
16834 | shrext_cmds='$shrext_cmds' |
16835 | |
16836 | # Executable file suffix (normally ""). |
16837 | exeext="$exeext" |
16838 | |
16839 | # Additional compiler flags for building library objects. |
16840 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
16841 | pic_mode=$pic_mode |
16842 | |
16843 | # What is the maximum length of a command? |
16844 | max_cmd_len=$lt_cv_sys_max_cmd_len |
16845 | |
16846 | # Does compiler simultaneously support -c and -o options? |
16847 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
16848 | |
16849 | # Must we lock files when doing compilation? |
16850 | need_locks=$lt_need_locks |
16851 | |
16852 | # Do we need the lib prefix for modules? |
16853 | need_lib_prefix=$need_lib_prefix |
16854 | |
16855 | # Do we need a version for libraries? |
16856 | need_version=$need_version |
16857 | |
16858 | # Whether dlopen is supported. |
16859 | dlopen_support=$enable_dlopen |
16860 | |
16861 | # Whether dlopen of programs is supported. |
16862 | dlopen_self=$enable_dlopen_self |
16863 | |
16864 | # Whether dlopen of statically linked programs is supported. |
16865 | dlopen_self_static=$enable_dlopen_self_static |
16866 | |
16867 | # Compiler flag to prevent dynamic linking. |
16868 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
16869 | |
16870 | # Compiler flag to turn off builtin functions. |
16871 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
16872 | |
16873 | # Compiler flag to allow reflexive dlopens. |
16874 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
16875 | |
16876 | # Compiler flag to generate shared objects directly from archives. |
16877 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
16878 | |
16879 | # Compiler flag to generate thread-safe objects. |
16880 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
16881 | |
16882 | # Library versioning type. |
16883 | version_type=$version_type |
16884 | |
16885 | # Format of library name prefix. |
16886 | libname_spec=$lt_libname_spec |
16887 | |
16888 | # List of archive names. First name is the real one, the rest are links. |
16889 | # The last name is the one that the linker finds with -lNAME. |
16890 | library_names_spec=$lt_library_names_spec |
16891 | |
16892 | # The coded name of the library, if different from the real name. |
16893 | soname_spec=$lt_soname_spec |
16894 | |
16895 | # Commands used to build and install an old-style archive. |
16896 | RANLIB=$lt_RANLIB |
16897 | old_archive_cmds=$lt_old_archive_cmds_F77 |
16898 | old_postinstall_cmds=$lt_old_postinstall_cmds |
16899 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
16900 | |
16901 | # Create an old-style archive from a shared archive. |
16902 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
16903 | |
16904 | # Create a temporary old-style archive to link instead of a shared archive. |
16905 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
16906 | |
16907 | # Commands used to build and install a shared archive. |
16908 | archive_cmds=$lt_archive_cmds_F77 |
16909 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
16910 | postinstall_cmds=$lt_postinstall_cmds |
16911 | postuninstall_cmds=$lt_postuninstall_cmds |
16912 | |
16913 | # Commands used to build a loadable module (assumed same as above if empty) |
16914 | module_cmds=$lt_module_cmds_F77 |
16915 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
16916 | |
16917 | # Commands to strip libraries. |
16918 | old_striplib=$lt_old_striplib |
16919 | striplib=$lt_striplib |
16920 | |
16921 | # Dependencies to place before the objects being linked to create a |
16922 | # shared library. |
16923 | predep_objects=$lt_predep_objects_F77 |
16924 | |
16925 | # Dependencies to place after the objects being linked to create a |
16926 | # shared library. |
16927 | postdep_objects=$lt_postdep_objects_F77 |
16928 | |
16929 | # Dependencies to place before the objects being linked to create a |
16930 | # shared library. |
16931 | predeps=$lt_predeps_F77 |
16932 | |
16933 | # Dependencies to place after the objects being linked to create a |
16934 | # shared library. |
16935 | postdeps=$lt_postdeps_F77 |
16936 | |
16937 | # The library search path used internally by the compiler when linking |
16938 | # a shared library. |
16939 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
16940 | |
16941 | # Method to check whether dependent libraries are shared objects. |
16942 | deplibs_check_method=$lt_deplibs_check_method |
16943 | |
16944 | # Command to use when deplibs_check_method == file_magic. |
16945 | file_magic_cmd=$lt_file_magic_cmd |
16946 | |
16947 | # Flag that allows shared libraries with undefined symbols to be built. |
16948 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
16949 | |
16950 | # Flag that forces no undefined symbols. |
16951 | no_undefined_flag=$lt_no_undefined_flag_F77 |
16952 | |
16953 | # Commands used to finish a libtool library installation in a directory. |
16954 | finish_cmds=$lt_finish_cmds |
16955 | |
16956 | # Same as above, but a single script fragment to be evaled but not shown. |
16957 | finish_eval=$lt_finish_eval |
16958 | |
16959 | # Take the output of nm and produce a listing of raw symbols and C names. |
16960 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
16961 | |
16962 | # Transform the output of nm in a proper C declaration |
16963 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
16964 | |
16965 | # Transform the output of nm in a C name address pair |
16966 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
16967 | |
16968 | # This is the shared library runtime path variable. |
16969 | runpath_var=$runpath_var |
16970 | |
16971 | # This is the shared library path variable. |
16972 | shlibpath_var=$shlibpath_var |
16973 | |
16974 | # Is shlibpath searched before the hard-coded library search path? |
16975 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
16976 | |
16977 | # How to hardcode a shared library path into an executable. |
16978 | hardcode_action=$hardcode_action_F77 |
16979 | |
16980 | # Whether we should hardcode library paths into libraries. |
16981 | hardcode_into_libs=$hardcode_into_libs |
16982 | |
16983 | # Flag to hardcode \$libdir into a binary during linking. |
16984 | # This must work even if \$libdir does not exist. |
16985 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
16986 | |
16987 | # If ld is used when linking, flag to hardcode \$libdir into |
16988 | # a binary during linking. This must work even if \$libdir does |
16989 | # not exist. |
16990 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
16991 | |
16992 | # Whether we need a single -rpath flag with a separated argument. |
16993 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
16994 | |
16995 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
16996 | # resulting binary. |
16997 | hardcode_direct=$hardcode_direct_F77 |
16998 | |
16999 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
17000 | # resulting binary. |
17001 | hardcode_minus_L=$hardcode_minus_L_F77 |
17002 | |
17003 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
17004 | # the resulting binary. |
17005 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
17006 | |
17007 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
17008 | # and all subsequent libraries and executables linked against it. |
17009 | hardcode_automatic=$hardcode_automatic_F77 |
17010 | |
17011 | # Variables whose values should be saved in libtool wrapper scripts and |
17012 | # restored at relink time. |
17013 | variables_saved_for_relink="$variables_saved_for_relink" |
17014 | |
17015 | # Whether libtool must link a program against all its dependency libraries. |
17016 | link_all_deplibs=$link_all_deplibs_F77 |
17017 | |
17018 | # Compile-time system search path for libraries |
17019 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
17020 | |
17021 | # Run-time system search path for libraries |
17022 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
17023 | |
17024 | # Fix the shell variable \$srcfile for the compiler. |
17025 | fix_srcfile_path="$fix_srcfile_path_F77" |
17026 | |
17027 | # Set to yes if exported symbols are required. |
17028 | always_export_symbols=$always_export_symbols_F77 |
17029 | |
17030 | # The commands to list exported symbols. |
17031 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
17032 | |
17033 | # The commands to extract the exported symbol list from a shared archive. |
17034 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
17035 | |
17036 | # Symbols that should not be listed in the preloaded symbols. |
17037 | exclude_expsyms=$lt_exclude_expsyms_F77 |
17038 | |
17039 | # Symbols that must always be exported. |
17040 | include_expsyms=$lt_include_expsyms_F77 |
17041 | |
17042 | # ### END LIBTOOL TAG CONFIG: $tagname |
17043 | |
17044 | __EOF__ |
17045 | |
17046 | |
17047 | else |
17048 | # If there is no Makefile yet, we rely on a make rule to execute |
17049 | # `config.status --recheck' to rerun these tests and create the |
17050 | # libtool script then. |
17051 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
17052 | if test -f "$ltmain_in"; then |
17053 | test -f Makefile && make "$ltmain" |
17054 | fi |
17055 | fi |
17056 | |
17057 | |
17058 | ac_ext=c |
17059 | ac_cpp='$CPP $CPPFLAGS' |
17060 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
17061 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
17062 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
17063 | |
17064 | CC="$lt_save_CC" |
17065 | |
17066 | else |
17067 | tagname="" |
17068 | fi |
17069 | ;; |
17070 | |
17071 | GCJ) |
17072 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
17073 | |
17074 | |
17075 | # Source file extension for Java test sources. |
17076 | ac_ext=java |
17077 | |
17078 | # Object file extension for compiled Java test sources. |
17079 | objext=o |
17080 | objext_GCJ=$objext |
17081 | |
17082 | # Code to be used in simple compile tests |
17083 | lt_simple_compile_test_code="class foo {}\n" |
17084 | |
17085 | # Code to be used in simple link tests |
17086 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
17087 | |
17088 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
17089 | |
17090 | # If no C compiler was specified, use CC. |
17091 | LTCC=${LTCC-"$CC"} |
17092 | |
17093 | # Allow CC to be a program name with arguments. |
17094 | compiler=$CC |
17095 | |
17096 | |
17097 | # save warnings/boilerplate of simple test code |
17098 | ac_outfile=conftest.$ac_objext |
17099 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
17100 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
17101 | _lt_compiler_boilerplate=`cat conftest.err` |
17102 | $rm conftest* |
17103 | |
17104 | ac_outfile=conftest.$ac_objext |
17105 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
17106 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
17107 | _lt_linker_boilerplate=`cat conftest.err` |
17108 | $rm conftest* |
17109 | |
17110 | |
17111 | # Allow CC to be a program name with arguments. |
17112 | lt_save_CC="$CC" |
17113 | CC=${GCJ-"gcj"} |
17114 | compiler=$CC |
17115 | compiler_GCJ=$CC |
17116 | for cc_temp in $compiler""; do |
17117 | case $cc_temp in |
17118 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
17119 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
17120 | \-*) ;; |
17121 | *) break;; |
17122 | esac |
17123 | done |
17124 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
17125 | |
17126 | |
17127 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
17128 | archive_cmds_need_lc_GCJ=no |
17129 | |
17130 | old_archive_cmds_GCJ=$old_archive_cmds |
17131 | |
17132 | |
17133 | lt_prog_compiler_no_builtin_flag_GCJ= |
17134 | |
17135 | if test "$GCC" = yes; then |
17136 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
17137 | |
17138 | |
17139 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
17140 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
17141 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
17142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17143 | else |
17144 | lt_cv_prog_compiler_rtti_exceptions=no |
17145 | ac_outfile=conftest.$ac_objext |
17146 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17147 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
17148 | # Insert the option either (1) after the last *FLAGS variable, or |
17149 | # (2) before a word containing "conftest.", or (3) at the end. |
17150 | # Note that $ac_compile itself does not contain backslashes and begins |
17151 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
17152 | # The option is referenced via a variable to avoid confusing sed. |
17153 | lt_compile=`echo "$ac_compile" | $SED \ |
17154 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
17155 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
17156 | -e 's:$: $lt_compiler_flag:'` |
17157 | (eval echo "\"\$as_me:17157: $lt_compile\"" >&5) |
17158 | (eval "$lt_compile" 2>conftest.err) |
17159 | ac_status=$? |
17160 | cat conftest.err >&5 |
17161 | echo "$as_me:17161: \$? = $ac_status" >&5 |
17162 | if (exit $ac_status) && test -s "$ac_outfile"; then |
17163 | # The compiler can only warn and ignore the option if not recognized |
17164 | # So say no if there are warnings other than the usual output. |
17165 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
17166 | $SED '/^$/d' conftest.err >conftest.er2 |
17167 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
17168 | lt_cv_prog_compiler_rtti_exceptions=yes |
17169 | fi |
17170 | fi |
17171 | $rm conftest* |
17172 | |
17173 | fi |
17174 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
17175 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
17176 | |
17177 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
17178 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
17179 | else |
17180 | : |
17181 | fi |
17182 | |
17183 | fi |
17184 | |
17185 | lt_prog_compiler_wl_GCJ= |
17186 | lt_prog_compiler_pic_GCJ= |
17187 | lt_prog_compiler_static_GCJ= |
17188 | |
17189 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
17190 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
17191 | |
17192 | if test "$GCC" = yes; then |
17193 | lt_prog_compiler_wl_GCJ='-Wl,' |
17194 | lt_prog_compiler_static_GCJ='-static' |
17195 | |
17196 | case $host_os in |
17197 | aix*) |
17198 | # All AIX code is PIC. |
17199 | if test "$host_cpu" = ia64; then |
17200 | # AIX 5 now supports IA64 processor |
17201 | lt_prog_compiler_static_GCJ='-Bstatic' |
17202 | fi |
17203 | ;; |
17204 | |
17205 | amigaos*) |
17206 | # FIXME: we need at least 68020 code to build shared libraries, but |
17207 | # adding the `-m68020' flag to GCC prevents building anything better, |
17208 | # like `-m68040'. |
17209 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
17210 | ;; |
17211 | |
17212 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
17213 | # PIC is the default for these OSes. |
17214 | ;; |
17215 | |
17216 | mingw* | pw32* | os2*) |
17217 | # This hack is so that the source file can tell whether it is being |
17218 | # built for inclusion in a dll (and should export symbols for example). |
17219 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
17220 | ;; |
17221 | |
17222 | darwin* | rhapsody*) |
17223 | # PIC is the default on this platform |
17224 | # Common symbols not allowed in MH_DYLIB files |
17225 | lt_prog_compiler_pic_GCJ='-fno-common' |
17226 | ;; |
17227 | |
17228 | msdosdjgpp*) |
17229 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
17230 | # on systems that don't support them. |
17231 | lt_prog_compiler_can_build_shared_GCJ=no |
17232 | enable_shared=no |
17233 | ;; |
17234 | |
17235 | sysv4*MP*) |
17236 | if test -d /usr/nec; then |
17237 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
17238 | fi |
17239 | ;; |
17240 | |
17241 | hpux*) |
17242 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
17243 | # not for PA HP-UX. |
17244 | case $host_cpu in |
17245 | hppa*64*|ia64*) |
17246 | # +Z the default |
17247 | ;; |
17248 | *) |
17249 | lt_prog_compiler_pic_GCJ='-fPIC' |
17250 | ;; |
17251 | esac |
17252 | ;; |
17253 | |
17254 | *) |
17255 | lt_prog_compiler_pic_GCJ='-fPIC' |
17256 | ;; |
17257 | esac |
17258 | else |
17259 | # PORTME Check for flag to pass linker flags through the system compiler. |
17260 | case $host_os in |
17261 | aix*) |
17262 | lt_prog_compiler_wl_GCJ='-Wl,' |
17263 | if test "$host_cpu" = ia64; then |
17264 | # AIX 5 now supports IA64 processor |
17265 | lt_prog_compiler_static_GCJ='-Bstatic' |
17266 | else |
17267 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
17268 | fi |
17269 | ;; |
17270 | darwin*) |
17271 | # PIC is the default on this platform |
17272 | # Common symbols not allowed in MH_DYLIB files |
17273 | case $cc_basename in |
17274 | xlc*) |
17275 | lt_prog_compiler_pic_GCJ='-qnocommon' |
17276 | lt_prog_compiler_wl_GCJ='-Wl,' |
17277 | ;; |
17278 | esac |
17279 | ;; |
17280 | |
17281 | mingw* | pw32* | os2*) |
17282 | # This hack is so that the source file can tell whether it is being |
17283 | # built for inclusion in a dll (and should export symbols for example). |
17284 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
17285 | ;; |
17286 | |
17287 | hpux9* | hpux10* | hpux11*) |
17288 | lt_prog_compiler_wl_GCJ='-Wl,' |
17289 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
17290 | # not for PA HP-UX. |
17291 | case $host_cpu in |
17292 | hppa*64*|ia64*) |
17293 | # +Z the default |
17294 | ;; |
17295 | *) |
17296 | lt_prog_compiler_pic_GCJ='+Z' |
17297 | ;; |
17298 | esac |
17299 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
17300 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
17301 | ;; |
17302 | |
17303 | irix5* | irix6* | nonstopux*) |
17304 | lt_prog_compiler_wl_GCJ='-Wl,' |
17305 | # PIC (with -KPIC) is the default. |
17306 | lt_prog_compiler_static_GCJ='-non_shared' |
17307 | ;; |
17308 | |
17309 | newsos6) |
17310 | lt_prog_compiler_pic_GCJ='-KPIC' |
17311 | lt_prog_compiler_static_GCJ='-Bstatic' |
17312 | ;; |
17313 | |
17314 | linux*) |
17315 | case $cc_basename in |
17316 | icc* | ecc*) |
17317 | lt_prog_compiler_wl_GCJ='-Wl,' |
17318 | lt_prog_compiler_pic_GCJ='-KPIC' |
17319 | lt_prog_compiler_static_GCJ='-static' |
17320 | ;; |
17321 | pgcc* | pgf77* | pgf90* | pgf95*) |
17322 | # Portland Group compilers (*not* the Pentium gcc compiler, |
17323 | # which looks to be a dead project) |
17324 | lt_prog_compiler_wl_GCJ='-Wl,' |
17325 | lt_prog_compiler_pic_GCJ='-fpic' |
17326 | lt_prog_compiler_static_GCJ='-Bstatic' |
17327 | ;; |
17328 | ccc*) |
17329 | lt_prog_compiler_wl_GCJ='-Wl,' |
17330 | # All Alpha code is PIC. |
17331 | lt_prog_compiler_static_GCJ='-non_shared' |
17332 | ;; |
17333 | esac |
17334 | ;; |
17335 | |
17336 | osf3* | osf4* | osf5*) |
17337 | lt_prog_compiler_wl_GCJ='-Wl,' |
17338 | # All OSF/1 code is PIC. |
17339 | lt_prog_compiler_static_GCJ='-non_shared' |
17340 | ;; |
17341 | |
17342 | sco3.2v5*) |
17343 | lt_prog_compiler_pic_GCJ='-Kpic' |
17344 | lt_prog_compiler_static_GCJ='-dn' |
17345 | ;; |
17346 | |
17347 | solaris*) |
17348 | lt_prog_compiler_pic_GCJ='-KPIC' |
17349 | lt_prog_compiler_static_GCJ='-Bstatic' |
17350 | case $cc_basename in |
17351 | f77* | f90* | f95*) |
17352 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
17353 | *) |
17354 | lt_prog_compiler_wl_GCJ='-Wl,';; |
17355 | esac |
17356 | ;; |
17357 | |
17358 | sunos4*) |
17359 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
17360 | lt_prog_compiler_pic_GCJ='-PIC' |
17361 | lt_prog_compiler_static_GCJ='-Bstatic' |
17362 | ;; |
17363 | |
17364 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
17365 | lt_prog_compiler_wl_GCJ='-Wl,' |
17366 | lt_prog_compiler_pic_GCJ='-KPIC' |
17367 | lt_prog_compiler_static_GCJ='-Bstatic' |
17368 | ;; |
17369 | |
17370 | sysv4*MP*) |
17371 | if test -d /usr/nec ;then |
17372 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
17373 | lt_prog_compiler_static_GCJ='-Bstatic' |
17374 | fi |
17375 | ;; |
17376 | |
17377 | unicos*) |
17378 | lt_prog_compiler_wl_GCJ='-Wl,' |
17379 | lt_prog_compiler_can_build_shared_GCJ=no |
17380 | ;; |
17381 | |
17382 | uts4*) |
17383 | lt_prog_compiler_pic_GCJ='-pic' |
17384 | lt_prog_compiler_static_GCJ='-Bstatic' |
17385 | ;; |
17386 | |
17387 | *) |
17388 | lt_prog_compiler_can_build_shared_GCJ=no |
17389 | ;; |
17390 | esac |
17391 | fi |
17392 | |
17393 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
17394 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
17395 | |
17396 | # |
17397 | # Check to make sure the PIC flag actually works. |
17398 | # |
17399 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
17400 | |
17401 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
17402 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
17403 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
17404 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17405 | else |
17406 | lt_prog_compiler_pic_works_GCJ=no |
17407 | ac_outfile=conftest.$ac_objext |
17408 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17409 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
17410 | # Insert the option either (1) after the last *FLAGS variable, or |
17411 | # (2) before a word containing "conftest.", or (3) at the end. |
17412 | # Note that $ac_compile itself does not contain backslashes and begins |
17413 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
17414 | # The option is referenced via a variable to avoid confusing sed. |
17415 | lt_compile=`echo "$ac_compile" | $SED \ |
17416 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
17417 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
17418 | -e 's:$: $lt_compiler_flag:'` |
17419 | (eval echo "\"\$as_me:17419: $lt_compile\"" >&5) |
17420 | (eval "$lt_compile" 2>conftest.err) |
17421 | ac_status=$? |
17422 | cat conftest.err >&5 |
17423 | echo "$as_me:17423: \$? = $ac_status" >&5 |
17424 | if (exit $ac_status) && test -s "$ac_outfile"; then |
17425 | # The compiler can only warn and ignore the option if not recognized |
17426 | # So say no if there are warnings other than the usual output. |
17427 | $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp |
17428 | $SED '/^$/d' conftest.err >conftest.er2 |
17429 | if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then |
17430 | lt_prog_compiler_pic_works_GCJ=yes |
17431 | fi |
17432 | fi |
17433 | $rm conftest* |
17434 | |
17435 | fi |
17436 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
17437 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
17438 | |
17439 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
17440 | case $lt_prog_compiler_pic_GCJ in |
17441 | "" | " "*) ;; |
17442 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
17443 | esac |
17444 | else |
17445 | lt_prog_compiler_pic_GCJ= |
17446 | lt_prog_compiler_can_build_shared_GCJ=no |
17447 | fi |
17448 | |
17449 | fi |
17450 | case $host_os in |
17451 | # For platforms which do not support PIC, -DPIC is meaningless: |
17452 | *djgpp*) |
17453 | lt_prog_compiler_pic_GCJ= |
17454 | ;; |
17455 | *) |
17456 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
17457 | ;; |
17458 | esac |
17459 | |
17460 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
17461 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
17462 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
17463 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
17464 | else |
17465 | lt_cv_prog_compiler_c_o_GCJ=no |
17466 | $rm -r conftest 2>/dev/null |
17467 | mkdir conftest |
17468 | cd conftest |
17469 | mkdir out |
17470 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
17471 | |
17472 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
17473 | # Insert the option either (1) after the last *FLAGS variable, or |
17474 | # (2) before a word containing "conftest.", or (3) at the end. |
17475 | # Note that $ac_compile itself does not contain backslashes and begins |
17476 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
17477 | lt_compile=`echo "$ac_compile" | $SED \ |
17478 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
17479 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
17480 | -e 's:$: $lt_compiler_flag:'` |
17481 | (eval echo "\"\$as_me:17481: $lt_compile\"" >&5) |
17482 | (eval "$lt_compile" 2>out/conftest.err) |
17483 | ac_status=$? |
17484 | cat out/conftest.err >&5 |
17485 | echo "$as_me:17485: \$? = $ac_status" >&5 |
17486 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
17487 | then |
17488 | # The compiler can only warn and ignore the option if not recognized |
17489 | # So say no if there are warnings |
17490 | $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp |
17491 | $SED '/^$/d' out/conftest.err >out/conftest.er2 |
17492 | if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
17493 | lt_cv_prog_compiler_c_o_GCJ=yes |
17494 | fi |
17495 | fi |
17496 | chmod u+w . 2>&5 |
17497 | $rm conftest* |
17498 | # SGI C++ compiler will create directory out/ii_files/ for |
17499 | # template instantiation |
17500 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
17501 | $rm out/* && rmdir out |
17502 | cd .. |
17503 | rmdir conftest |
17504 | $rm conftest* |
17505 | |
17506 | fi |
17507 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
17508 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
17509 | |
17510 | |
17511 | hard_links="nottested" |
17512 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
17513 | # do not overwrite the value of need_locks provided by the user |
17514 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
17515 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
17516 | hard_links=yes |
17517 | $rm conftest* |
17518 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
17519 | touch conftest.a |
17520 | ln conftest.a conftest.b 2>&5 || hard_links=no |
17521 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
17522 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
17523 | echo "${ECHO_T}$hard_links" >&6; } |
17524 | if test "$hard_links" = no; then |
17525 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
17526 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
17527 | need_locks=warn |
17528 | fi |
17529 | else |
17530 | need_locks=no |
17531 | fi |
17532 | |
17533 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
17534 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
17535 | |
17536 | runpath_var= |
17537 | allow_undefined_flag_GCJ= |
17538 | enable_shared_with_static_runtimes_GCJ=no |
17539 | archive_cmds_GCJ= |
17540 | archive_expsym_cmds_GCJ= |
17541 | old_archive_From_new_cmds_GCJ= |
17542 | old_archive_from_expsyms_cmds_GCJ= |
17543 | export_dynamic_flag_spec_GCJ= |
17544 | whole_archive_flag_spec_GCJ= |
17545 | thread_safe_flag_spec_GCJ= |
17546 | hardcode_libdir_flag_spec_GCJ= |
17547 | hardcode_libdir_flag_spec_ld_GCJ= |
17548 | hardcode_libdir_separator_GCJ= |
17549 | hardcode_direct_GCJ=no |
17550 | hardcode_minus_L_GCJ=no |
17551 | hardcode_shlibpath_var_GCJ=unsupported |
17552 | link_all_deplibs_GCJ=unknown |
17553 | hardcode_automatic_GCJ=no |
17554 | module_cmds_GCJ= |
17555 | module_expsym_cmds_GCJ= |
17556 | always_export_symbols_GCJ=no |
17557 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
17558 | # include_expsyms should be a list of space-separated symbols to be *always* |
17559 | # included in the symbol list |
17560 | include_expsyms_GCJ= |
17561 | # exclude_expsyms can be an extended regexp of symbols to exclude |
17562 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
17563 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
17564 | # as well as any symbol that contains `d'. |
17565 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
17566 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
17567 | # platforms (ab)use it in PIC code, but their linkers get confused if |
17568 | # the symbol is explicitly referenced. Since portable code cannot |
17569 | # rely on this symbol name, it's probably fine to never include it in |
17570 | # preloaded symbol tables. |
17571 | extract_expsyms_cmds= |
17572 | # Just being paranoid about ensuring that cc_basename is set. |
17573 | for cc_temp in $compiler""; do |
17574 | case $cc_temp in |
17575 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
17576 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
17577 | \-*) ;; |
17578 | *) break;; |
17579 | esac |
17580 | done |
17581 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
17582 | |
17583 | case $host_os in |
17584 | cygwin* | mingw* | pw32*) |
17585 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
17586 | # When not using gcc, we currently assume that we are using |
17587 | # Microsoft Visual C++. |
17588 | if test "$GCC" != yes; then |
17589 | with_gnu_ld=no |
17590 | fi |
17591 | ;; |
17592 | openbsd*) |
17593 | with_gnu_ld=no |
17594 | ;; |
17595 | esac |
17596 | |
17597 | ld_shlibs_GCJ=yes |
17598 | if test "$with_gnu_ld" = yes; then |
17599 | # If archive_cmds runs LD, not CC, wlarc should be empty |
17600 | wlarc='${wl}' |
17601 | |
17602 | # Set some defaults for GNU ld with shared library support. These |
17603 | # are reset later if shared libraries are not supported. Putting them |
17604 | # here allows them to be overridden if necessary. |
17605 | runpath_var=LD_RUN_PATH |
17606 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
17607 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
17608 | # ancient GNU ld didn't support --whole-archive et. al. |
17609 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
17610 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
17611 | else |
17612 | whole_archive_flag_spec_GCJ= |
17613 | fi |
17614 | supports_anon_versioning=no |
17615 | case `$LD -v 2>/dev/null` in |
17616 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
17617 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
17618 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
17619 | *\ 2.11.*) ;; # other 2.11 versions |
17620 | *) supports_anon_versioning=yes ;; |
17621 | esac |
17622 | |
17623 | # See if GNU ld supports shared libraries. |
17624 | case $host_os in |
17625 | aix3* | aix4* | aix5*) |
17626 | # On AIX/PPC, the GNU linker is very broken |
17627 | if test "$host_cpu" != ia64; then |
17628 | ld_shlibs_GCJ=no |
17629 | cat <<EOF 1>&2 |
17630 | |
17631 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
17632 | *** to be unable to reliably create shared libraries on AIX. |
17633 | *** Therefore, libtool is disabling shared libraries support. If you |
17634 | *** really care for shared libraries, you may want to modify your PATH |
17635 | *** so that a non-GNU linker is found, and then restart. |
17636 | |
17637 | EOF |
17638 | fi |
17639 | ;; |
17640 | |
17641 | amigaos*) |
17642 | 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)' |
17643 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17644 | hardcode_minus_L_GCJ=yes |
17645 | |
17646 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
17647 | # that the semantics of dynamic libraries on AmigaOS, at least up |
17648 | # to version 4, is to share data among multiple programs linked |
17649 | # with the same dynamic library. Since this doesn't match the |
17650 | # behavior of shared libraries on other platforms, we can't use |
17651 | # them. |
17652 | ld_shlibs_GCJ=no |
17653 | ;; |
17654 | |
17655 | beos*) |
17656 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17657 | allow_undefined_flag_GCJ=unsupported |
17658 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
17659 | # support --undefined. This deserves some investigation. FIXME |
17660 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17661 | else |
17662 | ld_shlibs_GCJ=no |
17663 | fi |
17664 | ;; |
17665 | |
17666 | cygwin* | mingw* | pw32*) |
17667 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
17668 | # as there is no search path for DLLs. |
17669 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17670 | allow_undefined_flag_GCJ=unsupported |
17671 | always_export_symbols_GCJ=no |
17672 | enable_shared_with_static_runtimes_GCJ=yes |
17673 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
17674 | |
17675 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
17676 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
17677 | # If the export-symbols file already is a .def file (1st line |
17678 | # is EXPORTS), use it as is; otherwise, prepend... |
17679 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
17680 | cp $export_symbols $output_objdir/$soname.def; |
17681 | else |
17682 | echo EXPORTS > $output_objdir/$soname.def; |
17683 | cat $export_symbols >> $output_objdir/$soname.def; |
17684 | fi~ |
17685 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' |
17686 | else |
17687 | ld_shlibs_GCJ=no |
17688 | fi |
17689 | ;; |
17690 | |
17691 | linux*) |
17692 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17693 | tmp_addflag= |
17694 | case $cc_basename,$host_cpu in |
17695 | pgcc*) # Portland Group C compiler |
17696 | 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' |
17697 | tmp_addflag=' $pic_flag' |
17698 | ;; |
17699 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
17700 | 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' |
17701 | tmp_addflag=' $pic_flag -Mnomain' ;; |
17702 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
17703 | tmp_addflag=' -i_dynamic' ;; |
17704 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
17705 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
17706 | ifc* | ifort*) # Intel Fortran compiler |
17707 | tmp_addflag=' -nofor_main' ;; |
17708 | esac |
17709 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17710 | |
17711 | if test $supports_anon_versioning = yes; then |
17712 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
17713 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
17714 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
17715 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
17716 | fi |
17717 | else |
17718 | ld_shlibs_GCJ=no |
17719 | fi |
17720 | ;; |
17721 | |
17722 | netbsd*) |
17723 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17724 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
17725 | wlarc= |
17726 | else |
17727 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17728 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17729 | fi |
17730 | ;; |
17731 | |
17732 | solaris* | sysv5*) |
17733 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
17734 | ld_shlibs_GCJ=no |
17735 | cat <<EOF 1>&2 |
17736 | |
17737 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
17738 | *** create shared libraries on Solaris systems. Therefore, libtool |
17739 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17740 | *** binutils to release 2.9.1 or newer. Another option is to modify |
17741 | *** your PATH or compiler configuration so that the native linker is |
17742 | *** used, and then restart. |
17743 | |
17744 | EOF |
17745 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17746 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17747 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17748 | else |
17749 | ld_shlibs_GCJ=no |
17750 | fi |
17751 | ;; |
17752 | |
17753 | sunos4*) |
17754 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17755 | wlarc= |
17756 | hardcode_direct_GCJ=yes |
17757 | hardcode_shlibpath_var_GCJ=no |
17758 | ;; |
17759 | |
17760 | *) |
17761 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17762 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17763 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17764 | else |
17765 | ld_shlibs_GCJ=no |
17766 | fi |
17767 | ;; |
17768 | esac |
17769 | |
17770 | if test "$ld_shlibs_GCJ" = no; then |
17771 | runpath_var= |
17772 | hardcode_libdir_flag_spec_GCJ= |
17773 | export_dynamic_flag_spec_GCJ= |
17774 | whole_archive_flag_spec_GCJ= |
17775 | fi |
17776 | else |
17777 | # PORTME fill in a description of your system's linker (not GNU ld) |
17778 | case $host_os in |
17779 | aix3*) |
17780 | allow_undefined_flag_GCJ=unsupported |
17781 | always_export_symbols_GCJ=yes |
17782 | 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' |
17783 | # Note: this linker hardcodes the directories in LIBPATH if there |
17784 | # are no directories specified by -L. |
17785 | hardcode_minus_L_GCJ=yes |
17786 | if test "$GCC" = yes && test -z "$link_static_flag"; then |
17787 | # Neither direct hardcoding nor static linking is supported with a |
17788 | # broken collect2. |
17789 | hardcode_direct_GCJ=unsupported |
17790 | fi |
17791 | ;; |
17792 | |
17793 | aix4* | aix5*) |
17794 | if test "$host_cpu" = ia64; then |
17795 | # On IA64, the linker does run time linking by default, so we don't |
17796 | # have to do anything special. |
17797 | aix_use_runtimelinking=no |
17798 | exp_sym_flag='-Bexport' |
17799 | no_entry_flag="" |
17800 | else |
17801 | # If we're using GNU nm, then we don't want the "-C" option. |
17802 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
17803 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
17804 | 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' |
17805 | else |
17806 | 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' |
17807 | fi |
17808 | aix_use_runtimelinking=no |
17809 | |
17810 | # Test if we are trying to use run time linking or normal |
17811 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
17812 | # need to do runtime linking. |
17813 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
17814 | for ld_flag in $LDFLAGS; do |
17815 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
17816 | aix_use_runtimelinking=yes |
17817 | break |
17818 | fi |
17819 | done |
17820 | esac |
17821 | |
17822 | exp_sym_flag='-bexport' |
17823 | no_entry_flag='-bnoentry' |
17824 | fi |
17825 | |
17826 | # When large executables or shared objects are built, AIX ld can |
17827 | # have problems creating the table of contents. If linking a library |
17828 | # or program results in "error TOC overflow" add -mminimal-toc to |
17829 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
17830 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
17831 | |
17832 | archive_cmds_GCJ='' |
17833 | hardcode_direct_GCJ=yes |
17834 | hardcode_libdir_separator_GCJ=':' |
17835 | link_all_deplibs_GCJ=yes |
17836 | |
17837 | if test "$GCC" = yes; then |
17838 | case $host_os in aix4.[012]|aix4.[012].*) |
17839 | # We only want to do this on AIX 4.2 and lower, the check |
17840 | # below for broken collect2 doesn't work under 4.3+ |
17841 | collect2name=`${CC} -print-prog-name=collect2` |
17842 | if test -f "$collect2name" && \ |
17843 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
17844 | then |
17845 | # We have reworked collect2 |
17846 | hardcode_direct_GCJ=yes |
17847 | else |
17848 | # We have old collect2 |
17849 | hardcode_direct_GCJ=unsupported |
17850 | # It fails to find uninstalled libraries when the uninstalled |
17851 | # path is not listed in the libpath. Setting hardcode_minus_L |
17852 | # to unsupported forces relinking |
17853 | hardcode_minus_L_GCJ=yes |
17854 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17855 | hardcode_libdir_separator_GCJ= |
17856 | fi |
17857 | esac |
17858 | shared_flag='-shared' |
17859 | if test "$aix_use_runtimelinking" = yes; then |
17860 | shared_flag="$shared_flag "'${wl}-G' |
17861 | fi |
17862 | else |
17863 | # not using gcc |
17864 | if test "$host_cpu" = ia64; then |
17865 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
17866 | # chokes on -Wl,-G. The following line is correct: |
17867 | shared_flag='-G' |
17868 | else |
17869 | if test "$aix_use_runtimelinking" = yes; then |
17870 | shared_flag='${wl}-G' |
17871 | else |
17872 | shared_flag='${wl}-bM:SRE' |
17873 | fi |
17874 | fi |
17875 | fi |
17876 | |
17877 | # It seems that -bexpall does not export symbols beginning with |
17878 | # underscore (_), so it is better to generate a list of symbols to export. |
17879 | always_export_symbols_GCJ=yes |
17880 | if test "$aix_use_runtimelinking" = yes; then |
17881 | # Warning - without using the other runtime loading flags (-brtl), |
17882 | # -berok will link without error, but may produce a broken library. |
17883 | allow_undefined_flag_GCJ='-berok' |
17884 | # Determine the default libpath from the value encoded in an empty executable. |
17885 | cat >conftest.$ac_ext <<_ACEOF |
17886 | /* confdefs.h. */ |
17887 | _ACEOF |
17888 | cat confdefs.h >>conftest.$ac_ext |
17889 | cat >>conftest.$ac_ext <<_ACEOF |
17890 | /* end confdefs.h. */ |
17891 | |
17892 | int |
17893 | main () |
17894 | { |
17895 | |
17896 | ; |
17897 | return 0; |
17898 | } |
17899 | _ACEOF |
17900 | rm -f conftest.$ac_objext conftest$ac_exeext |
17901 | if { (ac_try="$ac_link" |
17902 | case "(($ac_try" in |
17903 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17904 | *) ac_try_echo=$ac_try;; |
17905 | esac |
17906 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17907 | (eval "$ac_link") 2>conftest.er1 |
17908 | ac_status=$? |
17909 | grep -v '^ *+' conftest.er1 >conftest.err |
17910 | rm -f conftest.er1 |
17911 | cat conftest.err >&5 |
17912 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17913 | (exit $ac_status); } && { |
17914 | test -z "$ac_c_werror_flag" || |
17915 | test ! -s conftest.err |
17916 | } && test -s conftest$ac_exeext && |
17917 | $as_test_x conftest$ac_exeext; then |
17918 | |
17919 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17920 | }'` |
17921 | # Check for a 64-bit object if we didn't find anything. |
17922 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17923 | }'`; fi |
17924 | else |
17925 | echo "$as_me: failed program was:" >&5 |
17926 | sed 's/^/| /' conftest.$ac_ext >&5 |
17927 | |
17928 | |
17929 | fi |
17930 | |
17931 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
17932 | conftest$ac_exeext conftest.$ac_ext |
17933 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17934 | |
17935 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17936 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
17937 | else |
17938 | if test "$host_cpu" = ia64; then |
17939 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
17940 | allow_undefined_flag_GCJ="-z nodefs" |
17941 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" |
17942 | else |
17943 | # Determine the default libpath from the value encoded in an empty executable. |
17944 | cat >conftest.$ac_ext <<_ACEOF |
17945 | /* confdefs.h. */ |
17946 | _ACEOF |
17947 | cat confdefs.h >>conftest.$ac_ext |
17948 | cat >>conftest.$ac_ext <<_ACEOF |
17949 | /* end confdefs.h. */ |
17950 | |
17951 | int |
17952 | main () |
17953 | { |
17954 | |
17955 | ; |
17956 | return 0; |
17957 | } |
17958 | _ACEOF |
17959 | rm -f conftest.$ac_objext conftest$ac_exeext |
17960 | if { (ac_try="$ac_link" |
17961 | case "(($ac_try" in |
17962 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17963 | *) ac_try_echo=$ac_try;; |
17964 | esac |
17965 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17966 | (eval "$ac_link") 2>conftest.er1 |
17967 | ac_status=$? |
17968 | grep -v '^ *+' conftest.er1 >conftest.err |
17969 | rm -f conftest.er1 |
17970 | cat conftest.err >&5 |
17971 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17972 | (exit $ac_status); } && { |
17973 | test -z "$ac_c_werror_flag" || |
17974 | test ! -s conftest.err |
17975 | } && test -s conftest$ac_exeext && |
17976 | $as_test_x conftest$ac_exeext; then |
17977 | |
17978 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17979 | }'` |
17980 | # Check for a 64-bit object if we didn't find anything. |
17981 | if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17982 | }'`; fi |
17983 | else |
17984 | echo "$as_me: failed program was:" >&5 |
17985 | sed 's/^/| /' conftest.$ac_ext >&5 |
17986 | |
17987 | |
17988 | fi |
17989 | |
17990 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
17991 | conftest$ac_exeext conftest.$ac_ext |
17992 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17993 | |
17994 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17995 | # Warning - without using the other run time loading flags, |
17996 | # -berok will link without error, but may produce a broken library. |
17997 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
17998 | allow_undefined_flag_GCJ=' ${wl}-berok' |
17999 | # -bexpall does not export symbols beginning with underscore (_) |
18000 | always_export_symbols_GCJ=yes |
18001 | # Exported symbols can be pulled into shared objects from archives |
18002 | whole_archive_flag_spec_GCJ=' ' |
18003 | archive_cmds_need_lc_GCJ=yes |
18004 | # This is similar to how AIX traditionally builds its shared libraries. |
18005 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
18006 | fi |
18007 | fi |
18008 | ;; |
18009 | |
18010 | amigaos*) |
18011 | 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)' |
18012 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
18013 | hardcode_minus_L_GCJ=yes |
18014 | # see comment about different semantics on the GNU ld section |
18015 | ld_shlibs_GCJ=no |
18016 | ;; |
18017 | |
18018 | bsdi[45]*) |
18019 | export_dynamic_flag_spec_GCJ=-rdynamic |
18020 | ;; |
18021 | |
18022 | cygwin* | mingw* | pw32*) |
18023 | # When not using gcc, we currently assume that we are using |
18024 | # Microsoft Visual C++. |
18025 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
18026 | # no search path for DLLs. |
18027 | hardcode_libdir_flag_spec_GCJ=' ' |
18028 | allow_undefined_flag_GCJ=unsupported |
18029 | # Tell ltmain to make .lib files, not .a files. |
18030 | libext=lib |
18031 | # Tell ltmain to make .dll files, not .so files. |
18032 | shrext_cmds=".dll" |
18033 | # FIXME: Setting linknames here is a bad hack. |
18034 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
18035 | # The linker will automatically build a .lib file if we build a DLL. |
18036 | old_archive_From_new_cmds_GCJ='true' |
18037 | # FIXME: Should let the user specify the lib program. |
18038 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
18039 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
18040 | enable_shared_with_static_runtimes_GCJ=yes |
18041 | ;; |
18042 | |
18043 | darwin* | rhapsody*) |
18044 | case $host_os in |
18045 | rhapsody* | darwin1.[012]) |
18046 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
18047 | ;; |
18048 | *) # Darwin 1.3 on |
18049 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
18050 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
18051 | else |
18052 | case ${MACOSX_DEPLOYMENT_TARGET} in |
18053 | 10.[012]) |
18054 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
18055 | ;; |
18056 | 10.*) |
18057 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
18058 | ;; |
18059 | esac |
18060 | fi |
18061 | ;; |
18062 | esac |
18063 | archive_cmds_need_lc_GCJ=no |
18064 | hardcode_direct_GCJ=no |
18065 | hardcode_automatic_GCJ=yes |
18066 | hardcode_shlibpath_var_GCJ=unsupported |
18067 | whole_archive_flag_spec_GCJ='' |
18068 | link_all_deplibs_GCJ=yes |
18069 | if test "$GCC" = yes ; then |
18070 | output_verbose_link_cmd='echo' |
18071 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
18072 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
18073 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
18074 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
18075 | 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}' |
18076 | else |
18077 | case $cc_basename in |
18078 | xlc*) |
18079 | output_verbose_link_cmd='echo' |
18080 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
18081 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
18082 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
18083 | archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' |
18084 | 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}' |
18085 | ;; |
18086 | *) |
18087 | ld_shlibs_GCJ=no |
18088 | ;; |
18089 | esac |
18090 | fi |
18091 | ;; |
18092 | |
18093 | dgux*) |
18094 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18095 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
18096 | hardcode_shlibpath_var_GCJ=no |
18097 | ;; |
18098 | |
18099 | freebsd1*) |
18100 | ld_shlibs_GCJ=no |
18101 | ;; |
18102 | |
18103 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
18104 | # support. Future versions do this automatically, but an explicit c++rt0.o |
18105 | # does not break anything, and helps significantly (at the cost of a little |
18106 | # extra space). |
18107 | freebsd2.2*) |
18108 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
18109 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
18110 | hardcode_direct_GCJ=yes |
18111 | hardcode_shlibpath_var_GCJ=no |
18112 | ;; |
18113 | |
18114 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
18115 | freebsd2*) |
18116 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
18117 | hardcode_direct_GCJ=yes |
18118 | hardcode_minus_L_GCJ=yes |
18119 | hardcode_shlibpath_var_GCJ=no |
18120 | ;; |
18121 | |
18122 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
18123 | freebsd* | kfreebsd*-gnu | dragonfly*) |
18124 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
18125 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
18126 | hardcode_direct_GCJ=yes |
18127 | hardcode_shlibpath_var_GCJ=no |
18128 | ;; |
18129 | |
18130 | hpux9*) |
18131 | if test "$GCC" = yes; then |
18132 | 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' |
18133 | else |
18134 | 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' |
18135 | fi |
18136 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
18137 | hardcode_libdir_separator_GCJ=: |
18138 | hardcode_direct_GCJ=yes |
18139 | |
18140 | # hardcode_minus_L: Not really in the search PATH, |
18141 | # but as the default location of the library. |
18142 | hardcode_minus_L_GCJ=yes |
18143 | export_dynamic_flag_spec_GCJ='${wl}-E' |
18144 | ;; |
18145 | |
18146 | hpux10* | hpux11*) |
18147 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
18148 | case $host_cpu in |
18149 | hppa*64*|ia64*) |
18150 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
18151 | ;; |
18152 | *) |
18153 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
18154 | ;; |
18155 | esac |
18156 | else |
18157 | case $host_cpu in |
18158 | hppa*64*|ia64*) |
18159 | archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' |
18160 | ;; |
18161 | *) |
18162 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
18163 | ;; |
18164 | esac |
18165 | fi |
18166 | if test "$with_gnu_ld" = no; then |
18167 | case $host_cpu in |
18168 | hppa*64*) |
18169 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
18170 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
18171 | hardcode_libdir_separator_GCJ=: |
18172 | hardcode_direct_GCJ=no |
18173 | hardcode_shlibpath_var_GCJ=no |
18174 | ;; |
18175 | ia64*) |
18176 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
18177 | hardcode_direct_GCJ=no |
18178 | hardcode_shlibpath_var_GCJ=no |
18179 | |
18180 | # hardcode_minus_L: Not really in the search PATH, |
18181 | # but as the default location of the library. |
18182 | hardcode_minus_L_GCJ=yes |
18183 | ;; |
18184 | *) |
18185 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
18186 | hardcode_libdir_separator_GCJ=: |
18187 | hardcode_direct_GCJ=yes |
18188 | export_dynamic_flag_spec_GCJ='${wl}-E' |
18189 | |
18190 | # hardcode_minus_L: Not really in the search PATH, |
18191 | # but as the default location of the library. |
18192 | hardcode_minus_L_GCJ=yes |
18193 | ;; |
18194 | esac |
18195 | fi |
18196 | ;; |
18197 | |
18198 | irix5* | irix6* | nonstopux*) |
18199 | if test "$GCC" = yes; then |
18200 | 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' |
18201 | else |
18202 | 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' |
18203 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
18204 | fi |
18205 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
18206 | hardcode_libdir_separator_GCJ=: |
18207 | link_all_deplibs_GCJ=yes |
18208 | ;; |
18209 | |
18210 | netbsd*) |
18211 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
18212 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
18213 | else |
18214 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
18215 | fi |
18216 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
18217 | hardcode_direct_GCJ=yes |
18218 | hardcode_shlibpath_var_GCJ=no |
18219 | ;; |
18220 | |
18221 | newsos6) |
18222 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18223 | hardcode_direct_GCJ=yes |
18224 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
18225 | hardcode_libdir_separator_GCJ=: |
18226 | hardcode_shlibpath_var_GCJ=no |
18227 | ;; |
18228 | |
18229 | openbsd*) |
18230 | hardcode_direct_GCJ=yes |
18231 | hardcode_shlibpath_var_GCJ=no |
18232 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
18233 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
18234 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
18235 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
18236 | export_dynamic_flag_spec_GCJ='${wl}-E' |
18237 | else |
18238 | case $host_os in |
18239 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
18240 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
18241 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
18242 | ;; |
18243 | *) |
18244 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
18245 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
18246 | ;; |
18247 | esac |
18248 | fi |
18249 | ;; |
18250 | |
18251 | os2*) |
18252 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
18253 | hardcode_minus_L_GCJ=yes |
18254 | allow_undefined_flag_GCJ=unsupported |
18255 | 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' |
18256 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
18257 | ;; |
18258 | |
18259 | osf3*) |
18260 | if test "$GCC" = yes; then |
18261 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
18262 | 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' |
18263 | else |
18264 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
18265 | 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' |
18266 | fi |
18267 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
18268 | hardcode_libdir_separator_GCJ=: |
18269 | ;; |
18270 | |
18271 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
18272 | if test "$GCC" = yes; then |
18273 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
18274 | 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' |
18275 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
18276 | else |
18277 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
18278 | 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' |
18279 | 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~ |
18280 | $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' |
18281 | |
18282 | # Both c and cxx compiler support -rpath directly |
18283 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
18284 | fi |
18285 | hardcode_libdir_separator_GCJ=: |
18286 | ;; |
18287 | |
18288 | sco3.2v5*) |
18289 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18290 | hardcode_shlibpath_var_GCJ=no |
18291 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
18292 | runpath_var=LD_RUN_PATH |
18293 | hardcode_runpath_var=yes |
18294 | ;; |
18295 | |
18296 | solaris*) |
18297 | no_undefined_flag_GCJ=' -z text' |
18298 | if test "$GCC" = yes; then |
18299 | wlarc='${wl}' |
18300 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
18301 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
18302 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
18303 | else |
18304 | wlarc='' |
18305 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18306 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
18307 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
18308 | fi |
18309 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
18310 | hardcode_shlibpath_var_GCJ=no |
18311 | case $host_os in |
18312 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
18313 | *) |
18314 | # The compiler driver will combine linker options so we |
18315 | # cannot just pass the convience library names through |
18316 | # without $wl, iff we do not link with $LD. |
18317 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
18318 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
18319 | case $wlarc in |
18320 | '') |
18321 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
18322 | *) |
18323 | whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}-z ${wl}defaultextract' ;; |
18324 | esac ;; |
18325 | esac |
18326 | link_all_deplibs_GCJ=yes |
18327 | ;; |
18328 | |
18329 | sunos4*) |
18330 | if test "x$host_vendor" = xsequent; then |
18331 | # Use $CC to link under sequent, because it throws in some extra .o |
18332 | # files that make .init and .fini sections work. |
18333 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
18334 | else |
18335 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
18336 | fi |
18337 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
18338 | hardcode_direct_GCJ=yes |
18339 | hardcode_minus_L_GCJ=yes |
18340 | hardcode_shlibpath_var_GCJ=no |
18341 | ;; |
18342 | |
18343 | sysv4) |
18344 | case $host_vendor in |
18345 | sni) |
18346 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18347 | hardcode_direct_GCJ=yes # is this really true??? |
18348 | ;; |
18349 | siemens) |
18350 | ## LD is ld it makes a PLAMLIB |
18351 | ## CC just makes a GrossModule. |
18352 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
18353 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
18354 | hardcode_direct_GCJ=no |
18355 | ;; |
18356 | motorola) |
18357 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18358 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
18359 | ;; |
18360 | esac |
18361 | runpath_var='LD_RUN_PATH' |
18362 | hardcode_shlibpath_var_GCJ=no |
18363 | ;; |
18364 | |
18365 | sysv4.3*) |
18366 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18367 | hardcode_shlibpath_var_GCJ=no |
18368 | export_dynamic_flag_spec_GCJ='-Bexport' |
18369 | ;; |
18370 | |
18371 | sysv4*MP*) |
18372 | if test -d /usr/nec; then |
18373 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18374 | hardcode_shlibpath_var_GCJ=no |
18375 | runpath_var=LD_RUN_PATH |
18376 | hardcode_runpath_var=yes |
18377 | ld_shlibs_GCJ=yes |
18378 | fi |
18379 | ;; |
18380 | |
18381 | sysv4.2uw2*) |
18382 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
18383 | hardcode_direct_GCJ=yes |
18384 | hardcode_minus_L_GCJ=no |
18385 | hardcode_shlibpath_var_GCJ=no |
18386 | hardcode_runpath_var=yes |
18387 | runpath_var=LD_RUN_PATH |
18388 | ;; |
18389 | |
18390 | sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) |
18391 | no_undefined_flag_GCJ='${wl}-z ${wl}text' |
18392 | if test "$GCC" = yes; then |
18393 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
18394 | else |
18395 | archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
18396 | fi |
18397 | runpath_var='LD_RUN_PATH' |
18398 | hardcode_shlibpath_var_GCJ=no |
18399 | ;; |
18400 | |
18401 | sysv5*) |
18402 | no_undefined_flag_GCJ=' -z text' |
18403 | # $CC -shared without GNU ld will not create a library from C++ |
18404 | # object files and a static libstdc++, better avoid it by now |
18405 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18406 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
18407 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
18408 | hardcode_libdir_flag_spec_GCJ= |
18409 | hardcode_shlibpath_var_GCJ=no |
18410 | runpath_var='LD_RUN_PATH' |
18411 | ;; |
18412 | |
18413 | uts4*) |
18414 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
18415 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
18416 | hardcode_shlibpath_var_GCJ=no |
18417 | ;; |
18418 | |
18419 | *) |
18420 | ld_shlibs_GCJ=no |
18421 | ;; |
18422 | esac |
18423 | fi |
18424 | |
18425 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
18426 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
18427 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
18428 | |
18429 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
18430 | if test "$GCC" = yes; then |
18431 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
18432 | fi |
18433 | |
18434 | # |
18435 | # Do we need to explicitly link libc? |
18436 | # |
18437 | case "x$archive_cmds_need_lc_GCJ" in |
18438 | x|xyes) |
18439 | # Assume -lc should be added |
18440 | archive_cmds_need_lc_GCJ=yes |
18441 | |
18442 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
18443 | case $archive_cmds_GCJ in |
18444 | *'~'*) |
18445 | # FIXME: we may have to deal with multi-command sequences. |
18446 | ;; |
18447 | '$CC '*) |
18448 | # Test whether the compiler implicitly links with -lc since on some |
18449 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
18450 | # to ld, don't add -lc before -lgcc. |
18451 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
18452 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
18453 | $rm conftest* |
18454 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
18455 | |
18456 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18457 | (eval $ac_compile) 2>&5 |
18458 | ac_status=$? |
18459 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18460 | (exit $ac_status); } 2>conftest.err; then |
18461 | soname=conftest |
18462 | lib=conftest |
18463 | libobjs=conftest.$ac_objext |
18464 | deplibs= |
18465 | wl=$lt_prog_compiler_wl_GCJ |
18466 | compiler_flags=-v |
18467 | linker_flags=-v |
18468 | verstring= |
18469 | output_objdir=. |
18470 | libname=conftest |
18471 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
18472 | allow_undefined_flag_GCJ= |
18473 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
18474 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
18475 | ac_status=$? |
18476 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18477 | (exit $ac_status); } |
18478 | then |
18479 | archive_cmds_need_lc_GCJ=no |
18480 | else |
18481 | archive_cmds_need_lc_GCJ=yes |
18482 | fi |
18483 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
18484 | else |
18485 | cat conftest.err 1>&5 |
18486 | fi |
18487 | $rm conftest* |
18488 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
18489 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
18490 | ;; |
18491 | esac |
18492 | fi |
18493 | ;; |
18494 | esac |
18495 | |
18496 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
18497 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
18498 | library_names_spec= |
18499 | libname_spec='lib$name' |
18500 | soname_spec= |
18501 | shrext_cmds=".so" |
18502 | postinstall_cmds= |
18503 | postuninstall_cmds= |
18504 | finish_cmds= |
18505 | finish_eval= |
18506 | shlibpath_var= |
18507 | shlibpath_overrides_runpath=unknown |
18508 | version_type=none |
18509 | dynamic_linker="$host_os ld.so" |
18510 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
18511 | if test "$GCC" = yes; then |
18512 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
18513 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
18514 | # if the path contains ";" then we assume it to be the separator |
18515 | # otherwise default to the standard path separator (i.e. ":") - it is |
18516 | # assumed that no part of a normal pathname contains ";" but that should |
18517 | # okay in the real world where ";" in dirpaths is itself problematic. |
18518 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
18519 | else |
18520 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
18521 | fi |
18522 | else |
18523 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
18524 | fi |
18525 | need_lib_prefix=unknown |
18526 | hardcode_into_libs=no |
18527 | |
18528 | # when you set need_version to no, make sure it does not cause -set_version |
18529 | # flags to be left without arguments |
18530 | need_version=unknown |
18531 | |
18532 | case $host_os in |
18533 | aix3*) |
18534 | version_type=linux |
18535 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
18536 | shlibpath_var=LIBPATH |
18537 | |
18538 | # AIX 3 has no versioning support, so we append a major version to the name. |
18539 | soname_spec='${libname}${release}${shared_ext}$major' |
18540 | ;; |
18541 | |
18542 | aix4* | aix5*) |
18543 | version_type=linux |
18544 | need_lib_prefix=no |
18545 | need_version=no |
18546 | hardcode_into_libs=yes |
18547 | if test "$host_cpu" = ia64; then |
18548 | # AIX 5 supports IA64 |
18549 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
18550 | shlibpath_var=LD_LIBRARY_PATH |
18551 | else |
18552 | # With GCC up to 2.95.x, collect2 would create an import file |
18553 | # for dependence libraries. The import file would start with |
18554 | # the line `#! .'. This would cause the generated library to |
18555 | # depend on `.', always an invalid library. This was fixed in |
18556 | # development snapshots of GCC prior to 3.0. |
18557 | case $host_os in |
18558 | aix4 | aix4.[01] | aix4.[01].*) |
18559 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
18560 | echo ' yes ' |
18561 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
18562 | : |
18563 | else |
18564 | can_build_shared=no |
18565 | fi |
18566 | ;; |
18567 | esac |
18568 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
18569 | # soname into executable. Probably we can add versioning support to |
18570 | # collect2, so additional links can be useful in future. |
18571 | if test "$aix_use_runtimelinking" = yes; then |
18572 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
18573 | # instead of lib<name>.a to let people know that these are not |
18574 | # typical AIX shared libraries. |
18575 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18576 | else |
18577 | # We preserve .a as extension for shared libraries through AIX4.2 |
18578 | # and later when we are not doing run time linking. |
18579 | library_names_spec='${libname}${release}.a $libname.a' |
18580 | soname_spec='${libname}${release}${shared_ext}$major' |
18581 | fi |
18582 | shlibpath_var=LIBPATH |
18583 | fi |
18584 | ;; |
18585 | |
18586 | amigaos*) |
18587 | library_names_spec='$libname.ixlibrary $libname.a' |
18588 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
18589 | 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' |
18590 | ;; |
18591 | |
18592 | beos*) |
18593 | library_names_spec='${libname}${shared_ext}' |
18594 | dynamic_linker="$host_os ld.so" |
18595 | shlibpath_var=LIBRARY_PATH |
18596 | ;; |
18597 | |
18598 | bsdi[45]*) |
18599 | version_type=linux |
18600 | need_version=no |
18601 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18602 | soname_spec='${libname}${release}${shared_ext}$major' |
18603 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
18604 | shlibpath_var=LD_LIBRARY_PATH |
18605 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
18606 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
18607 | # the default ld.so.conf also contains /usr/contrib/lib and |
18608 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
18609 | # libtool to hard-code these into programs |
18610 | ;; |
18611 | |
18612 | cygwin* | mingw* | pw32*) |
18613 | version_type=windows |
18614 | shrext_cmds=".dll" |
18615 | need_version=no |
18616 | need_lib_prefix=no |
18617 | |
18618 | case $GCC,$host_os in |
18619 | yes,cygwin* | yes,mingw* | yes,pw32*) |
18620 | library_names_spec='$libname.dll.a' |
18621 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
18622 | postinstall_cmds='base_file=`basename \${file}`~ |
18623 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
18624 | dldir=$destdir/`dirname \$dlpath`~ |
18625 | test -d \$dldir || mkdir -p \$dldir~ |
18626 | $install_prog $dir/$dlname \$dldir/$dlname~ |
18627 | chmod a+x \$dldir/$dlname' |
18628 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
18629 | dlpath=$dir/\$dldll~ |
18630 | $rm \$dlpath' |
18631 | shlibpath_overrides_runpath=yes |
18632 | |
18633 | case $host_os in |
18634 | cygwin*) |
18635 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
18636 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18637 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
18638 | ;; |
18639 | mingw*) |
18640 | # MinGW DLLs use traditional 'lib' prefix |
18641 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18642 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
18643 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
18644 | # It is most probably a Windows format PATH printed by |
18645 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
18646 | # path with ; separators, and with drive letters. We can handle the |
18647 | # drive letters (cygwin fileutils understands them), so leave them, |
18648 | # especially as we might pass files found there to a mingw objdump, |
18649 | # which wouldn't understand a cygwinified path. Ahh. |
18650 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
18651 | else |
18652 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
18653 | fi |
18654 | ;; |
18655 | pw32*) |
18656 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
18657 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18658 | ;; |
18659 | esac |
18660 | ;; |
18661 | |
18662 | *) |
18663 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
18664 | ;; |
18665 | esac |
18666 | dynamic_linker='Win32 ld.exe' |
18667 | # FIXME: first we should search . and the directory the executable is in |
18668 | shlibpath_var=PATH |
18669 | ;; |
18670 | |
18671 | darwin* | rhapsody*) |
18672 | dynamic_linker="$host_os dyld" |
18673 | version_type=darwin |
18674 | need_lib_prefix=no |
18675 | need_version=no |
18676 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
18677 | soname_spec='${libname}${release}${major}$shared_ext' |
18678 | shlibpath_overrides_runpath=yes |
18679 | shlibpath_var=DYLD_LIBRARY_PATH |
18680 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
18681 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
18682 | if test "$GCC" = yes; then |
18683 | sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` |
18684 | else |
18685 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
18686 | fi |
18687 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
18688 | ;; |
18689 | |
18690 | dgux*) |
18691 | version_type=linux |
18692 | need_lib_prefix=no |
18693 | need_version=no |
18694 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
18695 | soname_spec='${libname}${release}${shared_ext}$major' |
18696 | shlibpath_var=LD_LIBRARY_PATH |
18697 | ;; |
18698 | |
18699 | freebsd1*) |
18700 | dynamic_linker=no |
18701 | ;; |
18702 | |
18703 | kfreebsd*-gnu) |
18704 | version_type=linux |
18705 | need_lib_prefix=no |
18706 | need_version=no |
18707 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18708 | soname_spec='${libname}${release}${shared_ext}$major' |
18709 | shlibpath_var=LD_LIBRARY_PATH |
18710 | shlibpath_overrides_runpath=no |
18711 | hardcode_into_libs=yes |
18712 | dynamic_linker='GNU ld.so' |
18713 | ;; |
18714 | |
18715 | freebsd* | dragonfly*) |
18716 | # DragonFly does not have aout. When/if they implement a new |
18717 | # versioning mechanism, adjust this. |
18718 | if test -x /usr/bin/objformat; then |
18719 | objformat=`/usr/bin/objformat` |
18720 | else |
18721 | case $host_os in |
18722 | freebsd[123]*) objformat=aout ;; |
18723 | *) objformat=elf ;; |
18724 | esac |
18725 | fi |
18726 | version_type=freebsd-$objformat |
18727 | case $version_type in |
18728 | freebsd-elf*) |
18729 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18730 | need_version=no |
18731 | need_lib_prefix=no |
18732 | ;; |
18733 | freebsd-*) |
18734 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
18735 | need_version=yes |
18736 | ;; |
18737 | esac |
18738 | shlibpath_var=LD_LIBRARY_PATH |
18739 | case $host_os in |
18740 | freebsd2*) |
18741 | shlibpath_overrides_runpath=yes |
18742 | ;; |
18743 | freebsd3.[01]* | freebsdelf3.[01]*) |
18744 | shlibpath_overrides_runpath=yes |
18745 | hardcode_into_libs=yes |
18746 | ;; |
18747 | *) # from 3.2 on |
18748 | shlibpath_overrides_runpath=no |
18749 | hardcode_into_libs=yes |
18750 | ;; |
18751 | esac |
18752 | ;; |
18753 | |
18754 | gnu*) |
18755 | version_type=linux |
18756 | need_lib_prefix=no |
18757 | need_version=no |
18758 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
18759 | soname_spec='${libname}${release}${shared_ext}$major' |
18760 | shlibpath_var=LD_LIBRARY_PATH |
18761 | hardcode_into_libs=yes |
18762 | ;; |
18763 | |
18764 | hpux9* | hpux10* | hpux11*) |
18765 | # Give a soname corresponding to the major version so that dld.sl refuses to |
18766 | # link against other versions. |
18767 | version_type=sunos |
18768 | need_lib_prefix=no |
18769 | need_version=no |
18770 | case $host_cpu in |
18771 | ia64*) |
18772 | shrext_cmds='.so' |
18773 | hardcode_into_libs=yes |
18774 | dynamic_linker="$host_os dld.so" |
18775 | shlibpath_var=LD_LIBRARY_PATH |
18776 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18777 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18778 | soname_spec='${libname}${release}${shared_ext}$major' |
18779 | if test "X$HPUX_IA64_MODE" = X32; then |
18780 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
18781 | else |
18782 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
18783 | fi |
18784 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18785 | ;; |
18786 | hppa*64*) |
18787 | shrext_cmds='.sl' |
18788 | hardcode_into_libs=yes |
18789 | dynamic_linker="$host_os dld.sl" |
18790 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
18791 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18792 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18793 | soname_spec='${libname}${release}${shared_ext}$major' |
18794 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
18795 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18796 | ;; |
18797 | *) |
18798 | shrext_cmds='.sl' |
18799 | dynamic_linker="$host_os dld.sl" |
18800 | shlibpath_var=SHLIB_PATH |
18801 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
18802 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18803 | soname_spec='${libname}${release}${shared_ext}$major' |
18804 | ;; |
18805 | esac |
18806 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
18807 | postinstall_cmds='chmod 555 $lib' |
18808 | ;; |
18809 | |
18810 | irix5* | irix6* | nonstopux*) |
18811 | case $host_os in |
18812 | nonstopux*) version_type=nonstopux ;; |
18813 | *) |
18814 | if test "$lt_cv_prog_gnu_ld" = yes; then |
18815 | version_type=linux |
18816 | else |
18817 | version_type=irix |
18818 | fi ;; |
18819 | esac |
18820 | need_lib_prefix=no |
18821 | need_version=no |
18822 | soname_spec='${libname}${release}${shared_ext}$major' |
18823 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
18824 | case $host_os in |
18825 | irix5* | nonstopux*) |
18826 | libsuff= shlibsuff= |
18827 | ;; |
18828 | *) |
18829 | case $LD in # libtool.m4 will add one of these switches to LD |
18830 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
18831 | libsuff= shlibsuff= libmagic=32-bit;; |
18832 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
18833 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
18834 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
18835 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
18836 | *) libsuff= shlibsuff= libmagic=never-match;; |
18837 | esac |
18838 | ;; |
18839 | esac |
18840 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
18841 | shlibpath_overrides_runpath=no |
18842 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
18843 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
18844 | hardcode_into_libs=yes |
18845 | ;; |
18846 | |
18847 | # No shared lib support for Linux oldld, aout, or coff. |
18848 | linux*oldld* | linux*aout* | linux*coff*) |
18849 | dynamic_linker=no |
18850 | ;; |
18851 | |
18852 | # This must be Linux ELF. |
18853 | linux*) |
18854 | version_type=linux |
18855 | need_lib_prefix=no |
18856 | need_version=no |
18857 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18858 | soname_spec='${libname}${release}${shared_ext}$major' |
18859 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
18860 | shlibpath_var=LD_LIBRARY_PATH |
18861 | shlibpath_overrides_runpath=no |
18862 | # This implies no fast_install, which is unacceptable. |
18863 | # Some rework will be needed to allow for fast_install |
18864 | # before this can be enabled. |
18865 | hardcode_into_libs=yes |
18866 | |
18867 | # Append ld.so.conf contents to the search path |
18868 | if test -f /etc/ld.so.conf; then |
18869 | lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` |
18870 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
18871 | fi |
18872 | |
18873 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
18874 | # powerpc, because MkLinux only supported shared libraries with the |
18875 | # GNU dynamic linker. Since this was broken with cross compilers, |
18876 | # most powerpc-linux boxes support dynamic linking these days and |
18877 | # people can always --disable-shared, the test was removed, and we |
18878 | # assume the GNU/Linux dynamic linker is in use. |
18879 | dynamic_linker='GNU/Linux ld.so' |
18880 | ;; |
18881 | |
18882 | knetbsd*-gnu) |
18883 | version_type=linux |
18884 | need_lib_prefix=no |
18885 | need_version=no |
18886 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18887 | soname_spec='${libname}${release}${shared_ext}$major' |
18888 | shlibpath_var=LD_LIBRARY_PATH |
18889 | shlibpath_overrides_runpath=no |
18890 | hardcode_into_libs=yes |
18891 | dynamic_linker='GNU ld.so' |
18892 | ;; |
18893 | |
18894 | netbsd*) |
18895 | version_type=sunos |
18896 | need_lib_prefix=no |
18897 | need_version=no |
18898 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
18899 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18900 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18901 | dynamic_linker='NetBSD (a.out) ld.so' |
18902 | else |
18903 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18904 | soname_spec='${libname}${release}${shared_ext}$major' |
18905 | dynamic_linker='NetBSD ld.elf_so' |
18906 | fi |
18907 | shlibpath_var=LD_LIBRARY_PATH |
18908 | shlibpath_overrides_runpath=yes |
18909 | hardcode_into_libs=yes |
18910 | ;; |
18911 | |
18912 | newsos6) |
18913 | version_type=linux |
18914 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18915 | shlibpath_var=LD_LIBRARY_PATH |
18916 | shlibpath_overrides_runpath=yes |
18917 | ;; |
18918 | |
18919 | nto-qnx*) |
18920 | version_type=linux |
18921 | need_lib_prefix=no |
18922 | need_version=no |
18923 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18924 | soname_spec='${libname}${release}${shared_ext}$major' |
18925 | shlibpath_var=LD_LIBRARY_PATH |
18926 | shlibpath_overrides_runpath=yes |
18927 | ;; |
18928 | |
18929 | openbsd*) |
18930 | version_type=sunos |
18931 | need_lib_prefix=no |
18932 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
18933 | case $host_os in |
18934 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
18935 | *) need_version=no ;; |
18936 | esac |
18937 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18938 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18939 | shlibpath_var=LD_LIBRARY_PATH |
18940 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
18941 | case $host_os in |
18942 | openbsd2.[89] | openbsd2.[89].*) |
18943 | shlibpath_overrides_runpath=no |
18944 | ;; |
18945 | *) |
18946 | shlibpath_overrides_runpath=yes |
18947 | ;; |
18948 | esac |
18949 | else |
18950 | shlibpath_overrides_runpath=yes |
18951 | fi |
18952 | ;; |
18953 | |
18954 | os2*) |
18955 | libname_spec='$name' |
18956 | shrext_cmds=".dll" |
18957 | need_lib_prefix=no |
18958 | library_names_spec='$libname${shared_ext} $libname.a' |
18959 | dynamic_linker='OS/2 ld.exe' |
18960 | shlibpath_var=LIBPATH |
18961 | ;; |
18962 | |
18963 | osf3* | osf4* | osf5*) |
18964 | version_type=osf |
18965 | need_lib_prefix=no |
18966 | need_version=no |
18967 | soname_spec='${libname}${release}${shared_ext}$major' |
18968 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18969 | shlibpath_var=LD_LIBRARY_PATH |
18970 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
18971 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
18972 | ;; |
18973 | |
18974 | sco3.2v5*) |
18975 | version_type=osf |
18976 | soname_spec='${libname}${release}${shared_ext}$major' |
18977 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18978 | shlibpath_var=LD_LIBRARY_PATH |
18979 | ;; |
18980 | |
18981 | solaris*) |
18982 | version_type=linux |
18983 | need_lib_prefix=no |
18984 | need_version=no |
18985 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18986 | soname_spec='${libname}${release}${shared_ext}$major' |
18987 | shlibpath_var=LD_LIBRARY_PATH |
18988 | shlibpath_overrides_runpath=yes |
18989 | hardcode_into_libs=yes |
18990 | # ldd complains unless libraries are executable |
18991 | postinstall_cmds='chmod +x $lib' |
18992 | ;; |
18993 | |
18994 | sunos4*) |
18995 | version_type=sunos |
18996 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18997 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
18998 | shlibpath_var=LD_LIBRARY_PATH |
18999 | shlibpath_overrides_runpath=yes |
19000 | if test "$with_gnu_ld" = yes; then |
19001 | need_lib_prefix=no |
19002 | fi |
19003 | need_version=yes |
19004 | ;; |
19005 | |
19006 | sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) |
19007 | version_type=linux |
19008 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
19009 | soname_spec='${libname}${release}${shared_ext}$major' |
19010 | shlibpath_var=LD_LIBRARY_PATH |
19011 | case $host_vendor in |
19012 | sni) |
19013 | shlibpath_overrides_runpath=no |
19014 | need_lib_prefix=no |
19015 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
19016 | runpath_var=LD_RUN_PATH |
19017 | ;; |
19018 | siemens) |
19019 | need_lib_prefix=no |
19020 | ;; |
19021 | motorola) |
19022 | need_lib_prefix=no |
19023 | need_version=no |
19024 | shlibpath_overrides_runpath=no |
19025 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
19026 | ;; |
19027 | esac |
19028 | ;; |
19029 | |
19030 | sysv4*MP*) |
19031 | if test -d /usr/nec ;then |
19032 | version_type=linux |
19033 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
19034 | soname_spec='$libname${shared_ext}.$major' |
19035 | shlibpath_var=LD_LIBRARY_PATH |
19036 | fi |
19037 | ;; |
19038 | |
19039 | uts4*) |
19040 | version_type=linux |
19041 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
19042 | soname_spec='${libname}${release}${shared_ext}$major' |
19043 | shlibpath_var=LD_LIBRARY_PATH |
19044 | ;; |
19045 | |
19046 | *) |
19047 | dynamic_linker=no |
19048 | ;; |
19049 | esac |
19050 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
19051 | echo "${ECHO_T}$dynamic_linker" >&6; } |
19052 | test "$dynamic_linker" = no && can_build_shared=no |
19053 | |
19054 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
19055 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
19056 | hardcode_action_GCJ= |
19057 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
19058 | test -n "$runpath_var_GCJ" || \ |
19059 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
19060 | |
19061 | # We can hardcode non-existant directories. |
19062 | if test "$hardcode_direct_GCJ" != no && |
19063 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
19064 | # have to relink, otherwise we might link with an installed library |
19065 | # when we should be linking with a yet-to-be-installed one |
19066 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
19067 | test "$hardcode_minus_L_GCJ" != no; then |
19068 | # Linking always hardcodes the temporary library directory. |
19069 | hardcode_action_GCJ=relink |
19070 | else |
19071 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
19072 | hardcode_action_GCJ=immediate |
19073 | fi |
19074 | else |
19075 | # We cannot hardcode anything, or else we can only hardcode existing |
19076 | # directories. |
19077 | hardcode_action_GCJ=unsupported |
19078 | fi |
19079 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
19080 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
19081 | |
19082 | if test "$hardcode_action_GCJ" = relink; then |
19083 | # Fast installation is not supported |
19084 | enable_fast_install=no |
19085 | elif test "$shlibpath_overrides_runpath" = yes || |
19086 | test "$enable_shared" = no; then |
19087 | # Fast installation is not necessary |
19088 | enable_fast_install=needless |
19089 | fi |
19090 | |
19091 | striplib= |
19092 | old_striplib= |
19093 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
19094 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
19095 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
19096 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
19097 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
19098 | { echo "$as_me:$LINENO: result: yes" >&5 |
19099 | echo "${ECHO_T}yes" >&6; } |
19100 | else |
19101 | # FIXME - insert some real tests, host_os isn't really good enough |
19102 | case $host_os in |
19103 | darwin*) |
19104 | if test -n "$STRIP" ; then |
19105 | striplib="$STRIP -x" |
19106 | { echo "$as_me:$LINENO: result: yes" >&5 |
19107 | echo "${ECHO_T}yes" >&6; } |
19108 | else |
19109 | { echo "$as_me:$LINENO: result: no" >&5 |
19110 | echo "${ECHO_T}no" >&6; } |
19111 | fi |
19112 | ;; |
19113 | *) |
19114 | { echo "$as_me:$LINENO: result: no" >&5 |
19115 | echo "${ECHO_T}no" >&6; } |
19116 | ;; |
19117 | esac |
19118 | fi |
19119 | |
19120 | if test "x$enable_dlopen" != xyes; then |
19121 | enable_dlopen=unknown |
19122 | enable_dlopen_self=unknown |
19123 | enable_dlopen_self_static=unknown |
19124 | else |
19125 | lt_cv_dlopen=no |
19126 | lt_cv_dlopen_libs= |
19127 | |
19128 | case $host_os in |
19129 | beos*) |
19130 | lt_cv_dlopen="load_add_on" |
19131 | lt_cv_dlopen_libs= |
19132 | lt_cv_dlopen_self=yes |
19133 | ;; |
19134 | |
19135 | mingw* | pw32*) |
19136 | lt_cv_dlopen="LoadLibrary" |
19137 | lt_cv_dlopen_libs= |
19138 | ;; |
19139 | |
19140 | cygwin*) |
19141 | lt_cv_dlopen="dlopen" |
19142 | lt_cv_dlopen_libs= |
19143 | ;; |
19144 | |
19145 | darwin*) |
19146 | # if libdl is installed we need to link against it |
19147 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
19148 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
19149 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
19150 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19151 | else |
19152 | ac_check_lib_save_LIBS=$LIBS |
19153 | LIBS="-ldl $LIBS" |
19154 | cat >conftest.$ac_ext <<_ACEOF |
19155 | /* confdefs.h. */ |
19156 | _ACEOF |
19157 | cat confdefs.h >>conftest.$ac_ext |
19158 | cat >>conftest.$ac_ext <<_ACEOF |
19159 | /* end confdefs.h. */ |
19160 | |
19161 | /* Override any GCC internal prototype to avoid an error. |
19162 | Use char because int might match the return type of a GCC |
19163 | builtin and then its argument prototype would still apply. */ |
19164 | #ifdef __cplusplus |
19165 | extern "C" |
19166 | #endif |
19167 | char dlopen (); |
19168 | int |
19169 | main () |
19170 | { |
19171 | return dlopen (); |
19172 | ; |
19173 | return 0; |
19174 | } |
19175 | _ACEOF |
19176 | rm -f conftest.$ac_objext conftest$ac_exeext |
19177 | if { (ac_try="$ac_link" |
19178 | case "(($ac_try" in |
19179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19180 | *) ac_try_echo=$ac_try;; |
19181 | esac |
19182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19183 | (eval "$ac_link") 2>conftest.er1 |
19184 | ac_status=$? |
19185 | grep -v '^ *+' conftest.er1 >conftest.err |
19186 | rm -f conftest.er1 |
19187 | cat conftest.err >&5 |
19188 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19189 | (exit $ac_status); } && { |
19190 | test -z "$ac_c_werror_flag" || |
19191 | test ! -s conftest.err |
19192 | } && test -s conftest$ac_exeext && |
19193 | $as_test_x conftest$ac_exeext; then |
19194 | ac_cv_lib_dl_dlopen=yes |
19195 | else |
19196 | echo "$as_me: failed program was:" >&5 |
19197 | sed 's/^/| /' conftest.$ac_ext >&5 |
19198 | |
19199 | ac_cv_lib_dl_dlopen=no |
19200 | fi |
19201 | |
19202 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
19203 | conftest$ac_exeext conftest.$ac_ext |
19204 | LIBS=$ac_check_lib_save_LIBS |
19205 | fi |
19206 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
19207 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
19208 | if test $ac_cv_lib_dl_dlopen = yes; then |
19209 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
19210 | else |
19211 | |
19212 | lt_cv_dlopen="dyld" |
19213 | lt_cv_dlopen_libs= |
19214 | lt_cv_dlopen_self=yes |
19215 | |
19216 | fi |
19217 | |
19218 | ;; |
19219 | |
19220 | *) |
19221 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
19222 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
19223 | if test "${ac_cv_func_shl_load+set}" = set; then |
19224 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19225 | else |
19226 | cat >conftest.$ac_ext <<_ACEOF |
19227 | /* confdefs.h. */ |
19228 | _ACEOF |
19229 | cat confdefs.h >>conftest.$ac_ext |
19230 | cat >>conftest.$ac_ext <<_ACEOF |
19231 | /* end confdefs.h. */ |
19232 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
19233 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
19234 | #define shl_load innocuous_shl_load |
19235 | |
19236 | /* System header to define __stub macros and hopefully few prototypes, |
19237 | which can conflict with char shl_load (); below. |
19238 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
19239 | <limits.h> exists even on freestanding compilers. */ |
19240 | |
19241 | #ifdef __STDC__ |
19242 | # include <limits.h> |
19243 | #else |
19244 | # include <assert.h> |
19245 | #endif |
19246 | |
19247 | #undef shl_load |
19248 | |
19249 | /* Override any GCC internal prototype to avoid an error. |
19250 | Use char because int might match the return type of a GCC |
19251 | builtin and then its argument prototype would still apply. */ |
19252 | #ifdef __cplusplus |
19253 | extern "C" |
19254 | #endif |
19255 | char shl_load (); |
19256 | /* The GNU C library defines this for functions which it implements |
19257 | to always fail with ENOSYS. Some functions are actually named |
19258 | something starting with __ and the normal name is an alias. */ |
19259 | #if defined __stub_shl_load || defined __stub___shl_load |
19260 | choke me |
19261 | #endif |
19262 | |
19263 | int |
19264 | main () |
19265 | { |
19266 | return shl_load (); |
19267 | ; |
19268 | return 0; |
19269 | } |
19270 | _ACEOF |
19271 | rm -f conftest.$ac_objext conftest$ac_exeext |
19272 | if { (ac_try="$ac_link" |
19273 | case "(($ac_try" in |
19274 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19275 | *) ac_try_echo=$ac_try;; |
19276 | esac |
19277 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19278 | (eval "$ac_link") 2>conftest.er1 |
19279 | ac_status=$? |
19280 | grep -v '^ *+' conftest.er1 >conftest.err |
19281 | rm -f conftest.er1 |
19282 | cat conftest.err >&5 |
19283 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19284 | (exit $ac_status); } && { |
19285 | test -z "$ac_c_werror_flag" || |
19286 | test ! -s conftest.err |
19287 | } && test -s conftest$ac_exeext && |
19288 | $as_test_x conftest$ac_exeext; then |
19289 | ac_cv_func_shl_load=yes |
19290 | else |
19291 | echo "$as_me: failed program was:" >&5 |
19292 | sed 's/^/| /' conftest.$ac_ext >&5 |
19293 | |
19294 | ac_cv_func_shl_load=no |
19295 | fi |
19296 | |
19297 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
19298 | conftest$ac_exeext conftest.$ac_ext |
19299 | fi |
19300 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
19301 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
19302 | if test $ac_cv_func_shl_load = yes; then |
19303 | lt_cv_dlopen="shl_load" |
19304 | else |
19305 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
19306 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
19307 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
19308 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19309 | else |
19310 | ac_check_lib_save_LIBS=$LIBS |
19311 | LIBS="-ldld $LIBS" |
19312 | cat >conftest.$ac_ext <<_ACEOF |
19313 | /* confdefs.h. */ |
19314 | _ACEOF |
19315 | cat confdefs.h >>conftest.$ac_ext |
19316 | cat >>conftest.$ac_ext <<_ACEOF |
19317 | /* end confdefs.h. */ |
19318 | |
19319 | /* Override any GCC internal prototype to avoid an error. |
19320 | Use char because int might match the return type of a GCC |
19321 | builtin and then its argument prototype would still apply. */ |
19322 | #ifdef __cplusplus |
19323 | extern "C" |
19324 | #endif |
19325 | char shl_load (); |
19326 | int |
19327 | main () |
19328 | { |
19329 | return shl_load (); |
19330 | ; |
19331 | return 0; |
19332 | } |
19333 | _ACEOF |
19334 | rm -f conftest.$ac_objext conftest$ac_exeext |
19335 | if { (ac_try="$ac_link" |
19336 | case "(($ac_try" in |
19337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19338 | *) ac_try_echo=$ac_try;; |
19339 | esac |
19340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19341 | (eval "$ac_link") 2>conftest.er1 |
19342 | ac_status=$? |
19343 | grep -v '^ *+' conftest.er1 >conftest.err |
19344 | rm -f conftest.er1 |
19345 | cat conftest.err >&5 |
19346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19347 | (exit $ac_status); } && { |
19348 | test -z "$ac_c_werror_flag" || |
19349 | test ! -s conftest.err |
19350 | } && test -s conftest$ac_exeext && |
19351 | $as_test_x conftest$ac_exeext; then |
19352 | ac_cv_lib_dld_shl_load=yes |
19353 | else |
19354 | echo "$as_me: failed program was:" >&5 |
19355 | sed 's/^/| /' conftest.$ac_ext >&5 |
19356 | |
19357 | ac_cv_lib_dld_shl_load=no |
19358 | fi |
19359 | |
19360 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
19361 | conftest$ac_exeext conftest.$ac_ext |
19362 | LIBS=$ac_check_lib_save_LIBS |
19363 | fi |
19364 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
19365 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
19366 | if test $ac_cv_lib_dld_shl_load = yes; then |
19367 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
19368 | else |
19369 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
19370 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
19371 | if test "${ac_cv_func_dlopen+set}" = set; then |
19372 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19373 | else |
19374 | cat >conftest.$ac_ext <<_ACEOF |
19375 | /* confdefs.h. */ |
19376 | _ACEOF |
19377 | cat confdefs.h >>conftest.$ac_ext |
19378 | cat >>conftest.$ac_ext <<_ACEOF |
19379 | /* end confdefs.h. */ |
19380 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
19381 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
19382 | #define dlopen innocuous_dlopen |
19383 | |
19384 | /* System header to define __stub macros and hopefully few prototypes, |
19385 | which can conflict with char dlopen (); below. |
19386 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
19387 | <limits.h> exists even on freestanding compilers. */ |
19388 | |
19389 | #ifdef __STDC__ |
19390 | # include <limits.h> |
19391 | #else |
19392 | # include <assert.h> |
19393 | #endif |
19394 | |
19395 | #undef dlopen |
19396 | |
19397 | /* Override any GCC internal prototype to avoid an error. |
19398 | Use char because int might match the return type of a GCC |
19399 | builtin and then its argument prototype would still apply. */ |
19400 | #ifdef __cplusplus |
19401 | extern "C" |
19402 | #endif |
19403 | char dlopen (); |
19404 | /* The GNU C library defines this for functions which it implements |
19405 | to always fail with ENOSYS. Some functions are actually named |
19406 | something starting with __ and the normal name is an alias. */ |
19407 | #if defined __stub_dlopen || defined __stub___dlopen |
19408 | choke me |
19409 | #endif |
19410 | |
19411 | int |
19412 | main () |
19413 | { |
19414 | return dlopen (); |
19415 | ; |
19416 | return 0; |
19417 | } |
19418 | _ACEOF |
19419 | rm -f conftest.$ac_objext conftest$ac_exeext |
19420 | if { (ac_try="$ac_link" |
19421 | case "(($ac_try" in |
19422 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19423 | *) ac_try_echo=$ac_try;; |
19424 | esac |
19425 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19426 | (eval "$ac_link") 2>conftest.er1 |
19427 | ac_status=$? |
19428 | grep -v '^ *+' conftest.er1 >conftest.err |
19429 | rm -f conftest.er1 |
19430 | cat conftest.err >&5 |
19431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19432 | (exit $ac_status); } && { |
19433 | test -z "$ac_c_werror_flag" || |
19434 | test ! -s conftest.err |
19435 | } && test -s conftest$ac_exeext && |
19436 | $as_test_x conftest$ac_exeext; then |
19437 | ac_cv_func_dlopen=yes |
19438 | else |
19439 | echo "$as_me: failed program was:" >&5 |
19440 | sed 's/^/| /' conftest.$ac_ext >&5 |
19441 | |
19442 | ac_cv_func_dlopen=no |
19443 | fi |
19444 | |
19445 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
19446 | conftest$ac_exeext conftest.$ac_ext |
19447 | fi |
19448 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
19449 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
19450 | if test $ac_cv_func_dlopen = yes; then |
19451 | lt_cv_dlopen="dlopen" |
19452 | else |
19453 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
19454 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
19455 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
19456 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19457 | else |
19458 | ac_check_lib_save_LIBS=$LIBS |
19459 | LIBS="-ldl $LIBS" |
19460 | cat >conftest.$ac_ext <<_ACEOF |
19461 | /* confdefs.h. */ |
19462 | _ACEOF |
19463 | cat confdefs.h >>conftest.$ac_ext |
19464 | cat >>conftest.$ac_ext <<_ACEOF |
19465 | /* end confdefs.h. */ |
19466 | |
19467 | /* Override any GCC internal prototype to avoid an error. |
19468 | Use char because int might match the return type of a GCC |
19469 | builtin and then its argument prototype would still apply. */ |
19470 | #ifdef __cplusplus |
19471 | extern "C" |
19472 | #endif |
19473 | char dlopen (); |
19474 | int |
19475 | main () |
19476 | { |
19477 | return dlopen (); |
19478 | ; |
19479 | return 0; |
19480 | } |
19481 | _ACEOF |
19482 | rm -f conftest.$ac_objext conftest$ac_exeext |
19483 | if { (ac_try="$ac_link" |
19484 | case "(($ac_try" in |
19485 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19486 | *) ac_try_echo=$ac_try;; |
19487 | esac |
19488 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19489 | (eval "$ac_link") 2>conftest.er1 |
19490 | ac_status=$? |
19491 | grep -v '^ *+' conftest.er1 >conftest.err |
19492 | rm -f conftest.er1 |
19493 | cat conftest.err >&5 |
19494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19495 | (exit $ac_status); } && { |
19496 | test -z "$ac_c_werror_flag" || |
19497 | test ! -s conftest.err |
19498 | } && test -s conftest$ac_exeext && |
19499 | $as_test_x conftest$ac_exeext; then |
19500 | ac_cv_lib_dl_dlopen=yes |
19501 | else |
19502 | echo "$as_me: failed program was:" >&5 |
19503 | sed 's/^/| /' conftest.$ac_ext >&5 |
19504 | |
19505 | ac_cv_lib_dl_dlopen=no |
19506 | fi |
19507 | |
19508 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
19509 | conftest$ac_exeext conftest.$ac_ext |
19510 | LIBS=$ac_check_lib_save_LIBS |
19511 | fi |
19512 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
19513 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
19514 | if test $ac_cv_lib_dl_dlopen = yes; then |
19515 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
19516 | else |
19517 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
19518 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
19519 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
19520 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19521 | else |
19522 | ac_check_lib_save_LIBS=$LIBS |
19523 | LIBS="-lsvld $LIBS" |
19524 | cat >conftest.$ac_ext <<_ACEOF |
19525 | /* confdefs.h. */ |
19526 | _ACEOF |
19527 | cat confdefs.h >>conftest.$ac_ext |
19528 | cat >>conftest.$ac_ext <<_ACEOF |
19529 | /* end confdefs.h. */ |
19530 | |
19531 | /* Override any GCC internal prototype to avoid an error. |
19532 | Use char because int might match the return type of a GCC |
19533 | builtin and then its argument prototype would still apply. */ |
19534 | #ifdef __cplusplus |
19535 | extern "C" |
19536 | #endif |
19537 | char dlopen (); |
19538 | int |
19539 | main () |
19540 | { |
19541 | return dlopen (); |
19542 | ; |
19543 | return 0; |
19544 | } |
19545 | _ACEOF |
19546 | rm -f conftest.$ac_objext conftest$ac_exeext |
19547 | if { (ac_try="$ac_link" |
19548 | case "(($ac_try" in |
19549 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19550 | *) ac_try_echo=$ac_try;; |
19551 | esac |
19552 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19553 | (eval "$ac_link") 2>conftest.er1 |
19554 | ac_status=$? |
19555 | grep -v '^ *+' conftest.er1 >conftest.err |
19556 | rm -f conftest.er1 |
19557 | cat conftest.err >&5 |
19558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19559 | (exit $ac_status); } && { |
19560 | test -z "$ac_c_werror_flag" || |
19561 | test ! -s conftest.err |
19562 | } && test -s conftest$ac_exeext && |
19563 | $as_test_x conftest$ac_exeext; then |
19564 | ac_cv_lib_svld_dlopen=yes |
19565 | else |
19566 | echo "$as_me: failed program was:" >&5 |
19567 | sed 's/^/| /' conftest.$ac_ext >&5 |
19568 | |
19569 | ac_cv_lib_svld_dlopen=no |
19570 | fi |
19571 | |
19572 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
19573 | conftest$ac_exeext conftest.$ac_ext |
19574 | LIBS=$ac_check_lib_save_LIBS |
19575 | fi |
19576 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
19577 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
19578 | if test $ac_cv_lib_svld_dlopen = yes; then |
19579 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
19580 | else |
19581 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
19582 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
19583 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
19584 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19585 | else |
19586 | ac_check_lib_save_LIBS=$LIBS |
19587 | LIBS="-ldld $LIBS" |
19588 | cat >conftest.$ac_ext <<_ACEOF |
19589 | /* confdefs.h. */ |
19590 | _ACEOF |
19591 | cat confdefs.h >>conftest.$ac_ext |
19592 | cat >>conftest.$ac_ext <<_ACEOF |
19593 | /* end confdefs.h. */ |
19594 | |
19595 | /* Override any GCC internal prototype to avoid an error. |
19596 | Use char because int might match the return type of a GCC |
19597 | builtin and then its argument prototype would still apply. */ |
19598 | #ifdef __cplusplus |
19599 | extern "C" |
19600 | #endif |
19601 | char dld_link (); |
19602 | int |
19603 | main () |
19604 | { |
19605 | return dld_link (); |
19606 | ; |
19607 | return 0; |
19608 | } |
19609 | _ACEOF |
19610 | rm -f conftest.$ac_objext conftest$ac_exeext |
19611 | if { (ac_try="$ac_link" |
19612 | case "(($ac_try" in |
19613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19614 | *) ac_try_echo=$ac_try;; |
19615 | esac |
19616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19617 | (eval "$ac_link") 2>conftest.er1 |
19618 | ac_status=$? |
19619 | grep -v '^ *+' conftest.er1 >conftest.err |
19620 | rm -f conftest.er1 |
19621 | cat conftest.err >&5 |
19622 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19623 | (exit $ac_status); } && { |
19624 | test -z "$ac_c_werror_flag" || |
19625 | test ! -s conftest.err |
19626 | } && test -s conftest$ac_exeext && |
19627 | $as_test_x conftest$ac_exeext; then |
19628 | ac_cv_lib_dld_dld_link=yes |
19629 | else |
19630 | echo "$as_me: failed program was:" >&5 |
19631 | sed 's/^/| /' conftest.$ac_ext >&5 |
19632 | |
19633 | ac_cv_lib_dld_dld_link=no |
19634 | fi |
19635 | |
19636 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
19637 | conftest$ac_exeext conftest.$ac_ext |
19638 | LIBS=$ac_check_lib_save_LIBS |
19639 | fi |
19640 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
19641 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
19642 | if test $ac_cv_lib_dld_dld_link = yes; then |
19643 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
19644 | fi |
19645 | |
19646 | |
19647 | fi |
19648 | |
19649 | |
19650 | fi |
19651 | |
19652 | |
19653 | fi |
19654 | |
19655 | |
19656 | fi |
19657 | |
19658 | |
19659 | fi |
19660 | |
19661 | ;; |
19662 | esac |
19663 | |
19664 | if test "x$lt_cv_dlopen" != xno; then |
19665 | enable_dlopen=yes |
19666 | else |
19667 | enable_dlopen=no |
19668 | fi |
19669 | |
19670 | case $lt_cv_dlopen in |
19671 | dlopen) |
19672 | save_CPPFLAGS="$CPPFLAGS" |
19673 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
19674 | |
19675 | save_LDFLAGS="$LDFLAGS" |
19676 | eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
19677 | |
19678 | save_LIBS="$LIBS" |
19679 | LIBS="$lt_cv_dlopen_libs $LIBS" |
19680 | |
19681 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
19682 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
19683 | if test "${lt_cv_dlopen_self+set}" = set; then |
19684 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19685 | else |
19686 | if test "$cross_compiling" = yes; then : |
19687 | lt_cv_dlopen_self=cross |
19688 | else |
19689 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
19690 | lt_status=$lt_dlunknown |
19691 | cat > conftest.$ac_ext <<EOF |
19692 | #line 19692 "configure" |
19693 | #include "confdefs.h" |
19694 | |
19695 | #if HAVE_DLFCN_H |
19696 | #include <dlfcn.h> |
19697 | #endif |
19698 | |
19699 | #include <stdio.h> |
19700 | |
19701 | #ifdef RTLD_GLOBAL |
19702 | # define LT_DLGLOBAL RTLD_GLOBAL |
19703 | #else |
19704 | # ifdef DL_GLOBAL |
19705 | # define LT_DLGLOBAL DL_GLOBAL |
19706 | # else |
19707 | # define LT_DLGLOBAL 0 |
19708 | # endif |
19709 | #endif |
19710 | |
19711 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
19712 | find out it does not work in some platform. */ |
19713 | #ifndef LT_DLLAZY_OR_NOW |
19714 | # ifdef RTLD_LAZY |
19715 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
19716 | # else |
19717 | # ifdef DL_LAZY |
19718 | # define LT_DLLAZY_OR_NOW DL_LAZY |
19719 | # else |
19720 | # ifdef RTLD_NOW |
19721 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
19722 | # else |
19723 | # ifdef DL_NOW |
19724 | # define LT_DLLAZY_OR_NOW DL_NOW |
19725 | # else |
19726 | # define LT_DLLAZY_OR_NOW 0 |
19727 | # endif |
19728 | # endif |
19729 | # endif |
19730 | # endif |
19731 | #endif |
19732 | |
19733 | #ifdef __cplusplus |
19734 | extern "C" void exit (int); |
19735 | #endif |
19736 | |
19737 | void fnord() { int i=42;} |
19738 | int main () |
19739 | { |
19740 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
19741 | int status = $lt_dlunknown; |
19742 | |
19743 | if (self) |
19744 | { |
19745 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
19746 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
19747 | /* dlclose (self); */ |
19748 | } |
19749 | |
19750 | exit (status); |
19751 | } |
19752 | EOF |
19753 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19754 | (eval $ac_link) 2>&5 |
19755 | ac_status=$? |
19756 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19757 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
19758 | (./conftest; exit; ) >&5 2>/dev/null |
19759 | lt_status=$? |
19760 | case x$lt_status in |
19761 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
19762 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
19763 | x$lt_unknown|x*) lt_cv_dlopen_self=no ;; |
19764 | esac |
19765 | else : |
19766 | # compilation failed |
19767 | lt_cv_dlopen_self=no |
19768 | fi |
19769 | fi |
19770 | rm -fr conftest* |
19771 | |
19772 | |
19773 | fi |
19774 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
19775 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
19776 | |
19777 | if test "x$lt_cv_dlopen_self" = xyes; then |
19778 | LDFLAGS="$LDFLAGS $link_static_flag" |
19779 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
19780 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
19781 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
19782 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19783 | else |
19784 | if test "$cross_compiling" = yes; then : |
19785 | lt_cv_dlopen_self_static=cross |
19786 | else |
19787 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
19788 | lt_status=$lt_dlunknown |
19789 | cat > conftest.$ac_ext <<EOF |
19790 | #line 19790 "configure" |
19791 | #include "confdefs.h" |
19792 | |
19793 | #if HAVE_DLFCN_H |
19794 | #include <dlfcn.h> |
19795 | #endif |
19796 | |
19797 | #include <stdio.h> |
19798 | |
19799 | #ifdef RTLD_GLOBAL |
19800 | # define LT_DLGLOBAL RTLD_GLOBAL |
19801 | #else |
19802 | # ifdef DL_GLOBAL |
19803 | # define LT_DLGLOBAL DL_GLOBAL |
19804 | # else |
19805 | # define LT_DLGLOBAL 0 |
19806 | # endif |
19807 | #endif |
19808 | |
19809 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
19810 | find out it does not work in some platform. */ |
19811 | #ifndef LT_DLLAZY_OR_NOW |
19812 | # ifdef RTLD_LAZY |
19813 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
19814 | # else |
19815 | # ifdef DL_LAZY |
19816 | # define LT_DLLAZY_OR_NOW DL_LAZY |
19817 | # else |
19818 | # ifdef RTLD_NOW |
19819 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
19820 | # else |
19821 | # ifdef DL_NOW |
19822 | # define LT_DLLAZY_OR_NOW DL_NOW |
19823 | # else |
19824 | # define LT_DLLAZY_OR_NOW 0 |
19825 | # endif |
19826 | # endif |
19827 | # endif |
19828 | # endif |
19829 | #endif |
19830 | |
19831 | #ifdef __cplusplus |
19832 | extern "C" void exit (int); |
19833 | #endif |
19834 | |
19835 | void fnord() { int i=42;} |
19836 | int main () |
19837 | { |
19838 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
19839 | int status = $lt_dlunknown; |
19840 | |
19841 | if (self) |
19842 | { |
19843 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
19844 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
19845 | /* dlclose (self); */ |
19846 | } |
19847 | |
19848 | exit (status); |
19849 | } |
19850 | EOF |
19851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
19852 | (eval $ac_link) 2>&5 |
19853 | ac_status=$? |
19854 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19855 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
19856 | (./conftest; exit; ) >&5 2>/dev/null |
19857 | lt_status=$? |
19858 | case x$lt_status in |
19859 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
19860 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
19861 | x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; |
19862 | esac |
19863 | else : |
19864 | # compilation failed |
19865 | lt_cv_dlopen_self_static=no |
19866 | fi |
19867 | fi |
19868 | rm -fr conftest* |
19869 | |
19870 | |
19871 | fi |
19872 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
19873 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
19874 | fi |
19875 | |
19876 | CPPFLAGS="$save_CPPFLAGS" |
19877 | LDFLAGS="$save_LDFLAGS" |
19878 | LIBS="$save_LIBS" |
19879 | ;; |
19880 | esac |
19881 | |
19882 | case $lt_cv_dlopen_self in |
19883 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
19884 | *) enable_dlopen_self=unknown ;; |
19885 | esac |
19886 | |
19887 | case $lt_cv_dlopen_self_static in |
19888 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
19889 | *) enable_dlopen_self_static=unknown ;; |
19890 | esac |
19891 | fi |
19892 | |
19893 | |
19894 | # The else clause should only fire when bootstrapping the |
19895 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
19896 | # with your package, and you will get complaints that there are |
19897 | # no rules to generate ltmain.sh. |
19898 | if test -f "$ltmain"; then |
19899 | # See if we are running on zsh, and set the options which allow our commands through |
19900 | # without removal of \ escapes. |
19901 | if test -n "${ZSH_VERSION+set}" ; then |
19902 | setopt NO_GLOB_SUBST |
19903 | fi |
19904 | # Now quote all the things that may contain metacharacters while being |
19905 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
19906 | # variables and quote the copies for generation of the libtool script. |
19907 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
19908 | SED SHELL STRIP \ |
19909 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
19910 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
19911 | deplibs_check_method reload_flag reload_cmds need_locks \ |
19912 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
19913 | lt_cv_sys_global_symbol_to_c_name_address \ |
19914 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
19915 | old_postinstall_cmds old_postuninstall_cmds \ |
19916 | compiler_GCJ \ |
19917 | CC_GCJ \ |
19918 | LD_GCJ \ |
19919 | lt_prog_compiler_wl_GCJ \ |
19920 | lt_prog_compiler_pic_GCJ \ |
19921 | lt_prog_compiler_static_GCJ \ |
19922 | lt_prog_compiler_no_builtin_flag_GCJ \ |
19923 | export_dynamic_flag_spec_GCJ \ |
19924 | thread_safe_flag_spec_GCJ \ |
19925 | whole_archive_flag_spec_GCJ \ |
19926 | enable_shared_with_static_runtimes_GCJ \ |
19927 | old_archive_cmds_GCJ \ |
19928 | old_archive_from_new_cmds_GCJ \ |
19929 | predep_objects_GCJ \ |
19930 | postdep_objects_GCJ \ |
19931 | predeps_GCJ \ |
19932 | postdeps_GCJ \ |
19933 | compiler_lib_search_path_GCJ \ |
19934 | archive_cmds_GCJ \ |
19935 | archive_expsym_cmds_GCJ \ |
19936 | postinstall_cmds_GCJ \ |
19937 | postuninstall_cmds_GCJ \ |
19938 | old_archive_from_expsyms_cmds_GCJ \ |
19939 | allow_undefined_flag_GCJ \ |
19940 | no_undefined_flag_GCJ \ |
19941 | export_symbols_cmds_GCJ \ |
19942 | hardcode_libdir_flag_spec_GCJ \ |
19943 | hardcode_libdir_flag_spec_ld_GCJ \ |
19944 | hardcode_libdir_separator_GCJ \ |
19945 | hardcode_automatic_GCJ \ |
19946 | module_cmds_GCJ \ |
19947 | module_expsym_cmds_GCJ \ |
19948 | lt_cv_prog_compiler_c_o_GCJ \ |
19949 | exclude_expsyms_GCJ \ |
19950 | include_expsyms_GCJ; do |
19951 | |
19952 | case $var in |
19953 | old_archive_cmds_GCJ | \ |
19954 | old_archive_from_new_cmds_GCJ | \ |
19955 | archive_cmds_GCJ | \ |
19956 | archive_expsym_cmds_GCJ | \ |
19957 | module_cmds_GCJ | \ |
19958 | module_expsym_cmds_GCJ | \ |
19959 | old_archive_from_expsyms_cmds_GCJ | \ |
19960 | export_symbols_cmds_GCJ | \ |
19961 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
19962 | postinstall_cmds | postuninstall_cmds | \ |
19963 | old_postinstall_cmds | old_postuninstall_cmds | \ |
19964 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
19965 | # Double-quote double-evaled strings. |
19966 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
19967 | ;; |
19968 | *) |
19969 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
19970 | ;; |
19971 | esac |
19972 | done |
19973 | |
19974 | case $lt_echo in |
19975 | *'\$0 --fallback-echo"') |
19976 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
19977 | ;; |
19978 | esac |
19979 | |
19980 | cfgfile="$ofile" |
19981 | |
19982 | cat <<__EOF__ >> "$cfgfile" |
19983 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
19984 | |
19985 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19986 | |
19987 | # Shell to use when invoking shell scripts. |
19988 | SHELL=$lt_SHELL |
19989 | |
19990 | # Whether or not to build shared libraries. |
19991 | build_libtool_libs=$enable_shared |
19992 | |
19993 | # Whether or not to build static libraries. |
19994 | build_old_libs=$enable_static |
19995 | |
19996 | # Whether or not to add -lc for building shared libraries. |
19997 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
19998 | |
19999 | # Whether or not to disallow shared libs when runtime libs are static |
20000 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
20001 | |
20002 | # Whether or not to optimize for fast installation. |
20003 | fast_install=$enable_fast_install |
20004 | |
20005 | # The host system. |
20006 | host_alias=$host_alias |
20007 | host=$host |
20008 | host_os=$host_os |
20009 | |
20010 | # The build system. |
20011 | build_alias=$build_alias |
20012 | build=$build |
20013 | build_os=$build_os |
20014 | |
20015 | # An echo program that does not interpret backslashes. |
20016 | echo=$lt_echo |
20017 | |
20018 | # The archiver. |
20019 | AR=$lt_AR |
20020 | AR_FLAGS=$lt_AR_FLAGS |
20021 | |
20022 | # A C compiler. |
20023 | LTCC=$lt_LTCC |
20024 | |
20025 | # A language-specific compiler. |
20026 | CC=$lt_compiler_GCJ |
20027 | |
20028 | # Is the compiler the GNU C compiler? |
20029 | with_gcc=$GCC_GCJ |
20030 | |
20031 | # An ERE matcher. |
20032 | EGREP=$lt_EGREP |
20033 | |
20034 | # The linker used to build libraries. |
20035 | LD=$lt_LD_GCJ |
20036 | |
20037 | # Whether we need hard or soft links. |
20038 | LN_S=$lt_LN_S |
20039 | |
20040 | # A BSD-compatible nm program. |
20041 | NM=$lt_NM |
20042 | |
20043 | # A symbol stripping program |
20044 | STRIP=$lt_STRIP |
20045 | |
20046 | # Used to examine libraries when file_magic_cmd begins "file" |
20047 | MAGIC_CMD=$MAGIC_CMD |
20048 | |
20049 | # Used on cygwin: DLL creation program. |
20050 | DLLTOOL="$DLLTOOL" |
20051 | |
20052 | # Used on cygwin: object dumper. |
20053 | OBJDUMP="$OBJDUMP" |
20054 | |
20055 | # Used on cygwin: assembler. |
20056 | AS="$AS" |
20057 | |
20058 | # The name of the directory that contains temporary libtool files. |
20059 | objdir=$objdir |
20060 | |
20061 | # How to create reloadable object files. |
20062 | reload_flag=$lt_reload_flag |
20063 | reload_cmds=$lt_reload_cmds |
20064 | |
20065 | # How to pass a linker flag through the compiler. |
20066 | wl=$lt_lt_prog_compiler_wl_GCJ |
20067 | |
20068 | # Object file suffix (normally "o"). |
20069 | objext="$ac_objext" |
20070 | |
20071 | # Old archive suffix (normally "a"). |
20072 | libext="$libext" |
20073 | |
20074 | # Shared library suffix (normally ".so"). |
20075 | shrext_cmds='$shrext_cmds' |
20076 | |
20077 | # Executable file suffix (normally ""). |
20078 | exeext="$exeext" |
20079 | |
20080 | # Additional compiler flags for building library objects. |
20081 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
20082 | pic_mode=$pic_mode |
20083 | |
20084 | # What is the maximum length of a command? |
20085 | max_cmd_len=$lt_cv_sys_max_cmd_len |
20086 | |
20087 | # Does compiler simultaneously support -c and -o options? |
20088 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
20089 | |
20090 | # Must we lock files when doing compilation? |
20091 | need_locks=$lt_need_locks |
20092 | |
20093 | # Do we need the lib prefix for modules? |
20094 | need_lib_prefix=$need_lib_prefix |
20095 | |
20096 | # Do we need a version for libraries? |
20097 | need_version=$need_version |
20098 | |
20099 | # Whether dlopen is supported. |
20100 | dlopen_support=$enable_dlopen |
20101 | |
20102 | # Whether dlopen of programs is supported. |
20103 | dlopen_self=$enable_dlopen_self |
20104 | |
20105 | # Whether dlopen of statically linked programs is supported. |
20106 | dlopen_self_static=$enable_dlopen_self_static |
20107 | |
20108 | # Compiler flag to prevent dynamic linking. |
20109 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
20110 | |
20111 | # Compiler flag to turn off builtin functions. |
20112 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
20113 | |
20114 | # Compiler flag to allow reflexive dlopens. |
20115 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
20116 | |
20117 | # Compiler flag to generate shared objects directly from archives. |
20118 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
20119 | |
20120 | # Compiler flag to generate thread-safe objects. |
20121 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
20122 | |
20123 | # Library versioning type. |
20124 | version_type=$version_type |
20125 | |
20126 | # Format of library name prefix. |
20127 | libname_spec=$lt_libname_spec |
20128 | |
20129 | # List of archive names. First name is the real one, the rest are links. |
20130 | # The last name is the one that the linker finds with -lNAME. |
20131 | library_names_spec=$lt_library_names_spec |
20132 | |
20133 | # The coded name of the library, if different from the real name. |
20134 | soname_spec=$lt_soname_spec |
20135 | |
20136 | # Commands used to build and install an old-style archive. |
20137 | RANLIB=$lt_RANLIB |
20138 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
20139 | old_postinstall_cmds=$lt_old_postinstall_cmds |
20140 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
20141 | |
20142 | # Create an old-style archive from a shared archive. |
20143 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
20144 | |
20145 | # Create a temporary old-style archive to link instead of a shared archive. |
20146 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
20147 | |
20148 | # Commands used to build and install a shared archive. |
20149 | archive_cmds=$lt_archive_cmds_GCJ |
20150 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
20151 | postinstall_cmds=$lt_postinstall_cmds |
20152 | postuninstall_cmds=$lt_postuninstall_cmds |
20153 | |
20154 | # Commands used to build a loadable module (assumed same as above if empty) |
20155 | module_cmds=$lt_module_cmds_GCJ |
20156 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
20157 | |
20158 | # Commands to strip libraries. |
20159 | old_striplib=$lt_old_striplib |
20160 | striplib=$lt_striplib |
20161 | |
20162 | # Dependencies to place before the objects being linked to create a |
20163 | # shared library. |
20164 | predep_objects=$lt_predep_objects_GCJ |
20165 | |
20166 | # Dependencies to place after the objects being linked to create a |
20167 | # shared library. |
20168 | postdep_objects=$lt_postdep_objects_GCJ |
20169 | |
20170 | # Dependencies to place before the objects being linked to create a |
20171 | # shared library. |
20172 | predeps=$lt_predeps_GCJ |
20173 | |
20174 | # Dependencies to place after the objects being linked to create a |
20175 | # shared library. |
20176 | postdeps=$lt_postdeps_GCJ |
20177 | |
20178 | # The library search path used internally by the compiler when linking |
20179 | # a shared library. |
20180 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
20181 | |
20182 | # Method to check whether dependent libraries are shared objects. |
20183 | deplibs_check_method=$lt_deplibs_check_method |
20184 | |
20185 | # Command to use when deplibs_check_method == file_magic. |
20186 | file_magic_cmd=$lt_file_magic_cmd |
20187 | |
20188 | # Flag that allows shared libraries with undefined symbols to be built. |
20189 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
20190 | |
20191 | # Flag that forces no undefined symbols. |
20192 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
20193 | |
20194 | # Commands used to finish a libtool library installation in a directory. |
20195 | finish_cmds=$lt_finish_cmds |
20196 | |
20197 | # Same as above, but a single script fragment to be evaled but not shown. |
20198 | finish_eval=$lt_finish_eval |
20199 | |
20200 | # Take the output of nm and produce a listing of raw symbols and C names. |
20201 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
20202 | |
20203 | # Transform the output of nm in a proper C declaration |
20204 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
20205 | |
20206 | # Transform the output of nm in a C name address pair |
20207 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
20208 | |
20209 | # This is the shared library runtime path variable. |
20210 | runpath_var=$runpath_var |
20211 | |
20212 | # This is the shared library path variable. |
20213 | shlibpath_var=$shlibpath_var |
20214 | |
20215 | # Is shlibpath searched before the hard-coded library search path? |
20216 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
20217 | |
20218 | # How to hardcode a shared library path into an executable. |
20219 | hardcode_action=$hardcode_action_GCJ |
20220 | |
20221 | # Whether we should hardcode library paths into libraries. |
20222 | hardcode_into_libs=$hardcode_into_libs |
20223 | |
20224 | # Flag to hardcode \$libdir into a binary during linking. |
20225 | # This must work even if \$libdir does not exist. |
20226 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
20227 | |
20228 | # If ld is used when linking, flag to hardcode \$libdir into |
20229 | # a binary during linking. This must work even if \$libdir does |
20230 | # not exist. |
20231 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
20232 | |
20233 | # Whether we need a single -rpath flag with a separated argument. |
20234 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
20235 | |
20236 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
20237 | # resulting binary. |
20238 | hardcode_direct=$hardcode_direct_GCJ |
20239 | |
20240 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
20241 | # resulting binary. |
20242 | hardcode_minus_L=$hardcode_minus_L_GCJ |
20243 | |
20244 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
20245 | # the resulting binary. |
20246 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
20247 | |
20248 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
20249 | # and all subsequent libraries and executables linked against it. |
20250 | hardcode_automatic=$hardcode_automatic_GCJ |
20251 | |
20252 | # Variables whose values should be saved in libtool wrapper scripts and |
20253 | # restored at relink time. |
20254 | variables_saved_for_relink="$variables_saved_for_relink" |
20255 | |
20256 | # Whether libtool must link a program against all its dependency libraries. |
20257 | link_all_deplibs=$link_all_deplibs_GCJ |
20258 | |
20259 | # Compile-time system search path for libraries |
20260 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
20261 | |
20262 | # Run-time system search path for libraries |
20263 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
20264 | |
20265 | # Fix the shell variable \$srcfile for the compiler. |
20266 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
20267 | |
20268 | # Set to yes if exported symbols are required. |
20269 | always_export_symbols=$always_export_symbols_GCJ |
20270 | |
20271 | # The commands to list exported symbols. |
20272 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
20273 | |
20274 | # The commands to extract the exported symbol list from a shared archive. |
20275 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
20276 | |
20277 | # Symbols that should not be listed in the preloaded symbols. |
20278 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
20279 | |
20280 | # Symbols that must always be exported. |
20281 | include_expsyms=$lt_include_expsyms_GCJ |
20282 | |
20283 | # ### END LIBTOOL TAG CONFIG: $tagname |
20284 | |
20285 | __EOF__ |
20286 | |
20287 | |
20288 | else |
20289 | # If there is no Makefile yet, we rely on a make rule to execute |
20290 | # `config.status --recheck' to rerun these tests and create the |
20291 | # libtool script then. |
20292 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
20293 | if test -f "$ltmain_in"; then |
20294 | test -f Makefile && make "$ltmain" |
20295 | fi |
20296 | fi |
20297 | |
20298 | |
20299 | ac_ext=c |
20300 | ac_cpp='$CPP $CPPFLAGS' |
20301 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
20302 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
20303 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
20304 | |
20305 | CC="$lt_save_CC" |
20306 | |
20307 | else |
20308 | tagname="" |
20309 | fi |
20310 | ;; |
20311 | |
20312 | RC) |
20313 | |
20314 | |
20315 | # Source file extension for RC test sources. |
20316 | ac_ext=rc |
20317 | |
20318 | # Object file extension for compiled RC test sources. |
20319 | objext=o |
20320 | objext_RC=$objext |
20321 | |
20322 | # Code to be used in simple compile tests |
20323 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
20324 | |
20325 | # Code to be used in simple link tests |
20326 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
20327 | |
20328 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
20329 | |
20330 | # If no C compiler was specified, use CC. |
20331 | LTCC=${LTCC-"$CC"} |
20332 | |
20333 | # Allow CC to be a program name with arguments. |
20334 | compiler=$CC |
20335 | |
20336 | |
20337 | # save warnings/boilerplate of simple test code |
20338 | ac_outfile=conftest.$ac_objext |
20339 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
20340 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
20341 | _lt_compiler_boilerplate=`cat conftest.err` |
20342 | $rm conftest* |
20343 | |
20344 | ac_outfile=conftest.$ac_objext |
20345 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
20346 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err |
20347 | _lt_linker_boilerplate=`cat conftest.err` |
20348 | $rm conftest* |
20349 | |
20350 | |
20351 | # Allow CC to be a program name with arguments. |
20352 | lt_save_CC="$CC" |
20353 | CC=${RC-"windres"} |
20354 | compiler=$CC |
20355 | compiler_RC=$CC |
20356 | for cc_temp in $compiler""; do |
20357 | case $cc_temp in |
20358 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
20359 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
20360 | \-*) ;; |
20361 | *) break;; |
20362 | esac |
20363 | done |
20364 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
20365 | |
20366 | lt_cv_prog_compiler_c_o_RC=yes |
20367 | |
20368 | # The else clause should only fire when bootstrapping the |
20369 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
20370 | # with your package, and you will get complaints that there are |
20371 | # no rules to generate ltmain.sh. |
20372 | if test -f "$ltmain"; then |
20373 | # See if we are running on zsh, and set the options which allow our commands through |
20374 | # without removal of \ escapes. |
20375 | if test -n "${ZSH_VERSION+set}" ; then |
20376 | setopt NO_GLOB_SUBST |
20377 | fi |
20378 | # Now quote all the things that may contain metacharacters while being |
20379 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
20380 | # variables and quote the copies for generation of the libtool script. |
20381 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ |
20382 | SED SHELL STRIP \ |
20383 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
20384 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
20385 | deplibs_check_method reload_flag reload_cmds need_locks \ |
20386 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
20387 | lt_cv_sys_global_symbol_to_c_name_address \ |
20388 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
20389 | old_postinstall_cmds old_postuninstall_cmds \ |
20390 | compiler_RC \ |
20391 | CC_RC \ |
20392 | LD_RC \ |
20393 | lt_prog_compiler_wl_RC \ |
20394 | lt_prog_compiler_pic_RC \ |
20395 | lt_prog_compiler_static_RC \ |
20396 | lt_prog_compiler_no_builtin_flag_RC \ |
20397 | export_dynamic_flag_spec_RC \ |
20398 | thread_safe_flag_spec_RC \ |
20399 | whole_archive_flag_spec_RC \ |
20400 | enable_shared_with_static_runtimes_RC \ |
20401 | old_archive_cmds_RC \ |
20402 | old_archive_from_new_cmds_RC \ |
20403 | predep_objects_RC \ |
20404 | postdep_objects_RC \ |
20405 | predeps_RC \ |
20406 | postdeps_RC \ |
20407 | compiler_lib_search_path_RC \ |
20408 | archive_cmds_RC \ |
20409 | archive_expsym_cmds_RC \ |
20410 | postinstall_cmds_RC \ |
20411 | postuninstall_cmds_RC \ |
20412 | old_archive_from_expsyms_cmds_RC \ |
20413 | allow_undefined_flag_RC \ |
20414 | no_undefined_flag_RC \ |
20415 | export_symbols_cmds_RC \ |
20416 | hardcode_libdir_flag_spec_RC \ |
20417 | hardcode_libdir_flag_spec_ld_RC \ |
20418 | hardcode_libdir_separator_RC \ |
20419 | hardcode_automatic_RC \ |
20420 | module_cmds_RC \ |
20421 | module_expsym_cmds_RC \ |
20422 | lt_cv_prog_compiler_c_o_RC \ |
20423 | exclude_expsyms_RC \ |
20424 | include_expsyms_RC; do |
20425 | |
20426 | case $var in |
20427 | old_archive_cmds_RC | \ |
20428 | old_archive_from_new_cmds_RC | \ |
20429 | archive_cmds_RC | \ |
20430 | archive_expsym_cmds_RC | \ |
20431 | module_cmds_RC | \ |
20432 | module_expsym_cmds_RC | \ |
20433 | old_archive_from_expsyms_cmds_RC | \ |
20434 | export_symbols_cmds_RC | \ |
20435 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
20436 | postinstall_cmds | postuninstall_cmds | \ |
20437 | old_postinstall_cmds | old_postuninstall_cmds | \ |
20438 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
20439 | # Double-quote double-evaled strings. |
20440 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
20441 | ;; |
20442 | *) |
20443 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
20444 | ;; |
20445 | esac |
20446 | done |
20447 | |
20448 | case $lt_echo in |
20449 | *'\$0 --fallback-echo"') |
20450 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
20451 | ;; |
20452 | esac |
20453 | |
20454 | cfgfile="$ofile" |
20455 | |
20456 | cat <<__EOF__ >> "$cfgfile" |
20457 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
20458 | |
20459 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
20460 | |
20461 | # Shell to use when invoking shell scripts. |
20462 | SHELL=$lt_SHELL |
20463 | |
20464 | # Whether or not to build shared libraries. |
20465 | build_libtool_libs=$enable_shared |
20466 | |
20467 | # Whether or not to build static libraries. |
20468 | build_old_libs=$enable_static |
20469 | |
20470 | # Whether or not to add -lc for building shared libraries. |
20471 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
20472 | |
20473 | # Whether or not to disallow shared libs when runtime libs are static |
20474 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
20475 | |
20476 | # Whether or not to optimize for fast installation. |
20477 | fast_install=$enable_fast_install |
20478 | |
20479 | # The host system. |
20480 | host_alias=$host_alias |
20481 | host=$host |
20482 | host_os=$host_os |
20483 | |
20484 | # The build system. |
20485 | build_alias=$build_alias |
20486 | build=$build |
20487 | build_os=$build_os |
20488 | |
20489 | # An echo program that does not interpret backslashes. |
20490 | echo=$lt_echo |
20491 | |
20492 | # The archiver. |
20493 | AR=$lt_AR |
20494 | AR_FLAGS=$lt_AR_FLAGS |
20495 | |
20496 | # A C compiler. |
20497 | LTCC=$lt_LTCC |
20498 | |
20499 | # A language-specific compiler. |
20500 | CC=$lt_compiler_RC |
20501 | |
20502 | # Is the compiler the GNU C compiler? |
20503 | with_gcc=$GCC_RC |
20504 | |
20505 | # An ERE matcher. |
20506 | EGREP=$lt_EGREP |
20507 | |
20508 | # The linker used to build libraries. |
20509 | LD=$lt_LD_RC |
20510 | |
20511 | # Whether we need hard or soft links. |
20512 | LN_S=$lt_LN_S |
20513 | |
20514 | # A BSD-compatible nm program. |
20515 | NM=$lt_NM |
20516 | |
20517 | # A symbol stripping program |
20518 | STRIP=$lt_STRIP |
20519 | |
20520 | # Used to examine libraries when file_magic_cmd begins "file" |
20521 | MAGIC_CMD=$MAGIC_CMD |
20522 | |
20523 | # Used on cygwin: DLL creation program. |
20524 | DLLTOOL="$DLLTOOL" |
20525 | |
20526 | # Used on cygwin: object dumper. |
20527 | OBJDUMP="$OBJDUMP" |
20528 | |
20529 | # Used on cygwin: assembler. |
20530 | AS="$AS" |
20531 | |
20532 | # The name of the directory that contains temporary libtool files. |
20533 | objdir=$objdir |
20534 | |
20535 | # How to create reloadable object files. |
20536 | reload_flag=$lt_reload_flag |
20537 | reload_cmds=$lt_reload_cmds |
20538 | |
20539 | # How to pass a linker flag through the compiler. |
20540 | wl=$lt_lt_prog_compiler_wl_RC |
20541 | |
20542 | # Object file suffix (normally "o"). |
20543 | objext="$ac_objext" |
20544 | |
20545 | # Old archive suffix (normally "a"). |
20546 | libext="$libext" |
20547 | |
20548 | # Shared library suffix (normally ".so"). |
20549 | shrext_cmds='$shrext_cmds' |
20550 | |
20551 | # Executable file suffix (normally ""). |
20552 | exeext="$exeext" |
20553 | |
20554 | # Additional compiler flags for building library objects. |
20555 | pic_flag=$lt_lt_prog_compiler_pic_RC |
20556 | pic_mode=$pic_mode |
20557 | |
20558 | # What is the maximum length of a command? |
20559 | max_cmd_len=$lt_cv_sys_max_cmd_len |
20560 | |
20561 | # Does compiler simultaneously support -c and -o options? |
20562 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
20563 | |
20564 | # Must we lock files when doing compilation? |
20565 | need_locks=$lt_need_locks |
20566 | |
20567 | # Do we need the lib prefix for modules? |
20568 | need_lib_prefix=$need_lib_prefix |
20569 | |
20570 | # Do we need a version for libraries? |
20571 | need_version=$need_version |
20572 | |
20573 | # Whether dlopen is supported. |
20574 | dlopen_support=$enable_dlopen |
20575 | |
20576 | # Whether dlopen of programs is supported. |
20577 | dlopen_self=$enable_dlopen_self |
20578 | |
20579 | # Whether dlopen of statically linked programs is supported. |
20580 | dlopen_self_static=$enable_dlopen_self_static |
20581 | |
20582 | # Compiler flag to prevent dynamic linking. |
20583 | link_static_flag=$lt_lt_prog_compiler_static_RC |
20584 | |
20585 | # Compiler flag to turn off builtin functions. |
20586 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
20587 | |
20588 | # Compiler flag to allow reflexive dlopens. |
20589 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
20590 | |
20591 | # Compiler flag to generate shared objects directly from archives. |
20592 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
20593 | |
20594 | # Compiler flag to generate thread-safe objects. |
20595 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
20596 | |
20597 | # Library versioning type. |
20598 | version_type=$version_type |
20599 | |
20600 | # Format of library name prefix. |
20601 | libname_spec=$lt_libname_spec |
20602 | |
20603 | # List of archive names. First name is the real one, the rest are links. |
20604 | # The last name is the one that the linker finds with -lNAME. |
20605 | library_names_spec=$lt_library_names_spec |
20606 | |
20607 | # The coded name of the library, if different from the real name. |
20608 | soname_spec=$lt_soname_spec |
20609 | |
20610 | # Commands used to build and install an old-style archive. |
20611 | RANLIB=$lt_RANLIB |
20612 | old_archive_cmds=$lt_old_archive_cmds_RC |
20613 | old_postinstall_cmds=$lt_old_postinstall_cmds |
20614 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
20615 | |
20616 | # Create an old-style archive from a shared archive. |
20617 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
20618 | |
20619 | # Create a temporary old-style archive to link instead of a shared archive. |
20620 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
20621 | |
20622 | # Commands used to build and install a shared archive. |
20623 | archive_cmds=$lt_archive_cmds_RC |
20624 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
20625 | postinstall_cmds=$lt_postinstall_cmds |
20626 | postuninstall_cmds=$lt_postuninstall_cmds |
20627 | |
20628 | # Commands used to build a loadable module (assumed same as above if empty) |
20629 | module_cmds=$lt_module_cmds_RC |
20630 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
20631 | |
20632 | # Commands to strip libraries. |
20633 | old_striplib=$lt_old_striplib |
20634 | striplib=$lt_striplib |
20635 | |
20636 | # Dependencies to place before the objects being linked to create a |
20637 | # shared library. |
20638 | predep_objects=$lt_predep_objects_RC |
20639 | |
20640 | # Dependencies to place after the objects being linked to create a |
20641 | # shared library. |
20642 | postdep_objects=$lt_postdep_objects_RC |
20643 | |
20644 | # Dependencies to place before the objects being linked to create a |
20645 | # shared library. |
20646 | predeps=$lt_predeps_RC |
20647 | |
20648 | # Dependencies to place after the objects being linked to create a |
20649 | # shared library. |
20650 | postdeps=$lt_postdeps_RC |
20651 | |
20652 | # The library search path used internally by the compiler when linking |
20653 | # a shared library. |
20654 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
20655 | |
20656 | # Method to check whether dependent libraries are shared objects. |
20657 | deplibs_check_method=$lt_deplibs_check_method |
20658 | |
20659 | # Command to use when deplibs_check_method == file_magic. |
20660 | file_magic_cmd=$lt_file_magic_cmd |
20661 | |
20662 | # Flag that allows shared libraries with undefined symbols to be built. |
20663 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
20664 | |
20665 | # Flag that forces no undefined symbols. |
20666 | no_undefined_flag=$lt_no_undefined_flag_RC |
20667 | |
20668 | # Commands used to finish a libtool library installation in a directory. |
20669 | finish_cmds=$lt_finish_cmds |
20670 | |
20671 | # Same as above, but a single script fragment to be evaled but not shown. |
20672 | finish_eval=$lt_finish_eval |
20673 | |
20674 | # Take the output of nm and produce a listing of raw symbols and C names. |
20675 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
20676 | |
20677 | # Transform the output of nm in a proper C declaration |
20678 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
20679 | |
20680 | # Transform the output of nm in a C name address pair |
20681 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
20682 | |
20683 | # This is the shared library runtime path variable. |
20684 | runpath_var=$runpath_var |
20685 | |
20686 | # This is the shared library path variable. |
20687 | shlibpath_var=$shlibpath_var |
20688 | |
20689 | # Is shlibpath searched before the hard-coded library search path? |
20690 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
20691 | |
20692 | # How to hardcode a shared library path into an executable. |
20693 | hardcode_action=$hardcode_action_RC |
20694 | |
20695 | # Whether we should hardcode library paths into libraries. |
20696 | hardcode_into_libs=$hardcode_into_libs |
20697 | |
20698 | # Flag to hardcode \$libdir into a binary during linking. |
20699 | # This must work even if \$libdir does not exist. |
20700 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
20701 | |
20702 | # If ld is used when linking, flag to hardcode \$libdir into |
20703 | # a binary during linking. This must work even if \$libdir does |
20704 | # not exist. |
20705 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
20706 | |
20707 | # Whether we need a single -rpath flag with a separated argument. |
20708 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
20709 | |
20710 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
20711 | # resulting binary. |
20712 | hardcode_direct=$hardcode_direct_RC |
20713 | |
20714 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
20715 | # resulting binary. |
20716 | hardcode_minus_L=$hardcode_minus_L_RC |
20717 | |
20718 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
20719 | # the resulting binary. |
20720 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
20721 | |
20722 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
20723 | # and all subsequent libraries and executables linked against it. |
20724 | hardcode_automatic=$hardcode_automatic_RC |
20725 | |
20726 | # Variables whose values should be saved in libtool wrapper scripts and |
20727 | # restored at relink time. |
20728 | variables_saved_for_relink="$variables_saved_for_relink" |
20729 | |
20730 | # Whether libtool must link a program against all its dependency libraries. |
20731 | link_all_deplibs=$link_all_deplibs_RC |
20732 | |
20733 | # Compile-time system search path for libraries |
20734 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
20735 | |
20736 | # Run-time system search path for libraries |
20737 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
20738 | |
20739 | # Fix the shell variable \$srcfile for the compiler. |
20740 | fix_srcfile_path="$fix_srcfile_path_RC" |
20741 | |
20742 | # Set to yes if exported symbols are required. |
20743 | always_export_symbols=$always_export_symbols_RC |
20744 | |
20745 | # The commands to list exported symbols. |
20746 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
20747 | |
20748 | # The commands to extract the exported symbol list from a shared archive. |
20749 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
20750 | |
20751 | # Symbols that should not be listed in the preloaded symbols. |
20752 | exclude_expsyms=$lt_exclude_expsyms_RC |
20753 | |
20754 | # Symbols that must always be exported. |
20755 | include_expsyms=$lt_include_expsyms_RC |
20756 | |
20757 | # ### END LIBTOOL TAG CONFIG: $tagname |
20758 | |
20759 | __EOF__ |
20760 | |
20761 | |
20762 | else |
20763 | # If there is no Makefile yet, we rely on a make rule to execute |
20764 | # `config.status --recheck' to rerun these tests and create the |
20765 | # libtool script then. |
20766 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
20767 | if test -f "$ltmain_in"; then |
20768 | test -f Makefile && make "$ltmain" |
20769 | fi |
20770 | fi |
20771 | |
20772 | |
20773 | ac_ext=c |
20774 | ac_cpp='$CPP $CPPFLAGS' |
20775 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
20776 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
20777 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
20778 | |
20779 | CC="$lt_save_CC" |
20780 | |
20781 | ;; |
20782 | |
20783 | *) |
20784 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
20785 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
20786 | { (exit 1); exit 1; }; } |
20787 | ;; |
20788 | esac |
20789 | |
20790 | # Append the new tag name to the list of available tags. |
20791 | if test -n "$tagname" ; then |
20792 | available_tags="$available_tags $tagname" |
20793 | fi |
20794 | fi |
20795 | done |
20796 | IFS="$lt_save_ifs" |
20797 | |
20798 | # Now substitute the updated list of available tags. |
20799 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
20800 | mv "${ofile}T" "$ofile" |
20801 | chmod +x "$ofile" |
20802 | else |
20803 | rm -f "${ofile}T" |
20804 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
20805 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
20806 | { (exit 1); exit 1; }; } |
20807 | fi |
20808 | fi |
20809 | |
20810 | |
20811 | |
20812 | # This can be used to rebuild libtool when needed |
20813 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
20814 | |
20815 | # Always use our own libtool. |
20816 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
20817 | |
20818 | # Prevent multiple expansion |
20819 | |
20820 | |
20821 | |
20822 | |
20823 | |
20824 | |
20825 | |
20826 | |
20827 | |
20828 | |
20829 | |
20830 | |
20831 | |
20832 | |
20833 | |
20834 | |
20835 | |
20836 | |
20837 | |
20838 | |
20839 | |
20840 | test -e site_def.h || cat <<EOF >site_def.h |
20841 | /* Site specific definitions */ |
20842 | |
20843 | #ifndef SITE_DEF_H |
20844 | #define SITE_DEF_H |
20845 | /* #define BIT_SLICER_LOG 1 */ |
20846 | /* #define CACHE_DEBUG 1 */ |
20847 | /* #define CACHE_DEBUG 2 */ |
20848 | /* #define CACHE_STATUS 1 */ |
20849 | /* #define CACHE_CONSISTENCY 1 */ |
20850 | /* #define DVB_DEMUX_LOG 1 */ |
20851 | /* #define DVB_MUX_LOG 1 */ |
20852 | /* #define RAW_DECODER_LOG 1 */ |
20853 | /* #define RAW_DECODER_PATTERN_DUMP 1 */ |
20854 | /* #define TELETEXT_DEBUG 1 */ |
20855 | #endif /* SITE_DEF_H */ |
20856 | EOF |
20857 | |
20858 | |
20859 | |
20860 | |
20861 | |
20862 | |
20863 | { echo "$as_me:$LINENO: checking if $CC supports --param inline-unit-growth=3000" >&5 |
20864 | echo $ECHO_N "checking if $CC supports --param inline-unit-growth=3000... $ECHO_C" >&6; } |
20865 | SAVE_CFLAGS="$CFLAGS" |
20866 | CFLAGS="$CFLAGS --param inline-unit-growth=3000" |
20867 | cat >conftest.$ac_ext <<_ACEOF |
20868 | /* confdefs.h. */ |
20869 | _ACEOF |
20870 | cat confdefs.h >>conftest.$ac_ext |
20871 | cat >>conftest.$ac_ext <<_ACEOF |
20872 | /* end confdefs.h. */ |
20873 | |
20874 | int |
20875 | main () |
20876 | { |
20877 | return 0; |
20878 | ; |
20879 | return 0; |
20880 | } |
20881 | _ACEOF |
20882 | rm -f conftest.$ac_objext |
20883 | if { (ac_try="$ac_compile" |
20884 | case "(($ac_try" in |
20885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20886 | *) ac_try_echo=$ac_try;; |
20887 | esac |
20888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20889 | (eval "$ac_compile") 2>conftest.er1 |
20890 | ac_status=$? |
20891 | grep -v '^ *+' conftest.er1 >conftest.err |
20892 | rm -f conftest.er1 |
20893 | cat conftest.err >&5 |
20894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20895 | (exit $ac_status); } && { |
20896 | test -z "$ac_c_werror_flag" || |
20897 | test ! -s conftest.err |
20898 | } && test -s conftest.$ac_objext; then |
20899 | HAVE_GCC_LIMITS=yes |
20900 | else |
20901 | echo "$as_me: failed program was:" >&5 |
20902 | sed 's/^/| /' conftest.$ac_ext >&5 |
20903 | |
20904 | HAVE_GCC_LIMITS=no |
20905 | fi |
20906 | |
20907 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
20908 | CFLAGS="$SAVE_CFLAGS" |
20909 | { echo "$as_me:$LINENO: result: $HAVE_GCC_LIMITS" >&5 |
20910 | echo "${ECHO_T}$HAVE_GCC_LIMITS" >&6; } |
20911 | |
20912 | |
20913 | if test "x$HAVE_GCC_LIMITS" = "xyes"; then |
20914 | HAVE_GCC_LIMITS_TRUE= |
20915 | HAVE_GCC_LIMITS_FALSE='#' |
20916 | else |
20917 | HAVE_GCC_LIMITS_TRUE='#' |
20918 | HAVE_GCC_LIMITS_FALSE= |
20919 | fi |
20920 | |
20921 | |
20922 | |
20923 | { echo "$as_me:$LINENO: checking if $CC supports -std=c89" >&5 |
20924 | echo $ECHO_N "checking if $CC supports -std=c89... $ECHO_C" >&6; } |
20925 | SAVE_CFLAGS="$CFLAGS" |
20926 | CFLAGS="$CFLAGS -std=c89" |
20927 | cat >conftest.$ac_ext <<_ACEOF |
20928 | /* confdefs.h. */ |
20929 | _ACEOF |
20930 | cat confdefs.h >>conftest.$ac_ext |
20931 | cat >>conftest.$ac_ext <<_ACEOF |
20932 | /* end confdefs.h. */ |
20933 | |
20934 | int |
20935 | main () |
20936 | { |
20937 | return 0; |
20938 | ; |
20939 | return 0; |
20940 | } |
20941 | _ACEOF |
20942 | rm -f conftest.$ac_objext |
20943 | if { (ac_try="$ac_compile" |
20944 | case "(($ac_try" in |
20945 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20946 | *) ac_try_echo=$ac_try;; |
20947 | esac |
20948 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20949 | (eval "$ac_compile") 2>conftest.er1 |
20950 | ac_status=$? |
20951 | grep -v '^ *+' conftest.er1 >conftest.err |
20952 | rm -f conftest.er1 |
20953 | cat conftest.err >&5 |
20954 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20955 | (exit $ac_status); } && { |
20956 | test -z "$ac_c_werror_flag" || |
20957 | test ! -s conftest.err |
20958 | } && test -s conftest.$ac_objext; then |
20959 | HAVE_GCC_C89_SUPPORT=yes |
20960 | else |
20961 | echo "$as_me: failed program was:" >&5 |
20962 | sed 's/^/| /' conftest.$ac_ext >&5 |
20963 | |
20964 | HAVE_GCC_C89_SUPPORT=no |
20965 | fi |
20966 | |
20967 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
20968 | CFLAGS="$SAVE_CFLAGS" |
20969 | { echo "$as_me:$LINENO: result: $HAVE_GCC_C89_SUPPORT" >&5 |
20970 | echo "${ECHO_T}$HAVE_GCC_C89_SUPPORT" >&6; } |
20971 | |
20972 | |
20973 | if test "x$HAVE_GCC_C89_SUPPORT" = "xyes"; then |
20974 | HAVE_GCC_C89_SUPPORT_TRUE= |
20975 | HAVE_GCC_C89_SUPPORT_FALSE='#' |
20976 | else |
20977 | HAVE_GCC_C89_SUPPORT_TRUE='#' |
20978 | HAVE_GCC_C89_SUPPORT_FALSE= |
20979 | fi |
20980 | |
20981 | |
20982 | { echo "$as_me:$LINENO: checking if $CC supports -std=iso9899:199409" >&5 |
20983 | echo $ECHO_N "checking if $CC supports -std=iso9899:199409... $ECHO_C" >&6; } |
20984 | SAVE_CFLAGS="$CFLAGS" |
20985 | CFLAGS="$CFLAGS -std=iso9899:199409" |
20986 | cat >conftest.$ac_ext <<_ACEOF |
20987 | /* confdefs.h. */ |
20988 | _ACEOF |
20989 | cat confdefs.h >>conftest.$ac_ext |
20990 | cat >>conftest.$ac_ext <<_ACEOF |
20991 | /* end confdefs.h. */ |
20992 | |
20993 | int |
20994 | main () |
20995 | { |
20996 | return 0; |
20997 | ; |
20998 | return 0; |
20999 | } |
21000 | _ACEOF |
21001 | rm -f conftest.$ac_objext |
21002 | if { (ac_try="$ac_compile" |
21003 | case "(($ac_try" in |
21004 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21005 | *) ac_try_echo=$ac_try;; |
21006 | esac |
21007 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21008 | (eval "$ac_compile") 2>conftest.er1 |
21009 | ac_status=$? |
21010 | grep -v '^ *+' conftest.er1 >conftest.err |
21011 | rm -f conftest.er1 |
21012 | cat conftest.err >&5 |
21013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21014 | (exit $ac_status); } && { |
21015 | test -z "$ac_c_werror_flag" || |
21016 | test ! -s conftest.err |
21017 | } && test -s conftest.$ac_objext; then |
21018 | HAVE_GCC_C94_SUPPORT=yes |
21019 | else |
21020 | echo "$as_me: failed program was:" >&5 |
21021 | sed 's/^/| /' conftest.$ac_ext >&5 |
21022 | |
21023 | HAVE_GCC_C94_SUPPORT=no |
21024 | fi |
21025 | |
21026 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21027 | CFLAGS="$SAVE_CFLAGS" |
21028 | { echo "$as_me:$LINENO: result: $HAVE_GCC_C94_SUPPORT" >&5 |
21029 | echo "${ECHO_T}$HAVE_GCC_C94_SUPPORT" >&6; } |
21030 | |
21031 | |
21032 | if test "x$HAVE_GCC_C94_SUPPORT" = "xyes"; then |
21033 | HAVE_GCC_C94_SUPPORT_TRUE= |
21034 | HAVE_GCC_C94_SUPPORT_FALSE='#' |
21035 | else |
21036 | HAVE_GCC_C94_SUPPORT_TRUE='#' |
21037 | HAVE_GCC_C94_SUPPORT_FALSE= |
21038 | fi |
21039 | |
21040 | |
21041 | { echo "$as_me:$LINENO: checking if $CC supports -std=c99" >&5 |
21042 | echo $ECHO_N "checking if $CC supports -std=c99... $ECHO_C" >&6; } |
21043 | SAVE_CFLAGS="$CFLAGS" |
21044 | CFLAGS="$CFLAGS -std=c99" |
21045 | cat >conftest.$ac_ext <<_ACEOF |
21046 | /* confdefs.h. */ |
21047 | _ACEOF |
21048 | cat confdefs.h >>conftest.$ac_ext |
21049 | cat >>conftest.$ac_ext <<_ACEOF |
21050 | /* end confdefs.h. */ |
21051 | |
21052 | int |
21053 | main () |
21054 | { |
21055 | return 0; |
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 | HAVE_GCC_C99_SUPPORT=yes |
21078 | else |
21079 | echo "$as_me: failed program was:" >&5 |
21080 | sed 's/^/| /' conftest.$ac_ext >&5 |
21081 | |
21082 | HAVE_GCC_C99_SUPPORT=no |
21083 | fi |
21084 | |
21085 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21086 | CFLAGS="$SAVE_CFLAGS" |
21087 | { echo "$as_me:$LINENO: result: $HAVE_GCC_C99_SUPPORT" >&5 |
21088 | echo "${ECHO_T}$HAVE_GCC_C99_SUPPORT" >&6; } |
21089 | |
21090 | |
21091 | if test "x$HAVE_GCC_C99_SUPPORT" = "xyes"; then |
21092 | HAVE_GCC_C99_SUPPORT_TRUE= |
21093 | HAVE_GCC_C99_SUPPORT_FALSE='#' |
21094 | else |
21095 | HAVE_GCC_C99_SUPPORT_TRUE='#' |
21096 | HAVE_GCC_C99_SUPPORT_FALSE= |
21097 | fi |
21098 | |
21099 | |
21100 | { echo "$as_me:$LINENO: checking if $CXX supports -std=c++98" >&5 |
21101 | echo $ECHO_N "checking if $CXX supports -std=c++98... $ECHO_C" >&6; } |
21102 | SAVE_CXXFLAGS="$CXXFLAGS" |
21103 | CXXFLAGS="$CXXFLAGS -std=c++98" |
21104 | ac_ext=cpp |
21105 | ac_cpp='$CXXCPP $CPPFLAGS' |
21106 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
21107 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
21108 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
21109 | |
21110 | cat >conftest.$ac_ext <<_ACEOF |
21111 | /* confdefs.h. */ |
21112 | _ACEOF |
21113 | cat confdefs.h >>conftest.$ac_ext |
21114 | cat >>conftest.$ac_ext <<_ACEOF |
21115 | /* end confdefs.h. */ |
21116 | |
21117 | int |
21118 | main () |
21119 | { |
21120 | return 0; |
21121 | ; |
21122 | return 0; |
21123 | } |
21124 | _ACEOF |
21125 | rm -f conftest.$ac_objext |
21126 | if { (ac_try="$ac_compile" |
21127 | case "(($ac_try" in |
21128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21129 | *) ac_try_echo=$ac_try;; |
21130 | esac |
21131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21132 | (eval "$ac_compile") 2>conftest.er1 |
21133 | ac_status=$? |
21134 | grep -v '^ *+' conftest.er1 >conftest.err |
21135 | rm -f conftest.er1 |
21136 | cat conftest.err >&5 |
21137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21138 | (exit $ac_status); } && { |
21139 | test -z "$ac_cxx_werror_flag" || |
21140 | test ! -s conftest.err |
21141 | } && test -s conftest.$ac_objext; then |
21142 | HAVE_GXX_CXX98_SUPPORT=yes |
21143 | else |
21144 | echo "$as_me: failed program was:" >&5 |
21145 | sed 's/^/| /' conftest.$ac_ext >&5 |
21146 | |
21147 | HAVE_GXX_CXX98_SUPPORT=no |
21148 | fi |
21149 | |
21150 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21151 | ac_ext=c |
21152 | ac_cpp='$CPP $CPPFLAGS' |
21153 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
21154 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
21155 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
21156 | |
21157 | CXXFLAGS="$SAVE_CXXFLAGS" |
21158 | { echo "$as_me:$LINENO: result: $HAVE_GXX_CXX98_SUPPORT" >&5 |
21159 | echo "${ECHO_T}$HAVE_GXX_CXX98_SUPPORT" >&6; } |
21160 | |
21161 | |
21162 | if test "x$HAVE_GXX_CXX98_SUPPORT" = "xyes"; then |
21163 | HAVE_GXX_CXX98_SUPPORT_TRUE= |
21164 | HAVE_GXX_CXX98_SUPPORT_FALSE='#' |
21165 | else |
21166 | HAVE_GXX_CXX98_SUPPORT_TRUE='#' |
21167 | HAVE_GXX_CXX98_SUPPORT_FALSE= |
21168 | fi |
21169 | |
21170 | |
21171 | |
21172 | { echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5 |
21173 | echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6; } |
21174 | if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then |
21175 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21176 | else |
21177 | ac_check_lib_save_LIBS=$LIBS |
21178 | LIBS="-lpthread $LIBS" |
21179 | cat >conftest.$ac_ext <<_ACEOF |
21180 | /* confdefs.h. */ |
21181 | _ACEOF |
21182 | cat confdefs.h >>conftest.$ac_ext |
21183 | cat >>conftest.$ac_ext <<_ACEOF |
21184 | /* end confdefs.h. */ |
21185 | |
21186 | /* Override any GCC internal prototype to avoid an error. |
21187 | Use char because int might match the return type of a GCC |
21188 | builtin and then its argument prototype would still apply. */ |
21189 | #ifdef __cplusplus |
21190 | extern "C" |
21191 | #endif |
21192 | char pthread_create (); |
21193 | int |
21194 | main () |
21195 | { |
21196 | return pthread_create (); |
21197 | ; |
21198 | return 0; |
21199 | } |
21200 | _ACEOF |
21201 | rm -f conftest.$ac_objext conftest$ac_exeext |
21202 | if { (ac_try="$ac_link" |
21203 | case "(($ac_try" in |
21204 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21205 | *) ac_try_echo=$ac_try;; |
21206 | esac |
21207 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21208 | (eval "$ac_link") 2>conftest.er1 |
21209 | ac_status=$? |
21210 | grep -v '^ *+' conftest.er1 >conftest.err |
21211 | rm -f conftest.er1 |
21212 | cat conftest.err >&5 |
21213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21214 | (exit $ac_status); } && { |
21215 | test -z "$ac_c_werror_flag" || |
21216 | test ! -s conftest.err |
21217 | } && test -s conftest$ac_exeext && |
21218 | $as_test_x conftest$ac_exeext; then |
21219 | ac_cv_lib_pthread_pthread_create=yes |
21220 | else |
21221 | echo "$as_me: failed program was:" >&5 |
21222 | sed 's/^/| /' conftest.$ac_ext >&5 |
21223 | |
21224 | ac_cv_lib_pthread_pthread_create=no |
21225 | fi |
21226 | |
21227 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
21228 | conftest$ac_exeext conftest.$ac_ext |
21229 | LIBS=$ac_check_lib_save_LIBS |
21230 | fi |
21231 | { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5 |
21232 | echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6; } |
21233 | if test $ac_cv_lib_pthread_pthread_create = yes; then |
21234 | cat >>confdefs.h <<_ACEOF |
21235 | #define HAVE_LIBPTHREAD 1 |
21236 | _ACEOF |
21237 | |
21238 | LIBS="-lpthread $LIBS" |
21239 | |
21240 | else |
21241 | |
21242 | cat >conftest.$ac_ext <<_ACEOF |
21243 | /* confdefs.h. */ |
21244 | _ACEOF |
21245 | cat confdefs.h >>conftest.$ac_ext |
21246 | cat >>conftest.$ac_ext <<_ACEOF |
21247 | /* end confdefs.h. */ |
21248 | |
21249 | int |
21250 | main () |
21251 | { |
21252 | pthread_create(); |
21253 | ; |
21254 | return 0; |
21255 | } |
21256 | _ACEOF |
21257 | rm -f conftest.$ac_objext conftest$ac_exeext |
21258 | if { (ac_try="$ac_link" |
21259 | case "(($ac_try" in |
21260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21261 | *) ac_try_echo=$ac_try;; |
21262 | esac |
21263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21264 | (eval "$ac_link") 2>conftest.er1 |
21265 | ac_status=$? |
21266 | grep -v '^ *+' conftest.er1 >conftest.err |
21267 | rm -f conftest.er1 |
21268 | cat conftest.err >&5 |
21269 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21270 | (exit $ac_status); } && { |
21271 | test -z "$ac_c_werror_flag" || |
21272 | test ! -s conftest.err |
21273 | } && test -s conftest$ac_exeext && |
21274 | $as_test_x conftest$ac_exeext; then |
21275 | : |
21276 | else |
21277 | echo "$as_me: failed program was:" >&5 |
21278 | sed 's/^/| /' conftest.$ac_ext >&5 |
21279 | |
21280 | |
21281 | LDFLAGS="$LDFLAGS -pthread" |
21282 | cat >conftest.$ac_ext <<_ACEOF |
21283 | /* confdefs.h. */ |
21284 | _ACEOF |
21285 | cat confdefs.h >>conftest.$ac_ext |
21286 | cat >>conftest.$ac_ext <<_ACEOF |
21287 | /* end confdefs.h. */ |
21288 | |
21289 | int |
21290 | main () |
21291 | { |
21292 | pthread_create(); |
21293 | ; |
21294 | return 0; |
21295 | } |
21296 | _ACEOF |
21297 | rm -f conftest.$ac_objext conftest$ac_exeext |
21298 | if { (ac_try="$ac_link" |
21299 | case "(($ac_try" in |
21300 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21301 | *) ac_try_echo=$ac_try;; |
21302 | esac |
21303 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21304 | (eval "$ac_link") 2>conftest.er1 |
21305 | ac_status=$? |
21306 | grep -v '^ *+' conftest.er1 >conftest.err |
21307 | rm -f conftest.er1 |
21308 | cat conftest.err >&5 |
21309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21310 | (exit $ac_status); } && { |
21311 | test -z "$ac_c_werror_flag" || |
21312 | test ! -s conftest.err |
21313 | } && test -s conftest$ac_exeext && |
21314 | $as_test_x conftest$ac_exeext; then |
21315 | : |
21316 | else |
21317 | echo "$as_me: failed program was:" >&5 |
21318 | sed 's/^/| /' conftest.$ac_ext >&5 |
21319 | |
21320 | |
21321 | { { echo "$as_me:$LINENO: error: Unable to link pthread functions" >&5 |
21322 | echo "$as_me: error: Unable to link pthread functions" >&2;} |
21323 | { (exit 1); exit 1; }; } |
21324 | |
21325 | fi |
21326 | |
21327 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
21328 | conftest$ac_exeext conftest.$ac_ext |
21329 | |
21330 | fi |
21331 | |
21332 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
21333 | conftest$ac_exeext conftest.$ac_ext |
21334 | |
21335 | fi |
21336 | |
21337 | |
21338 | { echo "$as_me:$LINENO: checking whether we are using the GNU C Library 2.1 or newer" >&5 |
21339 | echo $ECHO_N "checking whether we are using the GNU C Library 2.1 or newer... $ECHO_C" >&6; } |
21340 | cat >conftest.$ac_ext <<_ACEOF |
21341 | /* confdefs.h. */ |
21342 | _ACEOF |
21343 | cat confdefs.h >>conftest.$ac_ext |
21344 | cat >>conftest.$ac_ext <<_ACEOF |
21345 | /* end confdefs.h. */ |
21346 | |
21347 | #include <features.h> |
21348 | #ifdef __GNU_LIBRARY__ |
21349 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) |
21350 | GLIBC21 |
21351 | #endif |
21352 | #endif |
21353 | |
21354 | _ACEOF |
21355 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
21356 | $EGREP "GLIBC21" >/dev/null 2>&1; then |
21357 | |
21358 | { echo "$as_me:$LINENO: result: yes" >&5 |
21359 | echo "${ECHO_T}yes" >&6; } |
21360 | |
21361 | cat >>confdefs.h <<\_ACEOF |
21362 | #define HAVE_GLIBC21 1 |
21363 | _ACEOF |
21364 | |
21365 | |
21366 | else |
21367 | |
21368 | { echo "$as_me:$LINENO: result: no" >&5 |
21369 | echo "${ECHO_T}no" >&6; } |
21370 | { echo "$as_me:$LINENO: checking for unicode library" >&5 |
21371 | echo $ECHO_N "checking for unicode library... $ECHO_C" >&6; } |
21372 | UNICODE_VERSION=`unicode-config --version` |
21373 | if test $? -eq 0; then |
21374 | |
21375 | cat >>confdefs.h <<\_ACEOF |
21376 | #define HAVE_LIBUNICODE 1 |
21377 | _ACEOF |
21378 | |
21379 | { echo "$as_me:$LINENO: result: $UNICODE_VERSION" >&5 |
21380 | echo "${ECHO_T}$UNICODE_VERSION" >&6; } |
21381 | UNICODE_CFLAGS=`unicode-config --cflags` |
21382 | UNICODE_LIBS=`unicode-config --libs` |
21383 | |
21384 | |
21385 | else |
21386 | { echo "$as_me:$LINENO: result: not present - Teletext search disabled" >&5 |
21387 | echo "${ECHO_T}not present - Teletext search disabled" >&6; } |
21388 | fi |
21389 | |
21390 | fi |
21391 | rm -f conftest* |
21392 | |
21393 | |
21394 | |
21395 | if test "X$prefix" = "XNONE"; then |
21396 | acl_final_prefix="$ac_default_prefix" |
21397 | else |
21398 | acl_final_prefix="$prefix" |
21399 | fi |
21400 | if test "X$exec_prefix" = "XNONE"; then |
21401 | acl_final_exec_prefix='${prefix}' |
21402 | else |
21403 | acl_final_exec_prefix="$exec_prefix" |
21404 | fi |
21405 | acl_save_prefix="$prefix" |
21406 | prefix="$acl_final_prefix" |
21407 | eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" |
21408 | prefix="$acl_save_prefix" |
21409 | |
21410 | |
21411 | # Check whether --with-gnu-ld was given. |
21412 | if test "${with_gnu_ld+set}" = set; then |
21413 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
21414 | else |
21415 | with_gnu_ld=no |
21416 | fi |
21417 | |
21418 | # Prepare PATH_SEPARATOR. |
21419 | # The user is always right. |
21420 | if test "${PATH_SEPARATOR+set}" != set; then |
21421 | echo "#! /bin/sh" >conf$$.sh |
21422 | echo "exit 0" >>conf$$.sh |
21423 | chmod +x conf$$.sh |
21424 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
21425 | PATH_SEPARATOR=';' |
21426 | else |
21427 | PATH_SEPARATOR=: |
21428 | fi |
21429 | rm -f conf$$.sh |
21430 | fi |
21431 | ac_prog=ld |
21432 | if test "$GCC" = yes; then |
21433 | # Check if gcc -print-prog-name=ld gives a path. |
21434 | { echo "$as_me:$LINENO: checking for ld used by GCC" >&5 |
21435 | echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; } |
21436 | case $host in |
21437 | *-*-mingw*) |
21438 | # gcc leaves a trailing carriage return which upsets mingw |
21439 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
21440 | *) |
21441 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
21442 | esac |
21443 | case $ac_prog in |
21444 | # Accept absolute paths. |
21445 | [\\/]* | [A-Za-z]:[\\/]*) |
21446 | re_direlt='/[^/][^/]*/\.\./' |
21447 | # Canonicalize the path of ld |
21448 | ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` |
21449 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
21450 | ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` |
21451 | done |
21452 | test -z "$LD" && LD="$ac_prog" |
21453 | ;; |
21454 | "") |
21455 | # If it fails, then pretend we aren't using GCC. |
21456 | ac_prog=ld |
21457 | ;; |
21458 | *) |
21459 | # If it is relative, then search for the first ld in PATH. |
21460 | with_gnu_ld=unknown |
21461 | ;; |
21462 | esac |
21463 | elif test "$with_gnu_ld" = yes; then |
21464 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
21465 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
21466 | else |
21467 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
21468 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
21469 | fi |
21470 | if test "${acl_cv_path_LD+set}" = set; then |
21471 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21472 | else |
21473 | if test -z "$LD"; then |
21474 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" |
21475 | for ac_dir in $PATH; do |
21476 | test -z "$ac_dir" && ac_dir=. |
21477 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
21478 | acl_cv_path_LD="$ac_dir/$ac_prog" |
21479 | # Check to see if the program is GNU ld. I'd rather use --version, |
21480 | # but apparently some GNU ld's only accept -v. |
21481 | # Break only if it was the GNU/non-GNU ld that we prefer. |
21482 | case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in |
21483 | *GNU* | *'with BFD'*) |
21484 | test "$with_gnu_ld" != no && break ;; |
21485 | *) |
21486 | test "$with_gnu_ld" != yes && break ;; |
21487 | esac |
21488 | fi |
21489 | done |
21490 | IFS="$ac_save_ifs" |
21491 | else |
21492 | acl_cv_path_LD="$LD" # Let the user override the test with a path. |
21493 | fi |
21494 | fi |
21495 | |
21496 | LD="$acl_cv_path_LD" |
21497 | if test -n "$LD"; then |
21498 | { echo "$as_me:$LINENO: result: $LD" >&5 |
21499 | echo "${ECHO_T}$LD" >&6; } |
21500 | else |
21501 | { echo "$as_me:$LINENO: result: no" >&5 |
21502 | echo "${ECHO_T}no" >&6; } |
21503 | fi |
21504 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
21505 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
21506 | { (exit 1); exit 1; }; } |
21507 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
21508 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
21509 | if test "${acl_cv_prog_gnu_ld+set}" = set; then |
21510 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21511 | else |
21512 | # I'd rather use --version here, but apparently some GNU ld's only accept -v. |
21513 | case `$LD -v 2>&1 </dev/null` in |
21514 | *GNU* | *'with BFD'*) |
21515 | acl_cv_prog_gnu_ld=yes ;; |
21516 | *) |
21517 | acl_cv_prog_gnu_ld=no ;; |
21518 | esac |
21519 | fi |
21520 | { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5 |
21521 | echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; } |
21522 | with_gnu_ld=$acl_cv_prog_gnu_ld |
21523 | |
21524 | |
21525 | |
21526 | |
21527 | { echo "$as_me:$LINENO: checking for shared library run path origin" >&5 |
21528 | echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; } |
21529 | if test "${acl_cv_rpath+set}" = set; then |
21530 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21531 | else |
21532 | |
21533 | CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ |
21534 | ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh |
21535 | . ./conftest.sh |
21536 | rm -f ./conftest.sh |
21537 | acl_cv_rpath=done |
21538 | |
21539 | fi |
21540 | { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5 |
21541 | echo "${ECHO_T}$acl_cv_rpath" >&6; } |
21542 | wl="$acl_cv_wl" |
21543 | libext="$acl_cv_libext" |
21544 | shlibext="$acl_cv_shlibext" |
21545 | hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" |
21546 | hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" |
21547 | hardcode_direct="$acl_cv_hardcode_direct" |
21548 | hardcode_minus_L="$acl_cv_hardcode_minus_L" |
21549 | # Check whether --enable-rpath was given. |
21550 | if test "${enable_rpath+set}" = set; then |
21551 | enableval=$enable_rpath; : |
21552 | else |
21553 | enable_rpath=yes |
21554 | fi |
21555 | |
21556 | |
21557 | |
21558 | acl_libdirstem=lib |
21559 | searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` |
21560 | if test -n "$searchpath"; then |
21561 | acl_save_IFS="${IFS= }"; IFS=":" |
21562 | for searchdir in $searchpath; do |
21563 | if test -d "$searchdir"; then |
21564 | case "$searchdir" in |
21565 | */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; |
21566 | *) searchdir=`cd "$searchdir" && pwd` |
21567 | case "$searchdir" in |
21568 | */lib64 ) acl_libdirstem=lib64 ;; |
21569 | esac ;; |
21570 | esac |
21571 | fi |
21572 | done |
21573 | IFS="$acl_save_IFS" |
21574 | fi |
21575 | |
21576 | |
21577 | |
21578 | |
21579 | |
21580 | |
21581 | |
21582 | |
21583 | use_additional=yes |
21584 | |
21585 | acl_save_prefix="$prefix" |
21586 | prefix="$acl_final_prefix" |
21587 | acl_save_exec_prefix="$exec_prefix" |
21588 | exec_prefix="$acl_final_exec_prefix" |
21589 | |
21590 | eval additional_includedir=\"$includedir\" |
21591 | eval additional_libdir=\"$libdir\" |
21592 | |
21593 | exec_prefix="$acl_save_exec_prefix" |
21594 | prefix="$acl_save_prefix" |
21595 | |
21596 | |
21597 | # Check whether --with-libiconv-prefix was given. |
21598 | if test "${with_libiconv_prefix+set}" = set; then |
21599 | withval=$with_libiconv_prefix; |
21600 | if test "X$withval" = "Xno"; then |
21601 | use_additional=no |
21602 | else |
21603 | if test "X$withval" = "X"; then |
21604 | |
21605 | acl_save_prefix="$prefix" |
21606 | prefix="$acl_final_prefix" |
21607 | acl_save_exec_prefix="$exec_prefix" |
21608 | exec_prefix="$acl_final_exec_prefix" |
21609 | |
21610 | eval additional_includedir=\"$includedir\" |
21611 | eval additional_libdir=\"$libdir\" |
21612 | |
21613 | exec_prefix="$acl_save_exec_prefix" |
21614 | prefix="$acl_save_prefix" |
21615 | |
21616 | else |
21617 | additional_includedir="$withval/include" |
21618 | additional_libdir="$withval/$acl_libdirstem" |
21619 | fi |
21620 | fi |
21621 | |
21622 | fi |
21623 | |
21624 | LIBICONV= |
21625 | LTLIBICONV= |
21626 | INCICONV= |
21627 | rpathdirs= |
21628 | ltrpathdirs= |
21629 | names_already_handled= |
21630 | names_next_round='iconv ' |
21631 | while test -n "$names_next_round"; do |
21632 | names_this_round="$names_next_round" |
21633 | names_next_round= |
21634 | for name in $names_this_round; do |
21635 | already_handled= |
21636 | for n in $names_already_handled; do |
21637 | if test "$n" = "$name"; then |
21638 | already_handled=yes |
21639 | break |
21640 | fi |
21641 | done |
21642 | if test -z "$already_handled"; then |
21643 | names_already_handled="$names_already_handled $name" |
21644 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
21645 | eval value=\"\$HAVE_LIB$uppername\" |
21646 | if test -n "$value"; then |
21647 | if test "$value" = yes; then |
21648 | eval value=\"\$LIB$uppername\" |
21649 | test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" |
21650 | eval value=\"\$LTLIB$uppername\" |
21651 | test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" |
21652 | else |
21653 | : |
21654 | fi |
21655 | else |
21656 | found_dir= |
21657 | found_la= |
21658 | found_so= |
21659 | found_a= |
21660 | if test $use_additional = yes; then |
21661 | if test -n "$shlibext" \ |
21662 | && { test -f "$additional_libdir/lib$name.$shlibext" \ |
21663 | || { test "$shlibext" = dll \ |
21664 | && test -f "$additional_libdir/lib$name.dll.a"; }; }; then |
21665 | found_dir="$additional_libdir" |
21666 | if test -f "$additional_libdir/lib$name.$shlibext"; then |
21667 | found_so="$additional_libdir/lib$name.$shlibext" |
21668 | else |
21669 | found_so="$additional_libdir/lib$name.dll.a" |
21670 | fi |
21671 | if test -f "$additional_libdir/lib$name.la"; then |
21672 | found_la="$additional_libdir/lib$name.la" |
21673 | fi |
21674 | else |
21675 | if test -f "$additional_libdir/lib$name.$libext"; then |
21676 | found_dir="$additional_libdir" |
21677 | found_a="$additional_libdir/lib$name.$libext" |
21678 | if test -f "$additional_libdir/lib$name.la"; then |
21679 | found_la="$additional_libdir/lib$name.la" |
21680 | fi |
21681 | fi |
21682 | fi |
21683 | fi |
21684 | if test "X$found_dir" = "X"; then |
21685 | for x in $LDFLAGS $LTLIBICONV; do |
21686 | |
21687 | acl_save_prefix="$prefix" |
21688 | prefix="$acl_final_prefix" |
21689 | acl_save_exec_prefix="$exec_prefix" |
21690 | exec_prefix="$acl_final_exec_prefix" |
21691 | eval x=\"$x\" |
21692 | exec_prefix="$acl_save_exec_prefix" |
21693 | prefix="$acl_save_prefix" |
21694 | |
21695 | case "$x" in |
21696 | -L*) |
21697 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
21698 | if test -n "$shlibext" \ |
21699 | && { test -f "$dir/lib$name.$shlibext" \ |
21700 | || { test "$shlibext" = dll \ |
21701 | && test -f "$dir/lib$name.dll.a"; }; }; then |
21702 | found_dir="$dir" |
21703 | if test -f "$dir/lib$name.$shlibext"; then |
21704 | found_so="$dir/lib$name.$shlibext" |
21705 | else |
21706 | found_so="$dir/lib$name.dll.a" |
21707 | fi |
21708 | if test -f "$dir/lib$name.la"; then |
21709 | found_la="$dir/lib$name.la" |
21710 | fi |
21711 | else |
21712 | if test -f "$dir/lib$name.$libext"; then |
21713 | found_dir="$dir" |
21714 | found_a="$dir/lib$name.$libext" |
21715 | if test -f "$dir/lib$name.la"; then |
21716 | found_la="$dir/lib$name.la" |
21717 | fi |
21718 | fi |
21719 | fi |
21720 | ;; |
21721 | esac |
21722 | if test "X$found_dir" != "X"; then |
21723 | break |
21724 | fi |
21725 | done |
21726 | fi |
21727 | if test "X$found_dir" != "X"; then |
21728 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" |
21729 | if test "X$found_so" != "X"; then |
21730 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then |
21731 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
21732 | else |
21733 | haveit= |
21734 | for x in $ltrpathdirs; do |
21735 | if test "X$x" = "X$found_dir"; then |
21736 | haveit=yes |
21737 | break |
21738 | fi |
21739 | done |
21740 | if test -z "$haveit"; then |
21741 | ltrpathdirs="$ltrpathdirs $found_dir" |
21742 | fi |
21743 | if test "$hardcode_direct" = yes; then |
21744 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
21745 | else |
21746 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
21747 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
21748 | haveit= |
21749 | for x in $rpathdirs; do |
21750 | if test "X$x" = "X$found_dir"; then |
21751 | haveit=yes |
21752 | break |
21753 | fi |
21754 | done |
21755 | if test -z "$haveit"; then |
21756 | rpathdirs="$rpathdirs $found_dir" |
21757 | fi |
21758 | else |
21759 | haveit= |
21760 | for x in $LDFLAGS $LIBICONV; do |
21761 | |
21762 | acl_save_prefix="$prefix" |
21763 | prefix="$acl_final_prefix" |
21764 | acl_save_exec_prefix="$exec_prefix" |
21765 | exec_prefix="$acl_final_exec_prefix" |
21766 | eval x=\"$x\" |
21767 | exec_prefix="$acl_save_exec_prefix" |
21768 | prefix="$acl_save_prefix" |
21769 | |
21770 | if test "X$x" = "X-L$found_dir"; then |
21771 | haveit=yes |
21772 | break |
21773 | fi |
21774 | done |
21775 | if test -z "$haveit"; then |
21776 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" |
21777 | fi |
21778 | if test "$hardcode_minus_L" != no; then |
21779 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" |
21780 | else |
21781 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
21782 | fi |
21783 | fi |
21784 | fi |
21785 | fi |
21786 | else |
21787 | if test "X$found_a" != "X"; then |
21788 | LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" |
21789 | else |
21790 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" |
21791 | fi |
21792 | fi |
21793 | additional_includedir= |
21794 | case "$found_dir" in |
21795 | */$acl_libdirstem | */$acl_libdirstem/) |
21796 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
21797 | additional_includedir="$basedir/include" |
21798 | ;; |
21799 | esac |
21800 | if test "X$additional_includedir" != "X"; then |
21801 | if test "X$additional_includedir" != "X/usr/include"; then |
21802 | haveit= |
21803 | if test "X$additional_includedir" = "X/usr/local/include"; then |
21804 | if test -n "$GCC"; then |
21805 | case $host_os in |
21806 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
21807 | esac |
21808 | fi |
21809 | fi |
21810 | if test -z "$haveit"; then |
21811 | for x in $CPPFLAGS $INCICONV; do |
21812 | |
21813 | acl_save_prefix="$prefix" |
21814 | prefix="$acl_final_prefix" |
21815 | acl_save_exec_prefix="$exec_prefix" |
21816 | exec_prefix="$acl_final_exec_prefix" |
21817 | eval x=\"$x\" |
21818 | exec_prefix="$acl_save_exec_prefix" |
21819 | prefix="$acl_save_prefix" |
21820 | |
21821 | if test "X$x" = "X-I$additional_includedir"; then |
21822 | haveit=yes |
21823 | break |
21824 | fi |
21825 | done |
21826 | if test -z "$haveit"; then |
21827 | if test -d "$additional_includedir"; then |
21828 | INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" |
21829 | fi |
21830 | fi |
21831 | fi |
21832 | fi |
21833 | fi |
21834 | if test -n "$found_la"; then |
21835 | save_libdir="$libdir" |
21836 | case "$found_la" in |
21837 | */* | *\\*) . "$found_la" ;; |
21838 | *) . "./$found_la" ;; |
21839 | esac |
21840 | libdir="$save_libdir" |
21841 | for dep in $dependency_libs; do |
21842 | case "$dep" in |
21843 | -L*) |
21844 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
21845 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then |
21846 | haveit= |
21847 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then |
21848 | if test -n "$GCC"; then |
21849 | case $host_os in |
21850 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
21851 | esac |
21852 | fi |
21853 | fi |
21854 | if test -z "$haveit"; then |
21855 | haveit= |
21856 | for x in $LDFLAGS $LIBICONV; do |
21857 | |
21858 | acl_save_prefix="$prefix" |
21859 | prefix="$acl_final_prefix" |
21860 | acl_save_exec_prefix="$exec_prefix" |
21861 | exec_prefix="$acl_final_exec_prefix" |
21862 | eval x=\"$x\" |
21863 | exec_prefix="$acl_save_exec_prefix" |
21864 | prefix="$acl_save_prefix" |
21865 | |
21866 | if test "X$x" = "X-L$additional_libdir"; then |
21867 | haveit=yes |
21868 | break |
21869 | fi |
21870 | done |
21871 | if test -z "$haveit"; then |
21872 | if test -d "$additional_libdir"; then |
21873 | LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" |
21874 | fi |
21875 | fi |
21876 | haveit= |
21877 | for x in $LDFLAGS $LTLIBICONV; do |
21878 | |
21879 | acl_save_prefix="$prefix" |
21880 | prefix="$acl_final_prefix" |
21881 | acl_save_exec_prefix="$exec_prefix" |
21882 | exec_prefix="$acl_final_exec_prefix" |
21883 | eval x=\"$x\" |
21884 | exec_prefix="$acl_save_exec_prefix" |
21885 | prefix="$acl_save_prefix" |
21886 | |
21887 | if test "X$x" = "X-L$additional_libdir"; then |
21888 | haveit=yes |
21889 | break |
21890 | fi |
21891 | done |
21892 | if test -z "$haveit"; then |
21893 | if test -d "$additional_libdir"; then |
21894 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" |
21895 | fi |
21896 | fi |
21897 | fi |
21898 | fi |
21899 | ;; |
21900 | -R*) |
21901 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
21902 | if test "$enable_rpath" != no; then |
21903 | haveit= |
21904 | for x in $rpathdirs; do |
21905 | if test "X$x" = "X$dir"; then |
21906 | haveit=yes |
21907 | break |
21908 | fi |
21909 | done |
21910 | if test -z "$haveit"; then |
21911 | rpathdirs="$rpathdirs $dir" |
21912 | fi |
21913 | haveit= |
21914 | for x in $ltrpathdirs; do |
21915 | if test "X$x" = "X$dir"; then |
21916 | haveit=yes |
21917 | break |
21918 | fi |
21919 | done |
21920 | if test -z "$haveit"; then |
21921 | ltrpathdirs="$ltrpathdirs $dir" |
21922 | fi |
21923 | fi |
21924 | ;; |
21925 | -l*) |
21926 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
21927 | ;; |
21928 | *.la) |
21929 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
21930 | ;; |
21931 | *) |
21932 | LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" |
21933 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" |
21934 | ;; |
21935 | esac |
21936 | done |
21937 | fi |
21938 | else |
21939 | LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" |
21940 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" |
21941 | fi |
21942 | fi |
21943 | fi |
21944 | done |
21945 | done |
21946 | if test "X$rpathdirs" != "X"; then |
21947 | if test -n "$hardcode_libdir_separator"; then |
21948 | alldirs= |
21949 | for found_dir in $rpathdirs; do |
21950 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
21951 | done |
21952 | acl_save_libdir="$libdir" |
21953 | libdir="$alldirs" |
21954 | eval flag=\"$hardcode_libdir_flag_spec\" |
21955 | libdir="$acl_save_libdir" |
21956 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
21957 | else |
21958 | for found_dir in $rpathdirs; do |
21959 | acl_save_libdir="$libdir" |
21960 | libdir="$found_dir" |
21961 | eval flag=\"$hardcode_libdir_flag_spec\" |
21962 | libdir="$acl_save_libdir" |
21963 | LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" |
21964 | done |
21965 | fi |
21966 | fi |
21967 | if test "X$ltrpathdirs" != "X"; then |
21968 | for found_dir in $ltrpathdirs; do |
21969 | LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" |
21970 | done |
21971 | fi |
21972 | |
21973 | |
21974 | |
21975 | |
21976 | |
21977 | |
21978 | am_save_CPPFLAGS="$CPPFLAGS" |
21979 | |
21980 | for element in $INCICONV; do |
21981 | haveit= |
21982 | for x in $CPPFLAGS; do |
21983 | |
21984 | acl_save_prefix="$prefix" |
21985 | prefix="$acl_final_prefix" |
21986 | acl_save_exec_prefix="$exec_prefix" |
21987 | exec_prefix="$acl_final_exec_prefix" |
21988 | eval x=\"$x\" |
21989 | exec_prefix="$acl_save_exec_prefix" |
21990 | prefix="$acl_save_prefix" |
21991 | |
21992 | if test "X$x" = "X$element"; then |
21993 | haveit=yes |
21994 | break |
21995 | fi |
21996 | done |
21997 | if test -z "$haveit"; then |
21998 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
21999 | fi |
22000 | done |
22001 | |
22002 | |
22003 | { echo "$as_me:$LINENO: checking for iconv" >&5 |
22004 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } |
22005 | if test "${am_cv_func_iconv+set}" = set; then |
22006 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22007 | else |
22008 | |
22009 | am_cv_func_iconv="no, consider installing GNU libiconv" |
22010 | am_cv_lib_iconv=no |
22011 | cat >conftest.$ac_ext <<_ACEOF |
22012 | /* confdefs.h. */ |
22013 | _ACEOF |
22014 | cat confdefs.h >>conftest.$ac_ext |
22015 | cat >>conftest.$ac_ext <<_ACEOF |
22016 | /* end confdefs.h. */ |
22017 | #include <stdlib.h> |
22018 | #include <iconv.h> |
22019 | int |
22020 | main () |
22021 | { |
22022 | iconv_t cd = iconv_open("",""); |
22023 | iconv(cd,NULL,NULL,NULL,NULL); |
22024 | iconv_close(cd); |
22025 | ; |
22026 | return 0; |
22027 | } |
22028 | _ACEOF |
22029 | rm -f conftest.$ac_objext conftest$ac_exeext |
22030 | if { (ac_try="$ac_link" |
22031 | case "(($ac_try" in |
22032 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22033 | *) ac_try_echo=$ac_try;; |
22034 | esac |
22035 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22036 | (eval "$ac_link") 2>conftest.er1 |
22037 | ac_status=$? |
22038 | grep -v '^ *+' conftest.er1 >conftest.err |
22039 | rm -f conftest.er1 |
22040 | cat conftest.err >&5 |
22041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22042 | (exit $ac_status); } && { |
22043 | test -z "$ac_c_werror_flag" || |
22044 | test ! -s conftest.err |
22045 | } && test -s conftest$ac_exeext && |
22046 | $as_test_x conftest$ac_exeext; then |
22047 | am_cv_func_iconv=yes |
22048 | else |
22049 | echo "$as_me: failed program was:" >&5 |
22050 | sed 's/^/| /' conftest.$ac_ext >&5 |
22051 | |
22052 | |
22053 | fi |
22054 | |
22055 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
22056 | conftest$ac_exeext conftest.$ac_ext |
22057 | if test "$am_cv_func_iconv" != yes; then |
22058 | am_save_LIBS="$LIBS" |
22059 | LIBS="$LIBS $LIBICONV" |
22060 | cat >conftest.$ac_ext <<_ACEOF |
22061 | /* confdefs.h. */ |
22062 | _ACEOF |
22063 | cat confdefs.h >>conftest.$ac_ext |
22064 | cat >>conftest.$ac_ext <<_ACEOF |
22065 | /* end confdefs.h. */ |
22066 | #include <stdlib.h> |
22067 | #include <iconv.h> |
22068 | int |
22069 | main () |
22070 | { |
22071 | iconv_t cd = iconv_open("",""); |
22072 | iconv(cd,NULL,NULL,NULL,NULL); |
22073 | iconv_close(cd); |
22074 | ; |
22075 | return 0; |
22076 | } |
22077 | _ACEOF |
22078 | rm -f conftest.$ac_objext conftest$ac_exeext |
22079 | if { (ac_try="$ac_link" |
22080 | case "(($ac_try" in |
22081 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22082 | *) ac_try_echo=$ac_try;; |
22083 | esac |
22084 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22085 | (eval "$ac_link") 2>conftest.er1 |
22086 | ac_status=$? |
22087 | grep -v '^ *+' conftest.er1 >conftest.err |
22088 | rm -f conftest.er1 |
22089 | cat conftest.err >&5 |
22090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22091 | (exit $ac_status); } && { |
22092 | test -z "$ac_c_werror_flag" || |
22093 | test ! -s conftest.err |
22094 | } && test -s conftest$ac_exeext && |
22095 | $as_test_x conftest$ac_exeext; then |
22096 | am_cv_lib_iconv=yes |
22097 | am_cv_func_iconv=yes |
22098 | else |
22099 | echo "$as_me: failed program was:" >&5 |
22100 | sed 's/^/| /' conftest.$ac_ext >&5 |
22101 | |
22102 | |
22103 | fi |
22104 | |
22105 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
22106 | conftest$ac_exeext conftest.$ac_ext |
22107 | LIBS="$am_save_LIBS" |
22108 | fi |
22109 | |
22110 | fi |
22111 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
22112 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } |
22113 | if test "$am_cv_func_iconv" = yes; then |
22114 | |
22115 | cat >>confdefs.h <<\_ACEOF |
22116 | #define HAVE_ICONV 1 |
22117 | _ACEOF |
22118 | |
22119 | fi |
22120 | if test "$am_cv_lib_iconv" = yes; then |
22121 | { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
22122 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } |
22123 | { echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
22124 | echo "${ECHO_T}$LIBICONV" >&6; } |
22125 | else |
22126 | CPPFLAGS="$am_save_CPPFLAGS" |
22127 | LIBICONV= |
22128 | LTLIBICONV= |
22129 | fi |
22130 | |
22131 | |
22132 | |
22133 | if test "x$am_cv_func_iconv" != xyes; then |
22134 | { { echo "$as_me:$LINENO: error: iconv() not found" >&5 |
22135 | echo "$as_me: error: iconv() not found" >&2;} |
22136 | { (exit 1); exit 1; }; } |
22137 | fi |
22138 | LIBS="$LIBS $LIBICONV" |
22139 | |
22140 | HAVE_PNG="yes" |
22141 | { echo "$as_me:$LINENO: checking for png_destroy_write_struct in -lpng" >&5 |
22142 | echo $ECHO_N "checking for png_destroy_write_struct in -lpng... $ECHO_C" >&6; } |
22143 | if test "${ac_cv_lib_png_png_destroy_write_struct+set}" = set; then |
22144 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22145 | else |
22146 | ac_check_lib_save_LIBS=$LIBS |
22147 | LIBS="-lpng -lz -lm $LIBS" |
22148 | cat >conftest.$ac_ext <<_ACEOF |
22149 | /* confdefs.h. */ |
22150 | _ACEOF |
22151 | cat confdefs.h >>conftest.$ac_ext |
22152 | cat >>conftest.$ac_ext <<_ACEOF |
22153 | /* end confdefs.h. */ |
22154 | |
22155 | /* Override any GCC internal prototype to avoid an error. |
22156 | Use char because int might match the return type of a GCC |
22157 | builtin and then its argument prototype would still apply. */ |
22158 | #ifdef __cplusplus |
22159 | extern "C" |
22160 | #endif |
22161 | char png_destroy_write_struct (); |
22162 | int |
22163 | main () |
22164 | { |
22165 | return png_destroy_write_struct (); |
22166 | ; |
22167 | return 0; |
22168 | } |
22169 | _ACEOF |
22170 | rm -f conftest.$ac_objext conftest$ac_exeext |
22171 | if { (ac_try="$ac_link" |
22172 | case "(($ac_try" in |
22173 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22174 | *) ac_try_echo=$ac_try;; |
22175 | esac |
22176 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22177 | (eval "$ac_link") 2>conftest.er1 |
22178 | ac_status=$? |
22179 | grep -v '^ *+' conftest.er1 >conftest.err |
22180 | rm -f conftest.er1 |
22181 | cat conftest.err >&5 |
22182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22183 | (exit $ac_status); } && { |
22184 | test -z "$ac_c_werror_flag" || |
22185 | test ! -s conftest.err |
22186 | } && test -s conftest$ac_exeext && |
22187 | $as_test_x conftest$ac_exeext; then |
22188 | ac_cv_lib_png_png_destroy_write_struct=yes |
22189 | else |
22190 | echo "$as_me: failed program was:" >&5 |
22191 | sed 's/^/| /' conftest.$ac_ext >&5 |
22192 | |
22193 | ac_cv_lib_png_png_destroy_write_struct=no |
22194 | fi |
22195 | |
22196 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
22197 | conftest$ac_exeext conftest.$ac_ext |
22198 | LIBS=$ac_check_lib_save_LIBS |
22199 | fi |
22200 | { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_destroy_write_struct" >&5 |
22201 | echo "${ECHO_T}$ac_cv_lib_png_png_destroy_write_struct" >&6; } |
22202 | if test $ac_cv_lib_png_png_destroy_write_struct = yes; then |
22203 | LIBS="$LIBS -lpng -lz" |
22204 | else |
22205 | HAVE_PNG="no" |
22206 | fi |
22207 | |
22208 | if test "x$HAVE_PNG" = xyes; then |
22209 | |
22210 | cat >>confdefs.h <<\_ACEOF |
22211 | #define HAVE_LIBPNG 1 |
22212 | _ACEOF |
22213 | |
22214 | fi |
22215 | |
22216 | { echo "$as_me:$LINENO: checking for X" >&5 |
22217 | echo $ECHO_N "checking for X... $ECHO_C" >&6; } |
22218 | |
22219 | |
22220 | # Check whether --with-x was given. |
22221 | if test "${with_x+set}" = set; then |
22222 | withval=$with_x; |
22223 | fi |
22224 | |
22225 | # $have_x is `yes', `no', `disabled', or empty when we do not yet know. |
22226 | if test "x$with_x" = xno; then |
22227 | # The user explicitly disabled X. |
22228 | have_x=disabled |
22229 | else |
22230 | case $x_includes,$x_libraries in #( |
22231 | *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5 |
22232 | echo "$as_me: error: Cannot use X directory names containing '" >&2;} |
22233 | { (exit 1); exit 1; }; };; #( |
22234 | *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then |
22235 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22236 | else |
22237 | # One or both of the vars are not set, and there is no cached value. |
22238 | ac_x_includes=no ac_x_libraries=no |
22239 | rm -f -r conftest.dir |
22240 | if mkdir conftest.dir; then |
22241 | cd conftest.dir |
22242 | cat >Imakefile <<'_ACEOF' |
22243 | incroot: |
22244 | @echo incroot='${INCROOT}' |
22245 | usrlibdir: |
22246 | @echo usrlibdir='${USRLIBDIR}' |
22247 | libdir: |
22248 | @echo libdir='${LIBDIR}' |
22249 | _ACEOF |
22250 | if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then |
22251 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
22252 | for ac_var in incroot usrlibdir libdir; do |
22253 | eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" |
22254 | done |
22255 | # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. |
22256 | for ac_extension in a so sl; do |
22257 | if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && |
22258 | test -f "$ac_im_libdir/libX11.$ac_extension"; then |
22259 | ac_im_usrlibdir=$ac_im_libdir; break |
22260 | fi |
22261 | done |
22262 | # Screen out bogus values from the imake configuration. They are |
22263 | # bogus both because they are the default anyway, and because |
22264 | # using them would break gcc on systems where it needs fixed includes. |
22265 | case $ac_im_incroot in |
22266 | /usr/include) ac_x_includes= ;; |
22267 | *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; |
22268 | esac |
22269 | case $ac_im_usrlibdir in |
22270 | /usr/lib | /lib) ;; |
22271 | *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; |
22272 | esac |
22273 | fi |
22274 | cd .. |
22275 | rm -f -r conftest.dir |
22276 | fi |
22277 | |
22278 | # Standard set of common directories for X headers. |
22279 | # Check X11 before X11Rn because it is often a symlink to the current release. |
22280 | ac_x_header_dirs=' |
22281 | /usr/X11/include |
22282 | /usr/X11R6/include |
22283 | /usr/X11R5/include |
22284 | /usr/X11R4/include |
22285 | |
22286 | /usr/include/X11 |
22287 | /usr/include/X11R6 |
22288 | /usr/include/X11R5 |
22289 | /usr/include/X11R4 |
22290 | |
22291 | /usr/local/X11/include |
22292 | /usr/local/X11R6/include |
22293 | /usr/local/X11R5/include |
22294 | /usr/local/X11R4/include |
22295 | |
22296 | /usr/local/include/X11 |
22297 | /usr/local/include/X11R6 |
22298 | /usr/local/include/X11R5 |
22299 | /usr/local/include/X11R4 |
22300 | |
22301 | /usr/X386/include |
22302 | /usr/x386/include |
22303 | /usr/XFree86/include/X11 |
22304 | |
22305 | /usr/include |
22306 | /usr/local/include |
22307 | /usr/unsupported/include |
22308 | /usr/athena/include |
22309 | /usr/local/x11r5/include |
22310 | /usr/lpp/Xamples/include |
22311 | |
22312 | /usr/openwin/include |
22313 | /usr/openwin/share/include' |
22314 | |
22315 | if test "$ac_x_includes" = no; then |
22316 | # Guess where to find include files, by looking for Xlib.h. |
22317 | # First, try using that file with no special directory specified. |
22318 | cat >conftest.$ac_ext <<_ACEOF |
22319 | /* confdefs.h. */ |
22320 | _ACEOF |
22321 | cat confdefs.h >>conftest.$ac_ext |
22322 | cat >>conftest.$ac_ext <<_ACEOF |
22323 | /* end confdefs.h. */ |
22324 | #include <X11/Xlib.h> |
22325 | _ACEOF |
22326 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22327 | case "(($ac_try" in |
22328 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22329 | *) ac_try_echo=$ac_try;; |
22330 | esac |
22331 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22332 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
22333 | ac_status=$? |
22334 | grep -v '^ *+' conftest.er1 >conftest.err |
22335 | rm -f conftest.er1 |
22336 | cat conftest.err >&5 |
22337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22338 | (exit $ac_status); } >/dev/null && { |
22339 | test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || |
22340 | test ! -s conftest.err |
22341 | }; then |
22342 | # We can compile using X headers with no special include directory. |
22343 | ac_x_includes= |
22344 | else |
22345 | echo "$as_me: failed program was:" >&5 |
22346 | sed 's/^/| /' conftest.$ac_ext >&5 |
22347 | |
22348 | for ac_dir in $ac_x_header_dirs; do |
22349 | if test -r "$ac_dir/X11/Xlib.h"; then |
22350 | ac_x_includes=$ac_dir |
22351 | break |
22352 | fi |
22353 | done |
22354 | fi |
22355 | |
22356 | rm -f conftest.err conftest.$ac_ext |
22357 | fi # $ac_x_includes = no |
22358 | |
22359 | if test "$ac_x_libraries" = no; then |
22360 | # Check for the libraries. |
22361 | # See if we find them without any special options. |
22362 | # Don't add to $LIBS permanently. |
22363 | ac_save_LIBS=$LIBS |
22364 | LIBS="-lX11 $LIBS" |
22365 | cat >conftest.$ac_ext <<_ACEOF |
22366 | /* confdefs.h. */ |
22367 | _ACEOF |
22368 | cat confdefs.h >>conftest.$ac_ext |
22369 | cat >>conftest.$ac_ext <<_ACEOF |
22370 | /* end confdefs.h. */ |
22371 | #include <X11/Xlib.h> |
22372 | int |
22373 | main () |
22374 | { |
22375 | XrmInitialize () |
22376 | ; |
22377 | return 0; |
22378 | } |
22379 | _ACEOF |
22380 | rm -f conftest.$ac_objext conftest$ac_exeext |
22381 | if { (ac_try="$ac_link" |
22382 | case "(($ac_try" in |
22383 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22384 | *) ac_try_echo=$ac_try;; |
22385 | esac |
22386 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22387 | (eval "$ac_link") 2>conftest.er1 |
22388 | ac_status=$? |
22389 | grep -v '^ *+' conftest.er1 >conftest.err |
22390 | rm -f conftest.er1 |
22391 | cat conftest.err >&5 |
22392 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22393 | (exit $ac_status); } && { |
22394 | test -z "$ac_c_werror_flag" || |
22395 | test ! -s conftest.err |
22396 | } && test -s conftest$ac_exeext && |
22397 | $as_test_x conftest$ac_exeext; then |
22398 | LIBS=$ac_save_LIBS |
22399 | # We can link X programs with no special library path. |
22400 | ac_x_libraries= |
22401 | else |
22402 | echo "$as_me: failed program was:" >&5 |
22403 | sed 's/^/| /' conftest.$ac_ext >&5 |
22404 | |
22405 | LIBS=$ac_save_LIBS |
22406 | for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` |
22407 | do |
22408 | # Don't even attempt the hair of trying to link an X program! |
22409 | for ac_extension in a so sl; do |
22410 | if test -r "$ac_dir/libX11.$ac_extension"; then |
22411 | ac_x_libraries=$ac_dir |
22412 | break 2 |
22413 | fi |
22414 | done |
22415 | done |
22416 | fi |
22417 | |
22418 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
22419 | conftest$ac_exeext conftest.$ac_ext |
22420 | fi # $ac_x_libraries = no |
22421 | |
22422 | case $ac_x_includes,$ac_x_libraries in #( |
22423 | no,* | *,no | *\'*) |
22424 | # Didn't find X, or a directory has "'" in its name. |
22425 | ac_cv_have_x="have_x=no";; #( |
22426 | *) |
22427 | # Record where we found X for the cache. |
22428 | ac_cv_have_x="have_x=yes\ |
22429 | ac_x_includes='$ac_x_includes'\ |
22430 | ac_x_libraries='$ac_x_libraries'" |
22431 | esac |
22432 | fi |
22433 | ;; #( |
22434 | *) have_x=yes;; |
22435 | esac |
22436 | eval "$ac_cv_have_x" |
22437 | fi # $with_x != no |
22438 | |
22439 | if test "$have_x" != yes; then |
22440 | { echo "$as_me:$LINENO: result: $have_x" >&5 |
22441 | echo "${ECHO_T}$have_x" >&6; } |
22442 | no_x=yes |
22443 | else |
22444 | # If each of the values was on the command line, it overrides each guess. |
22445 | test "x$x_includes" = xNONE && x_includes=$ac_x_includes |
22446 | test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries |
22447 | # Update the cache value to reflect the command line values. |
22448 | ac_cv_have_x="have_x=yes\ |
22449 | ac_x_includes='$x_includes'\ |
22450 | ac_x_libraries='$x_libraries'" |
22451 | { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5 |
22452 | echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; } |
22453 | fi |
22454 | |
22455 | if test "$no_x" = yes; then |
22456 | # Not all programs may use this symbol, but it does not hurt to define it. |
22457 | |
22458 | cat >>confdefs.h <<\_ACEOF |
22459 | #define X_DISPLAY_MISSING 1 |
22460 | _ACEOF |
22461 | |
22462 | X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= |
22463 | else |
22464 | if test -n "$x_includes"; then |
22465 | X_CFLAGS="$X_CFLAGS -I$x_includes" |
22466 | fi |
22467 | |
22468 | # It would also be nice to do this for all -L options, not just this one. |
22469 | if test -n "$x_libraries"; then |
22470 | X_LIBS="$X_LIBS -L$x_libraries" |
22471 | # For Solaris; some versions of Sun CC require a space after -R and |
22472 | # others require no space. Words are not sufficient . . . . |
22473 | { echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5 |
22474 | echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6; } |
22475 | ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" |
22476 | ac_xsave_c_werror_flag=$ac_c_werror_flag |
22477 | ac_c_werror_flag=yes |
22478 | cat >conftest.$ac_ext <<_ACEOF |
22479 | /* confdefs.h. */ |
22480 | _ACEOF |
22481 | cat confdefs.h >>conftest.$ac_ext |
22482 | cat >>conftest.$ac_ext <<_ACEOF |
22483 | /* end confdefs.h. */ |
22484 | |
22485 | int |
22486 | main () |
22487 | { |
22488 | |
22489 | ; |
22490 | return 0; |
22491 | } |
22492 | _ACEOF |
22493 | rm -f conftest.$ac_objext conftest$ac_exeext |
22494 | if { (ac_try="$ac_link" |
22495 | case "(($ac_try" in |
22496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22497 | *) ac_try_echo=$ac_try;; |
22498 | esac |
22499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22500 | (eval "$ac_link") 2>conftest.er1 |
22501 | ac_status=$? |
22502 | grep -v '^ *+' conftest.er1 >conftest.err |
22503 | rm -f conftest.er1 |
22504 | cat conftest.err >&5 |
22505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22506 | (exit $ac_status); } && { |
22507 | test -z "$ac_c_werror_flag" || |
22508 | test ! -s conftest.err |
22509 | } && test -s conftest$ac_exeext && |
22510 | $as_test_x conftest$ac_exeext; then |
22511 | { echo "$as_me:$LINENO: result: no" >&5 |
22512 | echo "${ECHO_T}no" >&6; } |
22513 | X_LIBS="$X_LIBS -R$x_libraries" |
22514 | else |
22515 | echo "$as_me: failed program was:" >&5 |
22516 | sed 's/^/| /' conftest.$ac_ext >&5 |
22517 | |
22518 | LIBS="$ac_xsave_LIBS -R $x_libraries" |
22519 | cat >conftest.$ac_ext <<_ACEOF |
22520 | /* confdefs.h. */ |
22521 | _ACEOF |
22522 | cat confdefs.h >>conftest.$ac_ext |
22523 | cat >>conftest.$ac_ext <<_ACEOF |
22524 | /* end confdefs.h. */ |
22525 | |
22526 | int |
22527 | main () |
22528 | { |
22529 | |
22530 | ; |
22531 | return 0; |
22532 | } |
22533 | _ACEOF |
22534 | rm -f conftest.$ac_objext conftest$ac_exeext |
22535 | if { (ac_try="$ac_link" |
22536 | case "(($ac_try" in |
22537 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22538 | *) ac_try_echo=$ac_try;; |
22539 | esac |
22540 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22541 | (eval "$ac_link") 2>conftest.er1 |
22542 | ac_status=$? |
22543 | grep -v '^ *+' conftest.er1 >conftest.err |
22544 | rm -f conftest.er1 |
22545 | cat conftest.err >&5 |
22546 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22547 | (exit $ac_status); } && { |
22548 | test -z "$ac_c_werror_flag" || |
22549 | test ! -s conftest.err |
22550 | } && test -s conftest$ac_exeext && |
22551 | $as_test_x conftest$ac_exeext; then |
22552 | { echo "$as_me:$LINENO: result: yes" >&5 |
22553 | echo "${ECHO_T}yes" >&6; } |
22554 | X_LIBS="$X_LIBS -R $x_libraries" |
22555 | else |
22556 | echo "$as_me: failed program was:" >&5 |
22557 | sed 's/^/| /' conftest.$ac_ext >&5 |
22558 | |
22559 | { echo "$as_me:$LINENO: result: neither works" >&5 |
22560 | echo "${ECHO_T}neither works" >&6; } |
22561 | fi |
22562 | |
22563 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
22564 | conftest$ac_exeext conftest.$ac_ext |
22565 | fi |
22566 | |
22567 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
22568 | conftest$ac_exeext conftest.$ac_ext |
22569 | ac_c_werror_flag=$ac_xsave_c_werror_flag |
22570 | LIBS=$ac_xsave_LIBS |
22571 | fi |
22572 | |
22573 | # Check for system-dependent libraries X programs must link with. |
22574 | # Do this before checking for the system-independent R6 libraries |
22575 | # (-lICE), since we may need -lsocket or whatever for X linking. |
22576 | |
22577 | if test "$ISC" = yes; then |
22578 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" |
22579 | else |
22580 | # Martyn Johnson says this is needed for Ultrix, if the X |
22581 | # libraries were built with DECnet support. And Karl Berry says |
22582 | # the Alpha needs dnet_stub (dnet does not exist). |
22583 | ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" |
22584 | cat >conftest.$ac_ext <<_ACEOF |
22585 | /* confdefs.h. */ |
22586 | _ACEOF |
22587 | cat confdefs.h >>conftest.$ac_ext |
22588 | cat >>conftest.$ac_ext <<_ACEOF |
22589 | /* end confdefs.h. */ |
22590 | |
22591 | /* Override any GCC internal prototype to avoid an error. |
22592 | Use char because int might match the return type of a GCC |
22593 | builtin and then its argument prototype would still apply. */ |
22594 | #ifdef __cplusplus |
22595 | extern "C" |
22596 | #endif |
22597 | char XOpenDisplay (); |
22598 | int |
22599 | main () |
22600 | { |
22601 | return XOpenDisplay (); |
22602 | ; |
22603 | return 0; |
22604 | } |
22605 | _ACEOF |
22606 | rm -f conftest.$ac_objext conftest$ac_exeext |
22607 | if { (ac_try="$ac_link" |
22608 | case "(($ac_try" in |
22609 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22610 | *) ac_try_echo=$ac_try;; |
22611 | esac |
22612 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22613 | (eval "$ac_link") 2>conftest.er1 |
22614 | ac_status=$? |
22615 | grep -v '^ *+' conftest.er1 >conftest.err |
22616 | rm -f conftest.er1 |
22617 | cat conftest.err >&5 |
22618 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22619 | (exit $ac_status); } && { |
22620 | test -z "$ac_c_werror_flag" || |
22621 | test ! -s conftest.err |
22622 | } && test -s conftest$ac_exeext && |
22623 | $as_test_x conftest$ac_exeext; then |
22624 | : |
22625 | else |
22626 | echo "$as_me: failed program was:" >&5 |
22627 | sed 's/^/| /' conftest.$ac_ext >&5 |
22628 | |
22629 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5 |
22630 | echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; } |
22631 | if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then |
22632 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22633 | else |
22634 | ac_check_lib_save_LIBS=$LIBS |
22635 | LIBS="-ldnet $LIBS" |
22636 | cat >conftest.$ac_ext <<_ACEOF |
22637 | /* confdefs.h. */ |
22638 | _ACEOF |
22639 | cat confdefs.h >>conftest.$ac_ext |
22640 | cat >>conftest.$ac_ext <<_ACEOF |
22641 | /* end confdefs.h. */ |
22642 | |
22643 | /* Override any GCC internal prototype to avoid an error. |
22644 | Use char because int might match the return type of a GCC |
22645 | builtin and then its argument prototype would still apply. */ |
22646 | #ifdef __cplusplus |
22647 | extern "C" |
22648 | #endif |
22649 | char dnet_ntoa (); |
22650 | int |
22651 | main () |
22652 | { |
22653 | return dnet_ntoa (); |
22654 | ; |
22655 | return 0; |
22656 | } |
22657 | _ACEOF |
22658 | rm -f conftest.$ac_objext conftest$ac_exeext |
22659 | if { (ac_try="$ac_link" |
22660 | case "(($ac_try" in |
22661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22662 | *) ac_try_echo=$ac_try;; |
22663 | esac |
22664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22665 | (eval "$ac_link") 2>conftest.er1 |
22666 | ac_status=$? |
22667 | grep -v '^ *+' conftest.er1 >conftest.err |
22668 | rm -f conftest.er1 |
22669 | cat conftest.err >&5 |
22670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22671 | (exit $ac_status); } && { |
22672 | test -z "$ac_c_werror_flag" || |
22673 | test ! -s conftest.err |
22674 | } && test -s conftest$ac_exeext && |
22675 | $as_test_x conftest$ac_exeext; then |
22676 | ac_cv_lib_dnet_dnet_ntoa=yes |
22677 | else |
22678 | echo "$as_me: failed program was:" >&5 |
22679 | sed 's/^/| /' conftest.$ac_ext >&5 |
22680 | |
22681 | ac_cv_lib_dnet_dnet_ntoa=no |
22682 | fi |
22683 | |
22684 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
22685 | conftest$ac_exeext conftest.$ac_ext |
22686 | LIBS=$ac_check_lib_save_LIBS |
22687 | fi |
22688 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 |
22689 | echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; } |
22690 | if test $ac_cv_lib_dnet_dnet_ntoa = yes; then |
22691 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" |
22692 | fi |
22693 | |
22694 | if test $ac_cv_lib_dnet_dnet_ntoa = no; then |
22695 | { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5 |
22696 | echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6; } |
22697 | if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then |
22698 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22699 | else |
22700 | ac_check_lib_save_LIBS=$LIBS |
22701 | LIBS="-ldnet_stub $LIBS" |
22702 | cat >conftest.$ac_ext <<_ACEOF |
22703 | /* confdefs.h. */ |
22704 | _ACEOF |
22705 | cat confdefs.h >>conftest.$ac_ext |
22706 | cat >>conftest.$ac_ext <<_ACEOF |
22707 | /* end confdefs.h. */ |
22708 | |
22709 | /* Override any GCC internal prototype to avoid an error. |
22710 | Use char because int might match the return type of a GCC |
22711 | builtin and then its argument prototype would still apply. */ |
22712 | #ifdef __cplusplus |
22713 | extern "C" |
22714 | #endif |
22715 | char dnet_ntoa (); |
22716 | int |
22717 | main () |
22718 | { |
22719 | return dnet_ntoa (); |
22720 | ; |
22721 | return 0; |
22722 | } |
22723 | _ACEOF |
22724 | rm -f conftest.$ac_objext conftest$ac_exeext |
22725 | if { (ac_try="$ac_link" |
22726 | case "(($ac_try" in |
22727 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22728 | *) ac_try_echo=$ac_try;; |
22729 | esac |
22730 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22731 | (eval "$ac_link") 2>conftest.er1 |
22732 | ac_status=$? |
22733 | grep -v '^ *+' conftest.er1 >conftest.err |
22734 | rm -f conftest.er1 |
22735 | cat conftest.err >&5 |
22736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22737 | (exit $ac_status); } && { |
22738 | test -z "$ac_c_werror_flag" || |
22739 | test ! -s conftest.err |
22740 | } && test -s conftest$ac_exeext && |
22741 | $as_test_x conftest$ac_exeext; then |
22742 | ac_cv_lib_dnet_stub_dnet_ntoa=yes |
22743 | else |
22744 | echo "$as_me: failed program was:" >&5 |
22745 | sed 's/^/| /' conftest.$ac_ext >&5 |
22746 | |
22747 | ac_cv_lib_dnet_stub_dnet_ntoa=no |
22748 | fi |
22749 | |
22750 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
22751 | conftest$ac_exeext conftest.$ac_ext |
22752 | LIBS=$ac_check_lib_save_LIBS |
22753 | fi |
22754 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 |
22755 | echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } |
22756 | if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then |
22757 | X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" |
22758 | fi |
22759 | |
22760 | fi |
22761 | fi |
22762 | |
22763 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
22764 | conftest$ac_exeext conftest.$ac_ext |
22765 | LIBS="$ac_xsave_LIBS" |
22766 | |
22767 | # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, |
22768 | # to get the SysV transport functions. |
22769 | # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) |
22770 | # needs -lnsl. |
22771 | # The nsl library prevents programs from opening the X display |
22772 | # on Irix 5.2, according to T.E. Dickey. |
22773 | # The functions gethostbyname, getservbyname, and inet_addr are |
22774 | # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. |
22775 | { echo "$as_me:$LINENO: checking for gethostbyname" >&5 |
22776 | echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6; } |
22777 | if test "${ac_cv_func_gethostbyname+set}" = set; then |
22778 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22779 | else |
22780 | cat >conftest.$ac_ext <<_ACEOF |
22781 | /* confdefs.h. */ |
22782 | _ACEOF |
22783 | cat confdefs.h >>conftest.$ac_ext |
22784 | cat >>conftest.$ac_ext <<_ACEOF |
22785 | /* end confdefs.h. */ |
22786 | /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname. |
22787 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
22788 | #define gethostbyname innocuous_gethostbyname |
22789 | |
22790 | /* System header to define __stub macros and hopefully few prototypes, |
22791 | which can conflict with char gethostbyname (); below. |
22792 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
22793 | <limits.h> exists even on freestanding compilers. */ |
22794 | |
22795 | #ifdef __STDC__ |
22796 | # include <limits.h> |
22797 | #else |
22798 | # include <assert.h> |
22799 | #endif |
22800 | |
22801 | #undef gethostbyname |
22802 | |
22803 | /* Override any GCC internal prototype to avoid an error. |
22804 | Use char because int might match the return type of a GCC |
22805 | builtin and then its argument prototype would still apply. */ |
22806 | #ifdef __cplusplus |
22807 | extern "C" |
22808 | #endif |
22809 | char gethostbyname (); |
22810 | /* The GNU C library defines this for functions which it implements |
22811 | to always fail with ENOSYS. Some functions are actually named |
22812 | something starting with __ and the normal name is an alias. */ |
22813 | #if defined __stub_gethostbyname || defined __stub___gethostbyname |
22814 | choke me |
22815 | #endif |
22816 | |
22817 | int |
22818 | main () |
22819 | { |
22820 | return gethostbyname (); |
22821 | ; |
22822 | return 0; |
22823 | } |
22824 | _ACEOF |
22825 | rm -f conftest.$ac_objext conftest$ac_exeext |
22826 | if { (ac_try="$ac_link" |
22827 | case "(($ac_try" in |
22828 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22829 | *) ac_try_echo=$ac_try;; |
22830 | esac |
22831 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22832 | (eval "$ac_link") 2>conftest.er1 |
22833 | ac_status=$? |
22834 | grep -v '^ *+' conftest.er1 >conftest.err |
22835 | rm -f conftest.er1 |
22836 | cat conftest.err >&5 |
22837 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22838 | (exit $ac_status); } && { |
22839 | test -z "$ac_c_werror_flag" || |
22840 | test ! -s conftest.err |
22841 | } && test -s conftest$ac_exeext && |
22842 | $as_test_x conftest$ac_exeext; then |
22843 | ac_cv_func_gethostbyname=yes |
22844 | else |
22845 | echo "$as_me: failed program was:" >&5 |
22846 | sed 's/^/| /' conftest.$ac_ext >&5 |
22847 | |
22848 | ac_cv_func_gethostbyname=no |
22849 | fi |
22850 | |
22851 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
22852 | conftest$ac_exeext conftest.$ac_ext |
22853 | fi |
22854 | { echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5 |
22855 | echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6; } |
22856 | |
22857 | if test $ac_cv_func_gethostbyname = no; then |
22858 | { echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 |
22859 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6; } |
22860 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then |
22861 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22862 | else |
22863 | ac_check_lib_save_LIBS=$LIBS |
22864 | LIBS="-lnsl $LIBS" |
22865 | cat >conftest.$ac_ext <<_ACEOF |
22866 | /* confdefs.h. */ |
22867 | _ACEOF |
22868 | cat confdefs.h >>conftest.$ac_ext |
22869 | cat >>conftest.$ac_ext <<_ACEOF |
22870 | /* end confdefs.h. */ |
22871 | |
22872 | /* Override any GCC internal prototype to avoid an error. |
22873 | Use char because int might match the return type of a GCC |
22874 | builtin and then its argument prototype would still apply. */ |
22875 | #ifdef __cplusplus |
22876 | extern "C" |
22877 | #endif |
22878 | char gethostbyname (); |
22879 | int |
22880 | main () |
22881 | { |
22882 | return gethostbyname (); |
22883 | ; |
22884 | return 0; |
22885 | } |
22886 | _ACEOF |
22887 | rm -f conftest.$ac_objext conftest$ac_exeext |
22888 | if { (ac_try="$ac_link" |
22889 | case "(($ac_try" in |
22890 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22891 | *) ac_try_echo=$ac_try;; |
22892 | esac |
22893 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22894 | (eval "$ac_link") 2>conftest.er1 |
22895 | ac_status=$? |
22896 | grep -v '^ *+' conftest.er1 >conftest.err |
22897 | rm -f conftest.er1 |
22898 | cat conftest.err >&5 |
22899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22900 | (exit $ac_status); } && { |
22901 | test -z "$ac_c_werror_flag" || |
22902 | test ! -s conftest.err |
22903 | } && test -s conftest$ac_exeext && |
22904 | $as_test_x conftest$ac_exeext; then |
22905 | ac_cv_lib_nsl_gethostbyname=yes |
22906 | else |
22907 | echo "$as_me: failed program was:" >&5 |
22908 | sed 's/^/| /' conftest.$ac_ext >&5 |
22909 | |
22910 | ac_cv_lib_nsl_gethostbyname=no |
22911 | fi |
22912 | |
22913 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
22914 | conftest$ac_exeext conftest.$ac_ext |
22915 | LIBS=$ac_check_lib_save_LIBS |
22916 | fi |
22917 | { echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 |
22918 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6; } |
22919 | if test $ac_cv_lib_nsl_gethostbyname = yes; then |
22920 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" |
22921 | fi |
22922 | |
22923 | if test $ac_cv_lib_nsl_gethostbyname = no; then |
22924 | { echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5 |
22925 | echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6; } |
22926 | if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then |
22927 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22928 | else |
22929 | ac_check_lib_save_LIBS=$LIBS |
22930 | LIBS="-lbsd $LIBS" |
22931 | cat >conftest.$ac_ext <<_ACEOF |
22932 | /* confdefs.h. */ |
22933 | _ACEOF |
22934 | cat confdefs.h >>conftest.$ac_ext |
22935 | cat >>conftest.$ac_ext <<_ACEOF |
22936 | /* end confdefs.h. */ |
22937 | |
22938 | /* Override any GCC internal prototype to avoid an error. |
22939 | Use char because int might match the return type of a GCC |
22940 | builtin and then its argument prototype would still apply. */ |
22941 | #ifdef __cplusplus |
22942 | extern "C" |
22943 | #endif |
22944 | char gethostbyname (); |
22945 | int |
22946 | main () |
22947 | { |
22948 | return gethostbyname (); |
22949 | ; |
22950 | return 0; |
22951 | } |
22952 | _ACEOF |
22953 | rm -f conftest.$ac_objext conftest$ac_exeext |
22954 | if { (ac_try="$ac_link" |
22955 | case "(($ac_try" in |
22956 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22957 | *) ac_try_echo=$ac_try;; |
22958 | esac |
22959 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22960 | (eval "$ac_link") 2>conftest.er1 |
22961 | ac_status=$? |
22962 | grep -v '^ *+' conftest.er1 >conftest.err |
22963 | rm -f conftest.er1 |
22964 | cat conftest.err >&5 |
22965 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22966 | (exit $ac_status); } && { |
22967 | test -z "$ac_c_werror_flag" || |
22968 | test ! -s conftest.err |
22969 | } && test -s conftest$ac_exeext && |
22970 | $as_test_x conftest$ac_exeext; then |
22971 | ac_cv_lib_bsd_gethostbyname=yes |
22972 | else |
22973 | echo "$as_me: failed program was:" >&5 |
22974 | sed 's/^/| /' conftest.$ac_ext >&5 |
22975 | |
22976 | ac_cv_lib_bsd_gethostbyname=no |
22977 | fi |
22978 | |
22979 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
22980 | conftest$ac_exeext conftest.$ac_ext |
22981 | LIBS=$ac_check_lib_save_LIBS |
22982 | fi |
22983 | { echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5 |
22984 | echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6; } |
22985 | if test $ac_cv_lib_bsd_gethostbyname = yes; then |
22986 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" |
22987 | fi |
22988 | |
22989 | fi |
22990 | fi |
22991 | |
22992 | # lieder@skyler.mavd.honeywell.com says without -lsocket, |
22993 | # socket/setsockopt and other routines are undefined under SCO ODT |
22994 | # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary |
22995 | # on later versions), says Simon Leinen: it contains gethostby* |
22996 | # variants that don't use the name server (or something). -lsocket |
22997 | # must be given before -lnsl if both are needed. We assume that |
22998 | # if connect needs -lnsl, so does gethostbyname. |
22999 | { echo "$as_me:$LINENO: checking for connect" >&5 |
23000 | echo $ECHO_N "checking for connect... $ECHO_C" >&6; } |
23001 | if test "${ac_cv_func_connect+set}" = set; then |
23002 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23003 | else |
23004 | cat >conftest.$ac_ext <<_ACEOF |
23005 | /* confdefs.h. */ |
23006 | _ACEOF |
23007 | cat confdefs.h >>conftest.$ac_ext |
23008 | cat >>conftest.$ac_ext <<_ACEOF |
23009 | /* end confdefs.h. */ |
23010 | /* Define connect to an innocuous variant, in case <limits.h> declares connect. |
23011 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
23012 | #define connect innocuous_connect |
23013 | |
23014 | /* System header to define __stub macros and hopefully few prototypes, |
23015 | which can conflict with char connect (); below. |
23016 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
23017 | <limits.h> exists even on freestanding compilers. */ |
23018 | |
23019 | #ifdef __STDC__ |
23020 | # include <limits.h> |
23021 | #else |
23022 | # include <assert.h> |
23023 | #endif |
23024 | |
23025 | #undef connect |
23026 | |
23027 | /* Override any GCC internal prototype to avoid an error. |
23028 | Use char because int might match the return type of a GCC |
23029 | builtin and then its argument prototype would still apply. */ |
23030 | #ifdef __cplusplus |
23031 | extern "C" |
23032 | #endif |
23033 | char connect (); |
23034 | /* The GNU C library defines this for functions which it implements |
23035 | to always fail with ENOSYS. Some functions are actually named |
23036 | something starting with __ and the normal name is an alias. */ |
23037 | #if defined __stub_connect || defined __stub___connect |
23038 | choke me |
23039 | #endif |
23040 | |
23041 | int |
23042 | main () |
23043 | { |
23044 | return connect (); |
23045 | ; |
23046 | return 0; |
23047 | } |
23048 | _ACEOF |
23049 | rm -f conftest.$ac_objext conftest$ac_exeext |
23050 | if { (ac_try="$ac_link" |
23051 | case "(($ac_try" in |
23052 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23053 | *) ac_try_echo=$ac_try;; |
23054 | esac |
23055 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23056 | (eval "$ac_link") 2>conftest.er1 |
23057 | ac_status=$? |
23058 | grep -v '^ *+' conftest.er1 >conftest.err |
23059 | rm -f conftest.er1 |
23060 | cat conftest.err >&5 |
23061 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23062 | (exit $ac_status); } && { |
23063 | test -z "$ac_c_werror_flag" || |
23064 | test ! -s conftest.err |
23065 | } && test -s conftest$ac_exeext && |
23066 | $as_test_x conftest$ac_exeext; then |
23067 | ac_cv_func_connect=yes |
23068 | else |
23069 | echo "$as_me: failed program was:" >&5 |
23070 | sed 's/^/| /' conftest.$ac_ext >&5 |
23071 | |
23072 | ac_cv_func_connect=no |
23073 | fi |
23074 | |
23075 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
23076 | conftest$ac_exeext conftest.$ac_ext |
23077 | fi |
23078 | { echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5 |
23079 | echo "${ECHO_T}$ac_cv_func_connect" >&6; } |
23080 | |
23081 | if test $ac_cv_func_connect = no; then |
23082 | { echo "$as_me:$LINENO: checking for connect in -lsocket" >&5 |
23083 | echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6; } |
23084 | if test "${ac_cv_lib_socket_connect+set}" = set; then |
23085 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23086 | else |
23087 | ac_check_lib_save_LIBS=$LIBS |
23088 | LIBS="-lsocket $X_EXTRA_LIBS $LIBS" |
23089 | cat >conftest.$ac_ext <<_ACEOF |
23090 | /* confdefs.h. */ |
23091 | _ACEOF |
23092 | cat confdefs.h >>conftest.$ac_ext |
23093 | cat >>conftest.$ac_ext <<_ACEOF |
23094 | /* end confdefs.h. */ |
23095 | |
23096 | /* Override any GCC internal prototype to avoid an error. |
23097 | Use char because int might match the return type of a GCC |
23098 | builtin and then its argument prototype would still apply. */ |
23099 | #ifdef __cplusplus |
23100 | extern "C" |
23101 | #endif |
23102 | char connect (); |
23103 | int |
23104 | main () |
23105 | { |
23106 | return connect (); |
23107 | ; |
23108 | return 0; |
23109 | } |
23110 | _ACEOF |
23111 | rm -f conftest.$ac_objext conftest$ac_exeext |
23112 | if { (ac_try="$ac_link" |
23113 | case "(($ac_try" in |
23114 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23115 | *) ac_try_echo=$ac_try;; |
23116 | esac |
23117 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23118 | (eval "$ac_link") 2>conftest.er1 |
23119 | ac_status=$? |
23120 | grep -v '^ *+' conftest.er1 >conftest.err |
23121 | rm -f conftest.er1 |
23122 | cat conftest.err >&5 |
23123 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23124 | (exit $ac_status); } && { |
23125 | test -z "$ac_c_werror_flag" || |
23126 | test ! -s conftest.err |
23127 | } && test -s conftest$ac_exeext && |
23128 | $as_test_x conftest$ac_exeext; then |
23129 | ac_cv_lib_socket_connect=yes |
23130 | else |
23131 | echo "$as_me: failed program was:" >&5 |
23132 | sed 's/^/| /' conftest.$ac_ext >&5 |
23133 | |
23134 | ac_cv_lib_socket_connect=no |
23135 | fi |
23136 | |
23137 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
23138 | conftest$ac_exeext conftest.$ac_ext |
23139 | LIBS=$ac_check_lib_save_LIBS |
23140 | fi |
23141 | { echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5 |
23142 | echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6; } |
23143 | if test $ac_cv_lib_socket_connect = yes; then |
23144 | X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" |
23145 | fi |
23146 | |
23147 | fi |
23148 | |
23149 | # Guillermo Gomez says -lposix is necessary on A/UX. |
23150 | { echo "$as_me:$LINENO: checking for remove" >&5 |
23151 | echo $ECHO_N "checking for remove... $ECHO_C" >&6; } |
23152 | if test "${ac_cv_func_remove+set}" = set; then |
23153 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23154 | else |
23155 | cat >conftest.$ac_ext <<_ACEOF |
23156 | /* confdefs.h. */ |
23157 | _ACEOF |
23158 | cat confdefs.h >>conftest.$ac_ext |
23159 | cat >>conftest.$ac_ext <<_ACEOF |
23160 | /* end confdefs.h. */ |
23161 | /* Define remove to an innocuous variant, in case <limits.h> declares remove. |
23162 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
23163 | #define remove innocuous_remove |
23164 | |
23165 | /* System header to define __stub macros and hopefully few prototypes, |
23166 | which can conflict with char remove (); below. |
23167 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
23168 | <limits.h> exists even on freestanding compilers. */ |
23169 | |
23170 | #ifdef __STDC__ |
23171 | # include <limits.h> |
23172 | #else |
23173 | # include <assert.h> |
23174 | #endif |
23175 | |
23176 | #undef remove |
23177 | |
23178 | /* Override any GCC internal prototype to avoid an error. |
23179 | Use char because int might match the return type of a GCC |
23180 | builtin and then its argument prototype would still apply. */ |
23181 | #ifdef __cplusplus |
23182 | extern "C" |
23183 | #endif |
23184 | char remove (); |
23185 | /* The GNU C library defines this for functions which it implements |
23186 | to always fail with ENOSYS. Some functions are actually named |
23187 | something starting with __ and the normal name is an alias. */ |
23188 | #if defined __stub_remove || defined __stub___remove |
23189 | choke me |
23190 | #endif |
23191 | |
23192 | int |
23193 | main () |
23194 | { |
23195 | return remove (); |
23196 | ; |
23197 | return 0; |
23198 | } |
23199 | _ACEOF |
23200 | rm -f conftest.$ac_objext conftest$ac_exeext |
23201 | if { (ac_try="$ac_link" |
23202 | case "(($ac_try" in |
23203 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23204 | *) ac_try_echo=$ac_try;; |
23205 | esac |
23206 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23207 | (eval "$ac_link") 2>conftest.er1 |
23208 | ac_status=$? |
23209 | grep -v '^ *+' conftest.er1 >conftest.err |
23210 | rm -f conftest.er1 |
23211 | cat conftest.err >&5 |
23212 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23213 | (exit $ac_status); } && { |
23214 | test -z "$ac_c_werror_flag" || |
23215 | test ! -s conftest.err |
23216 | } && test -s conftest$ac_exeext && |
23217 | $as_test_x conftest$ac_exeext; then |
23218 | ac_cv_func_remove=yes |
23219 | else |
23220 | echo "$as_me: failed program was:" >&5 |
23221 | sed 's/^/| /' conftest.$ac_ext >&5 |
23222 | |
23223 | ac_cv_func_remove=no |
23224 | fi |
23225 | |
23226 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
23227 | conftest$ac_exeext conftest.$ac_ext |
23228 | fi |
23229 | { echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5 |
23230 | echo "${ECHO_T}$ac_cv_func_remove" >&6; } |
23231 | |
23232 | if test $ac_cv_func_remove = no; then |
23233 | { echo "$as_me:$LINENO: checking for remove in -lposix" >&5 |
23234 | echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6; } |
23235 | if test "${ac_cv_lib_posix_remove+set}" = set; then |
23236 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23237 | else |
23238 | ac_check_lib_save_LIBS=$LIBS |
23239 | LIBS="-lposix $LIBS" |
23240 | cat >conftest.$ac_ext <<_ACEOF |
23241 | /* confdefs.h. */ |
23242 | _ACEOF |
23243 | cat confdefs.h >>conftest.$ac_ext |
23244 | cat >>conftest.$ac_ext <<_ACEOF |
23245 | /* end confdefs.h. */ |
23246 | |
23247 | /* Override any GCC internal prototype to avoid an error. |
23248 | Use char because int might match the return type of a GCC |
23249 | builtin and then its argument prototype would still apply. */ |
23250 | #ifdef __cplusplus |
23251 | extern "C" |
23252 | #endif |
23253 | char remove (); |
23254 | int |
23255 | main () |
23256 | { |
23257 | return remove (); |
23258 | ; |
23259 | return 0; |
23260 | } |
23261 | _ACEOF |
23262 | rm -f conftest.$ac_objext conftest$ac_exeext |
23263 | if { (ac_try="$ac_link" |
23264 | case "(($ac_try" in |
23265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23266 | *) ac_try_echo=$ac_try;; |
23267 | esac |
23268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23269 | (eval "$ac_link") 2>conftest.er1 |
23270 | ac_status=$? |
23271 | grep -v '^ *+' conftest.er1 >conftest.err |
23272 | rm -f conftest.er1 |
23273 | cat conftest.err >&5 |
23274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23275 | (exit $ac_status); } && { |
23276 | test -z "$ac_c_werror_flag" || |
23277 | test ! -s conftest.err |
23278 | } && test -s conftest$ac_exeext && |
23279 | $as_test_x conftest$ac_exeext; then |
23280 | ac_cv_lib_posix_remove=yes |
23281 | else |
23282 | echo "$as_me: failed program was:" >&5 |
23283 | sed 's/^/| /' conftest.$ac_ext >&5 |
23284 | |
23285 | ac_cv_lib_posix_remove=no |
23286 | fi |
23287 | |
23288 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
23289 | conftest$ac_exeext conftest.$ac_ext |
23290 | LIBS=$ac_check_lib_save_LIBS |
23291 | fi |
23292 | { echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5 |
23293 | echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6; } |
23294 | if test $ac_cv_lib_posix_remove = yes; then |
23295 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" |
23296 | fi |
23297 | |
23298 | fi |
23299 | |
23300 | # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. |
23301 | { echo "$as_me:$LINENO: checking for shmat" >&5 |
23302 | echo $ECHO_N "checking for shmat... $ECHO_C" >&6; } |
23303 | if test "${ac_cv_func_shmat+set}" = set; then |
23304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23305 | else |
23306 | cat >conftest.$ac_ext <<_ACEOF |
23307 | /* confdefs.h. */ |
23308 | _ACEOF |
23309 | cat confdefs.h >>conftest.$ac_ext |
23310 | cat >>conftest.$ac_ext <<_ACEOF |
23311 | /* end confdefs.h. */ |
23312 | /* Define shmat to an innocuous variant, in case <limits.h> declares shmat. |
23313 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
23314 | #define shmat innocuous_shmat |
23315 | |
23316 | /* System header to define __stub macros and hopefully few prototypes, |
23317 | which can conflict with char shmat (); below. |
23318 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
23319 | <limits.h> exists even on freestanding compilers. */ |
23320 | |
23321 | #ifdef __STDC__ |
23322 | # include <limits.h> |
23323 | #else |
23324 | # include <assert.h> |
23325 | #endif |
23326 | |
23327 | #undef shmat |
23328 | |
23329 | /* Override any GCC internal prototype to avoid an error. |
23330 | Use char because int might match the return type of a GCC |
23331 | builtin and then its argument prototype would still apply. */ |
23332 | #ifdef __cplusplus |
23333 | extern "C" |
23334 | #endif |
23335 | char shmat (); |
23336 | /* The GNU C library defines this for functions which it implements |
23337 | to always fail with ENOSYS. Some functions are actually named |
23338 | something starting with __ and the normal name is an alias. */ |
23339 | #if defined __stub_shmat || defined __stub___shmat |
23340 | choke me |
23341 | #endif |
23342 | |
23343 | int |
23344 | main () |
23345 | { |
23346 | return shmat (); |
23347 | ; |
23348 | return 0; |
23349 | } |
23350 | _ACEOF |
23351 | rm -f conftest.$ac_objext conftest$ac_exeext |
23352 | if { (ac_try="$ac_link" |
23353 | case "(($ac_try" in |
23354 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23355 | *) ac_try_echo=$ac_try;; |
23356 | esac |
23357 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23358 | (eval "$ac_link") 2>conftest.er1 |
23359 | ac_status=$? |
23360 | grep -v '^ *+' conftest.er1 >conftest.err |
23361 | rm -f conftest.er1 |
23362 | cat conftest.err >&5 |
23363 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23364 | (exit $ac_status); } && { |
23365 | test -z "$ac_c_werror_flag" || |
23366 | test ! -s conftest.err |
23367 | } && test -s conftest$ac_exeext && |
23368 | $as_test_x conftest$ac_exeext; then |
23369 | ac_cv_func_shmat=yes |
23370 | else |
23371 | echo "$as_me: failed program was:" >&5 |
23372 | sed 's/^/| /' conftest.$ac_ext >&5 |
23373 | |
23374 | ac_cv_func_shmat=no |
23375 | fi |
23376 | |
23377 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
23378 | conftest$ac_exeext conftest.$ac_ext |
23379 | fi |
23380 | { echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5 |
23381 | echo "${ECHO_T}$ac_cv_func_shmat" >&6; } |
23382 | |
23383 | if test $ac_cv_func_shmat = no; then |
23384 | { echo "$as_me:$LINENO: checking for shmat in -lipc" >&5 |
23385 | echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6; } |
23386 | if test "${ac_cv_lib_ipc_shmat+set}" = set; then |
23387 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23388 | else |
23389 | ac_check_lib_save_LIBS=$LIBS |
23390 | LIBS="-lipc $LIBS" |
23391 | cat >conftest.$ac_ext <<_ACEOF |
23392 | /* confdefs.h. */ |
23393 | _ACEOF |
23394 | cat confdefs.h >>conftest.$ac_ext |
23395 | cat >>conftest.$ac_ext <<_ACEOF |
23396 | /* end confdefs.h. */ |
23397 | |
23398 | /* Override any GCC internal prototype to avoid an error. |
23399 | Use char because int might match the return type of a GCC |
23400 | builtin and then its argument prototype would still apply. */ |
23401 | #ifdef __cplusplus |
23402 | extern "C" |
23403 | #endif |
23404 | char shmat (); |
23405 | int |
23406 | main () |
23407 | { |
23408 | return shmat (); |
23409 | ; |
23410 | return 0; |
23411 | } |
23412 | _ACEOF |
23413 | rm -f conftest.$ac_objext conftest$ac_exeext |
23414 | if { (ac_try="$ac_link" |
23415 | case "(($ac_try" in |
23416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23417 | *) ac_try_echo=$ac_try;; |
23418 | esac |
23419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23420 | (eval "$ac_link") 2>conftest.er1 |
23421 | ac_status=$? |
23422 | grep -v '^ *+' conftest.er1 >conftest.err |
23423 | rm -f conftest.er1 |
23424 | cat conftest.err >&5 |
23425 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23426 | (exit $ac_status); } && { |
23427 | test -z "$ac_c_werror_flag" || |
23428 | test ! -s conftest.err |
23429 | } && test -s conftest$ac_exeext && |
23430 | $as_test_x conftest$ac_exeext; then |
23431 | ac_cv_lib_ipc_shmat=yes |
23432 | else |
23433 | echo "$as_me: failed program was:" >&5 |
23434 | sed 's/^/| /' conftest.$ac_ext >&5 |
23435 | |
23436 | ac_cv_lib_ipc_shmat=no |
23437 | fi |
23438 | |
23439 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
23440 | conftest$ac_exeext conftest.$ac_ext |
23441 | LIBS=$ac_check_lib_save_LIBS |
23442 | fi |
23443 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5 |
23444 | echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6; } |
23445 | if test $ac_cv_lib_ipc_shmat = yes; then |
23446 | X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" |
23447 | fi |
23448 | |
23449 | fi |
23450 | fi |
23451 | |
23452 | # Check for libraries that X11R6 Xt/Xaw programs need. |
23453 | ac_save_LDFLAGS=$LDFLAGS |
23454 | test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" |
23455 | # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to |
23456 | # check for ICE first), but we must link in the order -lSM -lICE or |
23457 | # we get undefined symbols. So assume we have SM if we have ICE. |
23458 | # These have to be linked with before -lX11, unlike the other |
23459 | # libraries we check for below, so use a different variable. |
23460 | # John Interrante, Karl Berry |
23461 | { echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5 |
23462 | echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6; } |
23463 | if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then |
23464 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23465 | else |
23466 | ac_check_lib_save_LIBS=$LIBS |
23467 | LIBS="-lICE $X_EXTRA_LIBS $LIBS" |
23468 | cat >conftest.$ac_ext <<_ACEOF |
23469 | /* confdefs.h. */ |
23470 | _ACEOF |
23471 | cat confdefs.h >>conftest.$ac_ext |
23472 | cat >>conftest.$ac_ext <<_ACEOF |
23473 | /* end confdefs.h. */ |
23474 | |
23475 | /* Override any GCC internal prototype to avoid an error. |
23476 | Use char because int might match the return type of a GCC |
23477 | builtin and then its argument prototype would still apply. */ |
23478 | #ifdef __cplusplus |
23479 | extern "C" |
23480 | #endif |
23481 | char IceConnectionNumber (); |
23482 | int |
23483 | main () |
23484 | { |
23485 | return IceConnectionNumber (); |
23486 | ; |
23487 | return 0; |
23488 | } |
23489 | _ACEOF |
23490 | rm -f conftest.$ac_objext conftest$ac_exeext |
23491 | if { (ac_try="$ac_link" |
23492 | case "(($ac_try" in |
23493 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23494 | *) ac_try_echo=$ac_try;; |
23495 | esac |
23496 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23497 | (eval "$ac_link") 2>conftest.er1 |
23498 | ac_status=$? |
23499 | grep -v '^ *+' conftest.er1 >conftest.err |
23500 | rm -f conftest.er1 |
23501 | cat conftest.err >&5 |
23502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23503 | (exit $ac_status); } && { |
23504 | test -z "$ac_c_werror_flag" || |
23505 | test ! -s conftest.err |
23506 | } && test -s conftest$ac_exeext && |
23507 | $as_test_x conftest$ac_exeext; then |
23508 | ac_cv_lib_ICE_IceConnectionNumber=yes |
23509 | else |
23510 | echo "$as_me: failed program was:" >&5 |
23511 | sed 's/^/| /' conftest.$ac_ext >&5 |
23512 | |
23513 | ac_cv_lib_ICE_IceConnectionNumber=no |
23514 | fi |
23515 | |
23516 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
23517 | conftest$ac_exeext conftest.$ac_ext |
23518 | LIBS=$ac_check_lib_save_LIBS |
23519 | fi |
23520 | { echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 |
23521 | echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6; } |
23522 | if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then |
23523 | X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" |
23524 | fi |
23525 | |
23526 | LDFLAGS=$ac_save_LDFLAGS |
23527 | |
23528 | fi |
23529 | |
23530 | test "x$no_x" = xyes || X_LIBS="$X_LIBS -lX11" |
23531 | |
23532 | |
23533 | if test "x$no_x" != xyes; then |
23534 | HAVE_X_TRUE= |
23535 | HAVE_X_FALSE='#' |
23536 | else |
23537 | HAVE_X_TRUE='#' |
23538 | HAVE_X_FALSE= |
23539 | fi |
23540 | |
23541 | |
23542 | enable_v4l_auto=no |
23543 | enable_dvb_auto=no |
23544 | enable_bktr_auto=no |
23545 | enable_proxy_auto=no |
23546 | |
23547 | case "$host_os" in |
23548 | linux*) |
23549 | enable_v4l_auto=yes |
23550 | enable_dvb_auto=yes |
23551 | enable_proxy_auto=yes |
23552 | ;; |
23553 | freebsd* | kfreebsd*-gnu | openbsd* | netbsd*) |
23554 | enable_bktr_auto=yes |
23555 | ;; |
23556 | *) |
23557 | ;; |
23558 | esac |
23559 | |
23560 | { echo "$as_me:$LINENO: checking whether to build the Video4Linux interface" >&5 |
23561 | echo $ECHO_N "checking whether to build the Video4Linux interface... $ECHO_C" >&6; } |
23562 | # Check whether --enable-v4l was given. |
23563 | if test "${enable_v4l+set}" = set; then |
23564 | enableval=$enable_v4l; |
23565 | else |
23566 | enable_v4l=$enable_v4l_auto |
23567 | fi |
23568 | |
23569 | { echo "$as_me:$LINENO: result: $enable_v4l" >&5 |
23570 | echo "${ECHO_T}$enable_v4l" >&6; } |
23571 | if test "x$enable_v4l" = xyes; then |
23572 | |
23573 | cat >>confdefs.h <<\_ACEOF |
23574 | #define ENABLE_V4L 1 |
23575 | _ACEOF |
23576 | |
23577 | |
23578 | cat >>confdefs.h <<\_ACEOF |
23579 | #define ENABLE_V4L2 1 |
23580 | _ACEOF |
23581 | |
23582 | fi |
23583 | |
23584 | { echo "$as_me:$LINENO: checking whether to build the Linux DVB interface" >&5 |
23585 | echo $ECHO_N "checking whether to build the Linux DVB interface... $ECHO_C" >&6; } |
23586 | # Check whether --enable-dvb was given. |
23587 | if test "${enable_dvb+set}" = set; then |
23588 | enableval=$enable_dvb; |
23589 | else |
23590 | enable_dvb=$enable_dvb_auto |
23591 | fi |
23592 | |
23593 | { echo "$as_me:$LINENO: result: $enable_dvb" >&5 |
23594 | echo "${ECHO_T}$enable_dvb" >&6; } |
23595 | if test "x$enable_dvb" = xyes; then |
23596 | |
23597 | cat >>confdefs.h <<\_ACEOF |
23598 | #define ENABLE_DVB 1 |
23599 | _ACEOF |
23600 | |
23601 | fi |
23602 | |
23603 | |
23604 | if test "x$enable_dvb" = xyes; then |
23605 | ENABLE_DVB_TRUE= |
23606 | ENABLE_DVB_FALSE='#' |
23607 | else |
23608 | ENABLE_DVB_TRUE='#' |
23609 | ENABLE_DVB_FALSE= |
23610 | fi |
23611 | |
23612 | |
23613 | { echo "$as_me:$LINENO: checking whether to build the *BSD bktr driver interface" >&5 |
23614 | echo $ECHO_N "checking whether to build the *BSD bktr driver interface... $ECHO_C" >&6; } |
23615 | # Check whether --enable-bktr was given. |
23616 | if test "${enable_bktr+set}" = set; then |
23617 | enableval=$enable_bktr; |
23618 | else |
23619 | enable_bktr=$enable_bktr_auto |
23620 | fi |
23621 | |
23622 | { echo "$as_me:$LINENO: result: $enable_bktr" >&5 |
23623 | echo "${ECHO_T}$enable_bktr" >&6; } |
23624 | if test "x$enable_bktr" = xyes; then |
23625 | |
23626 | cat >>confdefs.h <<\_ACEOF |
23627 | #define ENABLE_BKTR 1 |
23628 | _ACEOF |
23629 | |
23630 | fi |
23631 | |
23632 | |
23633 | if test "x$enable_v4l" = xyes -o "x$enable_dvb" = xyes; then |
23634 | { echo "$as_me:$LINENO: checking if asm/types.h defines __s64 and __u64" >&5 |
23635 | echo $ECHO_N "checking if asm/types.h defines __s64 and __u64... $ECHO_C" >&6; } |
23636 | cat >conftest.$ac_ext <<_ACEOF |
23637 | #include <asm/types.h> |
23638 | __s64 a = 1; |
23639 | __u64 b = 2; |
23640 | |
23641 | _ACEOF |
23642 | rm -f conftest.$ac_objext |
23643 | if { (ac_try="$ac_compile" |
23644 | case "(($ac_try" in |
23645 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23646 | *) ac_try_echo=$ac_try;; |
23647 | esac |
23648 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23649 | (eval "$ac_compile") 2>conftest.er1 |
23650 | ac_status=$? |
23651 | grep -v '^ *+' conftest.er1 >conftest.err |
23652 | rm -f conftest.er1 |
23653 | cat conftest.err >&5 |
23654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23655 | (exit $ac_status); } && { |
23656 | test -z "$ac_c_werror_flag" || |
23657 | test ! -s conftest.err |
23658 | } && test -s conftest.$ac_objext; then |
23659 | |
23660 | cat >>confdefs.h <<\_ACEOF |
23661 | #define HAVE_S64_U64 1 |
23662 | _ACEOF |
23663 | |
23664 | { echo "$as_me:$LINENO: result: yes" >&5 |
23665 | echo "${ECHO_T}yes" >&6; } |
23666 | else |
23667 | echo "$as_me: failed program was:" >&5 |
23668 | sed 's/^/| /' conftest.$ac_ext >&5 |
23669 | |
23670 | { echo "$as_me:$LINENO: result: no" >&5 |
23671 | echo "${ECHO_T}no" >&6; } |
23672 | fi |
23673 | |
23674 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
23675 | fi |
23676 | |
23677 | { echo "$as_me:$LINENO: checking whether to build the vbi proxy daemon and interface" >&5 |
23678 | echo $ECHO_N "checking whether to build the vbi proxy daemon and interface... $ECHO_C" >&6; } |
23679 | # Check whether --enable-proxy was given. |
23680 | if test "${enable_proxy+set}" = set; then |
23681 | enableval=$enable_proxy; |
23682 | else |
23683 | enable_proxy=$enable_proxy_auto |
23684 | fi |
23685 | |
23686 | { echo "$as_me:$LINENO: result: $enable_proxy" >&5 |
23687 | echo "${ECHO_T}$enable_proxy" >&6; } |
23688 | if test "x$enable_proxy" = xyes; then |
23689 | |
23690 | cat >>confdefs.h <<\_ACEOF |
23691 | #define ENABLE_PROXY 1 |
23692 | _ACEOF |
23693 | |
23694 | case "$host_os" in |
23695 | linux*) |
23696 | |
23697 | cat >>confdefs.h <<\_ACEOF |
23698 | #define HAVE_IOCTL_INT_ULONG_DOTS 1 |
23699 | _ACEOF |
23700 | |
23701 | ;; |
23702 | freebsd* | kfreebsd*-gnu | openbsd* | netbsd*) |
23703 | |
23704 | cat >>confdefs.h <<\_ACEOF |
23705 | #define HAVE_IOCTL_INT_ULONG_DOTS 1 |
23706 | _ACEOF |
23707 | |
23708 | ;; |
23709 | *) |
23710 | ;; |
23711 | esac |
23712 | fi |
23713 | |
23714 | |
23715 | if test "x$enable_proxy" = xyes; then |
23716 | ENABLE_PROXY_TRUE= |
23717 | ENABLE_PROXY_FALSE='#' |
23718 | else |
23719 | ENABLE_PROXY_TRUE='#' |
23720 | ENABLE_PROXY_FALSE= |
23721 | fi |
23722 | |
23723 | |
23724 | |
23725 | |
23726 | { echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
23727 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6; } |
23728 | # Check whether --enable-nls was given. |
23729 | if test "${enable_nls+set}" = set; then |
23730 | enableval=$enable_nls; USE_NLS=$enableval |
23731 | else |
23732 | USE_NLS=yes |
23733 | fi |
23734 | |
23735 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
23736 | echo "${ECHO_T}$USE_NLS" >&6; } |
23737 | |
23738 | |
23739 | |
23740 | |
23741 | |
23742 | |
23743 | # Prepare PATH_SEPARATOR. |
23744 | # The user is always right. |
23745 | if test "${PATH_SEPARATOR+set}" != set; then |
23746 | echo "#! /bin/sh" >conf$$.sh |
23747 | echo "exit 0" >>conf$$.sh |
23748 | chmod +x conf$$.sh |
23749 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
23750 | PATH_SEPARATOR=';' |
23751 | else |
23752 | PATH_SEPARATOR=: |
23753 | fi |
23754 | rm -f conf$$.sh |
23755 | fi |
23756 | |
23757 | # Find out how to test for executable files. Don't use a zero-byte file, |
23758 | # as systems may use methods other than mode bits to determine executability. |
23759 | cat >conf$$.file <<_ASEOF |
23760 | #! /bin/sh |
23761 | exit 0 |
23762 | _ASEOF |
23763 | chmod +x conf$$.file |
23764 | if test -x conf$$.file >/dev/null 2>&1; then |
23765 | ac_executable_p="test -x" |
23766 | else |
23767 | ac_executable_p="test -f" |
23768 | fi |
23769 | rm -f conf$$.file |
23770 | |
23771 | # Extract the first word of "msgfmt", so it can be a program name with args. |
23772 | set dummy msgfmt; ac_word=$2 |
23773 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
23774 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
23775 | if test "${ac_cv_path_MSGFMT+set}" = set; then |
23776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23777 | else |
23778 | case "$MSGFMT" in |
23779 | [\\/]* | ?:[\\/]*) |
23780 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. |
23781 | ;; |
23782 | *) |
23783 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
23784 | for ac_dir in $PATH; do |
23785 | IFS="$ac_save_IFS" |
23786 | test -z "$ac_dir" && ac_dir=. |
23787 | for ac_exec_ext in '' $ac_executable_extensions; do |
23788 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
23789 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
23790 | if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && |
23791 | (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
23792 | ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" |
23793 | break 2 |
23794 | fi |
23795 | fi |
23796 | done |
23797 | done |
23798 | IFS="$ac_save_IFS" |
23799 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" |
23800 | ;; |
23801 | esac |
23802 | fi |
23803 | MSGFMT="$ac_cv_path_MSGFMT" |
23804 | if test "$MSGFMT" != ":"; then |
23805 | { echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
23806 | echo "${ECHO_T}$MSGFMT" >&6; } |
23807 | else |
23808 | { echo "$as_me:$LINENO: result: no" >&5 |
23809 | echo "${ECHO_T}no" >&6; } |
23810 | fi |
23811 | |
23812 | # Extract the first word of "gmsgfmt", so it can be a program name with args. |
23813 | set dummy gmsgfmt; ac_word=$2 |
23814 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
23815 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
23816 | if test "${ac_cv_path_GMSGFMT+set}" = set; then |
23817 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23818 | else |
23819 | case $GMSGFMT in |
23820 | [\\/]* | ?:[\\/]*) |
23821 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
23822 | ;; |
23823 | *) |
23824 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
23825 | for as_dir in $PATH |
23826 | do |
23827 | IFS=$as_save_IFS |
23828 | test -z "$as_dir" && as_dir=. |
23829 | for ac_exec_ext in '' $ac_executable_extensions; do |
23830 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
23831 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" |
23832 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
23833 | break 2 |
23834 | fi |
23835 | done |
23836 | done |
23837 | IFS=$as_save_IFS |
23838 | |
23839 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
23840 | ;; |
23841 | esac |
23842 | fi |
23843 | GMSGFMT=$ac_cv_path_GMSGFMT |
23844 | if test -n "$GMSGFMT"; then |
23845 | { echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
23846 | echo "${ECHO_T}$GMSGFMT" >&6; } |
23847 | else |
23848 | { echo "$as_me:$LINENO: result: no" >&5 |
23849 | echo "${ECHO_T}no" >&6; } |
23850 | fi |
23851 | |
23852 | |
23853 | |
23854 | case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
23855 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; |
23856 | *) MSGFMT_015=$MSGFMT ;; |
23857 | esac |
23858 | |
23859 | case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
23860 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; |
23861 | *) GMSGFMT_015=$GMSGFMT ;; |
23862 | esac |
23863 | |
23864 | |
23865 | |
23866 | # Prepare PATH_SEPARATOR. |
23867 | # The user is always right. |
23868 | if test "${PATH_SEPARATOR+set}" != set; then |
23869 | echo "#! /bin/sh" >conf$$.sh |
23870 | echo "exit 0" >>conf$$.sh |
23871 | chmod +x conf$$.sh |
23872 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
23873 | PATH_SEPARATOR=';' |
23874 | else |
23875 | PATH_SEPARATOR=: |
23876 | fi |
23877 | rm -f conf$$.sh |
23878 | fi |
23879 | |
23880 | # Find out how to test for executable files. Don't use a zero-byte file, |
23881 | # as systems may use methods other than mode bits to determine executability. |
23882 | cat >conf$$.file <<_ASEOF |
23883 | #! /bin/sh |
23884 | exit 0 |
23885 | _ASEOF |
23886 | chmod +x conf$$.file |
23887 | if test -x conf$$.file >/dev/null 2>&1; then |
23888 | ac_executable_p="test -x" |
23889 | else |
23890 | ac_executable_p="test -f" |
23891 | fi |
23892 | rm -f conf$$.file |
23893 | |
23894 | # Extract the first word of "xgettext", so it can be a program name with args. |
23895 | set dummy xgettext; ac_word=$2 |
23896 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
23897 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
23898 | if test "${ac_cv_path_XGETTEXT+set}" = set; then |
23899 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23900 | else |
23901 | case "$XGETTEXT" in |
23902 | [\\/]* | ?:[\\/]*) |
23903 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. |
23904 | ;; |
23905 | *) |
23906 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
23907 | for ac_dir in $PATH; do |
23908 | IFS="$ac_save_IFS" |
23909 | test -z "$ac_dir" && ac_dir=. |
23910 | for ac_exec_ext in '' $ac_executable_extensions; do |
23911 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
23912 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
23913 | if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && |
23914 | (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then |
23915 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" |
23916 | break 2 |
23917 | fi |
23918 | fi |
23919 | done |
23920 | done |
23921 | IFS="$ac_save_IFS" |
23922 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" |
23923 | ;; |
23924 | esac |
23925 | fi |
23926 | XGETTEXT="$ac_cv_path_XGETTEXT" |
23927 | if test "$XGETTEXT" != ":"; then |
23928 | { echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
23929 | echo "${ECHO_T}$XGETTEXT" >&6; } |
23930 | else |
23931 | { echo "$as_me:$LINENO: result: no" >&5 |
23932 | echo "${ECHO_T}no" >&6; } |
23933 | fi |
23934 | |
23935 | rm -f messages.po |
23936 | |
23937 | case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in |
23938 | '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; |
23939 | *) XGETTEXT_015=$XGETTEXT ;; |
23940 | esac |
23941 | |
23942 | |
23943 | |
23944 | # Prepare PATH_SEPARATOR. |
23945 | # The user is always right. |
23946 | if test "${PATH_SEPARATOR+set}" != set; then |
23947 | echo "#! /bin/sh" >conf$$.sh |
23948 | echo "exit 0" >>conf$$.sh |
23949 | chmod +x conf$$.sh |
23950 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
23951 | PATH_SEPARATOR=';' |
23952 | else |
23953 | PATH_SEPARATOR=: |
23954 | fi |
23955 | rm -f conf$$.sh |
23956 | fi |
23957 | |
23958 | # Find out how to test for executable files. Don't use a zero-byte file, |
23959 | # as systems may use methods other than mode bits to determine executability. |
23960 | cat >conf$$.file <<_ASEOF |
23961 | #! /bin/sh |
23962 | exit 0 |
23963 | _ASEOF |
23964 | chmod +x conf$$.file |
23965 | if test -x conf$$.file >/dev/null 2>&1; then |
23966 | ac_executable_p="test -x" |
23967 | else |
23968 | ac_executable_p="test -f" |
23969 | fi |
23970 | rm -f conf$$.file |
23971 | |
23972 | # Extract the first word of "msgmerge", so it can be a program name with args. |
23973 | set dummy msgmerge; ac_word=$2 |
23974 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
23975 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
23976 | if test "${ac_cv_path_MSGMERGE+set}" = set; then |
23977 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23978 | else |
23979 | case "$MSGMERGE" in |
23980 | [\\/]* | ?:[\\/]*) |
23981 | ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. |
23982 | ;; |
23983 | *) |
23984 | ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR |
23985 | for ac_dir in $PATH; do |
23986 | IFS="$ac_save_IFS" |
23987 | test -z "$ac_dir" && ac_dir=. |
23988 | for ac_exec_ext in '' $ac_executable_extensions; do |
23989 | if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then |
23990 | echo "$as_me: trying $ac_dir/$ac_word..." >&5 |
23991 | if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then |
23992 | ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" |
23993 | break 2 |
23994 | fi |
23995 | fi |
23996 | done |
23997 | done |
23998 | IFS="$ac_save_IFS" |
23999 | test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" |
24000 | ;; |
24001 | esac |
24002 | fi |
24003 | MSGMERGE="$ac_cv_path_MSGMERGE" |
24004 | if test "$MSGMERGE" != ":"; then |
24005 | { echo "$as_me:$LINENO: result: $MSGMERGE" >&5 |
24006 | echo "${ECHO_T}$MSGMERGE" >&6; } |
24007 | else |
24008 | { echo "$as_me:$LINENO: result: no" >&5 |
24009 | echo "${ECHO_T}no" >&6; } |
24010 | fi |
24011 | |
24012 | |
24013 | test -n "$localedir" || localedir='${datadir}/locale' |
24014 | |
24015 | |
24016 | ac_config_commands="$ac_config_commands po-directories" |
24017 | |
24018 | |
24019 | |
24020 | |
24021 | |
24022 | |
24023 | |
24024 | |
24025 | |
24026 | |
24027 | |
24028 | |
24029 | |
24030 | |
24031 | |
24032 | |
24033 | |
24034 | |
24035 | |
24036 | |
24037 | |
24038 | |
24039 | |
24040 | |
24041 | |
24042 | { echo "$as_me:$LINENO: checking for CFPreferencesCopyAppValue" >&5 |
24043 | echo $ECHO_N "checking for CFPreferencesCopyAppValue... $ECHO_C" >&6; } |
24044 | if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then |
24045 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24046 | else |
24047 | gt_save_LIBS="$LIBS" |
24048 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
24049 | cat >conftest.$ac_ext <<_ACEOF |
24050 | /* confdefs.h. */ |
24051 | _ACEOF |
24052 | cat confdefs.h >>conftest.$ac_ext |
24053 | cat >>conftest.$ac_ext <<_ACEOF |
24054 | /* end confdefs.h. */ |
24055 | #include <CoreFoundation/CFPreferences.h> |
24056 | int |
24057 | main () |
24058 | { |
24059 | CFPreferencesCopyAppValue(NULL, NULL) |
24060 | ; |
24061 | return 0; |
24062 | } |
24063 | _ACEOF |
24064 | rm -f conftest.$ac_objext conftest$ac_exeext |
24065 | if { (ac_try="$ac_link" |
24066 | case "(($ac_try" in |
24067 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24068 | *) ac_try_echo=$ac_try;; |
24069 | esac |
24070 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24071 | (eval "$ac_link") 2>conftest.er1 |
24072 | ac_status=$? |
24073 | grep -v '^ *+' conftest.er1 >conftest.err |
24074 | rm -f conftest.er1 |
24075 | cat conftest.err >&5 |
24076 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24077 | (exit $ac_status); } && { |
24078 | test -z "$ac_c_werror_flag" || |
24079 | test ! -s conftest.err |
24080 | } && test -s conftest$ac_exeext && |
24081 | $as_test_x conftest$ac_exeext; then |
24082 | gt_cv_func_CFPreferencesCopyAppValue=yes |
24083 | else |
24084 | echo "$as_me: failed program was:" >&5 |
24085 | sed 's/^/| /' conftest.$ac_ext >&5 |
24086 | |
24087 | gt_cv_func_CFPreferencesCopyAppValue=no |
24088 | fi |
24089 | |
24090 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
24091 | conftest$ac_exeext conftest.$ac_ext |
24092 | LIBS="$gt_save_LIBS" |
24093 | fi |
24094 | { echo "$as_me:$LINENO: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 |
24095 | echo "${ECHO_T}$gt_cv_func_CFPreferencesCopyAppValue" >&6; } |
24096 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then |
24097 | |
24098 | cat >>confdefs.h <<\_ACEOF |
24099 | #define HAVE_CFPREFERENCESCOPYAPPVALUE 1 |
24100 | _ACEOF |
24101 | |
24102 | fi |
24103 | { echo "$as_me:$LINENO: checking for CFLocaleCopyCurrent" >&5 |
24104 | echo $ECHO_N "checking for CFLocaleCopyCurrent... $ECHO_C" >&6; } |
24105 | if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then |
24106 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24107 | else |
24108 | gt_save_LIBS="$LIBS" |
24109 | LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" |
24110 | cat >conftest.$ac_ext <<_ACEOF |
24111 | /* confdefs.h. */ |
24112 | _ACEOF |
24113 | cat confdefs.h >>conftest.$ac_ext |
24114 | cat >>conftest.$ac_ext <<_ACEOF |
24115 | /* end confdefs.h. */ |
24116 | #include <CoreFoundation/CFLocale.h> |
24117 | int |
24118 | main () |
24119 | { |
24120 | CFLocaleCopyCurrent(); |
24121 | ; |
24122 | return 0; |
24123 | } |
24124 | _ACEOF |
24125 | rm -f conftest.$ac_objext conftest$ac_exeext |
24126 | if { (ac_try="$ac_link" |
24127 | case "(($ac_try" in |
24128 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24129 | *) ac_try_echo=$ac_try;; |
24130 | esac |
24131 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24132 | (eval "$ac_link") 2>conftest.er1 |
24133 | ac_status=$? |
24134 | grep -v '^ *+' conftest.er1 >conftest.err |
24135 | rm -f conftest.er1 |
24136 | cat conftest.err >&5 |
24137 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24138 | (exit $ac_status); } && { |
24139 | test -z "$ac_c_werror_flag" || |
24140 | test ! -s conftest.err |
24141 | } && test -s conftest$ac_exeext && |
24142 | $as_test_x conftest$ac_exeext; then |
24143 | gt_cv_func_CFLocaleCopyCurrent=yes |
24144 | else |
24145 | echo "$as_me: failed program was:" >&5 |
24146 | sed 's/^/| /' conftest.$ac_ext >&5 |
24147 | |
24148 | gt_cv_func_CFLocaleCopyCurrent=no |
24149 | fi |
24150 | |
24151 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
24152 | conftest$ac_exeext conftest.$ac_ext |
24153 | LIBS="$gt_save_LIBS" |
24154 | fi |
24155 | { echo "$as_me:$LINENO: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 |
24156 | echo "${ECHO_T}$gt_cv_func_CFLocaleCopyCurrent" >&6; } |
24157 | if test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
24158 | |
24159 | cat >>confdefs.h <<\_ACEOF |
24160 | #define HAVE_CFLOCALECOPYCURRENT 1 |
24161 | _ACEOF |
24162 | |
24163 | fi |
24164 | INTL_MACOSX_LIBS= |
24165 | if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then |
24166 | INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" |
24167 | fi |
24168 | |
24169 | |
24170 | |
24171 | |
24172 | |
24173 | |
24174 | LIBINTL= |
24175 | LTLIBINTL= |
24176 | POSUB= |
24177 | |
24178 | case " $gt_needs " in |
24179 | *" need-formatstring-macros "*) gt_api_version=3 ;; |
24180 | *" need-ngettext "*) gt_api_version=2 ;; |
24181 | *) gt_api_version=1 ;; |
24182 | esac |
24183 | gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" |
24184 | gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" |
24185 | |
24186 | if test "$USE_NLS" = "yes"; then |
24187 | gt_use_preinstalled_gnugettext=no |
24188 | |
24189 | |
24190 | if test $gt_api_version -ge 3; then |
24191 | gt_revision_test_code=' |
24192 | #ifndef __GNU_GETTEXT_SUPPORTED_REVISION |
24193 | #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) |
24194 | #endif |
24195 | typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; |
24196 | ' |
24197 | else |
24198 | gt_revision_test_code= |
24199 | fi |
24200 | if test $gt_api_version -ge 2; then |
24201 | gt_expression_test_code=' + * ngettext ("", "", 0)' |
24202 | else |
24203 | gt_expression_test_code= |
24204 | fi |
24205 | |
24206 | { echo "$as_me:$LINENO: checking for GNU gettext in libc" >&5 |
24207 | echo $ECHO_N "checking for GNU gettext in libc... $ECHO_C" >&6; } |
24208 | if { as_var=$gt_func_gnugettext_libc; eval "test \"\${$as_var+set}\" = set"; }; then |
24209 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24210 | else |
24211 | cat >conftest.$ac_ext <<_ACEOF |
24212 | /* confdefs.h. */ |
24213 | _ACEOF |
24214 | cat confdefs.h >>conftest.$ac_ext |
24215 | cat >>conftest.$ac_ext <<_ACEOF |
24216 | /* end confdefs.h. */ |
24217 | #include <libintl.h> |
24218 | $gt_revision_test_code |
24219 | extern int _nl_msg_cat_cntr; |
24220 | extern int *_nl_domain_bindings; |
24221 | int |
24222 | main () |
24223 | { |
24224 | bindtextdomain ("", ""); |
24225 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings |
24226 | ; |
24227 | return 0; |
24228 | } |
24229 | _ACEOF |
24230 | rm -f conftest.$ac_objext conftest$ac_exeext |
24231 | if { (ac_try="$ac_link" |
24232 | case "(($ac_try" in |
24233 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24234 | *) ac_try_echo=$ac_try;; |
24235 | esac |
24236 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24237 | (eval "$ac_link") 2>conftest.er1 |
24238 | ac_status=$? |
24239 | grep -v '^ *+' conftest.er1 >conftest.err |
24240 | rm -f conftest.er1 |
24241 | cat conftest.err >&5 |
24242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24243 | (exit $ac_status); } && { |
24244 | test -z "$ac_c_werror_flag" || |
24245 | test ! -s conftest.err |
24246 | } && test -s conftest$ac_exeext && |
24247 | $as_test_x conftest$ac_exeext; then |
24248 | eval "$gt_func_gnugettext_libc=yes" |
24249 | else |
24250 | echo "$as_me: failed program was:" >&5 |
24251 | sed 's/^/| /' conftest.$ac_ext >&5 |
24252 | |
24253 | eval "$gt_func_gnugettext_libc=no" |
24254 | fi |
24255 | |
24256 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
24257 | conftest$ac_exeext conftest.$ac_ext |
24258 | fi |
24259 | ac_res=`eval echo '${'$gt_func_gnugettext_libc'}'` |
24260 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
24261 | echo "${ECHO_T}$ac_res" >&6; } |
24262 | |
24263 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then |
24264 | |
24265 | |
24266 | |
24267 | |
24268 | |
24269 | am_save_CPPFLAGS="$CPPFLAGS" |
24270 | |
24271 | for element in $INCICONV; do |
24272 | haveit= |
24273 | for x in $CPPFLAGS; do |
24274 | |
24275 | acl_save_prefix="$prefix" |
24276 | prefix="$acl_final_prefix" |
24277 | acl_save_exec_prefix="$exec_prefix" |
24278 | exec_prefix="$acl_final_exec_prefix" |
24279 | eval x=\"$x\" |
24280 | exec_prefix="$acl_save_exec_prefix" |
24281 | prefix="$acl_save_prefix" |
24282 | |
24283 | if test "X$x" = "X$element"; then |
24284 | haveit=yes |
24285 | break |
24286 | fi |
24287 | done |
24288 | if test -z "$haveit"; then |
24289 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
24290 | fi |
24291 | done |
24292 | |
24293 | |
24294 | { echo "$as_me:$LINENO: checking for iconv" >&5 |
24295 | echo $ECHO_N "checking for iconv... $ECHO_C" >&6; } |
24296 | if test "${am_cv_func_iconv+set}" = set; then |
24297 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24298 | else |
24299 | |
24300 | am_cv_func_iconv="no, consider installing GNU libiconv" |
24301 | am_cv_lib_iconv=no |
24302 | cat >conftest.$ac_ext <<_ACEOF |
24303 | /* confdefs.h. */ |
24304 | _ACEOF |
24305 | cat confdefs.h >>conftest.$ac_ext |
24306 | cat >>conftest.$ac_ext <<_ACEOF |
24307 | /* end confdefs.h. */ |
24308 | #include <stdlib.h> |
24309 | #include <iconv.h> |
24310 | int |
24311 | main () |
24312 | { |
24313 | iconv_t cd = iconv_open("",""); |
24314 | iconv(cd,NULL,NULL,NULL,NULL); |
24315 | iconv_close(cd); |
24316 | ; |
24317 | return 0; |
24318 | } |
24319 | _ACEOF |
24320 | rm -f conftest.$ac_objext conftest$ac_exeext |
24321 | if { (ac_try="$ac_link" |
24322 | case "(($ac_try" in |
24323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24324 | *) ac_try_echo=$ac_try;; |
24325 | esac |
24326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24327 | (eval "$ac_link") 2>conftest.er1 |
24328 | ac_status=$? |
24329 | grep -v '^ *+' conftest.er1 >conftest.err |
24330 | rm -f conftest.er1 |
24331 | cat conftest.err >&5 |
24332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24333 | (exit $ac_status); } && { |
24334 | test -z "$ac_c_werror_flag" || |
24335 | test ! -s conftest.err |
24336 | } && test -s conftest$ac_exeext && |
24337 | $as_test_x conftest$ac_exeext; then |
24338 | am_cv_func_iconv=yes |
24339 | else |
24340 | echo "$as_me: failed program was:" >&5 |
24341 | sed 's/^/| /' conftest.$ac_ext >&5 |
24342 | |
24343 | |
24344 | fi |
24345 | |
24346 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
24347 | conftest$ac_exeext conftest.$ac_ext |
24348 | if test "$am_cv_func_iconv" != yes; then |
24349 | am_save_LIBS="$LIBS" |
24350 | LIBS="$LIBS $LIBICONV" |
24351 | cat >conftest.$ac_ext <<_ACEOF |
24352 | /* confdefs.h. */ |
24353 | _ACEOF |
24354 | cat confdefs.h >>conftest.$ac_ext |
24355 | cat >>conftest.$ac_ext <<_ACEOF |
24356 | /* end confdefs.h. */ |
24357 | #include <stdlib.h> |
24358 | #include <iconv.h> |
24359 | int |
24360 | main () |
24361 | { |
24362 | iconv_t cd = iconv_open("",""); |
24363 | iconv(cd,NULL,NULL,NULL,NULL); |
24364 | iconv_close(cd); |
24365 | ; |
24366 | return 0; |
24367 | } |
24368 | _ACEOF |
24369 | rm -f conftest.$ac_objext conftest$ac_exeext |
24370 | if { (ac_try="$ac_link" |
24371 | case "(($ac_try" in |
24372 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24373 | *) ac_try_echo=$ac_try;; |
24374 | esac |
24375 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24376 | (eval "$ac_link") 2>conftest.er1 |
24377 | ac_status=$? |
24378 | grep -v '^ *+' conftest.er1 >conftest.err |
24379 | rm -f conftest.er1 |
24380 | cat conftest.err >&5 |
24381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24382 | (exit $ac_status); } && { |
24383 | test -z "$ac_c_werror_flag" || |
24384 | test ! -s conftest.err |
24385 | } && test -s conftest$ac_exeext && |
24386 | $as_test_x conftest$ac_exeext; then |
24387 | am_cv_lib_iconv=yes |
24388 | am_cv_func_iconv=yes |
24389 | else |
24390 | echo "$as_me: failed program was:" >&5 |
24391 | sed 's/^/| /' conftest.$ac_ext >&5 |
24392 | |
24393 | |
24394 | fi |
24395 | |
24396 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
24397 | conftest$ac_exeext conftest.$ac_ext |
24398 | LIBS="$am_save_LIBS" |
24399 | fi |
24400 | |
24401 | fi |
24402 | { echo "$as_me:$LINENO: result: $am_cv_func_iconv" >&5 |
24403 | echo "${ECHO_T}$am_cv_func_iconv" >&6; } |
24404 | if test "$am_cv_func_iconv" = yes; then |
24405 | |
24406 | cat >>confdefs.h <<\_ACEOF |
24407 | #define HAVE_ICONV 1 |
24408 | _ACEOF |
24409 | |
24410 | fi |
24411 | if test "$am_cv_lib_iconv" = yes; then |
24412 | { echo "$as_me:$LINENO: checking how to link with libiconv" >&5 |
24413 | echo $ECHO_N "checking how to link with libiconv... $ECHO_C" >&6; } |
24414 | { echo "$as_me:$LINENO: result: $LIBICONV" >&5 |
24415 | echo "${ECHO_T}$LIBICONV" >&6; } |
24416 | else |
24417 | CPPFLAGS="$am_save_CPPFLAGS" |
24418 | LIBICONV= |
24419 | LTLIBICONV= |
24420 | fi |
24421 | |
24422 | |
24423 | |
24424 | |
24425 | |
24426 | |
24427 | |
24428 | use_additional=yes |
24429 | |
24430 | acl_save_prefix="$prefix" |
24431 | prefix="$acl_final_prefix" |
24432 | acl_save_exec_prefix="$exec_prefix" |
24433 | exec_prefix="$acl_final_exec_prefix" |
24434 | |
24435 | eval additional_includedir=\"$includedir\" |
24436 | eval additional_libdir=\"$libdir\" |
24437 | |
24438 | exec_prefix="$acl_save_exec_prefix" |
24439 | prefix="$acl_save_prefix" |
24440 | |
24441 | |
24442 | # Check whether --with-libintl-prefix was given. |
24443 | if test "${with_libintl_prefix+set}" = set; then |
24444 | withval=$with_libintl_prefix; |
24445 | if test "X$withval" = "Xno"; then |
24446 | use_additional=no |
24447 | else |
24448 | if test "X$withval" = "X"; then |
24449 | |
24450 | acl_save_prefix="$prefix" |
24451 | prefix="$acl_final_prefix" |
24452 | acl_save_exec_prefix="$exec_prefix" |
24453 | exec_prefix="$acl_final_exec_prefix" |
24454 | |
24455 | eval additional_includedir=\"$includedir\" |
24456 | eval additional_libdir=\"$libdir\" |
24457 | |
24458 | exec_prefix="$acl_save_exec_prefix" |
24459 | prefix="$acl_save_prefix" |
24460 | |
24461 | else |
24462 | additional_includedir="$withval/include" |
24463 | additional_libdir="$withval/$acl_libdirstem" |
24464 | fi |
24465 | fi |
24466 | |
24467 | fi |
24468 | |
24469 | LIBINTL= |
24470 | LTLIBINTL= |
24471 | INCINTL= |
24472 | rpathdirs= |
24473 | ltrpathdirs= |
24474 | names_already_handled= |
24475 | names_next_round='intl ' |
24476 | while test -n "$names_next_round"; do |
24477 | names_this_round="$names_next_round" |
24478 | names_next_round= |
24479 | for name in $names_this_round; do |
24480 | already_handled= |
24481 | for n in $names_already_handled; do |
24482 | if test "$n" = "$name"; then |
24483 | already_handled=yes |
24484 | break |
24485 | fi |
24486 | done |
24487 | if test -z "$already_handled"; then |
24488 | names_already_handled="$names_already_handled $name" |
24489 | uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` |
24490 | eval value=\"\$HAVE_LIB$uppername\" |
24491 | if test -n "$value"; then |
24492 | if test "$value" = yes; then |
24493 | eval value=\"\$LIB$uppername\" |
24494 | test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" |
24495 | eval value=\"\$LTLIB$uppername\" |
24496 | test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" |
24497 | else |
24498 | : |
24499 | fi |
24500 | else |
24501 | found_dir= |
24502 | found_la= |
24503 | found_so= |
24504 | found_a= |
24505 | if test $use_additional = yes; then |
24506 | if test -n "$shlibext" \ |
24507 | && { test -f "$additional_libdir/lib$name.$shlibext" \ |
24508 | || { test "$shlibext" = dll \ |
24509 | && test -f "$additional_libdir/lib$name.dll.a"; }; }; then |
24510 | found_dir="$additional_libdir" |
24511 | if test -f "$additional_libdir/lib$name.$shlibext"; then |
24512 | found_so="$additional_libdir/lib$name.$shlibext" |
24513 | else |
24514 | found_so="$additional_libdir/lib$name.dll.a" |
24515 | fi |
24516 | if test -f "$additional_libdir/lib$name.la"; then |
24517 | found_la="$additional_libdir/lib$name.la" |
24518 | fi |
24519 | else |
24520 | if test -f "$additional_libdir/lib$name.$libext"; then |
24521 | found_dir="$additional_libdir" |
24522 | found_a="$additional_libdir/lib$name.$libext" |
24523 | if test -f "$additional_libdir/lib$name.la"; then |
24524 | found_la="$additional_libdir/lib$name.la" |
24525 | fi |
24526 | fi |
24527 | fi |
24528 | fi |
24529 | if test "X$found_dir" = "X"; then |
24530 | for x in $LDFLAGS $LTLIBINTL; do |
24531 | |
24532 | acl_save_prefix="$prefix" |
24533 | prefix="$acl_final_prefix" |
24534 | acl_save_exec_prefix="$exec_prefix" |
24535 | exec_prefix="$acl_final_exec_prefix" |
24536 | eval x=\"$x\" |
24537 | exec_prefix="$acl_save_exec_prefix" |
24538 | prefix="$acl_save_prefix" |
24539 | |
24540 | case "$x" in |
24541 | -L*) |
24542 | dir=`echo "X$x" | sed -e 's/^X-L//'` |
24543 | if test -n "$shlibext" \ |
24544 | && { test -f "$dir/lib$name.$shlibext" \ |
24545 | || { test "$shlibext" = dll \ |
24546 | && test -f "$dir/lib$name.dll.a"; }; }; then |
24547 | found_dir="$dir" |
24548 | if test -f "$dir/lib$name.$shlibext"; then |
24549 | found_so="$dir/lib$name.$shlibext" |
24550 | else |
24551 | found_so="$dir/lib$name.dll.a" |
24552 | fi |
24553 | if test -f "$dir/lib$name.la"; then |
24554 | found_la="$dir/lib$name.la" |
24555 | fi |
24556 | else |
24557 | if test -f "$dir/lib$name.$libext"; then |
24558 | found_dir="$dir" |
24559 | found_a="$dir/lib$name.$libext" |
24560 | if test -f "$dir/lib$name.la"; then |
24561 | found_la="$dir/lib$name.la" |
24562 | fi |
24563 | fi |
24564 | fi |
24565 | ;; |
24566 | esac |
24567 | if test "X$found_dir" != "X"; then |
24568 | break |
24569 | fi |
24570 | done |
24571 | fi |
24572 | if test "X$found_dir" != "X"; then |
24573 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" |
24574 | if test "X$found_so" != "X"; then |
24575 | if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/$acl_libdirstem"; then |
24576 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
24577 | else |
24578 | haveit= |
24579 | for x in $ltrpathdirs; do |
24580 | if test "X$x" = "X$found_dir"; then |
24581 | haveit=yes |
24582 | break |
24583 | fi |
24584 | done |
24585 | if test -z "$haveit"; then |
24586 | ltrpathdirs="$ltrpathdirs $found_dir" |
24587 | fi |
24588 | if test "$hardcode_direct" = yes; then |
24589 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
24590 | else |
24591 | if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then |
24592 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
24593 | haveit= |
24594 | for x in $rpathdirs; do |
24595 | if test "X$x" = "X$found_dir"; then |
24596 | haveit=yes |
24597 | break |
24598 | fi |
24599 | done |
24600 | if test -z "$haveit"; then |
24601 | rpathdirs="$rpathdirs $found_dir" |
24602 | fi |
24603 | else |
24604 | haveit= |
24605 | for x in $LDFLAGS $LIBINTL; do |
24606 | |
24607 | acl_save_prefix="$prefix" |
24608 | prefix="$acl_final_prefix" |
24609 | acl_save_exec_prefix="$exec_prefix" |
24610 | exec_prefix="$acl_final_exec_prefix" |
24611 | eval x=\"$x\" |
24612 | exec_prefix="$acl_save_exec_prefix" |
24613 | prefix="$acl_save_prefix" |
24614 | |
24615 | if test "X$x" = "X-L$found_dir"; then |
24616 | haveit=yes |
24617 | break |
24618 | fi |
24619 | done |
24620 | if test -z "$haveit"; then |
24621 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" |
24622 | fi |
24623 | if test "$hardcode_minus_L" != no; then |
24624 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" |
24625 | else |
24626 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
24627 | fi |
24628 | fi |
24629 | fi |
24630 | fi |
24631 | else |
24632 | if test "X$found_a" != "X"; then |
24633 | LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" |
24634 | else |
24635 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" |
24636 | fi |
24637 | fi |
24638 | additional_includedir= |
24639 | case "$found_dir" in |
24640 | */$acl_libdirstem | */$acl_libdirstem/) |
24641 | basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` |
24642 | additional_includedir="$basedir/include" |
24643 | ;; |
24644 | esac |
24645 | if test "X$additional_includedir" != "X"; then |
24646 | if test "X$additional_includedir" != "X/usr/include"; then |
24647 | haveit= |
24648 | if test "X$additional_includedir" = "X/usr/local/include"; then |
24649 | if test -n "$GCC"; then |
24650 | case $host_os in |
24651 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
24652 | esac |
24653 | fi |
24654 | fi |
24655 | if test -z "$haveit"; then |
24656 | for x in $CPPFLAGS $INCINTL; do |
24657 | |
24658 | acl_save_prefix="$prefix" |
24659 | prefix="$acl_final_prefix" |
24660 | acl_save_exec_prefix="$exec_prefix" |
24661 | exec_prefix="$acl_final_exec_prefix" |
24662 | eval x=\"$x\" |
24663 | exec_prefix="$acl_save_exec_prefix" |
24664 | prefix="$acl_save_prefix" |
24665 | |
24666 | if test "X$x" = "X-I$additional_includedir"; then |
24667 | haveit=yes |
24668 | break |
24669 | fi |
24670 | done |
24671 | if test -z "$haveit"; then |
24672 | if test -d "$additional_includedir"; then |
24673 | INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" |
24674 | fi |
24675 | fi |
24676 | fi |
24677 | fi |
24678 | fi |
24679 | if test -n "$found_la"; then |
24680 | save_libdir="$libdir" |
24681 | case "$found_la" in |
24682 | */* | *\\*) . "$found_la" ;; |
24683 | *) . "./$found_la" ;; |
24684 | esac |
24685 | libdir="$save_libdir" |
24686 | for dep in $dependency_libs; do |
24687 | case "$dep" in |
24688 | -L*) |
24689 | additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` |
24690 | if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then |
24691 | haveit= |
24692 | if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then |
24693 | if test -n "$GCC"; then |
24694 | case $host_os in |
24695 | linux* | gnu* | k*bsd*-gnu) haveit=yes;; |
24696 | esac |
24697 | fi |
24698 | fi |
24699 | if test -z "$haveit"; then |
24700 | haveit= |
24701 | for x in $LDFLAGS $LIBINTL; do |
24702 | |
24703 | acl_save_prefix="$prefix" |
24704 | prefix="$acl_final_prefix" |
24705 | acl_save_exec_prefix="$exec_prefix" |
24706 | exec_prefix="$acl_final_exec_prefix" |
24707 | eval x=\"$x\" |
24708 | exec_prefix="$acl_save_exec_prefix" |
24709 | prefix="$acl_save_prefix" |
24710 | |
24711 | if test "X$x" = "X-L$additional_libdir"; then |
24712 | haveit=yes |
24713 | break |
24714 | fi |
24715 | done |
24716 | if test -z "$haveit"; then |
24717 | if test -d "$additional_libdir"; then |
24718 | LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" |
24719 | fi |
24720 | fi |
24721 | haveit= |
24722 | for x in $LDFLAGS $LTLIBINTL; do |
24723 | |
24724 | acl_save_prefix="$prefix" |
24725 | prefix="$acl_final_prefix" |
24726 | acl_save_exec_prefix="$exec_prefix" |
24727 | exec_prefix="$acl_final_exec_prefix" |
24728 | eval x=\"$x\" |
24729 | exec_prefix="$acl_save_exec_prefix" |
24730 | prefix="$acl_save_prefix" |
24731 | |
24732 | if test "X$x" = "X-L$additional_libdir"; then |
24733 | haveit=yes |
24734 | break |
24735 | fi |
24736 | done |
24737 | if test -z "$haveit"; then |
24738 | if test -d "$additional_libdir"; then |
24739 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" |
24740 | fi |
24741 | fi |
24742 | fi |
24743 | fi |
24744 | ;; |
24745 | -R*) |
24746 | dir=`echo "X$dep" | sed -e 's/^X-R//'` |
24747 | if test "$enable_rpath" != no; then |
24748 | haveit= |
24749 | for x in $rpathdirs; do |
24750 | if test "X$x" = "X$dir"; then |
24751 | haveit=yes |
24752 | break |
24753 | fi |
24754 | done |
24755 | if test -z "$haveit"; then |
24756 | rpathdirs="$rpathdirs $dir" |
24757 | fi |
24758 | haveit= |
24759 | for x in $ltrpathdirs; do |
24760 | if test "X$x" = "X$dir"; then |
24761 | haveit=yes |
24762 | break |
24763 | fi |
24764 | done |
24765 | if test -z "$haveit"; then |
24766 | ltrpathdirs="$ltrpathdirs $dir" |
24767 | fi |
24768 | fi |
24769 | ;; |
24770 | -l*) |
24771 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` |
24772 | ;; |
24773 | *.la) |
24774 | names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` |
24775 | ;; |
24776 | *) |
24777 | LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" |
24778 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" |
24779 | ;; |
24780 | esac |
24781 | done |
24782 | fi |
24783 | else |
24784 | LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" |
24785 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" |
24786 | fi |
24787 | fi |
24788 | fi |
24789 | done |
24790 | done |
24791 | if test "X$rpathdirs" != "X"; then |
24792 | if test -n "$hardcode_libdir_separator"; then |
24793 | alldirs= |
24794 | for found_dir in $rpathdirs; do |
24795 | alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir" |
24796 | done |
24797 | acl_save_libdir="$libdir" |
24798 | libdir="$alldirs" |
24799 | eval flag=\"$hardcode_libdir_flag_spec\" |
24800 | libdir="$acl_save_libdir" |
24801 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
24802 | else |
24803 | for found_dir in $rpathdirs; do |
24804 | acl_save_libdir="$libdir" |
24805 | libdir="$found_dir" |
24806 | eval flag=\"$hardcode_libdir_flag_spec\" |
24807 | libdir="$acl_save_libdir" |
24808 | LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" |
24809 | done |
24810 | fi |
24811 | fi |
24812 | if test "X$ltrpathdirs" != "X"; then |
24813 | for found_dir in $ltrpathdirs; do |
24814 | LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" |
24815 | done |
24816 | fi |
24817 | |
24818 | { echo "$as_me:$LINENO: checking for GNU gettext in libintl" >&5 |
24819 | echo $ECHO_N "checking for GNU gettext in libintl... $ECHO_C" >&6; } |
24820 | if { as_var=$gt_func_gnugettext_libintl; eval "test \"\${$as_var+set}\" = set"; }; then |
24821 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24822 | else |
24823 | gt_save_CPPFLAGS="$CPPFLAGS" |
24824 | CPPFLAGS="$CPPFLAGS $INCINTL" |
24825 | gt_save_LIBS="$LIBS" |
24826 | LIBS="$LIBS $LIBINTL" |
24827 | cat >conftest.$ac_ext <<_ACEOF |
24828 | /* confdefs.h. */ |
24829 | _ACEOF |
24830 | cat confdefs.h >>conftest.$ac_ext |
24831 | cat >>conftest.$ac_ext <<_ACEOF |
24832 | /* end confdefs.h. */ |
24833 | #include <libintl.h> |
24834 | $gt_revision_test_code |
24835 | extern int _nl_msg_cat_cntr; |
24836 | extern |
24837 | #ifdef __cplusplus |
24838 | "C" |
24839 | #endif |
24840 | const char *_nl_expand_alias (const char *); |
24841 | int |
24842 | main () |
24843 | { |
24844 | bindtextdomain ("", ""); |
24845 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
24846 | ; |
24847 | return 0; |
24848 | } |
24849 | _ACEOF |
24850 | rm -f conftest.$ac_objext conftest$ac_exeext |
24851 | if { (ac_try="$ac_link" |
24852 | case "(($ac_try" in |
24853 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24854 | *) ac_try_echo=$ac_try;; |
24855 | esac |
24856 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24857 | (eval "$ac_link") 2>conftest.er1 |
24858 | ac_status=$? |
24859 | grep -v '^ *+' conftest.er1 >conftest.err |
24860 | rm -f conftest.er1 |
24861 | cat conftest.err >&5 |
24862 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24863 | (exit $ac_status); } && { |
24864 | test -z "$ac_c_werror_flag" || |
24865 | test ! -s conftest.err |
24866 | } && test -s conftest$ac_exeext && |
24867 | $as_test_x conftest$ac_exeext; then |
24868 | eval "$gt_func_gnugettext_libintl=yes" |
24869 | else |
24870 | echo "$as_me: failed program was:" >&5 |
24871 | sed 's/^/| /' conftest.$ac_ext >&5 |
24872 | |
24873 | eval "$gt_func_gnugettext_libintl=no" |
24874 | fi |
24875 | |
24876 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
24877 | conftest$ac_exeext conftest.$ac_ext |
24878 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then |
24879 | LIBS="$LIBS $LIBICONV" |
24880 | cat >conftest.$ac_ext <<_ACEOF |
24881 | /* confdefs.h. */ |
24882 | _ACEOF |
24883 | cat confdefs.h >>conftest.$ac_ext |
24884 | cat >>conftest.$ac_ext <<_ACEOF |
24885 | /* end confdefs.h. */ |
24886 | #include <libintl.h> |
24887 | $gt_revision_test_code |
24888 | extern int _nl_msg_cat_cntr; |
24889 | extern |
24890 | #ifdef __cplusplus |
24891 | "C" |
24892 | #endif |
24893 | const char *_nl_expand_alias (const char *); |
24894 | int |
24895 | main () |
24896 | { |
24897 | bindtextdomain ("", ""); |
24898 | return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") |
24899 | ; |
24900 | return 0; |
24901 | } |
24902 | _ACEOF |
24903 | rm -f conftest.$ac_objext conftest$ac_exeext |
24904 | if { (ac_try="$ac_link" |
24905 | case "(($ac_try" in |
24906 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24907 | *) ac_try_echo=$ac_try;; |
24908 | esac |
24909 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24910 | (eval "$ac_link") 2>conftest.er1 |
24911 | ac_status=$? |
24912 | grep -v '^ *+' conftest.er1 >conftest.err |
24913 | rm -f conftest.er1 |
24914 | cat conftest.err >&5 |
24915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24916 | (exit $ac_status); } && { |
24917 | test -z "$ac_c_werror_flag" || |
24918 | test ! -s conftest.err |
24919 | } && test -s conftest$ac_exeext && |
24920 | $as_test_x conftest$ac_exeext; then |
24921 | LIBINTL="$LIBINTL $LIBICONV" |
24922 | LTLIBINTL="$LTLIBINTL $LTLIBICONV" |
24923 | eval "$gt_func_gnugettext_libintl=yes" |
24924 | |
24925 | else |
24926 | echo "$as_me: failed program was:" >&5 |
24927 | sed 's/^/| /' conftest.$ac_ext >&5 |
24928 | |
24929 | |
24930 | fi |
24931 | |
24932 | rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \ |
24933 | conftest$ac_exeext conftest.$ac_ext |
24934 | fi |
24935 | CPPFLAGS="$gt_save_CPPFLAGS" |
24936 | LIBS="$gt_save_LIBS" |
24937 | fi |
24938 | ac_res=`eval echo '${'$gt_func_gnugettext_libintl'}'` |
24939 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
24940 | echo "${ECHO_T}$ac_res" >&6; } |
24941 | fi |
24942 | |
24943 | if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ |
24944 | || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ |
24945 | && test "$PACKAGE" != gettext-runtime \ |
24946 | && test "$PACKAGE" != gettext-tools; }; then |
24947 | gt_use_preinstalled_gnugettext=yes |
24948 | else |
24949 | LIBINTL= |
24950 | LTLIBINTL= |
24951 | INCINTL= |
24952 | fi |
24953 | |
24954 | |
24955 | |
24956 | if test -n "$INTL_MACOSX_LIBS"; then |
24957 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
24958 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
24959 | LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" |
24960 | LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" |
24961 | fi |
24962 | fi |
24963 | |
24964 | if test "$gt_use_preinstalled_gnugettext" = "yes" \ |
24965 | || test "$nls_cv_use_gnu_gettext" = "yes"; then |
24966 | |
24967 | cat >>confdefs.h <<\_ACEOF |
24968 | #define ENABLE_NLS 1 |
24969 | _ACEOF |
24970 | |
24971 | else |
24972 | USE_NLS=no |
24973 | fi |
24974 | fi |
24975 | |
24976 | { echo "$as_me:$LINENO: checking whether to use NLS" >&5 |
24977 | echo $ECHO_N "checking whether to use NLS... $ECHO_C" >&6; } |
24978 | { echo "$as_me:$LINENO: result: $USE_NLS" >&5 |
24979 | echo "${ECHO_T}$USE_NLS" >&6; } |
24980 | if test "$USE_NLS" = "yes"; then |
24981 | { echo "$as_me:$LINENO: checking where the gettext function comes from" >&5 |
24982 | echo $ECHO_N "checking where the gettext function comes from... $ECHO_C" >&6; } |
24983 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
24984 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
24985 | gt_source="external libintl" |
24986 | else |
24987 | gt_source="libc" |
24988 | fi |
24989 | else |
24990 | gt_source="included intl directory" |
24991 | fi |
24992 | { echo "$as_me:$LINENO: result: $gt_source" >&5 |
24993 | echo "${ECHO_T}$gt_source" >&6; } |
24994 | fi |
24995 | |
24996 | if test "$USE_NLS" = "yes"; then |
24997 | |
24998 | if test "$gt_use_preinstalled_gnugettext" = "yes"; then |
24999 | if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then |
25000 | { echo "$as_me:$LINENO: checking how to link with libintl" >&5 |
25001 | echo $ECHO_N "checking how to link with libintl... $ECHO_C" >&6; } |
25002 | { echo "$as_me:$LINENO: result: $LIBINTL" >&5 |
25003 | echo "${ECHO_T}$LIBINTL" >&6; } |
25004 | |
25005 | for element in $INCINTL; do |
25006 | haveit= |
25007 | for x in $CPPFLAGS; do |
25008 | |
25009 | acl_save_prefix="$prefix" |
25010 | prefix="$acl_final_prefix" |
25011 | acl_save_exec_prefix="$exec_prefix" |
25012 | exec_prefix="$acl_final_exec_prefix" |
25013 | eval x=\"$x\" |
25014 | exec_prefix="$acl_save_exec_prefix" |
25015 | prefix="$acl_save_prefix" |
25016 | |
25017 | if test "X$x" = "X$element"; then |
25018 | haveit=yes |
25019 | break |
25020 | fi |
25021 | done |
25022 | if test -z "$haveit"; then |
25023 | CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" |
25024 | fi |
25025 | done |
25026 | |
25027 | fi |
25028 | |
25029 | |
25030 | cat >>confdefs.h <<\_ACEOF |
25031 | #define HAVE_GETTEXT 1 |
25032 | _ACEOF |
25033 | |
25034 | |
25035 | cat >>confdefs.h <<\_ACEOF |
25036 | #define HAVE_DCGETTEXT 1 |
25037 | _ACEOF |
25038 | |
25039 | fi |
25040 | |
25041 | POSUB=po |
25042 | fi |
25043 | |
25044 | |
25045 | |
25046 | INTLLIBS="$LIBINTL" |
25047 | |
25048 | |
25049 | |
25050 | |
25051 | |
25052 | |
25053 | LIBS="$LTLIBINTL $LIBS" |
25054 | if test "x${prefix}" = xNONE; then |
25055 | |
25056 | cat >>confdefs.h <<_ACEOF |
25057 | #define PACKAGE_LOCALE_DIR "${ac_default_prefix}/share/locale" |
25058 | _ACEOF |
25059 | |
25060 | else |
25061 | |
25062 | cat >>confdefs.h <<_ACEOF |
25063 | #define PACKAGE_LOCALE_DIR "${prefix}/share/locale" |
25064 | _ACEOF |
25065 | |
25066 | fi |
25067 | |
25068 | |
25069 | # Check whether --with-doxygen was given. |
25070 | if test "${with_doxygen+set}" = set; then |
25071 | withval=$with_doxygen; |
25072 | else |
25073 | with_doxygen=yes |
25074 | fi |
25075 | |
25076 | if test "x$with_doxygen" = "xyes"; then |
25077 | # Extract the first word of "doxygen", so it can be a program name with args. |
25078 | set dummy doxygen; ac_word=$2 |
25079 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
25080 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
25081 | if test "${ac_cv_prog_HAVE_DOXYGEN+set}" = set; then |
25082 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
25083 | else |
25084 | if test -n "$HAVE_DOXYGEN"; then |
25085 | ac_cv_prog_HAVE_DOXYGEN="$HAVE_DOXYGEN" # Let the user override the test. |
25086 | else |
25087 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25088 | for as_dir in $PATH |
25089 | do |
25090 | IFS=$as_save_IFS |
25091 | test -z "$as_dir" && as_dir=. |
25092 | for ac_exec_ext in '' $ac_executable_extensions; do |
25093 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then |
25094 | ac_cv_prog_HAVE_DOXYGEN="yes" |
25095 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
25096 | break 2 |
25097 | fi |
25098 | done |
25099 | done |
25100 | IFS=$as_save_IFS |
25101 | |
25102 | test -z "$ac_cv_prog_HAVE_DOXYGEN" && ac_cv_prog_HAVE_DOXYGEN="no" |
25103 | fi |
25104 | fi |
25105 | HAVE_DOXYGEN=$ac_cv_prog_HAVE_DOXYGEN |
25106 | if test -n "$HAVE_DOXYGEN"; then |
25107 | { echo "$as_me:$LINENO: result: $HAVE_DOXYGEN" >&5 |
25108 | echo "${ECHO_T}$HAVE_DOXYGEN" >&6; } |
25109 | else |
25110 | { echo "$as_me:$LINENO: result: no" >&5 |
25111 | echo "${ECHO_T}no" >&6; } |
25112 | fi |
25113 | |
25114 | |
25115 | else |
25116 | HAVE_DOXYGEN=no |
25117 | fi |
25118 | |
25119 | |
25120 | if test "x$HAVE_DOXYGEN" = xyes; then |
25121 | HAVE_DOXYGEN_TRUE= |
25122 | HAVE_DOXYGEN_FALSE='#' |
25123 | else |
25124 | HAVE_DOXYGEN_TRUE='#' |
25125 | HAVE_DOXYGEN_FALSE= |
25126 | fi |
25127 | |
25128 | |
25129 | |
25130 | |
25131 | if test "x$enable_static" = xyes; then |
25132 | BUILD_STATIC_LIB_TRUE= |
25133 | BUILD_STATIC_LIB_FALSE='#' |
25134 | else |
25135 | BUILD_STATIC_LIB_TRUE='#' |
25136 | BUILD_STATIC_LIB_FALSE= |
25137 | fi |
25138 | |
25139 | |
25140 | ac_config_files="$ac_config_files Makefile contrib/Makefile examples/Makefile daemon/Makefile daemon/zvbid.init doc/Doxyfile doc/Makefile m4/Makefile src/Makefile src/dvb/Makefile test/Makefile po/Makefile.in zvbi.spec zvbi-0.2.pc" |
25141 | |
25142 | cat >confcache <<\_ACEOF |
25143 | # This file is a shell script that caches the results of configure |
25144 | # tests run on this system so they can be shared between configure |
25145 | # scripts and configure runs, see configure's option --config-cache. |
25146 | # It is not useful on other systems. If it contains results you don't |
25147 | # want to keep, you may remove or edit it. |
25148 | # |
25149 | # config.status only pays attention to the cache file if you give it |
25150 | # the --recheck option to rerun configure. |
25151 | # |
25152 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
25153 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
25154 | # following values. |
25155 | |
25156 | _ACEOF |
25157 | |
25158 | # The following way of writing the cache mishandles newlines in values, |
25159 | # but we know of no workaround that is simple, portable, and efficient. |
25160 | # So, we kill variables containing newlines. |
25161 | # Ultrix sh set writes to stderr and can't be redirected directly, |
25162 | # and sets the high bit in the cache file unless we assign to the vars. |
25163 | ( |
25164 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
25165 | eval ac_val=\$$ac_var |
25166 | case $ac_val in #( |
25167 | *${as_nl}*) |
25168 | case $ac_var in #( |
25169 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
25170 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
25171 | esac |
25172 | case $ac_var in #( |
25173 | _ | IFS | as_nl) ;; #( |
25174 | *) $as_unset $ac_var ;; |
25175 | esac ;; |
25176 | esac |
25177 | done |
25178 | |
25179 | (set) 2>&1 | |
25180 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
25181 | *${as_nl}ac_space=\ *) |
25182 | # `set' does not quote correctly, so add quotes (double-quote |
25183 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
25184 | sed -n \ |
25185 | "s/'/'\\\\''/g; |
25186 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
25187 | ;; #( |
25188 | *) |
25189 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
25190 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
25191 | ;; |
25192 | esac | |
25193 | sort |
25194 | ) | |
25195 | sed ' |
25196 | /^ac_cv_env_/b end |
25197 | t clear |
25198 | :clear |
25199 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
25200 | t end |
25201 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
25202 | :end' >>confcache |
25203 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
25204 | if test -w "$cache_file"; then |
25205 | test "x$cache_file" != "x/dev/null" && |
25206 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
25207 | echo "$as_me: updating cache $cache_file" >&6;} |
25208 | cat confcache >$cache_file |
25209 | else |
25210 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
25211 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
25212 | fi |
25213 | fi |
25214 | rm -f confcache |
25215 | |
25216 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
25217 | # Let make expand exec_prefix. |
25218 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
25219 | |
25220 | DEFS=-DHAVE_CONFIG_H |
25221 | |
25222 | ac_libobjs= |
25223 | ac_ltlibobjs= |
25224 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
25225 | # 1. Remove the extension, and $U if already installed. |
25226 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
25227 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
25228 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
25229 | # will be set to the directory where LIBOBJS objects are built. |
25230 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
25231 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
25232 | done |
25233 | LIBOBJS=$ac_libobjs |
25234 | |
25235 | LTLIBOBJS=$ac_ltlibobjs |
25236 | |
25237 | |
25238 | if test -z "${INSIDE_GNOME_COMMON_TRUE}" && test -z "${INSIDE_GNOME_COMMON_FALSE}"; then |
25239 | { { echo "$as_me:$LINENO: error: conditional \"INSIDE_GNOME_COMMON\" was never defined. |
25240 | Usually this means the macro was only invoked conditionally." >&5 |
25241 | echo "$as_me: error: conditional \"INSIDE_GNOME_COMMON\" was never defined. |
25242 | Usually this means the macro was only invoked conditionally." >&2;} |
25243 | { (exit 1); exit 1; }; } |
25244 | fi |
25245 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then |
25246 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. |
25247 | Usually this means the macro was only invoked conditionally." >&5 |
25248 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. |
25249 | Usually this means the macro was only invoked conditionally." >&2;} |
25250 | { (exit 1); exit 1; }; } |
25251 | fi |
25252 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
25253 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
25254 | Usually this means the macro was only invoked conditionally." >&5 |
25255 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
25256 | Usually this means the macro was only invoked conditionally." >&2;} |
25257 | { (exit 1); exit 1; }; } |
25258 | fi |
25259 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
25260 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
25261 | Usually this means the macro was only invoked conditionally." >&5 |
25262 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
25263 | Usually this means the macro was only invoked conditionally." >&2;} |
25264 | { (exit 1); exit 1; }; } |
25265 | fi |
25266 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
25267 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
25268 | Usually this means the macro was only invoked conditionally." >&5 |
25269 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
25270 | Usually this means the macro was only invoked conditionally." >&2;} |
25271 | { (exit 1); exit 1; }; } |
25272 | fi |
25273 | if test -z "${HAVE_GCC_LIMITS_TRUE}" && test -z "${HAVE_GCC_LIMITS_FALSE}"; then |
25274 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GCC_LIMITS\" was never defined. |
25275 | Usually this means the macro was only invoked conditionally." >&5 |
25276 | echo "$as_me: error: conditional \"HAVE_GCC_LIMITS\" was never defined. |
25277 | Usually this means the macro was only invoked conditionally." >&2;} |
25278 | { (exit 1); exit 1; }; } |
25279 | fi |
25280 | if test -z "${HAVE_GCC_C89_SUPPORT_TRUE}" && test -z "${HAVE_GCC_C89_SUPPORT_FALSE}"; then |
25281 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GCC_C89_SUPPORT\" was never defined. |
25282 | Usually this means the macro was only invoked conditionally." >&5 |
25283 | echo "$as_me: error: conditional \"HAVE_GCC_C89_SUPPORT\" was never defined. |
25284 | Usually this means the macro was only invoked conditionally." >&2;} |
25285 | { (exit 1); exit 1; }; } |
25286 | fi |
25287 | if test -z "${HAVE_GCC_C94_SUPPORT_TRUE}" && test -z "${HAVE_GCC_C94_SUPPORT_FALSE}"; then |
25288 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GCC_C94_SUPPORT\" was never defined. |
25289 | Usually this means the macro was only invoked conditionally." >&5 |
25290 | echo "$as_me: error: conditional \"HAVE_GCC_C94_SUPPORT\" was never defined. |
25291 | Usually this means the macro was only invoked conditionally." >&2;} |
25292 | { (exit 1); exit 1; }; } |
25293 | fi |
25294 | if test -z "${HAVE_GCC_C99_SUPPORT_TRUE}" && test -z "${HAVE_GCC_C99_SUPPORT_FALSE}"; then |
25295 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GCC_C99_SUPPORT\" was never defined. |
25296 | Usually this means the macro was only invoked conditionally." >&5 |
25297 | echo "$as_me: error: conditional \"HAVE_GCC_C99_SUPPORT\" was never defined. |
25298 | Usually this means the macro was only invoked conditionally." >&2;} |
25299 | { (exit 1); exit 1; }; } |
25300 | fi |
25301 | if test -z "${HAVE_GXX_CXX98_SUPPORT_TRUE}" && test -z "${HAVE_GXX_CXX98_SUPPORT_FALSE}"; then |
25302 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_GXX_CXX98_SUPPORT\" was never defined. |
25303 | Usually this means the macro was only invoked conditionally." >&5 |
25304 | echo "$as_me: error: conditional \"HAVE_GXX_CXX98_SUPPORT\" was never defined. |
25305 | Usually this means the macro was only invoked conditionally." >&2;} |
25306 | { (exit 1); exit 1; }; } |
25307 | fi |
25308 | if test -z "${HAVE_X_TRUE}" && test -z "${HAVE_X_FALSE}"; then |
25309 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_X\" was never defined. |
25310 | Usually this means the macro was only invoked conditionally." >&5 |
25311 | echo "$as_me: error: conditional \"HAVE_X\" was never defined. |
25312 | Usually this means the macro was only invoked conditionally." >&2;} |
25313 | { (exit 1); exit 1; }; } |
25314 | fi |
25315 | if test -z "${ENABLE_DVB_TRUE}" && test -z "${ENABLE_DVB_FALSE}"; then |
25316 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_DVB\" was never defined. |
25317 | Usually this means the macro was only invoked conditionally." >&5 |
25318 | echo "$as_me: error: conditional \"ENABLE_DVB\" was never defined. |
25319 | Usually this means the macro was only invoked conditionally." >&2;} |
25320 | { (exit 1); exit 1; }; } |
25321 | fi |
25322 | if test -z "${ENABLE_PROXY_TRUE}" && test -z "${ENABLE_PROXY_FALSE}"; then |
25323 | { { echo "$as_me:$LINENO: error: conditional \"ENABLE_PROXY\" was never defined. |
25324 | Usually this means the macro was only invoked conditionally." >&5 |
25325 | echo "$as_me: error: conditional \"ENABLE_PROXY\" was never defined. |
25326 | Usually this means the macro was only invoked conditionally." >&2;} |
25327 | { (exit 1); exit 1; }; } |
25328 | fi |
25329 | if test -z "${HAVE_DOXYGEN_TRUE}" && test -z "${HAVE_DOXYGEN_FALSE}"; then |
25330 | { { echo "$as_me:$LINENO: error: conditional \"HAVE_DOXYGEN\" was never defined. |
25331 | Usually this means the macro was only invoked conditionally." >&5 |
25332 | echo "$as_me: error: conditional \"HAVE_DOXYGEN\" was never defined. |
25333 | Usually this means the macro was only invoked conditionally." >&2;} |
25334 | { (exit 1); exit 1; }; } |
25335 | fi |
25336 | if test -z "${BUILD_STATIC_LIB_TRUE}" && test -z "${BUILD_STATIC_LIB_FALSE}"; then |
25337 | { { echo "$as_me:$LINENO: error: conditional \"BUILD_STATIC_LIB\" was never defined. |
25338 | Usually this means the macro was only invoked conditionally." >&5 |
25339 | echo "$as_me: error: conditional \"BUILD_STATIC_LIB\" was never defined. |
25340 | Usually this means the macro was only invoked conditionally." >&2;} |
25341 | { (exit 1); exit 1; }; } |
25342 | fi |
25343 | |
25344 | : ${CONFIG_STATUS=./config.status} |
25345 | ac_clean_files_save=$ac_clean_files |
25346 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
25347 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
25348 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
25349 | cat >$CONFIG_STATUS <<_ACEOF |
25350 | #! $SHELL |
25351 | # Generated by $as_me. |
25352 | # Run this file to recreate the current configuration. |
25353 | # Compiler output produced by configure, useful for debugging |
25354 | # configure, is in config.log if it exists. |
25355 | |
25356 | debug=false |
25357 | ac_cs_recheck=false |
25358 | ac_cs_silent=false |
25359 | SHELL=\${CONFIG_SHELL-$SHELL} |
25360 | _ACEOF |
25361 | |
25362 | cat >>$CONFIG_STATUS <<\_ACEOF |
25363 | ## --------------------- ## |
25364 | ## M4sh Initialization. ## |
25365 | ## --------------------- ## |
25366 | |
25367 | # Be more Bourne compatible |
25368 | DUALCASE=1; export DUALCASE # for MKS sh |
25369 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
25370 | emulate sh |
25371 | NULLCMD=: |
25372 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
25373 | # is contrary to our usage. Disable this feature. |
25374 | alias -g '${1+"$@"}'='"$@"' |
25375 | setopt NO_GLOB_SUBST |
25376 | else |
25377 | case `(set -o) 2>/dev/null` in |
25378 | *posix*) set -o posix ;; |
25379 | esac |
25380 | |
25381 | fi |
25382 | |
25383 | |
25384 | |
25385 | |
25386 | # PATH needs CR |
25387 | # Avoid depending upon Character Ranges. |
25388 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
25389 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
25390 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
25391 | as_cr_digits='0123456789' |
25392 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
25393 | |
25394 | # The user is always right. |
25395 | if test "${PATH_SEPARATOR+set}" != set; then |
25396 | echo "#! /bin/sh" >conf$$.sh |
25397 | echo "exit 0" >>conf$$.sh |
25398 | chmod +x conf$$.sh |
25399 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
25400 | PATH_SEPARATOR=';' |
25401 | else |
25402 | PATH_SEPARATOR=: |
25403 | fi |
25404 | rm -f conf$$.sh |
25405 | fi |
25406 | |
25407 | # Support unset when possible. |
25408 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
25409 | as_unset=unset |
25410 | else |
25411 | as_unset=false |
25412 | fi |
25413 | |
25414 | |
25415 | # IFS |
25416 | # We need space, tab and new line, in precisely that order. Quoting is |
25417 | # there to prevent editors from complaining about space-tab. |
25418 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
25419 | # splitting by setting IFS to empty value.) |
25420 | as_nl=' |
25421 | ' |
25422 | IFS=" "" $as_nl" |
25423 | |
25424 | # Find who we are. Look in the path if we contain no directory separator. |
25425 | case $0 in |
25426 | *[\\/]* ) as_myself=$0 ;; |
25427 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25428 | for as_dir in $PATH |
25429 | do |
25430 | IFS=$as_save_IFS |
25431 | test -z "$as_dir" && as_dir=. |
25432 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
25433 | done |
25434 | IFS=$as_save_IFS |
25435 | |
25436 | ;; |
25437 | esac |
25438 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
25439 | # in which case we are not to be found in the path. |
25440 | if test "x$as_myself" = x; then |
25441 | as_myself=$0 |
25442 | fi |
25443 | if test ! -f "$as_myself"; then |
25444 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
25445 | { (exit 1); exit 1; } |
25446 | fi |
25447 | |
25448 | # Work around bugs in pre-3.0 UWIN ksh. |
25449 | for as_var in ENV MAIL MAILPATH |
25450 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
25451 | done |
25452 | PS1='$ ' |
25453 | PS2='> ' |
25454 | PS4='+ ' |
25455 | |
25456 | # NLS nuisances. |
25457 | for as_var in \ |
25458 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
25459 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
25460 | LC_TELEPHONE LC_TIME |
25461 | do |
25462 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
25463 | eval $as_var=C; export $as_var |
25464 | else |
25465 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
25466 | fi |
25467 | done |
25468 | |
25469 | # Required to use basename. |
25470 | if expr a : '\(a\)' >/dev/null 2>&1 && |
25471 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
25472 | as_expr=expr |
25473 | else |
25474 | as_expr=false |
25475 | fi |
25476 | |
25477 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
25478 | as_basename=basename |
25479 | else |
25480 | as_basename=false |
25481 | fi |
25482 | |
25483 | |
25484 | # Name of the executable. |
25485 | as_me=`$as_basename -- "$0" || |
25486 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
25487 | X"$0" : 'X\(//\)$' \| \ |
25488 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
25489 | echo X/"$0" | |
25490 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
25491 | s//\1/ |
25492 | q |
25493 | } |
25494 | /^X\/\(\/\/\)$/{ |
25495 | s//\1/ |
25496 | q |
25497 | } |
25498 | /^X\/\(\/\).*/{ |
25499 | s//\1/ |
25500 | q |
25501 | } |
25502 | s/.*/./; q'` |
25503 | |
25504 | # CDPATH. |
25505 | $as_unset CDPATH |
25506 | |
25507 | |
25508 | |
25509 | as_lineno_1=$LINENO |
25510 | as_lineno_2=$LINENO |
25511 | test "x$as_lineno_1" != "x$as_lineno_2" && |
25512 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
25513 | |
25514 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
25515 | # uniformly replaced by the line number. The first 'sed' inserts a |
25516 | # line-number line after each line using $LINENO; the second 'sed' |
25517 | # does the real work. The second script uses 'N' to pair each |
25518 | # line-number line with the line containing $LINENO, and appends |
25519 | # trailing '-' during substitution so that $LINENO is not a special |
25520 | # case at line end. |
25521 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
25522 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
25523 | # E. McMahon (1931-1989) for sed's syntax. :-) |
25524 | sed -n ' |
25525 | p |
25526 | /[$]LINENO/= |
25527 | ' <$as_myself | |
25528 | sed ' |
25529 | s/[$]LINENO.*/&-/ |
25530 | t lineno |
25531 | b |
25532 | :lineno |
25533 | N |
25534 | :loop |
25535 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
25536 | t loop |
25537 | s/-\n.*// |
25538 | ' >$as_me.lineno && |
25539 | chmod +x "$as_me.lineno" || |
25540 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
25541 | { (exit 1); exit 1; }; } |
25542 | |
25543 | # Don't try to exec as it changes $[0], causing all sort of problems |
25544 | # (the dirname of $[0] is not the place where we might find the |
25545 | # original and so on. Autoconf is especially sensitive to this). |
25546 | . "./$as_me.lineno" |
25547 | # Exit status is that of the last command. |
25548 | exit |
25549 | } |
25550 | |
25551 | |
25552 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
25553 | as_dirname=dirname |
25554 | else |
25555 | as_dirname=false |
25556 | fi |
25557 | |
25558 | ECHO_C= ECHO_N= ECHO_T= |
25559 | case `echo -n x` in |
25560 | -n*) |
25561 | case `echo 'x\c'` in |
25562 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
25563 | *) ECHO_C='\c';; |
25564 | esac;; |
25565 | *) |
25566 | ECHO_N='-n';; |
25567 | esac |
25568 | |
25569 | if expr a : '\(a\)' >/dev/null 2>&1 && |
25570 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
25571 | as_expr=expr |
25572 | else |
25573 | as_expr=false |
25574 | fi |
25575 | |
25576 | rm -f conf$$ conf$$.exe conf$$.file |
25577 | if test -d conf$$.dir; then |
25578 | rm -f conf$$.dir/conf$$.file |
25579 | else |
25580 | rm -f conf$$.dir |
25581 | mkdir conf$$.dir |
25582 | fi |
25583 | echo >conf$$.file |
25584 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
25585 | as_ln_s='ln -s' |
25586 | # ... but there are two gotchas: |
25587 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
25588 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
25589 | # In both cases, we have to default to `cp -p'. |
25590 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
25591 | as_ln_s='cp -p' |
25592 | elif ln conf$$.file conf$$ 2>/dev/null; then |
25593 | as_ln_s=ln |
25594 | else |
25595 | as_ln_s='cp -p' |
25596 | fi |
25597 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
25598 | rmdir conf$$.dir 2>/dev/null |
25599 | |
25600 | if mkdir -p . 2>/dev/null; then |
25601 | as_mkdir_p=: |
25602 | else |
25603 | test -d ./-p && rmdir ./-p |
25604 | as_mkdir_p=false |
25605 | fi |
25606 | |
25607 | if test -x / >/dev/null 2>&1; then |
25608 | as_test_x='test -x' |
25609 | else |
25610 | if ls -dL / >/dev/null 2>&1; then |
25611 | as_ls_L_option=L |
25612 | else |
25613 | as_ls_L_option= |
25614 | fi |
25615 | as_test_x=' |
25616 | eval sh -c '\'' |
25617 | if test -d "$1"; then |
25618 | test -d "$1/."; |
25619 | else |
25620 | case $1 in |
25621 | -*)set "./$1";; |
25622 | esac; |
25623 | case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in |
25624 | ???[sx]*):;;*)false;;esac;fi |
25625 | '\'' sh |
25626 | ' |
25627 | fi |
25628 | as_executable_p=$as_test_x |
25629 | |
25630 | # Sed expression to map a string onto a valid CPP name. |
25631 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
25632 | |
25633 | # Sed expression to map a string onto a valid variable name. |
25634 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
25635 | |
25636 | |
25637 | exec 6>&1 |
25638 | |
25639 | # Save the log message, to keep $[0] and so on meaningful, and to |
25640 | # report actual input values of CONFIG_FILES etc. instead of their |
25641 | # values after options handling. |
25642 | ac_log=" |
25643 | This file was extended by zvbi $as_me 0.2.33, which was |
25644 | generated by GNU Autoconf 2.61. Invocation command line was |
25645 | |
25646 | CONFIG_FILES = $CONFIG_FILES |
25647 | CONFIG_HEADERS = $CONFIG_HEADERS |
25648 | CONFIG_LINKS = $CONFIG_LINKS |
25649 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
25650 | $ $0 $@ |
25651 | |
25652 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
25653 | " |
25654 | |
25655 | _ACEOF |
25656 | |
25657 | cat >>$CONFIG_STATUS <<_ACEOF |
25658 | # Files that config.status was made for. |
25659 | config_files="$ac_config_files" |
25660 | config_headers="$ac_config_headers" |
25661 | config_commands="$ac_config_commands" |
25662 | |
25663 | _ACEOF |
25664 | |
25665 | cat >>$CONFIG_STATUS <<\_ACEOF |
25666 | ac_cs_usage="\ |
25667 | \`$as_me' instantiates files from templates according to the |
25668 | current configuration. |
25669 | |
25670 | Usage: $0 [OPTIONS] [FILE]... |
25671 | |
25672 | -h, --help print this help, then exit |
25673 | -V, --version print version number and configuration settings, then exit |
25674 | -q, --quiet do not print progress messages |
25675 | -d, --debug don't remove temporary files |
25676 | --recheck update $as_me by reconfiguring in the same conditions |
25677 | --file=FILE[:TEMPLATE] |
25678 | instantiate the configuration file FILE |
25679 | --header=FILE[:TEMPLATE] |
25680 | instantiate the configuration header FILE |
25681 | |
25682 | Configuration files: |
25683 | $config_files |
25684 | |
25685 | Configuration headers: |
25686 | $config_headers |
25687 | |
25688 | Configuration commands: |
25689 | $config_commands |
25690 | |
25691 | Report bugs to <bug-autoconf@gnu.org>." |
25692 | |
25693 | _ACEOF |
25694 | cat >>$CONFIG_STATUS <<_ACEOF |
25695 | ac_cs_version="\\ |
25696 | zvbi config.status 0.2.33 |
25697 | configured by $0, generated by GNU Autoconf 2.61, |
25698 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
25699 | |
25700 | Copyright (C) 2006 Free Software Foundation, Inc. |
25701 | This config.status script is free software; the Free Software Foundation |
25702 | gives unlimited permission to copy, distribute and modify it." |
25703 | |
25704 | ac_pwd='$ac_pwd' |
25705 | srcdir='$srcdir' |
25706 | INSTALL='$INSTALL' |
25707 | _ACEOF |
25708 | |
25709 | cat >>$CONFIG_STATUS <<\_ACEOF |
25710 | # If no file are specified by the user, then we need to provide default |
25711 | # value. By we need to know if files were specified by the user. |
25712 | ac_need_defaults=: |
25713 | while test $# != 0 |
25714 | do |
25715 | case $1 in |
25716 | --*=*) |
25717 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
25718 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
25719 | ac_shift=: |
25720 | ;; |
25721 | *) |
25722 | ac_option=$1 |
25723 | ac_optarg=$2 |
25724 | ac_shift=shift |
25725 | ;; |
25726 | esac |
25727 | |
25728 | case $ac_option in |
25729 | # Handling of the options. |
25730 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
25731 | ac_cs_recheck=: ;; |
25732 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
25733 | echo "$ac_cs_version"; exit ;; |
25734 | --debug | --debu | --deb | --de | --d | -d ) |
25735 | debug=: ;; |
25736 | --file | --fil | --fi | --f ) |
25737 | $ac_shift |
25738 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
25739 | ac_need_defaults=false;; |
25740 | --header | --heade | --head | --hea ) |
25741 | $ac_shift |
25742 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
25743 | ac_need_defaults=false;; |
25744 | --he | --h) |
25745 | # Conflict between --help and --header |
25746 | { echo "$as_me: error: ambiguous option: $1 |
25747 | Try \`$0 --help' for more information." >&2 |
25748 | { (exit 1); exit 1; }; };; |
25749 | --help | --hel | -h ) |
25750 | echo "$ac_cs_usage"; exit ;; |
25751 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
25752 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
25753 | ac_cs_silent=: ;; |
25754 | |
25755 | # This is an error. |
25756 | -*) { echo "$as_me: error: unrecognized option: $1 |
25757 | Try \`$0 --help' for more information." >&2 |
25758 | { (exit 1); exit 1; }; } ;; |
25759 | |
25760 | *) ac_config_targets="$ac_config_targets $1" |
25761 | ac_need_defaults=false ;; |
25762 | |
25763 | esac |
25764 | shift |
25765 | done |
25766 | |
25767 | ac_configure_extra_args= |
25768 | |
25769 | if $ac_cs_silent; then |
25770 | exec 6>/dev/null |
25771 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
25772 | fi |
25773 | |
25774 | _ACEOF |
25775 | cat >>$CONFIG_STATUS <<_ACEOF |
25776 | if \$ac_cs_recheck; then |
25777 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
25778 | CONFIG_SHELL=$SHELL |
25779 | export CONFIG_SHELL |
25780 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
25781 | fi |
25782 | |
25783 | _ACEOF |
25784 | cat >>$CONFIG_STATUS <<\_ACEOF |
25785 | exec 5>>config.log |
25786 | { |
25787 | echo |
25788 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
25789 | ## Running $as_me. ## |
25790 | _ASBOX |
25791 | echo "$ac_log" |
25792 | } >&5 |
25793 | |
25794 | _ACEOF |
25795 | cat >>$CONFIG_STATUS <<_ACEOF |
25796 | # |
25797 | # INIT-COMMANDS |
25798 | # |
25799 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
25800 | # Capture the value of obsolete ALL_LINGUAS because we need it to compute |
25801 | # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it |
25802 | # from automake < 1.5. |
25803 | eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' |
25804 | # Capture the value of LINGUAS because we need it to compute CATALOGS. |
25805 | LINGUAS="${LINGUAS-%UNSET%}" |
25806 | |
25807 | |
25808 | _ACEOF |
25809 | |
25810 | cat >>$CONFIG_STATUS <<\_ACEOF |
25811 | |
25812 | # Handling of arguments. |
25813 | for ac_config_target in $ac_config_targets |
25814 | do |
25815 | case $ac_config_target in |
25816 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
25817 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
25818 | "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; |
25819 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
25820 | "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; |
25821 | "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; |
25822 | "daemon/Makefile") CONFIG_FILES="$CONFIG_FILES daemon/Makefile" ;; |
25823 | "daemon/zvbid.init") CONFIG_FILES="$CONFIG_FILES daemon/zvbid.init" ;; |
25824 | "doc/Doxyfile") CONFIG_FILES="$CONFIG_FILES doc/Doxyfile" ;; |
25825 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
25826 | "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; |
25827 | "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; |
25828 | "src/dvb/Makefile") CONFIG_FILES="$CONFIG_FILES src/dvb/Makefile" ;; |
25829 | "test/Makefile") CONFIG_FILES="$CONFIG_FILES test/Makefile" ;; |
25830 | "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; |
25831 | "zvbi.spec") CONFIG_FILES="$CONFIG_FILES zvbi.spec" ;; |
25832 | "zvbi-0.2.pc") CONFIG_FILES="$CONFIG_FILES zvbi-0.2.pc" ;; |
25833 | |
25834 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
25835 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
25836 | { (exit 1); exit 1; }; };; |
25837 | esac |
25838 | done |
25839 | |
25840 | |
25841 | # If the user did not use the arguments to specify the items to instantiate, |
25842 | # then the envvar interface is used. Set only those that are not. |
25843 | # We use the long form for the default assignment because of an extremely |
25844 | # bizarre bug on SunOS 4.1.3. |
25845 | if $ac_need_defaults; then |
25846 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
25847 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
25848 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
25849 | fi |
25850 | |
25851 | # Have a temporary directory for convenience. Make it in the build tree |
25852 | # simply because there is no reason against having it here, and in addition, |
25853 | # creating and moving files from /tmp can sometimes cause problems. |
25854 | # Hook for its removal unless debugging. |
25855 | # Note that there is a small window in which the directory will not be cleaned: |
25856 | # after its creation but before its name has been assigned to `$tmp'. |
25857 | $debug || |
25858 | { |
25859 | tmp= |
25860 | trap 'exit_status=$? |
25861 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
25862 | ' 0 |
25863 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
25864 | } |
25865 | # Create a (secure) tmp directory for tmp files. |
25866 | |
25867 | { |
25868 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
25869 | test -n "$tmp" && test -d "$tmp" |
25870 | } || |
25871 | { |
25872 | tmp=./conf$$-$RANDOM |
25873 | (umask 077 && mkdir "$tmp") |
25874 | } || |
25875 | { |
25876 | echo "$me: cannot create a temporary directory in ." >&2 |
25877 | { (exit 1); exit 1; } |
25878 | } |
25879 | |
25880 | # |
25881 | # Set up the sed scripts for CONFIG_FILES section. |
25882 | # |
25883 | |
25884 | # No need to generate the scripts if there are no CONFIG_FILES. |
25885 | # This happens for instance when ./config.status config.h |
25886 | if test -n "$CONFIG_FILES"; then |
25887 | |
25888 | _ACEOF |
25889 | |
25890 | |
25891 | |
25892 | ac_delim='%!_!# ' |
25893 | for ac_last_try in false false false false false :; do |
25894 | cat >conf$$subs.sed <<_ACEOF |
25895 | SHELL!$SHELL$ac_delim |
25896 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
25897 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
25898 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
25899 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
25900 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
25901 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
25902 | exec_prefix!$exec_prefix$ac_delim |
25903 | prefix!$prefix$ac_delim |
25904 | program_transform_name!$program_transform_name$ac_delim |
25905 | bindir!$bindir$ac_delim |
25906 | sbindir!$sbindir$ac_delim |
25907 | libexecdir!$libexecdir$ac_delim |
25908 | datarootdir!$datarootdir$ac_delim |
25909 | datadir!$datadir$ac_delim |
25910 | sysconfdir!$sysconfdir$ac_delim |
25911 | sharedstatedir!$sharedstatedir$ac_delim |
25912 | localstatedir!$localstatedir$ac_delim |
25913 | includedir!$includedir$ac_delim |
25914 | oldincludedir!$oldincludedir$ac_delim |
25915 | docdir!$docdir$ac_delim |
25916 | infodir!$infodir$ac_delim |
25917 | htmldir!$htmldir$ac_delim |
25918 | dvidir!$dvidir$ac_delim |
25919 | pdfdir!$pdfdir$ac_delim |
25920 | psdir!$psdir$ac_delim |
25921 | libdir!$libdir$ac_delim |
25922 | localedir!$localedir$ac_delim |
25923 | mandir!$mandir$ac_delim |
25924 | DEFS!$DEFS$ac_delim |
25925 | ECHO_C!$ECHO_C$ac_delim |
25926 | ECHO_N!$ECHO_N$ac_delim |
25927 | ECHO_T!$ECHO_T$ac_delim |
25928 | LIBS!$LIBS$ac_delim |
25929 | build_alias!$build_alias$ac_delim |
25930 | host_alias!$host_alias$ac_delim |
25931 | target_alias!$target_alias$ac_delim |
25932 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
25933 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
25934 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
25935 | CYGPATH_W!$CYGPATH_W$ac_delim |
25936 | PACKAGE!$PACKAGE$ac_delim |
25937 | VERSION!$VERSION$ac_delim |
25938 | ACLOCAL!$ACLOCAL$ac_delim |
25939 | AUTOCONF!$AUTOCONF$ac_delim |
25940 | AUTOMAKE!$AUTOMAKE$ac_delim |
25941 | AUTOHEADER!$AUTOHEADER$ac_delim |
25942 | MAKEINFO!$MAKEINFO$ac_delim |
25943 | install_sh!$install_sh$ac_delim |
25944 | STRIP!$STRIP$ac_delim |
25945 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
25946 | mkdir_p!$mkdir_p$ac_delim |
25947 | AWK!$AWK$ac_delim |
25948 | SET_MAKE!$SET_MAKE$ac_delim |
25949 | am__leading_dot!$am__leading_dot$ac_delim |
25950 | AMTAR!$AMTAR$ac_delim |
25951 | am__tar!$am__tar$ac_delim |
25952 | am__untar!$am__untar$ac_delim |
25953 | INSIDE_GNOME_COMMON_TRUE!$INSIDE_GNOME_COMMON_TRUE$ac_delim |
25954 | INSIDE_GNOME_COMMON_FALSE!$INSIDE_GNOME_COMMON_FALSE$ac_delim |
25955 | MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim |
25956 | MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim |
25957 | MAINT!$MAINT$ac_delim |
25958 | LIBZVBI_SO_VERSION!$LIBZVBI_SO_VERSION$ac_delim |
25959 | CC!$CC$ac_delim |
25960 | CFLAGS!$CFLAGS$ac_delim |
25961 | LDFLAGS!$LDFLAGS$ac_delim |
25962 | CPPFLAGS!$CPPFLAGS$ac_delim |
25963 | ac_ct_CC!$ac_ct_CC$ac_delim |
25964 | EXEEXT!$EXEEXT$ac_delim |
25965 | OBJEXT!$OBJEXT$ac_delim |
25966 | DEPDIR!$DEPDIR$ac_delim |
25967 | am__include!$am__include$ac_delim |
25968 | am__quote!$am__quote$ac_delim |
25969 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
25970 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
25971 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
25972 | CCDEPMODE!$CCDEPMODE$ac_delim |
25973 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
25974 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
25975 | CXX!$CXX$ac_delim |
25976 | CXXFLAGS!$CXXFLAGS$ac_delim |
25977 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
25978 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
25979 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
25980 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
25981 | CPP!$CPP$ac_delim |
25982 | GREP!$GREP$ac_delim |
25983 | EGREP!$EGREP$ac_delim |
25984 | build!$build$ac_delim |
25985 | build_cpu!$build_cpu$ac_delim |
25986 | build_vendor!$build_vendor$ac_delim |
25987 | build_os!$build_os$ac_delim |
25988 | host!$host$ac_delim |
25989 | host_cpu!$host_cpu$ac_delim |
25990 | host_vendor!$host_vendor$ac_delim |
25991 | host_os!$host_os$ac_delim |
25992 | _ACEOF |
25993 | |
25994 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
25995 | break |
25996 | elif $ac_last_try; then |
25997 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
25998 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
25999 | { (exit 1); exit 1; }; } |
26000 | else |
26001 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
26002 | fi |
26003 | done |
26004 | |
26005 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
26006 | if test -n "$ac_eof"; then |
26007 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
26008 | ac_eof=`expr $ac_eof + 1` |
26009 | fi |
26010 | |
26011 | cat >>$CONFIG_STATUS <<_ACEOF |
26012 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
26013 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
26014 | _ACEOF |
26015 | sed ' |
26016 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
26017 | s/^/s,@/; s/!/@,|#_!!_#|/ |
26018 | :n |
26019 | t n |
26020 | s/'"$ac_delim"'$/,g/; t |
26021 | s/$/\\/; p |
26022 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
26023 | ' >>$CONFIG_STATUS <conf$$subs.sed |
26024 | rm -f conf$$subs.sed |
26025 | cat >>$CONFIG_STATUS <<_ACEOF |
26026 | CEOF$ac_eof |
26027 | _ACEOF |
26028 | |
26029 | |
26030 | ac_delim='%!_!# ' |
26031 | for ac_last_try in false false false false false :; do |
26032 | cat >conf$$subs.sed <<_ACEOF |
26033 | LN_S!$LN_S$ac_delim |
26034 | ECHO!$ECHO$ac_delim |
26035 | AR!$AR$ac_delim |
26036 | RANLIB!$RANLIB$ac_delim |
26037 | CXXCPP!$CXXCPP$ac_delim |
26038 | F77!$F77$ac_delim |
26039 | FFLAGS!$FFLAGS$ac_delim |
26040 | ac_ct_F77!$ac_ct_F77$ac_delim |
26041 | LIBTOOL!$LIBTOOL$ac_delim |
26042 | HAVE_GCC_LIMITS_TRUE!$HAVE_GCC_LIMITS_TRUE$ac_delim |
26043 | HAVE_GCC_LIMITS_FALSE!$HAVE_GCC_LIMITS_FALSE$ac_delim |
26044 | HAVE_GCC_C89_SUPPORT_TRUE!$HAVE_GCC_C89_SUPPORT_TRUE$ac_delim |
26045 | HAVE_GCC_C89_SUPPORT_FALSE!$HAVE_GCC_C89_SUPPORT_FALSE$ac_delim |
26046 | HAVE_GCC_C94_SUPPORT_TRUE!$HAVE_GCC_C94_SUPPORT_TRUE$ac_delim |
26047 | HAVE_GCC_C94_SUPPORT_FALSE!$HAVE_GCC_C94_SUPPORT_FALSE$ac_delim |
26048 | HAVE_GCC_C99_SUPPORT_TRUE!$HAVE_GCC_C99_SUPPORT_TRUE$ac_delim |
26049 | HAVE_GCC_C99_SUPPORT_FALSE!$HAVE_GCC_C99_SUPPORT_FALSE$ac_delim |
26050 | HAVE_GXX_CXX98_SUPPORT_TRUE!$HAVE_GXX_CXX98_SUPPORT_TRUE$ac_delim |
26051 | HAVE_GXX_CXX98_SUPPORT_FALSE!$HAVE_GXX_CXX98_SUPPORT_FALSE$ac_delim |
26052 | UNICODE_CFLAGS!$UNICODE_CFLAGS$ac_delim |
26053 | UNICODE_LIBS!$UNICODE_LIBS$ac_delim |
26054 | LIBICONV!$LIBICONV$ac_delim |
26055 | LTLIBICONV!$LTLIBICONV$ac_delim |
26056 | XMKMF!$XMKMF$ac_delim |
26057 | X_CFLAGS!$X_CFLAGS$ac_delim |
26058 | X_PRE_LIBS!$X_PRE_LIBS$ac_delim |
26059 | X_LIBS!$X_LIBS$ac_delim |
26060 | X_EXTRA_LIBS!$X_EXTRA_LIBS$ac_delim |
26061 | HAVE_X_TRUE!$HAVE_X_TRUE$ac_delim |
26062 | HAVE_X_FALSE!$HAVE_X_FALSE$ac_delim |
26063 | ENABLE_DVB_TRUE!$ENABLE_DVB_TRUE$ac_delim |
26064 | ENABLE_DVB_FALSE!$ENABLE_DVB_FALSE$ac_delim |
26065 | ENABLE_PROXY_TRUE!$ENABLE_PROXY_TRUE$ac_delim |
26066 | ENABLE_PROXY_FALSE!$ENABLE_PROXY_FALSE$ac_delim |
26067 | USE_NLS!$USE_NLS$ac_delim |
26068 | MSGFMT!$MSGFMT$ac_delim |
26069 | GMSGFMT!$GMSGFMT$ac_delim |
26070 | MSGFMT_015!$MSGFMT_015$ac_delim |
26071 | GMSGFMT_015!$GMSGFMT_015$ac_delim |
26072 | XGETTEXT!$XGETTEXT$ac_delim |
26073 | XGETTEXT_015!$XGETTEXT_015$ac_delim |
26074 | MSGMERGE!$MSGMERGE$ac_delim |
26075 | INTL_MACOSX_LIBS!$INTL_MACOSX_LIBS$ac_delim |
26076 | INTLLIBS!$INTLLIBS$ac_delim |
26077 | LIBINTL!$LIBINTL$ac_delim |
26078 | LTLIBINTL!$LTLIBINTL$ac_delim |
26079 | POSUB!$POSUB$ac_delim |
26080 | HAVE_DOXYGEN!$HAVE_DOXYGEN$ac_delim |
26081 | HAVE_DOXYGEN_TRUE!$HAVE_DOXYGEN_TRUE$ac_delim |
26082 | HAVE_DOXYGEN_FALSE!$HAVE_DOXYGEN_FALSE$ac_delim |
26083 | BUILD_STATIC_LIB_TRUE!$BUILD_STATIC_LIB_TRUE$ac_delim |
26084 | BUILD_STATIC_LIB_FALSE!$BUILD_STATIC_LIB_FALSE$ac_delim |
26085 | LIBOBJS!$LIBOBJS$ac_delim |
26086 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
26087 | _ACEOF |
26088 | |
26089 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 54; then |
26090 | break |
26091 | elif $ac_last_try; then |
26092 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
26093 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
26094 | { (exit 1); exit 1; }; } |
26095 | else |
26096 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
26097 | fi |
26098 | done |
26099 | |
26100 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
26101 | if test -n "$ac_eof"; then |
26102 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
26103 | ac_eof=`expr $ac_eof + 1` |
26104 | fi |
26105 | |
26106 | cat >>$CONFIG_STATUS <<_ACEOF |
26107 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
26108 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
26109 | _ACEOF |
26110 | sed ' |
26111 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
26112 | s/^/s,@/; s/!/@,|#_!!_#|/ |
26113 | :n |
26114 | t n |
26115 | s/'"$ac_delim"'$/,g/; t |
26116 | s/$/\\/; p |
26117 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
26118 | ' >>$CONFIG_STATUS <conf$$subs.sed |
26119 | rm -f conf$$subs.sed |
26120 | cat >>$CONFIG_STATUS <<_ACEOF |
26121 | :end |
26122 | s/|#_!!_#|//g |
26123 | CEOF$ac_eof |
26124 | _ACEOF |
26125 | |
26126 | |
26127 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
26128 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
26129 | # trailing colons and then remove the whole line if VPATH becomes empty |
26130 | # (actually we leave an empty line to preserve line numbers). |
26131 | if test "x$srcdir" = x.; then |
26132 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
26133 | s/:*\$(srcdir):*/:/ |
26134 | s/:*\${srcdir}:*/:/ |
26135 | s/:*@srcdir@:*/:/ |
26136 | s/^\([^=]*=[ ]*\):*/\1/ |
26137 | s/:*$// |
26138 | s/^[^=]*=[ ]*$// |
26139 | }' |
26140 | fi |
26141 | |
26142 | cat >>$CONFIG_STATUS <<\_ACEOF |
26143 | fi # test -n "$CONFIG_FILES" |
26144 | |
26145 | |
26146 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
26147 | do |
26148 | case $ac_tag in |
26149 | :[FHLC]) ac_mode=$ac_tag; continue;; |
26150 | esac |
26151 | case $ac_mode$ac_tag in |
26152 | :[FHL]*:*);; |
26153 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
26154 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
26155 | { (exit 1); exit 1; }; };; |
26156 | :[FH]-) ac_tag=-:-;; |
26157 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
26158 | esac |
26159 | ac_save_IFS=$IFS |
26160 | IFS=: |
26161 | set x $ac_tag |
26162 | IFS=$ac_save_IFS |
26163 | shift |
26164 | ac_file=$1 |
26165 | shift |
26166 | |
26167 | case $ac_mode in |
26168 | :L) ac_source=$1;; |
26169 | :[FH]) |
26170 | ac_file_inputs= |
26171 | for ac_f |
26172 | do |
26173 | case $ac_f in |
26174 | -) ac_f="$tmp/stdin";; |
26175 | *) # Look for the file first in the build tree, then in the source tree |
26176 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
26177 | # because $ac_f cannot contain `:'. |
26178 | test -f "$ac_f" || |
26179 | case $ac_f in |
26180 | [\\/$]*) false;; |
26181 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
26182 | esac || |
26183 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
26184 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
26185 | { (exit 1); exit 1; }; };; |
26186 | esac |
26187 | ac_file_inputs="$ac_file_inputs $ac_f" |
26188 | done |
26189 | |
26190 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
26191 | # use $as_me), people would be surprised to read: |
26192 | # /* config.h. Generated by config.status. */ |
26193 | configure_input="Generated from "`IFS=: |
26194 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
26195 | if test x"$ac_file" != x-; then |
26196 | configure_input="$ac_file. $configure_input" |
26197 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
26198 | echo "$as_me: creating $ac_file" >&6;} |
26199 | fi |
26200 | |
26201 | case $ac_tag in |
26202 | *:-:* | *:-) cat >"$tmp/stdin";; |
26203 | esac |
26204 | ;; |
26205 | esac |
26206 | |
26207 | ac_dir=`$as_dirname -- "$ac_file" || |
26208 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26209 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
26210 | X"$ac_file" : 'X\(//\)$' \| \ |
26211 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
26212 | echo X"$ac_file" | |
26213 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
26214 | s//\1/ |
26215 | q |
26216 | } |
26217 | /^X\(\/\/\)[^/].*/{ |
26218 | s//\1/ |
26219 | q |
26220 | } |
26221 | /^X\(\/\/\)$/{ |
26222 | s//\1/ |
26223 | q |
26224 | } |
26225 | /^X\(\/\).*/{ |
26226 | s//\1/ |
26227 | q |
26228 | } |
26229 | s/.*/./; q'` |
26230 | { as_dir="$ac_dir" |
26231 | case $as_dir in #( |
26232 | -*) as_dir=./$as_dir;; |
26233 | esac |
26234 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
26235 | as_dirs= |
26236 | while :; do |
26237 | case $as_dir in #( |
26238 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
26239 | *) as_qdir=$as_dir;; |
26240 | esac |
26241 | as_dirs="'$as_qdir' $as_dirs" |
26242 | as_dir=`$as_dirname -- "$as_dir" || |
26243 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26244 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
26245 | X"$as_dir" : 'X\(//\)$' \| \ |
26246 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
26247 | echo X"$as_dir" | |
26248 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
26249 | s//\1/ |
26250 | q |
26251 | } |
26252 | /^X\(\/\/\)[^/].*/{ |
26253 | s//\1/ |
26254 | q |
26255 | } |
26256 | /^X\(\/\/\)$/{ |
26257 | s//\1/ |
26258 | q |
26259 | } |
26260 | /^X\(\/\).*/{ |
26261 | s//\1/ |
26262 | q |
26263 | } |
26264 | s/.*/./; q'` |
26265 | test -d "$as_dir" && break |
26266 | done |
26267 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
26268 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
26269 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
26270 | { (exit 1); exit 1; }; }; } |
26271 | ac_builddir=. |
26272 | |
26273 | case "$ac_dir" in |
26274 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
26275 | *) |
26276 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
26277 | # A ".." for each directory in $ac_dir_suffix. |
26278 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
26279 | case $ac_top_builddir_sub in |
26280 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
26281 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
26282 | esac ;; |
26283 | esac |
26284 | ac_abs_top_builddir=$ac_pwd |
26285 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
26286 | # for backward compatibility: |
26287 | ac_top_builddir=$ac_top_build_prefix |
26288 | |
26289 | case $srcdir in |
26290 | .) # We are building in place. |
26291 | ac_srcdir=. |
26292 | ac_top_srcdir=$ac_top_builddir_sub |
26293 | ac_abs_top_srcdir=$ac_pwd ;; |
26294 | [\\/]* | ?:[\\/]* ) # Absolute name. |
26295 | ac_srcdir=$srcdir$ac_dir_suffix; |
26296 | ac_top_srcdir=$srcdir |
26297 | ac_abs_top_srcdir=$srcdir ;; |
26298 | *) # Relative name. |
26299 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
26300 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
26301 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
26302 | esac |
26303 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
26304 | |
26305 | |
26306 | case $ac_mode in |
26307 | :F) |
26308 | # |
26309 | # CONFIG_FILE |
26310 | # |
26311 | |
26312 | case $INSTALL in |
26313 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
26314 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
26315 | esac |
26316 | _ACEOF |
26317 | |
26318 | cat >>$CONFIG_STATUS <<\_ACEOF |
26319 | # If the template does not know about datarootdir, expand it. |
26320 | # FIXME: This hack should be removed a few years after 2.60. |
26321 | ac_datarootdir_hack=; ac_datarootdir_seen= |
26322 | |
26323 | case `sed -n '/datarootdir/ { |
26324 | p |
26325 | q |
26326 | } |
26327 | /@datadir@/p |
26328 | /@docdir@/p |
26329 | /@infodir@/p |
26330 | /@localedir@/p |
26331 | /@mandir@/p |
26332 | ' $ac_file_inputs` in |
26333 | *datarootdir*) ac_datarootdir_seen=yes;; |
26334 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
26335 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
26336 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
26337 | _ACEOF |
26338 | cat >>$CONFIG_STATUS <<_ACEOF |
26339 | ac_datarootdir_hack=' |
26340 | s&@datadir@&$datadir&g |
26341 | s&@docdir@&$docdir&g |
26342 | s&@infodir@&$infodir&g |
26343 | s&@localedir@&$localedir&g |
26344 | s&@mandir@&$mandir&g |
26345 | s&\\\${datarootdir}&$datarootdir&g' ;; |
26346 | esac |
26347 | _ACEOF |
26348 | |
26349 | # Neutralize VPATH when `$srcdir' = `.'. |
26350 | # Shell code in configure.ac might set extrasub. |
26351 | # FIXME: do we really want to maintain this feature? |
26352 | cat >>$CONFIG_STATUS <<_ACEOF |
26353 | sed "$ac_vpsub |
26354 | $extrasub |
26355 | _ACEOF |
26356 | cat >>$CONFIG_STATUS <<\_ACEOF |
26357 | :t |
26358 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
26359 | s&@configure_input@&$configure_input&;t t |
26360 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
26361 | s&@srcdir@&$ac_srcdir&;t t |
26362 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
26363 | s&@top_srcdir@&$ac_top_srcdir&;t t |
26364 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
26365 | s&@builddir@&$ac_builddir&;t t |
26366 | s&@abs_builddir@&$ac_abs_builddir&;t t |
26367 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
26368 | s&@INSTALL@&$ac_INSTALL&;t t |
26369 | $ac_datarootdir_hack |
26370 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
26371 | |
26372 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
26373 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
26374 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
26375 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
26376 | which seems to be undefined. Please make sure it is defined." >&5 |
26377 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
26378 | which seems to be undefined. Please make sure it is defined." >&2;} |
26379 | |
26380 | rm -f "$tmp/stdin" |
26381 | case $ac_file in |
26382 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
26383 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
26384 | esac |
26385 | ;; |
26386 | :H) |
26387 | # |
26388 | # CONFIG_HEADER |
26389 | # |
26390 | _ACEOF |
26391 | |
26392 | # Transform confdefs.h into a sed script `conftest.defines', that |
26393 | # substitutes the proper values into config.h.in to produce config.h. |
26394 | rm -f conftest.defines conftest.tail |
26395 | # First, append a space to every undef/define line, to ease matching. |
26396 | echo 's/$/ /' >conftest.defines |
26397 | # Then, protect against being on the right side of a sed subst, or in |
26398 | # an unquoted here document, in config.status. If some macros were |
26399 | # called several times there might be several #defines for the same |
26400 | # symbol, which is useless. But do not sort them, since the last |
26401 | # AC_DEFINE must be honored. |
26402 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
26403 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
26404 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
26405 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
26406 | # just an empty string. |
26407 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
26408 | ac_dB='\\)[ (].*,\\1define\\2' |
26409 | ac_dC=' ' |
26410 | ac_dD=' ,' |
26411 | |
26412 | uniq confdefs.h | |
26413 | sed -n ' |
26414 | t rset |
26415 | :rset |
26416 | s/^[ ]*#[ ]*define[ ][ ]*// |
26417 | t ok |
26418 | d |
26419 | :ok |
26420 | s/[\\&,]/\\&/g |
26421 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
26422 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
26423 | ' >>conftest.defines |
26424 | |
26425 | # Remove the space that was appended to ease matching. |
26426 | # Then replace #undef with comments. This is necessary, for |
26427 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
26428 | # on some systems where configure will not decide to define it. |
26429 | # (The regexp can be short, since the line contains either #define or #undef.) |
26430 | echo 's/ $// |
26431 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
26432 | |
26433 | # Break up conftest.defines: |
26434 | ac_max_sed_lines=50 |
26435 | |
26436 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
26437 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
26438 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
26439 | # et cetera. |
26440 | ac_in='$ac_file_inputs' |
26441 | ac_out='"$tmp/out1"' |
26442 | ac_nxt='"$tmp/out2"' |
26443 | |
26444 | while : |
26445 | do |
26446 | # Write a here document: |
26447 | cat >>$CONFIG_STATUS <<_ACEOF |
26448 | # First, check the format of the line: |
26449 | cat >"\$tmp/defines.sed" <<\\CEOF |
26450 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
26451 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
26452 | b |
26453 | :def |
26454 | _ACEOF |
26455 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
26456 | echo 'CEOF |
26457 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
26458 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
26459 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
26460 | grep . conftest.tail >/dev/null || break |
26461 | rm -f conftest.defines |
26462 | mv conftest.tail conftest.defines |
26463 | done |
26464 | rm -f conftest.defines conftest.tail |
26465 | |
26466 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
26467 | cat >>$CONFIG_STATUS <<\_ACEOF |
26468 | if test x"$ac_file" != x-; then |
26469 | echo "/* $configure_input */" >"$tmp/config.h" |
26470 | cat "$ac_result" >>"$tmp/config.h" |
26471 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
26472 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
26473 | echo "$as_me: $ac_file is unchanged" >&6;} |
26474 | else |
26475 | rm -f $ac_file |
26476 | mv "$tmp/config.h" $ac_file |
26477 | fi |
26478 | else |
26479 | echo "/* $configure_input */" |
26480 | cat "$ac_result" |
26481 | fi |
26482 | rm -f "$tmp/out12" |
26483 | # Compute $ac_file's index in $config_headers. |
26484 | _am_stamp_count=1 |
26485 | for _am_header in $config_headers :; do |
26486 | case $_am_header in |
26487 | $ac_file | $ac_file:* ) |
26488 | break ;; |
26489 | * ) |
26490 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
26491 | esac |
26492 | done |
26493 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
26494 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26495 | X$ac_file : 'X\(//\)[^/]' \| \ |
26496 | X$ac_file : 'X\(//\)$' \| \ |
26497 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
26498 | echo X$ac_file | |
26499 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
26500 | s//\1/ |
26501 | q |
26502 | } |
26503 | /^X\(\/\/\)[^/].*/{ |
26504 | s//\1/ |
26505 | q |
26506 | } |
26507 | /^X\(\/\/\)$/{ |
26508 | s//\1/ |
26509 | q |
26510 | } |
26511 | /^X\(\/\).*/{ |
26512 | s//\1/ |
26513 | q |
26514 | } |
26515 | s/.*/./; q'`/stamp-h$_am_stamp_count |
26516 | ;; |
26517 | |
26518 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
26519 | echo "$as_me: executing $ac_file commands" >&6;} |
26520 | ;; |
26521 | esac |
26522 | |
26523 | |
26524 | case $ac_file$ac_mode in |
26525 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
26526 | # Strip MF so we end up with the name of the file. |
26527 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
26528 | # Check whether this is an Automake generated Makefile or not. |
26529 | # We used to match only the files named `Makefile.in', but |
26530 | # some people rename them; so instead we look at the file content. |
26531 | # Grep'ing the first line is not enough: some people post-process |
26532 | # each Makefile.in and add a new line on top of each file to say so. |
26533 | # So let's grep whole file. |
26534 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
26535 | dirpart=`$as_dirname -- "$mf" || |
26536 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26537 | X"$mf" : 'X\(//\)[^/]' \| \ |
26538 | X"$mf" : 'X\(//\)$' \| \ |
26539 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
26540 | echo X"$mf" | |
26541 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
26542 | s//\1/ |
26543 | q |
26544 | } |
26545 | /^X\(\/\/\)[^/].*/{ |
26546 | s//\1/ |
26547 | q |
26548 | } |
26549 | /^X\(\/\/\)$/{ |
26550 | s//\1/ |
26551 | q |
26552 | } |
26553 | /^X\(\/\).*/{ |
26554 | s//\1/ |
26555 | q |
26556 | } |
26557 | s/.*/./; q'` |
26558 | else |
26559 | continue |
26560 | fi |
26561 | # Extract the definition of DEPDIR, am__include, and am__quote |
26562 | # from the Makefile without running `make'. |
26563 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` |
26564 | test -z "$DEPDIR" && continue |
26565 | am__include=`sed -n 's/^am__include = //p' < "$mf"` |
26566 | test -z "am__include" && continue |
26567 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` |
26568 | # When using ansi2knr, U may be empty or an underscore; expand it |
26569 | U=`sed -n 's/^U = //p' < "$mf"` |
26570 | # Find all dependency output files, they are included files with |
26571 | # $(DEPDIR) in their names. We invoke sed twice because it is the |
26572 | # simplest approach to changing $(DEPDIR) to its actual value in the |
26573 | # expansion. |
26574 | for file in `sed -n " |
26575 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ |
26576 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
26577 | # Make sure the directory exists. |
26578 | test -f "$dirpart/$file" && continue |
26579 | fdir=`$as_dirname -- "$file" || |
26580 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26581 | X"$file" : 'X\(//\)[^/]' \| \ |
26582 | X"$file" : 'X\(//\)$' \| \ |
26583 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
26584 | echo X"$file" | |
26585 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
26586 | s//\1/ |
26587 | q |
26588 | } |
26589 | /^X\(\/\/\)[^/].*/{ |
26590 | s//\1/ |
26591 | q |
26592 | } |
26593 | /^X\(\/\/\)$/{ |
26594 | s//\1/ |
26595 | q |
26596 | } |
26597 | /^X\(\/\).*/{ |
26598 | s//\1/ |
26599 | q |
26600 | } |
26601 | s/.*/./; q'` |
26602 | { as_dir=$dirpart/$fdir |
26603 | case $as_dir in #( |
26604 | -*) as_dir=./$as_dir;; |
26605 | esac |
26606 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
26607 | as_dirs= |
26608 | while :; do |
26609 | case $as_dir in #( |
26610 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
26611 | *) as_qdir=$as_dir;; |
26612 | esac |
26613 | as_dirs="'$as_qdir' $as_dirs" |
26614 | as_dir=`$as_dirname -- "$as_dir" || |
26615 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26616 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
26617 | X"$as_dir" : 'X\(//\)$' \| \ |
26618 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
26619 | echo X"$as_dir" | |
26620 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
26621 | s//\1/ |
26622 | q |
26623 | } |
26624 | /^X\(\/\/\)[^/].*/{ |
26625 | s//\1/ |
26626 | q |
26627 | } |
26628 | /^X\(\/\/\)$/{ |
26629 | s//\1/ |
26630 | q |
26631 | } |
26632 | /^X\(\/\).*/{ |
26633 | s//\1/ |
26634 | q |
26635 | } |
26636 | s/.*/./; q'` |
26637 | test -d "$as_dir" && break |
26638 | done |
26639 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
26640 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
26641 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
26642 | { (exit 1); exit 1; }; }; } |
26643 | # echo "creating $dirpart/$file" |
26644 | echo '# dummy' > "$dirpart/$file" |
26645 | done |
26646 | done |
26647 | ;; |
26648 | "po-directories":C) |
26649 | for ac_file in $CONFIG_FILES; do |
26650 | # Support "outfile[:infile[:infile...]]" |
26651 | case "$ac_file" in |
26652 | *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; |
26653 | esac |
26654 | # PO directories have a Makefile.in generated from Makefile.in.in. |
26655 | case "$ac_file" in */Makefile.in) |
26656 | # Adjust a relative srcdir. |
26657 | ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` |
26658 | ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" |
26659 | ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` |
26660 | # In autoconf-2.13 it is called $ac_given_srcdir. |
26661 | # In autoconf-2.50 it is called $srcdir. |
26662 | test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" |
26663 | case "$ac_given_srcdir" in |
26664 | .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; |
26665 | /*) top_srcdir="$ac_given_srcdir" ;; |
26666 | *) top_srcdir="$ac_dots$ac_given_srcdir" ;; |
26667 | esac |
26668 | # Treat a directory as a PO directory if and only if it has a |
26669 | # POTFILES.in file. This allows packages to have multiple PO |
26670 | # directories under different names or in different locations. |
26671 | if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then |
26672 | rm -f "$ac_dir/POTFILES" |
26673 | test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" |
26674 | cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" |
26675 | POMAKEFILEDEPS="POTFILES.in" |
26676 | # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend |
26677 | # on $ac_dir but don't depend on user-specified configuration |
26678 | # parameters. |
26679 | if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then |
26680 | # The LINGUAS file contains the set of available languages. |
26681 | if test -n "$OBSOLETE_ALL_LINGUAS"; then |
26682 | test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" |
26683 | fi |
26684 | ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` |
26685 | # Hide the ALL_LINGUAS assigment from automake < 1.5. |
26686 | eval 'ALL_LINGUAS''=$ALL_LINGUAS_' |
26687 | POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" |
26688 | else |
26689 | # The set of available languages was given in configure.in. |
26690 | # Hide the ALL_LINGUAS assigment from automake < 1.5. |
26691 | eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' |
26692 | fi |
26693 | # Compute POFILES |
26694 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) |
26695 | # Compute UPDATEPOFILES |
26696 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) |
26697 | # Compute DUMMYPOFILES |
26698 | # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) |
26699 | # Compute GMOFILES |
26700 | # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) |
26701 | case "$ac_given_srcdir" in |
26702 | .) srcdirpre= ;; |
26703 | *) srcdirpre='$(srcdir)/' ;; |
26704 | esac |
26705 | POFILES= |
26706 | UPDATEPOFILES= |
26707 | DUMMYPOFILES= |
26708 | GMOFILES= |
26709 | for lang in $ALL_LINGUAS; do |
26710 | POFILES="$POFILES $srcdirpre$lang.po" |
26711 | UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" |
26712 | DUMMYPOFILES="$DUMMYPOFILES $lang.nop" |
26713 | GMOFILES="$GMOFILES $srcdirpre$lang.gmo" |
26714 | done |
26715 | # CATALOGS depends on both $ac_dir and the user's LINGUAS |
26716 | # environment variable. |
26717 | INST_LINGUAS= |
26718 | if test -n "$ALL_LINGUAS"; then |
26719 | for presentlang in $ALL_LINGUAS; do |
26720 | useit=no |
26721 | if test "%UNSET%" != "$LINGUAS"; then |
26722 | desiredlanguages="$LINGUAS" |
26723 | else |
26724 | desiredlanguages="$ALL_LINGUAS" |
26725 | fi |
26726 | for desiredlang in $desiredlanguages; do |
26727 | # Use the presentlang catalog if desiredlang is |
26728 | # a. equal to presentlang, or |
26729 | # b. a variant of presentlang (because in this case, |
26730 | # presentlang can be used as a fallback for messages |
26731 | # which are not translated in the desiredlang catalog). |
26732 | case "$desiredlang" in |
26733 | "$presentlang"*) useit=yes;; |
26734 | esac |
26735 | done |
26736 | if test $useit = yes; then |
26737 | INST_LINGUAS="$INST_LINGUAS $presentlang" |
26738 | fi |
26739 | done |
26740 | fi |
26741 | CATALOGS= |
26742 | if test -n "$INST_LINGUAS"; then |
26743 | for lang in $INST_LINGUAS; do |
26744 | CATALOGS="$CATALOGS $lang.gmo" |
26745 | done |
26746 | fi |
26747 | test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" |
26748 | sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" |
26749 | for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do |
26750 | if test -f "$f"; then |
26751 | case "$f" in |
26752 | *.orig | *.bak | *~) ;; |
26753 | *) cat "$f" >> "$ac_dir/Makefile" ;; |
26754 | esac |
26755 | fi |
26756 | done |
26757 | fi |
26758 | ;; |
26759 | esac |
26760 | done ;; |
26761 | |
26762 | esac |
26763 | done # for ac_tag |
26764 | |
26765 | |
26766 | { (exit 0); exit 0; } |
26767 | _ACEOF |
26768 | chmod +x $CONFIG_STATUS |
26769 | ac_clean_files=$ac_clean_files_save |
26770 | |
26771 | |
26772 | # configure is writing to config.log, and then calls config.status. |
26773 | # config.status does its own redirection, appending to config.log. |
26774 | # Unfortunately, on DOS this fails, as config.log is still kept open |
26775 | # by configure, so config.status won't be able to write to it; its |
26776 | # output is simply discarded. So we exec the FD to /dev/null, |
26777 | # effectively closing config.log, so it can be properly (re)opened and |
26778 | # appended to by config.status. When coming back to configure, we |
26779 | # need to make the FD available again. |
26780 | if test "$no_create" != yes; then |
26781 | ac_cs_success=: |
26782 | ac_config_status_args= |
26783 | test "$silent" = yes && |
26784 | ac_config_status_args="$ac_config_status_args --quiet" |
26785 | exec 5>/dev/null |
26786 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
26787 | exec 5>>config.log |
26788 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
26789 | # would make configure fail if this is the last instruction. |
26790 | $ac_cs_success || { (exit 1); exit 1; } |
26791 | fi |
26792 | |
26793 |