03d7fdf3 |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.60 for FULL-PACKAGE-NAME VERSION. |
4 | # |
5 | # Report bugs to <BUG-REPORT-ADDRESS>. |
6 | # |
7 | # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
8 | # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
9 | # This configure script is free software; the Free Software Foundation |
10 | # gives unlimited permission to copy, distribute and modify it. |
11 | ## --------------------- ## |
12 | ## M4sh Initialization. ## |
13 | ## --------------------- ## |
14 | |
15 | # Be Bourne compatible |
16 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
17 | emulate sh |
18 | NULLCMD=: |
19 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
20 | # is contrary to our usage. Disable this feature. |
21 | alias -g '${1+"$@"}'='"$@"' |
22 | setopt NO_GLOB_SUBST |
23 | else |
24 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
25 | fi |
26 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
27 | DUALCASE=1; export DUALCASE # for MKS sh |
28 | |
29 | |
30 | # PATH needs CR |
31 | # Avoid depending upon Character Ranges. |
32 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
33 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
34 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
35 | as_cr_digits='0123456789' |
36 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
37 | |
38 | # The user is always right. |
39 | if test "${PATH_SEPARATOR+set}" != set; then |
40 | echo "#! /bin/sh" >conf$$.sh |
41 | echo "exit 0" >>conf$$.sh |
42 | chmod +x conf$$.sh |
43 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
44 | PATH_SEPARATOR=';' |
45 | else |
46 | PATH_SEPARATOR=: |
47 | fi |
48 | rm -f conf$$.sh |
49 | fi |
50 | |
51 | # Support unset when possible. |
52 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
53 | as_unset=unset |
54 | else |
55 | as_unset=false |
56 | fi |
57 | |
58 | |
59 | # IFS |
60 | # We need space, tab and new line, in precisely that order. Quoting is |
61 | # there to prevent editors from complaining about space-tab. |
62 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
63 | # splitting by setting IFS to empty value.) |
64 | as_nl=' |
65 | ' |
66 | IFS=" "" $as_nl" |
67 | |
68 | # Find who we are. Look in the path if we contain no directory separator. |
69 | case $0 in |
70 | *[\\/]* ) as_myself=$0 ;; |
71 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
72 | for as_dir in $PATH |
73 | do |
74 | IFS=$as_save_IFS |
75 | test -z "$as_dir" && as_dir=. |
76 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
77 | done |
78 | IFS=$as_save_IFS |
79 | |
80 | ;; |
81 | esac |
82 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
83 | # in which case we are not to be found in the path. |
84 | if test "x$as_myself" = x; then |
85 | as_myself=$0 |
86 | fi |
87 | if test ! -f "$as_myself"; then |
88 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
89 | { (exit 1); exit 1; } |
90 | fi |
91 | |
92 | # Work around bugs in pre-3.0 UWIN ksh. |
93 | for as_var in ENV MAIL MAILPATH |
94 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
95 | done |
96 | PS1='$ ' |
97 | PS2='> ' |
98 | PS4='+ ' |
99 | |
100 | # NLS nuisances. |
101 | for as_var in \ |
102 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
103 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
104 | LC_TELEPHONE LC_TIME |
105 | do |
106 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
107 | eval $as_var=C; export $as_var |
108 | else |
109 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
110 | fi |
111 | done |
112 | |
113 | # Required to use basename. |
114 | if expr a : '\(a\)' >/dev/null 2>&1 && |
115 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
116 | as_expr=expr |
117 | else |
118 | as_expr=false |
119 | fi |
120 | |
121 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
122 | as_basename=basename |
123 | else |
124 | as_basename=false |
125 | fi |
126 | |
127 | |
128 | # Name of the executable. |
129 | as_me=`$as_basename -- "$0" || |
130 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
131 | X"$0" : 'X\(//\)$' \| \ |
132 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
133 | echo X/"$0" | |
134 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
135 | s//\1/ |
136 | q |
137 | } |
138 | /^X\/\(\/\/\)$/{ |
139 | s//\1/ |
140 | q |
141 | } |
142 | /^X\/\(\/\).*/{ |
143 | s//\1/ |
144 | q |
145 | } |
146 | s/.*/./; q'` |
147 | |
148 | # CDPATH. |
149 | $as_unset CDPATH |
150 | |
151 | |
152 | if test "x$CONFIG_SHELL" = x; then |
153 | if (eval ":") 2>/dev/null; then |
154 | as_have_required=yes |
155 | else |
156 | as_have_required=no |
157 | fi |
158 | |
159 | if test $as_have_required = yes && (eval ": |
160 | (as_func_return () { |
161 | (exit \$1) |
162 | } |
163 | as_func_success () { |
164 | as_func_return 0 |
165 | } |
166 | as_func_failure () { |
167 | as_func_return 1 |
168 | } |
169 | as_func_ret_success () { |
170 | return 0 |
171 | } |
172 | as_func_ret_failure () { |
173 | return 1 |
174 | } |
175 | |
176 | exitcode=0 |
177 | if as_func_success; then |
178 | : |
179 | else |
180 | exitcode=1 |
181 | echo as_func_success failed. |
182 | fi |
183 | |
184 | if as_func_failure; then |
185 | exitcode=1 |
186 | echo as_func_failure succeeded. |
187 | fi |
188 | |
189 | if as_func_ret_success; then |
190 | : |
191 | else |
192 | exitcode=1 |
193 | echo as_func_ret_success failed. |
194 | fi |
195 | |
196 | if as_func_ret_failure; then |
197 | exitcode=1 |
198 | echo as_func_ret_failure succeeded. |
199 | fi |
200 | |
201 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
202 | : |
203 | else |
204 | exitcode=1 |
205 | echo positional parameters were not saved. |
206 | fi |
207 | |
208 | test \$exitcode = 0) || { (exit 1); exit 1; } |
209 | |
210 | ( |
211 | as_lineno_1=\$LINENO |
212 | as_lineno_2=\$LINENO |
213 | test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" && |
214 | test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; } |
215 | ") 2> /dev/null; then |
216 | : |
217 | else |
218 | as_candidate_shells= |
219 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
220 | for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH |
221 | do |
222 | IFS=$as_save_IFS |
223 | test -z "$as_dir" && as_dir=. |
224 | case $as_dir in |
225 | /*) |
226 | for as_base in sh bash ksh sh5; do |
227 | as_candidate_shells="$as_candidate_shells $as_dir/$as_base" |
228 | done;; |
229 | esac |
230 | done |
231 | IFS=$as_save_IFS |
232 | |
233 | |
234 | for as_shell in $as_candidate_shells $SHELL; do |
235 | # Try only shells that exist, to save several forks. |
236 | if { test -f "$as_shell" || test -f "$as_shell.exe"; } && |
237 | { ("$as_shell") 2> /dev/null <<\_ASEOF |
238 | # Be Bourne compatible |
239 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
240 | emulate sh |
241 | NULLCMD=: |
242 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
243 | # is contrary to our usage. Disable this feature. |
244 | alias -g '${1+"$@"}'='"$@"' |
245 | setopt NO_GLOB_SUBST |
246 | else |
247 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
248 | fi |
249 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
250 | DUALCASE=1; export DUALCASE # for MKS sh |
251 | |
252 | : |
253 | _ASEOF |
254 | }; then |
255 | CONFIG_SHELL=$as_shell |
256 | as_have_required=yes |
257 | if { "$as_shell" 2> /dev/null <<\_ASEOF |
258 | # Be Bourne compatible |
259 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
260 | emulate sh |
261 | NULLCMD=: |
262 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
263 | # is contrary to our usage. Disable this feature. |
264 | alias -g '${1+"$@"}'='"$@"' |
265 | setopt NO_GLOB_SUBST |
266 | else |
267 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
268 | fi |
269 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
270 | DUALCASE=1; export DUALCASE # for MKS sh |
271 | |
272 | : |
273 | (as_func_return () { |
274 | (exit $1) |
275 | } |
276 | as_func_success () { |
277 | as_func_return 0 |
278 | } |
279 | as_func_failure () { |
280 | as_func_return 1 |
281 | } |
282 | as_func_ret_success () { |
283 | return 0 |
284 | } |
285 | as_func_ret_failure () { |
286 | return 1 |
287 | } |
288 | |
289 | exitcode=0 |
290 | if as_func_success; then |
291 | : |
292 | else |
293 | exitcode=1 |
294 | echo as_func_success failed. |
295 | fi |
296 | |
297 | if as_func_failure; then |
298 | exitcode=1 |
299 | echo as_func_failure succeeded. |
300 | fi |
301 | |
302 | if as_func_ret_success; then |
303 | : |
304 | else |
305 | exitcode=1 |
306 | echo as_func_ret_success failed. |
307 | fi |
308 | |
309 | if as_func_ret_failure; then |
310 | exitcode=1 |
311 | echo as_func_ret_failure succeeded. |
312 | fi |
313 | |
314 | if ( set x; as_func_ret_success y && test x = "$1" ); then |
315 | : |
316 | else |
317 | exitcode=1 |
318 | echo positional parameters were not saved. |
319 | fi |
320 | |
321 | test $exitcode = 0) || { (exit 1); exit 1; } |
322 | |
323 | ( |
324 | as_lineno_1=$LINENO |
325 | as_lineno_2=$LINENO |
326 | test "x$as_lineno_1" != "x$as_lineno_2" && |
327 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; } |
328 | |
329 | _ASEOF |
330 | }; then |
331 | break |
332 | fi |
333 | |
334 | fi |
335 | |
336 | done |
337 | |
338 | if test "x$CONFIG_SHELL" != x; then |
339 | for as_var in BASH_ENV ENV |
340 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
341 | done |
342 | export CONFIG_SHELL |
343 | exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} |
344 | fi |
345 | |
346 | |
347 | if test $as_have_required = no; then |
348 | echo This script requires a shell more modern than all the |
349 | echo shells that I found on your system. Please install a |
350 | echo modern shell, or manually run the script under such a |
351 | echo shell if you do have one. |
352 | { (exit 1); exit 1; } |
353 | fi |
354 | |
355 | |
356 | fi |
357 | |
358 | fi |
359 | |
360 | |
361 | |
362 | (eval "as_func_return () { |
363 | (exit \$1) |
364 | } |
365 | as_func_success () { |
366 | as_func_return 0 |
367 | } |
368 | as_func_failure () { |
369 | as_func_return 1 |
370 | } |
371 | as_func_ret_success () { |
372 | return 0 |
373 | } |
374 | as_func_ret_failure () { |
375 | return 1 |
376 | } |
377 | |
378 | exitcode=0 |
379 | if as_func_success; then |
380 | : |
381 | else |
382 | exitcode=1 |
383 | echo as_func_success failed. |
384 | fi |
385 | |
386 | if as_func_failure; then |
387 | exitcode=1 |
388 | echo as_func_failure succeeded. |
389 | fi |
390 | |
391 | if as_func_ret_success; then |
392 | : |
393 | else |
394 | exitcode=1 |
395 | echo as_func_ret_success failed. |
396 | fi |
397 | |
398 | if as_func_ret_failure; then |
399 | exitcode=1 |
400 | echo as_func_ret_failure succeeded. |
401 | fi |
402 | |
403 | if ( set x; as_func_ret_success y && test x = \"\$1\" ); then |
404 | : |
405 | else |
406 | exitcode=1 |
407 | echo positional parameters were not saved. |
408 | fi |
409 | |
410 | test \$exitcode = 0") || { |
411 | echo No shell found that supports shell functions. |
412 | echo Please tell autoconf@gnu.org about your system, |
413 | echo including any error possibly output before this |
414 | echo message |
415 | } |
416 | |
417 | |
418 | |
419 | as_lineno_1=$LINENO |
420 | as_lineno_2=$LINENO |
421 | test "x$as_lineno_1" != "x$as_lineno_2" && |
422 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
423 | |
424 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
425 | # uniformly replaced by the line number. The first 'sed' inserts a |
426 | # line-number line after each line using $LINENO; the second 'sed' |
427 | # does the real work. The second script uses 'N' to pair each |
428 | # line-number line with the line containing $LINENO, and appends |
429 | # trailing '-' during substitution so that $LINENO is not a special |
430 | # case at line end. |
431 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
432 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
433 | # E. McMahon (1931-1989) for sed's syntax. :-) |
434 | sed -n ' |
435 | p |
436 | /[$]LINENO/= |
437 | ' <$as_myself | |
438 | sed ' |
439 | s/[$]LINENO.*/&-/ |
440 | t lineno |
441 | b |
442 | :lineno |
443 | N |
444 | :loop |
445 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
446 | t loop |
447 | s/-\n.*// |
448 | ' >$as_me.lineno && |
449 | chmod +x "$as_me.lineno" || |
450 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
451 | { (exit 1); exit 1; }; } |
452 | |
453 | # Don't try to exec as it changes $[0], causing all sort of problems |
454 | # (the dirname of $[0] is not the place where we might find the |
455 | # original and so on. Autoconf is especially sensitive to this). |
456 | . "./$as_me.lineno" |
457 | # Exit status is that of the last command. |
458 | exit |
459 | } |
460 | |
461 | |
462 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
463 | as_dirname=dirname |
464 | else |
465 | as_dirname=false |
466 | fi |
467 | |
468 | ECHO_C= ECHO_N= ECHO_T= |
469 | case `echo -n x` in |
470 | -n*) |
471 | case `echo 'x\c'` in |
472 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
473 | *) ECHO_C='\c';; |
474 | esac;; |
475 | *) |
476 | ECHO_N='-n';; |
477 | esac |
478 | |
479 | if expr a : '\(a\)' >/dev/null 2>&1 && |
480 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
481 | as_expr=expr |
482 | else |
483 | as_expr=false |
484 | fi |
485 | |
486 | rm -f conf$$ conf$$.exe conf$$.file |
487 | if test -d conf$$.dir; then |
488 | rm -f conf$$.dir/conf$$.file |
489 | else |
490 | rm -f conf$$.dir |
491 | mkdir conf$$.dir |
492 | fi |
493 | echo >conf$$.file |
494 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
495 | as_ln_s='ln -s' |
496 | # ... but there are two gotchas: |
497 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
498 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
499 | # In both cases, we have to default to `cp -p'. |
500 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
501 | as_ln_s='cp -p' |
502 | elif ln conf$$.file conf$$ 2>/dev/null; then |
503 | as_ln_s=ln |
504 | else |
505 | as_ln_s='cp -p' |
506 | fi |
507 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
508 | rmdir conf$$.dir 2>/dev/null |
509 | |
510 | if mkdir -p . 2>/dev/null; then |
511 | as_mkdir_p=: |
512 | else |
513 | test -d ./-p && rmdir ./-p |
514 | as_mkdir_p=false |
515 | fi |
516 | |
517 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
518 | # systems may use methods other than mode bits to determine executability. |
519 | cat >conf$$.file <<_ASEOF |
520 | #! /bin/sh |
521 | exit 0 |
522 | _ASEOF |
523 | chmod +x conf$$.file |
524 | if test -x conf$$.file >/dev/null 2>&1; then |
525 | as_executable_p="test -x" |
526 | else |
527 | as_executable_p=: |
528 | fi |
529 | rm -f conf$$.file |
530 | |
531 | # Sed expression to map a string onto a valid CPP name. |
532 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
533 | |
534 | # Sed expression to map a string onto a valid variable name. |
535 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
536 | |
537 | |
538 | |
539 | |
540 | # Check that we are running under the correct shell. |
541 | SHELL=${CONFIG_SHELL-/bin/sh} |
542 | |
543 | case X$ECHO in |
544 | X*--fallback-echo) |
545 | # Remove one level of quotation (which was required for Make). |
546 | ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` |
547 | ;; |
548 | esac |
549 | |
550 | echo=${ECHO-echo} |
551 | if test "X$1" = X--no-reexec; then |
552 | # Discard the --no-reexec flag, and continue. |
553 | shift |
554 | elif test "X$1" = X--fallback-echo; then |
555 | # Avoid inline document here, it may be left over |
556 | : |
557 | elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then |
558 | # Yippee, $echo works! |
559 | : |
560 | else |
561 | # Restart under the correct shell. |
562 | exec $SHELL "$0" --no-reexec ${1+"$@"} |
563 | fi |
564 | |
565 | if test "X$1" = X--fallback-echo; then |
566 | # used as fallback echo |
567 | shift |
568 | cat <<EOF |
569 | $* |
570 | EOF |
571 | exit 0 |
572 | fi |
573 | |
574 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
575 | # if CDPATH is set. |
576 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
577 | |
578 | if test -z "$ECHO"; then |
579 | if test "X${echo_test_string+set}" != Xset; then |
580 | # find a string as large as possible, as long as the shell can cope with it |
581 | for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do |
582 | # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... |
583 | if (echo_test_string=`eval $cmd`) 2>/dev/null && |
584 | echo_test_string=`eval $cmd` && |
585 | (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null |
586 | then |
587 | break |
588 | fi |
589 | done |
590 | fi |
591 | |
592 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
593 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
594 | test "X$echo_testing_string" = "X$echo_test_string"; then |
595 | : |
596 | else |
597 | # The Solaris, AIX, and Digital Unix default echo programs unquote |
598 | # backslashes. This makes it impossible to quote backslashes using |
599 | # echo "$something" | sed 's/\\/\\\\/g' |
600 | # |
601 | # So, first we look for a working echo in the user's PATH. |
602 | |
603 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
604 | for dir in $PATH /usr/ucb; do |
605 | IFS="$lt_save_ifs" |
606 | if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && |
607 | test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && |
608 | echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && |
609 | test "X$echo_testing_string" = "X$echo_test_string"; then |
610 | echo="$dir/echo" |
611 | break |
612 | fi |
613 | done |
614 | IFS="$lt_save_ifs" |
615 | |
616 | if test "X$echo" = Xecho; then |
617 | # We didn't find a better echo, so look for alternatives. |
618 | if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && |
619 | echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && |
620 | test "X$echo_testing_string" = "X$echo_test_string"; then |
621 | # This shell has a builtin print -r that does the trick. |
622 | echo='print -r' |
623 | elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && |
624 | test "X$CONFIG_SHELL" != X/bin/ksh; then |
625 | # If we have ksh, try running configure again with it. |
626 | ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} |
627 | export ORIGINAL_CONFIG_SHELL |
628 | CONFIG_SHELL=/bin/ksh |
629 | export CONFIG_SHELL |
630 | exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} |
631 | else |
632 | # Try using printf. |
633 | echo='printf %s\n' |
634 | if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && |
635 | echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && |
636 | test "X$echo_testing_string" = "X$echo_test_string"; then |
637 | # Cool, printf works |
638 | : |
639 | elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
640 | test "X$echo_testing_string" = 'X\t' && |
641 | echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
642 | test "X$echo_testing_string" = "X$echo_test_string"; then |
643 | CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL |
644 | export CONFIG_SHELL |
645 | SHELL="$CONFIG_SHELL" |
646 | export SHELL |
647 | echo="$CONFIG_SHELL $0 --fallback-echo" |
648 | elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && |
649 | test "X$echo_testing_string" = 'X\t' && |
650 | echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && |
651 | test "X$echo_testing_string" = "X$echo_test_string"; then |
652 | echo="$CONFIG_SHELL $0 --fallback-echo" |
653 | else |
654 | # maybe with a smaller string... |
655 | prev=: |
656 | |
657 | for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do |
658 | if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null |
659 | then |
660 | break |
661 | fi |
662 | prev="$cmd" |
663 | done |
664 | |
665 | if test "$prev" != 'sed 50q "$0"'; then |
666 | echo_test_string=`eval $prev` |
667 | export echo_test_string |
668 | exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} |
669 | else |
670 | # Oops. We lost completely, so just stick with echo. |
671 | echo=echo |
672 | fi |
673 | fi |
674 | fi |
675 | fi |
676 | fi |
677 | fi |
678 | |
679 | # Copy echo and quote the copy suitably for passing to libtool from |
680 | # the Makefile, instead of quoting the original, which is used later. |
681 | ECHO=$echo |
682 | if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then |
683 | ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" |
684 | fi |
685 | |
686 | |
687 | |
688 | |
689 | tagnames=${tagnames+${tagnames},}CXX |
690 | |
691 | tagnames=${tagnames+${tagnames},}F77 |
692 | |
693 | exec 7<&0 </dev/null 6>&1 |
694 | |
695 | # Name of the host. |
696 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, |
697 | # so uname gets run too. |
698 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` |
699 | |
700 | # |
701 | # Initializations. |
702 | # |
703 | ac_default_prefix=/usr/local |
704 | ac_clean_files= |
705 | ac_config_libobj_dir=. |
706 | LIBOBJS= |
707 | cross_compiling=no |
708 | subdirs= |
709 | MFLAGS= |
710 | MAKEFLAGS= |
711 | SHELL=${CONFIG_SHELL-/bin/sh} |
712 | |
713 | # Identity of this package. |
714 | PACKAGE_NAME='FULL-PACKAGE-NAME' |
715 | PACKAGE_TARNAME='full-package-name' |
716 | PACKAGE_VERSION='VERSION' |
717 | PACKAGE_STRING='FULL-PACKAGE-NAME VERSION' |
718 | PACKAGE_BUGREPORT='BUG-REPORT-ADDRESS' |
719 | |
720 | # Factoring default headers for most tests. |
721 | ac_includes_default="\ |
722 | #include <stdio.h> |
723 | #if HAVE_SYS_TYPES_H |
724 | # include <sys/types.h> |
725 | #endif |
726 | #if HAVE_SYS_STAT_H |
727 | # include <sys/stat.h> |
728 | #endif |
729 | #if STDC_HEADERS |
730 | # include <stdlib.h> |
731 | # include <stddef.h> |
732 | #else |
733 | # if HAVE_STDLIB_H |
734 | # include <stdlib.h> |
735 | # endif |
736 | #endif |
737 | #if HAVE_STRING_H |
738 | # if !STDC_HEADERS && HAVE_MEMORY_H |
739 | # include <memory.h> |
740 | # endif |
741 | # include <string.h> |
742 | #endif |
743 | #if HAVE_STRINGS_H |
744 | # include <strings.h> |
745 | #endif |
746 | #if HAVE_INTTYPES_H |
747 | # include <inttypes.h> |
748 | #endif |
749 | #if HAVE_STDINT_H |
750 | # include <stdint.h> |
751 | #endif |
752 | #if HAVE_UNISTD_H |
753 | # include <unistd.h> |
754 | #endif" |
755 | |
756 | ac_subst_vars='SHELL |
757 | PATH_SEPARATOR |
758 | PACKAGE_NAME |
759 | PACKAGE_TARNAME |
760 | PACKAGE_VERSION |
761 | PACKAGE_STRING |
762 | PACKAGE_BUGREPORT |
763 | exec_prefix |
764 | prefix |
765 | program_transform_name |
766 | bindir |
767 | sbindir |
768 | libexecdir |
769 | datarootdir |
770 | datadir |
771 | sysconfdir |
772 | sharedstatedir |
773 | localstatedir |
774 | includedir |
775 | oldincludedir |
776 | docdir |
777 | infodir |
778 | htmldir |
779 | dvidir |
780 | pdfdir |
781 | psdir |
782 | libdir |
783 | localedir |
784 | mandir |
785 | DEFS |
786 | ECHO_C |
787 | ECHO_N |
788 | ECHO_T |
789 | LIBS |
790 | build_alias |
791 | host_alias |
792 | target_alias |
793 | INSTALL_PROGRAM |
794 | INSTALL_SCRIPT |
795 | INSTALL_DATA |
796 | CYGPATH_W |
797 | PACKAGE |
798 | VERSION |
799 | ACLOCAL |
800 | AUTOCONF |
801 | AUTOMAKE |
802 | AUTOHEADER |
803 | MAKEINFO |
804 | AMTAR |
805 | install_sh |
806 | STRIP |
807 | INSTALL_STRIP_PROGRAM |
808 | AWK |
809 | SET_MAKE |
810 | am__leading_dot |
811 | build |
812 | build_cpu |
813 | build_vendor |
814 | build_os |
815 | host |
816 | host_cpu |
817 | host_vendor |
818 | host_os |
819 | CC |
820 | CFLAGS |
821 | LDFLAGS |
822 | CPPFLAGS |
823 | ac_ct_CC |
824 | EXEEXT |
825 | OBJEXT |
826 | DEPDIR |
827 | am__include |
828 | am__quote |
829 | AMDEP_TRUE |
830 | AMDEP_FALSE |
831 | AMDEPBACKSLASH |
832 | CCDEPMODE |
833 | am__fastdepCC_TRUE |
834 | am__fastdepCC_FALSE |
835 | GREP |
836 | EGREP |
837 | LN_S |
838 | ECHO |
839 | AR |
840 | RANLIB |
841 | CPP |
842 | CXX |
843 | CXXFLAGS |
844 | ac_ct_CXX |
845 | CXXDEPMODE |
846 | am__fastdepCXX_TRUE |
847 | am__fastdepCXX_FALSE |
848 | CXXCPP |
849 | F77 |
850 | FFLAGS |
851 | ac_ct_F77 |
852 | LIBTOOL |
853 | PKG_CONFIG |
854 | GLIB_CFLAGS |
855 | GLIB_LIBS |
856 | GLIB_GENMARSHAL |
857 | GOBJECT_QUERY |
858 | GLIB_MKENUMS |
859 | GTK_CFLAGS |
860 | GTK_LIBS |
861 | BASH |
862 | PACKAGE_CFLAGS |
863 | PACKAGE_LIBS |
864 | LIBOBJS |
865 | LTTVSTATIC_TRUE |
866 | LTTVSTATIC_FALSE |
867 | POPT_LIBS |
868 | UTIL_LIBS |
869 | THREAD_LIBS |
870 | lttvlibdir |
871 | lttvplugindir |
872 | top_lttvdir |
873 | top_lttvwindowdir |
874 | DEFAULT_INCLUDES |
875 | lttincludedir |
876 | lttvincludedir |
877 | lttvwindowincludedir |
878 | lttctlincludedir |
879 | LTLIBOBJS' |
880 | ac_subst_files='' |
881 | ac_precious_vars='build_alias |
882 | host_alias |
883 | target_alias |
884 | CC |
885 | CFLAGS |
886 | LDFLAGS |
887 | CPPFLAGS |
888 | CPP |
889 | CXX |
890 | CXXFLAGS |
891 | CCC |
892 | CXXCPP |
893 | F77 |
894 | FFLAGS |
895 | PKG_CONFIG |
896 | PACKAGE_CFLAGS |
897 | PACKAGE_LIBS' |
898 | |
899 | |
900 | # Initialize some variables set by options. |
901 | ac_init_help= |
902 | ac_init_version=false |
903 | # The variables have the same names as the options, with |
904 | # dashes changed to underlines. |
905 | cache_file=/dev/null |
906 | exec_prefix=NONE |
907 | no_create= |
908 | no_recursion= |
909 | prefix=NONE |
910 | program_prefix=NONE |
911 | program_suffix=NONE |
912 | program_transform_name=s,x,x, |
913 | silent= |
914 | site= |
915 | srcdir= |
916 | verbose= |
917 | x_includes=NONE |
918 | x_libraries=NONE |
919 | |
920 | # Installation directory options. |
921 | # These are left unexpanded so users can "make install exec_prefix=/foo" |
922 | # and all the variables that are supposed to be based on exec_prefix |
923 | # by default will actually change. |
924 | # Use braces instead of parens because sh, perl, etc. also accept them. |
925 | # (The list follows the same order as the GNU Coding Standards.) |
926 | bindir='${exec_prefix}/bin' |
927 | sbindir='${exec_prefix}/sbin' |
928 | libexecdir='${exec_prefix}/libexec' |
929 | datarootdir='${prefix}/share' |
930 | datadir='${datarootdir}' |
931 | sysconfdir='${prefix}/etc' |
932 | sharedstatedir='${prefix}/com' |
933 | localstatedir='${prefix}/var' |
934 | includedir='${prefix}/include' |
935 | oldincludedir='/usr/include' |
936 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' |
937 | infodir='${datarootdir}/info' |
938 | htmldir='${docdir}' |
939 | dvidir='${docdir}' |
940 | pdfdir='${docdir}' |
941 | psdir='${docdir}' |
942 | libdir='${exec_prefix}/lib' |
943 | localedir='${datarootdir}/locale' |
944 | mandir='${datarootdir}/man' |
945 | |
946 | ac_prev= |
947 | ac_dashdash= |
948 | for ac_option |
949 | do |
950 | # If the previous option needs an argument, assign it. |
951 | if test -n "$ac_prev"; then |
952 | eval $ac_prev=\$ac_option |
953 | ac_prev= |
954 | continue |
955 | fi |
956 | |
957 | case $ac_option in |
958 | *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; |
959 | *) ac_optarg=yes ;; |
960 | esac |
961 | |
962 | # Accept the important Cygnus configure options, so we can diagnose typos. |
963 | |
964 | case $ac_dashdash$ac_option in |
965 | --) |
966 | ac_dashdash=yes ;; |
967 | |
968 | -bindir | --bindir | --bindi | --bind | --bin | --bi) |
969 | ac_prev=bindir ;; |
970 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) |
971 | bindir=$ac_optarg ;; |
972 | |
973 | -build | --build | --buil | --bui | --bu) |
974 | ac_prev=build_alias ;; |
975 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
976 | build_alias=$ac_optarg ;; |
977 | |
978 | -cache-file | --cache-file | --cache-fil | --cache-fi \ |
979 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) |
980 | ac_prev=cache_file ;; |
981 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ |
982 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) |
983 | cache_file=$ac_optarg ;; |
984 | |
985 | --config-cache | -C) |
986 | cache_file=config.cache ;; |
987 | |
988 | -datadir | --datadir | --datadi | --datad) |
989 | ac_prev=datadir ;; |
990 | -datadir=* | --datadir=* | --datadi=* | --datad=*) |
991 | datadir=$ac_optarg ;; |
992 | |
993 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ |
994 | | --dataroo | --dataro | --datar) |
995 | ac_prev=datarootdir ;; |
996 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ |
997 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) |
998 | datarootdir=$ac_optarg ;; |
999 | |
1000 | -disable-* | --disable-*) |
1001 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
1002 | # Reject names that are not valid shell variable names. |
1003 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1004 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1005 | { (exit 1); exit 1; }; } |
1006 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
1007 | eval enable_$ac_feature=no ;; |
1008 | |
1009 | -docdir | --docdir | --docdi | --doc | --do) |
1010 | ac_prev=docdir ;; |
1011 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) |
1012 | docdir=$ac_optarg ;; |
1013 | |
1014 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) |
1015 | ac_prev=dvidir ;; |
1016 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) |
1017 | dvidir=$ac_optarg ;; |
1018 | |
1019 | -enable-* | --enable-*) |
1020 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
1021 | # Reject names that are not valid shell variable names. |
1022 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1023 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 |
1024 | { (exit 1); exit 1; }; } |
1025 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` |
1026 | eval enable_$ac_feature=\$ac_optarg ;; |
1027 | |
1028 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ |
1029 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ |
1030 | | --exec | --exe | --ex) |
1031 | ac_prev=exec_prefix ;; |
1032 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ |
1033 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ |
1034 | | --exec=* | --exe=* | --ex=*) |
1035 | exec_prefix=$ac_optarg ;; |
1036 | |
1037 | -gas | --gas | --ga | --g) |
1038 | # Obsolete; use --with-gas. |
1039 | with_gas=yes ;; |
1040 | |
1041 | -help | --help | --hel | --he | -h) |
1042 | ac_init_help=long ;; |
1043 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) |
1044 | ac_init_help=recursive ;; |
1045 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) |
1046 | ac_init_help=short ;; |
1047 | |
1048 | -host | --host | --hos | --ho) |
1049 | ac_prev=host_alias ;; |
1050 | -host=* | --host=* | --hos=* | --ho=*) |
1051 | host_alias=$ac_optarg ;; |
1052 | |
1053 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) |
1054 | ac_prev=htmldir ;; |
1055 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ |
1056 | | --ht=*) |
1057 | htmldir=$ac_optarg ;; |
1058 | |
1059 | -includedir | --includedir | --includedi | --included | --include \ |
1060 | | --includ | --inclu | --incl | --inc) |
1061 | ac_prev=includedir ;; |
1062 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ |
1063 | | --includ=* | --inclu=* | --incl=* | --inc=*) |
1064 | includedir=$ac_optarg ;; |
1065 | |
1066 | -infodir | --infodir | --infodi | --infod | --info | --inf) |
1067 | ac_prev=infodir ;; |
1068 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) |
1069 | infodir=$ac_optarg ;; |
1070 | |
1071 | -libdir | --libdir | --libdi | --libd) |
1072 | ac_prev=libdir ;; |
1073 | -libdir=* | --libdir=* | --libdi=* | --libd=*) |
1074 | libdir=$ac_optarg ;; |
1075 | |
1076 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ |
1077 | | --libexe | --libex | --libe) |
1078 | ac_prev=libexecdir ;; |
1079 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ |
1080 | | --libexe=* | --libex=* | --libe=*) |
1081 | libexecdir=$ac_optarg ;; |
1082 | |
1083 | -localedir | --localedir | --localedi | --localed | --locale) |
1084 | ac_prev=localedir ;; |
1085 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) |
1086 | localedir=$ac_optarg ;; |
1087 | |
1088 | -localstatedir | --localstatedir | --localstatedi | --localstated \ |
1089 | | --localstate | --localstat | --localsta | --localst | --locals) |
1090 | ac_prev=localstatedir ;; |
1091 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ |
1092 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) |
1093 | localstatedir=$ac_optarg ;; |
1094 | |
1095 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) |
1096 | ac_prev=mandir ;; |
1097 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) |
1098 | mandir=$ac_optarg ;; |
1099 | |
1100 | -nfp | --nfp | --nf) |
1101 | # Obsolete; use --without-fp. |
1102 | with_fp=no ;; |
1103 | |
1104 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ |
1105 | | --no-cr | --no-c | -n) |
1106 | no_create=yes ;; |
1107 | |
1108 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ |
1109 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) |
1110 | no_recursion=yes ;; |
1111 | |
1112 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ |
1113 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ |
1114 | | --oldin | --oldi | --old | --ol | --o) |
1115 | ac_prev=oldincludedir ;; |
1116 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ |
1117 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ |
1118 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) |
1119 | oldincludedir=$ac_optarg ;; |
1120 | |
1121 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) |
1122 | ac_prev=prefix ;; |
1123 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) |
1124 | prefix=$ac_optarg ;; |
1125 | |
1126 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ |
1127 | | --program-pre | --program-pr | --program-p) |
1128 | ac_prev=program_prefix ;; |
1129 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ |
1130 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) |
1131 | program_prefix=$ac_optarg ;; |
1132 | |
1133 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ |
1134 | | --program-suf | --program-su | --program-s) |
1135 | ac_prev=program_suffix ;; |
1136 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ |
1137 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) |
1138 | program_suffix=$ac_optarg ;; |
1139 | |
1140 | -program-transform-name | --program-transform-name \ |
1141 | | --program-transform-nam | --program-transform-na \ |
1142 | | --program-transform-n | --program-transform- \ |
1143 | | --program-transform | --program-transfor \ |
1144 | | --program-transfo | --program-transf \ |
1145 | | --program-trans | --program-tran \ |
1146 | | --progr-tra | --program-tr | --program-t) |
1147 | ac_prev=program_transform_name ;; |
1148 | -program-transform-name=* | --program-transform-name=* \ |
1149 | | --program-transform-nam=* | --program-transform-na=* \ |
1150 | | --program-transform-n=* | --program-transform-=* \ |
1151 | | --program-transform=* | --program-transfor=* \ |
1152 | | --program-transfo=* | --program-transf=* \ |
1153 | | --program-trans=* | --program-tran=* \ |
1154 | | --progr-tra=* | --program-tr=* | --program-t=*) |
1155 | program_transform_name=$ac_optarg ;; |
1156 | |
1157 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) |
1158 | ac_prev=pdfdir ;; |
1159 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) |
1160 | pdfdir=$ac_optarg ;; |
1161 | |
1162 | -psdir | --psdir | --psdi | --psd | --ps) |
1163 | ac_prev=psdir ;; |
1164 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) |
1165 | psdir=$ac_optarg ;; |
1166 | |
1167 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1168 | | -silent | --silent | --silen | --sile | --sil) |
1169 | silent=yes ;; |
1170 | |
1171 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) |
1172 | ac_prev=sbindir ;; |
1173 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ |
1174 | | --sbi=* | --sb=*) |
1175 | sbindir=$ac_optarg ;; |
1176 | |
1177 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ |
1178 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ |
1179 | | --sharedst | --shareds | --shared | --share | --shar \ |
1180 | | --sha | --sh) |
1181 | ac_prev=sharedstatedir ;; |
1182 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ |
1183 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ |
1184 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ |
1185 | | --sha=* | --sh=*) |
1186 | sharedstatedir=$ac_optarg ;; |
1187 | |
1188 | -site | --site | --sit) |
1189 | ac_prev=site ;; |
1190 | -site=* | --site=* | --sit=*) |
1191 | site=$ac_optarg ;; |
1192 | |
1193 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
1194 | ac_prev=srcdir ;; |
1195 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) |
1196 | srcdir=$ac_optarg ;; |
1197 | |
1198 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ |
1199 | | --syscon | --sysco | --sysc | --sys | --sy) |
1200 | ac_prev=sysconfdir ;; |
1201 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ |
1202 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) |
1203 | sysconfdir=$ac_optarg ;; |
1204 | |
1205 | -target | --target | --targe | --targ | --tar | --ta | --t) |
1206 | ac_prev=target_alias ;; |
1207 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
1208 | target_alias=$ac_optarg ;; |
1209 | |
1210 | -v | -verbose | --verbose | --verbos | --verbo | --verb) |
1211 | verbose=yes ;; |
1212 | |
1213 | -version | --version | --versio | --versi | --vers | -V) |
1214 | ac_init_version=: ;; |
1215 | |
1216 | -with-* | --with-*) |
1217 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
1218 | # Reject names that are not valid shell variable names. |
1219 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1220 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1221 | { (exit 1); exit 1; }; } |
1222 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
1223 | eval with_$ac_package=\$ac_optarg ;; |
1224 | |
1225 | -without-* | --without-*) |
1226 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
1227 | # Reject names that are not valid shell variable names. |
1228 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
1229 | { echo "$as_me: error: invalid package name: $ac_package" >&2 |
1230 | { (exit 1); exit 1; }; } |
1231 | ac_package=`echo $ac_package | sed 's/-/_/g'` |
1232 | eval with_$ac_package=no ;; |
1233 | |
1234 | --x) |
1235 | # Obsolete; use --with-x. |
1236 | with_x=yes ;; |
1237 | |
1238 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ |
1239 | | --x-incl | --x-inc | --x-in | --x-i) |
1240 | ac_prev=x_includes ;; |
1241 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ |
1242 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) |
1243 | x_includes=$ac_optarg ;; |
1244 | |
1245 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ |
1246 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) |
1247 | ac_prev=x_libraries ;; |
1248 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ |
1249 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) |
1250 | x_libraries=$ac_optarg ;; |
1251 | |
1252 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
1253 | Try \`$0 --help' for more information." >&2 |
1254 | { (exit 1); exit 1; }; } |
1255 | ;; |
1256 | |
1257 | *=*) |
1258 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` |
1259 | # Reject names that are not valid shell variable names. |
1260 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && |
1261 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 |
1262 | { (exit 1); exit 1; }; } |
1263 | eval $ac_envvar=\$ac_optarg |
1264 | export $ac_envvar ;; |
1265 | |
1266 | *) |
1267 | # FIXME: should be removed in autoconf 3.0. |
1268 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 |
1269 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && |
1270 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 |
1271 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} |
1272 | ;; |
1273 | |
1274 | esac |
1275 | done |
1276 | |
1277 | if test -n "$ac_prev"; then |
1278 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
1279 | { echo "$as_me: error: missing argument to $ac_option" >&2 |
1280 | { (exit 1); exit 1; }; } |
1281 | fi |
1282 | |
1283 | # Be sure to have absolute directory names. |
1284 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ |
1285 | datadir sysconfdir sharedstatedir localstatedir includedir \ |
1286 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ |
1287 | libdir localedir mandir |
1288 | do |
1289 | eval ac_val=\$$ac_var |
1290 | case $ac_val in |
1291 | [\\/$]* | ?:[\\/]* ) continue;; |
1292 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; |
1293 | esac |
1294 | { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 |
1295 | { (exit 1); exit 1; }; } |
1296 | done |
1297 | |
1298 | # There might be people who depend on the old broken behavior: `$host' |
1299 | # used to hold the argument of --host etc. |
1300 | # FIXME: To remove some day. |
1301 | build=$build_alias |
1302 | host=$host_alias |
1303 | target=$target_alias |
1304 | |
1305 | # FIXME: To remove some day. |
1306 | if test "x$host_alias" != x; then |
1307 | if test "x$build_alias" = x; then |
1308 | cross_compiling=maybe |
1309 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. |
1310 | If a cross compiler is detected then cross compile mode will be used." >&2 |
1311 | elif test "x$build_alias" != "x$host_alias"; then |
1312 | cross_compiling=yes |
1313 | fi |
1314 | fi |
1315 | |
1316 | ac_tool_prefix= |
1317 | test -n "$host_alias" && ac_tool_prefix=$host_alias- |
1318 | |
1319 | test "$silent" = yes && exec 6>/dev/null |
1320 | |
1321 | |
1322 | ac_pwd=`pwd` && test -n "$ac_pwd" && |
1323 | ac_ls_di=`ls -di .` && |
1324 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || |
1325 | { echo "$as_me: error: Working directory cannot be determined" >&2 |
1326 | { (exit 1); exit 1; }; } |
1327 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || |
1328 | { echo "$as_me: error: pwd does not report name of working directory" >&2 |
1329 | { (exit 1); exit 1; }; } |
1330 | |
1331 | |
1332 | # Find the source files, if location was not specified. |
1333 | if test -z "$srcdir"; then |
1334 | ac_srcdir_defaulted=yes |
1335 | # Try the directory containing this script, then the parent directory. |
1336 | ac_confdir=`$as_dirname -- "$0" || |
1337 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
1338 | X"$0" : 'X\(//\)[^/]' \| \ |
1339 | X"$0" : 'X\(//\)$' \| \ |
1340 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
1341 | echo X"$0" | |
1342 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
1343 | s//\1/ |
1344 | q |
1345 | } |
1346 | /^X\(\/\/\)[^/].*/{ |
1347 | s//\1/ |
1348 | q |
1349 | } |
1350 | /^X\(\/\/\)$/{ |
1351 | s//\1/ |
1352 | q |
1353 | } |
1354 | /^X\(\/\).*/{ |
1355 | s//\1/ |
1356 | q |
1357 | } |
1358 | s/.*/./; q'` |
1359 | srcdir=$ac_confdir |
1360 | if test ! -r "$srcdir/$ac_unique_file"; then |
1361 | srcdir=.. |
1362 | fi |
1363 | else |
1364 | ac_srcdir_defaulted=no |
1365 | fi |
1366 | if test ! -r "$srcdir/$ac_unique_file"; then |
1367 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." |
1368 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
1369 | { (exit 1); exit 1; }; } |
1370 | fi |
1371 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" |
1372 | ac_abs_confdir=`( |
1373 | cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2 |
1374 | { (exit 1); exit 1; }; } |
1375 | pwd)` |
1376 | # When building in place, set srcdir=. |
1377 | if test "$ac_abs_confdir" = "$ac_pwd"; then |
1378 | srcdir=. |
1379 | fi |
1380 | # Remove unnecessary trailing slashes from srcdir. |
1381 | # Double slashes in file names in object file debugging info |
1382 | # mess up M-x gdb in Emacs. |
1383 | case $srcdir in |
1384 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; |
1385 | esac |
1386 | for ac_var in $ac_precious_vars; do |
1387 | eval ac_env_${ac_var}_set=\${${ac_var}+set} |
1388 | eval ac_env_${ac_var}_value=\$${ac_var} |
1389 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} |
1390 | eval ac_cv_env_${ac_var}_value=\$${ac_var} |
1391 | done |
1392 | |
1393 | # |
1394 | # Report the --help message. |
1395 | # |
1396 | if test "$ac_init_help" = "long"; then |
1397 | # Omit some internal or obsolete options to make the list less imposing. |
1398 | # This message is too long to be a string in the A/UX 3.1 sh. |
1399 | cat <<_ACEOF |
1400 | \`configure' configures FULL-PACKAGE-NAME VERSION to adapt to many kinds of systems. |
1401 | |
1402 | Usage: $0 [OPTION]... [VAR=VALUE]... |
1403 | |
1404 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
1405 | VAR=VALUE. See below for descriptions of some of the useful variables. |
1406 | |
1407 | Defaults for the options are specified in brackets. |
1408 | |
1409 | Configuration: |
1410 | -h, --help display this help and exit |
1411 | --help=short display options specific to this package |
1412 | --help=recursive display the short help of all the included packages |
1413 | -V, --version display version information and exit |
1414 | -q, --quiet, --silent do not print \`checking...' messages |
1415 | --cache-file=FILE cache test results in FILE [disabled] |
1416 | -C, --config-cache alias for \`--cache-file=config.cache' |
1417 | -n, --no-create do not create output files |
1418 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] |
1419 | |
1420 | Installation directories: |
1421 | --prefix=PREFIX install architecture-independent files in PREFIX |
1422 | [$ac_default_prefix] |
1423 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX |
1424 | [PREFIX] |
1425 | |
1426 | By default, \`make install' will install all the files in |
1427 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify |
1428 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', |
1429 | for instance \`--prefix=\$HOME'. |
1430 | |
1431 | For better control, use the options below. |
1432 | |
1433 | Fine tuning of the installation directories: |
1434 | --bindir=DIR user executables [EPREFIX/bin] |
1435 | --sbindir=DIR system admin executables [EPREFIX/sbin] |
1436 | --libexecdir=DIR program executables [EPREFIX/libexec] |
1437 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] |
1438 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] |
1439 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] |
1440 | --libdir=DIR object code libraries [EPREFIX/lib] |
1441 | --includedir=DIR C header files [PREFIX/include] |
1442 | --oldincludedir=DIR C header files for non-gcc [/usr/include] |
1443 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] |
1444 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] |
1445 | --infodir=DIR info documentation [DATAROOTDIR/info] |
1446 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] |
1447 | --mandir=DIR man documentation [DATAROOTDIR/man] |
1448 | --docdir=DIR documentation root [DATAROOTDIR/doc/full-package-name] |
1449 | --htmldir=DIR html documentation [DOCDIR] |
1450 | --dvidir=DIR dvi documentation [DOCDIR] |
1451 | --pdfdir=DIR pdf documentation [DOCDIR] |
1452 | --psdir=DIR ps documentation [DOCDIR] |
1453 | _ACEOF |
1454 | |
1455 | cat <<\_ACEOF |
1456 | |
1457 | Program names: |
1458 | --program-prefix=PREFIX prepend PREFIX to installed program names |
1459 | --program-suffix=SUFFIX append SUFFIX to installed program names |
1460 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names |
1461 | |
1462 | System types: |
1463 | --build=BUILD configure for building on BUILD [guessed] |
1464 | --host=HOST cross-compile to build programs to run on HOST [BUILD] |
1465 | _ACEOF |
1466 | fi |
1467 | |
1468 | if test -n "$ac_init_help"; then |
1469 | case $ac_init_help in |
1470 | short | recursive ) echo "Configuration of FULL-PACKAGE-NAME VERSION:";; |
1471 | esac |
1472 | cat <<\_ACEOF |
1473 | |
1474 | Optional Features: |
1475 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) |
1476 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] |
1477 | --enable-shared[=PKGS] build shared libraries [default=yes] |
1478 | --enable-static[=PKGS] build static libraries [default=yes] |
1479 | --enable-fast-install[=PKGS] |
1480 | optimize for fast installation [default=yes] |
1481 | --disable-dependency-tracking Speeds up one-time builds |
1482 | --enable-dependency-tracking Do not reject slow dependency extractors |
1483 | --disable-libtool-lock avoid locking (might break parallel builds) |
1484 | --disable-glibtest do not try to compile and run a test GLIB program |
1485 | --disable-gtktest do not try to compile and run a test GTK+ program |
1486 | --disable-largefile omit support for large files |
1487 | |
1488 | Optional Packages: |
1489 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] |
1490 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) |
1491 | --with-gnu-ld assume the C compiler uses GNU ld [default=no] |
1492 | --with-pic try to use only PIC/non-PIC objects [default=use |
1493 | both] |
1494 | --with-tags[=TAGS] include additional configurations [automatic] |
1495 | |
1496 | Some influential environment variables: |
1497 | CC C compiler command |
1498 | CFLAGS C compiler flags |
1499 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a |
1500 | nonstandard directory <lib dir> |
1501 | CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if |
1502 | you have headers in a nonstandard directory <include dir> |
1503 | CPP C preprocessor |
1504 | CXX C++ compiler command |
1505 | CXXFLAGS C++ compiler flags |
1506 | CXXCPP C++ preprocessor |
1507 | F77 Fortran 77 compiler command |
1508 | FFLAGS Fortran 77 compiler flags |
1509 | PKG_CONFIG path to pkg-config utility |
1510 | PACKAGE_CFLAGS |
1511 | C compiler flags for PACKAGE, overriding pkg-config |
1512 | PACKAGE_LIBS |
1513 | linker flags for PACKAGE, overriding pkg-config |
1514 | |
1515 | Use these variables to override the choices made by `configure' or to help |
1516 | it to find libraries and programs with nonstandard names/locations. |
1517 | |
1518 | Report bugs to <BUG-REPORT-ADDRESS>. |
1519 | _ACEOF |
1520 | ac_status=$? |
1521 | fi |
1522 | |
1523 | if test "$ac_init_help" = "recursive"; then |
1524 | # If there are subdirs, report their specific --help. |
1525 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue |
1526 | test -d "$ac_dir" || continue |
1527 | ac_builddir=. |
1528 | |
1529 | case "$ac_dir" in |
1530 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1531 | *) |
1532 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
1533 | # A ".." for each directory in $ac_dir_suffix. |
1534 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
1535 | case $ac_top_builddir_sub in |
1536 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
1537 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
1538 | esac ;; |
1539 | esac |
1540 | ac_abs_top_builddir=$ac_pwd |
1541 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
1542 | # for backward compatibility: |
1543 | ac_top_builddir=$ac_top_build_prefix |
1544 | |
1545 | case $srcdir in |
1546 | .) # We are building in place. |
1547 | ac_srcdir=. |
1548 | ac_top_srcdir=$ac_top_builddir_sub |
1549 | ac_abs_top_srcdir=$ac_pwd ;; |
1550 | [\\/]* | ?:[\\/]* ) # Absolute name. |
1551 | ac_srcdir=$srcdir$ac_dir_suffix; |
1552 | ac_top_srcdir=$srcdir |
1553 | ac_abs_top_srcdir=$srcdir ;; |
1554 | *) # Relative name. |
1555 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
1556 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
1557 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
1558 | esac |
1559 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
1560 | |
1561 | cd "$ac_dir" || { ac_status=$?; continue; } |
1562 | # Check for guested configure. |
1563 | if test -f "$ac_srcdir/configure.gnu"; then |
1564 | echo && |
1565 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive |
1566 | elif test -f "$ac_srcdir/configure"; then |
1567 | echo && |
1568 | $SHELL "$ac_srcdir/configure" --help=recursive |
1569 | else |
1570 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 |
1571 | fi || ac_status=$? |
1572 | cd "$ac_pwd" || { ac_status=$?; break; } |
1573 | done |
1574 | fi |
1575 | |
1576 | test -n "$ac_init_help" && exit $ac_status |
1577 | if $ac_init_version; then |
1578 | cat <<\_ACEOF |
1579 | FULL-PACKAGE-NAME configure VERSION |
1580 | generated by GNU Autoconf 2.60 |
1581 | |
1582 | Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, |
1583 | 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc. |
1584 | This configure script is free software; the Free Software Foundation |
1585 | gives unlimited permission to copy, distribute and modify it. |
1586 | _ACEOF |
1587 | exit |
1588 | fi |
1589 | cat >config.log <<_ACEOF |
1590 | This file contains any messages produced by compilers while |
1591 | running configure, to aid debugging if configure makes a mistake. |
1592 | |
1593 | It was created by FULL-PACKAGE-NAME $as_me VERSION, which was |
1594 | generated by GNU Autoconf 2.60. Invocation command line was |
1595 | |
1596 | $ $0 $@ |
1597 | |
1598 | _ACEOF |
1599 | exec 5>>config.log |
1600 | { |
1601 | cat <<_ASUNAME |
1602 | ## --------- ## |
1603 | ## Platform. ## |
1604 | ## --------- ## |
1605 | |
1606 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` |
1607 | uname -m = `(uname -m) 2>/dev/null || echo unknown` |
1608 | uname -r = `(uname -r) 2>/dev/null || echo unknown` |
1609 | uname -s = `(uname -s) 2>/dev/null || echo unknown` |
1610 | uname -v = `(uname -v) 2>/dev/null || echo unknown` |
1611 | |
1612 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` |
1613 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` |
1614 | |
1615 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` |
1616 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` |
1617 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` |
1618 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` |
1619 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` |
1620 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` |
1621 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` |
1622 | |
1623 | _ASUNAME |
1624 | |
1625 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1626 | for as_dir in $PATH |
1627 | do |
1628 | IFS=$as_save_IFS |
1629 | test -z "$as_dir" && as_dir=. |
1630 | echo "PATH: $as_dir" |
1631 | done |
1632 | IFS=$as_save_IFS |
1633 | |
1634 | } >&5 |
1635 | |
1636 | cat >&5 <<_ACEOF |
1637 | |
1638 | |
1639 | ## ----------- ## |
1640 | ## Core tests. ## |
1641 | ## ----------- ## |
1642 | |
1643 | _ACEOF |
1644 | |
1645 | |
1646 | # Keep a trace of the command line. |
1647 | # Strip out --no-create and --no-recursion so they do not pile up. |
1648 | # Strip out --silent because we don't want to record it for future runs. |
1649 | # Also quote any args containing shell meta-characters. |
1650 | # Make two passes to allow for proper duplicate-argument suppression. |
1651 | ac_configure_args= |
1652 | ac_configure_args0= |
1653 | ac_configure_args1= |
1654 | ac_must_keep_next=false |
1655 | for ac_pass in 1 2 |
1656 | do |
1657 | for ac_arg |
1658 | do |
1659 | case $ac_arg in |
1660 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; |
1661 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
1662 | | -silent | --silent | --silen | --sile | --sil) |
1663 | continue ;; |
1664 | *\'*) |
1665 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; |
1666 | esac |
1667 | case $ac_pass in |
1668 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; |
1669 | 2) |
1670 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" |
1671 | if test $ac_must_keep_next = true; then |
1672 | ac_must_keep_next=false # Got value, back to normal. |
1673 | else |
1674 | case $ac_arg in |
1675 | *=* | --config-cache | -C | -disable-* | --disable-* \ |
1676 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ |
1677 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ |
1678 | | -with-* | --with-* | -without-* | --without-* | --x) |
1679 | case "$ac_configure_args0 " in |
1680 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; |
1681 | esac |
1682 | ;; |
1683 | -* ) ac_must_keep_next=true ;; |
1684 | esac |
1685 | fi |
1686 | ac_configure_args="$ac_configure_args '$ac_arg'" |
1687 | ;; |
1688 | esac |
1689 | done |
1690 | done |
1691 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } |
1692 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } |
1693 | |
1694 | # When interrupted or exit'd, cleanup temporary files, and complete |
1695 | # config.log. We remove comments because anyway the quotes in there |
1696 | # would cause problems or look ugly. |
1697 | # WARNING: Use '\'' to represent an apostrophe within the trap. |
1698 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. |
1699 | trap 'exit_status=$? |
1700 | # Save into config.log some information that might help in debugging. |
1701 | { |
1702 | echo |
1703 | |
1704 | cat <<\_ASBOX |
1705 | ## ---------------- ## |
1706 | ## Cache variables. ## |
1707 | ## ---------------- ## |
1708 | _ASBOX |
1709 | echo |
1710 | # The following way of writing the cache mishandles newlines in values, |
1711 | ( |
1712 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do |
1713 | eval ac_val=\$$ac_var |
1714 | case $ac_val in #( |
1715 | *${as_nl}*) |
1716 | case $ac_var in #( |
1717 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
1718 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
1719 | esac |
1720 | case $ac_var in #( |
1721 | _ | IFS | as_nl) ;; #( |
1722 | *) $as_unset $ac_var ;; |
1723 | esac ;; |
1724 | esac |
1725 | done |
1726 | (set) 2>&1 | |
1727 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( |
1728 | *${as_nl}ac_space=\ *) |
1729 | sed -n \ |
1730 | "s/'\''/'\''\\\\'\'''\''/g; |
1731 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" |
1732 | ;; #( |
1733 | *) |
1734 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
1735 | ;; |
1736 | esac | |
1737 | sort |
1738 | ) |
1739 | echo |
1740 | |
1741 | cat <<\_ASBOX |
1742 | ## ----------------- ## |
1743 | ## Output variables. ## |
1744 | ## ----------------- ## |
1745 | _ASBOX |
1746 | echo |
1747 | for ac_var in $ac_subst_vars |
1748 | do |
1749 | eval ac_val=\$$ac_var |
1750 | case $ac_val in |
1751 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1752 | esac |
1753 | echo "$ac_var='\''$ac_val'\''" |
1754 | done | sort |
1755 | echo |
1756 | |
1757 | if test -n "$ac_subst_files"; then |
1758 | cat <<\_ASBOX |
1759 | ## ------------------- ## |
1760 | ## File substitutions. ## |
1761 | ## ------------------- ## |
1762 | _ASBOX |
1763 | echo |
1764 | for ac_var in $ac_subst_files |
1765 | do |
1766 | eval ac_val=\$$ac_var |
1767 | case $ac_val in |
1768 | *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; |
1769 | esac |
1770 | echo "$ac_var='\''$ac_val'\''" |
1771 | done | sort |
1772 | echo |
1773 | fi |
1774 | |
1775 | if test -s confdefs.h; then |
1776 | cat <<\_ASBOX |
1777 | ## ----------- ## |
1778 | ## confdefs.h. ## |
1779 | ## ----------- ## |
1780 | _ASBOX |
1781 | echo |
1782 | cat confdefs.h |
1783 | echo |
1784 | fi |
1785 | test "$ac_signal" != 0 && |
1786 | echo "$as_me: caught signal $ac_signal" |
1787 | echo "$as_me: exit $exit_status" |
1788 | } >&5 |
1789 | rm -f core *.core core.conftest.* && |
1790 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && |
1791 | exit $exit_status |
1792 | ' 0 |
1793 | for ac_signal in 1 2 13 15; do |
1794 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal |
1795 | done |
1796 | ac_signal=0 |
1797 | |
1798 | # confdefs.h avoids OS command line length limits that DEFS can exceed. |
1799 | rm -f -r conftest* confdefs.h |
1800 | |
1801 | # Predefined preprocessor variables. |
1802 | |
1803 | cat >>confdefs.h <<_ACEOF |
1804 | #define PACKAGE_NAME "$PACKAGE_NAME" |
1805 | _ACEOF |
1806 | |
1807 | |
1808 | cat >>confdefs.h <<_ACEOF |
1809 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" |
1810 | _ACEOF |
1811 | |
1812 | |
1813 | cat >>confdefs.h <<_ACEOF |
1814 | #define PACKAGE_VERSION "$PACKAGE_VERSION" |
1815 | _ACEOF |
1816 | |
1817 | |
1818 | cat >>confdefs.h <<_ACEOF |
1819 | #define PACKAGE_STRING "$PACKAGE_STRING" |
1820 | _ACEOF |
1821 | |
1822 | |
1823 | cat >>confdefs.h <<_ACEOF |
1824 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" |
1825 | _ACEOF |
1826 | |
1827 | |
1828 | # Let the site file select an alternate cache file if it wants to. |
1829 | # Prefer explicitly selected file to automatically selected ones. |
1830 | if test -n "$CONFIG_SITE"; then |
1831 | set x "$CONFIG_SITE" |
1832 | elif test "x$prefix" != xNONE; then |
1833 | set x "$prefix/share/config.site" "$prefix/etc/config.site" |
1834 | else |
1835 | set x "$ac_default_prefix/share/config.site" \ |
1836 | "$ac_default_prefix/etc/config.site" |
1837 | fi |
1838 | shift |
1839 | for ac_site_file |
1840 | do |
1841 | if test -r "$ac_site_file"; then |
1842 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 |
1843 | echo "$as_me: loading site script $ac_site_file" >&6;} |
1844 | sed 's/^/| /' "$ac_site_file" >&5 |
1845 | . "$ac_site_file" |
1846 | fi |
1847 | done |
1848 | |
1849 | if test -r "$cache_file"; then |
1850 | # Some versions of bash will fail to source /dev/null (special |
1851 | # files actually), so we avoid doing that. |
1852 | if test -f "$cache_file"; then |
1853 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 |
1854 | echo "$as_me: loading cache $cache_file" >&6;} |
1855 | case $cache_file in |
1856 | [\\/]* | ?:[\\/]* ) . "$cache_file";; |
1857 | *) . "./$cache_file";; |
1858 | esac |
1859 | fi |
1860 | else |
1861 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 |
1862 | echo "$as_me: creating cache $cache_file" >&6;} |
1863 | >$cache_file |
1864 | fi |
1865 | |
1866 | # Check that the precious variables saved in the cache have kept the same |
1867 | # value. |
1868 | ac_cache_corrupted=false |
1869 | for ac_var in $ac_precious_vars; do |
1870 | eval ac_old_set=\$ac_cv_env_${ac_var}_set |
1871 | eval ac_new_set=\$ac_env_${ac_var}_set |
1872 | eval ac_old_val=\$ac_cv_env_${ac_var}_value |
1873 | eval ac_new_val=\$ac_env_${ac_var}_value |
1874 | case $ac_old_set,$ac_new_set in |
1875 | set,) |
1876 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 |
1877 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} |
1878 | ac_cache_corrupted=: ;; |
1879 | ,set) |
1880 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 |
1881 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} |
1882 | ac_cache_corrupted=: ;; |
1883 | ,);; |
1884 | *) |
1885 | if test "x$ac_old_val" != "x$ac_new_val"; then |
1886 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 |
1887 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} |
1888 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 |
1889 | echo "$as_me: former value: $ac_old_val" >&2;} |
1890 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 |
1891 | echo "$as_me: current value: $ac_new_val" >&2;} |
1892 | ac_cache_corrupted=: |
1893 | fi;; |
1894 | esac |
1895 | # Pass precious variables to config.status. |
1896 | if test "$ac_new_set" = set; then |
1897 | case $ac_new_val in |
1898 | *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; |
1899 | *) ac_arg=$ac_var=$ac_new_val ;; |
1900 | esac |
1901 | case " $ac_configure_args " in |
1902 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. |
1903 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; |
1904 | esac |
1905 | fi |
1906 | done |
1907 | if $ac_cache_corrupted; then |
1908 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 |
1909 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} |
1910 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 |
1911 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} |
1912 | { (exit 1); exit 1; }; } |
1913 | fi |
1914 | |
1915 | |
1916 | |
1917 | |
1918 | |
1919 | |
1920 | |
1921 | |
1922 | |
1923 | |
1924 | |
1925 | |
1926 | |
1927 | |
1928 | |
1929 | |
1930 | |
1931 | |
1932 | |
1933 | |
1934 | |
1935 | |
1936 | |
1937 | |
1938 | |
1939 | ac_ext=c |
1940 | ac_cpp='$CPP $CPPFLAGS' |
1941 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
1942 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
1943 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
1944 | |
1945 | |
1946 | #AC_WITH_LTDL # not needed ? |
1947 | am__api_version="1.7" |
1948 | ac_aux_dir= |
1949 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do |
1950 | if test -f "$ac_dir/install-sh"; then |
1951 | ac_aux_dir=$ac_dir |
1952 | ac_install_sh="$ac_aux_dir/install-sh -c" |
1953 | break |
1954 | elif test -f "$ac_dir/install.sh"; then |
1955 | ac_aux_dir=$ac_dir |
1956 | ac_install_sh="$ac_aux_dir/install.sh -c" |
1957 | break |
1958 | elif test -f "$ac_dir/shtool"; then |
1959 | ac_aux_dir=$ac_dir |
1960 | ac_install_sh="$ac_aux_dir/shtool install -c" |
1961 | break |
1962 | fi |
1963 | done |
1964 | if test -z "$ac_aux_dir"; then |
1965 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5 |
1966 | echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;} |
1967 | { (exit 1); exit 1; }; } |
1968 | fi |
1969 | |
1970 | # These three variables are undocumented and unsupported, |
1971 | # and are intended to be withdrawn in a future Autoconf release. |
1972 | # They can cause serious problems if a builder's source tree is in a directory |
1973 | # whose full name contains unusual characters. |
1974 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. |
1975 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. |
1976 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. |
1977 | |
1978 | |
1979 | # Find a good install program. We prefer a C program (faster), |
1980 | # so one script is as good as another. But avoid the broken or |
1981 | # incompatible versions: |
1982 | # SysV /etc/install, /usr/sbin/install |
1983 | # SunOS /usr/etc/install |
1984 | # IRIX /sbin/install |
1985 | # AIX /bin/install |
1986 | # AmigaOS /C/install, which installs bootblocks on floppy discs |
1987 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag |
1988 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args |
1989 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" |
1990 | # OS/2's system install, which has a completely different semantic |
1991 | # ./install, which can be erroneously created by make from ./install.sh. |
1992 | { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 |
1993 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; } |
1994 | if test -z "$INSTALL"; then |
1995 | if test "${ac_cv_path_install+set}" = set; then |
1996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1997 | else |
1998 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1999 | for as_dir in $PATH |
2000 | do |
2001 | IFS=$as_save_IFS |
2002 | test -z "$as_dir" && as_dir=. |
2003 | # Account for people who put trailing slashes in PATH elements. |
2004 | case $as_dir/ in |
2005 | ./ | .// | /cC/* | \ |
2006 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ |
2007 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ |
2008 | /usr/ucb/* ) ;; |
2009 | *) |
2010 | # OSF1 and SCO ODT 3.0 have their own names for install. |
2011 | # Don't use installbsd from OSF since it installs stuff as root |
2012 | # by default. |
2013 | for ac_prog in ginstall scoinst install; do |
2014 | for ac_exec_ext in '' $ac_executable_extensions; do |
2015 | if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then |
2016 | if test $ac_prog = install && |
2017 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2018 | # AIX install. It has an incompatible calling convention. |
2019 | : |
2020 | elif test $ac_prog = install && |
2021 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then |
2022 | # program-specific install script used by HP pwplus--don't use. |
2023 | : |
2024 | else |
2025 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" |
2026 | break 3 |
2027 | fi |
2028 | fi |
2029 | done |
2030 | done |
2031 | ;; |
2032 | esac |
2033 | done |
2034 | IFS=$as_save_IFS |
2035 | |
2036 | |
2037 | fi |
2038 | if test "${ac_cv_path_install+set}" = set; then |
2039 | INSTALL=$ac_cv_path_install |
2040 | else |
2041 | # As a last resort, use the slow shell script. Don't cache a |
2042 | # value for INSTALL within a source directory, because that will |
2043 | # break other packages using the cache if that directory is |
2044 | # removed, or if the value is a relative name. |
2045 | INSTALL=$ac_install_sh |
2046 | fi |
2047 | fi |
2048 | { echo "$as_me:$LINENO: result: $INSTALL" >&5 |
2049 | echo "${ECHO_T}$INSTALL" >&6; } |
2050 | |
2051 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2052 | # It thinks the first close brace ends the variable substitution. |
2053 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' |
2054 | |
2055 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' |
2056 | |
2057 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' |
2058 | |
2059 | { echo "$as_me:$LINENO: checking whether build environment is sane" >&5 |
2060 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; } |
2061 | # Just in case |
2062 | sleep 1 |
2063 | echo timestamp > conftest.file |
2064 | # Do `set' in a subshell so we don't clobber the current shell's |
2065 | # arguments. Must try -L first in case configure is actually a |
2066 | # symlink; some systems play weird games with the mod time of symlinks |
2067 | # (eg FreeBSD returns the mod time of the symlink's containing |
2068 | # directory). |
2069 | if ( |
2070 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` |
2071 | if test "$*" = "X"; then |
2072 | # -L didn't work. |
2073 | set X `ls -t $srcdir/configure conftest.file` |
2074 | fi |
2075 | rm -f conftest.file |
2076 | if test "$*" != "X $srcdir/configure conftest.file" \ |
2077 | && test "$*" != "X conftest.file $srcdir/configure"; then |
2078 | |
2079 | # If neither matched, then we have a broken ls. This can happen |
2080 | # if, for instance, CONFIG_SHELL is bash and it inherits a |
2081 | # broken ls alias from the environment. This has actually |
2082 | # happened. Such a system could not be considered "sane". |
2083 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken |
2084 | alias in your environment" >&5 |
2085 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken |
2086 | alias in your environment" >&2;} |
2087 | { (exit 1); exit 1; }; } |
2088 | fi |
2089 | |
2090 | test "$2" = conftest.file |
2091 | ) |
2092 | then |
2093 | # Ok. |
2094 | : |
2095 | else |
2096 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! |
2097 | Check your system clock" >&5 |
2098 | echo "$as_me: error: newly created file is older than distributed files! |
2099 | Check your system clock" >&2;} |
2100 | { (exit 1); exit 1; }; } |
2101 | fi |
2102 | { echo "$as_me:$LINENO: result: yes" >&5 |
2103 | echo "${ECHO_T}yes" >&6; } |
2104 | test "$program_prefix" != NONE && |
2105 | program_transform_name="s&^&$program_prefix&;$program_transform_name" |
2106 | # Use a double $ so make ignores it. |
2107 | test "$program_suffix" != NONE && |
2108 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" |
2109 | # Double any \ or $. echo might interpret backslashes. |
2110 | # By default was `s,x,x', remove it if useless. |
2111 | cat <<\_ACEOF >conftest.sed |
2112 | s/[\\$]/&&/g;s/;s,x,x,$// |
2113 | _ACEOF |
2114 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
2115 | rm -f conftest.sed |
2116 | |
2117 | |
2118 | # expand $ac_aux_dir to an absolute path |
2119 | am_aux_dir=`cd $ac_aux_dir && pwd` |
2120 | |
2121 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" |
2122 | # Use eval to expand $SHELL |
2123 | if eval "$MISSING --run true"; then |
2124 | am_missing_run="$MISSING --run " |
2125 | else |
2126 | am_missing_run= |
2127 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 |
2128 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} |
2129 | fi |
2130 | |
2131 | for ac_prog in gawk mawk nawk awk |
2132 | do |
2133 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2134 | set dummy $ac_prog; ac_word=$2 |
2135 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2136 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2137 | if test "${ac_cv_prog_AWK+set}" = set; then |
2138 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2139 | else |
2140 | if test -n "$AWK"; then |
2141 | ac_cv_prog_AWK="$AWK" # Let the user override the test. |
2142 | else |
2143 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2144 | for as_dir in $PATH |
2145 | do |
2146 | IFS=$as_save_IFS |
2147 | test -z "$as_dir" && as_dir=. |
2148 | for ac_exec_ext in '' $ac_executable_extensions; do |
2149 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
2150 | ac_cv_prog_AWK="$ac_prog" |
2151 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2152 | break 2 |
2153 | fi |
2154 | done |
2155 | done |
2156 | IFS=$as_save_IFS |
2157 | |
2158 | fi |
2159 | fi |
2160 | AWK=$ac_cv_prog_AWK |
2161 | if test -n "$AWK"; then |
2162 | { echo "$as_me:$LINENO: result: $AWK" >&5 |
2163 | echo "${ECHO_T}$AWK" >&6; } |
2164 | else |
2165 | { echo "$as_me:$LINENO: result: no" >&5 |
2166 | echo "${ECHO_T}no" >&6; } |
2167 | fi |
2168 | |
2169 | |
2170 | test -n "$AWK" && break |
2171 | done |
2172 | |
2173 | { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 |
2174 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; } |
2175 | set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` |
2176 | if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then |
2177 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2178 | else |
2179 | cat >conftest.make <<\_ACEOF |
2180 | SHELL = /bin/sh |
2181 | all: |
2182 | @echo '@@@%%%=$(MAKE)=@@@%%%' |
2183 | _ACEOF |
2184 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
2185 | case `${MAKE-make} -f conftest.make 2>/dev/null` in |
2186 | *@@@%%%=?*=@@@%%%*) |
2187 | eval ac_cv_prog_make_${ac_make}_set=yes;; |
2188 | *) |
2189 | eval ac_cv_prog_make_${ac_make}_set=no;; |
2190 | esac |
2191 | rm -f conftest.make |
2192 | fi |
2193 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then |
2194 | { echo "$as_me:$LINENO: result: yes" >&5 |
2195 | echo "${ECHO_T}yes" >&6; } |
2196 | SET_MAKE= |
2197 | else |
2198 | { echo "$as_me:$LINENO: result: no" >&5 |
2199 | echo "${ECHO_T}no" >&6; } |
2200 | SET_MAKE="MAKE=${MAKE-make}" |
2201 | fi |
2202 | |
2203 | rm -rf .tst 2>/dev/null |
2204 | mkdir .tst 2>/dev/null |
2205 | if test -d .tst; then |
2206 | am__leading_dot=. |
2207 | else |
2208 | am__leading_dot=_ |
2209 | fi |
2210 | rmdir .tst 2>/dev/null |
2211 | |
2212 | # test to see if srcdir already configured |
2213 | if test "`cd $srcdir && pwd`" != "`pwd`" && |
2214 | test -f $srcdir/config.status; then |
2215 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 |
2216 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} |
2217 | { (exit 1); exit 1; }; } |
2218 | fi |
2219 | |
2220 | # test whether we have cygpath |
2221 | if test -z "$CYGPATH_W"; then |
2222 | if (cygpath --version) >/dev/null 2>/dev/null; then |
2223 | CYGPATH_W='cygpath -w' |
2224 | else |
2225 | CYGPATH_W=echo |
2226 | fi |
2227 | fi |
2228 | |
2229 | |
2230 | # Define the identity of the package. |
2231 | PACKAGE=LinuxTraceToolkitViewer |
2232 | VERSION=0.8.61-16092006 |
2233 | |
2234 | |
2235 | cat >>confdefs.h <<_ACEOF |
2236 | #define PACKAGE "$PACKAGE" |
2237 | _ACEOF |
2238 | |
2239 | |
2240 | cat >>confdefs.h <<_ACEOF |
2241 | #define VERSION "$VERSION" |
2242 | _ACEOF |
2243 | |
2244 | # Some tools Automake needs. |
2245 | |
2246 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} |
2247 | |
2248 | |
2249 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} |
2250 | |
2251 | |
2252 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} |
2253 | |
2254 | |
2255 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} |
2256 | |
2257 | |
2258 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} |
2259 | |
2260 | |
2261 | AMTAR=${AMTAR-"${am_missing_run}tar"} |
2262 | |
2263 | install_sh=${install_sh-"$am_aux_dir/install-sh"} |
2264 | |
2265 | # Installed binaries are usually stripped using `strip' when the user |
2266 | # run `make install-strip'. However `strip' might not be the right |
2267 | # tool to use in cross-compilation environments, therefore Automake |
2268 | # will honor the `STRIP' environment variable to overrule this program. |
2269 | if test "$cross_compiling" != no; then |
2270 | if test -n "$ac_tool_prefix"; then |
2271 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
2272 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
2273 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2274 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2275 | if test "${ac_cv_prog_STRIP+set}" = set; then |
2276 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2277 | else |
2278 | if test -n "$STRIP"; then |
2279 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
2280 | else |
2281 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2282 | for as_dir in $PATH |
2283 | do |
2284 | IFS=$as_save_IFS |
2285 | test -z "$as_dir" && as_dir=. |
2286 | for ac_exec_ext in '' $ac_executable_extensions; do |
2287 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
2288 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
2289 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2290 | break 2 |
2291 | fi |
2292 | done |
2293 | done |
2294 | IFS=$as_save_IFS |
2295 | |
2296 | fi |
2297 | fi |
2298 | STRIP=$ac_cv_prog_STRIP |
2299 | if test -n "$STRIP"; then |
2300 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
2301 | echo "${ECHO_T}$STRIP" >&6; } |
2302 | else |
2303 | { echo "$as_me:$LINENO: result: no" >&5 |
2304 | echo "${ECHO_T}no" >&6; } |
2305 | fi |
2306 | |
2307 | |
2308 | fi |
2309 | if test -z "$ac_cv_prog_STRIP"; then |
2310 | ac_ct_STRIP=$STRIP |
2311 | # Extract the first word of "strip", so it can be a program name with args. |
2312 | set dummy strip; ac_word=$2 |
2313 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2314 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2315 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
2316 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2317 | else |
2318 | if test -n "$ac_ct_STRIP"; then |
2319 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
2320 | else |
2321 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2322 | for as_dir in $PATH |
2323 | do |
2324 | IFS=$as_save_IFS |
2325 | test -z "$as_dir" && as_dir=. |
2326 | for ac_exec_ext in '' $ac_executable_extensions; do |
2327 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
2328 | ac_cv_prog_ac_ct_STRIP="strip" |
2329 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2330 | break 2 |
2331 | fi |
2332 | done |
2333 | done |
2334 | IFS=$as_save_IFS |
2335 | |
2336 | fi |
2337 | fi |
2338 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
2339 | if test -n "$ac_ct_STRIP"; then |
2340 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
2341 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
2342 | else |
2343 | { echo "$as_me:$LINENO: result: no" >&5 |
2344 | echo "${ECHO_T}no" >&6; } |
2345 | fi |
2346 | |
2347 | if test "x$ac_ct_STRIP" = x; then |
2348 | STRIP=":" |
2349 | else |
2350 | case $cross_compiling:$ac_tool_warned in |
2351 | yes:) |
2352 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2353 | whose name does not start with the host triplet. If you think this |
2354 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2355 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2356 | whose name does not start with the host triplet. If you think this |
2357 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2358 | ac_tool_warned=yes ;; |
2359 | esac |
2360 | STRIP=$ac_ct_STRIP |
2361 | fi |
2362 | else |
2363 | STRIP="$ac_cv_prog_STRIP" |
2364 | fi |
2365 | |
2366 | fi |
2367 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" |
2368 | |
2369 | # We need awk for the "check" target. The system "awk" is bad on |
2370 | # some platforms. |
2371 | |
2372 | |
2373 | |
2374 | ac_config_headers="$ac_config_headers config.h" |
2375 | |
2376 | # Check whether --enable-shared was given. |
2377 | if test "${enable_shared+set}" = set; then |
2378 | enableval=$enable_shared; p=${PACKAGE-default} |
2379 | case $enableval in |
2380 | yes) enable_shared=yes ;; |
2381 | no) enable_shared=no ;; |
2382 | *) |
2383 | enable_shared=no |
2384 | # Look at the argument we got. We use all the common list separators. |
2385 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
2386 | for pkg in $enableval; do |
2387 | IFS="$lt_save_ifs" |
2388 | if test "X$pkg" = "X$p"; then |
2389 | enable_shared=yes |
2390 | fi |
2391 | done |
2392 | IFS="$lt_save_ifs" |
2393 | ;; |
2394 | esac |
2395 | else |
2396 | enable_shared=yes |
2397 | fi |
2398 | |
2399 | |
2400 | # Check whether --enable-static was given. |
2401 | if test "${enable_static+set}" = set; then |
2402 | enableval=$enable_static; p=${PACKAGE-default} |
2403 | case $enableval in |
2404 | yes) enable_static=yes ;; |
2405 | no) enable_static=no ;; |
2406 | *) |
2407 | enable_static=no |
2408 | # Look at the argument we got. We use all the common list separators. |
2409 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
2410 | for pkg in $enableval; do |
2411 | IFS="$lt_save_ifs" |
2412 | if test "X$pkg" = "X$p"; then |
2413 | enable_static=yes |
2414 | fi |
2415 | done |
2416 | IFS="$lt_save_ifs" |
2417 | ;; |
2418 | esac |
2419 | else |
2420 | enable_static=yes |
2421 | fi |
2422 | |
2423 | |
2424 | # Check whether --enable-fast-install was given. |
2425 | if test "${enable_fast_install+set}" = set; then |
2426 | enableval=$enable_fast_install; p=${PACKAGE-default} |
2427 | case $enableval in |
2428 | yes) enable_fast_install=yes ;; |
2429 | no) enable_fast_install=no ;; |
2430 | *) |
2431 | enable_fast_install=no |
2432 | # Look at the argument we got. We use all the common list separators. |
2433 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
2434 | for pkg in $enableval; do |
2435 | IFS="$lt_save_ifs" |
2436 | if test "X$pkg" = "X$p"; then |
2437 | enable_fast_install=yes |
2438 | fi |
2439 | done |
2440 | IFS="$lt_save_ifs" |
2441 | ;; |
2442 | esac |
2443 | else |
2444 | enable_fast_install=yes |
2445 | fi |
2446 | |
2447 | |
2448 | # Make sure we can run config.sub. |
2449 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || |
2450 | { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5 |
2451 | echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;} |
2452 | { (exit 1); exit 1; }; } |
2453 | |
2454 | { echo "$as_me:$LINENO: checking build system type" >&5 |
2455 | echo $ECHO_N "checking build system type... $ECHO_C" >&6; } |
2456 | if test "${ac_cv_build+set}" = set; then |
2457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2458 | else |
2459 | ac_build_alias=$build_alias |
2460 | test "x$ac_build_alias" = x && |
2461 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` |
2462 | test "x$ac_build_alias" = x && |
2463 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 |
2464 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} |
2465 | { (exit 1); exit 1; }; } |
2466 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || |
2467 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5 |
2468 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;} |
2469 | { (exit 1); exit 1; }; } |
2470 | |
2471 | fi |
2472 | { echo "$as_me:$LINENO: result: $ac_cv_build" >&5 |
2473 | echo "${ECHO_T}$ac_cv_build" >&6; } |
2474 | case $ac_cv_build in |
2475 | *-*-*) ;; |
2476 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5 |
2477 | echo "$as_me: error: invalid value of canonical build" >&2;} |
2478 | { (exit 1); exit 1; }; };; |
2479 | esac |
2480 | build=$ac_cv_build |
2481 | ac_save_IFS=$IFS; IFS='-' |
2482 | set x $ac_cv_build |
2483 | shift |
2484 | build_cpu=$1 |
2485 | build_vendor=$2 |
2486 | shift; shift |
2487 | # Remember, the first character of IFS is used to create $*, |
2488 | # except with old shells: |
2489 | build_os=$* |
2490 | IFS=$ac_save_IFS |
2491 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac |
2492 | |
2493 | |
2494 | { echo "$as_me:$LINENO: checking host system type" >&5 |
2495 | echo $ECHO_N "checking host system type... $ECHO_C" >&6; } |
2496 | if test "${ac_cv_host+set}" = set; then |
2497 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2498 | else |
2499 | if test "x$host_alias" = x; then |
2500 | ac_cv_host=$ac_cv_build |
2501 | else |
2502 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || |
2503 | { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5 |
2504 | echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;} |
2505 | { (exit 1); exit 1; }; } |
2506 | fi |
2507 | |
2508 | fi |
2509 | { echo "$as_me:$LINENO: result: $ac_cv_host" >&5 |
2510 | echo "${ECHO_T}$ac_cv_host" >&6; } |
2511 | case $ac_cv_host in |
2512 | *-*-*) ;; |
2513 | *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5 |
2514 | echo "$as_me: error: invalid value of canonical host" >&2;} |
2515 | { (exit 1); exit 1; }; };; |
2516 | esac |
2517 | host=$ac_cv_host |
2518 | ac_save_IFS=$IFS; IFS='-' |
2519 | set x $ac_cv_host |
2520 | shift |
2521 | host_cpu=$1 |
2522 | host_vendor=$2 |
2523 | shift; shift |
2524 | # Remember, the first character of IFS is used to create $*, |
2525 | # except with old shells: |
2526 | host_os=$* |
2527 | IFS=$ac_save_IFS |
2528 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac |
2529 | |
2530 | |
2531 | DEPDIR="${am__leading_dot}deps" |
2532 | |
2533 | ac_config_commands="$ac_config_commands depfiles" |
2534 | |
2535 | |
2536 | am_make=${MAKE-make} |
2537 | cat > confinc << 'END' |
2538 | am__doit: |
2539 | @echo done |
2540 | .PHONY: am__doit |
2541 | END |
2542 | # If we don't find an include directive, just comment out the code. |
2543 | { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 |
2544 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; } |
2545 | am__include="#" |
2546 | am__quote= |
2547 | _am_result=none |
2548 | # First try GNU make style include. |
2549 | echo "include confinc" > confmf |
2550 | # We grep out `Entering directory' and `Leaving directory' |
2551 | # messages which can occur if `w' ends up in MAKEFLAGS. |
2552 | # In particular we don't look at `^make:' because GNU make might |
2553 | # be invoked under some other name (usually "gmake"), in which |
2554 | # case it prints its new name instead of `make'. |
2555 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then |
2556 | am__include=include |
2557 | am__quote= |
2558 | _am_result=GNU |
2559 | fi |
2560 | # Now try BSD make style include. |
2561 | if test "$am__include" = "#"; then |
2562 | echo '.include "confinc"' > confmf |
2563 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then |
2564 | am__include=.include |
2565 | am__quote="\"" |
2566 | _am_result=BSD |
2567 | fi |
2568 | fi |
2569 | |
2570 | |
2571 | { echo "$as_me:$LINENO: result: $_am_result" >&5 |
2572 | echo "${ECHO_T}$_am_result" >&6; } |
2573 | rm -f confinc confmf |
2574 | |
2575 | # Check whether --enable-dependency-tracking was given. |
2576 | if test "${enable_dependency_tracking+set}" = set; then |
2577 | enableval=$enable_dependency_tracking; |
2578 | fi |
2579 | |
2580 | if test "x$enable_dependency_tracking" != xno; then |
2581 | am_depcomp="$ac_aux_dir/depcomp" |
2582 | AMDEPBACKSLASH='\' |
2583 | fi |
2584 | |
2585 | |
2586 | if test "x$enable_dependency_tracking" != xno; then |
2587 | AMDEP_TRUE= |
2588 | AMDEP_FALSE='#' |
2589 | else |
2590 | AMDEP_TRUE='#' |
2591 | AMDEP_FALSE= |
2592 | fi |
2593 | |
2594 | |
2595 | |
2596 | ac_ext=c |
2597 | ac_cpp='$CPP $CPPFLAGS' |
2598 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
2599 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
2600 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
2601 | if test -n "$ac_tool_prefix"; then |
2602 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
2603 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
2604 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2605 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2606 | if test "${ac_cv_prog_CC+set}" = set; then |
2607 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2608 | else |
2609 | if test -n "$CC"; then |
2610 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2611 | else |
2612 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2613 | for as_dir in $PATH |
2614 | do |
2615 | IFS=$as_save_IFS |
2616 | test -z "$as_dir" && as_dir=. |
2617 | for ac_exec_ext in '' $ac_executable_extensions; do |
2618 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
2619 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
2620 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2621 | break 2 |
2622 | fi |
2623 | done |
2624 | done |
2625 | IFS=$as_save_IFS |
2626 | |
2627 | fi |
2628 | fi |
2629 | CC=$ac_cv_prog_CC |
2630 | if test -n "$CC"; then |
2631 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2632 | echo "${ECHO_T}$CC" >&6; } |
2633 | else |
2634 | { echo "$as_me:$LINENO: result: no" >&5 |
2635 | echo "${ECHO_T}no" >&6; } |
2636 | fi |
2637 | |
2638 | |
2639 | fi |
2640 | if test -z "$ac_cv_prog_CC"; then |
2641 | ac_ct_CC=$CC |
2642 | # Extract the first word of "gcc", so it can be a program name with args. |
2643 | set dummy gcc; ac_word=$2 |
2644 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2645 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2646 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2647 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2648 | else |
2649 | if test -n "$ac_ct_CC"; then |
2650 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2651 | else |
2652 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2653 | for as_dir in $PATH |
2654 | do |
2655 | IFS=$as_save_IFS |
2656 | test -z "$as_dir" && as_dir=. |
2657 | for ac_exec_ext in '' $ac_executable_extensions; do |
2658 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
2659 | ac_cv_prog_ac_ct_CC="gcc" |
2660 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2661 | break 2 |
2662 | fi |
2663 | done |
2664 | done |
2665 | IFS=$as_save_IFS |
2666 | |
2667 | fi |
2668 | fi |
2669 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2670 | if test -n "$ac_ct_CC"; then |
2671 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2672 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
2673 | else |
2674 | { echo "$as_me:$LINENO: result: no" >&5 |
2675 | echo "${ECHO_T}no" >&6; } |
2676 | fi |
2677 | |
2678 | if test "x$ac_ct_CC" = x; then |
2679 | CC="" |
2680 | else |
2681 | case $cross_compiling:$ac_tool_warned in |
2682 | yes:) |
2683 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2684 | whose name does not start with the host triplet. If you think this |
2685 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2686 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2687 | whose name does not start with the host triplet. If you think this |
2688 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2689 | ac_tool_warned=yes ;; |
2690 | esac |
2691 | CC=$ac_ct_CC |
2692 | fi |
2693 | else |
2694 | CC="$ac_cv_prog_CC" |
2695 | fi |
2696 | |
2697 | if test -z "$CC"; then |
2698 | if test -n "$ac_tool_prefix"; then |
2699 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
2700 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
2701 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2702 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2703 | if test "${ac_cv_prog_CC+set}" = set; then |
2704 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2705 | else |
2706 | if test -n "$CC"; then |
2707 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2708 | else |
2709 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2710 | for as_dir in $PATH |
2711 | do |
2712 | IFS=$as_save_IFS |
2713 | test -z "$as_dir" && as_dir=. |
2714 | for ac_exec_ext in '' $ac_executable_extensions; do |
2715 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
2716 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
2717 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2718 | break 2 |
2719 | fi |
2720 | done |
2721 | done |
2722 | IFS=$as_save_IFS |
2723 | |
2724 | fi |
2725 | fi |
2726 | CC=$ac_cv_prog_CC |
2727 | if test -n "$CC"; then |
2728 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2729 | echo "${ECHO_T}$CC" >&6; } |
2730 | else |
2731 | { echo "$as_me:$LINENO: result: no" >&5 |
2732 | echo "${ECHO_T}no" >&6; } |
2733 | fi |
2734 | |
2735 | |
2736 | fi |
2737 | fi |
2738 | if test -z "$CC"; then |
2739 | # Extract the first word of "cc", so it can be a program name with args. |
2740 | set dummy cc; ac_word=$2 |
2741 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2742 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2743 | if test "${ac_cv_prog_CC+set}" = set; then |
2744 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2745 | else |
2746 | if test -n "$CC"; then |
2747 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2748 | else |
2749 | ac_prog_rejected=no |
2750 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2751 | for as_dir in $PATH |
2752 | do |
2753 | IFS=$as_save_IFS |
2754 | test -z "$as_dir" && as_dir=. |
2755 | for ac_exec_ext in '' $ac_executable_extensions; do |
2756 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
2757 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
2758 | ac_prog_rejected=yes |
2759 | continue |
2760 | fi |
2761 | ac_cv_prog_CC="cc" |
2762 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2763 | break 2 |
2764 | fi |
2765 | done |
2766 | done |
2767 | IFS=$as_save_IFS |
2768 | |
2769 | if test $ac_prog_rejected = yes; then |
2770 | # We found a bogon in the path, so make sure we never use it. |
2771 | set dummy $ac_cv_prog_CC |
2772 | shift |
2773 | if test $# != 0; then |
2774 | # We chose a different compiler from the bogus one. |
2775 | # However, it has the same basename, so the bogon will be chosen |
2776 | # first if we set CC to just the basename; use the full file name. |
2777 | shift |
2778 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
2779 | fi |
2780 | fi |
2781 | fi |
2782 | fi |
2783 | CC=$ac_cv_prog_CC |
2784 | if test -n "$CC"; then |
2785 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2786 | echo "${ECHO_T}$CC" >&6; } |
2787 | else |
2788 | { echo "$as_me:$LINENO: result: no" >&5 |
2789 | echo "${ECHO_T}no" >&6; } |
2790 | fi |
2791 | |
2792 | |
2793 | fi |
2794 | if test -z "$CC"; then |
2795 | if test -n "$ac_tool_prefix"; then |
2796 | for ac_prog in cl.exe |
2797 | do |
2798 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
2799 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
2800 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2801 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2802 | if test "${ac_cv_prog_CC+set}" = set; then |
2803 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2804 | else |
2805 | if test -n "$CC"; then |
2806 | ac_cv_prog_CC="$CC" # Let the user override the test. |
2807 | else |
2808 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2809 | for as_dir in $PATH |
2810 | do |
2811 | IFS=$as_save_IFS |
2812 | test -z "$as_dir" && as_dir=. |
2813 | for ac_exec_ext in '' $ac_executable_extensions; do |
2814 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
2815 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
2816 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2817 | break 2 |
2818 | fi |
2819 | done |
2820 | done |
2821 | IFS=$as_save_IFS |
2822 | |
2823 | fi |
2824 | fi |
2825 | CC=$ac_cv_prog_CC |
2826 | if test -n "$CC"; then |
2827 | { echo "$as_me:$LINENO: result: $CC" >&5 |
2828 | echo "${ECHO_T}$CC" >&6; } |
2829 | else |
2830 | { echo "$as_me:$LINENO: result: no" >&5 |
2831 | echo "${ECHO_T}no" >&6; } |
2832 | fi |
2833 | |
2834 | |
2835 | test -n "$CC" && break |
2836 | done |
2837 | fi |
2838 | if test -z "$CC"; then |
2839 | ac_ct_CC=$CC |
2840 | for ac_prog in cl.exe |
2841 | do |
2842 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
2843 | set dummy $ac_prog; ac_word=$2 |
2844 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
2845 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
2846 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
2847 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2848 | else |
2849 | if test -n "$ac_ct_CC"; then |
2850 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
2851 | else |
2852 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2853 | for as_dir in $PATH |
2854 | do |
2855 | IFS=$as_save_IFS |
2856 | test -z "$as_dir" && as_dir=. |
2857 | for ac_exec_ext in '' $ac_executable_extensions; do |
2858 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
2859 | ac_cv_prog_ac_ct_CC="$ac_prog" |
2860 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
2861 | break 2 |
2862 | fi |
2863 | done |
2864 | done |
2865 | IFS=$as_save_IFS |
2866 | |
2867 | fi |
2868 | fi |
2869 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
2870 | if test -n "$ac_ct_CC"; then |
2871 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
2872 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
2873 | else |
2874 | { echo "$as_me:$LINENO: result: no" >&5 |
2875 | echo "${ECHO_T}no" >&6; } |
2876 | fi |
2877 | |
2878 | |
2879 | test -n "$ac_ct_CC" && break |
2880 | done |
2881 | |
2882 | if test "x$ac_ct_CC" = x; then |
2883 | CC="" |
2884 | else |
2885 | case $cross_compiling:$ac_tool_warned in |
2886 | yes:) |
2887 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
2888 | whose name does not start with the host triplet. If you think this |
2889 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
2890 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
2891 | whose name does not start with the host triplet. If you think this |
2892 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
2893 | ac_tool_warned=yes ;; |
2894 | esac |
2895 | CC=$ac_ct_CC |
2896 | fi |
2897 | fi |
2898 | |
2899 | fi |
2900 | |
2901 | |
2902 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
2903 | See \`config.log' for more details." >&5 |
2904 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
2905 | See \`config.log' for more details." >&2;} |
2906 | { (exit 1); exit 1; }; } |
2907 | |
2908 | # Provide some information about the compiler. |
2909 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
2910 | ac_compiler=`set X $ac_compile; echo $2` |
2911 | { (ac_try="$ac_compiler --version >&5" |
2912 | case "(($ac_try" in |
2913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2914 | *) ac_try_echo=$ac_try;; |
2915 | esac |
2916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2917 | (eval "$ac_compiler --version >&5") 2>&5 |
2918 | ac_status=$? |
2919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2920 | (exit $ac_status); } |
2921 | { (ac_try="$ac_compiler -v >&5" |
2922 | case "(($ac_try" in |
2923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2924 | *) ac_try_echo=$ac_try;; |
2925 | esac |
2926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2927 | (eval "$ac_compiler -v >&5") 2>&5 |
2928 | ac_status=$? |
2929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2930 | (exit $ac_status); } |
2931 | { (ac_try="$ac_compiler -V >&5" |
2932 | case "(($ac_try" in |
2933 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2934 | *) ac_try_echo=$ac_try;; |
2935 | esac |
2936 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2937 | (eval "$ac_compiler -V >&5") 2>&5 |
2938 | ac_status=$? |
2939 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2940 | (exit $ac_status); } |
2941 | |
2942 | cat >conftest.$ac_ext <<_ACEOF |
2943 | /* confdefs.h. */ |
2944 | _ACEOF |
2945 | cat confdefs.h >>conftest.$ac_ext |
2946 | cat >>conftest.$ac_ext <<_ACEOF |
2947 | /* end confdefs.h. */ |
2948 | |
2949 | int |
2950 | main () |
2951 | { |
2952 | |
2953 | ; |
2954 | return 0; |
2955 | } |
2956 | _ACEOF |
2957 | ac_clean_files_save=$ac_clean_files |
2958 | ac_clean_files="$ac_clean_files a.out a.exe b.out" |
2959 | # Try to create an executable without -o first, disregard a.out. |
2960 | # It will help us diagnose broken compilers, and finding out an intuition |
2961 | # of exeext. |
2962 | { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 |
2963 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; } |
2964 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` |
2965 | # |
2966 | # List of possible output files, starting from the most likely. |
2967 | # The algorithm is not robust to junk in `.', hence go to wildcards (a.*) |
2968 | # only as a last resort. b.out is created by i960 compilers. |
2969 | ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out' |
2970 | # |
2971 | # The IRIX 6 linker writes into existing files which may not be |
2972 | # executable, retaining their permissions. Remove them first so a |
2973 | # subsequent execution test works. |
2974 | ac_rmfiles= |
2975 | for ac_file in $ac_files |
2976 | do |
2977 | case $ac_file in |
2978 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
2979 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; |
2980 | esac |
2981 | done |
2982 | rm -f $ac_rmfiles |
2983 | |
2984 | if { (ac_try="$ac_link_default" |
2985 | case "(($ac_try" in |
2986 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
2987 | *) ac_try_echo=$ac_try;; |
2988 | esac |
2989 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
2990 | (eval "$ac_link_default") 2>&5 |
2991 | ac_status=$? |
2992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
2993 | (exit $ac_status); }; then |
2994 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. |
2995 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' |
2996 | # in a Makefile. We should not override ac_cv_exeext if it was cached, |
2997 | # so that the user can short-circuit this test for compilers unknown to |
2998 | # Autoconf. |
2999 | for ac_file in $ac_files |
3000 | do |
3001 | test -f "$ac_file" || continue |
3002 | case $ac_file in |
3003 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) |
3004 | ;; |
3005 | [ab].out ) |
3006 | # We found the default executable, but exeext='' is most |
3007 | # certainly right. |
3008 | break;; |
3009 | *.* ) |
3010 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; |
3011 | then :; else |
3012 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3013 | fi |
3014 | # We set ac_cv_exeext here because the later test for it is not |
3015 | # safe: cross compilers may not add the suffix if given an `-o' |
3016 | # argument, so we may need to know it at that point already. |
3017 | # Even if this section looks crufty: it has the advantage of |
3018 | # actually working. |
3019 | break;; |
3020 | * ) |
3021 | break;; |
3022 | esac |
3023 | done |
3024 | test "$ac_cv_exeext" = no && ac_cv_exeext= |
3025 | |
3026 | else |
3027 | echo "$as_me: failed program was:" >&5 |
3028 | sed 's/^/| /' conftest.$ac_ext >&5 |
3029 | |
3030 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
3031 | See \`config.log' for more details." >&5 |
3032 | echo "$as_me: error: C compiler cannot create executables |
3033 | See \`config.log' for more details." >&2;} |
3034 | { (exit 77); exit 77; }; } |
3035 | fi |
3036 | |
3037 | ac_exeext=$ac_cv_exeext |
3038 | { echo "$as_me:$LINENO: result: $ac_file" >&5 |
3039 | echo "${ECHO_T}$ac_file" >&6; } |
3040 | |
3041 | # Check that the compiler produces executables we can run. If not, either |
3042 | # the compiler is broken, or we cross compile. |
3043 | { echo "$as_me:$LINENO: checking whether the C compiler works" >&5 |
3044 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; } |
3045 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 |
3046 | # If not cross compiling, check that we can run a simple program. |
3047 | if test "$cross_compiling" != yes; then |
3048 | if { ac_try='./$ac_file' |
3049 | { (case "(($ac_try" in |
3050 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3051 | *) ac_try_echo=$ac_try;; |
3052 | esac |
3053 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3054 | (eval "$ac_try") 2>&5 |
3055 | ac_status=$? |
3056 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3057 | (exit $ac_status); }; }; then |
3058 | cross_compiling=no |
3059 | else |
3060 | if test "$cross_compiling" = maybe; then |
3061 | cross_compiling=yes |
3062 | else |
3063 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. |
3064 | If you meant to cross compile, use \`--host'. |
3065 | See \`config.log' for more details." >&5 |
3066 | echo "$as_me: error: cannot run C compiled programs. |
3067 | If you meant to cross compile, use \`--host'. |
3068 | See \`config.log' for more details." >&2;} |
3069 | { (exit 1); exit 1; }; } |
3070 | fi |
3071 | fi |
3072 | fi |
3073 | { echo "$as_me:$LINENO: result: yes" >&5 |
3074 | echo "${ECHO_T}yes" >&6; } |
3075 | |
3076 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
3077 | ac_clean_files=$ac_clean_files_save |
3078 | # Check that the compiler produces executables we can run. If not, either |
3079 | # the compiler is broken, or we cross compile. |
3080 | { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 |
3081 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; } |
3082 | { echo "$as_me:$LINENO: result: $cross_compiling" >&5 |
3083 | echo "${ECHO_T}$cross_compiling" >&6; } |
3084 | |
3085 | { echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
3086 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; } |
3087 | if { (ac_try="$ac_link" |
3088 | case "(($ac_try" in |
3089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3090 | *) ac_try_echo=$ac_try;; |
3091 | esac |
3092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3093 | (eval "$ac_link") 2>&5 |
3094 | ac_status=$? |
3095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3096 | (exit $ac_status); }; then |
3097 | # If both `conftest.exe' and `conftest' are `present' (well, observable) |
3098 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will |
3099 | # work properly (i.e., refer to `conftest.exe'), while it won't with |
3100 | # `rm'. |
3101 | for ac_file in conftest.exe conftest conftest.*; do |
3102 | test -f "$ac_file" || continue |
3103 | case $ac_file in |
3104 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;; |
3105 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` |
3106 | break;; |
3107 | * ) break;; |
3108 | esac |
3109 | done |
3110 | else |
3111 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
3112 | See \`config.log' for more details." >&5 |
3113 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link |
3114 | See \`config.log' for more details." >&2;} |
3115 | { (exit 1); exit 1; }; } |
3116 | fi |
3117 | |
3118 | rm -f conftest$ac_cv_exeext |
3119 | { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 |
3120 | echo "${ECHO_T}$ac_cv_exeext" >&6; } |
3121 | |
3122 | rm -f conftest.$ac_ext |
3123 | EXEEXT=$ac_cv_exeext |
3124 | ac_exeext=$EXEEXT |
3125 | { echo "$as_me:$LINENO: checking for suffix of object files" >&5 |
3126 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; } |
3127 | if test "${ac_cv_objext+set}" = set; then |
3128 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3129 | else |
3130 | cat >conftest.$ac_ext <<_ACEOF |
3131 | /* confdefs.h. */ |
3132 | _ACEOF |
3133 | cat confdefs.h >>conftest.$ac_ext |
3134 | cat >>conftest.$ac_ext <<_ACEOF |
3135 | /* end confdefs.h. */ |
3136 | |
3137 | int |
3138 | main () |
3139 | { |
3140 | |
3141 | ; |
3142 | return 0; |
3143 | } |
3144 | _ACEOF |
3145 | rm -f conftest.o conftest.obj |
3146 | if { (ac_try="$ac_compile" |
3147 | case "(($ac_try" in |
3148 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3149 | *) ac_try_echo=$ac_try;; |
3150 | esac |
3151 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3152 | (eval "$ac_compile") 2>&5 |
3153 | ac_status=$? |
3154 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3155 | (exit $ac_status); }; then |
3156 | for ac_file in conftest.o conftest.obj conftest.*; do |
3157 | test -f "$ac_file" || continue; |
3158 | case $ac_file in |
3159 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;; |
3160 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` |
3161 | break;; |
3162 | esac |
3163 | done |
3164 | else |
3165 | echo "$as_me: failed program was:" >&5 |
3166 | sed 's/^/| /' conftest.$ac_ext >&5 |
3167 | |
3168 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
3169 | See \`config.log' for more details." >&5 |
3170 | echo "$as_me: error: cannot compute suffix of object files: cannot compile |
3171 | See \`config.log' for more details." >&2;} |
3172 | { (exit 1); exit 1; }; } |
3173 | fi |
3174 | |
3175 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
3176 | fi |
3177 | { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
3178 | echo "${ECHO_T}$ac_cv_objext" >&6; } |
3179 | OBJEXT=$ac_cv_objext |
3180 | ac_objext=$OBJEXT |
3181 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
3182 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
3183 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
3184 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3185 | else |
3186 | cat >conftest.$ac_ext <<_ACEOF |
3187 | /* confdefs.h. */ |
3188 | _ACEOF |
3189 | cat confdefs.h >>conftest.$ac_ext |
3190 | cat >>conftest.$ac_ext <<_ACEOF |
3191 | /* end confdefs.h. */ |
3192 | |
3193 | int |
3194 | main () |
3195 | { |
3196 | #ifndef __GNUC__ |
3197 | choke me |
3198 | #endif |
3199 | |
3200 | ; |
3201 | return 0; |
3202 | } |
3203 | _ACEOF |
3204 | rm -f conftest.$ac_objext |
3205 | if { (ac_try="$ac_compile" |
3206 | case "(($ac_try" in |
3207 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3208 | *) ac_try_echo=$ac_try;; |
3209 | esac |
3210 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3211 | (eval "$ac_compile") 2>conftest.er1 |
3212 | ac_status=$? |
3213 | grep -v '^ *+' conftest.er1 >conftest.err |
3214 | rm -f conftest.er1 |
3215 | cat conftest.err >&5 |
3216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3217 | (exit $ac_status); } && |
3218 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3219 | { (case "(($ac_try" in |
3220 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3221 | *) ac_try_echo=$ac_try;; |
3222 | esac |
3223 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3224 | (eval "$ac_try") 2>&5 |
3225 | ac_status=$? |
3226 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3227 | (exit $ac_status); }; } && |
3228 | { ac_try='test -s conftest.$ac_objext' |
3229 | { (case "(($ac_try" in |
3230 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3231 | *) ac_try_echo=$ac_try;; |
3232 | esac |
3233 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3234 | (eval "$ac_try") 2>&5 |
3235 | ac_status=$? |
3236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3237 | (exit $ac_status); }; }; then |
3238 | ac_compiler_gnu=yes |
3239 | else |
3240 | echo "$as_me: failed program was:" >&5 |
3241 | sed 's/^/| /' conftest.$ac_ext >&5 |
3242 | |
3243 | ac_compiler_gnu=no |
3244 | fi |
3245 | |
3246 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3247 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
3248 | |
3249 | fi |
3250 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
3251 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
3252 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
3253 | ac_test_CFLAGS=${CFLAGS+set} |
3254 | ac_save_CFLAGS=$CFLAGS |
3255 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
3256 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
3257 | if test "${ac_cv_prog_cc_g+set}" = set; then |
3258 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3259 | else |
3260 | ac_save_c_werror_flag=$ac_c_werror_flag |
3261 | ac_c_werror_flag=yes |
3262 | ac_cv_prog_cc_g=no |
3263 | CFLAGS="-g" |
3264 | cat >conftest.$ac_ext <<_ACEOF |
3265 | /* confdefs.h. */ |
3266 | _ACEOF |
3267 | cat confdefs.h >>conftest.$ac_ext |
3268 | cat >>conftest.$ac_ext <<_ACEOF |
3269 | /* end confdefs.h. */ |
3270 | |
3271 | int |
3272 | main () |
3273 | { |
3274 | |
3275 | ; |
3276 | return 0; |
3277 | } |
3278 | _ACEOF |
3279 | rm -f conftest.$ac_objext |
3280 | if { (ac_try="$ac_compile" |
3281 | case "(($ac_try" in |
3282 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3283 | *) ac_try_echo=$ac_try;; |
3284 | esac |
3285 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3286 | (eval "$ac_compile") 2>conftest.er1 |
3287 | ac_status=$? |
3288 | grep -v '^ *+' conftest.er1 >conftest.err |
3289 | rm -f conftest.er1 |
3290 | cat conftest.err >&5 |
3291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3292 | (exit $ac_status); } && |
3293 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3294 | { (case "(($ac_try" in |
3295 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3296 | *) ac_try_echo=$ac_try;; |
3297 | esac |
3298 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3299 | (eval "$ac_try") 2>&5 |
3300 | ac_status=$? |
3301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3302 | (exit $ac_status); }; } && |
3303 | { ac_try='test -s conftest.$ac_objext' |
3304 | { (case "(($ac_try" in |
3305 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3306 | *) ac_try_echo=$ac_try;; |
3307 | esac |
3308 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3309 | (eval "$ac_try") 2>&5 |
3310 | ac_status=$? |
3311 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3312 | (exit $ac_status); }; }; then |
3313 | ac_cv_prog_cc_g=yes |
3314 | else |
3315 | echo "$as_me: failed program was:" >&5 |
3316 | sed 's/^/| /' conftest.$ac_ext >&5 |
3317 | |
3318 | CFLAGS="" |
3319 | cat >conftest.$ac_ext <<_ACEOF |
3320 | /* confdefs.h. */ |
3321 | _ACEOF |
3322 | cat confdefs.h >>conftest.$ac_ext |
3323 | cat >>conftest.$ac_ext <<_ACEOF |
3324 | /* end confdefs.h. */ |
3325 | |
3326 | int |
3327 | main () |
3328 | { |
3329 | |
3330 | ; |
3331 | return 0; |
3332 | } |
3333 | _ACEOF |
3334 | rm -f conftest.$ac_objext |
3335 | if { (ac_try="$ac_compile" |
3336 | case "(($ac_try" in |
3337 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3338 | *) ac_try_echo=$ac_try;; |
3339 | esac |
3340 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3341 | (eval "$ac_compile") 2>conftest.er1 |
3342 | ac_status=$? |
3343 | grep -v '^ *+' conftest.er1 >conftest.err |
3344 | rm -f conftest.er1 |
3345 | cat conftest.err >&5 |
3346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3347 | (exit $ac_status); } && |
3348 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3349 | { (case "(($ac_try" in |
3350 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3351 | *) ac_try_echo=$ac_try;; |
3352 | esac |
3353 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3354 | (eval "$ac_try") 2>&5 |
3355 | ac_status=$? |
3356 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3357 | (exit $ac_status); }; } && |
3358 | { ac_try='test -s conftest.$ac_objext' |
3359 | { (case "(($ac_try" in |
3360 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3361 | *) ac_try_echo=$ac_try;; |
3362 | esac |
3363 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3364 | (eval "$ac_try") 2>&5 |
3365 | ac_status=$? |
3366 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3367 | (exit $ac_status); }; }; then |
3368 | : |
3369 | else |
3370 | echo "$as_me: failed program was:" >&5 |
3371 | sed 's/^/| /' conftest.$ac_ext >&5 |
3372 | |
3373 | ac_c_werror_flag=$ac_save_c_werror_flag |
3374 | CFLAGS="-g" |
3375 | cat >conftest.$ac_ext <<_ACEOF |
3376 | /* confdefs.h. */ |
3377 | _ACEOF |
3378 | cat confdefs.h >>conftest.$ac_ext |
3379 | cat >>conftest.$ac_ext <<_ACEOF |
3380 | /* end confdefs.h. */ |
3381 | |
3382 | int |
3383 | main () |
3384 | { |
3385 | |
3386 | ; |
3387 | return 0; |
3388 | } |
3389 | _ACEOF |
3390 | rm -f conftest.$ac_objext |
3391 | if { (ac_try="$ac_compile" |
3392 | case "(($ac_try" in |
3393 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3394 | *) ac_try_echo=$ac_try;; |
3395 | esac |
3396 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3397 | (eval "$ac_compile") 2>conftest.er1 |
3398 | ac_status=$? |
3399 | grep -v '^ *+' conftest.er1 >conftest.err |
3400 | rm -f conftest.er1 |
3401 | cat conftest.err >&5 |
3402 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3403 | (exit $ac_status); } && |
3404 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3405 | { (case "(($ac_try" in |
3406 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3407 | *) ac_try_echo=$ac_try;; |
3408 | esac |
3409 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3410 | (eval "$ac_try") 2>&5 |
3411 | ac_status=$? |
3412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3413 | (exit $ac_status); }; } && |
3414 | { ac_try='test -s conftest.$ac_objext' |
3415 | { (case "(($ac_try" in |
3416 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3417 | *) ac_try_echo=$ac_try;; |
3418 | esac |
3419 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3420 | (eval "$ac_try") 2>&5 |
3421 | ac_status=$? |
3422 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3423 | (exit $ac_status); }; }; then |
3424 | ac_cv_prog_cc_g=yes |
3425 | else |
3426 | echo "$as_me: failed program was:" >&5 |
3427 | sed 's/^/| /' conftest.$ac_ext >&5 |
3428 | |
3429 | |
3430 | fi |
3431 | |
3432 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3433 | fi |
3434 | |
3435 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3436 | fi |
3437 | |
3438 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
3439 | ac_c_werror_flag=$ac_save_c_werror_flag |
3440 | fi |
3441 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
3442 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
3443 | if test "$ac_test_CFLAGS" = set; then |
3444 | CFLAGS=$ac_save_CFLAGS |
3445 | elif test $ac_cv_prog_cc_g = yes; then |
3446 | if test "$GCC" = yes; then |
3447 | CFLAGS="-g -O2" |
3448 | else |
3449 | CFLAGS="-g" |
3450 | fi |
3451 | else |
3452 | if test "$GCC" = yes; then |
3453 | CFLAGS="-O2" |
3454 | else |
3455 | CFLAGS= |
3456 | fi |
3457 | fi |
3458 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
3459 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
3460 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
3461 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3462 | else |
3463 | ac_cv_prog_cc_c89=no |
3464 | ac_save_CC=$CC |
3465 | cat >conftest.$ac_ext <<_ACEOF |
3466 | /* confdefs.h. */ |
3467 | _ACEOF |
3468 | cat confdefs.h >>conftest.$ac_ext |
3469 | cat >>conftest.$ac_ext <<_ACEOF |
3470 | /* end confdefs.h. */ |
3471 | #include <stdarg.h> |
3472 | #include <stdio.h> |
3473 | #include <sys/types.h> |
3474 | #include <sys/stat.h> |
3475 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
3476 | struct buf { int x; }; |
3477 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
3478 | static char *e (p, i) |
3479 | char **p; |
3480 | int i; |
3481 | { |
3482 | return p[i]; |
3483 | } |
3484 | static char *f (char * (*g) (char **, int), char **p, ...) |
3485 | { |
3486 | char *s; |
3487 | va_list v; |
3488 | va_start (v,p); |
3489 | s = g (p, va_arg (v,int)); |
3490 | va_end (v); |
3491 | return s; |
3492 | } |
3493 | |
3494 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
3495 | function prototypes and stuff, but not '\xHH' hex character constants. |
3496 | These don't provoke an error unfortunately, instead are silently treated |
3497 | as 'x'. The following induces an error, until -std is added to get |
3498 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
3499 | array size at least. It's necessary to write '\x00'==0 to get something |
3500 | that's true only with -std. */ |
3501 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
3502 | |
3503 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
3504 | inside strings and character constants. */ |
3505 | #define FOO(x) 'x' |
3506 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
3507 | |
3508 | int test (int i, double x); |
3509 | struct s1 {int (*f) (int a);}; |
3510 | struct s2 {int (*f) (double a);}; |
3511 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
3512 | int argc; |
3513 | char **argv; |
3514 | int |
3515 | main () |
3516 | { |
3517 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
3518 | ; |
3519 | return 0; |
3520 | } |
3521 | _ACEOF |
3522 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
3523 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
3524 | do |
3525 | CC="$ac_save_CC $ac_arg" |
3526 | rm -f conftest.$ac_objext |
3527 | if { (ac_try="$ac_compile" |
3528 | case "(($ac_try" in |
3529 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3530 | *) ac_try_echo=$ac_try;; |
3531 | esac |
3532 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3533 | (eval "$ac_compile") 2>conftest.er1 |
3534 | ac_status=$? |
3535 | grep -v '^ *+' conftest.er1 >conftest.err |
3536 | rm -f conftest.er1 |
3537 | cat conftest.err >&5 |
3538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3539 | (exit $ac_status); } && |
3540 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
3541 | { (case "(($ac_try" in |
3542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3543 | *) ac_try_echo=$ac_try;; |
3544 | esac |
3545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3546 | (eval "$ac_try") 2>&5 |
3547 | ac_status=$? |
3548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3549 | (exit $ac_status); }; } && |
3550 | { ac_try='test -s conftest.$ac_objext' |
3551 | { (case "(($ac_try" in |
3552 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
3553 | *) ac_try_echo=$ac_try;; |
3554 | esac |
3555 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
3556 | (eval "$ac_try") 2>&5 |
3557 | ac_status=$? |
3558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
3559 | (exit $ac_status); }; }; then |
3560 | ac_cv_prog_cc_c89=$ac_arg |
3561 | else |
3562 | echo "$as_me: failed program was:" >&5 |
3563 | sed 's/^/| /' conftest.$ac_ext >&5 |
3564 | |
3565 | |
3566 | fi |
3567 | |
3568 | rm -f core conftest.err conftest.$ac_objext |
3569 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
3570 | done |
3571 | rm -f conftest.$ac_ext |
3572 | CC=$ac_save_CC |
3573 | |
3574 | fi |
3575 | # AC_CACHE_VAL |
3576 | case "x$ac_cv_prog_cc_c89" in |
3577 | x) |
3578 | { echo "$as_me:$LINENO: result: none needed" >&5 |
3579 | echo "${ECHO_T}none needed" >&6; } ;; |
3580 | xno) |
3581 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
3582 | echo "${ECHO_T}unsupported" >&6; } ;; |
3583 | *) |
3584 | CC="$CC $ac_cv_prog_cc_c89" |
3585 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
3586 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
3587 | esac |
3588 | |
3589 | |
3590 | ac_ext=c |
3591 | ac_cpp='$CPP $CPPFLAGS' |
3592 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
3593 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
3594 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
3595 | |
3596 | depcc="$CC" am_compiler_list= |
3597 | |
3598 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
3599 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
3600 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
3601 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3602 | else |
3603 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
3604 | # We make a subdir and do the tests there. Otherwise we can end up |
3605 | # making bogus files that we don't know about and never remove. For |
3606 | # instance it was reported that on HP-UX the gcc test will end up |
3607 | # making a dummy file named `D' -- because `-MD' means `put the output |
3608 | # in D'. |
3609 | mkdir conftest.dir |
3610 | # Copy depcomp to subdir because otherwise we won't find it if we're |
3611 | # using a relative directory. |
3612 | cp "$am_depcomp" conftest.dir |
3613 | cd conftest.dir |
3614 | # We will build objects and dependencies in a subdirectory because |
3615 | # it helps to detect inapplicable dependency modes. For instance |
3616 | # both Tru64's cc and ICC support -MD to output dependencies as a |
3617 | # side effect of compilation, but ICC will put the dependencies in |
3618 | # the current directory while Tru64 will put them in the object |
3619 | # directory. |
3620 | mkdir sub |
3621 | |
3622 | am_cv_CC_dependencies_compiler_type=none |
3623 | if test "$am_compiler_list" = ""; then |
3624 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
3625 | fi |
3626 | for depmode in $am_compiler_list; do |
3627 | # Setup a source with many dependencies, because some compilers |
3628 | # like to wrap large dependency lists on column 80 (with \), and |
3629 | # we should not choose a depcomp mode which is confused by this. |
3630 | # |
3631 | # We need to recreate these files for each test, as the compiler may |
3632 | # overwrite some of them when testing with obscure command lines. |
3633 | # This happens at least with the AIX C compiler. |
3634 | : > sub/conftest.c |
3635 | for i in 1 2 3 4 5 6; do |
3636 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
3637 | : > sub/conftst$i.h |
3638 | done |
3639 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
3640 | |
3641 | case $depmode in |
3642 | nosideeffect) |
3643 | # after this tag, mechanisms are not by side-effect, so they'll |
3644 | # only be used when explicitly requested |
3645 | if test "x$enable_dependency_tracking" = xyes; then |
3646 | continue |
3647 | else |
3648 | break |
3649 | fi |
3650 | ;; |
3651 | none) break ;; |
3652 | esac |
3653 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
3654 | # mode. It turns out that the SunPro C++ compiler does not properly |
3655 | # handle `-M -o', and we need to detect this. |
3656 | if depmode=$depmode \ |
3657 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
3658 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
3659 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
3660 | >/dev/null 2>conftest.err && |
3661 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
3662 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
3663 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
3664 | # icc doesn't choke on unknown options, it will just issue warnings |
3665 | # (even with -Werror). So we grep stderr for any message |
3666 | # that says an option was ignored. |
3667 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
3668 | am_cv_CC_dependencies_compiler_type=$depmode |
3669 | break |
3670 | fi |
3671 | fi |
3672 | done |
3673 | |
3674 | cd .. |
3675 | rm -rf conftest.dir |
3676 | else |
3677 | am_cv_CC_dependencies_compiler_type=none |
3678 | fi |
3679 | |
3680 | fi |
3681 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
3682 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
3683 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
3684 | |
3685 | |
3686 | |
3687 | if |
3688 | test "x$enable_dependency_tracking" != xno \ |
3689 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
3690 | am__fastdepCC_TRUE= |
3691 | am__fastdepCC_FALSE='#' |
3692 | else |
3693 | am__fastdepCC_TRUE='#' |
3694 | am__fastdepCC_FALSE= |
3695 | fi |
3696 | |
3697 | |
3698 | { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 |
3699 | echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; } |
3700 | if test "${lt_cv_path_SED+set}" = set; then |
3701 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3702 | else |
3703 | # Loop through the user's path and test for sed and gsed. |
3704 | # Then use that list of sed's as ones to test for truncation. |
3705 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3706 | for as_dir in $PATH |
3707 | do |
3708 | IFS=$as_save_IFS |
3709 | test -z "$as_dir" && as_dir=. |
3710 | for lt_ac_prog in sed gsed; do |
3711 | for ac_exec_ext in '' $ac_executable_extensions; do |
3712 | if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then |
3713 | lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" |
3714 | fi |
3715 | done |
3716 | done |
3717 | done |
3718 | lt_ac_max=0 |
3719 | lt_ac_count=0 |
3720 | # Add /usr/xpg4/bin/sed as it is typically found on Solaris |
3721 | # along with /bin/sed that truncates output. |
3722 | for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do |
3723 | test ! -f $lt_ac_sed && continue |
3724 | cat /dev/null > conftest.in |
3725 | lt_ac_count=0 |
3726 | echo $ECHO_N "0123456789$ECHO_C" >conftest.in |
3727 | # Check for GNU sed and select it if it is found. |
3728 | if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then |
3729 | lt_cv_path_SED=$lt_ac_sed |
3730 | break |
3731 | fi |
3732 | while true; do |
3733 | cat conftest.in conftest.in >conftest.tmp |
3734 | mv conftest.tmp conftest.in |
3735 | cp conftest.in conftest.nl |
3736 | echo >>conftest.nl |
3737 | $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break |
3738 | cmp -s conftest.out conftest.nl || break |
3739 | # 10000 chars as input seems more than enough |
3740 | test $lt_ac_count -gt 10 && break |
3741 | lt_ac_count=`expr $lt_ac_count + 1` |
3742 | if test $lt_ac_count -gt $lt_ac_max; then |
3743 | lt_ac_max=$lt_ac_count |
3744 | lt_cv_path_SED=$lt_ac_sed |
3745 | fi |
3746 | done |
3747 | done |
3748 | |
3749 | fi |
3750 | |
3751 | SED=$lt_cv_path_SED |
3752 | { echo "$as_me:$LINENO: result: $SED" >&5 |
3753 | echo "${ECHO_T}$SED" >&6; } |
3754 | |
3755 | { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5 |
3756 | echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; } |
3757 | if test "${ac_cv_path_GREP+set}" = set; then |
3758 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3759 | else |
3760 | # Extract the first word of "grep ggrep" to use in msg output |
3761 | if test -z "$GREP"; then |
3762 | set dummy grep ggrep; ac_prog_name=$2 |
3763 | if test "${ac_cv_path_GREP+set}" = set; then |
3764 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3765 | else |
3766 | ac_path_GREP_found=false |
3767 | # Loop through the user's path and test for each of PROGNAME-LIST |
3768 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3769 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3770 | do |
3771 | IFS=$as_save_IFS |
3772 | test -z "$as_dir" && as_dir=. |
3773 | for ac_prog in grep ggrep; do |
3774 | for ac_exec_ext in '' $ac_executable_extensions; do |
3775 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" |
3776 | { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue |
3777 | # Check for GNU ac_path_GREP and select it if it is found. |
3778 | # Check for GNU $ac_path_GREP |
3779 | case `"$ac_path_GREP" --version 2>&1` in |
3780 | *GNU*) |
3781 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; |
3782 | *) |
3783 | ac_count=0 |
3784 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3785 | while : |
3786 | do |
3787 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3788 | mv "conftest.tmp" "conftest.in" |
3789 | cp "conftest.in" "conftest.nl" |
3790 | echo 'GREP' >> "conftest.nl" |
3791 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3792 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3793 | ac_count=`expr $ac_count + 1` |
3794 | if test $ac_count -gt ${ac_path_GREP_max-0}; then |
3795 | # Best one so far, save it but keep looking for a better one |
3796 | ac_cv_path_GREP="$ac_path_GREP" |
3797 | ac_path_GREP_max=$ac_count |
3798 | fi |
3799 | # 10*(2^10) chars as input seems more than enough |
3800 | test $ac_count -gt 10 && break |
3801 | done |
3802 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3803 | esac |
3804 | |
3805 | |
3806 | $ac_path_GREP_found && break 3 |
3807 | done |
3808 | done |
3809 | |
3810 | done |
3811 | IFS=$as_save_IFS |
3812 | |
3813 | |
3814 | fi |
3815 | |
3816 | GREP="$ac_cv_path_GREP" |
3817 | if test -z "$GREP"; then |
3818 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3819 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3820 | { (exit 1); exit 1; }; } |
3821 | fi |
3822 | |
3823 | else |
3824 | ac_cv_path_GREP=$GREP |
3825 | fi |
3826 | |
3827 | |
3828 | fi |
3829 | { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5 |
3830 | echo "${ECHO_T}$ac_cv_path_GREP" >&6; } |
3831 | GREP="$ac_cv_path_GREP" |
3832 | |
3833 | |
3834 | { echo "$as_me:$LINENO: checking for egrep" >&5 |
3835 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6; } |
3836 | if test "${ac_cv_path_EGREP+set}" = set; then |
3837 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3838 | else |
3839 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 |
3840 | then ac_cv_path_EGREP="$GREP -E" |
3841 | else |
3842 | # Extract the first word of "egrep" to use in msg output |
3843 | if test -z "$EGREP"; then |
3844 | set dummy egrep; ac_prog_name=$2 |
3845 | if test "${ac_cv_path_EGREP+set}" = set; then |
3846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3847 | else |
3848 | ac_path_EGREP_found=false |
3849 | # Loop through the user's path and test for each of PROGNAME-LIST |
3850 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
3851 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin |
3852 | do |
3853 | IFS=$as_save_IFS |
3854 | test -z "$as_dir" && as_dir=. |
3855 | for ac_prog in egrep; do |
3856 | for ac_exec_ext in '' $ac_executable_extensions; do |
3857 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" |
3858 | { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue |
3859 | # Check for GNU ac_path_EGREP and select it if it is found. |
3860 | # Check for GNU $ac_path_EGREP |
3861 | case `"$ac_path_EGREP" --version 2>&1` in |
3862 | *GNU*) |
3863 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; |
3864 | *) |
3865 | ac_count=0 |
3866 | echo $ECHO_N "0123456789$ECHO_C" >"conftest.in" |
3867 | while : |
3868 | do |
3869 | cat "conftest.in" "conftest.in" >"conftest.tmp" |
3870 | mv "conftest.tmp" "conftest.in" |
3871 | cp "conftest.in" "conftest.nl" |
3872 | echo 'EGREP' >> "conftest.nl" |
3873 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break |
3874 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break |
3875 | ac_count=`expr $ac_count + 1` |
3876 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then |
3877 | # Best one so far, save it but keep looking for a better one |
3878 | ac_cv_path_EGREP="$ac_path_EGREP" |
3879 | ac_path_EGREP_max=$ac_count |
3880 | fi |
3881 | # 10*(2^10) chars as input seems more than enough |
3882 | test $ac_count -gt 10 && break |
3883 | done |
3884 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; |
3885 | esac |
3886 | |
3887 | |
3888 | $ac_path_EGREP_found && break 3 |
3889 | done |
3890 | done |
3891 | |
3892 | done |
3893 | IFS=$as_save_IFS |
3894 | |
3895 | |
3896 | fi |
3897 | |
3898 | EGREP="$ac_cv_path_EGREP" |
3899 | if test -z "$EGREP"; then |
3900 | { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5 |
3901 | echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;} |
3902 | { (exit 1); exit 1; }; } |
3903 | fi |
3904 | |
3905 | else |
3906 | ac_cv_path_EGREP=$EGREP |
3907 | fi |
3908 | |
3909 | |
3910 | fi |
3911 | fi |
3912 | { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5 |
3913 | echo "${ECHO_T}$ac_cv_path_EGREP" >&6; } |
3914 | EGREP="$ac_cv_path_EGREP" |
3915 | |
3916 | |
3917 | |
3918 | # Check whether --with-gnu-ld was given. |
3919 | if test "${with_gnu_ld+set}" = set; then |
3920 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
3921 | else |
3922 | with_gnu_ld=no |
3923 | fi |
3924 | |
3925 | ac_prog=ld |
3926 | if test "$GCC" = yes; then |
3927 | # Check if gcc -print-prog-name=ld gives a path. |
3928 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
3929 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
3930 | case $host in |
3931 | *-*-mingw*) |
3932 | # gcc leaves a trailing carriage return which upsets mingw |
3933 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
3934 | *) |
3935 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
3936 | esac |
3937 | case $ac_prog in |
3938 | # Accept absolute paths. |
3939 | [\\/]* | ?:[\\/]*) |
3940 | re_direlt='/[^/][^/]*/\.\./' |
3941 | # Canonicalize the pathname of ld |
3942 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
3943 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
3944 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
3945 | done |
3946 | test -z "$LD" && LD="$ac_prog" |
3947 | ;; |
3948 | "") |
3949 | # If it fails, then pretend we aren't using GCC. |
3950 | ac_prog=ld |
3951 | ;; |
3952 | *) |
3953 | # If it is relative, then search for the first ld in PATH. |
3954 | with_gnu_ld=unknown |
3955 | ;; |
3956 | esac |
3957 | elif test "$with_gnu_ld" = yes; then |
3958 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
3959 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
3960 | else |
3961 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
3962 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
3963 | fi |
3964 | if test "${lt_cv_path_LD+set}" = set; then |
3965 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3966 | else |
3967 | if test -z "$LD"; then |
3968 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
3969 | for ac_dir in $PATH; do |
3970 | IFS="$lt_save_ifs" |
3971 | test -z "$ac_dir" && ac_dir=. |
3972 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
3973 | lt_cv_path_LD="$ac_dir/$ac_prog" |
3974 | # Check to see if the program is GNU ld. I'd rather use --version, |
3975 | # but apparently some variants of GNU ld only accept -v. |
3976 | # Break only if it was the GNU/non-GNU ld that we prefer. |
3977 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
3978 | *GNU* | *'with BFD'*) |
3979 | test "$with_gnu_ld" != no && break |
3980 | ;; |
3981 | *) |
3982 | test "$with_gnu_ld" != yes && break |
3983 | ;; |
3984 | esac |
3985 | fi |
3986 | done |
3987 | IFS="$lt_save_ifs" |
3988 | else |
3989 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
3990 | fi |
3991 | fi |
3992 | |
3993 | LD="$lt_cv_path_LD" |
3994 | if test -n "$LD"; then |
3995 | { echo "$as_me:$LINENO: result: $LD" >&5 |
3996 | echo "${ECHO_T}$LD" >&6; } |
3997 | else |
3998 | { echo "$as_me:$LINENO: result: no" >&5 |
3999 | echo "${ECHO_T}no" >&6; } |
4000 | fi |
4001 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
4002 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
4003 | { (exit 1); exit 1; }; } |
4004 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
4005 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
4006 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
4007 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4008 | else |
4009 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
4010 | case `$LD -v 2>&1 </dev/null` in |
4011 | *GNU* | *'with BFD'*) |
4012 | lt_cv_prog_gnu_ld=yes |
4013 | ;; |
4014 | *) |
4015 | lt_cv_prog_gnu_ld=no |
4016 | ;; |
4017 | esac |
4018 | fi |
4019 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
4020 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
4021 | with_gnu_ld=$lt_cv_prog_gnu_ld |
4022 | |
4023 | |
4024 | { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 |
4025 | echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; } |
4026 | if test "${lt_cv_ld_reload_flag+set}" = set; then |
4027 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4028 | else |
4029 | lt_cv_ld_reload_flag='-r' |
4030 | fi |
4031 | { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 |
4032 | echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; } |
4033 | reload_flag=$lt_cv_ld_reload_flag |
4034 | case $reload_flag in |
4035 | "" | " "*) ;; |
4036 | *) reload_flag=" $reload_flag" ;; |
4037 | esac |
4038 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4039 | case $host_os in |
4040 | darwin*) |
4041 | if test "$GCC" = yes; then |
4042 | reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' |
4043 | else |
4044 | reload_cmds='$LD$reload_flag -o $output$reload_objs' |
4045 | fi |
4046 | ;; |
4047 | esac |
4048 | |
4049 | { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 |
4050 | echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; } |
4051 | if test "${lt_cv_path_NM+set}" = set; then |
4052 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4053 | else |
4054 | if test -n "$NM"; then |
4055 | # Let the user override the test. |
4056 | lt_cv_path_NM="$NM" |
4057 | else |
4058 | lt_nm_to_check="${ac_tool_prefix}nm" |
4059 | if test -n "$ac_tool_prefix" && test "$build" = "$host"; then |
4060 | lt_nm_to_check="$lt_nm_to_check nm" |
4061 | fi |
4062 | for lt_tmp_nm in $lt_nm_to_check; do |
4063 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
4064 | for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do |
4065 | IFS="$lt_save_ifs" |
4066 | test -z "$ac_dir" && ac_dir=. |
4067 | tmp_nm="$ac_dir/$lt_tmp_nm" |
4068 | if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then |
4069 | # Check to see if the nm accepts a BSD-compat flag. |
4070 | # Adding the `sed 1q' prevents false positives on HP-UX, which says: |
4071 | # nm: unknown option "B" ignored |
4072 | # Tru64's nm complains that /dev/null is an invalid object file |
4073 | case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in |
4074 | */dev/null* | *'Invalid file or object type'*) |
4075 | lt_cv_path_NM="$tmp_nm -B" |
4076 | break |
4077 | ;; |
4078 | *) |
4079 | case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in |
4080 | */dev/null*) |
4081 | lt_cv_path_NM="$tmp_nm -p" |
4082 | break |
4083 | ;; |
4084 | *) |
4085 | lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but |
4086 | continue # so that we can try to find one that supports BSD flags |
4087 | ;; |
4088 | esac |
4089 | ;; |
4090 | esac |
4091 | fi |
4092 | done |
4093 | IFS="$lt_save_ifs" |
4094 | done |
4095 | test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm |
4096 | fi |
4097 | fi |
4098 | { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 |
4099 | echo "${ECHO_T}$lt_cv_path_NM" >&6; } |
4100 | NM="$lt_cv_path_NM" |
4101 | |
4102 | { echo "$as_me:$LINENO: checking whether ln -s works" >&5 |
4103 | echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; } |
4104 | LN_S=$as_ln_s |
4105 | if test "$LN_S" = "ln -s"; then |
4106 | { echo "$as_me:$LINENO: result: yes" >&5 |
4107 | echo "${ECHO_T}yes" >&6; } |
4108 | else |
4109 | { echo "$as_me:$LINENO: result: no, using $LN_S" >&5 |
4110 | echo "${ECHO_T}no, using $LN_S" >&6; } |
4111 | fi |
4112 | |
4113 | { echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 |
4114 | echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6; } |
4115 | if test "${lt_cv_deplibs_check_method+set}" = set; then |
4116 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4117 | else |
4118 | lt_cv_file_magic_cmd='$MAGIC_CMD' |
4119 | lt_cv_file_magic_test_file= |
4120 | lt_cv_deplibs_check_method='unknown' |
4121 | # Need to set the preceding variable on all platforms that support |
4122 | # interlibrary dependencies. |
4123 | # 'none' -- dependencies not supported. |
4124 | # `unknown' -- same as none, but documents that we really don't know. |
4125 | # 'pass_all' -- all dependencies passed with no checks. |
4126 | # 'test_compile' -- check by making test program. |
4127 | # 'file_magic [[regex]]' -- check by looking for files in library path |
4128 | # which responds to the $file_magic_cmd with a given extended regex. |
4129 | # If you have `file' or equivalent on your system and you're not sure |
4130 | # whether `pass_all' will *always* work, you probably want this one. |
4131 | |
4132 | case $host_os in |
4133 | aix4* | aix5*) |
4134 | lt_cv_deplibs_check_method=pass_all |
4135 | ;; |
4136 | |
4137 | beos*) |
4138 | lt_cv_deplibs_check_method=pass_all |
4139 | ;; |
4140 | |
4141 | bsdi[45]*) |
4142 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' |
4143 | lt_cv_file_magic_cmd='/usr/bin/file -L' |
4144 | lt_cv_file_magic_test_file=/shlib/libc.so |
4145 | ;; |
4146 | |
4147 | cygwin*) |
4148 | # func_win32_libid is a shell function defined in ltmain.sh |
4149 | lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' |
4150 | lt_cv_file_magic_cmd='func_win32_libid' |
4151 | ;; |
4152 | |
4153 | mingw* | pw32*) |
4154 | # Base MSYS/MinGW do not provide the 'file' command needed by |
4155 | # func_win32_libid shell function, so use a weaker test based on 'objdump'. |
4156 | lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' |
4157 | lt_cv_file_magic_cmd='$OBJDUMP -f' |
4158 | ;; |
4159 | |
4160 | darwin* | rhapsody*) |
4161 | lt_cv_deplibs_check_method=pass_all |
4162 | ;; |
4163 | |
4164 | freebsd* | dragonfly*) |
4165 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4166 | case $host_cpu in |
4167 | i*86 ) |
4168 | # Not sure whether the presence of OpenBSD here was a mistake. |
4169 | # Let's accept both of them until this is cleared up. |
4170 | lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' |
4171 | lt_cv_file_magic_cmd=/usr/bin/file |
4172 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` |
4173 | ;; |
4174 | esac |
4175 | else |
4176 | lt_cv_deplibs_check_method=pass_all |
4177 | fi |
4178 | ;; |
4179 | |
4180 | gnu*) |
4181 | lt_cv_deplibs_check_method=pass_all |
4182 | ;; |
4183 | |
4184 | hpux10.20* | hpux11*) |
4185 | lt_cv_file_magic_cmd=/usr/bin/file |
4186 | case $host_cpu in |
4187 | ia64*) |
4188 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' |
4189 | lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so |
4190 | ;; |
4191 | hppa*64*) |
4192 | 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]' |
4193 | lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl |
4194 | ;; |
4195 | *) |
4196 | lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' |
4197 | lt_cv_file_magic_test_file=/usr/lib/libc.sl |
4198 | ;; |
4199 | esac |
4200 | ;; |
4201 | |
4202 | interix3*) |
4203 | # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here |
4204 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' |
4205 | ;; |
4206 | |
4207 | irix5* | irix6* | nonstopux*) |
4208 | case $LD in |
4209 | *-32|*"-32 ") libmagic=32-bit;; |
4210 | *-n32|*"-n32 ") libmagic=N32;; |
4211 | *-64|*"-64 ") libmagic=64-bit;; |
4212 | *) libmagic=never-match;; |
4213 | esac |
4214 | lt_cv_deplibs_check_method=pass_all |
4215 | ;; |
4216 | |
4217 | # This must be Linux ELF. |
4218 | linux* | k*bsd*-gnu) |
4219 | lt_cv_deplibs_check_method=pass_all |
4220 | ;; |
4221 | |
4222 | netbsd* | netbsdelf*-gnu) |
4223 | if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then |
4224 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4225 | else |
4226 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' |
4227 | fi |
4228 | ;; |
4229 | |
4230 | newos6*) |
4231 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' |
4232 | lt_cv_file_magic_cmd=/usr/bin/file |
4233 | lt_cv_file_magic_test_file=/usr/lib/libnls.so |
4234 | ;; |
4235 | |
4236 | nto-qnx*) |
4237 | lt_cv_deplibs_check_method=unknown |
4238 | ;; |
4239 | |
4240 | openbsd*) |
4241 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
4242 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' |
4243 | else |
4244 | lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' |
4245 | fi |
4246 | ;; |
4247 | |
4248 | osf3* | osf4* | osf5*) |
4249 | lt_cv_deplibs_check_method=pass_all |
4250 | ;; |
4251 | |
4252 | solaris*) |
4253 | lt_cv_deplibs_check_method=pass_all |
4254 | ;; |
4255 | |
4256 | sysv4 | sysv4.3*) |
4257 | case $host_vendor in |
4258 | motorola) |
4259 | 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]' |
4260 | lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` |
4261 | ;; |
4262 | ncr) |
4263 | lt_cv_deplibs_check_method=pass_all |
4264 | ;; |
4265 | sequent) |
4266 | lt_cv_file_magic_cmd='/bin/file' |
4267 | lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' |
4268 | ;; |
4269 | sni) |
4270 | lt_cv_file_magic_cmd='/bin/file' |
4271 | lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" |
4272 | lt_cv_file_magic_test_file=/lib/libc.so |
4273 | ;; |
4274 | siemens) |
4275 | lt_cv_deplibs_check_method=pass_all |
4276 | ;; |
4277 | pc) |
4278 | lt_cv_deplibs_check_method=pass_all |
4279 | ;; |
4280 | esac |
4281 | ;; |
4282 | |
4283 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
4284 | lt_cv_deplibs_check_method=pass_all |
4285 | ;; |
4286 | esac |
4287 | |
4288 | fi |
4289 | { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 |
4290 | echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; } |
4291 | file_magic_cmd=$lt_cv_file_magic_cmd |
4292 | deplibs_check_method=$lt_cv_deplibs_check_method |
4293 | test -z "$deplibs_check_method" && deplibs_check_method=unknown |
4294 | |
4295 | |
4296 | |
4297 | |
4298 | # If no C compiler was specified, use CC. |
4299 | LTCC=${LTCC-"$CC"} |
4300 | |
4301 | # If no C compiler flags were specified, use CFLAGS. |
4302 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
4303 | |
4304 | # Allow CC to be a program name with arguments. |
4305 | compiler=$CC |
4306 | |
4307 | |
4308 | # Check whether --enable-libtool-lock was given. |
4309 | if test "${enable_libtool_lock+set}" = set; then |
4310 | enableval=$enable_libtool_lock; |
4311 | fi |
4312 | |
4313 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
4314 | |
4315 | # Some flags need to be propagated to the compiler or linker for good |
4316 | # libtool support. |
4317 | case $host in |
4318 | ia64-*-hpux*) |
4319 | # Find out which ABI we are using. |
4320 | echo 'int i;' > conftest.$ac_ext |
4321 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4322 | (eval $ac_compile) 2>&5 |
4323 | ac_status=$? |
4324 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4325 | (exit $ac_status); }; then |
4326 | case `/usr/bin/file conftest.$ac_objext` in |
4327 | *ELF-32*) |
4328 | HPUX_IA64_MODE="32" |
4329 | ;; |
4330 | *ELF-64*) |
4331 | HPUX_IA64_MODE="64" |
4332 | ;; |
4333 | esac |
4334 | fi |
4335 | rm -rf conftest* |
4336 | ;; |
4337 | *-*-irix6*) |
4338 | # Find out which ABI we are using. |
4339 | echo '#line 4339 "configure"' > conftest.$ac_ext |
4340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4341 | (eval $ac_compile) 2>&5 |
4342 | ac_status=$? |
4343 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4344 | (exit $ac_status); }; then |
4345 | if test "$lt_cv_prog_gnu_ld" = yes; then |
4346 | case `/usr/bin/file conftest.$ac_objext` in |
4347 | *32-bit*) |
4348 | LD="${LD-ld} -melf32bsmip" |
4349 | ;; |
4350 | *N32*) |
4351 | LD="${LD-ld} -melf32bmipn32" |
4352 | ;; |
4353 | *64-bit*) |
4354 | LD="${LD-ld} -melf64bmip" |
4355 | ;; |
4356 | esac |
4357 | else |
4358 | case `/usr/bin/file conftest.$ac_objext` in |
4359 | *32-bit*) |
4360 | LD="${LD-ld} -32" |
4361 | ;; |
4362 | *N32*) |
4363 | LD="${LD-ld} -n32" |
4364 | ;; |
4365 | *64-bit*) |
4366 | LD="${LD-ld} -64" |
4367 | ;; |
4368 | esac |
4369 | fi |
4370 | fi |
4371 | rm -rf conftest* |
4372 | ;; |
4373 | |
4374 | x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) |
4375 | # Find out which ABI we are using. |
4376 | echo 'int i;' > conftest.$ac_ext |
4377 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4378 | (eval $ac_compile) 2>&5 |
4379 | ac_status=$? |
4380 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4381 | (exit $ac_status); }; then |
4382 | case `/usr/bin/file conftest.o` in |
4383 | *32-bit*) |
4384 | case $host in |
4385 | x86_64-*linux*) |
4386 | LD="${LD-ld} -m elf_i386" |
4387 | ;; |
4388 | ppc64-*linux*|powerpc64-*linux*) |
4389 | LD="${LD-ld} -m elf32ppclinux" |
4390 | ;; |
4391 | s390x-*linux*) |
4392 | LD="${LD-ld} -m elf_s390" |
4393 | ;; |
4394 | sparc64-*linux*) |
4395 | LD="${LD-ld} -m elf32_sparc" |
4396 | ;; |
4397 | esac |
4398 | ;; |
4399 | *64-bit*) |
4400 | case $host in |
4401 | x86_64-*linux*) |
4402 | LD="${LD-ld} -m elf_x86_64" |
4403 | ;; |
4404 | ppc*-*linux*|powerpc*-*linux*) |
4405 | LD="${LD-ld} -m elf64ppc" |
4406 | ;; |
4407 | s390*-*linux*) |
4408 | LD="${LD-ld} -m elf64_s390" |
4409 | ;; |
4410 | sparc*-*linux*) |
4411 | LD="${LD-ld} -m elf64_sparc" |
4412 | ;; |
4413 | esac |
4414 | ;; |
4415 | esac |
4416 | fi |
4417 | rm -rf conftest* |
4418 | ;; |
4419 | |
4420 | *-*-sco3.2v5*) |
4421 | # On SCO OpenServer 5, we need -belf to get full-featured binaries. |
4422 | SAVE_CFLAGS="$CFLAGS" |
4423 | CFLAGS="$CFLAGS -belf" |
4424 | { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 |
4425 | echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; } |
4426 | if test "${lt_cv_cc_needs_belf+set}" = set; then |
4427 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4428 | else |
4429 | ac_ext=c |
4430 | ac_cpp='$CPP $CPPFLAGS' |
4431 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4432 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4433 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4434 | |
4435 | cat >conftest.$ac_ext <<_ACEOF |
4436 | /* confdefs.h. */ |
4437 | _ACEOF |
4438 | cat confdefs.h >>conftest.$ac_ext |
4439 | cat >>conftest.$ac_ext <<_ACEOF |
4440 | /* end confdefs.h. */ |
4441 | |
4442 | int |
4443 | main () |
4444 | { |
4445 | |
4446 | ; |
4447 | return 0; |
4448 | } |
4449 | _ACEOF |
4450 | rm -f conftest.$ac_objext conftest$ac_exeext |
4451 | if { (ac_try="$ac_link" |
4452 | case "(($ac_try" in |
4453 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4454 | *) ac_try_echo=$ac_try;; |
4455 | esac |
4456 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4457 | (eval "$ac_link") 2>conftest.er1 |
4458 | ac_status=$? |
4459 | grep -v '^ *+' conftest.er1 >conftest.err |
4460 | rm -f conftest.er1 |
4461 | cat conftest.err >&5 |
4462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4463 | (exit $ac_status); } && |
4464 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4465 | { (case "(($ac_try" in |
4466 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4467 | *) ac_try_echo=$ac_try;; |
4468 | esac |
4469 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4470 | (eval "$ac_try") 2>&5 |
4471 | ac_status=$? |
4472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4473 | (exit $ac_status); }; } && |
4474 | { ac_try='test -s conftest$ac_exeext' |
4475 | { (case "(($ac_try" in |
4476 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4477 | *) ac_try_echo=$ac_try;; |
4478 | esac |
4479 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4480 | (eval "$ac_try") 2>&5 |
4481 | ac_status=$? |
4482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4483 | (exit $ac_status); }; }; then |
4484 | lt_cv_cc_needs_belf=yes |
4485 | else |
4486 | echo "$as_me: failed program was:" >&5 |
4487 | sed 's/^/| /' conftest.$ac_ext >&5 |
4488 | |
4489 | lt_cv_cc_needs_belf=no |
4490 | fi |
4491 | |
4492 | rm -f core conftest.err conftest.$ac_objext \ |
4493 | conftest$ac_exeext conftest.$ac_ext |
4494 | ac_ext=c |
4495 | ac_cpp='$CPP $CPPFLAGS' |
4496 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4497 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4498 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4499 | |
4500 | fi |
4501 | { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 |
4502 | echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; } |
4503 | if test x"$lt_cv_cc_needs_belf" != x"yes"; then |
4504 | # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf |
4505 | CFLAGS="$SAVE_CFLAGS" |
4506 | fi |
4507 | ;; |
4508 | sparc*-*solaris*) |
4509 | # Find out which ABI we are using. |
4510 | echo 'int i;' > conftest.$ac_ext |
4511 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
4512 | (eval $ac_compile) 2>&5 |
4513 | ac_status=$? |
4514 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4515 | (exit $ac_status); }; then |
4516 | case `/usr/bin/file conftest.o` in |
4517 | *64-bit*) |
4518 | case $lt_cv_prog_gnu_ld in |
4519 | yes*) LD="${LD-ld} -m elf64_sparc" ;; |
4520 | *) LD="${LD-ld} -64" ;; |
4521 | esac |
4522 | ;; |
4523 | esac |
4524 | fi |
4525 | rm -rf conftest* |
4526 | ;; |
4527 | |
4528 | |
4529 | esac |
4530 | |
4531 | need_locks="$enable_libtool_lock" |
4532 | |
4533 | |
4534 | ac_ext=c |
4535 | ac_cpp='$CPP $CPPFLAGS' |
4536 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4537 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4538 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4539 | { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 |
4540 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; } |
4541 | # On Suns, sometimes $CPP names a directory. |
4542 | if test -n "$CPP" && test -d "$CPP"; then |
4543 | CPP= |
4544 | fi |
4545 | if test -z "$CPP"; then |
4546 | if test "${ac_cv_prog_CPP+set}" = set; then |
4547 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4548 | else |
4549 | # Double quotes because CPP needs to be expanded |
4550 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" |
4551 | do |
4552 | ac_preproc_ok=false |
4553 | for ac_c_preproc_warn_flag in '' yes |
4554 | do |
4555 | # Use a header file that comes with gcc, so configuring glibc |
4556 | # with a fresh cross-compiler works. |
4557 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4558 | # <limits.h> exists even on freestanding compilers. |
4559 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4560 | # not just through cpp. "Syntax error" is here to catch this case. |
4561 | cat >conftest.$ac_ext <<_ACEOF |
4562 | /* confdefs.h. */ |
4563 | _ACEOF |
4564 | cat confdefs.h >>conftest.$ac_ext |
4565 | cat >>conftest.$ac_ext <<_ACEOF |
4566 | /* end confdefs.h. */ |
4567 | #ifdef __STDC__ |
4568 | # include <limits.h> |
4569 | #else |
4570 | # include <assert.h> |
4571 | #endif |
4572 | Syntax error |
4573 | _ACEOF |
4574 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4575 | case "(($ac_try" in |
4576 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4577 | *) ac_try_echo=$ac_try;; |
4578 | esac |
4579 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4580 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4581 | ac_status=$? |
4582 | grep -v '^ *+' conftest.er1 >conftest.err |
4583 | rm -f conftest.er1 |
4584 | cat conftest.err >&5 |
4585 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4586 | (exit $ac_status); } >/dev/null; then |
4587 | if test -s conftest.err; then |
4588 | ac_cpp_err=$ac_c_preproc_warn_flag |
4589 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4590 | else |
4591 | ac_cpp_err= |
4592 | fi |
4593 | else |
4594 | ac_cpp_err=yes |
4595 | fi |
4596 | if test -z "$ac_cpp_err"; then |
4597 | : |
4598 | else |
4599 | echo "$as_me: failed program was:" >&5 |
4600 | sed 's/^/| /' conftest.$ac_ext >&5 |
4601 | |
4602 | # Broken: fails on valid input. |
4603 | continue |
4604 | fi |
4605 | |
4606 | rm -f conftest.err conftest.$ac_ext |
4607 | |
4608 | # OK, works on sane cases. Now check whether nonexistent headers |
4609 | # can be detected and how. |
4610 | cat >conftest.$ac_ext <<_ACEOF |
4611 | /* confdefs.h. */ |
4612 | _ACEOF |
4613 | cat confdefs.h >>conftest.$ac_ext |
4614 | cat >>conftest.$ac_ext <<_ACEOF |
4615 | /* end confdefs.h. */ |
4616 | #include <ac_nonexistent.h> |
4617 | _ACEOF |
4618 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4619 | case "(($ac_try" in |
4620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4621 | *) ac_try_echo=$ac_try;; |
4622 | esac |
4623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4624 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4625 | ac_status=$? |
4626 | grep -v '^ *+' conftest.er1 >conftest.err |
4627 | rm -f conftest.er1 |
4628 | cat conftest.err >&5 |
4629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4630 | (exit $ac_status); } >/dev/null; then |
4631 | if test -s conftest.err; then |
4632 | ac_cpp_err=$ac_c_preproc_warn_flag |
4633 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4634 | else |
4635 | ac_cpp_err= |
4636 | fi |
4637 | else |
4638 | ac_cpp_err=yes |
4639 | fi |
4640 | if test -z "$ac_cpp_err"; then |
4641 | # Broken: success on invalid input. |
4642 | continue |
4643 | else |
4644 | echo "$as_me: failed program was:" >&5 |
4645 | sed 's/^/| /' conftest.$ac_ext >&5 |
4646 | |
4647 | # Passes both tests. |
4648 | ac_preproc_ok=: |
4649 | break |
4650 | fi |
4651 | |
4652 | rm -f conftest.err conftest.$ac_ext |
4653 | |
4654 | done |
4655 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4656 | rm -f conftest.err conftest.$ac_ext |
4657 | if $ac_preproc_ok; then |
4658 | break |
4659 | fi |
4660 | |
4661 | done |
4662 | ac_cv_prog_CPP=$CPP |
4663 | |
4664 | fi |
4665 | CPP=$ac_cv_prog_CPP |
4666 | else |
4667 | ac_cv_prog_CPP=$CPP |
4668 | fi |
4669 | { echo "$as_me:$LINENO: result: $CPP" >&5 |
4670 | echo "${ECHO_T}$CPP" >&6; } |
4671 | ac_preproc_ok=false |
4672 | for ac_c_preproc_warn_flag in '' yes |
4673 | do |
4674 | # Use a header file that comes with gcc, so configuring glibc |
4675 | # with a fresh cross-compiler works. |
4676 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
4677 | # <limits.h> exists even on freestanding compilers. |
4678 | # On the NeXT, cc -E runs the code through the compiler's parser, |
4679 | # not just through cpp. "Syntax error" is here to catch this case. |
4680 | cat >conftest.$ac_ext <<_ACEOF |
4681 | /* confdefs.h. */ |
4682 | _ACEOF |
4683 | cat confdefs.h >>conftest.$ac_ext |
4684 | cat >>conftest.$ac_ext <<_ACEOF |
4685 | /* end confdefs.h. */ |
4686 | #ifdef __STDC__ |
4687 | # include <limits.h> |
4688 | #else |
4689 | # include <assert.h> |
4690 | #endif |
4691 | Syntax error |
4692 | _ACEOF |
4693 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4694 | case "(($ac_try" in |
4695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4696 | *) ac_try_echo=$ac_try;; |
4697 | esac |
4698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4699 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4700 | ac_status=$? |
4701 | grep -v '^ *+' conftest.er1 >conftest.err |
4702 | rm -f conftest.er1 |
4703 | cat conftest.err >&5 |
4704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4705 | (exit $ac_status); } >/dev/null; then |
4706 | if test -s conftest.err; then |
4707 | ac_cpp_err=$ac_c_preproc_warn_flag |
4708 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4709 | else |
4710 | ac_cpp_err= |
4711 | fi |
4712 | else |
4713 | ac_cpp_err=yes |
4714 | fi |
4715 | if test -z "$ac_cpp_err"; then |
4716 | : |
4717 | else |
4718 | echo "$as_me: failed program was:" >&5 |
4719 | sed 's/^/| /' conftest.$ac_ext >&5 |
4720 | |
4721 | # Broken: fails on valid input. |
4722 | continue |
4723 | fi |
4724 | |
4725 | rm -f conftest.err conftest.$ac_ext |
4726 | |
4727 | # OK, works on sane cases. Now check whether nonexistent headers |
4728 | # can be detected and how. |
4729 | cat >conftest.$ac_ext <<_ACEOF |
4730 | /* confdefs.h. */ |
4731 | _ACEOF |
4732 | cat confdefs.h >>conftest.$ac_ext |
4733 | cat >>conftest.$ac_ext <<_ACEOF |
4734 | /* end confdefs.h. */ |
4735 | #include <ac_nonexistent.h> |
4736 | _ACEOF |
4737 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
4738 | case "(($ac_try" in |
4739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4740 | *) ac_try_echo=$ac_try;; |
4741 | esac |
4742 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4743 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
4744 | ac_status=$? |
4745 | grep -v '^ *+' conftest.er1 >conftest.err |
4746 | rm -f conftest.er1 |
4747 | cat conftest.err >&5 |
4748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4749 | (exit $ac_status); } >/dev/null; then |
4750 | if test -s conftest.err; then |
4751 | ac_cpp_err=$ac_c_preproc_warn_flag |
4752 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
4753 | else |
4754 | ac_cpp_err= |
4755 | fi |
4756 | else |
4757 | ac_cpp_err=yes |
4758 | fi |
4759 | if test -z "$ac_cpp_err"; then |
4760 | # Broken: success on invalid input. |
4761 | continue |
4762 | else |
4763 | echo "$as_me: failed program was:" >&5 |
4764 | sed 's/^/| /' conftest.$ac_ext >&5 |
4765 | |
4766 | # Passes both tests. |
4767 | ac_preproc_ok=: |
4768 | break |
4769 | fi |
4770 | |
4771 | rm -f conftest.err conftest.$ac_ext |
4772 | |
4773 | done |
4774 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
4775 | rm -f conftest.err conftest.$ac_ext |
4776 | if $ac_preproc_ok; then |
4777 | : |
4778 | else |
4779 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check |
4780 | See \`config.log' for more details." >&5 |
4781 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check |
4782 | See \`config.log' for more details." >&2;} |
4783 | { (exit 1); exit 1; }; } |
4784 | fi |
4785 | |
4786 | ac_ext=c |
4787 | ac_cpp='$CPP $CPPFLAGS' |
4788 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
4789 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
4790 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
4791 | |
4792 | |
4793 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
4794 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
4795 | if test "${ac_cv_header_stdc+set}" = set; then |
4796 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
4797 | else |
4798 | cat >conftest.$ac_ext <<_ACEOF |
4799 | /* confdefs.h. */ |
4800 | _ACEOF |
4801 | cat confdefs.h >>conftest.$ac_ext |
4802 | cat >>conftest.$ac_ext <<_ACEOF |
4803 | /* end confdefs.h. */ |
4804 | #include <stdlib.h> |
4805 | #include <stdarg.h> |
4806 | #include <string.h> |
4807 | #include <float.h> |
4808 | |
4809 | int |
4810 | main () |
4811 | { |
4812 | |
4813 | ; |
4814 | return 0; |
4815 | } |
4816 | _ACEOF |
4817 | rm -f conftest.$ac_objext |
4818 | if { (ac_try="$ac_compile" |
4819 | case "(($ac_try" in |
4820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4821 | *) ac_try_echo=$ac_try;; |
4822 | esac |
4823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4824 | (eval "$ac_compile") 2>conftest.er1 |
4825 | ac_status=$? |
4826 | grep -v '^ *+' conftest.er1 >conftest.err |
4827 | rm -f conftest.er1 |
4828 | cat conftest.err >&5 |
4829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4830 | (exit $ac_status); } && |
4831 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
4832 | { (case "(($ac_try" in |
4833 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4834 | *) ac_try_echo=$ac_try;; |
4835 | esac |
4836 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4837 | (eval "$ac_try") 2>&5 |
4838 | ac_status=$? |
4839 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4840 | (exit $ac_status); }; } && |
4841 | { ac_try='test -s conftest.$ac_objext' |
4842 | { (case "(($ac_try" in |
4843 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4844 | *) ac_try_echo=$ac_try;; |
4845 | esac |
4846 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4847 | (eval "$ac_try") 2>&5 |
4848 | ac_status=$? |
4849 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4850 | (exit $ac_status); }; }; then |
4851 | ac_cv_header_stdc=yes |
4852 | else |
4853 | echo "$as_me: failed program was:" >&5 |
4854 | sed 's/^/| /' conftest.$ac_ext >&5 |
4855 | |
4856 | ac_cv_header_stdc=no |
4857 | fi |
4858 | |
4859 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
4860 | |
4861 | if test $ac_cv_header_stdc = yes; then |
4862 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
4863 | cat >conftest.$ac_ext <<_ACEOF |
4864 | /* confdefs.h. */ |
4865 | _ACEOF |
4866 | cat confdefs.h >>conftest.$ac_ext |
4867 | cat >>conftest.$ac_ext <<_ACEOF |
4868 | /* end confdefs.h. */ |
4869 | #include <string.h> |
4870 | |
4871 | _ACEOF |
4872 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4873 | $EGREP "memchr" >/dev/null 2>&1; then |
4874 | : |
4875 | else |
4876 | ac_cv_header_stdc=no |
4877 | fi |
4878 | rm -f conftest* |
4879 | |
4880 | fi |
4881 | |
4882 | if test $ac_cv_header_stdc = yes; then |
4883 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
4884 | cat >conftest.$ac_ext <<_ACEOF |
4885 | /* confdefs.h. */ |
4886 | _ACEOF |
4887 | cat confdefs.h >>conftest.$ac_ext |
4888 | cat >>conftest.$ac_ext <<_ACEOF |
4889 | /* end confdefs.h. */ |
4890 | #include <stdlib.h> |
4891 | |
4892 | _ACEOF |
4893 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
4894 | $EGREP "free" >/dev/null 2>&1; then |
4895 | : |
4896 | else |
4897 | ac_cv_header_stdc=no |
4898 | fi |
4899 | rm -f conftest* |
4900 | |
4901 | fi |
4902 | |
4903 | if test $ac_cv_header_stdc = yes; then |
4904 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
4905 | if test "$cross_compiling" = yes; then |
4906 | : |
4907 | else |
4908 | cat >conftest.$ac_ext <<_ACEOF |
4909 | /* confdefs.h. */ |
4910 | _ACEOF |
4911 | cat confdefs.h >>conftest.$ac_ext |
4912 | cat >>conftest.$ac_ext <<_ACEOF |
4913 | /* end confdefs.h. */ |
4914 | #include <ctype.h> |
4915 | #include <stdlib.h> |
4916 | #if ((' ' & 0x0FF) == 0x020) |
4917 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
4918 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
4919 | #else |
4920 | # define ISLOWER(c) \ |
4921 | (('a' <= (c) && (c) <= 'i') \ |
4922 | || ('j' <= (c) && (c) <= 'r') \ |
4923 | || ('s' <= (c) && (c) <= 'z')) |
4924 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
4925 | #endif |
4926 | |
4927 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
4928 | int |
4929 | main () |
4930 | { |
4931 | int i; |
4932 | for (i = 0; i < 256; i++) |
4933 | if (XOR (islower (i), ISLOWER (i)) |
4934 | || toupper (i) != TOUPPER (i)) |
4935 | return 2; |
4936 | return 0; |
4937 | } |
4938 | _ACEOF |
4939 | rm -f conftest$ac_exeext |
4940 | if { (ac_try="$ac_link" |
4941 | case "(($ac_try" in |
4942 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4943 | *) ac_try_echo=$ac_try;; |
4944 | esac |
4945 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4946 | (eval "$ac_link") 2>&5 |
4947 | ac_status=$? |
4948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4949 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
4950 | { (case "(($ac_try" in |
4951 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
4952 | *) ac_try_echo=$ac_try;; |
4953 | esac |
4954 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
4955 | (eval "$ac_try") 2>&5 |
4956 | ac_status=$? |
4957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
4958 | (exit $ac_status); }; }; then |
4959 | : |
4960 | else |
4961 | echo "$as_me: program exited with status $ac_status" >&5 |
4962 | echo "$as_me: failed program was:" >&5 |
4963 | sed 's/^/| /' conftest.$ac_ext >&5 |
4964 | |
4965 | ( exit $ac_status ) |
4966 | ac_cv_header_stdc=no |
4967 | fi |
4968 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
4969 | fi |
4970 | |
4971 | |
4972 | fi |
4973 | fi |
4974 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
4975 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
4976 | if test $ac_cv_header_stdc = yes; then |
4977 | |
4978 | cat >>confdefs.h <<\_ACEOF |
4979 | #define STDC_HEADERS 1 |
4980 | _ACEOF |
4981 | |
4982 | fi |
4983 | |
4984 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
4985 | |
4986 | |
4987 | |
4988 | |
4989 | |
4990 | |
4991 | |
4992 | |
4993 | |
4994 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ |
4995 | inttypes.h stdint.h unistd.h |
4996 | do |
4997 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4998 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
4999 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5000 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5001 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5002 | else |
5003 | cat >conftest.$ac_ext <<_ACEOF |
5004 | /* confdefs.h. */ |
5005 | _ACEOF |
5006 | cat confdefs.h >>conftest.$ac_ext |
5007 | cat >>conftest.$ac_ext <<_ACEOF |
5008 | /* end confdefs.h. */ |
5009 | $ac_includes_default |
5010 | |
5011 | #include <$ac_header> |
5012 | _ACEOF |
5013 | rm -f conftest.$ac_objext |
5014 | if { (ac_try="$ac_compile" |
5015 | case "(($ac_try" in |
5016 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5017 | *) ac_try_echo=$ac_try;; |
5018 | esac |
5019 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5020 | (eval "$ac_compile") 2>conftest.er1 |
5021 | ac_status=$? |
5022 | grep -v '^ *+' conftest.er1 >conftest.err |
5023 | rm -f conftest.er1 |
5024 | cat conftest.err >&5 |
5025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5026 | (exit $ac_status); } && |
5027 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5028 | { (case "(($ac_try" in |
5029 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5030 | *) ac_try_echo=$ac_try;; |
5031 | esac |
5032 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5033 | (eval "$ac_try") 2>&5 |
5034 | ac_status=$? |
5035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5036 | (exit $ac_status); }; } && |
5037 | { ac_try='test -s conftest.$ac_objext' |
5038 | { (case "(($ac_try" in |
5039 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5040 | *) ac_try_echo=$ac_try;; |
5041 | esac |
5042 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5043 | (eval "$ac_try") 2>&5 |
5044 | ac_status=$? |
5045 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5046 | (exit $ac_status); }; }; then |
5047 | eval "$as_ac_Header=yes" |
5048 | else |
5049 | echo "$as_me: failed program was:" >&5 |
5050 | sed 's/^/| /' conftest.$ac_ext >&5 |
5051 | |
5052 | eval "$as_ac_Header=no" |
5053 | fi |
5054 | |
5055 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5056 | fi |
5057 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5058 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5059 | echo "${ECHO_T}$ac_res" >&6; } |
5060 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5061 | cat >>confdefs.h <<_ACEOF |
5062 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5063 | _ACEOF |
5064 | |
5065 | fi |
5066 | |
5067 | done |
5068 | |
5069 | |
5070 | |
5071 | for ac_header in dlfcn.h |
5072 | do |
5073 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5074 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5075 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5076 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5077 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5078 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5079 | fi |
5080 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5081 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5082 | echo "${ECHO_T}$ac_res" >&6; } |
5083 | else |
5084 | # Is the header compilable? |
5085 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
5086 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
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 | $ac_includes_default |
5094 | #include <$ac_header> |
5095 | _ACEOF |
5096 | rm -f conftest.$ac_objext |
5097 | if { (ac_try="$ac_compile" |
5098 | case "(($ac_try" in |
5099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5100 | *) ac_try_echo=$ac_try;; |
5101 | esac |
5102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5103 | (eval "$ac_compile") 2>conftest.er1 |
5104 | ac_status=$? |
5105 | grep -v '^ *+' conftest.er1 >conftest.err |
5106 | rm -f conftest.er1 |
5107 | cat conftest.err >&5 |
5108 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5109 | (exit $ac_status); } && |
5110 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
5111 | { (case "(($ac_try" in |
5112 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5113 | *) ac_try_echo=$ac_try;; |
5114 | esac |
5115 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5116 | (eval "$ac_try") 2>&5 |
5117 | ac_status=$? |
5118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5119 | (exit $ac_status); }; } && |
5120 | { ac_try='test -s conftest.$ac_objext' |
5121 | { (case "(($ac_try" in |
5122 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5123 | *) ac_try_echo=$ac_try;; |
5124 | esac |
5125 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5126 | (eval "$ac_try") 2>&5 |
5127 | ac_status=$? |
5128 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5129 | (exit $ac_status); }; }; then |
5130 | ac_header_compiler=yes |
5131 | else |
5132 | echo "$as_me: failed program was:" >&5 |
5133 | sed 's/^/| /' conftest.$ac_ext >&5 |
5134 | |
5135 | ac_header_compiler=no |
5136 | fi |
5137 | |
5138 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5139 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
5140 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
5141 | |
5142 | # Is the header present? |
5143 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
5144 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
5145 | cat >conftest.$ac_ext <<_ACEOF |
5146 | /* confdefs.h. */ |
5147 | _ACEOF |
5148 | cat confdefs.h >>conftest.$ac_ext |
5149 | cat >>conftest.$ac_ext <<_ACEOF |
5150 | /* end confdefs.h. */ |
5151 | #include <$ac_header> |
5152 | _ACEOF |
5153 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5154 | case "(($ac_try" in |
5155 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5156 | *) ac_try_echo=$ac_try;; |
5157 | esac |
5158 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5159 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
5160 | ac_status=$? |
5161 | grep -v '^ *+' conftest.er1 >conftest.err |
5162 | rm -f conftest.er1 |
5163 | cat conftest.err >&5 |
5164 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5165 | (exit $ac_status); } >/dev/null; then |
5166 | if test -s conftest.err; then |
5167 | ac_cpp_err=$ac_c_preproc_warn_flag |
5168 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
5169 | else |
5170 | ac_cpp_err= |
5171 | fi |
5172 | else |
5173 | ac_cpp_err=yes |
5174 | fi |
5175 | if test -z "$ac_cpp_err"; then |
5176 | ac_header_preproc=yes |
5177 | else |
5178 | echo "$as_me: failed program was:" >&5 |
5179 | sed 's/^/| /' conftest.$ac_ext >&5 |
5180 | |
5181 | ac_header_preproc=no |
5182 | fi |
5183 | |
5184 | rm -f conftest.err conftest.$ac_ext |
5185 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
5186 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
5187 | |
5188 | # So? What about this header? |
5189 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
5190 | yes:no: ) |
5191 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
5192 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
5193 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
5194 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
5195 | ac_header_preproc=yes |
5196 | ;; |
5197 | no:yes:* ) |
5198 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
5199 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
5200 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
5201 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
5202 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
5203 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
5204 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
5205 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
5206 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
5207 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
5208 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
5209 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
5210 | ( cat <<\_ASBOX |
5211 | ## --------------------------------- ## |
5212 | ## Report this to BUG-REPORT-ADDRESS ## |
5213 | ## --------------------------------- ## |
5214 | _ASBOX |
5215 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
5216 | ;; |
5217 | esac |
5218 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
5219 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
5220 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
5221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5222 | else |
5223 | eval "$as_ac_Header=\$ac_header_preproc" |
5224 | fi |
5225 | ac_res=`eval echo '${'$as_ac_Header'}'` |
5226 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
5227 | echo "${ECHO_T}$ac_res" >&6; } |
5228 | |
5229 | fi |
5230 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
5231 | cat >>confdefs.h <<_ACEOF |
5232 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
5233 | _ACEOF |
5234 | |
5235 | fi |
5236 | |
5237 | done |
5238 | |
5239 | ac_ext=cpp |
5240 | ac_cpp='$CXXCPP $CPPFLAGS' |
5241 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5242 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5243 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5244 | if test -z "$CXX"; then |
5245 | if test -n "$CCC"; then |
5246 | CXX=$CCC |
5247 | else |
5248 | if test -n "$ac_tool_prefix"; then |
5249 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
5250 | do |
5251 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
5252 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
5253 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5254 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5255 | if test "${ac_cv_prog_CXX+set}" = set; then |
5256 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5257 | else |
5258 | if test -n "$CXX"; then |
5259 | ac_cv_prog_CXX="$CXX" # Let the user override the test. |
5260 | else |
5261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5262 | for as_dir in $PATH |
5263 | do |
5264 | IFS=$as_save_IFS |
5265 | test -z "$as_dir" && as_dir=. |
5266 | for ac_exec_ext in '' $ac_executable_extensions; do |
5267 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
5268 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" |
5269 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5270 | break 2 |
5271 | fi |
5272 | done |
5273 | done |
5274 | IFS=$as_save_IFS |
5275 | |
5276 | fi |
5277 | fi |
5278 | CXX=$ac_cv_prog_CXX |
5279 | if test -n "$CXX"; then |
5280 | { echo "$as_me:$LINENO: result: $CXX" >&5 |
5281 | echo "${ECHO_T}$CXX" >&6; } |
5282 | else |
5283 | { echo "$as_me:$LINENO: result: no" >&5 |
5284 | echo "${ECHO_T}no" >&6; } |
5285 | fi |
5286 | |
5287 | |
5288 | test -n "$CXX" && break |
5289 | done |
5290 | fi |
5291 | if test -z "$CXX"; then |
5292 | ac_ct_CXX=$CXX |
5293 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC |
5294 | do |
5295 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
5296 | set dummy $ac_prog; ac_word=$2 |
5297 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5298 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
5299 | if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then |
5300 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5301 | else |
5302 | if test -n "$ac_ct_CXX"; then |
5303 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. |
5304 | else |
5305 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5306 | for as_dir in $PATH |
5307 | do |
5308 | IFS=$as_save_IFS |
5309 | test -z "$as_dir" && as_dir=. |
5310 | for ac_exec_ext in '' $ac_executable_extensions; do |
5311 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
5312 | ac_cv_prog_ac_ct_CXX="$ac_prog" |
5313 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
5314 | break 2 |
5315 | fi |
5316 | done |
5317 | done |
5318 | IFS=$as_save_IFS |
5319 | |
5320 | fi |
5321 | fi |
5322 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX |
5323 | if test -n "$ac_ct_CXX"; then |
5324 | { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 |
5325 | echo "${ECHO_T}$ac_ct_CXX" >&6; } |
5326 | else |
5327 | { echo "$as_me:$LINENO: result: no" >&5 |
5328 | echo "${ECHO_T}no" >&6; } |
5329 | fi |
5330 | |
5331 | |
5332 | test -n "$ac_ct_CXX" && break |
5333 | done |
5334 | |
5335 | if test "x$ac_ct_CXX" = x; then |
5336 | CXX="g++" |
5337 | else |
5338 | case $cross_compiling:$ac_tool_warned in |
5339 | yes:) |
5340 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
5341 | whose name does not start with the host triplet. If you think this |
5342 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
5343 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
5344 | whose name does not start with the host triplet. If you think this |
5345 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
5346 | ac_tool_warned=yes ;; |
5347 | esac |
5348 | CXX=$ac_ct_CXX |
5349 | fi |
5350 | fi |
5351 | |
5352 | fi |
5353 | fi |
5354 | # Provide some information about the compiler. |
5355 | echo "$as_me:$LINENO: checking for C++ compiler version" >&5 |
5356 | ac_compiler=`set X $ac_compile; echo $2` |
5357 | { (ac_try="$ac_compiler --version >&5" |
5358 | case "(($ac_try" in |
5359 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5360 | *) ac_try_echo=$ac_try;; |
5361 | esac |
5362 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5363 | (eval "$ac_compiler --version >&5") 2>&5 |
5364 | ac_status=$? |
5365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5366 | (exit $ac_status); } |
5367 | { (ac_try="$ac_compiler -v >&5" |
5368 | case "(($ac_try" in |
5369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5370 | *) ac_try_echo=$ac_try;; |
5371 | esac |
5372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5373 | (eval "$ac_compiler -v >&5") 2>&5 |
5374 | ac_status=$? |
5375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5376 | (exit $ac_status); } |
5377 | { (ac_try="$ac_compiler -V >&5" |
5378 | case "(($ac_try" in |
5379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5380 | *) ac_try_echo=$ac_try;; |
5381 | esac |
5382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5383 | (eval "$ac_compiler -V >&5") 2>&5 |
5384 | ac_status=$? |
5385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5386 | (exit $ac_status); } |
5387 | |
5388 | { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 |
5389 | echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; } |
5390 | if test "${ac_cv_cxx_compiler_gnu+set}" = set; then |
5391 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5392 | else |
5393 | cat >conftest.$ac_ext <<_ACEOF |
5394 | /* confdefs.h. */ |
5395 | _ACEOF |
5396 | cat confdefs.h >>conftest.$ac_ext |
5397 | cat >>conftest.$ac_ext <<_ACEOF |
5398 | /* end confdefs.h. */ |
5399 | |
5400 | int |
5401 | main () |
5402 | { |
5403 | #ifndef __GNUC__ |
5404 | choke me |
5405 | #endif |
5406 | |
5407 | ; |
5408 | return 0; |
5409 | } |
5410 | _ACEOF |
5411 | rm -f conftest.$ac_objext |
5412 | if { (ac_try="$ac_compile" |
5413 | case "(($ac_try" in |
5414 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5415 | *) ac_try_echo=$ac_try;; |
5416 | esac |
5417 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5418 | (eval "$ac_compile") 2>conftest.er1 |
5419 | ac_status=$? |
5420 | grep -v '^ *+' conftest.er1 >conftest.err |
5421 | rm -f conftest.er1 |
5422 | cat conftest.err >&5 |
5423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5424 | (exit $ac_status); } && |
5425 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5426 | { (case "(($ac_try" in |
5427 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5428 | *) ac_try_echo=$ac_try;; |
5429 | esac |
5430 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5431 | (eval "$ac_try") 2>&5 |
5432 | ac_status=$? |
5433 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5434 | (exit $ac_status); }; } && |
5435 | { ac_try='test -s conftest.$ac_objext' |
5436 | { (case "(($ac_try" in |
5437 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5438 | *) ac_try_echo=$ac_try;; |
5439 | esac |
5440 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5441 | (eval "$ac_try") 2>&5 |
5442 | ac_status=$? |
5443 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5444 | (exit $ac_status); }; }; then |
5445 | ac_compiler_gnu=yes |
5446 | else |
5447 | echo "$as_me: failed program was:" >&5 |
5448 | sed 's/^/| /' conftest.$ac_ext >&5 |
5449 | |
5450 | ac_compiler_gnu=no |
5451 | fi |
5452 | |
5453 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5454 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu |
5455 | |
5456 | fi |
5457 | { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 |
5458 | echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; } |
5459 | GXX=`test $ac_compiler_gnu = yes && echo yes` |
5460 | ac_test_CXXFLAGS=${CXXFLAGS+set} |
5461 | ac_save_CXXFLAGS=$CXXFLAGS |
5462 | { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 |
5463 | echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; } |
5464 | if test "${ac_cv_prog_cxx_g+set}" = set; then |
5465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5466 | else |
5467 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag |
5468 | ac_cxx_werror_flag=yes |
5469 | ac_cv_prog_cxx_g=no |
5470 | CXXFLAGS="-g" |
5471 | cat >conftest.$ac_ext <<_ACEOF |
5472 | /* confdefs.h. */ |
5473 | _ACEOF |
5474 | cat confdefs.h >>conftest.$ac_ext |
5475 | cat >>conftest.$ac_ext <<_ACEOF |
5476 | /* end confdefs.h. */ |
5477 | |
5478 | int |
5479 | main () |
5480 | { |
5481 | |
5482 | ; |
5483 | return 0; |
5484 | } |
5485 | _ACEOF |
5486 | rm -f conftest.$ac_objext |
5487 | if { (ac_try="$ac_compile" |
5488 | case "(($ac_try" in |
5489 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5490 | *) ac_try_echo=$ac_try;; |
5491 | esac |
5492 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5493 | (eval "$ac_compile") 2>conftest.er1 |
5494 | ac_status=$? |
5495 | grep -v '^ *+' conftest.er1 >conftest.err |
5496 | rm -f conftest.er1 |
5497 | cat conftest.err >&5 |
5498 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5499 | (exit $ac_status); } && |
5500 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5501 | { (case "(($ac_try" in |
5502 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5503 | *) ac_try_echo=$ac_try;; |
5504 | esac |
5505 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5506 | (eval "$ac_try") 2>&5 |
5507 | ac_status=$? |
5508 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5509 | (exit $ac_status); }; } && |
5510 | { ac_try='test -s conftest.$ac_objext' |
5511 | { (case "(($ac_try" in |
5512 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5513 | *) ac_try_echo=$ac_try;; |
5514 | esac |
5515 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5516 | (eval "$ac_try") 2>&5 |
5517 | ac_status=$? |
5518 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5519 | (exit $ac_status); }; }; then |
5520 | ac_cv_prog_cxx_g=yes |
5521 | else |
5522 | echo "$as_me: failed program was:" >&5 |
5523 | sed 's/^/| /' conftest.$ac_ext >&5 |
5524 | |
5525 | CXXFLAGS="" |
5526 | cat >conftest.$ac_ext <<_ACEOF |
5527 | /* confdefs.h. */ |
5528 | _ACEOF |
5529 | cat confdefs.h >>conftest.$ac_ext |
5530 | cat >>conftest.$ac_ext <<_ACEOF |
5531 | /* end confdefs.h. */ |
5532 | |
5533 | int |
5534 | main () |
5535 | { |
5536 | |
5537 | ; |
5538 | return 0; |
5539 | } |
5540 | _ACEOF |
5541 | rm -f conftest.$ac_objext |
5542 | if { (ac_try="$ac_compile" |
5543 | case "(($ac_try" in |
5544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5545 | *) ac_try_echo=$ac_try;; |
5546 | esac |
5547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5548 | (eval "$ac_compile") 2>conftest.er1 |
5549 | ac_status=$? |
5550 | grep -v '^ *+' conftest.er1 >conftest.err |
5551 | rm -f conftest.er1 |
5552 | cat conftest.err >&5 |
5553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5554 | (exit $ac_status); } && |
5555 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5556 | { (case "(($ac_try" in |
5557 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5558 | *) ac_try_echo=$ac_try;; |
5559 | esac |
5560 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5561 | (eval "$ac_try") 2>&5 |
5562 | ac_status=$? |
5563 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5564 | (exit $ac_status); }; } && |
5565 | { ac_try='test -s conftest.$ac_objext' |
5566 | { (case "(($ac_try" in |
5567 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5568 | *) ac_try_echo=$ac_try;; |
5569 | esac |
5570 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5571 | (eval "$ac_try") 2>&5 |
5572 | ac_status=$? |
5573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5574 | (exit $ac_status); }; }; then |
5575 | : |
5576 | else |
5577 | echo "$as_me: failed program was:" >&5 |
5578 | sed 's/^/| /' conftest.$ac_ext >&5 |
5579 | |
5580 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5581 | CXXFLAGS="-g" |
5582 | cat >conftest.$ac_ext <<_ACEOF |
5583 | /* confdefs.h. */ |
5584 | _ACEOF |
5585 | cat confdefs.h >>conftest.$ac_ext |
5586 | cat >>conftest.$ac_ext <<_ACEOF |
5587 | /* end confdefs.h. */ |
5588 | |
5589 | int |
5590 | main () |
5591 | { |
5592 | |
5593 | ; |
5594 | return 0; |
5595 | } |
5596 | _ACEOF |
5597 | rm -f conftest.$ac_objext |
5598 | if { (ac_try="$ac_compile" |
5599 | case "(($ac_try" in |
5600 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5601 | *) ac_try_echo=$ac_try;; |
5602 | esac |
5603 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5604 | (eval "$ac_compile") 2>conftest.er1 |
5605 | ac_status=$? |
5606 | grep -v '^ *+' conftest.er1 >conftest.err |
5607 | rm -f conftest.er1 |
5608 | cat conftest.err >&5 |
5609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5610 | (exit $ac_status); } && |
5611 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
5612 | { (case "(($ac_try" in |
5613 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5614 | *) ac_try_echo=$ac_try;; |
5615 | esac |
5616 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5617 | (eval "$ac_try") 2>&5 |
5618 | ac_status=$? |
5619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5620 | (exit $ac_status); }; } && |
5621 | { ac_try='test -s conftest.$ac_objext' |
5622 | { (case "(($ac_try" in |
5623 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5624 | *) ac_try_echo=$ac_try;; |
5625 | esac |
5626 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5627 | (eval "$ac_try") 2>&5 |
5628 | ac_status=$? |
5629 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5630 | (exit $ac_status); }; }; then |
5631 | ac_cv_prog_cxx_g=yes |
5632 | else |
5633 | echo "$as_me: failed program was:" >&5 |
5634 | sed 's/^/| /' conftest.$ac_ext >&5 |
5635 | |
5636 | |
5637 | fi |
5638 | |
5639 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5640 | fi |
5641 | |
5642 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5643 | fi |
5644 | |
5645 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
5646 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag |
5647 | fi |
5648 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 |
5649 | echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; } |
5650 | if test "$ac_test_CXXFLAGS" = set; then |
5651 | CXXFLAGS=$ac_save_CXXFLAGS |
5652 | elif test $ac_cv_prog_cxx_g = yes; then |
5653 | if test "$GXX" = yes; then |
5654 | CXXFLAGS="-g -O2" |
5655 | else |
5656 | CXXFLAGS="-g" |
5657 | fi |
5658 | else |
5659 | if test "$GXX" = yes; then |
5660 | CXXFLAGS="-O2" |
5661 | else |
5662 | CXXFLAGS= |
5663 | fi |
5664 | fi |
5665 | ac_ext=cpp |
5666 | ac_cpp='$CXXCPP $CPPFLAGS' |
5667 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5668 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5669 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5670 | |
5671 | depcc="$CXX" am_compiler_list= |
5672 | |
5673 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
5674 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
5675 | if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then |
5676 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5677 | else |
5678 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
5679 | # We make a subdir and do the tests there. Otherwise we can end up |
5680 | # making bogus files that we don't know about and never remove. For |
5681 | # instance it was reported that on HP-UX the gcc test will end up |
5682 | # making a dummy file named `D' -- because `-MD' means `put the output |
5683 | # in D'. |
5684 | mkdir conftest.dir |
5685 | # Copy depcomp to subdir because otherwise we won't find it if we're |
5686 | # using a relative directory. |
5687 | cp "$am_depcomp" conftest.dir |
5688 | cd conftest.dir |
5689 | # We will build objects and dependencies in a subdirectory because |
5690 | # it helps to detect inapplicable dependency modes. For instance |
5691 | # both Tru64's cc and ICC support -MD to output dependencies as a |
5692 | # side effect of compilation, but ICC will put the dependencies in |
5693 | # the current directory while Tru64 will put them in the object |
5694 | # directory. |
5695 | mkdir sub |
5696 | |
5697 | am_cv_CXX_dependencies_compiler_type=none |
5698 | if test "$am_compiler_list" = ""; then |
5699 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
5700 | fi |
5701 | for depmode in $am_compiler_list; do |
5702 | # Setup a source with many dependencies, because some compilers |
5703 | # like to wrap large dependency lists on column 80 (with \), and |
5704 | # we should not choose a depcomp mode which is confused by this. |
5705 | # |
5706 | # We need to recreate these files for each test, as the compiler may |
5707 | # overwrite some of them when testing with obscure command lines. |
5708 | # This happens at least with the AIX C compiler. |
5709 | : > sub/conftest.c |
5710 | for i in 1 2 3 4 5 6; do |
5711 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
5712 | : > sub/conftst$i.h |
5713 | done |
5714 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
5715 | |
5716 | case $depmode in |
5717 | nosideeffect) |
5718 | # after this tag, mechanisms are not by side-effect, so they'll |
5719 | # only be used when explicitly requested |
5720 | if test "x$enable_dependency_tracking" = xyes; then |
5721 | continue |
5722 | else |
5723 | break |
5724 | fi |
5725 | ;; |
5726 | none) break ;; |
5727 | esac |
5728 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
5729 | # mode. It turns out that the SunPro C++ compiler does not properly |
5730 | # handle `-M -o', and we need to detect this. |
5731 | if depmode=$depmode \ |
5732 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
5733 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
5734 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
5735 | >/dev/null 2>conftest.err && |
5736 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
5737 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
5738 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
5739 | # icc doesn't choke on unknown options, it will just issue warnings |
5740 | # (even with -Werror). So we grep stderr for any message |
5741 | # that says an option was ignored. |
5742 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
5743 | am_cv_CXX_dependencies_compiler_type=$depmode |
5744 | break |
5745 | fi |
5746 | fi |
5747 | done |
5748 | |
5749 | cd .. |
5750 | rm -rf conftest.dir |
5751 | else |
5752 | am_cv_CXX_dependencies_compiler_type=none |
5753 | fi |
5754 | |
5755 | fi |
5756 | { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5 |
5757 | echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; } |
5758 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type |
5759 | |
5760 | |
5761 | |
5762 | if |
5763 | test "x$enable_dependency_tracking" != xno \ |
5764 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then |
5765 | am__fastdepCXX_TRUE= |
5766 | am__fastdepCXX_FALSE='#' |
5767 | else |
5768 | am__fastdepCXX_TRUE='#' |
5769 | am__fastdepCXX_FALSE= |
5770 | fi |
5771 | |
5772 | |
5773 | |
5774 | |
5775 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
5776 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
5777 | (test "X$CXX" != "Xg++"))) ; then |
5778 | ac_ext=cpp |
5779 | ac_cpp='$CXXCPP $CPPFLAGS' |
5780 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
5781 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
5782 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
5783 | { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 |
5784 | echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; } |
5785 | if test -z "$CXXCPP"; then |
5786 | if test "${ac_cv_prog_CXXCPP+set}" = set; then |
5787 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
5788 | else |
5789 | # Double quotes because CXXCPP needs to be expanded |
5790 | for CXXCPP in "$CXX -E" "/lib/cpp" |
5791 | do |
5792 | ac_preproc_ok=false |
5793 | for ac_cxx_preproc_warn_flag in '' yes |
5794 | do |
5795 | # Use a header file that comes with gcc, so configuring glibc |
5796 | # with a fresh cross-compiler works. |
5797 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5798 | # <limits.h> exists even on freestanding compilers. |
5799 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5800 | # not just through cpp. "Syntax error" is here to catch this case. |
5801 | cat >conftest.$ac_ext <<_ACEOF |
5802 | /* confdefs.h. */ |
5803 | _ACEOF |
5804 | cat confdefs.h >>conftest.$ac_ext |
5805 | cat >>conftest.$ac_ext <<_ACEOF |
5806 | /* end confdefs.h. */ |
5807 | #ifdef __STDC__ |
5808 | # include <limits.h> |
5809 | #else |
5810 | # include <assert.h> |
5811 | #endif |
5812 | Syntax error |
5813 | _ACEOF |
5814 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5815 | case "(($ac_try" in |
5816 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5817 | *) ac_try_echo=$ac_try;; |
5818 | esac |
5819 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5820 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
5821 | ac_status=$? |
5822 | grep -v '^ *+' conftest.er1 >conftest.err |
5823 | rm -f conftest.er1 |
5824 | cat conftest.err >&5 |
5825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5826 | (exit $ac_status); } >/dev/null; then |
5827 | if test -s conftest.err; then |
5828 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5829 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5830 | else |
5831 | ac_cpp_err= |
5832 | fi |
5833 | else |
5834 | ac_cpp_err=yes |
5835 | fi |
5836 | if test -z "$ac_cpp_err"; then |
5837 | : |
5838 | else |
5839 | echo "$as_me: failed program was:" >&5 |
5840 | sed 's/^/| /' conftest.$ac_ext >&5 |
5841 | |
5842 | # Broken: fails on valid input. |
5843 | continue |
5844 | fi |
5845 | |
5846 | rm -f conftest.err conftest.$ac_ext |
5847 | |
5848 | # OK, works on sane cases. Now check whether nonexistent headers |
5849 | # can be detected and how. |
5850 | cat >conftest.$ac_ext <<_ACEOF |
5851 | /* confdefs.h. */ |
5852 | _ACEOF |
5853 | cat confdefs.h >>conftest.$ac_ext |
5854 | cat >>conftest.$ac_ext <<_ACEOF |
5855 | /* end confdefs.h. */ |
5856 | #include <ac_nonexistent.h> |
5857 | _ACEOF |
5858 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5859 | case "(($ac_try" in |
5860 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5861 | *) ac_try_echo=$ac_try;; |
5862 | esac |
5863 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5864 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
5865 | ac_status=$? |
5866 | grep -v '^ *+' conftest.er1 >conftest.err |
5867 | rm -f conftest.er1 |
5868 | cat conftest.err >&5 |
5869 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5870 | (exit $ac_status); } >/dev/null; then |
5871 | if test -s conftest.err; then |
5872 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5873 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5874 | else |
5875 | ac_cpp_err= |
5876 | fi |
5877 | else |
5878 | ac_cpp_err=yes |
5879 | fi |
5880 | if test -z "$ac_cpp_err"; then |
5881 | # Broken: success on invalid input. |
5882 | continue |
5883 | else |
5884 | echo "$as_me: failed program was:" >&5 |
5885 | sed 's/^/| /' conftest.$ac_ext >&5 |
5886 | |
5887 | # Passes both tests. |
5888 | ac_preproc_ok=: |
5889 | break |
5890 | fi |
5891 | |
5892 | rm -f conftest.err conftest.$ac_ext |
5893 | |
5894 | done |
5895 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
5896 | rm -f conftest.err conftest.$ac_ext |
5897 | if $ac_preproc_ok; then |
5898 | break |
5899 | fi |
5900 | |
5901 | done |
5902 | ac_cv_prog_CXXCPP=$CXXCPP |
5903 | |
5904 | fi |
5905 | CXXCPP=$ac_cv_prog_CXXCPP |
5906 | else |
5907 | ac_cv_prog_CXXCPP=$CXXCPP |
5908 | fi |
5909 | { echo "$as_me:$LINENO: result: $CXXCPP" >&5 |
5910 | echo "${ECHO_T}$CXXCPP" >&6; } |
5911 | ac_preproc_ok=false |
5912 | for ac_cxx_preproc_warn_flag in '' yes |
5913 | do |
5914 | # Use a header file that comes with gcc, so configuring glibc |
5915 | # with a fresh cross-compiler works. |
5916 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
5917 | # <limits.h> exists even on freestanding compilers. |
5918 | # On the NeXT, cc -E runs the code through the compiler's parser, |
5919 | # not just through cpp. "Syntax error" is here to catch this case. |
5920 | cat >conftest.$ac_ext <<_ACEOF |
5921 | /* confdefs.h. */ |
5922 | _ACEOF |
5923 | cat confdefs.h >>conftest.$ac_ext |
5924 | cat >>conftest.$ac_ext <<_ACEOF |
5925 | /* end confdefs.h. */ |
5926 | #ifdef __STDC__ |
5927 | # include <limits.h> |
5928 | #else |
5929 | # include <assert.h> |
5930 | #endif |
5931 | Syntax error |
5932 | _ACEOF |
5933 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5934 | case "(($ac_try" in |
5935 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5936 | *) ac_try_echo=$ac_try;; |
5937 | esac |
5938 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5939 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
5940 | ac_status=$? |
5941 | grep -v '^ *+' conftest.er1 >conftest.err |
5942 | rm -f conftest.er1 |
5943 | cat conftest.err >&5 |
5944 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5945 | (exit $ac_status); } >/dev/null; then |
5946 | if test -s conftest.err; then |
5947 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5948 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5949 | else |
5950 | ac_cpp_err= |
5951 | fi |
5952 | else |
5953 | ac_cpp_err=yes |
5954 | fi |
5955 | if test -z "$ac_cpp_err"; then |
5956 | : |
5957 | else |
5958 | echo "$as_me: failed program was:" >&5 |
5959 | sed 's/^/| /' conftest.$ac_ext >&5 |
5960 | |
5961 | # Broken: fails on valid input. |
5962 | continue |
5963 | fi |
5964 | |
5965 | rm -f conftest.err conftest.$ac_ext |
5966 | |
5967 | # OK, works on sane cases. Now check whether nonexistent headers |
5968 | # can be detected and how. |
5969 | cat >conftest.$ac_ext <<_ACEOF |
5970 | /* confdefs.h. */ |
5971 | _ACEOF |
5972 | cat confdefs.h >>conftest.$ac_ext |
5973 | cat >>conftest.$ac_ext <<_ACEOF |
5974 | /* end confdefs.h. */ |
5975 | #include <ac_nonexistent.h> |
5976 | _ACEOF |
5977 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
5978 | case "(($ac_try" in |
5979 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
5980 | *) ac_try_echo=$ac_try;; |
5981 | esac |
5982 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
5983 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
5984 | ac_status=$? |
5985 | grep -v '^ *+' conftest.er1 >conftest.err |
5986 | rm -f conftest.er1 |
5987 | cat conftest.err >&5 |
5988 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
5989 | (exit $ac_status); } >/dev/null; then |
5990 | if test -s conftest.err; then |
5991 | ac_cpp_err=$ac_cxx_preproc_warn_flag |
5992 | ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag |
5993 | else |
5994 | ac_cpp_err= |
5995 | fi |
5996 | else |
5997 | ac_cpp_err=yes |
5998 | fi |
5999 | if test -z "$ac_cpp_err"; then |
6000 | # Broken: success on invalid input. |
6001 | continue |
6002 | else |
6003 | echo "$as_me: failed program was:" >&5 |
6004 | sed 's/^/| /' conftest.$ac_ext >&5 |
6005 | |
6006 | # Passes both tests. |
6007 | ac_preproc_ok=: |
6008 | break |
6009 | fi |
6010 | |
6011 | rm -f conftest.err conftest.$ac_ext |
6012 | |
6013 | done |
6014 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. |
6015 | rm -f conftest.err conftest.$ac_ext |
6016 | if $ac_preproc_ok; then |
6017 | : |
6018 | else |
6019 | { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6020 | See \`config.log' for more details." >&5 |
6021 | echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check |
6022 | See \`config.log' for more details." >&2;} |
6023 | { (exit 1); exit 1; }; } |
6024 | fi |
6025 | |
6026 | ac_ext=cpp |
6027 | ac_cpp='$CXXCPP $CPPFLAGS' |
6028 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6029 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6030 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
6031 | |
6032 | fi |
6033 | |
6034 | |
6035 | ac_ext=f |
6036 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
6037 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6038 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
6039 | if test -n "$ac_tool_prefix"; then |
6040 | for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn |
6041 | do |
6042 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
6043 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
6044 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6045 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6046 | if test "${ac_cv_prog_F77+set}" = set; then |
6047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6048 | else |
6049 | if test -n "$F77"; then |
6050 | ac_cv_prog_F77="$F77" # Let the user override the test. |
6051 | else |
6052 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6053 | for as_dir in $PATH |
6054 | do |
6055 | IFS=$as_save_IFS |
6056 | test -z "$as_dir" && as_dir=. |
6057 | for ac_exec_ext in '' $ac_executable_extensions; do |
6058 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
6059 | ac_cv_prog_F77="$ac_tool_prefix$ac_prog" |
6060 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6061 | break 2 |
6062 | fi |
6063 | done |
6064 | done |
6065 | IFS=$as_save_IFS |
6066 | |
6067 | fi |
6068 | fi |
6069 | F77=$ac_cv_prog_F77 |
6070 | if test -n "$F77"; then |
6071 | { echo "$as_me:$LINENO: result: $F77" >&5 |
6072 | echo "${ECHO_T}$F77" >&6; } |
6073 | else |
6074 | { echo "$as_me:$LINENO: result: no" >&5 |
6075 | echo "${ECHO_T}no" >&6; } |
6076 | fi |
6077 | |
6078 | |
6079 | test -n "$F77" && break |
6080 | done |
6081 | fi |
6082 | if test -z "$F77"; then |
6083 | ac_ct_F77=$F77 |
6084 | for ac_prog in g77 f77 xlf frt pgf77 cf77 fort77 fl32 af77 f90 xlf90 pgf90 pghpf epcf90 gfortran g95 f95 fort xlf95 ifort ifc efc pgf95 lf95 ftn |
6085 | do |
6086 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
6087 | set dummy $ac_prog; ac_word=$2 |
6088 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6089 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6090 | if test "${ac_cv_prog_ac_ct_F77+set}" = set; then |
6091 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6092 | else |
6093 | if test -n "$ac_ct_F77"; then |
6094 | ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. |
6095 | else |
6096 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6097 | for as_dir in $PATH |
6098 | do |
6099 | IFS=$as_save_IFS |
6100 | test -z "$as_dir" && as_dir=. |
6101 | for ac_exec_ext in '' $ac_executable_extensions; do |
6102 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
6103 | ac_cv_prog_ac_ct_F77="$ac_prog" |
6104 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6105 | break 2 |
6106 | fi |
6107 | done |
6108 | done |
6109 | IFS=$as_save_IFS |
6110 | |
6111 | fi |
6112 | fi |
6113 | ac_ct_F77=$ac_cv_prog_ac_ct_F77 |
6114 | if test -n "$ac_ct_F77"; then |
6115 | { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 |
6116 | echo "${ECHO_T}$ac_ct_F77" >&6; } |
6117 | else |
6118 | { echo "$as_me:$LINENO: result: no" >&5 |
6119 | echo "${ECHO_T}no" >&6; } |
6120 | fi |
6121 | |
6122 | |
6123 | test -n "$ac_ct_F77" && break |
6124 | done |
6125 | |
6126 | if test "x$ac_ct_F77" = x; then |
6127 | F77="" |
6128 | else |
6129 | case $cross_compiling:$ac_tool_warned in |
6130 | yes:) |
6131 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6132 | whose name does not start with the host triplet. If you think this |
6133 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6134 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6135 | whose name does not start with the host triplet. If you think this |
6136 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6137 | ac_tool_warned=yes ;; |
6138 | esac |
6139 | F77=$ac_ct_F77 |
6140 | fi |
6141 | fi |
6142 | |
6143 | |
6144 | # Provide some information about the compiler. |
6145 | echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5 |
6146 | ac_compiler=`set X $ac_compile; echo $2` |
6147 | { (ac_try="$ac_compiler --version >&5" |
6148 | case "(($ac_try" in |
6149 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6150 | *) ac_try_echo=$ac_try;; |
6151 | esac |
6152 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6153 | (eval "$ac_compiler --version >&5") 2>&5 |
6154 | ac_status=$? |
6155 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6156 | (exit $ac_status); } |
6157 | { (ac_try="$ac_compiler -v >&5" |
6158 | case "(($ac_try" in |
6159 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6160 | *) ac_try_echo=$ac_try;; |
6161 | esac |
6162 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6163 | (eval "$ac_compiler -v >&5") 2>&5 |
6164 | ac_status=$? |
6165 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6166 | (exit $ac_status); } |
6167 | { (ac_try="$ac_compiler -V >&5" |
6168 | case "(($ac_try" in |
6169 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6170 | *) ac_try_echo=$ac_try;; |
6171 | esac |
6172 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6173 | (eval "$ac_compiler -V >&5") 2>&5 |
6174 | ac_status=$? |
6175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6176 | (exit $ac_status); } |
6177 | rm -f a.out |
6178 | |
6179 | # If we don't use `.F' as extension, the preprocessor is not run on the |
6180 | # input file. (Note that this only needs to work for GNU compilers.) |
6181 | ac_save_ext=$ac_ext |
6182 | ac_ext=F |
6183 | { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 |
6184 | echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; } |
6185 | if test "${ac_cv_f77_compiler_gnu+set}" = set; then |
6186 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6187 | else |
6188 | cat >conftest.$ac_ext <<_ACEOF |
6189 | program main |
6190 | #ifndef __GNUC__ |
6191 | choke me |
6192 | #endif |
6193 | |
6194 | end |
6195 | _ACEOF |
6196 | rm -f conftest.$ac_objext |
6197 | if { (ac_try="$ac_compile" |
6198 | case "(($ac_try" in |
6199 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6200 | *) ac_try_echo=$ac_try;; |
6201 | esac |
6202 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6203 | (eval "$ac_compile") 2>conftest.er1 |
6204 | ac_status=$? |
6205 | grep -v '^ *+' conftest.er1 >conftest.err |
6206 | rm -f conftest.er1 |
6207 | cat conftest.err >&5 |
6208 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6209 | (exit $ac_status); } && |
6210 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
6211 | { (case "(($ac_try" in |
6212 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6213 | *) ac_try_echo=$ac_try;; |
6214 | esac |
6215 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6216 | (eval "$ac_try") 2>&5 |
6217 | ac_status=$? |
6218 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6219 | (exit $ac_status); }; } && |
6220 | { ac_try='test -s conftest.$ac_objext' |
6221 | { (case "(($ac_try" in |
6222 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6223 | *) ac_try_echo=$ac_try;; |
6224 | esac |
6225 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6226 | (eval "$ac_try") 2>&5 |
6227 | ac_status=$? |
6228 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6229 | (exit $ac_status); }; }; then |
6230 | ac_compiler_gnu=yes |
6231 | else |
6232 | echo "$as_me: failed program was:" >&5 |
6233 | sed 's/^/| /' conftest.$ac_ext >&5 |
6234 | |
6235 | ac_compiler_gnu=no |
6236 | fi |
6237 | |
6238 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6239 | ac_cv_f77_compiler_gnu=$ac_compiler_gnu |
6240 | |
6241 | fi |
6242 | { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 |
6243 | echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; } |
6244 | ac_ext=$ac_save_ext |
6245 | ac_test_FFLAGS=${FFLAGS+set} |
6246 | ac_save_FFLAGS=$FFLAGS |
6247 | FFLAGS= |
6248 | { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 |
6249 | echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; } |
6250 | if test "${ac_cv_prog_f77_g+set}" = set; then |
6251 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6252 | else |
6253 | FFLAGS=-g |
6254 | cat >conftest.$ac_ext <<_ACEOF |
6255 | program main |
6256 | |
6257 | end |
6258 | _ACEOF |
6259 | rm -f conftest.$ac_objext |
6260 | if { (ac_try="$ac_compile" |
6261 | case "(($ac_try" in |
6262 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6263 | *) ac_try_echo=$ac_try;; |
6264 | esac |
6265 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6266 | (eval "$ac_compile") 2>conftest.er1 |
6267 | ac_status=$? |
6268 | grep -v '^ *+' conftest.er1 >conftest.err |
6269 | rm -f conftest.er1 |
6270 | cat conftest.err >&5 |
6271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6272 | (exit $ac_status); } && |
6273 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
6274 | { (case "(($ac_try" in |
6275 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6276 | *) ac_try_echo=$ac_try;; |
6277 | esac |
6278 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6279 | (eval "$ac_try") 2>&5 |
6280 | ac_status=$? |
6281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6282 | (exit $ac_status); }; } && |
6283 | { ac_try='test -s conftest.$ac_objext' |
6284 | { (case "(($ac_try" in |
6285 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
6286 | *) ac_try_echo=$ac_try;; |
6287 | esac |
6288 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
6289 | (eval "$ac_try") 2>&5 |
6290 | ac_status=$? |
6291 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6292 | (exit $ac_status); }; }; then |
6293 | ac_cv_prog_f77_g=yes |
6294 | else |
6295 | echo "$as_me: failed program was:" >&5 |
6296 | sed 's/^/| /' conftest.$ac_ext >&5 |
6297 | |
6298 | ac_cv_prog_f77_g=no |
6299 | fi |
6300 | |
6301 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
6302 | |
6303 | fi |
6304 | { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 |
6305 | echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; } |
6306 | if test "$ac_test_FFLAGS" = set; then |
6307 | FFLAGS=$ac_save_FFLAGS |
6308 | elif test $ac_cv_prog_f77_g = yes; then |
6309 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6310 | FFLAGS="-g -O2" |
6311 | else |
6312 | FFLAGS="-g" |
6313 | fi |
6314 | else |
6315 | if test "x$ac_cv_f77_compiler_gnu" = xyes; then |
6316 | FFLAGS="-O2" |
6317 | else |
6318 | FFLAGS= |
6319 | fi |
6320 | fi |
6321 | |
6322 | G77=`test $ac_compiler_gnu = yes && echo yes` |
6323 | ac_ext=c |
6324 | ac_cpp='$CPP $CPPFLAGS' |
6325 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
6326 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
6327 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
6328 | |
6329 | |
6330 | |
6331 | # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! |
6332 | |
6333 | # find the maximum length of command line arguments |
6334 | { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 |
6335 | echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; } |
6336 | if test "${lt_cv_sys_max_cmd_len+set}" = set; then |
6337 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6338 | else |
6339 | i=0 |
6340 | teststring="ABCD" |
6341 | |
6342 | case $build_os in |
6343 | msdosdjgpp*) |
6344 | # On DJGPP, this test can blow up pretty badly due to problems in libc |
6345 | # (any single argument exceeding 2000 bytes causes a buffer overrun |
6346 | # during glob expansion). Even if it were fixed, the result of this |
6347 | # check would be larger than it should be. |
6348 | lt_cv_sys_max_cmd_len=12288; # 12K is about right |
6349 | ;; |
6350 | |
6351 | gnu*) |
6352 | # Under GNU Hurd, this test is not required because there is |
6353 | # no limit to the length of command line arguments. |
6354 | # Libtool will interpret -1 as no limit whatsoever |
6355 | lt_cv_sys_max_cmd_len=-1; |
6356 | ;; |
6357 | |
6358 | cygwin* | mingw*) |
6359 | # On Win9x/ME, this test blows up -- it succeeds, but takes |
6360 | # about 5 minutes as the teststring grows exponentially. |
6361 | # Worse, since 9x/ME are not pre-emptively multitasking, |
6362 | # you end up with a "frozen" computer, even though with patience |
6363 | # the test eventually succeeds (with a max line length of 256k). |
6364 | # Instead, let's just punt: use the minimum linelength reported by |
6365 | # all of the supported platforms: 8192 (on NT/2K/XP). |
6366 | lt_cv_sys_max_cmd_len=8192; |
6367 | ;; |
6368 | |
6369 | amigaos*) |
6370 | # On AmigaOS with pdksh, this test takes hours, literally. |
6371 | # So we just punt and use a minimum line length of 8192. |
6372 | lt_cv_sys_max_cmd_len=8192; |
6373 | ;; |
6374 | |
6375 | netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
6376 | # This has been around since 386BSD, at least. Likely further. |
6377 | if test -x /sbin/sysctl; then |
6378 | lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` |
6379 | elif test -x /usr/sbin/sysctl; then |
6380 | lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` |
6381 | else |
6382 | lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs |
6383 | fi |
6384 | # And add a safety zone |
6385 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` |
6386 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` |
6387 | ;; |
6388 | |
6389 | interix*) |
6390 | # We know the value 262144 and hardcode it with a safety zone (like BSD) |
6391 | lt_cv_sys_max_cmd_len=196608 |
6392 | ;; |
6393 | |
6394 | osf*) |
6395 | # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure |
6396 | # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not |
6397 | # nice to cause kernel panics so lets avoid the loop below. |
6398 | # First set a reasonable default. |
6399 | lt_cv_sys_max_cmd_len=16384 |
6400 | # |
6401 | if test -x /sbin/sysconfig; then |
6402 | case `/sbin/sysconfig -q proc exec_disable_arg_limit` in |
6403 | *1*) lt_cv_sys_max_cmd_len=-1 ;; |
6404 | esac |
6405 | fi |
6406 | ;; |
6407 | sco3.2v5*) |
6408 | lt_cv_sys_max_cmd_len=102400 |
6409 | ;; |
6410 | sysv5* | sco5v6* | sysv4.2uw2*) |
6411 | kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` |
6412 | if test -n "$kargmax"; then |
6413 | lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` |
6414 | else |
6415 | lt_cv_sys_max_cmd_len=32768 |
6416 | fi |
6417 | ;; |
6418 | *) |
6419 | # If test is not a shell built-in, we'll probably end up computing a |
6420 | # maximum length that is only half of the actual maximum length, but |
6421 | # we can't tell. |
6422 | SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} |
6423 | while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ |
6424 | = "XX$teststring") >/dev/null 2>&1 && |
6425 | new_result=`expr "X$teststring" : ".*" 2>&1` && |
6426 | lt_cv_sys_max_cmd_len=$new_result && |
6427 | test $i != 17 # 1/2 MB should be enough |
6428 | do |
6429 | i=`expr $i + 1` |
6430 | teststring=$teststring$teststring |
6431 | done |
6432 | teststring= |
6433 | # Add a significant safety factor because C++ compilers can tack on massive |
6434 | # amounts of additional arguments before passing them to the linker. |
6435 | # It appears as though 1/2 is a usable value. |
6436 | lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` |
6437 | ;; |
6438 | esac |
6439 | |
6440 | fi |
6441 | |
6442 | if test -n $lt_cv_sys_max_cmd_len ; then |
6443 | { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 |
6444 | echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; } |
6445 | else |
6446 | { echo "$as_me:$LINENO: result: none" >&5 |
6447 | echo "${ECHO_T}none" >&6; } |
6448 | fi |
6449 | |
6450 | |
6451 | |
6452 | |
6453 | # Check for command to grab the raw symbol name followed by C symbol from nm. |
6454 | { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 |
6455 | echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; } |
6456 | if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then |
6457 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6458 | else |
6459 | |
6460 | # These are sane defaults that work on at least a few old systems. |
6461 | # [They come from Ultrix. What could be older than Ultrix?!! ;)] |
6462 | |
6463 | # Character class describing NM global symbol codes. |
6464 | symcode='[BCDEGRST]' |
6465 | |
6466 | # Regexp to match symbols that can be accessed directly from C. |
6467 | sympat='\([_A-Za-z][_A-Za-z0-9]*\)' |
6468 | |
6469 | # Transform an extracted symbol line into a proper C declaration |
6470 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" |
6471 | |
6472 | # Transform an extracted symbol line into symbol name and symbol address |
6473 | 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'" |
6474 | |
6475 | # Define system-specific variables. |
6476 | case $host_os in |
6477 | aix*) |
6478 | symcode='[BCDT]' |
6479 | ;; |
6480 | cygwin* | mingw* | pw32*) |
6481 | symcode='[ABCDGISTW]' |
6482 | ;; |
6483 | hpux*) # Its linker distinguishes data from code symbols |
6484 | if test "$host_cpu" = ia64; then |
6485 | symcode='[ABCDEGRST]' |
6486 | fi |
6487 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6488 | 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'" |
6489 | ;; |
6490 | linux* | k*bsd*-gnu) |
6491 | if test "$host_cpu" = ia64; then |
6492 | symcode='[ABCDGIRSTW]' |
6493 | lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" |
6494 | 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'" |
6495 | fi |
6496 | ;; |
6497 | irix* | nonstopux*) |
6498 | symcode='[BCDEGRST]' |
6499 | ;; |
6500 | osf*) |
6501 | symcode='[BCDEGQRST]' |
6502 | ;; |
6503 | solaris*) |
6504 | symcode='[BDRT]' |
6505 | ;; |
6506 | sco3.2v5*) |
6507 | symcode='[DT]' |
6508 | ;; |
6509 | sysv4.2uw2*) |
6510 | symcode='[DT]' |
6511 | ;; |
6512 | sysv5* | sco5v6* | unixware* | OpenUNIX*) |
6513 | symcode='[ABDT]' |
6514 | ;; |
6515 | sysv4) |
6516 | symcode='[DFNSTU]' |
6517 | ;; |
6518 | esac |
6519 | |
6520 | # Handle CRLF in mingw tool chain |
6521 | opt_cr= |
6522 | case $build_os in |
6523 | mingw*) |
6524 | opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp |
6525 | ;; |
6526 | esac |
6527 | |
6528 | # If we're using GNU nm, then use its standard symbol codes. |
6529 | case `$NM -V 2>&1` in |
6530 | *GNU* | *'with BFD'*) |
6531 | symcode='[ABCDGIRSTW]' ;; |
6532 | esac |
6533 | |
6534 | # Try without a prefix undercore, then with it. |
6535 | for ac_symprfx in "" "_"; do |
6536 | |
6537 | # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. |
6538 | symxfrm="\\1 $ac_symprfx\\2 \\2" |
6539 | |
6540 | # Write the raw and C identifiers. |
6541 | lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" |
6542 | |
6543 | # Check to see that the pipe works correctly. |
6544 | pipe_works=no |
6545 | |
6546 | rm -f conftest* |
6547 | cat > conftest.$ac_ext <<EOF |
6548 | #ifdef __cplusplus |
6549 | extern "C" { |
6550 | #endif |
6551 | char nm_test_var; |
6552 | void nm_test_func(){} |
6553 | #ifdef __cplusplus |
6554 | } |
6555 | #endif |
6556 | int main(){nm_test_var='a';nm_test_func();return(0);} |
6557 | EOF |
6558 | |
6559 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
6560 | (eval $ac_compile) 2>&5 |
6561 | ac_status=$? |
6562 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6563 | (exit $ac_status); }; then |
6564 | # Now try to grab the symbols. |
6565 | nlist=conftest.nm |
6566 | if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 |
6567 | (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 |
6568 | ac_status=$? |
6569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6570 | (exit $ac_status); } && test -s "$nlist"; then |
6571 | # Try sorting and uniquifying the output. |
6572 | if sort "$nlist" | uniq > "$nlist"T; then |
6573 | mv -f "$nlist"T "$nlist" |
6574 | else |
6575 | rm -f "$nlist"T |
6576 | fi |
6577 | |
6578 | # Make sure that we snagged all the symbols we need. |
6579 | if grep ' nm_test_var$' "$nlist" >/dev/null; then |
6580 | if grep ' nm_test_func$' "$nlist" >/dev/null; then |
6581 | cat <<EOF > conftest.$ac_ext |
6582 | #ifdef __cplusplus |
6583 | extern "C" { |
6584 | #endif |
6585 | |
6586 | EOF |
6587 | # Now generate the symbol file. |
6588 | eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' |
6589 | |
6590 | cat <<EOF >> conftest.$ac_ext |
6591 | #if defined (__STDC__) && __STDC__ |
6592 | # define lt_ptr_t void * |
6593 | #else |
6594 | # define lt_ptr_t char * |
6595 | # define const |
6596 | #endif |
6597 | |
6598 | /* The mapping between symbol names and symbols. */ |
6599 | const struct { |
6600 | const char *name; |
6601 | lt_ptr_t address; |
6602 | } |
6603 | lt_preloaded_symbols[] = |
6604 | { |
6605 | EOF |
6606 | $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext |
6607 | cat <<\EOF >> conftest.$ac_ext |
6608 | {0, (lt_ptr_t) 0} |
6609 | }; |
6610 | |
6611 | #ifdef __cplusplus |
6612 | } |
6613 | #endif |
6614 | EOF |
6615 | # Now try linking the two files. |
6616 | mv conftest.$ac_objext conftstm.$ac_objext |
6617 | lt_save_LIBS="$LIBS" |
6618 | lt_save_CFLAGS="$CFLAGS" |
6619 | LIBS="conftstm.$ac_objext" |
6620 | CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" |
6621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
6622 | (eval $ac_link) 2>&5 |
6623 | ac_status=$? |
6624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
6625 | (exit $ac_status); } && test -s conftest${ac_exeext}; then |
6626 | pipe_works=yes |
6627 | fi |
6628 | LIBS="$lt_save_LIBS" |
6629 | CFLAGS="$lt_save_CFLAGS" |
6630 | else |
6631 | echo "cannot find nm_test_func in $nlist" >&5 |
6632 | fi |
6633 | else |
6634 | echo "cannot find nm_test_var in $nlist" >&5 |
6635 | fi |
6636 | else |
6637 | echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 |
6638 | fi |
6639 | else |
6640 | echo "$progname: failed program was:" >&5 |
6641 | cat conftest.$ac_ext >&5 |
6642 | fi |
6643 | rm -f conftest* conftst* |
6644 | |
6645 | # Do not use the global_symbol_pipe unless it works. |
6646 | if test "$pipe_works" = yes; then |
6647 | break |
6648 | else |
6649 | lt_cv_sys_global_symbol_pipe= |
6650 | fi |
6651 | done |
6652 | |
6653 | fi |
6654 | |
6655 | if test -z "$lt_cv_sys_global_symbol_pipe"; then |
6656 | lt_cv_sys_global_symbol_to_cdecl= |
6657 | fi |
6658 | if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then |
6659 | { echo "$as_me:$LINENO: result: failed" >&5 |
6660 | echo "${ECHO_T}failed" >&6; } |
6661 | else |
6662 | { echo "$as_me:$LINENO: result: ok" >&5 |
6663 | echo "${ECHO_T}ok" >&6; } |
6664 | fi |
6665 | |
6666 | { echo "$as_me:$LINENO: checking for objdir" >&5 |
6667 | echo $ECHO_N "checking for objdir... $ECHO_C" >&6; } |
6668 | if test "${lt_cv_objdir+set}" = set; then |
6669 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6670 | else |
6671 | rm -f .libs 2>/dev/null |
6672 | mkdir .libs 2>/dev/null |
6673 | if test -d .libs; then |
6674 | lt_cv_objdir=.libs |
6675 | else |
6676 | # MS-DOS does not allow filenames that begin with a dot. |
6677 | lt_cv_objdir=_libs |
6678 | fi |
6679 | rmdir .libs 2>/dev/null |
6680 | fi |
6681 | { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 |
6682 | echo "${ECHO_T}$lt_cv_objdir" >&6; } |
6683 | objdir=$lt_cv_objdir |
6684 | |
6685 | |
6686 | |
6687 | |
6688 | |
6689 | case $host_os in |
6690 | aix3*) |
6691 | # AIX sometimes has problems with the GCC collect2 program. For some |
6692 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
6693 | # vanish in a puff of smoke. |
6694 | if test "X${COLLECT_NAMES+set}" != Xset; then |
6695 | COLLECT_NAMES= |
6696 | export COLLECT_NAMES |
6697 | fi |
6698 | ;; |
6699 | esac |
6700 | |
6701 | # Sed substitution that helps us do robust quoting. It backslashifies |
6702 | # metacharacters that are still active within double-quoted strings. |
6703 | Xsed='sed -e 1s/^X//' |
6704 | sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' |
6705 | |
6706 | # Same as above, but do not quote variable references. |
6707 | double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' |
6708 | |
6709 | # Sed substitution to delay expansion of an escaped shell variable in a |
6710 | # double_quote_subst'ed string. |
6711 | delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' |
6712 | |
6713 | # Sed substitution to avoid accidental globbing in evaled expressions |
6714 | no_glob_subst='s/\*/\\\*/g' |
6715 | |
6716 | # Constants: |
6717 | rm="rm -f" |
6718 | |
6719 | # Global variables: |
6720 | default_ofile=libtool |
6721 | can_build_shared=yes |
6722 | |
6723 | # All known linkers require a `.a' archive for static linking (except MSVC, |
6724 | # which needs '.lib'). |
6725 | libext=a |
6726 | ltmain="$ac_aux_dir/ltmain.sh" |
6727 | ofile="$default_ofile" |
6728 | with_gnu_ld="$lt_cv_prog_gnu_ld" |
6729 | |
6730 | if test -n "$ac_tool_prefix"; then |
6731 | # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. |
6732 | set dummy ${ac_tool_prefix}ar; ac_word=$2 |
6733 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6734 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6735 | if test "${ac_cv_prog_AR+set}" = set; then |
6736 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6737 | else |
6738 | if test -n "$AR"; then |
6739 | ac_cv_prog_AR="$AR" # Let the user override the test. |
6740 | else |
6741 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6742 | for as_dir in $PATH |
6743 | do |
6744 | IFS=$as_save_IFS |
6745 | test -z "$as_dir" && as_dir=. |
6746 | for ac_exec_ext in '' $ac_executable_extensions; do |
6747 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
6748 | ac_cv_prog_AR="${ac_tool_prefix}ar" |
6749 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6750 | break 2 |
6751 | fi |
6752 | done |
6753 | done |
6754 | IFS=$as_save_IFS |
6755 | |
6756 | fi |
6757 | fi |
6758 | AR=$ac_cv_prog_AR |
6759 | if test -n "$AR"; then |
6760 | { echo "$as_me:$LINENO: result: $AR" >&5 |
6761 | echo "${ECHO_T}$AR" >&6; } |
6762 | else |
6763 | { echo "$as_me:$LINENO: result: no" >&5 |
6764 | echo "${ECHO_T}no" >&6; } |
6765 | fi |
6766 | |
6767 | |
6768 | fi |
6769 | if test -z "$ac_cv_prog_AR"; then |
6770 | ac_ct_AR=$AR |
6771 | # Extract the first word of "ar", so it can be a program name with args. |
6772 | set dummy ar; ac_word=$2 |
6773 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6774 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6775 | if test "${ac_cv_prog_ac_ct_AR+set}" = set; then |
6776 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6777 | else |
6778 | if test -n "$ac_ct_AR"; then |
6779 | ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. |
6780 | else |
6781 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6782 | for as_dir in $PATH |
6783 | do |
6784 | IFS=$as_save_IFS |
6785 | test -z "$as_dir" && as_dir=. |
6786 | for ac_exec_ext in '' $ac_executable_extensions; do |
6787 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
6788 | ac_cv_prog_ac_ct_AR="ar" |
6789 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6790 | break 2 |
6791 | fi |
6792 | done |
6793 | done |
6794 | IFS=$as_save_IFS |
6795 | |
6796 | fi |
6797 | fi |
6798 | ac_ct_AR=$ac_cv_prog_ac_ct_AR |
6799 | if test -n "$ac_ct_AR"; then |
6800 | { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 |
6801 | echo "${ECHO_T}$ac_ct_AR" >&6; } |
6802 | else |
6803 | { echo "$as_me:$LINENO: result: no" >&5 |
6804 | echo "${ECHO_T}no" >&6; } |
6805 | fi |
6806 | |
6807 | if test "x$ac_ct_AR" = x; then |
6808 | AR="false" |
6809 | else |
6810 | case $cross_compiling:$ac_tool_warned in |
6811 | yes:) |
6812 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6813 | whose name does not start with the host triplet. If you think this |
6814 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6815 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6816 | whose name does not start with the host triplet. If you think this |
6817 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6818 | ac_tool_warned=yes ;; |
6819 | esac |
6820 | AR=$ac_ct_AR |
6821 | fi |
6822 | else |
6823 | AR="$ac_cv_prog_AR" |
6824 | fi |
6825 | |
6826 | if test -n "$ac_tool_prefix"; then |
6827 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. |
6828 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 |
6829 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6830 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6831 | if test "${ac_cv_prog_RANLIB+set}" = set; then |
6832 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6833 | else |
6834 | if test -n "$RANLIB"; then |
6835 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. |
6836 | else |
6837 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6838 | for as_dir in $PATH |
6839 | do |
6840 | IFS=$as_save_IFS |
6841 | test -z "$as_dir" && as_dir=. |
6842 | for ac_exec_ext in '' $ac_executable_extensions; do |
6843 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
6844 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" |
6845 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6846 | break 2 |
6847 | fi |
6848 | done |
6849 | done |
6850 | IFS=$as_save_IFS |
6851 | |
6852 | fi |
6853 | fi |
6854 | RANLIB=$ac_cv_prog_RANLIB |
6855 | if test -n "$RANLIB"; then |
6856 | { echo "$as_me:$LINENO: result: $RANLIB" >&5 |
6857 | echo "${ECHO_T}$RANLIB" >&6; } |
6858 | else |
6859 | { echo "$as_me:$LINENO: result: no" >&5 |
6860 | echo "${ECHO_T}no" >&6; } |
6861 | fi |
6862 | |
6863 | |
6864 | fi |
6865 | if test -z "$ac_cv_prog_RANLIB"; then |
6866 | ac_ct_RANLIB=$RANLIB |
6867 | # Extract the first word of "ranlib", so it can be a program name with args. |
6868 | set dummy ranlib; ac_word=$2 |
6869 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6870 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6871 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then |
6872 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6873 | else |
6874 | if test -n "$ac_ct_RANLIB"; then |
6875 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. |
6876 | else |
6877 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6878 | for as_dir in $PATH |
6879 | do |
6880 | IFS=$as_save_IFS |
6881 | test -z "$as_dir" && as_dir=. |
6882 | for ac_exec_ext in '' $ac_executable_extensions; do |
6883 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
6884 | ac_cv_prog_ac_ct_RANLIB="ranlib" |
6885 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6886 | break 2 |
6887 | fi |
6888 | done |
6889 | done |
6890 | IFS=$as_save_IFS |
6891 | |
6892 | fi |
6893 | fi |
6894 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB |
6895 | if test -n "$ac_ct_RANLIB"; then |
6896 | { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 |
6897 | echo "${ECHO_T}$ac_ct_RANLIB" >&6; } |
6898 | else |
6899 | { echo "$as_me:$LINENO: result: no" >&5 |
6900 | echo "${ECHO_T}no" >&6; } |
6901 | fi |
6902 | |
6903 | if test "x$ac_ct_RANLIB" = x; then |
6904 | RANLIB=":" |
6905 | else |
6906 | case $cross_compiling:$ac_tool_warned in |
6907 | yes:) |
6908 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
6909 | whose name does not start with the host triplet. If you think this |
6910 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
6911 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
6912 | whose name does not start with the host triplet. If you think this |
6913 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
6914 | ac_tool_warned=yes ;; |
6915 | esac |
6916 | RANLIB=$ac_ct_RANLIB |
6917 | fi |
6918 | else |
6919 | RANLIB="$ac_cv_prog_RANLIB" |
6920 | fi |
6921 | |
6922 | if test -n "$ac_tool_prefix"; then |
6923 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. |
6924 | set dummy ${ac_tool_prefix}strip; ac_word=$2 |
6925 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6926 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6927 | if test "${ac_cv_prog_STRIP+set}" = set; then |
6928 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6929 | else |
6930 | if test -n "$STRIP"; then |
6931 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. |
6932 | else |
6933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6934 | for as_dir in $PATH |
6935 | do |
6936 | IFS=$as_save_IFS |
6937 | test -z "$as_dir" && as_dir=. |
6938 | for ac_exec_ext in '' $ac_executable_extensions; do |
6939 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
6940 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" |
6941 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6942 | break 2 |
6943 | fi |
6944 | done |
6945 | done |
6946 | IFS=$as_save_IFS |
6947 | |
6948 | fi |
6949 | fi |
6950 | STRIP=$ac_cv_prog_STRIP |
6951 | if test -n "$STRIP"; then |
6952 | { echo "$as_me:$LINENO: result: $STRIP" >&5 |
6953 | echo "${ECHO_T}$STRIP" >&6; } |
6954 | else |
6955 | { echo "$as_me:$LINENO: result: no" >&5 |
6956 | echo "${ECHO_T}no" >&6; } |
6957 | fi |
6958 | |
6959 | |
6960 | fi |
6961 | if test -z "$ac_cv_prog_STRIP"; then |
6962 | ac_ct_STRIP=$STRIP |
6963 | # Extract the first word of "strip", so it can be a program name with args. |
6964 | set dummy strip; ac_word=$2 |
6965 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
6966 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
6967 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then |
6968 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
6969 | else |
6970 | if test -n "$ac_ct_STRIP"; then |
6971 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. |
6972 | else |
6973 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
6974 | for as_dir in $PATH |
6975 | do |
6976 | IFS=$as_save_IFS |
6977 | test -z "$as_dir" && as_dir=. |
6978 | for ac_exec_ext in '' $ac_executable_extensions; do |
6979 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
6980 | ac_cv_prog_ac_ct_STRIP="strip" |
6981 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
6982 | break 2 |
6983 | fi |
6984 | done |
6985 | done |
6986 | IFS=$as_save_IFS |
6987 | |
6988 | fi |
6989 | fi |
6990 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP |
6991 | if test -n "$ac_ct_STRIP"; then |
6992 | { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 |
6993 | echo "${ECHO_T}$ac_ct_STRIP" >&6; } |
6994 | else |
6995 | { echo "$as_me:$LINENO: result: no" >&5 |
6996 | echo "${ECHO_T}no" >&6; } |
6997 | fi |
6998 | |
6999 | if test "x$ac_ct_STRIP" = x; then |
7000 | STRIP=":" |
7001 | else |
7002 | case $cross_compiling:$ac_tool_warned in |
7003 | yes:) |
7004 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
7005 | whose name does not start with the host triplet. If you think this |
7006 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
7007 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
7008 | whose name does not start with the host triplet. If you think this |
7009 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
7010 | ac_tool_warned=yes ;; |
7011 | esac |
7012 | STRIP=$ac_ct_STRIP |
7013 | fi |
7014 | else |
7015 | STRIP="$ac_cv_prog_STRIP" |
7016 | fi |
7017 | |
7018 | |
7019 | old_CC="$CC" |
7020 | old_CFLAGS="$CFLAGS" |
7021 | |
7022 | # Set sane defaults for various variables |
7023 | test -z "$AR" && AR=ar |
7024 | test -z "$AR_FLAGS" && AR_FLAGS=cru |
7025 | test -z "$AS" && AS=as |
7026 | test -z "$CC" && CC=cc |
7027 | test -z "$LTCC" && LTCC=$CC |
7028 | test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS |
7029 | test -z "$DLLTOOL" && DLLTOOL=dlltool |
7030 | test -z "$LD" && LD=ld |
7031 | test -z "$LN_S" && LN_S="ln -s" |
7032 | test -z "$MAGIC_CMD" && MAGIC_CMD=file |
7033 | test -z "$NM" && NM=nm |
7034 | test -z "$SED" && SED=sed |
7035 | test -z "$OBJDUMP" && OBJDUMP=objdump |
7036 | test -z "$RANLIB" && RANLIB=: |
7037 | test -z "$STRIP" && STRIP=: |
7038 | test -z "$ac_objext" && ac_objext=o |
7039 | |
7040 | # Determine commands to create old-style static archives. |
7041 | old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' |
7042 | old_postinstall_cmds='chmod 644 $oldlib' |
7043 | old_postuninstall_cmds= |
7044 | |
7045 | if test -n "$RANLIB"; then |
7046 | case $host_os in |
7047 | openbsd*) |
7048 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" |
7049 | ;; |
7050 | *) |
7051 | old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" |
7052 | ;; |
7053 | esac |
7054 | old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" |
7055 | fi |
7056 | |
7057 | for cc_temp in $compiler""; do |
7058 | case $cc_temp in |
7059 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7060 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7061 | \-*) ;; |
7062 | *) break;; |
7063 | esac |
7064 | done |
7065 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7066 | |
7067 | |
7068 | # Only perform the check for file, if the check method requires it |
7069 | case $deplibs_check_method in |
7070 | file_magic*) |
7071 | if test "$file_magic_cmd" = '$MAGIC_CMD'; then |
7072 | { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 |
7073 | echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; } |
7074 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7075 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7076 | else |
7077 | case $MAGIC_CMD in |
7078 | [\\/*] | ?:[\\/]*) |
7079 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7080 | ;; |
7081 | *) |
7082 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7083 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7084 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7085 | for ac_dir in $ac_dummy; do |
7086 | IFS="$lt_save_ifs" |
7087 | test -z "$ac_dir" && ac_dir=. |
7088 | if test -f $ac_dir/${ac_tool_prefix}file; then |
7089 | lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" |
7090 | if test -n "$file_magic_test_file"; then |
7091 | case $deplibs_check_method in |
7092 | "file_magic "*) |
7093 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7094 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7095 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7096 | $EGREP "$file_magic_regex" > /dev/null; then |
7097 | : |
7098 | else |
7099 | cat <<EOF 1>&2 |
7100 | |
7101 | *** Warning: the command libtool uses to detect shared libraries, |
7102 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7103 | *** The result is that libtool may fail to recognize shared libraries |
7104 | *** as such. This will affect the creation of libtool libraries that |
7105 | *** depend on shared libraries, but programs linked with such libtool |
7106 | *** libraries will work regardless of this problem. Nevertheless, you |
7107 | *** may want to report the problem to your system manager and/or to |
7108 | *** bug-libtool@gnu.org |
7109 | |
7110 | EOF |
7111 | fi ;; |
7112 | esac |
7113 | fi |
7114 | break |
7115 | fi |
7116 | done |
7117 | IFS="$lt_save_ifs" |
7118 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7119 | ;; |
7120 | esac |
7121 | fi |
7122 | |
7123 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7124 | if test -n "$MAGIC_CMD"; then |
7125 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7126 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
7127 | else |
7128 | { echo "$as_me:$LINENO: result: no" >&5 |
7129 | echo "${ECHO_T}no" >&6; } |
7130 | fi |
7131 | |
7132 | if test -z "$lt_cv_path_MAGIC_CMD"; then |
7133 | if test -n "$ac_tool_prefix"; then |
7134 | { echo "$as_me:$LINENO: checking for file" >&5 |
7135 | echo $ECHO_N "checking for file... $ECHO_C" >&6; } |
7136 | if test "${lt_cv_path_MAGIC_CMD+set}" = set; then |
7137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7138 | else |
7139 | case $MAGIC_CMD in |
7140 | [\\/*] | ?:[\\/]*) |
7141 | lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. |
7142 | ;; |
7143 | *) |
7144 | lt_save_MAGIC_CMD="$MAGIC_CMD" |
7145 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
7146 | ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" |
7147 | for ac_dir in $ac_dummy; do |
7148 | IFS="$lt_save_ifs" |
7149 | test -z "$ac_dir" && ac_dir=. |
7150 | if test -f $ac_dir/file; then |
7151 | lt_cv_path_MAGIC_CMD="$ac_dir/file" |
7152 | if test -n "$file_magic_test_file"; then |
7153 | case $deplibs_check_method in |
7154 | "file_magic "*) |
7155 | file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` |
7156 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7157 | if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | |
7158 | $EGREP "$file_magic_regex" > /dev/null; then |
7159 | : |
7160 | else |
7161 | cat <<EOF 1>&2 |
7162 | |
7163 | *** Warning: the command libtool uses to detect shared libraries, |
7164 | *** $file_magic_cmd, produces output that libtool cannot recognize. |
7165 | *** The result is that libtool may fail to recognize shared libraries |
7166 | *** as such. This will affect the creation of libtool libraries that |
7167 | *** depend on shared libraries, but programs linked with such libtool |
7168 | *** libraries will work regardless of this problem. Nevertheless, you |
7169 | *** may want to report the problem to your system manager and/or to |
7170 | *** bug-libtool@gnu.org |
7171 | |
7172 | EOF |
7173 | fi ;; |
7174 | esac |
7175 | fi |
7176 | break |
7177 | fi |
7178 | done |
7179 | IFS="$lt_save_ifs" |
7180 | MAGIC_CMD="$lt_save_MAGIC_CMD" |
7181 | ;; |
7182 | esac |
7183 | fi |
7184 | |
7185 | MAGIC_CMD="$lt_cv_path_MAGIC_CMD" |
7186 | if test -n "$MAGIC_CMD"; then |
7187 | { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 |
7188 | echo "${ECHO_T}$MAGIC_CMD" >&6; } |
7189 | else |
7190 | { echo "$as_me:$LINENO: result: no" >&5 |
7191 | echo "${ECHO_T}no" >&6; } |
7192 | fi |
7193 | |
7194 | else |
7195 | MAGIC_CMD=: |
7196 | fi |
7197 | fi |
7198 | |
7199 | fi |
7200 | ;; |
7201 | esac |
7202 | |
7203 | enable_dlopen=no |
7204 | enable_win32_dll=no |
7205 | |
7206 | # Check whether --enable-libtool-lock was given. |
7207 | if test "${enable_libtool_lock+set}" = set; then |
7208 | enableval=$enable_libtool_lock; |
7209 | fi |
7210 | |
7211 | test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes |
7212 | |
7213 | |
7214 | # Check whether --with-pic was given. |
7215 | if test "${with_pic+set}" = set; then |
7216 | withval=$with_pic; pic_mode="$withval" |
7217 | else |
7218 | pic_mode=default |
7219 | fi |
7220 | |
7221 | test -z "$pic_mode" && pic_mode=default |
7222 | |
7223 | # Use C for the default configuration in the libtool script |
7224 | tagname= |
7225 | lt_save_CC="$CC" |
7226 | ac_ext=c |
7227 | ac_cpp='$CPP $CPPFLAGS' |
7228 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
7229 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
7230 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
7231 | |
7232 | |
7233 | # Source file extension for C test sources. |
7234 | ac_ext=c |
7235 | |
7236 | # Object file extension for compiled C test sources. |
7237 | objext=o |
7238 | objext=$objext |
7239 | |
7240 | # Code to be used in simple compile tests |
7241 | lt_simple_compile_test_code="int some_variable = 0;\n" |
7242 | |
7243 | # Code to be used in simple link tests |
7244 | lt_simple_link_test_code='int main(){return(0);}\n' |
7245 | |
7246 | |
7247 | # If no C compiler was specified, use CC. |
7248 | LTCC=${LTCC-"$CC"} |
7249 | |
7250 | # If no C compiler flags were specified, use CFLAGS. |
7251 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
7252 | |
7253 | # Allow CC to be a program name with arguments. |
7254 | compiler=$CC |
7255 | |
7256 | |
7257 | # save warnings/boilerplate of simple test code |
7258 | ac_outfile=conftest.$ac_objext |
7259 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
7260 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7261 | _lt_compiler_boilerplate=`cat conftest.err` |
7262 | $rm conftest* |
7263 | |
7264 | ac_outfile=conftest.$ac_objext |
7265 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
7266 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
7267 | _lt_linker_boilerplate=`cat conftest.err` |
7268 | $rm conftest* |
7269 | |
7270 | |
7271 | |
7272 | lt_prog_compiler_no_builtin_flag= |
7273 | |
7274 | if test "$GCC" = yes; then |
7275 | lt_prog_compiler_no_builtin_flag=' -fno-builtin' |
7276 | |
7277 | |
7278 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
7279 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
7280 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
7281 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7282 | else |
7283 | lt_cv_prog_compiler_rtti_exceptions=no |
7284 | ac_outfile=conftest.$ac_objext |
7285 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7286 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
7287 | # Insert the option either (1) after the last *FLAGS variable, or |
7288 | # (2) before a word containing "conftest.", or (3) at the end. |
7289 | # Note that $ac_compile itself does not contain backslashes and begins |
7290 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7291 | # The option is referenced via a variable to avoid confusing sed. |
7292 | lt_compile=`echo "$ac_compile" | $SED \ |
7293 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7294 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7295 | -e 's:$: $lt_compiler_flag:'` |
7296 | (eval echo "\"\$as_me:7296: $lt_compile\"" >&5) |
7297 | (eval "$lt_compile" 2>conftest.err) |
7298 | ac_status=$? |
7299 | cat conftest.err >&5 |
7300 | echo "$as_me:7300: \$? = $ac_status" >&5 |
7301 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7302 | # The compiler can only warn and ignore the option if not recognized |
7303 | # So say no if there are warnings other than the usual output. |
7304 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7305 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7306 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7307 | lt_cv_prog_compiler_rtti_exceptions=yes |
7308 | fi |
7309 | fi |
7310 | $rm conftest* |
7311 | |
7312 | fi |
7313 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
7314 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
7315 | |
7316 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
7317 | lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" |
7318 | else |
7319 | : |
7320 | fi |
7321 | |
7322 | fi |
7323 | |
7324 | lt_prog_compiler_wl= |
7325 | lt_prog_compiler_pic= |
7326 | lt_prog_compiler_static= |
7327 | |
7328 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
7329 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
7330 | |
7331 | if test "$GCC" = yes; then |
7332 | lt_prog_compiler_wl='-Wl,' |
7333 | lt_prog_compiler_static='-static' |
7334 | |
7335 | case $host_os in |
7336 | aix*) |
7337 | # All AIX code is PIC. |
7338 | if test "$host_cpu" = ia64; then |
7339 | # AIX 5 now supports IA64 processor |
7340 | lt_prog_compiler_static='-Bstatic' |
7341 | fi |
7342 | ;; |
7343 | |
7344 | amigaos*) |
7345 | # FIXME: we need at least 68020 code to build shared libraries, but |
7346 | # adding the `-m68020' flag to GCC prevents building anything better, |
7347 | # like `-m68040'. |
7348 | lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' |
7349 | ;; |
7350 | |
7351 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
7352 | # PIC is the default for these OSes. |
7353 | ;; |
7354 | |
7355 | mingw* | pw32* | os2*) |
7356 | # This hack is so that the source file can tell whether it is being |
7357 | # built for inclusion in a dll (and should export symbols for example). |
7358 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7359 | ;; |
7360 | |
7361 | darwin* | rhapsody*) |
7362 | # PIC is the default on this platform |
7363 | # Common symbols not allowed in MH_DYLIB files |
7364 | lt_prog_compiler_pic='-fno-common' |
7365 | ;; |
7366 | |
7367 | interix3*) |
7368 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
7369 | # Instead, we relocate shared libraries at runtime. |
7370 | ;; |
7371 | |
7372 | msdosdjgpp*) |
7373 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
7374 | # on systems that don't support them. |
7375 | lt_prog_compiler_can_build_shared=no |
7376 | enable_shared=no |
7377 | ;; |
7378 | |
7379 | sysv4*MP*) |
7380 | if test -d /usr/nec; then |
7381 | lt_prog_compiler_pic=-Kconform_pic |
7382 | fi |
7383 | ;; |
7384 | |
7385 | hpux*) |
7386 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7387 | # not for PA HP-UX. |
7388 | case $host_cpu in |
7389 | hppa*64*|ia64*) |
7390 | # +Z the default |
7391 | ;; |
7392 | *) |
7393 | lt_prog_compiler_pic='-fPIC' |
7394 | ;; |
7395 | esac |
7396 | ;; |
7397 | |
7398 | *) |
7399 | lt_prog_compiler_pic='-fPIC' |
7400 | ;; |
7401 | esac |
7402 | else |
7403 | # PORTME Check for flag to pass linker flags through the system compiler. |
7404 | case $host_os in |
7405 | aix*) |
7406 | lt_prog_compiler_wl='-Wl,' |
7407 | if test "$host_cpu" = ia64; then |
7408 | # AIX 5 now supports IA64 processor |
7409 | lt_prog_compiler_static='-Bstatic' |
7410 | else |
7411 | lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' |
7412 | fi |
7413 | ;; |
7414 | darwin*) |
7415 | # PIC is the default on this platform |
7416 | # Common symbols not allowed in MH_DYLIB files |
7417 | case $cc_basename in |
7418 | xlc*) |
7419 | lt_prog_compiler_pic='-qnocommon' |
7420 | lt_prog_compiler_wl='-Wl,' |
7421 | ;; |
7422 | esac |
7423 | ;; |
7424 | |
7425 | mingw* | pw32* | os2*) |
7426 | # This hack is so that the source file can tell whether it is being |
7427 | # built for inclusion in a dll (and should export symbols for example). |
7428 | lt_prog_compiler_pic='-DDLL_EXPORT' |
7429 | ;; |
7430 | |
7431 | hpux9* | hpux10* | hpux11*) |
7432 | lt_prog_compiler_wl='-Wl,' |
7433 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
7434 | # not for PA HP-UX. |
7435 | case $host_cpu in |
7436 | hppa*64*|ia64*) |
7437 | # +Z the default |
7438 | ;; |
7439 | *) |
7440 | lt_prog_compiler_pic='+Z' |
7441 | ;; |
7442 | esac |
7443 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
7444 | lt_prog_compiler_static='${wl}-a ${wl}archive' |
7445 | ;; |
7446 | |
7447 | irix5* | irix6* | nonstopux*) |
7448 | lt_prog_compiler_wl='-Wl,' |
7449 | # PIC (with -KPIC) is the default. |
7450 | lt_prog_compiler_static='-non_shared' |
7451 | ;; |
7452 | |
7453 | newsos6) |
7454 | lt_prog_compiler_pic='-KPIC' |
7455 | lt_prog_compiler_static='-Bstatic' |
7456 | ;; |
7457 | |
7458 | linux* | k*bsd*-gnu) |
7459 | case $cc_basename in |
7460 | icc* | ecc*) |
7461 | lt_prog_compiler_wl='-Wl,' |
7462 | lt_prog_compiler_pic='-KPIC' |
7463 | lt_prog_compiler_static='-static' |
7464 | ;; |
7465 | pgcc* | pgf77* | pgf90* | pgf95*) |
7466 | # Portland Group compilers (*not* the Pentium gcc compiler, |
7467 | # which looks to be a dead project) |
7468 | lt_prog_compiler_wl='-Wl,' |
7469 | lt_prog_compiler_pic='-fpic' |
7470 | lt_prog_compiler_static='-Bstatic' |
7471 | ;; |
7472 | ccc*) |
7473 | lt_prog_compiler_wl='-Wl,' |
7474 | # All Alpha code is PIC. |
7475 | lt_prog_compiler_static='-non_shared' |
7476 | ;; |
7477 | esac |
7478 | ;; |
7479 | |
7480 | osf3* | osf4* | osf5*) |
7481 | lt_prog_compiler_wl='-Wl,' |
7482 | # All OSF/1 code is PIC. |
7483 | lt_prog_compiler_static='-non_shared' |
7484 | ;; |
7485 | |
7486 | solaris*) |
7487 | lt_prog_compiler_pic='-KPIC' |
7488 | lt_prog_compiler_static='-Bstatic' |
7489 | case $cc_basename in |
7490 | f77* | f90* | f95*) |
7491 | lt_prog_compiler_wl='-Qoption ld ';; |
7492 | *) |
7493 | lt_prog_compiler_wl='-Wl,';; |
7494 | esac |
7495 | ;; |
7496 | |
7497 | sunos4*) |
7498 | lt_prog_compiler_wl='-Qoption ld ' |
7499 | lt_prog_compiler_pic='-PIC' |
7500 | lt_prog_compiler_static='-Bstatic' |
7501 | ;; |
7502 | |
7503 | sysv4 | sysv4.2uw2* | sysv4.3*) |
7504 | lt_prog_compiler_wl='-Wl,' |
7505 | lt_prog_compiler_pic='-KPIC' |
7506 | lt_prog_compiler_static='-Bstatic' |
7507 | ;; |
7508 | |
7509 | sysv4*MP*) |
7510 | if test -d /usr/nec ;then |
7511 | lt_prog_compiler_pic='-Kconform_pic' |
7512 | lt_prog_compiler_static='-Bstatic' |
7513 | fi |
7514 | ;; |
7515 | |
7516 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
7517 | lt_prog_compiler_wl='-Wl,' |
7518 | lt_prog_compiler_pic='-KPIC' |
7519 | lt_prog_compiler_static='-Bstatic' |
7520 | ;; |
7521 | |
7522 | unicos*) |
7523 | lt_prog_compiler_wl='-Wl,' |
7524 | lt_prog_compiler_can_build_shared=no |
7525 | ;; |
7526 | |
7527 | uts4*) |
7528 | lt_prog_compiler_pic='-pic' |
7529 | lt_prog_compiler_static='-Bstatic' |
7530 | ;; |
7531 | |
7532 | *) |
7533 | lt_prog_compiler_can_build_shared=no |
7534 | ;; |
7535 | esac |
7536 | fi |
7537 | |
7538 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 |
7539 | echo "${ECHO_T}$lt_prog_compiler_pic" >&6; } |
7540 | |
7541 | # |
7542 | # Check to make sure the PIC flag actually works. |
7543 | # |
7544 | if test -n "$lt_prog_compiler_pic"; then |
7545 | |
7546 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 |
7547 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; } |
7548 | if test "${lt_prog_compiler_pic_works+set}" = set; then |
7549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7550 | else |
7551 | lt_prog_compiler_pic_works=no |
7552 | ac_outfile=conftest.$ac_objext |
7553 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7554 | lt_compiler_flag="$lt_prog_compiler_pic -DPIC" |
7555 | # Insert the option either (1) after the last *FLAGS variable, or |
7556 | # (2) before a word containing "conftest.", or (3) at the end. |
7557 | # Note that $ac_compile itself does not contain backslashes and begins |
7558 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7559 | # The option is referenced via a variable to avoid confusing sed. |
7560 | lt_compile=`echo "$ac_compile" | $SED \ |
7561 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7562 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7563 | -e 's:$: $lt_compiler_flag:'` |
7564 | (eval echo "\"\$as_me:7564: $lt_compile\"" >&5) |
7565 | (eval "$lt_compile" 2>conftest.err) |
7566 | ac_status=$? |
7567 | cat conftest.err >&5 |
7568 | echo "$as_me:7568: \$? = $ac_status" >&5 |
7569 | if (exit $ac_status) && test -s "$ac_outfile"; then |
7570 | # The compiler can only warn and ignore the option if not recognized |
7571 | # So say no if there are warnings other than the usual output. |
7572 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
7573 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7574 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
7575 | lt_prog_compiler_pic_works=yes |
7576 | fi |
7577 | fi |
7578 | $rm conftest* |
7579 | |
7580 | fi |
7581 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 |
7582 | echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6; } |
7583 | |
7584 | if test x"$lt_prog_compiler_pic_works" = xyes; then |
7585 | case $lt_prog_compiler_pic in |
7586 | "" | " "*) ;; |
7587 | *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; |
7588 | esac |
7589 | else |
7590 | lt_prog_compiler_pic= |
7591 | lt_prog_compiler_can_build_shared=no |
7592 | fi |
7593 | |
7594 | fi |
7595 | case $host_os in |
7596 | # For platforms which do not support PIC, -DPIC is meaningless: |
7597 | *djgpp*) |
7598 | lt_prog_compiler_pic= |
7599 | ;; |
7600 | *) |
7601 | lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" |
7602 | ;; |
7603 | esac |
7604 | |
7605 | # |
7606 | # Check to make sure the static flag actually works. |
7607 | # |
7608 | wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" |
7609 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
7610 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
7611 | if test "${lt_prog_compiler_static_works+set}" = set; then |
7612 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7613 | else |
7614 | lt_prog_compiler_static_works=no |
7615 | save_LDFLAGS="$LDFLAGS" |
7616 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
7617 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
7618 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
7619 | # The linker can only warn and ignore the option if not recognized |
7620 | # So say no if there are warnings |
7621 | if test -s conftest.err; then |
7622 | # Append any errors to the config.log. |
7623 | cat conftest.err 1>&5 |
7624 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
7625 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
7626 | if diff conftest.exp conftest.er2 >/dev/null; then |
7627 | lt_prog_compiler_static_works=yes |
7628 | fi |
7629 | else |
7630 | lt_prog_compiler_static_works=yes |
7631 | fi |
7632 | fi |
7633 | $rm conftest* |
7634 | LDFLAGS="$save_LDFLAGS" |
7635 | |
7636 | fi |
7637 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 |
7638 | echo "${ECHO_T}$lt_prog_compiler_static_works" >&6; } |
7639 | |
7640 | if test x"$lt_prog_compiler_static_works" = xyes; then |
7641 | : |
7642 | else |
7643 | lt_prog_compiler_static= |
7644 | fi |
7645 | |
7646 | |
7647 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
7648 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
7649 | if test "${lt_cv_prog_compiler_c_o+set}" = set; then |
7650 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
7651 | else |
7652 | lt_cv_prog_compiler_c_o=no |
7653 | $rm -r conftest 2>/dev/null |
7654 | mkdir conftest |
7655 | cd conftest |
7656 | mkdir out |
7657 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
7658 | |
7659 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
7660 | # Insert the option either (1) after the last *FLAGS variable, or |
7661 | # (2) before a word containing "conftest.", or (3) at the end. |
7662 | # Note that $ac_compile itself does not contain backslashes and begins |
7663 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
7664 | lt_compile=`echo "$ac_compile" | $SED \ |
7665 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
7666 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
7667 | -e 's:$: $lt_compiler_flag:'` |
7668 | (eval echo "\"\$as_me:7668: $lt_compile\"" >&5) |
7669 | (eval "$lt_compile" 2>out/conftest.err) |
7670 | ac_status=$? |
7671 | cat out/conftest.err >&5 |
7672 | echo "$as_me:7672: \$? = $ac_status" >&5 |
7673 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
7674 | then |
7675 | # The compiler can only warn and ignore the option if not recognized |
7676 | # So say no if there are warnings |
7677 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
7678 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
7679 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
7680 | lt_cv_prog_compiler_c_o=yes |
7681 | fi |
7682 | fi |
7683 | chmod u+w . 2>&5 |
7684 | $rm conftest* |
7685 | # SGI C++ compiler will create directory out/ii_files/ for |
7686 | # template instantiation |
7687 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
7688 | $rm out/* && rmdir out |
7689 | cd .. |
7690 | rmdir conftest |
7691 | $rm conftest* |
7692 | |
7693 | fi |
7694 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 |
7695 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; } |
7696 | |
7697 | |
7698 | hard_links="nottested" |
7699 | if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then |
7700 | # do not overwrite the value of need_locks provided by the user |
7701 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
7702 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
7703 | hard_links=yes |
7704 | $rm conftest* |
7705 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
7706 | touch conftest.a |
7707 | ln conftest.a conftest.b 2>&5 || hard_links=no |
7708 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
7709 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
7710 | echo "${ECHO_T}$hard_links" >&6; } |
7711 | if test "$hard_links" = no; then |
7712 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
7713 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
7714 | need_locks=warn |
7715 | fi |
7716 | else |
7717 | need_locks=no |
7718 | fi |
7719 | |
7720 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
7721 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
7722 | |
7723 | runpath_var= |
7724 | allow_undefined_flag= |
7725 | enable_shared_with_static_runtimes=no |
7726 | archive_cmds= |
7727 | archive_expsym_cmds= |
7728 | old_archive_From_new_cmds= |
7729 | old_archive_from_expsyms_cmds= |
7730 | export_dynamic_flag_spec= |
7731 | whole_archive_flag_spec= |
7732 | thread_safe_flag_spec= |
7733 | hardcode_libdir_flag_spec= |
7734 | hardcode_libdir_flag_spec_ld= |
7735 | hardcode_libdir_separator= |
7736 | hardcode_direct=no |
7737 | hardcode_minus_L=no |
7738 | hardcode_shlibpath_var=unsupported |
7739 | link_all_deplibs=unknown |
7740 | hardcode_automatic=no |
7741 | module_cmds= |
7742 | module_expsym_cmds= |
7743 | always_export_symbols=no |
7744 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
7745 | # include_expsyms should be a list of space-separated symbols to be *always* |
7746 | # included in the symbol list |
7747 | include_expsyms= |
7748 | # exclude_expsyms can be an extended regexp of symbols to exclude |
7749 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
7750 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
7751 | # as well as any symbol that contains `d'. |
7752 | exclude_expsyms="_GLOBAL_OFFSET_TABLE_" |
7753 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
7754 | # platforms (ab)use it in PIC code, but their linkers get confused if |
7755 | # the symbol is explicitly referenced. Since portable code cannot |
7756 | # rely on this symbol name, it's probably fine to never include it in |
7757 | # preloaded symbol tables. |
7758 | extract_expsyms_cmds= |
7759 | # Just being paranoid about ensuring that cc_basename is set. |
7760 | for cc_temp in $compiler""; do |
7761 | case $cc_temp in |
7762 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
7763 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
7764 | \-*) ;; |
7765 | *) break;; |
7766 | esac |
7767 | done |
7768 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
7769 | |
7770 | case $host_os in |
7771 | cygwin* | mingw* | pw32*) |
7772 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
7773 | # When not using gcc, we currently assume that we are using |
7774 | # Microsoft Visual C++. |
7775 | if test "$GCC" != yes; then |
7776 | with_gnu_ld=no |
7777 | fi |
7778 | ;; |
7779 | interix*) |
7780 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
7781 | with_gnu_ld=yes |
7782 | ;; |
7783 | openbsd*) |
7784 | with_gnu_ld=no |
7785 | ;; |
7786 | esac |
7787 | |
7788 | ld_shlibs=yes |
7789 | if test "$with_gnu_ld" = yes; then |
7790 | # If archive_cmds runs LD, not CC, wlarc should be empty |
7791 | wlarc='${wl}' |
7792 | |
7793 | # Set some defaults for GNU ld with shared library support. These |
7794 | # are reset later if shared libraries are not supported. Putting them |
7795 | # here allows them to be overridden if necessary. |
7796 | runpath_var=LD_RUN_PATH |
7797 | hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' |
7798 | export_dynamic_flag_spec='${wl}--export-dynamic' |
7799 | # ancient GNU ld didn't support --whole-archive et. al. |
7800 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
7801 | whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
7802 | else |
7803 | whole_archive_flag_spec= |
7804 | fi |
7805 | supports_anon_versioning=no |
7806 | case `$LD -v 2>/dev/null` in |
7807 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
7808 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
7809 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
7810 | *\ 2.11.*) ;; # other 2.11 versions |
7811 | *) supports_anon_versioning=yes ;; |
7812 | esac |
7813 | |
7814 | # See if GNU ld supports shared libraries. |
7815 | case $host_os in |
7816 | aix3* | aix4* | aix5*) |
7817 | # On AIX/PPC, the GNU linker is very broken |
7818 | if test "$host_cpu" != ia64; then |
7819 | ld_shlibs=no |
7820 | cat <<EOF 1>&2 |
7821 | |
7822 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
7823 | *** to be unable to reliably create shared libraries on AIX. |
7824 | *** Therefore, libtool is disabling shared libraries support. If you |
7825 | *** really care for shared libraries, you may want to modify your PATH |
7826 | *** so that a non-GNU linker is found, and then restart. |
7827 | |
7828 | EOF |
7829 | fi |
7830 | ;; |
7831 | |
7832 | amigaos*) |
7833 | 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)' |
7834 | hardcode_libdir_flag_spec='-L$libdir' |
7835 | hardcode_minus_L=yes |
7836 | |
7837 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
7838 | # that the semantics of dynamic libraries on AmigaOS, at least up |
7839 | # to version 4, is to share data among multiple programs linked |
7840 | # with the same dynamic library. Since this doesn't match the |
7841 | # behavior of shared libraries on other platforms, we can't use |
7842 | # them. |
7843 | ld_shlibs=no |
7844 | ;; |
7845 | |
7846 | beos*) |
7847 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7848 | allow_undefined_flag=unsupported |
7849 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
7850 | # support --undefined. This deserves some investigation. FIXME |
7851 | archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7852 | else |
7853 | ld_shlibs=no |
7854 | fi |
7855 | ;; |
7856 | |
7857 | cygwin* | mingw* | pw32*) |
7858 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, |
7859 | # as there is no search path for DLLs. |
7860 | hardcode_libdir_flag_spec='-L$libdir' |
7861 | allow_undefined_flag=unsupported |
7862 | always_export_symbols=no |
7863 | enable_shared_with_static_runtimes=yes |
7864 | export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
7865 | |
7866 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
7867 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7868 | # If the export-symbols file already is a .def file (1st line |
7869 | # is EXPORTS), use it as is; otherwise, prepend... |
7870 | archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
7871 | cp $export_symbols $output_objdir/$soname.def; |
7872 | else |
7873 | echo EXPORTS > $output_objdir/$soname.def; |
7874 | cat $export_symbols >> $output_objdir/$soname.def; |
7875 | fi~ |
7876 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
7877 | else |
7878 | ld_shlibs=no |
7879 | fi |
7880 | ;; |
7881 | |
7882 | interix3*) |
7883 | hardcode_direct=no |
7884 | hardcode_shlibpath_var=no |
7885 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
7886 | export_dynamic_flag_spec='${wl}-E' |
7887 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
7888 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
7889 | # default) and relocated if they conflict, which is a slow very memory |
7890 | # consuming and fragmenting process. To avoid this, we pick a random, |
7891 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
7892 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
7893 | archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7894 | archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
7895 | ;; |
7896 | |
7897 | linux* | k*bsd*-gnu) |
7898 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7899 | tmp_addflag= |
7900 | case $cc_basename,$host_cpu in |
7901 | pgcc*) # Portland Group C compiler |
7902 | 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' |
7903 | tmp_addflag=' $pic_flag' |
7904 | ;; |
7905 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
7906 | 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' |
7907 | tmp_addflag=' $pic_flag -Mnomain' ;; |
7908 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
7909 | tmp_addflag=' -i_dynamic' ;; |
7910 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
7911 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
7912 | ifc* | ifort*) # Intel Fortran compiler |
7913 | tmp_addflag=' -nofor_main' ;; |
7914 | esac |
7915 | archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7916 | |
7917 | if test $supports_anon_versioning = yes; then |
7918 | archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ |
7919 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
7920 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
7921 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
7922 | fi |
7923 | link_all_deplibs=no |
7924 | else |
7925 | ld_shlibs=no |
7926 | fi |
7927 | ;; |
7928 | |
7929 | netbsd* | netbsdelf*-gnu) |
7930 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
7931 | archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
7932 | wlarc= |
7933 | else |
7934 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7935 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7936 | fi |
7937 | ;; |
7938 | |
7939 | solaris*) |
7940 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
7941 | ld_shlibs=no |
7942 | cat <<EOF 1>&2 |
7943 | |
7944 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
7945 | *** create shared libraries on Solaris systems. Therefore, libtool |
7946 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7947 | *** binutils to release 2.9.1 or newer. Another option is to modify |
7948 | *** your PATH or compiler configuration so that the native linker is |
7949 | *** used, and then restart. |
7950 | |
7951 | EOF |
7952 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7953 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7954 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7955 | else |
7956 | ld_shlibs=no |
7957 | fi |
7958 | ;; |
7959 | |
7960 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
7961 | case `$LD -v 2>&1` in |
7962 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
7963 | ld_shlibs=no |
7964 | cat <<_LT_EOF 1>&2 |
7965 | |
7966 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
7967 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
7968 | *** is disabling shared libraries support. We urge you to upgrade GNU |
7969 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
7970 | *** your PATH or compiler configuration so that the native linker is |
7971 | *** used, and then restart. |
7972 | |
7973 | _LT_EOF |
7974 | ;; |
7975 | *) |
7976 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7977 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
7978 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
7979 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
7980 | else |
7981 | ld_shlibs=no |
7982 | fi |
7983 | ;; |
7984 | esac |
7985 | ;; |
7986 | |
7987 | sunos4*) |
7988 | archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
7989 | wlarc= |
7990 | hardcode_direct=yes |
7991 | hardcode_shlibpath_var=no |
7992 | ;; |
7993 | |
7994 | *) |
7995 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
7996 | archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
7997 | archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
7998 | else |
7999 | ld_shlibs=no |
8000 | fi |
8001 | ;; |
8002 | esac |
8003 | |
8004 | if test "$ld_shlibs" = no; then |
8005 | runpath_var= |
8006 | hardcode_libdir_flag_spec= |
8007 | export_dynamic_flag_spec= |
8008 | whole_archive_flag_spec= |
8009 | fi |
8010 | else |
8011 | # PORTME fill in a description of your system's linker (not GNU ld) |
8012 | case $host_os in |
8013 | aix3*) |
8014 | allow_undefined_flag=unsupported |
8015 | always_export_symbols=yes |
8016 | 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' |
8017 | # Note: this linker hardcodes the directories in LIBPATH if there |
8018 | # are no directories specified by -L. |
8019 | hardcode_minus_L=yes |
8020 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
8021 | # Neither direct hardcoding nor static linking is supported with a |
8022 | # broken collect2. |
8023 | hardcode_direct=unsupported |
8024 | fi |
8025 | ;; |
8026 | |
8027 | aix4* | aix5*) |
8028 | if test "$host_cpu" = ia64; then |
8029 | # On IA64, the linker does run time linking by default, so we don't |
8030 | # have to do anything special. |
8031 | aix_use_runtimelinking=no |
8032 | exp_sym_flag='-Bexport' |
8033 | no_entry_flag="" |
8034 | else |
8035 | # If we're using GNU nm, then we don't want the "-C" option. |
8036 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
8037 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
8038 | 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' |
8039 | else |
8040 | 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' |
8041 | fi |
8042 | aix_use_runtimelinking=no |
8043 | |
8044 | # Test if we are trying to use run time linking or normal |
8045 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
8046 | # need to do runtime linking. |
8047 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
8048 | for ld_flag in $LDFLAGS; do |
8049 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
8050 | aix_use_runtimelinking=yes |
8051 | break |
8052 | fi |
8053 | done |
8054 | ;; |
8055 | esac |
8056 | |
8057 | exp_sym_flag='-bexport' |
8058 | no_entry_flag='-bnoentry' |
8059 | fi |
8060 | |
8061 | # When large executables or shared objects are built, AIX ld can |
8062 | # have problems creating the table of contents. If linking a library |
8063 | # or program results in "error TOC overflow" add -mminimal-toc to |
8064 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
8065 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
8066 | |
8067 | archive_cmds='' |
8068 | hardcode_direct=yes |
8069 | hardcode_libdir_separator=':' |
8070 | link_all_deplibs=yes |
8071 | |
8072 | if test "$GCC" = yes; then |
8073 | case $host_os in aix4.[012]|aix4.[012].*) |
8074 | # We only want to do this on AIX 4.2 and lower, the check |
8075 | # below for broken collect2 doesn't work under 4.3+ |
8076 | collect2name=`${CC} -print-prog-name=collect2` |
8077 | if test -f "$collect2name" && \ |
8078 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
8079 | then |
8080 | # We have reworked collect2 |
8081 | hardcode_direct=yes |
8082 | else |
8083 | # We have old collect2 |
8084 | hardcode_direct=unsupported |
8085 | # It fails to find uninstalled libraries when the uninstalled |
8086 | # path is not listed in the libpath. Setting hardcode_minus_L |
8087 | # to unsupported forces relinking |
8088 | hardcode_minus_L=yes |
8089 | hardcode_libdir_flag_spec='-L$libdir' |
8090 | hardcode_libdir_separator= |
8091 | fi |
8092 | ;; |
8093 | esac |
8094 | shared_flag='-shared' |
8095 | if test "$aix_use_runtimelinking" = yes; then |
8096 | shared_flag="$shared_flag "'${wl}-G' |
8097 | fi |
8098 | else |
8099 | # not using gcc |
8100 | if test "$host_cpu" = ia64; then |
8101 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
8102 | # chokes on -Wl,-G. The following line is correct: |
8103 | shared_flag='-G' |
8104 | else |
8105 | if test "$aix_use_runtimelinking" = yes; then |
8106 | shared_flag='${wl}-G' |
8107 | else |
8108 | shared_flag='${wl}-bM:SRE' |
8109 | fi |
8110 | fi |
8111 | fi |
8112 | |
8113 | # It seems that -bexpall does not export symbols beginning with |
8114 | # underscore (_), so it is better to generate a list of symbols to export. |
8115 | always_export_symbols=yes |
8116 | if test "$aix_use_runtimelinking" = yes; then |
8117 | # Warning - without using the other runtime loading flags (-brtl), |
8118 | # -berok will link without error, but may produce a broken library. |
8119 | allow_undefined_flag='-berok' |
8120 | # Determine the default libpath from the value encoded in an empty executable. |
8121 | cat >conftest.$ac_ext <<_ACEOF |
8122 | /* confdefs.h. */ |
8123 | _ACEOF |
8124 | cat confdefs.h >>conftest.$ac_ext |
8125 | cat >>conftest.$ac_ext <<_ACEOF |
8126 | /* end confdefs.h. */ |
8127 | |
8128 | int |
8129 | main () |
8130 | { |
8131 | |
8132 | ; |
8133 | return 0; |
8134 | } |
8135 | _ACEOF |
8136 | rm -f conftest.$ac_objext conftest$ac_exeext |
8137 | if { (ac_try="$ac_link" |
8138 | case "(($ac_try" in |
8139 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8140 | *) ac_try_echo=$ac_try;; |
8141 | esac |
8142 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8143 | (eval "$ac_link") 2>conftest.er1 |
8144 | ac_status=$? |
8145 | grep -v '^ *+' conftest.er1 >conftest.err |
8146 | rm -f conftest.er1 |
8147 | cat conftest.err >&5 |
8148 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8149 | (exit $ac_status); } && |
8150 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8151 | { (case "(($ac_try" in |
8152 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8153 | *) ac_try_echo=$ac_try;; |
8154 | esac |
8155 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8156 | (eval "$ac_try") 2>&5 |
8157 | ac_status=$? |
8158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8159 | (exit $ac_status); }; } && |
8160 | { ac_try='test -s conftest$ac_exeext' |
8161 | { (case "(($ac_try" in |
8162 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8163 | *) ac_try_echo=$ac_try;; |
8164 | esac |
8165 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8166 | (eval "$ac_try") 2>&5 |
8167 | ac_status=$? |
8168 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8169 | (exit $ac_status); }; }; then |
8170 | |
8171 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8172 | }'` |
8173 | # Check for a 64-bit object if we didn't find anything. |
8174 | 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; } |
8175 | }'`; fi |
8176 | else |
8177 | echo "$as_me: failed program was:" >&5 |
8178 | sed 's/^/| /' conftest.$ac_ext >&5 |
8179 | |
8180 | |
8181 | fi |
8182 | |
8183 | rm -f core conftest.err conftest.$ac_objext \ |
8184 | conftest$ac_exeext conftest.$ac_ext |
8185 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8186 | |
8187 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8188 | archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
8189 | else |
8190 | if test "$host_cpu" = ia64; then |
8191 | hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' |
8192 | allow_undefined_flag="-z nodefs" |
8193 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
8194 | else |
8195 | # Determine the default libpath from the value encoded in an empty executable. |
8196 | cat >conftest.$ac_ext <<_ACEOF |
8197 | /* confdefs.h. */ |
8198 | _ACEOF |
8199 | cat confdefs.h >>conftest.$ac_ext |
8200 | cat >>conftest.$ac_ext <<_ACEOF |
8201 | /* end confdefs.h. */ |
8202 | |
8203 | int |
8204 | main () |
8205 | { |
8206 | |
8207 | ; |
8208 | return 0; |
8209 | } |
8210 | _ACEOF |
8211 | rm -f conftest.$ac_objext conftest$ac_exeext |
8212 | if { (ac_try="$ac_link" |
8213 | case "(($ac_try" in |
8214 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8215 | *) ac_try_echo=$ac_try;; |
8216 | esac |
8217 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8218 | (eval "$ac_link") 2>conftest.er1 |
8219 | ac_status=$? |
8220 | grep -v '^ *+' conftest.er1 >conftest.err |
8221 | rm -f conftest.er1 |
8222 | cat conftest.err >&5 |
8223 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8224 | (exit $ac_status); } && |
8225 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
8226 | { (case "(($ac_try" in |
8227 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8228 | *) ac_try_echo=$ac_try;; |
8229 | esac |
8230 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8231 | (eval "$ac_try") 2>&5 |
8232 | ac_status=$? |
8233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8234 | (exit $ac_status); }; } && |
8235 | { ac_try='test -s conftest$ac_exeext' |
8236 | { (case "(($ac_try" in |
8237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
8238 | *) ac_try_echo=$ac_try;; |
8239 | esac |
8240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
8241 | (eval "$ac_try") 2>&5 |
8242 | ac_status=$? |
8243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8244 | (exit $ac_status); }; }; then |
8245 | |
8246 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
8247 | }'` |
8248 | # Check for a 64-bit object if we didn't find anything. |
8249 | 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; } |
8250 | }'`; fi |
8251 | else |
8252 | echo "$as_me: failed program was:" >&5 |
8253 | sed 's/^/| /' conftest.$ac_ext >&5 |
8254 | |
8255 | |
8256 | fi |
8257 | |
8258 | rm -f core conftest.err conftest.$ac_objext \ |
8259 | conftest$ac_exeext conftest.$ac_ext |
8260 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
8261 | |
8262 | hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" |
8263 | # Warning - without using the other run time loading flags, |
8264 | # -berok will link without error, but may produce a broken library. |
8265 | no_undefined_flag=' ${wl}-bernotok' |
8266 | allow_undefined_flag=' ${wl}-berok' |
8267 | # Exported symbols can be pulled into shared objects from archives |
8268 | whole_archive_flag_spec='$convenience' |
8269 | archive_cmds_need_lc=yes |
8270 | # This is similar to how AIX traditionally builds its shared libraries. |
8271 | archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
8272 | fi |
8273 | fi |
8274 | ;; |
8275 | |
8276 | amigaos*) |
8277 | 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)' |
8278 | hardcode_libdir_flag_spec='-L$libdir' |
8279 | hardcode_minus_L=yes |
8280 | # see comment about different semantics on the GNU ld section |
8281 | ld_shlibs=no |
8282 | ;; |
8283 | |
8284 | bsdi[45]*) |
8285 | export_dynamic_flag_spec=-rdynamic |
8286 | ;; |
8287 | |
8288 | cygwin* | mingw* | pw32*) |
8289 | # When not using gcc, we currently assume that we are using |
8290 | # Microsoft Visual C++. |
8291 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
8292 | # no search path for DLLs. |
8293 | hardcode_libdir_flag_spec=' ' |
8294 | allow_undefined_flag=unsupported |
8295 | # Tell ltmain to make .lib files, not .a files. |
8296 | libext=lib |
8297 | # Tell ltmain to make .dll files, not .so files. |
8298 | shrext_cmds=".dll" |
8299 | # FIXME: Setting linknames here is a bad hack. |
8300 | archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
8301 | # The linker will automatically build a .lib file if we build a DLL. |
8302 | old_archive_From_new_cmds='true' |
8303 | # FIXME: Should let the user specify the lib program. |
8304 | old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' |
8305 | fix_srcfile_path='`cygpath -w "$srcfile"`' |
8306 | enable_shared_with_static_runtimes=yes |
8307 | ;; |
8308 | |
8309 | darwin* | rhapsody*) |
8310 | case $host_os in |
8311 | rhapsody* | darwin1.[012]) |
8312 | allow_undefined_flag='${wl}-undefined ${wl}suppress' |
8313 | ;; |
8314 | *) # Darwin 1.3 on |
8315 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
8316 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8317 | else |
8318 | case ${MACOSX_DEPLOYMENT_TARGET} in |
8319 | 10.[012]) |
8320 | allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
8321 | ;; |
8322 | 10.*) |
8323 | allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' |
8324 | ;; |
8325 | esac |
8326 | fi |
8327 | ;; |
8328 | esac |
8329 | archive_cmds_need_lc=no |
8330 | hardcode_direct=no |
8331 | hardcode_automatic=yes |
8332 | hardcode_shlibpath_var=unsupported |
8333 | whole_archive_flag_spec='' |
8334 | link_all_deplibs=yes |
8335 | if test "$GCC" = yes ; then |
8336 | output_verbose_link_cmd='echo' |
8337 | archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
8338 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8339 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8340 | 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}' |
8341 | 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}' |
8342 | else |
8343 | case $cc_basename in |
8344 | xlc*) |
8345 | output_verbose_link_cmd='echo' |
8346 | archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
8347 | module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
8348 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
8349 | 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}' |
8350 | 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}' |
8351 | ;; |
8352 | *) |
8353 | ld_shlibs=no |
8354 | ;; |
8355 | esac |
8356 | fi |
8357 | ;; |
8358 | |
8359 | dgux*) |
8360 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8361 | hardcode_libdir_flag_spec='-L$libdir' |
8362 | hardcode_shlibpath_var=no |
8363 | ;; |
8364 | |
8365 | freebsd1*) |
8366 | ld_shlibs=no |
8367 | ;; |
8368 | |
8369 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
8370 | # support. Future versions do this automatically, but an explicit c++rt0.o |
8371 | # does not break anything, and helps significantly (at the cost of a little |
8372 | # extra space). |
8373 | freebsd2.2*) |
8374 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
8375 | hardcode_libdir_flag_spec='-R$libdir' |
8376 | hardcode_direct=yes |
8377 | hardcode_shlibpath_var=no |
8378 | ;; |
8379 | |
8380 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
8381 | freebsd2*) |
8382 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8383 | hardcode_direct=yes |
8384 | hardcode_minus_L=yes |
8385 | hardcode_shlibpath_var=no |
8386 | ;; |
8387 | |
8388 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
8389 | freebsd* | dragonfly*) |
8390 | archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
8391 | hardcode_libdir_flag_spec='-R$libdir' |
8392 | hardcode_direct=yes |
8393 | hardcode_shlibpath_var=no |
8394 | ;; |
8395 | |
8396 | hpux9*) |
8397 | if test "$GCC" = yes; then |
8398 | 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' |
8399 | else |
8400 | 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' |
8401 | fi |
8402 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8403 | hardcode_libdir_separator=: |
8404 | hardcode_direct=yes |
8405 | |
8406 | # hardcode_minus_L: Not really in the search PATH, |
8407 | # but as the default location of the library. |
8408 | hardcode_minus_L=yes |
8409 | export_dynamic_flag_spec='${wl}-E' |
8410 | ;; |
8411 | |
8412 | hpux10*) |
8413 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8414 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8415 | else |
8416 | archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
8417 | fi |
8418 | if test "$with_gnu_ld" = no; then |
8419 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8420 | hardcode_libdir_separator=: |
8421 | |
8422 | hardcode_direct=yes |
8423 | export_dynamic_flag_spec='${wl}-E' |
8424 | |
8425 | # hardcode_minus_L: Not really in the search PATH, |
8426 | # but as the default location of the library. |
8427 | hardcode_minus_L=yes |
8428 | fi |
8429 | ;; |
8430 | |
8431 | hpux11*) |
8432 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
8433 | case $host_cpu in |
8434 | hppa*64*) |
8435 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8436 | ;; |
8437 | ia64*) |
8438 | archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8439 | ;; |
8440 | *) |
8441 | archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8442 | ;; |
8443 | esac |
8444 | else |
8445 | case $host_cpu in |
8446 | hppa*64*) |
8447 | archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8448 | ;; |
8449 | ia64*) |
8450 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
8451 | ;; |
8452 | *) |
8453 | archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
8454 | ;; |
8455 | esac |
8456 | fi |
8457 | if test "$with_gnu_ld" = no; then |
8458 | hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' |
8459 | hardcode_libdir_separator=: |
8460 | |
8461 | case $host_cpu in |
8462 | hppa*64*|ia64*) |
8463 | hardcode_libdir_flag_spec_ld='+b $libdir' |
8464 | hardcode_direct=no |
8465 | hardcode_shlibpath_var=no |
8466 | ;; |
8467 | *) |
8468 | hardcode_direct=yes |
8469 | export_dynamic_flag_spec='${wl}-E' |
8470 | |
8471 | # hardcode_minus_L: Not really in the search PATH, |
8472 | # but as the default location of the library. |
8473 | hardcode_minus_L=yes |
8474 | ;; |
8475 | esac |
8476 | fi |
8477 | ;; |
8478 | |
8479 | irix5* | irix6* | nonstopux*) |
8480 | if test "$GCC" = yes; then |
8481 | 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' |
8482 | else |
8483 | 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' |
8484 | hardcode_libdir_flag_spec_ld='-rpath $libdir' |
8485 | fi |
8486 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8487 | hardcode_libdir_separator=: |
8488 | link_all_deplibs=yes |
8489 | ;; |
8490 | |
8491 | netbsd* | netbsdelf*-gnu) |
8492 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
8493 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
8494 | else |
8495 | archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
8496 | fi |
8497 | hardcode_libdir_flag_spec='-R$libdir' |
8498 | hardcode_direct=yes |
8499 | hardcode_shlibpath_var=no |
8500 | ;; |
8501 | |
8502 | newsos6) |
8503 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8504 | hardcode_direct=yes |
8505 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8506 | hardcode_libdir_separator=: |
8507 | hardcode_shlibpath_var=no |
8508 | ;; |
8509 | |
8510 | openbsd*) |
8511 | hardcode_direct=yes |
8512 | hardcode_shlibpath_var=no |
8513 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
8514 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8515 | archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
8516 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8517 | export_dynamic_flag_spec='${wl}-E' |
8518 | else |
8519 | case $host_os in |
8520 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
8521 | archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
8522 | hardcode_libdir_flag_spec='-R$libdir' |
8523 | ;; |
8524 | *) |
8525 | archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
8526 | hardcode_libdir_flag_spec='${wl}-rpath,$libdir' |
8527 | ;; |
8528 | esac |
8529 | fi |
8530 | ;; |
8531 | |
8532 | os2*) |
8533 | hardcode_libdir_flag_spec='-L$libdir' |
8534 | hardcode_minus_L=yes |
8535 | allow_undefined_flag=unsupported |
8536 | 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' |
8537 | old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
8538 | ;; |
8539 | |
8540 | osf3*) |
8541 | if test "$GCC" = yes; then |
8542 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8543 | 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' |
8544 | else |
8545 | allow_undefined_flag=' -expect_unresolved \*' |
8546 | 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' |
8547 | fi |
8548 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8549 | hardcode_libdir_separator=: |
8550 | ;; |
8551 | |
8552 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
8553 | if test "$GCC" = yes; then |
8554 | allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' |
8555 | 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' |
8556 | hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' |
8557 | else |
8558 | allow_undefined_flag=' -expect_unresolved \*' |
8559 | 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' |
8560 | archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ |
8561 | $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' |
8562 | |
8563 | # Both c and cxx compiler support -rpath directly |
8564 | hardcode_libdir_flag_spec='-rpath $libdir' |
8565 | fi |
8566 | hardcode_libdir_separator=: |
8567 | ;; |
8568 | |
8569 | solaris*) |
8570 | no_undefined_flag=' -z text' |
8571 | if test "$GCC" = yes; then |
8572 | wlarc='${wl}' |
8573 | archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8574 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8575 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
8576 | else |
8577 | wlarc='' |
8578 | archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8579 | archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
8580 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
8581 | fi |
8582 | hardcode_libdir_flag_spec='-R$libdir' |
8583 | hardcode_shlibpath_var=no |
8584 | case $host_os in |
8585 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
8586 | *) |
8587 | # The compiler driver will combine linker options so we |
8588 | # cannot just pass the convience library names through |
8589 | # without $wl, iff we do not link with $LD. |
8590 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
8591 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
8592 | case $wlarc in |
8593 | '') |
8594 | whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; |
8595 | *) |
8596 | 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' ;; |
8597 | esac ;; |
8598 | esac |
8599 | link_all_deplibs=yes |
8600 | ;; |
8601 | |
8602 | sunos4*) |
8603 | if test "x$host_vendor" = xsequent; then |
8604 | # Use $CC to link under sequent, because it throws in some extra .o |
8605 | # files that make .init and .fini sections work. |
8606 | archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
8607 | else |
8608 | archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
8609 | fi |
8610 | hardcode_libdir_flag_spec='-L$libdir' |
8611 | hardcode_direct=yes |
8612 | hardcode_minus_L=yes |
8613 | hardcode_shlibpath_var=no |
8614 | ;; |
8615 | |
8616 | sysv4) |
8617 | case $host_vendor in |
8618 | sni) |
8619 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8620 | hardcode_direct=yes # is this really true??? |
8621 | ;; |
8622 | siemens) |
8623 | ## LD is ld it makes a PLAMLIB |
8624 | ## CC just makes a GrossModule. |
8625 | archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
8626 | reload_cmds='$CC -r -o $output$reload_objs' |
8627 | hardcode_direct=no |
8628 | ;; |
8629 | motorola) |
8630 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8631 | hardcode_direct=no #Motorola manual says yes, but my tests say they lie |
8632 | ;; |
8633 | esac |
8634 | runpath_var='LD_RUN_PATH' |
8635 | hardcode_shlibpath_var=no |
8636 | ;; |
8637 | |
8638 | sysv4.3*) |
8639 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8640 | hardcode_shlibpath_var=no |
8641 | export_dynamic_flag_spec='-Bexport' |
8642 | ;; |
8643 | |
8644 | sysv4*MP*) |
8645 | if test -d /usr/nec; then |
8646 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8647 | hardcode_shlibpath_var=no |
8648 | runpath_var=LD_RUN_PATH |
8649 | hardcode_runpath_var=yes |
8650 | ld_shlibs=yes |
8651 | fi |
8652 | ;; |
8653 | |
8654 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
8655 | no_undefined_flag='${wl}-z,text' |
8656 | archive_cmds_need_lc=no |
8657 | hardcode_shlibpath_var=no |
8658 | runpath_var='LD_RUN_PATH' |
8659 | |
8660 | if test "$GCC" = yes; then |
8661 | archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8662 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8663 | else |
8664 | archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8665 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
8666 | fi |
8667 | ;; |
8668 | |
8669 | sysv5* | sco3.2v5* | sco5v6*) |
8670 | # Note: We can NOT use -z defs as we might desire, because we do not |
8671 | # link with -lc, and that would cause any symbols used from libc to |
8672 | # always be unresolved, which means just about no library would |
8673 | # ever link correctly. If we're not using GNU ld we use -z text |
8674 | # though, which does catch some bad symbols but isn't as heavy-handed |
8675 | # as -z defs. |
8676 | no_undefined_flag='${wl}-z,text' |
8677 | allow_undefined_flag='${wl}-z,nodefs' |
8678 | archive_cmds_need_lc=no |
8679 | hardcode_shlibpath_var=no |
8680 | hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
8681 | hardcode_libdir_separator=':' |
8682 | link_all_deplibs=yes |
8683 | export_dynamic_flag_spec='${wl}-Bexport' |
8684 | runpath_var='LD_RUN_PATH' |
8685 | |
8686 | if test "$GCC" = yes; then |
8687 | archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8688 | archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8689 | else |
8690 | archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8691 | archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
8692 | fi |
8693 | ;; |
8694 | |
8695 | uts4*) |
8696 | archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
8697 | hardcode_libdir_flag_spec='-L$libdir' |
8698 | hardcode_shlibpath_var=no |
8699 | ;; |
8700 | |
8701 | *) |
8702 | ld_shlibs=no |
8703 | ;; |
8704 | esac |
8705 | fi |
8706 | |
8707 | { echo "$as_me:$LINENO: result: $ld_shlibs" >&5 |
8708 | echo "${ECHO_T}$ld_shlibs" >&6; } |
8709 | test "$ld_shlibs" = no && can_build_shared=no |
8710 | |
8711 | # |
8712 | # Do we need to explicitly link libc? |
8713 | # |
8714 | case "x$archive_cmds_need_lc" in |
8715 | x|xyes) |
8716 | # Assume -lc should be added |
8717 | archive_cmds_need_lc=yes |
8718 | |
8719 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
8720 | case $archive_cmds in |
8721 | *'~'*) |
8722 | # FIXME: we may have to deal with multi-command sequences. |
8723 | ;; |
8724 | '$CC '*) |
8725 | # Test whether the compiler implicitly links with -lc since on some |
8726 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
8727 | # to ld, don't add -lc before -lgcc. |
8728 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
8729 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
8730 | $rm conftest* |
8731 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
8732 | |
8733 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
8734 | (eval $ac_compile) 2>&5 |
8735 | ac_status=$? |
8736 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8737 | (exit $ac_status); } 2>conftest.err; then |
8738 | soname=conftest |
8739 | lib=conftest |
8740 | libobjs=conftest.$ac_objext |
8741 | deplibs= |
8742 | wl=$lt_prog_compiler_wl |
8743 | pic_flag=$lt_prog_compiler_pic |
8744 | compiler_flags=-v |
8745 | linker_flags=-v |
8746 | verstring= |
8747 | output_objdir=. |
8748 | libname=conftest |
8749 | lt_save_allow_undefined_flag=$allow_undefined_flag |
8750 | allow_undefined_flag= |
8751 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
8752 | (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
8753 | ac_status=$? |
8754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
8755 | (exit $ac_status); } |
8756 | then |
8757 | archive_cmds_need_lc=no |
8758 | else |
8759 | archive_cmds_need_lc=yes |
8760 | fi |
8761 | allow_undefined_flag=$lt_save_allow_undefined_flag |
8762 | else |
8763 | cat conftest.err 1>&5 |
8764 | fi |
8765 | $rm conftest* |
8766 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 |
8767 | echo "${ECHO_T}$archive_cmds_need_lc" >&6; } |
8768 | ;; |
8769 | esac |
8770 | fi |
8771 | ;; |
8772 | esac |
8773 | |
8774 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
8775 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
8776 | library_names_spec= |
8777 | libname_spec='lib$name' |
8778 | soname_spec= |
8779 | shrext_cmds=".so" |
8780 | postinstall_cmds= |
8781 | postuninstall_cmds= |
8782 | finish_cmds= |
8783 | finish_eval= |
8784 | shlibpath_var= |
8785 | shlibpath_overrides_runpath=unknown |
8786 | version_type=none |
8787 | dynamic_linker="$host_os ld.so" |
8788 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
8789 | if test "$GCC" = yes; then |
8790 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8791 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
8792 | # if the path contains ";" then we assume it to be the separator |
8793 | # otherwise default to the standard path separator (i.e. ":") - it is |
8794 | # assumed that no part of a normal pathname contains ";" but that should |
8795 | # okay in the real world where ";" in dirpaths is itself problematic. |
8796 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8797 | else |
8798 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8799 | fi |
8800 | else |
8801 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
8802 | fi |
8803 | need_lib_prefix=unknown |
8804 | hardcode_into_libs=no |
8805 | |
8806 | # when you set need_version to no, make sure it does not cause -set_version |
8807 | # flags to be left without arguments |
8808 | need_version=unknown |
8809 | |
8810 | case $host_os in |
8811 | aix3*) |
8812 | version_type=linux |
8813 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
8814 | shlibpath_var=LIBPATH |
8815 | |
8816 | # AIX 3 has no versioning support, so we append a major version to the name. |
8817 | soname_spec='${libname}${release}${shared_ext}$major' |
8818 | ;; |
8819 | |
8820 | aix4* | aix5*) |
8821 | version_type=linux |
8822 | need_lib_prefix=no |
8823 | need_version=no |
8824 | hardcode_into_libs=yes |
8825 | if test "$host_cpu" = ia64; then |
8826 | # AIX 5 supports IA64 |
8827 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
8828 | shlibpath_var=LD_LIBRARY_PATH |
8829 | else |
8830 | # With GCC up to 2.95.x, collect2 would create an import file |
8831 | # for dependence libraries. The import file would start with |
8832 | # the line `#! .'. This would cause the generated library to |
8833 | # depend on `.', always an invalid library. This was fixed in |
8834 | # development snapshots of GCC prior to 3.0. |
8835 | case $host_os in |
8836 | aix4 | aix4.[01] | aix4.[01].*) |
8837 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
8838 | echo ' yes ' |
8839 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
8840 | : |
8841 | else |
8842 | can_build_shared=no |
8843 | fi |
8844 | ;; |
8845 | esac |
8846 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
8847 | # soname into executable. Probably we can add versioning support to |
8848 | # collect2, so additional links can be useful in future. |
8849 | if test "$aix_use_runtimelinking" = yes; then |
8850 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
8851 | # instead of lib<name>.a to let people know that these are not |
8852 | # typical AIX shared libraries. |
8853 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8854 | else |
8855 | # We preserve .a as extension for shared libraries through AIX4.2 |
8856 | # and later when we are not doing run time linking. |
8857 | library_names_spec='${libname}${release}.a $libname.a' |
8858 | soname_spec='${libname}${release}${shared_ext}$major' |
8859 | fi |
8860 | shlibpath_var=LIBPATH |
8861 | fi |
8862 | ;; |
8863 | |
8864 | amigaos*) |
8865 | library_names_spec='$libname.ixlibrary $libname.a' |
8866 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
8867 | 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' |
8868 | ;; |
8869 | |
8870 | beos*) |
8871 | library_names_spec='${libname}${shared_ext}' |
8872 | dynamic_linker="$host_os ld.so" |
8873 | shlibpath_var=LIBRARY_PATH |
8874 | ;; |
8875 | |
8876 | bsdi[45]*) |
8877 | version_type=linux |
8878 | need_version=no |
8879 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
8880 | soname_spec='${libname}${release}${shared_ext}$major' |
8881 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
8882 | shlibpath_var=LD_LIBRARY_PATH |
8883 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
8884 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
8885 | # the default ld.so.conf also contains /usr/contrib/lib and |
8886 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
8887 | # libtool to hard-code these into programs |
8888 | ;; |
8889 | |
8890 | cygwin* | mingw* | pw32*) |
8891 | version_type=windows |
8892 | shrext_cmds=".dll" |
8893 | need_version=no |
8894 | need_lib_prefix=no |
8895 | |
8896 | case $GCC,$host_os in |
8897 | yes,cygwin* | yes,mingw* | yes,pw32*) |
8898 | library_names_spec='$libname.dll.a' |
8899 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
8900 | postinstall_cmds='base_file=`basename \${file}`~ |
8901 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
8902 | dldir=$destdir/`dirname \$dlpath`~ |
8903 | test -d \$dldir || mkdir -p \$dldir~ |
8904 | $install_prog $dir/$dlname \$dldir/$dlname~ |
8905 | chmod a+x \$dldir/$dlname' |
8906 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
8907 | dlpath=$dir/\$dldll~ |
8908 | $rm \$dlpath' |
8909 | shlibpath_overrides_runpath=yes |
8910 | |
8911 | case $host_os in |
8912 | cygwin*) |
8913 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
8914 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8915 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
8916 | ;; |
8917 | mingw*) |
8918 | # MinGW DLLs use traditional 'lib' prefix |
8919 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8920 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
8921 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
8922 | # It is most probably a Windows format PATH printed by |
8923 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
8924 | # path with ; separators, and with drive letters. We can handle the |
8925 | # drive letters (cygwin fileutils understands them), so leave them, |
8926 | # especially as we might pass files found there to a mingw objdump, |
8927 | # which wouldn't understand a cygwinified path. Ahh. |
8928 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
8929 | else |
8930 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
8931 | fi |
8932 | ;; |
8933 | pw32*) |
8934 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
8935 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
8936 | ;; |
8937 | esac |
8938 | ;; |
8939 | |
8940 | *) |
8941 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
8942 | ;; |
8943 | esac |
8944 | dynamic_linker='Win32 ld.exe' |
8945 | # FIXME: first we should search . and the directory the executable is in |
8946 | shlibpath_var=PATH |
8947 | ;; |
8948 | |
8949 | darwin* | rhapsody*) |
8950 | dynamic_linker="$host_os dyld" |
8951 | version_type=darwin |
8952 | need_lib_prefix=no |
8953 | need_version=no |
8954 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
8955 | soname_spec='${libname}${release}${major}$shared_ext' |
8956 | shlibpath_overrides_runpath=yes |
8957 | shlibpath_var=DYLD_LIBRARY_PATH |
8958 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
8959 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
8960 | if test "$GCC" = yes; then |
8961 | 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"` |
8962 | else |
8963 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
8964 | fi |
8965 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
8966 | ;; |
8967 | |
8968 | dgux*) |
8969 | version_type=linux |
8970 | need_lib_prefix=no |
8971 | need_version=no |
8972 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
8973 | soname_spec='${libname}${release}${shared_ext}$major' |
8974 | shlibpath_var=LD_LIBRARY_PATH |
8975 | ;; |
8976 | |
8977 | freebsd1*) |
8978 | dynamic_linker=no |
8979 | ;; |
8980 | |
8981 | freebsd* | dragonfly*) |
8982 | # DragonFly does not have aout. When/if they implement a new |
8983 | # versioning mechanism, adjust this. |
8984 | if test -x /usr/bin/objformat; then |
8985 | objformat=`/usr/bin/objformat` |
8986 | else |
8987 | case $host_os in |
8988 | freebsd[123]*) objformat=aout ;; |
8989 | *) objformat=elf ;; |
8990 | esac |
8991 | fi |
8992 | version_type=freebsd-$objformat |
8993 | case $version_type in |
8994 | freebsd-elf*) |
8995 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
8996 | need_version=no |
8997 | need_lib_prefix=no |
8998 | ;; |
8999 | freebsd-*) |
9000 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
9001 | need_version=yes |
9002 | ;; |
9003 | esac |
9004 | shlibpath_var=LD_LIBRARY_PATH |
9005 | case $host_os in |
9006 | freebsd2*) |
9007 | shlibpath_overrides_runpath=yes |
9008 | ;; |
9009 | freebsd3.[01]* | freebsdelf3.[01]*) |
9010 | shlibpath_overrides_runpath=yes |
9011 | hardcode_into_libs=yes |
9012 | ;; |
9013 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
9014 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
9015 | shlibpath_overrides_runpath=no |
9016 | hardcode_into_libs=yes |
9017 | ;; |
9018 | freebsd*) # from 4.6 on |
9019 | shlibpath_overrides_runpath=yes |
9020 | hardcode_into_libs=yes |
9021 | ;; |
9022 | esac |
9023 | ;; |
9024 | |
9025 | gnu*) |
9026 | version_type=linux |
9027 | need_lib_prefix=no |
9028 | need_version=no |
9029 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
9030 | soname_spec='${libname}${release}${shared_ext}$major' |
9031 | shlibpath_var=LD_LIBRARY_PATH |
9032 | hardcode_into_libs=yes |
9033 | ;; |
9034 | |
9035 | hpux9* | hpux10* | hpux11*) |
9036 | # Give a soname corresponding to the major version so that dld.sl refuses to |
9037 | # link against other versions. |
9038 | version_type=sunos |
9039 | need_lib_prefix=no |
9040 | need_version=no |
9041 | case $host_cpu in |
9042 | ia64*) |
9043 | shrext_cmds='.so' |
9044 | hardcode_into_libs=yes |
9045 | dynamic_linker="$host_os dld.so" |
9046 | shlibpath_var=LD_LIBRARY_PATH |
9047 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
9048 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9049 | soname_spec='${libname}${release}${shared_ext}$major' |
9050 | if test "X$HPUX_IA64_MODE" = X32; then |
9051 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
9052 | else |
9053 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
9054 | fi |
9055 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
9056 | ;; |
9057 | hppa*64*) |
9058 | shrext_cmds='.sl' |
9059 | hardcode_into_libs=yes |
9060 | dynamic_linker="$host_os dld.sl" |
9061 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
9062 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
9063 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9064 | soname_spec='${libname}${release}${shared_ext}$major' |
9065 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
9066 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
9067 | ;; |
9068 | *) |
9069 | shrext_cmds='.sl' |
9070 | dynamic_linker="$host_os dld.sl" |
9071 | shlibpath_var=SHLIB_PATH |
9072 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
9073 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9074 | soname_spec='${libname}${release}${shared_ext}$major' |
9075 | ;; |
9076 | esac |
9077 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
9078 | postinstall_cmds='chmod 555 $lib' |
9079 | ;; |
9080 | |
9081 | interix3*) |
9082 | version_type=linux |
9083 | need_lib_prefix=no |
9084 | need_version=no |
9085 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9086 | soname_spec='${libname}${release}${shared_ext}$major' |
9087 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
9088 | shlibpath_var=LD_LIBRARY_PATH |
9089 | shlibpath_overrides_runpath=no |
9090 | hardcode_into_libs=yes |
9091 | ;; |
9092 | |
9093 | irix5* | irix6* | nonstopux*) |
9094 | case $host_os in |
9095 | nonstopux*) version_type=nonstopux ;; |
9096 | *) |
9097 | if test "$lt_cv_prog_gnu_ld" = yes; then |
9098 | version_type=linux |
9099 | else |
9100 | version_type=irix |
9101 | fi ;; |
9102 | esac |
9103 | need_lib_prefix=no |
9104 | need_version=no |
9105 | soname_spec='${libname}${release}${shared_ext}$major' |
9106 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
9107 | case $host_os in |
9108 | irix5* | nonstopux*) |
9109 | libsuff= shlibsuff= |
9110 | ;; |
9111 | *) |
9112 | case $LD in # libtool.m4 will add one of these switches to LD |
9113 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
9114 | libsuff= shlibsuff= libmagic=32-bit;; |
9115 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
9116 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
9117 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
9118 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
9119 | *) libsuff= shlibsuff= libmagic=never-match;; |
9120 | esac |
9121 | ;; |
9122 | esac |
9123 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
9124 | shlibpath_overrides_runpath=no |
9125 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
9126 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
9127 | hardcode_into_libs=yes |
9128 | ;; |
9129 | |
9130 | # No shared lib support for Linux oldld, aout, or coff. |
9131 | linux*oldld* | linux*aout* | linux*coff*) |
9132 | dynamic_linker=no |
9133 | ;; |
9134 | |
9135 | # This must be Linux ELF. |
9136 | linux* | k*bsd*-gnu) |
9137 | version_type=linux |
9138 | need_lib_prefix=no |
9139 | need_version=no |
9140 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9141 | soname_spec='${libname}${release}${shared_ext}$major' |
9142 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
9143 | shlibpath_var=LD_LIBRARY_PATH |
9144 | shlibpath_overrides_runpath=no |
9145 | # This implies no fast_install, which is unacceptable. |
9146 | # Some rework will be needed to allow for fast_install |
9147 | # before this can be enabled. |
9148 | hardcode_into_libs=yes |
9149 | |
9150 | # Append ld.so.conf contents to the search path |
9151 | if test -f /etc/ld.so.conf; then |
9152 | 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' ' '` |
9153 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
9154 | fi |
9155 | |
9156 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
9157 | # powerpc, because MkLinux only supported shared libraries with the |
9158 | # GNU dynamic linker. Since this was broken with cross compilers, |
9159 | # most powerpc-linux boxes support dynamic linking these days and |
9160 | # people can always --disable-shared, the test was removed, and we |
9161 | # assume the GNU/Linux dynamic linker is in use. |
9162 | dynamic_linker='GNU/Linux ld.so' |
9163 | ;; |
9164 | |
9165 | netbsdelf*-gnu) |
9166 | version_type=linux |
9167 | need_lib_prefix=no |
9168 | need_version=no |
9169 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9170 | soname_spec='${libname}${release}${shared_ext}$major' |
9171 | shlibpath_var=LD_LIBRARY_PATH |
9172 | shlibpath_overrides_runpath=no |
9173 | hardcode_into_libs=yes |
9174 | dynamic_linker='NetBSD ld.elf_so' |
9175 | ;; |
9176 | |
9177 | netbsd*) |
9178 | version_type=sunos |
9179 | need_lib_prefix=no |
9180 | need_version=no |
9181 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
9182 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9183 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9184 | dynamic_linker='NetBSD (a.out) ld.so' |
9185 | else |
9186 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
9187 | soname_spec='${libname}${release}${shared_ext}$major' |
9188 | dynamic_linker='NetBSD ld.elf_so' |
9189 | fi |
9190 | shlibpath_var=LD_LIBRARY_PATH |
9191 | shlibpath_overrides_runpath=yes |
9192 | hardcode_into_libs=yes |
9193 | ;; |
9194 | |
9195 | newsos6) |
9196 | version_type=linux |
9197 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9198 | shlibpath_var=LD_LIBRARY_PATH |
9199 | shlibpath_overrides_runpath=yes |
9200 | ;; |
9201 | |
9202 | nto-qnx*) |
9203 | version_type=linux |
9204 | need_lib_prefix=no |
9205 | need_version=no |
9206 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9207 | soname_spec='${libname}${release}${shared_ext}$major' |
9208 | shlibpath_var=LD_LIBRARY_PATH |
9209 | shlibpath_overrides_runpath=yes |
9210 | ;; |
9211 | |
9212 | openbsd*) |
9213 | version_type=sunos |
9214 | sys_lib_dlsearch_path_spec="/usr/lib" |
9215 | need_lib_prefix=no |
9216 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
9217 | case $host_os in |
9218 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
9219 | *) need_version=no ;; |
9220 | esac |
9221 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9222 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
9223 | shlibpath_var=LD_LIBRARY_PATH |
9224 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
9225 | case $host_os in |
9226 | openbsd2.[89] | openbsd2.[89].*) |
9227 | shlibpath_overrides_runpath=no |
9228 | ;; |
9229 | *) |
9230 | shlibpath_overrides_runpath=yes |
9231 | ;; |
9232 | esac |
9233 | else |
9234 | shlibpath_overrides_runpath=yes |
9235 | fi |
9236 | ;; |
9237 | |
9238 | os2*) |
9239 | libname_spec='$name' |
9240 | shrext_cmds=".dll" |
9241 | need_lib_prefix=no |
9242 | library_names_spec='$libname${shared_ext} $libname.a' |
9243 | dynamic_linker='OS/2 ld.exe' |
9244 | shlibpath_var=LIBPATH |
9245 | ;; |
9246 | |
9247 | osf3* | osf4* | osf5*) |
9248 | version_type=osf |
9249 | need_lib_prefix=no |
9250 | need_version=no |
9251 | soname_spec='${libname}${release}${shared_ext}$major' |
9252 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9253 | shlibpath_var=LD_LIBRARY_PATH |
9254 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
9255 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
9256 | ;; |
9257 | |
9258 | solaris*) |
9259 | version_type=linux |
9260 | need_lib_prefix=no |
9261 | need_version=no |
9262 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9263 | soname_spec='${libname}${release}${shared_ext}$major' |
9264 | shlibpath_var=LD_LIBRARY_PATH |
9265 | shlibpath_overrides_runpath=yes |
9266 | hardcode_into_libs=yes |
9267 | # ldd complains unless libraries are executable |
9268 | postinstall_cmds='chmod +x $lib' |
9269 | ;; |
9270 | |
9271 | sunos4*) |
9272 | version_type=sunos |
9273 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
9274 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
9275 | shlibpath_var=LD_LIBRARY_PATH |
9276 | shlibpath_overrides_runpath=yes |
9277 | if test "$with_gnu_ld" = yes; then |
9278 | need_lib_prefix=no |
9279 | fi |
9280 | need_version=yes |
9281 | ;; |
9282 | |
9283 | sysv4 | sysv4.3*) |
9284 | version_type=linux |
9285 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9286 | soname_spec='${libname}${release}${shared_ext}$major' |
9287 | shlibpath_var=LD_LIBRARY_PATH |
9288 | case $host_vendor in |
9289 | sni) |
9290 | shlibpath_overrides_runpath=no |
9291 | need_lib_prefix=no |
9292 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
9293 | runpath_var=LD_RUN_PATH |
9294 | ;; |
9295 | siemens) |
9296 | need_lib_prefix=no |
9297 | ;; |
9298 | motorola) |
9299 | need_lib_prefix=no |
9300 | need_version=no |
9301 | shlibpath_overrides_runpath=no |
9302 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
9303 | ;; |
9304 | esac |
9305 | ;; |
9306 | |
9307 | sysv4*MP*) |
9308 | if test -d /usr/nec ;then |
9309 | version_type=linux |
9310 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
9311 | soname_spec='$libname${shared_ext}.$major' |
9312 | shlibpath_var=LD_LIBRARY_PATH |
9313 | fi |
9314 | ;; |
9315 | |
9316 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
9317 | version_type=freebsd-elf |
9318 | need_lib_prefix=no |
9319 | need_version=no |
9320 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
9321 | soname_spec='${libname}${release}${shared_ext}$major' |
9322 | shlibpath_var=LD_LIBRARY_PATH |
9323 | hardcode_into_libs=yes |
9324 | if test "$with_gnu_ld" = yes; then |
9325 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
9326 | shlibpath_overrides_runpath=no |
9327 | else |
9328 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
9329 | shlibpath_overrides_runpath=yes |
9330 | case $host_os in |
9331 | sco3.2v5*) |
9332 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
9333 | ;; |
9334 | esac |
9335 | fi |
9336 | sys_lib_dlsearch_path_spec='/usr/lib' |
9337 | ;; |
9338 | |
9339 | uts4*) |
9340 | version_type=linux |
9341 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
9342 | soname_spec='${libname}${release}${shared_ext}$major' |
9343 | shlibpath_var=LD_LIBRARY_PATH |
9344 | ;; |
9345 | |
9346 | *) |
9347 | dynamic_linker=no |
9348 | ;; |
9349 | esac |
9350 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
9351 | echo "${ECHO_T}$dynamic_linker" >&6; } |
9352 | test "$dynamic_linker" = no && can_build_shared=no |
9353 | |
9354 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
9355 | if test "$GCC" = yes; then |
9356 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
9357 | fi |
9358 | |
9359 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
9360 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
9361 | hardcode_action= |
9362 | if test -n "$hardcode_libdir_flag_spec" || \ |
9363 | test -n "$runpath_var" || \ |
9364 | test "X$hardcode_automatic" = "Xyes" ; then |
9365 | |
9366 | # We can hardcode non-existant directories. |
9367 | if test "$hardcode_direct" != no && |
9368 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
9369 | # have to relink, otherwise we might link with an installed library |
9370 | # when we should be linking with a yet-to-be-installed one |
9371 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && |
9372 | test "$hardcode_minus_L" != no; then |
9373 | # Linking always hardcodes the temporary library directory. |
9374 | hardcode_action=relink |
9375 | else |
9376 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
9377 | hardcode_action=immediate |
9378 | fi |
9379 | else |
9380 | # We cannot hardcode anything, or else we can only hardcode existing |
9381 | # directories. |
9382 | hardcode_action=unsupported |
9383 | fi |
9384 | { echo "$as_me:$LINENO: result: $hardcode_action" >&5 |
9385 | echo "${ECHO_T}$hardcode_action" >&6; } |
9386 | |
9387 | if test "$hardcode_action" = relink; then |
9388 | # Fast installation is not supported |
9389 | enable_fast_install=no |
9390 | elif test "$shlibpath_overrides_runpath" = yes || |
9391 | test "$enable_shared" = no; then |
9392 | # Fast installation is not necessary |
9393 | enable_fast_install=needless |
9394 | fi |
9395 | |
9396 | striplib= |
9397 | old_striplib= |
9398 | { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 |
9399 | echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; } |
9400 | if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then |
9401 | test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" |
9402 | test -z "$striplib" && striplib="$STRIP --strip-unneeded" |
9403 | { echo "$as_me:$LINENO: result: yes" >&5 |
9404 | echo "${ECHO_T}yes" >&6; } |
9405 | else |
9406 | # FIXME - insert some real tests, host_os isn't really good enough |
9407 | case $host_os in |
9408 | darwin*) |
9409 | if test -n "$STRIP" ; then |
9410 | striplib="$STRIP -x" |
9411 | { echo "$as_me:$LINENO: result: yes" >&5 |
9412 | echo "${ECHO_T}yes" >&6; } |
9413 | else |
9414 | { echo "$as_me:$LINENO: result: no" >&5 |
9415 | echo "${ECHO_T}no" >&6; } |
9416 | fi |
9417 | ;; |
9418 | *) |
9419 | { echo "$as_me:$LINENO: result: no" >&5 |
9420 | echo "${ECHO_T}no" >&6; } |
9421 | ;; |
9422 | esac |
9423 | fi |
9424 | |
9425 | if test "x$enable_dlopen" != xyes; then |
9426 | enable_dlopen=unknown |
9427 | enable_dlopen_self=unknown |
9428 | enable_dlopen_self_static=unknown |
9429 | else |
9430 | lt_cv_dlopen=no |
9431 | lt_cv_dlopen_libs= |
9432 | |
9433 | case $host_os in |
9434 | beos*) |
9435 | lt_cv_dlopen="load_add_on" |
9436 | lt_cv_dlopen_libs= |
9437 | lt_cv_dlopen_self=yes |
9438 | ;; |
9439 | |
9440 | mingw* | pw32*) |
9441 | lt_cv_dlopen="LoadLibrary" |
9442 | lt_cv_dlopen_libs= |
9443 | ;; |
9444 | |
9445 | cygwin*) |
9446 | lt_cv_dlopen="dlopen" |
9447 | lt_cv_dlopen_libs= |
9448 | ;; |
9449 | |
9450 | darwin*) |
9451 | # if libdl is installed we need to link against it |
9452 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9453 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
9454 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9455 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9456 | else |
9457 | ac_check_lib_save_LIBS=$LIBS |
9458 | LIBS="-ldl $LIBS" |
9459 | cat >conftest.$ac_ext <<_ACEOF |
9460 | /* confdefs.h. */ |
9461 | _ACEOF |
9462 | cat confdefs.h >>conftest.$ac_ext |
9463 | cat >>conftest.$ac_ext <<_ACEOF |
9464 | /* end confdefs.h. */ |
9465 | |
9466 | /* Override any GCC internal prototype to avoid an error. |
9467 | Use char because int might match the return type of a GCC |
9468 | builtin and then its argument prototype would still apply. */ |
9469 | #ifdef __cplusplus |
9470 | extern "C" |
9471 | #endif |
9472 | char dlopen (); |
9473 | int |
9474 | main () |
9475 | { |
9476 | return dlopen (); |
9477 | ; |
9478 | return 0; |
9479 | } |
9480 | _ACEOF |
9481 | rm -f conftest.$ac_objext conftest$ac_exeext |
9482 | if { (ac_try="$ac_link" |
9483 | case "(($ac_try" in |
9484 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9485 | *) ac_try_echo=$ac_try;; |
9486 | esac |
9487 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9488 | (eval "$ac_link") 2>conftest.er1 |
9489 | ac_status=$? |
9490 | grep -v '^ *+' conftest.er1 >conftest.err |
9491 | rm -f conftest.er1 |
9492 | cat conftest.err >&5 |
9493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9494 | (exit $ac_status); } && |
9495 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9496 | { (case "(($ac_try" in |
9497 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9498 | *) ac_try_echo=$ac_try;; |
9499 | esac |
9500 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9501 | (eval "$ac_try") 2>&5 |
9502 | ac_status=$? |
9503 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9504 | (exit $ac_status); }; } && |
9505 | { ac_try='test -s conftest$ac_exeext' |
9506 | { (case "(($ac_try" in |
9507 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9508 | *) ac_try_echo=$ac_try;; |
9509 | esac |
9510 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9511 | (eval "$ac_try") 2>&5 |
9512 | ac_status=$? |
9513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9514 | (exit $ac_status); }; }; then |
9515 | ac_cv_lib_dl_dlopen=yes |
9516 | else |
9517 | echo "$as_me: failed program was:" >&5 |
9518 | sed 's/^/| /' conftest.$ac_ext >&5 |
9519 | |
9520 | ac_cv_lib_dl_dlopen=no |
9521 | fi |
9522 | |
9523 | rm -f core conftest.err conftest.$ac_objext \ |
9524 | conftest$ac_exeext conftest.$ac_ext |
9525 | LIBS=$ac_check_lib_save_LIBS |
9526 | fi |
9527 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9528 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
9529 | if test $ac_cv_lib_dl_dlopen = yes; then |
9530 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9531 | else |
9532 | |
9533 | lt_cv_dlopen="dyld" |
9534 | lt_cv_dlopen_libs= |
9535 | lt_cv_dlopen_self=yes |
9536 | |
9537 | fi |
9538 | |
9539 | ;; |
9540 | |
9541 | *) |
9542 | { echo "$as_me:$LINENO: checking for shl_load" >&5 |
9543 | echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; } |
9544 | if test "${ac_cv_func_shl_load+set}" = set; then |
9545 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9546 | else |
9547 | cat >conftest.$ac_ext <<_ACEOF |
9548 | /* confdefs.h. */ |
9549 | _ACEOF |
9550 | cat confdefs.h >>conftest.$ac_ext |
9551 | cat >>conftest.$ac_ext <<_ACEOF |
9552 | /* end confdefs.h. */ |
9553 | /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. |
9554 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9555 | #define shl_load innocuous_shl_load |
9556 | |
9557 | /* System header to define __stub macros and hopefully few prototypes, |
9558 | which can conflict with char shl_load (); below. |
9559 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9560 | <limits.h> exists even on freestanding compilers. */ |
9561 | |
9562 | #ifdef __STDC__ |
9563 | # include <limits.h> |
9564 | #else |
9565 | # include <assert.h> |
9566 | #endif |
9567 | |
9568 | #undef shl_load |
9569 | |
9570 | /* Override any GCC internal prototype to avoid an error. |
9571 | Use char because int might match the return type of a GCC |
9572 | builtin and then its argument prototype would still apply. */ |
9573 | #ifdef __cplusplus |
9574 | extern "C" |
9575 | #endif |
9576 | char shl_load (); |
9577 | /* The GNU C library defines this for functions which it implements |
9578 | to always fail with ENOSYS. Some functions are actually named |
9579 | something starting with __ and the normal name is an alias. */ |
9580 | #if defined __stub_shl_load || defined __stub___shl_load |
9581 | choke me |
9582 | #endif |
9583 | |
9584 | int |
9585 | main () |
9586 | { |
9587 | return shl_load (); |
9588 | ; |
9589 | return 0; |
9590 | } |
9591 | _ACEOF |
9592 | rm -f conftest.$ac_objext conftest$ac_exeext |
9593 | if { (ac_try="$ac_link" |
9594 | case "(($ac_try" in |
9595 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9596 | *) ac_try_echo=$ac_try;; |
9597 | esac |
9598 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9599 | (eval "$ac_link") 2>conftest.er1 |
9600 | ac_status=$? |
9601 | grep -v '^ *+' conftest.er1 >conftest.err |
9602 | rm -f conftest.er1 |
9603 | cat conftest.err >&5 |
9604 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9605 | (exit $ac_status); } && |
9606 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9607 | { (case "(($ac_try" in |
9608 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9609 | *) ac_try_echo=$ac_try;; |
9610 | esac |
9611 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9612 | (eval "$ac_try") 2>&5 |
9613 | ac_status=$? |
9614 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9615 | (exit $ac_status); }; } && |
9616 | { ac_try='test -s conftest$ac_exeext' |
9617 | { (case "(($ac_try" in |
9618 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9619 | *) ac_try_echo=$ac_try;; |
9620 | esac |
9621 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9622 | (eval "$ac_try") 2>&5 |
9623 | ac_status=$? |
9624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9625 | (exit $ac_status); }; }; then |
9626 | ac_cv_func_shl_load=yes |
9627 | else |
9628 | echo "$as_me: failed program was:" >&5 |
9629 | sed 's/^/| /' conftest.$ac_ext >&5 |
9630 | |
9631 | ac_cv_func_shl_load=no |
9632 | fi |
9633 | |
9634 | rm -f core conftest.err conftest.$ac_objext \ |
9635 | conftest$ac_exeext conftest.$ac_ext |
9636 | fi |
9637 | { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 |
9638 | echo "${ECHO_T}$ac_cv_func_shl_load" >&6; } |
9639 | if test $ac_cv_func_shl_load = yes; then |
9640 | lt_cv_dlopen="shl_load" |
9641 | else |
9642 | { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 |
9643 | echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; } |
9644 | if test "${ac_cv_lib_dld_shl_load+set}" = set; then |
9645 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9646 | else |
9647 | ac_check_lib_save_LIBS=$LIBS |
9648 | LIBS="-ldld $LIBS" |
9649 | cat >conftest.$ac_ext <<_ACEOF |
9650 | /* confdefs.h. */ |
9651 | _ACEOF |
9652 | cat confdefs.h >>conftest.$ac_ext |
9653 | cat >>conftest.$ac_ext <<_ACEOF |
9654 | /* end confdefs.h. */ |
9655 | |
9656 | /* Override any GCC internal prototype to avoid an error. |
9657 | Use char because int might match the return type of a GCC |
9658 | builtin and then its argument prototype would still apply. */ |
9659 | #ifdef __cplusplus |
9660 | extern "C" |
9661 | #endif |
9662 | char shl_load (); |
9663 | int |
9664 | main () |
9665 | { |
9666 | return shl_load (); |
9667 | ; |
9668 | return 0; |
9669 | } |
9670 | _ACEOF |
9671 | rm -f conftest.$ac_objext conftest$ac_exeext |
9672 | if { (ac_try="$ac_link" |
9673 | case "(($ac_try" in |
9674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9675 | *) ac_try_echo=$ac_try;; |
9676 | esac |
9677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9678 | (eval "$ac_link") 2>conftest.er1 |
9679 | ac_status=$? |
9680 | grep -v '^ *+' conftest.er1 >conftest.err |
9681 | rm -f conftest.er1 |
9682 | cat conftest.err >&5 |
9683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9684 | (exit $ac_status); } && |
9685 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9686 | { (case "(($ac_try" in |
9687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9688 | *) ac_try_echo=$ac_try;; |
9689 | esac |
9690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9691 | (eval "$ac_try") 2>&5 |
9692 | ac_status=$? |
9693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9694 | (exit $ac_status); }; } && |
9695 | { ac_try='test -s conftest$ac_exeext' |
9696 | { (case "(($ac_try" in |
9697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9698 | *) ac_try_echo=$ac_try;; |
9699 | esac |
9700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9701 | (eval "$ac_try") 2>&5 |
9702 | ac_status=$? |
9703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9704 | (exit $ac_status); }; }; then |
9705 | ac_cv_lib_dld_shl_load=yes |
9706 | else |
9707 | echo "$as_me: failed program was:" >&5 |
9708 | sed 's/^/| /' conftest.$ac_ext >&5 |
9709 | |
9710 | ac_cv_lib_dld_shl_load=no |
9711 | fi |
9712 | |
9713 | rm -f core conftest.err conftest.$ac_objext \ |
9714 | conftest$ac_exeext conftest.$ac_ext |
9715 | LIBS=$ac_check_lib_save_LIBS |
9716 | fi |
9717 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 |
9718 | echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; } |
9719 | if test $ac_cv_lib_dld_shl_load = yes; then |
9720 | lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" |
9721 | else |
9722 | { echo "$as_me:$LINENO: checking for dlopen" >&5 |
9723 | echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; } |
9724 | if test "${ac_cv_func_dlopen+set}" = set; then |
9725 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9726 | else |
9727 | cat >conftest.$ac_ext <<_ACEOF |
9728 | /* confdefs.h. */ |
9729 | _ACEOF |
9730 | cat confdefs.h >>conftest.$ac_ext |
9731 | cat >>conftest.$ac_ext <<_ACEOF |
9732 | /* end confdefs.h. */ |
9733 | /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. |
9734 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
9735 | #define dlopen innocuous_dlopen |
9736 | |
9737 | /* System header to define __stub macros and hopefully few prototypes, |
9738 | which can conflict with char dlopen (); below. |
9739 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
9740 | <limits.h> exists even on freestanding compilers. */ |
9741 | |
9742 | #ifdef __STDC__ |
9743 | # include <limits.h> |
9744 | #else |
9745 | # include <assert.h> |
9746 | #endif |
9747 | |
9748 | #undef dlopen |
9749 | |
9750 | /* Override any GCC internal prototype to avoid an error. |
9751 | Use char because int might match the return type of a GCC |
9752 | builtin and then its argument prototype would still apply. */ |
9753 | #ifdef __cplusplus |
9754 | extern "C" |
9755 | #endif |
9756 | char dlopen (); |
9757 | /* The GNU C library defines this for functions which it implements |
9758 | to always fail with ENOSYS. Some functions are actually named |
9759 | something starting with __ and the normal name is an alias. */ |
9760 | #if defined __stub_dlopen || defined __stub___dlopen |
9761 | choke me |
9762 | #endif |
9763 | |
9764 | int |
9765 | main () |
9766 | { |
9767 | return dlopen (); |
9768 | ; |
9769 | return 0; |
9770 | } |
9771 | _ACEOF |
9772 | rm -f conftest.$ac_objext conftest$ac_exeext |
9773 | if { (ac_try="$ac_link" |
9774 | case "(($ac_try" in |
9775 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9776 | *) ac_try_echo=$ac_try;; |
9777 | esac |
9778 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9779 | (eval "$ac_link") 2>conftest.er1 |
9780 | ac_status=$? |
9781 | grep -v '^ *+' conftest.er1 >conftest.err |
9782 | rm -f conftest.er1 |
9783 | cat conftest.err >&5 |
9784 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9785 | (exit $ac_status); } && |
9786 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9787 | { (case "(($ac_try" in |
9788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9789 | *) ac_try_echo=$ac_try;; |
9790 | esac |
9791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9792 | (eval "$ac_try") 2>&5 |
9793 | ac_status=$? |
9794 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9795 | (exit $ac_status); }; } && |
9796 | { ac_try='test -s conftest$ac_exeext' |
9797 | { (case "(($ac_try" in |
9798 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9799 | *) ac_try_echo=$ac_try;; |
9800 | esac |
9801 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9802 | (eval "$ac_try") 2>&5 |
9803 | ac_status=$? |
9804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9805 | (exit $ac_status); }; }; then |
9806 | ac_cv_func_dlopen=yes |
9807 | else |
9808 | echo "$as_me: failed program was:" >&5 |
9809 | sed 's/^/| /' conftest.$ac_ext >&5 |
9810 | |
9811 | ac_cv_func_dlopen=no |
9812 | fi |
9813 | |
9814 | rm -f core conftest.err conftest.$ac_objext \ |
9815 | conftest$ac_exeext conftest.$ac_ext |
9816 | fi |
9817 | { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 |
9818 | echo "${ECHO_T}$ac_cv_func_dlopen" >&6; } |
9819 | if test $ac_cv_func_dlopen = yes; then |
9820 | lt_cv_dlopen="dlopen" |
9821 | else |
9822 | { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 |
9823 | echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; } |
9824 | if test "${ac_cv_lib_dl_dlopen+set}" = set; then |
9825 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9826 | else |
9827 | ac_check_lib_save_LIBS=$LIBS |
9828 | LIBS="-ldl $LIBS" |
9829 | cat >conftest.$ac_ext <<_ACEOF |
9830 | /* confdefs.h. */ |
9831 | _ACEOF |
9832 | cat confdefs.h >>conftest.$ac_ext |
9833 | cat >>conftest.$ac_ext <<_ACEOF |
9834 | /* end confdefs.h. */ |
9835 | |
9836 | /* Override any GCC internal prototype to avoid an error. |
9837 | Use char because int might match the return type of a GCC |
9838 | builtin and then its argument prototype would still apply. */ |
9839 | #ifdef __cplusplus |
9840 | extern "C" |
9841 | #endif |
9842 | char dlopen (); |
9843 | int |
9844 | main () |
9845 | { |
9846 | return dlopen (); |
9847 | ; |
9848 | return 0; |
9849 | } |
9850 | _ACEOF |
9851 | rm -f conftest.$ac_objext conftest$ac_exeext |
9852 | if { (ac_try="$ac_link" |
9853 | case "(($ac_try" in |
9854 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9855 | *) ac_try_echo=$ac_try;; |
9856 | esac |
9857 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9858 | (eval "$ac_link") 2>conftest.er1 |
9859 | ac_status=$? |
9860 | grep -v '^ *+' conftest.er1 >conftest.err |
9861 | rm -f conftest.er1 |
9862 | cat conftest.err >&5 |
9863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9864 | (exit $ac_status); } && |
9865 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9866 | { (case "(($ac_try" in |
9867 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9868 | *) ac_try_echo=$ac_try;; |
9869 | esac |
9870 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9871 | (eval "$ac_try") 2>&5 |
9872 | ac_status=$? |
9873 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9874 | (exit $ac_status); }; } && |
9875 | { ac_try='test -s conftest$ac_exeext' |
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_try") 2>&5 |
9882 | ac_status=$? |
9883 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9884 | (exit $ac_status); }; }; then |
9885 | ac_cv_lib_dl_dlopen=yes |
9886 | else |
9887 | echo "$as_me: failed program was:" >&5 |
9888 | sed 's/^/| /' conftest.$ac_ext >&5 |
9889 | |
9890 | ac_cv_lib_dl_dlopen=no |
9891 | fi |
9892 | |
9893 | rm -f core conftest.err conftest.$ac_objext \ |
9894 | conftest$ac_exeext conftest.$ac_ext |
9895 | LIBS=$ac_check_lib_save_LIBS |
9896 | fi |
9897 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 |
9898 | echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; } |
9899 | if test $ac_cv_lib_dl_dlopen = yes; then |
9900 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" |
9901 | else |
9902 | { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 |
9903 | echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; } |
9904 | if test "${ac_cv_lib_svld_dlopen+set}" = set; then |
9905 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9906 | else |
9907 | ac_check_lib_save_LIBS=$LIBS |
9908 | LIBS="-lsvld $LIBS" |
9909 | cat >conftest.$ac_ext <<_ACEOF |
9910 | /* confdefs.h. */ |
9911 | _ACEOF |
9912 | cat confdefs.h >>conftest.$ac_ext |
9913 | cat >>conftest.$ac_ext <<_ACEOF |
9914 | /* end confdefs.h. */ |
9915 | |
9916 | /* Override any GCC internal prototype to avoid an error. |
9917 | Use char because int might match the return type of a GCC |
9918 | builtin and then its argument prototype would still apply. */ |
9919 | #ifdef __cplusplus |
9920 | extern "C" |
9921 | #endif |
9922 | char dlopen (); |
9923 | int |
9924 | main () |
9925 | { |
9926 | return dlopen (); |
9927 | ; |
9928 | return 0; |
9929 | } |
9930 | _ACEOF |
9931 | rm -f conftest.$ac_objext conftest$ac_exeext |
9932 | if { (ac_try="$ac_link" |
9933 | case "(($ac_try" in |
9934 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9935 | *) ac_try_echo=$ac_try;; |
9936 | esac |
9937 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9938 | (eval "$ac_link") 2>conftest.er1 |
9939 | ac_status=$? |
9940 | grep -v '^ *+' conftest.er1 >conftest.err |
9941 | rm -f conftest.er1 |
9942 | cat conftest.err >&5 |
9943 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9944 | (exit $ac_status); } && |
9945 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
9946 | { (case "(($ac_try" in |
9947 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9948 | *) ac_try_echo=$ac_try;; |
9949 | esac |
9950 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9951 | (eval "$ac_try") 2>&5 |
9952 | ac_status=$? |
9953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9954 | (exit $ac_status); }; } && |
9955 | { ac_try='test -s conftest$ac_exeext' |
9956 | { (case "(($ac_try" in |
9957 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
9958 | *) ac_try_echo=$ac_try;; |
9959 | esac |
9960 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
9961 | (eval "$ac_try") 2>&5 |
9962 | ac_status=$? |
9963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
9964 | (exit $ac_status); }; }; then |
9965 | ac_cv_lib_svld_dlopen=yes |
9966 | else |
9967 | echo "$as_me: failed program was:" >&5 |
9968 | sed 's/^/| /' conftest.$ac_ext >&5 |
9969 | |
9970 | ac_cv_lib_svld_dlopen=no |
9971 | fi |
9972 | |
9973 | rm -f core conftest.err conftest.$ac_objext \ |
9974 | conftest$ac_exeext conftest.$ac_ext |
9975 | LIBS=$ac_check_lib_save_LIBS |
9976 | fi |
9977 | { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 |
9978 | echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; } |
9979 | if test $ac_cv_lib_svld_dlopen = yes; then |
9980 | lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" |
9981 | else |
9982 | { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 |
9983 | echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; } |
9984 | if test "${ac_cv_lib_dld_dld_link+set}" = set; then |
9985 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
9986 | else |
9987 | ac_check_lib_save_LIBS=$LIBS |
9988 | LIBS="-ldld $LIBS" |
9989 | cat >conftest.$ac_ext <<_ACEOF |
9990 | /* confdefs.h. */ |
9991 | _ACEOF |
9992 | cat confdefs.h >>conftest.$ac_ext |
9993 | cat >>conftest.$ac_ext <<_ACEOF |
9994 | /* end confdefs.h. */ |
9995 | |
9996 | /* Override any GCC internal prototype to avoid an error. |
9997 | Use char because int might match the return type of a GCC |
9998 | builtin and then its argument prototype would still apply. */ |
9999 | #ifdef __cplusplus |
10000 | extern "C" |
10001 | #endif |
10002 | char dld_link (); |
10003 | int |
10004 | main () |
10005 | { |
10006 | return dld_link (); |
10007 | ; |
10008 | return 0; |
10009 | } |
10010 | _ACEOF |
10011 | rm -f conftest.$ac_objext conftest$ac_exeext |
10012 | if { (ac_try="$ac_link" |
10013 | case "(($ac_try" in |
10014 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10015 | *) ac_try_echo=$ac_try;; |
10016 | esac |
10017 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10018 | (eval "$ac_link") 2>conftest.er1 |
10019 | ac_status=$? |
10020 | grep -v '^ *+' conftest.er1 >conftest.err |
10021 | rm -f conftest.er1 |
10022 | cat conftest.err >&5 |
10023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10024 | (exit $ac_status); } && |
10025 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
10026 | { (case "(($ac_try" in |
10027 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10028 | *) ac_try_echo=$ac_try;; |
10029 | esac |
10030 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10031 | (eval "$ac_try") 2>&5 |
10032 | ac_status=$? |
10033 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10034 | (exit $ac_status); }; } && |
10035 | { ac_try='test -s conftest$ac_exeext' |
10036 | { (case "(($ac_try" in |
10037 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
10038 | *) ac_try_echo=$ac_try;; |
10039 | esac |
10040 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
10041 | (eval "$ac_try") 2>&5 |
10042 | ac_status=$? |
10043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10044 | (exit $ac_status); }; }; then |
10045 | ac_cv_lib_dld_dld_link=yes |
10046 | else |
10047 | echo "$as_me: failed program was:" >&5 |
10048 | sed 's/^/| /' conftest.$ac_ext >&5 |
10049 | |
10050 | ac_cv_lib_dld_dld_link=no |
10051 | fi |
10052 | |
10053 | rm -f core conftest.err conftest.$ac_objext \ |
10054 | conftest$ac_exeext conftest.$ac_ext |
10055 | LIBS=$ac_check_lib_save_LIBS |
10056 | fi |
10057 | { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 |
10058 | echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; } |
10059 | if test $ac_cv_lib_dld_dld_link = yes; then |
10060 | lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" |
10061 | fi |
10062 | |
10063 | |
10064 | fi |
10065 | |
10066 | |
10067 | fi |
10068 | |
10069 | |
10070 | fi |
10071 | |
10072 | |
10073 | fi |
10074 | |
10075 | |
10076 | fi |
10077 | |
10078 | ;; |
10079 | esac |
10080 | |
10081 | if test "x$lt_cv_dlopen" != xno; then |
10082 | enable_dlopen=yes |
10083 | else |
10084 | enable_dlopen=no |
10085 | fi |
10086 | |
10087 | case $lt_cv_dlopen in |
10088 | dlopen) |
10089 | save_CPPFLAGS="$CPPFLAGS" |
10090 | test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" |
10091 | |
10092 | save_LDFLAGS="$LDFLAGS" |
10093 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" |
10094 | |
10095 | save_LIBS="$LIBS" |
10096 | LIBS="$lt_cv_dlopen_libs $LIBS" |
10097 | |
10098 | { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 |
10099 | echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; } |
10100 | if test "${lt_cv_dlopen_self+set}" = set; then |
10101 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10102 | else |
10103 | if test "$cross_compiling" = yes; then : |
10104 | lt_cv_dlopen_self=cross |
10105 | else |
10106 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10107 | lt_status=$lt_dlunknown |
10108 | cat > conftest.$ac_ext <<EOF |
10109 | #line 10109 "configure" |
10110 | #include "confdefs.h" |
10111 | |
10112 | #if HAVE_DLFCN_H |
10113 | #include <dlfcn.h> |
10114 | #endif |
10115 | |
10116 | #include <stdio.h> |
10117 | |
10118 | #ifdef RTLD_GLOBAL |
10119 | # define LT_DLGLOBAL RTLD_GLOBAL |
10120 | #else |
10121 | # ifdef DL_GLOBAL |
10122 | # define LT_DLGLOBAL DL_GLOBAL |
10123 | # else |
10124 | # define LT_DLGLOBAL 0 |
10125 | # endif |
10126 | #endif |
10127 | |
10128 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10129 | find out it does not work in some platform. */ |
10130 | #ifndef LT_DLLAZY_OR_NOW |
10131 | # ifdef RTLD_LAZY |
10132 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
10133 | # else |
10134 | # ifdef DL_LAZY |
10135 | # define LT_DLLAZY_OR_NOW DL_LAZY |
10136 | # else |
10137 | # ifdef RTLD_NOW |
10138 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10139 | # else |
10140 | # ifdef DL_NOW |
10141 | # define LT_DLLAZY_OR_NOW DL_NOW |
10142 | # else |
10143 | # define LT_DLLAZY_OR_NOW 0 |
10144 | # endif |
10145 | # endif |
10146 | # endif |
10147 | # endif |
10148 | #endif |
10149 | |
10150 | #ifdef __cplusplus |
10151 | extern "C" void exit (int); |
10152 | #endif |
10153 | |
10154 | void fnord() { int i=42;} |
10155 | int main () |
10156 | { |
10157 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10158 | int status = $lt_dlunknown; |
10159 | |
10160 | if (self) |
10161 | { |
10162 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10163 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10164 | /* dlclose (self); */ |
10165 | } |
10166 | else |
10167 | puts (dlerror ()); |
10168 | |
10169 | exit (status); |
10170 | } |
10171 | EOF |
10172 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10173 | (eval $ac_link) 2>&5 |
10174 | ac_status=$? |
10175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10176 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10177 | (./conftest; exit; ) >&5 2>/dev/null |
10178 | lt_status=$? |
10179 | case x$lt_status in |
10180 | x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; |
10181 | x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; |
10182 | x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; |
10183 | esac |
10184 | else : |
10185 | # compilation failed |
10186 | lt_cv_dlopen_self=no |
10187 | fi |
10188 | fi |
10189 | rm -fr conftest* |
10190 | |
10191 | |
10192 | fi |
10193 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 |
10194 | echo "${ECHO_T}$lt_cv_dlopen_self" >&6; } |
10195 | |
10196 | if test "x$lt_cv_dlopen_self" = xyes; then |
10197 | wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" |
10198 | { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 |
10199 | echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; } |
10200 | if test "${lt_cv_dlopen_self_static+set}" = set; then |
10201 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
10202 | else |
10203 | if test "$cross_compiling" = yes; then : |
10204 | lt_cv_dlopen_self_static=cross |
10205 | else |
10206 | lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 |
10207 | lt_status=$lt_dlunknown |
10208 | cat > conftest.$ac_ext <<EOF |
10209 | #line 10209 "configure" |
10210 | #include "confdefs.h" |
10211 | |
10212 | #if HAVE_DLFCN_H |
10213 | #include <dlfcn.h> |
10214 | #endif |
10215 | |
10216 | #include <stdio.h> |
10217 | |
10218 | #ifdef RTLD_GLOBAL |
10219 | # define LT_DLGLOBAL RTLD_GLOBAL |
10220 | #else |
10221 | # ifdef DL_GLOBAL |
10222 | # define LT_DLGLOBAL DL_GLOBAL |
10223 | # else |
10224 | # define LT_DLGLOBAL 0 |
10225 | # endif |
10226 | #endif |
10227 | |
10228 | /* We may have to define LT_DLLAZY_OR_NOW in the command line if we |
10229 | find out it does not work in some platform. */ |
10230 | #ifndef LT_DLLAZY_OR_NOW |
10231 | # ifdef RTLD_LAZY |
10232 | # define LT_DLLAZY_OR_NOW RTLD_LAZY |
10233 | # else |
10234 | # ifdef DL_LAZY |
10235 | # define LT_DLLAZY_OR_NOW DL_LAZY |
10236 | # else |
10237 | # ifdef RTLD_NOW |
10238 | # define LT_DLLAZY_OR_NOW RTLD_NOW |
10239 | # else |
10240 | # ifdef DL_NOW |
10241 | # define LT_DLLAZY_OR_NOW DL_NOW |
10242 | # else |
10243 | # define LT_DLLAZY_OR_NOW 0 |
10244 | # endif |
10245 | # endif |
10246 | # endif |
10247 | # endif |
10248 | #endif |
10249 | |
10250 | #ifdef __cplusplus |
10251 | extern "C" void exit (int); |
10252 | #endif |
10253 | |
10254 | void fnord() { int i=42;} |
10255 | int main () |
10256 | { |
10257 | void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); |
10258 | int status = $lt_dlunknown; |
10259 | |
10260 | if (self) |
10261 | { |
10262 | if (dlsym (self,"fnord")) status = $lt_dlno_uscore; |
10263 | else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; |
10264 | /* dlclose (self); */ |
10265 | } |
10266 | else |
10267 | puts (dlerror ()); |
10268 | |
10269 | exit (status); |
10270 | } |
10271 | EOF |
10272 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 |
10273 | (eval $ac_link) 2>&5 |
10274 | ac_status=$? |
10275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
10276 | (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then |
10277 | (./conftest; exit; ) >&5 2>/dev/null |
10278 | lt_status=$? |
10279 | case x$lt_status in |
10280 | x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; |
10281 | x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; |
10282 | x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; |
10283 | esac |
10284 | else : |
10285 | # compilation failed |
10286 | lt_cv_dlopen_self_static=no |
10287 | fi |
10288 | fi |
10289 | rm -fr conftest* |
10290 | |
10291 | |
10292 | fi |
10293 | { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 |
10294 | echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; } |
10295 | fi |
10296 | |
10297 | CPPFLAGS="$save_CPPFLAGS" |
10298 | LDFLAGS="$save_LDFLAGS" |
10299 | LIBS="$save_LIBS" |
10300 | ;; |
10301 | esac |
10302 | |
10303 | case $lt_cv_dlopen_self in |
10304 | yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; |
10305 | *) enable_dlopen_self=unknown ;; |
10306 | esac |
10307 | |
10308 | case $lt_cv_dlopen_self_static in |
10309 | yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; |
10310 | *) enable_dlopen_self_static=unknown ;; |
10311 | esac |
10312 | fi |
10313 | |
10314 | |
10315 | # Report which library types will actually be built |
10316 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
10317 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
10318 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
10319 | echo "${ECHO_T}$can_build_shared" >&6; } |
10320 | |
10321 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
10322 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
10323 | test "$can_build_shared" = "no" && enable_shared=no |
10324 | |
10325 | # On AIX, shared libraries and static libraries use the same namespace, and |
10326 | # are all built from PIC. |
10327 | case $host_os in |
10328 | aix3*) |
10329 | test "$enable_shared" = yes && enable_static=no |
10330 | if test -n "$RANLIB"; then |
10331 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
10332 | postinstall_cmds='$RANLIB $lib' |
10333 | fi |
10334 | ;; |
10335 | |
10336 | aix4* | aix5*) |
10337 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
10338 | test "$enable_shared" = yes && enable_static=no |
10339 | fi |
10340 | ;; |
10341 | esac |
10342 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
10343 | echo "${ECHO_T}$enable_shared" >&6; } |
10344 | |
10345 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
10346 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
10347 | # Make sure either enable_shared or enable_static is yes. |
10348 | test "$enable_shared" = yes || enable_static=yes |
10349 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
10350 | echo "${ECHO_T}$enable_static" >&6; } |
10351 | |
10352 | # The else clause should only fire when bootstrapping the |
10353 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
10354 | # with your package, and you will get complaints that there are |
10355 | # no rules to generate ltmain.sh. |
10356 | if test -f "$ltmain"; then |
10357 | # See if we are running on zsh, and set the options which allow our commands through |
10358 | # without removal of \ escapes. |
10359 | if test -n "${ZSH_VERSION+set}" ; then |
10360 | setopt NO_GLOB_SUBST |
10361 | fi |
10362 | # Now quote all the things that may contain metacharacters while being |
10363 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
10364 | # variables and quote the copies for generation of the libtool script. |
10365 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
10366 | SED SHELL STRIP \ |
10367 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
10368 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
10369 | deplibs_check_method reload_flag reload_cmds need_locks \ |
10370 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
10371 | lt_cv_sys_global_symbol_to_c_name_address \ |
10372 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
10373 | old_postinstall_cmds old_postuninstall_cmds \ |
10374 | compiler \ |
10375 | CC \ |
10376 | LD \ |
10377 | lt_prog_compiler_wl \ |
10378 | lt_prog_compiler_pic \ |
10379 | lt_prog_compiler_static \ |
10380 | lt_prog_compiler_no_builtin_flag \ |
10381 | export_dynamic_flag_spec \ |
10382 | thread_safe_flag_spec \ |
10383 | whole_archive_flag_spec \ |
10384 | enable_shared_with_static_runtimes \ |
10385 | old_archive_cmds \ |
10386 | old_archive_from_new_cmds \ |
10387 | predep_objects \ |
10388 | postdep_objects \ |
10389 | predeps \ |
10390 | postdeps \ |
10391 | compiler_lib_search_path \ |
10392 | archive_cmds \ |
10393 | archive_expsym_cmds \ |
10394 | postinstall_cmds \ |
10395 | postuninstall_cmds \ |
10396 | old_archive_from_expsyms_cmds \ |
10397 | allow_undefined_flag \ |
10398 | no_undefined_flag \ |
10399 | export_symbols_cmds \ |
10400 | hardcode_libdir_flag_spec \ |
10401 | hardcode_libdir_flag_spec_ld \ |
10402 | hardcode_libdir_separator \ |
10403 | hardcode_automatic \ |
10404 | module_cmds \ |
10405 | module_expsym_cmds \ |
10406 | lt_cv_prog_compiler_c_o \ |
10407 | exclude_expsyms \ |
10408 | include_expsyms; do |
10409 | |
10410 | case $var in |
10411 | old_archive_cmds | \ |
10412 | old_archive_from_new_cmds | \ |
10413 | archive_cmds | \ |
10414 | archive_expsym_cmds | \ |
10415 | module_cmds | \ |
10416 | module_expsym_cmds | \ |
10417 | old_archive_from_expsyms_cmds | \ |
10418 | export_symbols_cmds | \ |
10419 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
10420 | postinstall_cmds | postuninstall_cmds | \ |
10421 | old_postinstall_cmds | old_postuninstall_cmds | \ |
10422 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
10423 | # Double-quote double-evaled strings. |
10424 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
10425 | ;; |
10426 | *) |
10427 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
10428 | ;; |
10429 | esac |
10430 | done |
10431 | |
10432 | case $lt_echo in |
10433 | *'\$0 --fallback-echo"') |
10434 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
10435 | ;; |
10436 | esac |
10437 | |
10438 | cfgfile="${ofile}T" |
10439 | trap "$rm \"$cfgfile\"; exit 1" 1 2 15 |
10440 | $rm -f "$cfgfile" |
10441 | { echo "$as_me:$LINENO: creating $ofile" >&5 |
10442 | echo "$as_me: creating $ofile" >&6;} |
10443 | |
10444 | cat <<__EOF__ >> "$cfgfile" |
10445 | #! $SHELL |
10446 | |
10447 | # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. |
10448 | # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) |
10449 | # NOTE: Changes made to this file will be lost: look at ltmain.sh. |
10450 | # |
10451 | # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 |
10452 | # Free Software Foundation, Inc. |
10453 | # |
10454 | # This file is part of GNU Libtool: |
10455 | # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 |
10456 | # |
10457 | # This program is free software; you can redistribute it and/or modify |
10458 | # it under the terms of the GNU General Public License as published by |
10459 | # the Free Software Foundation; either version 2 of the License, or |
10460 | # (at your option) any later version. |
10461 | # |
10462 | # This program is distributed in the hope that it will be useful, but |
10463 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
10464 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
10465 | # General Public License for more details. |
10466 | # |
10467 | # You should have received a copy of the GNU General Public License |
10468 | # along with this program; if not, write to the Free Software |
10469 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
10470 | # |
10471 | # As a special exception to the GNU General Public License, if you |
10472 | # distribute this file as part of a program that contains a |
10473 | # configuration script generated by Autoconf, you may include it under |
10474 | # the same distribution terms that you use for the rest of that program. |
10475 | |
10476 | # A sed program that does not truncate output. |
10477 | SED=$lt_SED |
10478 | |
10479 | # Sed that helps us avoid accidentally triggering echo(1) options like -n. |
10480 | Xsed="$SED -e 1s/^X//" |
10481 | |
10482 | # The HP-UX ksh and POSIX shell print the target directory to stdout |
10483 | # if CDPATH is set. |
10484 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH |
10485 | |
10486 | # The names of the tagged configurations supported by this script. |
10487 | available_tags= |
10488 | |
10489 | # ### BEGIN LIBTOOL CONFIG |
10490 | |
10491 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
10492 | |
10493 | # Shell to use when invoking shell scripts. |
10494 | SHELL=$lt_SHELL |
10495 | |
10496 | # Whether or not to build shared libraries. |
10497 | build_libtool_libs=$enable_shared |
10498 | |
10499 | # Whether or not to build static libraries. |
10500 | build_old_libs=$enable_static |
10501 | |
10502 | # Whether or not to add -lc for building shared libraries. |
10503 | build_libtool_need_lc=$archive_cmds_need_lc |
10504 | |
10505 | # Whether or not to disallow shared libs when runtime libs are static |
10506 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes |
10507 | |
10508 | # Whether or not to optimize for fast installation. |
10509 | fast_install=$enable_fast_install |
10510 | |
10511 | # The host system. |
10512 | host_alias=$host_alias |
10513 | host=$host |
10514 | host_os=$host_os |
10515 | |
10516 | # The build system. |
10517 | build_alias=$build_alias |
10518 | build=$build |
10519 | build_os=$build_os |
10520 | |
10521 | # An echo program that does not interpret backslashes. |
10522 | echo=$lt_echo |
10523 | |
10524 | # The archiver. |
10525 | AR=$lt_AR |
10526 | AR_FLAGS=$lt_AR_FLAGS |
10527 | |
10528 | # A C compiler. |
10529 | LTCC=$lt_LTCC |
10530 | |
10531 | # LTCC compiler flags. |
10532 | LTCFLAGS=$lt_LTCFLAGS |
10533 | |
10534 | # A language-specific compiler. |
10535 | CC=$lt_compiler |
10536 | |
10537 | # Is the compiler the GNU C compiler? |
10538 | with_gcc=$GCC |
10539 | |
10540 | # An ERE matcher. |
10541 | EGREP=$lt_EGREP |
10542 | |
10543 | # The linker used to build libraries. |
10544 | LD=$lt_LD |
10545 | |
10546 | # Whether we need hard or soft links. |
10547 | LN_S=$lt_LN_S |
10548 | |
10549 | # A BSD-compatible nm program. |
10550 | NM=$lt_NM |
10551 | |
10552 | # A symbol stripping program |
10553 | STRIP=$lt_STRIP |
10554 | |
10555 | # Used to examine libraries when file_magic_cmd begins "file" |
10556 | MAGIC_CMD=$MAGIC_CMD |
10557 | |
10558 | # Used on cygwin: DLL creation program. |
10559 | DLLTOOL="$DLLTOOL" |
10560 | |
10561 | # Used on cygwin: object dumper. |
10562 | OBJDUMP="$OBJDUMP" |
10563 | |
10564 | # Used on cygwin: assembler. |
10565 | AS="$AS" |
10566 | |
10567 | # The name of the directory that contains temporary libtool files. |
10568 | objdir=$objdir |
10569 | |
10570 | # How to create reloadable object files. |
10571 | reload_flag=$lt_reload_flag |
10572 | reload_cmds=$lt_reload_cmds |
10573 | |
10574 | # How to pass a linker flag through the compiler. |
10575 | wl=$lt_lt_prog_compiler_wl |
10576 | |
10577 | # Object file suffix (normally "o"). |
10578 | objext="$ac_objext" |
10579 | |
10580 | # Old archive suffix (normally "a"). |
10581 | libext="$libext" |
10582 | |
10583 | # Shared library suffix (normally ".so"). |
10584 | shrext_cmds='$shrext_cmds' |
10585 | |
10586 | # Executable file suffix (normally ""). |
10587 | exeext="$exeext" |
10588 | |
10589 | # Additional compiler flags for building library objects. |
10590 | pic_flag=$lt_lt_prog_compiler_pic |
10591 | pic_mode=$pic_mode |
10592 | |
10593 | # What is the maximum length of a command? |
10594 | max_cmd_len=$lt_cv_sys_max_cmd_len |
10595 | |
10596 | # Does compiler simultaneously support -c and -o options? |
10597 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o |
10598 | |
10599 | # Must we lock files when doing compilation? |
10600 | need_locks=$lt_need_locks |
10601 | |
10602 | # Do we need the lib prefix for modules? |
10603 | need_lib_prefix=$need_lib_prefix |
10604 | |
10605 | # Do we need a version for libraries? |
10606 | need_version=$need_version |
10607 | |
10608 | # Whether dlopen is supported. |
10609 | dlopen_support=$enable_dlopen |
10610 | |
10611 | # Whether dlopen of programs is supported. |
10612 | dlopen_self=$enable_dlopen_self |
10613 | |
10614 | # Whether dlopen of statically linked programs is supported. |
10615 | dlopen_self_static=$enable_dlopen_self_static |
10616 | |
10617 | # Compiler flag to prevent dynamic linking. |
10618 | link_static_flag=$lt_lt_prog_compiler_static |
10619 | |
10620 | # Compiler flag to turn off builtin functions. |
10621 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag |
10622 | |
10623 | # Compiler flag to allow reflexive dlopens. |
10624 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec |
10625 | |
10626 | # Compiler flag to generate shared objects directly from archives. |
10627 | whole_archive_flag_spec=$lt_whole_archive_flag_spec |
10628 | |
10629 | # Compiler flag to generate thread-safe objects. |
10630 | thread_safe_flag_spec=$lt_thread_safe_flag_spec |
10631 | |
10632 | # Library versioning type. |
10633 | version_type=$version_type |
10634 | |
10635 | # Format of library name prefix. |
10636 | libname_spec=$lt_libname_spec |
10637 | |
10638 | # List of archive names. First name is the real one, the rest are links. |
10639 | # The last name is the one that the linker finds with -lNAME. |
10640 | library_names_spec=$lt_library_names_spec |
10641 | |
10642 | # The coded name of the library, if different from the real name. |
10643 | soname_spec=$lt_soname_spec |
10644 | |
10645 | # Commands used to build and install an old-style archive. |
10646 | RANLIB=$lt_RANLIB |
10647 | old_archive_cmds=$lt_old_archive_cmds |
10648 | old_postinstall_cmds=$lt_old_postinstall_cmds |
10649 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
10650 | |
10651 | # Create an old-style archive from a shared archive. |
10652 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds |
10653 | |
10654 | # Create a temporary old-style archive to link instead of a shared archive. |
10655 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds |
10656 | |
10657 | # Commands used to build and install a shared archive. |
10658 | archive_cmds=$lt_archive_cmds |
10659 | archive_expsym_cmds=$lt_archive_expsym_cmds |
10660 | postinstall_cmds=$lt_postinstall_cmds |
10661 | postuninstall_cmds=$lt_postuninstall_cmds |
10662 | |
10663 | # Commands used to build a loadable module (assumed same as above if empty) |
10664 | module_cmds=$lt_module_cmds |
10665 | module_expsym_cmds=$lt_module_expsym_cmds |
10666 | |
10667 | # Commands to strip libraries. |
10668 | old_striplib=$lt_old_striplib |
10669 | striplib=$lt_striplib |
10670 | |
10671 | # Dependencies to place before the objects being linked to create a |
10672 | # shared library. |
10673 | predep_objects=$lt_predep_objects |
10674 | |
10675 | # Dependencies to place after the objects being linked to create a |
10676 | # shared library. |
10677 | postdep_objects=$lt_postdep_objects |
10678 | |
10679 | # Dependencies to place before the objects being linked to create a |
10680 | # shared library. |
10681 | predeps=$lt_predeps |
10682 | |
10683 | # Dependencies to place after the objects being linked to create a |
10684 | # shared library. |
10685 | postdeps=$lt_postdeps |
10686 | |
10687 | # The library search path used internally by the compiler when linking |
10688 | # a shared library. |
10689 | compiler_lib_search_path=$lt_compiler_lib_search_path |
10690 | |
10691 | # Method to check whether dependent libraries are shared objects. |
10692 | deplibs_check_method=$lt_deplibs_check_method |
10693 | |
10694 | # Command to use when deplibs_check_method == file_magic. |
10695 | file_magic_cmd=$lt_file_magic_cmd |
10696 | |
10697 | # Flag that allows shared libraries with undefined symbols to be built. |
10698 | allow_undefined_flag=$lt_allow_undefined_flag |
10699 | |
10700 | # Flag that forces no undefined symbols. |
10701 | no_undefined_flag=$lt_no_undefined_flag |
10702 | |
10703 | # Commands used to finish a libtool library installation in a directory. |
10704 | finish_cmds=$lt_finish_cmds |
10705 | |
10706 | # Same as above, but a single script fragment to be evaled but not shown. |
10707 | finish_eval=$lt_finish_eval |
10708 | |
10709 | # Take the output of nm and produce a listing of raw symbols and C names. |
10710 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
10711 | |
10712 | # Transform the output of nm in a proper C declaration |
10713 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
10714 | |
10715 | # Transform the output of nm in a C name address pair |
10716 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
10717 | |
10718 | # This is the shared library runtime path variable. |
10719 | runpath_var=$runpath_var |
10720 | |
10721 | # This is the shared library path variable. |
10722 | shlibpath_var=$shlibpath_var |
10723 | |
10724 | # Is shlibpath searched before the hard-coded library search path? |
10725 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
10726 | |
10727 | # How to hardcode a shared library path into an executable. |
10728 | hardcode_action=$hardcode_action |
10729 | |
10730 | # Whether we should hardcode library paths into libraries. |
10731 | hardcode_into_libs=$hardcode_into_libs |
10732 | |
10733 | # Flag to hardcode \$libdir into a binary during linking. |
10734 | # This must work even if \$libdir does not exist. |
10735 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec |
10736 | |
10737 | # If ld is used when linking, flag to hardcode \$libdir into |
10738 | # a binary during linking. This must work even if \$libdir does |
10739 | # not exist. |
10740 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld |
10741 | |
10742 | # Whether we need a single -rpath flag with a separated argument. |
10743 | hardcode_libdir_separator=$lt_hardcode_libdir_separator |
10744 | |
10745 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
10746 | # resulting binary. |
10747 | hardcode_direct=$hardcode_direct |
10748 | |
10749 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
10750 | # resulting binary. |
10751 | hardcode_minus_L=$hardcode_minus_L |
10752 | |
10753 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
10754 | # the resulting binary. |
10755 | hardcode_shlibpath_var=$hardcode_shlibpath_var |
10756 | |
10757 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
10758 | # and all subsequent libraries and executables linked against it. |
10759 | hardcode_automatic=$hardcode_automatic |
10760 | |
10761 | # Variables whose values should be saved in libtool wrapper scripts and |
10762 | # restored at relink time. |
10763 | variables_saved_for_relink="$variables_saved_for_relink" |
10764 | |
10765 | # Whether libtool must link a program against all its dependency libraries. |
10766 | link_all_deplibs=$link_all_deplibs |
10767 | |
10768 | # Compile-time system search path for libraries |
10769 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
10770 | |
10771 | # Run-time system search path for libraries |
10772 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
10773 | |
10774 | # Fix the shell variable \$srcfile for the compiler. |
10775 | fix_srcfile_path="$fix_srcfile_path" |
10776 | |
10777 | # Set to yes if exported symbols are required. |
10778 | always_export_symbols=$always_export_symbols |
10779 | |
10780 | # The commands to list exported symbols. |
10781 | export_symbols_cmds=$lt_export_symbols_cmds |
10782 | |
10783 | # The commands to extract the exported symbol list from a shared archive. |
10784 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
10785 | |
10786 | # Symbols that should not be listed in the preloaded symbols. |
10787 | exclude_expsyms=$lt_exclude_expsyms |
10788 | |
10789 | # Symbols that must always be exported. |
10790 | include_expsyms=$lt_include_expsyms |
10791 | |
10792 | # ### END LIBTOOL CONFIG |
10793 | |
10794 | __EOF__ |
10795 | |
10796 | |
10797 | case $host_os in |
10798 | aix3*) |
10799 | cat <<\EOF >> "$cfgfile" |
10800 | |
10801 | # AIX sometimes has problems with the GCC collect2 program. For some |
10802 | # reason, if we set the COLLECT_NAMES environment variable, the problems |
10803 | # vanish in a puff of smoke. |
10804 | if test "X${COLLECT_NAMES+set}" != Xset; then |
10805 | COLLECT_NAMES= |
10806 | export COLLECT_NAMES |
10807 | fi |
10808 | EOF |
10809 | ;; |
10810 | esac |
10811 | |
10812 | # We use sed instead of cat because bash on DJGPP gets confused if |
10813 | # if finds mixed CR/LF and LF-only lines. Since sed operates in |
10814 | # text mode, it properly converts lines to CR/LF. This bash problem |
10815 | # is reportedly fixed, but why not run on old versions too? |
10816 | sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) |
10817 | |
10818 | mv -f "$cfgfile" "$ofile" || \ |
10819 | (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") |
10820 | chmod +x "$ofile" |
10821 | |
10822 | else |
10823 | # If there is no Makefile yet, we rely on a make rule to execute |
10824 | # `config.status --recheck' to rerun these tests and create the |
10825 | # libtool script then. |
10826 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
10827 | if test -f "$ltmain_in"; then |
10828 | test -f Makefile && make "$ltmain" |
10829 | fi |
10830 | fi |
10831 | |
10832 | |
10833 | ac_ext=c |
10834 | ac_cpp='$CPP $CPPFLAGS' |
10835 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10836 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10837 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
10838 | |
10839 | CC="$lt_save_CC" |
10840 | |
10841 | |
10842 | # Check whether --with-tags was given. |
10843 | if test "${with_tags+set}" = set; then |
10844 | withval=$with_tags; tagnames="$withval" |
10845 | fi |
10846 | |
10847 | |
10848 | if test -f "$ltmain" && test -n "$tagnames"; then |
10849 | if test ! -f "${ofile}"; then |
10850 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 |
10851 | echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} |
10852 | fi |
10853 | |
10854 | if test -z "$LTCC"; then |
10855 | eval "`$SHELL ${ofile} --config | grep '^LTCC='`" |
10856 | if test -z "$LTCC"; then |
10857 | { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 |
10858 | echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} |
10859 | else |
10860 | { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 |
10861 | echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} |
10862 | fi |
10863 | fi |
10864 | if test -z "$LTCFLAGS"; then |
10865 | eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`" |
10866 | fi |
10867 | |
10868 | # Extract list of available tagged configurations in $ofile. |
10869 | # Note that this assumes the entire list is on one line. |
10870 | available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` |
10871 | |
10872 | lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," |
10873 | for tagname in $tagnames; do |
10874 | IFS="$lt_save_ifs" |
10875 | # Check whether tagname contains only valid characters |
10876 | case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in |
10877 | "") ;; |
10878 | *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 |
10879 | echo "$as_me: error: invalid tag name: $tagname" >&2;} |
10880 | { (exit 1); exit 1; }; } |
10881 | ;; |
10882 | esac |
10883 | |
10884 | if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null |
10885 | then |
10886 | { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 |
10887 | echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} |
10888 | { (exit 1); exit 1; }; } |
10889 | fi |
10890 | |
10891 | # Update the list of available tags. |
10892 | if test -n "$tagname"; then |
10893 | echo appending configuration tag \"$tagname\" to $ofile |
10894 | |
10895 | case $tagname in |
10896 | CXX) |
10897 | if test -n "$CXX" && ( test "X$CXX" != "Xno" && |
10898 | ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || |
10899 | (test "X$CXX" != "Xg++"))) ; then |
10900 | ac_ext=cpp |
10901 | ac_cpp='$CXXCPP $CPPFLAGS' |
10902 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
10903 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
10904 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu |
10905 | |
10906 | |
10907 | |
10908 | |
10909 | archive_cmds_need_lc_CXX=no |
10910 | allow_undefined_flag_CXX= |
10911 | always_export_symbols_CXX=no |
10912 | archive_expsym_cmds_CXX= |
10913 | export_dynamic_flag_spec_CXX= |
10914 | hardcode_direct_CXX=no |
10915 | hardcode_libdir_flag_spec_CXX= |
10916 | hardcode_libdir_flag_spec_ld_CXX= |
10917 | hardcode_libdir_separator_CXX= |
10918 | hardcode_minus_L_CXX=no |
10919 | hardcode_shlibpath_var_CXX=unsupported |
10920 | hardcode_automatic_CXX=no |
10921 | module_cmds_CXX= |
10922 | module_expsym_cmds_CXX= |
10923 | link_all_deplibs_CXX=unknown |
10924 | old_archive_cmds_CXX=$old_archive_cmds |
10925 | no_undefined_flag_CXX= |
10926 | whole_archive_flag_spec_CXX= |
10927 | enable_shared_with_static_runtimes_CXX=no |
10928 | |
10929 | # Dependencies to place before and after the object being linked: |
10930 | predep_objects_CXX= |
10931 | postdep_objects_CXX= |
10932 | predeps_CXX= |
10933 | postdeps_CXX= |
10934 | compiler_lib_search_path_CXX= |
10935 | |
10936 | # Source file extension for C++ test sources. |
10937 | ac_ext=cpp |
10938 | |
10939 | # Object file extension for compiled C++ test sources. |
10940 | objext=o |
10941 | objext_CXX=$objext |
10942 | |
10943 | # Code to be used in simple compile tests |
10944 | lt_simple_compile_test_code="int some_variable = 0;\n" |
10945 | |
10946 | # Code to be used in simple link tests |
10947 | lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n' |
10948 | |
10949 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
10950 | |
10951 | # If no C compiler was specified, use CC. |
10952 | LTCC=${LTCC-"$CC"} |
10953 | |
10954 | # If no C compiler flags were specified, use CFLAGS. |
10955 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
10956 | |
10957 | # Allow CC to be a program name with arguments. |
10958 | compiler=$CC |
10959 | |
10960 | |
10961 | # save warnings/boilerplate of simple test code |
10962 | ac_outfile=conftest.$ac_objext |
10963 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
10964 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10965 | _lt_compiler_boilerplate=`cat conftest.err` |
10966 | $rm conftest* |
10967 | |
10968 | ac_outfile=conftest.$ac_objext |
10969 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
10970 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
10971 | _lt_linker_boilerplate=`cat conftest.err` |
10972 | $rm conftest* |
10973 | |
10974 | |
10975 | # Allow CC to be a program name with arguments. |
10976 | lt_save_CC=$CC |
10977 | lt_save_LD=$LD |
10978 | lt_save_GCC=$GCC |
10979 | GCC=$GXX |
10980 | lt_save_with_gnu_ld=$with_gnu_ld |
10981 | lt_save_path_LD=$lt_cv_path_LD |
10982 | if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then |
10983 | lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx |
10984 | else |
10985 | $as_unset lt_cv_prog_gnu_ld |
10986 | fi |
10987 | if test -n "${lt_cv_path_LDCXX+set}"; then |
10988 | lt_cv_path_LD=$lt_cv_path_LDCXX |
10989 | else |
10990 | $as_unset lt_cv_path_LD |
10991 | fi |
10992 | test -z "${LDCXX+set}" || LD=$LDCXX |
10993 | CC=${CXX-"c++"} |
10994 | compiler=$CC |
10995 | compiler_CXX=$CC |
10996 | for cc_temp in $compiler""; do |
10997 | case $cc_temp in |
10998 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
10999 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
11000 | \-*) ;; |
11001 | *) break;; |
11002 | esac |
11003 | done |
11004 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
11005 | |
11006 | |
11007 | # We don't want -fno-exception wen compiling C++ code, so set the |
11008 | # no_builtin_flag separately |
11009 | if test "$GXX" = yes; then |
11010 | lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' |
11011 | else |
11012 | lt_prog_compiler_no_builtin_flag_CXX= |
11013 | fi |
11014 | |
11015 | if test "$GXX" = yes; then |
11016 | # Set up default GNU C++ configuration |
11017 | |
11018 | |
11019 | # Check whether --with-gnu-ld was given. |
11020 | if test "${with_gnu_ld+set}" = set; then |
11021 | withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes |
11022 | else |
11023 | with_gnu_ld=no |
11024 | fi |
11025 | |
11026 | ac_prog=ld |
11027 | if test "$GCC" = yes; then |
11028 | # Check if gcc -print-prog-name=ld gives a path. |
11029 | { echo "$as_me:$LINENO: checking for ld used by $CC" >&5 |
11030 | echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; } |
11031 | case $host in |
11032 | *-*-mingw*) |
11033 | # gcc leaves a trailing carriage return which upsets mingw |
11034 | ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; |
11035 | *) |
11036 | ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; |
11037 | esac |
11038 | case $ac_prog in |
11039 | # Accept absolute paths. |
11040 | [\\/]* | ?:[\\/]*) |
11041 | re_direlt='/[^/][^/]*/\.\./' |
11042 | # Canonicalize the pathname of ld |
11043 | ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` |
11044 | while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do |
11045 | ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` |
11046 | done |
11047 | test -z "$LD" && LD="$ac_prog" |
11048 | ;; |
11049 | "") |
11050 | # If it fails, then pretend we aren't using GCC. |
11051 | ac_prog=ld |
11052 | ;; |
11053 | *) |
11054 | # If it is relative, then search for the first ld in PATH. |
11055 | with_gnu_ld=unknown |
11056 | ;; |
11057 | esac |
11058 | elif test "$with_gnu_ld" = yes; then |
11059 | { echo "$as_me:$LINENO: checking for GNU ld" >&5 |
11060 | echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; } |
11061 | else |
11062 | { echo "$as_me:$LINENO: checking for non-GNU ld" >&5 |
11063 | echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; } |
11064 | fi |
11065 | if test "${lt_cv_path_LD+set}" = set; then |
11066 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11067 | else |
11068 | if test -z "$LD"; then |
11069 | lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR |
11070 | for ac_dir in $PATH; do |
11071 | IFS="$lt_save_ifs" |
11072 | test -z "$ac_dir" && ac_dir=. |
11073 | if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then |
11074 | lt_cv_path_LD="$ac_dir/$ac_prog" |
11075 | # Check to see if the program is GNU ld. I'd rather use --version, |
11076 | # but apparently some variants of GNU ld only accept -v. |
11077 | # Break only if it was the GNU/non-GNU ld that we prefer. |
11078 | case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in |
11079 | *GNU* | *'with BFD'*) |
11080 | test "$with_gnu_ld" != no && break |
11081 | ;; |
11082 | *) |
11083 | test "$with_gnu_ld" != yes && break |
11084 | ;; |
11085 | esac |
11086 | fi |
11087 | done |
11088 | IFS="$lt_save_ifs" |
11089 | else |
11090 | lt_cv_path_LD="$LD" # Let the user override the test with a path. |
11091 | fi |
11092 | fi |
11093 | |
11094 | LD="$lt_cv_path_LD" |
11095 | if test -n "$LD"; then |
11096 | { echo "$as_me:$LINENO: result: $LD" >&5 |
11097 | echo "${ECHO_T}$LD" >&6; } |
11098 | else |
11099 | { echo "$as_me:$LINENO: result: no" >&5 |
11100 | echo "${ECHO_T}no" >&6; } |
11101 | fi |
11102 | test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 |
11103 | echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} |
11104 | { (exit 1); exit 1; }; } |
11105 | { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 |
11106 | echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; } |
11107 | if test "${lt_cv_prog_gnu_ld+set}" = set; then |
11108 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
11109 | else |
11110 | # I'd rather use --version here, but apparently some GNU lds only accept -v. |
11111 | case `$LD -v 2>&1 </dev/null` in |
11112 | *GNU* | *'with BFD'*) |
11113 | lt_cv_prog_gnu_ld=yes |
11114 | ;; |
11115 | *) |
11116 | lt_cv_prog_gnu_ld=no |
11117 | ;; |
11118 | esac |
11119 | fi |
11120 | { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 |
11121 | echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; } |
11122 | with_gnu_ld=$lt_cv_prog_gnu_ld |
11123 | |
11124 | |
11125 | |
11126 | # Check if GNU C++ uses GNU ld as the underlying linker, since the |
11127 | # archiving commands below assume that GNU ld is being used. |
11128 | if test "$with_gnu_ld" = yes; then |
11129 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11130 | 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' |
11131 | |
11132 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11133 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11134 | |
11135 | # If archive_cmds runs LD, not CC, wlarc should be empty |
11136 | # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to |
11137 | # investigate it a little bit more. (MM) |
11138 | wlarc='${wl}' |
11139 | |
11140 | # ancient GNU ld didn't support --whole-archive et. al. |
11141 | if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ |
11142 | grep 'no-whole-archive' > /dev/null; then |
11143 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11144 | else |
11145 | whole_archive_flag_spec_CXX= |
11146 | fi |
11147 | else |
11148 | with_gnu_ld=no |
11149 | wlarc= |
11150 | |
11151 | # A generic and very simple default shared library creation |
11152 | # command for GNU C++ for the case where it uses the native |
11153 | # linker, instead of GNU ld. If possible, this setting should |
11154 | # overridden to take advantage of the native linker features on |
11155 | # the platform it is being used on. |
11156 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11157 | fi |
11158 | |
11159 | # Commands to make compiler produce verbose output that lists |
11160 | # what "hidden" libraries, object files and flags are used when |
11161 | # linking a shared library. |
11162 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11163 | |
11164 | else |
11165 | GXX=no |
11166 | with_gnu_ld=no |
11167 | wlarc= |
11168 | fi |
11169 | |
11170 | # PORTME: fill in a description of your system's C++ link characteristics |
11171 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
11172 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
11173 | ld_shlibs_CXX=yes |
11174 | case $host_os in |
11175 | aix3*) |
11176 | # FIXME: insert proper C++ library support |
11177 | ld_shlibs_CXX=no |
11178 | ;; |
11179 | aix4* | aix5*) |
11180 | if test "$host_cpu" = ia64; then |
11181 | # On IA64, the linker does run time linking by default, so we don't |
11182 | # have to do anything special. |
11183 | aix_use_runtimelinking=no |
11184 | exp_sym_flag='-Bexport' |
11185 | no_entry_flag="" |
11186 | else |
11187 | aix_use_runtimelinking=no |
11188 | |
11189 | # Test if we are trying to use run time linking or normal |
11190 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
11191 | # need to do runtime linking. |
11192 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
11193 | for ld_flag in $LDFLAGS; do |
11194 | case $ld_flag in |
11195 | *-brtl*) |
11196 | aix_use_runtimelinking=yes |
11197 | break |
11198 | ;; |
11199 | esac |
11200 | done |
11201 | ;; |
11202 | esac |
11203 | |
11204 | exp_sym_flag='-bexport' |
11205 | no_entry_flag='-bnoentry' |
11206 | fi |
11207 | |
11208 | # When large executables or shared objects are built, AIX ld can |
11209 | # have problems creating the table of contents. If linking a library |
11210 | # or program results in "error TOC overflow" add -mminimal-toc to |
11211 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
11212 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
11213 | |
11214 | archive_cmds_CXX='' |
11215 | hardcode_direct_CXX=yes |
11216 | hardcode_libdir_separator_CXX=':' |
11217 | link_all_deplibs_CXX=yes |
11218 | |
11219 | if test "$GXX" = yes; then |
11220 | case $host_os in aix4.[012]|aix4.[012].*) |
11221 | # We only want to do this on AIX 4.2 and lower, the check |
11222 | # below for broken collect2 doesn't work under 4.3+ |
11223 | collect2name=`${CC} -print-prog-name=collect2` |
11224 | if test -f "$collect2name" && \ |
11225 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
11226 | then |
11227 | # We have reworked collect2 |
11228 | hardcode_direct_CXX=yes |
11229 | else |
11230 | # We have old collect2 |
11231 | hardcode_direct_CXX=unsupported |
11232 | # It fails to find uninstalled libraries when the uninstalled |
11233 | # path is not listed in the libpath. Setting hardcode_minus_L |
11234 | # to unsupported forces relinking |
11235 | hardcode_minus_L_CXX=yes |
11236 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11237 | hardcode_libdir_separator_CXX= |
11238 | fi |
11239 | ;; |
11240 | esac |
11241 | shared_flag='-shared' |
11242 | if test "$aix_use_runtimelinking" = yes; then |
11243 | shared_flag="$shared_flag "'${wl}-G' |
11244 | fi |
11245 | else |
11246 | # not using gcc |
11247 | if test "$host_cpu" = ia64; then |
11248 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
11249 | # chokes on -Wl,-G. The following line is correct: |
11250 | shared_flag='-G' |
11251 | else |
11252 | if test "$aix_use_runtimelinking" = yes; then |
11253 | shared_flag='${wl}-G' |
11254 | else |
11255 | shared_flag='${wl}-bM:SRE' |
11256 | fi |
11257 | fi |
11258 | fi |
11259 | |
11260 | # It seems that -bexpall does not export symbols beginning with |
11261 | # underscore (_), so it is better to generate a list of symbols to export. |
11262 | always_export_symbols_CXX=yes |
11263 | if test "$aix_use_runtimelinking" = yes; then |
11264 | # Warning - without using the other runtime loading flags (-brtl), |
11265 | # -berok will link without error, but may produce a broken library. |
11266 | allow_undefined_flag_CXX='-berok' |
11267 | # Determine the default libpath from the value encoded in an empty executable. |
11268 | cat >conftest.$ac_ext <<_ACEOF |
11269 | /* confdefs.h. */ |
11270 | _ACEOF |
11271 | cat confdefs.h >>conftest.$ac_ext |
11272 | cat >>conftest.$ac_ext <<_ACEOF |
11273 | /* end confdefs.h. */ |
11274 | |
11275 | int |
11276 | main () |
11277 | { |
11278 | |
11279 | ; |
11280 | return 0; |
11281 | } |
11282 | _ACEOF |
11283 | rm -f conftest.$ac_objext conftest$ac_exeext |
11284 | if { (ac_try="$ac_link" |
11285 | case "(($ac_try" in |
11286 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11287 | *) ac_try_echo=$ac_try;; |
11288 | esac |
11289 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11290 | (eval "$ac_link") 2>conftest.er1 |
11291 | ac_status=$? |
11292 | grep -v '^ *+' conftest.er1 >conftest.err |
11293 | rm -f conftest.er1 |
11294 | cat conftest.err >&5 |
11295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11296 | (exit $ac_status); } && |
11297 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
11298 | { (case "(($ac_try" in |
11299 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11300 | *) ac_try_echo=$ac_try;; |
11301 | esac |
11302 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11303 | (eval "$ac_try") 2>&5 |
11304 | ac_status=$? |
11305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11306 | (exit $ac_status); }; } && |
11307 | { ac_try='test -s conftest$ac_exeext' |
11308 | { (case "(($ac_try" in |
11309 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11310 | *) ac_try_echo=$ac_try;; |
11311 | esac |
11312 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11313 | (eval "$ac_try") 2>&5 |
11314 | ac_status=$? |
11315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11316 | (exit $ac_status); }; }; then |
11317 | |
11318 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11319 | }'` |
11320 | # Check for a 64-bit object if we didn't find anything. |
11321 | 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; } |
11322 | }'`; fi |
11323 | else |
11324 | echo "$as_me: failed program was:" >&5 |
11325 | sed 's/^/| /' conftest.$ac_ext >&5 |
11326 | |
11327 | |
11328 | fi |
11329 | |
11330 | rm -f core conftest.err conftest.$ac_objext \ |
11331 | conftest$ac_exeext conftest.$ac_ext |
11332 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11333 | |
11334 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11335 | |
11336 | archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
11337 | else |
11338 | if test "$host_cpu" = ia64; then |
11339 | hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' |
11340 | allow_undefined_flag_CXX="-z nodefs" |
11341 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
11342 | else |
11343 | # Determine the default libpath from the value encoded in an empty executable. |
11344 | cat >conftest.$ac_ext <<_ACEOF |
11345 | /* confdefs.h. */ |
11346 | _ACEOF |
11347 | cat confdefs.h >>conftest.$ac_ext |
11348 | cat >>conftest.$ac_ext <<_ACEOF |
11349 | /* end confdefs.h. */ |
11350 | |
11351 | int |
11352 | main () |
11353 | { |
11354 | |
11355 | ; |
11356 | return 0; |
11357 | } |
11358 | _ACEOF |
11359 | rm -f conftest.$ac_objext conftest$ac_exeext |
11360 | if { (ac_try="$ac_link" |
11361 | case "(($ac_try" in |
11362 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11363 | *) ac_try_echo=$ac_try;; |
11364 | esac |
11365 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11366 | (eval "$ac_link") 2>conftest.er1 |
11367 | ac_status=$? |
11368 | grep -v '^ *+' conftest.er1 >conftest.err |
11369 | rm -f conftest.er1 |
11370 | cat conftest.err >&5 |
11371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11372 | (exit $ac_status); } && |
11373 | { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err' |
11374 | { (case "(($ac_try" in |
11375 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11376 | *) ac_try_echo=$ac_try;; |
11377 | esac |
11378 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11379 | (eval "$ac_try") 2>&5 |
11380 | ac_status=$? |
11381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11382 | (exit $ac_status); }; } && |
11383 | { ac_try='test -s conftest$ac_exeext' |
11384 | { (case "(($ac_try" in |
11385 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
11386 | *) ac_try_echo=$ac_try;; |
11387 | esac |
11388 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
11389 | (eval "$ac_try") 2>&5 |
11390 | ac_status=$? |
11391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
11392 | (exit $ac_status); }; }; then |
11393 | |
11394 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
11395 | }'` |
11396 | # Check for a 64-bit object if we didn't find anything. |
11397 | 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; } |
11398 | }'`; fi |
11399 | else |
11400 | echo "$as_me: failed program was:" >&5 |
11401 | sed 's/^/| /' conftest.$ac_ext >&5 |
11402 | |
11403 | |
11404 | fi |
11405 | |
11406 | rm -f core conftest.err conftest.$ac_objext \ |
11407 | conftest$ac_exeext conftest.$ac_ext |
11408 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
11409 | |
11410 | hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" |
11411 | # Warning - without using the other run time loading flags, |
11412 | # -berok will link without error, but may produce a broken library. |
11413 | no_undefined_flag_CXX=' ${wl}-bernotok' |
11414 | allow_undefined_flag_CXX=' ${wl}-berok' |
11415 | # Exported symbols can be pulled into shared objects from archives |
11416 | whole_archive_flag_spec_CXX='$convenience' |
11417 | archive_cmds_need_lc_CXX=yes |
11418 | # This is similar to how AIX traditionally builds its shared libraries. |
11419 | archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
11420 | fi |
11421 | fi |
11422 | ;; |
11423 | |
11424 | beos*) |
11425 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
11426 | allow_undefined_flag_CXX=unsupported |
11427 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
11428 | # support --undefined. This deserves some investigation. FIXME |
11429 | archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11430 | else |
11431 | ld_shlibs_CXX=no |
11432 | fi |
11433 | ;; |
11434 | |
11435 | chorus*) |
11436 | case $cc_basename in |
11437 | *) |
11438 | # FIXME: insert proper C++ library support |
11439 | ld_shlibs_CXX=no |
11440 | ;; |
11441 | esac |
11442 | ;; |
11443 | |
11444 | cygwin* | mingw* | pw32*) |
11445 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, |
11446 | # as there is no search path for DLLs. |
11447 | hardcode_libdir_flag_spec_CXX='-L$libdir' |
11448 | allow_undefined_flag_CXX=unsupported |
11449 | always_export_symbols_CXX=no |
11450 | enable_shared_with_static_runtimes_CXX=yes |
11451 | |
11452 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
11453 | archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
11454 | # If the export-symbols file already is a .def file (1st line |
11455 | # is EXPORTS), use it as is; otherwise, prepend... |
11456 | archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
11457 | cp $export_symbols $output_objdir/$soname.def; |
11458 | else |
11459 | echo EXPORTS > $output_objdir/$soname.def; |
11460 | cat $export_symbols >> $output_objdir/$soname.def; |
11461 | fi~ |
11462 | $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
11463 | else |
11464 | ld_shlibs_CXX=no |
11465 | fi |
11466 | ;; |
11467 | darwin* | rhapsody*) |
11468 | case $host_os in |
11469 | rhapsody* | darwin1.[012]) |
11470 | allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress' |
11471 | ;; |
11472 | *) # Darwin 1.3 on |
11473 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
11474 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11475 | else |
11476 | case ${MACOSX_DEPLOYMENT_TARGET} in |
11477 | 10.[012]) |
11478 | allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
11479 | ;; |
11480 | 10.*) |
11481 | allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup' |
11482 | ;; |
11483 | esac |
11484 | fi |
11485 | ;; |
11486 | esac |
11487 | archive_cmds_need_lc_CXX=no |
11488 | hardcode_direct_CXX=no |
11489 | hardcode_automatic_CXX=yes |
11490 | hardcode_shlibpath_var_CXX=unsupported |
11491 | whole_archive_flag_spec_CXX='' |
11492 | link_all_deplibs_CXX=yes |
11493 | |
11494 | if test "$GXX" = yes ; then |
11495 | lt_int_apple_cc_single_mod=no |
11496 | output_verbose_link_cmd='echo' |
11497 | if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then |
11498 | lt_int_apple_cc_single_mod=yes |
11499 | fi |
11500 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11501 | archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
11502 | else |
11503 | 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' |
11504 | fi |
11505 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11506 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11507 | if test "X$lt_int_apple_cc_single_mod" = Xyes ; then |
11508 | 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}' |
11509 | else |
11510 | 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}' |
11511 | fi |
11512 | 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}' |
11513 | else |
11514 | case $cc_basename in |
11515 | xlc*) |
11516 | output_verbose_link_cmd='echo' |
11517 | 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' |
11518 | module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
11519 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
11520 | 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}' |
11521 | 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}' |
11522 | ;; |
11523 | *) |
11524 | ld_shlibs_CXX=no |
11525 | ;; |
11526 | esac |
11527 | fi |
11528 | ;; |
11529 | |
11530 | dgux*) |
11531 | case $cc_basename in |
11532 | ec++*) |
11533 | # FIXME: insert proper C++ library support |
11534 | ld_shlibs_CXX=no |
11535 | ;; |
11536 | ghcx*) |
11537 | # Green Hills C++ Compiler |
11538 | # FIXME: insert proper C++ library support |
11539 | ld_shlibs_CXX=no |
11540 | ;; |
11541 | *) |
11542 | # FIXME: insert proper C++ library support |
11543 | ld_shlibs_CXX=no |
11544 | ;; |
11545 | esac |
11546 | ;; |
11547 | freebsd[12]*) |
11548 | # C++ shared libraries reported to be fairly broken before switch to ELF |
11549 | ld_shlibs_CXX=no |
11550 | ;; |
11551 | freebsd-elf*) |
11552 | archive_cmds_need_lc_CXX=no |
11553 | ;; |
11554 | freebsd* | dragonfly*) |
11555 | # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF |
11556 | # conventions |
11557 | ld_shlibs_CXX=yes |
11558 | ;; |
11559 | gnu*) |
11560 | ;; |
11561 | hpux9*) |
11562 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11563 | hardcode_libdir_separator_CXX=: |
11564 | export_dynamic_flag_spec_CXX='${wl}-E' |
11565 | hardcode_direct_CXX=yes |
11566 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11567 | # but as the default |
11568 | # location of the library. |
11569 | |
11570 | case $cc_basename in |
11571 | CC*) |
11572 | # FIXME: insert proper C++ library support |
11573 | ld_shlibs_CXX=no |
11574 | ;; |
11575 | aCC*) |
11576 | 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' |
11577 | # Commands to make compiler produce verbose output that lists |
11578 | # what "hidden" libraries, object files and flags are used when |
11579 | # linking a shared library. |
11580 | # |
11581 | # There doesn't appear to be a way to prevent this compiler from |
11582 | # explicitly linking system object files so we need to strip them |
11583 | # from the output so that they don't get included in the library |
11584 | # dependencies. |
11585 | 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' |
11586 | ;; |
11587 | *) |
11588 | if test "$GXX" = yes; then |
11589 | 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' |
11590 | else |
11591 | # FIXME: insert proper C++ library support |
11592 | ld_shlibs_CXX=no |
11593 | fi |
11594 | ;; |
11595 | esac |
11596 | ;; |
11597 | hpux10*|hpux11*) |
11598 | if test $with_gnu_ld = no; then |
11599 | hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' |
11600 | hardcode_libdir_separator_CXX=: |
11601 | |
11602 | case $host_cpu in |
11603 | hppa*64*|ia64*) |
11604 | hardcode_libdir_flag_spec_ld_CXX='+b $libdir' |
11605 | ;; |
11606 | *) |
11607 | export_dynamic_flag_spec_CXX='${wl}-E' |
11608 | ;; |
11609 | esac |
11610 | fi |
11611 | case $host_cpu in |
11612 | hppa*64*|ia64*) |
11613 | hardcode_direct_CXX=no |
11614 | hardcode_shlibpath_var_CXX=no |
11615 | ;; |
11616 | *) |
11617 | hardcode_direct_CXX=yes |
11618 | hardcode_minus_L_CXX=yes # Not in the search PATH, |
11619 | # but as the default |
11620 | # location of the library. |
11621 | ;; |
11622 | esac |
11623 | |
11624 | case $cc_basename in |
11625 | CC*) |
11626 | # FIXME: insert proper C++ library support |
11627 | ld_shlibs_CXX=no |
11628 | ;; |
11629 | aCC*) |
11630 | case $host_cpu in |
11631 | hppa*64*) |
11632 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11633 | ;; |
11634 | ia64*) |
11635 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11636 | ;; |
11637 | *) |
11638 | archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11639 | ;; |
11640 | esac |
11641 | # Commands to make compiler produce verbose output that lists |
11642 | # what "hidden" libraries, object files and flags are used when |
11643 | # linking a shared library. |
11644 | # |
11645 | # There doesn't appear to be a way to prevent this compiler from |
11646 | # explicitly linking system object files so we need to strip them |
11647 | # from the output so that they don't get included in the library |
11648 | # dependencies. |
11649 | 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' |
11650 | ;; |
11651 | *) |
11652 | if test "$GXX" = yes; then |
11653 | if test $with_gnu_ld = no; then |
11654 | case $host_cpu in |
11655 | hppa*64*) |
11656 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11657 | ;; |
11658 | ia64*) |
11659 | archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11660 | ;; |
11661 | *) |
11662 | 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' |
11663 | ;; |
11664 | esac |
11665 | fi |
11666 | else |
11667 | # FIXME: insert proper C++ library support |
11668 | ld_shlibs_CXX=no |
11669 | fi |
11670 | ;; |
11671 | esac |
11672 | ;; |
11673 | interix3*) |
11674 | hardcode_direct_CXX=no |
11675 | hardcode_shlibpath_var_CXX=no |
11676 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11677 | export_dynamic_flag_spec_CXX='${wl}-E' |
11678 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
11679 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
11680 | # default) and relocated if they conflict, which is a slow very memory |
11681 | # consuming and fragmenting process. To avoid this, we pick a random, |
11682 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
11683 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
11684 | archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
11685 | archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
11686 | ;; |
11687 | irix5* | irix6*) |
11688 | case $cc_basename in |
11689 | CC*) |
11690 | # SGI C++ |
11691 | 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' |
11692 | |
11693 | # Archives containing C++ object files must be created using |
11694 | # "CC -ar", where "CC" is the IRIX C++ compiler. This is |
11695 | # necessary to make sure instantiated templates are included |
11696 | # in the archive. |
11697 | old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' |
11698 | ;; |
11699 | *) |
11700 | if test "$GXX" = yes; then |
11701 | if test "$with_gnu_ld" = no; then |
11702 | 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' |
11703 | else |
11704 | 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' |
11705 | fi |
11706 | fi |
11707 | link_all_deplibs_CXX=yes |
11708 | ;; |
11709 | esac |
11710 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11711 | hardcode_libdir_separator_CXX=: |
11712 | ;; |
11713 | linux* | k*bsd*-gnu) |
11714 | case $cc_basename in |
11715 | KCC*) |
11716 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11717 | |
11718 | # KCC will only create a shared library if the output file |
11719 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11720 | # to its proper name (with version) after linking. |
11721 | 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' |
11722 | 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' |
11723 | # Commands to make compiler produce verbose output that lists |
11724 | # what "hidden" libraries, object files and flags are used when |
11725 | # linking a shared library. |
11726 | # |
11727 | # There doesn't appear to be a way to prevent this compiler from |
11728 | # explicitly linking system object files so we need to strip them |
11729 | # from the output so that they don't get included in the library |
11730 | # dependencies. |
11731 | 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' |
11732 | |
11733 | hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' |
11734 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11735 | |
11736 | # Archives containing C++ object files must be created using |
11737 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11738 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11739 | ;; |
11740 | icpc*) |
11741 | # Intel C++ |
11742 | with_gnu_ld=yes |
11743 | # version 8.0 and above of icpc choke on multiply defined symbols |
11744 | # if we add $predep_objects and $postdep_objects, however 7.1 and |
11745 | # earlier do not add the objects themselves. |
11746 | case `$CC -V 2>&1` in |
11747 | *"Version 7."*) |
11748 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11749 | 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' |
11750 | ;; |
11751 | *) # Version 8.0 or newer |
11752 | tmp_idyn= |
11753 | case $host_cpu in |
11754 | ia64*) tmp_idyn=' -i_dynamic';; |
11755 | esac |
11756 | archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11757 | 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' |
11758 | ;; |
11759 | esac |
11760 | archive_cmds_need_lc_CXX=no |
11761 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11762 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11763 | whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' |
11764 | ;; |
11765 | pgCC*) |
11766 | # Portland Group C++ compiler |
11767 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' |
11768 | 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' |
11769 | |
11770 | hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' |
11771 | export_dynamic_flag_spec_CXX='${wl}--export-dynamic' |
11772 | 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' |
11773 | ;; |
11774 | cxx*) |
11775 | # Compaq C++ |
11776 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' |
11777 | 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' |
11778 | |
11779 | runpath_var=LD_RUN_PATH |
11780 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11781 | hardcode_libdir_separator_CXX=: |
11782 | |
11783 | # Commands to make compiler produce verbose output that lists |
11784 | # what "hidden" libraries, object files and flags are used when |
11785 | # linking a shared library. |
11786 | # |
11787 | # There doesn't appear to be a way to prevent this compiler from |
11788 | # explicitly linking system object files so we need to strip them |
11789 | # from the output so that they don't get included in the library |
11790 | # dependencies. |
11791 | 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' |
11792 | ;; |
11793 | esac |
11794 | ;; |
11795 | lynxos*) |
11796 | # FIXME: insert proper C++ library support |
11797 | ld_shlibs_CXX=no |
11798 | ;; |
11799 | m88k*) |
11800 | # FIXME: insert proper C++ library support |
11801 | ld_shlibs_CXX=no |
11802 | ;; |
11803 | mvs*) |
11804 | case $cc_basename in |
11805 | cxx*) |
11806 | # FIXME: insert proper C++ library support |
11807 | ld_shlibs_CXX=no |
11808 | ;; |
11809 | *) |
11810 | # FIXME: insert proper C++ library support |
11811 | ld_shlibs_CXX=no |
11812 | ;; |
11813 | esac |
11814 | ;; |
11815 | netbsd* | netbsdelf*-gnu) |
11816 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
11817 | archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' |
11818 | wlarc= |
11819 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11820 | hardcode_direct_CXX=yes |
11821 | hardcode_shlibpath_var_CXX=no |
11822 | fi |
11823 | # Workaround some broken pre-1.5 toolchains |
11824 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' |
11825 | ;; |
11826 | openbsd2*) |
11827 | # C++ shared libraries are fairly broken |
11828 | ld_shlibs_CXX=no |
11829 | ;; |
11830 | openbsd*) |
11831 | hardcode_direct_CXX=yes |
11832 | hardcode_shlibpath_var_CXX=no |
11833 | archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' |
11834 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11835 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
11836 | archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' |
11837 | export_dynamic_flag_spec_CXX='${wl}-E' |
11838 | whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
11839 | fi |
11840 | output_verbose_link_cmd='echo' |
11841 | ;; |
11842 | osf3*) |
11843 | case $cc_basename in |
11844 | KCC*) |
11845 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11846 | |
11847 | # KCC will only create a shared library if the output file |
11848 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11849 | # to its proper name (with version) after linking. |
11850 | 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' |
11851 | |
11852 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11853 | hardcode_libdir_separator_CXX=: |
11854 | |
11855 | # Archives containing C++ object files must be created using |
11856 | # "CC -Bstatic", where "CC" is the KAI C++ compiler. |
11857 | old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' |
11858 | |
11859 | ;; |
11860 | RCC*) |
11861 | # Rational C++ 2.4.1 |
11862 | # FIXME: insert proper C++ library support |
11863 | ld_shlibs_CXX=no |
11864 | ;; |
11865 | cxx*) |
11866 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11867 | 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' |
11868 | |
11869 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11870 | hardcode_libdir_separator_CXX=: |
11871 | |
11872 | # Commands to make compiler produce verbose output that lists |
11873 | # what "hidden" libraries, object files and flags are used when |
11874 | # linking a shared library. |
11875 | # |
11876 | # There doesn't appear to be a way to prevent this compiler from |
11877 | # explicitly linking system object files so we need to strip them |
11878 | # from the output so that they don't get included in the library |
11879 | # dependencies. |
11880 | 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' |
11881 | ;; |
11882 | *) |
11883 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11884 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11885 | 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' |
11886 | |
11887 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11888 | hardcode_libdir_separator_CXX=: |
11889 | |
11890 | # Commands to make compiler produce verbose output that lists |
11891 | # what "hidden" libraries, object files and flags are used when |
11892 | # linking a shared library. |
11893 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11894 | |
11895 | else |
11896 | # FIXME: insert proper C++ library support |
11897 | ld_shlibs_CXX=no |
11898 | fi |
11899 | ;; |
11900 | esac |
11901 | ;; |
11902 | osf4* | osf5*) |
11903 | case $cc_basename in |
11904 | KCC*) |
11905 | # Kuck and Associates, Inc. (KAI) C++ Compiler |
11906 | |
11907 | # KCC will only create a shared library if the output file |
11908 | # ends with ".so" (or ".sl" for HP-UX), so rename the library |
11909 | # to its proper name (with version) after linking. |
11910 | 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' |
11911 | |
11912 | hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' |
11913 | hardcode_libdir_separator_CXX=: |
11914 | |
11915 | # Archives containing C++ object files must be created using |
11916 | # the KAI C++ compiler. |
11917 | old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' |
11918 | ;; |
11919 | RCC*) |
11920 | # Rational C++ 2.4.1 |
11921 | # FIXME: insert proper C++ library support |
11922 | ld_shlibs_CXX=no |
11923 | ;; |
11924 | cxx*) |
11925 | allow_undefined_flag_CXX=' -expect_unresolved \*' |
11926 | 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' |
11927 | archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ |
11928 | echo "-hidden">> $lib.exp~ |
11929 | $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~ |
11930 | $rm $lib.exp' |
11931 | |
11932 | hardcode_libdir_flag_spec_CXX='-rpath $libdir' |
11933 | hardcode_libdir_separator_CXX=: |
11934 | |
11935 | # Commands to make compiler produce verbose output that lists |
11936 | # what "hidden" libraries, object files and flags are used when |
11937 | # linking a shared library. |
11938 | # |
11939 | # There doesn't appear to be a way to prevent this compiler from |
11940 | # explicitly linking system object files so we need to strip them |
11941 | # from the output so that they don't get included in the library |
11942 | # dependencies. |
11943 | 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' |
11944 | ;; |
11945 | *) |
11946 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
11947 | allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' |
11948 | 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' |
11949 | |
11950 | hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' |
11951 | hardcode_libdir_separator_CXX=: |
11952 | |
11953 | # Commands to make compiler produce verbose output that lists |
11954 | # what "hidden" libraries, object files and flags are used when |
11955 | # linking a shared library. |
11956 | output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' |
11957 | |
11958 | else |
11959 | # FIXME: insert proper C++ library support |
11960 | ld_shlibs_CXX=no |
11961 | fi |
11962 | ;; |
11963 | esac |
11964 | ;; |
11965 | psos*) |
11966 | # FIXME: insert proper C++ library support |
11967 | ld_shlibs_CXX=no |
11968 | ;; |
11969 | sunos4*) |
11970 | case $cc_basename in |
11971 | CC*) |
11972 | # Sun C++ 4.x |
11973 | # FIXME: insert proper C++ library support |
11974 | ld_shlibs_CXX=no |
11975 | ;; |
11976 | lcc*) |
11977 | # Lucid |
11978 | # FIXME: insert proper C++ library support |
11979 | ld_shlibs_CXX=no |
11980 | ;; |
11981 | *) |
11982 | # FIXME: insert proper C++ library support |
11983 | ld_shlibs_CXX=no |
11984 | ;; |
11985 | esac |
11986 | ;; |
11987 | solaris*) |
11988 | case $cc_basename in |
11989 | CC*) |
11990 | # Sun C++ 4.2, 5.x and Centerline C++ |
11991 | archive_cmds_need_lc_CXX=yes |
11992 | no_undefined_flag_CXX=' -zdefs' |
11993 | archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' |
11994 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
11995 | $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' |
11996 | |
11997 | hardcode_libdir_flag_spec_CXX='-R$libdir' |
11998 | hardcode_shlibpath_var_CXX=no |
11999 | case $host_os in |
12000 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
12001 | *) |
12002 | # The C++ compiler is used as linker so we must use $wl |
12003 | # flag to pass the commands to the underlying system |
12004 | # linker. We must also pass each convience library through |
12005 | # to the system linker between allextract/defaultextract. |
12006 | # The C++ compiler will combine linker options so we |
12007 | # cannot just pass the convience library names through |
12008 | # without $wl. |
12009 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
12010 | 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' |
12011 | ;; |
12012 | esac |
12013 | link_all_deplibs_CXX=yes |
12014 | |
12015 | output_verbose_link_cmd='echo' |
12016 | |
12017 | # Archives containing C++ object files must be created using |
12018 | # "CC -xar", where "CC" is the Sun C++ compiler. This is |
12019 | # necessary to make sure instantiated templates are included |
12020 | # in the archive. |
12021 | old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' |
12022 | ;; |
12023 | gcx*) |
12024 | # Green Hills C++ Compiler |
12025 | archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
12026 | |
12027 | # The C++ compiler must be used to create the archive. |
12028 | old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' |
12029 | ;; |
12030 | *) |
12031 | # GNU C++ compiler with Solaris linker |
12032 | if test "$GXX" = yes && test "$with_gnu_ld" = no; then |
12033 | no_undefined_flag_CXX=' ${wl}-z ${wl}defs' |
12034 | if $CC --version | grep -v '^2\.7' > /dev/null; then |
12035 | archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
12036 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
12037 | $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
12038 | |
12039 | # Commands to make compiler produce verbose output that lists |
12040 | # what "hidden" libraries, object files and flags are used when |
12041 | # linking a shared library. |
12042 | output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
12043 | else |
12044 | # g++ 2.7 appears to require `-G' NOT `-shared' on this |
12045 | # platform. |
12046 | archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' |
12047 | archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
12048 | $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' |
12049 | |
12050 | # Commands to make compiler produce verbose output that lists |
12051 | # what "hidden" libraries, object files and flags are used when |
12052 | # linking a shared library. |
12053 | output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" |
12054 | fi |
12055 | |
12056 | hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' |
12057 | fi |
12058 | ;; |
12059 | esac |
12060 | ;; |
12061 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) |
12062 | no_undefined_flag_CXX='${wl}-z,text' |
12063 | archive_cmds_need_lc_CXX=no |
12064 | hardcode_shlibpath_var_CXX=no |
12065 | runpath_var='LD_RUN_PATH' |
12066 | |
12067 | case $cc_basename in |
12068 | CC*) |
12069 | archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12070 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12071 | ;; |
12072 | *) |
12073 | archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12074 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
12075 | ;; |
12076 | esac |
12077 | ;; |
12078 | sysv5* | sco3.2v5* | sco5v6*) |
12079 | # Note: We can NOT use -z defs as we might desire, because we do not |
12080 | # link with -lc, and that would cause any symbols used from libc to |
12081 | # always be unresolved, which means just about no library would |
12082 | # ever link correctly. If we're not using GNU ld we use -z text |
12083 | # though, which does catch some bad symbols but isn't as heavy-handed |
12084 | # as -z defs. |
12085 | # For security reasons, it is highly recommended that you always |
12086 | # use absolute paths for naming shared libraries, and exclude the |
12087 | # DT_RUNPATH tag from executables and libraries. But doing so |
12088 | # requires that you compile everything twice, which is a pain. |
12089 | # So that behaviour is only enabled if SCOABSPATH is set to a |
12090 | # non-empty value in the environment. Most likely only useful for |
12091 | # creating official distributions of packages. |
12092 | # This is a hack until libtool officially supports absolute path |
12093 | # names for shared libraries. |
12094 | no_undefined_flag_CXX='${wl}-z,text' |
12095 | allow_undefined_flag_CXX='${wl}-z,nodefs' |
12096 | archive_cmds_need_lc_CXX=no |
12097 | hardcode_shlibpath_var_CXX=no |
12098 | hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
12099 | hardcode_libdir_separator_CXX=':' |
12100 | link_all_deplibs_CXX=yes |
12101 | export_dynamic_flag_spec_CXX='${wl}-Bexport' |
12102 | runpath_var='LD_RUN_PATH' |
12103 | |
12104 | case $cc_basename in |
12105 | CC*) |
12106 | archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12107 | archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12108 | ;; |
12109 | *) |
12110 | archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12111 | archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
12112 | ;; |
12113 | esac |
12114 | ;; |
12115 | tandem*) |
12116 | case $cc_basename in |
12117 | NCC*) |
12118 | # NonStop-UX NCC 3.20 |
12119 | # FIXME: insert proper C++ library support |
12120 | ld_shlibs_CXX=no |
12121 | ;; |
12122 | *) |
12123 | # FIXME: insert proper C++ library support |
12124 | ld_shlibs_CXX=no |
12125 | ;; |
12126 | esac |
12127 | ;; |
12128 | vxworks*) |
12129 | # FIXME: insert proper C++ library support |
12130 | ld_shlibs_CXX=no |
12131 | ;; |
12132 | *) |
12133 | # FIXME: insert proper C++ library support |
12134 | ld_shlibs_CXX=no |
12135 | ;; |
12136 | esac |
12137 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12138 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
12139 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12140 | |
12141 | GCC_CXX="$GXX" |
12142 | LD_CXX="$LD" |
12143 | |
12144 | |
12145 | cat > conftest.$ac_ext <<EOF |
12146 | class Foo |
12147 | { |
12148 | public: |
12149 | Foo (void) { a = 0; } |
12150 | private: |
12151 | int a; |
12152 | }; |
12153 | EOF |
12154 | |
12155 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12156 | (eval $ac_compile) 2>&5 |
12157 | ac_status=$? |
12158 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12159 | (exit $ac_status); }; then |
12160 | # Parse the compiler output and extract the necessary |
12161 | # objects, libraries and library flags. |
12162 | |
12163 | # Sentinel used to keep track of whether or not we are before |
12164 | # the conftest object file. |
12165 | pre_test_object_deps_done=no |
12166 | |
12167 | # The `*' in the case matches for architectures that use `case' in |
12168 | # $output_verbose_cmd can trigger glob expansion during the loop |
12169 | # eval without this substitution. |
12170 | output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` |
12171 | |
12172 | for p in `eval $output_verbose_link_cmd`; do |
12173 | case $p in |
12174 | |
12175 | -L* | -R* | -l*) |
12176 | # Some compilers place space between "-{L,R}" and the path. |
12177 | # Remove the space. |
12178 | if test $p = "-L" \ |
12179 | || test $p = "-R"; then |
12180 | prev=$p |
12181 | continue |
12182 | else |
12183 | prev= |
12184 | fi |
12185 | |
12186 | if test "$pre_test_object_deps_done" = no; then |
12187 | case $p in |
12188 | -L* | -R*) |
12189 | # Internal compiler library paths should come after those |
12190 | # provided the user. The postdeps already come after the |
12191 | # user supplied libs so there is no need to process them. |
12192 | if test -z "$compiler_lib_search_path_CXX"; then |
12193 | compiler_lib_search_path_CXX="${prev}${p}" |
12194 | else |
12195 | compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" |
12196 | fi |
12197 | ;; |
12198 | # The "-l" case would never come before the object being |
12199 | # linked, so don't bother handling this case. |
12200 | esac |
12201 | else |
12202 | if test -z "$postdeps_CXX"; then |
12203 | postdeps_CXX="${prev}${p}" |
12204 | else |
12205 | postdeps_CXX="${postdeps_CXX} ${prev}${p}" |
12206 | fi |
12207 | fi |
12208 | ;; |
12209 | |
12210 | *.$objext) |
12211 | # This assumes that the test object file only shows up |
12212 | # once in the compiler output. |
12213 | if test "$p" = "conftest.$objext"; then |
12214 | pre_test_object_deps_done=yes |
12215 | continue |
12216 | fi |
12217 | |
12218 | if test "$pre_test_object_deps_done" = no; then |
12219 | if test -z "$predep_objects_CXX"; then |
12220 | predep_objects_CXX="$p" |
12221 | else |
12222 | predep_objects_CXX="$predep_objects_CXX $p" |
12223 | fi |
12224 | else |
12225 | if test -z "$postdep_objects_CXX"; then |
12226 | postdep_objects_CXX="$p" |
12227 | else |
12228 | postdep_objects_CXX="$postdep_objects_CXX $p" |
12229 | fi |
12230 | fi |
12231 | ;; |
12232 | |
12233 | *) ;; # Ignore the rest. |
12234 | |
12235 | esac |
12236 | done |
12237 | |
12238 | # Clean up. |
12239 | rm -f a.out a.exe |
12240 | else |
12241 | echo "libtool.m4: error: problem compiling CXX test program" |
12242 | fi |
12243 | |
12244 | $rm -f confest.$objext |
12245 | |
12246 | # PORTME: override above test on systems where it is broken |
12247 | case $host_os in |
12248 | interix3*) |
12249 | # Interix 3.5 installs completely hosed .la files for C++, so rather than |
12250 | # hack all around it, let's just trust "g++" to DTRT. |
12251 | predep_objects_CXX= |
12252 | postdep_objects_CXX= |
12253 | postdeps_CXX= |
12254 | ;; |
12255 | |
12256 | solaris*) |
12257 | case $cc_basename in |
12258 | CC*) |
12259 | # Adding this requires a known-good setup of shared libraries for |
12260 | # Sun compiler versions before 5.6, else PIC objects from an old |
12261 | # archive will be linked into the output, leading to subtle bugs. |
12262 | postdeps_CXX='-lCstd -lCrun' |
12263 | ;; |
12264 | esac |
12265 | ;; |
12266 | esac |
12267 | |
12268 | |
12269 | case " $postdeps_CXX " in |
12270 | *" -lc "*) archive_cmds_need_lc_CXX=no ;; |
12271 | esac |
12272 | |
12273 | lt_prog_compiler_wl_CXX= |
12274 | lt_prog_compiler_pic_CXX= |
12275 | lt_prog_compiler_static_CXX= |
12276 | |
12277 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
12278 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
12279 | |
12280 | # C++ specific cases for pic, static, wl, etc. |
12281 | if test "$GXX" = yes; then |
12282 | lt_prog_compiler_wl_CXX='-Wl,' |
12283 | lt_prog_compiler_static_CXX='-static' |
12284 | |
12285 | case $host_os in |
12286 | aix*) |
12287 | # All AIX code is PIC. |
12288 | if test "$host_cpu" = ia64; then |
12289 | # AIX 5 now supports IA64 processor |
12290 | lt_prog_compiler_static_CXX='-Bstatic' |
12291 | fi |
12292 | ;; |
12293 | amigaos*) |
12294 | # FIXME: we need at least 68020 code to build shared libraries, but |
12295 | # adding the `-m68020' flag to GCC prevents building anything better, |
12296 | # like `-m68040'. |
12297 | lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' |
12298 | ;; |
12299 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
12300 | # PIC is the default for these OSes. |
12301 | ;; |
12302 | mingw* | os2* | pw32*) |
12303 | # This hack is so that the source file can tell whether it is being |
12304 | # built for inclusion in a dll (and should export symbols for example). |
12305 | lt_prog_compiler_pic_CXX='-DDLL_EXPORT' |
12306 | ;; |
12307 | darwin* | rhapsody*) |
12308 | # PIC is the default on this platform |
12309 | # Common symbols not allowed in MH_DYLIB files |
12310 | lt_prog_compiler_pic_CXX='-fno-common' |
12311 | ;; |
12312 | *djgpp*) |
12313 | # DJGPP does not support shared libraries at all |
12314 | lt_prog_compiler_pic_CXX= |
12315 | ;; |
12316 | interix3*) |
12317 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
12318 | # Instead, we relocate shared libraries at runtime. |
12319 | ;; |
12320 | sysv4*MP*) |
12321 | if test -d /usr/nec; then |
12322 | lt_prog_compiler_pic_CXX=-Kconform_pic |
12323 | fi |
12324 | ;; |
12325 | hpux*) |
12326 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
12327 | # not for PA HP-UX. |
12328 | case $host_cpu in |
12329 | hppa*64*|ia64*) |
12330 | ;; |
12331 | *) |
12332 | lt_prog_compiler_pic_CXX='-fPIC' |
12333 | ;; |
12334 | esac |
12335 | ;; |
12336 | *) |
12337 | lt_prog_compiler_pic_CXX='-fPIC' |
12338 | ;; |
12339 | esac |
12340 | else |
12341 | case $host_os in |
12342 | aix4* | aix5*) |
12343 | # All AIX code is PIC. |
12344 | if test "$host_cpu" = ia64; then |
12345 | # AIX 5 now supports IA64 processor |
12346 | lt_prog_compiler_static_CXX='-Bstatic' |
12347 | else |
12348 | lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' |
12349 | fi |
12350 | ;; |
12351 | chorus*) |
12352 | case $cc_basename in |
12353 | cxch68*) |
12354 | # Green Hills C++ Compiler |
12355 | # _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" |
12356 | ;; |
12357 | esac |
12358 | ;; |
12359 | darwin*) |
12360 | # PIC is the default on this platform |
12361 | # Common symbols not allowed in MH_DYLIB files |
12362 | case $cc_basename in |
12363 | xlc*) |
12364 | lt_prog_compiler_pic_CXX='-qnocommon' |
12365 | lt_prog_compiler_wl_CXX='-Wl,' |
12366 | ;; |
12367 | esac |
12368 | ;; |
12369 | dgux*) |
12370 | case $cc_basename in |
12371 | ec++*) |
12372 | lt_prog_compiler_pic_CXX='-KPIC' |
12373 | ;; |
12374 | ghcx*) |
12375 | # Green Hills C++ Compiler |
12376 | lt_prog_compiler_pic_CXX='-pic' |
12377 | ;; |
12378 | *) |
12379 | ;; |
12380 | esac |
12381 | ;; |
12382 | freebsd* | dragonfly*) |
12383 | # FreeBSD uses GNU C++ |
12384 | ;; |
12385 | hpux9* | hpux10* | hpux11*) |
12386 | case $cc_basename in |
12387 | CC*) |
12388 | lt_prog_compiler_wl_CXX='-Wl,' |
12389 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12390 | if test "$host_cpu" != ia64; then |
12391 | lt_prog_compiler_pic_CXX='+Z' |
12392 | fi |
12393 | ;; |
12394 | aCC*) |
12395 | lt_prog_compiler_wl_CXX='-Wl,' |
12396 | lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' |
12397 | case $host_cpu in |
12398 | hppa*64*|ia64*) |
12399 | # +Z the default |
12400 | ;; |
12401 | *) |
12402 | lt_prog_compiler_pic_CXX='+Z' |
12403 | ;; |
12404 | esac |
12405 | ;; |
12406 | *) |
12407 | ;; |
12408 | esac |
12409 | ;; |
12410 | interix*) |
12411 | # This is c89, which is MS Visual C++ (no shared libs) |
12412 | # Anyone wants to do a port? |
12413 | ;; |
12414 | irix5* | irix6* | nonstopux*) |
12415 | case $cc_basename in |
12416 | CC*) |
12417 | lt_prog_compiler_wl_CXX='-Wl,' |
12418 | lt_prog_compiler_static_CXX='-non_shared' |
12419 | # CC pic flag -KPIC is the default. |
12420 | ;; |
12421 | *) |
12422 | ;; |
12423 | esac |
12424 | ;; |
12425 | linux* | k*bsd*-gnu) |
12426 | case $cc_basename in |
12427 | KCC*) |
12428 | # KAI C++ Compiler |
12429 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12430 | lt_prog_compiler_pic_CXX='-fPIC' |
12431 | ;; |
12432 | icpc* | ecpc*) |
12433 | # Intel C++ |
12434 | lt_prog_compiler_wl_CXX='-Wl,' |
12435 | lt_prog_compiler_pic_CXX='-KPIC' |
12436 | lt_prog_compiler_static_CXX='-static' |
12437 | ;; |
12438 | pgCC*) |
12439 | # Portland Group C++ compiler. |
12440 | lt_prog_compiler_wl_CXX='-Wl,' |
12441 | lt_prog_compiler_pic_CXX='-fpic' |
12442 | lt_prog_compiler_static_CXX='-Bstatic' |
12443 | ;; |
12444 | cxx*) |
12445 | # Compaq C++ |
12446 | # Make sure the PIC flag is empty. It appears that all Alpha |
12447 | # Linux and Compaq Tru64 Unix objects are PIC. |
12448 | lt_prog_compiler_pic_CXX= |
12449 | lt_prog_compiler_static_CXX='-non_shared' |
12450 | ;; |
12451 | *) |
12452 | ;; |
12453 | esac |
12454 | ;; |
12455 | lynxos*) |
12456 | ;; |
12457 | m88k*) |
12458 | ;; |
12459 | mvs*) |
12460 | case $cc_basename in |
12461 | cxx*) |
12462 | lt_prog_compiler_pic_CXX='-W c,exportall' |
12463 | ;; |
12464 | *) |
12465 | ;; |
12466 | esac |
12467 | ;; |
12468 | netbsd* | netbsdelf*-gnu) |
12469 | ;; |
12470 | osf3* | osf4* | osf5*) |
12471 | case $cc_basename in |
12472 | KCC*) |
12473 | lt_prog_compiler_wl_CXX='--backend -Wl,' |
12474 | ;; |
12475 | RCC*) |
12476 | # Rational C++ 2.4.1 |
12477 | lt_prog_compiler_pic_CXX='-pic' |
12478 | ;; |
12479 | cxx*) |
12480 | # Digital/Compaq C++ |
12481 | lt_prog_compiler_wl_CXX='-Wl,' |
12482 | # Make sure the PIC flag is empty. It appears that all Alpha |
12483 | # Linux and Compaq Tru64 Unix objects are PIC. |
12484 | lt_prog_compiler_pic_CXX= |
12485 | lt_prog_compiler_static_CXX='-non_shared' |
12486 | ;; |
12487 | *) |
12488 | ;; |
12489 | esac |
12490 | ;; |
12491 | psos*) |
12492 | ;; |
12493 | solaris*) |
12494 | case $cc_basename in |
12495 | CC*) |
12496 | # Sun C++ 4.2, 5.x and Centerline C++ |
12497 | lt_prog_compiler_pic_CXX='-KPIC' |
12498 | lt_prog_compiler_static_CXX='-Bstatic' |
12499 | lt_prog_compiler_wl_CXX='-Qoption ld ' |
12500 | ;; |
12501 | gcx*) |
12502 | # Green Hills C++ Compiler |
12503 | lt_prog_compiler_pic_CXX='-PIC' |
12504 | ;; |
12505 | *) |
12506 | ;; |
12507 | esac |
12508 | ;; |
12509 | sunos4*) |
12510 | case $cc_basename in |
12511 | CC*) |
12512 | # Sun C++ 4.x |
12513 | lt_prog_compiler_pic_CXX='-pic' |
12514 | lt_prog_compiler_static_CXX='-Bstatic' |
12515 | ;; |
12516 | lcc*) |
12517 | # Lucid |
12518 | lt_prog_compiler_pic_CXX='-pic' |
12519 | ;; |
12520 | *) |
12521 | ;; |
12522 | esac |
12523 | ;; |
12524 | tandem*) |
12525 | case $cc_basename in |
12526 | NCC*) |
12527 | # NonStop-UX NCC 3.20 |
12528 | lt_prog_compiler_pic_CXX='-KPIC' |
12529 | ;; |
12530 | *) |
12531 | ;; |
12532 | esac |
12533 | ;; |
12534 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
12535 | case $cc_basename in |
12536 | CC*) |
12537 | lt_prog_compiler_wl_CXX='-Wl,' |
12538 | lt_prog_compiler_pic_CXX='-KPIC' |
12539 | lt_prog_compiler_static_CXX='-Bstatic' |
12540 | ;; |
12541 | esac |
12542 | ;; |
12543 | vxworks*) |
12544 | ;; |
12545 | *) |
12546 | lt_prog_compiler_can_build_shared_CXX=no |
12547 | ;; |
12548 | esac |
12549 | fi |
12550 | |
12551 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 |
12552 | echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; } |
12553 | |
12554 | # |
12555 | # Check to make sure the PIC flag actually works. |
12556 | # |
12557 | if test -n "$lt_prog_compiler_pic_CXX"; then |
12558 | |
12559 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 |
12560 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; } |
12561 | if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then |
12562 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12563 | else |
12564 | lt_prog_compiler_pic_works_CXX=no |
12565 | ac_outfile=conftest.$ac_objext |
12566 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12567 | lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" |
12568 | # Insert the option either (1) after the last *FLAGS variable, or |
12569 | # (2) before a word containing "conftest.", or (3) at the end. |
12570 | # Note that $ac_compile itself does not contain backslashes and begins |
12571 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12572 | # The option is referenced via a variable to avoid confusing sed. |
12573 | lt_compile=`echo "$ac_compile" | $SED \ |
12574 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12575 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12576 | -e 's:$: $lt_compiler_flag:'` |
12577 | (eval echo "\"\$as_me:12577: $lt_compile\"" >&5) |
12578 | (eval "$lt_compile" 2>conftest.err) |
12579 | ac_status=$? |
12580 | cat conftest.err >&5 |
12581 | echo "$as_me:12581: \$? = $ac_status" >&5 |
12582 | if (exit $ac_status) && test -s "$ac_outfile"; then |
12583 | # The compiler can only warn and ignore the option if not recognized |
12584 | # So say no if there are warnings other than the usual output. |
12585 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
12586 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12587 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
12588 | lt_prog_compiler_pic_works_CXX=yes |
12589 | fi |
12590 | fi |
12591 | $rm conftest* |
12592 | |
12593 | fi |
12594 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 |
12595 | echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6; } |
12596 | |
12597 | if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then |
12598 | case $lt_prog_compiler_pic_CXX in |
12599 | "" | " "*) ;; |
12600 | *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; |
12601 | esac |
12602 | else |
12603 | lt_prog_compiler_pic_CXX= |
12604 | lt_prog_compiler_can_build_shared_CXX=no |
12605 | fi |
12606 | |
12607 | fi |
12608 | case $host_os in |
12609 | # For platforms which do not support PIC, -DPIC is meaningless: |
12610 | *djgpp*) |
12611 | lt_prog_compiler_pic_CXX= |
12612 | ;; |
12613 | *) |
12614 | lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" |
12615 | ;; |
12616 | esac |
12617 | |
12618 | # |
12619 | # Check to make sure the static flag actually works. |
12620 | # |
12621 | wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" |
12622 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
12623 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
12624 | if test "${lt_prog_compiler_static_works_CXX+set}" = set; then |
12625 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12626 | else |
12627 | lt_prog_compiler_static_works_CXX=no |
12628 | save_LDFLAGS="$LDFLAGS" |
12629 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
12630 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
12631 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
12632 | # The linker can only warn and ignore the option if not recognized |
12633 | # So say no if there are warnings |
12634 | if test -s conftest.err; then |
12635 | # Append any errors to the config.log. |
12636 | cat conftest.err 1>&5 |
12637 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
12638 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
12639 | if diff conftest.exp conftest.er2 >/dev/null; then |
12640 | lt_prog_compiler_static_works_CXX=yes |
12641 | fi |
12642 | else |
12643 | lt_prog_compiler_static_works_CXX=yes |
12644 | fi |
12645 | fi |
12646 | $rm conftest* |
12647 | LDFLAGS="$save_LDFLAGS" |
12648 | |
12649 | fi |
12650 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5 |
12651 | echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6; } |
12652 | |
12653 | if test x"$lt_prog_compiler_static_works_CXX" = xyes; then |
12654 | : |
12655 | else |
12656 | lt_prog_compiler_static_CXX= |
12657 | fi |
12658 | |
12659 | |
12660 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
12661 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
12662 | if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then |
12663 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
12664 | else |
12665 | lt_cv_prog_compiler_c_o_CXX=no |
12666 | $rm -r conftest 2>/dev/null |
12667 | mkdir conftest |
12668 | cd conftest |
12669 | mkdir out |
12670 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12671 | |
12672 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
12673 | # Insert the option either (1) after the last *FLAGS variable, or |
12674 | # (2) before a word containing "conftest.", or (3) at the end. |
12675 | # Note that $ac_compile itself does not contain backslashes and begins |
12676 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
12677 | lt_compile=`echo "$ac_compile" | $SED \ |
12678 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
12679 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
12680 | -e 's:$: $lt_compiler_flag:'` |
12681 | (eval echo "\"\$as_me:12681: $lt_compile\"" >&5) |
12682 | (eval "$lt_compile" 2>out/conftest.err) |
12683 | ac_status=$? |
12684 | cat out/conftest.err >&5 |
12685 | echo "$as_me:12685: \$? = $ac_status" >&5 |
12686 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
12687 | then |
12688 | # The compiler can only warn and ignore the option if not recognized |
12689 | # So say no if there are warnings |
12690 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
12691 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
12692 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
12693 | lt_cv_prog_compiler_c_o_CXX=yes |
12694 | fi |
12695 | fi |
12696 | chmod u+w . 2>&5 |
12697 | $rm conftest* |
12698 | # SGI C++ compiler will create directory out/ii_files/ for |
12699 | # template instantiation |
12700 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
12701 | $rm out/* && rmdir out |
12702 | cd .. |
12703 | rmdir conftest |
12704 | $rm conftest* |
12705 | |
12706 | fi |
12707 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 |
12708 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; } |
12709 | |
12710 | |
12711 | hard_links="nottested" |
12712 | if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then |
12713 | # do not overwrite the value of need_locks provided by the user |
12714 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
12715 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
12716 | hard_links=yes |
12717 | $rm conftest* |
12718 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
12719 | touch conftest.a |
12720 | ln conftest.a conftest.b 2>&5 || hard_links=no |
12721 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
12722 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
12723 | echo "${ECHO_T}$hard_links" >&6; } |
12724 | if test "$hard_links" = no; then |
12725 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
12726 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
12727 | need_locks=warn |
12728 | fi |
12729 | else |
12730 | need_locks=no |
12731 | fi |
12732 | |
12733 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
12734 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
12735 | |
12736 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12737 | case $host_os in |
12738 | aix4* | aix5*) |
12739 | # If we're using GNU nm, then we don't want the "-C" option. |
12740 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
12741 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
12742 | 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' |
12743 | else |
12744 | 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' |
12745 | fi |
12746 | ;; |
12747 | pw32*) |
12748 | export_symbols_cmds_CXX="$ltdll_cmds" |
12749 | ;; |
12750 | cygwin* | mingw*) |
12751 | 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' |
12752 | ;; |
12753 | linux* | k*bsd*-gnu) |
12754 | link_all_deplibs_CXX=no |
12755 | ;; |
12756 | *) |
12757 | export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
12758 | ;; |
12759 | esac |
12760 | |
12761 | { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 |
12762 | echo "${ECHO_T}$ld_shlibs_CXX" >&6; } |
12763 | test "$ld_shlibs_CXX" = no && can_build_shared=no |
12764 | |
12765 | # |
12766 | # Do we need to explicitly link libc? |
12767 | # |
12768 | case "x$archive_cmds_need_lc_CXX" in |
12769 | x|xyes) |
12770 | # Assume -lc should be added |
12771 | archive_cmds_need_lc_CXX=yes |
12772 | |
12773 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
12774 | case $archive_cmds_CXX in |
12775 | *'~'*) |
12776 | # FIXME: we may have to deal with multi-command sequences. |
12777 | ;; |
12778 | '$CC '*) |
12779 | # Test whether the compiler implicitly links with -lc since on some |
12780 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
12781 | # to ld, don't add -lc before -lgcc. |
12782 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
12783 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
12784 | $rm conftest* |
12785 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
12786 | |
12787 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
12788 | (eval $ac_compile) 2>&5 |
12789 | ac_status=$? |
12790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12791 | (exit $ac_status); } 2>conftest.err; then |
12792 | soname=conftest |
12793 | lib=conftest |
12794 | libobjs=conftest.$ac_objext |
12795 | deplibs= |
12796 | wl=$lt_prog_compiler_wl_CXX |
12797 | pic_flag=$lt_prog_compiler_pic_CXX |
12798 | compiler_flags=-v |
12799 | linker_flags=-v |
12800 | verstring= |
12801 | output_objdir=. |
12802 | libname=conftest |
12803 | lt_save_allow_undefined_flag=$allow_undefined_flag_CXX |
12804 | allow_undefined_flag_CXX= |
12805 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
12806 | (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
12807 | ac_status=$? |
12808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
12809 | (exit $ac_status); } |
12810 | then |
12811 | archive_cmds_need_lc_CXX=no |
12812 | else |
12813 | archive_cmds_need_lc_CXX=yes |
12814 | fi |
12815 | allow_undefined_flag_CXX=$lt_save_allow_undefined_flag |
12816 | else |
12817 | cat conftest.err 1>&5 |
12818 | fi |
12819 | $rm conftest* |
12820 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 |
12821 | echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; } |
12822 | ;; |
12823 | esac |
12824 | fi |
12825 | ;; |
12826 | esac |
12827 | |
12828 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
12829 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
12830 | library_names_spec= |
12831 | libname_spec='lib$name' |
12832 | soname_spec= |
12833 | shrext_cmds=".so" |
12834 | postinstall_cmds= |
12835 | postuninstall_cmds= |
12836 | finish_cmds= |
12837 | finish_eval= |
12838 | shlibpath_var= |
12839 | shlibpath_overrides_runpath=unknown |
12840 | version_type=none |
12841 | dynamic_linker="$host_os ld.so" |
12842 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
12843 | if test "$GCC" = yes; then |
12844 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12845 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
12846 | # if the path contains ";" then we assume it to be the separator |
12847 | # otherwise default to the standard path separator (i.e. ":") - it is |
12848 | # assumed that no part of a normal pathname contains ";" but that should |
12849 | # okay in the real world where ";" in dirpaths is itself problematic. |
12850 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12851 | else |
12852 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12853 | fi |
12854 | else |
12855 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
12856 | fi |
12857 | need_lib_prefix=unknown |
12858 | hardcode_into_libs=no |
12859 | |
12860 | # when you set need_version to no, make sure it does not cause -set_version |
12861 | # flags to be left without arguments |
12862 | need_version=unknown |
12863 | |
12864 | case $host_os in |
12865 | aix3*) |
12866 | version_type=linux |
12867 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
12868 | shlibpath_var=LIBPATH |
12869 | |
12870 | # AIX 3 has no versioning support, so we append a major version to the name. |
12871 | soname_spec='${libname}${release}${shared_ext}$major' |
12872 | ;; |
12873 | |
12874 | aix4* | aix5*) |
12875 | version_type=linux |
12876 | need_lib_prefix=no |
12877 | need_version=no |
12878 | hardcode_into_libs=yes |
12879 | if test "$host_cpu" = ia64; then |
12880 | # AIX 5 supports IA64 |
12881 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
12882 | shlibpath_var=LD_LIBRARY_PATH |
12883 | else |
12884 | # With GCC up to 2.95.x, collect2 would create an import file |
12885 | # for dependence libraries. The import file would start with |
12886 | # the line `#! .'. This would cause the generated library to |
12887 | # depend on `.', always an invalid library. This was fixed in |
12888 | # development snapshots of GCC prior to 3.0. |
12889 | case $host_os in |
12890 | aix4 | aix4.[01] | aix4.[01].*) |
12891 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
12892 | echo ' yes ' |
12893 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
12894 | : |
12895 | else |
12896 | can_build_shared=no |
12897 | fi |
12898 | ;; |
12899 | esac |
12900 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
12901 | # soname into executable. Probably we can add versioning support to |
12902 | # collect2, so additional links can be useful in future. |
12903 | if test "$aix_use_runtimelinking" = yes; then |
12904 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
12905 | # instead of lib<name>.a to let people know that these are not |
12906 | # typical AIX shared libraries. |
12907 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12908 | else |
12909 | # We preserve .a as extension for shared libraries through AIX4.2 |
12910 | # and later when we are not doing run time linking. |
12911 | library_names_spec='${libname}${release}.a $libname.a' |
12912 | soname_spec='${libname}${release}${shared_ext}$major' |
12913 | fi |
12914 | shlibpath_var=LIBPATH |
12915 | fi |
12916 | ;; |
12917 | |
12918 | amigaos*) |
12919 | library_names_spec='$libname.ixlibrary $libname.a' |
12920 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
12921 | 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' |
12922 | ;; |
12923 | |
12924 | beos*) |
12925 | library_names_spec='${libname}${shared_ext}' |
12926 | dynamic_linker="$host_os ld.so" |
12927 | shlibpath_var=LIBRARY_PATH |
12928 | ;; |
12929 | |
12930 | bsdi[45]*) |
12931 | version_type=linux |
12932 | need_version=no |
12933 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
12934 | soname_spec='${libname}${release}${shared_ext}$major' |
12935 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
12936 | shlibpath_var=LD_LIBRARY_PATH |
12937 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
12938 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
12939 | # the default ld.so.conf also contains /usr/contrib/lib and |
12940 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
12941 | # libtool to hard-code these into programs |
12942 | ;; |
12943 | |
12944 | cygwin* | mingw* | pw32*) |
12945 | version_type=windows |
12946 | shrext_cmds=".dll" |
12947 | need_version=no |
12948 | need_lib_prefix=no |
12949 | |
12950 | case $GCC,$host_os in |
12951 | yes,cygwin* | yes,mingw* | yes,pw32*) |
12952 | library_names_spec='$libname.dll.a' |
12953 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
12954 | postinstall_cmds='base_file=`basename \${file}`~ |
12955 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
12956 | dldir=$destdir/`dirname \$dlpath`~ |
12957 | test -d \$dldir || mkdir -p \$dldir~ |
12958 | $install_prog $dir/$dlname \$dldir/$dlname~ |
12959 | chmod a+x \$dldir/$dlname' |
12960 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
12961 | dlpath=$dir/\$dldll~ |
12962 | $rm \$dlpath' |
12963 | shlibpath_overrides_runpath=yes |
12964 | |
12965 | case $host_os in |
12966 | cygwin*) |
12967 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
12968 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12969 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
12970 | ;; |
12971 | mingw*) |
12972 | # MinGW DLLs use traditional 'lib' prefix |
12973 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12974 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
12975 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
12976 | # It is most probably a Windows format PATH printed by |
12977 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
12978 | # path with ; separators, and with drive letters. We can handle the |
12979 | # drive letters (cygwin fileutils understands them), so leave them, |
12980 | # especially as we might pass files found there to a mingw objdump, |
12981 | # which wouldn't understand a cygwinified path. Ahh. |
12982 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
12983 | else |
12984 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
12985 | fi |
12986 | ;; |
12987 | pw32*) |
12988 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
12989 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
12990 | ;; |
12991 | esac |
12992 | ;; |
12993 | |
12994 | *) |
12995 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
12996 | ;; |
12997 | esac |
12998 | dynamic_linker='Win32 ld.exe' |
12999 | # FIXME: first we should search . and the directory the executable is in |
13000 | shlibpath_var=PATH |
13001 | ;; |
13002 | |
13003 | darwin* | rhapsody*) |
13004 | dynamic_linker="$host_os dyld" |
13005 | version_type=darwin |
13006 | need_lib_prefix=no |
13007 | need_version=no |
13008 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
13009 | soname_spec='${libname}${release}${major}$shared_ext' |
13010 | shlibpath_overrides_runpath=yes |
13011 | shlibpath_var=DYLD_LIBRARY_PATH |
13012 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
13013 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
13014 | if test "$GCC" = yes; then |
13015 | 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"` |
13016 | else |
13017 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
13018 | fi |
13019 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
13020 | ;; |
13021 | |
13022 | dgux*) |
13023 | version_type=linux |
13024 | need_lib_prefix=no |
13025 | need_version=no |
13026 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
13027 | soname_spec='${libname}${release}${shared_ext}$major' |
13028 | shlibpath_var=LD_LIBRARY_PATH |
13029 | ;; |
13030 | |
13031 | freebsd1*) |
13032 | dynamic_linker=no |
13033 | ;; |
13034 | |
13035 | freebsd* | dragonfly*) |
13036 | # DragonFly does not have aout. When/if they implement a new |
13037 | # versioning mechanism, adjust this. |
13038 | if test -x /usr/bin/objformat; then |
13039 | objformat=`/usr/bin/objformat` |
13040 | else |
13041 | case $host_os in |
13042 | freebsd[123]*) objformat=aout ;; |
13043 | *) objformat=elf ;; |
13044 | esac |
13045 | fi |
13046 | version_type=freebsd-$objformat |
13047 | case $version_type in |
13048 | freebsd-elf*) |
13049 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
13050 | need_version=no |
13051 | need_lib_prefix=no |
13052 | ;; |
13053 | freebsd-*) |
13054 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
13055 | need_version=yes |
13056 | ;; |
13057 | esac |
13058 | shlibpath_var=LD_LIBRARY_PATH |
13059 | case $host_os in |
13060 | freebsd2*) |
13061 | shlibpath_overrides_runpath=yes |
13062 | ;; |
13063 | freebsd3.[01]* | freebsdelf3.[01]*) |
13064 | shlibpath_overrides_runpath=yes |
13065 | hardcode_into_libs=yes |
13066 | ;; |
13067 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
13068 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
13069 | shlibpath_overrides_runpath=no |
13070 | hardcode_into_libs=yes |
13071 | ;; |
13072 | freebsd*) # from 4.6 on |
13073 | shlibpath_overrides_runpath=yes |
13074 | hardcode_into_libs=yes |
13075 | ;; |
13076 | esac |
13077 | ;; |
13078 | |
13079 | gnu*) |
13080 | version_type=linux |
13081 | need_lib_prefix=no |
13082 | need_version=no |
13083 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
13084 | soname_spec='${libname}${release}${shared_ext}$major' |
13085 | shlibpath_var=LD_LIBRARY_PATH |
13086 | hardcode_into_libs=yes |
13087 | ;; |
13088 | |
13089 | hpux9* | hpux10* | hpux11*) |
13090 | # Give a soname corresponding to the major version so that dld.sl refuses to |
13091 | # link against other versions. |
13092 | version_type=sunos |
13093 | need_lib_prefix=no |
13094 | need_version=no |
13095 | case $host_cpu in |
13096 | ia64*) |
13097 | shrext_cmds='.so' |
13098 | hardcode_into_libs=yes |
13099 | dynamic_linker="$host_os dld.so" |
13100 | shlibpath_var=LD_LIBRARY_PATH |
13101 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
13102 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13103 | soname_spec='${libname}${release}${shared_ext}$major' |
13104 | if test "X$HPUX_IA64_MODE" = X32; then |
13105 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
13106 | else |
13107 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
13108 | fi |
13109 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
13110 | ;; |
13111 | hppa*64*) |
13112 | shrext_cmds='.sl' |
13113 | hardcode_into_libs=yes |
13114 | dynamic_linker="$host_os dld.sl" |
13115 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
13116 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
13117 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13118 | soname_spec='${libname}${release}${shared_ext}$major' |
13119 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
13120 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
13121 | ;; |
13122 | *) |
13123 | shrext_cmds='.sl' |
13124 | dynamic_linker="$host_os dld.sl" |
13125 | shlibpath_var=SHLIB_PATH |
13126 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
13127 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13128 | soname_spec='${libname}${release}${shared_ext}$major' |
13129 | ;; |
13130 | esac |
13131 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
13132 | postinstall_cmds='chmod 555 $lib' |
13133 | ;; |
13134 | |
13135 | interix3*) |
13136 | version_type=linux |
13137 | need_lib_prefix=no |
13138 | need_version=no |
13139 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13140 | soname_spec='${libname}${release}${shared_ext}$major' |
13141 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
13142 | shlibpath_var=LD_LIBRARY_PATH |
13143 | shlibpath_overrides_runpath=no |
13144 | hardcode_into_libs=yes |
13145 | ;; |
13146 | |
13147 | irix5* | irix6* | nonstopux*) |
13148 | case $host_os in |
13149 | nonstopux*) version_type=nonstopux ;; |
13150 | *) |
13151 | if test "$lt_cv_prog_gnu_ld" = yes; then |
13152 | version_type=linux |
13153 | else |
13154 | version_type=irix |
13155 | fi ;; |
13156 | esac |
13157 | need_lib_prefix=no |
13158 | need_version=no |
13159 | soname_spec='${libname}${release}${shared_ext}$major' |
13160 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
13161 | case $host_os in |
13162 | irix5* | nonstopux*) |
13163 | libsuff= shlibsuff= |
13164 | ;; |
13165 | *) |
13166 | case $LD in # libtool.m4 will add one of these switches to LD |
13167 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
13168 | libsuff= shlibsuff= libmagic=32-bit;; |
13169 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
13170 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
13171 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
13172 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
13173 | *) libsuff= shlibsuff= libmagic=never-match;; |
13174 | esac |
13175 | ;; |
13176 | esac |
13177 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
13178 | shlibpath_overrides_runpath=no |
13179 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
13180 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
13181 | hardcode_into_libs=yes |
13182 | ;; |
13183 | |
13184 | # No shared lib support for Linux oldld, aout, or coff. |
13185 | linux*oldld* | linux*aout* | linux*coff*) |
13186 | dynamic_linker=no |
13187 | ;; |
13188 | |
13189 | # This must be Linux ELF. |
13190 | linux* | k*bsd*-gnu) |
13191 | version_type=linux |
13192 | need_lib_prefix=no |
13193 | need_version=no |
13194 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13195 | soname_spec='${libname}${release}${shared_ext}$major' |
13196 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
13197 | shlibpath_var=LD_LIBRARY_PATH |
13198 | shlibpath_overrides_runpath=no |
13199 | # This implies no fast_install, which is unacceptable. |
13200 | # Some rework will be needed to allow for fast_install |
13201 | # before this can be enabled. |
13202 | hardcode_into_libs=yes |
13203 | |
13204 | # Append ld.so.conf contents to the search path |
13205 | if test -f /etc/ld.so.conf; then |
13206 | 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' ' '` |
13207 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
13208 | fi |
13209 | |
13210 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
13211 | # powerpc, because MkLinux only supported shared libraries with the |
13212 | # GNU dynamic linker. Since this was broken with cross compilers, |
13213 | # most powerpc-linux boxes support dynamic linking these days and |
13214 | # people can always --disable-shared, the test was removed, and we |
13215 | # assume the GNU/Linux dynamic linker is in use. |
13216 | dynamic_linker='GNU/Linux ld.so' |
13217 | ;; |
13218 | |
13219 | netbsdelf*-gnu) |
13220 | version_type=linux |
13221 | need_lib_prefix=no |
13222 | need_version=no |
13223 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13224 | soname_spec='${libname}${release}${shared_ext}$major' |
13225 | shlibpath_var=LD_LIBRARY_PATH |
13226 | shlibpath_overrides_runpath=no |
13227 | hardcode_into_libs=yes |
13228 | dynamic_linker='NetBSD ld.elf_so' |
13229 | ;; |
13230 | |
13231 | netbsd*) |
13232 | version_type=sunos |
13233 | need_lib_prefix=no |
13234 | need_version=no |
13235 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
13236 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13237 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13238 | dynamic_linker='NetBSD (a.out) ld.so' |
13239 | else |
13240 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
13241 | soname_spec='${libname}${release}${shared_ext}$major' |
13242 | dynamic_linker='NetBSD ld.elf_so' |
13243 | fi |
13244 | shlibpath_var=LD_LIBRARY_PATH |
13245 | shlibpath_overrides_runpath=yes |
13246 | hardcode_into_libs=yes |
13247 | ;; |
13248 | |
13249 | newsos6) |
13250 | version_type=linux |
13251 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13252 | shlibpath_var=LD_LIBRARY_PATH |
13253 | shlibpath_overrides_runpath=yes |
13254 | ;; |
13255 | |
13256 | nto-qnx*) |
13257 | version_type=linux |
13258 | need_lib_prefix=no |
13259 | need_version=no |
13260 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13261 | soname_spec='${libname}${release}${shared_ext}$major' |
13262 | shlibpath_var=LD_LIBRARY_PATH |
13263 | shlibpath_overrides_runpath=yes |
13264 | ;; |
13265 | |
13266 | openbsd*) |
13267 | version_type=sunos |
13268 | sys_lib_dlsearch_path_spec="/usr/lib" |
13269 | need_lib_prefix=no |
13270 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
13271 | case $host_os in |
13272 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
13273 | *) need_version=no ;; |
13274 | esac |
13275 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13276 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
13277 | shlibpath_var=LD_LIBRARY_PATH |
13278 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
13279 | case $host_os in |
13280 | openbsd2.[89] | openbsd2.[89].*) |
13281 | shlibpath_overrides_runpath=no |
13282 | ;; |
13283 | *) |
13284 | shlibpath_overrides_runpath=yes |
13285 | ;; |
13286 | esac |
13287 | else |
13288 | shlibpath_overrides_runpath=yes |
13289 | fi |
13290 | ;; |
13291 | |
13292 | os2*) |
13293 | libname_spec='$name' |
13294 | shrext_cmds=".dll" |
13295 | need_lib_prefix=no |
13296 | library_names_spec='$libname${shared_ext} $libname.a' |
13297 | dynamic_linker='OS/2 ld.exe' |
13298 | shlibpath_var=LIBPATH |
13299 | ;; |
13300 | |
13301 | osf3* | osf4* | osf5*) |
13302 | version_type=osf |
13303 | need_lib_prefix=no |
13304 | need_version=no |
13305 | soname_spec='${libname}${release}${shared_ext}$major' |
13306 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13307 | shlibpath_var=LD_LIBRARY_PATH |
13308 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
13309 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
13310 | ;; |
13311 | |
13312 | solaris*) |
13313 | version_type=linux |
13314 | need_lib_prefix=no |
13315 | need_version=no |
13316 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13317 | soname_spec='${libname}${release}${shared_ext}$major' |
13318 | shlibpath_var=LD_LIBRARY_PATH |
13319 | shlibpath_overrides_runpath=yes |
13320 | hardcode_into_libs=yes |
13321 | # ldd complains unless libraries are executable |
13322 | postinstall_cmds='chmod +x $lib' |
13323 | ;; |
13324 | |
13325 | sunos4*) |
13326 | version_type=sunos |
13327 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
13328 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
13329 | shlibpath_var=LD_LIBRARY_PATH |
13330 | shlibpath_overrides_runpath=yes |
13331 | if test "$with_gnu_ld" = yes; then |
13332 | need_lib_prefix=no |
13333 | fi |
13334 | need_version=yes |
13335 | ;; |
13336 | |
13337 | sysv4 | sysv4.3*) |
13338 | version_type=linux |
13339 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13340 | soname_spec='${libname}${release}${shared_ext}$major' |
13341 | shlibpath_var=LD_LIBRARY_PATH |
13342 | case $host_vendor in |
13343 | sni) |
13344 | shlibpath_overrides_runpath=no |
13345 | need_lib_prefix=no |
13346 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
13347 | runpath_var=LD_RUN_PATH |
13348 | ;; |
13349 | siemens) |
13350 | need_lib_prefix=no |
13351 | ;; |
13352 | motorola) |
13353 | need_lib_prefix=no |
13354 | need_version=no |
13355 | shlibpath_overrides_runpath=no |
13356 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
13357 | ;; |
13358 | esac |
13359 | ;; |
13360 | |
13361 | sysv4*MP*) |
13362 | if test -d /usr/nec ;then |
13363 | version_type=linux |
13364 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
13365 | soname_spec='$libname${shared_ext}.$major' |
13366 | shlibpath_var=LD_LIBRARY_PATH |
13367 | fi |
13368 | ;; |
13369 | |
13370 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
13371 | version_type=freebsd-elf |
13372 | need_lib_prefix=no |
13373 | need_version=no |
13374 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
13375 | soname_spec='${libname}${release}${shared_ext}$major' |
13376 | shlibpath_var=LD_LIBRARY_PATH |
13377 | hardcode_into_libs=yes |
13378 | if test "$with_gnu_ld" = yes; then |
13379 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
13380 | shlibpath_overrides_runpath=no |
13381 | else |
13382 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
13383 | shlibpath_overrides_runpath=yes |
13384 | case $host_os in |
13385 | sco3.2v5*) |
13386 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
13387 | ;; |
13388 | esac |
13389 | fi |
13390 | sys_lib_dlsearch_path_spec='/usr/lib' |
13391 | ;; |
13392 | |
13393 | uts4*) |
13394 | version_type=linux |
13395 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
13396 | soname_spec='${libname}${release}${shared_ext}$major' |
13397 | shlibpath_var=LD_LIBRARY_PATH |
13398 | ;; |
13399 | |
13400 | *) |
13401 | dynamic_linker=no |
13402 | ;; |
13403 | esac |
13404 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
13405 | echo "${ECHO_T}$dynamic_linker" >&6; } |
13406 | test "$dynamic_linker" = no && can_build_shared=no |
13407 | |
13408 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
13409 | if test "$GCC" = yes; then |
13410 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
13411 | fi |
13412 | |
13413 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
13414 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
13415 | hardcode_action_CXX= |
13416 | if test -n "$hardcode_libdir_flag_spec_CXX" || \ |
13417 | test -n "$runpath_var_CXX" || \ |
13418 | test "X$hardcode_automatic_CXX" = "Xyes" ; then |
13419 | |
13420 | # We can hardcode non-existant directories. |
13421 | if test "$hardcode_direct_CXX" != no && |
13422 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
13423 | # have to relink, otherwise we might link with an installed library |
13424 | # when we should be linking with a yet-to-be-installed one |
13425 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && |
13426 | test "$hardcode_minus_L_CXX" != no; then |
13427 | # Linking always hardcodes the temporary library directory. |
13428 | hardcode_action_CXX=relink |
13429 | else |
13430 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
13431 | hardcode_action_CXX=immediate |
13432 | fi |
13433 | else |
13434 | # We cannot hardcode anything, or else we can only hardcode existing |
13435 | # directories. |
13436 | hardcode_action_CXX=unsupported |
13437 | fi |
13438 | { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 |
13439 | echo "${ECHO_T}$hardcode_action_CXX" >&6; } |
13440 | |
13441 | if test "$hardcode_action_CXX" = relink; then |
13442 | # Fast installation is not supported |
13443 | enable_fast_install=no |
13444 | elif test "$shlibpath_overrides_runpath" = yes || |
13445 | test "$enable_shared" = no; then |
13446 | # Fast installation is not necessary |
13447 | enable_fast_install=needless |
13448 | fi |
13449 | |
13450 | |
13451 | # The else clause should only fire when bootstrapping the |
13452 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
13453 | # with your package, and you will get complaints that there are |
13454 | # no rules to generate ltmain.sh. |
13455 | if test -f "$ltmain"; then |
13456 | # See if we are running on zsh, and set the options which allow our commands through |
13457 | # without removal of \ escapes. |
13458 | if test -n "${ZSH_VERSION+set}" ; then |
13459 | setopt NO_GLOB_SUBST |
13460 | fi |
13461 | # Now quote all the things that may contain metacharacters while being |
13462 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
13463 | # variables and quote the copies for generation of the libtool script. |
13464 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
13465 | SED SHELL STRIP \ |
13466 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
13467 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
13468 | deplibs_check_method reload_flag reload_cmds need_locks \ |
13469 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
13470 | lt_cv_sys_global_symbol_to_c_name_address \ |
13471 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
13472 | old_postinstall_cmds old_postuninstall_cmds \ |
13473 | compiler_CXX \ |
13474 | CC_CXX \ |
13475 | LD_CXX \ |
13476 | lt_prog_compiler_wl_CXX \ |
13477 | lt_prog_compiler_pic_CXX \ |
13478 | lt_prog_compiler_static_CXX \ |
13479 | lt_prog_compiler_no_builtin_flag_CXX \ |
13480 | export_dynamic_flag_spec_CXX \ |
13481 | thread_safe_flag_spec_CXX \ |
13482 | whole_archive_flag_spec_CXX \ |
13483 | enable_shared_with_static_runtimes_CXX \ |
13484 | old_archive_cmds_CXX \ |
13485 | old_archive_from_new_cmds_CXX \ |
13486 | predep_objects_CXX \ |
13487 | postdep_objects_CXX \ |
13488 | predeps_CXX \ |
13489 | postdeps_CXX \ |
13490 | compiler_lib_search_path_CXX \ |
13491 | archive_cmds_CXX \ |
13492 | archive_expsym_cmds_CXX \ |
13493 | postinstall_cmds_CXX \ |
13494 | postuninstall_cmds_CXX \ |
13495 | old_archive_from_expsyms_cmds_CXX \ |
13496 | allow_undefined_flag_CXX \ |
13497 | no_undefined_flag_CXX \ |
13498 | export_symbols_cmds_CXX \ |
13499 | hardcode_libdir_flag_spec_CXX \ |
13500 | hardcode_libdir_flag_spec_ld_CXX \ |
13501 | hardcode_libdir_separator_CXX \ |
13502 | hardcode_automatic_CXX \ |
13503 | module_cmds_CXX \ |
13504 | module_expsym_cmds_CXX \ |
13505 | lt_cv_prog_compiler_c_o_CXX \ |
13506 | exclude_expsyms_CXX \ |
13507 | include_expsyms_CXX; do |
13508 | |
13509 | case $var in |
13510 | old_archive_cmds_CXX | \ |
13511 | old_archive_from_new_cmds_CXX | \ |
13512 | archive_cmds_CXX | \ |
13513 | archive_expsym_cmds_CXX | \ |
13514 | module_cmds_CXX | \ |
13515 | module_expsym_cmds_CXX | \ |
13516 | old_archive_from_expsyms_cmds_CXX | \ |
13517 | export_symbols_cmds_CXX | \ |
13518 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
13519 | postinstall_cmds | postuninstall_cmds | \ |
13520 | old_postinstall_cmds | old_postuninstall_cmds | \ |
13521 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
13522 | # Double-quote double-evaled strings. |
13523 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
13524 | ;; |
13525 | *) |
13526 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
13527 | ;; |
13528 | esac |
13529 | done |
13530 | |
13531 | case $lt_echo in |
13532 | *'\$0 --fallback-echo"') |
13533 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
13534 | ;; |
13535 | esac |
13536 | |
13537 | cfgfile="$ofile" |
13538 | |
13539 | cat <<__EOF__ >> "$cfgfile" |
13540 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
13541 | |
13542 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
13543 | |
13544 | # Shell to use when invoking shell scripts. |
13545 | SHELL=$lt_SHELL |
13546 | |
13547 | # Whether or not to build shared libraries. |
13548 | build_libtool_libs=$enable_shared |
13549 | |
13550 | # Whether or not to build static libraries. |
13551 | build_old_libs=$enable_static |
13552 | |
13553 | # Whether or not to add -lc for building shared libraries. |
13554 | build_libtool_need_lc=$archive_cmds_need_lc_CXX |
13555 | |
13556 | # Whether or not to disallow shared libs when runtime libs are static |
13557 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX |
13558 | |
13559 | # Whether or not to optimize for fast installation. |
13560 | fast_install=$enable_fast_install |
13561 | |
13562 | # The host system. |
13563 | host_alias=$host_alias |
13564 | host=$host |
13565 | host_os=$host_os |
13566 | |
13567 | # The build system. |
13568 | build_alias=$build_alias |
13569 | build=$build |
13570 | build_os=$build_os |
13571 | |
13572 | # An echo program that does not interpret backslashes. |
13573 | echo=$lt_echo |
13574 | |
13575 | # The archiver. |
13576 | AR=$lt_AR |
13577 | AR_FLAGS=$lt_AR_FLAGS |
13578 | |
13579 | # A C compiler. |
13580 | LTCC=$lt_LTCC |
13581 | |
13582 | # LTCC compiler flags. |
13583 | LTCFLAGS=$lt_LTCFLAGS |
13584 | |
13585 | # A language-specific compiler. |
13586 | CC=$lt_compiler_CXX |
13587 | |
13588 | # Is the compiler the GNU C compiler? |
13589 | with_gcc=$GCC_CXX |
13590 | |
13591 | # An ERE matcher. |
13592 | EGREP=$lt_EGREP |
13593 | |
13594 | # The linker used to build libraries. |
13595 | LD=$lt_LD_CXX |
13596 | |
13597 | # Whether we need hard or soft links. |
13598 | LN_S=$lt_LN_S |
13599 | |
13600 | # A BSD-compatible nm program. |
13601 | NM=$lt_NM |
13602 | |
13603 | # A symbol stripping program |
13604 | STRIP=$lt_STRIP |
13605 | |
13606 | # Used to examine libraries when file_magic_cmd begins "file" |
13607 | MAGIC_CMD=$MAGIC_CMD |
13608 | |
13609 | # Used on cygwin: DLL creation program. |
13610 | DLLTOOL="$DLLTOOL" |
13611 | |
13612 | # Used on cygwin: object dumper. |
13613 | OBJDUMP="$OBJDUMP" |
13614 | |
13615 | # Used on cygwin: assembler. |
13616 | AS="$AS" |
13617 | |
13618 | # The name of the directory that contains temporary libtool files. |
13619 | objdir=$objdir |
13620 | |
13621 | # How to create reloadable object files. |
13622 | reload_flag=$lt_reload_flag |
13623 | reload_cmds=$lt_reload_cmds |
13624 | |
13625 | # How to pass a linker flag through the compiler. |
13626 | wl=$lt_lt_prog_compiler_wl_CXX |
13627 | |
13628 | # Object file suffix (normally "o"). |
13629 | objext="$ac_objext" |
13630 | |
13631 | # Old archive suffix (normally "a"). |
13632 | libext="$libext" |
13633 | |
13634 | # Shared library suffix (normally ".so"). |
13635 | shrext_cmds='$shrext_cmds' |
13636 | |
13637 | # Executable file suffix (normally ""). |
13638 | exeext="$exeext" |
13639 | |
13640 | # Additional compiler flags for building library objects. |
13641 | pic_flag=$lt_lt_prog_compiler_pic_CXX |
13642 | pic_mode=$pic_mode |
13643 | |
13644 | # What is the maximum length of a command? |
13645 | max_cmd_len=$lt_cv_sys_max_cmd_len |
13646 | |
13647 | # Does compiler simultaneously support -c and -o options? |
13648 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX |
13649 | |
13650 | # Must we lock files when doing compilation? |
13651 | need_locks=$lt_need_locks |
13652 | |
13653 | # Do we need the lib prefix for modules? |
13654 | need_lib_prefix=$need_lib_prefix |
13655 | |
13656 | # Do we need a version for libraries? |
13657 | need_version=$need_version |
13658 | |
13659 | # Whether dlopen is supported. |
13660 | dlopen_support=$enable_dlopen |
13661 | |
13662 | # Whether dlopen of programs is supported. |
13663 | dlopen_self=$enable_dlopen_self |
13664 | |
13665 | # Whether dlopen of statically linked programs is supported. |
13666 | dlopen_self_static=$enable_dlopen_self_static |
13667 | |
13668 | # Compiler flag to prevent dynamic linking. |
13669 | link_static_flag=$lt_lt_prog_compiler_static_CXX |
13670 | |
13671 | # Compiler flag to turn off builtin functions. |
13672 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX |
13673 | |
13674 | # Compiler flag to allow reflexive dlopens. |
13675 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX |
13676 | |
13677 | # Compiler flag to generate shared objects directly from archives. |
13678 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX |
13679 | |
13680 | # Compiler flag to generate thread-safe objects. |
13681 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX |
13682 | |
13683 | # Library versioning type. |
13684 | version_type=$version_type |
13685 | |
13686 | # Format of library name prefix. |
13687 | libname_spec=$lt_libname_spec |
13688 | |
13689 | # List of archive names. First name is the real one, the rest are links. |
13690 | # The last name is the one that the linker finds with -lNAME. |
13691 | library_names_spec=$lt_library_names_spec |
13692 | |
13693 | # The coded name of the library, if different from the real name. |
13694 | soname_spec=$lt_soname_spec |
13695 | |
13696 | # Commands used to build and install an old-style archive. |
13697 | RANLIB=$lt_RANLIB |
13698 | old_archive_cmds=$lt_old_archive_cmds_CXX |
13699 | old_postinstall_cmds=$lt_old_postinstall_cmds |
13700 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
13701 | |
13702 | # Create an old-style archive from a shared archive. |
13703 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX |
13704 | |
13705 | # Create a temporary old-style archive to link instead of a shared archive. |
13706 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX |
13707 | |
13708 | # Commands used to build and install a shared archive. |
13709 | archive_cmds=$lt_archive_cmds_CXX |
13710 | archive_expsym_cmds=$lt_archive_expsym_cmds_CXX |
13711 | postinstall_cmds=$lt_postinstall_cmds |
13712 | postuninstall_cmds=$lt_postuninstall_cmds |
13713 | |
13714 | # Commands used to build a loadable module (assumed same as above if empty) |
13715 | module_cmds=$lt_module_cmds_CXX |
13716 | module_expsym_cmds=$lt_module_expsym_cmds_CXX |
13717 | |
13718 | # Commands to strip libraries. |
13719 | old_striplib=$lt_old_striplib |
13720 | striplib=$lt_striplib |
13721 | |
13722 | # Dependencies to place before the objects being linked to create a |
13723 | # shared library. |
13724 | predep_objects=$lt_predep_objects_CXX |
13725 | |
13726 | # Dependencies to place after the objects being linked to create a |
13727 | # shared library. |
13728 | postdep_objects=$lt_postdep_objects_CXX |
13729 | |
13730 | # Dependencies to place before the objects being linked to create a |
13731 | # shared library. |
13732 | predeps=$lt_predeps_CXX |
13733 | |
13734 | # Dependencies to place after the objects being linked to create a |
13735 | # shared library. |
13736 | postdeps=$lt_postdeps_CXX |
13737 | |
13738 | # The library search path used internally by the compiler when linking |
13739 | # a shared library. |
13740 | compiler_lib_search_path=$lt_compiler_lib_search_path_CXX |
13741 | |
13742 | # Method to check whether dependent libraries are shared objects. |
13743 | deplibs_check_method=$lt_deplibs_check_method |
13744 | |
13745 | # Command to use when deplibs_check_method == file_magic. |
13746 | file_magic_cmd=$lt_file_magic_cmd |
13747 | |
13748 | # Flag that allows shared libraries with undefined symbols to be built. |
13749 | allow_undefined_flag=$lt_allow_undefined_flag_CXX |
13750 | |
13751 | # Flag that forces no undefined symbols. |
13752 | no_undefined_flag=$lt_no_undefined_flag_CXX |
13753 | |
13754 | # Commands used to finish a libtool library installation in a directory. |
13755 | finish_cmds=$lt_finish_cmds |
13756 | |
13757 | # Same as above, but a single script fragment to be evaled but not shown. |
13758 | finish_eval=$lt_finish_eval |
13759 | |
13760 | # Take the output of nm and produce a listing of raw symbols and C names. |
13761 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
13762 | |
13763 | # Transform the output of nm in a proper C declaration |
13764 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
13765 | |
13766 | # Transform the output of nm in a C name address pair |
13767 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
13768 | |
13769 | # This is the shared library runtime path variable. |
13770 | runpath_var=$runpath_var |
13771 | |
13772 | # This is the shared library path variable. |
13773 | shlibpath_var=$shlibpath_var |
13774 | |
13775 | # Is shlibpath searched before the hard-coded library search path? |
13776 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
13777 | |
13778 | # How to hardcode a shared library path into an executable. |
13779 | hardcode_action=$hardcode_action_CXX |
13780 | |
13781 | # Whether we should hardcode library paths into libraries. |
13782 | hardcode_into_libs=$hardcode_into_libs |
13783 | |
13784 | # Flag to hardcode \$libdir into a binary during linking. |
13785 | # This must work even if \$libdir does not exist. |
13786 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX |
13787 | |
13788 | # If ld is used when linking, flag to hardcode \$libdir into |
13789 | # a binary during linking. This must work even if \$libdir does |
13790 | # not exist. |
13791 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX |
13792 | |
13793 | # Whether we need a single -rpath flag with a separated argument. |
13794 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX |
13795 | |
13796 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
13797 | # resulting binary. |
13798 | hardcode_direct=$hardcode_direct_CXX |
13799 | |
13800 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
13801 | # resulting binary. |
13802 | hardcode_minus_L=$hardcode_minus_L_CXX |
13803 | |
13804 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
13805 | # the resulting binary. |
13806 | hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX |
13807 | |
13808 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
13809 | # and all subsequent libraries and executables linked against it. |
13810 | hardcode_automatic=$hardcode_automatic_CXX |
13811 | |
13812 | # Variables whose values should be saved in libtool wrapper scripts and |
13813 | # restored at relink time. |
13814 | variables_saved_for_relink="$variables_saved_for_relink" |
13815 | |
13816 | # Whether libtool must link a program against all its dependency libraries. |
13817 | link_all_deplibs=$link_all_deplibs_CXX |
13818 | |
13819 | # Compile-time system search path for libraries |
13820 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
13821 | |
13822 | # Run-time system search path for libraries |
13823 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
13824 | |
13825 | # Fix the shell variable \$srcfile for the compiler. |
13826 | fix_srcfile_path="$fix_srcfile_path_CXX" |
13827 | |
13828 | # Set to yes if exported symbols are required. |
13829 | always_export_symbols=$always_export_symbols_CXX |
13830 | |
13831 | # The commands to list exported symbols. |
13832 | export_symbols_cmds=$lt_export_symbols_cmds_CXX |
13833 | |
13834 | # The commands to extract the exported symbol list from a shared archive. |
13835 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
13836 | |
13837 | # Symbols that should not be listed in the preloaded symbols. |
13838 | exclude_expsyms=$lt_exclude_expsyms_CXX |
13839 | |
13840 | # Symbols that must always be exported. |
13841 | include_expsyms=$lt_include_expsyms_CXX |
13842 | |
13843 | # ### END LIBTOOL TAG CONFIG: $tagname |
13844 | |
13845 | __EOF__ |
13846 | |
13847 | |
13848 | else |
13849 | # If there is no Makefile yet, we rely on a make rule to execute |
13850 | # `config.status --recheck' to rerun these tests and create the |
13851 | # libtool script then. |
13852 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
13853 | if test -f "$ltmain_in"; then |
13854 | test -f Makefile && make "$ltmain" |
13855 | fi |
13856 | fi |
13857 | |
13858 | |
13859 | ac_ext=c |
13860 | ac_cpp='$CPP $CPPFLAGS' |
13861 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
13862 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13863 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
13864 | |
13865 | CC=$lt_save_CC |
13866 | LDCXX=$LD |
13867 | LD=$lt_save_LD |
13868 | GCC=$lt_save_GCC |
13869 | with_gnu_ldcxx=$with_gnu_ld |
13870 | with_gnu_ld=$lt_save_with_gnu_ld |
13871 | lt_cv_path_LDCXX=$lt_cv_path_LD |
13872 | lt_cv_path_LD=$lt_save_path_LD |
13873 | lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld |
13874 | lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld |
13875 | |
13876 | else |
13877 | tagname="" |
13878 | fi |
13879 | ;; |
13880 | |
13881 | F77) |
13882 | if test -n "$F77" && test "X$F77" != "Xno"; then |
13883 | |
13884 | ac_ext=f |
13885 | ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' |
13886 | ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
13887 | ac_compiler_gnu=$ac_cv_f77_compiler_gnu |
13888 | |
13889 | |
13890 | archive_cmds_need_lc_F77=no |
13891 | allow_undefined_flag_F77= |
13892 | always_export_symbols_F77=no |
13893 | archive_expsym_cmds_F77= |
13894 | export_dynamic_flag_spec_F77= |
13895 | hardcode_direct_F77=no |
13896 | hardcode_libdir_flag_spec_F77= |
13897 | hardcode_libdir_flag_spec_ld_F77= |
13898 | hardcode_libdir_separator_F77= |
13899 | hardcode_minus_L_F77=no |
13900 | hardcode_automatic_F77=no |
13901 | module_cmds_F77= |
13902 | module_expsym_cmds_F77= |
13903 | link_all_deplibs_F77=unknown |
13904 | old_archive_cmds_F77=$old_archive_cmds |
13905 | no_undefined_flag_F77= |
13906 | whole_archive_flag_spec_F77= |
13907 | enable_shared_with_static_runtimes_F77=no |
13908 | |
13909 | # Source file extension for f77 test sources. |
13910 | ac_ext=f |
13911 | |
13912 | # Object file extension for compiled f77 test sources. |
13913 | objext=o |
13914 | objext_F77=$objext |
13915 | |
13916 | # Code to be used in simple compile tests |
13917 | lt_simple_compile_test_code=" subroutine t\n return\n end\n" |
13918 | |
13919 | # Code to be used in simple link tests |
13920 | lt_simple_link_test_code=" program t\n end\n" |
13921 | |
13922 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
13923 | |
13924 | # If no C compiler was specified, use CC. |
13925 | LTCC=${LTCC-"$CC"} |
13926 | |
13927 | # If no C compiler flags were specified, use CFLAGS. |
13928 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
13929 | |
13930 | # Allow CC to be a program name with arguments. |
13931 | compiler=$CC |
13932 | |
13933 | |
13934 | # save warnings/boilerplate of simple test code |
13935 | ac_outfile=conftest.$ac_objext |
13936 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
13937 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13938 | _lt_compiler_boilerplate=`cat conftest.err` |
13939 | $rm conftest* |
13940 | |
13941 | ac_outfile=conftest.$ac_objext |
13942 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
13943 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
13944 | _lt_linker_boilerplate=`cat conftest.err` |
13945 | $rm conftest* |
13946 | |
13947 | |
13948 | # Allow CC to be a program name with arguments. |
13949 | lt_save_CC="$CC" |
13950 | CC=${F77-"f77"} |
13951 | compiler=$CC |
13952 | compiler_F77=$CC |
13953 | for cc_temp in $compiler""; do |
13954 | case $cc_temp in |
13955 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
13956 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
13957 | \-*) ;; |
13958 | *) break;; |
13959 | esac |
13960 | done |
13961 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
13962 | |
13963 | |
13964 | { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 |
13965 | echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; } |
13966 | { echo "$as_me:$LINENO: result: $can_build_shared" >&5 |
13967 | echo "${ECHO_T}$can_build_shared" >&6; } |
13968 | |
13969 | { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 |
13970 | echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; } |
13971 | test "$can_build_shared" = "no" && enable_shared=no |
13972 | |
13973 | # On AIX, shared libraries and static libraries use the same namespace, and |
13974 | # are all built from PIC. |
13975 | case $host_os in |
13976 | aix3*) |
13977 | test "$enable_shared" = yes && enable_static=no |
13978 | if test -n "$RANLIB"; then |
13979 | archive_cmds="$archive_cmds~\$RANLIB \$lib" |
13980 | postinstall_cmds='$RANLIB $lib' |
13981 | fi |
13982 | ;; |
13983 | aix4* | aix5*) |
13984 | if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then |
13985 | test "$enable_shared" = yes && enable_static=no |
13986 | fi |
13987 | ;; |
13988 | esac |
13989 | { echo "$as_me:$LINENO: result: $enable_shared" >&5 |
13990 | echo "${ECHO_T}$enable_shared" >&6; } |
13991 | |
13992 | { echo "$as_me:$LINENO: checking whether to build static libraries" >&5 |
13993 | echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; } |
13994 | # Make sure either enable_shared or enable_static is yes. |
13995 | test "$enable_shared" = yes || enable_static=yes |
13996 | { echo "$as_me:$LINENO: result: $enable_static" >&5 |
13997 | echo "${ECHO_T}$enable_static" >&6; } |
13998 | |
13999 | GCC_F77="$G77" |
14000 | LD_F77="$LD" |
14001 | |
14002 | lt_prog_compiler_wl_F77= |
14003 | lt_prog_compiler_pic_F77= |
14004 | lt_prog_compiler_static_F77= |
14005 | |
14006 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
14007 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
14008 | |
14009 | if test "$GCC" = yes; then |
14010 | lt_prog_compiler_wl_F77='-Wl,' |
14011 | lt_prog_compiler_static_F77='-static' |
14012 | |
14013 | case $host_os in |
14014 | aix*) |
14015 | # All AIX code is PIC. |
14016 | if test "$host_cpu" = ia64; then |
14017 | # AIX 5 now supports IA64 processor |
14018 | lt_prog_compiler_static_F77='-Bstatic' |
14019 | fi |
14020 | ;; |
14021 | |
14022 | amigaos*) |
14023 | # FIXME: we need at least 68020 code to build shared libraries, but |
14024 | # adding the `-m68020' flag to GCC prevents building anything better, |
14025 | # like `-m68040'. |
14026 | lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' |
14027 | ;; |
14028 | |
14029 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
14030 | # PIC is the default for these OSes. |
14031 | ;; |
14032 | |
14033 | mingw* | pw32* | os2*) |
14034 | # This hack is so that the source file can tell whether it is being |
14035 | # built for inclusion in a dll (and should export symbols for example). |
14036 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
14037 | ;; |
14038 | |
14039 | darwin* | rhapsody*) |
14040 | # PIC is the default on this platform |
14041 | # Common symbols not allowed in MH_DYLIB files |
14042 | lt_prog_compiler_pic_F77='-fno-common' |
14043 | ;; |
14044 | |
14045 | interix3*) |
14046 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
14047 | # Instead, we relocate shared libraries at runtime. |
14048 | ;; |
14049 | |
14050 | msdosdjgpp*) |
14051 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
14052 | # on systems that don't support them. |
14053 | lt_prog_compiler_can_build_shared_F77=no |
14054 | enable_shared=no |
14055 | ;; |
14056 | |
14057 | sysv4*MP*) |
14058 | if test -d /usr/nec; then |
14059 | lt_prog_compiler_pic_F77=-Kconform_pic |
14060 | fi |
14061 | ;; |
14062 | |
14063 | hpux*) |
14064 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
14065 | # not for PA HP-UX. |
14066 | case $host_cpu in |
14067 | hppa*64*|ia64*) |
14068 | # +Z the default |
14069 | ;; |
14070 | *) |
14071 | lt_prog_compiler_pic_F77='-fPIC' |
14072 | ;; |
14073 | esac |
14074 | ;; |
14075 | |
14076 | *) |
14077 | lt_prog_compiler_pic_F77='-fPIC' |
14078 | ;; |
14079 | esac |
14080 | else |
14081 | # PORTME Check for flag to pass linker flags through the system compiler. |
14082 | case $host_os in |
14083 | aix*) |
14084 | lt_prog_compiler_wl_F77='-Wl,' |
14085 | if test "$host_cpu" = ia64; then |
14086 | # AIX 5 now supports IA64 processor |
14087 | lt_prog_compiler_static_F77='-Bstatic' |
14088 | else |
14089 | lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' |
14090 | fi |
14091 | ;; |
14092 | darwin*) |
14093 | # PIC is the default on this platform |
14094 | # Common symbols not allowed in MH_DYLIB files |
14095 | case $cc_basename in |
14096 | xlc*) |
14097 | lt_prog_compiler_pic_F77='-qnocommon' |
14098 | lt_prog_compiler_wl_F77='-Wl,' |
14099 | ;; |
14100 | esac |
14101 | ;; |
14102 | |
14103 | mingw* | pw32* | os2*) |
14104 | # This hack is so that the source file can tell whether it is being |
14105 | # built for inclusion in a dll (and should export symbols for example). |
14106 | lt_prog_compiler_pic_F77='-DDLL_EXPORT' |
14107 | ;; |
14108 | |
14109 | hpux9* | hpux10* | hpux11*) |
14110 | lt_prog_compiler_wl_F77='-Wl,' |
14111 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
14112 | # not for PA HP-UX. |
14113 | case $host_cpu in |
14114 | hppa*64*|ia64*) |
14115 | # +Z the default |
14116 | ;; |
14117 | *) |
14118 | lt_prog_compiler_pic_F77='+Z' |
14119 | ;; |
14120 | esac |
14121 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
14122 | lt_prog_compiler_static_F77='${wl}-a ${wl}archive' |
14123 | ;; |
14124 | |
14125 | irix5* | irix6* | nonstopux*) |
14126 | lt_prog_compiler_wl_F77='-Wl,' |
14127 | # PIC (with -KPIC) is the default. |
14128 | lt_prog_compiler_static_F77='-non_shared' |
14129 | ;; |
14130 | |
14131 | newsos6) |
14132 | lt_prog_compiler_pic_F77='-KPIC' |
14133 | lt_prog_compiler_static_F77='-Bstatic' |
14134 | ;; |
14135 | |
14136 | linux* | k*bsd*-gnu) |
14137 | case $cc_basename in |
14138 | icc* | ecc*) |
14139 | lt_prog_compiler_wl_F77='-Wl,' |
14140 | lt_prog_compiler_pic_F77='-KPIC' |
14141 | lt_prog_compiler_static_F77='-static' |
14142 | ;; |
14143 | pgcc* | pgf77* | pgf90* | pgf95*) |
14144 | # Portland Group compilers (*not* the Pentium gcc compiler, |
14145 | # which looks to be a dead project) |
14146 | lt_prog_compiler_wl_F77='-Wl,' |
14147 | lt_prog_compiler_pic_F77='-fpic' |
14148 | lt_prog_compiler_static_F77='-Bstatic' |
14149 | ;; |
14150 | ccc*) |
14151 | lt_prog_compiler_wl_F77='-Wl,' |
14152 | # All Alpha code is PIC. |
14153 | lt_prog_compiler_static_F77='-non_shared' |
14154 | ;; |
14155 | esac |
14156 | ;; |
14157 | |
14158 | osf3* | osf4* | osf5*) |
14159 | lt_prog_compiler_wl_F77='-Wl,' |
14160 | # All OSF/1 code is PIC. |
14161 | lt_prog_compiler_static_F77='-non_shared' |
14162 | ;; |
14163 | |
14164 | solaris*) |
14165 | lt_prog_compiler_pic_F77='-KPIC' |
14166 | lt_prog_compiler_static_F77='-Bstatic' |
14167 | case $cc_basename in |
14168 | f77* | f90* | f95*) |
14169 | lt_prog_compiler_wl_F77='-Qoption ld ';; |
14170 | *) |
14171 | lt_prog_compiler_wl_F77='-Wl,';; |
14172 | esac |
14173 | ;; |
14174 | |
14175 | sunos4*) |
14176 | lt_prog_compiler_wl_F77='-Qoption ld ' |
14177 | lt_prog_compiler_pic_F77='-PIC' |
14178 | lt_prog_compiler_static_F77='-Bstatic' |
14179 | ;; |
14180 | |
14181 | sysv4 | sysv4.2uw2* | sysv4.3*) |
14182 | lt_prog_compiler_wl_F77='-Wl,' |
14183 | lt_prog_compiler_pic_F77='-KPIC' |
14184 | lt_prog_compiler_static_F77='-Bstatic' |
14185 | ;; |
14186 | |
14187 | sysv4*MP*) |
14188 | if test -d /usr/nec ;then |
14189 | lt_prog_compiler_pic_F77='-Kconform_pic' |
14190 | lt_prog_compiler_static_F77='-Bstatic' |
14191 | fi |
14192 | ;; |
14193 | |
14194 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
14195 | lt_prog_compiler_wl_F77='-Wl,' |
14196 | lt_prog_compiler_pic_F77='-KPIC' |
14197 | lt_prog_compiler_static_F77='-Bstatic' |
14198 | ;; |
14199 | |
14200 | unicos*) |
14201 | lt_prog_compiler_wl_F77='-Wl,' |
14202 | lt_prog_compiler_can_build_shared_F77=no |
14203 | ;; |
14204 | |
14205 | uts4*) |
14206 | lt_prog_compiler_pic_F77='-pic' |
14207 | lt_prog_compiler_static_F77='-Bstatic' |
14208 | ;; |
14209 | |
14210 | *) |
14211 | lt_prog_compiler_can_build_shared_F77=no |
14212 | ;; |
14213 | esac |
14214 | fi |
14215 | |
14216 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 |
14217 | echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; } |
14218 | |
14219 | # |
14220 | # Check to make sure the PIC flag actually works. |
14221 | # |
14222 | if test -n "$lt_prog_compiler_pic_F77"; then |
14223 | |
14224 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 |
14225 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; } |
14226 | if test "${lt_prog_compiler_pic_works_F77+set}" = set; then |
14227 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14228 | else |
14229 | lt_prog_compiler_pic_works_F77=no |
14230 | ac_outfile=conftest.$ac_objext |
14231 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14232 | lt_compiler_flag="$lt_prog_compiler_pic_F77" |
14233 | # Insert the option either (1) after the last *FLAGS variable, or |
14234 | # (2) before a word containing "conftest.", or (3) at the end. |
14235 | # Note that $ac_compile itself does not contain backslashes and begins |
14236 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14237 | # The option is referenced via a variable to avoid confusing sed. |
14238 | lt_compile=`echo "$ac_compile" | $SED \ |
14239 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14240 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14241 | -e 's:$: $lt_compiler_flag:'` |
14242 | (eval echo "\"\$as_me:14242: $lt_compile\"" >&5) |
14243 | (eval "$lt_compile" 2>conftest.err) |
14244 | ac_status=$? |
14245 | cat conftest.err >&5 |
14246 | echo "$as_me:14246: \$? = $ac_status" >&5 |
14247 | if (exit $ac_status) && test -s "$ac_outfile"; then |
14248 | # The compiler can only warn and ignore the option if not recognized |
14249 | # So say no if there are warnings other than the usual output. |
14250 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
14251 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14252 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
14253 | lt_prog_compiler_pic_works_F77=yes |
14254 | fi |
14255 | fi |
14256 | $rm conftest* |
14257 | |
14258 | fi |
14259 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 |
14260 | echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6; } |
14261 | |
14262 | if test x"$lt_prog_compiler_pic_works_F77" = xyes; then |
14263 | case $lt_prog_compiler_pic_F77 in |
14264 | "" | " "*) ;; |
14265 | *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; |
14266 | esac |
14267 | else |
14268 | lt_prog_compiler_pic_F77= |
14269 | lt_prog_compiler_can_build_shared_F77=no |
14270 | fi |
14271 | |
14272 | fi |
14273 | case $host_os in |
14274 | # For platforms which do not support PIC, -DPIC is meaningless: |
14275 | *djgpp*) |
14276 | lt_prog_compiler_pic_F77= |
14277 | ;; |
14278 | *) |
14279 | lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" |
14280 | ;; |
14281 | esac |
14282 | |
14283 | # |
14284 | # Check to make sure the static flag actually works. |
14285 | # |
14286 | wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" |
14287 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
14288 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
14289 | if test "${lt_prog_compiler_static_works_F77+set}" = set; then |
14290 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14291 | else |
14292 | lt_prog_compiler_static_works_F77=no |
14293 | save_LDFLAGS="$LDFLAGS" |
14294 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
14295 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
14296 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
14297 | # The linker can only warn and ignore the option if not recognized |
14298 | # So say no if there are warnings |
14299 | if test -s conftest.err; then |
14300 | # Append any errors to the config.log. |
14301 | cat conftest.err 1>&5 |
14302 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
14303 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
14304 | if diff conftest.exp conftest.er2 >/dev/null; then |
14305 | lt_prog_compiler_static_works_F77=yes |
14306 | fi |
14307 | else |
14308 | lt_prog_compiler_static_works_F77=yes |
14309 | fi |
14310 | fi |
14311 | $rm conftest* |
14312 | LDFLAGS="$save_LDFLAGS" |
14313 | |
14314 | fi |
14315 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5 |
14316 | echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6; } |
14317 | |
14318 | if test x"$lt_prog_compiler_static_works_F77" = xyes; then |
14319 | : |
14320 | else |
14321 | lt_prog_compiler_static_F77= |
14322 | fi |
14323 | |
14324 | |
14325 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
14326 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
14327 | if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then |
14328 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
14329 | else |
14330 | lt_cv_prog_compiler_c_o_F77=no |
14331 | $rm -r conftest 2>/dev/null |
14332 | mkdir conftest |
14333 | cd conftest |
14334 | mkdir out |
14335 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
14336 | |
14337 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
14338 | # Insert the option either (1) after the last *FLAGS variable, or |
14339 | # (2) before a word containing "conftest.", or (3) at the end. |
14340 | # Note that $ac_compile itself does not contain backslashes and begins |
14341 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
14342 | lt_compile=`echo "$ac_compile" | $SED \ |
14343 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
14344 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
14345 | -e 's:$: $lt_compiler_flag:'` |
14346 | (eval echo "\"\$as_me:14346: $lt_compile\"" >&5) |
14347 | (eval "$lt_compile" 2>out/conftest.err) |
14348 | ac_status=$? |
14349 | cat out/conftest.err >&5 |
14350 | echo "$as_me:14350: \$? = $ac_status" >&5 |
14351 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
14352 | then |
14353 | # The compiler can only warn and ignore the option if not recognized |
14354 | # So say no if there are warnings |
14355 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
14356 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
14357 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
14358 | lt_cv_prog_compiler_c_o_F77=yes |
14359 | fi |
14360 | fi |
14361 | chmod u+w . 2>&5 |
14362 | $rm conftest* |
14363 | # SGI C++ compiler will create directory out/ii_files/ for |
14364 | # template instantiation |
14365 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
14366 | $rm out/* && rmdir out |
14367 | cd .. |
14368 | rmdir conftest |
14369 | $rm conftest* |
14370 | |
14371 | fi |
14372 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 |
14373 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; } |
14374 | |
14375 | |
14376 | hard_links="nottested" |
14377 | if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then |
14378 | # do not overwrite the value of need_locks provided by the user |
14379 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
14380 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
14381 | hard_links=yes |
14382 | $rm conftest* |
14383 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14384 | touch conftest.a |
14385 | ln conftest.a conftest.b 2>&5 || hard_links=no |
14386 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
14387 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
14388 | echo "${ECHO_T}$hard_links" >&6; } |
14389 | if test "$hard_links" = no; then |
14390 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
14391 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
14392 | need_locks=warn |
14393 | fi |
14394 | else |
14395 | need_locks=no |
14396 | fi |
14397 | |
14398 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
14399 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
14400 | |
14401 | runpath_var= |
14402 | allow_undefined_flag_F77= |
14403 | enable_shared_with_static_runtimes_F77=no |
14404 | archive_cmds_F77= |
14405 | archive_expsym_cmds_F77= |
14406 | old_archive_From_new_cmds_F77= |
14407 | old_archive_from_expsyms_cmds_F77= |
14408 | export_dynamic_flag_spec_F77= |
14409 | whole_archive_flag_spec_F77= |
14410 | thread_safe_flag_spec_F77= |
14411 | hardcode_libdir_flag_spec_F77= |
14412 | hardcode_libdir_flag_spec_ld_F77= |
14413 | hardcode_libdir_separator_F77= |
14414 | hardcode_direct_F77=no |
14415 | hardcode_minus_L_F77=no |
14416 | hardcode_shlibpath_var_F77=unsupported |
14417 | link_all_deplibs_F77=unknown |
14418 | hardcode_automatic_F77=no |
14419 | module_cmds_F77= |
14420 | module_expsym_cmds_F77= |
14421 | always_export_symbols_F77=no |
14422 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
14423 | # include_expsyms should be a list of space-separated symbols to be *always* |
14424 | # included in the symbol list |
14425 | include_expsyms_F77= |
14426 | # exclude_expsyms can be an extended regexp of symbols to exclude |
14427 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
14428 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
14429 | # as well as any symbol that contains `d'. |
14430 | exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" |
14431 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
14432 | # platforms (ab)use it in PIC code, but their linkers get confused if |
14433 | # the symbol is explicitly referenced. Since portable code cannot |
14434 | # rely on this symbol name, it's probably fine to never include it in |
14435 | # preloaded symbol tables. |
14436 | extract_expsyms_cmds= |
14437 | # Just being paranoid about ensuring that cc_basename is set. |
14438 | for cc_temp in $compiler""; do |
14439 | case $cc_temp in |
14440 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
14441 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
14442 | \-*) ;; |
14443 | *) break;; |
14444 | esac |
14445 | done |
14446 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
14447 | |
14448 | case $host_os in |
14449 | cygwin* | mingw* | pw32*) |
14450 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
14451 | # When not using gcc, we currently assume that we are using |
14452 | # Microsoft Visual C++. |
14453 | if test "$GCC" != yes; then |
14454 | with_gnu_ld=no |
14455 | fi |
14456 | ;; |
14457 | interix*) |
14458 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
14459 | with_gnu_ld=yes |
14460 | ;; |
14461 | openbsd*) |
14462 | with_gnu_ld=no |
14463 | ;; |
14464 | esac |
14465 | |
14466 | ld_shlibs_F77=yes |
14467 | if test "$with_gnu_ld" = yes; then |
14468 | # If archive_cmds runs LD, not CC, wlarc should be empty |
14469 | wlarc='${wl}' |
14470 | |
14471 | # Set some defaults for GNU ld with shared library support. These |
14472 | # are reset later if shared libraries are not supported. Putting them |
14473 | # here allows them to be overridden if necessary. |
14474 | runpath_var=LD_RUN_PATH |
14475 | hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' |
14476 | export_dynamic_flag_spec_F77='${wl}--export-dynamic' |
14477 | # ancient GNU ld didn't support --whole-archive et. al. |
14478 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
14479 | whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
14480 | else |
14481 | whole_archive_flag_spec_F77= |
14482 | fi |
14483 | supports_anon_versioning=no |
14484 | case `$LD -v 2>/dev/null` in |
14485 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
14486 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
14487 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
14488 | *\ 2.11.*) ;; # other 2.11 versions |
14489 | *) supports_anon_versioning=yes ;; |
14490 | esac |
14491 | |
14492 | # See if GNU ld supports shared libraries. |
14493 | case $host_os in |
14494 | aix3* | aix4* | aix5*) |
14495 | # On AIX/PPC, the GNU linker is very broken |
14496 | if test "$host_cpu" != ia64; then |
14497 | ld_shlibs_F77=no |
14498 | cat <<EOF 1>&2 |
14499 | |
14500 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
14501 | *** to be unable to reliably create shared libraries on AIX. |
14502 | *** Therefore, libtool is disabling shared libraries support. If you |
14503 | *** really care for shared libraries, you may want to modify your PATH |
14504 | *** so that a non-GNU linker is found, and then restart. |
14505 | |
14506 | EOF |
14507 | fi |
14508 | ;; |
14509 | |
14510 | amigaos*) |
14511 | 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)' |
14512 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14513 | hardcode_minus_L_F77=yes |
14514 | |
14515 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
14516 | # that the semantics of dynamic libraries on AmigaOS, at least up |
14517 | # to version 4, is to share data among multiple programs linked |
14518 | # with the same dynamic library. Since this doesn't match the |
14519 | # behavior of shared libraries on other platforms, we can't use |
14520 | # them. |
14521 | ld_shlibs_F77=no |
14522 | ;; |
14523 | |
14524 | beos*) |
14525 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14526 | allow_undefined_flag_F77=unsupported |
14527 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
14528 | # support --undefined. This deserves some investigation. FIXME |
14529 | archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14530 | else |
14531 | ld_shlibs_F77=no |
14532 | fi |
14533 | ;; |
14534 | |
14535 | cygwin* | mingw* | pw32*) |
14536 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, |
14537 | # as there is no search path for DLLs. |
14538 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14539 | allow_undefined_flag_F77=unsupported |
14540 | always_export_symbols_F77=no |
14541 | enable_shared_with_static_runtimes_F77=yes |
14542 | export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
14543 | |
14544 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
14545 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14546 | # If the export-symbols file already is a .def file (1st line |
14547 | # is EXPORTS), use it as is; otherwise, prepend... |
14548 | archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
14549 | cp $export_symbols $output_objdir/$soname.def; |
14550 | else |
14551 | echo EXPORTS > $output_objdir/$soname.def; |
14552 | cat $export_symbols >> $output_objdir/$soname.def; |
14553 | fi~ |
14554 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
14555 | else |
14556 | ld_shlibs_F77=no |
14557 | fi |
14558 | ;; |
14559 | |
14560 | interix3*) |
14561 | hardcode_direct_F77=no |
14562 | hardcode_shlibpath_var_F77=no |
14563 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
14564 | export_dynamic_flag_spec_F77='${wl}-E' |
14565 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
14566 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
14567 | # default) and relocated if they conflict, which is a slow very memory |
14568 | # consuming and fragmenting process. To avoid this, we pick a random, |
14569 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
14570 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
14571 | archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
14572 | archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
14573 | ;; |
14574 | |
14575 | linux* | k*bsd*-gnu) |
14576 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14577 | tmp_addflag= |
14578 | case $cc_basename,$host_cpu in |
14579 | pgcc*) # Portland Group C compiler |
14580 | 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' |
14581 | tmp_addflag=' $pic_flag' |
14582 | ;; |
14583 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
14584 | 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' |
14585 | tmp_addflag=' $pic_flag -Mnomain' ;; |
14586 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
14587 | tmp_addflag=' -i_dynamic' ;; |
14588 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
14589 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
14590 | ifc* | ifort*) # Intel Fortran compiler |
14591 | tmp_addflag=' -nofor_main' ;; |
14592 | esac |
14593 | archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14594 | |
14595 | if test $supports_anon_versioning = yes; then |
14596 | archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ |
14597 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
14598 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
14599 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
14600 | fi |
14601 | link_all_deplibs_F77=no |
14602 | else |
14603 | ld_shlibs_F77=no |
14604 | fi |
14605 | ;; |
14606 | |
14607 | netbsd* | netbsdelf*-gnu) |
14608 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
14609 | archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
14610 | wlarc= |
14611 | else |
14612 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14613 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14614 | fi |
14615 | ;; |
14616 | |
14617 | solaris*) |
14618 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
14619 | ld_shlibs_F77=no |
14620 | cat <<EOF 1>&2 |
14621 | |
14622 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
14623 | *** create shared libraries on Solaris systems. Therefore, libtool |
14624 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14625 | *** binutils to release 2.9.1 or newer. Another option is to modify |
14626 | *** your PATH or compiler configuration so that the native linker is |
14627 | *** used, and then restart. |
14628 | |
14629 | EOF |
14630 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14631 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14632 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14633 | else |
14634 | ld_shlibs_F77=no |
14635 | fi |
14636 | ;; |
14637 | |
14638 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
14639 | case `$LD -v 2>&1` in |
14640 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
14641 | ld_shlibs_F77=no |
14642 | cat <<_LT_EOF 1>&2 |
14643 | |
14644 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
14645 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
14646 | *** is disabling shared libraries support. We urge you to upgrade GNU |
14647 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
14648 | *** your PATH or compiler configuration so that the native linker is |
14649 | *** used, and then restart. |
14650 | |
14651 | _LT_EOF |
14652 | ;; |
14653 | *) |
14654 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14655 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
14656 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
14657 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
14658 | else |
14659 | ld_shlibs_F77=no |
14660 | fi |
14661 | ;; |
14662 | esac |
14663 | ;; |
14664 | |
14665 | sunos4*) |
14666 | archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
14667 | wlarc= |
14668 | hardcode_direct_F77=yes |
14669 | hardcode_shlibpath_var_F77=no |
14670 | ;; |
14671 | |
14672 | *) |
14673 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
14674 | archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
14675 | archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
14676 | else |
14677 | ld_shlibs_F77=no |
14678 | fi |
14679 | ;; |
14680 | esac |
14681 | |
14682 | if test "$ld_shlibs_F77" = no; then |
14683 | runpath_var= |
14684 | hardcode_libdir_flag_spec_F77= |
14685 | export_dynamic_flag_spec_F77= |
14686 | whole_archive_flag_spec_F77= |
14687 | fi |
14688 | else |
14689 | # PORTME fill in a description of your system's linker (not GNU ld) |
14690 | case $host_os in |
14691 | aix3*) |
14692 | allow_undefined_flag_F77=unsupported |
14693 | always_export_symbols_F77=yes |
14694 | 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' |
14695 | # Note: this linker hardcodes the directories in LIBPATH if there |
14696 | # are no directories specified by -L. |
14697 | hardcode_minus_L_F77=yes |
14698 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
14699 | # Neither direct hardcoding nor static linking is supported with a |
14700 | # broken collect2. |
14701 | hardcode_direct_F77=unsupported |
14702 | fi |
14703 | ;; |
14704 | |
14705 | aix4* | aix5*) |
14706 | if test "$host_cpu" = ia64; then |
14707 | # On IA64, the linker does run time linking by default, so we don't |
14708 | # have to do anything special. |
14709 | aix_use_runtimelinking=no |
14710 | exp_sym_flag='-Bexport' |
14711 | no_entry_flag="" |
14712 | else |
14713 | # If we're using GNU nm, then we don't want the "-C" option. |
14714 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
14715 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
14716 | 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' |
14717 | else |
14718 | 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' |
14719 | fi |
14720 | aix_use_runtimelinking=no |
14721 | |
14722 | # Test if we are trying to use run time linking or normal |
14723 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
14724 | # need to do runtime linking. |
14725 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
14726 | for ld_flag in $LDFLAGS; do |
14727 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
14728 | aix_use_runtimelinking=yes |
14729 | break |
14730 | fi |
14731 | done |
14732 | ;; |
14733 | esac |
14734 | |
14735 | exp_sym_flag='-bexport' |
14736 | no_entry_flag='-bnoentry' |
14737 | fi |
14738 | |
14739 | # When large executables or shared objects are built, AIX ld can |
14740 | # have problems creating the table of contents. If linking a library |
14741 | # or program results in "error TOC overflow" add -mminimal-toc to |
14742 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
14743 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
14744 | |
14745 | archive_cmds_F77='' |
14746 | hardcode_direct_F77=yes |
14747 | hardcode_libdir_separator_F77=':' |
14748 | link_all_deplibs_F77=yes |
14749 | |
14750 | if test "$GCC" = yes; then |
14751 | case $host_os in aix4.[012]|aix4.[012].*) |
14752 | # We only want to do this on AIX 4.2 and lower, the check |
14753 | # below for broken collect2 doesn't work under 4.3+ |
14754 | collect2name=`${CC} -print-prog-name=collect2` |
14755 | if test -f "$collect2name" && \ |
14756 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
14757 | then |
14758 | # We have reworked collect2 |
14759 | hardcode_direct_F77=yes |
14760 | else |
14761 | # We have old collect2 |
14762 | hardcode_direct_F77=unsupported |
14763 | # It fails to find uninstalled libraries when the uninstalled |
14764 | # path is not listed in the libpath. Setting hardcode_minus_L |
14765 | # to unsupported forces relinking |
14766 | hardcode_minus_L_F77=yes |
14767 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14768 | hardcode_libdir_separator_F77= |
14769 | fi |
14770 | ;; |
14771 | esac |
14772 | shared_flag='-shared' |
14773 | if test "$aix_use_runtimelinking" = yes; then |
14774 | shared_flag="$shared_flag "'${wl}-G' |
14775 | fi |
14776 | else |
14777 | # not using gcc |
14778 | if test "$host_cpu" = ia64; then |
14779 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
14780 | # chokes on -Wl,-G. The following line is correct: |
14781 | shared_flag='-G' |
14782 | else |
14783 | if test "$aix_use_runtimelinking" = yes; then |
14784 | shared_flag='${wl}-G' |
14785 | else |
14786 | shared_flag='${wl}-bM:SRE' |
14787 | fi |
14788 | fi |
14789 | fi |
14790 | |
14791 | # It seems that -bexpall does not export symbols beginning with |
14792 | # underscore (_), so it is better to generate a list of symbols to export. |
14793 | always_export_symbols_F77=yes |
14794 | if test "$aix_use_runtimelinking" = yes; then |
14795 | # Warning - without using the other runtime loading flags (-brtl), |
14796 | # -berok will link without error, but may produce a broken library. |
14797 | allow_undefined_flag_F77='-berok' |
14798 | # Determine the default libpath from the value encoded in an empty executable. |
14799 | cat >conftest.$ac_ext <<_ACEOF |
14800 | program main |
14801 | |
14802 | end |
14803 | _ACEOF |
14804 | rm -f conftest.$ac_objext conftest$ac_exeext |
14805 | if { (ac_try="$ac_link" |
14806 | case "(($ac_try" in |
14807 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14808 | *) ac_try_echo=$ac_try;; |
14809 | esac |
14810 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14811 | (eval "$ac_link") 2>conftest.er1 |
14812 | ac_status=$? |
14813 | grep -v '^ *+' conftest.er1 >conftest.err |
14814 | rm -f conftest.er1 |
14815 | cat conftest.err >&5 |
14816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14817 | (exit $ac_status); } && |
14818 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
14819 | { (case "(($ac_try" in |
14820 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14821 | *) ac_try_echo=$ac_try;; |
14822 | esac |
14823 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14824 | (eval "$ac_try") 2>&5 |
14825 | ac_status=$? |
14826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14827 | (exit $ac_status); }; } && |
14828 | { ac_try='test -s conftest$ac_exeext' |
14829 | { (case "(($ac_try" in |
14830 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14831 | *) ac_try_echo=$ac_try;; |
14832 | esac |
14833 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14834 | (eval "$ac_try") 2>&5 |
14835 | ac_status=$? |
14836 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14837 | (exit $ac_status); }; }; then |
14838 | |
14839 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14840 | }'` |
14841 | # Check for a 64-bit object if we didn't find anything. |
14842 | 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; } |
14843 | }'`; fi |
14844 | else |
14845 | echo "$as_me: failed program was:" >&5 |
14846 | sed 's/^/| /' conftest.$ac_ext >&5 |
14847 | |
14848 | |
14849 | fi |
14850 | |
14851 | rm -f core conftest.err conftest.$ac_objext \ |
14852 | conftest$ac_exeext conftest.$ac_ext |
14853 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14854 | |
14855 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14856 | archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
14857 | else |
14858 | if test "$host_cpu" = ia64; then |
14859 | hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' |
14860 | allow_undefined_flag_F77="-z nodefs" |
14861 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
14862 | else |
14863 | # Determine the default libpath from the value encoded in an empty executable. |
14864 | cat >conftest.$ac_ext <<_ACEOF |
14865 | program main |
14866 | |
14867 | end |
14868 | _ACEOF |
14869 | rm -f conftest.$ac_objext conftest$ac_exeext |
14870 | if { (ac_try="$ac_link" |
14871 | case "(($ac_try" in |
14872 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14873 | *) ac_try_echo=$ac_try;; |
14874 | esac |
14875 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14876 | (eval "$ac_link") 2>conftest.er1 |
14877 | ac_status=$? |
14878 | grep -v '^ *+' conftest.er1 >conftest.err |
14879 | rm -f conftest.er1 |
14880 | cat conftest.err >&5 |
14881 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14882 | (exit $ac_status); } && |
14883 | { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err' |
14884 | { (case "(($ac_try" in |
14885 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14886 | *) ac_try_echo=$ac_try;; |
14887 | esac |
14888 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14889 | (eval "$ac_try") 2>&5 |
14890 | ac_status=$? |
14891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14892 | (exit $ac_status); }; } && |
14893 | { ac_try='test -s conftest$ac_exeext' |
14894 | { (case "(($ac_try" in |
14895 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
14896 | *) ac_try_echo=$ac_try;; |
14897 | esac |
14898 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
14899 | (eval "$ac_try") 2>&5 |
14900 | ac_status=$? |
14901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
14902 | (exit $ac_status); }; }; then |
14903 | |
14904 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
14905 | }'` |
14906 | # Check for a 64-bit object if we didn't find anything. |
14907 | 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; } |
14908 | }'`; fi |
14909 | else |
14910 | echo "$as_me: failed program was:" >&5 |
14911 | sed 's/^/| /' conftest.$ac_ext >&5 |
14912 | |
14913 | |
14914 | fi |
14915 | |
14916 | rm -f core conftest.err conftest.$ac_objext \ |
14917 | conftest$ac_exeext conftest.$ac_ext |
14918 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
14919 | |
14920 | hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" |
14921 | # Warning - without using the other run time loading flags, |
14922 | # -berok will link without error, but may produce a broken library. |
14923 | no_undefined_flag_F77=' ${wl}-bernotok' |
14924 | allow_undefined_flag_F77=' ${wl}-berok' |
14925 | # Exported symbols can be pulled into shared objects from archives |
14926 | whole_archive_flag_spec_F77='$convenience' |
14927 | archive_cmds_need_lc_F77=yes |
14928 | # This is similar to how AIX traditionally builds its shared libraries. |
14929 | archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
14930 | fi |
14931 | fi |
14932 | ;; |
14933 | |
14934 | amigaos*) |
14935 | 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)' |
14936 | hardcode_libdir_flag_spec_F77='-L$libdir' |
14937 | hardcode_minus_L_F77=yes |
14938 | # see comment about different semantics on the GNU ld section |
14939 | ld_shlibs_F77=no |
14940 | ;; |
14941 | |
14942 | bsdi[45]*) |
14943 | export_dynamic_flag_spec_F77=-rdynamic |
14944 | ;; |
14945 | |
14946 | cygwin* | mingw* | pw32*) |
14947 | # When not using gcc, we currently assume that we are using |
14948 | # Microsoft Visual C++. |
14949 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
14950 | # no search path for DLLs. |
14951 | hardcode_libdir_flag_spec_F77=' ' |
14952 | allow_undefined_flag_F77=unsupported |
14953 | # Tell ltmain to make .lib files, not .a files. |
14954 | libext=lib |
14955 | # Tell ltmain to make .dll files, not .so files. |
14956 | shrext_cmds=".dll" |
14957 | # FIXME: Setting linknames here is a bad hack. |
14958 | archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
14959 | # The linker will automatically build a .lib file if we build a DLL. |
14960 | old_archive_From_new_cmds_F77='true' |
14961 | # FIXME: Should let the user specify the lib program. |
14962 | old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' |
14963 | fix_srcfile_path_F77='`cygpath -w "$srcfile"`' |
14964 | enable_shared_with_static_runtimes_F77=yes |
14965 | ;; |
14966 | |
14967 | darwin* | rhapsody*) |
14968 | case $host_os in |
14969 | rhapsody* | darwin1.[012]) |
14970 | allow_undefined_flag_F77='${wl}-undefined ${wl}suppress' |
14971 | ;; |
14972 | *) # Darwin 1.3 on |
14973 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
14974 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14975 | else |
14976 | case ${MACOSX_DEPLOYMENT_TARGET} in |
14977 | 10.[012]) |
14978 | allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
14979 | ;; |
14980 | 10.*) |
14981 | allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup' |
14982 | ;; |
14983 | esac |
14984 | fi |
14985 | ;; |
14986 | esac |
14987 | archive_cmds_need_lc_F77=no |
14988 | hardcode_direct_F77=no |
14989 | hardcode_automatic_F77=yes |
14990 | hardcode_shlibpath_var_F77=unsupported |
14991 | whole_archive_flag_spec_F77='' |
14992 | link_all_deplibs_F77=yes |
14993 | if test "$GCC" = yes ; then |
14994 | output_verbose_link_cmd='echo' |
14995 | archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
14996 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
14997 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
14998 | 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}' |
14999 | 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}' |
15000 | else |
15001 | case $cc_basename in |
15002 | xlc*) |
15003 | output_verbose_link_cmd='echo' |
15004 | archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
15005 | module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
15006 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
15007 | 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}' |
15008 | 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}' |
15009 | ;; |
15010 | *) |
15011 | ld_shlibs_F77=no |
15012 | ;; |
15013 | esac |
15014 | fi |
15015 | ;; |
15016 | |
15017 | dgux*) |
15018 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15019 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15020 | hardcode_shlibpath_var_F77=no |
15021 | ;; |
15022 | |
15023 | freebsd1*) |
15024 | ld_shlibs_F77=no |
15025 | ;; |
15026 | |
15027 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
15028 | # support. Future versions do this automatically, but an explicit c++rt0.o |
15029 | # does not break anything, and helps significantly (at the cost of a little |
15030 | # extra space). |
15031 | freebsd2.2*) |
15032 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
15033 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15034 | hardcode_direct_F77=yes |
15035 | hardcode_shlibpath_var_F77=no |
15036 | ;; |
15037 | |
15038 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
15039 | freebsd2*) |
15040 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
15041 | hardcode_direct_F77=yes |
15042 | hardcode_minus_L_F77=yes |
15043 | hardcode_shlibpath_var_F77=no |
15044 | ;; |
15045 | |
15046 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
15047 | freebsd* | dragonfly*) |
15048 | archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
15049 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15050 | hardcode_direct_F77=yes |
15051 | hardcode_shlibpath_var_F77=no |
15052 | ;; |
15053 | |
15054 | hpux9*) |
15055 | if test "$GCC" = yes; then |
15056 | 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' |
15057 | else |
15058 | 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' |
15059 | fi |
15060 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
15061 | hardcode_libdir_separator_F77=: |
15062 | hardcode_direct_F77=yes |
15063 | |
15064 | # hardcode_minus_L: Not really in the search PATH, |
15065 | # but as the default location of the library. |
15066 | hardcode_minus_L_F77=yes |
15067 | export_dynamic_flag_spec_F77='${wl}-E' |
15068 | ;; |
15069 | |
15070 | hpux10*) |
15071 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
15072 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
15073 | else |
15074 | archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
15075 | fi |
15076 | if test "$with_gnu_ld" = no; then |
15077 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
15078 | hardcode_libdir_separator_F77=: |
15079 | |
15080 | hardcode_direct_F77=yes |
15081 | export_dynamic_flag_spec_F77='${wl}-E' |
15082 | |
15083 | # hardcode_minus_L: Not really in the search PATH, |
15084 | # but as the default location of the library. |
15085 | hardcode_minus_L_F77=yes |
15086 | fi |
15087 | ;; |
15088 | |
15089 | hpux11*) |
15090 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
15091 | case $host_cpu in |
15092 | hppa*64*) |
15093 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15094 | ;; |
15095 | ia64*) |
15096 | archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
15097 | ;; |
15098 | *) |
15099 | archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
15100 | ;; |
15101 | esac |
15102 | else |
15103 | case $host_cpu in |
15104 | hppa*64*) |
15105 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15106 | ;; |
15107 | ia64*) |
15108 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
15109 | ;; |
15110 | *) |
15111 | archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
15112 | ;; |
15113 | esac |
15114 | fi |
15115 | if test "$with_gnu_ld" = no; then |
15116 | hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' |
15117 | hardcode_libdir_separator_F77=: |
15118 | |
15119 | case $host_cpu in |
15120 | hppa*64*|ia64*) |
15121 | hardcode_libdir_flag_spec_ld_F77='+b $libdir' |
15122 | hardcode_direct_F77=no |
15123 | hardcode_shlibpath_var_F77=no |
15124 | ;; |
15125 | *) |
15126 | hardcode_direct_F77=yes |
15127 | export_dynamic_flag_spec_F77='${wl}-E' |
15128 | |
15129 | # hardcode_minus_L: Not really in the search PATH, |
15130 | # but as the default location of the library. |
15131 | hardcode_minus_L_F77=yes |
15132 | ;; |
15133 | esac |
15134 | fi |
15135 | ;; |
15136 | |
15137 | irix5* | irix6* | nonstopux*) |
15138 | if test "$GCC" = yes; then |
15139 | 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' |
15140 | else |
15141 | 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' |
15142 | hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' |
15143 | fi |
15144 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15145 | hardcode_libdir_separator_F77=: |
15146 | link_all_deplibs_F77=yes |
15147 | ;; |
15148 | |
15149 | netbsd* | netbsdelf*-gnu) |
15150 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15151 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
15152 | else |
15153 | archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
15154 | fi |
15155 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15156 | hardcode_direct_F77=yes |
15157 | hardcode_shlibpath_var_F77=no |
15158 | ;; |
15159 | |
15160 | newsos6) |
15161 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15162 | hardcode_direct_F77=yes |
15163 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15164 | hardcode_libdir_separator_F77=: |
15165 | hardcode_shlibpath_var_F77=no |
15166 | ;; |
15167 | |
15168 | openbsd*) |
15169 | hardcode_direct_F77=yes |
15170 | hardcode_shlibpath_var_F77=no |
15171 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15172 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15173 | archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
15174 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15175 | export_dynamic_flag_spec_F77='${wl}-E' |
15176 | else |
15177 | case $host_os in |
15178 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
15179 | archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
15180 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15181 | ;; |
15182 | *) |
15183 | archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
15184 | hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' |
15185 | ;; |
15186 | esac |
15187 | fi |
15188 | ;; |
15189 | |
15190 | os2*) |
15191 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15192 | hardcode_minus_L_F77=yes |
15193 | allow_undefined_flag_F77=unsupported |
15194 | 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' |
15195 | old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
15196 | ;; |
15197 | |
15198 | osf3*) |
15199 | if test "$GCC" = yes; then |
15200 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15201 | 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' |
15202 | else |
15203 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15204 | 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' |
15205 | fi |
15206 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15207 | hardcode_libdir_separator_F77=: |
15208 | ;; |
15209 | |
15210 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
15211 | if test "$GCC" = yes; then |
15212 | allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' |
15213 | 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' |
15214 | hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' |
15215 | else |
15216 | allow_undefined_flag_F77=' -expect_unresolved \*' |
15217 | 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' |
15218 | 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~ |
15219 | $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' |
15220 | |
15221 | # Both c and cxx compiler support -rpath directly |
15222 | hardcode_libdir_flag_spec_F77='-rpath $libdir' |
15223 | fi |
15224 | hardcode_libdir_separator_F77=: |
15225 | ;; |
15226 | |
15227 | solaris*) |
15228 | no_undefined_flag_F77=' -z text' |
15229 | if test "$GCC" = yes; then |
15230 | wlarc='${wl}' |
15231 | archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15232 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15233 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
15234 | else |
15235 | wlarc='' |
15236 | archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15237 | archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
15238 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
15239 | fi |
15240 | hardcode_libdir_flag_spec_F77='-R$libdir' |
15241 | hardcode_shlibpath_var_F77=no |
15242 | case $host_os in |
15243 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
15244 | *) |
15245 | # The compiler driver will combine linker options so we |
15246 | # cannot just pass the convience library names through |
15247 | # without $wl, iff we do not link with $LD. |
15248 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
15249 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
15250 | case $wlarc in |
15251 | '') |
15252 | whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; |
15253 | *) |
15254 | 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' ;; |
15255 | esac ;; |
15256 | esac |
15257 | link_all_deplibs_F77=yes |
15258 | ;; |
15259 | |
15260 | sunos4*) |
15261 | if test "x$host_vendor" = xsequent; then |
15262 | # Use $CC to link under sequent, because it throws in some extra .o |
15263 | # files that make .init and .fini sections work. |
15264 | archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
15265 | else |
15266 | archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
15267 | fi |
15268 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15269 | hardcode_direct_F77=yes |
15270 | hardcode_minus_L_F77=yes |
15271 | hardcode_shlibpath_var_F77=no |
15272 | ;; |
15273 | |
15274 | sysv4) |
15275 | case $host_vendor in |
15276 | sni) |
15277 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15278 | hardcode_direct_F77=yes # is this really true??? |
15279 | ;; |
15280 | siemens) |
15281 | ## LD is ld it makes a PLAMLIB |
15282 | ## CC just makes a GrossModule. |
15283 | archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
15284 | reload_cmds_F77='$CC -r -o $output$reload_objs' |
15285 | hardcode_direct_F77=no |
15286 | ;; |
15287 | motorola) |
15288 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15289 | hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie |
15290 | ;; |
15291 | esac |
15292 | runpath_var='LD_RUN_PATH' |
15293 | hardcode_shlibpath_var_F77=no |
15294 | ;; |
15295 | |
15296 | sysv4.3*) |
15297 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15298 | hardcode_shlibpath_var_F77=no |
15299 | export_dynamic_flag_spec_F77='-Bexport' |
15300 | ;; |
15301 | |
15302 | sysv4*MP*) |
15303 | if test -d /usr/nec; then |
15304 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15305 | hardcode_shlibpath_var_F77=no |
15306 | runpath_var=LD_RUN_PATH |
15307 | hardcode_runpath_var=yes |
15308 | ld_shlibs_F77=yes |
15309 | fi |
15310 | ;; |
15311 | |
15312 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
15313 | no_undefined_flag_F77='${wl}-z,text' |
15314 | archive_cmds_need_lc_F77=no |
15315 | hardcode_shlibpath_var_F77=no |
15316 | runpath_var='LD_RUN_PATH' |
15317 | |
15318 | if test "$GCC" = yes; then |
15319 | archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15320 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15321 | else |
15322 | archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15323 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
15324 | fi |
15325 | ;; |
15326 | |
15327 | sysv5* | sco3.2v5* | sco5v6*) |
15328 | # Note: We can NOT use -z defs as we might desire, because we do not |
15329 | # link with -lc, and that would cause any symbols used from libc to |
15330 | # always be unresolved, which means just about no library would |
15331 | # ever link correctly. If we're not using GNU ld we use -z text |
15332 | # though, which does catch some bad symbols but isn't as heavy-handed |
15333 | # as -z defs. |
15334 | no_undefined_flag_F77='${wl}-z,text' |
15335 | allow_undefined_flag_F77='${wl}-z,nodefs' |
15336 | archive_cmds_need_lc_F77=no |
15337 | hardcode_shlibpath_var_F77=no |
15338 | hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
15339 | hardcode_libdir_separator_F77=':' |
15340 | link_all_deplibs_F77=yes |
15341 | export_dynamic_flag_spec_F77='${wl}-Bexport' |
15342 | runpath_var='LD_RUN_PATH' |
15343 | |
15344 | if test "$GCC" = yes; then |
15345 | archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15346 | archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15347 | else |
15348 | archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15349 | archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
15350 | fi |
15351 | ;; |
15352 | |
15353 | uts4*) |
15354 | archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
15355 | hardcode_libdir_flag_spec_F77='-L$libdir' |
15356 | hardcode_shlibpath_var_F77=no |
15357 | ;; |
15358 | |
15359 | *) |
15360 | ld_shlibs_F77=no |
15361 | ;; |
15362 | esac |
15363 | fi |
15364 | |
15365 | { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 |
15366 | echo "${ECHO_T}$ld_shlibs_F77" >&6; } |
15367 | test "$ld_shlibs_F77" = no && can_build_shared=no |
15368 | |
15369 | # |
15370 | # Do we need to explicitly link libc? |
15371 | # |
15372 | case "x$archive_cmds_need_lc_F77" in |
15373 | x|xyes) |
15374 | # Assume -lc should be added |
15375 | archive_cmds_need_lc_F77=yes |
15376 | |
15377 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
15378 | case $archive_cmds_F77 in |
15379 | *'~'*) |
15380 | # FIXME: we may have to deal with multi-command sequences. |
15381 | ;; |
15382 | '$CC '*) |
15383 | # Test whether the compiler implicitly links with -lc since on some |
15384 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
15385 | # to ld, don't add -lc before -lgcc. |
15386 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
15387 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
15388 | $rm conftest* |
15389 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
15390 | |
15391 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
15392 | (eval $ac_compile) 2>&5 |
15393 | ac_status=$? |
15394 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15395 | (exit $ac_status); } 2>conftest.err; then |
15396 | soname=conftest |
15397 | lib=conftest |
15398 | libobjs=conftest.$ac_objext |
15399 | deplibs= |
15400 | wl=$lt_prog_compiler_wl_F77 |
15401 | pic_flag=$lt_prog_compiler_pic_F77 |
15402 | compiler_flags=-v |
15403 | linker_flags=-v |
15404 | verstring= |
15405 | output_objdir=. |
15406 | libname=conftest |
15407 | lt_save_allow_undefined_flag=$allow_undefined_flag_F77 |
15408 | allow_undefined_flag_F77= |
15409 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
15410 | (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
15411 | ac_status=$? |
15412 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
15413 | (exit $ac_status); } |
15414 | then |
15415 | archive_cmds_need_lc_F77=no |
15416 | else |
15417 | archive_cmds_need_lc_F77=yes |
15418 | fi |
15419 | allow_undefined_flag_F77=$lt_save_allow_undefined_flag |
15420 | else |
15421 | cat conftest.err 1>&5 |
15422 | fi |
15423 | $rm conftest* |
15424 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 |
15425 | echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; } |
15426 | ;; |
15427 | esac |
15428 | fi |
15429 | ;; |
15430 | esac |
15431 | |
15432 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
15433 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
15434 | library_names_spec= |
15435 | libname_spec='lib$name' |
15436 | soname_spec= |
15437 | shrext_cmds=".so" |
15438 | postinstall_cmds= |
15439 | postuninstall_cmds= |
15440 | finish_cmds= |
15441 | finish_eval= |
15442 | shlibpath_var= |
15443 | shlibpath_overrides_runpath=unknown |
15444 | version_type=none |
15445 | dynamic_linker="$host_os ld.so" |
15446 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
15447 | if test "$GCC" = yes; then |
15448 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15449 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
15450 | # if the path contains ";" then we assume it to be the separator |
15451 | # otherwise default to the standard path separator (i.e. ":") - it is |
15452 | # assumed that no part of a normal pathname contains ";" but that should |
15453 | # okay in the real world where ";" in dirpaths is itself problematic. |
15454 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15455 | else |
15456 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15457 | fi |
15458 | else |
15459 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
15460 | fi |
15461 | need_lib_prefix=unknown |
15462 | hardcode_into_libs=no |
15463 | |
15464 | # when you set need_version to no, make sure it does not cause -set_version |
15465 | # flags to be left without arguments |
15466 | need_version=unknown |
15467 | |
15468 | case $host_os in |
15469 | aix3*) |
15470 | version_type=linux |
15471 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
15472 | shlibpath_var=LIBPATH |
15473 | |
15474 | # AIX 3 has no versioning support, so we append a major version to the name. |
15475 | soname_spec='${libname}${release}${shared_ext}$major' |
15476 | ;; |
15477 | |
15478 | aix4* | aix5*) |
15479 | version_type=linux |
15480 | need_lib_prefix=no |
15481 | need_version=no |
15482 | hardcode_into_libs=yes |
15483 | if test "$host_cpu" = ia64; then |
15484 | # AIX 5 supports IA64 |
15485 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
15486 | shlibpath_var=LD_LIBRARY_PATH |
15487 | else |
15488 | # With GCC up to 2.95.x, collect2 would create an import file |
15489 | # for dependence libraries. The import file would start with |
15490 | # the line `#! .'. This would cause the generated library to |
15491 | # depend on `.', always an invalid library. This was fixed in |
15492 | # development snapshots of GCC prior to 3.0. |
15493 | case $host_os in |
15494 | aix4 | aix4.[01] | aix4.[01].*) |
15495 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
15496 | echo ' yes ' |
15497 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
15498 | : |
15499 | else |
15500 | can_build_shared=no |
15501 | fi |
15502 | ;; |
15503 | esac |
15504 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
15505 | # soname into executable. Probably we can add versioning support to |
15506 | # collect2, so additional links can be useful in future. |
15507 | if test "$aix_use_runtimelinking" = yes; then |
15508 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
15509 | # instead of lib<name>.a to let people know that these are not |
15510 | # typical AIX shared libraries. |
15511 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15512 | else |
15513 | # We preserve .a as extension for shared libraries through AIX4.2 |
15514 | # and later when we are not doing run time linking. |
15515 | library_names_spec='${libname}${release}.a $libname.a' |
15516 | soname_spec='${libname}${release}${shared_ext}$major' |
15517 | fi |
15518 | shlibpath_var=LIBPATH |
15519 | fi |
15520 | ;; |
15521 | |
15522 | amigaos*) |
15523 | library_names_spec='$libname.ixlibrary $libname.a' |
15524 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
15525 | 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' |
15526 | ;; |
15527 | |
15528 | beos*) |
15529 | library_names_spec='${libname}${shared_ext}' |
15530 | dynamic_linker="$host_os ld.so" |
15531 | shlibpath_var=LIBRARY_PATH |
15532 | ;; |
15533 | |
15534 | bsdi[45]*) |
15535 | version_type=linux |
15536 | need_version=no |
15537 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15538 | soname_spec='${libname}${release}${shared_ext}$major' |
15539 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
15540 | shlibpath_var=LD_LIBRARY_PATH |
15541 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
15542 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
15543 | # the default ld.so.conf also contains /usr/contrib/lib and |
15544 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
15545 | # libtool to hard-code these into programs |
15546 | ;; |
15547 | |
15548 | cygwin* | mingw* | pw32*) |
15549 | version_type=windows |
15550 | shrext_cmds=".dll" |
15551 | need_version=no |
15552 | need_lib_prefix=no |
15553 | |
15554 | case $GCC,$host_os in |
15555 | yes,cygwin* | yes,mingw* | yes,pw32*) |
15556 | library_names_spec='$libname.dll.a' |
15557 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
15558 | postinstall_cmds='base_file=`basename \${file}`~ |
15559 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
15560 | dldir=$destdir/`dirname \$dlpath`~ |
15561 | test -d \$dldir || mkdir -p \$dldir~ |
15562 | $install_prog $dir/$dlname \$dldir/$dlname~ |
15563 | chmod a+x \$dldir/$dlname' |
15564 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
15565 | dlpath=$dir/\$dldll~ |
15566 | $rm \$dlpath' |
15567 | shlibpath_overrides_runpath=yes |
15568 | |
15569 | case $host_os in |
15570 | cygwin*) |
15571 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
15572 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15573 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
15574 | ;; |
15575 | mingw*) |
15576 | # MinGW DLLs use traditional 'lib' prefix |
15577 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15578 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
15579 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
15580 | # It is most probably a Windows format PATH printed by |
15581 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
15582 | # path with ; separators, and with drive letters. We can handle the |
15583 | # drive letters (cygwin fileutils understands them), so leave them, |
15584 | # especially as we might pass files found there to a mingw objdump, |
15585 | # which wouldn't understand a cygwinified path. Ahh. |
15586 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
15587 | else |
15588 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
15589 | fi |
15590 | ;; |
15591 | pw32*) |
15592 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
15593 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
15594 | ;; |
15595 | esac |
15596 | ;; |
15597 | |
15598 | *) |
15599 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
15600 | ;; |
15601 | esac |
15602 | dynamic_linker='Win32 ld.exe' |
15603 | # FIXME: first we should search . and the directory the executable is in |
15604 | shlibpath_var=PATH |
15605 | ;; |
15606 | |
15607 | darwin* | rhapsody*) |
15608 | dynamic_linker="$host_os dyld" |
15609 | version_type=darwin |
15610 | need_lib_prefix=no |
15611 | need_version=no |
15612 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
15613 | soname_spec='${libname}${release}${major}$shared_ext' |
15614 | shlibpath_overrides_runpath=yes |
15615 | shlibpath_var=DYLD_LIBRARY_PATH |
15616 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
15617 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
15618 | if test "$GCC" = yes; then |
15619 | 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"` |
15620 | else |
15621 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
15622 | fi |
15623 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
15624 | ;; |
15625 | |
15626 | dgux*) |
15627 | version_type=linux |
15628 | need_lib_prefix=no |
15629 | need_version=no |
15630 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
15631 | soname_spec='${libname}${release}${shared_ext}$major' |
15632 | shlibpath_var=LD_LIBRARY_PATH |
15633 | ;; |
15634 | |
15635 | freebsd1*) |
15636 | dynamic_linker=no |
15637 | ;; |
15638 | |
15639 | freebsd* | dragonfly*) |
15640 | # DragonFly does not have aout. When/if they implement a new |
15641 | # versioning mechanism, adjust this. |
15642 | if test -x /usr/bin/objformat; then |
15643 | objformat=`/usr/bin/objformat` |
15644 | else |
15645 | case $host_os in |
15646 | freebsd[123]*) objformat=aout ;; |
15647 | *) objformat=elf ;; |
15648 | esac |
15649 | fi |
15650 | version_type=freebsd-$objformat |
15651 | case $version_type in |
15652 | freebsd-elf*) |
15653 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15654 | need_version=no |
15655 | need_lib_prefix=no |
15656 | ;; |
15657 | freebsd-*) |
15658 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
15659 | need_version=yes |
15660 | ;; |
15661 | esac |
15662 | shlibpath_var=LD_LIBRARY_PATH |
15663 | case $host_os in |
15664 | freebsd2*) |
15665 | shlibpath_overrides_runpath=yes |
15666 | ;; |
15667 | freebsd3.[01]* | freebsdelf3.[01]*) |
15668 | shlibpath_overrides_runpath=yes |
15669 | hardcode_into_libs=yes |
15670 | ;; |
15671 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
15672 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
15673 | shlibpath_overrides_runpath=no |
15674 | hardcode_into_libs=yes |
15675 | ;; |
15676 | freebsd*) # from 4.6 on |
15677 | shlibpath_overrides_runpath=yes |
15678 | hardcode_into_libs=yes |
15679 | ;; |
15680 | esac |
15681 | ;; |
15682 | |
15683 | gnu*) |
15684 | version_type=linux |
15685 | need_lib_prefix=no |
15686 | need_version=no |
15687 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
15688 | soname_spec='${libname}${release}${shared_ext}$major' |
15689 | shlibpath_var=LD_LIBRARY_PATH |
15690 | hardcode_into_libs=yes |
15691 | ;; |
15692 | |
15693 | hpux9* | hpux10* | hpux11*) |
15694 | # Give a soname corresponding to the major version so that dld.sl refuses to |
15695 | # link against other versions. |
15696 | version_type=sunos |
15697 | need_lib_prefix=no |
15698 | need_version=no |
15699 | case $host_cpu in |
15700 | ia64*) |
15701 | shrext_cmds='.so' |
15702 | hardcode_into_libs=yes |
15703 | dynamic_linker="$host_os dld.so" |
15704 | shlibpath_var=LD_LIBRARY_PATH |
15705 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15706 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15707 | soname_spec='${libname}${release}${shared_ext}$major' |
15708 | if test "X$HPUX_IA64_MODE" = X32; then |
15709 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
15710 | else |
15711 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
15712 | fi |
15713 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15714 | ;; |
15715 | hppa*64*) |
15716 | shrext_cmds='.sl' |
15717 | hardcode_into_libs=yes |
15718 | dynamic_linker="$host_os dld.sl" |
15719 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
15720 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
15721 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15722 | soname_spec='${libname}${release}${shared_ext}$major' |
15723 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
15724 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
15725 | ;; |
15726 | *) |
15727 | shrext_cmds='.sl' |
15728 | dynamic_linker="$host_os dld.sl" |
15729 | shlibpath_var=SHLIB_PATH |
15730 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
15731 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15732 | soname_spec='${libname}${release}${shared_ext}$major' |
15733 | ;; |
15734 | esac |
15735 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
15736 | postinstall_cmds='chmod 555 $lib' |
15737 | ;; |
15738 | |
15739 | interix3*) |
15740 | version_type=linux |
15741 | need_lib_prefix=no |
15742 | need_version=no |
15743 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15744 | soname_spec='${libname}${release}${shared_ext}$major' |
15745 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
15746 | shlibpath_var=LD_LIBRARY_PATH |
15747 | shlibpath_overrides_runpath=no |
15748 | hardcode_into_libs=yes |
15749 | ;; |
15750 | |
15751 | irix5* | irix6* | nonstopux*) |
15752 | case $host_os in |
15753 | nonstopux*) version_type=nonstopux ;; |
15754 | *) |
15755 | if test "$lt_cv_prog_gnu_ld" = yes; then |
15756 | version_type=linux |
15757 | else |
15758 | version_type=irix |
15759 | fi ;; |
15760 | esac |
15761 | need_lib_prefix=no |
15762 | need_version=no |
15763 | soname_spec='${libname}${release}${shared_ext}$major' |
15764 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
15765 | case $host_os in |
15766 | irix5* | nonstopux*) |
15767 | libsuff= shlibsuff= |
15768 | ;; |
15769 | *) |
15770 | case $LD in # libtool.m4 will add one of these switches to LD |
15771 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
15772 | libsuff= shlibsuff= libmagic=32-bit;; |
15773 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
15774 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
15775 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
15776 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
15777 | *) libsuff= shlibsuff= libmagic=never-match;; |
15778 | esac |
15779 | ;; |
15780 | esac |
15781 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
15782 | shlibpath_overrides_runpath=no |
15783 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
15784 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
15785 | hardcode_into_libs=yes |
15786 | ;; |
15787 | |
15788 | # No shared lib support for Linux oldld, aout, or coff. |
15789 | linux*oldld* | linux*aout* | linux*coff*) |
15790 | dynamic_linker=no |
15791 | ;; |
15792 | |
15793 | # This must be Linux ELF. |
15794 | linux* | k*bsd*-gnu) |
15795 | version_type=linux |
15796 | need_lib_prefix=no |
15797 | need_version=no |
15798 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15799 | soname_spec='${libname}${release}${shared_ext}$major' |
15800 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
15801 | shlibpath_var=LD_LIBRARY_PATH |
15802 | shlibpath_overrides_runpath=no |
15803 | # This implies no fast_install, which is unacceptable. |
15804 | # Some rework will be needed to allow for fast_install |
15805 | # before this can be enabled. |
15806 | hardcode_into_libs=yes |
15807 | |
15808 | # Append ld.so.conf contents to the search path |
15809 | if test -f /etc/ld.so.conf; then |
15810 | 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' ' '` |
15811 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
15812 | fi |
15813 | |
15814 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
15815 | # powerpc, because MkLinux only supported shared libraries with the |
15816 | # GNU dynamic linker. Since this was broken with cross compilers, |
15817 | # most powerpc-linux boxes support dynamic linking these days and |
15818 | # people can always --disable-shared, the test was removed, and we |
15819 | # assume the GNU/Linux dynamic linker is in use. |
15820 | dynamic_linker='GNU/Linux ld.so' |
15821 | ;; |
15822 | |
15823 | netbsdelf*-gnu) |
15824 | version_type=linux |
15825 | need_lib_prefix=no |
15826 | need_version=no |
15827 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15828 | soname_spec='${libname}${release}${shared_ext}$major' |
15829 | shlibpath_var=LD_LIBRARY_PATH |
15830 | shlibpath_overrides_runpath=no |
15831 | hardcode_into_libs=yes |
15832 | dynamic_linker='NetBSD ld.elf_so' |
15833 | ;; |
15834 | |
15835 | netbsd*) |
15836 | version_type=sunos |
15837 | need_lib_prefix=no |
15838 | need_version=no |
15839 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
15840 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15841 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15842 | dynamic_linker='NetBSD (a.out) ld.so' |
15843 | else |
15844 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
15845 | soname_spec='${libname}${release}${shared_ext}$major' |
15846 | dynamic_linker='NetBSD ld.elf_so' |
15847 | fi |
15848 | shlibpath_var=LD_LIBRARY_PATH |
15849 | shlibpath_overrides_runpath=yes |
15850 | hardcode_into_libs=yes |
15851 | ;; |
15852 | |
15853 | newsos6) |
15854 | version_type=linux |
15855 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15856 | shlibpath_var=LD_LIBRARY_PATH |
15857 | shlibpath_overrides_runpath=yes |
15858 | ;; |
15859 | |
15860 | nto-qnx*) |
15861 | version_type=linux |
15862 | need_lib_prefix=no |
15863 | need_version=no |
15864 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15865 | soname_spec='${libname}${release}${shared_ext}$major' |
15866 | shlibpath_var=LD_LIBRARY_PATH |
15867 | shlibpath_overrides_runpath=yes |
15868 | ;; |
15869 | |
15870 | openbsd*) |
15871 | version_type=sunos |
15872 | sys_lib_dlsearch_path_spec="/usr/lib" |
15873 | need_lib_prefix=no |
15874 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
15875 | case $host_os in |
15876 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
15877 | *) need_version=no ;; |
15878 | esac |
15879 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15880 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
15881 | shlibpath_var=LD_LIBRARY_PATH |
15882 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
15883 | case $host_os in |
15884 | openbsd2.[89] | openbsd2.[89].*) |
15885 | shlibpath_overrides_runpath=no |
15886 | ;; |
15887 | *) |
15888 | shlibpath_overrides_runpath=yes |
15889 | ;; |
15890 | esac |
15891 | else |
15892 | shlibpath_overrides_runpath=yes |
15893 | fi |
15894 | ;; |
15895 | |
15896 | os2*) |
15897 | libname_spec='$name' |
15898 | shrext_cmds=".dll" |
15899 | need_lib_prefix=no |
15900 | library_names_spec='$libname${shared_ext} $libname.a' |
15901 | dynamic_linker='OS/2 ld.exe' |
15902 | shlibpath_var=LIBPATH |
15903 | ;; |
15904 | |
15905 | osf3* | osf4* | osf5*) |
15906 | version_type=osf |
15907 | need_lib_prefix=no |
15908 | need_version=no |
15909 | soname_spec='${libname}${release}${shared_ext}$major' |
15910 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15911 | shlibpath_var=LD_LIBRARY_PATH |
15912 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
15913 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
15914 | ;; |
15915 | |
15916 | solaris*) |
15917 | version_type=linux |
15918 | need_lib_prefix=no |
15919 | need_version=no |
15920 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15921 | soname_spec='${libname}${release}${shared_ext}$major' |
15922 | shlibpath_var=LD_LIBRARY_PATH |
15923 | shlibpath_overrides_runpath=yes |
15924 | hardcode_into_libs=yes |
15925 | # ldd complains unless libraries are executable |
15926 | postinstall_cmds='chmod +x $lib' |
15927 | ;; |
15928 | |
15929 | sunos4*) |
15930 | version_type=sunos |
15931 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
15932 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
15933 | shlibpath_var=LD_LIBRARY_PATH |
15934 | shlibpath_overrides_runpath=yes |
15935 | if test "$with_gnu_ld" = yes; then |
15936 | need_lib_prefix=no |
15937 | fi |
15938 | need_version=yes |
15939 | ;; |
15940 | |
15941 | sysv4 | sysv4.3*) |
15942 | version_type=linux |
15943 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
15944 | soname_spec='${libname}${release}${shared_ext}$major' |
15945 | shlibpath_var=LD_LIBRARY_PATH |
15946 | case $host_vendor in |
15947 | sni) |
15948 | shlibpath_overrides_runpath=no |
15949 | need_lib_prefix=no |
15950 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
15951 | runpath_var=LD_RUN_PATH |
15952 | ;; |
15953 | siemens) |
15954 | need_lib_prefix=no |
15955 | ;; |
15956 | motorola) |
15957 | need_lib_prefix=no |
15958 | need_version=no |
15959 | shlibpath_overrides_runpath=no |
15960 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
15961 | ;; |
15962 | esac |
15963 | ;; |
15964 | |
15965 | sysv4*MP*) |
15966 | if test -d /usr/nec ;then |
15967 | version_type=linux |
15968 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
15969 | soname_spec='$libname${shared_ext}.$major' |
15970 | shlibpath_var=LD_LIBRARY_PATH |
15971 | fi |
15972 | ;; |
15973 | |
15974 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
15975 | version_type=freebsd-elf |
15976 | need_lib_prefix=no |
15977 | need_version=no |
15978 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
15979 | soname_spec='${libname}${release}${shared_ext}$major' |
15980 | shlibpath_var=LD_LIBRARY_PATH |
15981 | hardcode_into_libs=yes |
15982 | if test "$with_gnu_ld" = yes; then |
15983 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
15984 | shlibpath_overrides_runpath=no |
15985 | else |
15986 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
15987 | shlibpath_overrides_runpath=yes |
15988 | case $host_os in |
15989 | sco3.2v5*) |
15990 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
15991 | ;; |
15992 | esac |
15993 | fi |
15994 | sys_lib_dlsearch_path_spec='/usr/lib' |
15995 | ;; |
15996 | |
15997 | uts4*) |
15998 | version_type=linux |
15999 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
16000 | soname_spec='${libname}${release}${shared_ext}$major' |
16001 | shlibpath_var=LD_LIBRARY_PATH |
16002 | ;; |
16003 | |
16004 | *) |
16005 | dynamic_linker=no |
16006 | ;; |
16007 | esac |
16008 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
16009 | echo "${ECHO_T}$dynamic_linker" >&6; } |
16010 | test "$dynamic_linker" = no && can_build_shared=no |
16011 | |
16012 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
16013 | if test "$GCC" = yes; then |
16014 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
16015 | fi |
16016 | |
16017 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
16018 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
16019 | hardcode_action_F77= |
16020 | if test -n "$hardcode_libdir_flag_spec_F77" || \ |
16021 | test -n "$runpath_var_F77" || \ |
16022 | test "X$hardcode_automatic_F77" = "Xyes" ; then |
16023 | |
16024 | # We can hardcode non-existant directories. |
16025 | if test "$hardcode_direct_F77" != no && |
16026 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
16027 | # have to relink, otherwise we might link with an installed library |
16028 | # when we should be linking with a yet-to-be-installed one |
16029 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && |
16030 | test "$hardcode_minus_L_F77" != no; then |
16031 | # Linking always hardcodes the temporary library directory. |
16032 | hardcode_action_F77=relink |
16033 | else |
16034 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
16035 | hardcode_action_F77=immediate |
16036 | fi |
16037 | else |
16038 | # We cannot hardcode anything, or else we can only hardcode existing |
16039 | # directories. |
16040 | hardcode_action_F77=unsupported |
16041 | fi |
16042 | { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 |
16043 | echo "${ECHO_T}$hardcode_action_F77" >&6; } |
16044 | |
16045 | if test "$hardcode_action_F77" = relink; then |
16046 | # Fast installation is not supported |
16047 | enable_fast_install=no |
16048 | elif test "$shlibpath_overrides_runpath" = yes || |
16049 | test "$enable_shared" = no; then |
16050 | # Fast installation is not necessary |
16051 | enable_fast_install=needless |
16052 | fi |
16053 | |
16054 | |
16055 | # The else clause should only fire when bootstrapping the |
16056 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
16057 | # with your package, and you will get complaints that there are |
16058 | # no rules to generate ltmain.sh. |
16059 | if test -f "$ltmain"; then |
16060 | # See if we are running on zsh, and set the options which allow our commands through |
16061 | # without removal of \ escapes. |
16062 | if test -n "${ZSH_VERSION+set}" ; then |
16063 | setopt NO_GLOB_SUBST |
16064 | fi |
16065 | # Now quote all the things that may contain metacharacters while being |
16066 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
16067 | # variables and quote the copies for generation of the libtool script. |
16068 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
16069 | SED SHELL STRIP \ |
16070 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
16071 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
16072 | deplibs_check_method reload_flag reload_cmds need_locks \ |
16073 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
16074 | lt_cv_sys_global_symbol_to_c_name_address \ |
16075 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
16076 | old_postinstall_cmds old_postuninstall_cmds \ |
16077 | compiler_F77 \ |
16078 | CC_F77 \ |
16079 | LD_F77 \ |
16080 | lt_prog_compiler_wl_F77 \ |
16081 | lt_prog_compiler_pic_F77 \ |
16082 | lt_prog_compiler_static_F77 \ |
16083 | lt_prog_compiler_no_builtin_flag_F77 \ |
16084 | export_dynamic_flag_spec_F77 \ |
16085 | thread_safe_flag_spec_F77 \ |
16086 | whole_archive_flag_spec_F77 \ |
16087 | enable_shared_with_static_runtimes_F77 \ |
16088 | old_archive_cmds_F77 \ |
16089 | old_archive_from_new_cmds_F77 \ |
16090 | predep_objects_F77 \ |
16091 | postdep_objects_F77 \ |
16092 | predeps_F77 \ |
16093 | postdeps_F77 \ |
16094 | compiler_lib_search_path_F77 \ |
16095 | archive_cmds_F77 \ |
16096 | archive_expsym_cmds_F77 \ |
16097 | postinstall_cmds_F77 \ |
16098 | postuninstall_cmds_F77 \ |
16099 | old_archive_from_expsyms_cmds_F77 \ |
16100 | allow_undefined_flag_F77 \ |
16101 | no_undefined_flag_F77 \ |
16102 | export_symbols_cmds_F77 \ |
16103 | hardcode_libdir_flag_spec_F77 \ |
16104 | hardcode_libdir_flag_spec_ld_F77 \ |
16105 | hardcode_libdir_separator_F77 \ |
16106 | hardcode_automatic_F77 \ |
16107 | module_cmds_F77 \ |
16108 | module_expsym_cmds_F77 \ |
16109 | lt_cv_prog_compiler_c_o_F77 \ |
16110 | exclude_expsyms_F77 \ |
16111 | include_expsyms_F77; do |
16112 | |
16113 | case $var in |
16114 | old_archive_cmds_F77 | \ |
16115 | old_archive_from_new_cmds_F77 | \ |
16116 | archive_cmds_F77 | \ |
16117 | archive_expsym_cmds_F77 | \ |
16118 | module_cmds_F77 | \ |
16119 | module_expsym_cmds_F77 | \ |
16120 | old_archive_from_expsyms_cmds_F77 | \ |
16121 | export_symbols_cmds_F77 | \ |
16122 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
16123 | postinstall_cmds | postuninstall_cmds | \ |
16124 | old_postinstall_cmds | old_postuninstall_cmds | \ |
16125 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
16126 | # Double-quote double-evaled strings. |
16127 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
16128 | ;; |
16129 | *) |
16130 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
16131 | ;; |
16132 | esac |
16133 | done |
16134 | |
16135 | case $lt_echo in |
16136 | *'\$0 --fallback-echo"') |
16137 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
16138 | ;; |
16139 | esac |
16140 | |
16141 | cfgfile="$ofile" |
16142 | |
16143 | cat <<__EOF__ >> "$cfgfile" |
16144 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
16145 | |
16146 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
16147 | |
16148 | # Shell to use when invoking shell scripts. |
16149 | SHELL=$lt_SHELL |
16150 | |
16151 | # Whether or not to build shared libraries. |
16152 | build_libtool_libs=$enable_shared |
16153 | |
16154 | # Whether or not to build static libraries. |
16155 | build_old_libs=$enable_static |
16156 | |
16157 | # Whether or not to add -lc for building shared libraries. |
16158 | build_libtool_need_lc=$archive_cmds_need_lc_F77 |
16159 | |
16160 | # Whether or not to disallow shared libs when runtime libs are static |
16161 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 |
16162 | |
16163 | # Whether or not to optimize for fast installation. |
16164 | fast_install=$enable_fast_install |
16165 | |
16166 | # The host system. |
16167 | host_alias=$host_alias |
16168 | host=$host |
16169 | host_os=$host_os |
16170 | |
16171 | # The build system. |
16172 | build_alias=$build_alias |
16173 | build=$build |
16174 | build_os=$build_os |
16175 | |
16176 | # An echo program that does not interpret backslashes. |
16177 | echo=$lt_echo |
16178 | |
16179 | # The archiver. |
16180 | AR=$lt_AR |
16181 | AR_FLAGS=$lt_AR_FLAGS |
16182 | |
16183 | # A C compiler. |
16184 | LTCC=$lt_LTCC |
16185 | |
16186 | # LTCC compiler flags. |
16187 | LTCFLAGS=$lt_LTCFLAGS |
16188 | |
16189 | # A language-specific compiler. |
16190 | CC=$lt_compiler_F77 |
16191 | |
16192 | # Is the compiler the GNU C compiler? |
16193 | with_gcc=$GCC_F77 |
16194 | |
16195 | # An ERE matcher. |
16196 | EGREP=$lt_EGREP |
16197 | |
16198 | # The linker used to build libraries. |
16199 | LD=$lt_LD_F77 |
16200 | |
16201 | # Whether we need hard or soft links. |
16202 | LN_S=$lt_LN_S |
16203 | |
16204 | # A BSD-compatible nm program. |
16205 | NM=$lt_NM |
16206 | |
16207 | # A symbol stripping program |
16208 | STRIP=$lt_STRIP |
16209 | |
16210 | # Used to examine libraries when file_magic_cmd begins "file" |
16211 | MAGIC_CMD=$MAGIC_CMD |
16212 | |
16213 | # Used on cygwin: DLL creation program. |
16214 | DLLTOOL="$DLLTOOL" |
16215 | |
16216 | # Used on cygwin: object dumper. |
16217 | OBJDUMP="$OBJDUMP" |
16218 | |
16219 | # Used on cygwin: assembler. |
16220 | AS="$AS" |
16221 | |
16222 | # The name of the directory that contains temporary libtool files. |
16223 | objdir=$objdir |
16224 | |
16225 | # How to create reloadable object files. |
16226 | reload_flag=$lt_reload_flag |
16227 | reload_cmds=$lt_reload_cmds |
16228 | |
16229 | # How to pass a linker flag through the compiler. |
16230 | wl=$lt_lt_prog_compiler_wl_F77 |
16231 | |
16232 | # Object file suffix (normally "o"). |
16233 | objext="$ac_objext" |
16234 | |
16235 | # Old archive suffix (normally "a"). |
16236 | libext="$libext" |
16237 | |
16238 | # Shared library suffix (normally ".so"). |
16239 | shrext_cmds='$shrext_cmds' |
16240 | |
16241 | # Executable file suffix (normally ""). |
16242 | exeext="$exeext" |
16243 | |
16244 | # Additional compiler flags for building library objects. |
16245 | pic_flag=$lt_lt_prog_compiler_pic_F77 |
16246 | pic_mode=$pic_mode |
16247 | |
16248 | # What is the maximum length of a command? |
16249 | max_cmd_len=$lt_cv_sys_max_cmd_len |
16250 | |
16251 | # Does compiler simultaneously support -c and -o options? |
16252 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 |
16253 | |
16254 | # Must we lock files when doing compilation? |
16255 | need_locks=$lt_need_locks |
16256 | |
16257 | # Do we need the lib prefix for modules? |
16258 | need_lib_prefix=$need_lib_prefix |
16259 | |
16260 | # Do we need a version for libraries? |
16261 | need_version=$need_version |
16262 | |
16263 | # Whether dlopen is supported. |
16264 | dlopen_support=$enable_dlopen |
16265 | |
16266 | # Whether dlopen of programs is supported. |
16267 | dlopen_self=$enable_dlopen_self |
16268 | |
16269 | # Whether dlopen of statically linked programs is supported. |
16270 | dlopen_self_static=$enable_dlopen_self_static |
16271 | |
16272 | # Compiler flag to prevent dynamic linking. |
16273 | link_static_flag=$lt_lt_prog_compiler_static_F77 |
16274 | |
16275 | # Compiler flag to turn off builtin functions. |
16276 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 |
16277 | |
16278 | # Compiler flag to allow reflexive dlopens. |
16279 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 |
16280 | |
16281 | # Compiler flag to generate shared objects directly from archives. |
16282 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 |
16283 | |
16284 | # Compiler flag to generate thread-safe objects. |
16285 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 |
16286 | |
16287 | # Library versioning type. |
16288 | version_type=$version_type |
16289 | |
16290 | # Format of library name prefix. |
16291 | libname_spec=$lt_libname_spec |
16292 | |
16293 | # List of archive names. First name is the real one, the rest are links. |
16294 | # The last name is the one that the linker finds with -lNAME. |
16295 | library_names_spec=$lt_library_names_spec |
16296 | |
16297 | # The coded name of the library, if different from the real name. |
16298 | soname_spec=$lt_soname_spec |
16299 | |
16300 | # Commands used to build and install an old-style archive. |
16301 | RANLIB=$lt_RANLIB |
16302 | old_archive_cmds=$lt_old_archive_cmds_F77 |
16303 | old_postinstall_cmds=$lt_old_postinstall_cmds |
16304 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
16305 | |
16306 | # Create an old-style archive from a shared archive. |
16307 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 |
16308 | |
16309 | # Create a temporary old-style archive to link instead of a shared archive. |
16310 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 |
16311 | |
16312 | # Commands used to build and install a shared archive. |
16313 | archive_cmds=$lt_archive_cmds_F77 |
16314 | archive_expsym_cmds=$lt_archive_expsym_cmds_F77 |
16315 | postinstall_cmds=$lt_postinstall_cmds |
16316 | postuninstall_cmds=$lt_postuninstall_cmds |
16317 | |
16318 | # Commands used to build a loadable module (assumed same as above if empty) |
16319 | module_cmds=$lt_module_cmds_F77 |
16320 | module_expsym_cmds=$lt_module_expsym_cmds_F77 |
16321 | |
16322 | # Commands to strip libraries. |
16323 | old_striplib=$lt_old_striplib |
16324 | striplib=$lt_striplib |
16325 | |
16326 | # Dependencies to place before the objects being linked to create a |
16327 | # shared library. |
16328 | predep_objects=$lt_predep_objects_F77 |
16329 | |
16330 | # Dependencies to place after the objects being linked to create a |
16331 | # shared library. |
16332 | postdep_objects=$lt_postdep_objects_F77 |
16333 | |
16334 | # Dependencies to place before the objects being linked to create a |
16335 | # shared library. |
16336 | predeps=$lt_predeps_F77 |
16337 | |
16338 | # Dependencies to place after the objects being linked to create a |
16339 | # shared library. |
16340 | postdeps=$lt_postdeps_F77 |
16341 | |
16342 | # The library search path used internally by the compiler when linking |
16343 | # a shared library. |
16344 | compiler_lib_search_path=$lt_compiler_lib_search_path_F77 |
16345 | |
16346 | # Method to check whether dependent libraries are shared objects. |
16347 | deplibs_check_method=$lt_deplibs_check_method |
16348 | |
16349 | # Command to use when deplibs_check_method == file_magic. |
16350 | file_magic_cmd=$lt_file_magic_cmd |
16351 | |
16352 | # Flag that allows shared libraries with undefined symbols to be built. |
16353 | allow_undefined_flag=$lt_allow_undefined_flag_F77 |
16354 | |
16355 | # Flag that forces no undefined symbols. |
16356 | no_undefined_flag=$lt_no_undefined_flag_F77 |
16357 | |
16358 | # Commands used to finish a libtool library installation in a directory. |
16359 | finish_cmds=$lt_finish_cmds |
16360 | |
16361 | # Same as above, but a single script fragment to be evaled but not shown. |
16362 | finish_eval=$lt_finish_eval |
16363 | |
16364 | # Take the output of nm and produce a listing of raw symbols and C names. |
16365 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
16366 | |
16367 | # Transform the output of nm in a proper C declaration |
16368 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
16369 | |
16370 | # Transform the output of nm in a C name address pair |
16371 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
16372 | |
16373 | # This is the shared library runtime path variable. |
16374 | runpath_var=$runpath_var |
16375 | |
16376 | # This is the shared library path variable. |
16377 | shlibpath_var=$shlibpath_var |
16378 | |
16379 | # Is shlibpath searched before the hard-coded library search path? |
16380 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
16381 | |
16382 | # How to hardcode a shared library path into an executable. |
16383 | hardcode_action=$hardcode_action_F77 |
16384 | |
16385 | # Whether we should hardcode library paths into libraries. |
16386 | hardcode_into_libs=$hardcode_into_libs |
16387 | |
16388 | # Flag to hardcode \$libdir into a binary during linking. |
16389 | # This must work even if \$libdir does not exist. |
16390 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 |
16391 | |
16392 | # If ld is used when linking, flag to hardcode \$libdir into |
16393 | # a binary during linking. This must work even if \$libdir does |
16394 | # not exist. |
16395 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 |
16396 | |
16397 | # Whether we need a single -rpath flag with a separated argument. |
16398 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 |
16399 | |
16400 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
16401 | # resulting binary. |
16402 | hardcode_direct=$hardcode_direct_F77 |
16403 | |
16404 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
16405 | # resulting binary. |
16406 | hardcode_minus_L=$hardcode_minus_L_F77 |
16407 | |
16408 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
16409 | # the resulting binary. |
16410 | hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 |
16411 | |
16412 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
16413 | # and all subsequent libraries and executables linked against it. |
16414 | hardcode_automatic=$hardcode_automatic_F77 |
16415 | |
16416 | # Variables whose values should be saved in libtool wrapper scripts and |
16417 | # restored at relink time. |
16418 | variables_saved_for_relink="$variables_saved_for_relink" |
16419 | |
16420 | # Whether libtool must link a program against all its dependency libraries. |
16421 | link_all_deplibs=$link_all_deplibs_F77 |
16422 | |
16423 | # Compile-time system search path for libraries |
16424 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
16425 | |
16426 | # Run-time system search path for libraries |
16427 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
16428 | |
16429 | # Fix the shell variable \$srcfile for the compiler. |
16430 | fix_srcfile_path="$fix_srcfile_path_F77" |
16431 | |
16432 | # Set to yes if exported symbols are required. |
16433 | always_export_symbols=$always_export_symbols_F77 |
16434 | |
16435 | # The commands to list exported symbols. |
16436 | export_symbols_cmds=$lt_export_symbols_cmds_F77 |
16437 | |
16438 | # The commands to extract the exported symbol list from a shared archive. |
16439 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
16440 | |
16441 | # Symbols that should not be listed in the preloaded symbols. |
16442 | exclude_expsyms=$lt_exclude_expsyms_F77 |
16443 | |
16444 | # Symbols that must always be exported. |
16445 | include_expsyms=$lt_include_expsyms_F77 |
16446 | |
16447 | # ### END LIBTOOL TAG CONFIG: $tagname |
16448 | |
16449 | __EOF__ |
16450 | |
16451 | |
16452 | else |
16453 | # If there is no Makefile yet, we rely on a make rule to execute |
16454 | # `config.status --recheck' to rerun these tests and create the |
16455 | # libtool script then. |
16456 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
16457 | if test -f "$ltmain_in"; then |
16458 | test -f Makefile && make "$ltmain" |
16459 | fi |
16460 | fi |
16461 | |
16462 | |
16463 | ac_ext=c |
16464 | ac_cpp='$CPP $CPPFLAGS' |
16465 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
16466 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
16467 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
16468 | |
16469 | CC="$lt_save_CC" |
16470 | |
16471 | else |
16472 | tagname="" |
16473 | fi |
16474 | ;; |
16475 | |
16476 | GCJ) |
16477 | if test -n "$GCJ" && test "X$GCJ" != "Xno"; then |
16478 | |
16479 | |
16480 | # Source file extension for Java test sources. |
16481 | ac_ext=java |
16482 | |
16483 | # Object file extension for compiled Java test sources. |
16484 | objext=o |
16485 | objext_GCJ=$objext |
16486 | |
16487 | # Code to be used in simple compile tests |
16488 | lt_simple_compile_test_code="class foo {}\n" |
16489 | |
16490 | # Code to be used in simple link tests |
16491 | lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n' |
16492 | |
16493 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
16494 | |
16495 | # If no C compiler was specified, use CC. |
16496 | LTCC=${LTCC-"$CC"} |
16497 | |
16498 | # If no C compiler flags were specified, use CFLAGS. |
16499 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
16500 | |
16501 | # Allow CC to be a program name with arguments. |
16502 | compiler=$CC |
16503 | |
16504 | |
16505 | # save warnings/boilerplate of simple test code |
16506 | ac_outfile=conftest.$ac_objext |
16507 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
16508 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16509 | _lt_compiler_boilerplate=`cat conftest.err` |
16510 | $rm conftest* |
16511 | |
16512 | ac_outfile=conftest.$ac_objext |
16513 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
16514 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
16515 | _lt_linker_boilerplate=`cat conftest.err` |
16516 | $rm conftest* |
16517 | |
16518 | |
16519 | # Allow CC to be a program name with arguments. |
16520 | lt_save_CC="$CC" |
16521 | CC=${GCJ-"gcj"} |
16522 | compiler=$CC |
16523 | compiler_GCJ=$CC |
16524 | for cc_temp in $compiler""; do |
16525 | case $cc_temp in |
16526 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
16527 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
16528 | \-*) ;; |
16529 | *) break;; |
16530 | esac |
16531 | done |
16532 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
16533 | |
16534 | |
16535 | # GCJ did not exist at the time GCC didn't implicitly link libc in. |
16536 | archive_cmds_need_lc_GCJ=no |
16537 | |
16538 | old_archive_cmds_GCJ=$old_archive_cmds |
16539 | |
16540 | |
16541 | lt_prog_compiler_no_builtin_flag_GCJ= |
16542 | |
16543 | if test "$GCC" = yes; then |
16544 | lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' |
16545 | |
16546 | |
16547 | { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 |
16548 | echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; } |
16549 | if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then |
16550 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16551 | else |
16552 | lt_cv_prog_compiler_rtti_exceptions=no |
16553 | ac_outfile=conftest.$ac_objext |
16554 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16555 | lt_compiler_flag="-fno-rtti -fno-exceptions" |
16556 | # Insert the option either (1) after the last *FLAGS variable, or |
16557 | # (2) before a word containing "conftest.", or (3) at the end. |
16558 | # Note that $ac_compile itself does not contain backslashes and begins |
16559 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16560 | # The option is referenced via a variable to avoid confusing sed. |
16561 | lt_compile=`echo "$ac_compile" | $SED \ |
16562 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16563 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16564 | -e 's:$: $lt_compiler_flag:'` |
16565 | (eval echo "\"\$as_me:16565: $lt_compile\"" >&5) |
16566 | (eval "$lt_compile" 2>conftest.err) |
16567 | ac_status=$? |
16568 | cat conftest.err >&5 |
16569 | echo "$as_me:16569: \$? = $ac_status" >&5 |
16570 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16571 | # The compiler can only warn and ignore the option if not recognized |
16572 | # So say no if there are warnings other than the usual output. |
16573 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16574 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16575 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16576 | lt_cv_prog_compiler_rtti_exceptions=yes |
16577 | fi |
16578 | fi |
16579 | $rm conftest* |
16580 | |
16581 | fi |
16582 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 |
16583 | echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; } |
16584 | |
16585 | if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then |
16586 | lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" |
16587 | else |
16588 | : |
16589 | fi |
16590 | |
16591 | fi |
16592 | |
16593 | lt_prog_compiler_wl_GCJ= |
16594 | lt_prog_compiler_pic_GCJ= |
16595 | lt_prog_compiler_static_GCJ= |
16596 | |
16597 | { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 |
16598 | echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; } |
16599 | |
16600 | if test "$GCC" = yes; then |
16601 | lt_prog_compiler_wl_GCJ='-Wl,' |
16602 | lt_prog_compiler_static_GCJ='-static' |
16603 | |
16604 | case $host_os in |
16605 | aix*) |
16606 | # All AIX code is PIC. |
16607 | if test "$host_cpu" = ia64; then |
16608 | # AIX 5 now supports IA64 processor |
16609 | lt_prog_compiler_static_GCJ='-Bstatic' |
16610 | fi |
16611 | ;; |
16612 | |
16613 | amigaos*) |
16614 | # FIXME: we need at least 68020 code to build shared libraries, but |
16615 | # adding the `-m68020' flag to GCC prevents building anything better, |
16616 | # like `-m68040'. |
16617 | lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' |
16618 | ;; |
16619 | |
16620 | beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) |
16621 | # PIC is the default for these OSes. |
16622 | ;; |
16623 | |
16624 | mingw* | pw32* | os2*) |
16625 | # This hack is so that the source file can tell whether it is being |
16626 | # built for inclusion in a dll (and should export symbols for example). |
16627 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16628 | ;; |
16629 | |
16630 | darwin* | rhapsody*) |
16631 | # PIC is the default on this platform |
16632 | # Common symbols not allowed in MH_DYLIB files |
16633 | lt_prog_compiler_pic_GCJ='-fno-common' |
16634 | ;; |
16635 | |
16636 | interix3*) |
16637 | # Interix 3.x gcc -fpic/-fPIC options generate broken code. |
16638 | # Instead, we relocate shared libraries at runtime. |
16639 | ;; |
16640 | |
16641 | msdosdjgpp*) |
16642 | # Just because we use GCC doesn't mean we suddenly get shared libraries |
16643 | # on systems that don't support them. |
16644 | lt_prog_compiler_can_build_shared_GCJ=no |
16645 | enable_shared=no |
16646 | ;; |
16647 | |
16648 | sysv4*MP*) |
16649 | if test -d /usr/nec; then |
16650 | lt_prog_compiler_pic_GCJ=-Kconform_pic |
16651 | fi |
16652 | ;; |
16653 | |
16654 | hpux*) |
16655 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16656 | # not for PA HP-UX. |
16657 | case $host_cpu in |
16658 | hppa*64*|ia64*) |
16659 | # +Z the default |
16660 | ;; |
16661 | *) |
16662 | lt_prog_compiler_pic_GCJ='-fPIC' |
16663 | ;; |
16664 | esac |
16665 | ;; |
16666 | |
16667 | *) |
16668 | lt_prog_compiler_pic_GCJ='-fPIC' |
16669 | ;; |
16670 | esac |
16671 | else |
16672 | # PORTME Check for flag to pass linker flags through the system compiler. |
16673 | case $host_os in |
16674 | aix*) |
16675 | lt_prog_compiler_wl_GCJ='-Wl,' |
16676 | if test "$host_cpu" = ia64; then |
16677 | # AIX 5 now supports IA64 processor |
16678 | lt_prog_compiler_static_GCJ='-Bstatic' |
16679 | else |
16680 | lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' |
16681 | fi |
16682 | ;; |
16683 | darwin*) |
16684 | # PIC is the default on this platform |
16685 | # Common symbols not allowed in MH_DYLIB files |
16686 | case $cc_basename in |
16687 | xlc*) |
16688 | lt_prog_compiler_pic_GCJ='-qnocommon' |
16689 | lt_prog_compiler_wl_GCJ='-Wl,' |
16690 | ;; |
16691 | esac |
16692 | ;; |
16693 | |
16694 | mingw* | pw32* | os2*) |
16695 | # This hack is so that the source file can tell whether it is being |
16696 | # built for inclusion in a dll (and should export symbols for example). |
16697 | lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' |
16698 | ;; |
16699 | |
16700 | hpux9* | hpux10* | hpux11*) |
16701 | lt_prog_compiler_wl_GCJ='-Wl,' |
16702 | # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but |
16703 | # not for PA HP-UX. |
16704 | case $host_cpu in |
16705 | hppa*64*|ia64*) |
16706 | # +Z the default |
16707 | ;; |
16708 | *) |
16709 | lt_prog_compiler_pic_GCJ='+Z' |
16710 | ;; |
16711 | esac |
16712 | # Is there a better lt_prog_compiler_static that works with the bundled CC? |
16713 | lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' |
16714 | ;; |
16715 | |
16716 | irix5* | irix6* | nonstopux*) |
16717 | lt_prog_compiler_wl_GCJ='-Wl,' |
16718 | # PIC (with -KPIC) is the default. |
16719 | lt_prog_compiler_static_GCJ='-non_shared' |
16720 | ;; |
16721 | |
16722 | newsos6) |
16723 | lt_prog_compiler_pic_GCJ='-KPIC' |
16724 | lt_prog_compiler_static_GCJ='-Bstatic' |
16725 | ;; |
16726 | |
16727 | linux* | k*bsd*-gnu) |
16728 | case $cc_basename in |
16729 | icc* | ecc*) |
16730 | lt_prog_compiler_wl_GCJ='-Wl,' |
16731 | lt_prog_compiler_pic_GCJ='-KPIC' |
16732 | lt_prog_compiler_static_GCJ='-static' |
16733 | ;; |
16734 | pgcc* | pgf77* | pgf90* | pgf95*) |
16735 | # Portland Group compilers (*not* the Pentium gcc compiler, |
16736 | # which looks to be a dead project) |
16737 | lt_prog_compiler_wl_GCJ='-Wl,' |
16738 | lt_prog_compiler_pic_GCJ='-fpic' |
16739 | lt_prog_compiler_static_GCJ='-Bstatic' |
16740 | ;; |
16741 | ccc*) |
16742 | lt_prog_compiler_wl_GCJ='-Wl,' |
16743 | # All Alpha code is PIC. |
16744 | lt_prog_compiler_static_GCJ='-non_shared' |
16745 | ;; |
16746 | esac |
16747 | ;; |
16748 | |
16749 | osf3* | osf4* | osf5*) |
16750 | lt_prog_compiler_wl_GCJ='-Wl,' |
16751 | # All OSF/1 code is PIC. |
16752 | lt_prog_compiler_static_GCJ='-non_shared' |
16753 | ;; |
16754 | |
16755 | solaris*) |
16756 | lt_prog_compiler_pic_GCJ='-KPIC' |
16757 | lt_prog_compiler_static_GCJ='-Bstatic' |
16758 | case $cc_basename in |
16759 | f77* | f90* | f95*) |
16760 | lt_prog_compiler_wl_GCJ='-Qoption ld ';; |
16761 | *) |
16762 | lt_prog_compiler_wl_GCJ='-Wl,';; |
16763 | esac |
16764 | ;; |
16765 | |
16766 | sunos4*) |
16767 | lt_prog_compiler_wl_GCJ='-Qoption ld ' |
16768 | lt_prog_compiler_pic_GCJ='-PIC' |
16769 | lt_prog_compiler_static_GCJ='-Bstatic' |
16770 | ;; |
16771 | |
16772 | sysv4 | sysv4.2uw2* | sysv4.3*) |
16773 | lt_prog_compiler_wl_GCJ='-Wl,' |
16774 | lt_prog_compiler_pic_GCJ='-KPIC' |
16775 | lt_prog_compiler_static_GCJ='-Bstatic' |
16776 | ;; |
16777 | |
16778 | sysv4*MP*) |
16779 | if test -d /usr/nec ;then |
16780 | lt_prog_compiler_pic_GCJ='-Kconform_pic' |
16781 | lt_prog_compiler_static_GCJ='-Bstatic' |
16782 | fi |
16783 | ;; |
16784 | |
16785 | sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) |
16786 | lt_prog_compiler_wl_GCJ='-Wl,' |
16787 | lt_prog_compiler_pic_GCJ='-KPIC' |
16788 | lt_prog_compiler_static_GCJ='-Bstatic' |
16789 | ;; |
16790 | |
16791 | unicos*) |
16792 | lt_prog_compiler_wl_GCJ='-Wl,' |
16793 | lt_prog_compiler_can_build_shared_GCJ=no |
16794 | ;; |
16795 | |
16796 | uts4*) |
16797 | lt_prog_compiler_pic_GCJ='-pic' |
16798 | lt_prog_compiler_static_GCJ='-Bstatic' |
16799 | ;; |
16800 | |
16801 | *) |
16802 | lt_prog_compiler_can_build_shared_GCJ=no |
16803 | ;; |
16804 | esac |
16805 | fi |
16806 | |
16807 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 |
16808 | echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; } |
16809 | |
16810 | # |
16811 | # Check to make sure the PIC flag actually works. |
16812 | # |
16813 | if test -n "$lt_prog_compiler_pic_GCJ"; then |
16814 | |
16815 | { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 |
16816 | echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; } |
16817 | if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then |
16818 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16819 | else |
16820 | lt_prog_compiler_pic_works_GCJ=no |
16821 | ac_outfile=conftest.$ac_objext |
16822 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16823 | lt_compiler_flag="$lt_prog_compiler_pic_GCJ" |
16824 | # Insert the option either (1) after the last *FLAGS variable, or |
16825 | # (2) before a word containing "conftest.", or (3) at the end. |
16826 | # Note that $ac_compile itself does not contain backslashes and begins |
16827 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16828 | # The option is referenced via a variable to avoid confusing sed. |
16829 | lt_compile=`echo "$ac_compile" | $SED \ |
16830 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16831 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16832 | -e 's:$: $lt_compiler_flag:'` |
16833 | (eval echo "\"\$as_me:16833: $lt_compile\"" >&5) |
16834 | (eval "$lt_compile" 2>conftest.err) |
16835 | ac_status=$? |
16836 | cat conftest.err >&5 |
16837 | echo "$as_me:16837: \$? = $ac_status" >&5 |
16838 | if (exit $ac_status) && test -s "$ac_outfile"; then |
16839 | # The compiler can only warn and ignore the option if not recognized |
16840 | # So say no if there are warnings other than the usual output. |
16841 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp |
16842 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16843 | if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then |
16844 | lt_prog_compiler_pic_works_GCJ=yes |
16845 | fi |
16846 | fi |
16847 | $rm conftest* |
16848 | |
16849 | fi |
16850 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 |
16851 | echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6; } |
16852 | |
16853 | if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then |
16854 | case $lt_prog_compiler_pic_GCJ in |
16855 | "" | " "*) ;; |
16856 | *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; |
16857 | esac |
16858 | else |
16859 | lt_prog_compiler_pic_GCJ= |
16860 | lt_prog_compiler_can_build_shared_GCJ=no |
16861 | fi |
16862 | |
16863 | fi |
16864 | case $host_os in |
16865 | # For platforms which do not support PIC, -DPIC is meaningless: |
16866 | *djgpp*) |
16867 | lt_prog_compiler_pic_GCJ= |
16868 | ;; |
16869 | *) |
16870 | lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" |
16871 | ;; |
16872 | esac |
16873 | |
16874 | # |
16875 | # Check to make sure the static flag actually works. |
16876 | # |
16877 | wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\" |
16878 | { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 |
16879 | echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; } |
16880 | if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then |
16881 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16882 | else |
16883 | lt_prog_compiler_static_works_GCJ=no |
16884 | save_LDFLAGS="$LDFLAGS" |
16885 | LDFLAGS="$LDFLAGS $lt_tmp_static_flag" |
16886 | printf "$lt_simple_link_test_code" > conftest.$ac_ext |
16887 | if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then |
16888 | # The linker can only warn and ignore the option if not recognized |
16889 | # So say no if there are warnings |
16890 | if test -s conftest.err; then |
16891 | # Append any errors to the config.log. |
16892 | cat conftest.err 1>&5 |
16893 | $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp |
16894 | $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 |
16895 | if diff conftest.exp conftest.er2 >/dev/null; then |
16896 | lt_prog_compiler_static_works_GCJ=yes |
16897 | fi |
16898 | else |
16899 | lt_prog_compiler_static_works_GCJ=yes |
16900 | fi |
16901 | fi |
16902 | $rm conftest* |
16903 | LDFLAGS="$save_LDFLAGS" |
16904 | |
16905 | fi |
16906 | { echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5 |
16907 | echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6; } |
16908 | |
16909 | if test x"$lt_prog_compiler_static_works_GCJ" = xyes; then |
16910 | : |
16911 | else |
16912 | lt_prog_compiler_static_GCJ= |
16913 | fi |
16914 | |
16915 | |
16916 | { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 |
16917 | echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; } |
16918 | if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then |
16919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
16920 | else |
16921 | lt_cv_prog_compiler_c_o_GCJ=no |
16922 | $rm -r conftest 2>/dev/null |
16923 | mkdir conftest |
16924 | cd conftest |
16925 | mkdir out |
16926 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
16927 | |
16928 | lt_compiler_flag="-o out/conftest2.$ac_objext" |
16929 | # Insert the option either (1) after the last *FLAGS variable, or |
16930 | # (2) before a word containing "conftest.", or (3) at the end. |
16931 | # Note that $ac_compile itself does not contain backslashes and begins |
16932 | # with a dollar sign (not a hyphen), so the echo should work correctly. |
16933 | lt_compile=`echo "$ac_compile" | $SED \ |
16934 | -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ |
16935 | -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ |
16936 | -e 's:$: $lt_compiler_flag:'` |
16937 | (eval echo "\"\$as_me:16937: $lt_compile\"" >&5) |
16938 | (eval "$lt_compile" 2>out/conftest.err) |
16939 | ac_status=$? |
16940 | cat out/conftest.err >&5 |
16941 | echo "$as_me:16941: \$? = $ac_status" >&5 |
16942 | if (exit $ac_status) && test -s out/conftest2.$ac_objext |
16943 | then |
16944 | # The compiler can only warn and ignore the option if not recognized |
16945 | # So say no if there are warnings |
16946 | $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp |
16947 | $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 |
16948 | if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then |
16949 | lt_cv_prog_compiler_c_o_GCJ=yes |
16950 | fi |
16951 | fi |
16952 | chmod u+w . 2>&5 |
16953 | $rm conftest* |
16954 | # SGI C++ compiler will create directory out/ii_files/ for |
16955 | # template instantiation |
16956 | test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files |
16957 | $rm out/* && rmdir out |
16958 | cd .. |
16959 | rmdir conftest |
16960 | $rm conftest* |
16961 | |
16962 | fi |
16963 | { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 |
16964 | echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; } |
16965 | |
16966 | |
16967 | hard_links="nottested" |
16968 | if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then |
16969 | # do not overwrite the value of need_locks provided by the user |
16970 | { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 |
16971 | echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; } |
16972 | hard_links=yes |
16973 | $rm conftest* |
16974 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16975 | touch conftest.a |
16976 | ln conftest.a conftest.b 2>&5 || hard_links=no |
16977 | ln conftest.a conftest.b 2>/dev/null && hard_links=no |
16978 | { echo "$as_me:$LINENO: result: $hard_links" >&5 |
16979 | echo "${ECHO_T}$hard_links" >&6; } |
16980 | if test "$hard_links" = no; then |
16981 | { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 |
16982 | echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} |
16983 | need_locks=warn |
16984 | fi |
16985 | else |
16986 | need_locks=no |
16987 | fi |
16988 | |
16989 | { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 |
16990 | echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; } |
16991 | |
16992 | runpath_var= |
16993 | allow_undefined_flag_GCJ= |
16994 | enable_shared_with_static_runtimes_GCJ=no |
16995 | archive_cmds_GCJ= |
16996 | archive_expsym_cmds_GCJ= |
16997 | old_archive_From_new_cmds_GCJ= |
16998 | old_archive_from_expsyms_cmds_GCJ= |
16999 | export_dynamic_flag_spec_GCJ= |
17000 | whole_archive_flag_spec_GCJ= |
17001 | thread_safe_flag_spec_GCJ= |
17002 | hardcode_libdir_flag_spec_GCJ= |
17003 | hardcode_libdir_flag_spec_ld_GCJ= |
17004 | hardcode_libdir_separator_GCJ= |
17005 | hardcode_direct_GCJ=no |
17006 | hardcode_minus_L_GCJ=no |
17007 | hardcode_shlibpath_var_GCJ=unsupported |
17008 | link_all_deplibs_GCJ=unknown |
17009 | hardcode_automatic_GCJ=no |
17010 | module_cmds_GCJ= |
17011 | module_expsym_cmds_GCJ= |
17012 | always_export_symbols_GCJ=no |
17013 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' |
17014 | # include_expsyms should be a list of space-separated symbols to be *always* |
17015 | # included in the symbol list |
17016 | include_expsyms_GCJ= |
17017 | # exclude_expsyms can be an extended regexp of symbols to exclude |
17018 | # it will be wrapped by ` (' and `)$', so one must not match beginning or |
17019 | # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', |
17020 | # as well as any symbol that contains `d'. |
17021 | exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" |
17022 | # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out |
17023 | # platforms (ab)use it in PIC code, but their linkers get confused if |
17024 | # the symbol is explicitly referenced. Since portable code cannot |
17025 | # rely on this symbol name, it's probably fine to never include it in |
17026 | # preloaded symbol tables. |
17027 | extract_expsyms_cmds= |
17028 | # Just being paranoid about ensuring that cc_basename is set. |
17029 | for cc_temp in $compiler""; do |
17030 | case $cc_temp in |
17031 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
17032 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
17033 | \-*) ;; |
17034 | *) break;; |
17035 | esac |
17036 | done |
17037 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
17038 | |
17039 | case $host_os in |
17040 | cygwin* | mingw* | pw32*) |
17041 | # FIXME: the MSVC++ port hasn't been tested in a loooong time |
17042 | # When not using gcc, we currently assume that we are using |
17043 | # Microsoft Visual C++. |
17044 | if test "$GCC" != yes; then |
17045 | with_gnu_ld=no |
17046 | fi |
17047 | ;; |
17048 | interix*) |
17049 | # we just hope/assume this is gcc and not c89 (= MSVC++) |
17050 | with_gnu_ld=yes |
17051 | ;; |
17052 | openbsd*) |
17053 | with_gnu_ld=no |
17054 | ;; |
17055 | esac |
17056 | |
17057 | ld_shlibs_GCJ=yes |
17058 | if test "$with_gnu_ld" = yes; then |
17059 | # If archive_cmds runs LD, not CC, wlarc should be empty |
17060 | wlarc='${wl}' |
17061 | |
17062 | # Set some defaults for GNU ld with shared library support. These |
17063 | # are reset later if shared libraries are not supported. Putting them |
17064 | # here allows them to be overridden if necessary. |
17065 | runpath_var=LD_RUN_PATH |
17066 | hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' |
17067 | export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' |
17068 | # ancient GNU ld didn't support --whole-archive et. al. |
17069 | if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then |
17070 | whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' |
17071 | else |
17072 | whole_archive_flag_spec_GCJ= |
17073 | fi |
17074 | supports_anon_versioning=no |
17075 | case `$LD -v 2>/dev/null` in |
17076 | *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 |
17077 | *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... |
17078 | *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... |
17079 | *\ 2.11.*) ;; # other 2.11 versions |
17080 | *) supports_anon_versioning=yes ;; |
17081 | esac |
17082 | |
17083 | # See if GNU ld supports shared libraries. |
17084 | case $host_os in |
17085 | aix3* | aix4* | aix5*) |
17086 | # On AIX/PPC, the GNU linker is very broken |
17087 | if test "$host_cpu" != ia64; then |
17088 | ld_shlibs_GCJ=no |
17089 | cat <<EOF 1>&2 |
17090 | |
17091 | *** Warning: the GNU linker, at least up to release 2.9.1, is reported |
17092 | *** to be unable to reliably create shared libraries on AIX. |
17093 | *** Therefore, libtool is disabling shared libraries support. If you |
17094 | *** really care for shared libraries, you may want to modify your PATH |
17095 | *** so that a non-GNU linker is found, and then restart. |
17096 | |
17097 | EOF |
17098 | fi |
17099 | ;; |
17100 | |
17101 | amigaos*) |
17102 | 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)' |
17103 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17104 | hardcode_minus_L_GCJ=yes |
17105 | |
17106 | # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports |
17107 | # that the semantics of dynamic libraries on AmigaOS, at least up |
17108 | # to version 4, is to share data among multiple programs linked |
17109 | # with the same dynamic library. Since this doesn't match the |
17110 | # behavior of shared libraries on other platforms, we can't use |
17111 | # them. |
17112 | ld_shlibs_GCJ=no |
17113 | ;; |
17114 | |
17115 | beos*) |
17116 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17117 | allow_undefined_flag_GCJ=unsupported |
17118 | # Joseph Beckenbach <jrb3@best.com> says some releases of gcc |
17119 | # support --undefined. This deserves some investigation. FIXME |
17120 | archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17121 | else |
17122 | ld_shlibs_GCJ=no |
17123 | fi |
17124 | ;; |
17125 | |
17126 | cygwin* | mingw* | pw32*) |
17127 | # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, |
17128 | # as there is no search path for DLLs. |
17129 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17130 | allow_undefined_flag_GCJ=unsupported |
17131 | always_export_symbols_GCJ=no |
17132 | enable_shared_with_static_runtimes_GCJ=yes |
17133 | export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' |
17134 | |
17135 | if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then |
17136 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
17137 | # If the export-symbols file already is a .def file (1st line |
17138 | # is EXPORTS), use it as is; otherwise, prepend... |
17139 | archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then |
17140 | cp $export_symbols $output_objdir/$soname.def; |
17141 | else |
17142 | echo EXPORTS > $output_objdir/$soname.def; |
17143 | cat $export_symbols >> $output_objdir/$soname.def; |
17144 | fi~ |
17145 | $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' |
17146 | else |
17147 | ld_shlibs_GCJ=no |
17148 | fi |
17149 | ;; |
17150 | |
17151 | interix3*) |
17152 | hardcode_direct_GCJ=no |
17153 | hardcode_shlibpath_var_GCJ=no |
17154 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17155 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17156 | # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. |
17157 | # Instead, shared libraries are loaded at an image base (0x10000000 by |
17158 | # default) and relocated if they conflict, which is a slow very memory |
17159 | # consuming and fragmenting process. To avoid this, we pick a random, |
17160 | # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link |
17161 | # time. Moving up from 0x10000000 also allows more sbrk(2) space. |
17162 | archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
17163 | archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' |
17164 | ;; |
17165 | |
17166 | linux* | k*bsd*-gnu) |
17167 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17168 | tmp_addflag= |
17169 | case $cc_basename,$host_cpu in |
17170 | pgcc*) # Portland Group C compiler |
17171 | 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' |
17172 | tmp_addflag=' $pic_flag' |
17173 | ;; |
17174 | pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers |
17175 | 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' |
17176 | tmp_addflag=' $pic_flag -Mnomain' ;; |
17177 | ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 |
17178 | tmp_addflag=' -i_dynamic' ;; |
17179 | efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 |
17180 | tmp_addflag=' -i_dynamic -nofor_main' ;; |
17181 | ifc* | ifort*) # Intel Fortran compiler |
17182 | tmp_addflag=' -nofor_main' ;; |
17183 | esac |
17184 | archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17185 | |
17186 | if test $supports_anon_versioning = yes; then |
17187 | archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ |
17188 | cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ |
17189 | $echo "local: *; };" >> $output_objdir/$libname.ver~ |
17190 | $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' |
17191 | fi |
17192 | link_all_deplibs_GCJ=no |
17193 | else |
17194 | ld_shlibs_GCJ=no |
17195 | fi |
17196 | ;; |
17197 | |
17198 | netbsd* | netbsdelf*-gnu) |
17199 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17200 | archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' |
17201 | wlarc= |
17202 | else |
17203 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17204 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17205 | fi |
17206 | ;; |
17207 | |
17208 | solaris*) |
17209 | if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then |
17210 | ld_shlibs_GCJ=no |
17211 | cat <<EOF 1>&2 |
17212 | |
17213 | *** Warning: The releases 2.8.* of the GNU linker cannot reliably |
17214 | *** create shared libraries on Solaris systems. Therefore, libtool |
17215 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17216 | *** binutils to release 2.9.1 or newer. Another option is to modify |
17217 | *** your PATH or compiler configuration so that the native linker is |
17218 | *** used, and then restart. |
17219 | |
17220 | EOF |
17221 | elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17222 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17223 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17224 | else |
17225 | ld_shlibs_GCJ=no |
17226 | fi |
17227 | ;; |
17228 | |
17229 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) |
17230 | case `$LD -v 2>&1` in |
17231 | *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) |
17232 | ld_shlibs_GCJ=no |
17233 | cat <<_LT_EOF 1>&2 |
17234 | |
17235 | *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not |
17236 | *** reliably create shared libraries on SCO systems. Therefore, libtool |
17237 | *** is disabling shared libraries support. We urge you to upgrade GNU |
17238 | *** binutils to release 2.16.91.0.3 or newer. Another option is to modify |
17239 | *** your PATH or compiler configuration so that the native linker is |
17240 | *** used, and then restart. |
17241 | |
17242 | _LT_EOF |
17243 | ;; |
17244 | *) |
17245 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17246 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`' |
17247 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib' |
17248 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib' |
17249 | else |
17250 | ld_shlibs_GCJ=no |
17251 | fi |
17252 | ;; |
17253 | esac |
17254 | ;; |
17255 | |
17256 | sunos4*) |
17257 | archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17258 | wlarc= |
17259 | hardcode_direct_GCJ=yes |
17260 | hardcode_shlibpath_var_GCJ=no |
17261 | ;; |
17262 | |
17263 | *) |
17264 | if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then |
17265 | archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' |
17266 | archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' |
17267 | else |
17268 | ld_shlibs_GCJ=no |
17269 | fi |
17270 | ;; |
17271 | esac |
17272 | |
17273 | if test "$ld_shlibs_GCJ" = no; then |
17274 | runpath_var= |
17275 | hardcode_libdir_flag_spec_GCJ= |
17276 | export_dynamic_flag_spec_GCJ= |
17277 | whole_archive_flag_spec_GCJ= |
17278 | fi |
17279 | else |
17280 | # PORTME fill in a description of your system's linker (not GNU ld) |
17281 | case $host_os in |
17282 | aix3*) |
17283 | allow_undefined_flag_GCJ=unsupported |
17284 | always_export_symbols_GCJ=yes |
17285 | 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' |
17286 | # Note: this linker hardcodes the directories in LIBPATH if there |
17287 | # are no directories specified by -L. |
17288 | hardcode_minus_L_GCJ=yes |
17289 | if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then |
17290 | # Neither direct hardcoding nor static linking is supported with a |
17291 | # broken collect2. |
17292 | hardcode_direct_GCJ=unsupported |
17293 | fi |
17294 | ;; |
17295 | |
17296 | aix4* | aix5*) |
17297 | if test "$host_cpu" = ia64; then |
17298 | # On IA64, the linker does run time linking by default, so we don't |
17299 | # have to do anything special. |
17300 | aix_use_runtimelinking=no |
17301 | exp_sym_flag='-Bexport' |
17302 | no_entry_flag="" |
17303 | else |
17304 | # If we're using GNU nm, then we don't want the "-C" option. |
17305 | # -C means demangle to AIX nm, but means don't demangle with GNU nm |
17306 | if $NM -V 2>&1 | grep 'GNU' > /dev/null; then |
17307 | 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' |
17308 | else |
17309 | 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' |
17310 | fi |
17311 | aix_use_runtimelinking=no |
17312 | |
17313 | # Test if we are trying to use run time linking or normal |
17314 | # AIX style linking. If -brtl is somewhere in LDFLAGS, we |
17315 | # need to do runtime linking. |
17316 | case $host_os in aix4.[23]|aix4.[23].*|aix5*) |
17317 | for ld_flag in $LDFLAGS; do |
17318 | if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then |
17319 | aix_use_runtimelinking=yes |
17320 | break |
17321 | fi |
17322 | done |
17323 | ;; |
17324 | esac |
17325 | |
17326 | exp_sym_flag='-bexport' |
17327 | no_entry_flag='-bnoentry' |
17328 | fi |
17329 | |
17330 | # When large executables or shared objects are built, AIX ld can |
17331 | # have problems creating the table of contents. If linking a library |
17332 | # or program results in "error TOC overflow" add -mminimal-toc to |
17333 | # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not |
17334 | # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. |
17335 | |
17336 | archive_cmds_GCJ='' |
17337 | hardcode_direct_GCJ=yes |
17338 | hardcode_libdir_separator_GCJ=':' |
17339 | link_all_deplibs_GCJ=yes |
17340 | |
17341 | if test "$GCC" = yes; then |
17342 | case $host_os in aix4.[012]|aix4.[012].*) |
17343 | # We only want to do this on AIX 4.2 and lower, the check |
17344 | # below for broken collect2 doesn't work under 4.3+ |
17345 | collect2name=`${CC} -print-prog-name=collect2` |
17346 | if test -f "$collect2name" && \ |
17347 | strings "$collect2name" | grep resolve_lib_name >/dev/null |
17348 | then |
17349 | # We have reworked collect2 |
17350 | hardcode_direct_GCJ=yes |
17351 | else |
17352 | # We have old collect2 |
17353 | hardcode_direct_GCJ=unsupported |
17354 | # It fails to find uninstalled libraries when the uninstalled |
17355 | # path is not listed in the libpath. Setting hardcode_minus_L |
17356 | # to unsupported forces relinking |
17357 | hardcode_minus_L_GCJ=yes |
17358 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17359 | hardcode_libdir_separator_GCJ= |
17360 | fi |
17361 | ;; |
17362 | esac |
17363 | shared_flag='-shared' |
17364 | if test "$aix_use_runtimelinking" = yes; then |
17365 | shared_flag="$shared_flag "'${wl}-G' |
17366 | fi |
17367 | else |
17368 | # not using gcc |
17369 | if test "$host_cpu" = ia64; then |
17370 | # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release |
17371 | # chokes on -Wl,-G. The following line is correct: |
17372 | shared_flag='-G' |
17373 | else |
17374 | if test "$aix_use_runtimelinking" = yes; then |
17375 | shared_flag='${wl}-G' |
17376 | else |
17377 | shared_flag='${wl}-bM:SRE' |
17378 | fi |
17379 | fi |
17380 | fi |
17381 | |
17382 | # It seems that -bexpall does not export symbols beginning with |
17383 | # underscore (_), so it is better to generate a list of symbols to export. |
17384 | always_export_symbols_GCJ=yes |
17385 | if test "$aix_use_runtimelinking" = yes; then |
17386 | # Warning - without using the other runtime loading flags (-brtl), |
17387 | # -berok will link without error, but may produce a broken library. |
17388 | allow_undefined_flag_GCJ='-berok' |
17389 | # Determine the default libpath from the value encoded in an empty executable. |
17390 | cat >conftest.$ac_ext <<_ACEOF |
17391 | /* confdefs.h. */ |
17392 | _ACEOF |
17393 | cat confdefs.h >>conftest.$ac_ext |
17394 | cat >>conftest.$ac_ext <<_ACEOF |
17395 | /* end confdefs.h. */ |
17396 | |
17397 | int |
17398 | main () |
17399 | { |
17400 | |
17401 | ; |
17402 | return 0; |
17403 | } |
17404 | _ACEOF |
17405 | rm -f conftest.$ac_objext conftest$ac_exeext |
17406 | if { (ac_try="$ac_link" |
17407 | case "(($ac_try" in |
17408 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17409 | *) ac_try_echo=$ac_try;; |
17410 | esac |
17411 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17412 | (eval "$ac_link") 2>conftest.er1 |
17413 | ac_status=$? |
17414 | grep -v '^ *+' conftest.er1 >conftest.err |
17415 | rm -f conftest.er1 |
17416 | cat conftest.err >&5 |
17417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17418 | (exit $ac_status); } && |
17419 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
17420 | { (case "(($ac_try" in |
17421 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17422 | *) ac_try_echo=$ac_try;; |
17423 | esac |
17424 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17425 | (eval "$ac_try") 2>&5 |
17426 | ac_status=$? |
17427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17428 | (exit $ac_status); }; } && |
17429 | { ac_try='test -s conftest$ac_exeext' |
17430 | { (case "(($ac_try" in |
17431 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17432 | *) ac_try_echo=$ac_try;; |
17433 | esac |
17434 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17435 | (eval "$ac_try") 2>&5 |
17436 | ac_status=$? |
17437 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17438 | (exit $ac_status); }; }; then |
17439 | |
17440 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17441 | }'` |
17442 | # Check for a 64-bit object if we didn't find anything. |
17443 | 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; } |
17444 | }'`; fi |
17445 | else |
17446 | echo "$as_me: failed program was:" >&5 |
17447 | sed 's/^/| /' conftest.$ac_ext >&5 |
17448 | |
17449 | |
17450 | fi |
17451 | |
17452 | rm -f core conftest.err conftest.$ac_objext \ |
17453 | conftest$ac_exeext conftest.$ac_ext |
17454 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17455 | |
17456 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17457 | archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" |
17458 | else |
17459 | if test "$host_cpu" = ia64; then |
17460 | hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' |
17461 | allow_undefined_flag_GCJ="-z nodefs" |
17462 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" |
17463 | else |
17464 | # Determine the default libpath from the value encoded in an empty executable. |
17465 | cat >conftest.$ac_ext <<_ACEOF |
17466 | /* confdefs.h. */ |
17467 | _ACEOF |
17468 | cat confdefs.h >>conftest.$ac_ext |
17469 | cat >>conftest.$ac_ext <<_ACEOF |
17470 | /* end confdefs.h. */ |
17471 | |
17472 | int |
17473 | main () |
17474 | { |
17475 | |
17476 | ; |
17477 | return 0; |
17478 | } |
17479 | _ACEOF |
17480 | rm -f conftest.$ac_objext conftest$ac_exeext |
17481 | if { (ac_try="$ac_link" |
17482 | case "(($ac_try" in |
17483 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17484 | *) ac_try_echo=$ac_try;; |
17485 | esac |
17486 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17487 | (eval "$ac_link") 2>conftest.er1 |
17488 | ac_status=$? |
17489 | grep -v '^ *+' conftest.er1 >conftest.err |
17490 | rm -f conftest.er1 |
17491 | cat conftest.err >&5 |
17492 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17493 | (exit $ac_status); } && |
17494 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
17495 | { (case "(($ac_try" in |
17496 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17497 | *) ac_try_echo=$ac_try;; |
17498 | esac |
17499 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17500 | (eval "$ac_try") 2>&5 |
17501 | ac_status=$? |
17502 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17503 | (exit $ac_status); }; } && |
17504 | { ac_try='test -s conftest$ac_exeext' |
17505 | { (case "(($ac_try" in |
17506 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
17507 | *) ac_try_echo=$ac_try;; |
17508 | esac |
17509 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
17510 | (eval "$ac_try") 2>&5 |
17511 | ac_status=$? |
17512 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
17513 | (exit $ac_status); }; }; then |
17514 | |
17515 | aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } |
17516 | }'` |
17517 | # Check for a 64-bit object if we didn't find anything. |
17518 | 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; } |
17519 | }'`; fi |
17520 | else |
17521 | echo "$as_me: failed program was:" >&5 |
17522 | sed 's/^/| /' conftest.$ac_ext >&5 |
17523 | |
17524 | |
17525 | fi |
17526 | |
17527 | rm -f core conftest.err conftest.$ac_objext \ |
17528 | conftest$ac_exeext conftest.$ac_ext |
17529 | if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi |
17530 | |
17531 | hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" |
17532 | # Warning - without using the other run time loading flags, |
17533 | # -berok will link without error, but may produce a broken library. |
17534 | no_undefined_flag_GCJ=' ${wl}-bernotok' |
17535 | allow_undefined_flag_GCJ=' ${wl}-berok' |
17536 | # Exported symbols can be pulled into shared objects from archives |
17537 | whole_archive_flag_spec_GCJ='$convenience' |
17538 | archive_cmds_need_lc_GCJ=yes |
17539 | # This is similar to how AIX traditionally builds its shared libraries. |
17540 | archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' |
17541 | fi |
17542 | fi |
17543 | ;; |
17544 | |
17545 | amigaos*) |
17546 | 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)' |
17547 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17548 | hardcode_minus_L_GCJ=yes |
17549 | # see comment about different semantics on the GNU ld section |
17550 | ld_shlibs_GCJ=no |
17551 | ;; |
17552 | |
17553 | bsdi[45]*) |
17554 | export_dynamic_flag_spec_GCJ=-rdynamic |
17555 | ;; |
17556 | |
17557 | cygwin* | mingw* | pw32*) |
17558 | # When not using gcc, we currently assume that we are using |
17559 | # Microsoft Visual C++. |
17560 | # hardcode_libdir_flag_spec is actually meaningless, as there is |
17561 | # no search path for DLLs. |
17562 | hardcode_libdir_flag_spec_GCJ=' ' |
17563 | allow_undefined_flag_GCJ=unsupported |
17564 | # Tell ltmain to make .lib files, not .a files. |
17565 | libext=lib |
17566 | # Tell ltmain to make .dll files, not .so files. |
17567 | shrext_cmds=".dll" |
17568 | # FIXME: Setting linknames here is a bad hack. |
17569 | archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' |
17570 | # The linker will automatically build a .lib file if we build a DLL. |
17571 | old_archive_From_new_cmds_GCJ='true' |
17572 | # FIXME: Should let the user specify the lib program. |
17573 | old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' |
17574 | fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`' |
17575 | enable_shared_with_static_runtimes_GCJ=yes |
17576 | ;; |
17577 | |
17578 | darwin* | rhapsody*) |
17579 | case $host_os in |
17580 | rhapsody* | darwin1.[012]) |
17581 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress' |
17582 | ;; |
17583 | *) # Darwin 1.3 on |
17584 | if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then |
17585 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17586 | else |
17587 | case ${MACOSX_DEPLOYMENT_TARGET} in |
17588 | 10.[012]) |
17589 | allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' |
17590 | ;; |
17591 | 10.*) |
17592 | allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup' |
17593 | ;; |
17594 | esac |
17595 | fi |
17596 | ;; |
17597 | esac |
17598 | archive_cmds_need_lc_GCJ=no |
17599 | hardcode_direct_GCJ=no |
17600 | hardcode_automatic_GCJ=yes |
17601 | hardcode_shlibpath_var_GCJ=unsupported |
17602 | whole_archive_flag_spec_GCJ='' |
17603 | link_all_deplibs_GCJ=yes |
17604 | if test "$GCC" = yes ; then |
17605 | output_verbose_link_cmd='echo' |
17606 | archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' |
17607 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17608 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17609 | 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}' |
17610 | 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}' |
17611 | else |
17612 | case $cc_basename in |
17613 | xlc*) |
17614 | output_verbose_link_cmd='echo' |
17615 | archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring' |
17616 | module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' |
17617 | # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds |
17618 | 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}' |
17619 | 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}' |
17620 | ;; |
17621 | *) |
17622 | ld_shlibs_GCJ=no |
17623 | ;; |
17624 | esac |
17625 | fi |
17626 | ;; |
17627 | |
17628 | dgux*) |
17629 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17630 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17631 | hardcode_shlibpath_var_GCJ=no |
17632 | ;; |
17633 | |
17634 | freebsd1*) |
17635 | ld_shlibs_GCJ=no |
17636 | ;; |
17637 | |
17638 | # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor |
17639 | # support. Future versions do this automatically, but an explicit c++rt0.o |
17640 | # does not break anything, and helps significantly (at the cost of a little |
17641 | # extra space). |
17642 | freebsd2.2*) |
17643 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' |
17644 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17645 | hardcode_direct_GCJ=yes |
17646 | hardcode_shlibpath_var_GCJ=no |
17647 | ;; |
17648 | |
17649 | # Unfortunately, older versions of FreeBSD 2 do not have this feature. |
17650 | freebsd2*) |
17651 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17652 | hardcode_direct_GCJ=yes |
17653 | hardcode_minus_L_GCJ=yes |
17654 | hardcode_shlibpath_var_GCJ=no |
17655 | ;; |
17656 | |
17657 | # FreeBSD 3 and greater uses gcc -shared to do shared libraries. |
17658 | freebsd* | dragonfly*) |
17659 | archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' |
17660 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17661 | hardcode_direct_GCJ=yes |
17662 | hardcode_shlibpath_var_GCJ=no |
17663 | ;; |
17664 | |
17665 | hpux9*) |
17666 | if test "$GCC" = yes; then |
17667 | 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' |
17668 | else |
17669 | 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' |
17670 | fi |
17671 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17672 | hardcode_libdir_separator_GCJ=: |
17673 | hardcode_direct_GCJ=yes |
17674 | |
17675 | # hardcode_minus_L: Not really in the search PATH, |
17676 | # but as the default location of the library. |
17677 | hardcode_minus_L_GCJ=yes |
17678 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17679 | ;; |
17680 | |
17681 | hpux10*) |
17682 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17683 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17684 | else |
17685 | archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' |
17686 | fi |
17687 | if test "$with_gnu_ld" = no; then |
17688 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17689 | hardcode_libdir_separator_GCJ=: |
17690 | |
17691 | hardcode_direct_GCJ=yes |
17692 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17693 | |
17694 | # hardcode_minus_L: Not really in the search PATH, |
17695 | # but as the default location of the library. |
17696 | hardcode_minus_L_GCJ=yes |
17697 | fi |
17698 | ;; |
17699 | |
17700 | hpux11*) |
17701 | if test "$GCC" = yes -a "$with_gnu_ld" = no; then |
17702 | case $host_cpu in |
17703 | hppa*64*) |
17704 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17705 | ;; |
17706 | ia64*) |
17707 | archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17708 | ;; |
17709 | *) |
17710 | archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17711 | ;; |
17712 | esac |
17713 | else |
17714 | case $host_cpu in |
17715 | hppa*64*) |
17716 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17717 | ;; |
17718 | ia64*) |
17719 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' |
17720 | ;; |
17721 | *) |
17722 | archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' |
17723 | ;; |
17724 | esac |
17725 | fi |
17726 | if test "$with_gnu_ld" = no; then |
17727 | hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' |
17728 | hardcode_libdir_separator_GCJ=: |
17729 | |
17730 | case $host_cpu in |
17731 | hppa*64*|ia64*) |
17732 | hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' |
17733 | hardcode_direct_GCJ=no |
17734 | hardcode_shlibpath_var_GCJ=no |
17735 | ;; |
17736 | *) |
17737 | hardcode_direct_GCJ=yes |
17738 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17739 | |
17740 | # hardcode_minus_L: Not really in the search PATH, |
17741 | # but as the default location of the library. |
17742 | hardcode_minus_L_GCJ=yes |
17743 | ;; |
17744 | esac |
17745 | fi |
17746 | ;; |
17747 | |
17748 | irix5* | irix6* | nonstopux*) |
17749 | if test "$GCC" = yes; then |
17750 | 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' |
17751 | else |
17752 | 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' |
17753 | hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' |
17754 | fi |
17755 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17756 | hardcode_libdir_separator_GCJ=: |
17757 | link_all_deplibs_GCJ=yes |
17758 | ;; |
17759 | |
17760 | netbsd* | netbsdelf*-gnu) |
17761 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
17762 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out |
17763 | else |
17764 | archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF |
17765 | fi |
17766 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17767 | hardcode_direct_GCJ=yes |
17768 | hardcode_shlibpath_var_GCJ=no |
17769 | ;; |
17770 | |
17771 | newsos6) |
17772 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17773 | hardcode_direct_GCJ=yes |
17774 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17775 | hardcode_libdir_separator_GCJ=: |
17776 | hardcode_shlibpath_var_GCJ=no |
17777 | ;; |
17778 | |
17779 | openbsd*) |
17780 | hardcode_direct_GCJ=yes |
17781 | hardcode_shlibpath_var_GCJ=no |
17782 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
17783 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17784 | archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' |
17785 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17786 | export_dynamic_flag_spec_GCJ='${wl}-E' |
17787 | else |
17788 | case $host_os in |
17789 | openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) |
17790 | archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' |
17791 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17792 | ;; |
17793 | *) |
17794 | archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' |
17795 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' |
17796 | ;; |
17797 | esac |
17798 | fi |
17799 | ;; |
17800 | |
17801 | os2*) |
17802 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17803 | hardcode_minus_L_GCJ=yes |
17804 | allow_undefined_flag_GCJ=unsupported |
17805 | 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' |
17806 | old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' |
17807 | ;; |
17808 | |
17809 | osf3*) |
17810 | if test "$GCC" = yes; then |
17811 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17812 | 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' |
17813 | else |
17814 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17815 | 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' |
17816 | fi |
17817 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17818 | hardcode_libdir_separator_GCJ=: |
17819 | ;; |
17820 | |
17821 | osf4* | osf5*) # as osf3* with the addition of -msym flag |
17822 | if test "$GCC" = yes; then |
17823 | allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' |
17824 | 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' |
17825 | hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' |
17826 | else |
17827 | allow_undefined_flag_GCJ=' -expect_unresolved \*' |
17828 | 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' |
17829 | 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~ |
17830 | $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' |
17831 | |
17832 | # Both c and cxx compiler support -rpath directly |
17833 | hardcode_libdir_flag_spec_GCJ='-rpath $libdir' |
17834 | fi |
17835 | hardcode_libdir_separator_GCJ=: |
17836 | ;; |
17837 | |
17838 | solaris*) |
17839 | no_undefined_flag_GCJ=' -z text' |
17840 | if test "$GCC" = yes; then |
17841 | wlarc='${wl}' |
17842 | archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17843 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17844 | $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' |
17845 | else |
17846 | wlarc='' |
17847 | archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17848 | archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ |
17849 | $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' |
17850 | fi |
17851 | hardcode_libdir_flag_spec_GCJ='-R$libdir' |
17852 | hardcode_shlibpath_var_GCJ=no |
17853 | case $host_os in |
17854 | solaris2.[0-5] | solaris2.[0-5].*) ;; |
17855 | *) |
17856 | # The compiler driver will combine linker options so we |
17857 | # cannot just pass the convience library names through |
17858 | # without $wl, iff we do not link with $LD. |
17859 | # Luckily, gcc supports the same syntax we need for Sun Studio. |
17860 | # Supported since Solaris 2.6 (maybe 2.5.1?) |
17861 | case $wlarc in |
17862 | '') |
17863 | whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; |
17864 | *) |
17865 | 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' ;; |
17866 | esac ;; |
17867 | esac |
17868 | link_all_deplibs_GCJ=yes |
17869 | ;; |
17870 | |
17871 | sunos4*) |
17872 | if test "x$host_vendor" = xsequent; then |
17873 | # Use $CC to link under sequent, because it throws in some extra .o |
17874 | # files that make .init and .fini sections work. |
17875 | archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' |
17876 | else |
17877 | archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' |
17878 | fi |
17879 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17880 | hardcode_direct_GCJ=yes |
17881 | hardcode_minus_L_GCJ=yes |
17882 | hardcode_shlibpath_var_GCJ=no |
17883 | ;; |
17884 | |
17885 | sysv4) |
17886 | case $host_vendor in |
17887 | sni) |
17888 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17889 | hardcode_direct_GCJ=yes # is this really true??? |
17890 | ;; |
17891 | siemens) |
17892 | ## LD is ld it makes a PLAMLIB |
17893 | ## CC just makes a GrossModule. |
17894 | archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' |
17895 | reload_cmds_GCJ='$CC -r -o $output$reload_objs' |
17896 | hardcode_direct_GCJ=no |
17897 | ;; |
17898 | motorola) |
17899 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17900 | hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie |
17901 | ;; |
17902 | esac |
17903 | runpath_var='LD_RUN_PATH' |
17904 | hardcode_shlibpath_var_GCJ=no |
17905 | ;; |
17906 | |
17907 | sysv4.3*) |
17908 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17909 | hardcode_shlibpath_var_GCJ=no |
17910 | export_dynamic_flag_spec_GCJ='-Bexport' |
17911 | ;; |
17912 | |
17913 | sysv4*MP*) |
17914 | if test -d /usr/nec; then |
17915 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17916 | hardcode_shlibpath_var_GCJ=no |
17917 | runpath_var=LD_RUN_PATH |
17918 | hardcode_runpath_var=yes |
17919 | ld_shlibs_GCJ=yes |
17920 | fi |
17921 | ;; |
17922 | |
17923 | sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7*) |
17924 | no_undefined_flag_GCJ='${wl}-z,text' |
17925 | archive_cmds_need_lc_GCJ=no |
17926 | hardcode_shlibpath_var_GCJ=no |
17927 | runpath_var='LD_RUN_PATH' |
17928 | |
17929 | if test "$GCC" = yes; then |
17930 | archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17931 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17932 | else |
17933 | archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17934 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' |
17935 | fi |
17936 | ;; |
17937 | |
17938 | sysv5* | sco3.2v5* | sco5v6*) |
17939 | # Note: We can NOT use -z defs as we might desire, because we do not |
17940 | # link with -lc, and that would cause any symbols used from libc to |
17941 | # always be unresolved, which means just about no library would |
17942 | # ever link correctly. If we're not using GNU ld we use -z text |
17943 | # though, which does catch some bad symbols but isn't as heavy-handed |
17944 | # as -z defs. |
17945 | no_undefined_flag_GCJ='${wl}-z,text' |
17946 | allow_undefined_flag_GCJ='${wl}-z,nodefs' |
17947 | archive_cmds_need_lc_GCJ=no |
17948 | hardcode_shlibpath_var_GCJ=no |
17949 | hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`' |
17950 | hardcode_libdir_separator_GCJ=':' |
17951 | link_all_deplibs_GCJ=yes |
17952 | export_dynamic_flag_spec_GCJ='${wl}-Bexport' |
17953 | runpath_var='LD_RUN_PATH' |
17954 | |
17955 | if test "$GCC" = yes; then |
17956 | archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17957 | archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17958 | else |
17959 | archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17960 | archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags' |
17961 | fi |
17962 | ;; |
17963 | |
17964 | uts4*) |
17965 | archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' |
17966 | hardcode_libdir_flag_spec_GCJ='-L$libdir' |
17967 | hardcode_shlibpath_var_GCJ=no |
17968 | ;; |
17969 | |
17970 | *) |
17971 | ld_shlibs_GCJ=no |
17972 | ;; |
17973 | esac |
17974 | fi |
17975 | |
17976 | { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 |
17977 | echo "${ECHO_T}$ld_shlibs_GCJ" >&6; } |
17978 | test "$ld_shlibs_GCJ" = no && can_build_shared=no |
17979 | |
17980 | # |
17981 | # Do we need to explicitly link libc? |
17982 | # |
17983 | case "x$archive_cmds_need_lc_GCJ" in |
17984 | x|xyes) |
17985 | # Assume -lc should be added |
17986 | archive_cmds_need_lc_GCJ=yes |
17987 | |
17988 | if test "$enable_shared" = yes && test "$GCC" = yes; then |
17989 | case $archive_cmds_GCJ in |
17990 | *'~'*) |
17991 | # FIXME: we may have to deal with multi-command sequences. |
17992 | ;; |
17993 | '$CC '*) |
17994 | # Test whether the compiler implicitly links with -lc since on some |
17995 | # systems, -lgcc has to come before -lc. If gcc already passes -lc |
17996 | # to ld, don't add -lc before -lgcc. |
17997 | { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 |
17998 | echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; } |
17999 | $rm conftest* |
18000 | printf "$lt_simple_compile_test_code" > conftest.$ac_ext |
18001 | |
18002 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
18003 | (eval $ac_compile) 2>&5 |
18004 | ac_status=$? |
18005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18006 | (exit $ac_status); } 2>conftest.err; then |
18007 | soname=conftest |
18008 | lib=conftest |
18009 | libobjs=conftest.$ac_objext |
18010 | deplibs= |
18011 | wl=$lt_prog_compiler_wl_GCJ |
18012 | pic_flag=$lt_prog_compiler_pic_GCJ |
18013 | compiler_flags=-v |
18014 | linker_flags=-v |
18015 | verstring= |
18016 | output_objdir=. |
18017 | libname=conftest |
18018 | lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ |
18019 | allow_undefined_flag_GCJ= |
18020 | if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 |
18021 | (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 |
18022 | ac_status=$? |
18023 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
18024 | (exit $ac_status); } |
18025 | then |
18026 | archive_cmds_need_lc_GCJ=no |
18027 | else |
18028 | archive_cmds_need_lc_GCJ=yes |
18029 | fi |
18030 | allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag |
18031 | else |
18032 | cat conftest.err 1>&5 |
18033 | fi |
18034 | $rm conftest* |
18035 | { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 |
18036 | echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; } |
18037 | ;; |
18038 | esac |
18039 | fi |
18040 | ;; |
18041 | esac |
18042 | |
18043 | { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 |
18044 | echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; } |
18045 | library_names_spec= |
18046 | libname_spec='lib$name' |
18047 | soname_spec= |
18048 | shrext_cmds=".so" |
18049 | postinstall_cmds= |
18050 | postuninstall_cmds= |
18051 | finish_cmds= |
18052 | finish_eval= |
18053 | shlibpath_var= |
18054 | shlibpath_overrides_runpath=unknown |
18055 | version_type=none |
18056 | dynamic_linker="$host_os ld.so" |
18057 | sys_lib_dlsearch_path_spec="/lib /usr/lib" |
18058 | if test "$GCC" = yes; then |
18059 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
18060 | if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then |
18061 | # if the path contains ";" then we assume it to be the separator |
18062 | # otherwise default to the standard path separator (i.e. ":") - it is |
18063 | # assumed that no part of a normal pathname contains ";" but that should |
18064 | # okay in the real world where ";" in dirpaths is itself problematic. |
18065 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
18066 | else |
18067 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
18068 | fi |
18069 | else |
18070 | sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" |
18071 | fi |
18072 | need_lib_prefix=unknown |
18073 | hardcode_into_libs=no |
18074 | |
18075 | # when you set need_version to no, make sure it does not cause -set_version |
18076 | # flags to be left without arguments |
18077 | need_version=unknown |
18078 | |
18079 | case $host_os in |
18080 | aix3*) |
18081 | version_type=linux |
18082 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' |
18083 | shlibpath_var=LIBPATH |
18084 | |
18085 | # AIX 3 has no versioning support, so we append a major version to the name. |
18086 | soname_spec='${libname}${release}${shared_ext}$major' |
18087 | ;; |
18088 | |
18089 | aix4* | aix5*) |
18090 | version_type=linux |
18091 | need_lib_prefix=no |
18092 | need_version=no |
18093 | hardcode_into_libs=yes |
18094 | if test "$host_cpu" = ia64; then |
18095 | # AIX 5 supports IA64 |
18096 | library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' |
18097 | shlibpath_var=LD_LIBRARY_PATH |
18098 | else |
18099 | # With GCC up to 2.95.x, collect2 would create an import file |
18100 | # for dependence libraries. The import file would start with |
18101 | # the line `#! .'. This would cause the generated library to |
18102 | # depend on `.', always an invalid library. This was fixed in |
18103 | # development snapshots of GCC prior to 3.0. |
18104 | case $host_os in |
18105 | aix4 | aix4.[01] | aix4.[01].*) |
18106 | if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' |
18107 | echo ' yes ' |
18108 | echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then |
18109 | : |
18110 | else |
18111 | can_build_shared=no |
18112 | fi |
18113 | ;; |
18114 | esac |
18115 | # AIX (on Power*) has no versioning support, so currently we can not hardcode correct |
18116 | # soname into executable. Probably we can add versioning support to |
18117 | # collect2, so additional links can be useful in future. |
18118 | if test "$aix_use_runtimelinking" = yes; then |
18119 | # If using run time linking (on AIX 4.2 or later) use lib<name>.so |
18120 | # instead of lib<name>.a to let people know that these are not |
18121 | # typical AIX shared libraries. |
18122 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18123 | else |
18124 | # We preserve .a as extension for shared libraries through AIX4.2 |
18125 | # and later when we are not doing run time linking. |
18126 | library_names_spec='${libname}${release}.a $libname.a' |
18127 | soname_spec='${libname}${release}${shared_ext}$major' |
18128 | fi |
18129 | shlibpath_var=LIBPATH |
18130 | fi |
18131 | ;; |
18132 | |
18133 | amigaos*) |
18134 | library_names_spec='$libname.ixlibrary $libname.a' |
18135 | # Create ${libname}_ixlibrary.a entries in /sys/libs. |
18136 | 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' |
18137 | ;; |
18138 | |
18139 | beos*) |
18140 | library_names_spec='${libname}${shared_ext}' |
18141 | dynamic_linker="$host_os ld.so" |
18142 | shlibpath_var=LIBRARY_PATH |
18143 | ;; |
18144 | |
18145 | bsdi[45]*) |
18146 | version_type=linux |
18147 | need_version=no |
18148 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18149 | soname_spec='${libname}${release}${shared_ext}$major' |
18150 | finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' |
18151 | shlibpath_var=LD_LIBRARY_PATH |
18152 | sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" |
18153 | sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" |
18154 | # the default ld.so.conf also contains /usr/contrib/lib and |
18155 | # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow |
18156 | # libtool to hard-code these into programs |
18157 | ;; |
18158 | |
18159 | cygwin* | mingw* | pw32*) |
18160 | version_type=windows |
18161 | shrext_cmds=".dll" |
18162 | need_version=no |
18163 | need_lib_prefix=no |
18164 | |
18165 | case $GCC,$host_os in |
18166 | yes,cygwin* | yes,mingw* | yes,pw32*) |
18167 | library_names_spec='$libname.dll.a' |
18168 | # DLL is installed to $(libdir)/../bin by postinstall_cmds |
18169 | postinstall_cmds='base_file=`basename \${file}`~ |
18170 | dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ |
18171 | dldir=$destdir/`dirname \$dlpath`~ |
18172 | test -d \$dldir || mkdir -p \$dldir~ |
18173 | $install_prog $dir/$dlname \$dldir/$dlname~ |
18174 | chmod a+x \$dldir/$dlname' |
18175 | postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ |
18176 | dlpath=$dir/\$dldll~ |
18177 | $rm \$dlpath' |
18178 | shlibpath_overrides_runpath=yes |
18179 | |
18180 | case $host_os in |
18181 | cygwin*) |
18182 | # Cygwin DLLs use 'cyg' prefix rather than 'lib' |
18183 | soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18184 | sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" |
18185 | ;; |
18186 | mingw*) |
18187 | # MinGW DLLs use traditional 'lib' prefix |
18188 | soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18189 | sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` |
18190 | if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then |
18191 | # It is most probably a Windows format PATH printed by |
18192 | # mingw gcc, but we are running on Cygwin. Gcc prints its search |
18193 | # path with ; separators, and with drive letters. We can handle the |
18194 | # drive letters (cygwin fileutils understands them), so leave them, |
18195 | # especially as we might pass files found there to a mingw objdump, |
18196 | # which wouldn't understand a cygwinified path. Ahh. |
18197 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` |
18198 | else |
18199 | sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` |
18200 | fi |
18201 | ;; |
18202 | pw32*) |
18203 | # pw32 DLLs use 'pw' prefix rather than 'lib' |
18204 | library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' |
18205 | ;; |
18206 | esac |
18207 | ;; |
18208 | |
18209 | *) |
18210 | library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' |
18211 | ;; |
18212 | esac |
18213 | dynamic_linker='Win32 ld.exe' |
18214 | # FIXME: first we should search . and the directory the executable is in |
18215 | shlibpath_var=PATH |
18216 | ;; |
18217 | |
18218 | darwin* | rhapsody*) |
18219 | dynamic_linker="$host_os dyld" |
18220 | version_type=darwin |
18221 | need_lib_prefix=no |
18222 | need_version=no |
18223 | library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' |
18224 | soname_spec='${libname}${release}${major}$shared_ext' |
18225 | shlibpath_overrides_runpath=yes |
18226 | shlibpath_var=DYLD_LIBRARY_PATH |
18227 | shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' |
18228 | # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. |
18229 | if test "$GCC" = yes; then |
18230 | 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"` |
18231 | else |
18232 | sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' |
18233 | fi |
18234 | sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' |
18235 | ;; |
18236 | |
18237 | dgux*) |
18238 | version_type=linux |
18239 | need_lib_prefix=no |
18240 | need_version=no |
18241 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' |
18242 | soname_spec='${libname}${release}${shared_ext}$major' |
18243 | shlibpath_var=LD_LIBRARY_PATH |
18244 | ;; |
18245 | |
18246 | freebsd1*) |
18247 | dynamic_linker=no |
18248 | ;; |
18249 | |
18250 | freebsd* | dragonfly*) |
18251 | # DragonFly does not have aout. When/if they implement a new |
18252 | # versioning mechanism, adjust this. |
18253 | if test -x /usr/bin/objformat; then |
18254 | objformat=`/usr/bin/objformat` |
18255 | else |
18256 | case $host_os in |
18257 | freebsd[123]*) objformat=aout ;; |
18258 | *) objformat=elf ;; |
18259 | esac |
18260 | fi |
18261 | version_type=freebsd-$objformat |
18262 | case $version_type in |
18263 | freebsd-elf*) |
18264 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18265 | need_version=no |
18266 | need_lib_prefix=no |
18267 | ;; |
18268 | freebsd-*) |
18269 | library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' |
18270 | need_version=yes |
18271 | ;; |
18272 | esac |
18273 | shlibpath_var=LD_LIBRARY_PATH |
18274 | case $host_os in |
18275 | freebsd2*) |
18276 | shlibpath_overrides_runpath=yes |
18277 | ;; |
18278 | freebsd3.[01]* | freebsdelf3.[01]*) |
18279 | shlibpath_overrides_runpath=yes |
18280 | hardcode_into_libs=yes |
18281 | ;; |
18282 | freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ |
18283 | freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) |
18284 | shlibpath_overrides_runpath=no |
18285 | hardcode_into_libs=yes |
18286 | ;; |
18287 | freebsd*) # from 4.6 on |
18288 | shlibpath_overrides_runpath=yes |
18289 | hardcode_into_libs=yes |
18290 | ;; |
18291 | esac |
18292 | ;; |
18293 | |
18294 | gnu*) |
18295 | version_type=linux |
18296 | need_lib_prefix=no |
18297 | need_version=no |
18298 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' |
18299 | soname_spec='${libname}${release}${shared_ext}$major' |
18300 | shlibpath_var=LD_LIBRARY_PATH |
18301 | hardcode_into_libs=yes |
18302 | ;; |
18303 | |
18304 | hpux9* | hpux10* | hpux11*) |
18305 | # Give a soname corresponding to the major version so that dld.sl refuses to |
18306 | # link against other versions. |
18307 | version_type=sunos |
18308 | need_lib_prefix=no |
18309 | need_version=no |
18310 | case $host_cpu in |
18311 | ia64*) |
18312 | shrext_cmds='.so' |
18313 | hardcode_into_libs=yes |
18314 | dynamic_linker="$host_os dld.so" |
18315 | shlibpath_var=LD_LIBRARY_PATH |
18316 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18317 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18318 | soname_spec='${libname}${release}${shared_ext}$major' |
18319 | if test "X$HPUX_IA64_MODE" = X32; then |
18320 | sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" |
18321 | else |
18322 | sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" |
18323 | fi |
18324 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18325 | ;; |
18326 | hppa*64*) |
18327 | shrext_cmds='.sl' |
18328 | hardcode_into_libs=yes |
18329 | dynamic_linker="$host_os dld.sl" |
18330 | shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH |
18331 | shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. |
18332 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18333 | soname_spec='${libname}${release}${shared_ext}$major' |
18334 | sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" |
18335 | sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec |
18336 | ;; |
18337 | *) |
18338 | shrext_cmds='.sl' |
18339 | dynamic_linker="$host_os dld.sl" |
18340 | shlibpath_var=SHLIB_PATH |
18341 | shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH |
18342 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18343 | soname_spec='${libname}${release}${shared_ext}$major' |
18344 | ;; |
18345 | esac |
18346 | # HP-UX runs *really* slowly unless shared libraries are mode 555. |
18347 | postinstall_cmds='chmod 555 $lib' |
18348 | ;; |
18349 | |
18350 | interix3*) |
18351 | version_type=linux |
18352 | need_lib_prefix=no |
18353 | need_version=no |
18354 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18355 | soname_spec='${libname}${release}${shared_ext}$major' |
18356 | dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' |
18357 | shlibpath_var=LD_LIBRARY_PATH |
18358 | shlibpath_overrides_runpath=no |
18359 | hardcode_into_libs=yes |
18360 | ;; |
18361 | |
18362 | irix5* | irix6* | nonstopux*) |
18363 | case $host_os in |
18364 | nonstopux*) version_type=nonstopux ;; |
18365 | *) |
18366 | if test "$lt_cv_prog_gnu_ld" = yes; then |
18367 | version_type=linux |
18368 | else |
18369 | version_type=irix |
18370 | fi ;; |
18371 | esac |
18372 | need_lib_prefix=no |
18373 | need_version=no |
18374 | soname_spec='${libname}${release}${shared_ext}$major' |
18375 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' |
18376 | case $host_os in |
18377 | irix5* | nonstopux*) |
18378 | libsuff= shlibsuff= |
18379 | ;; |
18380 | *) |
18381 | case $LD in # libtool.m4 will add one of these switches to LD |
18382 | *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") |
18383 | libsuff= shlibsuff= libmagic=32-bit;; |
18384 | *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") |
18385 | libsuff=32 shlibsuff=N32 libmagic=N32;; |
18386 | *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") |
18387 | libsuff=64 shlibsuff=64 libmagic=64-bit;; |
18388 | *) libsuff= shlibsuff= libmagic=never-match;; |
18389 | esac |
18390 | ;; |
18391 | esac |
18392 | shlibpath_var=LD_LIBRARY${shlibsuff}_PATH |
18393 | shlibpath_overrides_runpath=no |
18394 | sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" |
18395 | sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" |
18396 | hardcode_into_libs=yes |
18397 | ;; |
18398 | |
18399 | # No shared lib support for Linux oldld, aout, or coff. |
18400 | linux*oldld* | linux*aout* | linux*coff*) |
18401 | dynamic_linker=no |
18402 | ;; |
18403 | |
18404 | # This must be Linux ELF. |
18405 | linux* | k*bsd*-gnu) |
18406 | version_type=linux |
18407 | need_lib_prefix=no |
18408 | need_version=no |
18409 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18410 | soname_spec='${libname}${release}${shared_ext}$major' |
18411 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' |
18412 | shlibpath_var=LD_LIBRARY_PATH |
18413 | shlibpath_overrides_runpath=no |
18414 | # This implies no fast_install, which is unacceptable. |
18415 | # Some rework will be needed to allow for fast_install |
18416 | # before this can be enabled. |
18417 | hardcode_into_libs=yes |
18418 | |
18419 | # Append ld.so.conf contents to the search path |
18420 | if test -f /etc/ld.so.conf; then |
18421 | 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' ' '` |
18422 | sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" |
18423 | fi |
18424 | |
18425 | # We used to test for /lib/ld.so.1 and disable shared libraries on |
18426 | # powerpc, because MkLinux only supported shared libraries with the |
18427 | # GNU dynamic linker. Since this was broken with cross compilers, |
18428 | # most powerpc-linux boxes support dynamic linking these days and |
18429 | # people can always --disable-shared, the test was removed, and we |
18430 | # assume the GNU/Linux dynamic linker is in use. |
18431 | dynamic_linker='GNU/Linux ld.so' |
18432 | ;; |
18433 | |
18434 | netbsdelf*-gnu) |
18435 | version_type=linux |
18436 | need_lib_prefix=no |
18437 | need_version=no |
18438 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18439 | soname_spec='${libname}${release}${shared_ext}$major' |
18440 | shlibpath_var=LD_LIBRARY_PATH |
18441 | shlibpath_overrides_runpath=no |
18442 | hardcode_into_libs=yes |
18443 | dynamic_linker='NetBSD ld.elf_so' |
18444 | ;; |
18445 | |
18446 | netbsd*) |
18447 | version_type=sunos |
18448 | need_lib_prefix=no |
18449 | need_version=no |
18450 | if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then |
18451 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18452 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18453 | dynamic_linker='NetBSD (a.out) ld.so' |
18454 | else |
18455 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' |
18456 | soname_spec='${libname}${release}${shared_ext}$major' |
18457 | dynamic_linker='NetBSD ld.elf_so' |
18458 | fi |
18459 | shlibpath_var=LD_LIBRARY_PATH |
18460 | shlibpath_overrides_runpath=yes |
18461 | hardcode_into_libs=yes |
18462 | ;; |
18463 | |
18464 | newsos6) |
18465 | version_type=linux |
18466 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18467 | shlibpath_var=LD_LIBRARY_PATH |
18468 | shlibpath_overrides_runpath=yes |
18469 | ;; |
18470 | |
18471 | nto-qnx*) |
18472 | version_type=linux |
18473 | need_lib_prefix=no |
18474 | need_version=no |
18475 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18476 | soname_spec='${libname}${release}${shared_ext}$major' |
18477 | shlibpath_var=LD_LIBRARY_PATH |
18478 | shlibpath_overrides_runpath=yes |
18479 | ;; |
18480 | |
18481 | openbsd*) |
18482 | version_type=sunos |
18483 | sys_lib_dlsearch_path_spec="/usr/lib" |
18484 | need_lib_prefix=no |
18485 | # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. |
18486 | case $host_os in |
18487 | openbsd3.3 | openbsd3.3.*) need_version=yes ;; |
18488 | *) need_version=no ;; |
18489 | esac |
18490 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18491 | finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' |
18492 | shlibpath_var=LD_LIBRARY_PATH |
18493 | if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then |
18494 | case $host_os in |
18495 | openbsd2.[89] | openbsd2.[89].*) |
18496 | shlibpath_overrides_runpath=no |
18497 | ;; |
18498 | *) |
18499 | shlibpath_overrides_runpath=yes |
18500 | ;; |
18501 | esac |
18502 | else |
18503 | shlibpath_overrides_runpath=yes |
18504 | fi |
18505 | ;; |
18506 | |
18507 | os2*) |
18508 | libname_spec='$name' |
18509 | shrext_cmds=".dll" |
18510 | need_lib_prefix=no |
18511 | library_names_spec='$libname${shared_ext} $libname.a' |
18512 | dynamic_linker='OS/2 ld.exe' |
18513 | shlibpath_var=LIBPATH |
18514 | ;; |
18515 | |
18516 | osf3* | osf4* | osf5*) |
18517 | version_type=osf |
18518 | need_lib_prefix=no |
18519 | need_version=no |
18520 | soname_spec='${libname}${release}${shared_ext}$major' |
18521 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18522 | shlibpath_var=LD_LIBRARY_PATH |
18523 | sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" |
18524 | sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" |
18525 | ;; |
18526 | |
18527 | solaris*) |
18528 | version_type=linux |
18529 | need_lib_prefix=no |
18530 | need_version=no |
18531 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18532 | soname_spec='${libname}${release}${shared_ext}$major' |
18533 | shlibpath_var=LD_LIBRARY_PATH |
18534 | shlibpath_overrides_runpath=yes |
18535 | hardcode_into_libs=yes |
18536 | # ldd complains unless libraries are executable |
18537 | postinstall_cmds='chmod +x $lib' |
18538 | ;; |
18539 | |
18540 | sunos4*) |
18541 | version_type=sunos |
18542 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' |
18543 | finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' |
18544 | shlibpath_var=LD_LIBRARY_PATH |
18545 | shlibpath_overrides_runpath=yes |
18546 | if test "$with_gnu_ld" = yes; then |
18547 | need_lib_prefix=no |
18548 | fi |
18549 | need_version=yes |
18550 | ;; |
18551 | |
18552 | sysv4 | sysv4.3*) |
18553 | version_type=linux |
18554 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18555 | soname_spec='${libname}${release}${shared_ext}$major' |
18556 | shlibpath_var=LD_LIBRARY_PATH |
18557 | case $host_vendor in |
18558 | sni) |
18559 | shlibpath_overrides_runpath=no |
18560 | need_lib_prefix=no |
18561 | export_dynamic_flag_spec='${wl}-Blargedynsym' |
18562 | runpath_var=LD_RUN_PATH |
18563 | ;; |
18564 | siemens) |
18565 | need_lib_prefix=no |
18566 | ;; |
18567 | motorola) |
18568 | need_lib_prefix=no |
18569 | need_version=no |
18570 | shlibpath_overrides_runpath=no |
18571 | sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' |
18572 | ;; |
18573 | esac |
18574 | ;; |
18575 | |
18576 | sysv4*MP*) |
18577 | if test -d /usr/nec ;then |
18578 | version_type=linux |
18579 | library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' |
18580 | soname_spec='$libname${shared_ext}.$major' |
18581 | shlibpath_var=LD_LIBRARY_PATH |
18582 | fi |
18583 | ;; |
18584 | |
18585 | sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) |
18586 | version_type=freebsd-elf |
18587 | need_lib_prefix=no |
18588 | need_version=no |
18589 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' |
18590 | soname_spec='${libname}${release}${shared_ext}$major' |
18591 | shlibpath_var=LD_LIBRARY_PATH |
18592 | hardcode_into_libs=yes |
18593 | if test "$with_gnu_ld" = yes; then |
18594 | sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' |
18595 | shlibpath_overrides_runpath=no |
18596 | else |
18597 | sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' |
18598 | shlibpath_overrides_runpath=yes |
18599 | case $host_os in |
18600 | sco3.2v5*) |
18601 | sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" |
18602 | ;; |
18603 | esac |
18604 | fi |
18605 | sys_lib_dlsearch_path_spec='/usr/lib' |
18606 | ;; |
18607 | |
18608 | uts4*) |
18609 | version_type=linux |
18610 | library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' |
18611 | soname_spec='${libname}${release}${shared_ext}$major' |
18612 | shlibpath_var=LD_LIBRARY_PATH |
18613 | ;; |
18614 | |
18615 | *) |
18616 | dynamic_linker=no |
18617 | ;; |
18618 | esac |
18619 | { echo "$as_me:$LINENO: result: $dynamic_linker" >&5 |
18620 | echo "${ECHO_T}$dynamic_linker" >&6; } |
18621 | test "$dynamic_linker" = no && can_build_shared=no |
18622 | |
18623 | variables_saved_for_relink="PATH $shlibpath_var $runpath_var" |
18624 | if test "$GCC" = yes; then |
18625 | variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" |
18626 | fi |
18627 | |
18628 | { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 |
18629 | echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; } |
18630 | hardcode_action_GCJ= |
18631 | if test -n "$hardcode_libdir_flag_spec_GCJ" || \ |
18632 | test -n "$runpath_var_GCJ" || \ |
18633 | test "X$hardcode_automatic_GCJ" = "Xyes" ; then |
18634 | |
18635 | # We can hardcode non-existant directories. |
18636 | if test "$hardcode_direct_GCJ" != no && |
18637 | # If the only mechanism to avoid hardcoding is shlibpath_var, we |
18638 | # have to relink, otherwise we might link with an installed library |
18639 | # when we should be linking with a yet-to-be-installed one |
18640 | ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && |
18641 | test "$hardcode_minus_L_GCJ" != no; then |
18642 | # Linking always hardcodes the temporary library directory. |
18643 | hardcode_action_GCJ=relink |
18644 | else |
18645 | # We can link without hardcoding, and we can hardcode nonexisting dirs. |
18646 | hardcode_action_GCJ=immediate |
18647 | fi |
18648 | else |
18649 | # We cannot hardcode anything, or else we can only hardcode existing |
18650 | # directories. |
18651 | hardcode_action_GCJ=unsupported |
18652 | fi |
18653 | { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 |
18654 | echo "${ECHO_T}$hardcode_action_GCJ" >&6; } |
18655 | |
18656 | if test "$hardcode_action_GCJ" = relink; then |
18657 | # Fast installation is not supported |
18658 | enable_fast_install=no |
18659 | elif test "$shlibpath_overrides_runpath" = yes || |
18660 | test "$enable_shared" = no; then |
18661 | # Fast installation is not necessary |
18662 | enable_fast_install=needless |
18663 | fi |
18664 | |
18665 | |
18666 | # The else clause should only fire when bootstrapping the |
18667 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
18668 | # with your package, and you will get complaints that there are |
18669 | # no rules to generate ltmain.sh. |
18670 | if test -f "$ltmain"; then |
18671 | # See if we are running on zsh, and set the options which allow our commands through |
18672 | # without removal of \ escapes. |
18673 | if test -n "${ZSH_VERSION+set}" ; then |
18674 | setopt NO_GLOB_SUBST |
18675 | fi |
18676 | # Now quote all the things that may contain metacharacters while being |
18677 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
18678 | # variables and quote the copies for generation of the libtool script. |
18679 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
18680 | SED SHELL STRIP \ |
18681 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
18682 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
18683 | deplibs_check_method reload_flag reload_cmds need_locks \ |
18684 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
18685 | lt_cv_sys_global_symbol_to_c_name_address \ |
18686 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
18687 | old_postinstall_cmds old_postuninstall_cmds \ |
18688 | compiler_GCJ \ |
18689 | CC_GCJ \ |
18690 | LD_GCJ \ |
18691 | lt_prog_compiler_wl_GCJ \ |
18692 | lt_prog_compiler_pic_GCJ \ |
18693 | lt_prog_compiler_static_GCJ \ |
18694 | lt_prog_compiler_no_builtin_flag_GCJ \ |
18695 | export_dynamic_flag_spec_GCJ \ |
18696 | thread_safe_flag_spec_GCJ \ |
18697 | whole_archive_flag_spec_GCJ \ |
18698 | enable_shared_with_static_runtimes_GCJ \ |
18699 | old_archive_cmds_GCJ \ |
18700 | old_archive_from_new_cmds_GCJ \ |
18701 | predep_objects_GCJ \ |
18702 | postdep_objects_GCJ \ |
18703 | predeps_GCJ \ |
18704 | postdeps_GCJ \ |
18705 | compiler_lib_search_path_GCJ \ |
18706 | archive_cmds_GCJ \ |
18707 | archive_expsym_cmds_GCJ \ |
18708 | postinstall_cmds_GCJ \ |
18709 | postuninstall_cmds_GCJ \ |
18710 | old_archive_from_expsyms_cmds_GCJ \ |
18711 | allow_undefined_flag_GCJ \ |
18712 | no_undefined_flag_GCJ \ |
18713 | export_symbols_cmds_GCJ \ |
18714 | hardcode_libdir_flag_spec_GCJ \ |
18715 | hardcode_libdir_flag_spec_ld_GCJ \ |
18716 | hardcode_libdir_separator_GCJ \ |
18717 | hardcode_automatic_GCJ \ |
18718 | module_cmds_GCJ \ |
18719 | module_expsym_cmds_GCJ \ |
18720 | lt_cv_prog_compiler_c_o_GCJ \ |
18721 | exclude_expsyms_GCJ \ |
18722 | include_expsyms_GCJ; do |
18723 | |
18724 | case $var in |
18725 | old_archive_cmds_GCJ | \ |
18726 | old_archive_from_new_cmds_GCJ | \ |
18727 | archive_cmds_GCJ | \ |
18728 | archive_expsym_cmds_GCJ | \ |
18729 | module_cmds_GCJ | \ |
18730 | module_expsym_cmds_GCJ | \ |
18731 | old_archive_from_expsyms_cmds_GCJ | \ |
18732 | export_symbols_cmds_GCJ | \ |
18733 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
18734 | postinstall_cmds | postuninstall_cmds | \ |
18735 | old_postinstall_cmds | old_postuninstall_cmds | \ |
18736 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
18737 | # Double-quote double-evaled strings. |
18738 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
18739 | ;; |
18740 | *) |
18741 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
18742 | ;; |
18743 | esac |
18744 | done |
18745 | |
18746 | case $lt_echo in |
18747 | *'\$0 --fallback-echo"') |
18748 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
18749 | ;; |
18750 | esac |
18751 | |
18752 | cfgfile="$ofile" |
18753 | |
18754 | cat <<__EOF__ >> "$cfgfile" |
18755 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
18756 | |
18757 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
18758 | |
18759 | # Shell to use when invoking shell scripts. |
18760 | SHELL=$lt_SHELL |
18761 | |
18762 | # Whether or not to build shared libraries. |
18763 | build_libtool_libs=$enable_shared |
18764 | |
18765 | # Whether or not to build static libraries. |
18766 | build_old_libs=$enable_static |
18767 | |
18768 | # Whether or not to add -lc for building shared libraries. |
18769 | build_libtool_need_lc=$archive_cmds_need_lc_GCJ |
18770 | |
18771 | # Whether or not to disallow shared libs when runtime libs are static |
18772 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ |
18773 | |
18774 | # Whether or not to optimize for fast installation. |
18775 | fast_install=$enable_fast_install |
18776 | |
18777 | # The host system. |
18778 | host_alias=$host_alias |
18779 | host=$host |
18780 | host_os=$host_os |
18781 | |
18782 | # The build system. |
18783 | build_alias=$build_alias |
18784 | build=$build |
18785 | build_os=$build_os |
18786 | |
18787 | # An echo program that does not interpret backslashes. |
18788 | echo=$lt_echo |
18789 | |
18790 | # The archiver. |
18791 | AR=$lt_AR |
18792 | AR_FLAGS=$lt_AR_FLAGS |
18793 | |
18794 | # A C compiler. |
18795 | LTCC=$lt_LTCC |
18796 | |
18797 | # LTCC compiler flags. |
18798 | LTCFLAGS=$lt_LTCFLAGS |
18799 | |
18800 | # A language-specific compiler. |
18801 | CC=$lt_compiler_GCJ |
18802 | |
18803 | # Is the compiler the GNU C compiler? |
18804 | with_gcc=$GCC_GCJ |
18805 | |
18806 | # An ERE matcher. |
18807 | EGREP=$lt_EGREP |
18808 | |
18809 | # The linker used to build libraries. |
18810 | LD=$lt_LD_GCJ |
18811 | |
18812 | # Whether we need hard or soft links. |
18813 | LN_S=$lt_LN_S |
18814 | |
18815 | # A BSD-compatible nm program. |
18816 | NM=$lt_NM |
18817 | |
18818 | # A symbol stripping program |
18819 | STRIP=$lt_STRIP |
18820 | |
18821 | # Used to examine libraries when file_magic_cmd begins "file" |
18822 | MAGIC_CMD=$MAGIC_CMD |
18823 | |
18824 | # Used on cygwin: DLL creation program. |
18825 | DLLTOOL="$DLLTOOL" |
18826 | |
18827 | # Used on cygwin: object dumper. |
18828 | OBJDUMP="$OBJDUMP" |
18829 | |
18830 | # Used on cygwin: assembler. |
18831 | AS="$AS" |
18832 | |
18833 | # The name of the directory that contains temporary libtool files. |
18834 | objdir=$objdir |
18835 | |
18836 | # How to create reloadable object files. |
18837 | reload_flag=$lt_reload_flag |
18838 | reload_cmds=$lt_reload_cmds |
18839 | |
18840 | # How to pass a linker flag through the compiler. |
18841 | wl=$lt_lt_prog_compiler_wl_GCJ |
18842 | |
18843 | # Object file suffix (normally "o"). |
18844 | objext="$ac_objext" |
18845 | |
18846 | # Old archive suffix (normally "a"). |
18847 | libext="$libext" |
18848 | |
18849 | # Shared library suffix (normally ".so"). |
18850 | shrext_cmds='$shrext_cmds' |
18851 | |
18852 | # Executable file suffix (normally ""). |
18853 | exeext="$exeext" |
18854 | |
18855 | # Additional compiler flags for building library objects. |
18856 | pic_flag=$lt_lt_prog_compiler_pic_GCJ |
18857 | pic_mode=$pic_mode |
18858 | |
18859 | # What is the maximum length of a command? |
18860 | max_cmd_len=$lt_cv_sys_max_cmd_len |
18861 | |
18862 | # Does compiler simultaneously support -c and -o options? |
18863 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ |
18864 | |
18865 | # Must we lock files when doing compilation? |
18866 | need_locks=$lt_need_locks |
18867 | |
18868 | # Do we need the lib prefix for modules? |
18869 | need_lib_prefix=$need_lib_prefix |
18870 | |
18871 | # Do we need a version for libraries? |
18872 | need_version=$need_version |
18873 | |
18874 | # Whether dlopen is supported. |
18875 | dlopen_support=$enable_dlopen |
18876 | |
18877 | # Whether dlopen of programs is supported. |
18878 | dlopen_self=$enable_dlopen_self |
18879 | |
18880 | # Whether dlopen of statically linked programs is supported. |
18881 | dlopen_self_static=$enable_dlopen_self_static |
18882 | |
18883 | # Compiler flag to prevent dynamic linking. |
18884 | link_static_flag=$lt_lt_prog_compiler_static_GCJ |
18885 | |
18886 | # Compiler flag to turn off builtin functions. |
18887 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ |
18888 | |
18889 | # Compiler flag to allow reflexive dlopens. |
18890 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ |
18891 | |
18892 | # Compiler flag to generate shared objects directly from archives. |
18893 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ |
18894 | |
18895 | # Compiler flag to generate thread-safe objects. |
18896 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ |
18897 | |
18898 | # Library versioning type. |
18899 | version_type=$version_type |
18900 | |
18901 | # Format of library name prefix. |
18902 | libname_spec=$lt_libname_spec |
18903 | |
18904 | # List of archive names. First name is the real one, the rest are links. |
18905 | # The last name is the one that the linker finds with -lNAME. |
18906 | library_names_spec=$lt_library_names_spec |
18907 | |
18908 | # The coded name of the library, if different from the real name. |
18909 | soname_spec=$lt_soname_spec |
18910 | |
18911 | # Commands used to build and install an old-style archive. |
18912 | RANLIB=$lt_RANLIB |
18913 | old_archive_cmds=$lt_old_archive_cmds_GCJ |
18914 | old_postinstall_cmds=$lt_old_postinstall_cmds |
18915 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
18916 | |
18917 | # Create an old-style archive from a shared archive. |
18918 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ |
18919 | |
18920 | # Create a temporary old-style archive to link instead of a shared archive. |
18921 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ |
18922 | |
18923 | # Commands used to build and install a shared archive. |
18924 | archive_cmds=$lt_archive_cmds_GCJ |
18925 | archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ |
18926 | postinstall_cmds=$lt_postinstall_cmds |
18927 | postuninstall_cmds=$lt_postuninstall_cmds |
18928 | |
18929 | # Commands used to build a loadable module (assumed same as above if empty) |
18930 | module_cmds=$lt_module_cmds_GCJ |
18931 | module_expsym_cmds=$lt_module_expsym_cmds_GCJ |
18932 | |
18933 | # Commands to strip libraries. |
18934 | old_striplib=$lt_old_striplib |
18935 | striplib=$lt_striplib |
18936 | |
18937 | # Dependencies to place before the objects being linked to create a |
18938 | # shared library. |
18939 | predep_objects=$lt_predep_objects_GCJ |
18940 | |
18941 | # Dependencies to place after the objects being linked to create a |
18942 | # shared library. |
18943 | postdep_objects=$lt_postdep_objects_GCJ |
18944 | |
18945 | # Dependencies to place before the objects being linked to create a |
18946 | # shared library. |
18947 | predeps=$lt_predeps_GCJ |
18948 | |
18949 | # Dependencies to place after the objects being linked to create a |
18950 | # shared library. |
18951 | postdeps=$lt_postdeps_GCJ |
18952 | |
18953 | # The library search path used internally by the compiler when linking |
18954 | # a shared library. |
18955 | compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ |
18956 | |
18957 | # Method to check whether dependent libraries are shared objects. |
18958 | deplibs_check_method=$lt_deplibs_check_method |
18959 | |
18960 | # Command to use when deplibs_check_method == file_magic. |
18961 | file_magic_cmd=$lt_file_magic_cmd |
18962 | |
18963 | # Flag that allows shared libraries with undefined symbols to be built. |
18964 | allow_undefined_flag=$lt_allow_undefined_flag_GCJ |
18965 | |
18966 | # Flag that forces no undefined symbols. |
18967 | no_undefined_flag=$lt_no_undefined_flag_GCJ |
18968 | |
18969 | # Commands used to finish a libtool library installation in a directory. |
18970 | finish_cmds=$lt_finish_cmds |
18971 | |
18972 | # Same as above, but a single script fragment to be evaled but not shown. |
18973 | finish_eval=$lt_finish_eval |
18974 | |
18975 | # Take the output of nm and produce a listing of raw symbols and C names. |
18976 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
18977 | |
18978 | # Transform the output of nm in a proper C declaration |
18979 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
18980 | |
18981 | # Transform the output of nm in a C name address pair |
18982 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
18983 | |
18984 | # This is the shared library runtime path variable. |
18985 | runpath_var=$runpath_var |
18986 | |
18987 | # This is the shared library path variable. |
18988 | shlibpath_var=$shlibpath_var |
18989 | |
18990 | # Is shlibpath searched before the hard-coded library search path? |
18991 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
18992 | |
18993 | # How to hardcode a shared library path into an executable. |
18994 | hardcode_action=$hardcode_action_GCJ |
18995 | |
18996 | # Whether we should hardcode library paths into libraries. |
18997 | hardcode_into_libs=$hardcode_into_libs |
18998 | |
18999 | # Flag to hardcode \$libdir into a binary during linking. |
19000 | # This must work even if \$libdir does not exist. |
19001 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ |
19002 | |
19003 | # If ld is used when linking, flag to hardcode \$libdir into |
19004 | # a binary during linking. This must work even if \$libdir does |
19005 | # not exist. |
19006 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ |
19007 | |
19008 | # Whether we need a single -rpath flag with a separated argument. |
19009 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ |
19010 | |
19011 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19012 | # resulting binary. |
19013 | hardcode_direct=$hardcode_direct_GCJ |
19014 | |
19015 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19016 | # resulting binary. |
19017 | hardcode_minus_L=$hardcode_minus_L_GCJ |
19018 | |
19019 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19020 | # the resulting binary. |
19021 | hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ |
19022 | |
19023 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
19024 | # and all subsequent libraries and executables linked against it. |
19025 | hardcode_automatic=$hardcode_automatic_GCJ |
19026 | |
19027 | # Variables whose values should be saved in libtool wrapper scripts and |
19028 | # restored at relink time. |
19029 | variables_saved_for_relink="$variables_saved_for_relink" |
19030 | |
19031 | # Whether libtool must link a program against all its dependency libraries. |
19032 | link_all_deplibs=$link_all_deplibs_GCJ |
19033 | |
19034 | # Compile-time system search path for libraries |
19035 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
19036 | |
19037 | # Run-time system search path for libraries |
19038 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19039 | |
19040 | # Fix the shell variable \$srcfile for the compiler. |
19041 | fix_srcfile_path="$fix_srcfile_path_GCJ" |
19042 | |
19043 | # Set to yes if exported symbols are required. |
19044 | always_export_symbols=$always_export_symbols_GCJ |
19045 | |
19046 | # The commands to list exported symbols. |
19047 | export_symbols_cmds=$lt_export_symbols_cmds_GCJ |
19048 | |
19049 | # The commands to extract the exported symbol list from a shared archive. |
19050 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19051 | |
19052 | # Symbols that should not be listed in the preloaded symbols. |
19053 | exclude_expsyms=$lt_exclude_expsyms_GCJ |
19054 | |
19055 | # Symbols that must always be exported. |
19056 | include_expsyms=$lt_include_expsyms_GCJ |
19057 | |
19058 | # ### END LIBTOOL TAG CONFIG: $tagname |
19059 | |
19060 | __EOF__ |
19061 | |
19062 | |
19063 | else |
19064 | # If there is no Makefile yet, we rely on a make rule to execute |
19065 | # `config.status --recheck' to rerun these tests and create the |
19066 | # libtool script then. |
19067 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19068 | if test -f "$ltmain_in"; then |
19069 | test -f Makefile && make "$ltmain" |
19070 | fi |
19071 | fi |
19072 | |
19073 | |
19074 | ac_ext=c |
19075 | ac_cpp='$CPP $CPPFLAGS' |
19076 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19077 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19078 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19079 | |
19080 | CC="$lt_save_CC" |
19081 | |
19082 | else |
19083 | tagname="" |
19084 | fi |
19085 | ;; |
19086 | |
19087 | RC) |
19088 | |
19089 | |
19090 | # Source file extension for RC test sources. |
19091 | ac_ext=rc |
19092 | |
19093 | # Object file extension for compiled RC test sources. |
19094 | objext=o |
19095 | objext_RC=$objext |
19096 | |
19097 | # Code to be used in simple compile tests |
19098 | lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' |
19099 | |
19100 | # Code to be used in simple link tests |
19101 | lt_simple_link_test_code="$lt_simple_compile_test_code" |
19102 | |
19103 | # ltmain only uses $CC for tagged configurations so make sure $CC is set. |
19104 | |
19105 | # If no C compiler was specified, use CC. |
19106 | LTCC=${LTCC-"$CC"} |
19107 | |
19108 | # If no C compiler flags were specified, use CFLAGS. |
19109 | LTCFLAGS=${LTCFLAGS-"$CFLAGS"} |
19110 | |
19111 | # Allow CC to be a program name with arguments. |
19112 | compiler=$CC |
19113 | |
19114 | |
19115 | # save warnings/boilerplate of simple test code |
19116 | ac_outfile=conftest.$ac_objext |
19117 | printf "$lt_simple_compile_test_code" >conftest.$ac_ext |
19118 | eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
19119 | _lt_compiler_boilerplate=`cat conftest.err` |
19120 | $rm conftest* |
19121 | |
19122 | ac_outfile=conftest.$ac_objext |
19123 | printf "$lt_simple_link_test_code" >conftest.$ac_ext |
19124 | eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err |
19125 | _lt_linker_boilerplate=`cat conftest.err` |
19126 | $rm conftest* |
19127 | |
19128 | |
19129 | # Allow CC to be a program name with arguments. |
19130 | lt_save_CC="$CC" |
19131 | CC=${RC-"windres"} |
19132 | compiler=$CC |
19133 | compiler_RC=$CC |
19134 | for cc_temp in $compiler""; do |
19135 | case $cc_temp in |
19136 | compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; |
19137 | distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; |
19138 | \-*) ;; |
19139 | *) break;; |
19140 | esac |
19141 | done |
19142 | cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` |
19143 | |
19144 | lt_cv_prog_compiler_c_o_RC=yes |
19145 | |
19146 | # The else clause should only fire when bootstrapping the |
19147 | # libtool distribution, otherwise you forgot to ship ltmain.sh |
19148 | # with your package, and you will get complaints that there are |
19149 | # no rules to generate ltmain.sh. |
19150 | if test -f "$ltmain"; then |
19151 | # See if we are running on zsh, and set the options which allow our commands through |
19152 | # without removal of \ escapes. |
19153 | if test -n "${ZSH_VERSION+set}" ; then |
19154 | setopt NO_GLOB_SUBST |
19155 | fi |
19156 | # Now quote all the things that may contain metacharacters while being |
19157 | # careful not to overquote the AC_SUBSTed values. We take copies of the |
19158 | # variables and quote the copies for generation of the libtool script. |
19159 | for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \ |
19160 | SED SHELL STRIP \ |
19161 | libname_spec library_names_spec soname_spec extract_expsyms_cmds \ |
19162 | old_striplib striplib file_magic_cmd finish_cmds finish_eval \ |
19163 | deplibs_check_method reload_flag reload_cmds need_locks \ |
19164 | lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ |
19165 | lt_cv_sys_global_symbol_to_c_name_address \ |
19166 | sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ |
19167 | old_postinstall_cmds old_postuninstall_cmds \ |
19168 | compiler_RC \ |
19169 | CC_RC \ |
19170 | LD_RC \ |
19171 | lt_prog_compiler_wl_RC \ |
19172 | lt_prog_compiler_pic_RC \ |
19173 | lt_prog_compiler_static_RC \ |
19174 | lt_prog_compiler_no_builtin_flag_RC \ |
19175 | export_dynamic_flag_spec_RC \ |
19176 | thread_safe_flag_spec_RC \ |
19177 | whole_archive_flag_spec_RC \ |
19178 | enable_shared_with_static_runtimes_RC \ |
19179 | old_archive_cmds_RC \ |
19180 | old_archive_from_new_cmds_RC \ |
19181 | predep_objects_RC \ |
19182 | postdep_objects_RC \ |
19183 | predeps_RC \ |
19184 | postdeps_RC \ |
19185 | compiler_lib_search_path_RC \ |
19186 | archive_cmds_RC \ |
19187 | archive_expsym_cmds_RC \ |
19188 | postinstall_cmds_RC \ |
19189 | postuninstall_cmds_RC \ |
19190 | old_archive_from_expsyms_cmds_RC \ |
19191 | allow_undefined_flag_RC \ |
19192 | no_undefined_flag_RC \ |
19193 | export_symbols_cmds_RC \ |
19194 | hardcode_libdir_flag_spec_RC \ |
19195 | hardcode_libdir_flag_spec_ld_RC \ |
19196 | hardcode_libdir_separator_RC \ |
19197 | hardcode_automatic_RC \ |
19198 | module_cmds_RC \ |
19199 | module_expsym_cmds_RC \ |
19200 | lt_cv_prog_compiler_c_o_RC \ |
19201 | exclude_expsyms_RC \ |
19202 | include_expsyms_RC; do |
19203 | |
19204 | case $var in |
19205 | old_archive_cmds_RC | \ |
19206 | old_archive_from_new_cmds_RC | \ |
19207 | archive_cmds_RC | \ |
19208 | archive_expsym_cmds_RC | \ |
19209 | module_cmds_RC | \ |
19210 | module_expsym_cmds_RC | \ |
19211 | old_archive_from_expsyms_cmds_RC | \ |
19212 | export_symbols_cmds_RC | \ |
19213 | extract_expsyms_cmds | reload_cmds | finish_cmds | \ |
19214 | postinstall_cmds | postuninstall_cmds | \ |
19215 | old_postinstall_cmds | old_postuninstall_cmds | \ |
19216 | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) |
19217 | # Double-quote double-evaled strings. |
19218 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" |
19219 | ;; |
19220 | *) |
19221 | eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" |
19222 | ;; |
19223 | esac |
19224 | done |
19225 | |
19226 | case $lt_echo in |
19227 | *'\$0 --fallback-echo"') |
19228 | lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` |
19229 | ;; |
19230 | esac |
19231 | |
19232 | cfgfile="$ofile" |
19233 | |
19234 | cat <<__EOF__ >> "$cfgfile" |
19235 | # ### BEGIN LIBTOOL TAG CONFIG: $tagname |
19236 | |
19237 | # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: |
19238 | |
19239 | # Shell to use when invoking shell scripts. |
19240 | SHELL=$lt_SHELL |
19241 | |
19242 | # Whether or not to build shared libraries. |
19243 | build_libtool_libs=$enable_shared |
19244 | |
19245 | # Whether or not to build static libraries. |
19246 | build_old_libs=$enable_static |
19247 | |
19248 | # Whether or not to add -lc for building shared libraries. |
19249 | build_libtool_need_lc=$archive_cmds_need_lc_RC |
19250 | |
19251 | # Whether or not to disallow shared libs when runtime libs are static |
19252 | allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC |
19253 | |
19254 | # Whether or not to optimize for fast installation. |
19255 | fast_install=$enable_fast_install |
19256 | |
19257 | # The host system. |
19258 | host_alias=$host_alias |
19259 | host=$host |
19260 | host_os=$host_os |
19261 | |
19262 | # The build system. |
19263 | build_alias=$build_alias |
19264 | build=$build |
19265 | build_os=$build_os |
19266 | |
19267 | # An echo program that does not interpret backslashes. |
19268 | echo=$lt_echo |
19269 | |
19270 | # The archiver. |
19271 | AR=$lt_AR |
19272 | AR_FLAGS=$lt_AR_FLAGS |
19273 | |
19274 | # A C compiler. |
19275 | LTCC=$lt_LTCC |
19276 | |
19277 | # LTCC compiler flags. |
19278 | LTCFLAGS=$lt_LTCFLAGS |
19279 | |
19280 | # A language-specific compiler. |
19281 | CC=$lt_compiler_RC |
19282 | |
19283 | # Is the compiler the GNU C compiler? |
19284 | with_gcc=$GCC_RC |
19285 | |
19286 | # An ERE matcher. |
19287 | EGREP=$lt_EGREP |
19288 | |
19289 | # The linker used to build libraries. |
19290 | LD=$lt_LD_RC |
19291 | |
19292 | # Whether we need hard or soft links. |
19293 | LN_S=$lt_LN_S |
19294 | |
19295 | # A BSD-compatible nm program. |
19296 | NM=$lt_NM |
19297 | |
19298 | # A symbol stripping program |
19299 | STRIP=$lt_STRIP |
19300 | |
19301 | # Used to examine libraries when file_magic_cmd begins "file" |
19302 | MAGIC_CMD=$MAGIC_CMD |
19303 | |
19304 | # Used on cygwin: DLL creation program. |
19305 | DLLTOOL="$DLLTOOL" |
19306 | |
19307 | # Used on cygwin: object dumper. |
19308 | OBJDUMP="$OBJDUMP" |
19309 | |
19310 | # Used on cygwin: assembler. |
19311 | AS="$AS" |
19312 | |
19313 | # The name of the directory that contains temporary libtool files. |
19314 | objdir=$objdir |
19315 | |
19316 | # How to create reloadable object files. |
19317 | reload_flag=$lt_reload_flag |
19318 | reload_cmds=$lt_reload_cmds |
19319 | |
19320 | # How to pass a linker flag through the compiler. |
19321 | wl=$lt_lt_prog_compiler_wl_RC |
19322 | |
19323 | # Object file suffix (normally "o"). |
19324 | objext="$ac_objext" |
19325 | |
19326 | # Old archive suffix (normally "a"). |
19327 | libext="$libext" |
19328 | |
19329 | # Shared library suffix (normally ".so"). |
19330 | shrext_cmds='$shrext_cmds' |
19331 | |
19332 | # Executable file suffix (normally ""). |
19333 | exeext="$exeext" |
19334 | |
19335 | # Additional compiler flags for building library objects. |
19336 | pic_flag=$lt_lt_prog_compiler_pic_RC |
19337 | pic_mode=$pic_mode |
19338 | |
19339 | # What is the maximum length of a command? |
19340 | max_cmd_len=$lt_cv_sys_max_cmd_len |
19341 | |
19342 | # Does compiler simultaneously support -c and -o options? |
19343 | compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC |
19344 | |
19345 | # Must we lock files when doing compilation? |
19346 | need_locks=$lt_need_locks |
19347 | |
19348 | # Do we need the lib prefix for modules? |
19349 | need_lib_prefix=$need_lib_prefix |
19350 | |
19351 | # Do we need a version for libraries? |
19352 | need_version=$need_version |
19353 | |
19354 | # Whether dlopen is supported. |
19355 | dlopen_support=$enable_dlopen |
19356 | |
19357 | # Whether dlopen of programs is supported. |
19358 | dlopen_self=$enable_dlopen_self |
19359 | |
19360 | # Whether dlopen of statically linked programs is supported. |
19361 | dlopen_self_static=$enable_dlopen_self_static |
19362 | |
19363 | # Compiler flag to prevent dynamic linking. |
19364 | link_static_flag=$lt_lt_prog_compiler_static_RC |
19365 | |
19366 | # Compiler flag to turn off builtin functions. |
19367 | no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC |
19368 | |
19369 | # Compiler flag to allow reflexive dlopens. |
19370 | export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC |
19371 | |
19372 | # Compiler flag to generate shared objects directly from archives. |
19373 | whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC |
19374 | |
19375 | # Compiler flag to generate thread-safe objects. |
19376 | thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC |
19377 | |
19378 | # Library versioning type. |
19379 | version_type=$version_type |
19380 | |
19381 | # Format of library name prefix. |
19382 | libname_spec=$lt_libname_spec |
19383 | |
19384 | # List of archive names. First name is the real one, the rest are links. |
19385 | # The last name is the one that the linker finds with -lNAME. |
19386 | library_names_spec=$lt_library_names_spec |
19387 | |
19388 | # The coded name of the library, if different from the real name. |
19389 | soname_spec=$lt_soname_spec |
19390 | |
19391 | # Commands used to build and install an old-style archive. |
19392 | RANLIB=$lt_RANLIB |
19393 | old_archive_cmds=$lt_old_archive_cmds_RC |
19394 | old_postinstall_cmds=$lt_old_postinstall_cmds |
19395 | old_postuninstall_cmds=$lt_old_postuninstall_cmds |
19396 | |
19397 | # Create an old-style archive from a shared archive. |
19398 | old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC |
19399 | |
19400 | # Create a temporary old-style archive to link instead of a shared archive. |
19401 | old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC |
19402 | |
19403 | # Commands used to build and install a shared archive. |
19404 | archive_cmds=$lt_archive_cmds_RC |
19405 | archive_expsym_cmds=$lt_archive_expsym_cmds_RC |
19406 | postinstall_cmds=$lt_postinstall_cmds |
19407 | postuninstall_cmds=$lt_postuninstall_cmds |
19408 | |
19409 | # Commands used to build a loadable module (assumed same as above if empty) |
19410 | module_cmds=$lt_module_cmds_RC |
19411 | module_expsym_cmds=$lt_module_expsym_cmds_RC |
19412 | |
19413 | # Commands to strip libraries. |
19414 | old_striplib=$lt_old_striplib |
19415 | striplib=$lt_striplib |
19416 | |
19417 | # Dependencies to place before the objects being linked to create a |
19418 | # shared library. |
19419 | predep_objects=$lt_predep_objects_RC |
19420 | |
19421 | # Dependencies to place after the objects being linked to create a |
19422 | # shared library. |
19423 | postdep_objects=$lt_postdep_objects_RC |
19424 | |
19425 | # Dependencies to place before the objects being linked to create a |
19426 | # shared library. |
19427 | predeps=$lt_predeps_RC |
19428 | |
19429 | # Dependencies to place after the objects being linked to create a |
19430 | # shared library. |
19431 | postdeps=$lt_postdeps_RC |
19432 | |
19433 | # The library search path used internally by the compiler when linking |
19434 | # a shared library. |
19435 | compiler_lib_search_path=$lt_compiler_lib_search_path_RC |
19436 | |
19437 | # Method to check whether dependent libraries are shared objects. |
19438 | deplibs_check_method=$lt_deplibs_check_method |
19439 | |
19440 | # Command to use when deplibs_check_method == file_magic. |
19441 | file_magic_cmd=$lt_file_magic_cmd |
19442 | |
19443 | # Flag that allows shared libraries with undefined symbols to be built. |
19444 | allow_undefined_flag=$lt_allow_undefined_flag_RC |
19445 | |
19446 | # Flag that forces no undefined symbols. |
19447 | no_undefined_flag=$lt_no_undefined_flag_RC |
19448 | |
19449 | # Commands used to finish a libtool library installation in a directory. |
19450 | finish_cmds=$lt_finish_cmds |
19451 | |
19452 | # Same as above, but a single script fragment to be evaled but not shown. |
19453 | finish_eval=$lt_finish_eval |
19454 | |
19455 | # Take the output of nm and produce a listing of raw symbols and C names. |
19456 | global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe |
19457 | |
19458 | # Transform the output of nm in a proper C declaration |
19459 | global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl |
19460 | |
19461 | # Transform the output of nm in a C name address pair |
19462 | global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address |
19463 | |
19464 | # This is the shared library runtime path variable. |
19465 | runpath_var=$runpath_var |
19466 | |
19467 | # This is the shared library path variable. |
19468 | shlibpath_var=$shlibpath_var |
19469 | |
19470 | # Is shlibpath searched before the hard-coded library search path? |
19471 | shlibpath_overrides_runpath=$shlibpath_overrides_runpath |
19472 | |
19473 | # How to hardcode a shared library path into an executable. |
19474 | hardcode_action=$hardcode_action_RC |
19475 | |
19476 | # Whether we should hardcode library paths into libraries. |
19477 | hardcode_into_libs=$hardcode_into_libs |
19478 | |
19479 | # Flag to hardcode \$libdir into a binary during linking. |
19480 | # This must work even if \$libdir does not exist. |
19481 | hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC |
19482 | |
19483 | # If ld is used when linking, flag to hardcode \$libdir into |
19484 | # a binary during linking. This must work even if \$libdir does |
19485 | # not exist. |
19486 | hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC |
19487 | |
19488 | # Whether we need a single -rpath flag with a separated argument. |
19489 | hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC |
19490 | |
19491 | # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the |
19492 | # resulting binary. |
19493 | hardcode_direct=$hardcode_direct_RC |
19494 | |
19495 | # Set to yes if using the -LDIR flag during linking hardcodes DIR into the |
19496 | # resulting binary. |
19497 | hardcode_minus_L=$hardcode_minus_L_RC |
19498 | |
19499 | # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into |
19500 | # the resulting binary. |
19501 | hardcode_shlibpath_var=$hardcode_shlibpath_var_RC |
19502 | |
19503 | # Set to yes if building a shared library automatically hardcodes DIR into the library |
19504 | # and all subsequent libraries and executables linked against it. |
19505 | hardcode_automatic=$hardcode_automatic_RC |
19506 | |
19507 | # Variables whose values should be saved in libtool wrapper scripts and |
19508 | # restored at relink time. |
19509 | variables_saved_for_relink="$variables_saved_for_relink" |
19510 | |
19511 | # Whether libtool must link a program against all its dependency libraries. |
19512 | link_all_deplibs=$link_all_deplibs_RC |
19513 | |
19514 | # Compile-time system search path for libraries |
19515 | sys_lib_search_path_spec=$lt_sys_lib_search_path_spec |
19516 | |
19517 | # Run-time system search path for libraries |
19518 | sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec |
19519 | |
19520 | # Fix the shell variable \$srcfile for the compiler. |
19521 | fix_srcfile_path="$fix_srcfile_path_RC" |
19522 | |
19523 | # Set to yes if exported symbols are required. |
19524 | always_export_symbols=$always_export_symbols_RC |
19525 | |
19526 | # The commands to list exported symbols. |
19527 | export_symbols_cmds=$lt_export_symbols_cmds_RC |
19528 | |
19529 | # The commands to extract the exported symbol list from a shared archive. |
19530 | extract_expsyms_cmds=$lt_extract_expsyms_cmds |
19531 | |
19532 | # Symbols that should not be listed in the preloaded symbols. |
19533 | exclude_expsyms=$lt_exclude_expsyms_RC |
19534 | |
19535 | # Symbols that must always be exported. |
19536 | include_expsyms=$lt_include_expsyms_RC |
19537 | |
19538 | # ### END LIBTOOL TAG CONFIG: $tagname |
19539 | |
19540 | __EOF__ |
19541 | |
19542 | |
19543 | else |
19544 | # If there is no Makefile yet, we rely on a make rule to execute |
19545 | # `config.status --recheck' to rerun these tests and create the |
19546 | # libtool script then. |
19547 | ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` |
19548 | if test -f "$ltmain_in"; then |
19549 | test -f Makefile && make "$ltmain" |
19550 | fi |
19551 | fi |
19552 | |
19553 | |
19554 | ac_ext=c |
19555 | ac_cpp='$CPP $CPPFLAGS' |
19556 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
19557 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
19558 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
19559 | |
19560 | CC="$lt_save_CC" |
19561 | |
19562 | ;; |
19563 | |
19564 | *) |
19565 | { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 |
19566 | echo "$as_me: error: Unsupported tag name: $tagname" >&2;} |
19567 | { (exit 1); exit 1; }; } |
19568 | ;; |
19569 | esac |
19570 | |
19571 | # Append the new tag name to the list of available tags. |
19572 | if test -n "$tagname" ; then |
19573 | available_tags="$available_tags $tagname" |
19574 | fi |
19575 | fi |
19576 | done |
19577 | IFS="$lt_save_ifs" |
19578 | |
19579 | # Now substitute the updated list of available tags. |
19580 | if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then |
19581 | mv "${ofile}T" "$ofile" |
19582 | chmod +x "$ofile" |
19583 | else |
19584 | rm -f "${ofile}T" |
19585 | { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 |
19586 | echo "$as_me: error: unable to update list of available tagged configurations." >&2;} |
19587 | { (exit 1); exit 1; }; } |
19588 | fi |
19589 | fi |
19590 | |
19591 | |
19592 | |
19593 | # This can be used to rebuild libtool when needed |
19594 | LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" |
19595 | |
19596 | # Always use our own libtool. |
19597 | LIBTOOL='$(SHELL) $(top_builddir)/libtool' |
19598 | |
19599 | # Prevent multiple expansion |
19600 | |
19601 | |
19602 | |
19603 | |
19604 | |
19605 | |
19606 | |
19607 | |
19608 | |
19609 | |
19610 | |
19611 | |
19612 | |
19613 | |
19614 | |
19615 | |
19616 | |
19617 | |
19618 | |
19619 | |
19620 | |
19621 | # Check whether --enable-glibtest was given. |
19622 | if test "${enable_glibtest+set}" = set; then |
19623 | enableval=$enable_glibtest; |
19624 | else |
19625 | enable_glibtest=yes |
19626 | fi |
19627 | |
19628 | |
19629 | pkg_config_args=glib-2.0 |
19630 | for module in . gmodule |
19631 | do |
19632 | case "$module" in |
19633 | gmodule) |
19634 | pkg_config_args="$pkg_config_args gmodule-2.0" |
19635 | ;; |
19636 | gmodule-no-export) |
19637 | pkg_config_args="$pkg_config_args gmodule-no-export-2.0" |
19638 | ;; |
19639 | gobject) |
19640 | pkg_config_args="$pkg_config_args gobject-2.0" |
19641 | ;; |
19642 | gthread) |
19643 | pkg_config_args="$pkg_config_args gthread-2.0" |
19644 | ;; |
19645 | esac |
19646 | done |
19647 | |
19648 | # Extract the first word of "pkg-config", so it can be a program name with args. |
19649 | set dummy pkg-config; ac_word=$2 |
19650 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19651 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
19652 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
19653 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19654 | else |
19655 | case $PKG_CONFIG in |
19656 | [\\/]* | ?:[\\/]*) |
19657 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
19658 | ;; |
19659 | *) |
19660 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
19661 | for as_dir in $PATH |
19662 | do |
19663 | IFS=$as_save_IFS |
19664 | test -z "$as_dir" && as_dir=. |
19665 | for ac_exec_ext in '' $ac_executable_extensions; do |
19666 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
19667 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
19668 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
19669 | break 2 |
19670 | fi |
19671 | done |
19672 | done |
19673 | IFS=$as_save_IFS |
19674 | |
19675 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
19676 | ;; |
19677 | esac |
19678 | fi |
19679 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
19680 | if test -n "$PKG_CONFIG"; then |
19681 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
19682 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
19683 | else |
19684 | { echo "$as_me:$LINENO: result: no" >&5 |
19685 | echo "${ECHO_T}no" >&6; } |
19686 | fi |
19687 | |
19688 | |
19689 | |
19690 | no_glib="" |
19691 | |
19692 | if test x$PKG_CONFIG != xno ; then |
19693 | if $PKG_CONFIG --atleast-pkgconfig-version 0.7 ; then |
19694 | : |
19695 | else |
19696 | echo *** pkg-config too old; version 0.7 or better required. |
19697 | no_glib=yes |
19698 | PKG_CONFIG=no |
19699 | fi |
19700 | else |
19701 | no_glib=yes |
19702 | fi |
19703 | |
19704 | min_glib_version=2.4.0 |
19705 | { echo "$as_me:$LINENO: checking for GLIB - version >= $min_glib_version" >&5 |
19706 | echo $ECHO_N "checking for GLIB - version >= $min_glib_version... $ECHO_C" >&6; } |
19707 | |
19708 | if test x$PKG_CONFIG != xno ; then |
19709 | ## don't try to run the test against uninstalled libtool libs |
19710 | if $PKG_CONFIG --uninstalled $pkg_config_args; then |
19711 | echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH" |
19712 | enable_glibtest=no |
19713 | fi |
19714 | |
19715 | if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then |
19716 | : |
19717 | else |
19718 | no_glib=yes |
19719 | fi |
19720 | fi |
19721 | |
19722 | if test x"$no_glib" = x ; then |
19723 | GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0` |
19724 | GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0` |
19725 | GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0` |
19726 | |
19727 | GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args` |
19728 | GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args` |
19729 | glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \ |
19730 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
19731 | glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \ |
19732 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
19733 | glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \ |
19734 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
19735 | if test "x$enable_glibtest" = "xyes" ; then |
19736 | ac_save_CFLAGS="$CFLAGS" |
19737 | ac_save_LIBS="$LIBS" |
19738 | CFLAGS="$CFLAGS $GLIB_CFLAGS" |
19739 | LIBS="$GLIB_LIBS $LIBS" |
19740 | rm -f conf.glibtest |
19741 | if test "$cross_compiling" = yes; then |
19742 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
19743 | else |
19744 | cat >conftest.$ac_ext <<_ACEOF |
19745 | /* confdefs.h. */ |
19746 | _ACEOF |
19747 | cat confdefs.h >>conftest.$ac_ext |
19748 | cat >>conftest.$ac_ext <<_ACEOF |
19749 | /* end confdefs.h. */ |
19750 | |
19751 | #include <glib.h> |
19752 | #include <stdio.h> |
19753 | #include <stdlib.h> |
19754 | |
19755 | int |
19756 | main () |
19757 | { |
19758 | int major, minor, micro; |
19759 | char *tmp_version; |
19760 | |
19761 | system ("touch conf.glibtest"); |
19762 | |
19763 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
19764 | tmp_version = g_strdup("$min_glib_version"); |
19765 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
19766 | printf("%s, bad version string\n", "$min_glib_version"); |
19767 | exit(1); |
19768 | } |
19769 | |
19770 | if ((glib_major_version != $glib_config_major_version) || |
19771 | (glib_minor_version != $glib_config_minor_version) || |
19772 | (glib_micro_version != $glib_config_micro_version)) |
19773 | { |
19774 | printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n", |
19775 | $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version, |
19776 | glib_major_version, glib_minor_version, glib_micro_version); |
19777 | printf ("*** was found! If pkg-config was correct, then it is best\n"); |
19778 | printf ("*** to remove the old version of GLib. You may also be able to fix the error\n"); |
19779 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); |
19780 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
19781 | printf("*** required on your system.\n"); |
19782 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); |
19783 | printf("*** to point to the correct configuration files\n"); |
19784 | } |
19785 | else if ((glib_major_version != GLIB_MAJOR_VERSION) || |
19786 | (glib_minor_version != GLIB_MINOR_VERSION) || |
19787 | (glib_micro_version != GLIB_MICRO_VERSION)) |
19788 | { |
19789 | printf("*** GLIB header files (version %d.%d.%d) do not match\n", |
19790 | GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION); |
19791 | printf("*** library (version %d.%d.%d)\n", |
19792 | glib_major_version, glib_minor_version, glib_micro_version); |
19793 | } |
19794 | else |
19795 | { |
19796 | if ((glib_major_version > major) || |
19797 | ((glib_major_version == major) && (glib_minor_version > minor)) || |
19798 | ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro))) |
19799 | { |
19800 | return 0; |
19801 | } |
19802 | else |
19803 | { |
19804 | printf("\n*** An old version of GLIB (%d.%d.%d) was found.\n", |
19805 | glib_major_version, glib_minor_version, glib_micro_version); |
19806 | printf("*** You need a version of GLIB newer than %d.%d.%d. The latest version of\n", |
19807 | major, minor, micro); |
19808 | printf("*** GLIB is always available from ftp://ftp.gtk.org.\n"); |
19809 | printf("***\n"); |
19810 | printf("*** If you have already installed a sufficiently new version, this error\n"); |
19811 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); |
19812 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
19813 | printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n"); |
19814 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); |
19815 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
19816 | printf("*** so that the correct libraries are found at run-time))\n"); |
19817 | } |
19818 | } |
19819 | return 1; |
19820 | } |
19821 | |
19822 | _ACEOF |
19823 | rm -f conftest$ac_exeext |
19824 | if { (ac_try="$ac_link" |
19825 | case "(($ac_try" in |
19826 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19827 | *) ac_try_echo=$ac_try;; |
19828 | esac |
19829 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19830 | (eval "$ac_link") 2>&5 |
19831 | ac_status=$? |
19832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19833 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
19834 | { (case "(($ac_try" in |
19835 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19836 | *) ac_try_echo=$ac_try;; |
19837 | esac |
19838 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19839 | (eval "$ac_try") 2>&5 |
19840 | ac_status=$? |
19841 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19842 | (exit $ac_status); }; }; then |
19843 | : |
19844 | else |
19845 | echo "$as_me: program exited with status $ac_status" >&5 |
19846 | echo "$as_me: failed program was:" >&5 |
19847 | sed 's/^/| /' conftest.$ac_ext >&5 |
19848 | |
19849 | ( exit $ac_status ) |
19850 | no_glib=yes |
19851 | fi |
19852 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
19853 | fi |
19854 | |
19855 | |
19856 | CFLAGS="$ac_save_CFLAGS" |
19857 | LIBS="$ac_save_LIBS" |
19858 | fi |
19859 | fi |
19860 | if test "x$no_glib" = x ; then |
19861 | { echo "$as_me:$LINENO: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5 |
19862 | echo "${ECHO_T}yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; } |
19863 | : |
19864 | else |
19865 | { echo "$as_me:$LINENO: result: no" >&5 |
19866 | echo "${ECHO_T}no" >&6; } |
19867 | if test "$PKG_CONFIG" = "no" ; then |
19868 | echo "*** A new enough version of pkg-config was not found." |
19869 | echo "*** See http://www.freedesktop.org/software/pkgconfig/" |
19870 | else |
19871 | if test -f conf.glibtest ; then |
19872 | : |
19873 | else |
19874 | echo "*** Could not run GLIB test program, checking why..." |
19875 | ac_save_CFLAGS="$CFLAGS" |
19876 | ac_save_LIBS="$LIBS" |
19877 | CFLAGS="$CFLAGS $GLIB_CFLAGS" |
19878 | LIBS="$LIBS $GLIB_LIBS" |
19879 | cat >conftest.$ac_ext <<_ACEOF |
19880 | /* confdefs.h. */ |
19881 | _ACEOF |
19882 | cat confdefs.h >>conftest.$ac_ext |
19883 | cat >>conftest.$ac_ext <<_ACEOF |
19884 | /* end confdefs.h. */ |
19885 | |
19886 | #include <glib.h> |
19887 | #include <stdio.h> |
19888 | |
19889 | int |
19890 | main () |
19891 | { |
19892 | return ((glib_major_version) || (glib_minor_version) || (glib_micro_version)); |
19893 | ; |
19894 | return 0; |
19895 | } |
19896 | _ACEOF |
19897 | rm -f conftest.$ac_objext conftest$ac_exeext |
19898 | if { (ac_try="$ac_link" |
19899 | case "(($ac_try" in |
19900 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19901 | *) ac_try_echo=$ac_try;; |
19902 | esac |
19903 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19904 | (eval "$ac_link") 2>conftest.er1 |
19905 | ac_status=$? |
19906 | grep -v '^ *+' conftest.er1 >conftest.err |
19907 | rm -f conftest.er1 |
19908 | cat conftest.err >&5 |
19909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19910 | (exit $ac_status); } && |
19911 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
19912 | { (case "(($ac_try" in |
19913 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19914 | *) ac_try_echo=$ac_try;; |
19915 | esac |
19916 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19917 | (eval "$ac_try") 2>&5 |
19918 | ac_status=$? |
19919 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19920 | (exit $ac_status); }; } && |
19921 | { ac_try='test -s conftest$ac_exeext' |
19922 | { (case "(($ac_try" in |
19923 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
19924 | *) ac_try_echo=$ac_try;; |
19925 | esac |
19926 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
19927 | (eval "$ac_try") 2>&5 |
19928 | ac_status=$? |
19929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
19930 | (exit $ac_status); }; }; then |
19931 | echo "*** The test program compiled, but did not run. This usually means" |
19932 | echo "*** that the run-time linker is not finding GLIB or finding the wrong" |
19933 | echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your" |
19934 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
19935 | echo "*** to the installed location Also, make sure you have run ldconfig if that" |
19936 | echo "*** is required on your system" |
19937 | echo "***" |
19938 | echo "*** If you have an old version installed, it is best to remove it, although" |
19939 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
19940 | else |
19941 | echo "$as_me: failed program was:" >&5 |
19942 | sed 's/^/| /' conftest.$ac_ext >&5 |
19943 | |
19944 | echo "*** The test program failed to compile or link. See the file config.log for the" |
19945 | echo "*** exact error that occured. This usually means GLIB is incorrectly installed." |
19946 | fi |
19947 | |
19948 | rm -f core conftest.err conftest.$ac_objext \ |
19949 | conftest$ac_exeext conftest.$ac_ext |
19950 | CFLAGS="$ac_save_CFLAGS" |
19951 | LIBS="$ac_save_LIBS" |
19952 | fi |
19953 | fi |
19954 | GLIB_CFLAGS="" |
19955 | GLIB_LIBS="" |
19956 | GLIB_GENMARSHAL="" |
19957 | GOBJECT_QUERY="" |
19958 | GLIB_MKENUMS="" |
19959 | { { echo "$as_me:$LINENO: error: glib is required in order to compile LinuxTraceToolkit - download it from ftp://ftp.gtk.org/pub/gtk" >&5 |
19960 | echo "$as_me: error: glib is required in order to compile LinuxTraceToolkit - download it from ftp://ftp.gtk.org/pub/gtk" >&2;} |
19961 | { (exit 1); exit 1; }; } |
19962 | fi |
19963 | |
19964 | |
19965 | |
19966 | |
19967 | |
19968 | rm -f conf.glibtest |
19969 | |
19970 | |
19971 | # Check whether --enable-gtktest was given. |
19972 | if test "${enable_gtktest+set}" = set; then |
19973 | enableval=$enable_gtktest; |
19974 | else |
19975 | enable_gtktest=yes |
19976 | fi |
19977 | |
19978 | |
19979 | pkg_config_args=gtk+-2.0 |
19980 | for module in . gmodule |
19981 | do |
19982 | case "$module" in |
19983 | gthread) |
19984 | pkg_config_args="$pkg_config_args gthread-2.0" |
19985 | ;; |
19986 | esac |
19987 | done |
19988 | |
19989 | no_gtk="" |
19990 | |
19991 | # Extract the first word of "pkg-config", so it can be a program name with args. |
19992 | set dummy pkg-config; ac_word=$2 |
19993 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
19994 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
19995 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
19996 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
19997 | else |
19998 | case $PKG_CONFIG in |
19999 | [\\/]* | ?:[\\/]*) |
20000 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
20001 | ;; |
20002 | *) |
20003 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20004 | for as_dir in $PATH |
20005 | do |
20006 | IFS=$as_save_IFS |
20007 | test -z "$as_dir" && as_dir=. |
20008 | for ac_exec_ext in '' $ac_executable_extensions; do |
20009 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
20010 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
20011 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20012 | break 2 |
20013 | fi |
20014 | done |
20015 | done |
20016 | IFS=$as_save_IFS |
20017 | |
20018 | test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no" |
20019 | ;; |
20020 | esac |
20021 | fi |
20022 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
20023 | if test -n "$PKG_CONFIG"; then |
20024 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
20025 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
20026 | else |
20027 | { echo "$as_me:$LINENO: result: no" >&5 |
20028 | echo "${ECHO_T}no" >&6; } |
20029 | fi |
20030 | |
20031 | |
20032 | |
20033 | if test x$PKG_CONFIG != xno ; then |
20034 | if pkg-config --atleast-pkgconfig-version 0.7 ; then |
20035 | : |
20036 | else |
20037 | echo "*** pkg-config too old; version 0.7 or better required." |
20038 | no_gtk=yes |
20039 | PKG_CONFIG=no |
20040 | fi |
20041 | else |
20042 | no_gtk=yes |
20043 | fi |
20044 | |
20045 | min_gtk_version=2.4.0 |
20046 | { echo "$as_me:$LINENO: checking for GTK+ - version >= $min_gtk_version" >&5 |
20047 | echo $ECHO_N "checking for GTK+ - version >= $min_gtk_version... $ECHO_C" >&6; } |
20048 | |
20049 | if test x$PKG_CONFIG != xno ; then |
20050 | ## don't try to run the test against uninstalled libtool libs |
20051 | if $PKG_CONFIG --uninstalled $pkg_config_args; then |
20052 | echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH" |
20053 | enable_gtktest=no |
20054 | fi |
20055 | |
20056 | if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then |
20057 | : |
20058 | else |
20059 | no_gtk=yes |
20060 | fi |
20061 | fi |
20062 | |
20063 | if test x"$no_gtk" = x ; then |
20064 | GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags` |
20065 | GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs` |
20066 | gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
20067 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'` |
20068 | gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
20069 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'` |
20070 | gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \ |
20071 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'` |
20072 | if test "x$enable_gtktest" = "xyes" ; then |
20073 | ac_save_CFLAGS="$CFLAGS" |
20074 | ac_save_LIBS="$LIBS" |
20075 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
20076 | LIBS="$GTK_LIBS $LIBS" |
20077 | rm -f conf.gtktest |
20078 | if test "$cross_compiling" = yes; then |
20079 | echo $ac_n "cross compiling; assumed OK... $ac_c" |
20080 | else |
20081 | cat >conftest.$ac_ext <<_ACEOF |
20082 | /* confdefs.h. */ |
20083 | _ACEOF |
20084 | cat confdefs.h >>conftest.$ac_ext |
20085 | cat >>conftest.$ac_ext <<_ACEOF |
20086 | /* end confdefs.h. */ |
20087 | |
20088 | #include <gtk/gtk.h> |
20089 | #include <stdio.h> |
20090 | #include <stdlib.h> |
20091 | |
20092 | int |
20093 | main () |
20094 | { |
20095 | int major, minor, micro; |
20096 | char *tmp_version; |
20097 | |
20098 | system ("touch conf.gtktest"); |
20099 | |
20100 | /* HP/UX 9 (%@#!) writes to sscanf strings */ |
20101 | tmp_version = g_strdup("$min_gtk_version"); |
20102 | if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) { |
20103 | printf("%s, bad version string\n", "$min_gtk_version"); |
20104 | exit(1); |
20105 | } |
20106 | |
20107 | if ((gtk_major_version != $gtk_config_major_version) || |
20108 | (gtk_minor_version != $gtk_config_minor_version) || |
20109 | (gtk_micro_version != $gtk_config_micro_version)) |
20110 | { |
20111 | printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n", |
20112 | $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version, |
20113 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
20114 | printf ("*** was found! If pkg-config was correct, then it is best\n"); |
20115 | printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n"); |
20116 | printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n"); |
20117 | printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n"); |
20118 | printf("*** required on your system.\n"); |
20119 | printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n"); |
20120 | printf("*** to point to the correct configuration files\n"); |
20121 | } |
20122 | else if ((gtk_major_version != GTK_MAJOR_VERSION) || |
20123 | (gtk_minor_version != GTK_MINOR_VERSION) || |
20124 | (gtk_micro_version != GTK_MICRO_VERSION)) |
20125 | { |
20126 | printf("*** GTK+ header files (version %d.%d.%d) do not match\n", |
20127 | GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION); |
20128 | printf("*** library (version %d.%d.%d)\n", |
20129 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
20130 | } |
20131 | else |
20132 | { |
20133 | if ((gtk_major_version > major) || |
20134 | ((gtk_major_version == major) && (gtk_minor_version > minor)) || |
20135 | ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro))) |
20136 | { |
20137 | return 0; |
20138 | } |
20139 | else |
20140 | { |
20141 | printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n", |
20142 | gtk_major_version, gtk_minor_version, gtk_micro_version); |
20143 | printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n", |
20144 | major, minor, micro); |
20145 | printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n"); |
20146 | printf("***\n"); |
20147 | printf("*** If you have already installed a sufficiently new version, this error\n"); |
20148 | printf("*** probably means that the wrong copy of the pkg-config shell script is\n"); |
20149 | printf("*** being found. The easiest way to fix this is to remove the old version\n"); |
20150 | printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n"); |
20151 | printf("*** correct copy of pkg-config. (In this case, you will have to\n"); |
20152 | printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n"); |
20153 | printf("*** so that the correct libraries are found at run-time))\n"); |
20154 | } |
20155 | } |
20156 | return 1; |
20157 | } |
20158 | |
20159 | _ACEOF |
20160 | rm -f conftest$ac_exeext |
20161 | if { (ac_try="$ac_link" |
20162 | case "(($ac_try" in |
20163 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20164 | *) ac_try_echo=$ac_try;; |
20165 | esac |
20166 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20167 | (eval "$ac_link") 2>&5 |
20168 | ac_status=$? |
20169 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20170 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
20171 | { (case "(($ac_try" in |
20172 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20173 | *) ac_try_echo=$ac_try;; |
20174 | esac |
20175 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20176 | (eval "$ac_try") 2>&5 |
20177 | ac_status=$? |
20178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20179 | (exit $ac_status); }; }; then |
20180 | : |
20181 | else |
20182 | echo "$as_me: program exited with status $ac_status" >&5 |
20183 | echo "$as_me: failed program was:" >&5 |
20184 | sed 's/^/| /' conftest.$ac_ext >&5 |
20185 | |
20186 | ( exit $ac_status ) |
20187 | no_gtk=yes |
20188 | fi |
20189 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
20190 | fi |
20191 | |
20192 | |
20193 | CFLAGS="$ac_save_CFLAGS" |
20194 | LIBS="$ac_save_LIBS" |
20195 | fi |
20196 | fi |
20197 | if test "x$no_gtk" = x ; then |
20198 | { echo "$as_me:$LINENO: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5 |
20199 | echo "${ECHO_T}yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; } |
20200 | : |
20201 | else |
20202 | { echo "$as_me:$LINENO: result: no" >&5 |
20203 | echo "${ECHO_T}no" >&6; } |
20204 | if test "$PKG_CONFIG" = "no" ; then |
20205 | echo "*** A new enough version of pkg-config was not found." |
20206 | echo "*** See http://pkgconfig.sourceforge.net" |
20207 | else |
20208 | if test -f conf.gtktest ; then |
20209 | : |
20210 | else |
20211 | echo "*** Could not run GTK+ test program, checking why..." |
20212 | ac_save_CFLAGS="$CFLAGS" |
20213 | ac_save_LIBS="$LIBS" |
20214 | CFLAGS="$CFLAGS $GTK_CFLAGS" |
20215 | LIBS="$LIBS $GTK_LIBS" |
20216 | cat >conftest.$ac_ext <<_ACEOF |
20217 | /* confdefs.h. */ |
20218 | _ACEOF |
20219 | cat confdefs.h >>conftest.$ac_ext |
20220 | cat >>conftest.$ac_ext <<_ACEOF |
20221 | /* end confdefs.h. */ |
20222 | |
20223 | #include <gtk/gtk.h> |
20224 | #include <stdio.h> |
20225 | |
20226 | int |
20227 | main () |
20228 | { |
20229 | return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version)); |
20230 | ; |
20231 | return 0; |
20232 | } |
20233 | _ACEOF |
20234 | rm -f conftest.$ac_objext conftest$ac_exeext |
20235 | if { (ac_try="$ac_link" |
20236 | case "(($ac_try" in |
20237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20238 | *) ac_try_echo=$ac_try;; |
20239 | esac |
20240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20241 | (eval "$ac_link") 2>conftest.er1 |
20242 | ac_status=$? |
20243 | grep -v '^ *+' conftest.er1 >conftest.err |
20244 | rm -f conftest.er1 |
20245 | cat conftest.err >&5 |
20246 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20247 | (exit $ac_status); } && |
20248 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20249 | { (case "(($ac_try" in |
20250 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20251 | *) ac_try_echo=$ac_try;; |
20252 | esac |
20253 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20254 | (eval "$ac_try") 2>&5 |
20255 | ac_status=$? |
20256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20257 | (exit $ac_status); }; } && |
20258 | { ac_try='test -s conftest$ac_exeext' |
20259 | { (case "(($ac_try" in |
20260 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20261 | *) ac_try_echo=$ac_try;; |
20262 | esac |
20263 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20264 | (eval "$ac_try") 2>&5 |
20265 | ac_status=$? |
20266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20267 | (exit $ac_status); }; }; then |
20268 | echo "*** The test program compiled, but did not run. This usually means" |
20269 | echo "*** that the run-time linker is not finding GTK+ or finding the wrong" |
20270 | echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your" |
20271 | echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point" |
20272 | echo "*** to the installed location Also, make sure you have run ldconfig if that" |
20273 | echo "*** is required on your system" |
20274 | echo "***" |
20275 | echo "*** If you have an old version installed, it is best to remove it, although" |
20276 | echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH" |
20277 | else |
20278 | echo "$as_me: failed program was:" >&5 |
20279 | sed 's/^/| /' conftest.$ac_ext >&5 |
20280 | |
20281 | echo "*** The test program failed to compile or link. See the file config.log for the" |
20282 | echo "*** exact error that occured. This usually means GTK+ is incorrectly installed." |
20283 | fi |
20284 | |
20285 | rm -f core conftest.err conftest.$ac_objext \ |
20286 | conftest$ac_exeext conftest.$ac_ext |
20287 | CFLAGS="$ac_save_CFLAGS" |
20288 | LIBS="$ac_save_LIBS" |
20289 | fi |
20290 | fi |
20291 | GTK_CFLAGS="" |
20292 | GTK_LIBS="" |
20293 | { { echo "$as_me:$LINENO: error: gtk is required in order to compile GUI - download it from ftp://ftp.gtk.org/pub/gtk" >&5 |
20294 | echo "$as_me: error: gtk is required in order to compile GUI - download it from ftp://ftp.gtk.org/pub/gtk" >&2;} |
20295 | { (exit 1); exit 1; }; } |
20296 | fi |
20297 | |
20298 | |
20299 | rm -f conf.gtktest |
20300 | |
20301 | |
20302 | for ac_prog in bash |
20303 | do |
20304 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
20305 | set dummy $ac_prog; ac_word=$2 |
20306 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20307 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
20308 | if test "${ac_cv_path_BASH+set}" = set; then |
20309 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20310 | else |
20311 | case $BASH in |
20312 | [\\/]* | ?:[\\/]*) |
20313 | ac_cv_path_BASH="$BASH" # Let the user override the test with a path. |
20314 | ;; |
20315 | *) |
20316 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20317 | for as_dir in $PATH |
20318 | do |
20319 | IFS=$as_save_IFS |
20320 | test -z "$as_dir" && as_dir=. |
20321 | for ac_exec_ext in '' $ac_executable_extensions; do |
20322 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
20323 | ac_cv_path_BASH="$as_dir/$ac_word$ac_exec_ext" |
20324 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20325 | break 2 |
20326 | fi |
20327 | done |
20328 | done |
20329 | IFS=$as_save_IFS |
20330 | |
20331 | ;; |
20332 | esac |
20333 | fi |
20334 | BASH=$ac_cv_path_BASH |
20335 | if test -n "$BASH"; then |
20336 | { echo "$as_me:$LINENO: result: $BASH" >&5 |
20337 | echo "${ECHO_T}$BASH" >&6; } |
20338 | else |
20339 | { echo "$as_me:$LINENO: result: no" >&5 |
20340 | echo "${ECHO_T}no" >&6; } |
20341 | fi |
20342 | |
20343 | |
20344 | test -n "$BASH" && break |
20345 | done |
20346 | |
20347 | |
20348 | # Check whether --enable-largefile was given. |
20349 | if test "${enable_largefile+set}" = set; then |
20350 | enableval=$enable_largefile; |
20351 | fi |
20352 | |
20353 | if test "$enable_largefile" != no; then |
20354 | |
20355 | { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5 |
20356 | echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; } |
20357 | if test "${ac_cv_sys_largefile_CC+set}" = set; then |
20358 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20359 | else |
20360 | ac_cv_sys_largefile_CC=no |
20361 | if test "$GCC" != yes; then |
20362 | ac_save_CC=$CC |
20363 | while :; do |
20364 | # IRIX 6.2 and later do not support large files by default, |
20365 | # so use the C compiler's -n32 option if that helps. |
20366 | cat >conftest.$ac_ext <<_ACEOF |
20367 | /* confdefs.h. */ |
20368 | _ACEOF |
20369 | cat confdefs.h >>conftest.$ac_ext |
20370 | cat >>conftest.$ac_ext <<_ACEOF |
20371 | /* end confdefs.h. */ |
20372 | #include <sys/types.h> |
20373 | /* Check that off_t can represent 2**63 - 1 correctly. |
20374 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
20375 | since some C++ compilers masquerading as C compilers |
20376 | incorrectly reject 9223372036854775807. */ |
20377 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
20378 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
20379 | && LARGE_OFF_T % 2147483647 == 1) |
20380 | ? 1 : -1]; |
20381 | int |
20382 | main () |
20383 | { |
20384 | |
20385 | ; |
20386 | return 0; |
20387 | } |
20388 | _ACEOF |
20389 | rm -f conftest.$ac_objext |
20390 | if { (ac_try="$ac_compile" |
20391 | case "(($ac_try" in |
20392 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20393 | *) ac_try_echo=$ac_try;; |
20394 | esac |
20395 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20396 | (eval "$ac_compile") 2>conftest.er1 |
20397 | ac_status=$? |
20398 | grep -v '^ *+' conftest.er1 >conftest.err |
20399 | rm -f conftest.er1 |
20400 | cat conftest.err >&5 |
20401 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20402 | (exit $ac_status); } && |
20403 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20404 | { (case "(($ac_try" in |
20405 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20406 | *) ac_try_echo=$ac_try;; |
20407 | esac |
20408 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20409 | (eval "$ac_try") 2>&5 |
20410 | ac_status=$? |
20411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20412 | (exit $ac_status); }; } && |
20413 | { ac_try='test -s conftest.$ac_objext' |
20414 | { (case "(($ac_try" in |
20415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20416 | *) ac_try_echo=$ac_try;; |
20417 | esac |
20418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20419 | (eval "$ac_try") 2>&5 |
20420 | ac_status=$? |
20421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20422 | (exit $ac_status); }; }; then |
20423 | break |
20424 | else |
20425 | echo "$as_me: failed program was:" >&5 |
20426 | sed 's/^/| /' conftest.$ac_ext >&5 |
20427 | |
20428 | |
20429 | fi |
20430 | |
20431 | rm -f core conftest.err conftest.$ac_objext |
20432 | CC="$CC -n32" |
20433 | rm -f conftest.$ac_objext |
20434 | if { (ac_try="$ac_compile" |
20435 | case "(($ac_try" in |
20436 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20437 | *) ac_try_echo=$ac_try;; |
20438 | esac |
20439 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20440 | (eval "$ac_compile") 2>conftest.er1 |
20441 | ac_status=$? |
20442 | grep -v '^ *+' conftest.er1 >conftest.err |
20443 | rm -f conftest.er1 |
20444 | cat conftest.err >&5 |
20445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20446 | (exit $ac_status); } && |
20447 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20448 | { (case "(($ac_try" in |
20449 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20450 | *) ac_try_echo=$ac_try;; |
20451 | esac |
20452 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20453 | (eval "$ac_try") 2>&5 |
20454 | ac_status=$? |
20455 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20456 | (exit $ac_status); }; } && |
20457 | { ac_try='test -s conftest.$ac_objext' |
20458 | { (case "(($ac_try" in |
20459 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20460 | *) ac_try_echo=$ac_try;; |
20461 | esac |
20462 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20463 | (eval "$ac_try") 2>&5 |
20464 | ac_status=$? |
20465 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20466 | (exit $ac_status); }; }; then |
20467 | ac_cv_sys_largefile_CC=' -n32'; break |
20468 | else |
20469 | echo "$as_me: failed program was:" >&5 |
20470 | sed 's/^/| /' conftest.$ac_ext >&5 |
20471 | |
20472 | |
20473 | fi |
20474 | |
20475 | rm -f core conftest.err conftest.$ac_objext |
20476 | break |
20477 | done |
20478 | CC=$ac_save_CC |
20479 | rm -f conftest.$ac_ext |
20480 | fi |
20481 | fi |
20482 | { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5 |
20483 | echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; } |
20484 | if test "$ac_cv_sys_largefile_CC" != no; then |
20485 | CC=$CC$ac_cv_sys_largefile_CC |
20486 | fi |
20487 | |
20488 | { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5 |
20489 | echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; } |
20490 | if test "${ac_cv_sys_file_offset_bits+set}" = set; then |
20491 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20492 | else |
20493 | while :; do |
20494 | ac_cv_sys_file_offset_bits=no |
20495 | cat >conftest.$ac_ext <<_ACEOF |
20496 | /* confdefs.h. */ |
20497 | _ACEOF |
20498 | cat confdefs.h >>conftest.$ac_ext |
20499 | cat >>conftest.$ac_ext <<_ACEOF |
20500 | /* end confdefs.h. */ |
20501 | #include <sys/types.h> |
20502 | /* Check that off_t can represent 2**63 - 1 correctly. |
20503 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
20504 | since some C++ compilers masquerading as C compilers |
20505 | incorrectly reject 9223372036854775807. */ |
20506 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
20507 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
20508 | && LARGE_OFF_T % 2147483647 == 1) |
20509 | ? 1 : -1]; |
20510 | int |
20511 | main () |
20512 | { |
20513 | |
20514 | ; |
20515 | return 0; |
20516 | } |
20517 | _ACEOF |
20518 | rm -f conftest.$ac_objext |
20519 | if { (ac_try="$ac_compile" |
20520 | case "(($ac_try" in |
20521 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20522 | *) ac_try_echo=$ac_try;; |
20523 | esac |
20524 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20525 | (eval "$ac_compile") 2>conftest.er1 |
20526 | ac_status=$? |
20527 | grep -v '^ *+' conftest.er1 >conftest.err |
20528 | rm -f conftest.er1 |
20529 | cat conftest.err >&5 |
20530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20531 | (exit $ac_status); } && |
20532 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20533 | { (case "(($ac_try" in |
20534 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20535 | *) ac_try_echo=$ac_try;; |
20536 | esac |
20537 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20538 | (eval "$ac_try") 2>&5 |
20539 | ac_status=$? |
20540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20541 | (exit $ac_status); }; } && |
20542 | { ac_try='test -s conftest.$ac_objext' |
20543 | { (case "(($ac_try" in |
20544 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20545 | *) ac_try_echo=$ac_try;; |
20546 | esac |
20547 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20548 | (eval "$ac_try") 2>&5 |
20549 | ac_status=$? |
20550 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20551 | (exit $ac_status); }; }; then |
20552 | break |
20553 | else |
20554 | echo "$as_me: failed program was:" >&5 |
20555 | sed 's/^/| /' conftest.$ac_ext >&5 |
20556 | |
20557 | |
20558 | fi |
20559 | |
20560 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
20561 | cat >conftest.$ac_ext <<_ACEOF |
20562 | /* confdefs.h. */ |
20563 | _ACEOF |
20564 | cat confdefs.h >>conftest.$ac_ext |
20565 | cat >>conftest.$ac_ext <<_ACEOF |
20566 | /* end confdefs.h. */ |
20567 | #define _FILE_OFFSET_BITS 64 |
20568 | #include <sys/types.h> |
20569 | /* Check that off_t can represent 2**63 - 1 correctly. |
20570 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
20571 | since some C++ compilers masquerading as C compilers |
20572 | incorrectly reject 9223372036854775807. */ |
20573 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
20574 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
20575 | && LARGE_OFF_T % 2147483647 == 1) |
20576 | ? 1 : -1]; |
20577 | int |
20578 | main () |
20579 | { |
20580 | |
20581 | ; |
20582 | return 0; |
20583 | } |
20584 | _ACEOF |
20585 | rm -f conftest.$ac_objext |
20586 | if { (ac_try="$ac_compile" |
20587 | case "(($ac_try" in |
20588 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20589 | *) ac_try_echo=$ac_try;; |
20590 | esac |
20591 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20592 | (eval "$ac_compile") 2>conftest.er1 |
20593 | ac_status=$? |
20594 | grep -v '^ *+' conftest.er1 >conftest.err |
20595 | rm -f conftest.er1 |
20596 | cat conftest.err >&5 |
20597 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20598 | (exit $ac_status); } && |
20599 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20600 | { (case "(($ac_try" in |
20601 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20602 | *) ac_try_echo=$ac_try;; |
20603 | esac |
20604 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20605 | (eval "$ac_try") 2>&5 |
20606 | ac_status=$? |
20607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20608 | (exit $ac_status); }; } && |
20609 | { ac_try='test -s conftest.$ac_objext' |
20610 | { (case "(($ac_try" in |
20611 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20612 | *) ac_try_echo=$ac_try;; |
20613 | esac |
20614 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20615 | (eval "$ac_try") 2>&5 |
20616 | ac_status=$? |
20617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20618 | (exit $ac_status); }; }; then |
20619 | ac_cv_sys_file_offset_bits=64; break |
20620 | else |
20621 | echo "$as_me: failed program was:" >&5 |
20622 | sed 's/^/| /' conftest.$ac_ext >&5 |
20623 | |
20624 | |
20625 | fi |
20626 | |
20627 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
20628 | break |
20629 | done |
20630 | fi |
20631 | { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5 |
20632 | echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; } |
20633 | if test "$ac_cv_sys_file_offset_bits" != no; then |
20634 | |
20635 | cat >>confdefs.h <<_ACEOF |
20636 | #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits |
20637 | _ACEOF |
20638 | |
20639 | fi |
20640 | rm -f conftest* |
20641 | { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5 |
20642 | echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; } |
20643 | if test "${ac_cv_sys_large_files+set}" = set; then |
20644 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20645 | else |
20646 | while :; do |
20647 | ac_cv_sys_large_files=no |
20648 | cat >conftest.$ac_ext <<_ACEOF |
20649 | /* confdefs.h. */ |
20650 | _ACEOF |
20651 | cat confdefs.h >>conftest.$ac_ext |
20652 | cat >>conftest.$ac_ext <<_ACEOF |
20653 | /* end confdefs.h. */ |
20654 | #include <sys/types.h> |
20655 | /* Check that off_t can represent 2**63 - 1 correctly. |
20656 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
20657 | since some C++ compilers masquerading as C compilers |
20658 | incorrectly reject 9223372036854775807. */ |
20659 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
20660 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
20661 | && LARGE_OFF_T % 2147483647 == 1) |
20662 | ? 1 : -1]; |
20663 | int |
20664 | main () |
20665 | { |
20666 | |
20667 | ; |
20668 | return 0; |
20669 | } |
20670 | _ACEOF |
20671 | rm -f conftest.$ac_objext |
20672 | if { (ac_try="$ac_compile" |
20673 | case "(($ac_try" in |
20674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20675 | *) ac_try_echo=$ac_try;; |
20676 | esac |
20677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20678 | (eval "$ac_compile") 2>conftest.er1 |
20679 | ac_status=$? |
20680 | grep -v '^ *+' conftest.er1 >conftest.err |
20681 | rm -f conftest.er1 |
20682 | cat conftest.err >&5 |
20683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20684 | (exit $ac_status); } && |
20685 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20686 | { (case "(($ac_try" in |
20687 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20688 | *) ac_try_echo=$ac_try;; |
20689 | esac |
20690 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20691 | (eval "$ac_try") 2>&5 |
20692 | ac_status=$? |
20693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20694 | (exit $ac_status); }; } && |
20695 | { ac_try='test -s conftest.$ac_objext' |
20696 | { (case "(($ac_try" in |
20697 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20698 | *) ac_try_echo=$ac_try;; |
20699 | esac |
20700 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20701 | (eval "$ac_try") 2>&5 |
20702 | ac_status=$? |
20703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20704 | (exit $ac_status); }; }; then |
20705 | break |
20706 | else |
20707 | echo "$as_me: failed program was:" >&5 |
20708 | sed 's/^/| /' conftest.$ac_ext >&5 |
20709 | |
20710 | |
20711 | fi |
20712 | |
20713 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
20714 | cat >conftest.$ac_ext <<_ACEOF |
20715 | /* confdefs.h. */ |
20716 | _ACEOF |
20717 | cat confdefs.h >>conftest.$ac_ext |
20718 | cat >>conftest.$ac_ext <<_ACEOF |
20719 | /* end confdefs.h. */ |
20720 | #define _LARGE_FILES 1 |
20721 | #include <sys/types.h> |
20722 | /* Check that off_t can represent 2**63 - 1 correctly. |
20723 | We can't simply define LARGE_OFF_T to be 9223372036854775807, |
20724 | since some C++ compilers masquerading as C compilers |
20725 | incorrectly reject 9223372036854775807. */ |
20726 | #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) |
20727 | int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 |
20728 | && LARGE_OFF_T % 2147483647 == 1) |
20729 | ? 1 : -1]; |
20730 | int |
20731 | main () |
20732 | { |
20733 | |
20734 | ; |
20735 | return 0; |
20736 | } |
20737 | _ACEOF |
20738 | rm -f conftest.$ac_objext |
20739 | if { (ac_try="$ac_compile" |
20740 | case "(($ac_try" in |
20741 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20742 | *) ac_try_echo=$ac_try;; |
20743 | esac |
20744 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20745 | (eval "$ac_compile") 2>conftest.er1 |
20746 | ac_status=$? |
20747 | grep -v '^ *+' conftest.er1 >conftest.err |
20748 | rm -f conftest.er1 |
20749 | cat conftest.err >&5 |
20750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20751 | (exit $ac_status); } && |
20752 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
20753 | { (case "(($ac_try" in |
20754 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20755 | *) ac_try_echo=$ac_try;; |
20756 | esac |
20757 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20758 | (eval "$ac_try") 2>&5 |
20759 | ac_status=$? |
20760 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20761 | (exit $ac_status); }; } && |
20762 | { ac_try='test -s conftest.$ac_objext' |
20763 | { (case "(($ac_try" in |
20764 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
20765 | *) ac_try_echo=$ac_try;; |
20766 | esac |
20767 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
20768 | (eval "$ac_try") 2>&5 |
20769 | ac_status=$? |
20770 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
20771 | (exit $ac_status); }; }; then |
20772 | ac_cv_sys_large_files=1; break |
20773 | else |
20774 | echo "$as_me: failed program was:" >&5 |
20775 | sed 's/^/| /' conftest.$ac_ext >&5 |
20776 | |
20777 | |
20778 | fi |
20779 | |
20780 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
20781 | break |
20782 | done |
20783 | fi |
20784 | { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5 |
20785 | echo "${ECHO_T}$ac_cv_sys_large_files" >&6; } |
20786 | if test "$ac_cv_sys_large_files" != no; then |
20787 | |
20788 | cat >>confdefs.h <<_ACEOF |
20789 | #define _LARGE_FILES $ac_cv_sys_large_files |
20790 | _ACEOF |
20791 | |
20792 | fi |
20793 | rm -f conftest* |
20794 | fi |
20795 | |
20796 | |
20797 | # Checks for programs. |
20798 | ac_ext=c |
20799 | ac_cpp='$CPP $CPPFLAGS' |
20800 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
20801 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
20802 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
20803 | if test -n "$ac_tool_prefix"; then |
20804 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
20805 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
20806 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20807 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
20808 | if test "${ac_cv_prog_CC+set}" = set; then |
20809 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20810 | else |
20811 | if test -n "$CC"; then |
20812 | ac_cv_prog_CC="$CC" # Let the user override the test. |
20813 | else |
20814 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20815 | for as_dir in $PATH |
20816 | do |
20817 | IFS=$as_save_IFS |
20818 | test -z "$as_dir" && as_dir=. |
20819 | for ac_exec_ext in '' $ac_executable_extensions; do |
20820 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
20821 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
20822 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20823 | break 2 |
20824 | fi |
20825 | done |
20826 | done |
20827 | IFS=$as_save_IFS |
20828 | |
20829 | fi |
20830 | fi |
20831 | CC=$ac_cv_prog_CC |
20832 | if test -n "$CC"; then |
20833 | { echo "$as_me:$LINENO: result: $CC" >&5 |
20834 | echo "${ECHO_T}$CC" >&6; } |
20835 | else |
20836 | { echo "$as_me:$LINENO: result: no" >&5 |
20837 | echo "${ECHO_T}no" >&6; } |
20838 | fi |
20839 | |
20840 | |
20841 | fi |
20842 | if test -z "$ac_cv_prog_CC"; then |
20843 | ac_ct_CC=$CC |
20844 | # Extract the first word of "gcc", so it can be a program name with args. |
20845 | set dummy gcc; ac_word=$2 |
20846 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20847 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
20848 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
20849 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20850 | else |
20851 | if test -n "$ac_ct_CC"; then |
20852 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
20853 | else |
20854 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20855 | for as_dir in $PATH |
20856 | do |
20857 | IFS=$as_save_IFS |
20858 | test -z "$as_dir" && as_dir=. |
20859 | for ac_exec_ext in '' $ac_executable_extensions; do |
20860 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
20861 | ac_cv_prog_ac_ct_CC="gcc" |
20862 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20863 | break 2 |
20864 | fi |
20865 | done |
20866 | done |
20867 | IFS=$as_save_IFS |
20868 | |
20869 | fi |
20870 | fi |
20871 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
20872 | if test -n "$ac_ct_CC"; then |
20873 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
20874 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
20875 | else |
20876 | { echo "$as_me:$LINENO: result: no" >&5 |
20877 | echo "${ECHO_T}no" >&6; } |
20878 | fi |
20879 | |
20880 | if test "x$ac_ct_CC" = x; then |
20881 | CC="" |
20882 | else |
20883 | case $cross_compiling:$ac_tool_warned in |
20884 | yes:) |
20885 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
20886 | whose name does not start with the host triplet. If you think this |
20887 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
20888 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
20889 | whose name does not start with the host triplet. If you think this |
20890 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
20891 | ac_tool_warned=yes ;; |
20892 | esac |
20893 | CC=$ac_ct_CC |
20894 | fi |
20895 | else |
20896 | CC="$ac_cv_prog_CC" |
20897 | fi |
20898 | |
20899 | if test -z "$CC"; then |
20900 | if test -n "$ac_tool_prefix"; then |
20901 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
20902 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
20903 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20904 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
20905 | if test "${ac_cv_prog_CC+set}" = set; then |
20906 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20907 | else |
20908 | if test -n "$CC"; then |
20909 | ac_cv_prog_CC="$CC" # Let the user override the test. |
20910 | else |
20911 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20912 | for as_dir in $PATH |
20913 | do |
20914 | IFS=$as_save_IFS |
20915 | test -z "$as_dir" && as_dir=. |
20916 | for ac_exec_ext in '' $ac_executable_extensions; do |
20917 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
20918 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
20919 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20920 | break 2 |
20921 | fi |
20922 | done |
20923 | done |
20924 | IFS=$as_save_IFS |
20925 | |
20926 | fi |
20927 | fi |
20928 | CC=$ac_cv_prog_CC |
20929 | if test -n "$CC"; then |
20930 | { echo "$as_me:$LINENO: result: $CC" >&5 |
20931 | echo "${ECHO_T}$CC" >&6; } |
20932 | else |
20933 | { echo "$as_me:$LINENO: result: no" >&5 |
20934 | echo "${ECHO_T}no" >&6; } |
20935 | fi |
20936 | |
20937 | |
20938 | fi |
20939 | fi |
20940 | if test -z "$CC"; then |
20941 | # Extract the first word of "cc", so it can be a program name with args. |
20942 | set dummy cc; ac_word=$2 |
20943 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
20944 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
20945 | if test "${ac_cv_prog_CC+set}" = set; then |
20946 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
20947 | else |
20948 | if test -n "$CC"; then |
20949 | ac_cv_prog_CC="$CC" # Let the user override the test. |
20950 | else |
20951 | ac_prog_rejected=no |
20952 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
20953 | for as_dir in $PATH |
20954 | do |
20955 | IFS=$as_save_IFS |
20956 | test -z "$as_dir" && as_dir=. |
20957 | for ac_exec_ext in '' $ac_executable_extensions; do |
20958 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
20959 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
20960 | ac_prog_rejected=yes |
20961 | continue |
20962 | fi |
20963 | ac_cv_prog_CC="cc" |
20964 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
20965 | break 2 |
20966 | fi |
20967 | done |
20968 | done |
20969 | IFS=$as_save_IFS |
20970 | |
20971 | if test $ac_prog_rejected = yes; then |
20972 | # We found a bogon in the path, so make sure we never use it. |
20973 | set dummy $ac_cv_prog_CC |
20974 | shift |
20975 | if test $# != 0; then |
20976 | # We chose a different compiler from the bogus one. |
20977 | # However, it has the same basename, so the bogon will be chosen |
20978 | # first if we set CC to just the basename; use the full file name. |
20979 | shift |
20980 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
20981 | fi |
20982 | fi |
20983 | fi |
20984 | fi |
20985 | CC=$ac_cv_prog_CC |
20986 | if test -n "$CC"; then |
20987 | { echo "$as_me:$LINENO: result: $CC" >&5 |
20988 | echo "${ECHO_T}$CC" >&6; } |
20989 | else |
20990 | { echo "$as_me:$LINENO: result: no" >&5 |
20991 | echo "${ECHO_T}no" >&6; } |
20992 | fi |
20993 | |
20994 | |
20995 | fi |
20996 | if test -z "$CC"; then |
20997 | if test -n "$ac_tool_prefix"; then |
20998 | for ac_prog in cl.exe |
20999 | do |
21000 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
21001 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
21002 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
21003 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
21004 | if test "${ac_cv_prog_CC+set}" = set; then |
21005 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21006 | else |
21007 | if test -n "$CC"; then |
21008 | ac_cv_prog_CC="$CC" # Let the user override the test. |
21009 | else |
21010 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21011 | for as_dir in $PATH |
21012 | do |
21013 | IFS=$as_save_IFS |
21014 | test -z "$as_dir" && as_dir=. |
21015 | for ac_exec_ext in '' $ac_executable_extensions; do |
21016 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
21017 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
21018 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
21019 | break 2 |
21020 | fi |
21021 | done |
21022 | done |
21023 | IFS=$as_save_IFS |
21024 | |
21025 | fi |
21026 | fi |
21027 | CC=$ac_cv_prog_CC |
21028 | if test -n "$CC"; then |
21029 | { echo "$as_me:$LINENO: result: $CC" >&5 |
21030 | echo "${ECHO_T}$CC" >&6; } |
21031 | else |
21032 | { echo "$as_me:$LINENO: result: no" >&5 |
21033 | echo "${ECHO_T}no" >&6; } |
21034 | fi |
21035 | |
21036 | |
21037 | test -n "$CC" && break |
21038 | done |
21039 | fi |
21040 | if test -z "$CC"; then |
21041 | ac_ct_CC=$CC |
21042 | for ac_prog in cl.exe |
21043 | do |
21044 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
21045 | set dummy $ac_prog; ac_word=$2 |
21046 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
21047 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
21048 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
21049 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21050 | else |
21051 | if test -n "$ac_ct_CC"; then |
21052 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
21053 | else |
21054 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
21055 | for as_dir in $PATH |
21056 | do |
21057 | IFS=$as_save_IFS |
21058 | test -z "$as_dir" && as_dir=. |
21059 | for ac_exec_ext in '' $ac_executable_extensions; do |
21060 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
21061 | ac_cv_prog_ac_ct_CC="$ac_prog" |
21062 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
21063 | break 2 |
21064 | fi |
21065 | done |
21066 | done |
21067 | IFS=$as_save_IFS |
21068 | |
21069 | fi |
21070 | fi |
21071 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
21072 | if test -n "$ac_ct_CC"; then |
21073 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
21074 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
21075 | else |
21076 | { echo "$as_me:$LINENO: result: no" >&5 |
21077 | echo "${ECHO_T}no" >&6; } |
21078 | fi |
21079 | |
21080 | |
21081 | test -n "$ac_ct_CC" && break |
21082 | done |
21083 | |
21084 | if test "x$ac_ct_CC" = x; then |
21085 | CC="" |
21086 | else |
21087 | case $cross_compiling:$ac_tool_warned in |
21088 | yes:) |
21089 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
21090 | whose name does not start with the host triplet. If you think this |
21091 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
21092 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
21093 | whose name does not start with the host triplet. If you think this |
21094 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
21095 | ac_tool_warned=yes ;; |
21096 | esac |
21097 | CC=$ac_ct_CC |
21098 | fi |
21099 | fi |
21100 | |
21101 | fi |
21102 | |
21103 | |
21104 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
21105 | See \`config.log' for more details." >&5 |
21106 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
21107 | See \`config.log' for more details." >&2;} |
21108 | { (exit 1); exit 1; }; } |
21109 | |
21110 | # Provide some information about the compiler. |
21111 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
21112 | ac_compiler=`set X $ac_compile; echo $2` |
21113 | { (ac_try="$ac_compiler --version >&5" |
21114 | case "(($ac_try" in |
21115 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21116 | *) ac_try_echo=$ac_try;; |
21117 | esac |
21118 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21119 | (eval "$ac_compiler --version >&5") 2>&5 |
21120 | ac_status=$? |
21121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21122 | (exit $ac_status); } |
21123 | { (ac_try="$ac_compiler -v >&5" |
21124 | case "(($ac_try" in |
21125 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21126 | *) ac_try_echo=$ac_try;; |
21127 | esac |
21128 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21129 | (eval "$ac_compiler -v >&5") 2>&5 |
21130 | ac_status=$? |
21131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21132 | (exit $ac_status); } |
21133 | { (ac_try="$ac_compiler -V >&5" |
21134 | case "(($ac_try" in |
21135 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21136 | *) ac_try_echo=$ac_try;; |
21137 | esac |
21138 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21139 | (eval "$ac_compiler -V >&5") 2>&5 |
21140 | ac_status=$? |
21141 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21142 | (exit $ac_status); } |
21143 | |
21144 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
21145 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
21146 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
21147 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21148 | else |
21149 | cat >conftest.$ac_ext <<_ACEOF |
21150 | /* confdefs.h. */ |
21151 | _ACEOF |
21152 | cat confdefs.h >>conftest.$ac_ext |
21153 | cat >>conftest.$ac_ext <<_ACEOF |
21154 | /* end confdefs.h. */ |
21155 | |
21156 | int |
21157 | main () |
21158 | { |
21159 | #ifndef __GNUC__ |
21160 | choke me |
21161 | #endif |
21162 | |
21163 | ; |
21164 | return 0; |
21165 | } |
21166 | _ACEOF |
21167 | rm -f conftest.$ac_objext |
21168 | if { (ac_try="$ac_compile" |
21169 | case "(($ac_try" in |
21170 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21171 | *) ac_try_echo=$ac_try;; |
21172 | esac |
21173 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21174 | (eval "$ac_compile") 2>conftest.er1 |
21175 | ac_status=$? |
21176 | grep -v '^ *+' conftest.er1 >conftest.err |
21177 | rm -f conftest.er1 |
21178 | cat conftest.err >&5 |
21179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21180 | (exit $ac_status); } && |
21181 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21182 | { (case "(($ac_try" in |
21183 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21184 | *) ac_try_echo=$ac_try;; |
21185 | esac |
21186 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21187 | (eval "$ac_try") 2>&5 |
21188 | ac_status=$? |
21189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21190 | (exit $ac_status); }; } && |
21191 | { ac_try='test -s conftest.$ac_objext' |
21192 | { (case "(($ac_try" in |
21193 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21194 | *) ac_try_echo=$ac_try;; |
21195 | esac |
21196 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21197 | (eval "$ac_try") 2>&5 |
21198 | ac_status=$? |
21199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21200 | (exit $ac_status); }; }; then |
21201 | ac_compiler_gnu=yes |
21202 | else |
21203 | echo "$as_me: failed program was:" >&5 |
21204 | sed 's/^/| /' conftest.$ac_ext >&5 |
21205 | |
21206 | ac_compiler_gnu=no |
21207 | fi |
21208 | |
21209 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21210 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
21211 | |
21212 | fi |
21213 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
21214 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
21215 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
21216 | ac_test_CFLAGS=${CFLAGS+set} |
21217 | ac_save_CFLAGS=$CFLAGS |
21218 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
21219 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
21220 | if test "${ac_cv_prog_cc_g+set}" = set; then |
21221 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21222 | else |
21223 | ac_save_c_werror_flag=$ac_c_werror_flag |
21224 | ac_c_werror_flag=yes |
21225 | ac_cv_prog_cc_g=no |
21226 | CFLAGS="-g" |
21227 | cat >conftest.$ac_ext <<_ACEOF |
21228 | /* confdefs.h. */ |
21229 | _ACEOF |
21230 | cat confdefs.h >>conftest.$ac_ext |
21231 | cat >>conftest.$ac_ext <<_ACEOF |
21232 | /* end confdefs.h. */ |
21233 | |
21234 | int |
21235 | main () |
21236 | { |
21237 | |
21238 | ; |
21239 | return 0; |
21240 | } |
21241 | _ACEOF |
21242 | rm -f conftest.$ac_objext |
21243 | if { (ac_try="$ac_compile" |
21244 | case "(($ac_try" in |
21245 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21246 | *) ac_try_echo=$ac_try;; |
21247 | esac |
21248 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21249 | (eval "$ac_compile") 2>conftest.er1 |
21250 | ac_status=$? |
21251 | grep -v '^ *+' conftest.er1 >conftest.err |
21252 | rm -f conftest.er1 |
21253 | cat conftest.err >&5 |
21254 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21255 | (exit $ac_status); } && |
21256 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21257 | { (case "(($ac_try" in |
21258 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21259 | *) ac_try_echo=$ac_try;; |
21260 | esac |
21261 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21262 | (eval "$ac_try") 2>&5 |
21263 | ac_status=$? |
21264 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21265 | (exit $ac_status); }; } && |
21266 | { ac_try='test -s conftest.$ac_objext' |
21267 | { (case "(($ac_try" in |
21268 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21269 | *) ac_try_echo=$ac_try;; |
21270 | esac |
21271 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21272 | (eval "$ac_try") 2>&5 |
21273 | ac_status=$? |
21274 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21275 | (exit $ac_status); }; }; then |
21276 | ac_cv_prog_cc_g=yes |
21277 | else |
21278 | echo "$as_me: failed program was:" >&5 |
21279 | sed 's/^/| /' conftest.$ac_ext >&5 |
21280 | |
21281 | CFLAGS="" |
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 | |
21293 | ; |
21294 | return 0; |
21295 | } |
21296 | _ACEOF |
21297 | rm -f conftest.$ac_objext |
21298 | if { (ac_try="$ac_compile" |
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_compile") 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 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21312 | { (case "(($ac_try" in |
21313 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21314 | *) ac_try_echo=$ac_try;; |
21315 | esac |
21316 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21317 | (eval "$ac_try") 2>&5 |
21318 | ac_status=$? |
21319 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21320 | (exit $ac_status); }; } && |
21321 | { ac_try='test -s conftest.$ac_objext' |
21322 | { (case "(($ac_try" in |
21323 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21324 | *) ac_try_echo=$ac_try;; |
21325 | esac |
21326 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21327 | (eval "$ac_try") 2>&5 |
21328 | ac_status=$? |
21329 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21330 | (exit $ac_status); }; }; then |
21331 | : |
21332 | else |
21333 | echo "$as_me: failed program was:" >&5 |
21334 | sed 's/^/| /' conftest.$ac_ext >&5 |
21335 | |
21336 | ac_c_werror_flag=$ac_save_c_werror_flag |
21337 | CFLAGS="-g" |
21338 | cat >conftest.$ac_ext <<_ACEOF |
21339 | /* confdefs.h. */ |
21340 | _ACEOF |
21341 | cat confdefs.h >>conftest.$ac_ext |
21342 | cat >>conftest.$ac_ext <<_ACEOF |
21343 | /* end confdefs.h. */ |
21344 | |
21345 | int |
21346 | main () |
21347 | { |
21348 | |
21349 | ; |
21350 | return 0; |
21351 | } |
21352 | _ACEOF |
21353 | rm -f conftest.$ac_objext |
21354 | if { (ac_try="$ac_compile" |
21355 | case "(($ac_try" in |
21356 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21357 | *) ac_try_echo=$ac_try;; |
21358 | esac |
21359 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21360 | (eval "$ac_compile") 2>conftest.er1 |
21361 | ac_status=$? |
21362 | grep -v '^ *+' conftest.er1 >conftest.err |
21363 | rm -f conftest.er1 |
21364 | cat conftest.err >&5 |
21365 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21366 | (exit $ac_status); } && |
21367 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21368 | { (case "(($ac_try" in |
21369 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21370 | *) ac_try_echo=$ac_try;; |
21371 | esac |
21372 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21373 | (eval "$ac_try") 2>&5 |
21374 | ac_status=$? |
21375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21376 | (exit $ac_status); }; } && |
21377 | { ac_try='test -s conftest.$ac_objext' |
21378 | { (case "(($ac_try" in |
21379 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21380 | *) ac_try_echo=$ac_try;; |
21381 | esac |
21382 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21383 | (eval "$ac_try") 2>&5 |
21384 | ac_status=$? |
21385 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21386 | (exit $ac_status); }; }; then |
21387 | ac_cv_prog_cc_g=yes |
21388 | else |
21389 | echo "$as_me: failed program was:" >&5 |
21390 | sed 's/^/| /' conftest.$ac_ext >&5 |
21391 | |
21392 | |
21393 | fi |
21394 | |
21395 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21396 | fi |
21397 | |
21398 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21399 | fi |
21400 | |
21401 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21402 | ac_c_werror_flag=$ac_save_c_werror_flag |
21403 | fi |
21404 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
21405 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
21406 | if test "$ac_test_CFLAGS" = set; then |
21407 | CFLAGS=$ac_save_CFLAGS |
21408 | elif test $ac_cv_prog_cc_g = yes; then |
21409 | if test "$GCC" = yes; then |
21410 | CFLAGS="-g -O2" |
21411 | else |
21412 | CFLAGS="-g" |
21413 | fi |
21414 | else |
21415 | if test "$GCC" = yes; then |
21416 | CFLAGS="-O2" |
21417 | else |
21418 | CFLAGS= |
21419 | fi |
21420 | fi |
21421 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
21422 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
21423 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
21424 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21425 | else |
21426 | ac_cv_prog_cc_c89=no |
21427 | ac_save_CC=$CC |
21428 | cat >conftest.$ac_ext <<_ACEOF |
21429 | /* confdefs.h. */ |
21430 | _ACEOF |
21431 | cat confdefs.h >>conftest.$ac_ext |
21432 | cat >>conftest.$ac_ext <<_ACEOF |
21433 | /* end confdefs.h. */ |
21434 | #include <stdarg.h> |
21435 | #include <stdio.h> |
21436 | #include <sys/types.h> |
21437 | #include <sys/stat.h> |
21438 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
21439 | struct buf { int x; }; |
21440 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
21441 | static char *e (p, i) |
21442 | char **p; |
21443 | int i; |
21444 | { |
21445 | return p[i]; |
21446 | } |
21447 | static char *f (char * (*g) (char **, int), char **p, ...) |
21448 | { |
21449 | char *s; |
21450 | va_list v; |
21451 | va_start (v,p); |
21452 | s = g (p, va_arg (v,int)); |
21453 | va_end (v); |
21454 | return s; |
21455 | } |
21456 | |
21457 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
21458 | function prototypes and stuff, but not '\xHH' hex character constants. |
21459 | These don't provoke an error unfortunately, instead are silently treated |
21460 | as 'x'. The following induces an error, until -std is added to get |
21461 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
21462 | array size at least. It's necessary to write '\x00'==0 to get something |
21463 | that's true only with -std. */ |
21464 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
21465 | |
21466 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
21467 | inside strings and character constants. */ |
21468 | #define FOO(x) 'x' |
21469 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
21470 | |
21471 | int test (int i, double x); |
21472 | struct s1 {int (*f) (int a);}; |
21473 | struct s2 {int (*f) (double a);}; |
21474 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
21475 | int argc; |
21476 | char **argv; |
21477 | int |
21478 | main () |
21479 | { |
21480 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
21481 | ; |
21482 | return 0; |
21483 | } |
21484 | _ACEOF |
21485 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
21486 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
21487 | do |
21488 | CC="$ac_save_CC $ac_arg" |
21489 | rm -f conftest.$ac_objext |
21490 | if { (ac_try="$ac_compile" |
21491 | case "(($ac_try" in |
21492 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21493 | *) ac_try_echo=$ac_try;; |
21494 | esac |
21495 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21496 | (eval "$ac_compile") 2>conftest.er1 |
21497 | ac_status=$? |
21498 | grep -v '^ *+' conftest.er1 >conftest.err |
21499 | rm -f conftest.er1 |
21500 | cat conftest.err >&5 |
21501 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21502 | (exit $ac_status); } && |
21503 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21504 | { (case "(($ac_try" in |
21505 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21506 | *) ac_try_echo=$ac_try;; |
21507 | esac |
21508 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21509 | (eval "$ac_try") 2>&5 |
21510 | ac_status=$? |
21511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21512 | (exit $ac_status); }; } && |
21513 | { ac_try='test -s conftest.$ac_objext' |
21514 | { (case "(($ac_try" in |
21515 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21516 | *) ac_try_echo=$ac_try;; |
21517 | esac |
21518 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21519 | (eval "$ac_try") 2>&5 |
21520 | ac_status=$? |
21521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21522 | (exit $ac_status); }; }; then |
21523 | ac_cv_prog_cc_c89=$ac_arg |
21524 | else |
21525 | echo "$as_me: failed program was:" >&5 |
21526 | sed 's/^/| /' conftest.$ac_ext >&5 |
21527 | |
21528 | |
21529 | fi |
21530 | |
21531 | rm -f core conftest.err conftest.$ac_objext |
21532 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
21533 | done |
21534 | rm -f conftest.$ac_ext |
21535 | CC=$ac_save_CC |
21536 | |
21537 | fi |
21538 | # AC_CACHE_VAL |
21539 | case "x$ac_cv_prog_cc_c89" in |
21540 | x) |
21541 | { echo "$as_me:$LINENO: result: none needed" >&5 |
21542 | echo "${ECHO_T}none needed" >&6; } ;; |
21543 | xno) |
21544 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
21545 | echo "${ECHO_T}unsupported" >&6; } ;; |
21546 | *) |
21547 | CC="$CC $ac_cv_prog_cc_c89" |
21548 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
21549 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
21550 | esac |
21551 | |
21552 | |
21553 | ac_ext=c |
21554 | ac_cpp='$CPP $CPPFLAGS' |
21555 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
21556 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
21557 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
21558 | |
21559 | depcc="$CC" am_compiler_list= |
21560 | |
21561 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
21562 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
21563 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
21564 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21565 | else |
21566 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
21567 | # We make a subdir and do the tests there. Otherwise we can end up |
21568 | # making bogus files that we don't know about and never remove. For |
21569 | # instance it was reported that on HP-UX the gcc test will end up |
21570 | # making a dummy file named `D' -- because `-MD' means `put the output |
21571 | # in D'. |
21572 | mkdir conftest.dir |
21573 | # Copy depcomp to subdir because otherwise we won't find it if we're |
21574 | # using a relative directory. |
21575 | cp "$am_depcomp" conftest.dir |
21576 | cd conftest.dir |
21577 | # We will build objects and dependencies in a subdirectory because |
21578 | # it helps to detect inapplicable dependency modes. For instance |
21579 | # both Tru64's cc and ICC support -MD to output dependencies as a |
21580 | # side effect of compilation, but ICC will put the dependencies in |
21581 | # the current directory while Tru64 will put them in the object |
21582 | # directory. |
21583 | mkdir sub |
21584 | |
21585 | am_cv_CC_dependencies_compiler_type=none |
21586 | if test "$am_compiler_list" = ""; then |
21587 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
21588 | fi |
21589 | for depmode in $am_compiler_list; do |
21590 | # Setup a source with many dependencies, because some compilers |
21591 | # like to wrap large dependency lists on column 80 (with \), and |
21592 | # we should not choose a depcomp mode which is confused by this. |
21593 | # |
21594 | # We need to recreate these files for each test, as the compiler may |
21595 | # overwrite some of them when testing with obscure command lines. |
21596 | # This happens at least with the AIX C compiler. |
21597 | : > sub/conftest.c |
21598 | for i in 1 2 3 4 5 6; do |
21599 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
21600 | : > sub/conftst$i.h |
21601 | done |
21602 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
21603 | |
21604 | case $depmode in |
21605 | nosideeffect) |
21606 | # after this tag, mechanisms are not by side-effect, so they'll |
21607 | # only be used when explicitly requested |
21608 | if test "x$enable_dependency_tracking" = xyes; then |
21609 | continue |
21610 | else |
21611 | break |
21612 | fi |
21613 | ;; |
21614 | none) break ;; |
21615 | esac |
21616 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
21617 | # mode. It turns out that the SunPro C++ compiler does not properly |
21618 | # handle `-M -o', and we need to detect this. |
21619 | if depmode=$depmode \ |
21620 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
21621 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
21622 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
21623 | >/dev/null 2>conftest.err && |
21624 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
21625 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
21626 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
21627 | # icc doesn't choke on unknown options, it will just issue warnings |
21628 | # (even with -Werror). So we grep stderr for any message |
21629 | # that says an option was ignored. |
21630 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
21631 | am_cv_CC_dependencies_compiler_type=$depmode |
21632 | break |
21633 | fi |
21634 | fi |
21635 | done |
21636 | |
21637 | cd .. |
21638 | rm -rf conftest.dir |
21639 | else |
21640 | am_cv_CC_dependencies_compiler_type=none |
21641 | fi |
21642 | |
21643 | fi |
21644 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
21645 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
21646 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
21647 | |
21648 | |
21649 | |
21650 | if |
21651 | test "x$enable_dependency_tracking" != xno \ |
21652 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
21653 | am__fastdepCC_TRUE= |
21654 | am__fastdepCC_FALSE='#' |
21655 | else |
21656 | am__fastdepCC_TRUE='#' |
21657 | am__fastdepCC_FALSE= |
21658 | fi |
21659 | |
21660 | |
21661 | |
21662 | # Checks for libraries. |
21663 | { echo "$as_me:$LINENO: checking for poptGetNextOpt in -lpopt" >&5 |
21664 | echo $ECHO_N "checking for poptGetNextOpt in -lpopt... $ECHO_C" >&6; } |
21665 | if test "${ac_cv_lib_popt_poptGetNextOpt+set}" = set; then |
21666 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21667 | else |
21668 | ac_check_lib_save_LIBS=$LIBS |
21669 | LIBS="-lpopt $LIBS" |
21670 | cat >conftest.$ac_ext <<_ACEOF |
21671 | /* confdefs.h. */ |
21672 | _ACEOF |
21673 | cat confdefs.h >>conftest.$ac_ext |
21674 | cat >>conftest.$ac_ext <<_ACEOF |
21675 | /* end confdefs.h. */ |
21676 | |
21677 | /* Override any GCC internal prototype to avoid an error. |
21678 | Use char because int might match the return type of a GCC |
21679 | builtin and then its argument prototype would still apply. */ |
21680 | #ifdef __cplusplus |
21681 | extern "C" |
21682 | #endif |
21683 | char poptGetNextOpt (); |
21684 | int |
21685 | main () |
21686 | { |
21687 | return poptGetNextOpt (); |
21688 | ; |
21689 | return 0; |
21690 | } |
21691 | _ACEOF |
21692 | rm -f conftest.$ac_objext conftest$ac_exeext |
21693 | if { (ac_try="$ac_link" |
21694 | case "(($ac_try" in |
21695 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21696 | *) ac_try_echo=$ac_try;; |
21697 | esac |
21698 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21699 | (eval "$ac_link") 2>conftest.er1 |
21700 | ac_status=$? |
21701 | grep -v '^ *+' conftest.er1 >conftest.err |
21702 | rm -f conftest.er1 |
21703 | cat conftest.err >&5 |
21704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21705 | (exit $ac_status); } && |
21706 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21707 | { (case "(($ac_try" in |
21708 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21709 | *) ac_try_echo=$ac_try;; |
21710 | esac |
21711 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21712 | (eval "$ac_try") 2>&5 |
21713 | ac_status=$? |
21714 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21715 | (exit $ac_status); }; } && |
21716 | { ac_try='test -s conftest$ac_exeext' |
21717 | { (case "(($ac_try" in |
21718 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21719 | *) ac_try_echo=$ac_try;; |
21720 | esac |
21721 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21722 | (eval "$ac_try") 2>&5 |
21723 | ac_status=$? |
21724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21725 | (exit $ac_status); }; }; then |
21726 | ac_cv_lib_popt_poptGetNextOpt=yes |
21727 | else |
21728 | echo "$as_me: failed program was:" >&5 |
21729 | sed 's/^/| /' conftest.$ac_ext >&5 |
21730 | |
21731 | ac_cv_lib_popt_poptGetNextOpt=no |
21732 | fi |
21733 | |
21734 | rm -f core conftest.err conftest.$ac_objext \ |
21735 | conftest$ac_exeext conftest.$ac_ext |
21736 | LIBS=$ac_check_lib_save_LIBS |
21737 | fi |
21738 | { echo "$as_me:$LINENO: result: $ac_cv_lib_popt_poptGetNextOpt" >&5 |
21739 | echo "${ECHO_T}$ac_cv_lib_popt_poptGetNextOpt" >&6; } |
21740 | if test $ac_cv_lib_popt_poptGetNextOpt = yes; then |
21741 | POPT_LIBS="-lpopt" |
21742 | else |
21743 | { { echo "$as_me:$LINENO: error: libpopt is required in order to compile LinuxTraceToolkit" >&5 |
21744 | echo "$as_me: error: libpopt is required in order to compile LinuxTraceToolkit" >&2;} |
21745 | { (exit 1); exit 1; }; } |
21746 | fi |
21747 | |
21748 | #AC_CHECK_LIB([m], [round], M_LIBS="-lm",AC_MSG_ERROR([Mathematical libraries are missing.]) ) |
21749 | |
21750 | { echo "$as_me:$LINENO: checking for forkpty in -lutil" >&5 |
21751 | echo $ECHO_N "checking for forkpty in -lutil... $ECHO_C" >&6; } |
21752 | if test "${ac_cv_lib_util_forkpty+set}" = set; then |
21753 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21754 | else |
21755 | ac_check_lib_save_LIBS=$LIBS |
21756 | LIBS="-lutil $LIBS" |
21757 | cat >conftest.$ac_ext <<_ACEOF |
21758 | /* confdefs.h. */ |
21759 | _ACEOF |
21760 | cat confdefs.h >>conftest.$ac_ext |
21761 | cat >>conftest.$ac_ext <<_ACEOF |
21762 | /* end confdefs.h. */ |
21763 | |
21764 | /* Override any GCC internal prototype to avoid an error. |
21765 | Use char because int might match the return type of a GCC |
21766 | builtin and then its argument prototype would still apply. */ |
21767 | #ifdef __cplusplus |
21768 | extern "C" |
21769 | #endif |
21770 | char forkpty (); |
21771 | int |
21772 | main () |
21773 | { |
21774 | return forkpty (); |
21775 | ; |
21776 | return 0; |
21777 | } |
21778 | _ACEOF |
21779 | rm -f conftest.$ac_objext conftest$ac_exeext |
21780 | if { (ac_try="$ac_link" |
21781 | case "(($ac_try" in |
21782 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21783 | *) ac_try_echo=$ac_try;; |
21784 | esac |
21785 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21786 | (eval "$ac_link") 2>conftest.er1 |
21787 | ac_status=$? |
21788 | grep -v '^ *+' conftest.er1 >conftest.err |
21789 | rm -f conftest.er1 |
21790 | cat conftest.err >&5 |
21791 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21792 | (exit $ac_status); } && |
21793 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21794 | { (case "(($ac_try" in |
21795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21796 | *) ac_try_echo=$ac_try;; |
21797 | esac |
21798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21799 | (eval "$ac_try") 2>&5 |
21800 | ac_status=$? |
21801 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21802 | (exit $ac_status); }; } && |
21803 | { ac_try='test -s conftest$ac_exeext' |
21804 | { (case "(($ac_try" in |
21805 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21806 | *) ac_try_echo=$ac_try;; |
21807 | esac |
21808 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21809 | (eval "$ac_try") 2>&5 |
21810 | ac_status=$? |
21811 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21812 | (exit $ac_status); }; }; then |
21813 | ac_cv_lib_util_forkpty=yes |
21814 | else |
21815 | echo "$as_me: failed program was:" >&5 |
21816 | sed 's/^/| /' conftest.$ac_ext >&5 |
21817 | |
21818 | ac_cv_lib_util_forkpty=no |
21819 | fi |
21820 | |
21821 | rm -f core conftest.err conftest.$ac_objext \ |
21822 | conftest$ac_exeext conftest.$ac_ext |
21823 | LIBS=$ac_check_lib_save_LIBS |
21824 | fi |
21825 | { echo "$as_me:$LINENO: result: $ac_cv_lib_util_forkpty" >&5 |
21826 | echo "${ECHO_T}$ac_cv_lib_util_forkpty" >&6; } |
21827 | if test $ac_cv_lib_util_forkpty = yes; then |
21828 | UTIL_LIBS="-lutil" |
21829 | else |
21830 | { { echo "$as_me:$LINENO: error: libutil is |
21831 | required in order to compile LinuxTraceToolkit" >&5 |
21832 | echo "$as_me: error: libutil is |
21833 | required in order to compile LinuxTraceToolkit" >&2;} |
21834 | { (exit 1); exit 1; }; } |
21835 | fi |
21836 | |
21837 | |
21838 | |
21839 | # pthread for lttd |
21840 | #AC_CHECK_LIB(pthread, pthread_join,[THREAD_LIBS="-lpthread"], AC_MSG_ERROR([LinuxThreads is required in order to compile lttd])) |
21841 | |
21842 | # Checks for header files. |
21843 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
21844 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
21845 | if test "${ac_cv_header_stdc+set}" = set; then |
21846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
21847 | else |
21848 | cat >conftest.$ac_ext <<_ACEOF |
21849 | /* confdefs.h. */ |
21850 | _ACEOF |
21851 | cat confdefs.h >>conftest.$ac_ext |
21852 | cat >>conftest.$ac_ext <<_ACEOF |
21853 | /* end confdefs.h. */ |
21854 | #include <stdlib.h> |
21855 | #include <stdarg.h> |
21856 | #include <string.h> |
21857 | #include <float.h> |
21858 | |
21859 | int |
21860 | main () |
21861 | { |
21862 | |
21863 | ; |
21864 | return 0; |
21865 | } |
21866 | _ACEOF |
21867 | rm -f conftest.$ac_objext |
21868 | if { (ac_try="$ac_compile" |
21869 | case "(($ac_try" in |
21870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21871 | *) ac_try_echo=$ac_try;; |
21872 | esac |
21873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21874 | (eval "$ac_compile") 2>conftest.er1 |
21875 | ac_status=$? |
21876 | grep -v '^ *+' conftest.er1 >conftest.err |
21877 | rm -f conftest.er1 |
21878 | cat conftest.err >&5 |
21879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21880 | (exit $ac_status); } && |
21881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
21882 | { (case "(($ac_try" in |
21883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21884 | *) ac_try_echo=$ac_try;; |
21885 | esac |
21886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21887 | (eval "$ac_try") 2>&5 |
21888 | ac_status=$? |
21889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21890 | (exit $ac_status); }; } && |
21891 | { ac_try='test -s conftest.$ac_objext' |
21892 | { (case "(($ac_try" in |
21893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21894 | *) ac_try_echo=$ac_try;; |
21895 | esac |
21896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21897 | (eval "$ac_try") 2>&5 |
21898 | ac_status=$? |
21899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21900 | (exit $ac_status); }; }; then |
21901 | ac_cv_header_stdc=yes |
21902 | else |
21903 | echo "$as_me: failed program was:" >&5 |
21904 | sed 's/^/| /' conftest.$ac_ext >&5 |
21905 | |
21906 | ac_cv_header_stdc=no |
21907 | fi |
21908 | |
21909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
21910 | |
21911 | if test $ac_cv_header_stdc = yes; then |
21912 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
21913 | cat >conftest.$ac_ext <<_ACEOF |
21914 | /* confdefs.h. */ |
21915 | _ACEOF |
21916 | cat confdefs.h >>conftest.$ac_ext |
21917 | cat >>conftest.$ac_ext <<_ACEOF |
21918 | /* end confdefs.h. */ |
21919 | #include <string.h> |
21920 | |
21921 | _ACEOF |
21922 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
21923 | $EGREP "memchr" >/dev/null 2>&1; then |
21924 | : |
21925 | else |
21926 | ac_cv_header_stdc=no |
21927 | fi |
21928 | rm -f conftest* |
21929 | |
21930 | fi |
21931 | |
21932 | if test $ac_cv_header_stdc = yes; then |
21933 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
21934 | cat >conftest.$ac_ext <<_ACEOF |
21935 | /* confdefs.h. */ |
21936 | _ACEOF |
21937 | cat confdefs.h >>conftest.$ac_ext |
21938 | cat >>conftest.$ac_ext <<_ACEOF |
21939 | /* end confdefs.h. */ |
21940 | #include <stdlib.h> |
21941 | |
21942 | _ACEOF |
21943 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
21944 | $EGREP "free" >/dev/null 2>&1; then |
21945 | : |
21946 | else |
21947 | ac_cv_header_stdc=no |
21948 | fi |
21949 | rm -f conftest* |
21950 | |
21951 | fi |
21952 | |
21953 | if test $ac_cv_header_stdc = yes; then |
21954 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
21955 | if test "$cross_compiling" = yes; then |
21956 | : |
21957 | else |
21958 | cat >conftest.$ac_ext <<_ACEOF |
21959 | /* confdefs.h. */ |
21960 | _ACEOF |
21961 | cat confdefs.h >>conftest.$ac_ext |
21962 | cat >>conftest.$ac_ext <<_ACEOF |
21963 | /* end confdefs.h. */ |
21964 | #include <ctype.h> |
21965 | #include <stdlib.h> |
21966 | #if ((' ' & 0x0FF) == 0x020) |
21967 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
21968 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
21969 | #else |
21970 | # define ISLOWER(c) \ |
21971 | (('a' <= (c) && (c) <= 'i') \ |
21972 | || ('j' <= (c) && (c) <= 'r') \ |
21973 | || ('s' <= (c) && (c) <= 'z')) |
21974 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
21975 | #endif |
21976 | |
21977 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
21978 | int |
21979 | main () |
21980 | { |
21981 | int i; |
21982 | for (i = 0; i < 256; i++) |
21983 | if (XOR (islower (i), ISLOWER (i)) |
21984 | || toupper (i) != TOUPPER (i)) |
21985 | return 2; |
21986 | return 0; |
21987 | } |
21988 | _ACEOF |
21989 | rm -f conftest$ac_exeext |
21990 | if { (ac_try="$ac_link" |
21991 | case "(($ac_try" in |
21992 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
21993 | *) ac_try_echo=$ac_try;; |
21994 | esac |
21995 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
21996 | (eval "$ac_link") 2>&5 |
21997 | ac_status=$? |
21998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
21999 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
22000 | { (case "(($ac_try" in |
22001 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22002 | *) ac_try_echo=$ac_try;; |
22003 | esac |
22004 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22005 | (eval "$ac_try") 2>&5 |
22006 | ac_status=$? |
22007 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22008 | (exit $ac_status); }; }; then |
22009 | : |
22010 | else |
22011 | echo "$as_me: program exited with status $ac_status" >&5 |
22012 | echo "$as_me: failed program was:" >&5 |
22013 | sed 's/^/| /' conftest.$ac_ext >&5 |
22014 | |
22015 | ( exit $ac_status ) |
22016 | ac_cv_header_stdc=no |
22017 | fi |
22018 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
22019 | fi |
22020 | |
22021 | |
22022 | fi |
22023 | fi |
22024 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
22025 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
22026 | if test $ac_cv_header_stdc = yes; then |
22027 | |
22028 | cat >>confdefs.h <<\_ACEOF |
22029 | #define STDC_HEADERS 1 |
22030 | _ACEOF |
22031 | |
22032 | fi |
22033 | |
22034 | |
22035 | |
22036 | |
22037 | |
22038 | |
22039 | |
22040 | for ac_header in fcntl.h stdlib.h string.h sys/time.h unistd.h pthread.h |
22041 | do |
22042 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
22043 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
22044 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22045 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
22046 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
22047 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22048 | fi |
22049 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22050 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22051 | echo "${ECHO_T}$ac_res" >&6; } |
22052 | else |
22053 | # Is the header compilable? |
22054 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
22055 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
22056 | cat >conftest.$ac_ext <<_ACEOF |
22057 | /* confdefs.h. */ |
22058 | _ACEOF |
22059 | cat confdefs.h >>conftest.$ac_ext |
22060 | cat >>conftest.$ac_ext <<_ACEOF |
22061 | /* end confdefs.h. */ |
22062 | $ac_includes_default |
22063 | #include <$ac_header> |
22064 | _ACEOF |
22065 | rm -f conftest.$ac_objext |
22066 | if { (ac_try="$ac_compile" |
22067 | case "(($ac_try" in |
22068 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22069 | *) ac_try_echo=$ac_try;; |
22070 | esac |
22071 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22072 | (eval "$ac_compile") 2>conftest.er1 |
22073 | ac_status=$? |
22074 | grep -v '^ *+' conftest.er1 >conftest.err |
22075 | rm -f conftest.er1 |
22076 | cat conftest.err >&5 |
22077 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22078 | (exit $ac_status); } && |
22079 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
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_try") 2>&5 |
22086 | ac_status=$? |
22087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22088 | (exit $ac_status); }; } && |
22089 | { ac_try='test -s conftest.$ac_objext' |
22090 | { (case "(($ac_try" in |
22091 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22092 | *) ac_try_echo=$ac_try;; |
22093 | esac |
22094 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22095 | (eval "$ac_try") 2>&5 |
22096 | ac_status=$? |
22097 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22098 | (exit $ac_status); }; }; then |
22099 | ac_header_compiler=yes |
22100 | else |
22101 | echo "$as_me: failed program was:" >&5 |
22102 | sed 's/^/| /' conftest.$ac_ext >&5 |
22103 | |
22104 | ac_header_compiler=no |
22105 | fi |
22106 | |
22107 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22108 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
22109 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
22110 | |
22111 | # Is the header present? |
22112 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
22113 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
22114 | cat >conftest.$ac_ext <<_ACEOF |
22115 | /* confdefs.h. */ |
22116 | _ACEOF |
22117 | cat confdefs.h >>conftest.$ac_ext |
22118 | cat >>conftest.$ac_ext <<_ACEOF |
22119 | /* end confdefs.h. */ |
22120 | #include <$ac_header> |
22121 | _ACEOF |
22122 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
22123 | case "(($ac_try" in |
22124 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22125 | *) ac_try_echo=$ac_try;; |
22126 | esac |
22127 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22128 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
22129 | ac_status=$? |
22130 | grep -v '^ *+' conftest.er1 >conftest.err |
22131 | rm -f conftest.er1 |
22132 | cat conftest.err >&5 |
22133 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22134 | (exit $ac_status); } >/dev/null; then |
22135 | if test -s conftest.err; then |
22136 | ac_cpp_err=$ac_c_preproc_warn_flag |
22137 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
22138 | else |
22139 | ac_cpp_err= |
22140 | fi |
22141 | else |
22142 | ac_cpp_err=yes |
22143 | fi |
22144 | if test -z "$ac_cpp_err"; then |
22145 | ac_header_preproc=yes |
22146 | else |
22147 | echo "$as_me: failed program was:" >&5 |
22148 | sed 's/^/| /' conftest.$ac_ext >&5 |
22149 | |
22150 | ac_header_preproc=no |
22151 | fi |
22152 | |
22153 | rm -f conftest.err conftest.$ac_ext |
22154 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
22155 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
22156 | |
22157 | # So? What about this header? |
22158 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
22159 | yes:no: ) |
22160 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
22161 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
22162 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
22163 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
22164 | ac_header_preproc=yes |
22165 | ;; |
22166 | no:yes:* ) |
22167 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
22168 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
22169 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
22170 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
22171 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
22172 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
22173 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
22174 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
22175 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
22176 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
22177 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
22178 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
22179 | ( cat <<\_ASBOX |
22180 | ## --------------------------------- ## |
22181 | ## Report this to BUG-REPORT-ADDRESS ## |
22182 | ## --------------------------------- ## |
22183 | _ASBOX |
22184 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
22185 | ;; |
22186 | esac |
22187 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
22188 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
22189 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
22190 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22191 | else |
22192 | eval "$as_ac_Header=\$ac_header_preproc" |
22193 | fi |
22194 | ac_res=`eval echo '${'$as_ac_Header'}'` |
22195 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
22196 | echo "${ECHO_T}$ac_res" >&6; } |
22197 | |
22198 | fi |
22199 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
22200 | cat >>confdefs.h <<_ACEOF |
22201 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
22202 | _ACEOF |
22203 | |
22204 | fi |
22205 | |
22206 | done |
22207 | |
22208 | |
22209 | |
22210 | { echo "$as_me:$LINENO: checking for strerror in -lcposix" >&5 |
22211 | echo $ECHO_N "checking for strerror in -lcposix... $ECHO_C" >&6; } |
22212 | if test "${ac_cv_lib_cposix_strerror+set}" = set; then |
22213 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22214 | else |
22215 | ac_check_lib_save_LIBS=$LIBS |
22216 | LIBS="-lcposix $LIBS" |
22217 | cat >conftest.$ac_ext <<_ACEOF |
22218 | /* confdefs.h. */ |
22219 | _ACEOF |
22220 | cat confdefs.h >>conftest.$ac_ext |
22221 | cat >>conftest.$ac_ext <<_ACEOF |
22222 | /* end confdefs.h. */ |
22223 | |
22224 | /* Override any GCC internal prototype to avoid an error. |
22225 | Use char because int might match the return type of a GCC |
22226 | builtin and then its argument prototype would still apply. */ |
22227 | #ifdef __cplusplus |
22228 | extern "C" |
22229 | #endif |
22230 | char strerror (); |
22231 | int |
22232 | main () |
22233 | { |
22234 | return strerror (); |
22235 | ; |
22236 | return 0; |
22237 | } |
22238 | _ACEOF |
22239 | rm -f conftest.$ac_objext conftest$ac_exeext |
22240 | if { (ac_try="$ac_link" |
22241 | case "(($ac_try" in |
22242 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22243 | *) ac_try_echo=$ac_try;; |
22244 | esac |
22245 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22246 | (eval "$ac_link") 2>conftest.er1 |
22247 | ac_status=$? |
22248 | grep -v '^ *+' conftest.er1 >conftest.err |
22249 | rm -f conftest.er1 |
22250 | cat conftest.err >&5 |
22251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22252 | (exit $ac_status); } && |
22253 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22254 | { (case "(($ac_try" in |
22255 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22256 | *) ac_try_echo=$ac_try;; |
22257 | esac |
22258 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22259 | (eval "$ac_try") 2>&5 |
22260 | ac_status=$? |
22261 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22262 | (exit $ac_status); }; } && |
22263 | { ac_try='test -s conftest$ac_exeext' |
22264 | { (case "(($ac_try" in |
22265 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22266 | *) ac_try_echo=$ac_try;; |
22267 | esac |
22268 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22269 | (eval "$ac_try") 2>&5 |
22270 | ac_status=$? |
22271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22272 | (exit $ac_status); }; }; then |
22273 | ac_cv_lib_cposix_strerror=yes |
22274 | else |
22275 | echo "$as_me: failed program was:" >&5 |
22276 | sed 's/^/| /' conftest.$ac_ext >&5 |
22277 | |
22278 | ac_cv_lib_cposix_strerror=no |
22279 | fi |
22280 | |
22281 | rm -f core conftest.err conftest.$ac_objext \ |
22282 | conftest$ac_exeext conftest.$ac_ext |
22283 | LIBS=$ac_check_lib_save_LIBS |
22284 | fi |
22285 | { echo "$as_me:$LINENO: result: $ac_cv_lib_cposix_strerror" >&5 |
22286 | echo "${ECHO_T}$ac_cv_lib_cposix_strerror" >&6; } |
22287 | if test $ac_cv_lib_cposix_strerror = yes; then |
22288 | LIBS="$LIBS -lcposix" |
22289 | fi |
22290 | |
22291 | |
22292 | |
22293 | ac_ext=c |
22294 | ac_cpp='$CPP $CPPFLAGS' |
22295 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
22296 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
22297 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
22298 | if test -n "$ac_tool_prefix"; then |
22299 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. |
22300 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 |
22301 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22302 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
22303 | if test "${ac_cv_prog_CC+set}" = set; then |
22304 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22305 | else |
22306 | if test -n "$CC"; then |
22307 | ac_cv_prog_CC="$CC" # Let the user override the test. |
22308 | else |
22309 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22310 | for as_dir in $PATH |
22311 | do |
22312 | IFS=$as_save_IFS |
22313 | test -z "$as_dir" && as_dir=. |
22314 | for ac_exec_ext in '' $ac_executable_extensions; do |
22315 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
22316 | ac_cv_prog_CC="${ac_tool_prefix}gcc" |
22317 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
22318 | break 2 |
22319 | fi |
22320 | done |
22321 | done |
22322 | IFS=$as_save_IFS |
22323 | |
22324 | fi |
22325 | fi |
22326 | CC=$ac_cv_prog_CC |
22327 | if test -n "$CC"; then |
22328 | { echo "$as_me:$LINENO: result: $CC" >&5 |
22329 | echo "${ECHO_T}$CC" >&6; } |
22330 | else |
22331 | { echo "$as_me:$LINENO: result: no" >&5 |
22332 | echo "${ECHO_T}no" >&6; } |
22333 | fi |
22334 | |
22335 | |
22336 | fi |
22337 | if test -z "$ac_cv_prog_CC"; then |
22338 | ac_ct_CC=$CC |
22339 | # Extract the first word of "gcc", so it can be a program name with args. |
22340 | set dummy gcc; ac_word=$2 |
22341 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22342 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
22343 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
22344 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22345 | else |
22346 | if test -n "$ac_ct_CC"; then |
22347 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
22348 | else |
22349 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22350 | for as_dir in $PATH |
22351 | do |
22352 | IFS=$as_save_IFS |
22353 | test -z "$as_dir" && as_dir=. |
22354 | for ac_exec_ext in '' $ac_executable_extensions; do |
22355 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
22356 | ac_cv_prog_ac_ct_CC="gcc" |
22357 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
22358 | break 2 |
22359 | fi |
22360 | done |
22361 | done |
22362 | IFS=$as_save_IFS |
22363 | |
22364 | fi |
22365 | fi |
22366 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
22367 | if test -n "$ac_ct_CC"; then |
22368 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
22369 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
22370 | else |
22371 | { echo "$as_me:$LINENO: result: no" >&5 |
22372 | echo "${ECHO_T}no" >&6; } |
22373 | fi |
22374 | |
22375 | if test "x$ac_ct_CC" = x; then |
22376 | CC="" |
22377 | else |
22378 | case $cross_compiling:$ac_tool_warned in |
22379 | yes:) |
22380 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
22381 | whose name does not start with the host triplet. If you think this |
22382 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
22383 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
22384 | whose name does not start with the host triplet. If you think this |
22385 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
22386 | ac_tool_warned=yes ;; |
22387 | esac |
22388 | CC=$ac_ct_CC |
22389 | fi |
22390 | else |
22391 | CC="$ac_cv_prog_CC" |
22392 | fi |
22393 | |
22394 | if test -z "$CC"; then |
22395 | if test -n "$ac_tool_prefix"; then |
22396 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. |
22397 | set dummy ${ac_tool_prefix}cc; ac_word=$2 |
22398 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22399 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
22400 | if test "${ac_cv_prog_CC+set}" = set; then |
22401 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22402 | else |
22403 | if test -n "$CC"; then |
22404 | ac_cv_prog_CC="$CC" # Let the user override the test. |
22405 | else |
22406 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22407 | for as_dir in $PATH |
22408 | do |
22409 | IFS=$as_save_IFS |
22410 | test -z "$as_dir" && as_dir=. |
22411 | for ac_exec_ext in '' $ac_executable_extensions; do |
22412 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
22413 | ac_cv_prog_CC="${ac_tool_prefix}cc" |
22414 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
22415 | break 2 |
22416 | fi |
22417 | done |
22418 | done |
22419 | IFS=$as_save_IFS |
22420 | |
22421 | fi |
22422 | fi |
22423 | CC=$ac_cv_prog_CC |
22424 | if test -n "$CC"; then |
22425 | { echo "$as_me:$LINENO: result: $CC" >&5 |
22426 | echo "${ECHO_T}$CC" >&6; } |
22427 | else |
22428 | { echo "$as_me:$LINENO: result: no" >&5 |
22429 | echo "${ECHO_T}no" >&6; } |
22430 | fi |
22431 | |
22432 | |
22433 | fi |
22434 | fi |
22435 | if test -z "$CC"; then |
22436 | # Extract the first word of "cc", so it can be a program name with args. |
22437 | set dummy cc; ac_word=$2 |
22438 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22439 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
22440 | if test "${ac_cv_prog_CC+set}" = set; then |
22441 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22442 | else |
22443 | if test -n "$CC"; then |
22444 | ac_cv_prog_CC="$CC" # Let the user override the test. |
22445 | else |
22446 | ac_prog_rejected=no |
22447 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22448 | for as_dir in $PATH |
22449 | do |
22450 | IFS=$as_save_IFS |
22451 | test -z "$as_dir" && as_dir=. |
22452 | for ac_exec_ext in '' $ac_executable_extensions; do |
22453 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
22454 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then |
22455 | ac_prog_rejected=yes |
22456 | continue |
22457 | fi |
22458 | ac_cv_prog_CC="cc" |
22459 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
22460 | break 2 |
22461 | fi |
22462 | done |
22463 | done |
22464 | IFS=$as_save_IFS |
22465 | |
22466 | if test $ac_prog_rejected = yes; then |
22467 | # We found a bogon in the path, so make sure we never use it. |
22468 | set dummy $ac_cv_prog_CC |
22469 | shift |
22470 | if test $# != 0; then |
22471 | # We chose a different compiler from the bogus one. |
22472 | # However, it has the same basename, so the bogon will be chosen |
22473 | # first if we set CC to just the basename; use the full file name. |
22474 | shift |
22475 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
22476 | fi |
22477 | fi |
22478 | fi |
22479 | fi |
22480 | CC=$ac_cv_prog_CC |
22481 | if test -n "$CC"; then |
22482 | { echo "$as_me:$LINENO: result: $CC" >&5 |
22483 | echo "${ECHO_T}$CC" >&6; } |
22484 | else |
22485 | { echo "$as_me:$LINENO: result: no" >&5 |
22486 | echo "${ECHO_T}no" >&6; } |
22487 | fi |
22488 | |
22489 | |
22490 | fi |
22491 | if test -z "$CC"; then |
22492 | if test -n "$ac_tool_prefix"; then |
22493 | for ac_prog in cl.exe |
22494 | do |
22495 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. |
22496 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 |
22497 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22498 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
22499 | if test "${ac_cv_prog_CC+set}" = set; then |
22500 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22501 | else |
22502 | if test -n "$CC"; then |
22503 | ac_cv_prog_CC="$CC" # Let the user override the test. |
22504 | else |
22505 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22506 | for as_dir in $PATH |
22507 | do |
22508 | IFS=$as_save_IFS |
22509 | test -z "$as_dir" && as_dir=. |
22510 | for ac_exec_ext in '' $ac_executable_extensions; do |
22511 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
22512 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" |
22513 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
22514 | break 2 |
22515 | fi |
22516 | done |
22517 | done |
22518 | IFS=$as_save_IFS |
22519 | |
22520 | fi |
22521 | fi |
22522 | CC=$ac_cv_prog_CC |
22523 | if test -n "$CC"; then |
22524 | { echo "$as_me:$LINENO: result: $CC" >&5 |
22525 | echo "${ECHO_T}$CC" >&6; } |
22526 | else |
22527 | { echo "$as_me:$LINENO: result: no" >&5 |
22528 | echo "${ECHO_T}no" >&6; } |
22529 | fi |
22530 | |
22531 | |
22532 | test -n "$CC" && break |
22533 | done |
22534 | fi |
22535 | if test -z "$CC"; then |
22536 | ac_ct_CC=$CC |
22537 | for ac_prog in cl.exe |
22538 | do |
22539 | # Extract the first word of "$ac_prog", so it can be a program name with args. |
22540 | set dummy $ac_prog; ac_word=$2 |
22541 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
22542 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
22543 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then |
22544 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22545 | else |
22546 | if test -n "$ac_ct_CC"; then |
22547 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. |
22548 | else |
22549 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
22550 | for as_dir in $PATH |
22551 | do |
22552 | IFS=$as_save_IFS |
22553 | test -z "$as_dir" && as_dir=. |
22554 | for ac_exec_ext in '' $ac_executable_extensions; do |
22555 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
22556 | ac_cv_prog_ac_ct_CC="$ac_prog" |
22557 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
22558 | break 2 |
22559 | fi |
22560 | done |
22561 | done |
22562 | IFS=$as_save_IFS |
22563 | |
22564 | fi |
22565 | fi |
22566 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
22567 | if test -n "$ac_ct_CC"; then |
22568 | { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 |
22569 | echo "${ECHO_T}$ac_ct_CC" >&6; } |
22570 | else |
22571 | { echo "$as_me:$LINENO: result: no" >&5 |
22572 | echo "${ECHO_T}no" >&6; } |
22573 | fi |
22574 | |
22575 | |
22576 | test -n "$ac_ct_CC" && break |
22577 | done |
22578 | |
22579 | if test "x$ac_ct_CC" = x; then |
22580 | CC="" |
22581 | else |
22582 | case $cross_compiling:$ac_tool_warned in |
22583 | yes:) |
22584 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
22585 | whose name does not start with the host triplet. If you think this |
22586 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
22587 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
22588 | whose name does not start with the host triplet. If you think this |
22589 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
22590 | ac_tool_warned=yes ;; |
22591 | esac |
22592 | CC=$ac_ct_CC |
22593 | fi |
22594 | fi |
22595 | |
22596 | fi |
22597 | |
22598 | |
22599 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH |
22600 | See \`config.log' for more details." >&5 |
22601 | echo "$as_me: error: no acceptable C compiler found in \$PATH |
22602 | See \`config.log' for more details." >&2;} |
22603 | { (exit 1); exit 1; }; } |
22604 | |
22605 | # Provide some information about the compiler. |
22606 | echo "$as_me:$LINENO: checking for C compiler version" >&5 |
22607 | ac_compiler=`set X $ac_compile; echo $2` |
22608 | { (ac_try="$ac_compiler --version >&5" |
22609 | case "(($ac_try" in |
22610 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22611 | *) ac_try_echo=$ac_try;; |
22612 | esac |
22613 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22614 | (eval "$ac_compiler --version >&5") 2>&5 |
22615 | ac_status=$? |
22616 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22617 | (exit $ac_status); } |
22618 | { (ac_try="$ac_compiler -v >&5" |
22619 | case "(($ac_try" in |
22620 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22621 | *) ac_try_echo=$ac_try;; |
22622 | esac |
22623 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22624 | (eval "$ac_compiler -v >&5") 2>&5 |
22625 | ac_status=$? |
22626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22627 | (exit $ac_status); } |
22628 | { (ac_try="$ac_compiler -V >&5" |
22629 | case "(($ac_try" in |
22630 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22631 | *) ac_try_echo=$ac_try;; |
22632 | esac |
22633 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22634 | (eval "$ac_compiler -V >&5") 2>&5 |
22635 | ac_status=$? |
22636 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22637 | (exit $ac_status); } |
22638 | |
22639 | { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 |
22640 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; } |
22641 | if test "${ac_cv_c_compiler_gnu+set}" = set; then |
22642 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22643 | else |
22644 | cat >conftest.$ac_ext <<_ACEOF |
22645 | /* confdefs.h. */ |
22646 | _ACEOF |
22647 | cat confdefs.h >>conftest.$ac_ext |
22648 | cat >>conftest.$ac_ext <<_ACEOF |
22649 | /* end confdefs.h. */ |
22650 | |
22651 | int |
22652 | main () |
22653 | { |
22654 | #ifndef __GNUC__ |
22655 | choke me |
22656 | #endif |
22657 | |
22658 | ; |
22659 | return 0; |
22660 | } |
22661 | _ACEOF |
22662 | rm -f conftest.$ac_objext |
22663 | if { (ac_try="$ac_compile" |
22664 | case "(($ac_try" in |
22665 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22666 | *) ac_try_echo=$ac_try;; |
22667 | esac |
22668 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22669 | (eval "$ac_compile") 2>conftest.er1 |
22670 | ac_status=$? |
22671 | grep -v '^ *+' conftest.er1 >conftest.err |
22672 | rm -f conftest.er1 |
22673 | cat conftest.err >&5 |
22674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22675 | (exit $ac_status); } && |
22676 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22677 | { (case "(($ac_try" in |
22678 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22679 | *) ac_try_echo=$ac_try;; |
22680 | esac |
22681 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22682 | (eval "$ac_try") 2>&5 |
22683 | ac_status=$? |
22684 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22685 | (exit $ac_status); }; } && |
22686 | { ac_try='test -s conftest.$ac_objext' |
22687 | { (case "(($ac_try" in |
22688 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22689 | *) ac_try_echo=$ac_try;; |
22690 | esac |
22691 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22692 | (eval "$ac_try") 2>&5 |
22693 | ac_status=$? |
22694 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22695 | (exit $ac_status); }; }; then |
22696 | ac_compiler_gnu=yes |
22697 | else |
22698 | echo "$as_me: failed program was:" >&5 |
22699 | sed 's/^/| /' conftest.$ac_ext >&5 |
22700 | |
22701 | ac_compiler_gnu=no |
22702 | fi |
22703 | |
22704 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22705 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
22706 | |
22707 | fi |
22708 | { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
22709 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; } |
22710 | GCC=`test $ac_compiler_gnu = yes && echo yes` |
22711 | ac_test_CFLAGS=${CFLAGS+set} |
22712 | ac_save_CFLAGS=$CFLAGS |
22713 | { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 |
22714 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; } |
22715 | if test "${ac_cv_prog_cc_g+set}" = set; then |
22716 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22717 | else |
22718 | ac_save_c_werror_flag=$ac_c_werror_flag |
22719 | ac_c_werror_flag=yes |
22720 | ac_cv_prog_cc_g=no |
22721 | CFLAGS="-g" |
22722 | cat >conftest.$ac_ext <<_ACEOF |
22723 | /* confdefs.h. */ |
22724 | _ACEOF |
22725 | cat confdefs.h >>conftest.$ac_ext |
22726 | cat >>conftest.$ac_ext <<_ACEOF |
22727 | /* end confdefs.h. */ |
22728 | |
22729 | int |
22730 | main () |
22731 | { |
22732 | |
22733 | ; |
22734 | return 0; |
22735 | } |
22736 | _ACEOF |
22737 | rm -f conftest.$ac_objext |
22738 | if { (ac_try="$ac_compile" |
22739 | case "(($ac_try" in |
22740 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22741 | *) ac_try_echo=$ac_try;; |
22742 | esac |
22743 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22744 | (eval "$ac_compile") 2>conftest.er1 |
22745 | ac_status=$? |
22746 | grep -v '^ *+' conftest.er1 >conftest.err |
22747 | rm -f conftest.er1 |
22748 | cat conftest.err >&5 |
22749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22750 | (exit $ac_status); } && |
22751 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22752 | { (case "(($ac_try" in |
22753 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22754 | *) ac_try_echo=$ac_try;; |
22755 | esac |
22756 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22757 | (eval "$ac_try") 2>&5 |
22758 | ac_status=$? |
22759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22760 | (exit $ac_status); }; } && |
22761 | { ac_try='test -s conftest.$ac_objext' |
22762 | { (case "(($ac_try" in |
22763 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22764 | *) ac_try_echo=$ac_try;; |
22765 | esac |
22766 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22767 | (eval "$ac_try") 2>&5 |
22768 | ac_status=$? |
22769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22770 | (exit $ac_status); }; }; then |
22771 | ac_cv_prog_cc_g=yes |
22772 | else |
22773 | echo "$as_me: failed program was:" >&5 |
22774 | sed 's/^/| /' conftest.$ac_ext >&5 |
22775 | |
22776 | CFLAGS="" |
22777 | cat >conftest.$ac_ext <<_ACEOF |
22778 | /* confdefs.h. */ |
22779 | _ACEOF |
22780 | cat confdefs.h >>conftest.$ac_ext |
22781 | cat >>conftest.$ac_ext <<_ACEOF |
22782 | /* end confdefs.h. */ |
22783 | |
22784 | int |
22785 | main () |
22786 | { |
22787 | |
22788 | ; |
22789 | return 0; |
22790 | } |
22791 | _ACEOF |
22792 | rm -f conftest.$ac_objext |
22793 | if { (ac_try="$ac_compile" |
22794 | case "(($ac_try" in |
22795 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22796 | *) ac_try_echo=$ac_try;; |
22797 | esac |
22798 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22799 | (eval "$ac_compile") 2>conftest.er1 |
22800 | ac_status=$? |
22801 | grep -v '^ *+' conftest.er1 >conftest.err |
22802 | rm -f conftest.er1 |
22803 | cat conftest.err >&5 |
22804 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22805 | (exit $ac_status); } && |
22806 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22807 | { (case "(($ac_try" in |
22808 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22809 | *) ac_try_echo=$ac_try;; |
22810 | esac |
22811 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22812 | (eval "$ac_try") 2>&5 |
22813 | ac_status=$? |
22814 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22815 | (exit $ac_status); }; } && |
22816 | { ac_try='test -s conftest.$ac_objext' |
22817 | { (case "(($ac_try" in |
22818 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22819 | *) ac_try_echo=$ac_try;; |
22820 | esac |
22821 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22822 | (eval "$ac_try") 2>&5 |
22823 | ac_status=$? |
22824 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22825 | (exit $ac_status); }; }; then |
22826 | : |
22827 | else |
22828 | echo "$as_me: failed program was:" >&5 |
22829 | sed 's/^/| /' conftest.$ac_ext >&5 |
22830 | |
22831 | ac_c_werror_flag=$ac_save_c_werror_flag |
22832 | CFLAGS="-g" |
22833 | cat >conftest.$ac_ext <<_ACEOF |
22834 | /* confdefs.h. */ |
22835 | _ACEOF |
22836 | cat confdefs.h >>conftest.$ac_ext |
22837 | cat >>conftest.$ac_ext <<_ACEOF |
22838 | /* end confdefs.h. */ |
22839 | |
22840 | int |
22841 | main () |
22842 | { |
22843 | |
22844 | ; |
22845 | return 0; |
22846 | } |
22847 | _ACEOF |
22848 | rm -f conftest.$ac_objext |
22849 | if { (ac_try="$ac_compile" |
22850 | case "(($ac_try" in |
22851 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22852 | *) ac_try_echo=$ac_try;; |
22853 | esac |
22854 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22855 | (eval "$ac_compile") 2>conftest.er1 |
22856 | ac_status=$? |
22857 | grep -v '^ *+' conftest.er1 >conftest.err |
22858 | rm -f conftest.er1 |
22859 | cat conftest.err >&5 |
22860 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22861 | (exit $ac_status); } && |
22862 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22863 | { (case "(($ac_try" in |
22864 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22865 | *) ac_try_echo=$ac_try;; |
22866 | esac |
22867 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22868 | (eval "$ac_try") 2>&5 |
22869 | ac_status=$? |
22870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22871 | (exit $ac_status); }; } && |
22872 | { ac_try='test -s conftest.$ac_objext' |
22873 | { (case "(($ac_try" in |
22874 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22875 | *) ac_try_echo=$ac_try;; |
22876 | esac |
22877 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22878 | (eval "$ac_try") 2>&5 |
22879 | ac_status=$? |
22880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22881 | (exit $ac_status); }; }; then |
22882 | ac_cv_prog_cc_g=yes |
22883 | else |
22884 | echo "$as_me: failed program was:" >&5 |
22885 | sed 's/^/| /' conftest.$ac_ext >&5 |
22886 | |
22887 | |
22888 | fi |
22889 | |
22890 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22891 | fi |
22892 | |
22893 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22894 | fi |
22895 | |
22896 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
22897 | ac_c_werror_flag=$ac_save_c_werror_flag |
22898 | fi |
22899 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
22900 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; } |
22901 | if test "$ac_test_CFLAGS" = set; then |
22902 | CFLAGS=$ac_save_CFLAGS |
22903 | elif test $ac_cv_prog_cc_g = yes; then |
22904 | if test "$GCC" = yes; then |
22905 | CFLAGS="-g -O2" |
22906 | else |
22907 | CFLAGS="-g" |
22908 | fi |
22909 | else |
22910 | if test "$GCC" = yes; then |
22911 | CFLAGS="-O2" |
22912 | else |
22913 | CFLAGS= |
22914 | fi |
22915 | fi |
22916 | { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5 |
22917 | echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; } |
22918 | if test "${ac_cv_prog_cc_c89+set}" = set; then |
22919 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
22920 | else |
22921 | ac_cv_prog_cc_c89=no |
22922 | ac_save_CC=$CC |
22923 | cat >conftest.$ac_ext <<_ACEOF |
22924 | /* confdefs.h. */ |
22925 | _ACEOF |
22926 | cat confdefs.h >>conftest.$ac_ext |
22927 | cat >>conftest.$ac_ext <<_ACEOF |
22928 | /* end confdefs.h. */ |
22929 | #include <stdarg.h> |
22930 | #include <stdio.h> |
22931 | #include <sys/types.h> |
22932 | #include <sys/stat.h> |
22933 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
22934 | struct buf { int x; }; |
22935 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
22936 | static char *e (p, i) |
22937 | char **p; |
22938 | int i; |
22939 | { |
22940 | return p[i]; |
22941 | } |
22942 | static char *f (char * (*g) (char **, int), char **p, ...) |
22943 | { |
22944 | char *s; |
22945 | va_list v; |
22946 | va_start (v,p); |
22947 | s = g (p, va_arg (v,int)); |
22948 | va_end (v); |
22949 | return s; |
22950 | } |
22951 | |
22952 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
22953 | function prototypes and stuff, but not '\xHH' hex character constants. |
22954 | These don't provoke an error unfortunately, instead are silently treated |
22955 | as 'x'. The following induces an error, until -std is added to get |
22956 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an |
22957 | array size at least. It's necessary to write '\x00'==0 to get something |
22958 | that's true only with -std. */ |
22959 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; |
22960 | |
22961 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters |
22962 | inside strings and character constants. */ |
22963 | #define FOO(x) 'x' |
22964 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; |
22965 | |
22966 | int test (int i, double x); |
22967 | struct s1 {int (*f) (int a);}; |
22968 | struct s2 {int (*f) (double a);}; |
22969 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
22970 | int argc; |
22971 | char **argv; |
22972 | int |
22973 | main () |
22974 | { |
22975 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
22976 | ; |
22977 | return 0; |
22978 | } |
22979 | _ACEOF |
22980 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ |
22981 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
22982 | do |
22983 | CC="$ac_save_CC $ac_arg" |
22984 | rm -f conftest.$ac_objext |
22985 | if { (ac_try="$ac_compile" |
22986 | case "(($ac_try" in |
22987 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
22988 | *) ac_try_echo=$ac_try;; |
22989 | esac |
22990 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
22991 | (eval "$ac_compile") 2>conftest.er1 |
22992 | ac_status=$? |
22993 | grep -v '^ *+' conftest.er1 >conftest.err |
22994 | rm -f conftest.er1 |
22995 | cat conftest.err >&5 |
22996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
22997 | (exit $ac_status); } && |
22998 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
22999 | { (case "(($ac_try" in |
23000 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23001 | *) ac_try_echo=$ac_try;; |
23002 | esac |
23003 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23004 | (eval "$ac_try") 2>&5 |
23005 | ac_status=$? |
23006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23007 | (exit $ac_status); }; } && |
23008 | { ac_try='test -s conftest.$ac_objext' |
23009 | { (case "(($ac_try" in |
23010 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23011 | *) ac_try_echo=$ac_try;; |
23012 | esac |
23013 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23014 | (eval "$ac_try") 2>&5 |
23015 | ac_status=$? |
23016 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23017 | (exit $ac_status); }; }; then |
23018 | ac_cv_prog_cc_c89=$ac_arg |
23019 | else |
23020 | echo "$as_me: failed program was:" >&5 |
23021 | sed 's/^/| /' conftest.$ac_ext >&5 |
23022 | |
23023 | |
23024 | fi |
23025 | |
23026 | rm -f core conftest.err conftest.$ac_objext |
23027 | test "x$ac_cv_prog_cc_c89" != "xno" && break |
23028 | done |
23029 | rm -f conftest.$ac_ext |
23030 | CC=$ac_save_CC |
23031 | |
23032 | fi |
23033 | # AC_CACHE_VAL |
23034 | case "x$ac_cv_prog_cc_c89" in |
23035 | x) |
23036 | { echo "$as_me:$LINENO: result: none needed" >&5 |
23037 | echo "${ECHO_T}none needed" >&6; } ;; |
23038 | xno) |
23039 | { echo "$as_me:$LINENO: result: unsupported" >&5 |
23040 | echo "${ECHO_T}unsupported" >&6; } ;; |
23041 | *) |
23042 | CC="$CC $ac_cv_prog_cc_c89" |
23043 | { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5 |
23044 | echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;; |
23045 | esac |
23046 | |
23047 | |
23048 | ac_ext=c |
23049 | ac_cpp='$CPP $CPPFLAGS' |
23050 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' |
23051 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' |
23052 | ac_compiler_gnu=$ac_cv_c_compiler_gnu |
23053 | |
23054 | depcc="$CC" am_compiler_list= |
23055 | |
23056 | { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 |
23057 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; } |
23058 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then |
23059 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23060 | else |
23061 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then |
23062 | # We make a subdir and do the tests there. Otherwise we can end up |
23063 | # making bogus files that we don't know about and never remove. For |
23064 | # instance it was reported that on HP-UX the gcc test will end up |
23065 | # making a dummy file named `D' -- because `-MD' means `put the output |
23066 | # in D'. |
23067 | mkdir conftest.dir |
23068 | # Copy depcomp to subdir because otherwise we won't find it if we're |
23069 | # using a relative directory. |
23070 | cp "$am_depcomp" conftest.dir |
23071 | cd conftest.dir |
23072 | # We will build objects and dependencies in a subdirectory because |
23073 | # it helps to detect inapplicable dependency modes. For instance |
23074 | # both Tru64's cc and ICC support -MD to output dependencies as a |
23075 | # side effect of compilation, but ICC will put the dependencies in |
23076 | # the current directory while Tru64 will put them in the object |
23077 | # directory. |
23078 | mkdir sub |
23079 | |
23080 | am_cv_CC_dependencies_compiler_type=none |
23081 | if test "$am_compiler_list" = ""; then |
23082 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` |
23083 | fi |
23084 | for depmode in $am_compiler_list; do |
23085 | # Setup a source with many dependencies, because some compilers |
23086 | # like to wrap large dependency lists on column 80 (with \), and |
23087 | # we should not choose a depcomp mode which is confused by this. |
23088 | # |
23089 | # We need to recreate these files for each test, as the compiler may |
23090 | # overwrite some of them when testing with obscure command lines. |
23091 | # This happens at least with the AIX C compiler. |
23092 | : > sub/conftest.c |
23093 | for i in 1 2 3 4 5 6; do |
23094 | echo '#include "conftst'$i'.h"' >> sub/conftest.c |
23095 | : > sub/conftst$i.h |
23096 | done |
23097 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf |
23098 | |
23099 | case $depmode in |
23100 | nosideeffect) |
23101 | # after this tag, mechanisms are not by side-effect, so they'll |
23102 | # only be used when explicitly requested |
23103 | if test "x$enable_dependency_tracking" = xyes; then |
23104 | continue |
23105 | else |
23106 | break |
23107 | fi |
23108 | ;; |
23109 | none) break ;; |
23110 | esac |
23111 | # We check with `-c' and `-o' for the sake of the "dashmstdout" |
23112 | # mode. It turns out that the SunPro C++ compiler does not properly |
23113 | # handle `-M -o', and we need to detect this. |
23114 | if depmode=$depmode \ |
23115 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ |
23116 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ |
23117 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ |
23118 | >/dev/null 2>conftest.err && |
23119 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && |
23120 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && |
23121 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then |
23122 | # icc doesn't choke on unknown options, it will just issue warnings |
23123 | # (even with -Werror). So we grep stderr for any message |
23124 | # that says an option was ignored. |
23125 | if grep 'ignoring option' conftest.err >/dev/null 2>&1; then :; else |
23126 | am_cv_CC_dependencies_compiler_type=$depmode |
23127 | break |
23128 | fi |
23129 | fi |
23130 | done |
23131 | |
23132 | cd .. |
23133 | rm -rf conftest.dir |
23134 | else |
23135 | am_cv_CC_dependencies_compiler_type=none |
23136 | fi |
23137 | |
23138 | fi |
23139 | { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 |
23140 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; } |
23141 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type |
23142 | |
23143 | |
23144 | |
23145 | if |
23146 | test "x$enable_dependency_tracking" != xno \ |
23147 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then |
23148 | am__fastdepCC_TRUE= |
23149 | am__fastdepCC_FALSE='#' |
23150 | else |
23151 | am__fastdepCC_TRUE='#' |
23152 | am__fastdepCC_FALSE= |
23153 | fi |
23154 | |
23155 | |
23156 | |
23157 | |
23158 | |
23159 | { echo "$as_me:$LINENO: checking for ${CC-cc} option to accept ANSI C" >&5 |
23160 | echo $ECHO_N "checking for ${CC-cc} option to accept ANSI C... $ECHO_C" >&6; } |
23161 | if test "${am_cv_prog_cc_stdc+set}" = set; then |
23162 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23163 | else |
23164 | am_cv_prog_cc_stdc=no |
23165 | ac_save_CC="$CC" |
23166 | # Don't try gcc -ansi; that turns off useful extensions and |
23167 | # breaks some systems' header files. |
23168 | # AIX -qlanglvl=ansi |
23169 | # Ultrix and OSF/1 -std1 |
23170 | # HP-UX 10.20 and later -Ae |
23171 | # HP-UX older versions -Aa -D_HPUX_SOURCE |
23172 | # SVR4 -Xc -D__EXTENSIONS__ |
23173 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" |
23174 | do |
23175 | CC="$ac_save_CC $ac_arg" |
23176 | cat >conftest.$ac_ext <<_ACEOF |
23177 | /* confdefs.h. */ |
23178 | _ACEOF |
23179 | cat confdefs.h >>conftest.$ac_ext |
23180 | cat >>conftest.$ac_ext <<_ACEOF |
23181 | /* end confdefs.h. */ |
23182 | #include <stdarg.h> |
23183 | #include <stdio.h> |
23184 | #include <sys/types.h> |
23185 | #include <sys/stat.h> |
23186 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ |
23187 | struct buf { int x; }; |
23188 | FILE * (*rcsopen) (struct buf *, struct stat *, int); |
23189 | static char *e (p, i) |
23190 | char **p; |
23191 | int i; |
23192 | { |
23193 | return p[i]; |
23194 | } |
23195 | static char *f (char * (*g) (char **, int), char **p, ...) |
23196 | { |
23197 | char *s; |
23198 | va_list v; |
23199 | va_start (v,p); |
23200 | s = g (p, va_arg (v,int)); |
23201 | va_end (v); |
23202 | return s; |
23203 | } |
23204 | int test (int i, double x); |
23205 | struct s1 {int (*f) (int a);}; |
23206 | struct s2 {int (*f) (double a);}; |
23207 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); |
23208 | int argc; |
23209 | char **argv; |
23210 | |
23211 | int |
23212 | main () |
23213 | { |
23214 | |
23215 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; |
23216 | |
23217 | ; |
23218 | return 0; |
23219 | } |
23220 | _ACEOF |
23221 | rm -f conftest.$ac_objext |
23222 | if { (ac_try="$ac_compile" |
23223 | case "(($ac_try" in |
23224 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23225 | *) ac_try_echo=$ac_try;; |
23226 | esac |
23227 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23228 | (eval "$ac_compile") 2>conftest.er1 |
23229 | ac_status=$? |
23230 | grep -v '^ *+' conftest.er1 >conftest.err |
23231 | rm -f conftest.er1 |
23232 | cat conftest.err >&5 |
23233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23234 | (exit $ac_status); } && |
23235 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
23236 | { (case "(($ac_try" in |
23237 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23238 | *) ac_try_echo=$ac_try;; |
23239 | esac |
23240 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23241 | (eval "$ac_try") 2>&5 |
23242 | ac_status=$? |
23243 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23244 | (exit $ac_status); }; } && |
23245 | { ac_try='test -s conftest.$ac_objext' |
23246 | { (case "(($ac_try" in |
23247 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23248 | *) ac_try_echo=$ac_try;; |
23249 | esac |
23250 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23251 | (eval "$ac_try") 2>&5 |
23252 | ac_status=$? |
23253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23254 | (exit $ac_status); }; }; then |
23255 | am_cv_prog_cc_stdc="$ac_arg"; break |
23256 | else |
23257 | echo "$as_me: failed program was:" >&5 |
23258 | sed 's/^/| /' conftest.$ac_ext >&5 |
23259 | |
23260 | |
23261 | fi |
23262 | |
23263 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
23264 | done |
23265 | CC="$ac_save_CC" |
23266 | |
23267 | fi |
23268 | |
23269 | if test -z "$am_cv_prog_cc_stdc"; then |
23270 | { echo "$as_me:$LINENO: result: none needed" >&5 |
23271 | echo "${ECHO_T}none needed" >&6; } |
23272 | else |
23273 | { echo "$as_me:$LINENO: result: $am_cv_prog_cc_stdc" >&5 |
23274 | echo "${ECHO_T}$am_cv_prog_cc_stdc" >&6; } |
23275 | fi |
23276 | case "x$am_cv_prog_cc_stdc" in |
23277 | x|xno) ;; |
23278 | *) CC="$CC $am_cv_prog_cc_stdc" ;; |
23279 | esac |
23280 | |
23281 | { echo "$as_me:$LINENO: checking for ANSI C header files" >&5 |
23282 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; } |
23283 | if test "${ac_cv_header_stdc+set}" = set; then |
23284 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23285 | else |
23286 | cat >conftest.$ac_ext <<_ACEOF |
23287 | /* confdefs.h. */ |
23288 | _ACEOF |
23289 | cat confdefs.h >>conftest.$ac_ext |
23290 | cat >>conftest.$ac_ext <<_ACEOF |
23291 | /* end confdefs.h. */ |
23292 | #include <stdlib.h> |
23293 | #include <stdarg.h> |
23294 | #include <string.h> |
23295 | #include <float.h> |
23296 | |
23297 | int |
23298 | main () |
23299 | { |
23300 | |
23301 | ; |
23302 | return 0; |
23303 | } |
23304 | _ACEOF |
23305 | rm -f conftest.$ac_objext |
23306 | if { (ac_try="$ac_compile" |
23307 | case "(($ac_try" in |
23308 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23309 | *) ac_try_echo=$ac_try;; |
23310 | esac |
23311 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23312 | (eval "$ac_compile") 2>conftest.er1 |
23313 | ac_status=$? |
23314 | grep -v '^ *+' conftest.er1 >conftest.err |
23315 | rm -f conftest.er1 |
23316 | cat conftest.err >&5 |
23317 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23318 | (exit $ac_status); } && |
23319 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
23320 | { (case "(($ac_try" in |
23321 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23322 | *) ac_try_echo=$ac_try;; |
23323 | esac |
23324 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23325 | (eval "$ac_try") 2>&5 |
23326 | ac_status=$? |
23327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23328 | (exit $ac_status); }; } && |
23329 | { ac_try='test -s conftest.$ac_objext' |
23330 | { (case "(($ac_try" in |
23331 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23332 | *) ac_try_echo=$ac_try;; |
23333 | esac |
23334 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23335 | (eval "$ac_try") 2>&5 |
23336 | ac_status=$? |
23337 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23338 | (exit $ac_status); }; }; then |
23339 | ac_cv_header_stdc=yes |
23340 | else |
23341 | echo "$as_me: failed program was:" >&5 |
23342 | sed 's/^/| /' conftest.$ac_ext >&5 |
23343 | |
23344 | ac_cv_header_stdc=no |
23345 | fi |
23346 | |
23347 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
23348 | |
23349 | if test $ac_cv_header_stdc = yes; then |
23350 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. |
23351 | cat >conftest.$ac_ext <<_ACEOF |
23352 | /* confdefs.h. */ |
23353 | _ACEOF |
23354 | cat confdefs.h >>conftest.$ac_ext |
23355 | cat >>conftest.$ac_ext <<_ACEOF |
23356 | /* end confdefs.h. */ |
23357 | #include <string.h> |
23358 | |
23359 | _ACEOF |
23360 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
23361 | $EGREP "memchr" >/dev/null 2>&1; then |
23362 | : |
23363 | else |
23364 | ac_cv_header_stdc=no |
23365 | fi |
23366 | rm -f conftest* |
23367 | |
23368 | fi |
23369 | |
23370 | if test $ac_cv_header_stdc = yes; then |
23371 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. |
23372 | cat >conftest.$ac_ext <<_ACEOF |
23373 | /* confdefs.h. */ |
23374 | _ACEOF |
23375 | cat confdefs.h >>conftest.$ac_ext |
23376 | cat >>conftest.$ac_ext <<_ACEOF |
23377 | /* end confdefs.h. */ |
23378 | #include <stdlib.h> |
23379 | |
23380 | _ACEOF |
23381 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
23382 | $EGREP "free" >/dev/null 2>&1; then |
23383 | : |
23384 | else |
23385 | ac_cv_header_stdc=no |
23386 | fi |
23387 | rm -f conftest* |
23388 | |
23389 | fi |
23390 | |
23391 | if test $ac_cv_header_stdc = yes; then |
23392 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. |
23393 | if test "$cross_compiling" = yes; then |
23394 | : |
23395 | else |
23396 | cat >conftest.$ac_ext <<_ACEOF |
23397 | /* confdefs.h. */ |
23398 | _ACEOF |
23399 | cat confdefs.h >>conftest.$ac_ext |
23400 | cat >>conftest.$ac_ext <<_ACEOF |
23401 | /* end confdefs.h. */ |
23402 | #include <ctype.h> |
23403 | #include <stdlib.h> |
23404 | #if ((' ' & 0x0FF) == 0x020) |
23405 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') |
23406 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) |
23407 | #else |
23408 | # define ISLOWER(c) \ |
23409 | (('a' <= (c) && (c) <= 'i') \ |
23410 | || ('j' <= (c) && (c) <= 'r') \ |
23411 | || ('s' <= (c) && (c) <= 'z')) |
23412 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) |
23413 | #endif |
23414 | |
23415 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
23416 | int |
23417 | main () |
23418 | { |
23419 | int i; |
23420 | for (i = 0; i < 256; i++) |
23421 | if (XOR (islower (i), ISLOWER (i)) |
23422 | || toupper (i) != TOUPPER (i)) |
23423 | return 2; |
23424 | return 0; |
23425 | } |
23426 | _ACEOF |
23427 | rm -f conftest$ac_exeext |
23428 | if { (ac_try="$ac_link" |
23429 | case "(($ac_try" in |
23430 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23431 | *) ac_try_echo=$ac_try;; |
23432 | esac |
23433 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23434 | (eval "$ac_link") 2>&5 |
23435 | ac_status=$? |
23436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23437 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
23438 | { (case "(($ac_try" in |
23439 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23440 | *) ac_try_echo=$ac_try;; |
23441 | esac |
23442 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23443 | (eval "$ac_try") 2>&5 |
23444 | ac_status=$? |
23445 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23446 | (exit $ac_status); }; }; then |
23447 | : |
23448 | else |
23449 | echo "$as_me: program exited with status $ac_status" >&5 |
23450 | echo "$as_me: failed program was:" >&5 |
23451 | sed 's/^/| /' conftest.$ac_ext >&5 |
23452 | |
23453 | ( exit $ac_status ) |
23454 | ac_cv_header_stdc=no |
23455 | fi |
23456 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
23457 | fi |
23458 | |
23459 | |
23460 | fi |
23461 | fi |
23462 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
23463 | echo "${ECHO_T}$ac_cv_header_stdc" >&6; } |
23464 | if test $ac_cv_header_stdc = yes; then |
23465 | |
23466 | cat >>confdefs.h <<\_ACEOF |
23467 | #define STDC_HEADERS 1 |
23468 | _ACEOF |
23469 | |
23470 | fi |
23471 | |
23472 | |
23473 | pkg_modules="gtk+-2.0 >= 2.0.0" |
23474 | |
23475 | |
23476 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then |
23477 | if test -n "$ac_tool_prefix"; then |
23478 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. |
23479 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 |
23480 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
23481 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
23482 | if test "${ac_cv_path_PKG_CONFIG+set}" = set; then |
23483 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23484 | else |
23485 | case $PKG_CONFIG in |
23486 | [\\/]* | ?:[\\/]*) |
23487 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. |
23488 | ;; |
23489 | *) |
23490 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
23491 | for as_dir in $PATH |
23492 | do |
23493 | IFS=$as_save_IFS |
23494 | test -z "$as_dir" && as_dir=. |
23495 | for ac_exec_ext in '' $ac_executable_extensions; do |
23496 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
23497 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
23498 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
23499 | break 2 |
23500 | fi |
23501 | done |
23502 | done |
23503 | IFS=$as_save_IFS |
23504 | |
23505 | ;; |
23506 | esac |
23507 | fi |
23508 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG |
23509 | if test -n "$PKG_CONFIG"; then |
23510 | { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5 |
23511 | echo "${ECHO_T}$PKG_CONFIG" >&6; } |
23512 | else |
23513 | { echo "$as_me:$LINENO: result: no" >&5 |
23514 | echo "${ECHO_T}no" >&6; } |
23515 | fi |
23516 | |
23517 | |
23518 | fi |
23519 | if test -z "$ac_cv_path_PKG_CONFIG"; then |
23520 | ac_pt_PKG_CONFIG=$PKG_CONFIG |
23521 | # Extract the first word of "pkg-config", so it can be a program name with args. |
23522 | set dummy pkg-config; ac_word=$2 |
23523 | { echo "$as_me:$LINENO: checking for $ac_word" >&5 |
23524 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; } |
23525 | if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then |
23526 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23527 | else |
23528 | case $ac_pt_PKG_CONFIG in |
23529 | [\\/]* | ?:[\\/]*) |
23530 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. |
23531 | ;; |
23532 | *) |
23533 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
23534 | for as_dir in $PATH |
23535 | do |
23536 | IFS=$as_save_IFS |
23537 | test -z "$as_dir" && as_dir=. |
23538 | for ac_exec_ext in '' $ac_executable_extensions; do |
23539 | if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then |
23540 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" |
23541 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 |
23542 | break 2 |
23543 | fi |
23544 | done |
23545 | done |
23546 | IFS=$as_save_IFS |
23547 | |
23548 | ;; |
23549 | esac |
23550 | fi |
23551 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG |
23552 | if test -n "$ac_pt_PKG_CONFIG"; then |
23553 | { echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5 |
23554 | echo "${ECHO_T}$ac_pt_PKG_CONFIG" >&6; } |
23555 | else |
23556 | { echo "$as_me:$LINENO: result: no" >&5 |
23557 | echo "${ECHO_T}no" >&6; } |
23558 | fi |
23559 | |
23560 | if test "x$ac_pt_PKG_CONFIG" = x; then |
23561 | PKG_CONFIG="" |
23562 | else |
23563 | case $cross_compiling:$ac_tool_warned in |
23564 | yes:) |
23565 | { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools |
23566 | whose name does not start with the host triplet. If you think this |
23567 | configuration is useful to you, please write to autoconf@gnu.org." >&5 |
23568 | echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools |
23569 | whose name does not start with the host triplet. If you think this |
23570 | configuration is useful to you, please write to autoconf@gnu.org." >&2;} |
23571 | ac_tool_warned=yes ;; |
23572 | esac |
23573 | PKG_CONFIG=$ac_pt_PKG_CONFIG |
23574 | fi |
23575 | else |
23576 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" |
23577 | fi |
23578 | |
23579 | fi |
23580 | if test -n "$PKG_CONFIG"; then |
23581 | _pkg_min_version=0.9.0 |
23582 | { echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5 |
23583 | echo $ECHO_N "checking pkg-config is at least version $_pkg_min_version... $ECHO_C" >&6; } |
23584 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then |
23585 | { echo "$as_me:$LINENO: result: yes" >&5 |
23586 | echo "${ECHO_T}yes" >&6; } |
23587 | else |
23588 | { echo "$as_me:$LINENO: result: no" >&5 |
23589 | echo "${ECHO_T}no" >&6; } |
23590 | PKG_CONFIG="" |
23591 | fi |
23592 | |
23593 | fi |
23594 | |
23595 | pkg_failed=no |
23596 | { echo "$as_me:$LINENO: checking for PACKAGE" >&5 |
23597 | echo $ECHO_N "checking for PACKAGE... $ECHO_C" >&6; } |
23598 | |
23599 | if test -n "$PKG_CONFIG"; then |
23600 | if test -n "$PACKAGE_CFLAGS"; then |
23601 | pkg_cv_PACKAGE_CFLAGS="$PACKAGE_CFLAGS" |
23602 | else |
23603 | if test -n "$PKG_CONFIG" && \ |
23604 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5 |
23605 | ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 |
23606 | ac_status=$? |
23607 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23608 | (exit $ac_status); }; then |
23609 | pkg_cv_PACKAGE_CFLAGS=`$PKG_CONFIG --cflags "$pkg_modules" 2>/dev/null` |
23610 | else |
23611 | pkg_failed=yes |
23612 | fi |
23613 | fi |
23614 | else |
23615 | pkg_failed=untried |
23616 | fi |
23617 | if test -n "$PKG_CONFIG"; then |
23618 | if test -n "$PACKAGE_LIBS"; then |
23619 | pkg_cv_PACKAGE_LIBS="$PACKAGE_LIBS" |
23620 | else |
23621 | if test -n "$PKG_CONFIG" && \ |
23622 | { (echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"\$pkg_modules\"") >&5 |
23623 | ($PKG_CONFIG --exists --print-errors "$pkg_modules") 2>&5 |
23624 | ac_status=$? |
23625 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23626 | (exit $ac_status); }; then |
23627 | pkg_cv_PACKAGE_LIBS=`$PKG_CONFIG --libs "$pkg_modules" 2>/dev/null` |
23628 | else |
23629 | pkg_failed=yes |
23630 | fi |
23631 | fi |
23632 | else |
23633 | pkg_failed=untried |
23634 | fi |
23635 | |
23636 | |
23637 | |
23638 | if test $pkg_failed = yes; then |
23639 | |
23640 | if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then |
23641 | _pkg_short_errors_supported=yes |
23642 | else |
23643 | _pkg_short_errors_supported=no |
23644 | fi |
23645 | if test $_pkg_short_errors_supported = yes; then |
23646 | PACKAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --errors-to-stdout --print-errors "$pkg_modules"` |
23647 | else |
23648 | PACKAGE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$pkg_modules"` |
23649 | fi |
23650 | # Put the nasty error message in config.log where it belongs |
23651 | echo "$PACKAGE_PKG_ERRORS" >&5 |
23652 | |
23653 | { { echo "$as_me:$LINENO: error: Package requirements ($pkg_modules) were not met: |
23654 | |
23655 | $PACKAGE_PKG_ERRORS |
23656 | |
23657 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
23658 | installed software in a non-standard prefix. |
23659 | |
23660 | Alternatively, you may set the environment variables PACKAGE_CFLAGS |
23661 | and PACKAGE_LIBS to avoid the need to call pkg-config. |
23662 | See the pkg-config man page for more details. |
23663 | " >&5 |
23664 | echo "$as_me: error: Package requirements ($pkg_modules) were not met: |
23665 | |
23666 | $PACKAGE_PKG_ERRORS |
23667 | |
23668 | Consider adjusting the PKG_CONFIG_PATH environment variable if you |
23669 | installed software in a non-standard prefix. |
23670 | |
23671 | Alternatively, you may set the environment variables PACKAGE_CFLAGS |
23672 | and PACKAGE_LIBS to avoid the need to call pkg-config. |
23673 | See the pkg-config man page for more details. |
23674 | " >&2;} |
23675 | { (exit 1); exit 1; }; } |
23676 | elif test $pkg_failed = untried; then |
23677 | { { echo "$as_me:$LINENO: error: The pkg-config script could not be found or is too old. Make sure it |
23678 | is in your PATH or set the PKG_CONFIG environment variable to the full |
23679 | path to pkg-config. |
23680 | |
23681 | Alternatively, you may set the environment variables PACKAGE_CFLAGS |
23682 | and PACKAGE_LIBS to avoid the need to call pkg-config. |
23683 | See the pkg-config man page for more details. |
23684 | |
23685 | To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. |
23686 | See \`config.log' for more details." >&5 |
23687 | echo "$as_me: error: The pkg-config script could not be found or is too old. Make sure it |
23688 | is in your PATH or set the PKG_CONFIG environment variable to the full |
23689 | path to pkg-config. |
23690 | |
23691 | Alternatively, you may set the environment variables PACKAGE_CFLAGS |
23692 | and PACKAGE_LIBS to avoid the need to call pkg-config. |
23693 | See the pkg-config man page for more details. |
23694 | |
23695 | To get pkg-config, see <http://www.freedesktop.org/software/pkgconfig>. |
23696 | See \`config.log' for more details." >&2;} |
23697 | { (exit 1); exit 1; }; } |
23698 | else |
23699 | PACKAGE_CFLAGS=$pkg_cv_PACKAGE_CFLAGS |
23700 | PACKAGE_LIBS=$pkg_cv_PACKAGE_LIBS |
23701 | { echo "$as_me:$LINENO: result: yes" >&5 |
23702 | echo "${ECHO_T}yes" >&6; } |
23703 | : |
23704 | fi |
23705 | PACKAGE_CFLAGS="-Wall -Wformat" |
23706 | |
23707 | |
23708 | |
23709 | # Checks for typedefs, structures, and compiler characteristics. |
23710 | { echo "$as_me:$LINENO: checking for stdbool.h that conforms to C99" >&5 |
23711 | echo $ECHO_N "checking for stdbool.h that conforms to C99... $ECHO_C" >&6; } |
23712 | if test "${ac_cv_header_stdbool_h+set}" = set; then |
23713 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23714 | else |
23715 | cat >conftest.$ac_ext <<_ACEOF |
23716 | /* confdefs.h. */ |
23717 | _ACEOF |
23718 | cat confdefs.h >>conftest.$ac_ext |
23719 | cat >>conftest.$ac_ext <<_ACEOF |
23720 | /* end confdefs.h. */ |
23721 | |
23722 | #include <stdbool.h> |
23723 | #ifndef bool |
23724 | "error: bool is not defined" |
23725 | #endif |
23726 | #ifndef false |
23727 | "error: false is not defined" |
23728 | #endif |
23729 | #if false |
23730 | "error: false is not 0" |
23731 | #endif |
23732 | #ifndef true |
23733 | "error: true is not defined" |
23734 | #endif |
23735 | #if true != 1 |
23736 | "error: true is not 1" |
23737 | #endif |
23738 | #ifndef __bool_true_false_are_defined |
23739 | "error: __bool_true_false_are_defined is not defined" |
23740 | #endif |
23741 | |
23742 | struct s { _Bool s: 1; _Bool t; } s; |
23743 | |
23744 | char a[true == 1 ? 1 : -1]; |
23745 | char b[false == 0 ? 1 : -1]; |
23746 | char c[__bool_true_false_are_defined == 1 ? 1 : -1]; |
23747 | char d[(bool) 0.5 == true ? 1 : -1]; |
23748 | bool e = &s; |
23749 | char f[(_Bool) 0.0 == false ? 1 : -1]; |
23750 | char g[true]; |
23751 | char h[sizeof (_Bool)]; |
23752 | char i[sizeof s.t]; |
23753 | enum { j = false, k = true, l = false * true, m = true * 256 }; |
23754 | _Bool n[m]; |
23755 | char o[sizeof n == m * sizeof n[0] ? 1 : -1]; |
23756 | char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; |
23757 | # if defined __xlc__ || defined __GNUC__ |
23758 | /* Catch a bug in IBM AIX xlc compiler version 6.0.0.0 |
23759 | reported by James Lemley on 2005-10-05; see |
23760 | http://lists.gnu.org/archive/html/bug-coreutils/2005-10/msg00086.html |
23761 | This test is not quite right, since xlc is allowed to |
23762 | reject this program, as the initializer for xlcbug is |
23763 | not one of the forms that C requires support for. |
23764 | However, doing the test right would require a runtime |
23765 | test, and that would make cross-compilation harder. |
23766 | Let us hope that IBM fixes the xlc bug, and also adds |
23767 | support for this kind of constant expression. In the |
23768 | meantime, this test will reject xlc, which is OK, since |
23769 | our stdbool.h substitute should suffice. We also test |
23770 | this with GCC, where it should work, to detect more |
23771 | quickly whether someone messes up the test in the |
23772 | future. */ |
23773 | char digs[] = "0123456789"; |
23774 | int xlcbug = 1 / (&(digs + 5)[-2 + (bool) 1] == &digs[4] ? 1 : -1); |
23775 | # endif |
23776 | /* Catch a bug in an HP-UX C compiler. See |
23777 | http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html |
23778 | http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html |
23779 | */ |
23780 | _Bool q = true; |
23781 | _Bool *pq = &q; |
23782 | |
23783 | int |
23784 | main () |
23785 | { |
23786 | |
23787 | *pq |= q; |
23788 | *pq |= ! q; |
23789 | /* Refer to every declared value, to avoid compiler optimizations. */ |
23790 | return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l |
23791 | + !m + !n + !o + !p + !q + !pq); |
23792 | |
23793 | ; |
23794 | return 0; |
23795 | } |
23796 | _ACEOF |
23797 | rm -f conftest.$ac_objext |
23798 | if { (ac_try="$ac_compile" |
23799 | case "(($ac_try" in |
23800 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23801 | *) ac_try_echo=$ac_try;; |
23802 | esac |
23803 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23804 | (eval "$ac_compile") 2>conftest.er1 |
23805 | ac_status=$? |
23806 | grep -v '^ *+' conftest.er1 >conftest.err |
23807 | rm -f conftest.er1 |
23808 | cat conftest.err >&5 |
23809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23810 | (exit $ac_status); } && |
23811 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
23812 | { (case "(($ac_try" in |
23813 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23814 | *) ac_try_echo=$ac_try;; |
23815 | esac |
23816 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23817 | (eval "$ac_try") 2>&5 |
23818 | ac_status=$? |
23819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23820 | (exit $ac_status); }; } && |
23821 | { ac_try='test -s conftest.$ac_objext' |
23822 | { (case "(($ac_try" in |
23823 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23824 | *) ac_try_echo=$ac_try;; |
23825 | esac |
23826 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23827 | (eval "$ac_try") 2>&5 |
23828 | ac_status=$? |
23829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23830 | (exit $ac_status); }; }; then |
23831 | ac_cv_header_stdbool_h=yes |
23832 | else |
23833 | echo "$as_me: failed program was:" >&5 |
23834 | sed 's/^/| /' conftest.$ac_ext >&5 |
23835 | |
23836 | ac_cv_header_stdbool_h=no |
23837 | fi |
23838 | |
23839 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
23840 | fi |
23841 | { echo "$as_me:$LINENO: result: $ac_cv_header_stdbool_h" >&5 |
23842 | echo "${ECHO_T}$ac_cv_header_stdbool_h" >&6; } |
23843 | { echo "$as_me:$LINENO: checking for _Bool" >&5 |
23844 | echo $ECHO_N "checking for _Bool... $ECHO_C" >&6; } |
23845 | if test "${ac_cv_type__Bool+set}" = set; then |
23846 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23847 | else |
23848 | cat >conftest.$ac_ext <<_ACEOF |
23849 | /* confdefs.h. */ |
23850 | _ACEOF |
23851 | cat confdefs.h >>conftest.$ac_ext |
23852 | cat >>conftest.$ac_ext <<_ACEOF |
23853 | /* end confdefs.h. */ |
23854 | $ac_includes_default |
23855 | typedef _Bool ac__type_new_; |
23856 | int |
23857 | main () |
23858 | { |
23859 | if ((ac__type_new_ *) 0) |
23860 | return 0; |
23861 | if (sizeof (ac__type_new_)) |
23862 | return 0; |
23863 | ; |
23864 | return 0; |
23865 | } |
23866 | _ACEOF |
23867 | rm -f conftest.$ac_objext |
23868 | if { (ac_try="$ac_compile" |
23869 | case "(($ac_try" in |
23870 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23871 | *) ac_try_echo=$ac_try;; |
23872 | esac |
23873 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23874 | (eval "$ac_compile") 2>conftest.er1 |
23875 | ac_status=$? |
23876 | grep -v '^ *+' conftest.er1 >conftest.err |
23877 | rm -f conftest.er1 |
23878 | cat conftest.err >&5 |
23879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23880 | (exit $ac_status); } && |
23881 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
23882 | { (case "(($ac_try" in |
23883 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23884 | *) ac_try_echo=$ac_try;; |
23885 | esac |
23886 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23887 | (eval "$ac_try") 2>&5 |
23888 | ac_status=$? |
23889 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23890 | (exit $ac_status); }; } && |
23891 | { ac_try='test -s conftest.$ac_objext' |
23892 | { (case "(($ac_try" in |
23893 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
23894 | *) ac_try_echo=$ac_try;; |
23895 | esac |
23896 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
23897 | (eval "$ac_try") 2>&5 |
23898 | ac_status=$? |
23899 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
23900 | (exit $ac_status); }; }; then |
23901 | ac_cv_type__Bool=yes |
23902 | else |
23903 | echo "$as_me: failed program was:" >&5 |
23904 | sed 's/^/| /' conftest.$ac_ext >&5 |
23905 | |
23906 | ac_cv_type__Bool=no |
23907 | fi |
23908 | |
23909 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
23910 | fi |
23911 | { echo "$as_me:$LINENO: result: $ac_cv_type__Bool" >&5 |
23912 | echo "${ECHO_T}$ac_cv_type__Bool" >&6; } |
23913 | if test $ac_cv_type__Bool = yes; then |
23914 | |
23915 | cat >>confdefs.h <<_ACEOF |
23916 | #define HAVE__BOOL 1 |
23917 | _ACEOF |
23918 | |
23919 | |
23920 | fi |
23921 | |
23922 | if test $ac_cv_header_stdbool_h = yes; then |
23923 | |
23924 | cat >>confdefs.h <<\_ACEOF |
23925 | #define HAVE_STDBOOL_H 1 |
23926 | _ACEOF |
23927 | |
23928 | fi |
23929 | |
23930 | { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
23931 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; } |
23932 | if test "${ac_cv_c_const+set}" = set; then |
23933 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
23934 | else |
23935 | cat >conftest.$ac_ext <<_ACEOF |
23936 | /* confdefs.h. */ |
23937 | _ACEOF |
23938 | cat confdefs.h >>conftest.$ac_ext |
23939 | cat >>conftest.$ac_ext <<_ACEOF |
23940 | /* end confdefs.h. */ |
23941 | |
23942 | int |
23943 | main () |
23944 | { |
23945 | /* FIXME: Include the comments suggested by Paul. */ |
23946 | #ifndef __cplusplus |
23947 | /* Ultrix mips cc rejects this. */ |
23948 | typedef int charset[2]; |
23949 | const charset x; |
23950 | /* SunOS 4.1.1 cc rejects this. */ |
23951 | char const *const *ccp; |
23952 | char **p; |
23953 | /* NEC SVR4.0.2 mips cc rejects this. */ |
23954 | struct point {int x, y;}; |
23955 | static struct point const zero = {0,0}; |
23956 | /* AIX XL C 1.02.0.0 rejects this. |
23957 | It does not let you subtract one const X* pointer from another in |
23958 | an arm of an if-expression whose if-part is not a constant |
23959 | expression */ |
23960 | const char *g = "string"; |
23961 | ccp = &g + (g ? g-g : 0); |
23962 | /* HPUX 7.0 cc rejects these. */ |
23963 | ++ccp; |
23964 | p = (char**) ccp; |
23965 | ccp = (char const *const *) p; |
23966 | { /* SCO 3.2v4 cc rejects this. */ |
23967 | char *t; |
23968 | char const *s = 0 ? (char *) 0 : (char const *) 0; |
23969 | |
23970 | *t++ = 0; |
23971 | if (s) return 0; |
23972 | } |
23973 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ |
23974 | int x[] = {25, 17}; |
23975 | const int *foo = &x[0]; |
23976 | ++foo; |
23977 | } |
23978 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ |
23979 | typedef const int *iptr; |
23980 | iptr p = 0; |
23981 | ++p; |
23982 | } |
23983 | { /* AIX XL C 1.02.0.0 rejects this saying |
23984 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ |
23985 | struct s { int j; const int *ap[3]; }; |
23986 | struct s *b; b->j = 5; |
23987 | } |
23988 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ |
23989 | const int foo = 10; |
23990 | if (!foo) return 0; |
23991 | } |
23992 | return !x[0] && !zero.x; |
23993 | #endif |
23994 | |
23995 | ; |
23996 | return 0; |
23997 | } |
23998 | _ACEOF |
23999 | rm -f conftest.$ac_objext |
24000 | if { (ac_try="$ac_compile" |
24001 | case "(($ac_try" in |
24002 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24003 | *) ac_try_echo=$ac_try;; |
24004 | esac |
24005 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24006 | (eval "$ac_compile") 2>conftest.er1 |
24007 | ac_status=$? |
24008 | grep -v '^ *+' conftest.er1 >conftest.err |
24009 | rm -f conftest.er1 |
24010 | cat conftest.err >&5 |
24011 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24012 | (exit $ac_status); } && |
24013 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
24014 | { (case "(($ac_try" in |
24015 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24016 | *) ac_try_echo=$ac_try;; |
24017 | esac |
24018 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24019 | (eval "$ac_try") 2>&5 |
24020 | ac_status=$? |
24021 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24022 | (exit $ac_status); }; } && |
24023 | { ac_try='test -s conftest.$ac_objext' |
24024 | { (case "(($ac_try" in |
24025 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24026 | *) ac_try_echo=$ac_try;; |
24027 | esac |
24028 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24029 | (eval "$ac_try") 2>&5 |
24030 | ac_status=$? |
24031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24032 | (exit $ac_status); }; }; then |
24033 | ac_cv_c_const=yes |
24034 | else |
24035 | echo "$as_me: failed program was:" >&5 |
24036 | sed 's/^/| /' conftest.$ac_ext >&5 |
24037 | |
24038 | ac_cv_c_const=no |
24039 | fi |
24040 | |
24041 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
24042 | fi |
24043 | { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
24044 | echo "${ECHO_T}$ac_cv_c_const" >&6; } |
24045 | if test $ac_cv_c_const = no; then |
24046 | |
24047 | cat >>confdefs.h <<\_ACEOF |
24048 | #define const |
24049 | _ACEOF |
24050 | |
24051 | fi |
24052 | |
24053 | { echo "$as_me:$LINENO: checking for inline" >&5 |
24054 | echo $ECHO_N "checking for inline... $ECHO_C" >&6; } |
24055 | if test "${ac_cv_c_inline+set}" = set; then |
24056 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24057 | else |
24058 | ac_cv_c_inline=no |
24059 | for ac_kw in inline __inline__ __inline; do |
24060 | cat >conftest.$ac_ext <<_ACEOF |
24061 | /* confdefs.h. */ |
24062 | _ACEOF |
24063 | cat confdefs.h >>conftest.$ac_ext |
24064 | cat >>conftest.$ac_ext <<_ACEOF |
24065 | /* end confdefs.h. */ |
24066 | #ifndef __cplusplus |
24067 | typedef int foo_t; |
24068 | static $ac_kw foo_t static_foo () {return 0; } |
24069 | $ac_kw foo_t foo () {return 0; } |
24070 | #endif |
24071 | |
24072 | _ACEOF |
24073 | rm -f conftest.$ac_objext |
24074 | if { (ac_try="$ac_compile" |
24075 | case "(($ac_try" in |
24076 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24077 | *) ac_try_echo=$ac_try;; |
24078 | esac |
24079 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24080 | (eval "$ac_compile") 2>conftest.er1 |
24081 | ac_status=$? |
24082 | grep -v '^ *+' conftest.er1 >conftest.err |
24083 | rm -f conftest.er1 |
24084 | cat conftest.err >&5 |
24085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24086 | (exit $ac_status); } && |
24087 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
24088 | { (case "(($ac_try" in |
24089 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24090 | *) ac_try_echo=$ac_try;; |
24091 | esac |
24092 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24093 | (eval "$ac_try") 2>&5 |
24094 | ac_status=$? |
24095 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24096 | (exit $ac_status); }; } && |
24097 | { ac_try='test -s conftest.$ac_objext' |
24098 | { (case "(($ac_try" in |
24099 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24100 | *) ac_try_echo=$ac_try;; |
24101 | esac |
24102 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24103 | (eval "$ac_try") 2>&5 |
24104 | ac_status=$? |
24105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24106 | (exit $ac_status); }; }; then |
24107 | ac_cv_c_inline=$ac_kw |
24108 | else |
24109 | echo "$as_me: failed program was:" >&5 |
24110 | sed 's/^/| /' conftest.$ac_ext >&5 |
24111 | |
24112 | |
24113 | fi |
24114 | |
24115 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
24116 | test "$ac_cv_c_inline" != no && break |
24117 | done |
24118 | |
24119 | fi |
24120 | { echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
24121 | echo "${ECHO_T}$ac_cv_c_inline" >&6; } |
24122 | |
24123 | |
24124 | case $ac_cv_c_inline in |
24125 | inline | yes) ;; |
24126 | *) |
24127 | case $ac_cv_c_inline in |
24128 | no) ac_val=;; |
24129 | *) ac_val=$ac_cv_c_inline;; |
24130 | esac |
24131 | cat >>confdefs.h <<_ACEOF |
24132 | #ifndef __cplusplus |
24133 | #define inline $ac_val |
24134 | #endif |
24135 | _ACEOF |
24136 | ;; |
24137 | esac |
24138 | |
24139 | { echo "$as_me:$LINENO: checking for off_t" >&5 |
24140 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6; } |
24141 | if test "${ac_cv_type_off_t+set}" = set; then |
24142 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24143 | else |
24144 | cat >conftest.$ac_ext <<_ACEOF |
24145 | /* confdefs.h. */ |
24146 | _ACEOF |
24147 | cat confdefs.h >>conftest.$ac_ext |
24148 | cat >>conftest.$ac_ext <<_ACEOF |
24149 | /* end confdefs.h. */ |
24150 | $ac_includes_default |
24151 | typedef off_t ac__type_new_; |
24152 | int |
24153 | main () |
24154 | { |
24155 | if ((ac__type_new_ *) 0) |
24156 | return 0; |
24157 | if (sizeof (ac__type_new_)) |
24158 | return 0; |
24159 | ; |
24160 | return 0; |
24161 | } |
24162 | _ACEOF |
24163 | rm -f conftest.$ac_objext |
24164 | if { (ac_try="$ac_compile" |
24165 | case "(($ac_try" in |
24166 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24167 | *) ac_try_echo=$ac_try;; |
24168 | esac |
24169 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24170 | (eval "$ac_compile") 2>conftest.er1 |
24171 | ac_status=$? |
24172 | grep -v '^ *+' conftest.er1 >conftest.err |
24173 | rm -f conftest.er1 |
24174 | cat conftest.err >&5 |
24175 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24176 | (exit $ac_status); } && |
24177 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
24178 | { (case "(($ac_try" in |
24179 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24180 | *) ac_try_echo=$ac_try;; |
24181 | esac |
24182 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24183 | (eval "$ac_try") 2>&5 |
24184 | ac_status=$? |
24185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24186 | (exit $ac_status); }; } && |
24187 | { ac_try='test -s conftest.$ac_objext' |
24188 | { (case "(($ac_try" in |
24189 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24190 | *) ac_try_echo=$ac_try;; |
24191 | esac |
24192 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24193 | (eval "$ac_try") 2>&5 |
24194 | ac_status=$? |
24195 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24196 | (exit $ac_status); }; }; then |
24197 | ac_cv_type_off_t=yes |
24198 | else |
24199 | echo "$as_me: failed program was:" >&5 |
24200 | sed 's/^/| /' conftest.$ac_ext >&5 |
24201 | |
24202 | ac_cv_type_off_t=no |
24203 | fi |
24204 | |
24205 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
24206 | fi |
24207 | { echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
24208 | echo "${ECHO_T}$ac_cv_type_off_t" >&6; } |
24209 | if test $ac_cv_type_off_t = yes; then |
24210 | : |
24211 | else |
24212 | |
24213 | cat >>confdefs.h <<_ACEOF |
24214 | #define off_t long int |
24215 | _ACEOF |
24216 | |
24217 | fi |
24218 | |
24219 | { echo "$as_me:$LINENO: checking for size_t" >&5 |
24220 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6; } |
24221 | if test "${ac_cv_type_size_t+set}" = set; then |
24222 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24223 | else |
24224 | cat >conftest.$ac_ext <<_ACEOF |
24225 | /* confdefs.h. */ |
24226 | _ACEOF |
24227 | cat confdefs.h >>conftest.$ac_ext |
24228 | cat >>conftest.$ac_ext <<_ACEOF |
24229 | /* end confdefs.h. */ |
24230 | $ac_includes_default |
24231 | typedef size_t ac__type_new_; |
24232 | int |
24233 | main () |
24234 | { |
24235 | if ((ac__type_new_ *) 0) |
24236 | return 0; |
24237 | if (sizeof (ac__type_new_)) |
24238 | return 0; |
24239 | ; |
24240 | return 0; |
24241 | } |
24242 | _ACEOF |
24243 | rm -f conftest.$ac_objext |
24244 | if { (ac_try="$ac_compile" |
24245 | case "(($ac_try" in |
24246 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24247 | *) ac_try_echo=$ac_try;; |
24248 | esac |
24249 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24250 | (eval "$ac_compile") 2>conftest.er1 |
24251 | ac_status=$? |
24252 | grep -v '^ *+' conftest.er1 >conftest.err |
24253 | rm -f conftest.er1 |
24254 | cat conftest.err >&5 |
24255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24256 | (exit $ac_status); } && |
24257 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
24258 | { (case "(($ac_try" in |
24259 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24260 | *) ac_try_echo=$ac_try;; |
24261 | esac |
24262 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24263 | (eval "$ac_try") 2>&5 |
24264 | ac_status=$? |
24265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24266 | (exit $ac_status); }; } && |
24267 | { ac_try='test -s conftest.$ac_objext' |
24268 | { (case "(($ac_try" in |
24269 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24270 | *) ac_try_echo=$ac_try;; |
24271 | esac |
24272 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24273 | (eval "$ac_try") 2>&5 |
24274 | ac_status=$? |
24275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24276 | (exit $ac_status); }; }; then |
24277 | ac_cv_type_size_t=yes |
24278 | else |
24279 | echo "$as_me: failed program was:" >&5 |
24280 | sed 's/^/| /' conftest.$ac_ext >&5 |
24281 | |
24282 | ac_cv_type_size_t=no |
24283 | fi |
24284 | |
24285 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
24286 | fi |
24287 | { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 |
24288 | echo "${ECHO_T}$ac_cv_type_size_t" >&6; } |
24289 | if test $ac_cv_type_size_t = yes; then |
24290 | : |
24291 | else |
24292 | |
24293 | cat >>confdefs.h <<_ACEOF |
24294 | #define size_t unsigned int |
24295 | _ACEOF |
24296 | |
24297 | fi |
24298 | |
24299 | { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 |
24300 | echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; } |
24301 | if test "${ac_cv_header_time+set}" = set; then |
24302 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24303 | else |
24304 | cat >conftest.$ac_ext <<_ACEOF |
24305 | /* confdefs.h. */ |
24306 | _ACEOF |
24307 | cat confdefs.h >>conftest.$ac_ext |
24308 | cat >>conftest.$ac_ext <<_ACEOF |
24309 | /* end confdefs.h. */ |
24310 | #include <sys/types.h> |
24311 | #include <sys/time.h> |
24312 | #include <time.h> |
24313 | |
24314 | int |
24315 | main () |
24316 | { |
24317 | if ((struct tm *) 0) |
24318 | return 0; |
24319 | ; |
24320 | return 0; |
24321 | } |
24322 | _ACEOF |
24323 | rm -f conftest.$ac_objext |
24324 | if { (ac_try="$ac_compile" |
24325 | case "(($ac_try" in |
24326 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24327 | *) ac_try_echo=$ac_try;; |
24328 | esac |
24329 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24330 | (eval "$ac_compile") 2>conftest.er1 |
24331 | ac_status=$? |
24332 | grep -v '^ *+' conftest.er1 >conftest.err |
24333 | rm -f conftest.er1 |
24334 | cat conftest.err >&5 |
24335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24336 | (exit $ac_status); } && |
24337 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
24338 | { (case "(($ac_try" in |
24339 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24340 | *) ac_try_echo=$ac_try;; |
24341 | esac |
24342 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24343 | (eval "$ac_try") 2>&5 |
24344 | ac_status=$? |
24345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24346 | (exit $ac_status); }; } && |
24347 | { ac_try='test -s conftest.$ac_objext' |
24348 | { (case "(($ac_try" in |
24349 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24350 | *) ac_try_echo=$ac_try;; |
24351 | esac |
24352 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24353 | (eval "$ac_try") 2>&5 |
24354 | ac_status=$? |
24355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24356 | (exit $ac_status); }; }; then |
24357 | ac_cv_header_time=yes |
24358 | else |
24359 | echo "$as_me: failed program was:" >&5 |
24360 | sed 's/^/| /' conftest.$ac_ext >&5 |
24361 | |
24362 | ac_cv_header_time=no |
24363 | fi |
24364 | |
24365 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
24366 | fi |
24367 | { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 |
24368 | echo "${ECHO_T}$ac_cv_header_time" >&6; } |
24369 | if test $ac_cv_header_time = yes; then |
24370 | |
24371 | cat >>confdefs.h <<\_ACEOF |
24372 | #define TIME_WITH_SYS_TIME 1 |
24373 | _ACEOF |
24374 | |
24375 | fi |
24376 | |
24377 | |
24378 | # Checks for library functions. |
24379 | { echo "$as_me:$LINENO: checking for error_at_line" >&5 |
24380 | echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6; } |
24381 | if test "${ac_cv_lib_error_at_line+set}" = set; then |
24382 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24383 | else |
24384 | cat >conftest.$ac_ext <<_ACEOF |
24385 | /* confdefs.h. */ |
24386 | _ACEOF |
24387 | cat confdefs.h >>conftest.$ac_ext |
24388 | cat >>conftest.$ac_ext <<_ACEOF |
24389 | /* end confdefs.h. */ |
24390 | $ac_includes_default |
24391 | int |
24392 | main () |
24393 | { |
24394 | error_at_line (0, 0, "", 0, ""); |
24395 | ; |
24396 | return 0; |
24397 | } |
24398 | _ACEOF |
24399 | rm -f conftest.$ac_objext conftest$ac_exeext |
24400 | if { (ac_try="$ac_link" |
24401 | case "(($ac_try" in |
24402 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24403 | *) ac_try_echo=$ac_try;; |
24404 | esac |
24405 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24406 | (eval "$ac_link") 2>conftest.er1 |
24407 | ac_status=$? |
24408 | grep -v '^ *+' conftest.er1 >conftest.err |
24409 | rm -f conftest.er1 |
24410 | cat conftest.err >&5 |
24411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24412 | (exit $ac_status); } && |
24413 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
24414 | { (case "(($ac_try" in |
24415 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24416 | *) ac_try_echo=$ac_try;; |
24417 | esac |
24418 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24419 | (eval "$ac_try") 2>&5 |
24420 | ac_status=$? |
24421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24422 | (exit $ac_status); }; } && |
24423 | { ac_try='test -s conftest$ac_exeext' |
24424 | { (case "(($ac_try" in |
24425 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24426 | *) ac_try_echo=$ac_try;; |
24427 | esac |
24428 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24429 | (eval "$ac_try") 2>&5 |
24430 | ac_status=$? |
24431 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24432 | (exit $ac_status); }; }; then |
24433 | ac_cv_lib_error_at_line=yes |
24434 | else |
24435 | echo "$as_me: failed program was:" >&5 |
24436 | sed 's/^/| /' conftest.$ac_ext >&5 |
24437 | |
24438 | ac_cv_lib_error_at_line=no |
24439 | fi |
24440 | |
24441 | rm -f core conftest.err conftest.$ac_objext \ |
24442 | conftest$ac_exeext conftest.$ac_ext |
24443 | fi |
24444 | { echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5 |
24445 | echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6; } |
24446 | if test $ac_cv_lib_error_at_line = no; then |
24447 | case " $LIBOBJS " in |
24448 | *" error.$ac_objext "* ) ;; |
24449 | *) LIBOBJS="$LIBOBJS error.$ac_objext" |
24450 | ;; |
24451 | esac |
24452 | |
24453 | fi |
24454 | |
24455 | #AC_FUNC_MALLOC |
24456 | |
24457 | |
24458 | for ac_header in sys/select.h sys/socket.h |
24459 | do |
24460 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
24461 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
24462 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
24463 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
24464 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
24465 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24466 | fi |
24467 | ac_res=`eval echo '${'$as_ac_Header'}'` |
24468 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
24469 | echo "${ECHO_T}$ac_res" >&6; } |
24470 | else |
24471 | # Is the header compilable? |
24472 | { echo "$as_me:$LINENO: checking $ac_header usability" >&5 |
24473 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; } |
24474 | cat >conftest.$ac_ext <<_ACEOF |
24475 | /* confdefs.h. */ |
24476 | _ACEOF |
24477 | cat confdefs.h >>conftest.$ac_ext |
24478 | cat >>conftest.$ac_ext <<_ACEOF |
24479 | /* end confdefs.h. */ |
24480 | $ac_includes_default |
24481 | #include <$ac_header> |
24482 | _ACEOF |
24483 | rm -f conftest.$ac_objext |
24484 | if { (ac_try="$ac_compile" |
24485 | case "(($ac_try" in |
24486 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24487 | *) ac_try_echo=$ac_try;; |
24488 | esac |
24489 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24490 | (eval "$ac_compile") 2>conftest.er1 |
24491 | ac_status=$? |
24492 | grep -v '^ *+' conftest.er1 >conftest.err |
24493 | rm -f conftest.er1 |
24494 | cat conftest.err >&5 |
24495 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24496 | (exit $ac_status); } && |
24497 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
24498 | { (case "(($ac_try" in |
24499 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24500 | *) ac_try_echo=$ac_try;; |
24501 | esac |
24502 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24503 | (eval "$ac_try") 2>&5 |
24504 | ac_status=$? |
24505 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24506 | (exit $ac_status); }; } && |
24507 | { ac_try='test -s conftest.$ac_objext' |
24508 | { (case "(($ac_try" in |
24509 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24510 | *) ac_try_echo=$ac_try;; |
24511 | esac |
24512 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24513 | (eval "$ac_try") 2>&5 |
24514 | ac_status=$? |
24515 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24516 | (exit $ac_status); }; }; then |
24517 | ac_header_compiler=yes |
24518 | else |
24519 | echo "$as_me: failed program was:" >&5 |
24520 | sed 's/^/| /' conftest.$ac_ext >&5 |
24521 | |
24522 | ac_header_compiler=no |
24523 | fi |
24524 | |
24525 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
24526 | { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
24527 | echo "${ECHO_T}$ac_header_compiler" >&6; } |
24528 | |
24529 | # Is the header present? |
24530 | { echo "$as_me:$LINENO: checking $ac_header presence" >&5 |
24531 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; } |
24532 | cat >conftest.$ac_ext <<_ACEOF |
24533 | /* confdefs.h. */ |
24534 | _ACEOF |
24535 | cat confdefs.h >>conftest.$ac_ext |
24536 | cat >>conftest.$ac_ext <<_ACEOF |
24537 | /* end confdefs.h. */ |
24538 | #include <$ac_header> |
24539 | _ACEOF |
24540 | if { (ac_try="$ac_cpp conftest.$ac_ext" |
24541 | case "(($ac_try" in |
24542 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24543 | *) ac_try_echo=$ac_try;; |
24544 | esac |
24545 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24546 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1 |
24547 | ac_status=$? |
24548 | grep -v '^ *+' conftest.er1 >conftest.err |
24549 | rm -f conftest.er1 |
24550 | cat conftest.err >&5 |
24551 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24552 | (exit $ac_status); } >/dev/null; then |
24553 | if test -s conftest.err; then |
24554 | ac_cpp_err=$ac_c_preproc_warn_flag |
24555 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag |
24556 | else |
24557 | ac_cpp_err= |
24558 | fi |
24559 | else |
24560 | ac_cpp_err=yes |
24561 | fi |
24562 | if test -z "$ac_cpp_err"; then |
24563 | ac_header_preproc=yes |
24564 | else |
24565 | echo "$as_me: failed program was:" >&5 |
24566 | sed 's/^/| /' conftest.$ac_ext >&5 |
24567 | |
24568 | ac_header_preproc=no |
24569 | fi |
24570 | |
24571 | rm -f conftest.err conftest.$ac_ext |
24572 | { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 |
24573 | echo "${ECHO_T}$ac_header_preproc" >&6; } |
24574 | |
24575 | # So? What about this header? |
24576 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in |
24577 | yes:no: ) |
24578 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 |
24579 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} |
24580 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 |
24581 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} |
24582 | ac_header_preproc=yes |
24583 | ;; |
24584 | no:yes:* ) |
24585 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 |
24586 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} |
24587 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 |
24588 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} |
24589 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 |
24590 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} |
24591 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 |
24592 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} |
24593 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 |
24594 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} |
24595 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 |
24596 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} |
24597 | ( cat <<\_ASBOX |
24598 | ## --------------------------------- ## |
24599 | ## Report this to BUG-REPORT-ADDRESS ## |
24600 | ## --------------------------------- ## |
24601 | _ASBOX |
24602 | ) | sed "s/^/$as_me: WARNING: /" >&2 |
24603 | ;; |
24604 | esac |
24605 | { echo "$as_me:$LINENO: checking for $ac_header" >&5 |
24606 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; } |
24607 | if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then |
24608 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24609 | else |
24610 | eval "$as_ac_Header=\$ac_header_preproc" |
24611 | fi |
24612 | ac_res=`eval echo '${'$as_ac_Header'}'` |
24613 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
24614 | echo "${ECHO_T}$ac_res" >&6; } |
24615 | |
24616 | fi |
24617 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
24618 | cat >>confdefs.h <<_ACEOF |
24619 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
24620 | _ACEOF |
24621 | |
24622 | fi |
24623 | |
24624 | done |
24625 | |
24626 | { echo "$as_me:$LINENO: checking types of arguments for select" >&5 |
24627 | echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6; } |
24628 | if test "${ac_cv_func_select_args+set}" = set; then |
24629 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24630 | else |
24631 | for ac_arg234 in 'fd_set *' 'int *' 'void *'; do |
24632 | for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do |
24633 | for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do |
24634 | cat >conftest.$ac_ext <<_ACEOF |
24635 | /* confdefs.h. */ |
24636 | _ACEOF |
24637 | cat confdefs.h >>conftest.$ac_ext |
24638 | cat >>conftest.$ac_ext <<_ACEOF |
24639 | /* end confdefs.h. */ |
24640 | $ac_includes_default |
24641 | #if HAVE_SYS_SELECT_H |
24642 | # include <sys/select.h> |
24643 | #endif |
24644 | #if HAVE_SYS_SOCKET_H |
24645 | # include <sys/socket.h> |
24646 | #endif |
24647 | |
24648 | int |
24649 | main () |
24650 | { |
24651 | extern int select ($ac_arg1, |
24652 | $ac_arg234, $ac_arg234, $ac_arg234, |
24653 | $ac_arg5); |
24654 | ; |
24655 | return 0; |
24656 | } |
24657 | _ACEOF |
24658 | rm -f conftest.$ac_objext |
24659 | if { (ac_try="$ac_compile" |
24660 | case "(($ac_try" in |
24661 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24662 | *) ac_try_echo=$ac_try;; |
24663 | esac |
24664 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24665 | (eval "$ac_compile") 2>conftest.er1 |
24666 | ac_status=$? |
24667 | grep -v '^ *+' conftest.er1 >conftest.err |
24668 | rm -f conftest.er1 |
24669 | cat conftest.err >&5 |
24670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24671 | (exit $ac_status); } && |
24672 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
24673 | { (case "(($ac_try" in |
24674 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24675 | *) ac_try_echo=$ac_try;; |
24676 | esac |
24677 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24678 | (eval "$ac_try") 2>&5 |
24679 | ac_status=$? |
24680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24681 | (exit $ac_status); }; } && |
24682 | { ac_try='test -s conftest.$ac_objext' |
24683 | { (case "(($ac_try" in |
24684 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24685 | *) ac_try_echo=$ac_try;; |
24686 | esac |
24687 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24688 | (eval "$ac_try") 2>&5 |
24689 | ac_status=$? |
24690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24691 | (exit $ac_status); }; }; then |
24692 | ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3 |
24693 | else |
24694 | echo "$as_me: failed program was:" >&5 |
24695 | sed 's/^/| /' conftest.$ac_ext >&5 |
24696 | |
24697 | |
24698 | fi |
24699 | |
24700 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext |
24701 | done |
24702 | done |
24703 | done |
24704 | # Provide a safe default value. |
24705 | : ${ac_cv_func_select_args='int,int *,struct timeval *'} |
24706 | |
24707 | fi |
24708 | { echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5 |
24709 | echo "${ECHO_T}$ac_cv_func_select_args" >&6; } |
24710 | ac_save_IFS=$IFS; IFS=',' |
24711 | set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'` |
24712 | IFS=$ac_save_IFS |
24713 | shift |
24714 | |
24715 | cat >>confdefs.h <<_ACEOF |
24716 | #define SELECT_TYPE_ARG1 $1 |
24717 | _ACEOF |
24718 | |
24719 | |
24720 | cat >>confdefs.h <<_ACEOF |
24721 | #define SELECT_TYPE_ARG234 ($2) |
24722 | _ACEOF |
24723 | |
24724 | |
24725 | cat >>confdefs.h <<_ACEOF |
24726 | #define SELECT_TYPE_ARG5 ($3) |
24727 | _ACEOF |
24728 | |
24729 | rm -f conftest* |
24730 | |
24731 | |
24732 | for ac_func in select |
24733 | do |
24734 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
24735 | { echo "$as_me:$LINENO: checking for $ac_func" >&5 |
24736 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; } |
24737 | if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then |
24738 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
24739 | else |
24740 | cat >conftest.$ac_ext <<_ACEOF |
24741 | /* confdefs.h. */ |
24742 | _ACEOF |
24743 | cat confdefs.h >>conftest.$ac_ext |
24744 | cat >>conftest.$ac_ext <<_ACEOF |
24745 | /* end confdefs.h. */ |
24746 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
24747 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ |
24748 | #define $ac_func innocuous_$ac_func |
24749 | |
24750 | /* System header to define __stub macros and hopefully few prototypes, |
24751 | which can conflict with char $ac_func (); below. |
24752 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since |
24753 | <limits.h> exists even on freestanding compilers. */ |
24754 | |
24755 | #ifdef __STDC__ |
24756 | # include <limits.h> |
24757 | #else |
24758 | # include <assert.h> |
24759 | #endif |
24760 | |
24761 | #undef $ac_func |
24762 | |
24763 | /* Override any GCC internal prototype to avoid an error. |
24764 | Use char because int might match the return type of a GCC |
24765 | builtin and then its argument prototype would still apply. */ |
24766 | #ifdef __cplusplus |
24767 | extern "C" |
24768 | #endif |
24769 | char $ac_func (); |
24770 | /* The GNU C library defines this for functions which it implements |
24771 | to always fail with ENOSYS. Some functions are actually named |
24772 | something starting with __ and the normal name is an alias. */ |
24773 | #if defined __stub_$ac_func || defined __stub___$ac_func |
24774 | choke me |
24775 | #endif |
24776 | |
24777 | int |
24778 | main () |
24779 | { |
24780 | return $ac_func (); |
24781 | ; |
24782 | return 0; |
24783 | } |
24784 | _ACEOF |
24785 | rm -f conftest.$ac_objext conftest$ac_exeext |
24786 | if { (ac_try="$ac_link" |
24787 | case "(($ac_try" in |
24788 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24789 | *) ac_try_echo=$ac_try;; |
24790 | esac |
24791 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24792 | (eval "$ac_link") 2>conftest.er1 |
24793 | ac_status=$? |
24794 | grep -v '^ *+' conftest.er1 >conftest.err |
24795 | rm -f conftest.er1 |
24796 | cat conftest.err >&5 |
24797 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24798 | (exit $ac_status); } && |
24799 | { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err' |
24800 | { (case "(($ac_try" in |
24801 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24802 | *) ac_try_echo=$ac_try;; |
24803 | esac |
24804 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24805 | (eval "$ac_try") 2>&5 |
24806 | ac_status=$? |
24807 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24808 | (exit $ac_status); }; } && |
24809 | { ac_try='test -s conftest$ac_exeext' |
24810 | { (case "(($ac_try" in |
24811 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; |
24812 | *) ac_try_echo=$ac_try;; |
24813 | esac |
24814 | eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5 |
24815 | (eval "$ac_try") 2>&5 |
24816 | ac_status=$? |
24817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
24818 | (exit $ac_status); }; }; then |
24819 | eval "$as_ac_var=yes" |
24820 | else |
24821 | echo "$as_me: failed program was:" >&5 |
24822 | sed 's/^/| /' conftest.$ac_ext >&5 |
24823 | |
24824 | eval "$as_ac_var=no" |
24825 | fi |
24826 | |
24827 | rm -f core conftest.err conftest.$ac_objext \ |
24828 | conftest$ac_exeext conftest.$ac_ext |
24829 | fi |
24830 | ac_res=`eval echo '${'$as_ac_var'}'` |
24831 | { echo "$as_me:$LINENO: result: $ac_res" >&5 |
24832 | echo "${ECHO_T}$ac_res" >&6; } |
24833 | if test `eval echo '${'$as_ac_var'}'` = yes; then |
24834 | cat >>confdefs.h <<_ACEOF |
24835 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 |
24836 | _ACEOF |
24837 | |
24838 | fi |
24839 | done |
24840 | |
24841 | |
24842 | #CPPFLAGS="$CPPFLAGS -I" |
24843 | |
24844 | |
24845 | |
24846 | if test "$enable_lttvstatic" = yes; then |
24847 | LTTVSTATIC_TRUE= |
24848 | LTTVSTATIC_FALSE='#' |
24849 | else |
24850 | LTTVSTATIC_TRUE='#' |
24851 | LTTVSTATIC_FALSE= |
24852 | fi |
24853 | |
24854 | lttvlibdir="${libdir}/lttv" |
24855 | lttvplugindir="${lttvlibdir}/plugins" |
24856 | #lttlibdir="${libdir}/ltt" |
24857 | top_lttvdir="\$(top_srcdir)/lttv" |
24858 | top_lttvwindowdir="\$(top_srcdir)/lttv/modules/gui/lttvwindow" |
24859 | |
24860 | DEFAULT_INCLUDES="-I\$(top_srcdir) -I\$(top_builddir) -I\$(top_lttvdir) -I\$(top_lttvwindowdir)" |
24861 | |
24862 | #CPPFLAGS="${GLIB_CFLAGS}" |
24863 | #AC_SUBST(CPPFLAGS) |
24864 | |
24865 | lttincludedir="${includedir}/ltt" |
24866 | lttvincludedir="${includedir}/lttv" |
24867 | lttvwindowincludedir="${includedir}/lttvwindow" |
24868 | lttctlincludedir="${includedir}/liblttctl" |
24869 | |
24870 | |
24871 | |
24872 | |
24873 | |
24874 | |
24875 | #AC_SUBST(lttlibdir) |
24876 | |
24877 | |
24878 | |
24879 | |
24880 | |
24881 | |
24882 | |
24883 | |
24884 | ac_config_files="$ac_config_files Makefile lttv/Makefile lttv/lttv/Makefile lttv/modules/Makefile lttv/modules/text/Makefile lttv/modules/gui/Makefile lttv/modules/gui/lttvwindow/Makefile lttv/modules/gui/interrupts/Makefile lttv/modules/gui/tutorial/Makefile lttv/modules/gui/diskperformance/Makefile lttv/modules/gui/lttvwindow/lttvwindow/Makefile lttv/modules/gui/lttvwindow/pixmaps/Makefile lttv/modules/gui/controlflow/Makefile lttv/modules/gui/detailedevents/Makefile lttv/modules/gui/statistics/Makefile lttv/modules/gui/histogram/Makefile lttv/modules/gui/filter/Makefile lttv/modules/gui/tracecontrol/Makefile ltt/Makefile doc/Makefile doc/developer/Makefile doc/developer/developer_guide/Makefile doc/developer/developer_guide/docbook/Makefile doc/developer/developer_guide/html/Makefile doc/user/Makefile doc/user/user_guide/Makefile doc/user/user_guide/docbook/Makefile doc/user/user_guide/html/Makefile lttv/modules/gui/xenoltt/Makefile" |
24885 | |
24886 | cat >confcache <<\_ACEOF |
24887 | # This file is a shell script that caches the results of configure |
24888 | # tests run on this system so they can be shared between configure |
24889 | # scripts and configure runs, see configure's option --config-cache. |
24890 | # It is not useful on other systems. If it contains results you don't |
24891 | # want to keep, you may remove or edit it. |
24892 | # |
24893 | # config.status only pays attention to the cache file if you give it |
24894 | # the --recheck option to rerun configure. |
24895 | # |
24896 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
24897 | # loading this file, other *unset* `ac_cv_foo' will be assigned the |
24898 | # following values. |
24899 | |
24900 | _ACEOF |
24901 | |
24902 | # The following way of writing the cache mishandles newlines in values, |
24903 | # but we know of no workaround that is simple, portable, and efficient. |
24904 | # So, we kill variables containing newlines. |
24905 | # Ultrix sh set writes to stderr and can't be redirected directly, |
24906 | # and sets the high bit in the cache file unless we assign to the vars. |
24907 | ( |
24908 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do |
24909 | eval ac_val=\$$ac_var |
24910 | case $ac_val in #( |
24911 | *${as_nl}*) |
24912 | case $ac_var in #( |
24913 | *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5 |
24914 | echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;; |
24915 | esac |
24916 | case $ac_var in #( |
24917 | _ | IFS | as_nl) ;; #( |
24918 | *) $as_unset $ac_var ;; |
24919 | esac ;; |
24920 | esac |
24921 | done |
24922 | |
24923 | (set) 2>&1 | |
24924 | case $as_nl`(ac_space=' '; set) 2>&1` in #( |
24925 | *${as_nl}ac_space=\ *) |
24926 | # `set' does not quote correctly, so add quotes (double-quote |
24927 | # substitution turns \\\\ into \\, and sed turns \\ into \). |
24928 | sed -n \ |
24929 | "s/'/'\\\\''/g; |
24930 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" |
24931 | ;; #( |
24932 | *) |
24933 | # `set' quotes correctly as required by POSIX, so do not add quotes. |
24934 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" |
24935 | ;; |
24936 | esac | |
24937 | sort |
24938 | ) | |
24939 | sed ' |
24940 | /^ac_cv_env_/b end |
24941 | t clear |
24942 | :clear |
24943 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ |
24944 | t end |
24945 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ |
24946 | :end' >>confcache |
24947 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else |
24948 | if test -w "$cache_file"; then |
24949 | test "x$cache_file" != "x/dev/null" && |
24950 | { echo "$as_me:$LINENO: updating cache $cache_file" >&5 |
24951 | echo "$as_me: updating cache $cache_file" >&6;} |
24952 | cat confcache >$cache_file |
24953 | else |
24954 | { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5 |
24955 | echo "$as_me: not updating unwritable cache $cache_file" >&6;} |
24956 | fi |
24957 | fi |
24958 | rm -f confcache |
24959 | |
24960 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
24961 | # Let make expand exec_prefix. |
24962 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' |
24963 | |
24964 | DEFS=-DHAVE_CONFIG_H |
24965 | |
24966 | ac_libobjs= |
24967 | ac_ltlibobjs= |
24968 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue |
24969 | # 1. Remove the extension, and $U if already installed. |
24970 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' |
24971 | ac_i=`echo "$ac_i" | sed "$ac_script"` |
24972 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR |
24973 | # will be set to the directory where LIBOBJS objects are built. |
24974 | ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext" |
24975 | ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo' |
24976 | done |
24977 | LIBOBJS=$ac_libobjs |
24978 | |
24979 | LTLIBOBJS=$ac_ltlibobjs |
24980 | |
24981 | |
24982 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then |
24983 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. |
24984 | Usually this means the macro was only invoked conditionally." >&5 |
24985 | echo "$as_me: error: conditional \"AMDEP\" was never defined. |
24986 | Usually this means the macro was only invoked conditionally." >&2;} |
24987 | { (exit 1); exit 1; }; } |
24988 | fi |
24989 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
24990 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
24991 | Usually this means the macro was only invoked conditionally." >&5 |
24992 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
24993 | Usually this means the macro was only invoked conditionally." >&2;} |
24994 | { (exit 1); exit 1; }; } |
24995 | fi |
24996 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then |
24997 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined. |
24998 | Usually this means the macro was only invoked conditionally." >&5 |
24999 | echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined. |
25000 | Usually this means the macro was only invoked conditionally." >&2;} |
25001 | { (exit 1); exit 1; }; } |
25002 | fi |
25003 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
25004 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
25005 | Usually this means the macro was only invoked conditionally." >&5 |
25006 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
25007 | Usually this means the macro was only invoked conditionally." >&2;} |
25008 | { (exit 1); exit 1; }; } |
25009 | fi |
25010 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then |
25011 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. |
25012 | Usually this means the macro was only invoked conditionally." >&5 |
25013 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. |
25014 | Usually this means the macro was only invoked conditionally." >&2;} |
25015 | { (exit 1); exit 1; }; } |
25016 | fi |
25017 | if test -z "${LTTVSTATIC_TRUE}" && test -z "${LTTVSTATIC_FALSE}"; then |
25018 | { { echo "$as_me:$LINENO: error: conditional \"LTTVSTATIC\" was never defined. |
25019 | Usually this means the macro was only invoked conditionally." >&5 |
25020 | echo "$as_me: error: conditional \"LTTVSTATIC\" was never defined. |
25021 | Usually this means the macro was only invoked conditionally." >&2;} |
25022 | { (exit 1); exit 1; }; } |
25023 | fi |
25024 | |
25025 | : ${CONFIG_STATUS=./config.status} |
25026 | ac_clean_files_save=$ac_clean_files |
25027 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" |
25028 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 |
25029 | echo "$as_me: creating $CONFIG_STATUS" >&6;} |
25030 | cat >$CONFIG_STATUS <<_ACEOF |
25031 | #! $SHELL |
25032 | # Generated by $as_me. |
25033 | # Run this file to recreate the current configuration. |
25034 | # Compiler output produced by configure, useful for debugging |
25035 | # configure, is in config.log if it exists. |
25036 | |
25037 | debug=false |
25038 | ac_cs_recheck=false |
25039 | ac_cs_silent=false |
25040 | SHELL=\${CONFIG_SHELL-$SHELL} |
25041 | _ACEOF |
25042 | |
25043 | cat >>$CONFIG_STATUS <<\_ACEOF |
25044 | ## --------------------- ## |
25045 | ## M4sh Initialization. ## |
25046 | ## --------------------- ## |
25047 | |
25048 | # Be Bourne compatible |
25049 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then |
25050 | emulate sh |
25051 | NULLCMD=: |
25052 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which |
25053 | # is contrary to our usage. Disable this feature. |
25054 | alias -g '${1+"$@"}'='"$@"' |
25055 | setopt NO_GLOB_SUBST |
25056 | else |
25057 | case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac |
25058 | fi |
25059 | BIN_SH=xpg4; export BIN_SH # for Tru64 |
25060 | DUALCASE=1; export DUALCASE # for MKS sh |
25061 | |
25062 | |
25063 | # PATH needs CR |
25064 | # Avoid depending upon Character Ranges. |
25065 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' |
25066 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' |
25067 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS |
25068 | as_cr_digits='0123456789' |
25069 | as_cr_alnum=$as_cr_Letters$as_cr_digits |
25070 | |
25071 | # The user is always right. |
25072 | if test "${PATH_SEPARATOR+set}" != set; then |
25073 | echo "#! /bin/sh" >conf$$.sh |
25074 | echo "exit 0" >>conf$$.sh |
25075 | chmod +x conf$$.sh |
25076 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then |
25077 | PATH_SEPARATOR=';' |
25078 | else |
25079 | PATH_SEPARATOR=: |
25080 | fi |
25081 | rm -f conf$$.sh |
25082 | fi |
25083 | |
25084 | # Support unset when possible. |
25085 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then |
25086 | as_unset=unset |
25087 | else |
25088 | as_unset=false |
25089 | fi |
25090 | |
25091 | |
25092 | # IFS |
25093 | # We need space, tab and new line, in precisely that order. Quoting is |
25094 | # there to prevent editors from complaining about space-tab. |
25095 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word |
25096 | # splitting by setting IFS to empty value.) |
25097 | as_nl=' |
25098 | ' |
25099 | IFS=" "" $as_nl" |
25100 | |
25101 | # Find who we are. Look in the path if we contain no directory separator. |
25102 | case $0 in |
25103 | *[\\/]* ) as_myself=$0 ;; |
25104 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
25105 | for as_dir in $PATH |
25106 | do |
25107 | IFS=$as_save_IFS |
25108 | test -z "$as_dir" && as_dir=. |
25109 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break |
25110 | done |
25111 | IFS=$as_save_IFS |
25112 | |
25113 | ;; |
25114 | esac |
25115 | # We did not find ourselves, most probably we were run as `sh COMMAND' |
25116 | # in which case we are not to be found in the path. |
25117 | if test "x$as_myself" = x; then |
25118 | as_myself=$0 |
25119 | fi |
25120 | if test ! -f "$as_myself"; then |
25121 | echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 |
25122 | { (exit 1); exit 1; } |
25123 | fi |
25124 | |
25125 | # Work around bugs in pre-3.0 UWIN ksh. |
25126 | for as_var in ENV MAIL MAILPATH |
25127 | do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
25128 | done |
25129 | PS1='$ ' |
25130 | PS2='> ' |
25131 | PS4='+ ' |
25132 | |
25133 | # NLS nuisances. |
25134 | for as_var in \ |
25135 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ |
25136 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ |
25137 | LC_TELEPHONE LC_TIME |
25138 | do |
25139 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
25140 | eval $as_var=C; export $as_var |
25141 | else |
25142 | ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var |
25143 | fi |
25144 | done |
25145 | |
25146 | # Required to use basename. |
25147 | if expr a : '\(a\)' >/dev/null 2>&1 && |
25148 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
25149 | as_expr=expr |
25150 | else |
25151 | as_expr=false |
25152 | fi |
25153 | |
25154 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then |
25155 | as_basename=basename |
25156 | else |
25157 | as_basename=false |
25158 | fi |
25159 | |
25160 | |
25161 | # Name of the executable. |
25162 | as_me=`$as_basename -- "$0" || |
25163 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ |
25164 | X"$0" : 'X\(//\)$' \| \ |
25165 | X"$0" : 'X\(/\)' \| . 2>/dev/null || |
25166 | echo X/"$0" | |
25167 | sed '/^.*\/\([^/][^/]*\)\/*$/{ |
25168 | s//\1/ |
25169 | q |
25170 | } |
25171 | /^X\/\(\/\/\)$/{ |
25172 | s//\1/ |
25173 | q |
25174 | } |
25175 | /^X\/\(\/\).*/{ |
25176 | s//\1/ |
25177 | q |
25178 | } |
25179 | s/.*/./; q'` |
25180 | |
25181 | # CDPATH. |
25182 | $as_unset CDPATH |
25183 | |
25184 | |
25185 | |
25186 | as_lineno_1=$LINENO |
25187 | as_lineno_2=$LINENO |
25188 | test "x$as_lineno_1" != "x$as_lineno_2" && |
25189 | test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || { |
25190 | |
25191 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
25192 | # uniformly replaced by the line number. The first 'sed' inserts a |
25193 | # line-number line after each line using $LINENO; the second 'sed' |
25194 | # does the real work. The second script uses 'N' to pair each |
25195 | # line-number line with the line containing $LINENO, and appends |
25196 | # trailing '-' during substitution so that $LINENO is not a special |
25197 | # case at line end. |
25198 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the |
25199 | # scripts with optimization help from Paolo Bonzini. Blame Lee |
25200 | # E. McMahon (1931-1989) for sed's syntax. :-) |
25201 | sed -n ' |
25202 | p |
25203 | /[$]LINENO/= |
25204 | ' <$as_myself | |
25205 | sed ' |
25206 | s/[$]LINENO.*/&-/ |
25207 | t lineno |
25208 | b |
25209 | :lineno |
25210 | N |
25211 | :loop |
25212 | s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ |
25213 | t loop |
25214 | s/-\n.*// |
25215 | ' >$as_me.lineno && |
25216 | chmod +x "$as_me.lineno" || |
25217 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 |
25218 | { (exit 1); exit 1; }; } |
25219 | |
25220 | # Don't try to exec as it changes $[0], causing all sort of problems |
25221 | # (the dirname of $[0] is not the place where we might find the |
25222 | # original and so on. Autoconf is especially sensitive to this). |
25223 | . "./$as_me.lineno" |
25224 | # Exit status is that of the last command. |
25225 | exit |
25226 | } |
25227 | |
25228 | |
25229 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then |
25230 | as_dirname=dirname |
25231 | else |
25232 | as_dirname=false |
25233 | fi |
25234 | |
25235 | ECHO_C= ECHO_N= ECHO_T= |
25236 | case `echo -n x` in |
25237 | -n*) |
25238 | case `echo 'x\c'` in |
25239 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. |
25240 | *) ECHO_C='\c';; |
25241 | esac;; |
25242 | *) |
25243 | ECHO_N='-n';; |
25244 | esac |
25245 | |
25246 | if expr a : '\(a\)' >/dev/null 2>&1 && |
25247 | test "X`expr 00001 : '.*\(...\)'`" = X001; then |
25248 | as_expr=expr |
25249 | else |
25250 | as_expr=false |
25251 | fi |
25252 | |
25253 | rm -f conf$$ conf$$.exe conf$$.file |
25254 | if test -d conf$$.dir; then |
25255 | rm -f conf$$.dir/conf$$.file |
25256 | else |
25257 | rm -f conf$$.dir |
25258 | mkdir conf$$.dir |
25259 | fi |
25260 | echo >conf$$.file |
25261 | if ln -s conf$$.file conf$$ 2>/dev/null; then |
25262 | as_ln_s='ln -s' |
25263 | # ... but there are two gotchas: |
25264 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. |
25265 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. |
25266 | # In both cases, we have to default to `cp -p'. |
25267 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || |
25268 | as_ln_s='cp -p' |
25269 | elif ln conf$$.file conf$$ 2>/dev/null; then |
25270 | as_ln_s=ln |
25271 | else |
25272 | as_ln_s='cp -p' |
25273 | fi |
25274 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file |
25275 | rmdir conf$$.dir 2>/dev/null |
25276 | |
25277 | if mkdir -p . 2>/dev/null; then |
25278 | as_mkdir_p=: |
25279 | else |
25280 | test -d ./-p && rmdir ./-p |
25281 | as_mkdir_p=false |
25282 | fi |
25283 | |
25284 | # Find out whether ``test -x'' works. Don't use a zero-byte file, as |
25285 | # systems may use methods other than mode bits to determine executability. |
25286 | cat >conf$$.file <<_ASEOF |
25287 | #! /bin/sh |
25288 | exit 0 |
25289 | _ASEOF |
25290 | chmod +x conf$$.file |
25291 | if test -x conf$$.file >/dev/null 2>&1; then |
25292 | as_executable_p="test -x" |
25293 | else |
25294 | as_executable_p=: |
25295 | fi |
25296 | rm -f conf$$.file |
25297 | |
25298 | # Sed expression to map a string onto a valid CPP name. |
25299 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" |
25300 | |
25301 | # Sed expression to map a string onto a valid variable name. |
25302 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" |
25303 | |
25304 | |
25305 | exec 6>&1 |
25306 | |
25307 | # Save the log message, to keep $[0] and so on meaningful, and to |
25308 | # report actual input values of CONFIG_FILES etc. instead of their |
25309 | # values after options handling. |
25310 | ac_log=" |
25311 | This file was extended by FULL-PACKAGE-NAME $as_me VERSION, which was |
25312 | generated by GNU Autoconf 2.60. Invocation command line was |
25313 | |
25314 | CONFIG_FILES = $CONFIG_FILES |
25315 | CONFIG_HEADERS = $CONFIG_HEADERS |
25316 | CONFIG_LINKS = $CONFIG_LINKS |
25317 | CONFIG_COMMANDS = $CONFIG_COMMANDS |
25318 | $ $0 $@ |
25319 | |
25320 | on `(hostname || uname -n) 2>/dev/null | sed 1q` |
25321 | " |
25322 | |
25323 | _ACEOF |
25324 | |
25325 | cat >>$CONFIG_STATUS <<_ACEOF |
25326 | # Files that config.status was made for. |
25327 | config_files="$ac_config_files" |
25328 | config_headers="$ac_config_headers" |
25329 | config_commands="$ac_config_commands" |
25330 | |
25331 | _ACEOF |
25332 | |
25333 | cat >>$CONFIG_STATUS <<\_ACEOF |
25334 | ac_cs_usage="\ |
25335 | \`$as_me' instantiates files from templates according to the |
25336 | current configuration. |
25337 | |
25338 | Usage: $0 [OPTIONS] [FILE]... |
25339 | |
25340 | -h, --help print this help, then exit |
25341 | -V, --version print version number, then exit |
25342 | -q, --quiet do not print progress messages |
25343 | -d, --debug don't remove temporary files |
25344 | --recheck update $as_me by reconfiguring in the same conditions |
25345 | --file=FILE[:TEMPLATE] |
25346 | instantiate the configuration file FILE |
25347 | --header=FILE[:TEMPLATE] |
25348 | instantiate the configuration header FILE |
25349 | |
25350 | Configuration files: |
25351 | $config_files |
25352 | |
25353 | Configuration headers: |
25354 | $config_headers |
25355 | |
25356 | Configuration commands: |
25357 | $config_commands |
25358 | |
25359 | Report bugs to <bug-autoconf@gnu.org>." |
25360 | |
25361 | _ACEOF |
25362 | cat >>$CONFIG_STATUS <<_ACEOF |
25363 | ac_cs_version="\\ |
25364 | FULL-PACKAGE-NAME config.status VERSION |
25365 | configured by $0, generated by GNU Autoconf 2.60, |
25366 | with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" |
25367 | |
25368 | Copyright (C) 2006 Free Software Foundation, Inc. |
25369 | This config.status script is free software; the Free Software Foundation |
25370 | gives unlimited permission to copy, distribute and modify it." |
25371 | |
25372 | ac_pwd='$ac_pwd' |
25373 | srcdir='$srcdir' |
25374 | INSTALL='$INSTALL' |
25375 | _ACEOF |
25376 | |
25377 | cat >>$CONFIG_STATUS <<\_ACEOF |
25378 | # If no file are specified by the user, then we need to provide default |
25379 | # value. By we need to know if files were specified by the user. |
25380 | ac_need_defaults=: |
25381 | while test $# != 0 |
25382 | do |
25383 | case $1 in |
25384 | --*=*) |
25385 | ac_option=`expr "X$1" : 'X\([^=]*\)='` |
25386 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` |
25387 | ac_shift=: |
25388 | ;; |
25389 | *) |
25390 | ac_option=$1 |
25391 | ac_optarg=$2 |
25392 | ac_shift=shift |
25393 | ;; |
25394 | esac |
25395 | |
25396 | case $ac_option in |
25397 | # Handling of the options. |
25398 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) |
25399 | ac_cs_recheck=: ;; |
25400 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) |
25401 | echo "$ac_cs_version"; exit ;; |
25402 | --debug | --debu | --deb | --de | --d | -d ) |
25403 | debug=: ;; |
25404 | --file | --fil | --fi | --f ) |
25405 | $ac_shift |
25406 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" |
25407 | ac_need_defaults=false;; |
25408 | --header | --heade | --head | --hea ) |
25409 | $ac_shift |
25410 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" |
25411 | ac_need_defaults=false;; |
25412 | --he | --h) |
25413 | # Conflict between --help and --header |
25414 | { echo "$as_me: error: ambiguous option: $1 |
25415 | Try \`$0 --help' for more information." >&2 |
25416 | { (exit 1); exit 1; }; };; |
25417 | --help | --hel | -h ) |
25418 | echo "$ac_cs_usage"; exit ;; |
25419 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ |
25420 | | -silent | --silent | --silen | --sile | --sil | --si | --s) |
25421 | ac_cs_silent=: ;; |
25422 | |
25423 | # This is an error. |
25424 | -*) { echo "$as_me: error: unrecognized option: $1 |
25425 | Try \`$0 --help' for more information." >&2 |
25426 | { (exit 1); exit 1; }; } ;; |
25427 | |
25428 | *) ac_config_targets="$ac_config_targets $1" |
25429 | ac_need_defaults=false ;; |
25430 | |
25431 | esac |
25432 | shift |
25433 | done |
25434 | |
25435 | ac_configure_extra_args= |
25436 | |
25437 | if $ac_cs_silent; then |
25438 | exec 6>/dev/null |
25439 | ac_configure_extra_args="$ac_configure_extra_args --silent" |
25440 | fi |
25441 | |
25442 | _ACEOF |
25443 | cat >>$CONFIG_STATUS <<_ACEOF |
25444 | if \$ac_cs_recheck; then |
25445 | echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 |
25446 | CONFIG_SHELL=$SHELL |
25447 | export CONFIG_SHELL |
25448 | exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion |
25449 | fi |
25450 | |
25451 | _ACEOF |
25452 | cat >>$CONFIG_STATUS <<\_ACEOF |
25453 | exec 5>>config.log |
25454 | { |
25455 | echo |
25456 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX |
25457 | ## Running $as_me. ## |
25458 | _ASBOX |
25459 | echo "$ac_log" |
25460 | } >&5 |
25461 | |
25462 | _ACEOF |
25463 | cat >>$CONFIG_STATUS <<_ACEOF |
25464 | # |
25465 | # INIT-COMMANDS |
25466 | # |
25467 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" |
25468 | |
25469 | _ACEOF |
25470 | |
25471 | cat >>$CONFIG_STATUS <<\_ACEOF |
25472 | |
25473 | # Handling of arguments. |
25474 | for ac_config_target in $ac_config_targets |
25475 | do |
25476 | case $ac_config_target in |
25477 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; |
25478 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; |
25479 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; |
25480 | "lttv/Makefile") CONFIG_FILES="$CONFIG_FILES lttv/Makefile" ;; |
25481 | "lttv/lttv/Makefile") CONFIG_FILES="$CONFIG_FILES lttv/lttv/Makefile" ;; |
25482 | "lttv/modules/Makefile") CONFIG_FILES="$CONFIG_FILES lttv/modules/Makefile" ;; |
25483 | "lttv/modules/text/Makefile") CONFIG_FILES="$CONFIG_FILES lttv/modules/text/Makefile" ;; |
25484 | "lttv/modules/gui/Makefile") CONFIG_FILES="$CONFIG_FILES lttv/modules/gui/Makefile" ;; |
25485 | "lttv/modules/gui/lttvwindow/Makefile") CONFIG_FILES="$CONFIG_FILES lttv/modules/gui/lttvwindow/Makefile" ;; |
25486 | "lttv/modules/gui/interrupts/Makefile") CONFIG_FILES="$CONFIG_FILES lttv/modules/gui/interrupts/Makefile" ;; |
25487 | "lttv/modules/gui/tutorial/Makefile") CONFIG_FILES="$CONFIG_FILES lttv/modules/gui/tutorial/Makefile" ;; |
25488 | "lttv/modules/gui/diskperformance/Makefile") CONFIG_FILES="$CONFIG_FILES lttv/modules/gui/diskperformance/Makefile" ;; |
25489 | "lttv/modules/gui/lttvwindow/lttvwindow/Makefile") CONFIG_FILES="$CONFIG_FILES lttv/modules/gui/lttvwindow/lttvwindow/Makefile" ;; |
25490 | "lttv/modules/gui/lttvwindow/pixmaps/Makefile") CONFIG_FILES="$CONFIG_FILES lttv/modules/gui/lttvwindow/pixmaps/Makefile" ;; |
25491 | "lttv/modules/gui/controlflow/Makefile") CONFIG_FILES="$CONFIG_FILES lttv/modules/gui/controlflow/Makefile" ;; |
25492 | "lttv/modules/gui/detailedevents/Makefile") CONFIG_FILES="$CONFIG_FILES lttv/modules/gui/detailedevents/Makefile" ;; |
25493 | "lttv/modules/gui/statistics/Makefile") CONFIG_FILES="$CONFIG_FILES lttv/modules/gui/statistics/Makefile" ;; |
25494 | "lttv/modules/gui/histogram/Makefile") CONFIG_FILES="$CONFIG_FILES lttv/modules/gui/histogram/Makefile" ;; |
25495 | "lttv/modules/gui/filter/Makefile") CONFIG_FILES="$CONFIG_FILES lttv/modules/gui/filter/Makefile" ;; |
25496 | "lttv/modules/gui/tracecontrol/Makefile") CONFIG_FILES="$CONFIG_FILES lttv/modules/gui/tracecontrol/Makefile" ;; |
25497 | "lttv/modules/gui/xenoltt/Makefile") CONFIG_FILES="$CONFIG_FILES lttv/modules/gui/xenoltt/Makefile" ;; |
25498 | "ltt/Makefile") CONFIG_FILES="$CONFIG_FILES ltt/Makefile" ;; |
25499 | "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; |
25500 | "doc/developer/Makefile") CONFIG_FILES="$CONFIG_FILES doc/developer/Makefile" ;; |
25501 | "doc/developer/developer_guide/Makefile") CONFIG_FILES="$CONFIG_FILES doc/developer/developer_guide/Makefile" ;; |
25502 | "doc/developer/developer_guide/docbook/Makefile") CONFIG_FILES="$CONFIG_FILES doc/developer/developer_guide/docbook/Makefile" ;; |
25503 | "doc/developer/developer_guide/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/developer/developer_guide/html/Makefile" ;; |
25504 | "doc/user/Makefile") CONFIG_FILES="$CONFIG_FILES doc/user/Makefile" ;; |
25505 | "doc/user/user_guide/Makefile") CONFIG_FILES="$CONFIG_FILES doc/user/user_guide/Makefile" ;; |
25506 | "doc/user/user_guide/docbook/Makefile") CONFIG_FILES="$CONFIG_FILES doc/user/user_guide/docbook/Makefile" ;; |
25507 | "doc/user/user_guide/html/Makefile") CONFIG_FILES="$CONFIG_FILES doc/user/user_guide/html/Makefile" ;; |
25508 | |
25509 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 |
25510 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} |
25511 | { (exit 1); exit 1; }; };; |
25512 | esac |
25513 | done |
25514 | |
25515 | |
25516 | # If the user did not use the arguments to specify the items to instantiate, |
25517 | # then the envvar interface is used. Set only those that are not. |
25518 | # We use the long form for the default assignment because of an extremely |
25519 | # bizarre bug on SunOS 4.1.3. |
25520 | if $ac_need_defaults; then |
25521 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files |
25522 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers |
25523 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands |
25524 | fi |
25525 | |
25526 | # Have a temporary directory for convenience. Make it in the build tree |
25527 | # simply because there is no reason against having it here, and in addition, |
25528 | # creating and moving files from /tmp can sometimes cause problems. |
25529 | # Hook for its removal unless debugging. |
25530 | # Note that there is a small window in which the directory will not be cleaned: |
25531 | # after its creation but before its name has been assigned to `$tmp'. |
25532 | $debug || |
25533 | { |
25534 | tmp= |
25535 | trap 'exit_status=$? |
25536 | { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status |
25537 | ' 0 |
25538 | trap '{ (exit 1); exit 1; }' 1 2 13 15 |
25539 | } |
25540 | # Create a (secure) tmp directory for tmp files. |
25541 | |
25542 | { |
25543 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && |
25544 | test -n "$tmp" && test -d "$tmp" |
25545 | } || |
25546 | { |
25547 | tmp=./conf$$-$RANDOM |
25548 | (umask 077 && mkdir "$tmp") |
25549 | } || |
25550 | { |
25551 | echo "$me: cannot create a temporary directory in ." >&2 |
25552 | { (exit 1); exit 1; } |
25553 | } |
25554 | |
25555 | # |
25556 | # Set up the sed scripts for CONFIG_FILES section. |
25557 | # |
25558 | |
25559 | # No need to generate the scripts if there are no CONFIG_FILES. |
25560 | # This happens for instance when ./config.status config.h |
25561 | if test -n "$CONFIG_FILES"; then |
25562 | |
25563 | _ACEOF |
25564 | |
25565 | |
25566 | |
25567 | ac_delim='%!_!# ' |
25568 | for ac_last_try in false false false false false :; do |
25569 | cat >conf$$subs.sed <<_ACEOF |
25570 | SHELL!$SHELL$ac_delim |
25571 | PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim |
25572 | PACKAGE_NAME!$PACKAGE_NAME$ac_delim |
25573 | PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim |
25574 | PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim |
25575 | PACKAGE_STRING!$PACKAGE_STRING$ac_delim |
25576 | PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim |
25577 | exec_prefix!$exec_prefix$ac_delim |
25578 | prefix!$prefix$ac_delim |
25579 | program_transform_name!$program_transform_name$ac_delim |
25580 | bindir!$bindir$ac_delim |
25581 | sbindir!$sbindir$ac_delim |
25582 | libexecdir!$libexecdir$ac_delim |
25583 | datarootdir!$datarootdir$ac_delim |
25584 | datadir!$datadir$ac_delim |
25585 | sysconfdir!$sysconfdir$ac_delim |
25586 | sharedstatedir!$sharedstatedir$ac_delim |
25587 | localstatedir!$localstatedir$ac_delim |
25588 | includedir!$includedir$ac_delim |
25589 | oldincludedir!$oldincludedir$ac_delim |
25590 | docdir!$docdir$ac_delim |
25591 | infodir!$infodir$ac_delim |
25592 | htmldir!$htmldir$ac_delim |
25593 | dvidir!$dvidir$ac_delim |
25594 | pdfdir!$pdfdir$ac_delim |
25595 | psdir!$psdir$ac_delim |
25596 | libdir!$libdir$ac_delim |
25597 | localedir!$localedir$ac_delim |
25598 | mandir!$mandir$ac_delim |
25599 | DEFS!$DEFS$ac_delim |
25600 | ECHO_C!$ECHO_C$ac_delim |
25601 | ECHO_N!$ECHO_N$ac_delim |
25602 | ECHO_T!$ECHO_T$ac_delim |
25603 | LIBS!$LIBS$ac_delim |
25604 | build_alias!$build_alias$ac_delim |
25605 | host_alias!$host_alias$ac_delim |
25606 | target_alias!$target_alias$ac_delim |
25607 | INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim |
25608 | INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim |
25609 | INSTALL_DATA!$INSTALL_DATA$ac_delim |
25610 | CYGPATH_W!$CYGPATH_W$ac_delim |
25611 | PACKAGE!$PACKAGE$ac_delim |
25612 | VERSION!$VERSION$ac_delim |
25613 | ACLOCAL!$ACLOCAL$ac_delim |
25614 | AUTOCONF!$AUTOCONF$ac_delim |
25615 | AUTOMAKE!$AUTOMAKE$ac_delim |
25616 | AUTOHEADER!$AUTOHEADER$ac_delim |
25617 | MAKEINFO!$MAKEINFO$ac_delim |
25618 | AMTAR!$AMTAR$ac_delim |
25619 | install_sh!$install_sh$ac_delim |
25620 | STRIP!$STRIP$ac_delim |
25621 | INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim |
25622 | AWK!$AWK$ac_delim |
25623 | SET_MAKE!$SET_MAKE$ac_delim |
25624 | am__leading_dot!$am__leading_dot$ac_delim |
25625 | build!$build$ac_delim |
25626 | build_cpu!$build_cpu$ac_delim |
25627 | build_vendor!$build_vendor$ac_delim |
25628 | build_os!$build_os$ac_delim |
25629 | host!$host$ac_delim |
25630 | host_cpu!$host_cpu$ac_delim |
25631 | host_vendor!$host_vendor$ac_delim |
25632 | host_os!$host_os$ac_delim |
25633 | CC!$CC$ac_delim |
25634 | CFLAGS!$CFLAGS$ac_delim |
25635 | LDFLAGS!$LDFLAGS$ac_delim |
25636 | CPPFLAGS!$CPPFLAGS$ac_delim |
25637 | ac_ct_CC!$ac_ct_CC$ac_delim |
25638 | EXEEXT!$EXEEXT$ac_delim |
25639 | OBJEXT!$OBJEXT$ac_delim |
25640 | DEPDIR!$DEPDIR$ac_delim |
25641 | am__include!$am__include$ac_delim |
25642 | am__quote!$am__quote$ac_delim |
25643 | AMDEP_TRUE!$AMDEP_TRUE$ac_delim |
25644 | AMDEP_FALSE!$AMDEP_FALSE$ac_delim |
25645 | AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim |
25646 | CCDEPMODE!$CCDEPMODE$ac_delim |
25647 | am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim |
25648 | am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim |
25649 | GREP!$GREP$ac_delim |
25650 | EGREP!$EGREP$ac_delim |
25651 | LN_S!$LN_S$ac_delim |
25652 | ECHO!$ECHO$ac_delim |
25653 | AR!$AR$ac_delim |
25654 | RANLIB!$RANLIB$ac_delim |
25655 | CPP!$CPP$ac_delim |
25656 | CXX!$CXX$ac_delim |
25657 | CXXFLAGS!$CXXFLAGS$ac_delim |
25658 | ac_ct_CXX!$ac_ct_CXX$ac_delim |
25659 | CXXDEPMODE!$CXXDEPMODE$ac_delim |
25660 | am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim |
25661 | am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim |
25662 | CXXCPP!$CXXCPP$ac_delim |
25663 | F77!$F77$ac_delim |
25664 | FFLAGS!$FFLAGS$ac_delim |
25665 | ac_ct_F77!$ac_ct_F77$ac_delim |
25666 | LIBTOOL!$LIBTOOL$ac_delim |
25667 | _ACEOF |
25668 | |
25669 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then |
25670 | break |
25671 | elif $ac_last_try; then |
25672 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
25673 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
25674 | { (exit 1); exit 1; }; } |
25675 | else |
25676 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
25677 | fi |
25678 | done |
25679 | |
25680 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
25681 | if test -n "$ac_eof"; then |
25682 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
25683 | ac_eof=`expr $ac_eof + 1` |
25684 | fi |
25685 | |
25686 | cat >>$CONFIG_STATUS <<_ACEOF |
25687 | cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof |
25688 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
25689 | _ACEOF |
25690 | sed ' |
25691 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
25692 | s/^/s,@/; s/!/@,|#_!!_#|/ |
25693 | :n |
25694 | t n |
25695 | s/'"$ac_delim"'$/,g/; t |
25696 | s/$/\\/; p |
25697 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
25698 | ' >>$CONFIG_STATUS <conf$$subs.sed |
25699 | rm -f conf$$subs.sed |
25700 | cat >>$CONFIG_STATUS <<_ACEOF |
25701 | CEOF$ac_eof |
25702 | _ACEOF |
25703 | |
25704 | |
25705 | ac_delim='%!_!# ' |
25706 | for ac_last_try in false false false false false :; do |
25707 | cat >conf$$subs.sed <<_ACEOF |
25708 | PKG_CONFIG!$PKG_CONFIG$ac_delim |
25709 | GLIB_CFLAGS!$GLIB_CFLAGS$ac_delim |
25710 | GLIB_LIBS!$GLIB_LIBS$ac_delim |
25711 | GLIB_GENMARSHAL!$GLIB_GENMARSHAL$ac_delim |
25712 | GOBJECT_QUERY!$GOBJECT_QUERY$ac_delim |
25713 | GLIB_MKENUMS!$GLIB_MKENUMS$ac_delim |
25714 | GTK_CFLAGS!$GTK_CFLAGS$ac_delim |
25715 | GTK_LIBS!$GTK_LIBS$ac_delim |
25716 | BASH!$BASH$ac_delim |
25717 | PACKAGE_CFLAGS!$PACKAGE_CFLAGS$ac_delim |
25718 | PACKAGE_LIBS!$PACKAGE_LIBS$ac_delim |
25719 | LIBOBJS!$LIBOBJS$ac_delim |
25720 | LTTVSTATIC_TRUE!$LTTVSTATIC_TRUE$ac_delim |
25721 | LTTVSTATIC_FALSE!$LTTVSTATIC_FALSE$ac_delim |
25722 | POPT_LIBS!$POPT_LIBS$ac_delim |
25723 | UTIL_LIBS!$UTIL_LIBS$ac_delim |
25724 | THREAD_LIBS!$THREAD_LIBS$ac_delim |
25725 | lttvlibdir!$lttvlibdir$ac_delim |
25726 | lttvplugindir!$lttvplugindir$ac_delim |
25727 | top_lttvdir!$top_lttvdir$ac_delim |
25728 | top_lttvwindowdir!$top_lttvwindowdir$ac_delim |
25729 | DEFAULT_INCLUDES!$DEFAULT_INCLUDES$ac_delim |
25730 | lttincludedir!$lttincludedir$ac_delim |
25731 | lttvincludedir!$lttvincludedir$ac_delim |
25732 | lttvwindowincludedir!$lttvwindowincludedir$ac_delim |
25733 | lttctlincludedir!$lttctlincludedir$ac_delim |
25734 | LTLIBOBJS!$LTLIBOBJS$ac_delim |
25735 | _ACEOF |
25736 | |
25737 | if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 27; then |
25738 | break |
25739 | elif $ac_last_try; then |
25740 | { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5 |
25741 | echo "$as_me: error: could not make $CONFIG_STATUS" >&2;} |
25742 | { (exit 1); exit 1; }; } |
25743 | else |
25744 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " |
25745 | fi |
25746 | done |
25747 | |
25748 | ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed` |
25749 | if test -n "$ac_eof"; then |
25750 | ac_eof=`echo "$ac_eof" | sort -nru | sed 1q` |
25751 | ac_eof=`expr $ac_eof + 1` |
25752 | fi |
25753 | |
25754 | cat >>$CONFIG_STATUS <<_ACEOF |
25755 | cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof |
25756 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end |
25757 | _ACEOF |
25758 | sed ' |
25759 | s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g |
25760 | s/^/s,@/; s/!/@,|#_!!_#|/ |
25761 | :n |
25762 | t n |
25763 | s/'"$ac_delim"'$/,g/; t |
25764 | s/$/\\/; p |
25765 | N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n |
25766 | ' >>$CONFIG_STATUS <conf$$subs.sed |
25767 | rm -f conf$$subs.sed |
25768 | cat >>$CONFIG_STATUS <<_ACEOF |
25769 | :end |
25770 | s/|#_!!_#|//g |
25771 | CEOF$ac_eof |
25772 | _ACEOF |
25773 | |
25774 | |
25775 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
25776 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and |
25777 | # trailing colons and then remove the whole line if VPATH becomes empty |
25778 | # (actually we leave an empty line to preserve line numbers). |
25779 | if test "x$srcdir" = x.; then |
25780 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
25781 | s/:*\$(srcdir):*/:/ |
25782 | s/:*\${srcdir}:*/:/ |
25783 | s/:*@srcdir@:*/:/ |
25784 | s/^\([^=]*=[ ]*\):*/\1/ |
25785 | s/:*$// |
25786 | s/^[^=]*=[ ]*$// |
25787 | }' |
25788 | fi |
25789 | |
25790 | cat >>$CONFIG_STATUS <<\_ACEOF |
25791 | fi # test -n "$CONFIG_FILES" |
25792 | |
25793 | |
25794 | for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS |
25795 | do |
25796 | case $ac_tag in |
25797 | :[FHLC]) ac_mode=$ac_tag; continue;; |
25798 | esac |
25799 | case $ac_mode$ac_tag in |
25800 | :[FHL]*:*);; |
25801 | :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5 |
25802 | echo "$as_me: error: Invalid tag $ac_tag." >&2;} |
25803 | { (exit 1); exit 1; }; };; |
25804 | :[FH]-) ac_tag=-:-;; |
25805 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; |
25806 | esac |
25807 | ac_save_IFS=$IFS |
25808 | IFS=: |
25809 | set x $ac_tag |
25810 | IFS=$ac_save_IFS |
25811 | shift |
25812 | ac_file=$1 |
25813 | shift |
25814 | |
25815 | case $ac_mode in |
25816 | :L) ac_source=$1;; |
25817 | :[FH]) |
25818 | ac_file_inputs= |
25819 | for ac_f |
25820 | do |
25821 | case $ac_f in |
25822 | -) ac_f="$tmp/stdin";; |
25823 | *) # Look for the file first in the build tree, then in the source tree |
25824 | # (if the path is not absolute). The absolute path cannot be DOS-style, |
25825 | # because $ac_f cannot contain `:'. |
25826 | test -f "$ac_f" || |
25827 | case $ac_f in |
25828 | [\\/$]*) false;; |
25829 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; |
25830 | esac || |
25831 | { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5 |
25832 | echo "$as_me: error: cannot find input file: $ac_f" >&2;} |
25833 | { (exit 1); exit 1; }; };; |
25834 | esac |
25835 | ac_file_inputs="$ac_file_inputs $ac_f" |
25836 | done |
25837 | |
25838 | # Let's still pretend it is `configure' which instantiates (i.e., don't |
25839 | # use $as_me), people would be surprised to read: |
25840 | # /* config.h. Generated by config.status. */ |
25841 | configure_input="Generated from "`IFS=: |
25842 | echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure." |
25843 | if test x"$ac_file" != x-; then |
25844 | configure_input="$ac_file. $configure_input" |
25845 | { echo "$as_me:$LINENO: creating $ac_file" >&5 |
25846 | echo "$as_me: creating $ac_file" >&6;} |
25847 | fi |
25848 | |
25849 | case $ac_tag in |
25850 | *:-:* | *:-) cat >"$tmp/stdin";; |
25851 | esac |
25852 | ;; |
25853 | esac |
25854 | |
25855 | ac_dir=`$as_dirname -- "$ac_file" || |
25856 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
25857 | X"$ac_file" : 'X\(//\)[^/]' \| \ |
25858 | X"$ac_file" : 'X\(//\)$' \| \ |
25859 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || |
25860 | echo X"$ac_file" | |
25861 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
25862 | s//\1/ |
25863 | q |
25864 | } |
25865 | /^X\(\/\/\)[^/].*/{ |
25866 | s//\1/ |
25867 | q |
25868 | } |
25869 | /^X\(\/\/\)$/{ |
25870 | s//\1/ |
25871 | q |
25872 | } |
25873 | /^X\(\/\).*/{ |
25874 | s//\1/ |
25875 | q |
25876 | } |
25877 | s/.*/./; q'` |
25878 | { as_dir="$ac_dir" |
25879 | case $as_dir in #( |
25880 | -*) as_dir=./$as_dir;; |
25881 | esac |
25882 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
25883 | as_dirs= |
25884 | while :; do |
25885 | case $as_dir in #( |
25886 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
25887 | *) as_qdir=$as_dir;; |
25888 | esac |
25889 | as_dirs="'$as_qdir' $as_dirs" |
25890 | as_dir=`$as_dirname -- "$as_dir" || |
25891 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
25892 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
25893 | X"$as_dir" : 'X\(//\)$' \| \ |
25894 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
25895 | echo X"$as_dir" | |
25896 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
25897 | s//\1/ |
25898 | q |
25899 | } |
25900 | /^X\(\/\/\)[^/].*/{ |
25901 | s//\1/ |
25902 | q |
25903 | } |
25904 | /^X\(\/\/\)$/{ |
25905 | s//\1/ |
25906 | q |
25907 | } |
25908 | /^X\(\/\).*/{ |
25909 | s//\1/ |
25910 | q |
25911 | } |
25912 | s/.*/./; q'` |
25913 | test -d "$as_dir" && break |
25914 | done |
25915 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
25916 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
25917 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
25918 | { (exit 1); exit 1; }; }; } |
25919 | ac_builddir=. |
25920 | |
25921 | case "$ac_dir" in |
25922 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; |
25923 | *) |
25924 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` |
25925 | # A ".." for each directory in $ac_dir_suffix. |
25926 | ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'` |
25927 | case $ac_top_builddir_sub in |
25928 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; |
25929 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; |
25930 | esac ;; |
25931 | esac |
25932 | ac_abs_top_builddir=$ac_pwd |
25933 | ac_abs_builddir=$ac_pwd$ac_dir_suffix |
25934 | # for backward compatibility: |
25935 | ac_top_builddir=$ac_top_build_prefix |
25936 | |
25937 | case $srcdir in |
25938 | .) # We are building in place. |
25939 | ac_srcdir=. |
25940 | ac_top_srcdir=$ac_top_builddir_sub |
25941 | ac_abs_top_srcdir=$ac_pwd ;; |
25942 | [\\/]* | ?:[\\/]* ) # Absolute name. |
25943 | ac_srcdir=$srcdir$ac_dir_suffix; |
25944 | ac_top_srcdir=$srcdir |
25945 | ac_abs_top_srcdir=$srcdir ;; |
25946 | *) # Relative name. |
25947 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix |
25948 | ac_top_srcdir=$ac_top_build_prefix$srcdir |
25949 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; |
25950 | esac |
25951 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix |
25952 | |
25953 | |
25954 | case $ac_mode in |
25955 | :F) |
25956 | # |
25957 | # CONFIG_FILE |
25958 | # |
25959 | |
25960 | case $INSTALL in |
25961 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; |
25962 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; |
25963 | esac |
25964 | _ACEOF |
25965 | |
25966 | cat >>$CONFIG_STATUS <<\_ACEOF |
25967 | # If the template does not know about datarootdir, expand it. |
25968 | # FIXME: This hack should be removed a few years after 2.60. |
25969 | ac_datarootdir_hack=; ac_datarootdir_seen= |
25970 | |
25971 | case `sed -n '/datarootdir/ { |
25972 | p |
25973 | q |
25974 | } |
25975 | /@datadir@/p |
25976 | /@docdir@/p |
25977 | /@infodir@/p |
25978 | /@localedir@/p |
25979 | /@mandir@/p |
25980 | ' $ac_file_inputs` in |
25981 | *datarootdir*) ac_datarootdir_seen=yes;; |
25982 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) |
25983 | { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 |
25984 | echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} |
25985 | _ACEOF |
25986 | cat >>$CONFIG_STATUS <<_ACEOF |
25987 | ac_datarootdir_hack=' |
25988 | s&@datadir@&$datadir&g |
25989 | s&@docdir@&$docdir&g |
25990 | s&@infodir@&$infodir&g |
25991 | s&@localedir@&$localedir&g |
25992 | s&@mandir@&$mandir&g |
25993 | s&\\\${datarootdir}&$datarootdir&g' ;; |
25994 | esac |
25995 | _ACEOF |
25996 | |
25997 | # Neutralize VPATH when `$srcdir' = `.'. |
25998 | # Shell code in configure.ac might set extrasub. |
25999 | # FIXME: do we really want to maintain this feature? |
26000 | cat >>$CONFIG_STATUS <<_ACEOF |
26001 | sed "$ac_vpsub |
26002 | $extrasub |
26003 | _ACEOF |
26004 | cat >>$CONFIG_STATUS <<\_ACEOF |
26005 | :t |
26006 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b |
26007 | s&@configure_input@&$configure_input&;t t |
26008 | s&@top_builddir@&$ac_top_builddir_sub&;t t |
26009 | s&@srcdir@&$ac_srcdir&;t t |
26010 | s&@abs_srcdir@&$ac_abs_srcdir&;t t |
26011 | s&@top_srcdir@&$ac_top_srcdir&;t t |
26012 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t |
26013 | s&@builddir@&$ac_builddir&;t t |
26014 | s&@abs_builddir@&$ac_abs_builddir&;t t |
26015 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t |
26016 | s&@INSTALL@&$ac_INSTALL&;t t |
26017 | $ac_datarootdir_hack |
26018 | " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out |
26019 | |
26020 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && |
26021 | { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && |
26022 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && |
26023 | { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
26024 | which seems to be undefined. Please make sure it is defined." >&5 |
26025 | echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' |
26026 | which seems to be undefined. Please make sure it is defined." >&2;} |
26027 | |
26028 | rm -f "$tmp/stdin" |
26029 | case $ac_file in |
26030 | -) cat "$tmp/out"; rm -f "$tmp/out";; |
26031 | *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;; |
26032 | esac |
26033 | ;; |
26034 | :H) |
26035 | # |
26036 | # CONFIG_HEADER |
26037 | # |
26038 | _ACEOF |
26039 | |
26040 | # Transform confdefs.h into a sed script `conftest.defines', that |
26041 | # substitutes the proper values into config.h.in to produce config.h. |
26042 | rm -f conftest.defines conftest.tail |
26043 | # First, append a space to every undef/define line, to ease matching. |
26044 | echo 's/$/ /' >conftest.defines |
26045 | # Then, protect against being on the right side of a sed subst, or in |
26046 | # an unquoted here document, in config.status. If some macros were |
26047 | # called several times there might be several #defines for the same |
26048 | # symbol, which is useless. But do not sort them, since the last |
26049 | # AC_DEFINE must be honored. |
26050 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* |
26051 | # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where |
26052 | # NAME is the cpp macro being defined, VALUE is the value it is being given. |
26053 | # PARAMS is the parameter list in the macro definition--in most cases, it's |
26054 | # just an empty string. |
26055 | ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*' |
26056 | ac_dB='\\)[ (].*,\\1define\\2' |
26057 | ac_dC=' ' |
26058 | ac_dD=' ,' |
26059 | |
26060 | uniq confdefs.h | |
26061 | sed -n ' |
26062 | t rset |
26063 | :rset |
26064 | s/^[ ]*#[ ]*define[ ][ ]*// |
26065 | t ok |
26066 | d |
26067 | :ok |
26068 | s/[\\&,]/\\&/g |
26069 | s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p |
26070 | s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p |
26071 | ' >>conftest.defines |
26072 | |
26073 | # Remove the space that was appended to ease matching. |
26074 | # Then replace #undef with comments. This is necessary, for |
26075 | # example, in the case of _POSIX_SOURCE, which is predefined and required |
26076 | # on some systems where configure will not decide to define it. |
26077 | # (The regexp can be short, since the line contains either #define or #undef.) |
26078 | echo 's/ $// |
26079 | s,^[ #]*u.*,/* & */,' >>conftest.defines |
26080 | |
26081 | # Break up conftest.defines: |
26082 | ac_max_sed_lines=50 |
26083 | |
26084 | # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1" |
26085 | # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2" |
26086 | # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1" |
26087 | # et cetera. |
26088 | ac_in='$ac_file_inputs' |
26089 | ac_out='"$tmp/out1"' |
26090 | ac_nxt='"$tmp/out2"' |
26091 | |
26092 | while : |
26093 | do |
26094 | # Write a here document: |
26095 | cat >>$CONFIG_STATUS <<_ACEOF |
26096 | # First, check the format of the line: |
26097 | cat >"\$tmp/defines.sed" <<\\CEOF |
26098 | /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def |
26099 | /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def |
26100 | b |
26101 | :def |
26102 | _ACEOF |
26103 | sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS |
26104 | echo 'CEOF |
26105 | sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS |
26106 | ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in |
26107 | sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail |
26108 | grep . conftest.tail >/dev/null || break |
26109 | rm -f conftest.defines |
26110 | mv conftest.tail conftest.defines |
26111 | done |
26112 | rm -f conftest.defines conftest.tail |
26113 | |
26114 | echo "ac_result=$ac_in" >>$CONFIG_STATUS |
26115 | cat >>$CONFIG_STATUS <<\_ACEOF |
26116 | if test x"$ac_file" != x-; then |
26117 | echo "/* $configure_input */" >"$tmp/config.h" |
26118 | cat "$ac_result" >>"$tmp/config.h" |
26119 | if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then |
26120 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 |
26121 | echo "$as_me: $ac_file is unchanged" >&6;} |
26122 | else |
26123 | rm -f $ac_file |
26124 | mv "$tmp/config.h" $ac_file |
26125 | fi |
26126 | else |
26127 | echo "/* $configure_input */" |
26128 | cat "$ac_result" |
26129 | fi |
26130 | rm -f "$tmp/out12" |
26131 | # Compute $ac_file's index in $config_headers. |
26132 | _am_stamp_count=1 |
26133 | for _am_header in $config_headers :; do |
26134 | case $_am_header in |
26135 | $ac_file | $ac_file:* ) |
26136 | break ;; |
26137 | * ) |
26138 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; |
26139 | esac |
26140 | done |
26141 | echo "timestamp for $ac_file" >`$as_dirname -- $ac_file || |
26142 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26143 | X$ac_file : 'X\(//\)[^/]' \| \ |
26144 | X$ac_file : 'X\(//\)$' \| \ |
26145 | X$ac_file : 'X\(/\)' \| . 2>/dev/null || |
26146 | echo X$ac_file | |
26147 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
26148 | s//\1/ |
26149 | q |
26150 | } |
26151 | /^X\(\/\/\)[^/].*/{ |
26152 | s//\1/ |
26153 | q |
26154 | } |
26155 | /^X\(\/\/\)$/{ |
26156 | s//\1/ |
26157 | q |
26158 | } |
26159 | /^X\(\/\).*/{ |
26160 | s//\1/ |
26161 | q |
26162 | } |
26163 | s/.*/./; q'`/stamp-h$_am_stamp_count |
26164 | ;; |
26165 | |
26166 | :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5 |
26167 | echo "$as_me: executing $ac_file commands" >&6;} |
26168 | ;; |
26169 | esac |
26170 | |
26171 | |
26172 | case $ac_file$ac_mode in |
26173 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do |
26174 | # Strip MF so we end up with the name of the file. |
26175 | mf=`echo "$mf" | sed -e 's/:.*$//'` |
26176 | # Check whether this is an Automake generated Makefile or not. |
26177 | # We used to match only the files named `Makefile.in', but |
26178 | # some people rename them; so instead we look at the file content. |
26179 | # Grep'ing the first line is not enough: some people post-process |
26180 | # each Makefile.in and add a new line on top of each file to say so. |
26181 | # So let's grep whole file. |
26182 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then |
26183 | dirpart=`$as_dirname -- "$mf" || |
26184 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26185 | X"$mf" : 'X\(//\)[^/]' \| \ |
26186 | X"$mf" : 'X\(//\)$' \| \ |
26187 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || |
26188 | echo X"$mf" | |
26189 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
26190 | s//\1/ |
26191 | q |
26192 | } |
26193 | /^X\(\/\/\)[^/].*/{ |
26194 | s//\1/ |
26195 | q |
26196 | } |
26197 | /^X\(\/\/\)$/{ |
26198 | s//\1/ |
26199 | q |
26200 | } |
26201 | /^X\(\/\).*/{ |
26202 | s//\1/ |
26203 | q |
26204 | } |
26205 | s/.*/./; q'` |
26206 | else |
26207 | continue |
26208 | fi |
26209 | grep '^DEP_FILES *= *[^ #]' < "$mf" > /dev/null || continue |
26210 | # Extract the definition of DEP_FILES from the Makefile without |
26211 | # running `make'. |
26212 | DEPDIR=`sed -n -e '/^DEPDIR = / s///p' < "$mf"` |
26213 | test -z "$DEPDIR" && continue |
26214 | # When using ansi2knr, U may be empty or an underscore; expand it |
26215 | U=`sed -n -e '/^U = / s///p' < "$mf"` |
26216 | test -d "$dirpart/$DEPDIR" || mkdir "$dirpart/$DEPDIR" |
26217 | # We invoke sed twice because it is the simplest approach to |
26218 | # changing $(DEPDIR) to its actual value in the expansion. |
26219 | for file in `sed -n -e ' |
26220 | /^DEP_FILES = .*\\\\$/ { |
26221 | s/^DEP_FILES = // |
26222 | :loop |
26223 | s/\\\\$// |
26224 | p |
26225 | n |
26226 | /\\\\$/ b loop |
26227 | p |
26228 | } |
26229 | /^DEP_FILES = / s/^DEP_FILES = //p' < "$mf" | \ |
26230 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do |
26231 | # Make sure the directory exists. |
26232 | test -f "$dirpart/$file" && continue |
26233 | fdir=`$as_dirname -- "$file" || |
26234 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26235 | X"$file" : 'X\(//\)[^/]' \| \ |
26236 | X"$file" : 'X\(//\)$' \| \ |
26237 | X"$file" : 'X\(/\)' \| . 2>/dev/null || |
26238 | echo X"$file" | |
26239 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
26240 | s//\1/ |
26241 | q |
26242 | } |
26243 | /^X\(\/\/\)[^/].*/{ |
26244 | s//\1/ |
26245 | q |
26246 | } |
26247 | /^X\(\/\/\)$/{ |
26248 | s//\1/ |
26249 | q |
26250 | } |
26251 | /^X\(\/\).*/{ |
26252 | s//\1/ |
26253 | q |
26254 | } |
26255 | s/.*/./; q'` |
26256 | { as_dir=$dirpart/$fdir |
26257 | case $as_dir in #( |
26258 | -*) as_dir=./$as_dir;; |
26259 | esac |
26260 | test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || { |
26261 | as_dirs= |
26262 | while :; do |
26263 | case $as_dir in #( |
26264 | *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #( |
26265 | *) as_qdir=$as_dir;; |
26266 | esac |
26267 | as_dirs="'$as_qdir' $as_dirs" |
26268 | as_dir=`$as_dirname -- "$as_dir" || |
26269 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ |
26270 | X"$as_dir" : 'X\(//\)[^/]' \| \ |
26271 | X"$as_dir" : 'X\(//\)$' \| \ |
26272 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || |
26273 | echo X"$as_dir" | |
26274 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ |
26275 | s//\1/ |
26276 | q |
26277 | } |
26278 | /^X\(\/\/\)[^/].*/{ |
26279 | s//\1/ |
26280 | q |
26281 | } |
26282 | /^X\(\/\/\)$/{ |
26283 | s//\1/ |
26284 | q |
26285 | } |
26286 | /^X\(\/\).*/{ |
26287 | s//\1/ |
26288 | q |
26289 | } |
26290 | s/.*/./; q'` |
26291 | test -d "$as_dir" && break |
26292 | done |
26293 | test -z "$as_dirs" || eval "mkdir $as_dirs" |
26294 | } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5 |
26295 | echo "$as_me: error: cannot create directory $as_dir" >&2;} |
26296 | { (exit 1); exit 1; }; }; } |
26297 | # echo "creating $dirpart/$file" |
26298 | echo '# dummy' > "$dirpart/$file" |
26299 | done |
26300 | done |
26301 | ;; |
26302 | |
26303 | esac |
26304 | done # for ac_tag |
26305 | |
26306 | |
26307 | { (exit 0); exit 0; } |
26308 | _ACEOF |
26309 | chmod +x $CONFIG_STATUS |
26310 | ac_clean_files=$ac_clean_files_save |
26311 | |
26312 | |
26313 | # configure is writing to config.log, and then calls config.status. |
26314 | # config.status does its own redirection, appending to config.log. |
26315 | # Unfortunately, on DOS this fails, as config.log is still kept open |
26316 | # by configure, so config.status won't be able to write to it; its |
26317 | # output is simply discarded. So we exec the FD to /dev/null, |
26318 | # effectively closing config.log, so it can be properly (re)opened and |
26319 | # appended to by config.status. When coming back to configure, we |
26320 | # need to make the FD available again. |
26321 | if test "$no_create" != yes; then |
26322 | ac_cs_success=: |
26323 | ac_config_status_args= |
26324 | test "$silent" = yes && |
26325 | ac_config_status_args="$ac_config_status_args --quiet" |
26326 | exec 5>/dev/null |
26327 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false |
26328 | exec 5>>config.log |
26329 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which |
26330 | # would make configure fail if this is the last instruction. |
26331 | $ac_cs_success || { (exit 1); exit 1; } |
26332 | fi |
26333 | |