Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell [email protected] about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561 esac
562
563 echo=${ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $echo works!
572 :
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<EOF
582 $*
583 EOF
584 exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
597 echo_test_string=`eval $cmd` &&
598 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
599 then
600 break
601 fi
602 done
603 fi
604
605 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
606 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
607 test "X$echo_testing_string" = "X$echo_test_string"; then
608 :
609 else
610 # The Solaris, AIX, and Digital Unix default echo programs unquote
611 # backslashes. This makes it impossible to quote backslashes using
612 # echo "$something" | sed 's/\\/\\\\/g'
613 #
614 # So, first we look for a working echo in the user's PATH.
615
616 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
617 for dir in $PATH /usr/ucb; do
618 IFS="$lt_save_ifs"
619 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
620 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
621 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
622 test "X$echo_testing_string" = "X$echo_test_string"; then
623 echo="$dir/echo"
624 break
625 fi
626 done
627 IFS="$lt_save_ifs"
628
629 if test "X$echo" = Xecho; then
630 # We didn't find a better echo, so look for alternatives.
631 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
632 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
633 test "X$echo_testing_string" = "X$echo_test_string"; then
634 # This shell has a builtin print -r that does the trick.
635 echo='print -r'
636 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
637 test "X$CONFIG_SHELL" != X/bin/ksh; then
638 # If we have ksh, try running configure again with it.
639 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
640 export ORIGINAL_CONFIG_SHELL
641 CONFIG_SHELL=/bin/ksh
642 export CONFIG_SHELL
643 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
644 else
645 # Try using printf.
646 echo='printf %s\n'
647 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
648 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
649 test "X$echo_testing_string" = "X$echo_test_string"; then
650 # Cool, printf works
651 :
652 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
653 test "X$echo_testing_string" = 'X\t' &&
654 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
655 test "X$echo_testing_string" = "X$echo_test_string"; then
656 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
657 export CONFIG_SHELL
658 SHELL="$CONFIG_SHELL"
659 export SHELL
660 echo="$CONFIG_SHELL $0 --fallback-echo"
661 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
662 test "X$echo_testing_string" = 'X\t' &&
663 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
664 test "X$echo_testing_string" = "X$echo_test_string"; then
665 echo="$CONFIG_SHELL $0 --fallback-echo"
666 else
667 # maybe with a smaller string...
668 prev=:
669
670 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
671 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
672 then
673 break
674 fi
675 prev="$cmd"
676 done
677
678 if test "$prev" != 'sed 50q "$0"'; then
679 echo_test_string=`eval $prev`
680 export echo_test_string
681 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
682 else
683 # Oops. We lost completely, so just stick with echo.
684 echo=echo
685 fi
686 fi
687 fi
688 fi
689 fi
690 fi
691
692 # Copy echo and quote the copy suitably for passing to libtool from
693 # the Makefile, instead of quoting the original, which is used later.
694 ECHO=$echo
695 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
696 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
697 fi
698
699
700
701
702 tagnames=${tagnames+${tagnames},}CXX
703
704 tagnames=${tagnames+${tagnames},}F77
705
706 exec 7<&0 </dev/null 6>&1
707
708 # Name of the host.
709 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
710 # so uname gets run too.
711 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
712
713 #
714 # Initializations.
715 #
716 ac_default_prefix=/usr/local
717 ac_clean_files=
718 ac_config_libobj_dir=.
719 LIBOBJS=
720 cross_compiling=no
721 subdirs=
722 MFLAGS=
723 MAKEFLAGS=
724 SHELL=${CONFIG_SHELL-/bin/sh}
725
726 # Identity of this package.
727 PACKAGE_NAME=
728 PACKAGE_TARNAME=
729 PACKAGE_VERSION=
730 PACKAGE_STRING=
731 PACKAGE_BUGREPORT=
732
733 ac_unique_file="lib/libdynamite.h"
734 # Factoring default headers for most tests.
735 ac_includes_default="\
736 #include <stdio.h>
737 #ifdef HAVE_SYS_TYPES_H
738 # include <sys/types.h>
739 #endif
740 #ifdef HAVE_SYS_STAT_H
741 # include <sys/stat.h>
742 #endif
743 #ifdef STDC_HEADERS
744 # include <stdlib.h>
745 # include <stddef.h>
746 #else
747 # ifdef HAVE_STDLIB_H
748 # include <stdlib.h>
749 # endif
750 #endif
751 #ifdef HAVE_STRING_H
752 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
753 # include <memory.h>
754 # endif
755 # include <string.h>
756 #endif
757 #ifdef HAVE_STRINGS_H
758 # include <strings.h>
759 #endif
760 #ifdef HAVE_INTTYPES_H
761 # include <inttypes.h>
762 #endif
763 #ifdef HAVE_STDINT_H
764 # include <stdint.h>
765 #endif
766 #ifdef HAVE_UNISTD_H
767 # include <unistd.h>
768 #endif"
769
770 ac_subst_vars='SHELL
771 PATH_SEPARATOR
772 PACKAGE_NAME
773 PACKAGE_TARNAME
774 PACKAGE_VERSION
775 PACKAGE_STRING
776 PACKAGE_BUGREPORT
777 exec_prefix
778 prefix
779 program_transform_name
780 bindir
781 sbindir
782 libexecdir
783 datarootdir
784 datadir
785 sysconfdir
786 sharedstatedir
787 localstatedir
788 includedir
789 oldincludedir
790 docdir
791 infodir
792 htmldir
793 dvidir
794 pdfdir
795 psdir
796 libdir
797 localedir
798 mandir
799 DEFS
800 ECHO_C
801 ECHO_N
802 ECHO_T
803 LIBS
804 build_alias
805 host_alias
806 target_alias
807 build
808 build_cpu
809 build_vendor
810 build_os
811 host
812 host_cpu
813 host_vendor
814 host_os
815 target
816 target_cpu
817 target_vendor
818 target_os
819 INSTALL_PROGRAM
820 INSTALL_SCRIPT
821 INSTALL_DATA
822 am__isrc
823 CYGPATH_W
824 PACKAGE
825 VERSION
826 ACLOCAL
827 AUTOCONF
828 AUTOMAKE
829 AUTOHEADER
830 MAKEINFO
831 install_sh
832 STRIP
833 INSTALL_STRIP_PROGRAM
834 mkdir_p
835 AWK
836 SET_MAKE
837 am__leading_dot
838 AMTAR
839 am__tar
840 am__untar
841 CC
842 CFLAGS
843 LDFLAGS
844 CPPFLAGS
845 ac_ct_CC
846 EXEEXT
847 OBJEXT
848 DEPDIR
849 am__include
850 am__quote
851 AMDEP_TRUE
852 AMDEP_FALSE
853 AMDEPBACKSLASH
854 CCDEPMODE
855 am__fastdepCC_TRUE
856 am__fastdepCC_FALSE
857 LN_S
858 SED
859 GREP
860 EGREP
861 ECHO
862 AR
863 RANLIB
864 DSYMUTIL
865 NMEDIT
866 CPP
867 CXX
868 CXXFLAGS
869 ac_ct_CXX
870 CXXDEPMODE
871 am__fastdepCXX_TRUE
872 am__fastdepCXX_FALSE
873 CXXCPP
874 F77
875 FFLAGS
876 ac_ct_F77
877 LIBTOOL
878 LIBOBJS
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 LIBS
888 CPPFLAGS
889 CPP
890 CXX
891 CXXFLAGS
892 CCC
893 CXXCPP
894 F77
895 FFLAGS'
896
897
898 # Initialize some variables set by options.
899 ac_init_help=
900 ac_init_version=false
901 # The variables have the same names as the options, with
902 # dashes changed to underlines.
903 cache_file=/dev/null
904 exec_prefix=NONE
905 no_create=
906 no_recursion=
907 prefix=NONE
908 program_prefix=NONE
909 program_suffix=NONE
910 program_transform_name=s,x,x,
911 silent=
912 site=
913 srcdir=
914 verbose=
915 x_includes=NONE
916 x_libraries=NONE
917
918 # Installation directory options.
919 # These are left unexpanded so users can "make install exec_prefix=/foo"
920 # and all the variables that are supposed to be based on exec_prefix
921 # by default will actually change.
922 # Use braces instead of parens because sh, perl, etc. also accept them.
923 # (The list follows the same order as the GNU Coding Standards.)
924 bindir='${exec_prefix}/bin'
925 sbindir='${exec_prefix}/sbin'
926 libexecdir='${exec_prefix}/libexec'
927 datarootdir='${prefix}/share'
928 datadir='${datarootdir}'
929 sysconfdir='${prefix}/etc'
930 sharedstatedir='${prefix}/com'
931 localstatedir='${prefix}/var'
932 includedir='${prefix}/include'
933 oldincludedir='/usr/include'
934 docdir='${datarootdir}/doc/${PACKAGE}'
935 infodir='${datarootdir}/info'
936 htmldir='${docdir}'
937 dvidir='${docdir}'
938 pdfdir='${docdir}'
939 psdir='${docdir}'
940 libdir='${exec_prefix}/lib'
941 localedir='${datarootdir}/locale'
942 mandir='${datarootdir}/man'
943
944 ac_prev=
945 ac_dashdash=
946 for ac_option
947 do
948 # If the previous option needs an argument, assign it.
949 if test -n "$ac_prev"; then
950 eval $ac_prev=\$ac_option
951 ac_prev=
952 continue
953 fi
954
955 case $ac_option in
956 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
957 *) ac_optarg=yes ;;
958 esac
959
960 # Accept the important Cygnus configure options, so we can diagnose typos.
961
962 case $ac_dashdash$ac_option in
963 --)
964 ac_dashdash=yes ;;
965
966 -bindir | --bindir | --bindi | --bind | --bin | --bi)
967 ac_prev=bindir ;;
968 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
969 bindir=$ac_optarg ;;
970
971 -build | --build | --buil | --bui | --bu)
972 ac_prev=build_alias ;;
973 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
974 build_alias=$ac_optarg ;;
975
976 -cache-file | --cache-file | --cache-fil | --cache-fi \
977 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
978 ac_prev=cache_file ;;
979 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
980 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
981 cache_file=$ac_optarg ;;
982
983 --config-cache | -C)
984 cache_file=config.cache ;;
985
986 -datadir | --datadir | --datadi | --datad)
987 ac_prev=datadir ;;
988 -datadir=* | --datadir=* | --datadi=* | --datad=*)
989 datadir=$ac_optarg ;;
990
991 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
992 | --dataroo | --dataro | --datar)
993 ac_prev=datarootdir ;;
994 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
995 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
996 datarootdir=$ac_optarg ;;
997
998 -disable-* | --disable-*)
999 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1000 # Reject names that are not valid shell variable names.
1001 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1002 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1003 { (exit 1); exit 1; }; }
1004 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1005 eval enable_$ac_feature=no ;;
1006
1007 -docdir | --docdir | --docdi | --doc | --do)
1008 ac_prev=docdir ;;
1009 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1010 docdir=$ac_optarg ;;
1011
1012 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1013 ac_prev=dvidir ;;
1014 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1015 dvidir=$ac_optarg ;;
1016
1017 -enable-* | --enable-*)
1018 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1019 # Reject names that are not valid shell variable names.
1020 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1021 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1022 { (exit 1); exit 1; }; }
1023 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1024 eval enable_$ac_feature=\$ac_optarg ;;
1025
1026 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1027 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1028 | --exec | --exe | --ex)
1029 ac_prev=exec_prefix ;;
1030 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1031 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1032 | --exec=* | --exe=* | --ex=*)
1033 exec_prefix=$ac_optarg ;;
1034
1035 -gas | --gas | --ga | --g)
1036 # Obsolete; use --with-gas.
1037 with_gas=yes ;;
1038
1039 -help | --help | --hel | --he | -h)
1040 ac_init_help=long ;;
1041 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1042 ac_init_help=recursive ;;
1043 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1044 ac_init_help=short ;;
1045
1046 -host | --host | --hos | --ho)
1047 ac_prev=host_alias ;;
1048 -host=* | --host=* | --hos=* | --ho=*)
1049 host_alias=$ac_optarg ;;
1050
1051 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1052 ac_prev=htmldir ;;
1053 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1054 | --ht=*)
1055 htmldir=$ac_optarg ;;
1056
1057 -includedir | --includedir | --includedi | --included | --include \
1058 | --includ | --inclu | --incl | --inc)
1059 ac_prev=includedir ;;
1060 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1061 | --includ=* | --inclu=* | --incl=* | --inc=*)
1062 includedir=$ac_optarg ;;
1063
1064 -infodir | --infodir | --infodi | --infod | --info | --inf)
1065 ac_prev=infodir ;;
1066 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1067 infodir=$ac_optarg ;;
1068
1069 -libdir | --libdir | --libdi | --libd)
1070 ac_prev=libdir ;;
1071 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1072 libdir=$ac_optarg ;;
1073
1074 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1075 | --libexe | --libex | --libe)
1076 ac_prev=libexecdir ;;
1077 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1078 | --libexe=* | --libex=* | --libe=*)
1079 libexecdir=$ac_optarg ;;
1080
1081 -localedir | --localedir | --localedi | --localed | --locale)
1082 ac_prev=localedir ;;
1083 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1084 localedir=$ac_optarg ;;
1085
1086 -localstatedir | --localstatedir | --localstatedi | --localstated \
1087 | --localstate | --localstat | --localsta | --localst | --locals)
1088 ac_prev=localstatedir ;;
1089 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1090 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1091 localstatedir=$ac_optarg ;;
1092
1093 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1094 ac_prev=mandir ;;
1095 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1096 mandir=$ac_optarg ;;
1097
1098 -nfp | --nfp | --nf)
1099 # Obsolete; use --without-fp.
1100 with_fp=no ;;
1101
1102 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1103 | --no-cr | --no-c | -n)
1104 no_create=yes ;;
1105
1106 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1107 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1108 no_recursion=yes ;;
1109
1110 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1111 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1112 | --oldin | --oldi | --old | --ol | --o)
1113 ac_prev=oldincludedir ;;
1114 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1115 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1116 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1117 oldincludedir=$ac_optarg ;;
1118
1119 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1120 ac_prev=prefix ;;
1121 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1122 prefix=$ac_optarg ;;
1123
1124 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1125 | --program-pre | --program-pr | --program-p)
1126 ac_prev=program_prefix ;;
1127 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1128 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1129 program_prefix=$ac_optarg ;;
1130
1131 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1132 | --program-suf | --program-su | --program-s)
1133 ac_prev=program_suffix ;;
1134 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1135 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1136 program_suffix=$ac_optarg ;;
1137
1138 -program-transform-name | --program-transform-name \
1139 | --program-transform-nam | --program-transform-na \
1140 | --program-transform-n | --program-transform- \
1141 | --program-transform | --program-transfor \
1142 | --program-transfo | --program-transf \
1143 | --program-trans | --program-tran \
1144 | --progr-tra | --program-tr | --program-t)
1145 ac_prev=program_transform_name ;;
1146 -program-transform-name=* | --program-transform-name=* \
1147 | --program-transform-nam=* | --program-transform-na=* \
1148 | --program-transform-n=* | --program-transform-=* \
1149 | --program-transform=* | --program-transfor=* \
1150 | --program-transfo=* | --program-transf=* \
1151 | --program-trans=* | --program-tran=* \
1152 | --progr-tra=* | --program-tr=* | --program-t=*)
1153 program_transform_name=$ac_optarg ;;
1154
1155 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1156 ac_prev=pdfdir ;;
1157 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1158 pdfdir=$ac_optarg ;;
1159
1160 -psdir | --psdir | --psdi | --psd | --ps)
1161 ac_prev=psdir ;;
1162 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1163 psdir=$ac_optarg ;;
1164
1165 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1166 | -silent | --silent | --silen | --sile | --sil)
1167 silent=yes ;;
1168
1169 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1170 ac_prev=sbindir ;;
1171 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1172 | --sbi=* | --sb=*)
1173 sbindir=$ac_optarg ;;
1174
1175 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1176 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1177 | --sharedst | --shareds | --shared | --share | --shar \
1178 | --sha | --sh)
1179 ac_prev=sharedstatedir ;;
1180 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1181 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1182 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1183 | --sha=* | --sh=*)
1184 sharedstatedir=$ac_optarg ;;
1185
1186 -site | --site | --sit)
1187 ac_prev=site ;;
1188 -site=* | --site=* | --sit=*)
1189 site=$ac_optarg ;;
1190
1191 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1192 ac_prev=srcdir ;;
1193 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1194 srcdir=$ac_optarg ;;
1195
1196 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1197 | --syscon | --sysco | --sysc | --sys | --sy)
1198 ac_prev=sysconfdir ;;
1199 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1200 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1201 sysconfdir=$ac_optarg ;;
1202
1203 -target | --target | --targe | --targ | --tar | --ta | --t)
1204 ac_prev=target_alias ;;
1205 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1206 target_alias=$ac_optarg ;;
1207
1208 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1209 verbose=yes ;;
1210
1211 -version | --version | --versio | --versi | --vers | -V)
1212 ac_init_version=: ;;
1213
1214 -with-* | --with-*)
1215 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1216 # Reject names that are not valid shell variable names.
1217 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1218 { echo "$as_me: error: invalid package name: $ac_package" >&2
1219 { (exit 1); exit 1; }; }
1220 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1221 eval with_$ac_package=\$ac_optarg ;;
1222
1223 -without-* | --without-*)
1224 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1225 # Reject names that are not valid shell variable names.
1226 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1227 { echo "$as_me: error: invalid package name: $ac_package" >&2
1228 { (exit 1); exit 1; }; }
1229 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1230 eval with_$ac_package=no ;;
1231
1232 --x)
1233 # Obsolete; use --with-x.
1234 with_x=yes ;;
1235
1236 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1237 | --x-incl | --x-inc | --x-in | --x-i)
1238 ac_prev=x_includes ;;
1239 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1240 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1241 x_includes=$ac_optarg ;;
1242
1243 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1244 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1245 ac_prev=x_libraries ;;
1246 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1247 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1248 x_libraries=$ac_optarg ;;
1249
1250 -*) { echo "$as_me: error: unrecognized option: $ac_option
1251 Try \`$0 --help' for more information." >&2
1252 { (exit 1); exit 1; }; }
1253 ;;
1254
1255 *=*)
1256 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1257 # Reject names that are not valid shell variable names.
1258 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1259 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1260 { (exit 1); exit 1; }; }
1261 eval $ac_envvar=\$ac_optarg
1262 export $ac_envvar ;;
1263
1264 *)
1265 # FIXME: should be removed in autoconf 3.0.
1266 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1267 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1268 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1269 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1270 ;;
1271
1272 esac
1273 done
1274
1275 if test -n "$ac_prev"; then
1276 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1277 { echo "$as_me: error: missing argument to $ac_option" >&2
1278 { (exit 1); exit 1; }; }
1279 fi
1280
1281 # Be sure to have absolute directory names.
1282 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283 datadir sysconfdir sharedstatedir localstatedir includedir \
1284 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285 libdir localedir mandir
1286 do
1287 eval ac_val=\$$ac_var
1288 case $ac_val in
1289 [\\/$]* | ?:[\\/]* ) continue;;
1290 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1291 esac
1292 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1293 { (exit 1); exit 1; }; }
1294 done
1295
1296 # There might be people who depend on the old broken behavior: `$host'
1297 # used to hold the argument of --host etc.
1298 # FIXME: To remove some day.
1299 build=$build_alias
1300 host=$host_alias
1301 target=$target_alias
1302
1303 # FIXME: To remove some day.
1304 if test "x$host_alias" != x; then
1305 if test "x$build_alias" = x; then
1306 cross_compiling=maybe
1307 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1308 If a cross compiler is detected then cross compile mode will be used." >&2
1309 elif test "x$build_alias" != "x$host_alias"; then
1310 cross_compiling=yes
1311 fi
1312 fi
1313
1314 ac_tool_prefix=
1315 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1316
1317 test "$silent" = yes && exec 6>/dev/null
1318
1319
1320 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1321 ac_ls_di=`ls -di .` &&
1322 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1323 { echo "$as_me: error: Working directory cannot be determined" >&2
1324 { (exit 1); exit 1; }; }
1325 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1326 { echo "$as_me: error: pwd does not report name of working directory" >&2
1327 { (exit 1); exit 1; }; }
1328
1329
1330 # Find the source files, if location was not specified.
1331 if test -z "$srcdir"; then
1332 ac_srcdir_defaulted=yes
1333 # Try the directory containing this script, then the parent directory.
1334 ac_confdir=`$as_dirname -- "$0" ||
1335 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1336 X"$0" : 'X\(//\)[^/]' \| \
1337 X"$0" : 'X\(//\)$' \| \
1338 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1339 echo X"$0" |
1340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1341 s//\1/
1342 q
1343 }
1344 /^X\(\/\/\)[^/].*/{
1345 s//\1/
1346 q
1347 }
1348 /^X\(\/\/\)$/{
1349 s//\1/
1350 q
1351 }
1352 /^X\(\/\).*/{
1353 s//\1/
1354 q
1355 }
1356 s/.*/./; q'`
1357 srcdir=$ac_confdir
1358 if test ! -r "$srcdir/$ac_unique_file"; then
1359 srcdir=..
1360 fi
1361 else
1362 ac_srcdir_defaulted=no
1363 fi
1364 if test ! -r "$srcdir/$ac_unique_file"; then
1365 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1366 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1367 { (exit 1); exit 1; }; }
1368 fi
1369 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370 ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1372 { (exit 1); exit 1; }; }
1373 pwd)`
1374 # When building in place, set srcdir=.
1375 if test "$ac_abs_confdir" = "$ac_pwd"; then
1376 srcdir=.
1377 fi
1378 # Remove unnecessary trailing slashes from srcdir.
1379 # Double slashes in file names in object file debugging info
1380 # mess up M-x gdb in Emacs.
1381 case $srcdir in
1382 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383 esac
1384 for ac_var in $ac_precious_vars; do
1385 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386 eval ac_env_${ac_var}_value=\$${ac_var}
1387 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389 done
1390
1391 #
1392 # Report the --help message.
1393 #
1394 if test "$ac_init_help" = "long"; then
1395 # Omit some internal or obsolete options to make the list less imposing.
1396 # This message is too long to be a string in the A/UX 3.1 sh.
1397 cat <<_ACEOF
1398 \`configure' configures this package to adapt to many kinds of systems.
1399
1400 Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403 VAR=VALUE. See below for descriptions of some of the useful variables.
1404
1405 Defaults for the options are specified in brackets.
1406
1407 Configuration:
1408 -h, --help display this help and exit
1409 --help=short display options specific to this package
1410 --help=recursive display the short help of all the included packages
1411 -V, --version display version information and exit
1412 -q, --quiet, --silent do not print \`checking...' messages
1413 --cache-file=FILE cache test results in FILE [disabled]
1414 -C, --config-cache alias for \`--cache-file=config.cache'
1415 -n, --no-create do not create output files
1416 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1417
1418 Installation directories:
1419 --prefix=PREFIX install architecture-independent files in PREFIX
1420 [$ac_default_prefix]
1421 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1422 [PREFIX]
1423
1424 By default, \`make install' will install all the files in
1425 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1426 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427 for instance \`--prefix=\$HOME'.
1428
1429 For better control, use the options below.
1430
1431 Fine tuning of the installation directories:
1432 --bindir=DIR user executables [EPREFIX/bin]
1433 --sbindir=DIR system admin executables [EPREFIX/sbin]
1434 --libexecdir=DIR program executables [EPREFIX/libexec]
1435 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1436 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1437 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1438 --libdir=DIR object code libraries [EPREFIX/lib]
1439 --includedir=DIR C header files [PREFIX/include]
1440 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1441 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1442 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1443 --infodir=DIR info documentation [DATAROOTDIR/info]
1444 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1445 --mandir=DIR man documentation [DATAROOTDIR/man]
1446 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1447 --htmldir=DIR html documentation [DOCDIR]
1448 --dvidir=DIR dvi documentation [DOCDIR]
1449 --pdfdir=DIR pdf documentation [DOCDIR]
1450 --psdir=DIR ps documentation [DOCDIR]
1451 _ACEOF
1452
1453 cat <<\_ACEOF
1454
1455 Program names:
1456 --program-prefix=PREFIX prepend PREFIX to installed program names
1457 --program-suffix=SUFFIX append SUFFIX to installed program names
1458 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1459
1460 System types:
1461 --build=BUILD configure for building on BUILD [guessed]
1462 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1463 --target=TARGET configure for building compilers for TARGET [HOST]
1464 _ACEOF
1465 fi
1466
1467 if test -n "$ac_init_help"; then
1468
1469 cat <<\_ACEOF
1470
1471 Optional Features:
1472 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1473 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1474 --disable-dependency-tracking speeds up one-time build
1475 --enable-dependency-tracking do not reject slow dependency extractors
1476 --enable-shared[=PKGS] build shared libraries [default=yes]
1477 --enable-static[=PKGS] build static libraries [default=yes]
1478 --enable-fast-install[=PKGS]
1479 optimize for fast installation [default=yes]
1480 --disable-libtool-lock avoid locking (might break parallel builds)
1481 --disable-rpath do not hardcode runtime library paths
1482
1483 Optional Packages:
1484 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1485 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1486 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1487 --with-pic try to use only PIC/non-PIC objects [default=use
1488 both]
1489 --with-tags[=TAGS] include additional configurations [automatic]
1490 --with-gnu-ld assume the C compiler uses GNU ld default=no
1491
1492 Some influential environment variables:
1493 CC C compiler command
1494 CFLAGS C compiler flags
1495 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1496 nonstandard directory <lib dir>
1497 LIBS libraries to pass to the linker, e.g. -l<library>
1498 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1499 you have headers in a nonstandard directory <include dir>
1500 CPP C preprocessor
1501 CXX C++ compiler command
1502 CXXFLAGS C++ compiler flags
1503 CXXCPP C++ preprocessor
1504 F77 Fortran 77 compiler command
1505 FFLAGS Fortran 77 compiler flags
1506
1507 Use these variables to override the choices made by `configure' or to help
1508 it to find libraries and programs with nonstandard names/locations.
1509
1510 _ACEOF
1511 ac_status=$?
1512 fi
1513
1514 if test "$ac_init_help" = "recursive"; then
1515 # If there are subdirs, report their specific --help.
1516 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1517 test -d "$ac_dir" || continue
1518 ac_builddir=.
1519
1520 case "$ac_dir" in
1521 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1522 *)
1523 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1524 # A ".." for each directory in $ac_dir_suffix.
1525 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1526 case $ac_top_builddir_sub in
1527 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1528 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1529 esac ;;
1530 esac
1531 ac_abs_top_builddir=$ac_pwd
1532 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1533 # for backward compatibility:
1534 ac_top_builddir=$ac_top_build_prefix
1535
1536 case $srcdir in
1537 .) # We are building in place.
1538 ac_srcdir=.
1539 ac_top_srcdir=$ac_top_builddir_sub
1540 ac_abs_top_srcdir=$ac_pwd ;;
1541 [\\/]* | ?:[\\/]* ) # Absolute name.
1542 ac_srcdir=$srcdir$ac_dir_suffix;
1543 ac_top_srcdir=$srcdir
1544 ac_abs_top_srcdir=$srcdir ;;
1545 *) # Relative name.
1546 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1547 ac_top_srcdir=$ac_top_build_prefix$srcdir
1548 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1549 esac
1550 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1551
1552 cd "$ac_dir" || { ac_status=$?; continue; }
1553 # Check for guested configure.
1554 if test -f "$ac_srcdir/configure.gnu"; then
1555 echo &&
1556 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1557 elif test -f "$ac_srcdir/configure"; then
1558 echo &&
1559 $SHELL "$ac_srcdir/configure" --help=recursive
1560 else
1561 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1562 fi || ac_status=$?
1563 cd "$ac_pwd" || { ac_status=$?; break; }
1564 done
1565 fi
1566
1567 test -n "$ac_init_help" && exit $ac_status
1568 if $ac_init_version; then
1569 cat <<\_ACEOF
1570 configure
1571 generated by GNU Autoconf 2.61
1572
1573 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1574 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1575 This configure script is free software; the Free Software Foundation
1576 gives unlimited permission to copy, distribute and modify it.
1577 _ACEOF
1578 exit
1579 fi
1580 cat >config.log <<_ACEOF
1581 This file contains any messages produced by compilers while
1582 running configure, to aid debugging if configure makes a mistake.
1583
1584 It was created by $as_me, which was
1585 generated by GNU Autoconf 2.61. Invocation command line was
1586
1587 $ $0 $@
1588
1589 _ACEOF
1590 exec 5>>config.log
1591 {
1592 cat <<_ASUNAME
1593 ## --------- ##
1594 ## Platform. ##
1595 ## --------- ##
1596
1597 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1598 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1599 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1600 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1601 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1602
1603 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1604 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1605
1606 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1607 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1608 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1609 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1610 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1611 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1612 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1613
1614 _ASUNAME
1615
1616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1617 for as_dir in $PATH
1618 do
1619 IFS=$as_save_IFS
1620 test -z "$as_dir" && as_dir=.
1621 echo "PATH: $as_dir"
1622 done
1623 IFS=$as_save_IFS
1624
1625 } >&5
1626
1627 cat >&5 <<_ACEOF
1628
1629
1630 ## ----------- ##
1631 ## Core tests. ##
1632 ## ----------- ##
1633
1634 _ACEOF
1635
1636
1637 # Keep a trace of the command line.
1638 # Strip out --no-create and --no-recursion so they do not pile up.
1639 # Strip out --silent because we don't want to record it for future runs.
1640 # Also quote any args containing shell meta-characters.
1641 # Make two passes to allow for proper duplicate-argument suppression.
1642 ac_configure_args=
1643 ac_configure_args0=
1644 ac_configure_args1=
1645 ac_must_keep_next=false
1646 for ac_pass in 1 2
1647 do
1648 for ac_arg
1649 do
1650 case $ac_arg in
1651 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1652 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1653 | -silent | --silent | --silen | --sile | --sil)
1654 continue ;;
1655 *\'*)
1656 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1657 esac
1658 case $ac_pass in
1659 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1660 2)
1661 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1662 if test $ac_must_keep_next = true; then
1663 ac_must_keep_next=false # Got value, back to normal.
1664 else
1665 case $ac_arg in
1666 *=* | --config-cache | -C | -disable-* | --disable-* \
1667 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1668 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1669 | -with-* | --with-* | -without-* | --without-* | --x)
1670 case "$ac_configure_args0 " in
1671 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1672 esac
1673 ;;
1674 -* ) ac_must_keep_next=true ;;
1675 esac
1676 fi
1677 ac_configure_args="$ac_configure_args '$ac_arg'"
1678 ;;
1679 esac
1680 done
1681 done
1682 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1683 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1684
1685 # When interrupted or exit'd, cleanup temporary files, and complete
1686 # config.log. We remove comments because anyway the quotes in there
1687 # would cause problems or look ugly.
1688 # WARNING: Use '\'' to represent an apostrophe within the trap.
1689 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1690 trap 'exit_status=$?
1691 # Save into config.log some information that might help in debugging.
1692 {
1693 echo
1694
1695 cat <<\_ASBOX
1696 ## ---------------- ##
1697 ## Cache variables. ##
1698 ## ---------------- ##
1699 _ASBOX
1700 echo
1701 # The following way of writing the cache mishandles newlines in values,
1702 (
1703 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1704 eval ac_val=\$$ac_var
1705 case $ac_val in #(
1706 *${as_nl}*)
1707 case $ac_var in #(
1708 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1709 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1710 esac
1711 case $ac_var in #(
1712 _ | IFS | as_nl) ;; #(
1713 *) $as_unset $ac_var ;;
1714 esac ;;
1715 esac
1716 done
1717 (set) 2>&1 |
1718 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1719 *${as_nl}ac_space=\ *)
1720 sed -n \
1721 "s/'\''/'\''\\\\'\'''\''/g;
1722 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1723 ;; #(
1724 *)
1725 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1726 ;;
1727 esac |
1728 sort
1729 )
1730 echo
1731
1732 cat <<\_ASBOX
1733 ## ----------------- ##
1734 ## Output variables. ##
1735 ## ----------------- ##
1736 _ASBOX
1737 echo
1738 for ac_var in $ac_subst_vars
1739 do
1740 eval ac_val=\$$ac_var
1741 case $ac_val in
1742 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1743 esac
1744 echo "$ac_var='\''$ac_val'\''"
1745 done | sort
1746 echo
1747
1748 if test -n "$ac_subst_files"; then
1749 cat <<\_ASBOX
1750 ## ------------------- ##
1751 ## File substitutions. ##
1752 ## ------------------- ##
1753 _ASBOX
1754 echo
1755 for ac_var in $ac_subst_files
1756 do
1757 eval ac_val=\$$ac_var
1758 case $ac_val in
1759 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1760 esac
1761 echo "$ac_var='\''$ac_val'\''"
1762 done | sort
1763 echo
1764 fi
1765
1766 if test -s confdefs.h; then
1767 cat <<\_ASBOX
1768 ## ----------- ##
1769 ## confdefs.h. ##
1770 ## ----------- ##
1771 _ASBOX
1772 echo
1773 cat confdefs.h
1774 echo
1775 fi
1776 test "$ac_signal" != 0 &&
1777 echo "$as_me: caught signal $ac_signal"
1778 echo "$as_me: exit $exit_status"
1779 } >&5
1780 rm -f core *.core core.conftest.* &&
1781 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1782 exit $exit_status
1783 ' 0
1784 for ac_signal in 1 2 13 15; do
1785 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1786 done
1787 ac_signal=0
1788
1789 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1790 rm -f -r conftest* confdefs.h
1791
1792 # Predefined preprocessor variables.
1793
1794 cat >>confdefs.h <<_ACEOF
1795 #define PACKAGE_NAME "$PACKAGE_NAME"
1796 _ACEOF
1797
1798
1799 cat >>confdefs.h <<_ACEOF
1800 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1801 _ACEOF
1802
1803
1804 cat >>confdefs.h <<_ACEOF
1805 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1806 _ACEOF
1807
1808
1809 cat >>confdefs.h <<_ACEOF
1810 #define PACKAGE_STRING "$PACKAGE_STRING"
1811 _ACEOF
1812
1813
1814 cat >>confdefs.h <<_ACEOF
1815 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1816 _ACEOF
1817
1818
1819 # Let the site file select an alternate cache file if it wants to.
1820 # Prefer explicitly selected file to automatically selected ones.
1821 if test -n "$CONFIG_SITE"; then
1822 set x "$CONFIG_SITE"
1823 elif test "x$prefix" != xNONE; then
1824 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1825 else
1826 set x "$ac_default_prefix/share/config.site" \
1827 "$ac_default_prefix/etc/config.site"
1828 fi
1829 shift
1830 for ac_site_file
1831 do
1832 if test -r "$ac_site_file"; then
1833 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1834 echo "$as_me: loading site script $ac_site_file" >&6;}
1835 sed 's/^/| /' "$ac_site_file" >&5
1836 . "$ac_site_file"
1837 fi
1838 done
1839
1840 if test -r "$cache_file"; then
1841 # Some versions of bash will fail to source /dev/null (special
1842 # files actually), so we avoid doing that.
1843 if test -f "$cache_file"; then
1844 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1845 echo "$as_me: loading cache $cache_file" >&6;}
1846 case $cache_file in
1847 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1848 *) . "./$cache_file";;
1849 esac
1850 fi
1851 else
1852 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1853 echo "$as_me: creating cache $cache_file" >&6;}
1854 >$cache_file
1855 fi
1856
1857 # Check that the precious variables saved in the cache have kept the same
1858 # value.
1859 ac_cache_corrupted=false
1860 for ac_var in $ac_precious_vars; do
1861 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1862 eval ac_new_set=\$ac_env_${ac_var}_set
1863 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1864 eval ac_new_val=\$ac_env_${ac_var}_value
1865 case $ac_old_set,$ac_new_set in
1866 set,)
1867 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1868 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1869 ac_cache_corrupted=: ;;
1870 ,set)
1871 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1872 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1873 ac_cache_corrupted=: ;;
1874 ,);;
1875 *)
1876 if test "x$ac_old_val" != "x$ac_new_val"; then
1877 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1878 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1879 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1880 echo "$as_me: former value: $ac_old_val" >&2;}
1881 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1882 echo "$as_me: current value: $ac_new_val" >&2;}
1883 ac_cache_corrupted=:
1884 fi;;
1885 esac
1886 # Pass precious variables to config.status.
1887 if test "$ac_new_set" = set; then
1888 case $ac_new_val in
1889 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1890 *) ac_arg=$ac_var=$ac_new_val ;;
1891 esac
1892 case " $ac_configure_args " in
1893 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1894 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1895 esac
1896 fi
1897 done
1898 if $ac_cache_corrupted; then
1899 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1900 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1901 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1902 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1903 { (exit 1); exit 1; }; }
1904 fi
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922 ac_ext=c
1923 ac_cpp='$CPP $CPPFLAGS'
1924 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1925 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1926 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1927
1928
1929
1930 ac_aux_dir=
1931 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1932 if test -f "$ac_dir/install-sh"; then
1933 ac_aux_dir=$ac_dir
1934 ac_install_sh="$ac_aux_dir/install-sh -c"
1935 break
1936 elif test -f "$ac_dir/install.sh"; then
1937 ac_aux_dir=$ac_dir
1938 ac_install_sh="$ac_aux_dir/install.sh -c"
1939 break
1940 elif test -f "$ac_dir/shtool"; then
1941 ac_aux_dir=$ac_dir
1942 ac_install_sh="$ac_aux_dir/shtool install -c"
1943 break
1944 fi
1945 done
1946 if test -z "$ac_aux_dir"; then
1947 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1948 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1949 { (exit 1); exit 1; }; }
1950 fi
1951
1952 # These three variables are undocumented and unsupported,
1953 # and are intended to be withdrawn in a future Autoconf release.
1954 # They can cause serious problems if a builder's source tree is in a directory
1955 # whose full name contains unusual characters.
1956 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1957 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1958 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1959
1960
1961 # Make sure we can run config.sub.
1962 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
1963 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
1964 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
1965 { (exit 1); exit 1; }; }
1966
1967 { echo "$as_me:$LINENO: checking build system type" >&5
1968 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
1969 if test "${ac_cv_build+set}" = set; then
1970 echo $ECHO_N "(cached) $ECHO_C" >&6
1971 else
1972 ac_build_alias=$build_alias
1973 test "x$ac_build_alias" = x &&
1974 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
1975 test "x$ac_build_alias" = x &&
1976 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1977 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1978 { (exit 1); exit 1; }; }
1979 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
1980 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
1981 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
1982 { (exit 1); exit 1; }; }
1983
1984 fi
1985 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1986 echo "${ECHO_T}$ac_cv_build" >&6; }
1987 case $ac_cv_build in
1988 *-*-*) ;;
1989 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
1990 echo "$as_me: error: invalid value of canonical build" >&2;}
1991 { (exit 1); exit 1; }; };;
1992 esac
1993 build=$ac_cv_build
1994 ac_save_IFS=$IFS; IFS='-'
1995 set x $ac_cv_build
1996 shift
1997 build_cpu=$1
1998 build_vendor=$2
1999 shift; shift
2000 # Remember, the first character of IFS is used to create $*,
2001 # except with old shells:
2002 build_os=$*
2003 IFS=$ac_save_IFS
2004 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2005
2006
2007 { echo "$as_me:$LINENO: checking host system type" >&5
2008 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2009 if test "${ac_cv_host+set}" = set; then
2010 echo $ECHO_N "(cached) $ECHO_C" >&6
2011 else
2012 if test "x$host_alias" = x; then
2013 ac_cv_host=$ac_cv_build
2014 else
2015 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2016 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2017 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2018 { (exit 1); exit 1; }; }
2019 fi
2020
2021 fi
2022 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2023 echo "${ECHO_T}$ac_cv_host" >&6; }
2024 case $ac_cv_host in
2025 *-*-*) ;;
2026 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2027 echo "$as_me: error: invalid value of canonical host" >&2;}
2028 { (exit 1); exit 1; }; };;
2029 esac
2030 host=$ac_cv_host
2031 ac_save_IFS=$IFS; IFS='-'
2032 set x $ac_cv_host
2033 shift
2034 host_cpu=$1
2035 host_vendor=$2
2036 shift; shift
2037 # Remember, the first character of IFS is used to create $*,
2038 # except with old shells:
2039 host_os=$*
2040 IFS=$ac_save_IFS
2041 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2042
2043
2044 { echo "$as_me:$LINENO: checking target system type" >&5
2045 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2046 if test "${ac_cv_target+set}" = set; then
2047 echo $ECHO_N "(cached) $ECHO_C" >&6
2048 else
2049 if test "x$target_alias" = x; then
2050 ac_cv_target=$ac_cv_host
2051 else
2052 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2053 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2054 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2055 { (exit 1); exit 1; }; }
2056 fi
2057
2058 fi
2059 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2060 echo "${ECHO_T}$ac_cv_target" >&6; }
2061 case $ac_cv_target in
2062 *-*-*) ;;
2063 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2064 echo "$as_me: error: invalid value of canonical target" >&2;}
2065 { (exit 1); exit 1; }; };;
2066 esac
2067 target=$ac_cv_target
2068 ac_save_IFS=$IFS; IFS='-'
2069 set x $ac_cv_target
2070 shift
2071 target_cpu=$1
2072 target_vendor=$2
2073 shift; shift
2074 # Remember, the first character of IFS is used to create $*,
2075 # except with old shells:
2076 target_os=$*
2077 IFS=$ac_save_IFS
2078 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2079
2080
2081 # The aliases save the names the user supplied, while $host etc.
2082 # will get canonicalized.
2083 test -n "$target_alias" &&
2084 test "$program_prefix$program_suffix$program_transform_name" = \
2085 NONENONEs,x,x, &&
2086 program_prefix=${target_alias}-
2087
2088 am__api_version='1.10'
2089
2090 # Find a good install program. We prefer a C program (faster),
2091 # so one script is as good as another. But avoid the broken or
2092 # incompatible versions:
2093 # SysV /etc/install, /usr/sbin/install
2094 # SunOS /usr/etc/install
2095 # IRIX /sbin/install
2096 # AIX /bin/install
2097 # AmigaOS /C/install, which installs bootblocks on floppy discs
2098 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2099 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2100 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2101 # OS/2's system install, which has a completely different semantic
2102 # ./install, which can be erroneously created by make from ./install.sh.
2103 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2104 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
2105 if test -z "$INSTALL"; then
2106 if test "${ac_cv_path_install+set}" = set; then
2107 echo $ECHO_N "(cached) $ECHO_C" >&6
2108 else
2109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2110 for as_dir in $PATH
2111 do
2112 IFS=$as_save_IFS
2113 test -z "$as_dir" && as_dir=.
2114 # Account for people who put trailing slashes in PATH elements.
2115 case $as_dir/ in
2116 ./ | .// | /cC/* | \
2117 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2118 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2119 /usr/ucb/* ) ;;
2120 *)
2121 # OSF1 and SCO ODT 3.0 have their own names for install.
2122 # Don't use installbsd from OSF since it installs stuff as root
2123 # by default.
2124 for ac_prog in ginstall scoinst install; do
2125 for ac_exec_ext in '' $ac_executable_extensions; do
2126 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2127 if test $ac_prog = install &&
2128 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2129 # AIX install. It has an incompatible calling convention.
2130 :
2131 elif test $ac_prog = install &&
2132 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2133 # program-specific install script used by HP pwplus--don't use.
2134 :
2135 else
2136 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2137 break 3
2138 fi
2139 fi
2140 done
2141 done
2142 ;;
2143 esac
2144 done
2145 IFS=$as_save_IFS
2146
2147
2148 fi
2149 if test "${ac_cv_path_install+set}" = set; then
2150 INSTALL=$ac_cv_path_install
2151 else
2152 # As a last resort, use the slow shell script. Don't cache a
2153 # value for INSTALL within a source directory, because that will
2154 # break other packages using the cache if that directory is
2155 # removed, or if the value is a relative name.
2156 INSTALL=$ac_install_sh
2157 fi
2158 fi
2159 { echo "$as_me:$LINENO: result: $INSTALL" >&5
2160 echo "${ECHO_T}$INSTALL" >&6; }
2161
2162 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2163 # It thinks the first close brace ends the variable substitution.
2164 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2165
2166 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2167
2168 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2169
2170 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2171 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
2172 # Just in case
2173 sleep 1
2174 echo timestamp > conftest.file
2175 # Do `set' in a subshell so we don't clobber the current shell's
2176 # arguments. Must try -L first in case configure is actually a
2177 # symlink; some systems play weird games with the mod time of symlinks
2178 # (eg FreeBSD returns the mod time of the symlink's containing
2179 # directory).
2180 if (
2181 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2182 if test "$*" = "X"; then
2183 # -L didn't work.
2184 set X `ls -t $srcdir/configure conftest.file`
2185 fi
2186 rm -f conftest.file
2187 if test "$*" != "X $srcdir/configure conftest.file" \
2188 && test "$*" != "X conftest.file $srcdir/configure"; then
2189
2190 # If neither matched, then we have a broken ls. This can happen
2191 # if, for instance, CONFIG_SHELL is bash and it inherits a
2192 # broken ls alias from the environment. This has actually
2193 # happened. Such a system could not be considered "sane".
2194 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2195 alias in your environment" >&5
2196 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2197 alias in your environment" >&2;}
2198 { (exit 1); exit 1; }; }
2199 fi
2200
2201 test "$2" = conftest.file
2202 )
2203 then
2204 # Ok.
2205 :
2206 else
2207 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2208 Check your system clock" >&5
2209 echo "$as_me: error: newly created file is older than distributed files!
2210 Check your system clock" >&2;}
2211 { (exit 1); exit 1; }; }
2212 fi
2213 { echo "$as_me:$LINENO: result: yes" >&5
2214 echo "${ECHO_T}yes" >&6; }
2215 test "$program_prefix" != NONE &&
2216 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2217 # Use a double $ so make ignores it.
2218 test "$program_suffix" != NONE &&
2219 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2220 # Double any \ or $. echo might interpret backslashes.
2221 # By default was `s,x,x', remove it if useless.
2222 cat <<\_ACEOF >conftest.sed
2223 s/[\\$]/&&/g;s/;s,x,x,$//
2224 _ACEOF
2225 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
2226 rm -f conftest.sed
2227
2228 # expand $ac_aux_dir to an absolute path
2229 am_aux_dir=`cd $ac_aux_dir && pwd`
2230
2231 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2232 # Use eval to expand $SHELL
2233 if eval "$MISSING --run true"; then
2234 am_missing_run="$MISSING --run "
2235 else
2236 am_missing_run=
2237 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2238 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2239 fi
2240
2241 { echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2242 echo $ECHO_N "checking for a thread-safe mkdir -p... $ECHO_C" >&6; }
2243 if test -z "$MKDIR_P"; then
2244 if test "${ac_cv_path_mkdir+set}" = set; then
2245 echo $ECHO_N "(cached) $ECHO_C" >&6
2246 else
2247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2248 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2249 do
2250 IFS=$as_save_IFS
2251 test -z "$as_dir" && as_dir=.
2252 for ac_prog in mkdir gmkdir; do
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2255 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2256 'mkdir (GNU coreutils) '* | \
2257 'mkdir (coreutils) '* | \
2258 'mkdir (fileutils) '4.1*)
2259 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2260 break 3;;
2261 esac
2262 done
2263 done
2264 done
2265 IFS=$as_save_IFS
2266
2267 fi
2268
2269 if test "${ac_cv_path_mkdir+set}" = set; then
2270 MKDIR_P="$ac_cv_path_mkdir -p"
2271 else
2272 # As a last resort, use the slow shell script. Don't cache a
2273 # value for MKDIR_P within a source directory, because that will
2274 # break other packages using the cache if that directory is
2275 # removed, or if the value is a relative name.
2276 test -d ./--version && rmdir ./--version
2277 MKDIR_P="$ac_install_sh -d"
2278 fi
2279 fi
2280 { echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2281 echo "${ECHO_T}$MKDIR_P" >&6; }
2282
2283 mkdir_p="$MKDIR_P"
2284 case $mkdir_p in
2285 [\\/$]* | ?:[\\/]*) ;;
2286 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2287 esac
2288
2289 for ac_prog in gawk mawk nawk awk
2290 do
2291 # Extract the first word of "$ac_prog", so it can be a program name with args.
2292 set dummy $ac_prog; ac_word=$2
2293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2295 if test "${ac_cv_prog_AWK+set}" = set; then
2296 echo $ECHO_N "(cached) $ECHO_C" >&6
2297 else
2298 if test -n "$AWK"; then
2299 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2300 else
2301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302 for as_dir in $PATH
2303 do
2304 IFS=$as_save_IFS
2305 test -z "$as_dir" && as_dir=.
2306 for ac_exec_ext in '' $ac_executable_extensions; do
2307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2308 ac_cv_prog_AWK="$ac_prog"
2309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 break 2
2311 fi
2312 done
2313 done
2314 IFS=$as_save_IFS
2315
2316 fi
2317 fi
2318 AWK=$ac_cv_prog_AWK
2319 if test -n "$AWK"; then
2320 { echo "$as_me:$LINENO: result: $AWK" >&5
2321 echo "${ECHO_T}$AWK" >&6; }
2322 else
2323 { echo "$as_me:$LINENO: result: no" >&5
2324 echo "${ECHO_T}no" >&6; }
2325 fi
2326
2327
2328 test -n "$AWK" && break
2329 done
2330
2331 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2332 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2333 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2334 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2335 echo $ECHO_N "(cached) $ECHO_C" >&6
2336 else
2337 cat >conftest.make <<\_ACEOF
2338 SHELL = /bin/sh
2339 all:
2340 @echo '@@@%%%=$(MAKE)=@@@%%%'
2341 _ACEOF
2342 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2343 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2344 *@@@%%%=?*=@@@%%%*)
2345 eval ac_cv_prog_make_${ac_make}_set=yes;;
2346 *)
2347 eval ac_cv_prog_make_${ac_make}_set=no;;
2348 esac
2349 rm -f conftest.make
2350 fi
2351 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2352 { echo "$as_me:$LINENO: result: yes" >&5
2353 echo "${ECHO_T}yes" >&6; }
2354 SET_MAKE=
2355 else
2356 { echo "$as_me:$LINENO: result: no" >&5
2357 echo "${ECHO_T}no" >&6; }
2358 SET_MAKE="MAKE=${MAKE-make}"
2359 fi
2360
2361 rm -rf .tst 2>/dev/null
2362 mkdir .tst 2>/dev/null
2363 if test -d .tst; then
2364 am__leading_dot=.
2365 else
2366 am__leading_dot=_
2367 fi
2368 rmdir .tst 2>/dev/null
2369
2370 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2371 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2372 # is not polluted with repeated "-I."
2373 am__isrc=' -I$(srcdir)'
2374 # test to see if srcdir already configured
2375 if test -f $srcdir/config.status; then
2376 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2377 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2378 { (exit 1); exit 1; }; }
2379 fi
2380 fi
2381
2382 # test whether we have cygpath
2383 if test -z "$CYGPATH_W"; then
2384 if (cygpath --version) >/dev/null 2>/dev/null; then
2385 CYGPATH_W='cygpath -w'
2386 else
2387 CYGPATH_W=echo
2388 fi
2389 fi
2390
2391
2392 # Define the identity of the package.
2393 PACKAGE=libdynamite
2394 VERSION=0.1.1
2395
2396
2397 cat >>confdefs.h <<_ACEOF
2398 #define PACKAGE "$PACKAGE"
2399 _ACEOF
2400
2401
2402 cat >>confdefs.h <<_ACEOF
2403 #define VERSION "$VERSION"
2404 _ACEOF
2405
2406 # Some tools Automake needs.
2407
2408 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2409
2410
2411 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2412
2413
2414 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2415
2416
2417 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2418
2419
2420 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2421
2422 install_sh=${install_sh-"\$(SHELL) $am_aux_dir/install-sh"}
2423
2424 # Installed binaries are usually stripped using `strip' when the user
2425 # run `make install-strip'. However `strip' might not be the right
2426 # tool to use in cross-compilation environments, therefore Automake
2427 # will honor the `STRIP' environment variable to overrule this program.
2428 if test "$cross_compiling" != no; then
2429 if test -n "$ac_tool_prefix"; then
2430 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2431 set dummy ${ac_tool_prefix}strip; ac_word=$2
2432 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2434 if test "${ac_cv_prog_STRIP+set}" = set; then
2435 echo $ECHO_N "(cached) $ECHO_C" >&6
2436 else
2437 if test -n "$STRIP"; then
2438 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2439 else
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2441 for as_dir in $PATH
2442 do
2443 IFS=$as_save_IFS
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2447 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2448 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2449 break 2
2450 fi
2451 done
2452 done
2453 IFS=$as_save_IFS
2454
2455 fi
2456 fi
2457 STRIP=$ac_cv_prog_STRIP
2458 if test -n "$STRIP"; then
2459 { echo "$as_me:$LINENO: result: $STRIP" >&5
2460 echo "${ECHO_T}$STRIP" >&6; }
2461 else
2462 { echo "$as_me:$LINENO: result: no" >&5
2463 echo "${ECHO_T}no" >&6; }
2464 fi
2465
2466
2467 fi
2468 if test -z "$ac_cv_prog_STRIP"; then
2469 ac_ct_STRIP=$STRIP
2470 # Extract the first word of "strip", so it can be a program name with args.
2471 set dummy strip; ac_word=$2
2472 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2474 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2475 echo $ECHO_N "(cached) $ECHO_C" >&6
2476 else
2477 if test -n "$ac_ct_STRIP"; then
2478 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2479 else
2480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2481 for as_dir in $PATH
2482 do
2483 IFS=$as_save_IFS
2484 test -z "$as_dir" && as_dir=.
2485 for ac_exec_ext in '' $ac_executable_extensions; do
2486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2487 ac_cv_prog_ac_ct_STRIP="strip"
2488 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2489 break 2
2490 fi
2491 done
2492 done
2493 IFS=$as_save_IFS
2494
2495 fi
2496 fi
2497 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2498 if test -n "$ac_ct_STRIP"; then
2499 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2500 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2501 else
2502 { echo "$as_me:$LINENO: result: no" >&5
2503 echo "${ECHO_T}no" >&6; }
2504 fi
2505
2506 if test "x$ac_ct_STRIP" = x; then
2507 STRIP=":"
2508 else
2509 case $cross_compiling:$ac_tool_warned in
2510 yes:)
2511 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2512 whose name does not start with the host triplet. If you think this
2513 configuration is useful to you, please write to [email protected]." >&5
2514 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2515 whose name does not start with the host triplet. If you think this
2516 configuration is useful to you, please write to [email protected]." >&2;}
2517 ac_tool_warned=yes ;;
2518 esac
2519 STRIP=$ac_ct_STRIP
2520 fi
2521 else
2522 STRIP="$ac_cv_prog_STRIP"
2523 fi
2524
2525 fi
2526 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2527
2528 # We need awk for the "check" target. The system "awk" is bad on
2529 # some platforms.
2530 # Always define AMTAR for backward compatibility.
2531
2532 AMTAR=${AMTAR-"${am_missing_run}tar"}
2533
2534 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2535
2536
2537
2538
2539
2540 ac_config_headers="$ac_config_headers config.h"
2541
2542
2543 CFLAGS="-Wall -Wsign-compare -Wno-long-long $CFLAGS"
2544
2545 case $target in
2546
2547 powerpc-apple-*)
2548 CFLAGS="-no-cpp-precomp $CFLAGS"
2549 ;;
2550
2551 esac
2552
2553 for ac_prog in gawk mawk nawk awk
2554 do
2555 # Extract the first word of "$ac_prog", so it can be a program name with args.
2556 set dummy $ac_prog; ac_word=$2
2557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2559 if test "${ac_cv_prog_AWK+set}" = set; then
2560 echo $ECHO_N "(cached) $ECHO_C" >&6
2561 else
2562 if test -n "$AWK"; then
2563 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2564 else
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2567 do
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 ac_cv_prog_AWK="$ac_prog"
2573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2574 break 2
2575 fi
2576 done
2577 done
2578 IFS=$as_save_IFS
2579
2580 fi
2581 fi
2582 AWK=$ac_cv_prog_AWK
2583 if test -n "$AWK"; then
2584 { echo "$as_me:$LINENO: result: $AWK" >&5
2585 echo "${ECHO_T}$AWK" >&6; }
2586 else
2587 { echo "$as_me:$LINENO: result: no" >&5
2588 echo "${ECHO_T}no" >&6; }
2589 fi
2590
2591
2592 test -n "$AWK" && break
2593 done
2594
2595 ac_ext=c
2596 ac_cpp='$CPP $CPPFLAGS'
2597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2600 if test -n "$ac_tool_prefix"; then
2601 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2602 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2603 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2605 if test "${ac_cv_prog_CC+set}" = set; then
2606 echo $ECHO_N "(cached) $ECHO_C" >&6
2607 else
2608 if test -n "$CC"; then
2609 ac_cv_prog_CC="$CC" # Let the user override the test.
2610 else
2611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2612 for as_dir in $PATH
2613 do
2614 IFS=$as_save_IFS
2615 test -z "$as_dir" && as_dir=.
2616 for ac_exec_ext in '' $ac_executable_extensions; do
2617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2618 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2619 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2620 break 2
2621 fi
2622 done
2623 done
2624 IFS=$as_save_IFS
2625
2626 fi
2627 fi
2628 CC=$ac_cv_prog_CC
2629 if test -n "$CC"; then
2630 { echo "$as_me:$LINENO: result: $CC" >&5
2631 echo "${ECHO_T}$CC" >&6; }
2632 else
2633 { echo "$as_me:$LINENO: result: no" >&5
2634 echo "${ECHO_T}no" >&6; }
2635 fi
2636
2637
2638 fi
2639 if test -z "$ac_cv_prog_CC"; then
2640 ac_ct_CC=$CC
2641 # Extract the first word of "gcc", so it can be a program name with args.
2642 set dummy gcc; ac_word=$2
2643 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2644 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2645 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2646 echo $ECHO_N "(cached) $ECHO_C" >&6
2647 else
2648 if test -n "$ac_ct_CC"; then
2649 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2650 else
2651 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2652 for as_dir in $PATH
2653 do
2654 IFS=$as_save_IFS
2655 test -z "$as_dir" && as_dir=.
2656 for ac_exec_ext in '' $ac_executable_extensions; do
2657 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2658 ac_cv_prog_ac_ct_CC="gcc"
2659 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2660 break 2
2661 fi
2662 done
2663 done
2664 IFS=$as_save_IFS
2665
2666 fi
2667 fi
2668 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2669 if test -n "$ac_ct_CC"; then
2670 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2671 echo "${ECHO_T}$ac_ct_CC" >&6; }
2672 else
2673 { echo "$as_me:$LINENO: result: no" >&5
2674 echo "${ECHO_T}no" >&6; }
2675 fi
2676
2677 if test "x$ac_ct_CC" = x; then
2678 CC=""
2679 else
2680 case $cross_compiling:$ac_tool_warned in
2681 yes:)
2682 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2683 whose name does not start with the host triplet. If you think this
2684 configuration is useful to you, please write to [email protected]." >&5
2685 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2686 whose name does not start with the host triplet. If you think this
2687 configuration is useful to you, please write to [email protected]." >&2;}
2688 ac_tool_warned=yes ;;
2689 esac
2690 CC=$ac_ct_CC
2691 fi
2692 else
2693 CC="$ac_cv_prog_CC"
2694 fi
2695
2696 if test -z "$CC"; then
2697 if test -n "$ac_tool_prefix"; then
2698 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2699 set dummy ${ac_tool_prefix}cc; ac_word=$2
2700 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2701 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2702 if test "${ac_cv_prog_CC+set}" = set; then
2703 echo $ECHO_N "(cached) $ECHO_C" >&6
2704 else
2705 if test -n "$CC"; then
2706 ac_cv_prog_CC="$CC" # Let the user override the test.
2707 else
2708 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2709 for as_dir in $PATH
2710 do
2711 IFS=$as_save_IFS
2712 test -z "$as_dir" && as_dir=.
2713 for ac_exec_ext in '' $ac_executable_extensions; do
2714 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2715 ac_cv_prog_CC="${ac_tool_prefix}cc"
2716 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2717 break 2
2718 fi
2719 done
2720 done
2721 IFS=$as_save_IFS
2722
2723 fi
2724 fi
2725 CC=$ac_cv_prog_CC
2726 if test -n "$CC"; then
2727 { echo "$as_me:$LINENO: result: $CC" >&5
2728 echo "${ECHO_T}$CC" >&6; }
2729 else
2730 { echo "$as_me:$LINENO: result: no" >&5
2731 echo "${ECHO_T}no" >&6; }
2732 fi
2733
2734
2735 fi
2736 fi
2737 if test -z "$CC"; then
2738 # Extract the first word of "cc", so it can be a program name with args.
2739 set dummy cc; ac_word=$2
2740 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2741 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2742 if test "${ac_cv_prog_CC+set}" = set; then
2743 echo $ECHO_N "(cached) $ECHO_C" >&6
2744 else
2745 if test -n "$CC"; then
2746 ac_cv_prog_CC="$CC" # Let the user override the test.
2747 else
2748 ac_prog_rejected=no
2749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2750 for as_dir in $PATH
2751 do
2752 IFS=$as_save_IFS
2753 test -z "$as_dir" && as_dir=.
2754 for ac_exec_ext in '' $ac_executable_extensions; do
2755 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2756 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2757 ac_prog_rejected=yes
2758 continue
2759 fi
2760 ac_cv_prog_CC="cc"
2761 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2762 break 2
2763 fi
2764 done
2765 done
2766 IFS=$as_save_IFS
2767
2768 if test $ac_prog_rejected = yes; then
2769 # We found a bogon in the path, so make sure we never use it.
2770 set dummy $ac_cv_prog_CC
2771 shift
2772 if test $# != 0; then
2773 # We chose a different compiler from the bogus one.
2774 # However, it has the same basename, so the bogon will be chosen
2775 # first if we set CC to just the basename; use the full file name.
2776 shift
2777 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2778 fi
2779 fi
2780 fi
2781 fi
2782 CC=$ac_cv_prog_CC
2783 if test -n "$CC"; then
2784 { echo "$as_me:$LINENO: result: $CC" >&5
2785 echo "${ECHO_T}$CC" >&6; }
2786 else
2787 { echo "$as_me:$LINENO: result: no" >&5
2788 echo "${ECHO_T}no" >&6; }
2789 fi
2790
2791
2792 fi
2793 if test -z "$CC"; then
2794 if test -n "$ac_tool_prefix"; then
2795 for ac_prog in cl.exe
2796 do
2797 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2798 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2799 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2800 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2801 if test "${ac_cv_prog_CC+set}" = set; then
2802 echo $ECHO_N "(cached) $ECHO_C" >&6
2803 else
2804 if test -n "$CC"; then
2805 ac_cv_prog_CC="$CC" # Let the user override the test.
2806 else
2807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2808 for as_dir in $PATH
2809 do
2810 IFS=$as_save_IFS
2811 test -z "$as_dir" && as_dir=.
2812 for ac_exec_ext in '' $ac_executable_extensions; do
2813 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2814 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2815 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2816 break 2
2817 fi
2818 done
2819 done
2820 IFS=$as_save_IFS
2821
2822 fi
2823 fi
2824 CC=$ac_cv_prog_CC
2825 if test -n "$CC"; then
2826 { echo "$as_me:$LINENO: result: $CC" >&5
2827 echo "${ECHO_T}$CC" >&6; }
2828 else
2829 { echo "$as_me:$LINENO: result: no" >&5
2830 echo "${ECHO_T}no" >&6; }
2831 fi
2832
2833
2834 test -n "$CC" && break
2835 done
2836 fi
2837 if test -z "$CC"; then
2838 ac_ct_CC=$CC
2839 for ac_prog in cl.exe
2840 do
2841 # Extract the first word of "$ac_prog", so it can be a program name with args.
2842 set dummy $ac_prog; ac_word=$2
2843 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2845 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2846 echo $ECHO_N "(cached) $ECHO_C" >&6
2847 else
2848 if test -n "$ac_ct_CC"; then
2849 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2850 else
2851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2852 for as_dir in $PATH
2853 do
2854 IFS=$as_save_IFS
2855 test -z "$as_dir" && as_dir=.
2856 for ac_exec_ext in '' $ac_executable_extensions; do
2857 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2858 ac_cv_prog_ac_ct_CC="$ac_prog"
2859 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2860 break 2
2861 fi
2862 done
2863 done
2864 IFS=$as_save_IFS
2865
2866 fi
2867 fi
2868 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2869 if test -n "$ac_ct_CC"; then
2870 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2871 echo "${ECHO_T}$ac_ct_CC" >&6; }
2872 else
2873 { echo "$as_me:$LINENO: result: no" >&5
2874 echo "${ECHO_T}no" >&6; }
2875 fi
2876
2877
2878 test -n "$ac_ct_CC" && break
2879 done
2880
2881 if test "x$ac_ct_CC" = x; then
2882 CC=""
2883 else
2884 case $cross_compiling:$ac_tool_warned in
2885 yes:)
2886 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2887 whose name does not start with the host triplet. If you think this
2888 configuration is useful to you, please write to [email protected]." >&5
2889 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2890 whose name does not start with the host triplet. If you think this
2891 configuration is useful to you, please write to [email protected]." >&2;}
2892 ac_tool_warned=yes ;;
2893 esac
2894 CC=$ac_ct_CC
2895 fi
2896 fi
2897
2898 fi
2899
2900
2901 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: no acceptable C compiler found in \$PATH
2904 See \`config.log' for more details." >&2;}
2905 { (exit 1); exit 1; }; }
2906
2907 # Provide some information about the compiler.
2908 echo "$as_me:$LINENO: checking for C compiler version" >&5
2909 ac_compiler=`set X $ac_compile; echo $2`
2910 { (ac_try="$ac_compiler --version >&5"
2911 case "(($ac_try" in
2912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2913 *) ac_try_echo=$ac_try;;
2914 esac
2915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2916 (eval "$ac_compiler --version >&5") 2>&5
2917 ac_status=$?
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }
2920 { (ac_try="$ac_compiler -v >&5"
2921 case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924 esac
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_compiler -v >&5") 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }
2930 { (ac_try="$ac_compiler -V >&5"
2931 case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_compiler -V >&5") 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }
2940
2941 cat >conftest.$ac_ext <<_ACEOF
2942 /* confdefs.h. */
2943 _ACEOF
2944 cat confdefs.h >>conftest.$ac_ext
2945 cat >>conftest.$ac_ext <<_ACEOF
2946 /* end confdefs.h. */
2947
2948 int
2949 main ()
2950 {
2951
2952 ;
2953 return 0;
2954 }
2955 _ACEOF
2956 ac_clean_files_save=$ac_clean_files
2957 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2958 # Try to create an executable without -o first, disregard a.out.
2959 # It will help us diagnose broken compilers, and finding out an intuition
2960 # of exeext.
2961 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2962 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2963 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2964 #
2965 # List of possible output files, starting from the most likely.
2966 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2967 # only as a last resort. b.out is created by i960 compilers.
2968 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2969 #
2970 # The IRIX 6 linker writes into existing files which may not be
2971 # executable, retaining their permissions. Remove them first so a
2972 # subsequent execution test works.
2973 ac_rmfiles=
2974 for ac_file in $ac_files
2975 do
2976 case $ac_file in
2977 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2978 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2979 esac
2980 done
2981 rm -f $ac_rmfiles
2982
2983 if { (ac_try="$ac_link_default"
2984 case "(($ac_try" in
2985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2986 *) ac_try_echo=$ac_try;;
2987 esac
2988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2989 (eval "$ac_link_default") 2>&5
2990 ac_status=$?
2991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2992 (exit $ac_status); }; then
2993 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2994 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2995 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2996 # so that the user can short-circuit this test for compilers unknown to
2997 # Autoconf.
2998 for ac_file in $ac_files ''
2999 do
3000 test -f "$ac_file" || continue
3001 case $ac_file in
3002 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3003 ;;
3004 [ab].out )
3005 # We found the default executable, but exeext='' is most
3006 # certainly right.
3007 break;;
3008 *.* )
3009 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3010 then :; else
3011 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3012 fi
3013 # We set ac_cv_exeext here because the later test for it is not
3014 # safe: cross compilers may not add the suffix if given an `-o'
3015 # argument, so we may need to know it at that point already.
3016 # Even if this section looks crufty: it has the advantage of
3017 # actually working.
3018 break;;
3019 * )
3020 break;;
3021 esac
3022 done
3023 test "$ac_cv_exeext" = no && ac_cv_exeext=
3024
3025 else
3026 ac_file=''
3027 fi
3028
3029 { echo "$as_me:$LINENO: result: $ac_file" >&5
3030 echo "${ECHO_T}$ac_file" >&6; }
3031 if test -z "$ac_file"; then
3032 echo "$as_me: failed program was:" >&5
3033 sed 's/^/| /' conftest.$ac_ext >&5
3034
3035 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3036 See \`config.log' for more details." >&5
3037 echo "$as_me: error: C compiler cannot create executables
3038 See \`config.log' for more details." >&2;}
3039 { (exit 77); exit 77; }; }
3040 fi
3041
3042 ac_exeext=$ac_cv_exeext
3043
3044 # Check that the compiler produces executables we can run. If not, either
3045 # the compiler is broken, or we cross compile.
3046 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3047 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3048 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3049 # If not cross compiling, check that we can run a simple program.
3050 if test "$cross_compiling" != yes; then
3051 if { ac_try='./$ac_file'
3052 { (case "(($ac_try" in
3053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3054 *) ac_try_echo=$ac_try;;
3055 esac
3056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3057 (eval "$ac_try") 2>&5
3058 ac_status=$?
3059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3060 (exit $ac_status); }; }; then
3061 cross_compiling=no
3062 else
3063 if test "$cross_compiling" = maybe; then
3064 cross_compiling=yes
3065 else
3066 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3067 If you meant to cross compile, use \`--host'.
3068 See \`config.log' for more details." >&5
3069 echo "$as_me: error: cannot run C compiled programs.
3070 If you meant to cross compile, use \`--host'.
3071 See \`config.log' for more details." >&2;}
3072 { (exit 1); exit 1; }; }
3073 fi
3074 fi
3075 fi
3076 { echo "$as_me:$LINENO: result: yes" >&5
3077 echo "${ECHO_T}yes" >&6; }
3078
3079 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3080 ac_clean_files=$ac_clean_files_save
3081 # Check that the compiler produces executables we can run. If not, either
3082 # the compiler is broken, or we cross compile.
3083 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3084 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3085 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3086 echo "${ECHO_T}$cross_compiling" >&6; }
3087
3088 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3089 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3090 if { (ac_try="$ac_link"
3091 case "(($ac_try" in
3092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3093 *) ac_try_echo=$ac_try;;
3094 esac
3095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3096 (eval "$ac_link") 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; then
3100 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3101 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3102 # work properly (i.e., refer to `conftest.exe'), while it won't with
3103 # `rm'.
3104 for ac_file in conftest.exe conftest conftest.*; do
3105 test -f "$ac_file" || continue
3106 case $ac_file in
3107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3108 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3109 break;;
3110 * ) break;;
3111 esac
3112 done
3113 else
3114 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3115 See \`config.log' for more details." >&5
3116 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3117 See \`config.log' for more details." >&2;}
3118 { (exit 1); exit 1; }; }
3119 fi
3120
3121 rm -f conftest$ac_cv_exeext
3122 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3123 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3124
3125 rm -f conftest.$ac_ext
3126 EXEEXT=$ac_cv_exeext
3127 ac_exeext=$EXEEXT
3128 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3129 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3130 if test "${ac_cv_objext+set}" = set; then
3131 echo $ECHO_N "(cached) $ECHO_C" >&6
3132 else
3133 cat >conftest.$ac_ext <<_ACEOF
3134 /* confdefs.h. */
3135 _ACEOF
3136 cat confdefs.h >>conftest.$ac_ext
3137 cat >>conftest.$ac_ext <<_ACEOF
3138 /* end confdefs.h. */
3139
3140 int
3141 main ()
3142 {
3143
3144 ;
3145 return 0;
3146 }
3147 _ACEOF
3148 rm -f conftest.o conftest.obj
3149 if { (ac_try="$ac_compile"
3150 case "(($ac_try" in
3151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3152 *) ac_try_echo=$ac_try;;
3153 esac
3154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3155 (eval "$ac_compile") 2>&5
3156 ac_status=$?
3157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3158 (exit $ac_status); }; then
3159 for ac_file in conftest.o conftest.obj conftest.*; do
3160 test -f "$ac_file" || continue;
3161 case $ac_file in
3162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3163 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3164 break;;
3165 esac
3166 done
3167 else
3168 echo "$as_me: failed program was:" >&5
3169 sed 's/^/| /' conftest.$ac_ext >&5
3170
3171 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3172 See \`config.log' for more details." >&5
3173 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3174 See \`config.log' for more details." >&2;}
3175 { (exit 1); exit 1; }; }
3176 fi
3177
3178 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3179 fi
3180 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3181 echo "${ECHO_T}$ac_cv_objext" >&6; }
3182 OBJEXT=$ac_cv_objext
3183 ac_objext=$OBJEXT
3184 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3185 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3186 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 else
3189 cat >conftest.$ac_ext <<_ACEOF
3190 /* confdefs.h. */
3191 _ACEOF
3192 cat confdefs.h >>conftest.$ac_ext
3193 cat >>conftest.$ac_ext <<_ACEOF
3194 /* end confdefs.h. */
3195
3196 int
3197 main ()
3198 {
3199 #ifndef __GNUC__
3200 choke me
3201 #endif
3202
3203 ;
3204 return 0;
3205 }
3206 _ACEOF
3207 rm -f conftest.$ac_objext
3208 if { (ac_try="$ac_compile"
3209 case "(($ac_try" in
3210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3211 *) ac_try_echo=$ac_try;;
3212 esac
3213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3214 (eval "$ac_compile") 2>conftest.er1
3215 ac_status=$?
3216 grep -v '^ *+' conftest.er1 >conftest.err
3217 rm -f conftest.er1
3218 cat conftest.err >&5
3219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3220 (exit $ac_status); } && {
3221 test -z "$ac_c_werror_flag" ||
3222 test ! -s conftest.err
3223 } && test -s conftest.$ac_objext; then
3224 ac_compiler_gnu=yes
3225 else
3226 echo "$as_me: failed program was:" >&5
3227 sed 's/^/| /' conftest.$ac_ext >&5
3228
3229 ac_compiler_gnu=no
3230 fi
3231
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3233 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3234
3235 fi
3236 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3237 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3238 GCC=`test $ac_compiler_gnu = yes && echo yes`
3239 ac_test_CFLAGS=${CFLAGS+set}
3240 ac_save_CFLAGS=$CFLAGS
3241 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3242 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3243 if test "${ac_cv_prog_cc_g+set}" = set; then
3244 echo $ECHO_N "(cached) $ECHO_C" >&6
3245 else
3246 ac_save_c_werror_flag=$ac_c_werror_flag
3247 ac_c_werror_flag=yes
3248 ac_cv_prog_cc_g=no
3249 CFLAGS="-g"
3250 cat >conftest.$ac_ext <<_ACEOF
3251 /* confdefs.h. */
3252 _ACEOF
3253 cat confdefs.h >>conftest.$ac_ext
3254 cat >>conftest.$ac_ext <<_ACEOF
3255 /* end confdefs.h. */
3256
3257 int
3258 main ()
3259 {
3260
3261 ;
3262 return 0;
3263 }
3264 _ACEOF
3265 rm -f conftest.$ac_objext
3266 if { (ac_try="$ac_compile"
3267 case "(($ac_try" in
3268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3269 *) ac_try_echo=$ac_try;;
3270 esac
3271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3272 (eval "$ac_compile") 2>conftest.er1
3273 ac_status=$?
3274 grep -v '^ *+' conftest.er1 >conftest.err
3275 rm -f conftest.er1
3276 cat conftest.err >&5
3277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3278 (exit $ac_status); } && {
3279 test -z "$ac_c_werror_flag" ||
3280 test ! -s conftest.err
3281 } && test -s conftest.$ac_objext; then
3282 ac_cv_prog_cc_g=yes
3283 else
3284 echo "$as_me: failed program was:" >&5
3285 sed 's/^/| /' conftest.$ac_ext >&5
3286
3287 CFLAGS=""
3288 cat >conftest.$ac_ext <<_ACEOF
3289 /* confdefs.h. */
3290 _ACEOF
3291 cat confdefs.h >>conftest.$ac_ext
3292 cat >>conftest.$ac_ext <<_ACEOF
3293 /* end confdefs.h. */
3294
3295 int
3296 main ()
3297 {
3298
3299 ;
3300 return 0;
3301 }
3302 _ACEOF
3303 rm -f conftest.$ac_objext
3304 if { (ac_try="$ac_compile"
3305 case "(($ac_try" in
3306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3307 *) ac_try_echo=$ac_try;;
3308 esac
3309 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3310 (eval "$ac_compile") 2>conftest.er1
3311 ac_status=$?
3312 grep -v '^ *+' conftest.er1 >conftest.err
3313 rm -f conftest.er1
3314 cat conftest.err >&5
3315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3316 (exit $ac_status); } && {
3317 test -z "$ac_c_werror_flag" ||
3318 test ! -s conftest.err
3319 } && test -s conftest.$ac_objext; then
3320 :
3321 else
3322 echo "$as_me: failed program was:" >&5
3323 sed 's/^/| /' conftest.$ac_ext >&5
3324
3325 ac_c_werror_flag=$ac_save_c_werror_flag
3326 CFLAGS="-g"
3327 cat >conftest.$ac_ext <<_ACEOF
3328 /* confdefs.h. */
3329 _ACEOF
3330 cat confdefs.h >>conftest.$ac_ext
3331 cat >>conftest.$ac_ext <<_ACEOF
3332 /* end confdefs.h. */
3333
3334 int
3335 main ()
3336 {
3337
3338 ;
3339 return 0;
3340 }
3341 _ACEOF
3342 rm -f conftest.$ac_objext
3343 if { (ac_try="$ac_compile"
3344 case "(($ac_try" in
3345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346 *) ac_try_echo=$ac_try;;
3347 esac
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349 (eval "$ac_compile") 2>conftest.er1
3350 ac_status=$?
3351 grep -v '^ *+' conftest.er1 >conftest.err
3352 rm -f conftest.er1
3353 cat conftest.err >&5
3354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3355 (exit $ac_status); } && {
3356 test -z "$ac_c_werror_flag" ||
3357 test ! -s conftest.err
3358 } && test -s conftest.$ac_objext; then
3359 ac_cv_prog_cc_g=yes
3360 else
3361 echo "$as_me: failed program was:" >&5
3362 sed 's/^/| /' conftest.$ac_ext >&5
3363
3364
3365 fi
3366
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 fi
3369
3370 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3371 fi
3372
3373 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3374 ac_c_werror_flag=$ac_save_c_werror_flag
3375 fi
3376 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3377 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3378 if test "$ac_test_CFLAGS" = set; then
3379 CFLAGS=$ac_save_CFLAGS
3380 elif test $ac_cv_prog_cc_g = yes; then
3381 if test "$GCC" = yes; then
3382 CFLAGS="-g -O2"
3383 else
3384 CFLAGS="-g"
3385 fi
3386 else
3387 if test "$GCC" = yes; then
3388 CFLAGS="-O2"
3389 else
3390 CFLAGS=
3391 fi
3392 fi
3393 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3394 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3395 if test "${ac_cv_prog_cc_c89+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398 ac_cv_prog_cc_c89=no
3399 ac_save_CC=$CC
3400 cat >conftest.$ac_ext <<_ACEOF
3401 /* confdefs.h. */
3402 _ACEOF
3403 cat confdefs.h >>conftest.$ac_ext
3404 cat >>conftest.$ac_ext <<_ACEOF
3405 /* end confdefs.h. */
3406 #include <stdarg.h>
3407 #include <stdio.h>
3408 #include <sys/types.h>
3409 #include <sys/stat.h>
3410 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3411 struct buf { int x; };
3412 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3413 static char *e (p, i)
3414 char **p;
3415 int i;
3416 {
3417 return p[i];
3418 }
3419 static char *f (char * (*g) (char **, int), char **p, ...)
3420 {
3421 char *s;
3422 va_list v;
3423 va_start (v,p);
3424 s = g (p, va_arg (v,int));
3425 va_end (v);
3426 return s;
3427 }
3428
3429 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3430 function prototypes and stuff, but not '\xHH' hex character constants.
3431 These don't provoke an error unfortunately, instead are silently treated
3432 as 'x'. The following induces an error, until -std is added to get
3433 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3434 array size at least. It's necessary to write '\x00'==0 to get something
3435 that's true only with -std. */
3436 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3437
3438 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3439 inside strings and character constants. */
3440 #define FOO(x) 'x'
3441 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3442
3443 int test (int i, double x);
3444 struct s1 {int (*f) (int a);};
3445 struct s2 {int (*f) (double a);};
3446 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3447 int argc;
3448 char **argv;
3449 int
3450 main ()
3451 {
3452 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3453 ;
3454 return 0;
3455 }
3456 _ACEOF
3457 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3458 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3459 do
3460 CC="$ac_save_CC $ac_arg"
3461 rm -f conftest.$ac_objext
3462 if { (ac_try="$ac_compile"
3463 case "(($ac_try" in
3464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3465 *) ac_try_echo=$ac_try;;
3466 esac
3467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3468 (eval "$ac_compile") 2>conftest.er1
3469 ac_status=$?
3470 grep -v '^ *+' conftest.er1 >conftest.err
3471 rm -f conftest.er1
3472 cat conftest.err >&5
3473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3474 (exit $ac_status); } && {
3475 test -z "$ac_c_werror_flag" ||
3476 test ! -s conftest.err
3477 } && test -s conftest.$ac_objext; then
3478 ac_cv_prog_cc_c89=$ac_arg
3479 else
3480 echo "$as_me: failed program was:" >&5
3481 sed 's/^/| /' conftest.$ac_ext >&5
3482
3483
3484 fi
3485
3486 rm -f core conftest.err conftest.$ac_objext
3487 test "x$ac_cv_prog_cc_c89" != "xno" && break
3488 done
3489 rm -f conftest.$ac_ext
3490 CC=$ac_save_CC
3491
3492 fi
3493 # AC_CACHE_VAL
3494 case "x$ac_cv_prog_cc_c89" in
3495 x)
3496 { echo "$as_me:$LINENO: result: none needed" >&5
3497 echo "${ECHO_T}none needed" >&6; } ;;
3498 xno)
3499 { echo "$as_me:$LINENO: result: unsupported" >&5
3500 echo "${ECHO_T}unsupported" >&6; } ;;
3501 *)
3502 CC="$CC $ac_cv_prog_cc_c89"
3503 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3504 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3505 esac
3506
3507
3508 ac_ext=c
3509 ac_cpp='$CPP $CPPFLAGS'
3510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3513 DEPDIR="${am__leading_dot}deps"
3514
3515 ac_config_commands="$ac_config_commands depfiles"
3516
3517
3518 am_make=${MAKE-make}
3519 cat > confinc << 'END'
3520 am__doit:
3521 @echo done
3522 .PHONY: am__doit
3523 END
3524 # If we don't find an include directive, just comment out the code.
3525 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3526 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
3527 am__include="#"
3528 am__quote=
3529 _am_result=none
3530 # First try GNU make style include.
3531 echo "include confinc" > confmf
3532 # We grep out `Entering directory' and `Leaving directory'
3533 # messages which can occur if `w' ends up in MAKEFLAGS.
3534 # In particular we don't look at `^make:' because GNU make might
3535 # be invoked under some other name (usually "gmake"), in which
3536 # case it prints its new name instead of `make'.
3537 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3538 am__include=include
3539 am__quote=
3540 _am_result=GNU
3541 fi
3542 # Now try BSD make style include.
3543 if test "$am__include" = "#"; then
3544 echo '.include "confinc"' > confmf
3545 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3546 am__include=.include
3547 am__quote="\""
3548 _am_result=BSD
3549 fi
3550 fi
3551
3552
3553 { echo "$as_me:$LINENO: result: $_am_result" >&5
3554 echo "${ECHO_T}$_am_result" >&6; }
3555 rm -f confinc confmf
3556
3557 # Check whether --enable-dependency-tracking was given.
3558 if test "${enable_dependency_tracking+set}" = set; then
3559 enableval=$enable_dependency_tracking;
3560 fi
3561
3562 if test "x$enable_dependency_tracking" != xno; then
3563 am_depcomp="$ac_aux_dir/depcomp"
3564 AMDEPBACKSLASH='\'
3565 fi
3566 if test "x$enable_dependency_tracking" != xno; then
3567 AMDEP_TRUE=
3568 AMDEP_FALSE='#'
3569 else
3570 AMDEP_TRUE='#'
3571 AMDEP_FALSE=
3572 fi
3573
3574
3575
3576 depcc="$CC" am_compiler_list=
3577
3578 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3579 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3580 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3581 echo $ECHO_N "(cached) $ECHO_C" >&6
3582 else
3583 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3584 # We make a subdir and do the tests there. Otherwise we can end up
3585 # making bogus files that we don't know about and never remove. For
3586 # instance it was reported that on HP-UX the gcc test will end up
3587 # making a dummy file named `D' -- because `-MD' means `put the output
3588 # in D'.
3589 mkdir conftest.dir
3590 # Copy depcomp to subdir because otherwise we won't find it if we're
3591 # using a relative directory.
3592 cp "$am_depcomp" conftest.dir
3593 cd conftest.dir
3594 # We will build objects and dependencies in a subdirectory because
3595 # it helps to detect inapplicable dependency modes. For instance
3596 # both Tru64's cc and ICC support -MD to output dependencies as a
3597 # side effect of compilation, but ICC will put the dependencies in
3598 # the current directory while Tru64 will put them in the object
3599 # directory.
3600 mkdir sub
3601
3602 am_cv_CC_dependencies_compiler_type=none
3603 if test "$am_compiler_list" = ""; then
3604 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3605 fi
3606 for depmode in $am_compiler_list; do
3607 # Setup a source with many dependencies, because some compilers
3608 # like to wrap large dependency lists on column 80 (with \), and
3609 # we should not choose a depcomp mode which is confused by this.
3610 #
3611 # We need to recreate these files for each test, as the compiler may
3612 # overwrite some of them when testing with obscure command lines.
3613 # This happens at least with the AIX C compiler.
3614 : > sub/conftest.c
3615 for i in 1 2 3 4 5 6; do
3616 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3617 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3618 # Solaris 8's {/usr,}/bin/sh.
3619 touch sub/conftst$i.h
3620 done
3621 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3622
3623 case $depmode in
3624 nosideeffect)
3625 # after this tag, mechanisms are not by side-effect, so they'll
3626 # only be used when explicitly requested
3627 if test "x$enable_dependency_tracking" = xyes; then
3628 continue
3629 else
3630 break
3631 fi
3632 ;;
3633 none) break ;;
3634 esac
3635 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3636 # mode. It turns out that the SunPro C++ compiler does not properly
3637 # handle `-M -o', and we need to detect this.
3638 if depmode=$depmode \
3639 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3640 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3641 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3642 >/dev/null 2>conftest.err &&
3643 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3644 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3645 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3646 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3647 # icc doesn't choke on unknown options, it will just issue warnings
3648 # or remarks (even with -Werror). So we grep stderr for any message
3649 # that says an option was ignored or not supported.
3650 # When given -MP, icc 7.0 and 7.1 complain thusly:
3651 # icc: Command line warning: ignoring option '-M'; no argument required
3652 # The diagnosis changed in icc 8.0:
3653 # icc: Command line remark: option '-MP' not supported
3654 if (grep 'ignoring option' conftest.err ||
3655 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3656 am_cv_CC_dependencies_compiler_type=$depmode
3657 break
3658 fi
3659 fi
3660 done
3661
3662 cd ..
3663 rm -rf conftest.dir
3664 else
3665 am_cv_CC_dependencies_compiler_type=none
3666 fi
3667
3668 fi
3669 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3670 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
3671 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3672
3673 if
3674 test "x$enable_dependency_tracking" != xno \
3675 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3676 am__fastdepCC_TRUE=
3677 am__fastdepCC_FALSE='#'
3678 else
3679 am__fastdepCC_TRUE='#'
3680 am__fastdepCC_FALSE=
3681 fi
3682
3683
3684 # Find a good install program. We prefer a C program (faster),
3685 # so one script is as good as another. But avoid the broken or
3686 # incompatible versions:
3687 # SysV /etc/install, /usr/sbin/install
3688 # SunOS /usr/etc/install
3689 # IRIX /sbin/install
3690 # AIX /bin/install
3691 # AmigaOS /C/install, which installs bootblocks on floppy discs
3692 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3693 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3694 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3695 # OS/2's system install, which has a completely different semantic
3696 # ./install, which can be erroneously created by make from ./install.sh.
3697 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3698 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
3699 if test -z "$INSTALL"; then
3700 if test "${ac_cv_path_install+set}" = set; then
3701 echo $ECHO_N "(cached) $ECHO_C" >&6
3702 else
3703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3704 for as_dir in $PATH
3705 do
3706 IFS=$as_save_IFS
3707 test -z "$as_dir" && as_dir=.
3708 # Account for people who put trailing slashes in PATH elements.
3709 case $as_dir/ in
3710 ./ | .// | /cC/* | \
3711 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3712 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3713 /usr/ucb/* ) ;;
3714 *)
3715 # OSF1 and SCO ODT 3.0 have their own names for install.
3716 # Don't use installbsd from OSF since it installs stuff as root
3717 # by default.
3718 for ac_prog in ginstall scoinst install; do
3719 for ac_exec_ext in '' $ac_executable_extensions; do
3720 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3721 if test $ac_prog = install &&
3722 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3723 # AIX install. It has an incompatible calling convention.
3724 :
3725 elif test $ac_prog = install &&
3726 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3727 # program-specific install script used by HP pwplus--don't use.
3728 :
3729 else
3730 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3731 break 3
3732 fi
3733 fi
3734 done
3735 done
3736 ;;
3737 esac
3738 done
3739 IFS=$as_save_IFS
3740
3741
3742 fi
3743 if test "${ac_cv_path_install+set}" = set; then
3744 INSTALL=$ac_cv_path_install
3745 else
3746 # As a last resort, use the slow shell script. Don't cache a
3747 # value for INSTALL within a source directory, because that will
3748 # break other packages using the cache if that directory is
3749 # removed, or if the value is a relative name.
3750 INSTALL=$ac_install_sh
3751 fi
3752 fi
3753 { echo "$as_me:$LINENO: result: $INSTALL" >&5
3754 echo "${ECHO_T}$INSTALL" >&6; }
3755
3756 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3757 # It thinks the first close brace ends the variable substitution.
3758 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3759
3760 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3761
3762 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3763
3764 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
3765 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
3766 LN_S=$as_ln_s
3767 if test "$LN_S" = "ln -s"; then
3768 { echo "$as_me:$LINENO: result: yes" >&5
3769 echo "${ECHO_T}yes" >&6; }
3770 else
3771 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
3772 echo "${ECHO_T}no, using $LN_S" >&6; }
3773 fi
3774
3775 # Check whether --enable-shared was given.
3776 if test "${enable_shared+set}" = set; then
3777 enableval=$enable_shared; p=${PACKAGE-default}
3778 case $enableval in
3779 yes) enable_shared=yes ;;
3780 no) enable_shared=no ;;
3781 *)
3782 enable_shared=no
3783 # Look at the argument we got. We use all the common list separators.
3784 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3785 for pkg in $enableval; do
3786 IFS="$lt_save_ifs"
3787 if test "X$pkg" = "X$p"; then
3788 enable_shared=yes
3789 fi
3790 done
3791 IFS="$lt_save_ifs"
3792 ;;
3793 esac
3794 else
3795 enable_shared=yes
3796 fi
3797
3798
3799 # Check whether --enable-static was given.
3800 if test "${enable_static+set}" = set; then
3801 enableval=$enable_static; p=${PACKAGE-default}
3802 case $enableval in
3803 yes) enable_static=yes ;;
3804 no) enable_static=no ;;
3805 *)
3806 enable_static=no
3807 # Look at the argument we got. We use all the common list separators.
3808 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3809 for pkg in $enableval; do
3810 IFS="$lt_save_ifs"
3811 if test "X$pkg" = "X$p"; then
3812 enable_static=yes
3813 fi
3814 done
3815 IFS="$lt_save_ifs"
3816 ;;
3817 esac
3818 else
3819 enable_static=yes
3820 fi
3821
3822
3823 # Check whether --enable-fast-install was given.
3824 if test "${enable_fast_install+set}" = set; then
3825 enableval=$enable_fast_install; p=${PACKAGE-default}
3826 case $enableval in
3827 yes) enable_fast_install=yes ;;
3828 no) enable_fast_install=no ;;
3829 *)
3830 enable_fast_install=no
3831 # Look at the argument we got. We use all the common list separators.
3832 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3833 for pkg in $enableval; do
3834 IFS="$lt_save_ifs"
3835 if test "X$pkg" = "X$p"; then
3836 enable_fast_install=yes
3837 fi
3838 done
3839 IFS="$lt_save_ifs"
3840 ;;
3841 esac
3842 else
3843 enable_fast_install=yes
3844 fi
3845
3846
3847 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3848 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3849 if test "${lt_cv_path_SED+set}" = set; then
3850 echo $ECHO_N "(cached) $ECHO_C" >&6
3851 else
3852 # Loop through the user's path and test for sed and gsed.
3853 # Then use that list of sed's as ones to test for truncation.
3854 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3855 for as_dir in $PATH
3856 do
3857 IFS=$as_save_IFS
3858 test -z "$as_dir" && as_dir=.
3859 for lt_ac_prog in sed gsed; do
3860 for ac_exec_ext in '' $ac_executable_extensions; do
3861 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3862 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3863 fi
3864 done
3865 done
3866 done
3867 IFS=$as_save_IFS
3868 lt_ac_max=0
3869 lt_ac_count=0
3870 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3871 # along with /bin/sed that truncates output.
3872 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3873 test ! -f $lt_ac_sed && continue
3874 cat /dev/null > conftest.in
3875 lt_ac_count=0
3876 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3877 # Check for GNU sed and select it if it is found.
3878 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3879 lt_cv_path_SED=$lt_ac_sed
3880 break
3881 fi
3882 while true; do
3883 cat conftest.in conftest.in >conftest.tmp
3884 mv conftest.tmp conftest.in
3885 cp conftest.in conftest.nl
3886 echo >>conftest.nl
3887 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3888 cmp -s conftest.out conftest.nl || break
3889 # 10000 chars as input seems more than enough
3890 test $lt_ac_count -gt 10 && break
3891 lt_ac_count=`expr $lt_ac_count + 1`
3892 if test $lt_ac_count -gt $lt_ac_max; then
3893 lt_ac_max=$lt_ac_count
3894 lt_cv_path_SED=$lt_ac_sed
3895 fi
3896 done
3897 done
3898
3899 fi
3900
3901 SED=$lt_cv_path_SED
3902
3903 { echo "$as_me:$LINENO: result: $SED" >&5
3904 echo "${ECHO_T}$SED" >&6; }
3905
3906 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3907 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3908 if test "${ac_cv_path_GREP+set}" = set; then
3909 echo $ECHO_N "(cached) $ECHO_C" >&6
3910 else
3911 # Extract the first word of "grep ggrep" to use in msg output
3912 if test -z "$GREP"; then
3913 set dummy grep ggrep; ac_prog_name=$2
3914 if test "${ac_cv_path_GREP+set}" = set; then
3915 echo $ECHO_N "(cached) $ECHO_C" >&6
3916 else
3917 ac_path_GREP_found=false
3918 # Loop through the user's path and test for each of PROGNAME-LIST
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3921 do
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
3924 for ac_prog in grep ggrep; do
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3927 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3928 # Check for GNU ac_path_GREP and select it if it is found.
3929 # Check for GNU $ac_path_GREP
3930 case `"$ac_path_GREP" --version 2>&1` in
3931 *GNU*)
3932 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3933 *)
3934 ac_count=0
3935 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3936 while :
3937 do
3938 cat "conftest.in" "conftest.in" >"conftest.tmp"
3939 mv "conftest.tmp" "conftest.in"
3940 cp "conftest.in" "conftest.nl"
3941 echo 'GREP' >> "conftest.nl"
3942 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3943 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3944 ac_count=`expr $ac_count + 1`
3945 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3946 # Best one so far, save it but keep looking for a better one
3947 ac_cv_path_GREP="$ac_path_GREP"
3948 ac_path_GREP_max=$ac_count
3949 fi
3950 # 10*(2^10) chars as input seems more than enough
3951 test $ac_count -gt 10 && break
3952 done
3953 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3954 esac
3955
3956
3957 $ac_path_GREP_found && break 3
3958 done
3959 done
3960
3961 done
3962 IFS=$as_save_IFS
3963
3964
3965 fi
3966
3967 GREP="$ac_cv_path_GREP"
3968 if test -z "$GREP"; then
3969 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3970 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3971 { (exit 1); exit 1; }; }
3972 fi
3973
3974 else
3975 ac_cv_path_GREP=$GREP
3976 fi
3977
3978
3979 fi
3980 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3981 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3982 GREP="$ac_cv_path_GREP"
3983
3984
3985 { echo "$as_me:$LINENO: checking for egrep" >&5
3986 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3987 if test "${ac_cv_path_EGREP+set}" = set; then
3988 echo $ECHO_N "(cached) $ECHO_C" >&6
3989 else
3990 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3991 then ac_cv_path_EGREP="$GREP -E"
3992 else
3993 # Extract the first word of "egrep" to use in msg output
3994 if test -z "$EGREP"; then
3995 set dummy egrep; ac_prog_name=$2
3996 if test "${ac_cv_path_EGREP+set}" = set; then
3997 echo $ECHO_N "(cached) $ECHO_C" >&6
3998 else
3999 ac_path_EGREP_found=false
4000 # Loop through the user's path and test for each of PROGNAME-LIST
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4003 do
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 for ac_prog in egrep; do
4007 for ac_exec_ext in '' $ac_executable_extensions; do
4008 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4009 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4010 # Check for GNU ac_path_EGREP and select it if it is found.
4011 # Check for GNU $ac_path_EGREP
4012 case `"$ac_path_EGREP" --version 2>&1` in
4013 *GNU*)
4014 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4015 *)
4016 ac_count=0
4017 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4018 while :
4019 do
4020 cat "conftest.in" "conftest.in" >"conftest.tmp"
4021 mv "conftest.tmp" "conftest.in"
4022 cp "conftest.in" "conftest.nl"
4023 echo 'EGREP' >> "conftest.nl"
4024 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4025 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4026 ac_count=`expr $ac_count + 1`
4027 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4028 # Best one so far, save it but keep looking for a better one
4029 ac_cv_path_EGREP="$ac_path_EGREP"
4030 ac_path_EGREP_max=$ac_count
4031 fi
4032 # 10*(2^10) chars as input seems more than enough
4033 test $ac_count -gt 10 && break
4034 done
4035 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4036 esac
4037
4038
4039 $ac_path_EGREP_found && break 3
4040 done
4041 done
4042
4043 done
4044 IFS=$as_save_IFS
4045
4046
4047 fi
4048
4049 EGREP="$ac_cv_path_EGREP"
4050 if test -z "$EGREP"; then
4051 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4052 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4053 { (exit 1); exit 1; }; }
4054 fi
4055
4056 else
4057 ac_cv_path_EGREP=$EGREP
4058 fi
4059
4060
4061 fi
4062 fi
4063 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4064 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4065 EGREP="$ac_cv_path_EGREP"
4066
4067
4068
4069 # Check whether --with-gnu-ld was given.
4070 if test "${with_gnu_ld+set}" = set; then
4071 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4072 else
4073 with_gnu_ld=no
4074 fi
4075
4076 ac_prog=ld
4077 if test "$GCC" = yes; then
4078 # Check if gcc -print-prog-name=ld gives a path.
4079 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4080 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
4081 case $host in
4082 *-*-mingw*)
4083 # gcc leaves a trailing carriage return which upsets mingw
4084 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4085 *)
4086 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4087 esac
4088 case $ac_prog in
4089 # Accept absolute paths.
4090 [\\/]* | ?:[\\/]*)
4091 re_direlt='/[^/][^/]*/\.\./'
4092 # Canonicalize the pathname of ld
4093 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4094 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4095 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4096 done
4097 test -z "$LD" && LD="$ac_prog"
4098 ;;
4099 "")
4100 # If it fails, then pretend we aren't using GCC.
4101 ac_prog=ld
4102 ;;
4103 *)
4104 # If it is relative, then search for the first ld in PATH.
4105 with_gnu_ld=unknown
4106 ;;
4107 esac
4108 elif test "$with_gnu_ld" = yes; then
4109 { echo "$as_me:$LINENO: checking for GNU ld" >&5
4110 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
4111 else
4112 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4113 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
4114 fi
4115 if test "${lt_cv_path_LD+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118 if test -z "$LD"; then
4119 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4120 for ac_dir in $PATH; do
4121 IFS="$lt_save_ifs"
4122 test -z "$ac_dir" && ac_dir=.
4123 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4124 lt_cv_path_LD="$ac_dir/$ac_prog"
4125 # Check to see if the program is GNU ld. I'd rather use --version,
4126 # but apparently some variants of GNU ld only accept -v.
4127 # Break only if it was the GNU/non-GNU ld that we prefer.
4128 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4129 *GNU* | *'with BFD'*)
4130 test "$with_gnu_ld" != no && break
4131 ;;
4132 *)
4133 test "$with_gnu_ld" != yes && break
4134 ;;
4135 esac
4136 fi
4137 done
4138 IFS="$lt_save_ifs"
4139 else
4140 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4141 fi
4142 fi
4143
4144 LD="$lt_cv_path_LD"
4145 if test -n "$LD"; then
4146 { echo "$as_me:$LINENO: result: $LD" >&5
4147 echo "${ECHO_T}$LD" >&6; }
4148 else
4149 { echo "$as_me:$LINENO: result: no" >&5
4150 echo "${ECHO_T}no" >&6; }
4151 fi
4152 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4153 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4154 { (exit 1); exit 1; }; }
4155 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4156 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
4157 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4158 echo $ECHO_N "(cached) $ECHO_C" >&6
4159 else
4160 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4161 case `$LD -v 2>&1 </dev/null` in
4162 *GNU* | *'with BFD'*)
4163 lt_cv_prog_gnu_ld=yes
4164 ;;
4165 *)
4166 lt_cv_prog_gnu_ld=no
4167 ;;
4168 esac
4169 fi
4170 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4171 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
4172 with_gnu_ld=$lt_cv_prog_gnu_ld
4173
4174
4175 { echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4176 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6; }
4177 if test "${lt_cv_ld_reload_flag+set}" = set; then
4178 echo $ECHO_N "(cached) $ECHO_C" >&6
4179 else
4180 lt_cv_ld_reload_flag='-r'
4181 fi
4182 { echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4183 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6; }
4184 reload_flag=$lt_cv_ld_reload_flag
4185 case $reload_flag in
4186 "" | " "*) ;;
4187 *) reload_flag=" $reload_flag" ;;
4188 esac
4189 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4190 case $host_os in
4191 darwin*)
4192 if test "$GCC" = yes; then
4193 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4194 else
4195 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4196 fi
4197 ;;
4198 esac
4199
4200 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4201 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
4202 if test "${lt_cv_path_NM+set}" = set; then
4203 echo $ECHO_N "(cached) $ECHO_C" >&6
4204 else
4205 if test -n "$NM"; then
4206 # Let the user override the test.
4207 lt_cv_path_NM="$NM"
4208 else
4209 lt_nm_to_check="${ac_tool_prefix}nm"
4210 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4211 lt_nm_to_check="$lt_nm_to_check nm"
4212 fi
4213 for lt_tmp_nm in $lt_nm_to_check; do
4214 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4215 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4216 IFS="$lt_save_ifs"
4217 test -z "$ac_dir" && ac_dir=.
4218 tmp_nm="$ac_dir/$lt_tmp_nm"
4219 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4220 # Check to see if the nm accepts a BSD-compat flag.
4221 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4222 # nm: unknown option "B" ignored
4223 # Tru64's nm complains that /dev/null is an invalid object file
4224 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4225 */dev/null* | *'Invalid file or object type'*)
4226 lt_cv_path_NM="$tmp_nm -B"
4227 break
4228 ;;
4229 *)
4230 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4231 */dev/null*)
4232 lt_cv_path_NM="$tmp_nm -p"
4233 break
4234 ;;
4235 *)
4236 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4237 continue # so that we can try to find one that supports BSD flags
4238 ;;
4239 esac
4240 ;;
4241 esac
4242 fi
4243 done
4244 IFS="$lt_save_ifs"
4245 done
4246 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4247 fi
4248 fi
4249 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4250 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
4251 NM="$lt_cv_path_NM"
4252
4253 { echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4254 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6; }
4255 if test "${lt_cv_deplibs_check_method+set}" = set; then
4256 echo $ECHO_N "(cached) $ECHO_C" >&6
4257 else
4258 lt_cv_file_magic_cmd='$MAGIC_CMD'
4259 lt_cv_file_magic_test_file=
4260 lt_cv_deplibs_check_method='unknown'
4261 # Need to set the preceding variable on all platforms that support
4262 # interlibrary dependencies.
4263 # 'none' -- dependencies not supported.
4264 # `unknown' -- same as none, but documents that we really don't know.
4265 # 'pass_all' -- all dependencies passed with no checks.
4266 # 'test_compile' -- check by making test program.
4267 # 'file_magic [[regex]]' -- check by looking for files in library path
4268 # which responds to the $file_magic_cmd with a given extended regex.
4269 # If you have `file' or equivalent on your system and you're not sure
4270 # whether `pass_all' will *always* work, you probably want this one.
4271
4272 case $host_os in
4273 aix[4-9]*)
4274 lt_cv_deplibs_check_method=pass_all
4275 ;;
4276
4277 beos*)
4278 lt_cv_deplibs_check_method=pass_all
4279 ;;
4280
4281 bsdi[45]*)
4282 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4283 lt_cv_file_magic_cmd='/usr/bin/file -L'
4284 lt_cv_file_magic_test_file=/shlib/libc.so
4285 ;;
4286
4287 cygwin*)
4288 # func_win32_libid is a shell function defined in ltmain.sh
4289 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4290 lt_cv_file_magic_cmd='func_win32_libid'
4291 ;;
4292
4293 mingw* | pw32*)
4294 # Base MSYS/MinGW do not provide the 'file' command needed by
4295 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4296 # unless we find 'file', for example because we are cross-compiling.
4297 if ( file / ) >/dev/null 2>&1; then
4298 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4299 lt_cv_file_magic_cmd='func_win32_libid'
4300 else
4301 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4302 lt_cv_file_magic_cmd='$OBJDUMP -f'
4303 fi
4304 ;;
4305
4306 darwin* | rhapsody*)
4307 lt_cv_deplibs_check_method=pass_all
4308 ;;
4309
4310 freebsd* | dragonfly*)
4311 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4312 case $host_cpu in
4313 i*86 )
4314 # Not sure whether the presence of OpenBSD here was a mistake.
4315 # Let's accept both of them until this is cleared up.
4316 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4317 lt_cv_file_magic_cmd=/usr/bin/file
4318 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4319 ;;
4320 esac
4321 else
4322 lt_cv_deplibs_check_method=pass_all
4323 fi
4324 ;;
4325
4326 gnu*)
4327 lt_cv_deplibs_check_method=pass_all
4328 ;;
4329
4330 hpux10.20* | hpux11*)
4331 lt_cv_file_magic_cmd=/usr/bin/file
4332 case $host_cpu in
4333 ia64*)
4334 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4335 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4336 ;;
4337 hppa*64*)
4338 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]'
4339 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4340 ;;
4341 *)
4342 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4343 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4344 ;;
4345 esac
4346 ;;
4347
4348 interix[3-9]*)
4349 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4350 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4351 ;;
4352
4353 irix5* | irix6* | nonstopux*)
4354 case $LD in
4355 *-32|*"-32 ") libmagic=32-bit;;
4356 *-n32|*"-n32 ") libmagic=N32;;
4357 *-64|*"-64 ") libmagic=64-bit;;
4358 *) libmagic=never-match;;
4359 esac
4360 lt_cv_deplibs_check_method=pass_all
4361 ;;
4362
4363 # This must be Linux ELF.
4364 linux* | k*bsd*-gnu)
4365 lt_cv_deplibs_check_method=pass_all
4366 ;;
4367
4368 netbsd* | netbsdelf*-gnu)
4369 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4370 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4371 else
4372 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4373 fi
4374 ;;
4375
4376 newos6*)
4377 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4378 lt_cv_file_magic_cmd=/usr/bin/file
4379 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4380 ;;
4381
4382 nto-qnx*)
4383 lt_cv_deplibs_check_method=unknown
4384 ;;
4385
4386 openbsd*)
4387 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4388 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4389 else
4390 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4391 fi
4392 ;;
4393
4394 osf3* | osf4* | osf5*)
4395 lt_cv_deplibs_check_method=pass_all
4396 ;;
4397
4398 rdos*)
4399 lt_cv_deplibs_check_method=pass_all
4400 ;;
4401
4402 solaris*)
4403 lt_cv_deplibs_check_method=pass_all
4404 ;;
4405
4406 sysv4 | sysv4.3*)
4407 case $host_vendor in
4408 motorola)
4409 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]'
4410 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4411 ;;
4412 ncr)
4413 lt_cv_deplibs_check_method=pass_all
4414 ;;
4415 sequent)
4416 lt_cv_file_magic_cmd='/bin/file'
4417 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4418 ;;
4419 sni)
4420 lt_cv_file_magic_cmd='/bin/file'
4421 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4422 lt_cv_file_magic_test_file=/lib/libc.so
4423 ;;
4424 siemens)
4425 lt_cv_deplibs_check_method=pass_all
4426 ;;
4427 pc)
4428 lt_cv_deplibs_check_method=pass_all
4429 ;;
4430 esac
4431 ;;
4432
4433 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4434 lt_cv_deplibs_check_method=pass_all
4435 ;;
4436 esac
4437
4438 fi
4439 { echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4440 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6; }
4441 file_magic_cmd=$lt_cv_file_magic_cmd
4442 deplibs_check_method=$lt_cv_deplibs_check_method
4443 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4444
4445
4446
4447
4448 # If no C compiler was specified, use CC.
4449 LTCC=${LTCC-"$CC"}
4450
4451 # If no C compiler flags were specified, use CFLAGS.
4452 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4453
4454 # Allow CC to be a program name with arguments.
4455 compiler=$CC
4456
4457
4458 # Check whether --enable-libtool-lock was given.
4459 if test "${enable_libtool_lock+set}" = set; then
4460 enableval=$enable_libtool_lock;
4461 fi
4462
4463 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4464
4465 # Some flags need to be propagated to the compiler or linker for good
4466 # libtool support.
4467 case $host in
4468 ia64-*-hpux*)
4469 # Find out which ABI we are using.
4470 echo 'int i;' > conftest.$ac_ext
4471 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4472 (eval $ac_compile) 2>&5
4473 ac_status=$?
4474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4475 (exit $ac_status); }; then
4476 case `/usr/bin/file conftest.$ac_objext` in
4477 *ELF-32*)
4478 HPUX_IA64_MODE="32"
4479 ;;
4480 *ELF-64*)
4481 HPUX_IA64_MODE="64"
4482 ;;
4483 esac
4484 fi
4485 rm -rf conftest*
4486 ;;
4487 *-*-irix6*)
4488 # Find out which ABI we are using.
4489 echo '#line 4489 "configure"' > conftest.$ac_ext
4490 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4491 (eval $ac_compile) 2>&5
4492 ac_status=$?
4493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4494 (exit $ac_status); }; then
4495 if test "$lt_cv_prog_gnu_ld" = yes; then
4496 case `/usr/bin/file conftest.$ac_objext` in
4497 *32-bit*)
4498 LD="${LD-ld} -melf32bsmip"
4499 ;;
4500 *N32*)
4501 LD="${LD-ld} -melf32bmipn32"
4502 ;;
4503 *64-bit*)
4504 LD="${LD-ld} -melf64bmip"
4505 ;;
4506 esac
4507 else
4508 case `/usr/bin/file conftest.$ac_objext` in
4509 *32-bit*)
4510 LD="${LD-ld} -32"
4511 ;;
4512 *N32*)
4513 LD="${LD-ld} -n32"
4514 ;;
4515 *64-bit*)
4516 LD="${LD-ld} -64"
4517 ;;
4518 esac
4519 fi
4520 fi
4521 rm -rf conftest*
4522 ;;
4523
4524 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4525 s390*-*linux*|sparc*-*linux*)
4526 # Find out which ABI we are using.
4527 echo 'int i;' > conftest.$ac_ext
4528 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4529 (eval $ac_compile) 2>&5
4530 ac_status=$?
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); }; then
4533 case `/usr/bin/file conftest.o` in
4534 *32-bit*)
4535 case $host in
4536 x86_64-*kfreebsd*-gnu)
4537 LD="${LD-ld} -m elf_i386_fbsd"
4538 ;;
4539 x86_64-*linux*)
4540 LD="${LD-ld} -m elf_i386"
4541 ;;
4542 ppc64-*linux*|powerpc64-*linux*)
4543 LD="${LD-ld} -m elf32ppclinux"
4544 ;;
4545 s390x-*linux*)
4546 LD="${LD-ld} -m elf_s390"
4547 ;;
4548 sparc64-*linux*)
4549 LD="${LD-ld} -m elf32_sparc"
4550 ;;
4551 esac
4552 ;;
4553 *64-bit*)
4554 case $host in
4555 x86_64-*kfreebsd*-gnu)
4556 LD="${LD-ld} -m elf_x86_64_fbsd"
4557 ;;
4558 x86_64-*linux*)
4559 LD="${LD-ld} -m elf_x86_64"
4560 ;;
4561 ppc*-*linux*|powerpc*-*linux*)
4562 LD="${LD-ld} -m elf64ppc"
4563 ;;
4564 s390*-*linux*)
4565 LD="${LD-ld} -m elf64_s390"
4566 ;;
4567 sparc*-*linux*)
4568 LD="${LD-ld} -m elf64_sparc"
4569 ;;
4570 esac
4571 ;;
4572 esac
4573 fi
4574 rm -rf conftest*
4575 ;;
4576
4577 *-*-sco3.2v5*)
4578 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4579 SAVE_CFLAGS="$CFLAGS"
4580 CFLAGS="$CFLAGS -belf"
4581 { echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4582 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6; }
4583 if test "${lt_cv_cc_needs_belf+set}" = set; then
4584 echo $ECHO_N "(cached) $ECHO_C" >&6
4585 else
4586 ac_ext=c
4587 ac_cpp='$CPP $CPPFLAGS'
4588 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4589 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4590 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4591
4592 cat >conftest.$ac_ext <<_ACEOF
4593 /* confdefs.h. */
4594 _ACEOF
4595 cat confdefs.h >>conftest.$ac_ext
4596 cat >>conftest.$ac_ext <<_ACEOF
4597 /* end confdefs.h. */
4598
4599 int
4600 main ()
4601 {
4602
4603 ;
4604 return 0;
4605 }
4606 _ACEOF
4607 rm -f conftest.$ac_objext conftest$ac_exeext
4608 if { (ac_try="$ac_link"
4609 case "(($ac_try" in
4610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4611 *) ac_try_echo=$ac_try;;
4612 esac
4613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4614 (eval "$ac_link") 2>conftest.er1
4615 ac_status=$?
4616 grep -v '^ *+' conftest.er1 >conftest.err
4617 rm -f conftest.er1
4618 cat conftest.err >&5
4619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4620 (exit $ac_status); } && {
4621 test -z "$ac_c_werror_flag" ||
4622 test ! -s conftest.err
4623 } && test -s conftest$ac_exeext &&
4624 $as_test_x conftest$ac_exeext; then
4625 lt_cv_cc_needs_belf=yes
4626 else
4627 echo "$as_me: failed program was:" >&5
4628 sed 's/^/| /' conftest.$ac_ext >&5
4629
4630 lt_cv_cc_needs_belf=no
4631 fi
4632
4633 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4634 conftest$ac_exeext conftest.$ac_ext
4635 ac_ext=c
4636 ac_cpp='$CPP $CPPFLAGS'
4637 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4638 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4639 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4640
4641 fi
4642 { echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4643 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6; }
4644 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4645 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4646 CFLAGS="$SAVE_CFLAGS"
4647 fi
4648 ;;
4649 sparc*-*solaris*)
4650 # Find out which ABI we are using.
4651 echo 'int i;' > conftest.$ac_ext
4652 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4653 (eval $ac_compile) 2>&5
4654 ac_status=$?
4655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4656 (exit $ac_status); }; then
4657 case `/usr/bin/file conftest.o` in
4658 *64-bit*)
4659 case $lt_cv_prog_gnu_ld in
4660 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4661 *)
4662 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4663 LD="${LD-ld} -64"
4664 fi
4665 ;;
4666 esac
4667 ;;
4668 esac
4669 fi
4670 rm -rf conftest*
4671 ;;
4672
4673
4674 esac
4675
4676 need_locks="$enable_libtool_lock"
4677
4678
4679 ac_ext=c
4680 ac_cpp='$CPP $CPPFLAGS'
4681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4684 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4685 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4686 # On Suns, sometimes $CPP names a directory.
4687 if test -n "$CPP" && test -d "$CPP"; then
4688 CPP=
4689 fi
4690 if test -z "$CPP"; then
4691 if test "${ac_cv_prog_CPP+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694 # Double quotes because CPP needs to be expanded
4695 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4696 do
4697 ac_preproc_ok=false
4698 for ac_c_preproc_warn_flag in '' yes
4699 do
4700 # Use a header file that comes with gcc, so configuring glibc
4701 # with a fresh cross-compiler works.
4702 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4703 # <limits.h> exists even on freestanding compilers.
4704 # On the NeXT, cc -E runs the code through the compiler's parser,
4705 # not just through cpp. "Syntax error" is here to catch this case.
4706 cat >conftest.$ac_ext <<_ACEOF
4707 /* confdefs.h. */
4708 _ACEOF
4709 cat confdefs.h >>conftest.$ac_ext
4710 cat >>conftest.$ac_ext <<_ACEOF
4711 /* end confdefs.h. */
4712 #ifdef __STDC__
4713 # include <limits.h>
4714 #else
4715 # include <assert.h>
4716 #endif
4717 Syntax error
4718 _ACEOF
4719 if { (ac_try="$ac_cpp conftest.$ac_ext"
4720 case "(($ac_try" in
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4723 esac
4724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4726 ac_status=$?
4727 grep -v '^ *+' conftest.er1 >conftest.err
4728 rm -f conftest.er1
4729 cat conftest.err >&5
4730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4731 (exit $ac_status); } >/dev/null && {
4732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4733 test ! -s conftest.err
4734 }; then
4735 :
4736 else
4737 echo "$as_me: failed program was:" >&5
4738 sed 's/^/| /' conftest.$ac_ext >&5
4739
4740 # Broken: fails on valid input.
4741 continue
4742 fi
4743
4744 rm -f conftest.err conftest.$ac_ext
4745
4746 # OK, works on sane cases. Now check whether nonexistent headers
4747 # can be detected and how.
4748 cat >conftest.$ac_ext <<_ACEOF
4749 /* confdefs.h. */
4750 _ACEOF
4751 cat confdefs.h >>conftest.$ac_ext
4752 cat >>conftest.$ac_ext <<_ACEOF
4753 /* end confdefs.h. */
4754 #include <ac_nonexistent.h>
4755 _ACEOF
4756 if { (ac_try="$ac_cpp conftest.$ac_ext"
4757 case "(($ac_try" in
4758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4759 *) ac_try_echo=$ac_try;;
4760 esac
4761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4762 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4763 ac_status=$?
4764 grep -v '^ *+' conftest.er1 >conftest.err
4765 rm -f conftest.er1
4766 cat conftest.err >&5
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); } >/dev/null && {
4769 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4770 test ! -s conftest.err
4771 }; then
4772 # Broken: success on invalid input.
4773 continue
4774 else
4775 echo "$as_me: failed program was:" >&5
4776 sed 's/^/| /' conftest.$ac_ext >&5
4777
4778 # Passes both tests.
4779 ac_preproc_ok=:
4780 break
4781 fi
4782
4783 rm -f conftest.err conftest.$ac_ext
4784
4785 done
4786 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4787 rm -f conftest.err conftest.$ac_ext
4788 if $ac_preproc_ok; then
4789 break
4790 fi
4791
4792 done
4793 ac_cv_prog_CPP=$CPP
4794
4795 fi
4796 CPP=$ac_cv_prog_CPP
4797 else
4798 ac_cv_prog_CPP=$CPP
4799 fi
4800 { echo "$as_me:$LINENO: result: $CPP" >&5
4801 echo "${ECHO_T}$CPP" >&6; }
4802 ac_preproc_ok=false
4803 for ac_c_preproc_warn_flag in '' yes
4804 do
4805 # Use a header file that comes with gcc, so configuring glibc
4806 # with a fresh cross-compiler works.
4807 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4808 # <limits.h> exists even on freestanding compilers.
4809 # On the NeXT, cc -E runs the code through the compiler's parser,
4810 # not just through cpp. "Syntax error" is here to catch this case.
4811 cat >conftest.$ac_ext <<_ACEOF
4812 /* confdefs.h. */
4813 _ACEOF
4814 cat confdefs.h >>conftest.$ac_ext
4815 cat >>conftest.$ac_ext <<_ACEOF
4816 /* end confdefs.h. */
4817 #ifdef __STDC__
4818 # include <limits.h>
4819 #else
4820 # include <assert.h>
4821 #endif
4822 Syntax error
4823 _ACEOF
4824 if { (ac_try="$ac_cpp conftest.$ac_ext"
4825 case "(($ac_try" in
4826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4827 *) ac_try_echo=$ac_try;;
4828 esac
4829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4831 ac_status=$?
4832 grep -v '^ *+' conftest.er1 >conftest.err
4833 rm -f conftest.er1
4834 cat conftest.err >&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); } >/dev/null && {
4837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4838 test ! -s conftest.err
4839 }; then
4840 :
4841 else
4842 echo "$as_me: failed program was:" >&5
4843 sed 's/^/| /' conftest.$ac_ext >&5
4844
4845 # Broken: fails on valid input.
4846 continue
4847 fi
4848
4849 rm -f conftest.err conftest.$ac_ext
4850
4851 # OK, works on sane cases. Now check whether nonexistent headers
4852 # can be detected and how.
4853 cat >conftest.$ac_ext <<_ACEOF
4854 /* confdefs.h. */
4855 _ACEOF
4856 cat confdefs.h >>conftest.$ac_ext
4857 cat >>conftest.$ac_ext <<_ACEOF
4858 /* end confdefs.h. */
4859 #include <ac_nonexistent.h>
4860 _ACEOF
4861 if { (ac_try="$ac_cpp conftest.$ac_ext"
4862 case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865 esac
4866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4868 ac_status=$?
4869 grep -v '^ *+' conftest.er1 >conftest.err
4870 rm -f conftest.er1
4871 cat conftest.err >&5
4872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4873 (exit $ac_status); } >/dev/null && {
4874 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4875 test ! -s conftest.err
4876 }; then
4877 # Broken: success on invalid input.
4878 continue
4879 else
4880 echo "$as_me: failed program was:" >&5
4881 sed 's/^/| /' conftest.$ac_ext >&5
4882
4883 # Passes both tests.
4884 ac_preproc_ok=:
4885 break
4886 fi
4887
4888 rm -f conftest.err conftest.$ac_ext
4889
4890 done
4891 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4892 rm -f conftest.err conftest.$ac_ext
4893 if $ac_preproc_ok; then
4894 :
4895 else
4896 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4897 See \`config.log' for more details." >&5
4898 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4899 See \`config.log' for more details." >&2;}
4900 { (exit 1); exit 1; }; }
4901 fi
4902
4903 ac_ext=c
4904 ac_cpp='$CPP $CPPFLAGS'
4905 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4906 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4907 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4908
4909
4910 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4911 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4912 if test "${ac_cv_header_stdc+set}" = set; then
4913 echo $ECHO_N "(cached) $ECHO_C" >&6
4914 else
4915 cat >conftest.$ac_ext <<_ACEOF
4916 /* confdefs.h. */
4917 _ACEOF
4918 cat confdefs.h >>conftest.$ac_ext
4919 cat >>conftest.$ac_ext <<_ACEOF
4920 /* end confdefs.h. */
4921 #include <stdlib.h>
4922 #include <stdarg.h>
4923 #include <string.h>
4924 #include <float.h>
4925
4926 int
4927 main ()
4928 {
4929
4930 ;
4931 return 0;
4932 }
4933 _ACEOF
4934 rm -f conftest.$ac_objext
4935 if { (ac_try="$ac_compile"
4936 case "(($ac_try" in
4937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4938 *) ac_try_echo=$ac_try;;
4939 esac
4940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4941 (eval "$ac_compile") 2>conftest.er1
4942 ac_status=$?
4943 grep -v '^ *+' conftest.er1 >conftest.err
4944 rm -f conftest.er1
4945 cat conftest.err >&5
4946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4947 (exit $ac_status); } && {
4948 test -z "$ac_c_werror_flag" ||
4949 test ! -s conftest.err
4950 } && test -s conftest.$ac_objext; then
4951 ac_cv_header_stdc=yes
4952 else
4953 echo "$as_me: failed program was:" >&5
4954 sed 's/^/| /' conftest.$ac_ext >&5
4955
4956 ac_cv_header_stdc=no
4957 fi
4958
4959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4960
4961 if test $ac_cv_header_stdc = yes; then
4962 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4963 cat >conftest.$ac_ext <<_ACEOF
4964 /* confdefs.h. */
4965 _ACEOF
4966 cat confdefs.h >>conftest.$ac_ext
4967 cat >>conftest.$ac_ext <<_ACEOF
4968 /* end confdefs.h. */
4969 #include <string.h>
4970
4971 _ACEOF
4972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4973 $EGREP "memchr" >/dev/null 2>&1; then
4974 :
4975 else
4976 ac_cv_header_stdc=no
4977 fi
4978 rm -f conftest*
4979
4980 fi
4981
4982 if test $ac_cv_header_stdc = yes; then
4983 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4984 cat >conftest.$ac_ext <<_ACEOF
4985 /* confdefs.h. */
4986 _ACEOF
4987 cat confdefs.h >>conftest.$ac_ext
4988 cat >>conftest.$ac_ext <<_ACEOF
4989 /* end confdefs.h. */
4990 #include <stdlib.h>
4991
4992 _ACEOF
4993 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4994 $EGREP "free" >/dev/null 2>&1; then
4995 :
4996 else
4997 ac_cv_header_stdc=no
4998 fi
4999 rm -f conftest*
5000
5001 fi
5002
5003 if test $ac_cv_header_stdc = yes; then
5004 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5005 if test "$cross_compiling" = yes; then
5006 :
5007 else
5008 cat >conftest.$ac_ext <<_ACEOF
5009 /* confdefs.h. */
5010 _ACEOF
5011 cat confdefs.h >>conftest.$ac_ext
5012 cat >>conftest.$ac_ext <<_ACEOF
5013 /* end confdefs.h. */
5014 #include <ctype.h>
5015 #include <stdlib.h>
5016 #if ((' ' & 0x0FF) == 0x020)
5017 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5018 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5019 #else
5020 # define ISLOWER(c) \
5021 (('a' <= (c) && (c) <= 'i') \
5022 || ('j' <= (c) && (c) <= 'r') \
5023 || ('s' <= (c) && (c) <= 'z'))
5024 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5025 #endif
5026
5027 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5028 int
5029 main ()
5030 {
5031 int i;
5032 for (i = 0; i < 256; i++)
5033 if (XOR (islower (i), ISLOWER (i))
5034 || toupper (i) != TOUPPER (i))
5035 return 2;
5036 return 0;
5037 }
5038 _ACEOF
5039 rm -f conftest$ac_exeext
5040 if { (ac_try="$ac_link"
5041 case "(($ac_try" in
5042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5043 *) ac_try_echo=$ac_try;;
5044 esac
5045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5046 (eval "$ac_link") 2>&5
5047 ac_status=$?
5048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5050 { (case "(($ac_try" in
5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5052 *) ac_try_echo=$ac_try;;
5053 esac
5054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5055 (eval "$ac_try") 2>&5
5056 ac_status=$?
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); }; }; then
5059 :
5060 else
5061 echo "$as_me: program exited with status $ac_status" >&5
5062 echo "$as_me: failed program was:" >&5
5063 sed 's/^/| /' conftest.$ac_ext >&5
5064
5065 ( exit $ac_status )
5066 ac_cv_header_stdc=no
5067 fi
5068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5069 fi
5070
5071
5072 fi
5073 fi
5074 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5075 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5076 if test $ac_cv_header_stdc = yes; then
5077
5078 cat >>confdefs.h <<\_ACEOF
5079 #define STDC_HEADERS 1
5080 _ACEOF
5081
5082 fi
5083
5084 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5085
5086
5087
5088
5089
5090
5091
5092
5093
5094 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5095 inttypes.h stdint.h unistd.h
5096 do
5097 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5098 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5099 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5100 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5101 echo $ECHO_N "(cached) $ECHO_C" >&6
5102 else
5103 cat >conftest.$ac_ext <<_ACEOF
5104 /* confdefs.h. */
5105 _ACEOF
5106 cat confdefs.h >>conftest.$ac_ext
5107 cat >>conftest.$ac_ext <<_ACEOF
5108 /* end confdefs.h. */
5109 $ac_includes_default
5110
5111 #include <$ac_header>
5112 _ACEOF
5113 rm -f conftest.$ac_objext
5114 if { (ac_try="$ac_compile"
5115 case "(($ac_try" in
5116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117 *) ac_try_echo=$ac_try;;
5118 esac
5119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5120 (eval "$ac_compile") 2>conftest.er1
5121 ac_status=$?
5122 grep -v '^ *+' conftest.er1 >conftest.err
5123 rm -f conftest.er1
5124 cat conftest.err >&5
5125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5126 (exit $ac_status); } && {
5127 test -z "$ac_c_werror_flag" ||
5128 test ! -s conftest.err
5129 } && test -s conftest.$ac_objext; then
5130 eval "$as_ac_Header=yes"
5131 else
5132 echo "$as_me: failed program was:" >&5
5133 sed 's/^/| /' conftest.$ac_ext >&5
5134
5135 eval "$as_ac_Header=no"
5136 fi
5137
5138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5139 fi
5140 ac_res=`eval echo '${'$as_ac_Header'}'`
5141 { echo "$as_me:$LINENO: result: $ac_res" >&5
5142 echo "${ECHO_T}$ac_res" >&6; }
5143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5144 cat >>confdefs.h <<_ACEOF
5145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5146 _ACEOF
5147
5148 fi
5149
5150 done
5151
5152
5153
5154 for ac_header in dlfcn.h
5155 do
5156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5158 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5161 echo $ECHO_N "(cached) $ECHO_C" >&6
5162 fi
5163 ac_res=`eval echo '${'$as_ac_Header'}'`
5164 { echo "$as_me:$LINENO: result: $ac_res" >&5
5165 echo "${ECHO_T}$ac_res" >&6; }
5166 else
5167 # Is the header compilable?
5168 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5170 cat >conftest.$ac_ext <<_ACEOF
5171 /* confdefs.h. */
5172 _ACEOF
5173 cat confdefs.h >>conftest.$ac_ext
5174 cat >>conftest.$ac_ext <<_ACEOF
5175 /* end confdefs.h. */
5176 $ac_includes_default
5177 #include <$ac_header>
5178 _ACEOF
5179 rm -f conftest.$ac_objext
5180 if { (ac_try="$ac_compile"
5181 case "(($ac_try" in
5182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5183 *) ac_try_echo=$ac_try;;
5184 esac
5185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5186 (eval "$ac_compile") 2>conftest.er1
5187 ac_status=$?
5188 grep -v '^ *+' conftest.er1 >conftest.err
5189 rm -f conftest.er1
5190 cat conftest.err >&5
5191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5192 (exit $ac_status); } && {
5193 test -z "$ac_c_werror_flag" ||
5194 test ! -s conftest.err
5195 } && test -s conftest.$ac_objext; then
5196 ac_header_compiler=yes
5197 else
5198 echo "$as_me: failed program was:" >&5
5199 sed 's/^/| /' conftest.$ac_ext >&5
5200
5201 ac_header_compiler=no
5202 fi
5203
5204 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5206 echo "${ECHO_T}$ac_header_compiler" >&6; }
5207
5208 # Is the header present?
5209 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5210 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5211 cat >conftest.$ac_ext <<_ACEOF
5212 /* confdefs.h. */
5213 _ACEOF
5214 cat confdefs.h >>conftest.$ac_ext
5215 cat >>conftest.$ac_ext <<_ACEOF
5216 /* end confdefs.h. */
5217 #include <$ac_header>
5218 _ACEOF
5219 if { (ac_try="$ac_cpp conftest.$ac_ext"
5220 case "(($ac_try" in
5221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5222 *) ac_try_echo=$ac_try;;
5223 esac
5224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5225 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5226 ac_status=$?
5227 grep -v '^ *+' conftest.er1 >conftest.err
5228 rm -f conftest.er1
5229 cat conftest.err >&5
5230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5231 (exit $ac_status); } >/dev/null && {
5232 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5233 test ! -s conftest.err
5234 }; then
5235 ac_header_preproc=yes
5236 else
5237 echo "$as_me: failed program was:" >&5
5238 sed 's/^/| /' conftest.$ac_ext >&5
5239
5240 ac_header_preproc=no
5241 fi
5242
5243 rm -f conftest.err conftest.$ac_ext
5244 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5245 echo "${ECHO_T}$ac_header_preproc" >&6; }
5246
5247 # So? What about this header?
5248 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5249 yes:no: )
5250 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5251 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5252 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5253 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5254 ac_header_preproc=yes
5255 ;;
5256 no:yes:* )
5257 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5258 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5259 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5260 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5261 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5262 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5263 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5264 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5265 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5266 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5267 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5268 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5269
5270 ;;
5271 esac
5272 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5273 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5274 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5275 echo $ECHO_N "(cached) $ECHO_C" >&6
5276 else
5277 eval "$as_ac_Header=\$ac_header_preproc"
5278 fi
5279 ac_res=`eval echo '${'$as_ac_Header'}'`
5280 { echo "$as_me:$LINENO: result: $ac_res" >&5
5281 echo "${ECHO_T}$ac_res" >&6; }
5282
5283 fi
5284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5285 cat >>confdefs.h <<_ACEOF
5286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5287 _ACEOF
5288
5289 fi
5290
5291 done
5292
5293 ac_ext=cpp
5294 ac_cpp='$CXXCPP $CPPFLAGS'
5295 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5296 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5297 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5298 if test -z "$CXX"; then
5299 if test -n "$CCC"; then
5300 CXX=$CCC
5301 else
5302 if test -n "$ac_tool_prefix"; then
5303 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5304 do
5305 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5306 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5309 if test "${ac_cv_prog_CXX+set}" = set; then
5310 echo $ECHO_N "(cached) $ECHO_C" >&6
5311 else
5312 if test -n "$CXX"; then
5313 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5314 else
5315 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5316 for as_dir in $PATH
5317 do
5318 IFS=$as_save_IFS
5319 test -z "$as_dir" && as_dir=.
5320 for ac_exec_ext in '' $ac_executable_extensions; do
5321 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5322 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5323 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5324 break 2
5325 fi
5326 done
5327 done
5328 IFS=$as_save_IFS
5329
5330 fi
5331 fi
5332 CXX=$ac_cv_prog_CXX
5333 if test -n "$CXX"; then
5334 { echo "$as_me:$LINENO: result: $CXX" >&5
5335 echo "${ECHO_T}$CXX" >&6; }
5336 else
5337 { echo "$as_me:$LINENO: result: no" >&5
5338 echo "${ECHO_T}no" >&6; }
5339 fi
5340
5341
5342 test -n "$CXX" && break
5343 done
5344 fi
5345 if test -z "$CXX"; then
5346 ac_ct_CXX=$CXX
5347 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5348 do
5349 # Extract the first word of "$ac_prog", so it can be a program name with args.
5350 set dummy $ac_prog; ac_word=$2
5351 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5352 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5353 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5354 echo $ECHO_N "(cached) $ECHO_C" >&6
5355 else
5356 if test -n "$ac_ct_CXX"; then
5357 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5358 else
5359 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5360 for as_dir in $PATH
5361 do
5362 IFS=$as_save_IFS
5363 test -z "$as_dir" && as_dir=.
5364 for ac_exec_ext in '' $ac_executable_extensions; do
5365 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5366 ac_cv_prog_ac_ct_CXX="$ac_prog"
5367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5368 break 2
5369 fi
5370 done
5371 done
5372 IFS=$as_save_IFS
5373
5374 fi
5375 fi
5376 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5377 if test -n "$ac_ct_CXX"; then
5378 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5379 echo "${ECHO_T}$ac_ct_CXX" >&6; }
5380 else
5381 { echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6; }
5383 fi
5384
5385
5386 test -n "$ac_ct_CXX" && break
5387 done
5388
5389 if test "x$ac_ct_CXX" = x; then
5390 CXX="g++"
5391 else
5392 case $cross_compiling:$ac_tool_warned in
5393 yes:)
5394 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5395 whose name does not start with the host triplet. If you think this
5396 configuration is useful to you, please write to [email protected]." >&5
5397 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5398 whose name does not start with the host triplet. If you think this
5399 configuration is useful to you, please write to [email protected]." >&2;}
5400 ac_tool_warned=yes ;;
5401 esac
5402 CXX=$ac_ct_CXX
5403 fi
5404 fi
5405
5406 fi
5407 fi
5408 # Provide some information about the compiler.
5409 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5410 ac_compiler=`set X $ac_compile; echo $2`
5411 { (ac_try="$ac_compiler --version >&5"
5412 case "(($ac_try" in
5413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5414 *) ac_try_echo=$ac_try;;
5415 esac
5416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5417 (eval "$ac_compiler --version >&5") 2>&5
5418 ac_status=$?
5419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5420 (exit $ac_status); }
5421 { (ac_try="$ac_compiler -v >&5"
5422 case "(($ac_try" in
5423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5424 *) ac_try_echo=$ac_try;;
5425 esac
5426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5427 (eval "$ac_compiler -v >&5") 2>&5
5428 ac_status=$?
5429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5430 (exit $ac_status); }
5431 { (ac_try="$ac_compiler -V >&5"
5432 case "(($ac_try" in
5433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5434 *) ac_try_echo=$ac_try;;
5435 esac
5436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5437 (eval "$ac_compiler -V >&5") 2>&5
5438 ac_status=$?
5439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5440 (exit $ac_status); }
5441
5442 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5443 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
5444 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5445 echo $ECHO_N "(cached) $ECHO_C" >&6
5446 else
5447 cat >conftest.$ac_ext <<_ACEOF
5448 /* confdefs.h. */
5449 _ACEOF
5450 cat confdefs.h >>conftest.$ac_ext
5451 cat >>conftest.$ac_ext <<_ACEOF
5452 /* end confdefs.h. */
5453
5454 int
5455 main ()
5456 {
5457 #ifndef __GNUC__
5458 choke me
5459 #endif
5460
5461 ;
5462 return 0;
5463 }
5464 _ACEOF
5465 rm -f conftest.$ac_objext
5466 if { (ac_try="$ac_compile"
5467 case "(($ac_try" in
5468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5469 *) ac_try_echo=$ac_try;;
5470 esac
5471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5472 (eval "$ac_compile") 2>conftest.er1
5473 ac_status=$?
5474 grep -v '^ *+' conftest.er1 >conftest.err
5475 rm -f conftest.er1
5476 cat conftest.err >&5
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); } && {
5479 test -z "$ac_cxx_werror_flag" ||
5480 test ! -s conftest.err
5481 } && test -s conftest.$ac_objext; then
5482 ac_compiler_gnu=yes
5483 else
5484 echo "$as_me: failed program was:" >&5
5485 sed 's/^/| /' conftest.$ac_ext >&5
5486
5487 ac_compiler_gnu=no
5488 fi
5489
5490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5491 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5492
5493 fi
5494 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5495 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
5496 GXX=`test $ac_compiler_gnu = yes && echo yes`
5497 ac_test_CXXFLAGS=${CXXFLAGS+set}
5498 ac_save_CXXFLAGS=$CXXFLAGS
5499 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5500 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
5501 if test "${ac_cv_prog_cxx_g+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5505 ac_cxx_werror_flag=yes
5506 ac_cv_prog_cxx_g=no
5507 CXXFLAGS="-g"
5508 cat >conftest.$ac_ext <<_ACEOF
5509 /* confdefs.h. */
5510 _ACEOF
5511 cat confdefs.h >>conftest.$ac_ext
5512 cat >>conftest.$ac_ext <<_ACEOF
5513 /* end confdefs.h. */
5514
5515 int
5516 main ()
5517 {
5518
5519 ;
5520 return 0;
5521 }
5522 _ACEOF
5523 rm -f conftest.$ac_objext
5524 if { (ac_try="$ac_compile"
5525 case "(($ac_try" in
5526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5527 *) ac_try_echo=$ac_try;;
5528 esac
5529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5530 (eval "$ac_compile") 2>conftest.er1
5531 ac_status=$?
5532 grep -v '^ *+' conftest.er1 >conftest.err
5533 rm -f conftest.er1
5534 cat conftest.err >&5
5535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5536 (exit $ac_status); } && {
5537 test -z "$ac_cxx_werror_flag" ||
5538 test ! -s conftest.err
5539 } && test -s conftest.$ac_objext; then
5540 ac_cv_prog_cxx_g=yes
5541 else
5542 echo "$as_me: failed program was:" >&5
5543 sed 's/^/| /' conftest.$ac_ext >&5
5544
5545 CXXFLAGS=""
5546 cat >conftest.$ac_ext <<_ACEOF
5547 /* confdefs.h. */
5548 _ACEOF
5549 cat confdefs.h >>conftest.$ac_ext
5550 cat >>conftest.$ac_ext <<_ACEOF
5551 /* end confdefs.h. */
5552
5553 int
5554 main ()
5555 {
5556
5557 ;
5558 return 0;
5559 }
5560 _ACEOF
5561 rm -f conftest.$ac_objext
5562 if { (ac_try="$ac_compile"
5563 case "(($ac_try" in
5564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5565 *) ac_try_echo=$ac_try;;
5566 esac
5567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5568 (eval "$ac_compile") 2>conftest.er1
5569 ac_status=$?
5570 grep -v '^ *+' conftest.er1 >conftest.err
5571 rm -f conftest.er1
5572 cat conftest.err >&5
5573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5574 (exit $ac_status); } && {
5575 test -z "$ac_cxx_werror_flag" ||
5576 test ! -s conftest.err
5577 } && test -s conftest.$ac_objext; then
5578 :
5579 else
5580 echo "$as_me: failed program was:" >&5
5581 sed 's/^/| /' conftest.$ac_ext >&5
5582
5583 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5584 CXXFLAGS="-g"
5585 cat >conftest.$ac_ext <<_ACEOF
5586 /* confdefs.h. */
5587 _ACEOF
5588 cat confdefs.h >>conftest.$ac_ext
5589 cat >>conftest.$ac_ext <<_ACEOF
5590 /* end confdefs.h. */
5591
5592 int
5593 main ()
5594 {
5595
5596 ;
5597 return 0;
5598 }
5599 _ACEOF
5600 rm -f conftest.$ac_objext
5601 if { (ac_try="$ac_compile"
5602 case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605 esac
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_compile") 2>conftest.er1
5608 ac_status=$?
5609 grep -v '^ *+' conftest.er1 >conftest.err
5610 rm -f conftest.er1
5611 cat conftest.err >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } && {
5614 test -z "$ac_cxx_werror_flag" ||
5615 test ! -s conftest.err
5616 } && test -s conftest.$ac_objext; then
5617 ac_cv_prog_cxx_g=yes
5618 else
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5621
5622
5623 fi
5624
5625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5626 fi
5627
5628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5629 fi
5630
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5633 fi
5634 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5635 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
5636 if test "$ac_test_CXXFLAGS" = set; then
5637 CXXFLAGS=$ac_save_CXXFLAGS
5638 elif test $ac_cv_prog_cxx_g = yes; then
5639 if test "$GXX" = yes; then
5640 CXXFLAGS="-g -O2"
5641 else
5642 CXXFLAGS="-g"
5643 fi
5644 else
5645 if test "$GXX" = yes; then
5646 CXXFLAGS="-O2"
5647 else
5648 CXXFLAGS=
5649 fi
5650 fi
5651 ac_ext=cpp
5652 ac_cpp='$CXXCPP $CPPFLAGS'
5653 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5654 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5655 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5656
5657 depcc="$CXX" am_compiler_list=
5658
5659 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5660 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
5661 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5662 echo $ECHO_N "(cached) $ECHO_C" >&6
5663 else
5664 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5665 # We make a subdir and do the tests there. Otherwise we can end up
5666 # making bogus files that we don't know about and never remove. For
5667 # instance it was reported that on HP-UX the gcc test will end up
5668 # making a dummy file named `D' -- because `-MD' means `put the output
5669 # in D'.
5670 mkdir conftest.dir
5671 # Copy depcomp to subdir because otherwise we won't find it if we're
5672 # using a relative directory.
5673 cp "$am_depcomp" conftest.dir
5674 cd conftest.dir
5675 # We will build objects and dependencies in a subdirectory because
5676 # it helps to detect inapplicable dependency modes. For instance
5677 # both Tru64's cc and ICC support -MD to output dependencies as a
5678 # side effect of compilation, but ICC will put the dependencies in
5679 # the current directory while Tru64 will put them in the object
5680 # directory.
5681 mkdir sub
5682
5683 am_cv_CXX_dependencies_compiler_type=none
5684 if test "$am_compiler_list" = ""; then
5685 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5686 fi
5687 for depmode in $am_compiler_list; do
5688 # Setup a source with many dependencies, because some compilers
5689 # like to wrap large dependency lists on column 80 (with \), and
5690 # we should not choose a depcomp mode which is confused by this.
5691 #
5692 # We need to recreate these files for each test, as the compiler may
5693 # overwrite some of them when testing with obscure command lines.
5694 # This happens at least with the AIX C compiler.
5695 : > sub/conftest.c
5696 for i in 1 2 3 4 5 6; do
5697 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5698 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5699 # Solaris 8's {/usr,}/bin/sh.
5700 touch sub/conftst$i.h
5701 done
5702 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5703
5704 case $depmode in
5705 nosideeffect)
5706 # after this tag, mechanisms are not by side-effect, so they'll
5707 # only be used when explicitly requested
5708 if test "x$enable_dependency_tracking" = xyes; then
5709 continue
5710 else
5711 break
5712 fi
5713 ;;
5714 none) break ;;
5715 esac
5716 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5717 # mode. It turns out that the SunPro C++ compiler does not properly
5718 # handle `-M -o', and we need to detect this.
5719 if depmode=$depmode \
5720 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5721 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5722 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5723 >/dev/null 2>conftest.err &&
5724 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5725 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5726 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5727 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5728 # icc doesn't choke on unknown options, it will just issue warnings
5729 # or remarks (even with -Werror). So we grep stderr for any message
5730 # that says an option was ignored or not supported.
5731 # When given -MP, icc 7.0 and 7.1 complain thusly:
5732 # icc: Command line warning: ignoring option '-M'; no argument required
5733 # The diagnosis changed in icc 8.0:
5734 # icc: Command line remark: option '-MP' not supported
5735 if (grep 'ignoring option' conftest.err ||
5736 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5737 am_cv_CXX_dependencies_compiler_type=$depmode
5738 break
5739 fi
5740 fi
5741 done
5742
5743 cd ..
5744 rm -rf conftest.dir
5745 else
5746 am_cv_CXX_dependencies_compiler_type=none
5747 fi
5748
5749 fi
5750 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5751 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
5752 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5753
5754 if
5755 test "x$enable_dependency_tracking" != xno \
5756 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5757 am__fastdepCXX_TRUE=
5758 am__fastdepCXX_FALSE='#'
5759 else
5760 am__fastdepCXX_TRUE='#'
5761 am__fastdepCXX_FALSE=
5762 fi
5763
5764
5765
5766
5767 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5768 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5769 (test "X$CXX" != "Xg++"))) ; then
5770 ac_ext=cpp
5771 ac_cpp='$CXXCPP $CPPFLAGS'
5772 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5773 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5774 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5775 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5776 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
5777 if test -z "$CXXCPP"; then
5778 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5779 echo $ECHO_N "(cached) $ECHO_C" >&6
5780 else
5781 # Double quotes because CXXCPP needs to be expanded
5782 for CXXCPP in "$CXX -E" "/lib/cpp"
5783 do
5784 ac_preproc_ok=false
5785 for ac_cxx_preproc_warn_flag in '' yes
5786 do
5787 # Use a header file that comes with gcc, so configuring glibc
5788 # with a fresh cross-compiler works.
5789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5790 # <limits.h> exists even on freestanding compilers.
5791 # On the NeXT, cc -E runs the code through the compiler's parser,
5792 # not just through cpp. "Syntax error" is here to catch this case.
5793 cat >conftest.$ac_ext <<_ACEOF
5794 /* confdefs.h. */
5795 _ACEOF
5796 cat confdefs.h >>conftest.$ac_ext
5797 cat >>conftest.$ac_ext <<_ACEOF
5798 /* end confdefs.h. */
5799 #ifdef __STDC__
5800 # include <limits.h>
5801 #else
5802 # include <assert.h>
5803 #endif
5804 Syntax error
5805 _ACEOF
5806 if { (ac_try="$ac_cpp conftest.$ac_ext"
5807 case "(($ac_try" in
5808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809 *) ac_try_echo=$ac_try;;
5810 esac
5811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5813 ac_status=$?
5814 grep -v '^ *+' conftest.er1 >conftest.err
5815 rm -f conftest.er1
5816 cat conftest.err >&5
5817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5818 (exit $ac_status); } >/dev/null && {
5819 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5820 test ! -s conftest.err
5821 }; then
5822 :
5823 else
5824 echo "$as_me: failed program was:" >&5
5825 sed 's/^/| /' conftest.$ac_ext >&5
5826
5827 # Broken: fails on valid input.
5828 continue
5829 fi
5830
5831 rm -f conftest.err conftest.$ac_ext
5832
5833 # OK, works on sane cases. Now check whether nonexistent headers
5834 # can be detected and how.
5835 cat >conftest.$ac_ext <<_ACEOF
5836 /* confdefs.h. */
5837 _ACEOF
5838 cat confdefs.h >>conftest.$ac_ext
5839 cat >>conftest.$ac_ext <<_ACEOF
5840 /* end confdefs.h. */
5841 #include <ac_nonexistent.h>
5842 _ACEOF
5843 if { (ac_try="$ac_cpp conftest.$ac_ext"
5844 case "(($ac_try" in
5845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5846 *) ac_try_echo=$ac_try;;
5847 esac
5848 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5849 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5850 ac_status=$?
5851 grep -v '^ *+' conftest.er1 >conftest.err
5852 rm -f conftest.er1
5853 cat conftest.err >&5
5854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5855 (exit $ac_status); } >/dev/null && {
5856 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5857 test ! -s conftest.err
5858 }; then
5859 # Broken: success on invalid input.
5860 continue
5861 else
5862 echo "$as_me: failed program was:" >&5
5863 sed 's/^/| /' conftest.$ac_ext >&5
5864
5865 # Passes both tests.
5866 ac_preproc_ok=:
5867 break
5868 fi
5869
5870 rm -f conftest.err conftest.$ac_ext
5871
5872 done
5873 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5874 rm -f conftest.err conftest.$ac_ext
5875 if $ac_preproc_ok; then
5876 break
5877 fi
5878
5879 done
5880 ac_cv_prog_CXXCPP=$CXXCPP
5881
5882 fi
5883 CXXCPP=$ac_cv_prog_CXXCPP
5884 else
5885 ac_cv_prog_CXXCPP=$CXXCPP
5886 fi
5887 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
5888 echo "${ECHO_T}$CXXCPP" >&6; }
5889 ac_preproc_ok=false
5890 for ac_cxx_preproc_warn_flag in '' yes
5891 do
5892 # Use a header file that comes with gcc, so configuring glibc
5893 # with a fresh cross-compiler works.
5894 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5895 # <limits.h> exists even on freestanding compilers.
5896 # On the NeXT, cc -E runs the code through the compiler's parser,
5897 # not just through cpp. "Syntax error" is here to catch this case.
5898 cat >conftest.$ac_ext <<_ACEOF
5899 /* confdefs.h. */
5900 _ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5904 #ifdef __STDC__
5905 # include <limits.h>
5906 #else
5907 # include <assert.h>
5908 #endif
5909 Syntax error
5910 _ACEOF
5911 if { (ac_try="$ac_cpp conftest.$ac_ext"
5912 case "(($ac_try" in
5913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5914 *) ac_try_echo=$ac_try;;
5915 esac
5916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5917 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5918 ac_status=$?
5919 grep -v '^ *+' conftest.er1 >conftest.err
5920 rm -f conftest.er1
5921 cat conftest.err >&5
5922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5923 (exit $ac_status); } >/dev/null && {
5924 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5925 test ! -s conftest.err
5926 }; then
5927 :
5928 else
5929 echo "$as_me: failed program was:" >&5
5930 sed 's/^/| /' conftest.$ac_ext >&5
5931
5932 # Broken: fails on valid input.
5933 continue
5934 fi
5935
5936 rm -f conftest.err conftest.$ac_ext
5937
5938 # OK, works on sane cases. Now check whether nonexistent headers
5939 # can be detected and how.
5940 cat >conftest.$ac_ext <<_ACEOF
5941 /* confdefs.h. */
5942 _ACEOF
5943 cat confdefs.h >>conftest.$ac_ext
5944 cat >>conftest.$ac_ext <<_ACEOF
5945 /* end confdefs.h. */
5946 #include <ac_nonexistent.h>
5947 _ACEOF
5948 if { (ac_try="$ac_cpp conftest.$ac_ext"
5949 case "(($ac_try" in
5950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5951 *) ac_try_echo=$ac_try;;
5952 esac
5953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5955 ac_status=$?
5956 grep -v '^ *+' conftest.er1 >conftest.err
5957 rm -f conftest.er1
5958 cat conftest.err >&5
5959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5960 (exit $ac_status); } >/dev/null && {
5961 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5962 test ! -s conftest.err
5963 }; then
5964 # Broken: success on invalid input.
5965 continue
5966 else
5967 echo "$as_me: failed program was:" >&5
5968 sed 's/^/| /' conftest.$ac_ext >&5
5969
5970 # Passes both tests.
5971 ac_preproc_ok=:
5972 break
5973 fi
5974
5975 rm -f conftest.err conftest.$ac_ext
5976
5977 done
5978 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5979 rm -f conftest.err conftest.$ac_ext
5980 if $ac_preproc_ok; then
5981 :
5982 else
5983 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5984 See \`config.log' for more details." >&5
5985 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5986 See \`config.log' for more details." >&2;}
5987 { (exit 1); exit 1; }; }
5988 fi
5989
5990 ac_ext=cpp
5991 ac_cpp='$CXXCPP $CPPFLAGS'
5992 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5993 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5994 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5995
5996 fi
5997
5998
5999 ac_ext=f
6000 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
6001 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6002 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
6003 if test -n "$ac_tool_prefix"; then
6004 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6005 do
6006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6007 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6010 if test "${ac_cv_prog_F77+set}" = set; then
6011 echo $ECHO_N "(cached) $ECHO_C" >&6
6012 else
6013 if test -n "$F77"; then
6014 ac_cv_prog_F77="$F77" # Let the user override the test.
6015 else
6016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017 for as_dir in $PATH
6018 do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
6022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6023 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 break 2
6026 fi
6027 done
6028 done
6029 IFS=$as_save_IFS
6030
6031 fi
6032 fi
6033 F77=$ac_cv_prog_F77
6034 if test -n "$F77"; then
6035 { echo "$as_me:$LINENO: result: $F77" >&5
6036 echo "${ECHO_T}$F77" >&6; }
6037 else
6038 { echo "$as_me:$LINENO: result: no" >&5
6039 echo "${ECHO_T}no" >&6; }
6040 fi
6041
6042
6043 test -n "$F77" && break
6044 done
6045 fi
6046 if test -z "$F77"; then
6047 ac_ct_F77=$F77
6048 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
6049 do
6050 # Extract the first word of "$ac_prog", so it can be a program name with args.
6051 set dummy $ac_prog; ac_word=$2
6052 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6053 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6054 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6055 echo $ECHO_N "(cached) $ECHO_C" >&6
6056 else
6057 if test -n "$ac_ct_F77"; then
6058 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6059 else
6060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061 for as_dir in $PATH
6062 do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
6066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6067 ac_cv_prog_ac_ct_F77="$ac_prog"
6068 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071 done
6072 done
6073 IFS=$as_save_IFS
6074
6075 fi
6076 fi
6077 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6078 if test -n "$ac_ct_F77"; then
6079 { echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6080 echo "${ECHO_T}$ac_ct_F77" >&6; }
6081 else
6082 { echo "$as_me:$LINENO: result: no" >&5
6083 echo "${ECHO_T}no" >&6; }
6084 fi
6085
6086
6087 test -n "$ac_ct_F77" && break
6088 done
6089
6090 if test "x$ac_ct_F77" = x; then
6091 F77=""
6092 else
6093 case $cross_compiling:$ac_tool_warned in
6094 yes:)
6095 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6096 whose name does not start with the host triplet. If you think this
6097 configuration is useful to you, please write to [email protected]." >&5
6098 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6099 whose name does not start with the host triplet. If you think this
6100 configuration is useful to you, please write to [email protected]." >&2;}
6101 ac_tool_warned=yes ;;
6102 esac
6103 F77=$ac_ct_F77
6104 fi
6105 fi
6106
6107
6108 # Provide some information about the compiler.
6109 echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6110 ac_compiler=`set X $ac_compile; echo $2`
6111 { (ac_try="$ac_compiler --version >&5"
6112 case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115 esac
6116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_compiler --version >&5") 2>&5
6118 ac_status=$?
6119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6120 (exit $ac_status); }
6121 { (ac_try="$ac_compiler -v >&5"
6122 case "(($ac_try" in
6123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6124 *) ac_try_echo=$ac_try;;
6125 esac
6126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6127 (eval "$ac_compiler -v >&5") 2>&5
6128 ac_status=$?
6129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6130 (exit $ac_status); }
6131 { (ac_try="$ac_compiler -V >&5"
6132 case "(($ac_try" in
6133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6134 *) ac_try_echo=$ac_try;;
6135 esac
6136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6137 (eval "$ac_compiler -V >&5") 2>&5
6138 ac_status=$?
6139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6140 (exit $ac_status); }
6141 rm -f a.out
6142
6143 # If we don't use `.F' as extension, the preprocessor is not run on the
6144 # input file. (Note that this only needs to work for GNU compilers.)
6145 ac_save_ext=$ac_ext
6146 ac_ext=F
6147 { echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6148 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6; }
6149 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6150 echo $ECHO_N "(cached) $ECHO_C" >&6
6151 else
6152 cat >conftest.$ac_ext <<_ACEOF
6153 program main
6154 #ifndef __GNUC__
6155 choke me
6156 #endif
6157
6158 end
6159 _ACEOF
6160 rm -f conftest.$ac_objext
6161 if { (ac_try="$ac_compile"
6162 case "(($ac_try" in
6163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6164 *) ac_try_echo=$ac_try;;
6165 esac
6166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6167 (eval "$ac_compile") 2>conftest.er1
6168 ac_status=$?
6169 grep -v '^ *+' conftest.er1 >conftest.err
6170 rm -f conftest.er1
6171 cat conftest.err >&5
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); } && {
6174 test -z "$ac_f77_werror_flag" ||
6175 test ! -s conftest.err
6176 } && test -s conftest.$ac_objext; then
6177 ac_compiler_gnu=yes
6178 else
6179 echo "$as_me: failed program was:" >&5
6180 sed 's/^/| /' conftest.$ac_ext >&5
6181
6182 ac_compiler_gnu=no
6183 fi
6184
6185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6186 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6187
6188 fi
6189 { echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6190 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6; }
6191 ac_ext=$ac_save_ext
6192 ac_test_FFLAGS=${FFLAGS+set}
6193 ac_save_FFLAGS=$FFLAGS
6194 FFLAGS=
6195 { echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6196 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6; }
6197 if test "${ac_cv_prog_f77_g+set}" = set; then
6198 echo $ECHO_N "(cached) $ECHO_C" >&6
6199 else
6200 FFLAGS=-g
6201 cat >conftest.$ac_ext <<_ACEOF
6202 program main
6203
6204 end
6205 _ACEOF
6206 rm -f conftest.$ac_objext
6207 if { (ac_try="$ac_compile"
6208 case "(($ac_try" in
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6211 esac
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_compile") 2>conftest.er1
6214 ac_status=$?
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } && {
6220 test -z "$ac_f77_werror_flag" ||
6221 test ! -s conftest.err
6222 } && test -s conftest.$ac_objext; then
6223 ac_cv_prog_f77_g=yes
6224 else
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6227
6228 ac_cv_prog_f77_g=no
6229 fi
6230
6231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232
6233 fi
6234 { echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6235 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6; }
6236 if test "$ac_test_FFLAGS" = set; then
6237 FFLAGS=$ac_save_FFLAGS
6238 elif test $ac_cv_prog_f77_g = yes; then
6239 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6240 FFLAGS="-g -O2"
6241 else
6242 FFLAGS="-g"
6243 fi
6244 else
6245 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6246 FFLAGS="-O2"
6247 else
6248 FFLAGS=
6249 fi
6250 fi
6251
6252 G77=`test $ac_compiler_gnu = yes && echo yes`
6253 ac_ext=c
6254 ac_cpp='$CPP $CPPFLAGS'
6255 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6256 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6257 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6258
6259
6260
6261 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6262 # find the maximum length of command line arguments
6263 { echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6264 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6; }
6265 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6266 echo $ECHO_N "(cached) $ECHO_C" >&6
6267 else
6268 i=0
6269 teststring="ABCD"
6270
6271 case $build_os in
6272 msdosdjgpp*)
6273 # On DJGPP, this test can blow up pretty badly due to problems in libc
6274 # (any single argument exceeding 2000 bytes causes a buffer overrun
6275 # during glob expansion). Even if it were fixed, the result of this
6276 # check would be larger than it should be.
6277 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6278 ;;
6279
6280 gnu*)
6281 # Under GNU Hurd, this test is not required because there is
6282 # no limit to the length of command line arguments.
6283 # Libtool will interpret -1 as no limit whatsoever
6284 lt_cv_sys_max_cmd_len=-1;
6285 ;;
6286
6287 cygwin* | mingw*)
6288 # On Win9x/ME, this test blows up -- it succeeds, but takes
6289 # about 5 minutes as the teststring grows exponentially.
6290 # Worse, since 9x/ME are not pre-emptively multitasking,
6291 # you end up with a "frozen" computer, even though with patience
6292 # the test eventually succeeds (with a max line length of 256k).
6293 # Instead, let's just punt: use the minimum linelength reported by
6294 # all of the supported platforms: 8192 (on NT/2K/XP).
6295 lt_cv_sys_max_cmd_len=8192;
6296 ;;
6297
6298 amigaos*)
6299 # On AmigaOS with pdksh, this test takes hours, literally.
6300 # So we just punt and use a minimum line length of 8192.
6301 lt_cv_sys_max_cmd_len=8192;
6302 ;;
6303
6304 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6305 # This has been around since 386BSD, at least. Likely further.
6306 if test -x /sbin/sysctl; then
6307 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6308 elif test -x /usr/sbin/sysctl; then
6309 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6310 else
6311 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6312 fi
6313 # And add a safety zone
6314 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6315 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6316 ;;
6317
6318 interix*)
6319 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6320 lt_cv_sys_max_cmd_len=196608
6321 ;;
6322
6323 osf*)
6324 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6325 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6326 # nice to cause kernel panics so lets avoid the loop below.
6327 # First set a reasonable default.
6328 lt_cv_sys_max_cmd_len=16384
6329 #
6330 if test -x /sbin/sysconfig; then
6331 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6332 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6333 esac
6334 fi
6335 ;;
6336 sco3.2v5*)
6337 lt_cv_sys_max_cmd_len=102400
6338 ;;
6339 sysv5* | sco5v6* | sysv4.2uw2*)
6340 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6341 if test -n "$kargmax"; then
6342 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6343 else
6344 lt_cv_sys_max_cmd_len=32768
6345 fi
6346 ;;
6347 *)
6348 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6349 if test -n "$lt_cv_sys_max_cmd_len"; then
6350 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6351 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6352 else
6353 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6354 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6355 = "XX$teststring") >/dev/null 2>&1 &&
6356 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6357 lt_cv_sys_max_cmd_len=$new_result &&
6358 test $i != 17 # 1/2 MB should be enough
6359 do
6360 i=`expr $i + 1`
6361 teststring=$teststring$teststring
6362 done
6363 teststring=
6364 # Add a significant safety factor because C++ compilers can tack on massive
6365 # amounts of additional arguments before passing them to the linker.
6366 # It appears as though 1/2 is a usable value.
6367 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6368 fi
6369 ;;
6370 esac
6371
6372 fi
6373
6374 if test -n $lt_cv_sys_max_cmd_len ; then
6375 { echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6376 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6; }
6377 else
6378 { echo "$as_me:$LINENO: result: none" >&5
6379 echo "${ECHO_T}none" >&6; }
6380 fi
6381
6382
6383
6384
6385
6386 # Check for command to grab the raw symbol name followed by C symbol from nm.
6387 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6388 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
6389 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6390 echo $ECHO_N "(cached) $ECHO_C" >&6
6391 else
6392
6393 # These are sane defaults that work on at least a few old systems.
6394 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6395
6396 # Character class describing NM global symbol codes.
6397 symcode='[BCDEGRST]'
6398
6399 # Regexp to match symbols that can be accessed directly from C.
6400 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6401
6402 # Transform an extracted symbol line into a proper C declaration
6403 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6404
6405 # Transform an extracted symbol line into symbol name and symbol address
6406 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'"
6407
6408 # Define system-specific variables.
6409 case $host_os in
6410 aix*)
6411 symcode='[BCDT]'
6412 ;;
6413 cygwin* | mingw* | pw32*)
6414 symcode='[ABCDGISTW]'
6415 ;;
6416 hpux*) # Its linker distinguishes data from code symbols
6417 if test "$host_cpu" = ia64; then
6418 symcode='[ABCDEGRST]'
6419 fi
6420 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6421 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'"
6422 ;;
6423 linux* | k*bsd*-gnu)
6424 if test "$host_cpu" = ia64; then
6425 symcode='[ABCDGIRSTW]'
6426 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6427 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'"
6428 fi
6429 ;;
6430 irix* | nonstopux*)
6431 symcode='[BCDEGRST]'
6432 ;;
6433 osf*)
6434 symcode='[BCDEGQRST]'
6435 ;;
6436 solaris*)
6437 symcode='[BDRT]'
6438 ;;
6439 sco3.2v5*)
6440 symcode='[DT]'
6441 ;;
6442 sysv4.2uw2*)
6443 symcode='[DT]'
6444 ;;
6445 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6446 symcode='[ABDT]'
6447 ;;
6448 sysv4)
6449 symcode='[DFNSTU]'
6450 ;;
6451 esac
6452
6453 # Handle CRLF in mingw tool chain
6454 opt_cr=
6455 case $build_os in
6456 mingw*)
6457 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6458 ;;
6459 esac
6460
6461 # If we're using GNU nm, then use its standard symbol codes.
6462 case `$NM -V 2>&1` in
6463 *GNU* | *'with BFD'*)
6464 symcode='[ABCDGIRSTW]' ;;
6465 esac
6466
6467 # Try without a prefix undercore, then with it.
6468 for ac_symprfx in "" "_"; do
6469
6470 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6471 symxfrm="\\1 $ac_symprfx\\2 \\2"
6472
6473 # Write the raw and C identifiers.
6474 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6475
6476 # Check to see that the pipe works correctly.
6477 pipe_works=no
6478
6479 rm -f conftest*
6480 cat > conftest.$ac_ext <<EOF
6481 #ifdef __cplusplus
6482 extern "C" {
6483 #endif
6484 char nm_test_var;
6485 void nm_test_func(){}
6486 #ifdef __cplusplus
6487 }
6488 #endif
6489 int main(){nm_test_var='a';nm_test_func();return(0);}
6490 EOF
6491
6492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6493 (eval $ac_compile) 2>&5
6494 ac_status=$?
6495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6496 (exit $ac_status); }; then
6497 # Now try to grab the symbols.
6498 nlist=conftest.nm
6499 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6500 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6501 ac_status=$?
6502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6503 (exit $ac_status); } && test -s "$nlist"; then
6504 # Try sorting and uniquifying the output.
6505 if sort "$nlist" | uniq > "$nlist"T; then
6506 mv -f "$nlist"T "$nlist"
6507 else
6508 rm -f "$nlist"T
6509 fi
6510
6511 # Make sure that we snagged all the symbols we need.
6512 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6513 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6514 cat <<EOF > conftest.$ac_ext
6515 #ifdef __cplusplus
6516 extern "C" {
6517 #endif
6518
6519 EOF
6520 # Now generate the symbol file.
6521 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6522
6523 cat <<EOF >> conftest.$ac_ext
6524 #if defined (__STDC__) && __STDC__
6525 # define lt_ptr_t void *
6526 #else
6527 # define lt_ptr_t char *
6528 # define const
6529 #endif
6530
6531 /* The mapping between symbol names and symbols. */
6532 const struct {
6533 const char *name;
6534 lt_ptr_t address;
6535 }
6536 lt_preloaded_symbols[] =
6537 {
6538 EOF
6539 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6540 cat <<\EOF >> conftest.$ac_ext
6541 {0, (lt_ptr_t) 0}
6542 };
6543
6544 #ifdef __cplusplus
6545 }
6546 #endif
6547 EOF
6548 # Now try linking the two files.
6549 mv conftest.$ac_objext conftstm.$ac_objext
6550 lt_save_LIBS="$LIBS"
6551 lt_save_CFLAGS="$CFLAGS"
6552 LIBS="conftstm.$ac_objext"
6553 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6555 (eval $ac_link) 2>&5
6556 ac_status=$?
6557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6558 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6559 pipe_works=yes
6560 fi
6561 LIBS="$lt_save_LIBS"
6562 CFLAGS="$lt_save_CFLAGS"
6563 else
6564 echo "cannot find nm_test_func in $nlist" >&5
6565 fi
6566 else
6567 echo "cannot find nm_test_var in $nlist" >&5
6568 fi
6569 else
6570 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6571 fi
6572 else
6573 echo "$progname: failed program was:" >&5
6574 cat conftest.$ac_ext >&5
6575 fi
6576 rm -rf conftest* conftst*
6577
6578 # Do not use the global_symbol_pipe unless it works.
6579 if test "$pipe_works" = yes; then
6580 break
6581 else
6582 lt_cv_sys_global_symbol_pipe=
6583 fi
6584 done
6585
6586 fi
6587
6588 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6589 lt_cv_sys_global_symbol_to_cdecl=
6590 fi
6591 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6592 { echo "$as_me:$LINENO: result: failed" >&5
6593 echo "${ECHO_T}failed" >&6; }
6594 else
6595 { echo "$as_me:$LINENO: result: ok" >&5
6596 echo "${ECHO_T}ok" >&6; }
6597 fi
6598
6599 { echo "$as_me:$LINENO: checking for objdir" >&5
6600 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
6601 if test "${lt_cv_objdir+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 rm -f .libs 2>/dev/null
6605 mkdir .libs 2>/dev/null
6606 if test -d .libs; then
6607 lt_cv_objdir=.libs
6608 else
6609 # MS-DOS does not allow filenames that begin with a dot.
6610 lt_cv_objdir=_libs
6611 fi
6612 rmdir .libs 2>/dev/null
6613 fi
6614 { echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6615 echo "${ECHO_T}$lt_cv_objdir" >&6; }
6616 objdir=$lt_cv_objdir
6617
6618
6619
6620
6621
6622 case $host_os in
6623 aix3*)
6624 # AIX sometimes has problems with the GCC collect2 program. For some
6625 # reason, if we set the COLLECT_NAMES environment variable, the problems
6626 # vanish in a puff of smoke.
6627 if test "X${COLLECT_NAMES+set}" != Xset; then
6628 COLLECT_NAMES=
6629 export COLLECT_NAMES
6630 fi
6631 ;;
6632 esac
6633
6634 # Sed substitution that helps us do robust quoting. It backslashifies
6635 # metacharacters that are still active within double-quoted strings.
6636 Xsed='sed -e 1s/^X//'
6637 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6638
6639 # Same as above, but do not quote variable references.
6640 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6641
6642 # Sed substitution to delay expansion of an escaped shell variable in a
6643 # double_quote_subst'ed string.
6644 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6645
6646 # Sed substitution to avoid accidental globbing in evaled expressions
6647 no_glob_subst='s/\*/\\\*/g'
6648
6649 # Constants:
6650 rm="rm -f"
6651
6652 # Global variables:
6653 default_ofile=libtool
6654 can_build_shared=yes
6655
6656 # All known linkers require a `.a' archive for static linking (except MSVC,
6657 # which needs '.lib').
6658 libext=a
6659 ltmain="$ac_aux_dir/ltmain.sh"
6660 ofile="$default_ofile"
6661 with_gnu_ld="$lt_cv_prog_gnu_ld"
6662
6663 if test -n "$ac_tool_prefix"; then
6664 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6665 set dummy ${ac_tool_prefix}ar; ac_word=$2
6666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6668 if test "${ac_cv_prog_AR+set}" = set; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671 if test -n "$AR"; then
6672 ac_cv_prog_AR="$AR" # Let the user override the test.
6673 else
6674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6675 for as_dir in $PATH
6676 do
6677 IFS=$as_save_IFS
6678 test -z "$as_dir" && as_dir=.
6679 for ac_exec_ext in '' $ac_executable_extensions; do
6680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6681 ac_cv_prog_AR="${ac_tool_prefix}ar"
6682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6683 break 2
6684 fi
6685 done
6686 done
6687 IFS=$as_save_IFS
6688
6689 fi
6690 fi
6691 AR=$ac_cv_prog_AR
6692 if test -n "$AR"; then
6693 { echo "$as_me:$LINENO: result: $AR" >&5
6694 echo "${ECHO_T}$AR" >&6; }
6695 else
6696 { echo "$as_me:$LINENO: result: no" >&5
6697 echo "${ECHO_T}no" >&6; }
6698 fi
6699
6700
6701 fi
6702 if test -z "$ac_cv_prog_AR"; then
6703 ac_ct_AR=$AR
6704 # Extract the first word of "ar", so it can be a program name with args.
6705 set dummy ar; ac_word=$2
6706 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6708 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6710 else
6711 if test -n "$ac_ct_AR"; then
6712 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6713 else
6714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6715 for as_dir in $PATH
6716 do
6717 IFS=$as_save_IFS
6718 test -z "$as_dir" && as_dir=.
6719 for ac_exec_ext in '' $ac_executable_extensions; do
6720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6721 ac_cv_prog_ac_ct_AR="ar"
6722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6723 break 2
6724 fi
6725 done
6726 done
6727 IFS=$as_save_IFS
6728
6729 fi
6730 fi
6731 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6732 if test -n "$ac_ct_AR"; then
6733 { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6734 echo "${ECHO_T}$ac_ct_AR" >&6; }
6735 else
6736 { echo "$as_me:$LINENO: result: no" >&5
6737 echo "${ECHO_T}no" >&6; }
6738 fi
6739
6740 if test "x$ac_ct_AR" = x; then
6741 AR="false"
6742 else
6743 case $cross_compiling:$ac_tool_warned in
6744 yes:)
6745 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6746 whose name does not start with the host triplet. If you think this
6747 configuration is useful to you, please write to [email protected]." >&5
6748 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6749 whose name does not start with the host triplet. If you think this
6750 configuration is useful to you, please write to [email protected]." >&2;}
6751 ac_tool_warned=yes ;;
6752 esac
6753 AR=$ac_ct_AR
6754 fi
6755 else
6756 AR="$ac_cv_prog_AR"
6757 fi
6758
6759 if test -n "$ac_tool_prefix"; then
6760 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6761 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6762 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6763 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6764 if test "${ac_cv_prog_RANLIB+set}" = set; then
6765 echo $ECHO_N "(cached) $ECHO_C" >&6
6766 else
6767 if test -n "$RANLIB"; then
6768 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6769 else
6770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6771 for as_dir in $PATH
6772 do
6773 IFS=$as_save_IFS
6774 test -z "$as_dir" && as_dir=.
6775 for ac_exec_ext in '' $ac_executable_extensions; do
6776 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6777 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6778 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6779 break 2
6780 fi
6781 done
6782 done
6783 IFS=$as_save_IFS
6784
6785 fi
6786 fi
6787 RANLIB=$ac_cv_prog_RANLIB
6788 if test -n "$RANLIB"; then
6789 { echo "$as_me:$LINENO: result: $RANLIB" >&5
6790 echo "${ECHO_T}$RANLIB" >&6; }
6791 else
6792 { echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6; }
6794 fi
6795
6796
6797 fi
6798 if test -z "$ac_cv_prog_RANLIB"; then
6799 ac_ct_RANLIB=$RANLIB
6800 # Extract the first word of "ranlib", so it can be a program name with args.
6801 set dummy ranlib; ac_word=$2
6802 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6803 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6804 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6805 echo $ECHO_N "(cached) $ECHO_C" >&6
6806 else
6807 if test -n "$ac_ct_RANLIB"; then
6808 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6809 else
6810 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813 IFS=$as_save_IFS
6814 test -z "$as_dir" && as_dir=.
6815 for ac_exec_ext in '' $ac_executable_extensions; do
6816 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6817 ac_cv_prog_ac_ct_RANLIB="ranlib"
6818 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819 break 2
6820 fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825 fi
6826 fi
6827 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6828 if test -n "$ac_ct_RANLIB"; then
6829 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6830 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
6831 else
6832 { echo "$as_me:$LINENO: result: no" >&5
6833 echo "${ECHO_T}no" >&6; }
6834 fi
6835
6836 if test "x$ac_ct_RANLIB" = x; then
6837 RANLIB=":"
6838 else
6839 case $cross_compiling:$ac_tool_warned in
6840 yes:)
6841 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6842 whose name does not start with the host triplet. If you think this
6843 configuration is useful to you, please write to [email protected]." >&5
6844 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6845 whose name does not start with the host triplet. If you think this
6846 configuration is useful to you, please write to [email protected]." >&2;}
6847 ac_tool_warned=yes ;;
6848 esac
6849 RANLIB=$ac_ct_RANLIB
6850 fi
6851 else
6852 RANLIB="$ac_cv_prog_RANLIB"
6853 fi
6854
6855 if test -n "$ac_tool_prefix"; then
6856 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6857 set dummy ${ac_tool_prefix}strip; ac_word=$2
6858 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6859 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6860 if test "${ac_cv_prog_STRIP+set}" = set; then
6861 echo $ECHO_N "(cached) $ECHO_C" >&6
6862 else
6863 if test -n "$STRIP"; then
6864 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6865 else
6866 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6867 for as_dir in $PATH
6868 do
6869 IFS=$as_save_IFS
6870 test -z "$as_dir" && as_dir=.
6871 for ac_exec_ext in '' $ac_executable_extensions; do
6872 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6873 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6874 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6875 break 2
6876 fi
6877 done
6878 done
6879 IFS=$as_save_IFS
6880
6881 fi
6882 fi
6883 STRIP=$ac_cv_prog_STRIP
6884 if test -n "$STRIP"; then
6885 { echo "$as_me:$LINENO: result: $STRIP" >&5
6886 echo "${ECHO_T}$STRIP" >&6; }
6887 else
6888 { echo "$as_me:$LINENO: result: no" >&5
6889 echo "${ECHO_T}no" >&6; }
6890 fi
6891
6892
6893 fi
6894 if test -z "$ac_cv_prog_STRIP"; then
6895 ac_ct_STRIP=$STRIP
6896 # Extract the first word of "strip", so it can be a program name with args.
6897 set dummy strip; ac_word=$2
6898 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6899 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6900 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6901 echo $ECHO_N "(cached) $ECHO_C" >&6
6902 else
6903 if test -n "$ac_ct_STRIP"; then
6904 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6905 else
6906 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6907 for as_dir in $PATH
6908 do
6909 IFS=$as_save_IFS
6910 test -z "$as_dir" && as_dir=.
6911 for ac_exec_ext in '' $ac_executable_extensions; do
6912 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6913 ac_cv_prog_ac_ct_STRIP="strip"
6914 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6915 break 2
6916 fi
6917 done
6918 done
6919 IFS=$as_save_IFS
6920
6921 fi
6922 fi
6923 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6924 if test -n "$ac_ct_STRIP"; then
6925 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6926 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
6927 else
6928 { echo "$as_me:$LINENO: result: no" >&5
6929 echo "${ECHO_T}no" >&6; }
6930 fi
6931
6932 if test "x$ac_ct_STRIP" = x; then
6933 STRIP=":"
6934 else
6935 case $cross_compiling:$ac_tool_warned in
6936 yes:)
6937 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6938 whose name does not start with the host triplet. If you think this
6939 configuration is useful to you, please write to [email protected]." >&5
6940 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6941 whose name does not start with the host triplet. If you think this
6942 configuration is useful to you, please write to [email protected]." >&2;}
6943 ac_tool_warned=yes ;;
6944 esac
6945 STRIP=$ac_ct_STRIP
6946 fi
6947 else
6948 STRIP="$ac_cv_prog_STRIP"
6949 fi
6950
6951
6952 old_CC="$CC"
6953 old_CFLAGS="$CFLAGS"
6954
6955 # Set sane defaults for various variables
6956 test -z "$AR" && AR=ar
6957 test -z "$AR_FLAGS" && AR_FLAGS=cru
6958 test -z "$AS" && AS=as
6959 test -z "$CC" && CC=cc
6960 test -z "$LTCC" && LTCC=$CC
6961 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6962 test -z "$DLLTOOL" && DLLTOOL=dlltool
6963 test -z "$LD" && LD=ld
6964 test -z "$LN_S" && LN_S="ln -s"
6965 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6966 test -z "$NM" && NM=nm
6967 test -z "$SED" && SED=sed
6968 test -z "$OBJDUMP" && OBJDUMP=objdump
6969 test -z "$RANLIB" && RANLIB=:
6970 test -z "$STRIP" && STRIP=:
6971 test -z "$ac_objext" && ac_objext=o
6972
6973 # Determine commands to create old-style static archives.
6974 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6975 old_postinstall_cmds='chmod 644 $oldlib'
6976 old_postuninstall_cmds=
6977
6978 if test -n "$RANLIB"; then
6979 case $host_os in
6980 openbsd*)
6981 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6982 ;;
6983 *)
6984 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6985 ;;
6986 esac
6987 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6988 fi
6989
6990 for cc_temp in $compiler""; do
6991 case $cc_temp in
6992 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6993 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6994 \-*) ;;
6995 *) break;;
6996 esac
6997 done
6998 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6999
7000
7001 # Only perform the check for file, if the check method requires it
7002 case $deplibs_check_method in
7003 file_magic*)
7004 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
7005 { echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
7006 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6; }
7007 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7008 echo $ECHO_N "(cached) $ECHO_C" >&6
7009 else
7010 case $MAGIC_CMD in
7011 [\\/*] | ?:[\\/]*)
7012 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7013 ;;
7014 *)
7015 lt_save_MAGIC_CMD="$MAGIC_CMD"
7016 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7017 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7018 for ac_dir in $ac_dummy; do
7019 IFS="$lt_save_ifs"
7020 test -z "$ac_dir" && ac_dir=.
7021 if test -f $ac_dir/${ac_tool_prefix}file; then
7022 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
7023 if test -n "$file_magic_test_file"; then
7024 case $deplibs_check_method in
7025 "file_magic "*)
7026 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7027 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7028 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7029 $EGREP "$file_magic_regex" > /dev/null; then
7030 :
7031 else
7032 cat <<EOF 1>&2
7033
7034 *** Warning: the command libtool uses to detect shared libraries,
7035 *** $file_magic_cmd, produces output that libtool cannot recognize.
7036 *** The result is that libtool may fail to recognize shared libraries
7037 *** as such. This will affect the creation of libtool libraries that
7038 *** depend on shared libraries, but programs linked with such libtool
7039 *** libraries will work regardless of this problem. Nevertheless, you
7040 *** may want to report the problem to your system manager and/or to
7041 *** [email protected]
7042
7043 EOF
7044 fi ;;
7045 esac
7046 fi
7047 break
7048 fi
7049 done
7050 IFS="$lt_save_ifs"
7051 MAGIC_CMD="$lt_save_MAGIC_CMD"
7052 ;;
7053 esac
7054 fi
7055
7056 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7057 if test -n "$MAGIC_CMD"; then
7058 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7059 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7060 else
7061 { echo "$as_me:$LINENO: result: no" >&5
7062 echo "${ECHO_T}no" >&6; }
7063 fi
7064
7065 if test -z "$lt_cv_path_MAGIC_CMD"; then
7066 if test -n "$ac_tool_prefix"; then
7067 { echo "$as_me:$LINENO: checking for file" >&5
7068 echo $ECHO_N "checking for file... $ECHO_C" >&6; }
7069 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7070 echo $ECHO_N "(cached) $ECHO_C" >&6
7071 else
7072 case $MAGIC_CMD in
7073 [\\/*] | ?:[\\/]*)
7074 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7075 ;;
7076 *)
7077 lt_save_MAGIC_CMD="$MAGIC_CMD"
7078 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7079 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7080 for ac_dir in $ac_dummy; do
7081 IFS="$lt_save_ifs"
7082 test -z "$ac_dir" && ac_dir=.
7083 if test -f $ac_dir/file; then
7084 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7085 if test -n "$file_magic_test_file"; then
7086 case $deplibs_check_method in
7087 "file_magic "*)
7088 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7089 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7090 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7091 $EGREP "$file_magic_regex" > /dev/null; then
7092 :
7093 else
7094 cat <<EOF 1>&2
7095
7096 *** Warning: the command libtool uses to detect shared libraries,
7097 *** $file_magic_cmd, produces output that libtool cannot recognize.
7098 *** The result is that libtool may fail to recognize shared libraries
7099 *** as such. This will affect the creation of libtool libraries that
7100 *** depend on shared libraries, but programs linked with such libtool
7101 *** libraries will work regardless of this problem. Nevertheless, you
7102 *** may want to report the problem to your system manager and/or to
7103 *** [email protected]
7104
7105 EOF
7106 fi ;;
7107 esac
7108 fi
7109 break
7110 fi
7111 done
7112 IFS="$lt_save_ifs"
7113 MAGIC_CMD="$lt_save_MAGIC_CMD"
7114 ;;
7115 esac
7116 fi
7117
7118 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7119 if test -n "$MAGIC_CMD"; then
7120 { echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7121 echo "${ECHO_T}$MAGIC_CMD" >&6; }
7122 else
7123 { echo "$as_me:$LINENO: result: no" >&5
7124 echo "${ECHO_T}no" >&6; }
7125 fi
7126
7127 else
7128 MAGIC_CMD=:
7129 fi
7130 fi
7131
7132 fi
7133 ;;
7134 esac
7135
7136
7137 case $host_os in
7138 rhapsody* | darwin*)
7139 if test -n "$ac_tool_prefix"; then
7140 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7141 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7142 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7143 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7144 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7145 echo $ECHO_N "(cached) $ECHO_C" >&6
7146 else
7147 if test -n "$DSYMUTIL"; then
7148 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7149 else
7150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7151 for as_dir in $PATH
7152 do
7153 IFS=$as_save_IFS
7154 test -z "$as_dir" && as_dir=.
7155 for ac_exec_ext in '' $ac_executable_extensions; do
7156 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7157 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7158 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7159 break 2
7160 fi
7161 done
7162 done
7163 IFS=$as_save_IFS
7164
7165 fi
7166 fi
7167 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7168 if test -n "$DSYMUTIL"; then
7169 { echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7170 echo "${ECHO_T}$DSYMUTIL" >&6; }
7171 else
7172 { echo "$as_me:$LINENO: result: no" >&5
7173 echo "${ECHO_T}no" >&6; }
7174 fi
7175
7176
7177 fi
7178 if test -z "$ac_cv_prog_DSYMUTIL"; then
7179 ac_ct_DSYMUTIL=$DSYMUTIL
7180 # Extract the first word of "dsymutil", so it can be a program name with args.
7181 set dummy dsymutil; ac_word=$2
7182 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7183 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7184 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7185 echo $ECHO_N "(cached) $ECHO_C" >&6
7186 else
7187 if test -n "$ac_ct_DSYMUTIL"; then
7188 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7189 else
7190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7191 for as_dir in $PATH
7192 do
7193 IFS=$as_save_IFS
7194 test -z "$as_dir" && as_dir=.
7195 for ac_exec_ext in '' $ac_executable_extensions; do
7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7197 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7198 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7199 break 2
7200 fi
7201 done
7202 done
7203 IFS=$as_save_IFS
7204
7205 fi
7206 fi
7207 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7208 if test -n "$ac_ct_DSYMUTIL"; then
7209 { echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7210 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6; }
7211 else
7212 { echo "$as_me:$LINENO: result: no" >&5
7213 echo "${ECHO_T}no" >&6; }
7214 fi
7215
7216 if test "x$ac_ct_DSYMUTIL" = x; then
7217 DSYMUTIL=":"
7218 else
7219 case $cross_compiling:$ac_tool_warned in
7220 yes:)
7221 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7222 whose name does not start with the host triplet. If you think this
7223 configuration is useful to you, please write to [email protected]." >&5
7224 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7225 whose name does not start with the host triplet. If you think this
7226 configuration is useful to you, please write to [email protected]." >&2;}
7227 ac_tool_warned=yes ;;
7228 esac
7229 DSYMUTIL=$ac_ct_DSYMUTIL
7230 fi
7231 else
7232 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7233 fi
7234
7235 if test -n "$ac_tool_prefix"; then
7236 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7237 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7241 echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243 if test -n "$NMEDIT"; then
7244 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7245 else
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7248 do
7249 IFS=$as_save_IFS
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7253 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 break 2
7256 fi
7257 done
7258 done
7259 IFS=$as_save_IFS
7260
7261 fi
7262 fi
7263 NMEDIT=$ac_cv_prog_NMEDIT
7264 if test -n "$NMEDIT"; then
7265 { echo "$as_me:$LINENO: result: $NMEDIT" >&5
7266 echo "${ECHO_T}$NMEDIT" >&6; }
7267 else
7268 { echo "$as_me:$LINENO: result: no" >&5
7269 echo "${ECHO_T}no" >&6; }
7270 fi
7271
7272
7273 fi
7274 if test -z "$ac_cv_prog_NMEDIT"; then
7275 ac_ct_NMEDIT=$NMEDIT
7276 # Extract the first word of "nmedit", so it can be a program name with args.
7277 set dummy nmedit; ac_word=$2
7278 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7279 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7280 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 else
7283 if test -n "$ac_ct_NMEDIT"; then
7284 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7285 else
7286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7287 for as_dir in $PATH
7288 do
7289 IFS=$as_save_IFS
7290 test -z "$as_dir" && as_dir=.
7291 for ac_exec_ext in '' $ac_executable_extensions; do
7292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7293 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7295 break 2
7296 fi
7297 done
7298 done
7299 IFS=$as_save_IFS
7300
7301 fi
7302 fi
7303 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7304 if test -n "$ac_ct_NMEDIT"; then
7305 { echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7306 echo "${ECHO_T}$ac_ct_NMEDIT" >&6; }
7307 else
7308 { echo "$as_me:$LINENO: result: no" >&5
7309 echo "${ECHO_T}no" >&6; }
7310 fi
7311
7312 if test "x$ac_ct_NMEDIT" = x; then
7313 NMEDIT=":"
7314 else
7315 case $cross_compiling:$ac_tool_warned in
7316 yes:)
7317 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7318 whose name does not start with the host triplet. If you think this
7319 configuration is useful to you, please write to [email protected]." >&5
7320 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7321 whose name does not start with the host triplet. If you think this
7322 configuration is useful to you, please write to [email protected]." >&2;}
7323 ac_tool_warned=yes ;;
7324 esac
7325 NMEDIT=$ac_ct_NMEDIT
7326 fi
7327 else
7328 NMEDIT="$ac_cv_prog_NMEDIT"
7329 fi
7330
7331
7332 { echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7333 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6; }
7334 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7335 echo $ECHO_N "(cached) $ECHO_C" >&6
7336 else
7337 lt_cv_apple_cc_single_mod=no
7338 if test -z "${LT_MULTI_MODULE}"; then
7339 # By default we will add the -single_module flag. You can override
7340 # by either setting the environment variable LT_MULTI_MODULE
7341 # non-empty at configure time, or by adding -multi_module to the
7342 # link flags.
7343 echo "int foo(void){return 1;}" > conftest.c
7344 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7345 -dynamiclib ${wl}-single_module conftest.c
7346 if test -f libconftest.dylib; then
7347 lt_cv_apple_cc_single_mod=yes
7348 rm -rf libconftest.dylib*
7349 fi
7350 rm conftest.c
7351 fi
7352 fi
7353 { echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7354 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6; }
7355 { echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7356 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6; }
7357 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7358 echo $ECHO_N "(cached) $ECHO_C" >&6
7359 else
7360 lt_cv_ld_exported_symbols_list=no
7361 save_LDFLAGS=$LDFLAGS
7362 echo "_main" > conftest.sym
7363 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7364 cat >conftest.$ac_ext <<_ACEOF
7365 /* confdefs.h. */
7366 _ACEOF
7367 cat confdefs.h >>conftest.$ac_ext
7368 cat >>conftest.$ac_ext <<_ACEOF
7369 /* end confdefs.h. */
7370
7371 int
7372 main ()
7373 {
7374
7375 ;
7376 return 0;
7377 }
7378 _ACEOF
7379 rm -f conftest.$ac_objext conftest$ac_exeext
7380 if { (ac_try="$ac_link"
7381 case "(($ac_try" in
7382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383 *) ac_try_echo=$ac_try;;
7384 esac
7385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7386 (eval "$ac_link") 2>conftest.er1
7387 ac_status=$?
7388 grep -v '^ *+' conftest.er1 >conftest.err
7389 rm -f conftest.er1
7390 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } && {
7393 test -z "$ac_c_werror_flag" ||
7394 test ! -s conftest.err
7395 } && test -s conftest$ac_exeext &&
7396 $as_test_x conftest$ac_exeext; then
7397 lt_cv_ld_exported_symbols_list=yes
7398 else
7399 echo "$as_me: failed program was:" >&5
7400 sed 's/^/| /' conftest.$ac_ext >&5
7401
7402 lt_cv_ld_exported_symbols_list=no
7403 fi
7404
7405 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7406 conftest$ac_exeext conftest.$ac_ext
7407 LDFLAGS="$save_LDFLAGS"
7408
7409 fi
7410 { echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7411 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6; }
7412 case $host_os in
7413 rhapsody* | darwin1.[0123])
7414 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7415 darwin1.*)
7416 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7417 darwin*)
7418 # if running on 10.5 or later, the deployment target defaults
7419 # to the OS version, if on x86, and 10.4, the deployment
7420 # target defaults to 10.4. Don't you love it?
7421 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7422 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7423 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7424 10.[012]*)
7425 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7426 10.*)
7427 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7428 esac
7429 ;;
7430 esac
7431 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7432 _lt_dar_single_mod='$single_module'
7433 fi
7434 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7435 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7436 else
7437 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7438 fi
7439 if test "$DSYMUTIL" != ":"; then
7440 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7441 else
7442 _lt_dsymutil=
7443 fi
7444 ;;
7445 esac
7446
7447
7448 enable_dlopen=no
7449 enable_win32_dll=no
7450
7451 # Check whether --enable-libtool-lock was given.
7452 if test "${enable_libtool_lock+set}" = set; then
7453 enableval=$enable_libtool_lock;
7454 fi
7455
7456 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7457
7458
7459 # Check whether --with-pic was given.
7460 if test "${with_pic+set}" = set; then
7461 withval=$with_pic; pic_mode="$withval"
7462 else
7463 pic_mode=default
7464 fi
7465
7466 test -z "$pic_mode" && pic_mode=default
7467
7468 # Use C for the default configuration in the libtool script
7469 tagname=
7470 lt_save_CC="$CC"
7471 ac_ext=c
7472 ac_cpp='$CPP $CPPFLAGS'
7473 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7474 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7475 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7476
7477
7478 # Source file extension for C test sources.
7479 ac_ext=c
7480
7481 # Object file extension for compiled C test sources.
7482 objext=o
7483 objext=$objext
7484
7485 # Code to be used in simple compile tests
7486 lt_simple_compile_test_code="int some_variable = 0;"
7487
7488 # Code to be used in simple link tests
7489 lt_simple_link_test_code='int main(){return(0);}'
7490
7491
7492 # If no C compiler was specified, use CC.
7493 LTCC=${LTCC-"$CC"}
7494
7495 # If no C compiler flags were specified, use CFLAGS.
7496 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7497
7498 # Allow CC to be a program name with arguments.
7499 compiler=$CC
7500
7501
7502 # save warnings/boilerplate of simple test code
7503 ac_outfile=conftest.$ac_objext
7504 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7505 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7506 _lt_compiler_boilerplate=`cat conftest.err`
7507 $rm conftest*
7508
7509 ac_outfile=conftest.$ac_objext
7510 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7511 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7512 _lt_linker_boilerplate=`cat conftest.err`
7513 $rm -r conftest*
7514
7515
7516
7517 lt_prog_compiler_no_builtin_flag=
7518
7519 if test "$GCC" = yes; then
7520 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7521
7522
7523 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7524 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
7525 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528 lt_cv_prog_compiler_rtti_exceptions=no
7529 ac_outfile=conftest.$ac_objext
7530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7531 lt_compiler_flag="-fno-rtti -fno-exceptions"
7532 # Insert the option either (1) after the last *FLAGS variable, or
7533 # (2) before a word containing "conftest.", or (3) at the end.
7534 # Note that $ac_compile itself does not contain backslashes and begins
7535 # with a dollar sign (not a hyphen), so the echo should work correctly.
7536 # The option is referenced via a variable to avoid confusing sed.
7537 lt_compile=`echo "$ac_compile" | $SED \
7538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7540 -e 's:$: $lt_compiler_flag:'`
7541 (eval echo "\"\$as_me:7541: $lt_compile\"" >&5)
7542 (eval "$lt_compile" 2>conftest.err)
7543 ac_status=$?
7544 cat conftest.err >&5
7545 echo "$as_me:7545: \$? = $ac_status" >&5
7546 if (exit $ac_status) && test -s "$ac_outfile"; then
7547 # The compiler can only warn and ignore the option if not recognized
7548 # So say no if there are warnings other than the usual output.
7549 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7551 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7552 lt_cv_prog_compiler_rtti_exceptions=yes
7553 fi
7554 fi
7555 $rm conftest*
7556
7557 fi
7558 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7559 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7560
7561 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7562 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7563 else
7564 :
7565 fi
7566
7567 fi
7568
7569 lt_prog_compiler_wl=
7570 lt_prog_compiler_pic=
7571 lt_prog_compiler_static=
7572
7573 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7574 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
7575
7576 if test "$GCC" = yes; then
7577 lt_prog_compiler_wl='-Wl,'
7578 lt_prog_compiler_static='-static'
7579
7580 case $host_os in
7581 aix*)
7582 # All AIX code is PIC.
7583 if test "$host_cpu" = ia64; then
7584 # AIX 5 now supports IA64 processor
7585 lt_prog_compiler_static='-Bstatic'
7586 fi
7587 ;;
7588
7589 amigaos*)
7590 # FIXME: we need at least 68020 code to build shared libraries, but
7591 # adding the `-m68020' flag to GCC prevents building anything better,
7592 # like `-m68040'.
7593 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7594 ;;
7595
7596 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7597 # PIC is the default for these OSes.
7598 ;;
7599
7600 mingw* | cygwin* | pw32* | os2*)
7601 # This hack is so that the source file can tell whether it is being
7602 # built for inclusion in a dll (and should export symbols for example).
7603 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7604 # (--disable-auto-import) libraries
7605 lt_prog_compiler_pic='-DDLL_EXPORT'
7606 ;;
7607
7608 darwin* | rhapsody*)
7609 # PIC is the default on this platform
7610 # Common symbols not allowed in MH_DYLIB files
7611 lt_prog_compiler_pic='-fno-common'
7612 ;;
7613
7614 interix[3-9]*)
7615 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7616 # Instead, we relocate shared libraries at runtime.
7617 ;;
7618
7619 msdosdjgpp*)
7620 # Just because we use GCC doesn't mean we suddenly get shared libraries
7621 # on systems that don't support them.
7622 lt_prog_compiler_can_build_shared=no
7623 enable_shared=no
7624 ;;
7625
7626 sysv4*MP*)
7627 if test -d /usr/nec; then
7628 lt_prog_compiler_pic=-Kconform_pic
7629 fi
7630 ;;
7631
7632 hpux*)
7633 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7634 # not for PA HP-UX.
7635 case $host_cpu in
7636 hppa*64*|ia64*)
7637 # +Z the default
7638 ;;
7639 *)
7640 lt_prog_compiler_pic='-fPIC'
7641 ;;
7642 esac
7643 ;;
7644
7645 *)
7646 lt_prog_compiler_pic='-fPIC'
7647 ;;
7648 esac
7649 else
7650 # PORTME Check for flag to pass linker flags through the system compiler.
7651 case $host_os in
7652 aix*)
7653 lt_prog_compiler_wl='-Wl,'
7654 if test "$host_cpu" = ia64; then
7655 # AIX 5 now supports IA64 processor
7656 lt_prog_compiler_static='-Bstatic'
7657 else
7658 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7659 fi
7660 ;;
7661 darwin*)
7662 # PIC is the default on this platform
7663 # Common symbols not allowed in MH_DYLIB files
7664 case $cc_basename in
7665 xlc*)
7666 lt_prog_compiler_pic='-qnocommon'
7667 lt_prog_compiler_wl='-Wl,'
7668 ;;
7669 esac
7670 ;;
7671
7672 mingw* | cygwin* | pw32* | os2*)
7673 # This hack is so that the source file can tell whether it is being
7674 # built for inclusion in a dll (and should export symbols for example).
7675 lt_prog_compiler_pic='-DDLL_EXPORT'
7676 ;;
7677
7678 hpux9* | hpux10* | hpux11*)
7679 lt_prog_compiler_wl='-Wl,'
7680 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7681 # not for PA HP-UX.
7682 case $host_cpu in
7683 hppa*64*|ia64*)
7684 # +Z the default
7685 ;;
7686 *)
7687 lt_prog_compiler_pic='+Z'
7688 ;;
7689 esac
7690 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7691 lt_prog_compiler_static='${wl}-a ${wl}archive'
7692 ;;
7693
7694 irix5* | irix6* | nonstopux*)
7695 lt_prog_compiler_wl='-Wl,'
7696 # PIC (with -KPIC) is the default.
7697 lt_prog_compiler_static='-non_shared'
7698 ;;
7699
7700 newsos6)
7701 lt_prog_compiler_pic='-KPIC'
7702 lt_prog_compiler_static='-Bstatic'
7703 ;;
7704
7705 linux* | k*bsd*-gnu)
7706 case $cc_basename in
7707 icc* | ecc*)
7708 lt_prog_compiler_wl='-Wl,'
7709 lt_prog_compiler_pic='-KPIC'
7710 lt_prog_compiler_static='-static'
7711 ;;
7712 pgcc* | pgf77* | pgf90* | pgf95*)
7713 # Portland Group compilers (*not* the Pentium gcc compiler,
7714 # which looks to be a dead project)
7715 lt_prog_compiler_wl='-Wl,'
7716 lt_prog_compiler_pic='-fpic'
7717 lt_prog_compiler_static='-Bstatic'
7718 ;;
7719 ccc*)
7720 lt_prog_compiler_wl='-Wl,'
7721 # All Alpha code is PIC.
7722 lt_prog_compiler_static='-non_shared'
7723 ;;
7724 *)
7725 case `$CC -V 2>&1 | sed 5q` in
7726 *Sun\ C*)
7727 # Sun C 5.9
7728 lt_prog_compiler_pic='-KPIC'
7729 lt_prog_compiler_static='-Bstatic'
7730 lt_prog_compiler_wl='-Wl,'
7731 ;;
7732 *Sun\ F*)
7733 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7734 lt_prog_compiler_pic='-KPIC'
7735 lt_prog_compiler_static='-Bstatic'
7736 lt_prog_compiler_wl=''
7737 ;;
7738 esac
7739 ;;
7740 esac
7741 ;;
7742
7743 osf3* | osf4* | osf5*)
7744 lt_prog_compiler_wl='-Wl,'
7745 # All OSF/1 code is PIC.
7746 lt_prog_compiler_static='-non_shared'
7747 ;;
7748
7749 rdos*)
7750 lt_prog_compiler_static='-non_shared'
7751 ;;
7752
7753 solaris*)
7754 lt_prog_compiler_pic='-KPIC'
7755 lt_prog_compiler_static='-Bstatic'
7756 case $cc_basename in
7757 f77* | f90* | f95*)
7758 lt_prog_compiler_wl='-Qoption ld ';;
7759 *)
7760 lt_prog_compiler_wl='-Wl,';;
7761 esac
7762 ;;
7763
7764 sunos4*)
7765 lt_prog_compiler_wl='-Qoption ld '
7766 lt_prog_compiler_pic='-PIC'
7767 lt_prog_compiler_static='-Bstatic'
7768 ;;
7769
7770 sysv4 | sysv4.2uw2* | sysv4.3*)
7771 lt_prog_compiler_wl='-Wl,'
7772 lt_prog_compiler_pic='-KPIC'
7773 lt_prog_compiler_static='-Bstatic'
7774 ;;
7775
7776 sysv4*MP*)
7777 if test -d /usr/nec ;then
7778 lt_prog_compiler_pic='-Kconform_pic'
7779 lt_prog_compiler_static='-Bstatic'
7780 fi
7781 ;;
7782
7783 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7784 lt_prog_compiler_wl='-Wl,'
7785 lt_prog_compiler_pic='-KPIC'
7786 lt_prog_compiler_static='-Bstatic'
7787 ;;
7788
7789 unicos*)
7790 lt_prog_compiler_wl='-Wl,'
7791 lt_prog_compiler_can_build_shared=no
7792 ;;
7793
7794 uts4*)
7795 lt_prog_compiler_pic='-pic'
7796 lt_prog_compiler_static='-Bstatic'
7797 ;;
7798
7799 *)
7800 lt_prog_compiler_can_build_shared=no
7801 ;;
7802 esac
7803 fi
7804
7805 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7806 echo "${ECHO_T}$lt_prog_compiler_pic" >&6; }
7807
7808 #
7809 # Check to make sure the PIC flag actually works.
7810 #
7811 if test -n "$lt_prog_compiler_pic"; then
7812
7813 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7814 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6; }
7815 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7816 echo $ECHO_N "(cached) $ECHO_C" >&6
7817 else
7818 lt_cv_prog_compiler_pic_works=no
7819 ac_outfile=conftest.$ac_objext
7820 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7821 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7822 # Insert the option either (1) after the last *FLAGS variable, or
7823 # (2) before a word containing "conftest.", or (3) at the end.
7824 # Note that $ac_compile itself does not contain backslashes and begins
7825 # with a dollar sign (not a hyphen), so the echo should work correctly.
7826 # The option is referenced via a variable to avoid confusing sed.
7827 lt_compile=`echo "$ac_compile" | $SED \
7828 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7829 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7830 -e 's:$: $lt_compiler_flag:'`
7831 (eval echo "\"\$as_me:7831: $lt_compile\"" >&5)
7832 (eval "$lt_compile" 2>conftest.err)
7833 ac_status=$?
7834 cat conftest.err >&5
7835 echo "$as_me:7835: \$? = $ac_status" >&5
7836 if (exit $ac_status) && test -s "$ac_outfile"; then
7837 # The compiler can only warn and ignore the option if not recognized
7838 # So say no if there are warnings other than the usual output.
7839 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7840 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7841 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7842 lt_cv_prog_compiler_pic_works=yes
7843 fi
7844 fi
7845 $rm conftest*
7846
7847 fi
7848 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7849 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6; }
7850
7851 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7852 case $lt_prog_compiler_pic in
7853 "" | " "*) ;;
7854 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7855 esac
7856 else
7857 lt_prog_compiler_pic=
7858 lt_prog_compiler_can_build_shared=no
7859 fi
7860
7861 fi
7862 case $host_os in
7863 # For platforms which do not support PIC, -DPIC is meaningless:
7864 *djgpp*)
7865 lt_prog_compiler_pic=
7866 ;;
7867 *)
7868 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7869 ;;
7870 esac
7871
7872 #
7873 # Check to make sure the static flag actually works.
7874 #
7875 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7876 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7877 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
7878 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7880 else
7881 lt_cv_prog_compiler_static_works=no
7882 save_LDFLAGS="$LDFLAGS"
7883 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7884 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7885 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7886 # The linker can only warn and ignore the option if not recognized
7887 # So say no if there are warnings
7888 if test -s conftest.err; then
7889 # Append any errors to the config.log.
7890 cat conftest.err 1>&5
7891 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7892 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7893 if diff conftest.exp conftest.er2 >/dev/null; then
7894 lt_cv_prog_compiler_static_works=yes
7895 fi
7896 else
7897 lt_cv_prog_compiler_static_works=yes
7898 fi
7899 fi
7900 $rm -r conftest*
7901 LDFLAGS="$save_LDFLAGS"
7902
7903 fi
7904 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7905 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6; }
7906
7907 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7908 :
7909 else
7910 lt_prog_compiler_static=
7911 fi
7912
7913
7914 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7915 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
7916 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7917 echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919 lt_cv_prog_compiler_c_o=no
7920 $rm -r conftest 2>/dev/null
7921 mkdir conftest
7922 cd conftest
7923 mkdir out
7924 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7925
7926 lt_compiler_flag="-o out/conftest2.$ac_objext"
7927 # Insert the option either (1) after the last *FLAGS variable, or
7928 # (2) before a word containing "conftest.", or (3) at the end.
7929 # Note that $ac_compile itself does not contain backslashes and begins
7930 # with a dollar sign (not a hyphen), so the echo should work correctly.
7931 lt_compile=`echo "$ac_compile" | $SED \
7932 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7933 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7934 -e 's:$: $lt_compiler_flag:'`
7935 (eval echo "\"\$as_me:7935: $lt_compile\"" >&5)
7936 (eval "$lt_compile" 2>out/conftest.err)
7937 ac_status=$?
7938 cat out/conftest.err >&5
7939 echo "$as_me:7939: \$? = $ac_status" >&5
7940 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7941 then
7942 # The compiler can only warn and ignore the option if not recognized
7943 # So say no if there are warnings
7944 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7945 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7946 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7947 lt_cv_prog_compiler_c_o=yes
7948 fi
7949 fi
7950 chmod u+w . 2>&5
7951 $rm conftest*
7952 # SGI C++ compiler will create directory out/ii_files/ for
7953 # template instantiation
7954 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7955 $rm out/* && rmdir out
7956 cd ..
7957 rmdir conftest
7958 $rm conftest*
7959
7960 fi
7961 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7962 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6; }
7963
7964
7965 hard_links="nottested"
7966 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7967 # do not overwrite the value of need_locks provided by the user
7968 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7969 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
7970 hard_links=yes
7971 $rm conftest*
7972 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7973 touch conftest.a
7974 ln conftest.a conftest.b 2>&5 || hard_links=no
7975 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7976 { echo "$as_me:$LINENO: result: $hard_links" >&5
7977 echo "${ECHO_T}$hard_links" >&6; }
7978 if test "$hard_links" = no; then
7979 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7980 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7981 need_locks=warn
7982 fi
7983 else
7984 need_locks=no
7985 fi
7986
7987 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7988 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
7989
7990 runpath_var=
7991 allow_undefined_flag=
7992 enable_shared_with_static_runtimes=no
7993 archive_cmds=
7994 archive_expsym_cmds=
7995 old_archive_From_new_cmds=
7996 old_archive_from_expsyms_cmds=
7997 export_dynamic_flag_spec=
7998 whole_archive_flag_spec=
7999 thread_safe_flag_spec=
8000 hardcode_libdir_flag_spec=
8001 hardcode_libdir_flag_spec_ld=
8002 hardcode_libdir_separator=
8003 hardcode_direct=no
8004 hardcode_minus_L=no
8005 hardcode_shlibpath_var=unsupported
8006 link_all_deplibs=unknown
8007 hardcode_automatic=no
8008 module_cmds=
8009 module_expsym_cmds=
8010 always_export_symbols=no
8011 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8012 # include_expsyms should be a list of space-separated symbols to be *always*
8013 # included in the symbol list
8014 include_expsyms=
8015 # exclude_expsyms can be an extended regexp of symbols to exclude
8016 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8017 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8018 # as well as any symbol that contains `d'.
8019 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8020 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8021 # platforms (ab)use it in PIC code, but their linkers get confused if
8022 # the symbol is explicitly referenced. Since portable code cannot
8023 # rely on this symbol name, it's probably fine to never include it in
8024 # preloaded symbol tables.
8025 # Exclude shared library initialization/finalization symbols.
8026 extract_expsyms_cmds=
8027 # Just being paranoid about ensuring that cc_basename is set.
8028 for cc_temp in $compiler""; do
8029 case $cc_temp in
8030 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8031 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8032 \-*) ;;
8033 *) break;;
8034 esac
8035 done
8036 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8037
8038 case $host_os in
8039 cygwin* | mingw* | pw32*)
8040 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8041 # When not using gcc, we currently assume that we are using
8042 # Microsoft Visual C++.
8043 if test "$GCC" != yes; then
8044 with_gnu_ld=no
8045 fi
8046 ;;
8047 interix*)
8048 # we just hope/assume this is gcc and not c89 (= MSVC++)
8049 with_gnu_ld=yes
8050 ;;
8051 openbsd*)
8052 with_gnu_ld=no
8053 ;;
8054 esac
8055
8056 ld_shlibs=yes
8057 if test "$with_gnu_ld" = yes; then
8058 # If archive_cmds runs LD, not CC, wlarc should be empty
8059 wlarc='${wl}'
8060
8061 # Set some defaults for GNU ld with shared library support. These
8062 # are reset later if shared libraries are not supported. Putting them
8063 # here allows them to be overridden if necessary.
8064 runpath_var=LD_RUN_PATH
8065 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8066 export_dynamic_flag_spec='${wl}--export-dynamic'
8067 # ancient GNU ld didn't support --whole-archive et. al.
8068 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8069 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8070 else
8071 whole_archive_flag_spec=
8072 fi
8073 supports_anon_versioning=no
8074 case `$LD -v 2>/dev/null` in
8075 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8076 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8077 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8078 *\ 2.11.*) ;; # other 2.11 versions
8079 *) supports_anon_versioning=yes ;;
8080 esac
8081
8082 # See if GNU ld supports shared libraries.
8083 case $host_os in
8084 aix[3-9]*)
8085 # On AIX/PPC, the GNU linker is very broken
8086 if test "$host_cpu" != ia64; then
8087 ld_shlibs=no
8088 cat <<EOF 1>&2
8089
8090 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8091 *** to be unable to reliably create shared libraries on AIX.
8092 *** Therefore, libtool is disabling shared libraries support. If you
8093 *** really care for shared libraries, you may want to modify your PATH
8094 *** so that a non-GNU linker is found, and then restart.
8095
8096 EOF
8097 fi
8098 ;;
8099
8100 amigaos*)
8101 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)'
8102 hardcode_libdir_flag_spec='-L$libdir'
8103 hardcode_minus_L=yes
8104
8105 # Samuel A. Falvo II <[email protected]> reports
8106 # that the semantics of dynamic libraries on AmigaOS, at least up
8107 # to version 4, is to share data among multiple programs linked
8108 # with the same dynamic library. Since this doesn't match the
8109 # behavior of shared libraries on other platforms, we can't use
8110 # them.
8111 ld_shlibs=no
8112 ;;
8113
8114 beos*)
8115 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8116 allow_undefined_flag=unsupported
8117 # Joseph Beckenbach <[email protected]> says some releases of gcc
8118 # support --undefined. This deserves some investigation. FIXME
8119 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8120 else
8121 ld_shlibs=no
8122 fi
8123 ;;
8124
8125 cygwin* | mingw* | pw32*)
8126 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8127 # as there is no search path for DLLs.
8128 hardcode_libdir_flag_spec='-L$libdir'
8129 allow_undefined_flag=unsupported
8130 always_export_symbols=no
8131 enable_shared_with_static_runtimes=yes
8132 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8133
8134 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8135 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8136 # If the export-symbols file already is a .def file (1st line
8137 # is EXPORTS), use it as is; otherwise, prepend...
8138 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8139 cp $export_symbols $output_objdir/$soname.def;
8140 else
8141 echo EXPORTS > $output_objdir/$soname.def;
8142 cat $export_symbols >> $output_objdir/$soname.def;
8143 fi~
8144 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8145 else
8146 ld_shlibs=no
8147 fi
8148 ;;
8149
8150 interix[3-9]*)
8151 hardcode_direct=no
8152 hardcode_shlibpath_var=no
8153 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8154 export_dynamic_flag_spec='${wl}-E'
8155 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8156 # Instead, shared libraries are loaded at an image base (0x10000000 by
8157 # default) and relocated if they conflict, which is a slow very memory
8158 # consuming and fragmenting process. To avoid this, we pick a random,
8159 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8160 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8161 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8162 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'
8163 ;;
8164
8165 gnu* | linux* | k*bsd*-gnu)
8166 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8167 tmp_addflag=
8168 case $cc_basename,$host_cpu in
8169 pgcc*) # Portland Group C compiler
8170 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'
8171 tmp_addflag=' $pic_flag'
8172 ;;
8173 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8174 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'
8175 tmp_addflag=' $pic_flag -Mnomain' ;;
8176 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8177 tmp_addflag=' -i_dynamic' ;;
8178 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8179 tmp_addflag=' -i_dynamic -nofor_main' ;;
8180 ifc* | ifort*) # Intel Fortran compiler
8181 tmp_addflag=' -nofor_main' ;;
8182 esac
8183 case `$CC -V 2>&1 | sed 5q` in
8184 *Sun\ C*) # Sun C 5.9
8185 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
8186 tmp_sharedflag='-G' ;;
8187 *Sun\ F*) # Sun Fortran 8.3
8188 tmp_sharedflag='-G' ;;
8189 *)
8190 tmp_sharedflag='-shared' ;;
8191 esac
8192 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8193
8194 if test $supports_anon_versioning = yes; then
8195 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8196 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8197 $echo "local: *; };" >> $output_objdir/$libname.ver~
8198 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8199 fi
8200 link_all_deplibs=no
8201 else
8202 ld_shlibs=no
8203 fi
8204 ;;
8205
8206 netbsd* | netbsdelf*-gnu)
8207 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8208 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8209 wlarc=
8210 else
8211 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8212 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8213 fi
8214 ;;
8215
8216 solaris*)
8217 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8218 ld_shlibs=no
8219 cat <<EOF 1>&2
8220
8221 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8222 *** create shared libraries on Solaris systems. Therefore, libtool
8223 *** is disabling shared libraries support. We urge you to upgrade GNU
8224 *** binutils to release 2.9.1 or newer. Another option is to modify
8225 *** your PATH or compiler configuration so that the native linker is
8226 *** used, and then restart.
8227
8228 EOF
8229 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8230 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8231 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8232 else
8233 ld_shlibs=no
8234 fi
8235 ;;
8236
8237 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8238 case `$LD -v 2>&1` in
8239 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8240 ld_shlibs=no
8241 cat <<_LT_EOF 1>&2
8242
8243 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8244 *** reliably create shared libraries on SCO systems. Therefore, libtool
8245 *** is disabling shared libraries support. We urge you to upgrade GNU
8246 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8247 *** your PATH or compiler configuration so that the native linker is
8248 *** used, and then restart.
8249
8250 _LT_EOF
8251 ;;
8252 *)
8253 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8254 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8255 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8256 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8257 else
8258 ld_shlibs=no
8259 fi
8260 ;;
8261 esac
8262 ;;
8263
8264 sunos4*)
8265 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8266 wlarc=
8267 hardcode_direct=yes
8268 hardcode_shlibpath_var=no
8269 ;;
8270
8271 *)
8272 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8274 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8275 else
8276 ld_shlibs=no
8277 fi
8278 ;;
8279 esac
8280
8281 if test "$ld_shlibs" = no; then
8282 runpath_var=
8283 hardcode_libdir_flag_spec=
8284 export_dynamic_flag_spec=
8285 whole_archive_flag_spec=
8286 fi
8287 else
8288 # PORTME fill in a description of your system's linker (not GNU ld)
8289 case $host_os in
8290 aix3*)
8291 allow_undefined_flag=unsupported
8292 always_export_symbols=yes
8293 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'
8294 # Note: this linker hardcodes the directories in LIBPATH if there
8295 # are no directories specified by -L.
8296 hardcode_minus_L=yes
8297 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8298 # Neither direct hardcoding nor static linking is supported with a
8299 # broken collect2.
8300 hardcode_direct=unsupported
8301 fi
8302 ;;
8303
8304 aix[4-9]*)
8305 if test "$host_cpu" = ia64; then
8306 # On IA64, the linker does run time linking by default, so we don't
8307 # have to do anything special.
8308 aix_use_runtimelinking=no
8309 exp_sym_flag='-Bexport'
8310 no_entry_flag=""
8311 else
8312 # If we're using GNU nm, then we don't want the "-C" option.
8313 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8314 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8315 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'
8316 else
8317 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'
8318 fi
8319 aix_use_runtimelinking=no
8320
8321 # Test if we are trying to use run time linking or normal
8322 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8323 # need to do runtime linking.
8324 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8325 for ld_flag in $LDFLAGS; do
8326 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8327 aix_use_runtimelinking=yes
8328 break
8329 fi
8330 done
8331 ;;
8332 esac
8333
8334 exp_sym_flag='-bexport'
8335 no_entry_flag='-bnoentry'
8336 fi
8337
8338 # When large executables or shared objects are built, AIX ld can
8339 # have problems creating the table of contents. If linking a library
8340 # or program results in "error TOC overflow" add -mminimal-toc to
8341 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8342 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8343
8344 archive_cmds=''
8345 hardcode_direct=yes
8346 hardcode_libdir_separator=':'
8347 link_all_deplibs=yes
8348
8349 if test "$GCC" = yes; then
8350 case $host_os in aix4.[012]|aix4.[012].*)
8351 # We only want to do this on AIX 4.2 and lower, the check
8352 # below for broken collect2 doesn't work under 4.3+
8353 collect2name=`${CC} -print-prog-name=collect2`
8354 if test -f "$collect2name" && \
8355 strings "$collect2name" | grep resolve_lib_name >/dev/null
8356 then
8357 # We have reworked collect2
8358 :
8359 else
8360 # We have old collect2
8361 hardcode_direct=unsupported
8362 # It fails to find uninstalled libraries when the uninstalled
8363 # path is not listed in the libpath. Setting hardcode_minus_L
8364 # to unsupported forces relinking
8365 hardcode_minus_L=yes
8366 hardcode_libdir_flag_spec='-L$libdir'
8367 hardcode_libdir_separator=
8368 fi
8369 ;;
8370 esac
8371 shared_flag='-shared'
8372 if test "$aix_use_runtimelinking" = yes; then
8373 shared_flag="$shared_flag "'${wl}-G'
8374 fi
8375 else
8376 # not using gcc
8377 if test "$host_cpu" = ia64; then
8378 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8379 # chokes on -Wl,-G. The following line is correct:
8380 shared_flag='-G'
8381 else
8382 if test "$aix_use_runtimelinking" = yes; then
8383 shared_flag='${wl}-G'
8384 else
8385 shared_flag='${wl}-bM:SRE'
8386 fi
8387 fi
8388 fi
8389
8390 # It seems that -bexpall does not export symbols beginning with
8391 # underscore (_), so it is better to generate a list of symbols to export.
8392 always_export_symbols=yes
8393 if test "$aix_use_runtimelinking" = yes; then
8394 # Warning - without using the other runtime loading flags (-brtl),
8395 # -berok will link without error, but may produce a broken library.
8396 allow_undefined_flag='-berok'
8397 # Determine the default libpath from the value encoded in an empty executable.
8398 cat >conftest.$ac_ext <<_ACEOF
8399 /* confdefs.h. */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8404
8405 int
8406 main ()
8407 {
8408
8409 ;
8410 return 0;
8411 }
8412 _ACEOF
8413 rm -f conftest.$ac_objext conftest$ac_exeext
8414 if { (ac_try="$ac_link"
8415 case "(($ac_try" in
8416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8417 *) ac_try_echo=$ac_try;;
8418 esac
8419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8420 (eval "$ac_link") 2>conftest.er1
8421 ac_status=$?
8422 grep -v '^ *+' conftest.er1 >conftest.err
8423 rm -f conftest.er1
8424 cat conftest.err >&5
8425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8426 (exit $ac_status); } && {
8427 test -z "$ac_c_werror_flag" ||
8428 test ! -s conftest.err
8429 } && test -s conftest$ac_exeext &&
8430 $as_test_x conftest$ac_exeext; then
8431
8432 lt_aix_libpath_sed='
8433 /Import File Strings/,/^$/ {
8434 /^0/ {
8435 s/^0 *\(.*\)$/\1/
8436 p
8437 }
8438 }'
8439 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8440 # Check for a 64-bit object if we didn't find anything.
8441 if test -z "$aix_libpath"; then
8442 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8443 fi
8444 else
8445 echo "$as_me: failed program was:" >&5
8446 sed 's/^/| /' conftest.$ac_ext >&5
8447
8448
8449 fi
8450
8451 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8452 conftest$ac_exeext conftest.$ac_ext
8453 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8454
8455 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8456 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"
8457 else
8458 if test "$host_cpu" = ia64; then
8459 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8460 allow_undefined_flag="-z nodefs"
8461 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"
8462 else
8463 # Determine the default libpath from the value encoded in an empty executable.
8464 cat >conftest.$ac_ext <<_ACEOF
8465 /* confdefs.h. */
8466 _ACEOF
8467 cat confdefs.h >>conftest.$ac_ext
8468 cat >>conftest.$ac_ext <<_ACEOF
8469 /* end confdefs.h. */
8470
8471 int
8472 main ()
8473 {
8474
8475 ;
8476 return 0;
8477 }
8478 _ACEOF
8479 rm -f conftest.$ac_objext conftest$ac_exeext
8480 if { (ac_try="$ac_link"
8481 case "(($ac_try" in
8482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8483 *) ac_try_echo=$ac_try;;
8484 esac
8485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8486 (eval "$ac_link") 2>conftest.er1
8487 ac_status=$?
8488 grep -v '^ *+' conftest.er1 >conftest.err
8489 rm -f conftest.er1
8490 cat conftest.err >&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); } && {
8493 test -z "$ac_c_werror_flag" ||
8494 test ! -s conftest.err
8495 } && test -s conftest$ac_exeext &&
8496 $as_test_x conftest$ac_exeext; then
8497
8498 lt_aix_libpath_sed='
8499 /Import File Strings/,/^$/ {
8500 /^0/ {
8501 s/^0 *\(.*\)$/\1/
8502 p
8503 }
8504 }'
8505 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8506 # Check for a 64-bit object if we didn't find anything.
8507 if test -z "$aix_libpath"; then
8508 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8509 fi
8510 else
8511 echo "$as_me: failed program was:" >&5
8512 sed 's/^/| /' conftest.$ac_ext >&5
8513
8514
8515 fi
8516
8517 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8518 conftest$ac_exeext conftest.$ac_ext
8519 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8520
8521 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8522 # Warning - without using the other run time loading flags,
8523 # -berok will link without error, but may produce a broken library.
8524 no_undefined_flag=' ${wl}-bernotok'
8525 allow_undefined_flag=' ${wl}-berok'
8526 # Exported symbols can be pulled into shared objects from archives
8527 whole_archive_flag_spec='$convenience'
8528 archive_cmds_need_lc=yes
8529 # This is similar to how AIX traditionally builds its shared libraries.
8530 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'
8531 fi
8532 fi
8533 ;;
8534
8535 amigaos*)
8536 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)'
8537 hardcode_libdir_flag_spec='-L$libdir'
8538 hardcode_minus_L=yes
8539 # see comment about different semantics on the GNU ld section
8540 ld_shlibs=no
8541 ;;
8542
8543 bsdi[45]*)
8544 export_dynamic_flag_spec=-rdynamic
8545 ;;
8546
8547 cygwin* | mingw* | pw32*)
8548 # When not using gcc, we currently assume that we are using
8549 # Microsoft Visual C++.
8550 # hardcode_libdir_flag_spec is actually meaningless, as there is
8551 # no search path for DLLs.
8552 hardcode_libdir_flag_spec=' '
8553 allow_undefined_flag=unsupported
8554 # Tell ltmain to make .lib files, not .a files.
8555 libext=lib
8556 # Tell ltmain to make .dll files, not .so files.
8557 shrext_cmds=".dll"
8558 # FIXME: Setting linknames here is a bad hack.
8559 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8560 # The linker will automatically build a .lib file if we build a DLL.
8561 old_archive_From_new_cmds='true'
8562 # FIXME: Should let the user specify the lib program.
8563 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8564 fix_srcfile_path='`cygpath -w "$srcfile"`'
8565 enable_shared_with_static_runtimes=yes
8566 ;;
8567
8568 darwin* | rhapsody*)
8569 case $host_os in
8570 rhapsody* | darwin1.[012])
8571 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8572 ;;
8573 *) # Darwin 1.3 on
8574 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8575 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8576 else
8577 case ${MACOSX_DEPLOYMENT_TARGET} in
8578 10.[012])
8579 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8580 ;;
8581 10.*)
8582 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8583 ;;
8584 esac
8585 fi
8586 ;;
8587 esac
8588 archive_cmds_need_lc=no
8589 hardcode_direct=no
8590 hardcode_automatic=yes
8591 hardcode_shlibpath_var=unsupported
8592 whole_archive_flag_spec=''
8593 link_all_deplibs=yes
8594 if test "$GCC" = yes ; then
8595 output_verbose_link_cmd='echo'
8596 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8597 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8598 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
8599 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
8600 else
8601 case $cc_basename in
8602 xlc*)
8603 output_verbose_link_cmd='echo'
8604 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8605 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8606 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8607 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
8608 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}'
8609 ;;
8610 *)
8611 ld_shlibs=no
8612 ;;
8613 esac
8614 fi
8615 ;;
8616
8617 dgux*)
8618 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8619 hardcode_libdir_flag_spec='-L$libdir'
8620 hardcode_shlibpath_var=no
8621 ;;
8622
8623 freebsd1*)
8624 ld_shlibs=no
8625 ;;
8626
8627 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8628 # support. Future versions do this automatically, but an explicit c++rt0.o
8629 # does not break anything, and helps significantly (at the cost of a little
8630 # extra space).
8631 freebsd2.2*)
8632 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8633 hardcode_libdir_flag_spec='-R$libdir'
8634 hardcode_direct=yes
8635 hardcode_shlibpath_var=no
8636 ;;
8637
8638 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8639 freebsd2*)
8640 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8641 hardcode_direct=yes
8642 hardcode_minus_L=yes
8643 hardcode_shlibpath_var=no
8644 ;;
8645
8646 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8647 freebsd* | dragonfly*)
8648 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8649 hardcode_libdir_flag_spec='-R$libdir'
8650 hardcode_direct=yes
8651 hardcode_shlibpath_var=no
8652 ;;
8653
8654 hpux9*)
8655 if test "$GCC" = yes; then
8656 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'
8657 else
8658 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'
8659 fi
8660 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8661 hardcode_libdir_separator=:
8662 hardcode_direct=yes
8663
8664 # hardcode_minus_L: Not really in the search PATH,
8665 # but as the default location of the library.
8666 hardcode_minus_L=yes
8667 export_dynamic_flag_spec='${wl}-E'
8668 ;;
8669
8670 hpux10*)
8671 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8672 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8673 else
8674 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8675 fi
8676 if test "$with_gnu_ld" = no; then
8677 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8678 hardcode_libdir_separator=:
8679
8680 hardcode_direct=yes
8681 export_dynamic_flag_spec='${wl}-E'
8682
8683 # hardcode_minus_L: Not really in the search PATH,
8684 # but as the default location of the library.
8685 hardcode_minus_L=yes
8686 fi
8687 ;;
8688
8689 hpux11*)
8690 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8691 case $host_cpu in
8692 hppa*64*)
8693 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8694 ;;
8695 ia64*)
8696 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8697 ;;
8698 *)
8699 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8700 ;;
8701 esac
8702 else
8703 case $host_cpu in
8704 hppa*64*)
8705 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8706 ;;
8707 ia64*)
8708 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8709 ;;
8710 *)
8711 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8712 ;;
8713 esac
8714 fi
8715 if test "$with_gnu_ld" = no; then
8716 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8717 hardcode_libdir_separator=:
8718
8719 case $host_cpu in
8720 hppa*64*|ia64*)
8721 hardcode_libdir_flag_spec_ld='+b $libdir'
8722 hardcode_direct=no
8723 hardcode_shlibpath_var=no
8724 ;;
8725 *)
8726 hardcode_direct=yes
8727 export_dynamic_flag_spec='${wl}-E'
8728
8729 # hardcode_minus_L: Not really in the search PATH,
8730 # but as the default location of the library.
8731 hardcode_minus_L=yes
8732 ;;
8733 esac
8734 fi
8735 ;;
8736
8737 irix5* | irix6* | nonstopux*)
8738 if test "$GCC" = yes; then
8739 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'
8740 else
8741 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'
8742 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8743 fi
8744 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8745 hardcode_libdir_separator=:
8746 link_all_deplibs=yes
8747 ;;
8748
8749 netbsd* | netbsdelf*-gnu)
8750 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8751 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8752 else
8753 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8754 fi
8755 hardcode_libdir_flag_spec='-R$libdir'
8756 hardcode_direct=yes
8757 hardcode_shlibpath_var=no
8758 ;;
8759
8760 newsos6)
8761 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8762 hardcode_direct=yes
8763 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8764 hardcode_libdir_separator=:
8765 hardcode_shlibpath_var=no
8766 ;;
8767
8768 openbsd*)
8769 if test -f /usr/libexec/ld.so; then
8770 hardcode_direct=yes
8771 hardcode_shlibpath_var=no
8772 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8773 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8774 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8775 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8776 export_dynamic_flag_spec='${wl}-E'
8777 else
8778 case $host_os in
8779 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8780 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8781 hardcode_libdir_flag_spec='-R$libdir'
8782 ;;
8783 *)
8784 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8785 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8786 ;;
8787 esac
8788 fi
8789 else
8790 ld_shlibs=no
8791 fi
8792 ;;
8793
8794 os2*)
8795 hardcode_libdir_flag_spec='-L$libdir'
8796 hardcode_minus_L=yes
8797 allow_undefined_flag=unsupported
8798 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'
8799 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8800 ;;
8801
8802 osf3*)
8803 if test "$GCC" = yes; then
8804 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8805 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'
8806 else
8807 allow_undefined_flag=' -expect_unresolved \*'
8808 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'
8809 fi
8810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8811 hardcode_libdir_separator=:
8812 ;;
8813
8814 osf4* | osf5*) # as osf3* with the addition of -msym flag
8815 if test "$GCC" = yes; then
8816 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8817 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'
8818 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8819 else
8820 allow_undefined_flag=' -expect_unresolved \*'
8821 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'
8822 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8823 $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'
8824
8825 # Both c and cxx compiler support -rpath directly
8826 hardcode_libdir_flag_spec='-rpath $libdir'
8827 fi
8828 hardcode_libdir_separator=:
8829 ;;
8830
8831 solaris*)
8832 no_undefined_flag=' -z text'
8833 if test "$GCC" = yes; then
8834 wlarc='${wl}'
8835 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8836 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8837 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8838 else
8839 wlarc=''
8840 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8841 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8842 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8843 fi
8844 hardcode_libdir_flag_spec='-R$libdir'
8845 hardcode_shlibpath_var=no
8846 case $host_os in
8847 solaris2.[0-5] | solaris2.[0-5].*) ;;
8848 *)
8849 # The compiler driver will combine and reorder linker options,
8850 # but understands `-z linker_flag'. GCC discards it without `$wl',
8851 # but is careful enough not to reorder.
8852 # Supported since Solaris 2.6 (maybe 2.5.1?)
8853 if test "$GCC" = yes; then
8854 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8855 else
8856 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8857 fi
8858 ;;
8859 esac
8860 link_all_deplibs=yes
8861 ;;
8862
8863 sunos4*)
8864 if test "x$host_vendor" = xsequent; then
8865 # Use $CC to link under sequent, because it throws in some extra .o
8866 # files that make .init and .fini sections work.
8867 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8868 else
8869 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8870 fi
8871 hardcode_libdir_flag_spec='-L$libdir'
8872 hardcode_direct=yes
8873 hardcode_minus_L=yes
8874 hardcode_shlibpath_var=no
8875 ;;
8876
8877 sysv4)
8878 case $host_vendor in
8879 sni)
8880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8881 hardcode_direct=yes # is this really true???
8882 ;;
8883 siemens)
8884 ## LD is ld it makes a PLAMLIB
8885 ## CC just makes a GrossModule.
8886 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8887 reload_cmds='$CC -r -o $output$reload_objs'
8888 hardcode_direct=no
8889 ;;
8890 motorola)
8891 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8892 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8893 ;;
8894 esac
8895 runpath_var='LD_RUN_PATH'
8896 hardcode_shlibpath_var=no
8897 ;;
8898
8899 sysv4.3*)
8900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8901 hardcode_shlibpath_var=no
8902 export_dynamic_flag_spec='-Bexport'
8903 ;;
8904
8905 sysv4*MP*)
8906 if test -d /usr/nec; then
8907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8908 hardcode_shlibpath_var=no
8909 runpath_var=LD_RUN_PATH
8910 hardcode_runpath_var=yes
8911 ld_shlibs=yes
8912 fi
8913 ;;
8914
8915 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8916 no_undefined_flag='${wl}-z,text'
8917 archive_cmds_need_lc=no
8918 hardcode_shlibpath_var=no
8919 runpath_var='LD_RUN_PATH'
8920
8921 if test "$GCC" = yes; then
8922 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8923 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8924 else
8925 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8926 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8927 fi
8928 ;;
8929
8930 sysv5* | sco3.2v5* | sco5v6*)
8931 # Note: We can NOT use -z defs as we might desire, because we do not
8932 # link with -lc, and that would cause any symbols used from libc to
8933 # always be unresolved, which means just about no library would
8934 # ever link correctly. If we're not using GNU ld we use -z text
8935 # though, which does catch some bad symbols but isn't as heavy-handed
8936 # as -z defs.
8937 no_undefined_flag='${wl}-z,text'
8938 allow_undefined_flag='${wl}-z,nodefs'
8939 archive_cmds_need_lc=no
8940 hardcode_shlibpath_var=no
8941 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8942 hardcode_libdir_separator=':'
8943 link_all_deplibs=yes
8944 export_dynamic_flag_spec='${wl}-Bexport'
8945 runpath_var='LD_RUN_PATH'
8946
8947 if test "$GCC" = yes; then
8948 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8949 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8950 else
8951 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8952 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8953 fi
8954 ;;
8955
8956 uts4*)
8957 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8958 hardcode_libdir_flag_spec='-L$libdir'
8959 hardcode_shlibpath_var=no
8960 ;;
8961
8962 *)
8963 ld_shlibs=no
8964 ;;
8965 esac
8966 fi
8967
8968 { echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8969 echo "${ECHO_T}$ld_shlibs" >&6; }
8970 test "$ld_shlibs" = no && can_build_shared=no
8971
8972 #
8973 # Do we need to explicitly link libc?
8974 #
8975 case "x$archive_cmds_need_lc" in
8976 x|xyes)
8977 # Assume -lc should be added
8978 archive_cmds_need_lc=yes
8979
8980 if test "$enable_shared" = yes && test "$GCC" = yes; then
8981 case $archive_cmds in
8982 *'~'*)
8983 # FIXME: we may have to deal with multi-command sequences.
8984 ;;
8985 '$CC '*)
8986 # Test whether the compiler implicitly links with -lc since on some
8987 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8988 # to ld, don't add -lc before -lgcc.
8989 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8990 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
8991 $rm conftest*
8992 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8993
8994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8995 (eval $ac_compile) 2>&5
8996 ac_status=$?
8997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8998 (exit $ac_status); } 2>conftest.err; then
8999 soname=conftest
9000 lib=conftest
9001 libobjs=conftest.$ac_objext
9002 deplibs=
9003 wl=$lt_prog_compiler_wl
9004 pic_flag=$lt_prog_compiler_pic
9005 compiler_flags=-v
9006 linker_flags=-v
9007 verstring=
9008 output_objdir=.
9009 libname=conftest
9010 lt_save_allow_undefined_flag=$allow_undefined_flag
9011 allow_undefined_flag=
9012 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9013 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9014 ac_status=$?
9015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9016 (exit $ac_status); }
9017 then
9018 archive_cmds_need_lc=no
9019 else
9020 archive_cmds_need_lc=yes
9021 fi
9022 allow_undefined_flag=$lt_save_allow_undefined_flag
9023 else
9024 cat conftest.err 1>&5
9025 fi
9026 $rm conftest*
9027 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9028 echo "${ECHO_T}$archive_cmds_need_lc" >&6; }
9029 ;;
9030 esac
9031 fi
9032 ;;
9033 esac
9034
9035 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9036 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9037 library_names_spec=
9038 libname_spec='lib$name'
9039 soname_spec=
9040 shrext_cmds=".so"
9041 postinstall_cmds=
9042 postuninstall_cmds=
9043 finish_cmds=
9044 finish_eval=
9045 shlibpath_var=
9046 shlibpath_overrides_runpath=unknown
9047 version_type=none
9048 dynamic_linker="$host_os ld.so"
9049 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9050
9051 if test "$GCC" = yes; then
9052 case $host_os in
9053 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9054 *) lt_awk_arg="/^libraries:/" ;;
9055 esac
9056 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9057 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9058 # if the path contains ";" then we assume it to be the separator
9059 # otherwise default to the standard path separator (i.e. ":") - it is
9060 # assumed that no part of a normal pathname contains ";" but that should
9061 # okay in the real world where ";" in dirpaths is itself problematic.
9062 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9063 else
9064 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9065 fi
9066 # Ok, now we have the path, separated by spaces, we can step through it
9067 # and add multilib dir if necessary.
9068 lt_tmp_lt_search_path_spec=
9069 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9070 for lt_sys_path in $lt_search_path_spec; do
9071 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9072 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9073 else
9074 test -d "$lt_sys_path" && \
9075 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9076 fi
9077 done
9078 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9079 BEGIN {RS=" "; FS="/|\n";} {
9080 lt_foo="";
9081 lt_count=0;
9082 for (lt_i = NF; lt_i > 0; lt_i--) {
9083 if ($lt_i != "" && $lt_i != ".") {
9084 if ($lt_i == "..") {
9085 lt_count++;
9086 } else {
9087 if (lt_count == 0) {
9088 lt_foo="/" $lt_i lt_foo;
9089 } else {
9090 lt_count--;
9091 }
9092 }
9093 }
9094 }
9095 if (lt_foo != "") { lt_freq[lt_foo]++; }
9096 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9097 }'`
9098 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9099 else
9100 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9101 fi
9102 need_lib_prefix=unknown
9103 hardcode_into_libs=no
9104
9105 # when you set need_version to no, make sure it does not cause -set_version
9106 # flags to be left without arguments
9107 need_version=unknown
9108
9109 case $host_os in
9110 aix3*)
9111 version_type=linux
9112 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9113 shlibpath_var=LIBPATH
9114
9115 # AIX 3 has no versioning support, so we append a major version to the name.
9116 soname_spec='${libname}${release}${shared_ext}$major'
9117 ;;
9118
9119 aix[4-9]*)
9120 version_type=linux
9121 need_lib_prefix=no
9122 need_version=no
9123 hardcode_into_libs=yes
9124 if test "$host_cpu" = ia64; then
9125 # AIX 5 supports IA64
9126 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9127 shlibpath_var=LD_LIBRARY_PATH
9128 else
9129 # With GCC up to 2.95.x, collect2 would create an import file
9130 # for dependence libraries. The import file would start with
9131 # the line `#! .'. This would cause the generated library to
9132 # depend on `.', always an invalid library. This was fixed in
9133 # development snapshots of GCC prior to 3.0.
9134 case $host_os in
9135 aix4 | aix4.[01] | aix4.[01].*)
9136 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9137 echo ' yes '
9138 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9139 :
9140 else
9141 can_build_shared=no
9142 fi
9143 ;;
9144 esac
9145 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9146 # soname into executable. Probably we can add versioning support to
9147 # collect2, so additional links can be useful in future.
9148 if test "$aix_use_runtimelinking" = yes; then
9149 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9150 # instead of lib<name>.a to let people know that these are not
9151 # typical AIX shared libraries.
9152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9153 else
9154 # We preserve .a as extension for shared libraries through AIX4.2
9155 # and later when we are not doing run time linking.
9156 library_names_spec='${libname}${release}.a $libname.a'
9157 soname_spec='${libname}${release}${shared_ext}$major'
9158 fi
9159 shlibpath_var=LIBPATH
9160 fi
9161 ;;
9162
9163 amigaos*)
9164 library_names_spec='$libname.ixlibrary $libname.a'
9165 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9166 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'
9167 ;;
9168
9169 beos*)
9170 library_names_spec='${libname}${shared_ext}'
9171 dynamic_linker="$host_os ld.so"
9172 shlibpath_var=LIBRARY_PATH
9173 ;;
9174
9175 bsdi[45]*)
9176 version_type=linux
9177 need_version=no
9178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9179 soname_spec='${libname}${release}${shared_ext}$major'
9180 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9181 shlibpath_var=LD_LIBRARY_PATH
9182 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9183 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9184 # the default ld.so.conf also contains /usr/contrib/lib and
9185 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9186 # libtool to hard-code these into programs
9187 ;;
9188
9189 cygwin* | mingw* | pw32*)
9190 version_type=windows
9191 shrext_cmds=".dll"
9192 need_version=no
9193 need_lib_prefix=no
9194
9195 case $GCC,$host_os in
9196 yes,cygwin* | yes,mingw* | yes,pw32*)
9197 library_names_spec='$libname.dll.a'
9198 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9199 postinstall_cmds='base_file=`basename \${file}`~
9200 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9201 dldir=$destdir/`dirname \$dlpath`~
9202 test -d \$dldir || mkdir -p \$dldir~
9203 $install_prog $dir/$dlname \$dldir/$dlname~
9204 chmod a+x \$dldir/$dlname'
9205 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9206 dlpath=$dir/\$dldll~
9207 $rm \$dlpath'
9208 shlibpath_overrides_runpath=yes
9209
9210 case $host_os in
9211 cygwin*)
9212 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9213 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9214 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9215 ;;
9216 mingw*)
9217 # MinGW DLLs use traditional 'lib' prefix
9218 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9219 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9220 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9221 # It is most probably a Windows format PATH printed by
9222 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9223 # path with ; separators, and with drive letters. We can handle the
9224 # drive letters (cygwin fileutils understands them), so leave them,
9225 # especially as we might pass files found there to a mingw objdump,
9226 # which wouldn't understand a cygwinified path. Ahh.
9227 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9228 else
9229 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9230 fi
9231 ;;
9232 pw32*)
9233 # pw32 DLLs use 'pw' prefix rather than 'lib'
9234 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9235 ;;
9236 esac
9237 ;;
9238
9239 *)
9240 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9241 ;;
9242 esac
9243 dynamic_linker='Win32 ld.exe'
9244 # FIXME: first we should search . and the directory the executable is in
9245 shlibpath_var=PATH
9246 ;;
9247
9248 darwin* | rhapsody*)
9249 dynamic_linker="$host_os dyld"
9250 version_type=darwin
9251 need_lib_prefix=no
9252 need_version=no
9253 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9254 soname_spec='${libname}${release}${major}$shared_ext'
9255 shlibpath_overrides_runpath=yes
9256 shlibpath_var=DYLD_LIBRARY_PATH
9257 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9258
9259 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9260 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9261 ;;
9262
9263 dgux*)
9264 version_type=linux
9265 need_lib_prefix=no
9266 need_version=no
9267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9268 soname_spec='${libname}${release}${shared_ext}$major'
9269 shlibpath_var=LD_LIBRARY_PATH
9270 ;;
9271
9272 freebsd1*)
9273 dynamic_linker=no
9274 ;;
9275
9276 freebsd* | dragonfly*)
9277 # DragonFly does not have aout. When/if they implement a new
9278 # versioning mechanism, adjust this.
9279 if test -x /usr/bin/objformat; then
9280 objformat=`/usr/bin/objformat`
9281 else
9282 case $host_os in
9283 freebsd[123]*) objformat=aout ;;
9284 *) objformat=elf ;;
9285 esac
9286 fi
9287 version_type=freebsd-$objformat
9288 case $version_type in
9289 freebsd-elf*)
9290 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9291 need_version=no
9292 need_lib_prefix=no
9293 ;;
9294 freebsd-*)
9295 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9296 need_version=yes
9297 ;;
9298 esac
9299 shlibpath_var=LD_LIBRARY_PATH
9300 case $host_os in
9301 freebsd2*)
9302 shlibpath_overrides_runpath=yes
9303 ;;
9304 freebsd3.[01]* | freebsdelf3.[01]*)
9305 shlibpath_overrides_runpath=yes
9306 hardcode_into_libs=yes
9307 ;;
9308 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9309 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9310 shlibpath_overrides_runpath=no
9311 hardcode_into_libs=yes
9312 ;;
9313 *) # from 4.6 on, and DragonFly
9314 shlibpath_overrides_runpath=yes
9315 hardcode_into_libs=yes
9316 ;;
9317 esac
9318 ;;
9319
9320 gnu*)
9321 version_type=linux
9322 need_lib_prefix=no
9323 need_version=no
9324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9325 soname_spec='${libname}${release}${shared_ext}$major'
9326 shlibpath_var=LD_LIBRARY_PATH
9327 hardcode_into_libs=yes
9328 ;;
9329
9330 hpux9* | hpux10* | hpux11*)
9331 # Give a soname corresponding to the major version so that dld.sl refuses to
9332 # link against other versions.
9333 version_type=sunos
9334 need_lib_prefix=no
9335 need_version=no
9336 case $host_cpu in
9337 ia64*)
9338 shrext_cmds='.so'
9339 hardcode_into_libs=yes
9340 dynamic_linker="$host_os dld.so"
9341 shlibpath_var=LD_LIBRARY_PATH
9342 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9344 soname_spec='${libname}${release}${shared_ext}$major'
9345 if test "X$HPUX_IA64_MODE" = X32; then
9346 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9347 else
9348 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9349 fi
9350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9351 ;;
9352 hppa*64*)
9353 shrext_cmds='.sl'
9354 hardcode_into_libs=yes
9355 dynamic_linker="$host_os dld.sl"
9356 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9357 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9359 soname_spec='${libname}${release}${shared_ext}$major'
9360 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9361 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9362 ;;
9363 *)
9364 shrext_cmds='.sl'
9365 dynamic_linker="$host_os dld.sl"
9366 shlibpath_var=SHLIB_PATH
9367 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9369 soname_spec='${libname}${release}${shared_ext}$major'
9370 ;;
9371 esac
9372 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9373 postinstall_cmds='chmod 555 $lib'
9374 ;;
9375
9376 interix[3-9]*)
9377 version_type=linux
9378 need_lib_prefix=no
9379 need_version=no
9380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9381 soname_spec='${libname}${release}${shared_ext}$major'
9382 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9383 shlibpath_var=LD_LIBRARY_PATH
9384 shlibpath_overrides_runpath=no
9385 hardcode_into_libs=yes
9386 ;;
9387
9388 irix5* | irix6* | nonstopux*)
9389 case $host_os in
9390 nonstopux*) version_type=nonstopux ;;
9391 *)
9392 if test "$lt_cv_prog_gnu_ld" = yes; then
9393 version_type=linux
9394 else
9395 version_type=irix
9396 fi ;;
9397 esac
9398 need_lib_prefix=no
9399 need_version=no
9400 soname_spec='${libname}${release}${shared_ext}$major'
9401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9402 case $host_os in
9403 irix5* | nonstopux*)
9404 libsuff= shlibsuff=
9405 ;;
9406 *)
9407 case $LD in # libtool.m4 will add one of these switches to LD
9408 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9409 libsuff= shlibsuff= libmagic=32-bit;;
9410 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9411 libsuff=32 shlibsuff=N32 libmagic=N32;;
9412 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9413 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9414 *) libsuff= shlibsuff= libmagic=never-match;;
9415 esac
9416 ;;
9417 esac
9418 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9419 shlibpath_overrides_runpath=no
9420 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9421 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9422 hardcode_into_libs=yes
9423 ;;
9424
9425 # No shared lib support for Linux oldld, aout, or coff.
9426 linux*oldld* | linux*aout* | linux*coff*)
9427 dynamic_linker=no
9428 ;;
9429
9430 # This must be Linux ELF.
9431 linux* | k*bsd*-gnu)
9432 version_type=linux
9433 need_lib_prefix=no
9434 need_version=no
9435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9436 soname_spec='${libname}${release}${shared_ext}$major'
9437 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9438 shlibpath_var=LD_LIBRARY_PATH
9439 shlibpath_overrides_runpath=no
9440 # This implies no fast_install, which is unacceptable.
9441 # Some rework will be needed to allow for fast_install
9442 # before this can be enabled.
9443 hardcode_into_libs=yes
9444
9445 # Append ld.so.conf contents to the search path
9446 if test -f /etc/ld.so.conf; then
9447 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
9448 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9449 fi
9450
9451 # We used to test for /lib/ld.so.1 and disable shared libraries on
9452 # powerpc, because MkLinux only supported shared libraries with the
9453 # GNU dynamic linker. Since this was broken with cross compilers,
9454 # most powerpc-linux boxes support dynamic linking these days and
9455 # people can always --disable-shared, the test was removed, and we
9456 # assume the GNU/Linux dynamic linker is in use.
9457 dynamic_linker='GNU/Linux ld.so'
9458 ;;
9459
9460 netbsdelf*-gnu)
9461 version_type=linux
9462 need_lib_prefix=no
9463 need_version=no
9464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9465 soname_spec='${libname}${release}${shared_ext}$major'
9466 shlibpath_var=LD_LIBRARY_PATH
9467 shlibpath_overrides_runpath=no
9468 hardcode_into_libs=yes
9469 dynamic_linker='NetBSD ld.elf_so'
9470 ;;
9471
9472 netbsd*)
9473 version_type=sunos
9474 need_lib_prefix=no
9475 need_version=no
9476 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9478 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9479 dynamic_linker='NetBSD (a.out) ld.so'
9480 else
9481 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9482 soname_spec='${libname}${release}${shared_ext}$major'
9483 dynamic_linker='NetBSD ld.elf_so'
9484 fi
9485 shlibpath_var=LD_LIBRARY_PATH
9486 shlibpath_overrides_runpath=yes
9487 hardcode_into_libs=yes
9488 ;;
9489
9490 newsos6)
9491 version_type=linux
9492 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9493 shlibpath_var=LD_LIBRARY_PATH
9494 shlibpath_overrides_runpath=yes
9495 ;;
9496
9497 nto-qnx*)
9498 version_type=linux
9499 need_lib_prefix=no
9500 need_version=no
9501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9502 soname_spec='${libname}${release}${shared_ext}$major'
9503 shlibpath_var=LD_LIBRARY_PATH
9504 shlibpath_overrides_runpath=yes
9505 ;;
9506
9507 openbsd*)
9508 version_type=sunos
9509 sys_lib_dlsearch_path_spec="/usr/lib"
9510 need_lib_prefix=no
9511 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9512 case $host_os in
9513 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9514 *) need_version=no ;;
9515 esac
9516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9517 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9518 shlibpath_var=LD_LIBRARY_PATH
9519 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9520 case $host_os in
9521 openbsd2.[89] | openbsd2.[89].*)
9522 shlibpath_overrides_runpath=no
9523 ;;
9524 *)
9525 shlibpath_overrides_runpath=yes
9526 ;;
9527 esac
9528 else
9529 shlibpath_overrides_runpath=yes
9530 fi
9531 ;;
9532
9533 os2*)
9534 libname_spec='$name'
9535 shrext_cmds=".dll"
9536 need_lib_prefix=no
9537 library_names_spec='$libname${shared_ext} $libname.a'
9538 dynamic_linker='OS/2 ld.exe'
9539 shlibpath_var=LIBPATH
9540 ;;
9541
9542 osf3* | osf4* | osf5*)
9543 version_type=osf
9544 need_lib_prefix=no
9545 need_version=no
9546 soname_spec='${libname}${release}${shared_ext}$major'
9547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9548 shlibpath_var=LD_LIBRARY_PATH
9549 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9550 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9551 ;;
9552
9553 rdos*)
9554 dynamic_linker=no
9555 ;;
9556
9557 solaris*)
9558 version_type=linux
9559 need_lib_prefix=no
9560 need_version=no
9561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9562 soname_spec='${libname}${release}${shared_ext}$major'
9563 shlibpath_var=LD_LIBRARY_PATH
9564 shlibpath_overrides_runpath=yes
9565 hardcode_into_libs=yes
9566 # ldd complains unless libraries are executable
9567 postinstall_cmds='chmod +x $lib'
9568 ;;
9569
9570 sunos4*)
9571 version_type=sunos
9572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9573 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9574 shlibpath_var=LD_LIBRARY_PATH
9575 shlibpath_overrides_runpath=yes
9576 if test "$with_gnu_ld" = yes; then
9577 need_lib_prefix=no
9578 fi
9579 need_version=yes
9580 ;;
9581
9582 sysv4 | sysv4.3*)
9583 version_type=linux
9584 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9585 soname_spec='${libname}${release}${shared_ext}$major'
9586 shlibpath_var=LD_LIBRARY_PATH
9587 case $host_vendor in
9588 sni)
9589 shlibpath_overrides_runpath=no
9590 need_lib_prefix=no
9591 export_dynamic_flag_spec='${wl}-Blargedynsym'
9592 runpath_var=LD_RUN_PATH
9593 ;;
9594 siemens)
9595 need_lib_prefix=no
9596 ;;
9597 motorola)
9598 need_lib_prefix=no
9599 need_version=no
9600 shlibpath_overrides_runpath=no
9601 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9602 ;;
9603 esac
9604 ;;
9605
9606 sysv4*MP*)
9607 if test -d /usr/nec ;then
9608 version_type=linux
9609 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9610 soname_spec='$libname${shared_ext}.$major'
9611 shlibpath_var=LD_LIBRARY_PATH
9612 fi
9613 ;;
9614
9615 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9616 version_type=freebsd-elf
9617 need_lib_prefix=no
9618 need_version=no
9619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9620 soname_spec='${libname}${release}${shared_ext}$major'
9621 shlibpath_var=LD_LIBRARY_PATH
9622 hardcode_into_libs=yes
9623 if test "$with_gnu_ld" = yes; then
9624 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9625 shlibpath_overrides_runpath=no
9626 else
9627 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9628 shlibpath_overrides_runpath=yes
9629 case $host_os in
9630 sco3.2v5*)
9631 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9632 ;;
9633 esac
9634 fi
9635 sys_lib_dlsearch_path_spec='/usr/lib'
9636 ;;
9637
9638 uts4*)
9639 version_type=linux
9640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9641 soname_spec='${libname}${release}${shared_ext}$major'
9642 shlibpath_var=LD_LIBRARY_PATH
9643 ;;
9644
9645 *)
9646 dynamic_linker=no
9647 ;;
9648 esac
9649 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9650 echo "${ECHO_T}$dynamic_linker" >&6; }
9651 test "$dynamic_linker" = no && can_build_shared=no
9652
9653 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9654 echo $ECHO_N "(cached) $ECHO_C" >&6
9655 else
9656 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9657 fi
9658
9659 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9660 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9661 echo $ECHO_N "(cached) $ECHO_C" >&6
9662 else
9663 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9664 fi
9665
9666 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9667
9668 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9669 if test "$GCC" = yes; then
9670 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9671 fi
9672
9673 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9674 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
9675 hardcode_action=
9676 if test -n "$hardcode_libdir_flag_spec" || \
9677 test -n "$runpath_var" || \
9678 test "X$hardcode_automatic" = "Xyes" ; then
9679
9680 # We can hardcode non-existant directories.
9681 if test "$hardcode_direct" != no &&
9682 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9683 # have to relink, otherwise we might link with an installed library
9684 # when we should be linking with a yet-to-be-installed one
9685 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9686 test "$hardcode_minus_L" != no; then
9687 # Linking always hardcodes the temporary library directory.
9688 hardcode_action=relink
9689 else
9690 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9691 hardcode_action=immediate
9692 fi
9693 else
9694 # We cannot hardcode anything, or else we can only hardcode existing
9695 # directories.
9696 hardcode_action=unsupported
9697 fi
9698 { echo "$as_me:$LINENO: result: $hardcode_action" >&5
9699 echo "${ECHO_T}$hardcode_action" >&6; }
9700
9701 if test "$hardcode_action" = relink; then
9702 # Fast installation is not supported
9703 enable_fast_install=no
9704 elif test "$shlibpath_overrides_runpath" = yes ||
9705 test "$enable_shared" = no; then
9706 # Fast installation is not necessary
9707 enable_fast_install=needless
9708 fi
9709
9710 striplib=
9711 old_striplib=
9712 { echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9713 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6; }
9714 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9715 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9716 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9717 { echo "$as_me:$LINENO: result: yes" >&5
9718 echo "${ECHO_T}yes" >&6; }
9719 else
9720 # FIXME - insert some real tests, host_os isn't really good enough
9721 case $host_os in
9722 darwin*)
9723 if test -n "$STRIP" ; then
9724 striplib="$STRIP -x"
9725 old_striplib="$STRIP -S"
9726 { echo "$as_me:$LINENO: result: yes" >&5
9727 echo "${ECHO_T}yes" >&6; }
9728 else
9729 { echo "$as_me:$LINENO: result: no" >&5
9730 echo "${ECHO_T}no" >&6; }
9731 fi
9732 ;;
9733 *)
9734 { echo "$as_me:$LINENO: result: no" >&5
9735 echo "${ECHO_T}no" >&6; }
9736 ;;
9737 esac
9738 fi
9739
9740 if test "x$enable_dlopen" != xyes; then
9741 enable_dlopen=unknown
9742 enable_dlopen_self=unknown
9743 enable_dlopen_self_static=unknown
9744 else
9745 lt_cv_dlopen=no
9746 lt_cv_dlopen_libs=
9747
9748 case $host_os in
9749 beos*)
9750 lt_cv_dlopen="load_add_on"
9751 lt_cv_dlopen_libs=
9752 lt_cv_dlopen_self=yes
9753 ;;
9754
9755 mingw* | pw32*)
9756 lt_cv_dlopen="LoadLibrary"
9757 lt_cv_dlopen_libs=
9758 ;;
9759
9760 cygwin*)
9761 lt_cv_dlopen="dlopen"
9762 lt_cv_dlopen_libs=
9763 ;;
9764
9765 darwin*)
9766 # if libdl is installed we need to link against it
9767 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9768 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
9769 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9770 echo $ECHO_N "(cached) $ECHO_C" >&6
9771 else
9772 ac_check_lib_save_LIBS=$LIBS
9773 LIBS="-ldl $LIBS"
9774 cat >conftest.$ac_ext <<_ACEOF
9775 /* confdefs.h. */
9776 _ACEOF
9777 cat confdefs.h >>conftest.$ac_ext
9778 cat >>conftest.$ac_ext <<_ACEOF
9779 /* end confdefs.h. */
9780
9781 /* Override any GCC internal prototype to avoid an error.
9782 Use char because int might match the return type of a GCC
9783 builtin and then its argument prototype would still apply. */
9784 #ifdef __cplusplus
9785 extern "C"
9786 #endif
9787 char dlopen ();
9788 int
9789 main ()
9790 {
9791 return dlopen ();
9792 ;
9793 return 0;
9794 }
9795 _ACEOF
9796 rm -f conftest.$ac_objext conftest$ac_exeext
9797 if { (ac_try="$ac_link"
9798 case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9801 esac
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_link") 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } && {
9810 test -z "$ac_c_werror_flag" ||
9811 test ! -s conftest.err
9812 } && test -s conftest$ac_exeext &&
9813 $as_test_x conftest$ac_exeext; then
9814 ac_cv_lib_dl_dlopen=yes
9815 else
9816 echo "$as_me: failed program was:" >&5
9817 sed 's/^/| /' conftest.$ac_ext >&5
9818
9819 ac_cv_lib_dl_dlopen=no
9820 fi
9821
9822 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9823 conftest$ac_exeext conftest.$ac_ext
9824 LIBS=$ac_check_lib_save_LIBS
9825 fi
9826 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9827 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
9828 if test $ac_cv_lib_dl_dlopen = yes; then
9829 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9830 else
9831
9832 lt_cv_dlopen="dyld"
9833 lt_cv_dlopen_libs=
9834 lt_cv_dlopen_self=yes
9835
9836 fi
9837
9838 ;;
9839
9840 *)
9841 { echo "$as_me:$LINENO: checking for shl_load" >&5
9842 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
9843 if test "${ac_cv_func_shl_load+set}" = set; then
9844 echo $ECHO_N "(cached) $ECHO_C" >&6
9845 else
9846 cat >conftest.$ac_ext <<_ACEOF
9847 /* confdefs.h. */
9848 _ACEOF
9849 cat confdefs.h >>conftest.$ac_ext
9850 cat >>conftest.$ac_ext <<_ACEOF
9851 /* end confdefs.h. */
9852 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9853 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9854 #define shl_load innocuous_shl_load
9855
9856 /* System header to define __stub macros and hopefully few prototypes,
9857 which can conflict with char shl_load (); below.
9858 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9859 <limits.h> exists even on freestanding compilers. */
9860
9861 #ifdef __STDC__
9862 # include <limits.h>
9863 #else
9864 # include <assert.h>
9865 #endif
9866
9867 #undef shl_load
9868
9869 /* Override any GCC internal prototype to avoid an error.
9870 Use char because int might match the return type of a GCC
9871 builtin and then its argument prototype would still apply. */
9872 #ifdef __cplusplus
9873 extern "C"
9874 #endif
9875 char shl_load ();
9876 /* The GNU C library defines this for functions which it implements
9877 to always fail with ENOSYS. Some functions are actually named
9878 something starting with __ and the normal name is an alias. */
9879 #if defined __stub_shl_load || defined __stub___shl_load
9880 choke me
9881 #endif
9882
9883 int
9884 main ()
9885 {
9886 return shl_load ();
9887 ;
9888 return 0;
9889 }
9890 _ACEOF
9891 rm -f conftest.$ac_objext conftest$ac_exeext
9892 if { (ac_try="$ac_link"
9893 case "(($ac_try" in
9894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9895 *) ac_try_echo=$ac_try;;
9896 esac
9897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9898 (eval "$ac_link") 2>conftest.er1
9899 ac_status=$?
9900 grep -v '^ *+' conftest.er1 >conftest.err
9901 rm -f conftest.er1
9902 cat conftest.err >&5
9903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9904 (exit $ac_status); } && {
9905 test -z "$ac_c_werror_flag" ||
9906 test ! -s conftest.err
9907 } && test -s conftest$ac_exeext &&
9908 $as_test_x conftest$ac_exeext; then
9909 ac_cv_func_shl_load=yes
9910 else
9911 echo "$as_me: failed program was:" >&5
9912 sed 's/^/| /' conftest.$ac_ext >&5
9913
9914 ac_cv_func_shl_load=no
9915 fi
9916
9917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9918 conftest$ac_exeext conftest.$ac_ext
9919 fi
9920 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9921 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
9922 if test $ac_cv_func_shl_load = yes; then
9923 lt_cv_dlopen="shl_load"
9924 else
9925 { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9926 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
9927 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9928 echo $ECHO_N "(cached) $ECHO_C" >&6
9929 else
9930 ac_check_lib_save_LIBS=$LIBS
9931 LIBS="-ldld $LIBS"
9932 cat >conftest.$ac_ext <<_ACEOF
9933 /* confdefs.h. */
9934 _ACEOF
9935 cat confdefs.h >>conftest.$ac_ext
9936 cat >>conftest.$ac_ext <<_ACEOF
9937 /* end confdefs.h. */
9938
9939 /* Override any GCC internal prototype to avoid an error.
9940 Use char because int might match the return type of a GCC
9941 builtin and then its argument prototype would still apply. */
9942 #ifdef __cplusplus
9943 extern "C"
9944 #endif
9945 char shl_load ();
9946 int
9947 main ()
9948 {
9949 return shl_load ();
9950 ;
9951 return 0;
9952 }
9953 _ACEOF
9954 rm -f conftest.$ac_objext conftest$ac_exeext
9955 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
9962 ac_status=$?
9963 grep -v '^ *+' conftest.er1 >conftest.err
9964 rm -f conftest.er1
9965 cat conftest.err >&5
9966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9967 (exit $ac_status); } && {
9968 test -z "$ac_c_werror_flag" ||
9969 test ! -s conftest.err
9970 } && test -s conftest$ac_exeext &&
9971 $as_test_x conftest$ac_exeext; then
9972 ac_cv_lib_dld_shl_load=yes
9973 else
9974 echo "$as_me: failed program was:" >&5
9975 sed 's/^/| /' conftest.$ac_ext >&5
9976
9977 ac_cv_lib_dld_shl_load=no
9978 fi
9979
9980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9981 conftest$ac_exeext conftest.$ac_ext
9982 LIBS=$ac_check_lib_save_LIBS
9983 fi
9984 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9985 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
9986 if test $ac_cv_lib_dld_shl_load = yes; then
9987 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9988 else
9989 { echo "$as_me:$LINENO: checking for dlopen" >&5
9990 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6; }
9991 if test "${ac_cv_func_dlopen+set}" = set; then
9992 echo $ECHO_N "(cached) $ECHO_C" >&6
9993 else
9994 cat >conftest.$ac_ext <<_ACEOF
9995 /* confdefs.h. */
9996 _ACEOF
9997 cat confdefs.h >>conftest.$ac_ext
9998 cat >>conftest.$ac_ext <<_ACEOF
9999 /* end confdefs.h. */
10000 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10001 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10002 #define dlopen innocuous_dlopen
10003
10004 /* System header to define __stub macros and hopefully few prototypes,
10005 which can conflict with char dlopen (); below.
10006 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10007 <limits.h> exists even on freestanding compilers. */
10008
10009 #ifdef __STDC__
10010 # include <limits.h>
10011 #else
10012 # include <assert.h>
10013 #endif
10014
10015 #undef dlopen
10016
10017 /* Override any GCC internal prototype to avoid an error.
10018 Use char because int might match the return type of a GCC
10019 builtin and then its argument prototype would still apply. */
10020 #ifdef __cplusplus
10021 extern "C"
10022 #endif
10023 char dlopen ();
10024 /* The GNU C library defines this for functions which it implements
10025 to always fail with ENOSYS. Some functions are actually named
10026 something starting with __ and the normal name is an alias. */
10027 #if defined __stub_dlopen || defined __stub___dlopen
10028 choke me
10029 #endif
10030
10031 int
10032 main ()
10033 {
10034 return dlopen ();
10035 ;
10036 return 0;
10037 }
10038 _ACEOF
10039 rm -f conftest.$ac_objext conftest$ac_exeext
10040 if { (ac_try="$ac_link"
10041 case "(($ac_try" in
10042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10043 *) ac_try_echo=$ac_try;;
10044 esac
10045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10046 (eval "$ac_link") 2>conftest.er1
10047 ac_status=$?
10048 grep -v '^ *+' conftest.er1 >conftest.err
10049 rm -f conftest.er1
10050 cat conftest.err >&5
10051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10052 (exit $ac_status); } && {
10053 test -z "$ac_c_werror_flag" ||
10054 test ! -s conftest.err
10055 } && test -s conftest$ac_exeext &&
10056 $as_test_x conftest$ac_exeext; then
10057 ac_cv_func_dlopen=yes
10058 else
10059 echo "$as_me: failed program was:" >&5
10060 sed 's/^/| /' conftest.$ac_ext >&5
10061
10062 ac_cv_func_dlopen=no
10063 fi
10064
10065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10066 conftest$ac_exeext conftest.$ac_ext
10067 fi
10068 { echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10069 echo "${ECHO_T}$ac_cv_func_dlopen" >&6; }
10070 if test $ac_cv_func_dlopen = yes; then
10071 lt_cv_dlopen="dlopen"
10072 else
10073 { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10074 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10075 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10076 echo $ECHO_N "(cached) $ECHO_C" >&6
10077 else
10078 ac_check_lib_save_LIBS=$LIBS
10079 LIBS="-ldl $LIBS"
10080 cat >conftest.$ac_ext <<_ACEOF
10081 /* confdefs.h. */
10082 _ACEOF
10083 cat confdefs.h >>conftest.$ac_ext
10084 cat >>conftest.$ac_ext <<_ACEOF
10085 /* end confdefs.h. */
10086
10087 /* Override any GCC internal prototype to avoid an error.
10088 Use char because int might match the return type of a GCC
10089 builtin and then its argument prototype would still apply. */
10090 #ifdef __cplusplus
10091 extern "C"
10092 #endif
10093 char dlopen ();
10094 int
10095 main ()
10096 {
10097 return dlopen ();
10098 ;
10099 return 0;
10100 }
10101 _ACEOF
10102 rm -f conftest.$ac_objext conftest$ac_exeext
10103 if { (ac_try="$ac_link"
10104 case "(($ac_try" in
10105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10106 *) ac_try_echo=$ac_try;;
10107 esac
10108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10109 (eval "$ac_link") 2>conftest.er1
10110 ac_status=$?
10111 grep -v '^ *+' conftest.er1 >conftest.err
10112 rm -f conftest.er1
10113 cat conftest.err >&5
10114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10115 (exit $ac_status); } && {
10116 test -z "$ac_c_werror_flag" ||
10117 test ! -s conftest.err
10118 } && test -s conftest$ac_exeext &&
10119 $as_test_x conftest$ac_exeext; then
10120 ac_cv_lib_dl_dlopen=yes
10121 else
10122 echo "$as_me: failed program was:" >&5
10123 sed 's/^/| /' conftest.$ac_ext >&5
10124
10125 ac_cv_lib_dl_dlopen=no
10126 fi
10127
10128 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10129 conftest$ac_exeext conftest.$ac_ext
10130 LIBS=$ac_check_lib_save_LIBS
10131 fi
10132 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10133 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10134 if test $ac_cv_lib_dl_dlopen = yes; then
10135 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10136 else
10137 { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10138 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10139 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10140 echo $ECHO_N "(cached) $ECHO_C" >&6
10141 else
10142 ac_check_lib_save_LIBS=$LIBS
10143 LIBS="-lsvld $LIBS"
10144 cat >conftest.$ac_ext <<_ACEOF
10145 /* confdefs.h. */
10146 _ACEOF
10147 cat confdefs.h >>conftest.$ac_ext
10148 cat >>conftest.$ac_ext <<_ACEOF
10149 /* end confdefs.h. */
10150
10151 /* Override any GCC internal prototype to avoid an error.
10152 Use char because int might match the return type of a GCC
10153 builtin and then its argument prototype would still apply. */
10154 #ifdef __cplusplus
10155 extern "C"
10156 #endif
10157 char dlopen ();
10158 int
10159 main ()
10160 {
10161 return dlopen ();
10162 ;
10163 return 0;
10164 }
10165 _ACEOF
10166 rm -f conftest.$ac_objext conftest$ac_exeext
10167 if { (ac_try="$ac_link"
10168 case "(($ac_try" in
10169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10170 *) ac_try_echo=$ac_try;;
10171 esac
10172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10173 (eval "$ac_link") 2>conftest.er1
10174 ac_status=$?
10175 grep -v '^ *+' conftest.er1 >conftest.err
10176 rm -f conftest.er1
10177 cat conftest.err >&5
10178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10179 (exit $ac_status); } && {
10180 test -z "$ac_c_werror_flag" ||
10181 test ! -s conftest.err
10182 } && test -s conftest$ac_exeext &&
10183 $as_test_x conftest$ac_exeext; then
10184 ac_cv_lib_svld_dlopen=yes
10185 else
10186 echo "$as_me: failed program was:" >&5
10187 sed 's/^/| /' conftest.$ac_ext >&5
10188
10189 ac_cv_lib_svld_dlopen=no
10190 fi
10191
10192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10193 conftest$ac_exeext conftest.$ac_ext
10194 LIBS=$ac_check_lib_save_LIBS
10195 fi
10196 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10197 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
10198 if test $ac_cv_lib_svld_dlopen = yes; then
10199 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10200 else
10201 { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10202 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
10203 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10204 echo $ECHO_N "(cached) $ECHO_C" >&6
10205 else
10206 ac_check_lib_save_LIBS=$LIBS
10207 LIBS="-ldld $LIBS"
10208 cat >conftest.$ac_ext <<_ACEOF
10209 /* confdefs.h. */
10210 _ACEOF
10211 cat confdefs.h >>conftest.$ac_ext
10212 cat >>conftest.$ac_ext <<_ACEOF
10213 /* end confdefs.h. */
10214
10215 /* Override any GCC internal prototype to avoid an error.
10216 Use char because int might match the return type of a GCC
10217 builtin and then its argument prototype would still apply. */
10218 #ifdef __cplusplus
10219 extern "C"
10220 #endif
10221 char dld_link ();
10222 int
10223 main ()
10224 {
10225 return dld_link ();
10226 ;
10227 return 0;
10228 }
10229 _ACEOF
10230 rm -f conftest.$ac_objext conftest$ac_exeext
10231 if { (ac_try="$ac_link"
10232 case "(($ac_try" in
10233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10234 *) ac_try_echo=$ac_try;;
10235 esac
10236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10237 (eval "$ac_link") 2>conftest.er1
10238 ac_status=$?
10239 grep -v '^ *+' conftest.er1 >conftest.err
10240 rm -f conftest.er1
10241 cat conftest.err >&5
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); } && {
10244 test -z "$ac_c_werror_flag" ||
10245 test ! -s conftest.err
10246 } && test -s conftest$ac_exeext &&
10247 $as_test_x conftest$ac_exeext; then
10248 ac_cv_lib_dld_dld_link=yes
10249 else
10250 echo "$as_me: failed program was:" >&5
10251 sed 's/^/| /' conftest.$ac_ext >&5
10252
10253 ac_cv_lib_dld_dld_link=no
10254 fi
10255
10256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10257 conftest$ac_exeext conftest.$ac_ext
10258 LIBS=$ac_check_lib_save_LIBS
10259 fi
10260 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10261 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
10262 if test $ac_cv_lib_dld_dld_link = yes; then
10263 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10264 fi
10265
10266
10267 fi
10268
10269
10270 fi
10271
10272
10273 fi
10274
10275
10276 fi
10277
10278
10279 fi
10280
10281 ;;
10282 esac
10283
10284 if test "x$lt_cv_dlopen" != xno; then
10285 enable_dlopen=yes
10286 else
10287 enable_dlopen=no
10288 fi
10289
10290 case $lt_cv_dlopen in
10291 dlopen)
10292 save_CPPFLAGS="$CPPFLAGS"
10293 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10294
10295 save_LDFLAGS="$LDFLAGS"
10296 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10297
10298 save_LIBS="$LIBS"
10299 LIBS="$lt_cv_dlopen_libs $LIBS"
10300
10301 { echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10302 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6; }
10303 if test "${lt_cv_dlopen_self+set}" = set; then
10304 echo $ECHO_N "(cached) $ECHO_C" >&6
10305 else
10306 if test "$cross_compiling" = yes; then :
10307 lt_cv_dlopen_self=cross
10308 else
10309 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10310 lt_status=$lt_dlunknown
10311 cat > conftest.$ac_ext <<EOF
10312 #line 10312 "configure"
10313 #include "confdefs.h"
10314
10315 #if HAVE_DLFCN_H
10316 #include <dlfcn.h>
10317 #endif
10318
10319 #include <stdio.h>
10320
10321 #ifdef RTLD_GLOBAL
10322 # define LT_DLGLOBAL RTLD_GLOBAL
10323 #else
10324 # ifdef DL_GLOBAL
10325 # define LT_DLGLOBAL DL_GLOBAL
10326 # else
10327 # define LT_DLGLOBAL 0
10328 # endif
10329 #endif
10330
10331 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10332 find out it does not work in some platform. */
10333 #ifndef LT_DLLAZY_OR_NOW
10334 # ifdef RTLD_LAZY
10335 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10336 # else
10337 # ifdef DL_LAZY
10338 # define LT_DLLAZY_OR_NOW DL_LAZY
10339 # else
10340 # ifdef RTLD_NOW
10341 # define LT_DLLAZY_OR_NOW RTLD_NOW
10342 # else
10343 # ifdef DL_NOW
10344 # define LT_DLLAZY_OR_NOW DL_NOW
10345 # else
10346 # define LT_DLLAZY_OR_NOW 0
10347 # endif
10348 # endif
10349 # endif
10350 # endif
10351 #endif
10352
10353 #ifdef __cplusplus
10354 extern "C" void exit (int);
10355 #endif
10356
10357 void fnord() { int i=42;}
10358 int main ()
10359 {
10360 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10361 int status = $lt_dlunknown;
10362
10363 if (self)
10364 {
10365 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10366 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10367 /* dlclose (self); */
10368 }
10369 else
10370 puts (dlerror ());
10371
10372 exit (status);
10373 }
10374 EOF
10375 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10376 (eval $ac_link) 2>&5
10377 ac_status=$?
10378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10379 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10380 (./conftest; exit; ) >&5 2>/dev/null
10381 lt_status=$?
10382 case x$lt_status in
10383 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10384 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10385 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10386 esac
10387 else :
10388 # compilation failed
10389 lt_cv_dlopen_self=no
10390 fi
10391 fi
10392 rm -fr conftest*
10393
10394
10395 fi
10396 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10397 echo "${ECHO_T}$lt_cv_dlopen_self" >&6; }
10398
10399 if test "x$lt_cv_dlopen_self" = xyes; then
10400 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10401 { echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10402 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6; }
10403 if test "${lt_cv_dlopen_self_static+set}" = set; then
10404 echo $ECHO_N "(cached) $ECHO_C" >&6
10405 else
10406 if test "$cross_compiling" = yes; then :
10407 lt_cv_dlopen_self_static=cross
10408 else
10409 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10410 lt_status=$lt_dlunknown
10411 cat > conftest.$ac_ext <<EOF
10412 #line 10412 "configure"
10413 #include "confdefs.h"
10414
10415 #if HAVE_DLFCN_H
10416 #include <dlfcn.h>
10417 #endif
10418
10419 #include <stdio.h>
10420
10421 #ifdef RTLD_GLOBAL
10422 # define LT_DLGLOBAL RTLD_GLOBAL
10423 #else
10424 # ifdef DL_GLOBAL
10425 # define LT_DLGLOBAL DL_GLOBAL
10426 # else
10427 # define LT_DLGLOBAL 0
10428 # endif
10429 #endif
10430
10431 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10432 find out it does not work in some platform. */
10433 #ifndef LT_DLLAZY_OR_NOW
10434 # ifdef RTLD_LAZY
10435 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10436 # else
10437 # ifdef DL_LAZY
10438 # define LT_DLLAZY_OR_NOW DL_LAZY
10439 # else
10440 # ifdef RTLD_NOW
10441 # define LT_DLLAZY_OR_NOW RTLD_NOW
10442 # else
10443 # ifdef DL_NOW
10444 # define LT_DLLAZY_OR_NOW DL_NOW
10445 # else
10446 # define LT_DLLAZY_OR_NOW 0
10447 # endif
10448 # endif
10449 # endif
10450 # endif
10451 #endif
10452
10453 #ifdef __cplusplus
10454 extern "C" void exit (int);
10455 #endif
10456
10457 void fnord() { int i=42;}
10458 int main ()
10459 {
10460 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10461 int status = $lt_dlunknown;
10462
10463 if (self)
10464 {
10465 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10466 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10467 /* dlclose (self); */
10468 }
10469 else
10470 puts (dlerror ());
10471
10472 exit (status);
10473 }
10474 EOF
10475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10476 (eval $ac_link) 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10480 (./conftest; exit; ) >&5 2>/dev/null
10481 lt_status=$?
10482 case x$lt_status in
10483 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10484 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10485 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10486 esac
10487 else :
10488 # compilation failed
10489 lt_cv_dlopen_self_static=no
10490 fi
10491 fi
10492 rm -fr conftest*
10493
10494
10495 fi
10496 { echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10497 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6; }
10498 fi
10499
10500 CPPFLAGS="$save_CPPFLAGS"
10501 LDFLAGS="$save_LDFLAGS"
10502 LIBS="$save_LIBS"
10503 ;;
10504 esac
10505
10506 case $lt_cv_dlopen_self in
10507 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10508 *) enable_dlopen_self=unknown ;;
10509 esac
10510
10511 case $lt_cv_dlopen_self_static in
10512 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10513 *) enable_dlopen_self_static=unknown ;;
10514 esac
10515 fi
10516
10517
10518 # Report which library types will actually be built
10519 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10520 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
10521 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
10522 echo "${ECHO_T}$can_build_shared" >&6; }
10523
10524 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10525 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
10526 test "$can_build_shared" = "no" && enable_shared=no
10527
10528 # On AIX, shared libraries and static libraries use the same namespace, and
10529 # are all built from PIC.
10530 case $host_os in
10531 aix3*)
10532 test "$enable_shared" = yes && enable_static=no
10533 if test -n "$RANLIB"; then
10534 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10535 postinstall_cmds='$RANLIB $lib'
10536 fi
10537 ;;
10538
10539 aix[4-9]*)
10540 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10541 test "$enable_shared" = yes && enable_static=no
10542 fi
10543 ;;
10544 esac
10545 { echo "$as_me:$LINENO: result: $enable_shared" >&5
10546 echo "${ECHO_T}$enable_shared" >&6; }
10547
10548 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10549 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
10550 # Make sure either enable_shared or enable_static is yes.
10551 test "$enable_shared" = yes || enable_static=yes
10552 { echo "$as_me:$LINENO: result: $enable_static" >&5
10553 echo "${ECHO_T}$enable_static" >&6; }
10554
10555 # The else clause should only fire when bootstrapping the
10556 # libtool distribution, otherwise you forgot to ship ltmain.sh
10557 # with your package, and you will get complaints that there are
10558 # no rules to generate ltmain.sh.
10559 if test -f "$ltmain"; then
10560 # See if we are running on zsh, and set the options which allow our commands through
10561 # without removal of \ escapes.
10562 if test -n "${ZSH_VERSION+set}" ; then
10563 setopt NO_GLOB_SUBST
10564 fi
10565 # Now quote all the things that may contain metacharacters while being
10566 # careful not to overquote the AC_SUBSTed values. We take copies of the
10567 # variables and quote the copies for generation of the libtool script.
10568 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10569 SED SHELL STRIP \
10570 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10571 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10572 deplibs_check_method reload_flag reload_cmds need_locks \
10573 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10574 lt_cv_sys_global_symbol_to_c_name_address \
10575 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10576 old_postinstall_cmds old_postuninstall_cmds \
10577 compiler \
10578 CC \
10579 LD \
10580 lt_prog_compiler_wl \
10581 lt_prog_compiler_pic \
10582 lt_prog_compiler_static \
10583 lt_prog_compiler_no_builtin_flag \
10584 export_dynamic_flag_spec \
10585 thread_safe_flag_spec \
10586 whole_archive_flag_spec \
10587 enable_shared_with_static_runtimes \
10588 old_archive_cmds \
10589 old_archive_from_new_cmds \
10590 predep_objects \
10591 postdep_objects \
10592 predeps \
10593 postdeps \
10594 compiler_lib_search_path \
10595 compiler_lib_search_dirs \
10596 archive_cmds \
10597 archive_expsym_cmds \
10598 postinstall_cmds \
10599 postuninstall_cmds \
10600 old_archive_from_expsyms_cmds \
10601 allow_undefined_flag \
10602 no_undefined_flag \
10603 export_symbols_cmds \
10604 hardcode_libdir_flag_spec \
10605 hardcode_libdir_flag_spec_ld \
10606 hardcode_libdir_separator \
10607 hardcode_automatic \
10608 module_cmds \
10609 module_expsym_cmds \
10610 lt_cv_prog_compiler_c_o \
10611 fix_srcfile_path \
10612 exclude_expsyms \
10613 include_expsyms; do
10614
10615 case $var in
10616 old_archive_cmds | \
10617 old_archive_from_new_cmds | \
10618 archive_cmds | \
10619 archive_expsym_cmds | \
10620 module_cmds | \
10621 module_expsym_cmds | \
10622 old_archive_from_expsyms_cmds | \
10623 export_symbols_cmds | \
10624 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10625 postinstall_cmds | postuninstall_cmds | \
10626 old_postinstall_cmds | old_postuninstall_cmds | \
10627 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10628 # Double-quote double-evaled strings.
10629 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10630 ;;
10631 *)
10632 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10633 ;;
10634 esac
10635 done
10636
10637 case $lt_echo in
10638 *'\$0 --fallback-echo"')
10639 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10640 ;;
10641 esac
10642
10643 cfgfile="${ofile}T"
10644 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10645 $rm -f "$cfgfile"
10646 { echo "$as_me:$LINENO: creating $ofile" >&5
10647 echo "$as_me: creating $ofile" >&6;}
10648
10649 cat <<__EOF__ >> "$cfgfile"
10650 #! $SHELL
10651
10652 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10653 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10654 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10655 #
10656 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10657 # Free Software Foundation, Inc.
10658 #
10659 # This file is part of GNU Libtool:
10660 # Originally by Gordon Matzigkeit <[email protected]>, 1996
10661 #
10662 # This program is free software; you can redistribute it and/or modify
10663 # it under the terms of the GNU General Public License as published by
10664 # the Free Software Foundation; either version 2 of the License, or
10665 # (at your option) any later version.
10666 #
10667 # This program is distributed in the hope that it will be useful, but
10668 # WITHOUT ANY WARRANTY; without even the implied warranty of
10669 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10670 # General Public License for more details.
10671 #
10672 # You should have received a copy of the GNU General Public License
10673 # along with this program; if not, write to the Free Software
10674 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10675 #
10676 # As a special exception to the GNU General Public License, if you
10677 # distribute this file as part of a program that contains a
10678 # configuration script generated by Autoconf, you may include it under
10679 # the same distribution terms that you use for the rest of that program.
10680
10681 # A sed program that does not truncate output.
10682 SED=$lt_SED
10683
10684 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10685 Xsed="$SED -e 1s/^X//"
10686
10687 # The HP-UX ksh and POSIX shell print the target directory to stdout
10688 # if CDPATH is set.
10689 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10690
10691 # The names of the tagged configurations supported by this script.
10692 available_tags=
10693
10694 # ### BEGIN LIBTOOL CONFIG
10695
10696 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10697
10698 # Shell to use when invoking shell scripts.
10699 SHELL=$lt_SHELL
10700
10701 # Whether or not to build shared libraries.
10702 build_libtool_libs=$enable_shared
10703
10704 # Whether or not to build static libraries.
10705 build_old_libs=$enable_static
10706
10707 # Whether or not to add -lc for building shared libraries.
10708 build_libtool_need_lc=$archive_cmds_need_lc
10709
10710 # Whether or not to disallow shared libs when runtime libs are static
10711 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10712
10713 # Whether or not to optimize for fast installation.
10714 fast_install=$enable_fast_install
10715
10716 # The host system.
10717 host_alias=$host_alias
10718 host=$host
10719 host_os=$host_os
10720
10721 # The build system.
10722 build_alias=$build_alias
10723 build=$build
10724 build_os=$build_os
10725
10726 # An echo program that does not interpret backslashes.
10727 echo=$lt_echo
10728
10729 # The archiver.
10730 AR=$lt_AR
10731 AR_FLAGS=$lt_AR_FLAGS
10732
10733 # A C compiler.
10734 LTCC=$lt_LTCC
10735
10736 # LTCC compiler flags.
10737 LTCFLAGS=$lt_LTCFLAGS
10738
10739 # A language-specific compiler.
10740 CC=$lt_compiler
10741
10742 # Is the compiler the GNU C compiler?
10743 with_gcc=$GCC
10744
10745 # An ERE matcher.
10746 EGREP=$lt_EGREP
10747
10748 # The linker used to build libraries.
10749 LD=$lt_LD
10750
10751 # Whether we need hard or soft links.
10752 LN_S=$lt_LN_S
10753
10754 # A BSD-compatible nm program.
10755 NM=$lt_NM
10756
10757 # A symbol stripping program
10758 STRIP=$lt_STRIP
10759
10760 # Used to examine libraries when file_magic_cmd begins "file"
10761 MAGIC_CMD=$MAGIC_CMD
10762
10763 # Used on cygwin: DLL creation program.
10764 DLLTOOL="$DLLTOOL"
10765
10766 # Used on cygwin: object dumper.
10767 OBJDUMP="$OBJDUMP"
10768
10769 # Used on cygwin: assembler.
10770 AS="$AS"
10771
10772 # The name of the directory that contains temporary libtool files.
10773 objdir=$objdir
10774
10775 # How to create reloadable object files.
10776 reload_flag=$lt_reload_flag
10777 reload_cmds=$lt_reload_cmds
10778
10779 # How to pass a linker flag through the compiler.
10780 wl=$lt_lt_prog_compiler_wl
10781
10782 # Object file suffix (normally "o").
10783 objext="$ac_objext"
10784
10785 # Old archive suffix (normally "a").
10786 libext="$libext"
10787
10788 # Shared library suffix (normally ".so").
10789 shrext_cmds='$shrext_cmds'
10790
10791 # Executable file suffix (normally "").
10792 exeext="$exeext"
10793
10794 # Additional compiler flags for building library objects.
10795 pic_flag=$lt_lt_prog_compiler_pic
10796 pic_mode=$pic_mode
10797
10798 # What is the maximum length of a command?
10799 max_cmd_len=$lt_cv_sys_max_cmd_len
10800
10801 # Does compiler simultaneously support -c and -o options?
10802 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10803
10804 # Must we lock files when doing compilation?
10805 need_locks=$lt_need_locks
10806
10807 # Do we need the lib prefix for modules?
10808 need_lib_prefix=$need_lib_prefix
10809
10810 # Do we need a version for libraries?
10811 need_version=$need_version
10812
10813 # Whether dlopen is supported.
10814 dlopen_support=$enable_dlopen
10815
10816 # Whether dlopen of programs is supported.
10817 dlopen_self=$enable_dlopen_self
10818
10819 # Whether dlopen of statically linked programs is supported.
10820 dlopen_self_static=$enable_dlopen_self_static
10821
10822 # Compiler flag to prevent dynamic linking.
10823 link_static_flag=$lt_lt_prog_compiler_static
10824
10825 # Compiler flag to turn off builtin functions.
10826 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10827
10828 # Compiler flag to allow reflexive dlopens.
10829 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10830
10831 # Compiler flag to generate shared objects directly from archives.
10832 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10833
10834 # Compiler flag to generate thread-safe objects.
10835 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10836
10837 # Library versioning type.
10838 version_type=$version_type
10839
10840 # Format of library name prefix.
10841 libname_spec=$lt_libname_spec
10842
10843 # List of archive names. First name is the real one, the rest are links.
10844 # The last name is the one that the linker finds with -lNAME.
10845 library_names_spec=$lt_library_names_spec
10846
10847 # The coded name of the library, if different from the real name.
10848 soname_spec=$lt_soname_spec
10849
10850 # Commands used to build and install an old-style archive.
10851 RANLIB=$lt_RANLIB
10852 old_archive_cmds=$lt_old_archive_cmds
10853 old_postinstall_cmds=$lt_old_postinstall_cmds
10854 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10855
10856 # Create an old-style archive from a shared archive.
10857 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10858
10859 # Create a temporary old-style archive to link instead of a shared archive.
10860 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10861
10862 # Commands used to build and install a shared archive.
10863 archive_cmds=$lt_archive_cmds
10864 archive_expsym_cmds=$lt_archive_expsym_cmds
10865 postinstall_cmds=$lt_postinstall_cmds
10866 postuninstall_cmds=$lt_postuninstall_cmds
10867
10868 # Commands used to build a loadable module (assumed same as above if empty)
10869 module_cmds=$lt_module_cmds
10870 module_expsym_cmds=$lt_module_expsym_cmds
10871
10872 # Commands to strip libraries.
10873 old_striplib=$lt_old_striplib
10874 striplib=$lt_striplib
10875
10876 # Dependencies to place before the objects being linked to create a
10877 # shared library.
10878 predep_objects=$lt_predep_objects
10879
10880 # Dependencies to place after the objects being linked to create a
10881 # shared library.
10882 postdep_objects=$lt_postdep_objects
10883
10884 # Dependencies to place before the objects being linked to create a
10885 # shared library.
10886 predeps=$lt_predeps
10887
10888 # Dependencies to place after the objects being linked to create a
10889 # shared library.
10890 postdeps=$lt_postdeps
10891
10892 # The directories searched by this compiler when creating a shared
10893 # library
10894 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10895
10896 # The library search path used internally by the compiler when linking
10897 # a shared library.
10898 compiler_lib_search_path=$lt_compiler_lib_search_path
10899
10900 # Method to check whether dependent libraries are shared objects.
10901 deplibs_check_method=$lt_deplibs_check_method
10902
10903 # Command to use when deplibs_check_method == file_magic.
10904 file_magic_cmd=$lt_file_magic_cmd
10905
10906 # Flag that allows shared libraries with undefined symbols to be built.
10907 allow_undefined_flag=$lt_allow_undefined_flag
10908
10909 # Flag that forces no undefined symbols.
10910 no_undefined_flag=$lt_no_undefined_flag
10911
10912 # Commands used to finish a libtool library installation in a directory.
10913 finish_cmds=$lt_finish_cmds
10914
10915 # Same as above, but a single script fragment to be evaled but not shown.
10916 finish_eval=$lt_finish_eval
10917
10918 # Take the output of nm and produce a listing of raw symbols and C names.
10919 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10920
10921 # Transform the output of nm in a proper C declaration
10922 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10923
10924 # Transform the output of nm in a C name address pair
10925 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10926
10927 # This is the shared library runtime path variable.
10928 runpath_var=$runpath_var
10929
10930 # This is the shared library path variable.
10931 shlibpath_var=$shlibpath_var
10932
10933 # Is shlibpath searched before the hard-coded library search path?
10934 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10935
10936 # How to hardcode a shared library path into an executable.
10937 hardcode_action=$hardcode_action
10938
10939 # Whether we should hardcode library paths into libraries.
10940 hardcode_into_libs=$hardcode_into_libs
10941
10942 # Flag to hardcode \$libdir into a binary during linking.
10943 # This must work even if \$libdir does not exist.
10944 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10945
10946 # If ld is used when linking, flag to hardcode \$libdir into
10947 # a binary during linking. This must work even if \$libdir does
10948 # not exist.
10949 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10950
10951 # Whether we need a single -rpath flag with a separated argument.
10952 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10953
10954 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10955 # resulting binary.
10956 hardcode_direct=$hardcode_direct
10957
10958 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10959 # resulting binary.
10960 hardcode_minus_L=$hardcode_minus_L
10961
10962 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10963 # the resulting binary.
10964 hardcode_shlibpath_var=$hardcode_shlibpath_var
10965
10966 # Set to yes if building a shared library automatically hardcodes DIR into the library
10967 # and all subsequent libraries and executables linked against it.
10968 hardcode_automatic=$hardcode_automatic
10969
10970 # Variables whose values should be saved in libtool wrapper scripts and
10971 # restored at relink time.
10972 variables_saved_for_relink="$variables_saved_for_relink"
10973
10974 # Whether libtool must link a program against all its dependency libraries.
10975 link_all_deplibs=$link_all_deplibs
10976
10977 # Compile-time system search path for libraries
10978 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10979
10980 # Run-time system search path for libraries
10981 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10982
10983 # Fix the shell variable \$srcfile for the compiler.
10984 fix_srcfile_path=$lt_fix_srcfile_path
10985
10986 # Set to yes if exported symbols are required.
10987 always_export_symbols=$always_export_symbols
10988
10989 # The commands to list exported symbols.
10990 export_symbols_cmds=$lt_export_symbols_cmds
10991
10992 # The commands to extract the exported symbol list from a shared archive.
10993 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10994
10995 # Symbols that should not be listed in the preloaded symbols.
10996 exclude_expsyms=$lt_exclude_expsyms
10997
10998 # Symbols that must always be exported.
10999 include_expsyms=$lt_include_expsyms
11000
11001 # ### END LIBTOOL CONFIG
11002
11003 __EOF__
11004
11005
11006 case $host_os in
11007 aix3*)
11008 cat <<\EOF >> "$cfgfile"
11009
11010 # AIX sometimes has problems with the GCC collect2 program. For some
11011 # reason, if we set the COLLECT_NAMES environment variable, the problems
11012 # vanish in a puff of smoke.
11013 if test "X${COLLECT_NAMES+set}" != Xset; then
11014 COLLECT_NAMES=
11015 export COLLECT_NAMES
11016 fi
11017 EOF
11018 ;;
11019 esac
11020
11021 # We use sed instead of cat because bash on DJGPP gets confused if
11022 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11023 # text mode, it properly converts lines to CR/LF. This bash problem
11024 # is reportedly fixed, but why not run on old versions too?
11025 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11026
11027 mv -f "$cfgfile" "$ofile" || \
11028 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11029 chmod +x "$ofile"
11030
11031 else
11032 # If there is no Makefile yet, we rely on a make rule to execute
11033 # `config.status --recheck' to rerun these tests and create the
11034 # libtool script then.
11035 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11036 if test -f "$ltmain_in"; then
11037 test -f Makefile && make "$ltmain"
11038 fi
11039 fi
11040
11041
11042 ac_ext=c
11043 ac_cpp='$CPP $CPPFLAGS'
11044 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11045 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11046 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11047
11048 CC="$lt_save_CC"
11049
11050
11051 # Check whether --with-tags was given.
11052 if test "${with_tags+set}" = set; then
11053 withval=$with_tags; tagnames="$withval"
11054 fi
11055
11056
11057 if test -f "$ltmain" && test -n "$tagnames"; then
11058 if test ! -f "${ofile}"; then
11059 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11060 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11061 fi
11062
11063 if test -z "$LTCC"; then
11064 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11065 if test -z "$LTCC"; then
11066 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11067 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11068 else
11069 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11070 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11071 fi
11072 fi
11073 if test -z "$LTCFLAGS"; then
11074 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11075 fi
11076
11077 # Extract list of available tagged configurations in $ofile.
11078 # Note that this assumes the entire list is on one line.
11079 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11080
11081 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11082 for tagname in $tagnames; do
11083 IFS="$lt_save_ifs"
11084 # Check whether tagname contains only valid characters
11085 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11086 "") ;;
11087 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11088 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11089 { (exit 1); exit 1; }; }
11090 ;;
11091 esac
11092
11093 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11094 then
11095 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11096 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11097 { (exit 1); exit 1; }; }
11098 fi
11099
11100 # Update the list of available tags.
11101 if test -n "$tagname"; then
11102 echo appending configuration tag \"$tagname\" to $ofile
11103
11104 case $tagname in
11105 CXX)
11106 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11107 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11108 (test "X$CXX" != "Xg++"))) ; then
11109 ac_ext=cpp
11110 ac_cpp='$CXXCPP $CPPFLAGS'
11111 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11112 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11113 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11114
11115
11116
11117
11118 archive_cmds_need_lc_CXX=no
11119 allow_undefined_flag_CXX=
11120 always_export_symbols_CXX=no
11121 archive_expsym_cmds_CXX=
11122 export_dynamic_flag_spec_CXX=
11123 hardcode_direct_CXX=no
11124 hardcode_libdir_flag_spec_CXX=
11125 hardcode_libdir_flag_spec_ld_CXX=
11126 hardcode_libdir_separator_CXX=
11127 hardcode_minus_L_CXX=no
11128 hardcode_shlibpath_var_CXX=unsupported
11129 hardcode_automatic_CXX=no
11130 module_cmds_CXX=
11131 module_expsym_cmds_CXX=
11132 link_all_deplibs_CXX=unknown
11133 old_archive_cmds_CXX=$old_archive_cmds
11134 no_undefined_flag_CXX=
11135 whole_archive_flag_spec_CXX=
11136 enable_shared_with_static_runtimes_CXX=no
11137
11138 # Dependencies to place before and after the object being linked:
11139 predep_objects_CXX=
11140 postdep_objects_CXX=
11141 predeps_CXX=
11142 postdeps_CXX=
11143 compiler_lib_search_path_CXX=
11144 compiler_lib_search_dirs_CXX=
11145
11146 # Source file extension for C++ test sources.
11147 ac_ext=cpp
11148
11149 # Object file extension for compiled C++ test sources.
11150 objext=o
11151 objext_CXX=$objext
11152
11153 # Code to be used in simple compile tests
11154 lt_simple_compile_test_code="int some_variable = 0;"
11155
11156 # Code to be used in simple link tests
11157 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11158
11159 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11160
11161 # If no C compiler was specified, use CC.
11162 LTCC=${LTCC-"$CC"}
11163
11164 # If no C compiler flags were specified, use CFLAGS.
11165 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11166
11167 # Allow CC to be a program name with arguments.
11168 compiler=$CC
11169
11170
11171 # save warnings/boilerplate of simple test code
11172 ac_outfile=conftest.$ac_objext
11173 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11174 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11175 _lt_compiler_boilerplate=`cat conftest.err`
11176 $rm conftest*
11177
11178 ac_outfile=conftest.$ac_objext
11179 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11180 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11181 _lt_linker_boilerplate=`cat conftest.err`
11182 $rm -r conftest*
11183
11184
11185 # Allow CC to be a program name with arguments.
11186 lt_save_CC=$CC
11187 lt_save_LD=$LD
11188 lt_save_GCC=$GCC
11189 GCC=$GXX
11190 lt_save_with_gnu_ld=$with_gnu_ld
11191 lt_save_path_LD=$lt_cv_path_LD
11192 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11193 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11194 else
11195 $as_unset lt_cv_prog_gnu_ld
11196 fi
11197 if test -n "${lt_cv_path_LDCXX+set}"; then
11198 lt_cv_path_LD=$lt_cv_path_LDCXX
11199 else
11200 $as_unset lt_cv_path_LD
11201 fi
11202 test -z "${LDCXX+set}" || LD=$LDCXX
11203 CC=${CXX-"c++"}
11204 compiler=$CC
11205 compiler_CXX=$CC
11206 for cc_temp in $compiler""; do
11207 case $cc_temp in
11208 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11209 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11210 \-*) ;;
11211 *) break;;
11212 esac
11213 done
11214 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11215
11216
11217 # We don't want -fno-exception wen compiling C++ code, so set the
11218 # no_builtin_flag separately
11219 if test "$GXX" = yes; then
11220 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11221 else
11222 lt_prog_compiler_no_builtin_flag_CXX=
11223 fi
11224
11225 if test "$GXX" = yes; then
11226 # Set up default GNU C++ configuration
11227
11228
11229 # Check whether --with-gnu-ld was given.
11230 if test "${with_gnu_ld+set}" = set; then
11231 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11232 else
11233 with_gnu_ld=no
11234 fi
11235
11236 ac_prog=ld
11237 if test "$GCC" = yes; then
11238 # Check if gcc -print-prog-name=ld gives a path.
11239 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11240 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
11241 case $host in
11242 *-*-mingw*)
11243 # gcc leaves a trailing carriage return which upsets mingw
11244 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11245 *)
11246 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11247 esac
11248 case $ac_prog in
11249 # Accept absolute paths.
11250 [\\/]* | ?:[\\/]*)
11251 re_direlt='/[^/][^/]*/\.\./'
11252 # Canonicalize the pathname of ld
11253 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11254 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11255 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11256 done
11257 test -z "$LD" && LD="$ac_prog"
11258 ;;
11259 "")
11260 # If it fails, then pretend we aren't using GCC.
11261 ac_prog=ld
11262 ;;
11263 *)
11264 # If it is relative, then search for the first ld in PATH.
11265 with_gnu_ld=unknown
11266 ;;
11267 esac
11268 elif test "$with_gnu_ld" = yes; then
11269 { echo "$as_me:$LINENO: checking for GNU ld" >&5
11270 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
11271 else
11272 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11273 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
11274 fi
11275 if test "${lt_cv_path_LD+set}" = set; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278 if test -z "$LD"; then
11279 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11280 for ac_dir in $PATH; do
11281 IFS="$lt_save_ifs"
11282 test -z "$ac_dir" && ac_dir=.
11283 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11284 lt_cv_path_LD="$ac_dir/$ac_prog"
11285 # Check to see if the program is GNU ld. I'd rather use --version,
11286 # but apparently some variants of GNU ld only accept -v.
11287 # Break only if it was the GNU/non-GNU ld that we prefer.
11288 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11289 *GNU* | *'with BFD'*)
11290 test "$with_gnu_ld" != no && break
11291 ;;
11292 *)
11293 test "$with_gnu_ld" != yes && break
11294 ;;
11295 esac
11296 fi
11297 done
11298 IFS="$lt_save_ifs"
11299 else
11300 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11301 fi
11302 fi
11303
11304 LD="$lt_cv_path_LD"
11305 if test -n "$LD"; then
11306 { echo "$as_me:$LINENO: result: $LD" >&5
11307 echo "${ECHO_T}$LD" >&6; }
11308 else
11309 { echo "$as_me:$LINENO: result: no" >&5
11310 echo "${ECHO_T}no" >&6; }
11311 fi
11312 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11313 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11314 { (exit 1); exit 1; }; }
11315 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11316 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
11317 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11318 echo $ECHO_N "(cached) $ECHO_C" >&6
11319 else
11320 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11321 case `$LD -v 2>&1 </dev/null` in
11322 *GNU* | *'with BFD'*)
11323 lt_cv_prog_gnu_ld=yes
11324 ;;
11325 *)
11326 lt_cv_prog_gnu_ld=no
11327 ;;
11328 esac
11329 fi
11330 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11331 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
11332 with_gnu_ld=$lt_cv_prog_gnu_ld
11333
11334
11335
11336 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11337 # archiving commands below assume that GNU ld is being used.
11338 if test "$with_gnu_ld" = yes; then
11339 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11340 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'
11341
11342 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11343 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11344
11345 # If archive_cmds runs LD, not CC, wlarc should be empty
11346 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11347 # investigate it a little bit more. (MM)
11348 wlarc='${wl}'
11349
11350 # ancient GNU ld didn't support --whole-archive et. al.
11351 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11352 grep 'no-whole-archive' > /dev/null; then
11353 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11354 else
11355 whole_archive_flag_spec_CXX=
11356 fi
11357 else
11358 with_gnu_ld=no
11359 wlarc=
11360
11361 # A generic and very simple default shared library creation
11362 # command for GNU C++ for the case where it uses the native
11363 # linker, instead of GNU ld. If possible, this setting should
11364 # overridden to take advantage of the native linker features on
11365 # the platform it is being used on.
11366 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11367 fi
11368
11369 # Commands to make compiler produce verbose output that lists
11370 # what "hidden" libraries, object files and flags are used when
11371 # linking a shared library.
11372 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11373
11374 else
11375 GXX=no
11376 with_gnu_ld=no
11377 wlarc=
11378 fi
11379
11380 # PORTME: fill in a description of your system's C++ link characteristics
11381 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11382 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
11383 ld_shlibs_CXX=yes
11384 case $host_os in
11385 aix3*)
11386 # FIXME: insert proper C++ library support
11387 ld_shlibs_CXX=no
11388 ;;
11389 aix[4-9]*)
11390 if test "$host_cpu" = ia64; then
11391 # On IA64, the linker does run time linking by default, so we don't
11392 # have to do anything special.
11393 aix_use_runtimelinking=no
11394 exp_sym_flag='-Bexport'
11395 no_entry_flag=""
11396 else
11397 aix_use_runtimelinking=no
11398
11399 # Test if we are trying to use run time linking or normal
11400 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11401 # need to do runtime linking.
11402 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11403 for ld_flag in $LDFLAGS; do
11404 case $ld_flag in
11405 *-brtl*)
11406 aix_use_runtimelinking=yes
11407 break
11408 ;;
11409 esac
11410 done
11411 ;;
11412 esac
11413
11414 exp_sym_flag='-bexport'
11415 no_entry_flag='-bnoentry'
11416 fi
11417
11418 # When large executables or shared objects are built, AIX ld can
11419 # have problems creating the table of contents. If linking a library
11420 # or program results in "error TOC overflow" add -mminimal-toc to
11421 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11422 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11423
11424 archive_cmds_CXX=''
11425 hardcode_direct_CXX=yes
11426 hardcode_libdir_separator_CXX=':'
11427 link_all_deplibs_CXX=yes
11428
11429 if test "$GXX" = yes; then
11430 case $host_os in aix4.[012]|aix4.[012].*)
11431 # We only want to do this on AIX 4.2 and lower, the check
11432 # below for broken collect2 doesn't work under 4.3+
11433 collect2name=`${CC} -print-prog-name=collect2`
11434 if test -f "$collect2name" && \
11435 strings "$collect2name" | grep resolve_lib_name >/dev/null
11436 then
11437 # We have reworked collect2
11438 :
11439 else
11440 # We have old collect2
11441 hardcode_direct_CXX=unsupported
11442 # It fails to find uninstalled libraries when the uninstalled
11443 # path is not listed in the libpath. Setting hardcode_minus_L
11444 # to unsupported forces relinking
11445 hardcode_minus_L_CXX=yes
11446 hardcode_libdir_flag_spec_CXX='-L$libdir'
11447 hardcode_libdir_separator_CXX=
11448 fi
11449 ;;
11450 esac
11451 shared_flag='-shared'
11452 if test "$aix_use_runtimelinking" = yes; then
11453 shared_flag="$shared_flag "'${wl}-G'
11454 fi
11455 else
11456 # not using gcc
11457 if test "$host_cpu" = ia64; then
11458 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11459 # chokes on -Wl,-G. The following line is correct:
11460 shared_flag='-G'
11461 else
11462 if test "$aix_use_runtimelinking" = yes; then
11463 shared_flag='${wl}-G'
11464 else
11465 shared_flag='${wl}-bM:SRE'
11466 fi
11467 fi
11468 fi
11469
11470 # It seems that -bexpall does not export symbols beginning with
11471 # underscore (_), so it is better to generate a list of symbols to export.
11472 always_export_symbols_CXX=yes
11473 if test "$aix_use_runtimelinking" = yes; then
11474 # Warning - without using the other runtime loading flags (-brtl),
11475 # -berok will link without error, but may produce a broken library.
11476 allow_undefined_flag_CXX='-berok'
11477 # Determine the default libpath from the value encoded in an empty executable.
11478 cat >conftest.$ac_ext <<_ACEOF
11479 /* confdefs.h. */
11480 _ACEOF
11481 cat confdefs.h >>conftest.$ac_ext
11482 cat >>conftest.$ac_ext <<_ACEOF
11483 /* end confdefs.h. */
11484
11485 int
11486 main ()
11487 {
11488
11489 ;
11490 return 0;
11491 }
11492 _ACEOF
11493 rm -f conftest.$ac_objext conftest$ac_exeext
11494 if { (ac_try="$ac_link"
11495 case "(($ac_try" in
11496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11497 *) ac_try_echo=$ac_try;;
11498 esac
11499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11500 (eval "$ac_link") 2>conftest.er1
11501 ac_status=$?
11502 grep -v '^ *+' conftest.er1 >conftest.err
11503 rm -f conftest.er1
11504 cat conftest.err >&5
11505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11506 (exit $ac_status); } && {
11507 test -z "$ac_cxx_werror_flag" ||
11508 test ! -s conftest.err
11509 } && test -s conftest$ac_exeext &&
11510 $as_test_x conftest$ac_exeext; then
11511
11512 lt_aix_libpath_sed='
11513 /Import File Strings/,/^$/ {
11514 /^0/ {
11515 s/^0 *\(.*\)$/\1/
11516 p
11517 }
11518 }'
11519 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11520 # Check for a 64-bit object if we didn't find anything.
11521 if test -z "$aix_libpath"; then
11522 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11523 fi
11524 else
11525 echo "$as_me: failed program was:" >&5
11526 sed 's/^/| /' conftest.$ac_ext >&5
11527
11528
11529 fi
11530
11531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11532 conftest$ac_exeext conftest.$ac_ext
11533 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11534
11535 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11536
11537 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"
11538 else
11539 if test "$host_cpu" = ia64; then
11540 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11541 allow_undefined_flag_CXX="-z nodefs"
11542 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"
11543 else
11544 # Determine the default libpath from the value encoded in an empty executable.
11545 cat >conftest.$ac_ext <<_ACEOF
11546 /* confdefs.h. */
11547 _ACEOF
11548 cat confdefs.h >>conftest.$ac_ext
11549 cat >>conftest.$ac_ext <<_ACEOF
11550 /* end confdefs.h. */
11551
11552 int
11553 main ()
11554 {
11555
11556 ;
11557 return 0;
11558 }
11559 _ACEOF
11560 rm -f conftest.$ac_objext conftest$ac_exeext
11561 if { (ac_try="$ac_link"
11562 case "(($ac_try" in
11563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11564 *) ac_try_echo=$ac_try;;
11565 esac
11566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11567 (eval "$ac_link") 2>conftest.er1
11568 ac_status=$?
11569 grep -v '^ *+' conftest.er1 >conftest.err
11570 rm -f conftest.er1
11571 cat conftest.err >&5
11572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11573 (exit $ac_status); } && {
11574 test -z "$ac_cxx_werror_flag" ||
11575 test ! -s conftest.err
11576 } && test -s conftest$ac_exeext &&
11577 $as_test_x conftest$ac_exeext; then
11578
11579 lt_aix_libpath_sed='
11580 /Import File Strings/,/^$/ {
11581 /^0/ {
11582 s/^0 *\(.*\)$/\1/
11583 p
11584 }
11585 }'
11586 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11587 # Check for a 64-bit object if we didn't find anything.
11588 if test -z "$aix_libpath"; then
11589 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11590 fi
11591 else
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11594
11595
11596 fi
11597
11598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11599 conftest$ac_exeext conftest.$ac_ext
11600 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11601
11602 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11603 # Warning - without using the other run time loading flags,
11604 # -berok will link without error, but may produce a broken library.
11605 no_undefined_flag_CXX=' ${wl}-bernotok'
11606 allow_undefined_flag_CXX=' ${wl}-berok'
11607 # Exported symbols can be pulled into shared objects from archives
11608 whole_archive_flag_spec_CXX='$convenience'
11609 archive_cmds_need_lc_CXX=yes
11610 # This is similar to how AIX traditionally builds its shared libraries.
11611 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'
11612 fi
11613 fi
11614 ;;
11615
11616 beos*)
11617 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11618 allow_undefined_flag_CXX=unsupported
11619 # Joseph Beckenbach <[email protected]> says some releases of gcc
11620 # support --undefined. This deserves some investigation. FIXME
11621 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11622 else
11623 ld_shlibs_CXX=no
11624 fi
11625 ;;
11626
11627 chorus*)
11628 case $cc_basename in
11629 *)
11630 # FIXME: insert proper C++ library support
11631 ld_shlibs_CXX=no
11632 ;;
11633 esac
11634 ;;
11635
11636 cygwin* | mingw* | pw32*)
11637 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11638 # as there is no search path for DLLs.
11639 hardcode_libdir_flag_spec_CXX='-L$libdir'
11640 allow_undefined_flag_CXX=unsupported
11641 always_export_symbols_CXX=no
11642 enable_shared_with_static_runtimes_CXX=yes
11643
11644 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11645 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'
11646 # If the export-symbols file already is a .def file (1st line
11647 # is EXPORTS), use it as is; otherwise, prepend...
11648 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11649 cp $export_symbols $output_objdir/$soname.def;
11650 else
11651 echo EXPORTS > $output_objdir/$soname.def;
11652 cat $export_symbols >> $output_objdir/$soname.def;
11653 fi~
11654 $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'
11655 else
11656 ld_shlibs_CXX=no
11657 fi
11658 ;;
11659 darwin* | rhapsody*)
11660 archive_cmds_need_lc_CXX=no
11661 hardcode_direct_CXX=no
11662 hardcode_automatic_CXX=yes
11663 hardcode_shlibpath_var_CXX=unsupported
11664 whole_archive_flag_spec_CXX=''
11665 link_all_deplibs_CXX=yes
11666 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11667 if test "$GXX" = yes ; then
11668 output_verbose_link_cmd='echo'
11669 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11670 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11671 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11672 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11673 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11674 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11675 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11676 fi
11677 else
11678 case $cc_basename in
11679 xlc*)
11680 output_verbose_link_cmd='echo'
11681 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11682 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11683 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11684 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11685 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}'
11686 ;;
11687 *)
11688 ld_shlibs_CXX=no
11689 ;;
11690 esac
11691 fi
11692 ;;
11693
11694 dgux*)
11695 case $cc_basename in
11696 ec++*)
11697 # FIXME: insert proper C++ library support
11698 ld_shlibs_CXX=no
11699 ;;
11700 ghcx*)
11701 # Green Hills C++ Compiler
11702 # FIXME: insert proper C++ library support
11703 ld_shlibs_CXX=no
11704 ;;
11705 *)
11706 # FIXME: insert proper C++ library support
11707 ld_shlibs_CXX=no
11708 ;;
11709 esac
11710 ;;
11711 freebsd[12]*)
11712 # C++ shared libraries reported to be fairly broken before switch to ELF
11713 ld_shlibs_CXX=no
11714 ;;
11715 freebsd-elf*)
11716 archive_cmds_need_lc_CXX=no
11717 ;;
11718 freebsd* | dragonfly*)
11719 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11720 # conventions
11721 ld_shlibs_CXX=yes
11722 ;;
11723 gnu*)
11724 ;;
11725 hpux9*)
11726 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11727 hardcode_libdir_separator_CXX=:
11728 export_dynamic_flag_spec_CXX='${wl}-E'
11729 hardcode_direct_CXX=yes
11730 hardcode_minus_L_CXX=yes # Not in the search PATH,
11731 # but as the default
11732 # location of the library.
11733
11734 case $cc_basename in
11735 CC*)
11736 # FIXME: insert proper C++ library support
11737 ld_shlibs_CXX=no
11738 ;;
11739 aCC*)
11740 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'
11741 # Commands to make compiler produce verbose output that lists
11742 # what "hidden" libraries, object files and flags are used when
11743 # linking a shared library.
11744 #
11745 # There doesn't appear to be a way to prevent this compiler from
11746 # explicitly linking system object files so we need to strip them
11747 # from the output so that they don't get included in the library
11748 # dependencies.
11749 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'
11750 ;;
11751 *)
11752 if test "$GXX" = yes; then
11753 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'
11754 else
11755 # FIXME: insert proper C++ library support
11756 ld_shlibs_CXX=no
11757 fi
11758 ;;
11759 esac
11760 ;;
11761 hpux10*|hpux11*)
11762 if test $with_gnu_ld = no; then
11763 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11764 hardcode_libdir_separator_CXX=:
11765
11766 case $host_cpu in
11767 hppa*64*|ia64*) ;;
11768 *)
11769 export_dynamic_flag_spec_CXX='${wl}-E'
11770 ;;
11771 esac
11772 fi
11773 case $host_cpu in
11774 hppa*64*|ia64*)
11775 hardcode_direct_CXX=no
11776 hardcode_shlibpath_var_CXX=no
11777 ;;
11778 *)
11779 hardcode_direct_CXX=yes
11780 hardcode_minus_L_CXX=yes # Not in the search PATH,
11781 # but as the default
11782 # location of the library.
11783 ;;
11784 esac
11785
11786 case $cc_basename in
11787 CC*)
11788 # FIXME: insert proper C++ library support
11789 ld_shlibs_CXX=no
11790 ;;
11791 aCC*)
11792 case $host_cpu in
11793 hppa*64*)
11794 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11795 ;;
11796 ia64*)
11797 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11798 ;;
11799 *)
11800 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11801 ;;
11802 esac
11803 # Commands to make compiler produce verbose output that lists
11804 # what "hidden" libraries, object files and flags are used when
11805 # linking a shared library.
11806 #
11807 # There doesn't appear to be a way to prevent this compiler from
11808 # explicitly linking system object files so we need to strip them
11809 # from the output so that they don't get included in the library
11810 # dependencies.
11811 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'
11812 ;;
11813 *)
11814 if test "$GXX" = yes; then
11815 if test $with_gnu_ld = no; then
11816 case $host_cpu in
11817 hppa*64*)
11818 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11819 ;;
11820 ia64*)
11821 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11822 ;;
11823 *)
11824 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'
11825 ;;
11826 esac
11827 fi
11828 else
11829 # FIXME: insert proper C++ library support
11830 ld_shlibs_CXX=no
11831 fi
11832 ;;
11833 esac
11834 ;;
11835 interix[3-9]*)
11836 hardcode_direct_CXX=no
11837 hardcode_shlibpath_var_CXX=no
11838 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11839 export_dynamic_flag_spec_CXX='${wl}-E'
11840 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11841 # Instead, shared libraries are loaded at an image base (0x10000000 by
11842 # default) and relocated if they conflict, which is a slow very memory
11843 # consuming and fragmenting process. To avoid this, we pick a random,
11844 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11845 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11846 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'
11847 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'
11848 ;;
11849 irix5* | irix6*)
11850 case $cc_basename in
11851 CC*)
11852 # SGI C++
11853 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'
11854
11855 # Archives containing C++ object files must be created using
11856 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11857 # necessary to make sure instantiated templates are included
11858 # in the archive.
11859 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11860 ;;
11861 *)
11862 if test "$GXX" = yes; then
11863 if test "$with_gnu_ld" = no; then
11864 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'
11865 else
11866 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'
11867 fi
11868 fi
11869 link_all_deplibs_CXX=yes
11870 ;;
11871 esac
11872 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11873 hardcode_libdir_separator_CXX=:
11874 ;;
11875 linux* | k*bsd*-gnu)
11876 case $cc_basename in
11877 KCC*)
11878 # Kuck and Associates, Inc. (KAI) C++ Compiler
11879
11880 # KCC will only create a shared library if the output file
11881 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11882 # to its proper name (with version) after linking.
11883 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'
11884 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'
11885 # Commands to make compiler produce verbose output that lists
11886 # what "hidden" libraries, object files and flags are used when
11887 # linking a shared library.
11888 #
11889 # There doesn't appear to be a way to prevent this compiler from
11890 # explicitly linking system object files so we need to strip them
11891 # from the output so that they don't get included in the library
11892 # dependencies.
11893 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'
11894
11895 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11896 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11897
11898 # Archives containing C++ object files must be created using
11899 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11900 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11901 ;;
11902 icpc*)
11903 # Intel C++
11904 with_gnu_ld=yes
11905 # version 8.0 and above of icpc choke on multiply defined symbols
11906 # if we add $predep_objects and $postdep_objects, however 7.1 and
11907 # earlier do not add the objects themselves.
11908 case `$CC -V 2>&1` in
11909 *"Version 7."*)
11910 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11911 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'
11912 ;;
11913 *) # Version 8.0 or newer
11914 tmp_idyn=
11915 case $host_cpu in
11916 ia64*) tmp_idyn=' -i_dynamic';;
11917 esac
11918 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11919 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'
11920 ;;
11921 esac
11922 archive_cmds_need_lc_CXX=no
11923 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11924 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11925 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11926 ;;
11927 pgCC* | pgcpp*)
11928 # Portland Group C++ compiler
11929 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11930 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'
11931
11932 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11933 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11934 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'
11935 ;;
11936 cxx*)
11937 # Compaq C++
11938 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11939 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'
11940
11941 runpath_var=LD_RUN_PATH
11942 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11943 hardcode_libdir_separator_CXX=:
11944
11945 # Commands to make compiler produce verbose output that lists
11946 # what "hidden" libraries, object files and flags are used when
11947 # linking a shared library.
11948 #
11949 # There doesn't appear to be a way to prevent this compiler from
11950 # explicitly linking system object files so we need to strip them
11951 # from the output so that they don't get included in the library
11952 # dependencies.
11953 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'
11954 ;;
11955 *)
11956 case `$CC -V 2>&1 | sed 5q` in
11957 *Sun\ C*)
11958 # Sun C++ 5.9
11959 no_undefined_flag_CXX=' -zdefs'
11960 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11961 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11962 hardcode_libdir_flag_spec_CXX='-R$libdir'
11963 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11964
11965 # Not sure whether something based on
11966 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11967 # would be better.
11968 output_verbose_link_cmd='echo'
11969
11970 # Archives containing C++ object files must be created using
11971 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11972 # necessary to make sure instantiated templates are included
11973 # in the archive.
11974 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11975 ;;
11976 esac
11977 ;;
11978 esac
11979 ;;
11980 lynxos*)
11981 # FIXME: insert proper C++ library support
11982 ld_shlibs_CXX=no
11983 ;;
11984 m88k*)
11985 # FIXME: insert proper C++ library support
11986 ld_shlibs_CXX=no
11987 ;;
11988 mvs*)
11989 case $cc_basename in
11990 cxx*)
11991 # FIXME: insert proper C++ library support
11992 ld_shlibs_CXX=no
11993 ;;
11994 *)
11995 # FIXME: insert proper C++ library support
11996 ld_shlibs_CXX=no
11997 ;;
11998 esac
11999 ;;
12000 netbsd* | netbsdelf*-gnu)
12001 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12002 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12003 wlarc=
12004 hardcode_libdir_flag_spec_CXX='-R$libdir'
12005 hardcode_direct_CXX=yes
12006 hardcode_shlibpath_var_CXX=no
12007 fi
12008 # Workaround some broken pre-1.5 toolchains
12009 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12010 ;;
12011 openbsd2*)
12012 # C++ shared libraries are fairly broken
12013 ld_shlibs_CXX=no
12014 ;;
12015 openbsd*)
12016 if test -f /usr/libexec/ld.so; then
12017 hardcode_direct_CXX=yes
12018 hardcode_shlibpath_var_CXX=no
12019 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12020 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12021 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12022 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12023 export_dynamic_flag_spec_CXX='${wl}-E'
12024 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12025 fi
12026 output_verbose_link_cmd='echo'
12027 else
12028 ld_shlibs_CXX=no
12029 fi
12030 ;;
12031 osf3*)
12032 case $cc_basename in
12033 KCC*)
12034 # Kuck and Associates, Inc. (KAI) C++ Compiler
12035
12036 # KCC will only create a shared library if the output file
12037 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12038 # to its proper name (with version) after linking.
12039 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'
12040
12041 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12042 hardcode_libdir_separator_CXX=:
12043
12044 # Archives containing C++ object files must be created using
12045 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12046 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12047
12048 ;;
12049 RCC*)
12050 # Rational C++ 2.4.1
12051 # FIXME: insert proper C++ library support
12052 ld_shlibs_CXX=no
12053 ;;
12054 cxx*)
12055 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12056 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'
12057
12058 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12059 hardcode_libdir_separator_CXX=:
12060
12061 # Commands to make compiler produce verbose output that lists
12062 # what "hidden" libraries, object files and flags are used when
12063 # linking a shared library.
12064 #
12065 # There doesn't appear to be a way to prevent this compiler from
12066 # explicitly linking system object files so we need to strip them
12067 # from the output so that they don't get included in the library
12068 # dependencies.
12069 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'
12070 ;;
12071 *)
12072 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12073 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12074 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'
12075
12076 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12077 hardcode_libdir_separator_CXX=:
12078
12079 # Commands to make compiler produce verbose output that lists
12080 # what "hidden" libraries, object files and flags are used when
12081 # linking a shared library.
12082 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12083
12084 else
12085 # FIXME: insert proper C++ library support
12086 ld_shlibs_CXX=no
12087 fi
12088 ;;
12089 esac
12090 ;;
12091 osf4* | osf5*)
12092 case $cc_basename in
12093 KCC*)
12094 # Kuck and Associates, Inc. (KAI) C++ Compiler
12095
12096 # KCC will only create a shared library if the output file
12097 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12098 # to its proper name (with version) after linking.
12099 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'
12100
12101 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12102 hardcode_libdir_separator_CXX=:
12103
12104 # Archives containing C++ object files must be created using
12105 # the KAI C++ compiler.
12106 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12107 ;;
12108 RCC*)
12109 # Rational C++ 2.4.1
12110 # FIXME: insert proper C++ library support
12111 ld_shlibs_CXX=no
12112 ;;
12113 cxx*)
12114 allow_undefined_flag_CXX=' -expect_unresolved \*'
12115 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'
12116 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12117 echo "-hidden">> $lib.exp~
12118 $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~
12119 $rm $lib.exp'
12120
12121 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12122 hardcode_libdir_separator_CXX=:
12123
12124 # Commands to make compiler produce verbose output that lists
12125 # what "hidden" libraries, object files and flags are used when
12126 # linking a shared library.
12127 #
12128 # There doesn't appear to be a way to prevent this compiler from
12129 # explicitly linking system object files so we need to strip them
12130 # from the output so that they don't get included in the library
12131 # dependencies.
12132 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'
12133 ;;
12134 *)
12135 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12136 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12137 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'
12138
12139 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12140 hardcode_libdir_separator_CXX=:
12141
12142 # Commands to make compiler produce verbose output that lists
12143 # what "hidden" libraries, object files and flags are used when
12144 # linking a shared library.
12145 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12146
12147 else
12148 # FIXME: insert proper C++ library support
12149 ld_shlibs_CXX=no
12150 fi
12151 ;;
12152 esac
12153 ;;
12154 psos*)
12155 # FIXME: insert proper C++ library support
12156 ld_shlibs_CXX=no
12157 ;;
12158 sunos4*)
12159 case $cc_basename in
12160 CC*)
12161 # Sun C++ 4.x
12162 # FIXME: insert proper C++ library support
12163 ld_shlibs_CXX=no
12164 ;;
12165 lcc*)
12166 # Lucid
12167 # FIXME: insert proper C++ library support
12168 ld_shlibs_CXX=no
12169 ;;
12170 *)
12171 # FIXME: insert proper C++ library support
12172 ld_shlibs_CXX=no
12173 ;;
12174 esac
12175 ;;
12176 solaris*)
12177 case $cc_basename in
12178 CC*)
12179 # Sun C++ 4.2, 5.x and Centerline C++
12180 archive_cmds_need_lc_CXX=yes
12181 no_undefined_flag_CXX=' -zdefs'
12182 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12183 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12184 $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'
12185
12186 hardcode_libdir_flag_spec_CXX='-R$libdir'
12187 hardcode_shlibpath_var_CXX=no
12188 case $host_os in
12189 solaris2.[0-5] | solaris2.[0-5].*) ;;
12190 *)
12191 # The compiler driver will combine and reorder linker options,
12192 # but understands `-z linker_flag'.
12193 # Supported since Solaris 2.6 (maybe 2.5.1?)
12194 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12195 ;;
12196 esac
12197 link_all_deplibs_CXX=yes
12198
12199 output_verbose_link_cmd='echo'
12200
12201 # Archives containing C++ object files must be created using
12202 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12203 # necessary to make sure instantiated templates are included
12204 # in the archive.
12205 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12206 ;;
12207 gcx*)
12208 # Green Hills C++ Compiler
12209 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12210
12211 # The C++ compiler must be used to create the archive.
12212 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12213 ;;
12214 *)
12215 # GNU C++ compiler with Solaris linker
12216 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12217 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12218 if $CC --version | grep -v '^2\.7' > /dev/null; then
12219 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12220 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12221 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12222
12223 # Commands to make compiler produce verbose output that lists
12224 # what "hidden" libraries, object files and flags are used when
12225 # linking a shared library.
12226 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12227 else
12228 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12229 # platform.
12230 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12231 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12232 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12233
12234 # Commands to make compiler produce verbose output that lists
12235 # what "hidden" libraries, object files and flags are used when
12236 # linking a shared library.
12237 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12238 fi
12239
12240 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12241 case $host_os in
12242 solaris2.[0-5] | solaris2.[0-5].*) ;;
12243 *)
12244 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12245 ;;
12246 esac
12247 fi
12248 ;;
12249 esac
12250 ;;
12251 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12252 no_undefined_flag_CXX='${wl}-z,text'
12253 archive_cmds_need_lc_CXX=no
12254 hardcode_shlibpath_var_CXX=no
12255 runpath_var='LD_RUN_PATH'
12256
12257 case $cc_basename in
12258 CC*)
12259 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12260 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12261 ;;
12262 *)
12263 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12264 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12265 ;;
12266 esac
12267 ;;
12268 sysv5* | sco3.2v5* | sco5v6*)
12269 # Note: We can NOT use -z defs as we might desire, because we do not
12270 # link with -lc, and that would cause any symbols used from libc to
12271 # always be unresolved, which means just about no library would
12272 # ever link correctly. If we're not using GNU ld we use -z text
12273 # though, which does catch some bad symbols but isn't as heavy-handed
12274 # as -z defs.
12275 # For security reasons, it is highly recommended that you always
12276 # use absolute paths for naming shared libraries, and exclude the
12277 # DT_RUNPATH tag from executables and libraries. But doing so
12278 # requires that you compile everything twice, which is a pain.
12279 # So that behaviour is only enabled if SCOABSPATH is set to a
12280 # non-empty value in the environment. Most likely only useful for
12281 # creating official distributions of packages.
12282 # This is a hack until libtool officially supports absolute path
12283 # names for shared libraries.
12284 no_undefined_flag_CXX='${wl}-z,text'
12285 allow_undefined_flag_CXX='${wl}-z,nodefs'
12286 archive_cmds_need_lc_CXX=no
12287 hardcode_shlibpath_var_CXX=no
12288 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12289 hardcode_libdir_separator_CXX=':'
12290 link_all_deplibs_CXX=yes
12291 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12292 runpath_var='LD_RUN_PATH'
12293
12294 case $cc_basename in
12295 CC*)
12296 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12297 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12298 ;;
12299 *)
12300 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12301 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12302 ;;
12303 esac
12304 ;;
12305 tandem*)
12306 case $cc_basename in
12307 NCC*)
12308 # NonStop-UX NCC 3.20
12309 # FIXME: insert proper C++ library support
12310 ld_shlibs_CXX=no
12311 ;;
12312 *)
12313 # FIXME: insert proper C++ library support
12314 ld_shlibs_CXX=no
12315 ;;
12316 esac
12317 ;;
12318 vxworks*)
12319 # FIXME: insert proper C++ library support
12320 ld_shlibs_CXX=no
12321 ;;
12322 *)
12323 # FIXME: insert proper C++ library support
12324 ld_shlibs_CXX=no
12325 ;;
12326 esac
12327 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12328 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
12329 test "$ld_shlibs_CXX" = no && can_build_shared=no
12330
12331 GCC_CXX="$GXX"
12332 LD_CXX="$LD"
12333
12334 cat > conftest.$ac_ext <<EOF
12335 class Foo
12336 {
12337 public:
12338 Foo (void) { a = 0; }
12339 private:
12340 int a;
12341 };
12342 EOF
12343
12344 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12345 (eval $ac_compile) 2>&5
12346 ac_status=$?
12347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12348 (exit $ac_status); }; then
12349 # Parse the compiler output and extract the necessary
12350 # objects, libraries and library flags.
12351
12352 # Sentinel used to keep track of whether or not we are before
12353 # the conftest object file.
12354 pre_test_object_deps_done=no
12355
12356 # The `*' in the case matches for architectures that use `case' in
12357 # $output_verbose_cmd can trigger glob expansion during the loop
12358 # eval without this substitution.
12359 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12360
12361 for p in `eval $output_verbose_link_cmd`; do
12362 case $p in
12363
12364 -L* | -R* | -l*)
12365 # Some compilers place space between "-{L,R}" and the path.
12366 # Remove the space.
12367 if test $p = "-L" \
12368 || test $p = "-R"; then
12369 prev=$p
12370 continue
12371 else
12372 prev=
12373 fi
12374
12375 if test "$pre_test_object_deps_done" = no; then
12376 case $p in
12377 -L* | -R*)
12378 # Internal compiler library paths should come after those
12379 # provided the user. The postdeps already come after the
12380 # user supplied libs so there is no need to process them.
12381 if test -z "$compiler_lib_search_path_CXX"; then
12382 compiler_lib_search_path_CXX="${prev}${p}"
12383 else
12384 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12385 fi
12386 ;;
12387 # The "-l" case would never come before the object being
12388 # linked, so don't bother handling this case.
12389 esac
12390 else
12391 if test -z "$postdeps_CXX"; then
12392 postdeps_CXX="${prev}${p}"
12393 else
12394 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12395 fi
12396 fi
12397 ;;
12398
12399 *.$objext)
12400 # This assumes that the test object file only shows up
12401 # once in the compiler output.
12402 if test "$p" = "conftest.$objext"; then
12403 pre_test_object_deps_done=yes
12404 continue
12405 fi
12406
12407 if test "$pre_test_object_deps_done" = no; then
12408 if test -z "$predep_objects_CXX"; then
12409 predep_objects_CXX="$p"
12410 else
12411 predep_objects_CXX="$predep_objects_CXX $p"
12412 fi
12413 else
12414 if test -z "$postdep_objects_CXX"; then
12415 postdep_objects_CXX="$p"
12416 else
12417 postdep_objects_CXX="$postdep_objects_CXX $p"
12418 fi
12419 fi
12420 ;;
12421
12422 *) ;; # Ignore the rest.
12423
12424 esac
12425 done
12426
12427 # Clean up.
12428 rm -f a.out a.exe
12429 else
12430 echo "libtool.m4: error: problem compiling CXX test program"
12431 fi
12432
12433 $rm -f confest.$objext
12434
12435 compiler_lib_search_dirs_CXX=
12436 if test -n "$compiler_lib_search_path_CXX"; then
12437 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12438 fi
12439
12440 # PORTME: override above test on systems where it is broken
12441 case $host_os in
12442 interix[3-9]*)
12443 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12444 # hack all around it, let's just trust "g++" to DTRT.
12445 predep_objects_CXX=
12446 postdep_objects_CXX=
12447 postdeps_CXX=
12448 ;;
12449
12450 linux*)
12451 case `$CC -V 2>&1 | sed 5q` in
12452 *Sun\ C*)
12453 # Sun C++ 5.9
12454 #
12455 # The more standards-conforming stlport4 library is
12456 # incompatible with the Cstd library. Avoid specifying
12457 # it if it's in CXXFLAGS. Ignore libCrun as
12458 # -library=stlport4 depends on it.
12459 case " $CXX $CXXFLAGS " in
12460 *" -library=stlport4 "*)
12461 solaris_use_stlport4=yes
12462 ;;
12463 esac
12464 if test "$solaris_use_stlport4" != yes; then
12465 postdeps_CXX='-library=Cstd -library=Crun'
12466 fi
12467 ;;
12468 esac
12469 ;;
12470
12471 solaris*)
12472 case $cc_basename in
12473 CC*)
12474 # The more standards-conforming stlport4 library is
12475 # incompatible with the Cstd library. Avoid specifying
12476 # it if it's in CXXFLAGS. Ignore libCrun as
12477 # -library=stlport4 depends on it.
12478 case " $CXX $CXXFLAGS " in
12479 *" -library=stlport4 "*)
12480 solaris_use_stlport4=yes
12481 ;;
12482 esac
12483
12484 # Adding this requires a known-good setup of shared libraries for
12485 # Sun compiler versions before 5.6, else PIC objects from an old
12486 # archive will be linked into the output, leading to subtle bugs.
12487 if test "$solaris_use_stlport4" != yes; then
12488 postdeps_CXX='-library=Cstd -library=Crun'
12489 fi
12490 ;;
12491 esac
12492 ;;
12493 esac
12494
12495 case " $postdeps_CXX " in
12496 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12497 esac
12498
12499 lt_prog_compiler_wl_CXX=
12500 lt_prog_compiler_pic_CXX=
12501 lt_prog_compiler_static_CXX=
12502
12503 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12504 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
12505
12506 # C++ specific cases for pic, static, wl, etc.
12507 if test "$GXX" = yes; then
12508 lt_prog_compiler_wl_CXX='-Wl,'
12509 lt_prog_compiler_static_CXX='-static'
12510
12511 case $host_os in
12512 aix*)
12513 # All AIX code is PIC.
12514 if test "$host_cpu" = ia64; then
12515 # AIX 5 now supports IA64 processor
12516 lt_prog_compiler_static_CXX='-Bstatic'
12517 fi
12518 ;;
12519 amigaos*)
12520 # FIXME: we need at least 68020 code to build shared libraries, but
12521 # adding the `-m68020' flag to GCC prevents building anything better,
12522 # like `-m68040'.
12523 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12524 ;;
12525 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12526 # PIC is the default for these OSes.
12527 ;;
12528 mingw* | cygwin* | os2* | pw32*)
12529 # This hack is so that the source file can tell whether it is being
12530 # built for inclusion in a dll (and should export symbols for example).
12531 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12532 # (--disable-auto-import) libraries
12533 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12534 ;;
12535 darwin* | rhapsody*)
12536 # PIC is the default on this platform
12537 # Common symbols not allowed in MH_DYLIB files
12538 lt_prog_compiler_pic_CXX='-fno-common'
12539 ;;
12540 *djgpp*)
12541 # DJGPP does not support shared libraries at all
12542 lt_prog_compiler_pic_CXX=
12543 ;;
12544 interix[3-9]*)
12545 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12546 # Instead, we relocate shared libraries at runtime.
12547 ;;
12548 sysv4*MP*)
12549 if test -d /usr/nec; then
12550 lt_prog_compiler_pic_CXX=-Kconform_pic
12551 fi
12552 ;;
12553 hpux*)
12554 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12555 # not for PA HP-UX.
12556 case $host_cpu in
12557 hppa*64*|ia64*)
12558 ;;
12559 *)
12560 lt_prog_compiler_pic_CXX='-fPIC'
12561 ;;
12562 esac
12563 ;;
12564 *)
12565 lt_prog_compiler_pic_CXX='-fPIC'
12566 ;;
12567 esac
12568 else
12569 case $host_os in
12570 aix[4-9]*)
12571 # All AIX code is PIC.
12572 if test "$host_cpu" = ia64; then
12573 # AIX 5 now supports IA64 processor
12574 lt_prog_compiler_static_CXX='-Bstatic'
12575 else
12576 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12577 fi
12578 ;;
12579 chorus*)
12580 case $cc_basename in
12581 cxch68*)
12582 # Green Hills C++ Compiler
12583 # _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"
12584 ;;
12585 esac
12586 ;;
12587 darwin*)
12588 # PIC is the default on this platform
12589 # Common symbols not allowed in MH_DYLIB files
12590 case $cc_basename in
12591 xlc*)
12592 lt_prog_compiler_pic_CXX='-qnocommon'
12593 lt_prog_compiler_wl_CXX='-Wl,'
12594 ;;
12595 esac
12596 ;;
12597 dgux*)
12598 case $cc_basename in
12599 ec++*)
12600 lt_prog_compiler_pic_CXX='-KPIC'
12601 ;;
12602 ghcx*)
12603 # Green Hills C++ Compiler
12604 lt_prog_compiler_pic_CXX='-pic'
12605 ;;
12606 *)
12607 ;;
12608 esac
12609 ;;
12610 freebsd* | dragonfly*)
12611 # FreeBSD uses GNU C++
12612 ;;
12613 hpux9* | hpux10* | hpux11*)
12614 case $cc_basename in
12615 CC*)
12616 lt_prog_compiler_wl_CXX='-Wl,'
12617 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12618 if test "$host_cpu" != ia64; then
12619 lt_prog_compiler_pic_CXX='+Z'
12620 fi
12621 ;;
12622 aCC*)
12623 lt_prog_compiler_wl_CXX='-Wl,'
12624 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12625 case $host_cpu in
12626 hppa*64*|ia64*)
12627 # +Z the default
12628 ;;
12629 *)
12630 lt_prog_compiler_pic_CXX='+Z'
12631 ;;
12632 esac
12633 ;;
12634 *)
12635 ;;
12636 esac
12637 ;;
12638 interix*)
12639 # This is c89, which is MS Visual C++ (no shared libs)
12640 # Anyone wants to do a port?
12641 ;;
12642 irix5* | irix6* | nonstopux*)
12643 case $cc_basename in
12644 CC*)
12645 lt_prog_compiler_wl_CXX='-Wl,'
12646 lt_prog_compiler_static_CXX='-non_shared'
12647 # CC pic flag -KPIC is the default.
12648 ;;
12649 *)
12650 ;;
12651 esac
12652 ;;
12653 linux* | k*bsd*-gnu)
12654 case $cc_basename in
12655 KCC*)
12656 # KAI C++ Compiler
12657 lt_prog_compiler_wl_CXX='--backend -Wl,'
12658 lt_prog_compiler_pic_CXX='-fPIC'
12659 ;;
12660 icpc* | ecpc*)
12661 # Intel C++
12662 lt_prog_compiler_wl_CXX='-Wl,'
12663 lt_prog_compiler_pic_CXX='-KPIC'
12664 lt_prog_compiler_static_CXX='-static'
12665 ;;
12666 pgCC* | pgcpp*)
12667 # Portland Group C++ compiler.
12668 lt_prog_compiler_wl_CXX='-Wl,'
12669 lt_prog_compiler_pic_CXX='-fpic'
12670 lt_prog_compiler_static_CXX='-Bstatic'
12671 ;;
12672 cxx*)
12673 # Compaq C++
12674 # Make sure the PIC flag is empty. It appears that all Alpha
12675 # Linux and Compaq Tru64 Unix objects are PIC.
12676 lt_prog_compiler_pic_CXX=
12677 lt_prog_compiler_static_CXX='-non_shared'
12678 ;;
12679 *)
12680 case `$CC -V 2>&1 | sed 5q` in
12681 *Sun\ C*)
12682 # Sun C++ 5.9
12683 lt_prog_compiler_pic_CXX='-KPIC'
12684 lt_prog_compiler_static_CXX='-Bstatic'
12685 lt_prog_compiler_wl_CXX='-Qoption ld '
12686 ;;
12687 esac
12688 ;;
12689 esac
12690 ;;
12691 lynxos*)
12692 ;;
12693 m88k*)
12694 ;;
12695 mvs*)
12696 case $cc_basename in
12697 cxx*)
12698 lt_prog_compiler_pic_CXX='-W c,exportall'
12699 ;;
12700 *)
12701 ;;
12702 esac
12703 ;;
12704 netbsd* | netbsdelf*-gnu)
12705 ;;
12706 osf3* | osf4* | osf5*)
12707 case $cc_basename in
12708 KCC*)
12709 lt_prog_compiler_wl_CXX='--backend -Wl,'
12710 ;;
12711 RCC*)
12712 # Rational C++ 2.4.1
12713 lt_prog_compiler_pic_CXX='-pic'
12714 ;;
12715 cxx*)
12716 # Digital/Compaq C++
12717 lt_prog_compiler_wl_CXX='-Wl,'
12718 # Make sure the PIC flag is empty. It appears that all Alpha
12719 # Linux and Compaq Tru64 Unix objects are PIC.
12720 lt_prog_compiler_pic_CXX=
12721 lt_prog_compiler_static_CXX='-non_shared'
12722 ;;
12723 *)
12724 ;;
12725 esac
12726 ;;
12727 psos*)
12728 ;;
12729 solaris*)
12730 case $cc_basename in
12731 CC*)
12732 # Sun C++ 4.2, 5.x and Centerline C++
12733 lt_prog_compiler_pic_CXX='-KPIC'
12734 lt_prog_compiler_static_CXX='-Bstatic'
12735 lt_prog_compiler_wl_CXX='-Qoption ld '
12736 ;;
12737 gcx*)
12738 # Green Hills C++ Compiler
12739 lt_prog_compiler_pic_CXX='-PIC'
12740 ;;
12741 *)
12742 ;;
12743 esac
12744 ;;
12745 sunos4*)
12746 case $cc_basename in
12747 CC*)
12748 # Sun C++ 4.x
12749 lt_prog_compiler_pic_CXX='-pic'
12750 lt_prog_compiler_static_CXX='-Bstatic'
12751 ;;
12752 lcc*)
12753 # Lucid
12754 lt_prog_compiler_pic_CXX='-pic'
12755 ;;
12756 *)
12757 ;;
12758 esac
12759 ;;
12760 tandem*)
12761 case $cc_basename in
12762 NCC*)
12763 # NonStop-UX NCC 3.20
12764 lt_prog_compiler_pic_CXX='-KPIC'
12765 ;;
12766 *)
12767 ;;
12768 esac
12769 ;;
12770 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12771 case $cc_basename in
12772 CC*)
12773 lt_prog_compiler_wl_CXX='-Wl,'
12774 lt_prog_compiler_pic_CXX='-KPIC'
12775 lt_prog_compiler_static_CXX='-Bstatic'
12776 ;;
12777 esac
12778 ;;
12779 vxworks*)
12780 ;;
12781 *)
12782 lt_prog_compiler_can_build_shared_CXX=no
12783 ;;
12784 esac
12785 fi
12786
12787 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12788 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6; }
12789
12790 #
12791 # Check to make sure the PIC flag actually works.
12792 #
12793 if test -n "$lt_prog_compiler_pic_CXX"; then
12794
12795 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12796 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6; }
12797 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12798 echo $ECHO_N "(cached) $ECHO_C" >&6
12799 else
12800 lt_cv_prog_compiler_pic_works_CXX=no
12801 ac_outfile=conftest.$ac_objext
12802 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12803 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12804 # Insert the option either (1) after the last *FLAGS variable, or
12805 # (2) before a word containing "conftest.", or (3) at the end.
12806 # Note that $ac_compile itself does not contain backslashes and begins
12807 # with a dollar sign (not a hyphen), so the echo should work correctly.
12808 # The option is referenced via a variable to avoid confusing sed.
12809 lt_compile=`echo "$ac_compile" | $SED \
12810 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12811 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12812 -e 's:$: $lt_compiler_flag:'`
12813 (eval echo "\"\$as_me:12813: $lt_compile\"" >&5)
12814 (eval "$lt_compile" 2>conftest.err)
12815 ac_status=$?
12816 cat conftest.err >&5
12817 echo "$as_me:12817: \$? = $ac_status" >&5
12818 if (exit $ac_status) && test -s "$ac_outfile"; then
12819 # The compiler can only warn and ignore the option if not recognized
12820 # So say no if there are warnings other than the usual output.
12821 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12822 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12823 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12824 lt_cv_prog_compiler_pic_works_CXX=yes
12825 fi
12826 fi
12827 $rm conftest*
12828
12829 fi
12830 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12831 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12832
12833 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12834 case $lt_prog_compiler_pic_CXX in
12835 "" | " "*) ;;
12836 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12837 esac
12838 else
12839 lt_prog_compiler_pic_CXX=
12840 lt_prog_compiler_can_build_shared_CXX=no
12841 fi
12842
12843 fi
12844 case $host_os in
12845 # For platforms which do not support PIC, -DPIC is meaningless:
12846 *djgpp*)
12847 lt_prog_compiler_pic_CXX=
12848 ;;
12849 *)
12850 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12851 ;;
12852 esac
12853
12854 #
12855 # Check to make sure the static flag actually works.
12856 #
12857 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12858 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12859 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
12860 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12861 echo $ECHO_N "(cached) $ECHO_C" >&6
12862 else
12863 lt_cv_prog_compiler_static_works_CXX=no
12864 save_LDFLAGS="$LDFLAGS"
12865 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12866 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12867 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12868 # The linker can only warn and ignore the option if not recognized
12869 # So say no if there are warnings
12870 if test -s conftest.err; then
12871 # Append any errors to the config.log.
12872 cat conftest.err 1>&5
12873 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12874 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12875 if diff conftest.exp conftest.er2 >/dev/null; then
12876 lt_cv_prog_compiler_static_works_CXX=yes
12877 fi
12878 else
12879 lt_cv_prog_compiler_static_works_CXX=yes
12880 fi
12881 fi
12882 $rm -r conftest*
12883 LDFLAGS="$save_LDFLAGS"
12884
12885 fi
12886 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12887 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6; }
12888
12889 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12890 :
12891 else
12892 lt_prog_compiler_static_CXX=
12893 fi
12894
12895
12896 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12897 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
12898 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12899 echo $ECHO_N "(cached) $ECHO_C" >&6
12900 else
12901 lt_cv_prog_compiler_c_o_CXX=no
12902 $rm -r conftest 2>/dev/null
12903 mkdir conftest
12904 cd conftest
12905 mkdir out
12906 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12907
12908 lt_compiler_flag="-o out/conftest2.$ac_objext"
12909 # Insert the option either (1) after the last *FLAGS variable, or
12910 # (2) before a word containing "conftest.", or (3) at the end.
12911 # Note that $ac_compile itself does not contain backslashes and begins
12912 # with a dollar sign (not a hyphen), so the echo should work correctly.
12913 lt_compile=`echo "$ac_compile" | $SED \
12914 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12915 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12916 -e 's:$: $lt_compiler_flag:'`
12917 (eval echo "\"\$as_me:12917: $lt_compile\"" >&5)
12918 (eval "$lt_compile" 2>out/conftest.err)
12919 ac_status=$?
12920 cat out/conftest.err >&5
12921 echo "$as_me:12921: \$? = $ac_status" >&5
12922 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12923 then
12924 # The compiler can only warn and ignore the option if not recognized
12925 # So say no if there are warnings
12926 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12927 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12928 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12929 lt_cv_prog_compiler_c_o_CXX=yes
12930 fi
12931 fi
12932 chmod u+w . 2>&5
12933 $rm conftest*
12934 # SGI C++ compiler will create directory out/ii_files/ for
12935 # template instantiation
12936 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12937 $rm out/* && rmdir out
12938 cd ..
12939 rmdir conftest
12940 $rm conftest*
12941
12942 fi
12943 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12944 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6; }
12945
12946
12947 hard_links="nottested"
12948 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12949 # do not overwrite the value of need_locks provided by the user
12950 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12951 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
12952 hard_links=yes
12953 $rm conftest*
12954 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12955 touch conftest.a
12956 ln conftest.a conftest.b 2>&5 || hard_links=no
12957 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12958 { echo "$as_me:$LINENO: result: $hard_links" >&5
12959 echo "${ECHO_T}$hard_links" >&6; }
12960 if test "$hard_links" = no; then
12961 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12962 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12963 need_locks=warn
12964 fi
12965 else
12966 need_locks=no
12967 fi
12968
12969 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12970 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
12971
12972 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12973 case $host_os in
12974 aix[4-9]*)
12975 # If we're using GNU nm, then we don't want the "-C" option.
12976 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12977 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12978 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'
12979 else
12980 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'
12981 fi
12982 ;;
12983 pw32*)
12984 export_symbols_cmds_CXX="$ltdll_cmds"
12985 ;;
12986 cygwin* | mingw*)
12987 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'
12988 ;;
12989 linux* | k*bsd*-gnu)
12990 link_all_deplibs_CXX=no
12991 ;;
12992 *)
12993 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12994 ;;
12995 esac
12996 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12997
12998 { echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12999 echo "${ECHO_T}$ld_shlibs_CXX" >&6; }
13000 test "$ld_shlibs_CXX" = no && can_build_shared=no
13001
13002 #
13003 # Do we need to explicitly link libc?
13004 #
13005 case "x$archive_cmds_need_lc_CXX" in
13006 x|xyes)
13007 # Assume -lc should be added
13008 archive_cmds_need_lc_CXX=yes
13009
13010 if test "$enable_shared" = yes && test "$GCC" = yes; then
13011 case $archive_cmds_CXX in
13012 *'~'*)
13013 # FIXME: we may have to deal with multi-command sequences.
13014 ;;
13015 '$CC '*)
13016 # Test whether the compiler implicitly links with -lc since on some
13017 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13018 # to ld, don't add -lc before -lgcc.
13019 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13020 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
13021 $rm conftest*
13022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13023
13024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13025 (eval $ac_compile) 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); } 2>conftest.err; then
13029 soname=conftest
13030 lib=conftest
13031 libobjs=conftest.$ac_objext
13032 deplibs=
13033 wl=$lt_prog_compiler_wl_CXX
13034 pic_flag=$lt_prog_compiler_pic_CXX
13035 compiler_flags=-v
13036 linker_flags=-v
13037 verstring=
13038 output_objdir=.
13039 libname=conftest
13040 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13041 allow_undefined_flag_CXX=
13042 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13043 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13044 ac_status=$?
13045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13046 (exit $ac_status); }
13047 then
13048 archive_cmds_need_lc_CXX=no
13049 else
13050 archive_cmds_need_lc_CXX=yes
13051 fi
13052 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13053 else
13054 cat conftest.err 1>&5
13055 fi
13056 $rm conftest*
13057 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13058 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6; }
13059 ;;
13060 esac
13061 fi
13062 ;;
13063 esac
13064
13065 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13066 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
13067 library_names_spec=
13068 libname_spec='lib$name'
13069 soname_spec=
13070 shrext_cmds=".so"
13071 postinstall_cmds=
13072 postuninstall_cmds=
13073 finish_cmds=
13074 finish_eval=
13075 shlibpath_var=
13076 shlibpath_overrides_runpath=unknown
13077 version_type=none
13078 dynamic_linker="$host_os ld.so"
13079 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13080
13081 need_lib_prefix=unknown
13082 hardcode_into_libs=no
13083
13084 # when you set need_version to no, make sure it does not cause -set_version
13085 # flags to be left without arguments
13086 need_version=unknown
13087
13088 case $host_os in
13089 aix3*)
13090 version_type=linux
13091 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13092 shlibpath_var=LIBPATH
13093
13094 # AIX 3 has no versioning support, so we append a major version to the name.
13095 soname_spec='${libname}${release}${shared_ext}$major'
13096 ;;
13097
13098 aix[4-9]*)
13099 version_type=linux
13100 need_lib_prefix=no
13101 need_version=no
13102 hardcode_into_libs=yes
13103 if test "$host_cpu" = ia64; then
13104 # AIX 5 supports IA64
13105 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13106 shlibpath_var=LD_LIBRARY_PATH
13107 else
13108 # With GCC up to 2.95.x, collect2 would create an import file
13109 # for dependence libraries. The import file would start with
13110 # the line `#! .'. This would cause the generated library to
13111 # depend on `.', always an invalid library. This was fixed in
13112 # development snapshots of GCC prior to 3.0.
13113 case $host_os in
13114 aix4 | aix4.[01] | aix4.[01].*)
13115 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13116 echo ' yes '
13117 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13118 :
13119 else
13120 can_build_shared=no
13121 fi
13122 ;;
13123 esac
13124 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13125 # soname into executable. Probably we can add versioning support to
13126 # collect2, so additional links can be useful in future.
13127 if test "$aix_use_runtimelinking" = yes; then
13128 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13129 # instead of lib<name>.a to let people know that these are not
13130 # typical AIX shared libraries.
13131 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13132 else
13133 # We preserve .a as extension for shared libraries through AIX4.2
13134 # and later when we are not doing run time linking.
13135 library_names_spec='${libname}${release}.a $libname.a'
13136 soname_spec='${libname}${release}${shared_ext}$major'
13137 fi
13138 shlibpath_var=LIBPATH
13139 fi
13140 ;;
13141
13142 amigaos*)
13143 library_names_spec='$libname.ixlibrary $libname.a'
13144 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13145 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'
13146 ;;
13147
13148 beos*)
13149 library_names_spec='${libname}${shared_ext}'
13150 dynamic_linker="$host_os ld.so"
13151 shlibpath_var=LIBRARY_PATH
13152 ;;
13153
13154 bsdi[45]*)
13155 version_type=linux
13156 need_version=no
13157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13158 soname_spec='${libname}${release}${shared_ext}$major'
13159 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13160 shlibpath_var=LD_LIBRARY_PATH
13161 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13162 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13163 # the default ld.so.conf also contains /usr/contrib/lib and
13164 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13165 # libtool to hard-code these into programs
13166 ;;
13167
13168 cygwin* | mingw* | pw32*)
13169 version_type=windows
13170 shrext_cmds=".dll"
13171 need_version=no
13172 need_lib_prefix=no
13173
13174 case $GCC,$host_os in
13175 yes,cygwin* | yes,mingw* | yes,pw32*)
13176 library_names_spec='$libname.dll.a'
13177 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13178 postinstall_cmds='base_file=`basename \${file}`~
13179 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13180 dldir=$destdir/`dirname \$dlpath`~
13181 test -d \$dldir || mkdir -p \$dldir~
13182 $install_prog $dir/$dlname \$dldir/$dlname~
13183 chmod a+x \$dldir/$dlname'
13184 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13185 dlpath=$dir/\$dldll~
13186 $rm \$dlpath'
13187 shlibpath_overrides_runpath=yes
13188
13189 case $host_os in
13190 cygwin*)
13191 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13192 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13193 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13194 ;;
13195 mingw*)
13196 # MinGW DLLs use traditional 'lib' prefix
13197 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13198 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13199 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13200 # It is most probably a Windows format PATH printed by
13201 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13202 # path with ; separators, and with drive letters. We can handle the
13203 # drive letters (cygwin fileutils understands them), so leave them,
13204 # especially as we might pass files found there to a mingw objdump,
13205 # which wouldn't understand a cygwinified path. Ahh.
13206 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13207 else
13208 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13209 fi
13210 ;;
13211 pw32*)
13212 # pw32 DLLs use 'pw' prefix rather than 'lib'
13213 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13214 ;;
13215 esac
13216 ;;
13217
13218 *)
13219 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13220 ;;
13221 esac
13222 dynamic_linker='Win32 ld.exe'
13223 # FIXME: first we should search . and the directory the executable is in
13224 shlibpath_var=PATH
13225 ;;
13226
13227 darwin* | rhapsody*)
13228 dynamic_linker="$host_os dyld"
13229 version_type=darwin
13230 need_lib_prefix=no
13231 need_version=no
13232 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13233 soname_spec='${libname}${release}${major}$shared_ext'
13234 shlibpath_overrides_runpath=yes
13235 shlibpath_var=DYLD_LIBRARY_PATH
13236 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13237
13238 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13239 ;;
13240
13241 dgux*)
13242 version_type=linux
13243 need_lib_prefix=no
13244 need_version=no
13245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13246 soname_spec='${libname}${release}${shared_ext}$major'
13247 shlibpath_var=LD_LIBRARY_PATH
13248 ;;
13249
13250 freebsd1*)
13251 dynamic_linker=no
13252 ;;
13253
13254 freebsd* | dragonfly*)
13255 # DragonFly does not have aout. When/if they implement a new
13256 # versioning mechanism, adjust this.
13257 if test -x /usr/bin/objformat; then
13258 objformat=`/usr/bin/objformat`
13259 else
13260 case $host_os in
13261 freebsd[123]*) objformat=aout ;;
13262 *) objformat=elf ;;
13263 esac
13264 fi
13265 version_type=freebsd-$objformat
13266 case $version_type in
13267 freebsd-elf*)
13268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13269 need_version=no
13270 need_lib_prefix=no
13271 ;;
13272 freebsd-*)
13273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13274 need_version=yes
13275 ;;
13276 esac
13277 shlibpath_var=LD_LIBRARY_PATH
13278 case $host_os in
13279 freebsd2*)
13280 shlibpath_overrides_runpath=yes
13281 ;;
13282 freebsd3.[01]* | freebsdelf3.[01]*)
13283 shlibpath_overrides_runpath=yes
13284 hardcode_into_libs=yes
13285 ;;
13286 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13287 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13288 shlibpath_overrides_runpath=no
13289 hardcode_into_libs=yes
13290 ;;
13291 *) # from 4.6 on, and DragonFly
13292 shlibpath_overrides_runpath=yes
13293 hardcode_into_libs=yes
13294 ;;
13295 esac
13296 ;;
13297
13298 gnu*)
13299 version_type=linux
13300 need_lib_prefix=no
13301 need_version=no
13302 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13303 soname_spec='${libname}${release}${shared_ext}$major'
13304 shlibpath_var=LD_LIBRARY_PATH
13305 hardcode_into_libs=yes
13306 ;;
13307
13308 hpux9* | hpux10* | hpux11*)
13309 # Give a soname corresponding to the major version so that dld.sl refuses to
13310 # link against other versions.
13311 version_type=sunos
13312 need_lib_prefix=no
13313 need_version=no
13314 case $host_cpu in
13315 ia64*)
13316 shrext_cmds='.so'
13317 hardcode_into_libs=yes
13318 dynamic_linker="$host_os dld.so"
13319 shlibpath_var=LD_LIBRARY_PATH
13320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13322 soname_spec='${libname}${release}${shared_ext}$major'
13323 if test "X$HPUX_IA64_MODE" = X32; then
13324 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13325 else
13326 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13327 fi
13328 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13329 ;;
13330 hppa*64*)
13331 shrext_cmds='.sl'
13332 hardcode_into_libs=yes
13333 dynamic_linker="$host_os dld.sl"
13334 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13337 soname_spec='${libname}${release}${shared_ext}$major'
13338 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13340 ;;
13341 *)
13342 shrext_cmds='.sl'
13343 dynamic_linker="$host_os dld.sl"
13344 shlibpath_var=SHLIB_PATH
13345 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13347 soname_spec='${libname}${release}${shared_ext}$major'
13348 ;;
13349 esac
13350 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13351 postinstall_cmds='chmod 555 $lib'
13352 ;;
13353
13354 interix[3-9]*)
13355 version_type=linux
13356 need_lib_prefix=no
13357 need_version=no
13358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13359 soname_spec='${libname}${release}${shared_ext}$major'
13360 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13361 shlibpath_var=LD_LIBRARY_PATH
13362 shlibpath_overrides_runpath=no
13363 hardcode_into_libs=yes
13364 ;;
13365
13366 irix5* | irix6* | nonstopux*)
13367 case $host_os in
13368 nonstopux*) version_type=nonstopux ;;
13369 *)
13370 if test "$lt_cv_prog_gnu_ld" = yes; then
13371 version_type=linux
13372 else
13373 version_type=irix
13374 fi ;;
13375 esac
13376 need_lib_prefix=no
13377 need_version=no
13378 soname_spec='${libname}${release}${shared_ext}$major'
13379 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13380 case $host_os in
13381 irix5* | nonstopux*)
13382 libsuff= shlibsuff=
13383 ;;
13384 *)
13385 case $LD in # libtool.m4 will add one of these switches to LD
13386 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13387 libsuff= shlibsuff= libmagic=32-bit;;
13388 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13389 libsuff=32 shlibsuff=N32 libmagic=N32;;
13390 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13391 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13392 *) libsuff= shlibsuff= libmagic=never-match;;
13393 esac
13394 ;;
13395 esac
13396 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13397 shlibpath_overrides_runpath=no
13398 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13399 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13400 hardcode_into_libs=yes
13401 ;;
13402
13403 # No shared lib support for Linux oldld, aout, or coff.
13404 linux*oldld* | linux*aout* | linux*coff*)
13405 dynamic_linker=no
13406 ;;
13407
13408 # This must be Linux ELF.
13409 linux* | k*bsd*-gnu)
13410 version_type=linux
13411 need_lib_prefix=no
13412 need_version=no
13413 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13414 soname_spec='${libname}${release}${shared_ext}$major'
13415 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13416 shlibpath_var=LD_LIBRARY_PATH
13417 shlibpath_overrides_runpath=no
13418 # This implies no fast_install, which is unacceptable.
13419 # Some rework will be needed to allow for fast_install
13420 # before this can be enabled.
13421 hardcode_into_libs=yes
13422
13423 # Append ld.so.conf contents to the search path
13424 if test -f /etc/ld.so.conf; then
13425 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
13426 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13427 fi
13428
13429 # We used to test for /lib/ld.so.1 and disable shared libraries on
13430 # powerpc, because MkLinux only supported shared libraries with the
13431 # GNU dynamic linker. Since this was broken with cross compilers,
13432 # most powerpc-linux boxes support dynamic linking these days and
13433 # people can always --disable-shared, the test was removed, and we
13434 # assume the GNU/Linux dynamic linker is in use.
13435 dynamic_linker='GNU/Linux ld.so'
13436 ;;
13437
13438 netbsdelf*-gnu)
13439 version_type=linux
13440 need_lib_prefix=no
13441 need_version=no
13442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13443 soname_spec='${libname}${release}${shared_ext}$major'
13444 shlibpath_var=LD_LIBRARY_PATH
13445 shlibpath_overrides_runpath=no
13446 hardcode_into_libs=yes
13447 dynamic_linker='NetBSD ld.elf_so'
13448 ;;
13449
13450 netbsd*)
13451 version_type=sunos
13452 need_lib_prefix=no
13453 need_version=no
13454 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13456 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13457 dynamic_linker='NetBSD (a.out) ld.so'
13458 else
13459 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13460 soname_spec='${libname}${release}${shared_ext}$major'
13461 dynamic_linker='NetBSD ld.elf_so'
13462 fi
13463 shlibpath_var=LD_LIBRARY_PATH
13464 shlibpath_overrides_runpath=yes
13465 hardcode_into_libs=yes
13466 ;;
13467
13468 newsos6)
13469 version_type=linux
13470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13471 shlibpath_var=LD_LIBRARY_PATH
13472 shlibpath_overrides_runpath=yes
13473 ;;
13474
13475 nto-qnx*)
13476 version_type=linux
13477 need_lib_prefix=no
13478 need_version=no
13479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13480 soname_spec='${libname}${release}${shared_ext}$major'
13481 shlibpath_var=LD_LIBRARY_PATH
13482 shlibpath_overrides_runpath=yes
13483 ;;
13484
13485 openbsd*)
13486 version_type=sunos
13487 sys_lib_dlsearch_path_spec="/usr/lib"
13488 need_lib_prefix=no
13489 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13490 case $host_os in
13491 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13492 *) need_version=no ;;
13493 esac
13494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13495 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13496 shlibpath_var=LD_LIBRARY_PATH
13497 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13498 case $host_os in
13499 openbsd2.[89] | openbsd2.[89].*)
13500 shlibpath_overrides_runpath=no
13501 ;;
13502 *)
13503 shlibpath_overrides_runpath=yes
13504 ;;
13505 esac
13506 else
13507 shlibpath_overrides_runpath=yes
13508 fi
13509 ;;
13510
13511 os2*)
13512 libname_spec='$name'
13513 shrext_cmds=".dll"
13514 need_lib_prefix=no
13515 library_names_spec='$libname${shared_ext} $libname.a'
13516 dynamic_linker='OS/2 ld.exe'
13517 shlibpath_var=LIBPATH
13518 ;;
13519
13520 osf3* | osf4* | osf5*)
13521 version_type=osf
13522 need_lib_prefix=no
13523 need_version=no
13524 soname_spec='${libname}${release}${shared_ext}$major'
13525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13526 shlibpath_var=LD_LIBRARY_PATH
13527 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13528 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13529 ;;
13530
13531 rdos*)
13532 dynamic_linker=no
13533 ;;
13534
13535 solaris*)
13536 version_type=linux
13537 need_lib_prefix=no
13538 need_version=no
13539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13540 soname_spec='${libname}${release}${shared_ext}$major'
13541 shlibpath_var=LD_LIBRARY_PATH
13542 shlibpath_overrides_runpath=yes
13543 hardcode_into_libs=yes
13544 # ldd complains unless libraries are executable
13545 postinstall_cmds='chmod +x $lib'
13546 ;;
13547
13548 sunos4*)
13549 version_type=sunos
13550 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13551 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13552 shlibpath_var=LD_LIBRARY_PATH
13553 shlibpath_overrides_runpath=yes
13554 if test "$with_gnu_ld" = yes; then
13555 need_lib_prefix=no
13556 fi
13557 need_version=yes
13558 ;;
13559
13560 sysv4 | sysv4.3*)
13561 version_type=linux
13562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13563 soname_spec='${libname}${release}${shared_ext}$major'
13564 shlibpath_var=LD_LIBRARY_PATH
13565 case $host_vendor in
13566 sni)
13567 shlibpath_overrides_runpath=no
13568 need_lib_prefix=no
13569 export_dynamic_flag_spec='${wl}-Blargedynsym'
13570 runpath_var=LD_RUN_PATH
13571 ;;
13572 siemens)
13573 need_lib_prefix=no
13574 ;;
13575 motorola)
13576 need_lib_prefix=no
13577 need_version=no
13578 shlibpath_overrides_runpath=no
13579 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13580 ;;
13581 esac
13582 ;;
13583
13584 sysv4*MP*)
13585 if test -d /usr/nec ;then
13586 version_type=linux
13587 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13588 soname_spec='$libname${shared_ext}.$major'
13589 shlibpath_var=LD_LIBRARY_PATH
13590 fi
13591 ;;
13592
13593 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13594 version_type=freebsd-elf
13595 need_lib_prefix=no
13596 need_version=no
13597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13598 soname_spec='${libname}${release}${shared_ext}$major'
13599 shlibpath_var=LD_LIBRARY_PATH
13600 hardcode_into_libs=yes
13601 if test "$with_gnu_ld" = yes; then
13602 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13603 shlibpath_overrides_runpath=no
13604 else
13605 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13606 shlibpath_overrides_runpath=yes
13607 case $host_os in
13608 sco3.2v5*)
13609 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13610 ;;
13611 esac
13612 fi
13613 sys_lib_dlsearch_path_spec='/usr/lib'
13614 ;;
13615
13616 uts4*)
13617 version_type=linux
13618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13619 soname_spec='${libname}${release}${shared_ext}$major'
13620 shlibpath_var=LD_LIBRARY_PATH
13621 ;;
13622
13623 *)
13624 dynamic_linker=no
13625 ;;
13626 esac
13627 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13628 echo "${ECHO_T}$dynamic_linker" >&6; }
13629 test "$dynamic_linker" = no && can_build_shared=no
13630
13631 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13632 echo $ECHO_N "(cached) $ECHO_C" >&6
13633 else
13634 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13635 fi
13636
13637 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13638 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13639 echo $ECHO_N "(cached) $ECHO_C" >&6
13640 else
13641 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13642 fi
13643
13644 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13645
13646 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13647 if test "$GCC" = yes; then
13648 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13649 fi
13650
13651 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13652 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
13653 hardcode_action_CXX=
13654 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13655 test -n "$runpath_var_CXX" || \
13656 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13657
13658 # We can hardcode non-existant directories.
13659 if test "$hardcode_direct_CXX" != no &&
13660 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13661 # have to relink, otherwise we might link with an installed library
13662 # when we should be linking with a yet-to-be-installed one
13663 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13664 test "$hardcode_minus_L_CXX" != no; then
13665 # Linking always hardcodes the temporary library directory.
13666 hardcode_action_CXX=relink
13667 else
13668 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13669 hardcode_action_CXX=immediate
13670 fi
13671 else
13672 # We cannot hardcode anything, or else we can only hardcode existing
13673 # directories.
13674 hardcode_action_CXX=unsupported
13675 fi
13676 { echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13677 echo "${ECHO_T}$hardcode_action_CXX" >&6; }
13678
13679 if test "$hardcode_action_CXX" = relink; then
13680 # Fast installation is not supported
13681 enable_fast_install=no
13682 elif test "$shlibpath_overrides_runpath" = yes ||
13683 test "$enable_shared" = no; then
13684 # Fast installation is not necessary
13685 enable_fast_install=needless
13686 fi
13687
13688
13689 # The else clause should only fire when bootstrapping the
13690 # libtool distribution, otherwise you forgot to ship ltmain.sh
13691 # with your package, and you will get complaints that there are
13692 # no rules to generate ltmain.sh.
13693 if test -f "$ltmain"; then
13694 # See if we are running on zsh, and set the options which allow our commands through
13695 # without removal of \ escapes.
13696 if test -n "${ZSH_VERSION+set}" ; then
13697 setopt NO_GLOB_SUBST
13698 fi
13699 # Now quote all the things that may contain metacharacters while being
13700 # careful not to overquote the AC_SUBSTed values. We take copies of the
13701 # variables and quote the copies for generation of the libtool script.
13702 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13703 SED SHELL STRIP \
13704 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13705 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13706 deplibs_check_method reload_flag reload_cmds need_locks \
13707 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13708 lt_cv_sys_global_symbol_to_c_name_address \
13709 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13710 old_postinstall_cmds old_postuninstall_cmds \
13711 compiler_CXX \
13712 CC_CXX \
13713 LD_CXX \
13714 lt_prog_compiler_wl_CXX \
13715 lt_prog_compiler_pic_CXX \
13716 lt_prog_compiler_static_CXX \
13717 lt_prog_compiler_no_builtin_flag_CXX \
13718 export_dynamic_flag_spec_CXX \
13719 thread_safe_flag_spec_CXX \
13720 whole_archive_flag_spec_CXX \
13721 enable_shared_with_static_runtimes_CXX \
13722 old_archive_cmds_CXX \
13723 old_archive_from_new_cmds_CXX \
13724 predep_objects_CXX \
13725 postdep_objects_CXX \
13726 predeps_CXX \
13727 postdeps_CXX \
13728 compiler_lib_search_path_CXX \
13729 compiler_lib_search_dirs_CXX \
13730 archive_cmds_CXX \
13731 archive_expsym_cmds_CXX \
13732 postinstall_cmds_CXX \
13733 postuninstall_cmds_CXX \
13734 old_archive_from_expsyms_cmds_CXX \
13735 allow_undefined_flag_CXX \
13736 no_undefined_flag_CXX \
13737 export_symbols_cmds_CXX \
13738 hardcode_libdir_flag_spec_CXX \
13739 hardcode_libdir_flag_spec_ld_CXX \
13740 hardcode_libdir_separator_CXX \
13741 hardcode_automatic_CXX \
13742 module_cmds_CXX \
13743 module_expsym_cmds_CXX \
13744 lt_cv_prog_compiler_c_o_CXX \
13745 fix_srcfile_path_CXX \
13746 exclude_expsyms_CXX \
13747 include_expsyms_CXX; do
13748
13749 case $var in
13750 old_archive_cmds_CXX | \
13751 old_archive_from_new_cmds_CXX | \
13752 archive_cmds_CXX | \
13753 archive_expsym_cmds_CXX | \
13754 module_cmds_CXX | \
13755 module_expsym_cmds_CXX | \
13756 old_archive_from_expsyms_cmds_CXX | \
13757 export_symbols_cmds_CXX | \
13758 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13759 postinstall_cmds | postuninstall_cmds | \
13760 old_postinstall_cmds | old_postuninstall_cmds | \
13761 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13762 # Double-quote double-evaled strings.
13763 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13764 ;;
13765 *)
13766 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13767 ;;
13768 esac
13769 done
13770
13771 case $lt_echo in
13772 *'\$0 --fallback-echo"')
13773 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13774 ;;
13775 esac
13776
13777 cfgfile="$ofile"
13778
13779 cat <<__EOF__ >> "$cfgfile"
13780 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13781
13782 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13783
13784 # Shell to use when invoking shell scripts.
13785 SHELL=$lt_SHELL
13786
13787 # Whether or not to build shared libraries.
13788 build_libtool_libs=$enable_shared
13789
13790 # Whether or not to build static libraries.
13791 build_old_libs=$enable_static
13792
13793 # Whether or not to add -lc for building shared libraries.
13794 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13795
13796 # Whether or not to disallow shared libs when runtime libs are static
13797 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13798
13799 # Whether or not to optimize for fast installation.
13800 fast_install=$enable_fast_install
13801
13802 # The host system.
13803 host_alias=$host_alias
13804 host=$host
13805 host_os=$host_os
13806
13807 # The build system.
13808 build_alias=$build_alias
13809 build=$build
13810 build_os=$build_os
13811
13812 # An echo program that does not interpret backslashes.
13813 echo=$lt_echo
13814
13815 # The archiver.
13816 AR=$lt_AR
13817 AR_FLAGS=$lt_AR_FLAGS
13818
13819 # A C compiler.
13820 LTCC=$lt_LTCC
13821
13822 # LTCC compiler flags.
13823 LTCFLAGS=$lt_LTCFLAGS
13824
13825 # A language-specific compiler.
13826 CC=$lt_compiler_CXX
13827
13828 # Is the compiler the GNU C compiler?
13829 with_gcc=$GCC_CXX
13830
13831 # An ERE matcher.
13832 EGREP=$lt_EGREP
13833
13834 # The linker used to build libraries.
13835 LD=$lt_LD_CXX
13836
13837 # Whether we need hard or soft links.
13838 LN_S=$lt_LN_S
13839
13840 # A BSD-compatible nm program.
13841 NM=$lt_NM
13842
13843 # A symbol stripping program
13844 STRIP=$lt_STRIP
13845
13846 # Used to examine libraries when file_magic_cmd begins "file"
13847 MAGIC_CMD=$MAGIC_CMD
13848
13849 # Used on cygwin: DLL creation program.
13850 DLLTOOL="$DLLTOOL"
13851
13852 # Used on cygwin: object dumper.
13853 OBJDUMP="$OBJDUMP"
13854
13855 # Used on cygwin: assembler.
13856 AS="$AS"
13857
13858 # The name of the directory that contains temporary libtool files.
13859 objdir=$objdir
13860
13861 # How to create reloadable object files.
13862 reload_flag=$lt_reload_flag
13863 reload_cmds=$lt_reload_cmds
13864
13865 # How to pass a linker flag through the compiler.
13866 wl=$lt_lt_prog_compiler_wl_CXX
13867
13868 # Object file suffix (normally "o").
13869 objext="$ac_objext"
13870
13871 # Old archive suffix (normally "a").
13872 libext="$libext"
13873
13874 # Shared library suffix (normally ".so").
13875 shrext_cmds='$shrext_cmds'
13876
13877 # Executable file suffix (normally "").
13878 exeext="$exeext"
13879
13880 # Additional compiler flags for building library objects.
13881 pic_flag=$lt_lt_prog_compiler_pic_CXX
13882 pic_mode=$pic_mode
13883
13884 # What is the maximum length of a command?
13885 max_cmd_len=$lt_cv_sys_max_cmd_len
13886
13887 # Does compiler simultaneously support -c and -o options?
13888 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13889
13890 # Must we lock files when doing compilation?
13891 need_locks=$lt_need_locks
13892
13893 # Do we need the lib prefix for modules?
13894 need_lib_prefix=$need_lib_prefix
13895
13896 # Do we need a version for libraries?
13897 need_version=$need_version
13898
13899 # Whether dlopen is supported.
13900 dlopen_support=$enable_dlopen
13901
13902 # Whether dlopen of programs is supported.
13903 dlopen_self=$enable_dlopen_self
13904
13905 # Whether dlopen of statically linked programs is supported.
13906 dlopen_self_static=$enable_dlopen_self_static
13907
13908 # Compiler flag to prevent dynamic linking.
13909 link_static_flag=$lt_lt_prog_compiler_static_CXX
13910
13911 # Compiler flag to turn off builtin functions.
13912 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13913
13914 # Compiler flag to allow reflexive dlopens.
13915 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13916
13917 # Compiler flag to generate shared objects directly from archives.
13918 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13919
13920 # Compiler flag to generate thread-safe objects.
13921 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13922
13923 # Library versioning type.
13924 version_type=$version_type
13925
13926 # Format of library name prefix.
13927 libname_spec=$lt_libname_spec
13928
13929 # List of archive names. First name is the real one, the rest are links.
13930 # The last name is the one that the linker finds with -lNAME.
13931 library_names_spec=$lt_library_names_spec
13932
13933 # The coded name of the library, if different from the real name.
13934 soname_spec=$lt_soname_spec
13935
13936 # Commands used to build and install an old-style archive.
13937 RANLIB=$lt_RANLIB
13938 old_archive_cmds=$lt_old_archive_cmds_CXX
13939 old_postinstall_cmds=$lt_old_postinstall_cmds
13940 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13941
13942 # Create an old-style archive from a shared archive.
13943 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13944
13945 # Create a temporary old-style archive to link instead of a shared archive.
13946 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13947
13948 # Commands used to build and install a shared archive.
13949 archive_cmds=$lt_archive_cmds_CXX
13950 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13951 postinstall_cmds=$lt_postinstall_cmds
13952 postuninstall_cmds=$lt_postuninstall_cmds
13953
13954 # Commands used to build a loadable module (assumed same as above if empty)
13955 module_cmds=$lt_module_cmds_CXX
13956 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13957
13958 # Commands to strip libraries.
13959 old_striplib=$lt_old_striplib
13960 striplib=$lt_striplib
13961
13962 # Dependencies to place before the objects being linked to create a
13963 # shared library.
13964 predep_objects=$lt_predep_objects_CXX
13965
13966 # Dependencies to place after the objects being linked to create a
13967 # shared library.
13968 postdep_objects=$lt_postdep_objects_CXX
13969
13970 # Dependencies to place before the objects being linked to create a
13971 # shared library.
13972 predeps=$lt_predeps_CXX
13973
13974 # Dependencies to place after the objects being linked to create a
13975 # shared library.
13976 postdeps=$lt_postdeps_CXX
13977
13978 # The directories searched by this compiler when creating a shared
13979 # library
13980 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13981
13982 # The library search path used internally by the compiler when linking
13983 # a shared library.
13984 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13985
13986 # Method to check whether dependent libraries are shared objects.
13987 deplibs_check_method=$lt_deplibs_check_method
13988
13989 # Command to use when deplibs_check_method == file_magic.
13990 file_magic_cmd=$lt_file_magic_cmd
13991
13992 # Flag that allows shared libraries with undefined symbols to be built.
13993 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13994
13995 # Flag that forces no undefined symbols.
13996 no_undefined_flag=$lt_no_undefined_flag_CXX
13997
13998 # Commands used to finish a libtool library installation in a directory.
13999 finish_cmds=$lt_finish_cmds
14000
14001 # Same as above, but a single script fragment to be evaled but not shown.
14002 finish_eval=$lt_finish_eval
14003
14004 # Take the output of nm and produce a listing of raw symbols and C names.
14005 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14006
14007 # Transform the output of nm in a proper C declaration
14008 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14009
14010 # Transform the output of nm in a C name address pair
14011 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14012
14013 # This is the shared library runtime path variable.
14014 runpath_var=$runpath_var
14015
14016 # This is the shared library path variable.
14017 shlibpath_var=$shlibpath_var
14018
14019 # Is shlibpath searched before the hard-coded library search path?
14020 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14021
14022 # How to hardcode a shared library path into an executable.
14023 hardcode_action=$hardcode_action_CXX
14024
14025 # Whether we should hardcode library paths into libraries.
14026 hardcode_into_libs=$hardcode_into_libs
14027
14028 # Flag to hardcode \$libdir into a binary during linking.
14029 # This must work even if \$libdir does not exist.
14030 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14031
14032 # If ld is used when linking, flag to hardcode \$libdir into
14033 # a binary during linking. This must work even if \$libdir does
14034 # not exist.
14035 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14036
14037 # Whether we need a single -rpath flag with a separated argument.
14038 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14039
14040 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14041 # resulting binary.
14042 hardcode_direct=$hardcode_direct_CXX
14043
14044 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14045 # resulting binary.
14046 hardcode_minus_L=$hardcode_minus_L_CXX
14047
14048 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14049 # the resulting binary.
14050 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14051
14052 # Set to yes if building a shared library automatically hardcodes DIR into the library
14053 # and all subsequent libraries and executables linked against it.
14054 hardcode_automatic=$hardcode_automatic_CXX
14055
14056 # Variables whose values should be saved in libtool wrapper scripts and
14057 # restored at relink time.
14058 variables_saved_for_relink="$variables_saved_for_relink"
14059
14060 # Whether libtool must link a program against all its dependency libraries.
14061 link_all_deplibs=$link_all_deplibs_CXX
14062
14063 # Compile-time system search path for libraries
14064 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14065
14066 # Run-time system search path for libraries
14067 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14068
14069 # Fix the shell variable \$srcfile for the compiler.
14070 fix_srcfile_path=$lt_fix_srcfile_path
14071
14072 # Set to yes if exported symbols are required.
14073 always_export_symbols=$always_export_symbols_CXX
14074
14075 # The commands to list exported symbols.
14076 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14077
14078 # The commands to extract the exported symbol list from a shared archive.
14079 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14080
14081 # Symbols that should not be listed in the preloaded symbols.
14082 exclude_expsyms=$lt_exclude_expsyms_CXX
14083
14084 # Symbols that must always be exported.
14085 include_expsyms=$lt_include_expsyms_CXX
14086
14087 # ### END LIBTOOL TAG CONFIG: $tagname
14088
14089 __EOF__
14090
14091
14092 else
14093 # If there is no Makefile yet, we rely on a make rule to execute
14094 # `config.status --recheck' to rerun these tests and create the
14095 # libtool script then.
14096 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14097 if test -f "$ltmain_in"; then
14098 test -f Makefile && make "$ltmain"
14099 fi
14100 fi
14101
14102
14103 ac_ext=c
14104 ac_cpp='$CPP $CPPFLAGS'
14105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14108
14109 CC=$lt_save_CC
14110 LDCXX=$LD
14111 LD=$lt_save_LD
14112 GCC=$lt_save_GCC
14113 with_gnu_ldcxx=$with_gnu_ld
14114 with_gnu_ld=$lt_save_with_gnu_ld
14115 lt_cv_path_LDCXX=$lt_cv_path_LD
14116 lt_cv_path_LD=$lt_save_path_LD
14117 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14118 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14119
14120 else
14121 tagname=""
14122 fi
14123 ;;
14124
14125 F77)
14126 if test -n "$F77" && test "X$F77" != "Xno"; then
14127
14128 ac_ext=f
14129 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14130 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14131 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14132
14133
14134 archive_cmds_need_lc_F77=no
14135 allow_undefined_flag_F77=
14136 always_export_symbols_F77=no
14137 archive_expsym_cmds_F77=
14138 export_dynamic_flag_spec_F77=
14139 hardcode_direct_F77=no
14140 hardcode_libdir_flag_spec_F77=
14141 hardcode_libdir_flag_spec_ld_F77=
14142 hardcode_libdir_separator_F77=
14143 hardcode_minus_L_F77=no
14144 hardcode_automatic_F77=no
14145 module_cmds_F77=
14146 module_expsym_cmds_F77=
14147 link_all_deplibs_F77=unknown
14148 old_archive_cmds_F77=$old_archive_cmds
14149 no_undefined_flag_F77=
14150 whole_archive_flag_spec_F77=
14151 enable_shared_with_static_runtimes_F77=no
14152
14153 # Source file extension for f77 test sources.
14154 ac_ext=f
14155
14156 # Object file extension for compiled f77 test sources.
14157 objext=o
14158 objext_F77=$objext
14159
14160 # Code to be used in simple compile tests
14161 lt_simple_compile_test_code="\
14162 subroutine t
14163 return
14164 end
14165 "
14166
14167 # Code to be used in simple link tests
14168 lt_simple_link_test_code="\
14169 program t
14170 end
14171 "
14172
14173 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14174
14175 # If no C compiler was specified, use CC.
14176 LTCC=${LTCC-"$CC"}
14177
14178 # If no C compiler flags were specified, use CFLAGS.
14179 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14180
14181 # Allow CC to be a program name with arguments.
14182 compiler=$CC
14183
14184
14185 # save warnings/boilerplate of simple test code
14186 ac_outfile=conftest.$ac_objext
14187 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14188 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14189 _lt_compiler_boilerplate=`cat conftest.err`
14190 $rm conftest*
14191
14192 ac_outfile=conftest.$ac_objext
14193 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14194 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14195 _lt_linker_boilerplate=`cat conftest.err`
14196 $rm -r conftest*
14197
14198
14199 # Allow CC to be a program name with arguments.
14200 lt_save_CC="$CC"
14201 CC=${F77-"f77"}
14202 compiler=$CC
14203 compiler_F77=$CC
14204 for cc_temp in $compiler""; do
14205 case $cc_temp in
14206 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14207 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14208 \-*) ;;
14209 *) break;;
14210 esac
14211 done
14212 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14213
14214
14215 { echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14216 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6; }
14217 { echo "$as_me:$LINENO: result: $can_build_shared" >&5
14218 echo "${ECHO_T}$can_build_shared" >&6; }
14219
14220 { echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14221 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6; }
14222 test "$can_build_shared" = "no" && enable_shared=no
14223
14224 # On AIX, shared libraries and static libraries use the same namespace, and
14225 # are all built from PIC.
14226 case $host_os in
14227 aix3*)
14228 test "$enable_shared" = yes && enable_static=no
14229 if test -n "$RANLIB"; then
14230 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14231 postinstall_cmds='$RANLIB $lib'
14232 fi
14233 ;;
14234 aix[4-9]*)
14235 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14236 test "$enable_shared" = yes && enable_static=no
14237 fi
14238 ;;
14239 esac
14240 { echo "$as_me:$LINENO: result: $enable_shared" >&5
14241 echo "${ECHO_T}$enable_shared" >&6; }
14242
14243 { echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14244 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6; }
14245 # Make sure either enable_shared or enable_static is yes.
14246 test "$enable_shared" = yes || enable_static=yes
14247 { echo "$as_me:$LINENO: result: $enable_static" >&5
14248 echo "${ECHO_T}$enable_static" >&6; }
14249
14250 GCC_F77="$G77"
14251 LD_F77="$LD"
14252
14253 lt_prog_compiler_wl_F77=
14254 lt_prog_compiler_pic_F77=
14255 lt_prog_compiler_static_F77=
14256
14257 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14258 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
14259
14260 if test "$GCC" = yes; then
14261 lt_prog_compiler_wl_F77='-Wl,'
14262 lt_prog_compiler_static_F77='-static'
14263
14264 case $host_os in
14265 aix*)
14266 # All AIX code is PIC.
14267 if test "$host_cpu" = ia64; then
14268 # AIX 5 now supports IA64 processor
14269 lt_prog_compiler_static_F77='-Bstatic'
14270 fi
14271 ;;
14272
14273 amigaos*)
14274 # FIXME: we need at least 68020 code to build shared libraries, but
14275 # adding the `-m68020' flag to GCC prevents building anything better,
14276 # like `-m68040'.
14277 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14278 ;;
14279
14280 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14281 # PIC is the default for these OSes.
14282 ;;
14283
14284 mingw* | cygwin* | pw32* | os2*)
14285 # This hack is so that the source file can tell whether it is being
14286 # built for inclusion in a dll (and should export symbols for example).
14287 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14288 # (--disable-auto-import) libraries
14289 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14290 ;;
14291
14292 darwin* | rhapsody*)
14293 # PIC is the default on this platform
14294 # Common symbols not allowed in MH_DYLIB files
14295 lt_prog_compiler_pic_F77='-fno-common'
14296 ;;
14297
14298 interix[3-9]*)
14299 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14300 # Instead, we relocate shared libraries at runtime.
14301 ;;
14302
14303 msdosdjgpp*)
14304 # Just because we use GCC doesn't mean we suddenly get shared libraries
14305 # on systems that don't support them.
14306 lt_prog_compiler_can_build_shared_F77=no
14307 enable_shared=no
14308 ;;
14309
14310 sysv4*MP*)
14311 if test -d /usr/nec; then
14312 lt_prog_compiler_pic_F77=-Kconform_pic
14313 fi
14314 ;;
14315
14316 hpux*)
14317 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14318 # not for PA HP-UX.
14319 case $host_cpu in
14320 hppa*64*|ia64*)
14321 # +Z the default
14322 ;;
14323 *)
14324 lt_prog_compiler_pic_F77='-fPIC'
14325 ;;
14326 esac
14327 ;;
14328
14329 *)
14330 lt_prog_compiler_pic_F77='-fPIC'
14331 ;;
14332 esac
14333 else
14334 # PORTME Check for flag to pass linker flags through the system compiler.
14335 case $host_os in
14336 aix*)
14337 lt_prog_compiler_wl_F77='-Wl,'
14338 if test "$host_cpu" = ia64; then
14339 # AIX 5 now supports IA64 processor
14340 lt_prog_compiler_static_F77='-Bstatic'
14341 else
14342 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14343 fi
14344 ;;
14345 darwin*)
14346 # PIC is the default on this platform
14347 # Common symbols not allowed in MH_DYLIB files
14348 case $cc_basename in
14349 xlc*)
14350 lt_prog_compiler_pic_F77='-qnocommon'
14351 lt_prog_compiler_wl_F77='-Wl,'
14352 ;;
14353 esac
14354 ;;
14355
14356 mingw* | cygwin* | pw32* | os2*)
14357 # This hack is so that the source file can tell whether it is being
14358 # built for inclusion in a dll (and should export symbols for example).
14359 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14360 ;;
14361
14362 hpux9* | hpux10* | hpux11*)
14363 lt_prog_compiler_wl_F77='-Wl,'
14364 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14365 # not for PA HP-UX.
14366 case $host_cpu in
14367 hppa*64*|ia64*)
14368 # +Z the default
14369 ;;
14370 *)
14371 lt_prog_compiler_pic_F77='+Z'
14372 ;;
14373 esac
14374 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14375 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14376 ;;
14377
14378 irix5* | irix6* | nonstopux*)
14379 lt_prog_compiler_wl_F77='-Wl,'
14380 # PIC (with -KPIC) is the default.
14381 lt_prog_compiler_static_F77='-non_shared'
14382 ;;
14383
14384 newsos6)
14385 lt_prog_compiler_pic_F77='-KPIC'
14386 lt_prog_compiler_static_F77='-Bstatic'
14387 ;;
14388
14389 linux* | k*bsd*-gnu)
14390 case $cc_basename in
14391 icc* | ecc*)
14392 lt_prog_compiler_wl_F77='-Wl,'
14393 lt_prog_compiler_pic_F77='-KPIC'
14394 lt_prog_compiler_static_F77='-static'
14395 ;;
14396 pgcc* | pgf77* | pgf90* | pgf95*)
14397 # Portland Group compilers (*not* the Pentium gcc compiler,
14398 # which looks to be a dead project)
14399 lt_prog_compiler_wl_F77='-Wl,'
14400 lt_prog_compiler_pic_F77='-fpic'
14401 lt_prog_compiler_static_F77='-Bstatic'
14402 ;;
14403 ccc*)
14404 lt_prog_compiler_wl_F77='-Wl,'
14405 # All Alpha code is PIC.
14406 lt_prog_compiler_static_F77='-non_shared'
14407 ;;
14408 *)
14409 case `$CC -V 2>&1 | sed 5q` in
14410 *Sun\ C*)
14411 # Sun C 5.9
14412 lt_prog_compiler_pic_F77='-KPIC'
14413 lt_prog_compiler_static_F77='-Bstatic'
14414 lt_prog_compiler_wl_F77='-Wl,'
14415 ;;
14416 *Sun\ F*)
14417 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14418 lt_prog_compiler_pic_F77='-KPIC'
14419 lt_prog_compiler_static_F77='-Bstatic'
14420 lt_prog_compiler_wl_F77=''
14421 ;;
14422 esac
14423 ;;
14424 esac
14425 ;;
14426
14427 osf3* | osf4* | osf5*)
14428 lt_prog_compiler_wl_F77='-Wl,'
14429 # All OSF/1 code is PIC.
14430 lt_prog_compiler_static_F77='-non_shared'
14431 ;;
14432
14433 rdos*)
14434 lt_prog_compiler_static_F77='-non_shared'
14435 ;;
14436
14437 solaris*)
14438 lt_prog_compiler_pic_F77='-KPIC'
14439 lt_prog_compiler_static_F77='-Bstatic'
14440 case $cc_basename in
14441 f77* | f90* | f95*)
14442 lt_prog_compiler_wl_F77='-Qoption ld ';;
14443 *)
14444 lt_prog_compiler_wl_F77='-Wl,';;
14445 esac
14446 ;;
14447
14448 sunos4*)
14449 lt_prog_compiler_wl_F77='-Qoption ld '
14450 lt_prog_compiler_pic_F77='-PIC'
14451 lt_prog_compiler_static_F77='-Bstatic'
14452 ;;
14453
14454 sysv4 | sysv4.2uw2* | sysv4.3*)
14455 lt_prog_compiler_wl_F77='-Wl,'
14456 lt_prog_compiler_pic_F77='-KPIC'
14457 lt_prog_compiler_static_F77='-Bstatic'
14458 ;;
14459
14460 sysv4*MP*)
14461 if test -d /usr/nec ;then
14462 lt_prog_compiler_pic_F77='-Kconform_pic'
14463 lt_prog_compiler_static_F77='-Bstatic'
14464 fi
14465 ;;
14466
14467 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14468 lt_prog_compiler_wl_F77='-Wl,'
14469 lt_prog_compiler_pic_F77='-KPIC'
14470 lt_prog_compiler_static_F77='-Bstatic'
14471 ;;
14472
14473 unicos*)
14474 lt_prog_compiler_wl_F77='-Wl,'
14475 lt_prog_compiler_can_build_shared_F77=no
14476 ;;
14477
14478 uts4*)
14479 lt_prog_compiler_pic_F77='-pic'
14480 lt_prog_compiler_static_F77='-Bstatic'
14481 ;;
14482
14483 *)
14484 lt_prog_compiler_can_build_shared_F77=no
14485 ;;
14486 esac
14487 fi
14488
14489 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14490 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6; }
14491
14492 #
14493 # Check to make sure the PIC flag actually works.
14494 #
14495 if test -n "$lt_prog_compiler_pic_F77"; then
14496
14497 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14498 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6; }
14499 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 else
14502 lt_cv_prog_compiler_pic_works_F77=no
14503 ac_outfile=conftest.$ac_objext
14504 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14505 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14506 # Insert the option either (1) after the last *FLAGS variable, or
14507 # (2) before a word containing "conftest.", or (3) at the end.
14508 # Note that $ac_compile itself does not contain backslashes and begins
14509 # with a dollar sign (not a hyphen), so the echo should work correctly.
14510 # The option is referenced via a variable to avoid confusing sed.
14511 lt_compile=`echo "$ac_compile" | $SED \
14512 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14513 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14514 -e 's:$: $lt_compiler_flag:'`
14515 (eval echo "\"\$as_me:14515: $lt_compile\"" >&5)
14516 (eval "$lt_compile" 2>conftest.err)
14517 ac_status=$?
14518 cat conftest.err >&5
14519 echo "$as_me:14519: \$? = $ac_status" >&5
14520 if (exit $ac_status) && test -s "$ac_outfile"; then
14521 # The compiler can only warn and ignore the option if not recognized
14522 # So say no if there are warnings other than the usual output.
14523 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14524 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14525 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14526 lt_cv_prog_compiler_pic_works_F77=yes
14527 fi
14528 fi
14529 $rm conftest*
14530
14531 fi
14532 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14533 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6; }
14534
14535 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14536 case $lt_prog_compiler_pic_F77 in
14537 "" | " "*) ;;
14538 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14539 esac
14540 else
14541 lt_prog_compiler_pic_F77=
14542 lt_prog_compiler_can_build_shared_F77=no
14543 fi
14544
14545 fi
14546 case $host_os in
14547 # For platforms which do not support PIC, -DPIC is meaningless:
14548 *djgpp*)
14549 lt_prog_compiler_pic_F77=
14550 ;;
14551 *)
14552 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14553 ;;
14554 esac
14555
14556 #
14557 # Check to make sure the static flag actually works.
14558 #
14559 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14560 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14561 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
14562 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14563 echo $ECHO_N "(cached) $ECHO_C" >&6
14564 else
14565 lt_cv_prog_compiler_static_works_F77=no
14566 save_LDFLAGS="$LDFLAGS"
14567 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14568 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14569 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14570 # The linker can only warn and ignore the option if not recognized
14571 # So say no if there are warnings
14572 if test -s conftest.err; then
14573 # Append any errors to the config.log.
14574 cat conftest.err 1>&5
14575 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14576 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14577 if diff conftest.exp conftest.er2 >/dev/null; then
14578 lt_cv_prog_compiler_static_works_F77=yes
14579 fi
14580 else
14581 lt_cv_prog_compiler_static_works_F77=yes
14582 fi
14583 fi
14584 $rm -r conftest*
14585 LDFLAGS="$save_LDFLAGS"
14586
14587 fi
14588 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14589 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6; }
14590
14591 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14592 :
14593 else
14594 lt_prog_compiler_static_F77=
14595 fi
14596
14597
14598 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14599 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
14600 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14601 echo $ECHO_N "(cached) $ECHO_C" >&6
14602 else
14603 lt_cv_prog_compiler_c_o_F77=no
14604 $rm -r conftest 2>/dev/null
14605 mkdir conftest
14606 cd conftest
14607 mkdir out
14608 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14609
14610 lt_compiler_flag="-o out/conftest2.$ac_objext"
14611 # Insert the option either (1) after the last *FLAGS variable, or
14612 # (2) before a word containing "conftest.", or (3) at the end.
14613 # Note that $ac_compile itself does not contain backslashes and begins
14614 # with a dollar sign (not a hyphen), so the echo should work correctly.
14615 lt_compile=`echo "$ac_compile" | $SED \
14616 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14617 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14618 -e 's:$: $lt_compiler_flag:'`
14619 (eval echo "\"\$as_me:14619: $lt_compile\"" >&5)
14620 (eval "$lt_compile" 2>out/conftest.err)
14621 ac_status=$?
14622 cat out/conftest.err >&5
14623 echo "$as_me:14623: \$? = $ac_status" >&5
14624 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14625 then
14626 # The compiler can only warn and ignore the option if not recognized
14627 # So say no if there are warnings
14628 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14629 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14630 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14631 lt_cv_prog_compiler_c_o_F77=yes
14632 fi
14633 fi
14634 chmod u+w . 2>&5
14635 $rm conftest*
14636 # SGI C++ compiler will create directory out/ii_files/ for
14637 # template instantiation
14638 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14639 $rm out/* && rmdir out
14640 cd ..
14641 rmdir conftest
14642 $rm conftest*
14643
14644 fi
14645 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14646 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6; }
14647
14648
14649 hard_links="nottested"
14650 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14651 # do not overwrite the value of need_locks provided by the user
14652 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14653 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
14654 hard_links=yes
14655 $rm conftest*
14656 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14657 touch conftest.a
14658 ln conftest.a conftest.b 2>&5 || hard_links=no
14659 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14660 { echo "$as_me:$LINENO: result: $hard_links" >&5
14661 echo "${ECHO_T}$hard_links" >&6; }
14662 if test "$hard_links" = no; then
14663 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14664 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14665 need_locks=warn
14666 fi
14667 else
14668 need_locks=no
14669 fi
14670
14671 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14672 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
14673
14674 runpath_var=
14675 allow_undefined_flag_F77=
14676 enable_shared_with_static_runtimes_F77=no
14677 archive_cmds_F77=
14678 archive_expsym_cmds_F77=
14679 old_archive_From_new_cmds_F77=
14680 old_archive_from_expsyms_cmds_F77=
14681 export_dynamic_flag_spec_F77=
14682 whole_archive_flag_spec_F77=
14683 thread_safe_flag_spec_F77=
14684 hardcode_libdir_flag_spec_F77=
14685 hardcode_libdir_flag_spec_ld_F77=
14686 hardcode_libdir_separator_F77=
14687 hardcode_direct_F77=no
14688 hardcode_minus_L_F77=no
14689 hardcode_shlibpath_var_F77=unsupported
14690 link_all_deplibs_F77=unknown
14691 hardcode_automatic_F77=no
14692 module_cmds_F77=
14693 module_expsym_cmds_F77=
14694 always_export_symbols_F77=no
14695 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14696 # include_expsyms should be a list of space-separated symbols to be *always*
14697 # included in the symbol list
14698 include_expsyms_F77=
14699 # exclude_expsyms can be an extended regexp of symbols to exclude
14700 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14701 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14702 # as well as any symbol that contains `d'.
14703 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14704 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14705 # platforms (ab)use it in PIC code, but their linkers get confused if
14706 # the symbol is explicitly referenced. Since portable code cannot
14707 # rely on this symbol name, it's probably fine to never include it in
14708 # preloaded symbol tables.
14709 # Exclude shared library initialization/finalization symbols.
14710 extract_expsyms_cmds=
14711 # Just being paranoid about ensuring that cc_basename is set.
14712 for cc_temp in $compiler""; do
14713 case $cc_temp in
14714 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14715 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14716 \-*) ;;
14717 *) break;;
14718 esac
14719 done
14720 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14721
14722 case $host_os in
14723 cygwin* | mingw* | pw32*)
14724 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14725 # When not using gcc, we currently assume that we are using
14726 # Microsoft Visual C++.
14727 if test "$GCC" != yes; then
14728 with_gnu_ld=no
14729 fi
14730 ;;
14731 interix*)
14732 # we just hope/assume this is gcc and not c89 (= MSVC++)
14733 with_gnu_ld=yes
14734 ;;
14735 openbsd*)
14736 with_gnu_ld=no
14737 ;;
14738 esac
14739
14740 ld_shlibs_F77=yes
14741 if test "$with_gnu_ld" = yes; then
14742 # If archive_cmds runs LD, not CC, wlarc should be empty
14743 wlarc='${wl}'
14744
14745 # Set some defaults for GNU ld with shared library support. These
14746 # are reset later if shared libraries are not supported. Putting them
14747 # here allows them to be overridden if necessary.
14748 runpath_var=LD_RUN_PATH
14749 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14750 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14751 # ancient GNU ld didn't support --whole-archive et. al.
14752 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14753 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14754 else
14755 whole_archive_flag_spec_F77=
14756 fi
14757 supports_anon_versioning=no
14758 case `$LD -v 2>/dev/null` in
14759 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14760 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14761 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14762 *\ 2.11.*) ;; # other 2.11 versions
14763 *) supports_anon_versioning=yes ;;
14764 esac
14765
14766 # See if GNU ld supports shared libraries.
14767 case $host_os in
14768 aix[3-9]*)
14769 # On AIX/PPC, the GNU linker is very broken
14770 if test "$host_cpu" != ia64; then
14771 ld_shlibs_F77=no
14772 cat <<EOF 1>&2
14773
14774 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14775 *** to be unable to reliably create shared libraries on AIX.
14776 *** Therefore, libtool is disabling shared libraries support. If you
14777 *** really care for shared libraries, you may want to modify your PATH
14778 *** so that a non-GNU linker is found, and then restart.
14779
14780 EOF
14781 fi
14782 ;;
14783
14784 amigaos*)
14785 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)'
14786 hardcode_libdir_flag_spec_F77='-L$libdir'
14787 hardcode_minus_L_F77=yes
14788
14789 # Samuel A. Falvo II <[email protected]> reports
14790 # that the semantics of dynamic libraries on AmigaOS, at least up
14791 # to version 4, is to share data among multiple programs linked
14792 # with the same dynamic library. Since this doesn't match the
14793 # behavior of shared libraries on other platforms, we can't use
14794 # them.
14795 ld_shlibs_F77=no
14796 ;;
14797
14798 beos*)
14799 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14800 allow_undefined_flag_F77=unsupported
14801 # Joseph Beckenbach <[email protected]> says some releases of gcc
14802 # support --undefined. This deserves some investigation. FIXME
14803 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14804 else
14805 ld_shlibs_F77=no
14806 fi
14807 ;;
14808
14809 cygwin* | mingw* | pw32*)
14810 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14811 # as there is no search path for DLLs.
14812 hardcode_libdir_flag_spec_F77='-L$libdir'
14813 allow_undefined_flag_F77=unsupported
14814 always_export_symbols_F77=no
14815 enable_shared_with_static_runtimes_F77=yes
14816 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14817
14818 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14819 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14820 # If the export-symbols file already is a .def file (1st line
14821 # is EXPORTS), use it as is; otherwise, prepend...
14822 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14823 cp $export_symbols $output_objdir/$soname.def;
14824 else
14825 echo EXPORTS > $output_objdir/$soname.def;
14826 cat $export_symbols >> $output_objdir/$soname.def;
14827 fi~
14828 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14829 else
14830 ld_shlibs_F77=no
14831 fi
14832 ;;
14833
14834 interix[3-9]*)
14835 hardcode_direct_F77=no
14836 hardcode_shlibpath_var_F77=no
14837 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14838 export_dynamic_flag_spec_F77='${wl}-E'
14839 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14840 # Instead, shared libraries are loaded at an image base (0x10000000 by
14841 # default) and relocated if they conflict, which is a slow very memory
14842 # consuming and fragmenting process. To avoid this, we pick a random,
14843 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14844 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14845 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'
14846 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'
14847 ;;
14848
14849 gnu* | linux* | k*bsd*-gnu)
14850 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14851 tmp_addflag=
14852 case $cc_basename,$host_cpu in
14853 pgcc*) # Portland Group C compiler
14854 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'
14855 tmp_addflag=' $pic_flag'
14856 ;;
14857 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14858 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'
14859 tmp_addflag=' $pic_flag -Mnomain' ;;
14860 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14861 tmp_addflag=' -i_dynamic' ;;
14862 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14863 tmp_addflag=' -i_dynamic -nofor_main' ;;
14864 ifc* | ifort*) # Intel Fortran compiler
14865 tmp_addflag=' -nofor_main' ;;
14866 esac
14867 case `$CC -V 2>&1 | sed 5q` in
14868 *Sun\ C*) # Sun C 5.9
14869 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14870 tmp_sharedflag='-G' ;;
14871 *Sun\ F*) # Sun Fortran 8.3
14872 tmp_sharedflag='-G' ;;
14873 *)
14874 tmp_sharedflag='-shared' ;;
14875 esac
14876 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14877
14878 if test $supports_anon_versioning = yes; then
14879 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14880 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14881 $echo "local: *; };" >> $output_objdir/$libname.ver~
14882 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14883 fi
14884 link_all_deplibs_F77=no
14885 else
14886 ld_shlibs_F77=no
14887 fi
14888 ;;
14889
14890 netbsd* | netbsdelf*-gnu)
14891 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14892 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14893 wlarc=
14894 else
14895 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14896 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14897 fi
14898 ;;
14899
14900 solaris*)
14901 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14902 ld_shlibs_F77=no
14903 cat <<EOF 1>&2
14904
14905 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14906 *** create shared libraries on Solaris systems. Therefore, libtool
14907 *** is disabling shared libraries support. We urge you to upgrade GNU
14908 *** binutils to release 2.9.1 or newer. Another option is to modify
14909 *** your PATH or compiler configuration so that the native linker is
14910 *** used, and then restart.
14911
14912 EOF
14913 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14914 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14915 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14916 else
14917 ld_shlibs_F77=no
14918 fi
14919 ;;
14920
14921 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14922 case `$LD -v 2>&1` in
14923 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14924 ld_shlibs_F77=no
14925 cat <<_LT_EOF 1>&2
14926
14927 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14928 *** reliably create shared libraries on SCO systems. Therefore, libtool
14929 *** is disabling shared libraries support. We urge you to upgrade GNU
14930 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14931 *** your PATH or compiler configuration so that the native linker is
14932 *** used, and then restart.
14933
14934 _LT_EOF
14935 ;;
14936 *)
14937 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14938 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14939 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14940 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14941 else
14942 ld_shlibs_F77=no
14943 fi
14944 ;;
14945 esac
14946 ;;
14947
14948 sunos4*)
14949 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14950 wlarc=
14951 hardcode_direct_F77=yes
14952 hardcode_shlibpath_var_F77=no
14953 ;;
14954
14955 *)
14956 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14957 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14958 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14959 else
14960 ld_shlibs_F77=no
14961 fi
14962 ;;
14963 esac
14964
14965 if test "$ld_shlibs_F77" = no; then
14966 runpath_var=
14967 hardcode_libdir_flag_spec_F77=
14968 export_dynamic_flag_spec_F77=
14969 whole_archive_flag_spec_F77=
14970 fi
14971 else
14972 # PORTME fill in a description of your system's linker (not GNU ld)
14973 case $host_os in
14974 aix3*)
14975 allow_undefined_flag_F77=unsupported
14976 always_export_symbols_F77=yes
14977 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'
14978 # Note: this linker hardcodes the directories in LIBPATH if there
14979 # are no directories specified by -L.
14980 hardcode_minus_L_F77=yes
14981 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14982 # Neither direct hardcoding nor static linking is supported with a
14983 # broken collect2.
14984 hardcode_direct_F77=unsupported
14985 fi
14986 ;;
14987
14988 aix[4-9]*)
14989 if test "$host_cpu" = ia64; then
14990 # On IA64, the linker does run time linking by default, so we don't
14991 # have to do anything special.
14992 aix_use_runtimelinking=no
14993 exp_sym_flag='-Bexport'
14994 no_entry_flag=""
14995 else
14996 # If we're using GNU nm, then we don't want the "-C" option.
14997 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14998 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14999 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'
15000 else
15001 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'
15002 fi
15003 aix_use_runtimelinking=no
15004
15005 # Test if we are trying to use run time linking or normal
15006 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15007 # need to do runtime linking.
15008 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15009 for ld_flag in $LDFLAGS; do
15010 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15011 aix_use_runtimelinking=yes
15012 break
15013 fi
15014 done
15015 ;;
15016 esac
15017
15018 exp_sym_flag='-bexport'
15019 no_entry_flag='-bnoentry'
15020 fi
15021
15022 # When large executables or shared objects are built, AIX ld can
15023 # have problems creating the table of contents. If linking a library
15024 # or program results in "error TOC overflow" add -mminimal-toc to
15025 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15026 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15027
15028 archive_cmds_F77=''
15029 hardcode_direct_F77=yes
15030 hardcode_libdir_separator_F77=':'
15031 link_all_deplibs_F77=yes
15032
15033 if test "$GCC" = yes; then
15034 case $host_os in aix4.[012]|aix4.[012].*)
15035 # We only want to do this on AIX 4.2 and lower, the check
15036 # below for broken collect2 doesn't work under 4.3+
15037 collect2name=`${CC} -print-prog-name=collect2`
15038 if test -f "$collect2name" && \
15039 strings "$collect2name" | grep resolve_lib_name >/dev/null
15040 then
15041 # We have reworked collect2
15042 :
15043 else
15044 # We have old collect2
15045 hardcode_direct_F77=unsupported
15046 # It fails to find uninstalled libraries when the uninstalled
15047 # path is not listed in the libpath. Setting hardcode_minus_L
15048 # to unsupported forces relinking
15049 hardcode_minus_L_F77=yes
15050 hardcode_libdir_flag_spec_F77='-L$libdir'
15051 hardcode_libdir_separator_F77=
15052 fi
15053 ;;
15054 esac
15055 shared_flag='-shared'
15056 if test "$aix_use_runtimelinking" = yes; then
15057 shared_flag="$shared_flag "'${wl}-G'
15058 fi
15059 else
15060 # not using gcc
15061 if test "$host_cpu" = ia64; then
15062 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15063 # chokes on -Wl,-G. The following line is correct:
15064 shared_flag='-G'
15065 else
15066 if test "$aix_use_runtimelinking" = yes; then
15067 shared_flag='${wl}-G'
15068 else
15069 shared_flag='${wl}-bM:SRE'
15070 fi
15071 fi
15072 fi
15073
15074 # It seems that -bexpall does not export symbols beginning with
15075 # underscore (_), so it is better to generate a list of symbols to export.
15076 always_export_symbols_F77=yes
15077 if test "$aix_use_runtimelinking" = yes; then
15078 # Warning - without using the other runtime loading flags (-brtl),
15079 # -berok will link without error, but may produce a broken library.
15080 allow_undefined_flag_F77='-berok'
15081 # Determine the default libpath from the value encoded in an empty executable.
15082 cat >conftest.$ac_ext <<_ACEOF
15083 program main
15084
15085 end
15086 _ACEOF
15087 rm -f conftest.$ac_objext conftest$ac_exeext
15088 if { (ac_try="$ac_link"
15089 case "(($ac_try" in
15090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15091 *) ac_try_echo=$ac_try;;
15092 esac
15093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15094 (eval "$ac_link") 2>conftest.er1
15095 ac_status=$?
15096 grep -v '^ *+' conftest.er1 >conftest.err
15097 rm -f conftest.er1
15098 cat conftest.err >&5
15099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15100 (exit $ac_status); } && {
15101 test -z "$ac_f77_werror_flag" ||
15102 test ! -s conftest.err
15103 } && test -s conftest$ac_exeext &&
15104 $as_test_x conftest$ac_exeext; then
15105
15106 lt_aix_libpath_sed='
15107 /Import File Strings/,/^$/ {
15108 /^0/ {
15109 s/^0 *\(.*\)$/\1/
15110 p
15111 }
15112 }'
15113 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15114 # Check for a 64-bit object if we didn't find anything.
15115 if test -z "$aix_libpath"; then
15116 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15117 fi
15118 else
15119 echo "$as_me: failed program was:" >&5
15120 sed 's/^/| /' conftest.$ac_ext >&5
15121
15122
15123 fi
15124
15125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15126 conftest$ac_exeext conftest.$ac_ext
15127 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15128
15129 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15130 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"
15131 else
15132 if test "$host_cpu" = ia64; then
15133 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15134 allow_undefined_flag_F77="-z nodefs"
15135 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"
15136 else
15137 # Determine the default libpath from the value encoded in an empty executable.
15138 cat >conftest.$ac_ext <<_ACEOF
15139 program main
15140
15141 end
15142 _ACEOF
15143 rm -f conftest.$ac_objext conftest$ac_exeext
15144 if { (ac_try="$ac_link"
15145 case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15148 esac
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_link") 2>conftest.er1
15151 ac_status=$?
15152 grep -v '^ *+' conftest.er1 >conftest.err
15153 rm -f conftest.er1
15154 cat conftest.err >&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } && {
15157 test -z "$ac_f77_werror_flag" ||
15158 test ! -s conftest.err
15159 } && test -s conftest$ac_exeext &&
15160 $as_test_x conftest$ac_exeext; then
15161
15162 lt_aix_libpath_sed='
15163 /Import File Strings/,/^$/ {
15164 /^0/ {
15165 s/^0 *\(.*\)$/\1/
15166 p
15167 }
15168 }'
15169 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15170 # Check for a 64-bit object if we didn't find anything.
15171 if test -z "$aix_libpath"; then
15172 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15173 fi
15174 else
15175 echo "$as_me: failed program was:" >&5
15176 sed 's/^/| /' conftest.$ac_ext >&5
15177
15178
15179 fi
15180
15181 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15182 conftest$ac_exeext conftest.$ac_ext
15183 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15184
15185 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15186 # Warning - without using the other run time loading flags,
15187 # -berok will link without error, but may produce a broken library.
15188 no_undefined_flag_F77=' ${wl}-bernotok'
15189 allow_undefined_flag_F77=' ${wl}-berok'
15190 # Exported symbols can be pulled into shared objects from archives
15191 whole_archive_flag_spec_F77='$convenience'
15192 archive_cmds_need_lc_F77=yes
15193 # This is similar to how AIX traditionally builds its shared libraries.
15194 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'
15195 fi
15196 fi
15197 ;;
15198
15199 amigaos*)
15200 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)'
15201 hardcode_libdir_flag_spec_F77='-L$libdir'
15202 hardcode_minus_L_F77=yes
15203 # see comment about different semantics on the GNU ld section
15204 ld_shlibs_F77=no
15205 ;;
15206
15207 bsdi[45]*)
15208 export_dynamic_flag_spec_F77=-rdynamic
15209 ;;
15210
15211 cygwin* | mingw* | pw32*)
15212 # When not using gcc, we currently assume that we are using
15213 # Microsoft Visual C++.
15214 # hardcode_libdir_flag_spec is actually meaningless, as there is
15215 # no search path for DLLs.
15216 hardcode_libdir_flag_spec_F77=' '
15217 allow_undefined_flag_F77=unsupported
15218 # Tell ltmain to make .lib files, not .a files.
15219 libext=lib
15220 # Tell ltmain to make .dll files, not .so files.
15221 shrext_cmds=".dll"
15222 # FIXME: Setting linknames here is a bad hack.
15223 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15224 # The linker will automatically build a .lib file if we build a DLL.
15225 old_archive_From_new_cmds_F77='true'
15226 # FIXME: Should let the user specify the lib program.
15227 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15228 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15229 enable_shared_with_static_runtimes_F77=yes
15230 ;;
15231
15232 darwin* | rhapsody*)
15233 case $host_os in
15234 rhapsody* | darwin1.[012])
15235 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15236 ;;
15237 *) # Darwin 1.3 on
15238 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15239 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15240 else
15241 case ${MACOSX_DEPLOYMENT_TARGET} in
15242 10.[012])
15243 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15244 ;;
15245 10.*)
15246 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15247 ;;
15248 esac
15249 fi
15250 ;;
15251 esac
15252 archive_cmds_need_lc_F77=no
15253 hardcode_direct_F77=no
15254 hardcode_automatic_F77=yes
15255 hardcode_shlibpath_var_F77=unsupported
15256 whole_archive_flag_spec_F77=''
15257 link_all_deplibs_F77=yes
15258 if test "$GCC" = yes ; then
15259 output_verbose_link_cmd='echo'
15260 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15261 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15262 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
15263 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15264 else
15265 case $cc_basename in
15266 xlc*)
15267 output_verbose_link_cmd='echo'
15268 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15269 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15270 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15271 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
15272 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}'
15273 ;;
15274 *)
15275 ld_shlibs_F77=no
15276 ;;
15277 esac
15278 fi
15279 ;;
15280
15281 dgux*)
15282 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15283 hardcode_libdir_flag_spec_F77='-L$libdir'
15284 hardcode_shlibpath_var_F77=no
15285 ;;
15286
15287 freebsd1*)
15288 ld_shlibs_F77=no
15289 ;;
15290
15291 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15292 # support. Future versions do this automatically, but an explicit c++rt0.o
15293 # does not break anything, and helps significantly (at the cost of a little
15294 # extra space).
15295 freebsd2.2*)
15296 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15297 hardcode_libdir_flag_spec_F77='-R$libdir'
15298 hardcode_direct_F77=yes
15299 hardcode_shlibpath_var_F77=no
15300 ;;
15301
15302 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15303 freebsd2*)
15304 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15305 hardcode_direct_F77=yes
15306 hardcode_minus_L_F77=yes
15307 hardcode_shlibpath_var_F77=no
15308 ;;
15309
15310 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15311 freebsd* | dragonfly*)
15312 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15313 hardcode_libdir_flag_spec_F77='-R$libdir'
15314 hardcode_direct_F77=yes
15315 hardcode_shlibpath_var_F77=no
15316 ;;
15317
15318 hpux9*)
15319 if test "$GCC" = yes; then
15320 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'
15321 else
15322 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'
15323 fi
15324 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15325 hardcode_libdir_separator_F77=:
15326 hardcode_direct_F77=yes
15327
15328 # hardcode_minus_L: Not really in the search PATH,
15329 # but as the default location of the library.
15330 hardcode_minus_L_F77=yes
15331 export_dynamic_flag_spec_F77='${wl}-E'
15332 ;;
15333
15334 hpux10*)
15335 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15336 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15337 else
15338 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15339 fi
15340 if test "$with_gnu_ld" = no; then
15341 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15342 hardcode_libdir_separator_F77=:
15343
15344 hardcode_direct_F77=yes
15345 export_dynamic_flag_spec_F77='${wl}-E'
15346
15347 # hardcode_minus_L: Not really in the search PATH,
15348 # but as the default location of the library.
15349 hardcode_minus_L_F77=yes
15350 fi
15351 ;;
15352
15353 hpux11*)
15354 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15355 case $host_cpu in
15356 hppa*64*)
15357 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15358 ;;
15359 ia64*)
15360 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15361 ;;
15362 *)
15363 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15364 ;;
15365 esac
15366 else
15367 case $host_cpu in
15368 hppa*64*)
15369 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15370 ;;
15371 ia64*)
15372 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15373 ;;
15374 *)
15375 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15376 ;;
15377 esac
15378 fi
15379 if test "$with_gnu_ld" = no; then
15380 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15381 hardcode_libdir_separator_F77=:
15382
15383 case $host_cpu in
15384 hppa*64*|ia64*)
15385 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15386 hardcode_direct_F77=no
15387 hardcode_shlibpath_var_F77=no
15388 ;;
15389 *)
15390 hardcode_direct_F77=yes
15391 export_dynamic_flag_spec_F77='${wl}-E'
15392
15393 # hardcode_minus_L: Not really in the search PATH,
15394 # but as the default location of the library.
15395 hardcode_minus_L_F77=yes
15396 ;;
15397 esac
15398 fi
15399 ;;
15400
15401 irix5* | irix6* | nonstopux*)
15402 if test "$GCC" = yes; then
15403 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'
15404 else
15405 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'
15406 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15407 fi
15408 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15409 hardcode_libdir_separator_F77=:
15410 link_all_deplibs_F77=yes
15411 ;;
15412
15413 netbsd* | netbsdelf*-gnu)
15414 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15415 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15416 else
15417 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15418 fi
15419 hardcode_libdir_flag_spec_F77='-R$libdir'
15420 hardcode_direct_F77=yes
15421 hardcode_shlibpath_var_F77=no
15422 ;;
15423
15424 newsos6)
15425 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15426 hardcode_direct_F77=yes
15427 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15428 hardcode_libdir_separator_F77=:
15429 hardcode_shlibpath_var_F77=no
15430 ;;
15431
15432 openbsd*)
15433 if test -f /usr/libexec/ld.so; then
15434 hardcode_direct_F77=yes
15435 hardcode_shlibpath_var_F77=no
15436 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15437 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15438 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15439 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15440 export_dynamic_flag_spec_F77='${wl}-E'
15441 else
15442 case $host_os in
15443 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15444 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15445 hardcode_libdir_flag_spec_F77='-R$libdir'
15446 ;;
15447 *)
15448 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15449 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15450 ;;
15451 esac
15452 fi
15453 else
15454 ld_shlibs_F77=no
15455 fi
15456 ;;
15457
15458 os2*)
15459 hardcode_libdir_flag_spec_F77='-L$libdir'
15460 hardcode_minus_L_F77=yes
15461 allow_undefined_flag_F77=unsupported
15462 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'
15463 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15464 ;;
15465
15466 osf3*)
15467 if test "$GCC" = yes; then
15468 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15469 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'
15470 else
15471 allow_undefined_flag_F77=' -expect_unresolved \*'
15472 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'
15473 fi
15474 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15475 hardcode_libdir_separator_F77=:
15476 ;;
15477
15478 osf4* | osf5*) # as osf3* with the addition of -msym flag
15479 if test "$GCC" = yes; then
15480 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15481 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'
15482 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15483 else
15484 allow_undefined_flag_F77=' -expect_unresolved \*'
15485 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'
15486 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~
15487 $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'
15488
15489 # Both c and cxx compiler support -rpath directly
15490 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15491 fi
15492 hardcode_libdir_separator_F77=:
15493 ;;
15494
15495 solaris*)
15496 no_undefined_flag_F77=' -z text'
15497 if test "$GCC" = yes; then
15498 wlarc='${wl}'
15499 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15500 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15501 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15502 else
15503 wlarc=''
15504 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15505 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15506 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15507 fi
15508 hardcode_libdir_flag_spec_F77='-R$libdir'
15509 hardcode_shlibpath_var_F77=no
15510 case $host_os in
15511 solaris2.[0-5] | solaris2.[0-5].*) ;;
15512 *)
15513 # The compiler driver will combine and reorder linker options,
15514 # but understands `-z linker_flag'. GCC discards it without `$wl',
15515 # but is careful enough not to reorder.
15516 # Supported since Solaris 2.6 (maybe 2.5.1?)
15517 if test "$GCC" = yes; then
15518 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15519 else
15520 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15521 fi
15522 ;;
15523 esac
15524 link_all_deplibs_F77=yes
15525 ;;
15526
15527 sunos4*)
15528 if test "x$host_vendor" = xsequent; then
15529 # Use $CC to link under sequent, because it throws in some extra .o
15530 # files that make .init and .fini sections work.
15531 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15532 else
15533 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15534 fi
15535 hardcode_libdir_flag_spec_F77='-L$libdir'
15536 hardcode_direct_F77=yes
15537 hardcode_minus_L_F77=yes
15538 hardcode_shlibpath_var_F77=no
15539 ;;
15540
15541 sysv4)
15542 case $host_vendor in
15543 sni)
15544 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15545 hardcode_direct_F77=yes # is this really true???
15546 ;;
15547 siemens)
15548 ## LD is ld it makes a PLAMLIB
15549 ## CC just makes a GrossModule.
15550 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15551 reload_cmds_F77='$CC -r -o $output$reload_objs'
15552 hardcode_direct_F77=no
15553 ;;
15554 motorola)
15555 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15556 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15557 ;;
15558 esac
15559 runpath_var='LD_RUN_PATH'
15560 hardcode_shlibpath_var_F77=no
15561 ;;
15562
15563 sysv4.3*)
15564 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15565 hardcode_shlibpath_var_F77=no
15566 export_dynamic_flag_spec_F77='-Bexport'
15567 ;;
15568
15569 sysv4*MP*)
15570 if test -d /usr/nec; then
15571 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15572 hardcode_shlibpath_var_F77=no
15573 runpath_var=LD_RUN_PATH
15574 hardcode_runpath_var=yes
15575 ld_shlibs_F77=yes
15576 fi
15577 ;;
15578
15579 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15580 no_undefined_flag_F77='${wl}-z,text'
15581 archive_cmds_need_lc_F77=no
15582 hardcode_shlibpath_var_F77=no
15583 runpath_var='LD_RUN_PATH'
15584
15585 if test "$GCC" = yes; then
15586 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15587 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15588 else
15589 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15590 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15591 fi
15592 ;;
15593
15594 sysv5* | sco3.2v5* | sco5v6*)
15595 # Note: We can NOT use -z defs as we might desire, because we do not
15596 # link with -lc, and that would cause any symbols used from libc to
15597 # always be unresolved, which means just about no library would
15598 # ever link correctly. If we're not using GNU ld we use -z text
15599 # though, which does catch some bad symbols but isn't as heavy-handed
15600 # as -z defs.
15601 no_undefined_flag_F77='${wl}-z,text'
15602 allow_undefined_flag_F77='${wl}-z,nodefs'
15603 archive_cmds_need_lc_F77=no
15604 hardcode_shlibpath_var_F77=no
15605 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15606 hardcode_libdir_separator_F77=':'
15607 link_all_deplibs_F77=yes
15608 export_dynamic_flag_spec_F77='${wl}-Bexport'
15609 runpath_var='LD_RUN_PATH'
15610
15611 if test "$GCC" = yes; then
15612 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15613 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15614 else
15615 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15616 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15617 fi
15618 ;;
15619
15620 uts4*)
15621 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15622 hardcode_libdir_flag_spec_F77='-L$libdir'
15623 hardcode_shlibpath_var_F77=no
15624 ;;
15625
15626 *)
15627 ld_shlibs_F77=no
15628 ;;
15629 esac
15630 fi
15631
15632 { echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15633 echo "${ECHO_T}$ld_shlibs_F77" >&6; }
15634 test "$ld_shlibs_F77" = no && can_build_shared=no
15635
15636 #
15637 # Do we need to explicitly link libc?
15638 #
15639 case "x$archive_cmds_need_lc_F77" in
15640 x|xyes)
15641 # Assume -lc should be added
15642 archive_cmds_need_lc_F77=yes
15643
15644 if test "$enable_shared" = yes && test "$GCC" = yes; then
15645 case $archive_cmds_F77 in
15646 *'~'*)
15647 # FIXME: we may have to deal with multi-command sequences.
15648 ;;
15649 '$CC '*)
15650 # Test whether the compiler implicitly links with -lc since on some
15651 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15652 # to ld, don't add -lc before -lgcc.
15653 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15654 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
15655 $rm conftest*
15656 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15657
15658 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15659 (eval $ac_compile) 2>&5
15660 ac_status=$?
15661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15662 (exit $ac_status); } 2>conftest.err; then
15663 soname=conftest
15664 lib=conftest
15665 libobjs=conftest.$ac_objext
15666 deplibs=
15667 wl=$lt_prog_compiler_wl_F77
15668 pic_flag=$lt_prog_compiler_pic_F77
15669 compiler_flags=-v
15670 linker_flags=-v
15671 verstring=
15672 output_objdir=.
15673 libname=conftest
15674 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15675 allow_undefined_flag_F77=
15676 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15677 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15678 ac_status=$?
15679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15680 (exit $ac_status); }
15681 then
15682 archive_cmds_need_lc_F77=no
15683 else
15684 archive_cmds_need_lc_F77=yes
15685 fi
15686 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15687 else
15688 cat conftest.err 1>&5
15689 fi
15690 $rm conftest*
15691 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15692 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6; }
15693 ;;
15694 esac
15695 fi
15696 ;;
15697 esac
15698
15699 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15700 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
15701 library_names_spec=
15702 libname_spec='lib$name'
15703 soname_spec=
15704 shrext_cmds=".so"
15705 postinstall_cmds=
15706 postuninstall_cmds=
15707 finish_cmds=
15708 finish_eval=
15709 shlibpath_var=
15710 shlibpath_overrides_runpath=unknown
15711 version_type=none
15712 dynamic_linker="$host_os ld.so"
15713 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15714
15715 need_lib_prefix=unknown
15716 hardcode_into_libs=no
15717
15718 # when you set need_version to no, make sure it does not cause -set_version
15719 # flags to be left without arguments
15720 need_version=unknown
15721
15722 case $host_os in
15723 aix3*)
15724 version_type=linux
15725 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15726 shlibpath_var=LIBPATH
15727
15728 # AIX 3 has no versioning support, so we append a major version to the name.
15729 soname_spec='${libname}${release}${shared_ext}$major'
15730 ;;
15731
15732 aix[4-9]*)
15733 version_type=linux
15734 need_lib_prefix=no
15735 need_version=no
15736 hardcode_into_libs=yes
15737 if test "$host_cpu" = ia64; then
15738 # AIX 5 supports IA64
15739 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15740 shlibpath_var=LD_LIBRARY_PATH
15741 else
15742 # With GCC up to 2.95.x, collect2 would create an import file
15743 # for dependence libraries. The import file would start with
15744 # the line `#! .'. This would cause the generated library to
15745 # depend on `.', always an invalid library. This was fixed in
15746 # development snapshots of GCC prior to 3.0.
15747 case $host_os in
15748 aix4 | aix4.[01] | aix4.[01].*)
15749 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15750 echo ' yes '
15751 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15752 :
15753 else
15754 can_build_shared=no
15755 fi
15756 ;;
15757 esac
15758 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15759 # soname into executable. Probably we can add versioning support to
15760 # collect2, so additional links can be useful in future.
15761 if test "$aix_use_runtimelinking" = yes; then
15762 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15763 # instead of lib<name>.a to let people know that these are not
15764 # typical AIX shared libraries.
15765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15766 else
15767 # We preserve .a as extension for shared libraries through AIX4.2
15768 # and later when we are not doing run time linking.
15769 library_names_spec='${libname}${release}.a $libname.a'
15770 soname_spec='${libname}${release}${shared_ext}$major'
15771 fi
15772 shlibpath_var=LIBPATH
15773 fi
15774 ;;
15775
15776 amigaos*)
15777 library_names_spec='$libname.ixlibrary $libname.a'
15778 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15779 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'
15780 ;;
15781
15782 beos*)
15783 library_names_spec='${libname}${shared_ext}'
15784 dynamic_linker="$host_os ld.so"
15785 shlibpath_var=LIBRARY_PATH
15786 ;;
15787
15788 bsdi[45]*)
15789 version_type=linux
15790 need_version=no
15791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15792 soname_spec='${libname}${release}${shared_ext}$major'
15793 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15794 shlibpath_var=LD_LIBRARY_PATH
15795 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15796 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15797 # the default ld.so.conf also contains /usr/contrib/lib and
15798 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15799 # libtool to hard-code these into programs
15800 ;;
15801
15802 cygwin* | mingw* | pw32*)
15803 version_type=windows
15804 shrext_cmds=".dll"
15805 need_version=no
15806 need_lib_prefix=no
15807
15808 case $GCC,$host_os in
15809 yes,cygwin* | yes,mingw* | yes,pw32*)
15810 library_names_spec='$libname.dll.a'
15811 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15812 postinstall_cmds='base_file=`basename \${file}`~
15813 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15814 dldir=$destdir/`dirname \$dlpath`~
15815 test -d \$dldir || mkdir -p \$dldir~
15816 $install_prog $dir/$dlname \$dldir/$dlname~
15817 chmod a+x \$dldir/$dlname'
15818 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15819 dlpath=$dir/\$dldll~
15820 $rm \$dlpath'
15821 shlibpath_overrides_runpath=yes
15822
15823 case $host_os in
15824 cygwin*)
15825 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15826 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15827 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15828 ;;
15829 mingw*)
15830 # MinGW DLLs use traditional 'lib' prefix
15831 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15832 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15833 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15834 # It is most probably a Windows format PATH printed by
15835 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15836 # path with ; separators, and with drive letters. We can handle the
15837 # drive letters (cygwin fileutils understands them), so leave them,
15838 # especially as we might pass files found there to a mingw objdump,
15839 # which wouldn't understand a cygwinified path. Ahh.
15840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15841 else
15842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15843 fi
15844 ;;
15845 pw32*)
15846 # pw32 DLLs use 'pw' prefix rather than 'lib'
15847 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15848 ;;
15849 esac
15850 ;;
15851
15852 *)
15853 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15854 ;;
15855 esac
15856 dynamic_linker='Win32 ld.exe'
15857 # FIXME: first we should search . and the directory the executable is in
15858 shlibpath_var=PATH
15859 ;;
15860
15861 darwin* | rhapsody*)
15862 dynamic_linker="$host_os dyld"
15863 version_type=darwin
15864 need_lib_prefix=no
15865 need_version=no
15866 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15867 soname_spec='${libname}${release}${major}$shared_ext'
15868 shlibpath_overrides_runpath=yes
15869 shlibpath_var=DYLD_LIBRARY_PATH
15870 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15871
15872 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15873 ;;
15874
15875 dgux*)
15876 version_type=linux
15877 need_lib_prefix=no
15878 need_version=no
15879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15880 soname_spec='${libname}${release}${shared_ext}$major'
15881 shlibpath_var=LD_LIBRARY_PATH
15882 ;;
15883
15884 freebsd1*)
15885 dynamic_linker=no
15886 ;;
15887
15888 freebsd* | dragonfly*)
15889 # DragonFly does not have aout. When/if they implement a new
15890 # versioning mechanism, adjust this.
15891 if test -x /usr/bin/objformat; then
15892 objformat=`/usr/bin/objformat`
15893 else
15894 case $host_os in
15895 freebsd[123]*) objformat=aout ;;
15896 *) objformat=elf ;;
15897 esac
15898 fi
15899 version_type=freebsd-$objformat
15900 case $version_type in
15901 freebsd-elf*)
15902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15903 need_version=no
15904 need_lib_prefix=no
15905 ;;
15906 freebsd-*)
15907 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15908 need_version=yes
15909 ;;
15910 esac
15911 shlibpath_var=LD_LIBRARY_PATH
15912 case $host_os in
15913 freebsd2*)
15914 shlibpath_overrides_runpath=yes
15915 ;;
15916 freebsd3.[01]* | freebsdelf3.[01]*)
15917 shlibpath_overrides_runpath=yes
15918 hardcode_into_libs=yes
15919 ;;
15920 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15921 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15922 shlibpath_overrides_runpath=no
15923 hardcode_into_libs=yes
15924 ;;
15925 *) # from 4.6 on, and DragonFly
15926 shlibpath_overrides_runpath=yes
15927 hardcode_into_libs=yes
15928 ;;
15929 esac
15930 ;;
15931
15932 gnu*)
15933 version_type=linux
15934 need_lib_prefix=no
15935 need_version=no
15936 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15937 soname_spec='${libname}${release}${shared_ext}$major'
15938 shlibpath_var=LD_LIBRARY_PATH
15939 hardcode_into_libs=yes
15940 ;;
15941
15942 hpux9* | hpux10* | hpux11*)
15943 # Give a soname corresponding to the major version so that dld.sl refuses to
15944 # link against other versions.
15945 version_type=sunos
15946 need_lib_prefix=no
15947 need_version=no
15948 case $host_cpu in
15949 ia64*)
15950 shrext_cmds='.so'
15951 hardcode_into_libs=yes
15952 dynamic_linker="$host_os dld.so"
15953 shlibpath_var=LD_LIBRARY_PATH
15954 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15955 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15956 soname_spec='${libname}${release}${shared_ext}$major'
15957 if test "X$HPUX_IA64_MODE" = X32; then
15958 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15959 else
15960 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15961 fi
15962 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15963 ;;
15964 hppa*64*)
15965 shrext_cmds='.sl'
15966 hardcode_into_libs=yes
15967 dynamic_linker="$host_os dld.sl"
15968 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15969 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15971 soname_spec='${libname}${release}${shared_ext}$major'
15972 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15973 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15974 ;;
15975 *)
15976 shrext_cmds='.sl'
15977 dynamic_linker="$host_os dld.sl"
15978 shlibpath_var=SHLIB_PATH
15979 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15981 soname_spec='${libname}${release}${shared_ext}$major'
15982 ;;
15983 esac
15984 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15985 postinstall_cmds='chmod 555 $lib'
15986 ;;
15987
15988 interix[3-9]*)
15989 version_type=linux
15990 need_lib_prefix=no
15991 need_version=no
15992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15993 soname_spec='${libname}${release}${shared_ext}$major'
15994 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15995 shlibpath_var=LD_LIBRARY_PATH
15996 shlibpath_overrides_runpath=no
15997 hardcode_into_libs=yes
15998 ;;
15999
16000 irix5* | irix6* | nonstopux*)
16001 case $host_os in
16002 nonstopux*) version_type=nonstopux ;;
16003 *)
16004 if test "$lt_cv_prog_gnu_ld" = yes; then
16005 version_type=linux
16006 else
16007 version_type=irix
16008 fi ;;
16009 esac
16010 need_lib_prefix=no
16011 need_version=no
16012 soname_spec='${libname}${release}${shared_ext}$major'
16013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16014 case $host_os in
16015 irix5* | nonstopux*)
16016 libsuff= shlibsuff=
16017 ;;
16018 *)
16019 case $LD in # libtool.m4 will add one of these switches to LD
16020 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16021 libsuff= shlibsuff= libmagic=32-bit;;
16022 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16023 libsuff=32 shlibsuff=N32 libmagic=N32;;
16024 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16025 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16026 *) libsuff= shlibsuff= libmagic=never-match;;
16027 esac
16028 ;;
16029 esac
16030 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16031 shlibpath_overrides_runpath=no
16032 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16033 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16034 hardcode_into_libs=yes
16035 ;;
16036
16037 # No shared lib support for Linux oldld, aout, or coff.
16038 linux*oldld* | linux*aout* | linux*coff*)
16039 dynamic_linker=no
16040 ;;
16041
16042 # This must be Linux ELF.
16043 linux* | k*bsd*-gnu)
16044 version_type=linux
16045 need_lib_prefix=no
16046 need_version=no
16047 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16048 soname_spec='${libname}${release}${shared_ext}$major'
16049 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16050 shlibpath_var=LD_LIBRARY_PATH
16051 shlibpath_overrides_runpath=no
16052 # This implies no fast_install, which is unacceptable.
16053 # Some rework will be needed to allow for fast_install
16054 # before this can be enabled.
16055 hardcode_into_libs=yes
16056
16057 # Append ld.so.conf contents to the search path
16058 if test -f /etc/ld.so.conf; then
16059 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
16060 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16061 fi
16062
16063 # We used to test for /lib/ld.so.1 and disable shared libraries on
16064 # powerpc, because MkLinux only supported shared libraries with the
16065 # GNU dynamic linker. Since this was broken with cross compilers,
16066 # most powerpc-linux boxes support dynamic linking these days and
16067 # people can always --disable-shared, the test was removed, and we
16068 # assume the GNU/Linux dynamic linker is in use.
16069 dynamic_linker='GNU/Linux ld.so'
16070 ;;
16071
16072 netbsdelf*-gnu)
16073 version_type=linux
16074 need_lib_prefix=no
16075 need_version=no
16076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16077 soname_spec='${libname}${release}${shared_ext}$major'
16078 shlibpath_var=LD_LIBRARY_PATH
16079 shlibpath_overrides_runpath=no
16080 hardcode_into_libs=yes
16081 dynamic_linker='NetBSD ld.elf_so'
16082 ;;
16083
16084 netbsd*)
16085 version_type=sunos
16086 need_lib_prefix=no
16087 need_version=no
16088 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16090 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16091 dynamic_linker='NetBSD (a.out) ld.so'
16092 else
16093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16094 soname_spec='${libname}${release}${shared_ext}$major'
16095 dynamic_linker='NetBSD ld.elf_so'
16096 fi
16097 shlibpath_var=LD_LIBRARY_PATH
16098 shlibpath_overrides_runpath=yes
16099 hardcode_into_libs=yes
16100 ;;
16101
16102 newsos6)
16103 version_type=linux
16104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16105 shlibpath_var=LD_LIBRARY_PATH
16106 shlibpath_overrides_runpath=yes
16107 ;;
16108
16109 nto-qnx*)
16110 version_type=linux
16111 need_lib_prefix=no
16112 need_version=no
16113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16114 soname_spec='${libname}${release}${shared_ext}$major'
16115 shlibpath_var=LD_LIBRARY_PATH
16116 shlibpath_overrides_runpath=yes
16117 ;;
16118
16119 openbsd*)
16120 version_type=sunos
16121 sys_lib_dlsearch_path_spec="/usr/lib"
16122 need_lib_prefix=no
16123 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16124 case $host_os in
16125 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16126 *) need_version=no ;;
16127 esac
16128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16130 shlibpath_var=LD_LIBRARY_PATH
16131 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16132 case $host_os in
16133 openbsd2.[89] | openbsd2.[89].*)
16134 shlibpath_overrides_runpath=no
16135 ;;
16136 *)
16137 shlibpath_overrides_runpath=yes
16138 ;;
16139 esac
16140 else
16141 shlibpath_overrides_runpath=yes
16142 fi
16143 ;;
16144
16145 os2*)
16146 libname_spec='$name'
16147 shrext_cmds=".dll"
16148 need_lib_prefix=no
16149 library_names_spec='$libname${shared_ext} $libname.a'
16150 dynamic_linker='OS/2 ld.exe'
16151 shlibpath_var=LIBPATH
16152 ;;
16153
16154 osf3* | osf4* | osf5*)
16155 version_type=osf
16156 need_lib_prefix=no
16157 need_version=no
16158 soname_spec='${libname}${release}${shared_ext}$major'
16159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16160 shlibpath_var=LD_LIBRARY_PATH
16161 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16162 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16163 ;;
16164
16165 rdos*)
16166 dynamic_linker=no
16167 ;;
16168
16169 solaris*)
16170 version_type=linux
16171 need_lib_prefix=no
16172 need_version=no
16173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16174 soname_spec='${libname}${release}${shared_ext}$major'
16175 shlibpath_var=LD_LIBRARY_PATH
16176 shlibpath_overrides_runpath=yes
16177 hardcode_into_libs=yes
16178 # ldd complains unless libraries are executable
16179 postinstall_cmds='chmod +x $lib'
16180 ;;
16181
16182 sunos4*)
16183 version_type=sunos
16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16185 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16186 shlibpath_var=LD_LIBRARY_PATH
16187 shlibpath_overrides_runpath=yes
16188 if test "$with_gnu_ld" = yes; then
16189 need_lib_prefix=no
16190 fi
16191 need_version=yes
16192 ;;
16193
16194 sysv4 | sysv4.3*)
16195 version_type=linux
16196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16197 soname_spec='${libname}${release}${shared_ext}$major'
16198 shlibpath_var=LD_LIBRARY_PATH
16199 case $host_vendor in
16200 sni)
16201 shlibpath_overrides_runpath=no
16202 need_lib_prefix=no
16203 export_dynamic_flag_spec='${wl}-Blargedynsym'
16204 runpath_var=LD_RUN_PATH
16205 ;;
16206 siemens)
16207 need_lib_prefix=no
16208 ;;
16209 motorola)
16210 need_lib_prefix=no
16211 need_version=no
16212 shlibpath_overrides_runpath=no
16213 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16214 ;;
16215 esac
16216 ;;
16217
16218 sysv4*MP*)
16219 if test -d /usr/nec ;then
16220 version_type=linux
16221 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16222 soname_spec='$libname${shared_ext}.$major'
16223 shlibpath_var=LD_LIBRARY_PATH
16224 fi
16225 ;;
16226
16227 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16228 version_type=freebsd-elf
16229 need_lib_prefix=no
16230 need_version=no
16231 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16232 soname_spec='${libname}${release}${shared_ext}$major'
16233 shlibpath_var=LD_LIBRARY_PATH
16234 hardcode_into_libs=yes
16235 if test "$with_gnu_ld" = yes; then
16236 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16237 shlibpath_overrides_runpath=no
16238 else
16239 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16240 shlibpath_overrides_runpath=yes
16241 case $host_os in
16242 sco3.2v5*)
16243 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16244 ;;
16245 esac
16246 fi
16247 sys_lib_dlsearch_path_spec='/usr/lib'
16248 ;;
16249
16250 uts4*)
16251 version_type=linux
16252 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16253 soname_spec='${libname}${release}${shared_ext}$major'
16254 shlibpath_var=LD_LIBRARY_PATH
16255 ;;
16256
16257 *)
16258 dynamic_linker=no
16259 ;;
16260 esac
16261 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16262 echo "${ECHO_T}$dynamic_linker" >&6; }
16263 test "$dynamic_linker" = no && can_build_shared=no
16264
16265 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16266 echo $ECHO_N "(cached) $ECHO_C" >&6
16267 else
16268 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16269 fi
16270
16271 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16272 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16273 echo $ECHO_N "(cached) $ECHO_C" >&6
16274 else
16275 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16276 fi
16277
16278 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16279
16280 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16281 if test "$GCC" = yes; then
16282 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16283 fi
16284
16285 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16286 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
16287 hardcode_action_F77=
16288 if test -n "$hardcode_libdir_flag_spec_F77" || \
16289 test -n "$runpath_var_F77" || \
16290 test "X$hardcode_automatic_F77" = "Xyes" ; then
16291
16292 # We can hardcode non-existant directories.
16293 if test "$hardcode_direct_F77" != no &&
16294 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16295 # have to relink, otherwise we might link with an installed library
16296 # when we should be linking with a yet-to-be-installed one
16297 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16298 test "$hardcode_minus_L_F77" != no; then
16299 # Linking always hardcodes the temporary library directory.
16300 hardcode_action_F77=relink
16301 else
16302 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16303 hardcode_action_F77=immediate
16304 fi
16305 else
16306 # We cannot hardcode anything, or else we can only hardcode existing
16307 # directories.
16308 hardcode_action_F77=unsupported
16309 fi
16310 { echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16311 echo "${ECHO_T}$hardcode_action_F77" >&6; }
16312
16313 if test "$hardcode_action_F77" = relink; then
16314 # Fast installation is not supported
16315 enable_fast_install=no
16316 elif test "$shlibpath_overrides_runpath" = yes ||
16317 test "$enable_shared" = no; then
16318 # Fast installation is not necessary
16319 enable_fast_install=needless
16320 fi
16321
16322
16323 # The else clause should only fire when bootstrapping the
16324 # libtool distribution, otherwise you forgot to ship ltmain.sh
16325 # with your package, and you will get complaints that there are
16326 # no rules to generate ltmain.sh.
16327 if test -f "$ltmain"; then
16328 # See if we are running on zsh, and set the options which allow our commands through
16329 # without removal of \ escapes.
16330 if test -n "${ZSH_VERSION+set}" ; then
16331 setopt NO_GLOB_SUBST
16332 fi
16333 # Now quote all the things that may contain metacharacters while being
16334 # careful not to overquote the AC_SUBSTed values. We take copies of the
16335 # variables and quote the copies for generation of the libtool script.
16336 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16337 SED SHELL STRIP \
16338 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16339 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16340 deplibs_check_method reload_flag reload_cmds need_locks \
16341 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16342 lt_cv_sys_global_symbol_to_c_name_address \
16343 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16344 old_postinstall_cmds old_postuninstall_cmds \
16345 compiler_F77 \
16346 CC_F77 \
16347 LD_F77 \
16348 lt_prog_compiler_wl_F77 \
16349 lt_prog_compiler_pic_F77 \
16350 lt_prog_compiler_static_F77 \
16351 lt_prog_compiler_no_builtin_flag_F77 \
16352 export_dynamic_flag_spec_F77 \
16353 thread_safe_flag_spec_F77 \
16354 whole_archive_flag_spec_F77 \
16355 enable_shared_with_static_runtimes_F77 \
16356 old_archive_cmds_F77 \
16357 old_archive_from_new_cmds_F77 \
16358 predep_objects_F77 \
16359 postdep_objects_F77 \
16360 predeps_F77 \
16361 postdeps_F77 \
16362 compiler_lib_search_path_F77 \
16363 compiler_lib_search_dirs_F77 \
16364 archive_cmds_F77 \
16365 archive_expsym_cmds_F77 \
16366 postinstall_cmds_F77 \
16367 postuninstall_cmds_F77 \
16368 old_archive_from_expsyms_cmds_F77 \
16369 allow_undefined_flag_F77 \
16370 no_undefined_flag_F77 \
16371 export_symbols_cmds_F77 \
16372 hardcode_libdir_flag_spec_F77 \
16373 hardcode_libdir_flag_spec_ld_F77 \
16374 hardcode_libdir_separator_F77 \
16375 hardcode_automatic_F77 \
16376 module_cmds_F77 \
16377 module_expsym_cmds_F77 \
16378 lt_cv_prog_compiler_c_o_F77 \
16379 fix_srcfile_path_F77 \
16380 exclude_expsyms_F77 \
16381 include_expsyms_F77; do
16382
16383 case $var in
16384 old_archive_cmds_F77 | \
16385 old_archive_from_new_cmds_F77 | \
16386 archive_cmds_F77 | \
16387 archive_expsym_cmds_F77 | \
16388 module_cmds_F77 | \
16389 module_expsym_cmds_F77 | \
16390 old_archive_from_expsyms_cmds_F77 | \
16391 export_symbols_cmds_F77 | \
16392 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16393 postinstall_cmds | postuninstall_cmds | \
16394 old_postinstall_cmds | old_postuninstall_cmds | \
16395 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16396 # Double-quote double-evaled strings.
16397 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16398 ;;
16399 *)
16400 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16401 ;;
16402 esac
16403 done
16404
16405 case $lt_echo in
16406 *'\$0 --fallback-echo"')
16407 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16408 ;;
16409 esac
16410
16411 cfgfile="$ofile"
16412
16413 cat <<__EOF__ >> "$cfgfile"
16414 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16415
16416 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16417
16418 # Shell to use when invoking shell scripts.
16419 SHELL=$lt_SHELL
16420
16421 # Whether or not to build shared libraries.
16422 build_libtool_libs=$enable_shared
16423
16424 # Whether or not to build static libraries.
16425 build_old_libs=$enable_static
16426
16427 # Whether or not to add -lc for building shared libraries.
16428 build_libtool_need_lc=$archive_cmds_need_lc_F77
16429
16430 # Whether or not to disallow shared libs when runtime libs are static
16431 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16432
16433 # Whether or not to optimize for fast installation.
16434 fast_install=$enable_fast_install
16435
16436 # The host system.
16437 host_alias=$host_alias
16438 host=$host
16439 host_os=$host_os
16440
16441 # The build system.
16442 build_alias=$build_alias
16443 build=$build
16444 build_os=$build_os
16445
16446 # An echo program that does not interpret backslashes.
16447 echo=$lt_echo
16448
16449 # The archiver.
16450 AR=$lt_AR
16451 AR_FLAGS=$lt_AR_FLAGS
16452
16453 # A C compiler.
16454 LTCC=$lt_LTCC
16455
16456 # LTCC compiler flags.
16457 LTCFLAGS=$lt_LTCFLAGS
16458
16459 # A language-specific compiler.
16460 CC=$lt_compiler_F77
16461
16462 # Is the compiler the GNU C compiler?
16463 with_gcc=$GCC_F77
16464
16465 # An ERE matcher.
16466 EGREP=$lt_EGREP
16467
16468 # The linker used to build libraries.
16469 LD=$lt_LD_F77
16470
16471 # Whether we need hard or soft links.
16472 LN_S=$lt_LN_S
16473
16474 # A BSD-compatible nm program.
16475 NM=$lt_NM
16476
16477 # A symbol stripping program
16478 STRIP=$lt_STRIP
16479
16480 # Used to examine libraries when file_magic_cmd begins "file"
16481 MAGIC_CMD=$MAGIC_CMD
16482
16483 # Used on cygwin: DLL creation program.
16484 DLLTOOL="$DLLTOOL"
16485
16486 # Used on cygwin: object dumper.
16487 OBJDUMP="$OBJDUMP"
16488
16489 # Used on cygwin: assembler.
16490 AS="$AS"
16491
16492 # The name of the directory that contains temporary libtool files.
16493 objdir=$objdir
16494
16495 # How to create reloadable object files.
16496 reload_flag=$lt_reload_flag
16497 reload_cmds=$lt_reload_cmds
16498
16499 # How to pass a linker flag through the compiler.
16500 wl=$lt_lt_prog_compiler_wl_F77
16501
16502 # Object file suffix (normally "o").
16503 objext="$ac_objext"
16504
16505 # Old archive suffix (normally "a").
16506 libext="$libext"
16507
16508 # Shared library suffix (normally ".so").
16509 shrext_cmds='$shrext_cmds'
16510
16511 # Executable file suffix (normally "").
16512 exeext="$exeext"
16513
16514 # Additional compiler flags for building library objects.
16515 pic_flag=$lt_lt_prog_compiler_pic_F77
16516 pic_mode=$pic_mode
16517
16518 # What is the maximum length of a command?
16519 max_cmd_len=$lt_cv_sys_max_cmd_len
16520
16521 # Does compiler simultaneously support -c and -o options?
16522 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16523
16524 # Must we lock files when doing compilation?
16525 need_locks=$lt_need_locks
16526
16527 # Do we need the lib prefix for modules?
16528 need_lib_prefix=$need_lib_prefix
16529
16530 # Do we need a version for libraries?
16531 need_version=$need_version
16532
16533 # Whether dlopen is supported.
16534 dlopen_support=$enable_dlopen
16535
16536 # Whether dlopen of programs is supported.
16537 dlopen_self=$enable_dlopen_self
16538
16539 # Whether dlopen of statically linked programs is supported.
16540 dlopen_self_static=$enable_dlopen_self_static
16541
16542 # Compiler flag to prevent dynamic linking.
16543 link_static_flag=$lt_lt_prog_compiler_static_F77
16544
16545 # Compiler flag to turn off builtin functions.
16546 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16547
16548 # Compiler flag to allow reflexive dlopens.
16549 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16550
16551 # Compiler flag to generate shared objects directly from archives.
16552 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16553
16554 # Compiler flag to generate thread-safe objects.
16555 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16556
16557 # Library versioning type.
16558 version_type=$version_type
16559
16560 # Format of library name prefix.
16561 libname_spec=$lt_libname_spec
16562
16563 # List of archive names. First name is the real one, the rest are links.
16564 # The last name is the one that the linker finds with -lNAME.
16565 library_names_spec=$lt_library_names_spec
16566
16567 # The coded name of the library, if different from the real name.
16568 soname_spec=$lt_soname_spec
16569
16570 # Commands used to build and install an old-style archive.
16571 RANLIB=$lt_RANLIB
16572 old_archive_cmds=$lt_old_archive_cmds_F77
16573 old_postinstall_cmds=$lt_old_postinstall_cmds
16574 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16575
16576 # Create an old-style archive from a shared archive.
16577 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16578
16579 # Create a temporary old-style archive to link instead of a shared archive.
16580 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16581
16582 # Commands used to build and install a shared archive.
16583 archive_cmds=$lt_archive_cmds_F77
16584 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16585 postinstall_cmds=$lt_postinstall_cmds
16586 postuninstall_cmds=$lt_postuninstall_cmds
16587
16588 # Commands used to build a loadable module (assumed same as above if empty)
16589 module_cmds=$lt_module_cmds_F77
16590 module_expsym_cmds=$lt_module_expsym_cmds_F77
16591
16592 # Commands to strip libraries.
16593 old_striplib=$lt_old_striplib
16594 striplib=$lt_striplib
16595
16596 # Dependencies to place before the objects being linked to create a
16597 # shared library.
16598 predep_objects=$lt_predep_objects_F77
16599
16600 # Dependencies to place after the objects being linked to create a
16601 # shared library.
16602 postdep_objects=$lt_postdep_objects_F77
16603
16604 # Dependencies to place before the objects being linked to create a
16605 # shared library.
16606 predeps=$lt_predeps_F77
16607
16608 # Dependencies to place after the objects being linked to create a
16609 # shared library.
16610 postdeps=$lt_postdeps_F77
16611
16612 # The directories searched by this compiler when creating a shared
16613 # library
16614 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16615
16616 # The library search path used internally by the compiler when linking
16617 # a shared library.
16618 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16619
16620 # Method to check whether dependent libraries are shared objects.
16621 deplibs_check_method=$lt_deplibs_check_method
16622
16623 # Command to use when deplibs_check_method == file_magic.
16624 file_magic_cmd=$lt_file_magic_cmd
16625
16626 # Flag that allows shared libraries with undefined symbols to be built.
16627 allow_undefined_flag=$lt_allow_undefined_flag_F77
16628
16629 # Flag that forces no undefined symbols.
16630 no_undefined_flag=$lt_no_undefined_flag_F77
16631
16632 # Commands used to finish a libtool library installation in a directory.
16633 finish_cmds=$lt_finish_cmds
16634
16635 # Same as above, but a single script fragment to be evaled but not shown.
16636 finish_eval=$lt_finish_eval
16637
16638 # Take the output of nm and produce a listing of raw symbols and C names.
16639 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16640
16641 # Transform the output of nm in a proper C declaration
16642 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16643
16644 # Transform the output of nm in a C name address pair
16645 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16646
16647 # This is the shared library runtime path variable.
16648 runpath_var=$runpath_var
16649
16650 # This is the shared library path variable.
16651 shlibpath_var=$shlibpath_var
16652
16653 # Is shlibpath searched before the hard-coded library search path?
16654 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16655
16656 # How to hardcode a shared library path into an executable.
16657 hardcode_action=$hardcode_action_F77
16658
16659 # Whether we should hardcode library paths into libraries.
16660 hardcode_into_libs=$hardcode_into_libs
16661
16662 # Flag to hardcode \$libdir into a binary during linking.
16663 # This must work even if \$libdir does not exist.
16664 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16665
16666 # If ld is used when linking, flag to hardcode \$libdir into
16667 # a binary during linking. This must work even if \$libdir does
16668 # not exist.
16669 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16670
16671 # Whether we need a single -rpath flag with a separated argument.
16672 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16673
16674 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16675 # resulting binary.
16676 hardcode_direct=$hardcode_direct_F77
16677
16678 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16679 # resulting binary.
16680 hardcode_minus_L=$hardcode_minus_L_F77
16681
16682 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16683 # the resulting binary.
16684 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16685
16686 # Set to yes if building a shared library automatically hardcodes DIR into the library
16687 # and all subsequent libraries and executables linked against it.
16688 hardcode_automatic=$hardcode_automatic_F77
16689
16690 # Variables whose values should be saved in libtool wrapper scripts and
16691 # restored at relink time.
16692 variables_saved_for_relink="$variables_saved_for_relink"
16693
16694 # Whether libtool must link a program against all its dependency libraries.
16695 link_all_deplibs=$link_all_deplibs_F77
16696
16697 # Compile-time system search path for libraries
16698 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16699
16700 # Run-time system search path for libraries
16701 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16702
16703 # Fix the shell variable \$srcfile for the compiler.
16704 fix_srcfile_path=$lt_fix_srcfile_path
16705
16706 # Set to yes if exported symbols are required.
16707 always_export_symbols=$always_export_symbols_F77
16708
16709 # The commands to list exported symbols.
16710 export_symbols_cmds=$lt_export_symbols_cmds_F77
16711
16712 # The commands to extract the exported symbol list from a shared archive.
16713 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16714
16715 # Symbols that should not be listed in the preloaded symbols.
16716 exclude_expsyms=$lt_exclude_expsyms_F77
16717
16718 # Symbols that must always be exported.
16719 include_expsyms=$lt_include_expsyms_F77
16720
16721 # ### END LIBTOOL TAG CONFIG: $tagname
16722
16723 __EOF__
16724
16725
16726 else
16727 # If there is no Makefile yet, we rely on a make rule to execute
16728 # `config.status --recheck' to rerun these tests and create the
16729 # libtool script then.
16730 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16731 if test -f "$ltmain_in"; then
16732 test -f Makefile && make "$ltmain"
16733 fi
16734 fi
16735
16736
16737 ac_ext=c
16738 ac_cpp='$CPP $CPPFLAGS'
16739 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16740 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16741 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16742
16743 CC="$lt_save_CC"
16744
16745 else
16746 tagname=""
16747 fi
16748 ;;
16749
16750 GCJ)
16751 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16752
16753
16754 # Source file extension for Java test sources.
16755 ac_ext=java
16756
16757 # Object file extension for compiled Java test sources.
16758 objext=o
16759 objext_GCJ=$objext
16760
16761 # Code to be used in simple compile tests
16762 lt_simple_compile_test_code="class foo {}"
16763
16764 # Code to be used in simple link tests
16765 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16766
16767 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16768
16769 # If no C compiler was specified, use CC.
16770 LTCC=${LTCC-"$CC"}
16771
16772 # If no C compiler flags were specified, use CFLAGS.
16773 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16774
16775 # Allow CC to be a program name with arguments.
16776 compiler=$CC
16777
16778
16779 # save warnings/boilerplate of simple test code
16780 ac_outfile=conftest.$ac_objext
16781 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16782 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16783 _lt_compiler_boilerplate=`cat conftest.err`
16784 $rm conftest*
16785
16786 ac_outfile=conftest.$ac_objext
16787 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16788 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16789 _lt_linker_boilerplate=`cat conftest.err`
16790 $rm -r conftest*
16791
16792
16793 # Allow CC to be a program name with arguments.
16794 lt_save_CC="$CC"
16795 CC=${GCJ-"gcj"}
16796 compiler=$CC
16797 compiler_GCJ=$CC
16798 for cc_temp in $compiler""; do
16799 case $cc_temp in
16800 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16801 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16802 \-*) ;;
16803 *) break;;
16804 esac
16805 done
16806 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16807
16808
16809 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16810 archive_cmds_need_lc_GCJ=no
16811
16812 old_archive_cmds_GCJ=$old_archive_cmds
16813
16814
16815 lt_prog_compiler_no_builtin_flag_GCJ=
16816
16817 if test "$GCC" = yes; then
16818 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16819
16820
16821 { echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16822 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6; }
16823 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16824 echo $ECHO_N "(cached) $ECHO_C" >&6
16825 else
16826 lt_cv_prog_compiler_rtti_exceptions=no
16827 ac_outfile=conftest.$ac_objext
16828 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16829 lt_compiler_flag="-fno-rtti -fno-exceptions"
16830 # Insert the option either (1) after the last *FLAGS variable, or
16831 # (2) before a word containing "conftest.", or (3) at the end.
16832 # Note that $ac_compile itself does not contain backslashes and begins
16833 # with a dollar sign (not a hyphen), so the echo should work correctly.
16834 # The option is referenced via a variable to avoid confusing sed.
16835 lt_compile=`echo "$ac_compile" | $SED \
16836 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16837 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16838 -e 's:$: $lt_compiler_flag:'`
16839 (eval echo "\"\$as_me:16839: $lt_compile\"" >&5)
16840 (eval "$lt_compile" 2>conftest.err)
16841 ac_status=$?
16842 cat conftest.err >&5
16843 echo "$as_me:16843: \$? = $ac_status" >&5
16844 if (exit $ac_status) && test -s "$ac_outfile"; then
16845 # The compiler can only warn and ignore the option if not recognized
16846 # So say no if there are warnings other than the usual output.
16847 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16848 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16849 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16850 lt_cv_prog_compiler_rtti_exceptions=yes
16851 fi
16852 fi
16853 $rm conftest*
16854
16855 fi
16856 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16857 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16858
16859 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16860 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16861 else
16862 :
16863 fi
16864
16865 fi
16866
16867 lt_prog_compiler_wl_GCJ=
16868 lt_prog_compiler_pic_GCJ=
16869 lt_prog_compiler_static_GCJ=
16870
16871 { echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16872 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6; }
16873
16874 if test "$GCC" = yes; then
16875 lt_prog_compiler_wl_GCJ='-Wl,'
16876 lt_prog_compiler_static_GCJ='-static'
16877
16878 case $host_os in
16879 aix*)
16880 # All AIX code is PIC.
16881 if test "$host_cpu" = ia64; then
16882 # AIX 5 now supports IA64 processor
16883 lt_prog_compiler_static_GCJ='-Bstatic'
16884 fi
16885 ;;
16886
16887 amigaos*)
16888 # FIXME: we need at least 68020 code to build shared libraries, but
16889 # adding the `-m68020' flag to GCC prevents building anything better,
16890 # like `-m68040'.
16891 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16892 ;;
16893
16894 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16895 # PIC is the default for these OSes.
16896 ;;
16897
16898 mingw* | cygwin* | pw32* | os2*)
16899 # This hack is so that the source file can tell whether it is being
16900 # built for inclusion in a dll (and should export symbols for example).
16901 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16902 # (--disable-auto-import) libraries
16903
16904 ;;
16905
16906 darwin* | rhapsody*)
16907 # PIC is the default on this platform
16908 # Common symbols not allowed in MH_DYLIB files
16909 lt_prog_compiler_pic_GCJ='-fno-common'
16910 ;;
16911
16912 interix[3-9]*)
16913 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16914 # Instead, we relocate shared libraries at runtime.
16915 ;;
16916
16917 msdosdjgpp*)
16918 # Just because we use GCC doesn't mean we suddenly get shared libraries
16919 # on systems that don't support them.
16920 lt_prog_compiler_can_build_shared_GCJ=no
16921 enable_shared=no
16922 ;;
16923
16924 sysv4*MP*)
16925 if test -d /usr/nec; then
16926 lt_prog_compiler_pic_GCJ=-Kconform_pic
16927 fi
16928 ;;
16929
16930 hpux*)
16931 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16932 # not for PA HP-UX.
16933 case $host_cpu in
16934 hppa*64*|ia64*)
16935 # +Z the default
16936 ;;
16937 *)
16938 lt_prog_compiler_pic_GCJ='-fPIC'
16939 ;;
16940 esac
16941 ;;
16942
16943 *)
16944 lt_prog_compiler_pic_GCJ='-fPIC'
16945 ;;
16946 esac
16947 else
16948 # PORTME Check for flag to pass linker flags through the system compiler.
16949 case $host_os in
16950 aix*)
16951 lt_prog_compiler_wl_GCJ='-Wl,'
16952 if test "$host_cpu" = ia64; then
16953 # AIX 5 now supports IA64 processor
16954 lt_prog_compiler_static_GCJ='-Bstatic'
16955 else
16956 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16957 fi
16958 ;;
16959 darwin*)
16960 # PIC is the default on this platform
16961 # Common symbols not allowed in MH_DYLIB files
16962 case $cc_basename in
16963 xlc*)
16964 lt_prog_compiler_pic_GCJ='-qnocommon'
16965 lt_prog_compiler_wl_GCJ='-Wl,'
16966 ;;
16967 esac
16968 ;;
16969
16970 mingw* | cygwin* | pw32* | os2*)
16971 # This hack is so that the source file can tell whether it is being
16972 # built for inclusion in a dll (and should export symbols for example).
16973
16974 ;;
16975
16976 hpux9* | hpux10* | hpux11*)
16977 lt_prog_compiler_wl_GCJ='-Wl,'
16978 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16979 # not for PA HP-UX.
16980 case $host_cpu in
16981 hppa*64*|ia64*)
16982 # +Z the default
16983 ;;
16984 *)
16985 lt_prog_compiler_pic_GCJ='+Z'
16986 ;;
16987 esac
16988 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16989 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16990 ;;
16991
16992 irix5* | irix6* | nonstopux*)
16993 lt_prog_compiler_wl_GCJ='-Wl,'
16994 # PIC (with -KPIC) is the default.
16995 lt_prog_compiler_static_GCJ='-non_shared'
16996 ;;
16997
16998 newsos6)
16999 lt_prog_compiler_pic_GCJ='-KPIC'
17000 lt_prog_compiler_static_GCJ='-Bstatic'
17001 ;;
17002
17003 linux* | k*bsd*-gnu)
17004 case $cc_basename in
17005 icc* | ecc*)
17006 lt_prog_compiler_wl_GCJ='-Wl,'
17007 lt_prog_compiler_pic_GCJ='-KPIC'
17008 lt_prog_compiler_static_GCJ='-static'
17009 ;;
17010 pgcc* | pgf77* | pgf90* | pgf95*)
17011 # Portland Group compilers (*not* the Pentium gcc compiler,
17012 # which looks to be a dead project)
17013 lt_prog_compiler_wl_GCJ='-Wl,'
17014 lt_prog_compiler_pic_GCJ='-fpic'
17015 lt_prog_compiler_static_GCJ='-Bstatic'
17016 ;;
17017 ccc*)
17018 lt_prog_compiler_wl_GCJ='-Wl,'
17019 # All Alpha code is PIC.
17020 lt_prog_compiler_static_GCJ='-non_shared'
17021 ;;
17022 *)
17023 case `$CC -V 2>&1 | sed 5q` in
17024 *Sun\ C*)
17025 # Sun C 5.9
17026 lt_prog_compiler_pic_GCJ='-KPIC'
17027 lt_prog_compiler_static_GCJ='-Bstatic'
17028 lt_prog_compiler_wl_GCJ='-Wl,'
17029 ;;
17030 *Sun\ F*)
17031 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17032 lt_prog_compiler_pic_GCJ='-KPIC'
17033 lt_prog_compiler_static_GCJ='-Bstatic'
17034 lt_prog_compiler_wl_GCJ=''
17035 ;;
17036 esac
17037 ;;
17038 esac
17039 ;;
17040
17041 osf3* | osf4* | osf5*)
17042 lt_prog_compiler_wl_GCJ='-Wl,'
17043 # All OSF/1 code is PIC.
17044 lt_prog_compiler_static_GCJ='-non_shared'
17045 ;;
17046
17047 rdos*)
17048 lt_prog_compiler_static_GCJ='-non_shared'
17049 ;;
17050
17051 solaris*)
17052 lt_prog_compiler_pic_GCJ='-KPIC'
17053 lt_prog_compiler_static_GCJ='-Bstatic'
17054 case $cc_basename in
17055 f77* | f90* | f95*)
17056 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17057 *)
17058 lt_prog_compiler_wl_GCJ='-Wl,';;
17059 esac
17060 ;;
17061
17062 sunos4*)
17063 lt_prog_compiler_wl_GCJ='-Qoption ld '
17064 lt_prog_compiler_pic_GCJ='-PIC'
17065 lt_prog_compiler_static_GCJ='-Bstatic'
17066 ;;
17067
17068 sysv4 | sysv4.2uw2* | sysv4.3*)
17069 lt_prog_compiler_wl_GCJ='-Wl,'
17070 lt_prog_compiler_pic_GCJ='-KPIC'
17071 lt_prog_compiler_static_GCJ='-Bstatic'
17072 ;;
17073
17074 sysv4*MP*)
17075 if test -d /usr/nec ;then
17076 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17077 lt_prog_compiler_static_GCJ='-Bstatic'
17078 fi
17079 ;;
17080
17081 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17082 lt_prog_compiler_wl_GCJ='-Wl,'
17083 lt_prog_compiler_pic_GCJ='-KPIC'
17084 lt_prog_compiler_static_GCJ='-Bstatic'
17085 ;;
17086
17087 unicos*)
17088 lt_prog_compiler_wl_GCJ='-Wl,'
17089 lt_prog_compiler_can_build_shared_GCJ=no
17090 ;;
17091
17092 uts4*)
17093 lt_prog_compiler_pic_GCJ='-pic'
17094 lt_prog_compiler_static_GCJ='-Bstatic'
17095 ;;
17096
17097 *)
17098 lt_prog_compiler_can_build_shared_GCJ=no
17099 ;;
17100 esac
17101 fi
17102
17103 { echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17104 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6; }
17105
17106 #
17107 # Check to make sure the PIC flag actually works.
17108 #
17109 if test -n "$lt_prog_compiler_pic_GCJ"; then
17110
17111 { echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17112 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6; }
17113 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17114 echo $ECHO_N "(cached) $ECHO_C" >&6
17115 else
17116 lt_cv_prog_compiler_pic_works_GCJ=no
17117 ac_outfile=conftest.$ac_objext
17118 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17119 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17120 # Insert the option either (1) after the last *FLAGS variable, or
17121 # (2) before a word containing "conftest.", or (3) at the end.
17122 # Note that $ac_compile itself does not contain backslashes and begins
17123 # with a dollar sign (not a hyphen), so the echo should work correctly.
17124 # The option is referenced via a variable to avoid confusing sed.
17125 lt_compile=`echo "$ac_compile" | $SED \
17126 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17127 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17128 -e 's:$: $lt_compiler_flag:'`
17129 (eval echo "\"\$as_me:17129: $lt_compile\"" >&5)
17130 (eval "$lt_compile" 2>conftest.err)
17131 ac_status=$?
17132 cat conftest.err >&5
17133 echo "$as_me:17133: \$? = $ac_status" >&5
17134 if (exit $ac_status) && test -s "$ac_outfile"; then
17135 # The compiler can only warn and ignore the option if not recognized
17136 # So say no if there are warnings other than the usual output.
17137 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17138 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17139 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17140 lt_cv_prog_compiler_pic_works_GCJ=yes
17141 fi
17142 fi
17143 $rm conftest*
17144
17145 fi
17146 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17147 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17148
17149 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17150 case $lt_prog_compiler_pic_GCJ in
17151 "" | " "*) ;;
17152 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17153 esac
17154 else
17155 lt_prog_compiler_pic_GCJ=
17156 lt_prog_compiler_can_build_shared_GCJ=no
17157 fi
17158
17159 fi
17160 case $host_os in
17161 # For platforms which do not support PIC, -DPIC is meaningless:
17162 *djgpp*)
17163 lt_prog_compiler_pic_GCJ=
17164 ;;
17165 *)
17166 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17167 ;;
17168 esac
17169
17170 #
17171 # Check to make sure the static flag actually works.
17172 #
17173 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17174 { echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17175 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6; }
17176 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17177 echo $ECHO_N "(cached) $ECHO_C" >&6
17178 else
17179 lt_cv_prog_compiler_static_works_GCJ=no
17180 save_LDFLAGS="$LDFLAGS"
17181 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17182 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17183 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17184 # The linker can only warn and ignore the option if not recognized
17185 # So say no if there are warnings
17186 if test -s conftest.err; then
17187 # Append any errors to the config.log.
17188 cat conftest.err 1>&5
17189 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17190 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17191 if diff conftest.exp conftest.er2 >/dev/null; then
17192 lt_cv_prog_compiler_static_works_GCJ=yes
17193 fi
17194 else
17195 lt_cv_prog_compiler_static_works_GCJ=yes
17196 fi
17197 fi
17198 $rm -r conftest*
17199 LDFLAGS="$save_LDFLAGS"
17200
17201 fi
17202 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17203 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17204
17205 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17206 :
17207 else
17208 lt_prog_compiler_static_GCJ=
17209 fi
17210
17211
17212 { echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17213 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6; }
17214 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17215 echo $ECHO_N "(cached) $ECHO_C" >&6
17216 else
17217 lt_cv_prog_compiler_c_o_GCJ=no
17218 $rm -r conftest 2>/dev/null
17219 mkdir conftest
17220 cd conftest
17221 mkdir out
17222 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17223
17224 lt_compiler_flag="-o out/conftest2.$ac_objext"
17225 # Insert the option either (1) after the last *FLAGS variable, or
17226 # (2) before a word containing "conftest.", or (3) at the end.
17227 # Note that $ac_compile itself does not contain backslashes and begins
17228 # with a dollar sign (not a hyphen), so the echo should work correctly.
17229 lt_compile=`echo "$ac_compile" | $SED \
17230 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17231 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17232 -e 's:$: $lt_compiler_flag:'`
17233 (eval echo "\"\$as_me:17233: $lt_compile\"" >&5)
17234 (eval "$lt_compile" 2>out/conftest.err)
17235 ac_status=$?
17236 cat out/conftest.err >&5
17237 echo "$as_me:17237: \$? = $ac_status" >&5
17238 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17239 then
17240 # The compiler can only warn and ignore the option if not recognized
17241 # So say no if there are warnings
17242 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17243 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17244 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17245 lt_cv_prog_compiler_c_o_GCJ=yes
17246 fi
17247 fi
17248 chmod u+w . 2>&5
17249 $rm conftest*
17250 # SGI C++ compiler will create directory out/ii_files/ for
17251 # template instantiation
17252 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17253 $rm out/* && rmdir out
17254 cd ..
17255 rmdir conftest
17256 $rm conftest*
17257
17258 fi
17259 { echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17260 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17261
17262
17263 hard_links="nottested"
17264 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17265 # do not overwrite the value of need_locks provided by the user
17266 { echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17267 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6; }
17268 hard_links=yes
17269 $rm conftest*
17270 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17271 touch conftest.a
17272 ln conftest.a conftest.b 2>&5 || hard_links=no
17273 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17274 { echo "$as_me:$LINENO: result: $hard_links" >&5
17275 echo "${ECHO_T}$hard_links" >&6; }
17276 if test "$hard_links" = no; then
17277 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17278 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17279 need_locks=warn
17280 fi
17281 else
17282 need_locks=no
17283 fi
17284
17285 { echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17286 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6; }
17287
17288 runpath_var=
17289 allow_undefined_flag_GCJ=
17290 enable_shared_with_static_runtimes_GCJ=no
17291 archive_cmds_GCJ=
17292 archive_expsym_cmds_GCJ=
17293 old_archive_From_new_cmds_GCJ=
17294 old_archive_from_expsyms_cmds_GCJ=
17295 export_dynamic_flag_spec_GCJ=
17296 whole_archive_flag_spec_GCJ=
17297 thread_safe_flag_spec_GCJ=
17298 hardcode_libdir_flag_spec_GCJ=
17299 hardcode_libdir_flag_spec_ld_GCJ=
17300 hardcode_libdir_separator_GCJ=
17301 hardcode_direct_GCJ=no
17302 hardcode_minus_L_GCJ=no
17303 hardcode_shlibpath_var_GCJ=unsupported
17304 link_all_deplibs_GCJ=unknown
17305 hardcode_automatic_GCJ=no
17306 module_cmds_GCJ=
17307 module_expsym_cmds_GCJ=
17308 always_export_symbols_GCJ=no
17309 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17310 # include_expsyms should be a list of space-separated symbols to be *always*
17311 # included in the symbol list
17312 include_expsyms_GCJ=
17313 # exclude_expsyms can be an extended regexp of symbols to exclude
17314 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17315 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17316 # as well as any symbol that contains `d'.
17317 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17318 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17319 # platforms (ab)use it in PIC code, but their linkers get confused if
17320 # the symbol is explicitly referenced. Since portable code cannot
17321 # rely on this symbol name, it's probably fine to never include it in
17322 # preloaded symbol tables.
17323 # Exclude shared library initialization/finalization symbols.
17324 extract_expsyms_cmds=
17325 # Just being paranoid about ensuring that cc_basename is set.
17326 for cc_temp in $compiler""; do
17327 case $cc_temp in
17328 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17329 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17330 \-*) ;;
17331 *) break;;
17332 esac
17333 done
17334 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17335
17336 case $host_os in
17337 cygwin* | mingw* | pw32*)
17338 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17339 # When not using gcc, we currently assume that we are using
17340 # Microsoft Visual C++.
17341 if test "$GCC" != yes; then
17342 with_gnu_ld=no
17343 fi
17344 ;;
17345 interix*)
17346 # we just hope/assume this is gcc and not c89 (= MSVC++)
17347 with_gnu_ld=yes
17348 ;;
17349 openbsd*)
17350 with_gnu_ld=no
17351 ;;
17352 esac
17353
17354 ld_shlibs_GCJ=yes
17355 if test "$with_gnu_ld" = yes; then
17356 # If archive_cmds runs LD, not CC, wlarc should be empty
17357 wlarc='${wl}'
17358
17359 # Set some defaults for GNU ld with shared library support. These
17360 # are reset later if shared libraries are not supported. Putting them
17361 # here allows them to be overridden if necessary.
17362 runpath_var=LD_RUN_PATH
17363 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17364 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17365 # ancient GNU ld didn't support --whole-archive et. al.
17366 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17367 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17368 else
17369 whole_archive_flag_spec_GCJ=
17370 fi
17371 supports_anon_versioning=no
17372 case `$LD -v 2>/dev/null` in
17373 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17374 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17375 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17376 *\ 2.11.*) ;; # other 2.11 versions
17377 *) supports_anon_versioning=yes ;;
17378 esac
17379
17380 # See if GNU ld supports shared libraries.
17381 case $host_os in
17382 aix[3-9]*)
17383 # On AIX/PPC, the GNU linker is very broken
17384 if test "$host_cpu" != ia64; then
17385 ld_shlibs_GCJ=no
17386 cat <<EOF 1>&2
17387
17388 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17389 *** to be unable to reliably create shared libraries on AIX.
17390 *** Therefore, libtool is disabling shared libraries support. If you
17391 *** really care for shared libraries, you may want to modify your PATH
17392 *** so that a non-GNU linker is found, and then restart.
17393
17394 EOF
17395 fi
17396 ;;
17397
17398 amigaos*)
17399 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)'
17400 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17401 hardcode_minus_L_GCJ=yes
17402
17403 # Samuel A. Falvo II <[email protected]> reports
17404 # that the semantics of dynamic libraries on AmigaOS, at least up
17405 # to version 4, is to share data among multiple programs linked
17406 # with the same dynamic library. Since this doesn't match the
17407 # behavior of shared libraries on other platforms, we can't use
17408 # them.
17409 ld_shlibs_GCJ=no
17410 ;;
17411
17412 beos*)
17413 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17414 allow_undefined_flag_GCJ=unsupported
17415 # Joseph Beckenbach <[email protected]> says some releases of gcc
17416 # support --undefined. This deserves some investigation. FIXME
17417 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17418 else
17419 ld_shlibs_GCJ=no
17420 fi
17421 ;;
17422
17423 cygwin* | mingw* | pw32*)
17424 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17425 # as there is no search path for DLLs.
17426 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17427 allow_undefined_flag_GCJ=unsupported
17428 always_export_symbols_GCJ=no
17429 enable_shared_with_static_runtimes_GCJ=yes
17430 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17431
17432 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17433 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17434 # If the export-symbols file already is a .def file (1st line
17435 # is EXPORTS), use it as is; otherwise, prepend...
17436 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17437 cp $export_symbols $output_objdir/$soname.def;
17438 else
17439 echo EXPORTS > $output_objdir/$soname.def;
17440 cat $export_symbols >> $output_objdir/$soname.def;
17441 fi~
17442 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17443 else
17444 ld_shlibs_GCJ=no
17445 fi
17446 ;;
17447
17448 interix[3-9]*)
17449 hardcode_direct_GCJ=no
17450 hardcode_shlibpath_var_GCJ=no
17451 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17452 export_dynamic_flag_spec_GCJ='${wl}-E'
17453 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17454 # Instead, shared libraries are loaded at an image base (0x10000000 by
17455 # default) and relocated if they conflict, which is a slow very memory
17456 # consuming and fragmenting process. To avoid this, we pick a random,
17457 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17458 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17459 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'
17460 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'
17461 ;;
17462
17463 gnu* | linux* | k*bsd*-gnu)
17464 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17465 tmp_addflag=
17466 case $cc_basename,$host_cpu in
17467 pgcc*) # Portland Group C compiler
17468 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17469 tmp_addflag=' $pic_flag'
17470 ;;
17471 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17472 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'
17473 tmp_addflag=' $pic_flag -Mnomain' ;;
17474 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17475 tmp_addflag=' -i_dynamic' ;;
17476 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17477 tmp_addflag=' -i_dynamic -nofor_main' ;;
17478 ifc* | ifort*) # Intel Fortran compiler
17479 tmp_addflag=' -nofor_main' ;;
17480 esac
17481 case `$CC -V 2>&1 | sed 5q` in
17482 *Sun\ C*) # Sun C 5.9
17483 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
17484 tmp_sharedflag='-G' ;;
17485 *Sun\ F*) # Sun Fortran 8.3
17486 tmp_sharedflag='-G' ;;
17487 *)
17488 tmp_sharedflag='-shared' ;;
17489 esac
17490 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17491
17492 if test $supports_anon_versioning = yes; then
17493 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17494 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17495 $echo "local: *; };" >> $output_objdir/$libname.ver~
17496 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17497 fi
17498 link_all_deplibs_GCJ=no
17499 else
17500 ld_shlibs_GCJ=no
17501 fi
17502 ;;
17503
17504 netbsd* | netbsdelf*-gnu)
17505 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17506 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17507 wlarc=
17508 else
17509 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17510 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17511 fi
17512 ;;
17513
17514 solaris*)
17515 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17516 ld_shlibs_GCJ=no
17517 cat <<EOF 1>&2
17518
17519 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17520 *** create shared libraries on Solaris systems. Therefore, libtool
17521 *** is disabling shared libraries support. We urge you to upgrade GNU
17522 *** binutils to release 2.9.1 or newer. Another option is to modify
17523 *** your PATH or compiler configuration so that the native linker is
17524 *** used, and then restart.
17525
17526 EOF
17527 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17528 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17529 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17530 else
17531 ld_shlibs_GCJ=no
17532 fi
17533 ;;
17534
17535 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17536 case `$LD -v 2>&1` in
17537 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17538 ld_shlibs_GCJ=no
17539 cat <<_LT_EOF 1>&2
17540
17541 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17542 *** reliably create shared libraries on SCO systems. Therefore, libtool
17543 *** is disabling shared libraries support. We urge you to upgrade GNU
17544 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17545 *** your PATH or compiler configuration so that the native linker is
17546 *** used, and then restart.
17547
17548 _LT_EOF
17549 ;;
17550 *)
17551 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17552 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17553 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17554 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17555 else
17556 ld_shlibs_GCJ=no
17557 fi
17558 ;;
17559 esac
17560 ;;
17561
17562 sunos4*)
17563 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17564 wlarc=
17565 hardcode_direct_GCJ=yes
17566 hardcode_shlibpath_var_GCJ=no
17567 ;;
17568
17569 *)
17570 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17571 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17572 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17573 else
17574 ld_shlibs_GCJ=no
17575 fi
17576 ;;
17577 esac
17578
17579 if test "$ld_shlibs_GCJ" = no; then
17580 runpath_var=
17581 hardcode_libdir_flag_spec_GCJ=
17582 export_dynamic_flag_spec_GCJ=
17583 whole_archive_flag_spec_GCJ=
17584 fi
17585 else
17586 # PORTME fill in a description of your system's linker (not GNU ld)
17587 case $host_os in
17588 aix3*)
17589 allow_undefined_flag_GCJ=unsupported
17590 always_export_symbols_GCJ=yes
17591 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'
17592 # Note: this linker hardcodes the directories in LIBPATH if there
17593 # are no directories specified by -L.
17594 hardcode_minus_L_GCJ=yes
17595 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17596 # Neither direct hardcoding nor static linking is supported with a
17597 # broken collect2.
17598 hardcode_direct_GCJ=unsupported
17599 fi
17600 ;;
17601
17602 aix[4-9]*)
17603 if test "$host_cpu" = ia64; then
17604 # On IA64, the linker does run time linking by default, so we don't
17605 # have to do anything special.
17606 aix_use_runtimelinking=no
17607 exp_sym_flag='-Bexport'
17608 no_entry_flag=""
17609 else
17610 # If we're using GNU nm, then we don't want the "-C" option.
17611 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17612 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17613 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'
17614 else
17615 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'
17616 fi
17617 aix_use_runtimelinking=no
17618
17619 # Test if we are trying to use run time linking or normal
17620 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17621 # need to do runtime linking.
17622 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17623 for ld_flag in $LDFLAGS; do
17624 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17625 aix_use_runtimelinking=yes
17626 break
17627 fi
17628 done
17629 ;;
17630 esac
17631
17632 exp_sym_flag='-bexport'
17633 no_entry_flag='-bnoentry'
17634 fi
17635
17636 # When large executables or shared objects are built, AIX ld can
17637 # have problems creating the table of contents. If linking a library
17638 # or program results in "error TOC overflow" add -mminimal-toc to
17639 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17640 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17641
17642 archive_cmds_GCJ=''
17643 hardcode_direct_GCJ=yes
17644 hardcode_libdir_separator_GCJ=':'
17645 link_all_deplibs_GCJ=yes
17646
17647 if test "$GCC" = yes; then
17648 case $host_os in aix4.[012]|aix4.[012].*)
17649 # We only want to do this on AIX 4.2 and lower, the check
17650 # below for broken collect2 doesn't work under 4.3+
17651 collect2name=`${CC} -print-prog-name=collect2`
17652 if test -f "$collect2name" && \
17653 strings "$collect2name" | grep resolve_lib_name >/dev/null
17654 then
17655 # We have reworked collect2
17656 :
17657 else
17658 # We have old collect2
17659 hardcode_direct_GCJ=unsupported
17660 # It fails to find uninstalled libraries when the uninstalled
17661 # path is not listed in the libpath. Setting hardcode_minus_L
17662 # to unsupported forces relinking
17663 hardcode_minus_L_GCJ=yes
17664 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17665 hardcode_libdir_separator_GCJ=
17666 fi
17667 ;;
17668 esac
17669 shared_flag='-shared'
17670 if test "$aix_use_runtimelinking" = yes; then
17671 shared_flag="$shared_flag "'${wl}-G'
17672 fi
17673 else
17674 # not using gcc
17675 if test "$host_cpu" = ia64; then
17676 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17677 # chokes on -Wl,-G. The following line is correct:
17678 shared_flag='-G'
17679 else
17680 if test "$aix_use_runtimelinking" = yes; then
17681 shared_flag='${wl}-G'
17682 else
17683 shared_flag='${wl}-bM:SRE'
17684 fi
17685 fi
17686 fi
17687
17688 # It seems that -bexpall does not export symbols beginning with
17689 # underscore (_), so it is better to generate a list of symbols to export.
17690 always_export_symbols_GCJ=yes
17691 if test "$aix_use_runtimelinking" = yes; then
17692 # Warning - without using the other runtime loading flags (-brtl),
17693 # -berok will link without error, but may produce a broken library.
17694 allow_undefined_flag_GCJ='-berok'
17695 # Determine the default libpath from the value encoded in an empty executable.
17696 cat >conftest.$ac_ext <<_ACEOF
17697 /* confdefs.h. */
17698 _ACEOF
17699 cat confdefs.h >>conftest.$ac_ext
17700 cat >>conftest.$ac_ext <<_ACEOF
17701 /* end confdefs.h. */
17702
17703 int
17704 main ()
17705 {
17706
17707 ;
17708 return 0;
17709 }
17710 _ACEOF
17711 rm -f conftest.$ac_objext conftest$ac_exeext
17712 if { (ac_try="$ac_link"
17713 case "(($ac_try" in
17714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17715 *) ac_try_echo=$ac_try;;
17716 esac
17717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17718 (eval "$ac_link") 2>conftest.er1
17719 ac_status=$?
17720 grep -v '^ *+' conftest.er1 >conftest.err
17721 rm -f conftest.er1
17722 cat conftest.err >&5
17723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724 (exit $ac_status); } && {
17725 test -z "$ac_c_werror_flag" ||
17726 test ! -s conftest.err
17727 } && test -s conftest$ac_exeext &&
17728 $as_test_x conftest$ac_exeext; then
17729
17730 lt_aix_libpath_sed='
17731 /Import File Strings/,/^$/ {
17732 /^0/ {
17733 s/^0 *\(.*\)$/\1/
17734 p
17735 }
17736 }'
17737 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17738 # Check for a 64-bit object if we didn't find anything.
17739 if test -z "$aix_libpath"; then
17740 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17741 fi
17742 else
17743 echo "$as_me: failed program was:" >&5
17744 sed 's/^/| /' conftest.$ac_ext >&5
17745
17746
17747 fi
17748
17749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17750 conftest$ac_exeext conftest.$ac_ext
17751 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17752
17753 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17754 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"
17755 else
17756 if test "$host_cpu" = ia64; then
17757 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17758 allow_undefined_flag_GCJ="-z nodefs"
17759 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"
17760 else
17761 # Determine the default libpath from the value encoded in an empty executable.
17762 cat >conftest.$ac_ext <<_ACEOF
17763 /* confdefs.h. */
17764 _ACEOF
17765 cat confdefs.h >>conftest.$ac_ext
17766 cat >>conftest.$ac_ext <<_ACEOF
17767 /* end confdefs.h. */
17768
17769 int
17770 main ()
17771 {
17772
17773 ;
17774 return 0;
17775 }
17776 _ACEOF
17777 rm -f conftest.$ac_objext conftest$ac_exeext
17778 if { (ac_try="$ac_link"
17779 case "(($ac_try" in
17780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17781 *) ac_try_echo=$ac_try;;
17782 esac
17783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17784 (eval "$ac_link") 2>conftest.er1
17785 ac_status=$?
17786 grep -v '^ *+' conftest.er1 >conftest.err
17787 rm -f conftest.er1
17788 cat conftest.err >&5
17789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17790 (exit $ac_status); } && {
17791 test -z "$ac_c_werror_flag" ||
17792 test ! -s conftest.err
17793 } && test -s conftest$ac_exeext &&
17794 $as_test_x conftest$ac_exeext; then
17795
17796 lt_aix_libpath_sed='
17797 /Import File Strings/,/^$/ {
17798 /^0/ {
17799 s/^0 *\(.*\)$/\1/
17800 p
17801 }
17802 }'
17803 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17804 # Check for a 64-bit object if we didn't find anything.
17805 if test -z "$aix_libpath"; then
17806 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17807 fi
17808 else
17809 echo "$as_me: failed program was:" >&5
17810 sed 's/^/| /' conftest.$ac_ext >&5
17811
17812
17813 fi
17814
17815 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17816 conftest$ac_exeext conftest.$ac_ext
17817 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17818
17819 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17820 # Warning - without using the other run time loading flags,
17821 # -berok will link without error, but may produce a broken library.
17822 no_undefined_flag_GCJ=' ${wl}-bernotok'
17823 allow_undefined_flag_GCJ=' ${wl}-berok'
17824 # Exported symbols can be pulled into shared objects from archives
17825 whole_archive_flag_spec_GCJ='$convenience'
17826 archive_cmds_need_lc_GCJ=yes
17827 # This is similar to how AIX traditionally builds its shared libraries.
17828 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'
17829 fi
17830 fi
17831 ;;
17832
17833 amigaos*)
17834 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)'
17835 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17836 hardcode_minus_L_GCJ=yes
17837 # see comment about different semantics on the GNU ld section
17838 ld_shlibs_GCJ=no
17839 ;;
17840
17841 bsdi[45]*)
17842 export_dynamic_flag_spec_GCJ=-rdynamic
17843 ;;
17844
17845 cygwin* | mingw* | pw32*)
17846 # When not using gcc, we currently assume that we are using
17847 # Microsoft Visual C++.
17848 # hardcode_libdir_flag_spec is actually meaningless, as there is
17849 # no search path for DLLs.
17850 hardcode_libdir_flag_spec_GCJ=' '
17851 allow_undefined_flag_GCJ=unsupported
17852 # Tell ltmain to make .lib files, not .a files.
17853 libext=lib
17854 # Tell ltmain to make .dll files, not .so files.
17855 shrext_cmds=".dll"
17856 # FIXME: Setting linknames here is a bad hack.
17857 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17858 # The linker will automatically build a .lib file if we build a DLL.
17859 old_archive_From_new_cmds_GCJ='true'
17860 # FIXME: Should let the user specify the lib program.
17861 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17862 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17863 enable_shared_with_static_runtimes_GCJ=yes
17864 ;;
17865
17866 darwin* | rhapsody*)
17867 case $host_os in
17868 rhapsody* | darwin1.[012])
17869 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17870 ;;
17871 *) # Darwin 1.3 on
17872 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17873 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17874 else
17875 case ${MACOSX_DEPLOYMENT_TARGET} in
17876 10.[012])
17877 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17878 ;;
17879 10.*)
17880 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17881 ;;
17882 esac
17883 fi
17884 ;;
17885 esac
17886 archive_cmds_need_lc_GCJ=no
17887 hardcode_direct_GCJ=no
17888 hardcode_automatic_GCJ=yes
17889 hardcode_shlibpath_var_GCJ=unsupported
17890 whole_archive_flag_spec_GCJ=''
17891 link_all_deplibs_GCJ=yes
17892 if test "$GCC" = yes ; then
17893 output_verbose_link_cmd='echo'
17894 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17895 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17896 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17897 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17898 else
17899 case $cc_basename in
17900 xlc*)
17901 output_verbose_link_cmd='echo'
17902 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17903 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17904 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17905 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17906 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}'
17907 ;;
17908 *)
17909 ld_shlibs_GCJ=no
17910 ;;
17911 esac
17912 fi
17913 ;;
17914
17915 dgux*)
17916 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17917 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17918 hardcode_shlibpath_var_GCJ=no
17919 ;;
17920
17921 freebsd1*)
17922 ld_shlibs_GCJ=no
17923 ;;
17924
17925 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17926 # support. Future versions do this automatically, but an explicit c++rt0.o
17927 # does not break anything, and helps significantly (at the cost of a little
17928 # extra space).
17929 freebsd2.2*)
17930 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17931 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17932 hardcode_direct_GCJ=yes
17933 hardcode_shlibpath_var_GCJ=no
17934 ;;
17935
17936 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17937 freebsd2*)
17938 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17939 hardcode_direct_GCJ=yes
17940 hardcode_minus_L_GCJ=yes
17941 hardcode_shlibpath_var_GCJ=no
17942 ;;
17943
17944 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17945 freebsd* | dragonfly*)
17946 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17947 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17948 hardcode_direct_GCJ=yes
17949 hardcode_shlibpath_var_GCJ=no
17950 ;;
17951
17952 hpux9*)
17953 if test "$GCC" = yes; then
17954 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'
17955 else
17956 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'
17957 fi
17958 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17959 hardcode_libdir_separator_GCJ=:
17960 hardcode_direct_GCJ=yes
17961
17962 # hardcode_minus_L: Not really in the search PATH,
17963 # but as the default location of the library.
17964 hardcode_minus_L_GCJ=yes
17965 export_dynamic_flag_spec_GCJ='${wl}-E'
17966 ;;
17967
17968 hpux10*)
17969 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17970 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17971 else
17972 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17973 fi
17974 if test "$with_gnu_ld" = no; then
17975 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17976 hardcode_libdir_separator_GCJ=:
17977
17978 hardcode_direct_GCJ=yes
17979 export_dynamic_flag_spec_GCJ='${wl}-E'
17980
17981 # hardcode_minus_L: Not really in the search PATH,
17982 # but as the default location of the library.
17983 hardcode_minus_L_GCJ=yes
17984 fi
17985 ;;
17986
17987 hpux11*)
17988 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17989 case $host_cpu in
17990 hppa*64*)
17991 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17992 ;;
17993 ia64*)
17994 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17995 ;;
17996 *)
17997 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17998 ;;
17999 esac
18000 else
18001 case $host_cpu in
18002 hppa*64*)
18003 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18004 ;;
18005 ia64*)
18006 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18007 ;;
18008 *)
18009 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18010 ;;
18011 esac
18012 fi
18013 if test "$with_gnu_ld" = no; then
18014 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18015 hardcode_libdir_separator_GCJ=:
18016
18017 case $host_cpu in
18018 hppa*64*|ia64*)
18019 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18020 hardcode_direct_GCJ=no
18021 hardcode_shlibpath_var_GCJ=no
18022 ;;
18023 *)
18024 hardcode_direct_GCJ=yes
18025 export_dynamic_flag_spec_GCJ='${wl}-E'
18026
18027 # hardcode_minus_L: Not really in the search PATH,
18028 # but as the default location of the library.
18029 hardcode_minus_L_GCJ=yes
18030 ;;
18031 esac
18032 fi
18033 ;;
18034
18035 irix5* | irix6* | nonstopux*)
18036 if test "$GCC" = yes; then
18037 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'
18038 else
18039 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'
18040 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18041 fi
18042 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18043 hardcode_libdir_separator_GCJ=:
18044 link_all_deplibs_GCJ=yes
18045 ;;
18046
18047 netbsd* | netbsdelf*-gnu)
18048 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18049 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18050 else
18051 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18052 fi
18053 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18054 hardcode_direct_GCJ=yes
18055 hardcode_shlibpath_var_GCJ=no
18056 ;;
18057
18058 newsos6)
18059 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18060 hardcode_direct_GCJ=yes
18061 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18062 hardcode_libdir_separator_GCJ=:
18063 hardcode_shlibpath_var_GCJ=no
18064 ;;
18065
18066 openbsd*)
18067 if test -f /usr/libexec/ld.so; then
18068 hardcode_direct_GCJ=yes
18069 hardcode_shlibpath_var_GCJ=no
18070 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18071 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18072 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18073 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18074 export_dynamic_flag_spec_GCJ='${wl}-E'
18075 else
18076 case $host_os in
18077 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18078 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18079 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18080 ;;
18081 *)
18082 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18083 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18084 ;;
18085 esac
18086 fi
18087 else
18088 ld_shlibs_GCJ=no
18089 fi
18090 ;;
18091
18092 os2*)
18093 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18094 hardcode_minus_L_GCJ=yes
18095 allow_undefined_flag_GCJ=unsupported
18096 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'
18097 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18098 ;;
18099
18100 osf3*)
18101 if test "$GCC" = yes; then
18102 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18103 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'
18104 else
18105 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18106 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'
18107 fi
18108 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18109 hardcode_libdir_separator_GCJ=:
18110 ;;
18111
18112 osf4* | osf5*) # as osf3* with the addition of -msym flag
18113 if test "$GCC" = yes; then
18114 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18115 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'
18116 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18117 else
18118 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18119 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'
18120 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~
18121 $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'
18122
18123 # Both c and cxx compiler support -rpath directly
18124 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18125 fi
18126 hardcode_libdir_separator_GCJ=:
18127 ;;
18128
18129 solaris*)
18130 no_undefined_flag_GCJ=' -z text'
18131 if test "$GCC" = yes; then
18132 wlarc='${wl}'
18133 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18134 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18135 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18136 else
18137 wlarc=''
18138 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18139 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18140 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18141 fi
18142 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18143 hardcode_shlibpath_var_GCJ=no
18144 case $host_os in
18145 solaris2.[0-5] | solaris2.[0-5].*) ;;
18146 *)
18147 # The compiler driver will combine and reorder linker options,
18148 # but understands `-z linker_flag'. GCC discards it without `$wl',
18149 # but is careful enough not to reorder.
18150 # Supported since Solaris 2.6 (maybe 2.5.1?)
18151 if test "$GCC" = yes; then
18152 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18153 else
18154 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18155 fi
18156 ;;
18157 esac
18158 link_all_deplibs_GCJ=yes
18159 ;;
18160
18161 sunos4*)
18162 if test "x$host_vendor" = xsequent; then
18163 # Use $CC to link under sequent, because it throws in some extra .o
18164 # files that make .init and .fini sections work.
18165 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18166 else
18167 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18168 fi
18169 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18170 hardcode_direct_GCJ=yes
18171 hardcode_minus_L_GCJ=yes
18172 hardcode_shlibpath_var_GCJ=no
18173 ;;
18174
18175 sysv4)
18176 case $host_vendor in
18177 sni)
18178 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18179 hardcode_direct_GCJ=yes # is this really true???
18180 ;;
18181 siemens)
18182 ## LD is ld it makes a PLAMLIB
18183 ## CC just makes a GrossModule.
18184 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18185 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18186 hardcode_direct_GCJ=no
18187 ;;
18188 motorola)
18189 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18190 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18191 ;;
18192 esac
18193 runpath_var='LD_RUN_PATH'
18194 hardcode_shlibpath_var_GCJ=no
18195 ;;
18196
18197 sysv4.3*)
18198 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18199 hardcode_shlibpath_var_GCJ=no
18200 export_dynamic_flag_spec_GCJ='-Bexport'
18201 ;;
18202
18203 sysv4*MP*)
18204 if test -d /usr/nec; then
18205 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18206 hardcode_shlibpath_var_GCJ=no
18207 runpath_var=LD_RUN_PATH
18208 hardcode_runpath_var=yes
18209 ld_shlibs_GCJ=yes
18210 fi
18211 ;;
18212
18213 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18214 no_undefined_flag_GCJ='${wl}-z,text'
18215 archive_cmds_need_lc_GCJ=no
18216 hardcode_shlibpath_var_GCJ=no
18217 runpath_var='LD_RUN_PATH'
18218
18219 if test "$GCC" = yes; then
18220 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18221 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18222 else
18223 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18224 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18225 fi
18226 ;;
18227
18228 sysv5* | sco3.2v5* | sco5v6*)
18229 # Note: We can NOT use -z defs as we might desire, because we do not
18230 # link with -lc, and that would cause any symbols used from libc to
18231 # always be unresolved, which means just about no library would
18232 # ever link correctly. If we're not using GNU ld we use -z text
18233 # though, which does catch some bad symbols but isn't as heavy-handed
18234 # as -z defs.
18235 no_undefined_flag_GCJ='${wl}-z,text'
18236 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18237 archive_cmds_need_lc_GCJ=no
18238 hardcode_shlibpath_var_GCJ=no
18239 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18240 hardcode_libdir_separator_GCJ=':'
18241 link_all_deplibs_GCJ=yes
18242 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18243 runpath_var='LD_RUN_PATH'
18244
18245 if test "$GCC" = yes; then
18246 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18247 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18248 else
18249 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18250 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18251 fi
18252 ;;
18253
18254 uts4*)
18255 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18256 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18257 hardcode_shlibpath_var_GCJ=no
18258 ;;
18259
18260 *)
18261 ld_shlibs_GCJ=no
18262 ;;
18263 esac
18264 fi
18265
18266 { echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18267 echo "${ECHO_T}$ld_shlibs_GCJ" >&6; }
18268 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18269
18270 #
18271 # Do we need to explicitly link libc?
18272 #
18273 case "x$archive_cmds_need_lc_GCJ" in
18274 x|xyes)
18275 # Assume -lc should be added
18276 archive_cmds_need_lc_GCJ=yes
18277
18278 if test "$enable_shared" = yes && test "$GCC" = yes; then
18279 case $archive_cmds_GCJ in
18280 *'~'*)
18281 # FIXME: we may have to deal with multi-command sequences.
18282 ;;
18283 '$CC '*)
18284 # Test whether the compiler implicitly links with -lc since on some
18285 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18286 # to ld, don't add -lc before -lgcc.
18287 { echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18288 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6; }
18289 $rm conftest*
18290 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18291
18292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18293 (eval $ac_compile) 2>&5
18294 ac_status=$?
18295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18296 (exit $ac_status); } 2>conftest.err; then
18297 soname=conftest
18298 lib=conftest
18299 libobjs=conftest.$ac_objext
18300 deplibs=
18301 wl=$lt_prog_compiler_wl_GCJ
18302 pic_flag=$lt_prog_compiler_pic_GCJ
18303 compiler_flags=-v
18304 linker_flags=-v
18305 verstring=
18306 output_objdir=.
18307 libname=conftest
18308 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18309 allow_undefined_flag_GCJ=
18310 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18311 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18312 ac_status=$?
18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18314 (exit $ac_status); }
18315 then
18316 archive_cmds_need_lc_GCJ=no
18317 else
18318 archive_cmds_need_lc_GCJ=yes
18319 fi
18320 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18321 else
18322 cat conftest.err 1>&5
18323 fi
18324 $rm conftest*
18325 { echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18326 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6; }
18327 ;;
18328 esac
18329 fi
18330 ;;
18331 esac
18332
18333 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18334 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
18335 library_names_spec=
18336 libname_spec='lib$name'
18337 soname_spec=
18338 shrext_cmds=".so"
18339 postinstall_cmds=
18340 postuninstall_cmds=
18341 finish_cmds=
18342 finish_eval=
18343 shlibpath_var=
18344 shlibpath_overrides_runpath=unknown
18345 version_type=none
18346 dynamic_linker="$host_os ld.so"
18347 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18348
18349 need_lib_prefix=unknown
18350 hardcode_into_libs=no
18351
18352 # when you set need_version to no, make sure it does not cause -set_version
18353 # flags to be left without arguments
18354 need_version=unknown
18355
18356 case $host_os in
18357 aix3*)
18358 version_type=linux
18359 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18360 shlibpath_var=LIBPATH
18361
18362 # AIX 3 has no versioning support, so we append a major version to the name.
18363 soname_spec='${libname}${release}${shared_ext}$major'
18364 ;;
18365
18366 aix[4-9]*)
18367 version_type=linux
18368 need_lib_prefix=no
18369 need_version=no
18370 hardcode_into_libs=yes
18371 if test "$host_cpu" = ia64; then
18372 # AIX 5 supports IA64
18373 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18374 shlibpath_var=LD_LIBRARY_PATH
18375 else
18376 # With GCC up to 2.95.x, collect2 would create an import file
18377 # for dependence libraries. The import file would start with
18378 # the line `#! .'. This would cause the generated library to
18379 # depend on `.', always an invalid library. This was fixed in
18380 # development snapshots of GCC prior to 3.0.
18381 case $host_os in
18382 aix4 | aix4.[01] | aix4.[01].*)
18383 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18384 echo ' yes '
18385 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18386 :
18387 else
18388 can_build_shared=no
18389 fi
18390 ;;
18391 esac
18392 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18393 # soname into executable. Probably we can add versioning support to
18394 # collect2, so additional links can be useful in future.
18395 if test "$aix_use_runtimelinking" = yes; then
18396 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18397 # instead of lib<name>.a to let people know that these are not
18398 # typical AIX shared libraries.
18399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18400 else
18401 # We preserve .a as extension for shared libraries through AIX4.2
18402 # and later when we are not doing run time linking.
18403 library_names_spec='${libname}${release}.a $libname.a'
18404 soname_spec='${libname}${release}${shared_ext}$major'
18405 fi
18406 shlibpath_var=LIBPATH
18407 fi
18408 ;;
18409
18410 amigaos*)
18411 library_names_spec='$libname.ixlibrary $libname.a'
18412 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18413 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'
18414 ;;
18415
18416 beos*)
18417 library_names_spec='${libname}${shared_ext}'
18418 dynamic_linker="$host_os ld.so"
18419 shlibpath_var=LIBRARY_PATH
18420 ;;
18421
18422 bsdi[45]*)
18423 version_type=linux
18424 need_version=no
18425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18426 soname_spec='${libname}${release}${shared_ext}$major'
18427 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18428 shlibpath_var=LD_LIBRARY_PATH
18429 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18430 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18431 # the default ld.so.conf also contains /usr/contrib/lib and
18432 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18433 # libtool to hard-code these into programs
18434 ;;
18435
18436 cygwin* | mingw* | pw32*)
18437 version_type=windows
18438 shrext_cmds=".dll"
18439 need_version=no
18440 need_lib_prefix=no
18441
18442 case $GCC,$host_os in
18443 yes,cygwin* | yes,mingw* | yes,pw32*)
18444 library_names_spec='$libname.dll.a'
18445 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18446 postinstall_cmds='base_file=`basename \${file}`~
18447 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18448 dldir=$destdir/`dirname \$dlpath`~
18449 test -d \$dldir || mkdir -p \$dldir~
18450 $install_prog $dir/$dlname \$dldir/$dlname~
18451 chmod a+x \$dldir/$dlname'
18452 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18453 dlpath=$dir/\$dldll~
18454 $rm \$dlpath'
18455 shlibpath_overrides_runpath=yes
18456
18457 case $host_os in
18458 cygwin*)
18459 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18460 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18461 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18462 ;;
18463 mingw*)
18464 # MinGW DLLs use traditional 'lib' prefix
18465 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18466 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18467 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18468 # It is most probably a Windows format PATH printed by
18469 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18470 # path with ; separators, and with drive letters. We can handle the
18471 # drive letters (cygwin fileutils understands them), so leave them,
18472 # especially as we might pass files found there to a mingw objdump,
18473 # which wouldn't understand a cygwinified path. Ahh.
18474 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18475 else
18476 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18477 fi
18478 ;;
18479 pw32*)
18480 # pw32 DLLs use 'pw' prefix rather than 'lib'
18481 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18482 ;;
18483 esac
18484 ;;
18485
18486 *)
18487 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18488 ;;
18489 esac
18490 dynamic_linker='Win32 ld.exe'
18491 # FIXME: first we should search . and the directory the executable is in
18492 shlibpath_var=PATH
18493 ;;
18494
18495 darwin* | rhapsody*)
18496 dynamic_linker="$host_os dyld"
18497 version_type=darwin
18498 need_lib_prefix=no
18499 need_version=no
18500 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18501 soname_spec='${libname}${release}${major}$shared_ext'
18502 shlibpath_overrides_runpath=yes
18503 shlibpath_var=DYLD_LIBRARY_PATH
18504 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18505
18506 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18507 ;;
18508
18509 dgux*)
18510 version_type=linux
18511 need_lib_prefix=no
18512 need_version=no
18513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18514 soname_spec='${libname}${release}${shared_ext}$major'
18515 shlibpath_var=LD_LIBRARY_PATH
18516 ;;
18517
18518 freebsd1*)
18519 dynamic_linker=no
18520 ;;
18521
18522 freebsd* | dragonfly*)
18523 # DragonFly does not have aout. When/if they implement a new
18524 # versioning mechanism, adjust this.
18525 if test -x /usr/bin/objformat; then
18526 objformat=`/usr/bin/objformat`
18527 else
18528 case $host_os in
18529 freebsd[123]*) objformat=aout ;;
18530 *) objformat=elf ;;
18531 esac
18532 fi
18533 version_type=freebsd-$objformat
18534 case $version_type in
18535 freebsd-elf*)
18536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18537 need_version=no
18538 need_lib_prefix=no
18539 ;;
18540 freebsd-*)
18541 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18542 need_version=yes
18543 ;;
18544 esac
18545 shlibpath_var=LD_LIBRARY_PATH
18546 case $host_os in
18547 freebsd2*)
18548 shlibpath_overrides_runpath=yes
18549 ;;
18550 freebsd3.[01]* | freebsdelf3.[01]*)
18551 shlibpath_overrides_runpath=yes
18552 hardcode_into_libs=yes
18553 ;;
18554 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18555 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18556 shlibpath_overrides_runpath=no
18557 hardcode_into_libs=yes
18558 ;;
18559 *) # from 4.6 on, and DragonFly
18560 shlibpath_overrides_runpath=yes
18561 hardcode_into_libs=yes
18562 ;;
18563 esac
18564 ;;
18565
18566 gnu*)
18567 version_type=linux
18568 need_lib_prefix=no
18569 need_version=no
18570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18571 soname_spec='${libname}${release}${shared_ext}$major'
18572 shlibpath_var=LD_LIBRARY_PATH
18573 hardcode_into_libs=yes
18574 ;;
18575
18576 hpux9* | hpux10* | hpux11*)
18577 # Give a soname corresponding to the major version so that dld.sl refuses to
18578 # link against other versions.
18579 version_type=sunos
18580 need_lib_prefix=no
18581 need_version=no
18582 case $host_cpu in
18583 ia64*)
18584 shrext_cmds='.so'
18585 hardcode_into_libs=yes
18586 dynamic_linker="$host_os dld.so"
18587 shlibpath_var=LD_LIBRARY_PATH
18588 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18590 soname_spec='${libname}${release}${shared_ext}$major'
18591 if test "X$HPUX_IA64_MODE" = X32; then
18592 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18593 else
18594 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18595 fi
18596 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18597 ;;
18598 hppa*64*)
18599 shrext_cmds='.sl'
18600 hardcode_into_libs=yes
18601 dynamic_linker="$host_os dld.sl"
18602 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18603 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18605 soname_spec='${libname}${release}${shared_ext}$major'
18606 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18607 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18608 ;;
18609 *)
18610 shrext_cmds='.sl'
18611 dynamic_linker="$host_os dld.sl"
18612 shlibpath_var=SHLIB_PATH
18613 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18614 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18615 soname_spec='${libname}${release}${shared_ext}$major'
18616 ;;
18617 esac
18618 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18619 postinstall_cmds='chmod 555 $lib'
18620 ;;
18621
18622 interix[3-9]*)
18623 version_type=linux
18624 need_lib_prefix=no
18625 need_version=no
18626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18627 soname_spec='${libname}${release}${shared_ext}$major'
18628 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18629 shlibpath_var=LD_LIBRARY_PATH
18630 shlibpath_overrides_runpath=no
18631 hardcode_into_libs=yes
18632 ;;
18633
18634 irix5* | irix6* | nonstopux*)
18635 case $host_os in
18636 nonstopux*) version_type=nonstopux ;;
18637 *)
18638 if test "$lt_cv_prog_gnu_ld" = yes; then
18639 version_type=linux
18640 else
18641 version_type=irix
18642 fi ;;
18643 esac
18644 need_lib_prefix=no
18645 need_version=no
18646 soname_spec='${libname}${release}${shared_ext}$major'
18647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18648 case $host_os in
18649 irix5* | nonstopux*)
18650 libsuff= shlibsuff=
18651 ;;
18652 *)
18653 case $LD in # libtool.m4 will add one of these switches to LD
18654 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18655 libsuff= shlibsuff= libmagic=32-bit;;
18656 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18657 libsuff=32 shlibsuff=N32 libmagic=N32;;
18658 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18659 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18660 *) libsuff= shlibsuff= libmagic=never-match;;
18661 esac
18662 ;;
18663 esac
18664 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18665 shlibpath_overrides_runpath=no
18666 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18667 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18668 hardcode_into_libs=yes
18669 ;;
18670
18671 # No shared lib support for Linux oldld, aout, or coff.
18672 linux*oldld* | linux*aout* | linux*coff*)
18673 dynamic_linker=no
18674 ;;
18675
18676 # This must be Linux ELF.
18677 linux* | k*bsd*-gnu)
18678 version_type=linux
18679 need_lib_prefix=no
18680 need_version=no
18681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18682 soname_spec='${libname}${release}${shared_ext}$major'
18683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18684 shlibpath_var=LD_LIBRARY_PATH
18685 shlibpath_overrides_runpath=no
18686 # This implies no fast_install, which is unacceptable.
18687 # Some rework will be needed to allow for fast_install
18688 # before this can be enabled.
18689 hardcode_into_libs=yes
18690
18691 # Append ld.so.conf contents to the search path
18692 if test -f /etc/ld.so.conf; then
18693 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18694 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18695 fi
18696
18697 # We used to test for /lib/ld.so.1 and disable shared libraries on
18698 # powerpc, because MkLinux only supported shared libraries with the
18699 # GNU dynamic linker. Since this was broken with cross compilers,
18700 # most powerpc-linux boxes support dynamic linking these days and
18701 # people can always --disable-shared, the test was removed, and we
18702 # assume the GNU/Linux dynamic linker is in use.
18703 dynamic_linker='GNU/Linux ld.so'
18704 ;;
18705
18706 netbsdelf*-gnu)
18707 version_type=linux
18708 need_lib_prefix=no
18709 need_version=no
18710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18711 soname_spec='${libname}${release}${shared_ext}$major'
18712 shlibpath_var=LD_LIBRARY_PATH
18713 shlibpath_overrides_runpath=no
18714 hardcode_into_libs=yes
18715 dynamic_linker='NetBSD ld.elf_so'
18716 ;;
18717
18718 netbsd*)
18719 version_type=sunos
18720 need_lib_prefix=no
18721 need_version=no
18722 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18725 dynamic_linker='NetBSD (a.out) ld.so'
18726 else
18727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18728 soname_spec='${libname}${release}${shared_ext}$major'
18729 dynamic_linker='NetBSD ld.elf_so'
18730 fi
18731 shlibpath_var=LD_LIBRARY_PATH
18732 shlibpath_overrides_runpath=yes
18733 hardcode_into_libs=yes
18734 ;;
18735
18736 newsos6)
18737 version_type=linux
18738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18739 shlibpath_var=LD_LIBRARY_PATH
18740 shlibpath_overrides_runpath=yes
18741 ;;
18742
18743 nto-qnx*)
18744 version_type=linux
18745 need_lib_prefix=no
18746 need_version=no
18747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18748 soname_spec='${libname}${release}${shared_ext}$major'
18749 shlibpath_var=LD_LIBRARY_PATH
18750 shlibpath_overrides_runpath=yes
18751 ;;
18752
18753 openbsd*)
18754 version_type=sunos
18755 sys_lib_dlsearch_path_spec="/usr/lib"
18756 need_lib_prefix=no
18757 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18758 case $host_os in
18759 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18760 *) need_version=no ;;
18761 esac
18762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18763 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18764 shlibpath_var=LD_LIBRARY_PATH
18765 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18766 case $host_os in
18767 openbsd2.[89] | openbsd2.[89].*)
18768 shlibpath_overrides_runpath=no
18769 ;;
18770 *)
18771 shlibpath_overrides_runpath=yes
18772 ;;
18773 esac
18774 else
18775 shlibpath_overrides_runpath=yes
18776 fi
18777 ;;
18778
18779 os2*)
18780 libname_spec='$name'
18781 shrext_cmds=".dll"
18782 need_lib_prefix=no
18783 library_names_spec='$libname${shared_ext} $libname.a'
18784 dynamic_linker='OS/2 ld.exe'
18785 shlibpath_var=LIBPATH
18786 ;;
18787
18788 osf3* | osf4* | osf5*)
18789 version_type=osf
18790 need_lib_prefix=no
18791 need_version=no
18792 soname_spec='${libname}${release}${shared_ext}$major'
18793 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18794 shlibpath_var=LD_LIBRARY_PATH
18795 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18796 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18797 ;;
18798
18799 rdos*)
18800 dynamic_linker=no
18801 ;;
18802
18803 solaris*)
18804 version_type=linux
18805 need_lib_prefix=no
18806 need_version=no
18807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18808 soname_spec='${libname}${release}${shared_ext}$major'
18809 shlibpath_var=LD_LIBRARY_PATH
18810 shlibpath_overrides_runpath=yes
18811 hardcode_into_libs=yes
18812 # ldd complains unless libraries are executable
18813 postinstall_cmds='chmod +x $lib'
18814 ;;
18815
18816 sunos4*)
18817 version_type=sunos
18818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18819 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18820 shlibpath_var=LD_LIBRARY_PATH
18821 shlibpath_overrides_runpath=yes
18822 if test "$with_gnu_ld" = yes; then
18823 need_lib_prefix=no
18824 fi
18825 need_version=yes
18826 ;;
18827
18828 sysv4 | sysv4.3*)
18829 version_type=linux
18830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18831 soname_spec='${libname}${release}${shared_ext}$major'
18832 shlibpath_var=LD_LIBRARY_PATH
18833 case $host_vendor in
18834 sni)
18835 shlibpath_overrides_runpath=no
18836 need_lib_prefix=no
18837 export_dynamic_flag_spec='${wl}-Blargedynsym'
18838 runpath_var=LD_RUN_PATH
18839 ;;
18840 siemens)
18841 need_lib_prefix=no
18842 ;;
18843 motorola)
18844 need_lib_prefix=no
18845 need_version=no
18846 shlibpath_overrides_runpath=no
18847 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18848 ;;
18849 esac
18850 ;;
18851
18852 sysv4*MP*)
18853 if test -d /usr/nec ;then
18854 version_type=linux
18855 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18856 soname_spec='$libname${shared_ext}.$major'
18857 shlibpath_var=LD_LIBRARY_PATH
18858 fi
18859 ;;
18860
18861 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18862 version_type=freebsd-elf
18863 need_lib_prefix=no
18864 need_version=no
18865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18866 soname_spec='${libname}${release}${shared_ext}$major'
18867 shlibpath_var=LD_LIBRARY_PATH
18868 hardcode_into_libs=yes
18869 if test "$with_gnu_ld" = yes; then
18870 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18871 shlibpath_overrides_runpath=no
18872 else
18873 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18874 shlibpath_overrides_runpath=yes
18875 case $host_os in
18876 sco3.2v5*)
18877 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18878 ;;
18879 esac
18880 fi
18881 sys_lib_dlsearch_path_spec='/usr/lib'
18882 ;;
18883
18884 uts4*)
18885 version_type=linux
18886 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18887 soname_spec='${libname}${release}${shared_ext}$major'
18888 shlibpath_var=LD_LIBRARY_PATH
18889 ;;
18890
18891 *)
18892 dynamic_linker=no
18893 ;;
18894 esac
18895 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18896 echo "${ECHO_T}$dynamic_linker" >&6; }
18897 test "$dynamic_linker" = no && can_build_shared=no
18898
18899 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18900 echo $ECHO_N "(cached) $ECHO_C" >&6
18901 else
18902 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18903 fi
18904
18905 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18906 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18907 echo $ECHO_N "(cached) $ECHO_C" >&6
18908 else
18909 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18910 fi
18911
18912 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18913
18914 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18915 if test "$GCC" = yes; then
18916 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18917 fi
18918
18919 { echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18920 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6; }
18921 hardcode_action_GCJ=
18922 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18923 test -n "$runpath_var_GCJ" || \
18924 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18925
18926 # We can hardcode non-existant directories.
18927 if test "$hardcode_direct_GCJ" != no &&
18928 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18929 # have to relink, otherwise we might link with an installed library
18930 # when we should be linking with a yet-to-be-installed one
18931 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18932 test "$hardcode_minus_L_GCJ" != no; then
18933 # Linking always hardcodes the temporary library directory.
18934 hardcode_action_GCJ=relink
18935 else
18936 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18937 hardcode_action_GCJ=immediate
18938 fi
18939 else
18940 # We cannot hardcode anything, or else we can only hardcode existing
18941 # directories.
18942 hardcode_action_GCJ=unsupported
18943 fi
18944 { echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18945 echo "${ECHO_T}$hardcode_action_GCJ" >&6; }
18946
18947 if test "$hardcode_action_GCJ" = relink; then
18948 # Fast installation is not supported
18949 enable_fast_install=no
18950 elif test "$shlibpath_overrides_runpath" = yes ||
18951 test "$enable_shared" = no; then
18952 # Fast installation is not necessary
18953 enable_fast_install=needless
18954 fi
18955
18956
18957 # The else clause should only fire when bootstrapping the
18958 # libtool distribution, otherwise you forgot to ship ltmain.sh
18959 # with your package, and you will get complaints that there are
18960 # no rules to generate ltmain.sh.
18961 if test -f "$ltmain"; then
18962 # See if we are running on zsh, and set the options which allow our commands through
18963 # without removal of \ escapes.
18964 if test -n "${ZSH_VERSION+set}" ; then
18965 setopt NO_GLOB_SUBST
18966 fi
18967 # Now quote all the things that may contain metacharacters while being
18968 # careful not to overquote the AC_SUBSTed values. We take copies of the
18969 # variables and quote the copies for generation of the libtool script.
18970 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18971 SED SHELL STRIP \
18972 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18973 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18974 deplibs_check_method reload_flag reload_cmds need_locks \
18975 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18976 lt_cv_sys_global_symbol_to_c_name_address \
18977 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18978 old_postinstall_cmds old_postuninstall_cmds \
18979 compiler_GCJ \
18980 CC_GCJ \
18981 LD_GCJ \
18982 lt_prog_compiler_wl_GCJ \
18983 lt_prog_compiler_pic_GCJ \
18984 lt_prog_compiler_static_GCJ \
18985 lt_prog_compiler_no_builtin_flag_GCJ \
18986 export_dynamic_flag_spec_GCJ \
18987 thread_safe_flag_spec_GCJ \
18988 whole_archive_flag_spec_GCJ \
18989 enable_shared_with_static_runtimes_GCJ \
18990 old_archive_cmds_GCJ \
18991 old_archive_from_new_cmds_GCJ \
18992 predep_objects_GCJ \
18993 postdep_objects_GCJ \
18994 predeps_GCJ \
18995 postdeps_GCJ \
18996 compiler_lib_search_path_GCJ \
18997 compiler_lib_search_dirs_GCJ \
18998 archive_cmds_GCJ \
18999 archive_expsym_cmds_GCJ \
19000 postinstall_cmds_GCJ \
19001 postuninstall_cmds_GCJ \
19002 old_archive_from_expsyms_cmds_GCJ \
19003 allow_undefined_flag_GCJ \
19004 no_undefined_flag_GCJ \
19005 export_symbols_cmds_GCJ \
19006 hardcode_libdir_flag_spec_GCJ \
19007 hardcode_libdir_flag_spec_ld_GCJ \
19008 hardcode_libdir_separator_GCJ \
19009 hardcode_automatic_GCJ \
19010 module_cmds_GCJ \
19011 module_expsym_cmds_GCJ \
19012 lt_cv_prog_compiler_c_o_GCJ \
19013 fix_srcfile_path_GCJ \
19014 exclude_expsyms_GCJ \
19015 include_expsyms_GCJ; do
19016
19017 case $var in
19018 old_archive_cmds_GCJ | \
19019 old_archive_from_new_cmds_GCJ | \
19020 archive_cmds_GCJ | \
19021 archive_expsym_cmds_GCJ | \
19022 module_cmds_GCJ | \
19023 module_expsym_cmds_GCJ | \
19024 old_archive_from_expsyms_cmds_GCJ | \
19025 export_symbols_cmds_GCJ | \
19026 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19027 postinstall_cmds | postuninstall_cmds | \
19028 old_postinstall_cmds | old_postuninstall_cmds | \
19029 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19030 # Double-quote double-evaled strings.
19031 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19032 ;;
19033 *)
19034 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19035 ;;
19036 esac
19037 done
19038
19039 case $lt_echo in
19040 *'\$0 --fallback-echo"')
19041 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19042 ;;
19043 esac
19044
19045 cfgfile="$ofile"
19046
19047 cat <<__EOF__ >> "$cfgfile"
19048 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19049
19050 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19051
19052 # Shell to use when invoking shell scripts.
19053 SHELL=$lt_SHELL
19054
19055 # Whether or not to build shared libraries.
19056 build_libtool_libs=$enable_shared
19057
19058 # Whether or not to build static libraries.
19059 build_old_libs=$enable_static
19060
19061 # Whether or not to add -lc for building shared libraries.
19062 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19063
19064 # Whether or not to disallow shared libs when runtime libs are static
19065 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19066
19067 # Whether or not to optimize for fast installation.
19068 fast_install=$enable_fast_install
19069
19070 # The host system.
19071 host_alias=$host_alias
19072 host=$host
19073 host_os=$host_os
19074
19075 # The build system.
19076 build_alias=$build_alias
19077 build=$build
19078 build_os=$build_os
19079
19080 # An echo program that does not interpret backslashes.
19081 echo=$lt_echo
19082
19083 # The archiver.
19084 AR=$lt_AR
19085 AR_FLAGS=$lt_AR_FLAGS
19086
19087 # A C compiler.
19088 LTCC=$lt_LTCC
19089
19090 # LTCC compiler flags.
19091 LTCFLAGS=$lt_LTCFLAGS
19092
19093 # A language-specific compiler.
19094 CC=$lt_compiler_GCJ
19095
19096 # Is the compiler the GNU C compiler?
19097 with_gcc=$GCC_GCJ
19098
19099 # An ERE matcher.
19100 EGREP=$lt_EGREP
19101
19102 # The linker used to build libraries.
19103 LD=$lt_LD_GCJ
19104
19105 # Whether we need hard or soft links.
19106 LN_S=$lt_LN_S
19107
19108 # A BSD-compatible nm program.
19109 NM=$lt_NM
19110
19111 # A symbol stripping program
19112 STRIP=$lt_STRIP
19113
19114 # Used to examine libraries when file_magic_cmd begins "file"
19115 MAGIC_CMD=$MAGIC_CMD
19116
19117 # Used on cygwin: DLL creation program.
19118 DLLTOOL="$DLLTOOL"
19119
19120 # Used on cygwin: object dumper.
19121 OBJDUMP="$OBJDUMP"
19122
19123 # Used on cygwin: assembler.
19124 AS="$AS"
19125
19126 # The name of the directory that contains temporary libtool files.
19127 objdir=$objdir
19128
19129 # How to create reloadable object files.
19130 reload_flag=$lt_reload_flag
19131 reload_cmds=$lt_reload_cmds
19132
19133 # How to pass a linker flag through the compiler.
19134 wl=$lt_lt_prog_compiler_wl_GCJ
19135
19136 # Object file suffix (normally "o").
19137 objext="$ac_objext"
19138
19139 # Old archive suffix (normally "a").
19140 libext="$libext"
19141
19142 # Shared library suffix (normally ".so").
19143 shrext_cmds='$shrext_cmds'
19144
19145 # Executable file suffix (normally "").
19146 exeext="$exeext"
19147
19148 # Additional compiler flags for building library objects.
19149 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19150 pic_mode=$pic_mode
19151
19152 # What is the maximum length of a command?
19153 max_cmd_len=$lt_cv_sys_max_cmd_len
19154
19155 # Does compiler simultaneously support -c and -o options?
19156 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19157
19158 # Must we lock files when doing compilation?
19159 need_locks=$lt_need_locks
19160
19161 # Do we need the lib prefix for modules?
19162 need_lib_prefix=$need_lib_prefix
19163
19164 # Do we need a version for libraries?
19165 need_version=$need_version
19166
19167 # Whether dlopen is supported.
19168 dlopen_support=$enable_dlopen
19169
19170 # Whether dlopen of programs is supported.
19171 dlopen_self=$enable_dlopen_self
19172
19173 # Whether dlopen of statically linked programs is supported.
19174 dlopen_self_static=$enable_dlopen_self_static
19175
19176 # Compiler flag to prevent dynamic linking.
19177 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19178
19179 # Compiler flag to turn off builtin functions.
19180 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19181
19182 # Compiler flag to allow reflexive dlopens.
19183 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19184
19185 # Compiler flag to generate shared objects directly from archives.
19186 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19187
19188 # Compiler flag to generate thread-safe objects.
19189 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19190
19191 # Library versioning type.
19192 version_type=$version_type
19193
19194 # Format of library name prefix.
19195 libname_spec=$lt_libname_spec
19196
19197 # List of archive names. First name is the real one, the rest are links.
19198 # The last name is the one that the linker finds with -lNAME.
19199 library_names_spec=$lt_library_names_spec
19200
19201 # The coded name of the library, if different from the real name.
19202 soname_spec=$lt_soname_spec
19203
19204 # Commands used to build and install an old-style archive.
19205 RANLIB=$lt_RANLIB
19206 old_archive_cmds=$lt_old_archive_cmds_GCJ
19207 old_postinstall_cmds=$lt_old_postinstall_cmds
19208 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19209
19210 # Create an old-style archive from a shared archive.
19211 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19212
19213 # Create a temporary old-style archive to link instead of a shared archive.
19214 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19215
19216 # Commands used to build and install a shared archive.
19217 archive_cmds=$lt_archive_cmds_GCJ
19218 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19219 postinstall_cmds=$lt_postinstall_cmds
19220 postuninstall_cmds=$lt_postuninstall_cmds
19221
19222 # Commands used to build a loadable module (assumed same as above if empty)
19223 module_cmds=$lt_module_cmds_GCJ
19224 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19225
19226 # Commands to strip libraries.
19227 old_striplib=$lt_old_striplib
19228 striplib=$lt_striplib
19229
19230 # Dependencies to place before the objects being linked to create a
19231 # shared library.
19232 predep_objects=$lt_predep_objects_GCJ
19233
19234 # Dependencies to place after the objects being linked to create a
19235 # shared library.
19236 postdep_objects=$lt_postdep_objects_GCJ
19237
19238 # Dependencies to place before the objects being linked to create a
19239 # shared library.
19240 predeps=$lt_predeps_GCJ
19241
19242 # Dependencies to place after the objects being linked to create a
19243 # shared library.
19244 postdeps=$lt_postdeps_GCJ
19245
19246 # The directories searched by this compiler when creating a shared
19247 # library
19248 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19249
19250 # The library search path used internally by the compiler when linking
19251 # a shared library.
19252 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19253
19254 # Method to check whether dependent libraries are shared objects.
19255 deplibs_check_method=$lt_deplibs_check_method
19256
19257 # Command to use when deplibs_check_method == file_magic.
19258 file_magic_cmd=$lt_file_magic_cmd
19259
19260 # Flag that allows shared libraries with undefined symbols to be built.
19261 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19262
19263 # Flag that forces no undefined symbols.
19264 no_undefined_flag=$lt_no_undefined_flag_GCJ
19265
19266 # Commands used to finish a libtool library installation in a directory.
19267 finish_cmds=$lt_finish_cmds
19268
19269 # Same as above, but a single script fragment to be evaled but not shown.
19270 finish_eval=$lt_finish_eval
19271
19272 # Take the output of nm and produce a listing of raw symbols and C names.
19273 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19274
19275 # Transform the output of nm in a proper C declaration
19276 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19277
19278 # Transform the output of nm in a C name address pair
19279 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19280
19281 # This is the shared library runtime path variable.
19282 runpath_var=$runpath_var
19283
19284 # This is the shared library path variable.
19285 shlibpath_var=$shlibpath_var
19286
19287 # Is shlibpath searched before the hard-coded library search path?
19288 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19289
19290 # How to hardcode a shared library path into an executable.
19291 hardcode_action=$hardcode_action_GCJ
19292
19293 # Whether we should hardcode library paths into libraries.
19294 hardcode_into_libs=$hardcode_into_libs
19295
19296 # Flag to hardcode \$libdir into a binary during linking.
19297 # This must work even if \$libdir does not exist.
19298 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19299
19300 # If ld is used when linking, flag to hardcode \$libdir into
19301 # a binary during linking. This must work even if \$libdir does
19302 # not exist.
19303 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19304
19305 # Whether we need a single -rpath flag with a separated argument.
19306 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19307
19308 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19309 # resulting binary.
19310 hardcode_direct=$hardcode_direct_GCJ
19311
19312 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19313 # resulting binary.
19314 hardcode_minus_L=$hardcode_minus_L_GCJ
19315
19316 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19317 # the resulting binary.
19318 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19319
19320 # Set to yes if building a shared library automatically hardcodes DIR into the library
19321 # and all subsequent libraries and executables linked against it.
19322 hardcode_automatic=$hardcode_automatic_GCJ
19323
19324 # Variables whose values should be saved in libtool wrapper scripts and
19325 # restored at relink time.
19326 variables_saved_for_relink="$variables_saved_for_relink"
19327
19328 # Whether libtool must link a program against all its dependency libraries.
19329 link_all_deplibs=$link_all_deplibs_GCJ
19330
19331 # Compile-time system search path for libraries
19332 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19333
19334 # Run-time system search path for libraries
19335 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19336
19337 # Fix the shell variable \$srcfile for the compiler.
19338 fix_srcfile_path=$lt_fix_srcfile_path
19339
19340 # Set to yes if exported symbols are required.
19341 always_export_symbols=$always_export_symbols_GCJ
19342
19343 # The commands to list exported symbols.
19344 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19345
19346 # The commands to extract the exported symbol list from a shared archive.
19347 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19348
19349 # Symbols that should not be listed in the preloaded symbols.
19350 exclude_expsyms=$lt_exclude_expsyms_GCJ
19351
19352 # Symbols that must always be exported.
19353 include_expsyms=$lt_include_expsyms_GCJ
19354
19355 # ### END LIBTOOL TAG CONFIG: $tagname
19356
19357 __EOF__
19358
19359
19360 else
19361 # If there is no Makefile yet, we rely on a make rule to execute
19362 # `config.status --recheck' to rerun these tests and create the
19363 # libtool script then.
19364 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19365 if test -f "$ltmain_in"; then
19366 test -f Makefile && make "$ltmain"
19367 fi
19368 fi
19369
19370
19371 ac_ext=c
19372 ac_cpp='$CPP $CPPFLAGS'
19373 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19374 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19375 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19376
19377 CC="$lt_save_CC"
19378
19379 else
19380 tagname=""
19381 fi
19382 ;;
19383
19384 RC)
19385
19386
19387 # Source file extension for RC test sources.
19388 ac_ext=rc
19389
19390 # Object file extension for compiled RC test sources.
19391 objext=o
19392 objext_RC=$objext
19393
19394 # Code to be used in simple compile tests
19395 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19396
19397 # Code to be used in simple link tests
19398 lt_simple_link_test_code="$lt_simple_compile_test_code"
19399
19400 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19401
19402 # If no C compiler was specified, use CC.
19403 LTCC=${LTCC-"$CC"}
19404
19405 # If no C compiler flags were specified, use CFLAGS.
19406 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19407
19408 # Allow CC to be a program name with arguments.
19409 compiler=$CC
19410
19411
19412 # save warnings/boilerplate of simple test code
19413 ac_outfile=conftest.$ac_objext
19414 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19415 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19416 _lt_compiler_boilerplate=`cat conftest.err`
19417 $rm conftest*
19418
19419 ac_outfile=conftest.$ac_objext
19420 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19421 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19422 _lt_linker_boilerplate=`cat conftest.err`
19423 $rm -r conftest*
19424
19425
19426 # Allow CC to be a program name with arguments.
19427 lt_save_CC="$CC"
19428 CC=${RC-"windres"}
19429 compiler=$CC
19430 compiler_RC=$CC
19431 for cc_temp in $compiler""; do
19432 case $cc_temp in
19433 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19434 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19435 \-*) ;;
19436 *) break;;
19437 esac
19438 done
19439 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19440
19441 lt_cv_prog_compiler_c_o_RC=yes
19442
19443 # The else clause should only fire when bootstrapping the
19444 # libtool distribution, otherwise you forgot to ship ltmain.sh
19445 # with your package, and you will get complaints that there are
19446 # no rules to generate ltmain.sh.
19447 if test -f "$ltmain"; then
19448 # See if we are running on zsh, and set the options which allow our commands through
19449 # without removal of \ escapes.
19450 if test -n "${ZSH_VERSION+set}" ; then
19451 setopt NO_GLOB_SUBST
19452 fi
19453 # Now quote all the things that may contain metacharacters while being
19454 # careful not to overquote the AC_SUBSTed values. We take copies of the
19455 # variables and quote the copies for generation of the libtool script.
19456 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19457 SED SHELL STRIP \
19458 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19459 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19460 deplibs_check_method reload_flag reload_cmds need_locks \
19461 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19462 lt_cv_sys_global_symbol_to_c_name_address \
19463 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19464 old_postinstall_cmds old_postuninstall_cmds \
19465 compiler_RC \
19466 CC_RC \
19467 LD_RC \
19468 lt_prog_compiler_wl_RC \
19469 lt_prog_compiler_pic_RC \
19470 lt_prog_compiler_static_RC \
19471 lt_prog_compiler_no_builtin_flag_RC \
19472 export_dynamic_flag_spec_RC \
19473 thread_safe_flag_spec_RC \
19474 whole_archive_flag_spec_RC \
19475 enable_shared_with_static_runtimes_RC \
19476 old_archive_cmds_RC \
19477 old_archive_from_new_cmds_RC \
19478 predep_objects_RC \
19479 postdep_objects_RC \
19480 predeps_RC \
19481 postdeps_RC \
19482 compiler_lib_search_path_RC \
19483 compiler_lib_search_dirs_RC \
19484 archive_cmds_RC \
19485 archive_expsym_cmds_RC \
19486 postinstall_cmds_RC \
19487 postuninstall_cmds_RC \
19488 old_archive_from_expsyms_cmds_RC \
19489 allow_undefined_flag_RC \
19490 no_undefined_flag_RC \
19491 export_symbols_cmds_RC \
19492 hardcode_libdir_flag_spec_RC \
19493 hardcode_libdir_flag_spec_ld_RC \
19494 hardcode_libdir_separator_RC \
19495 hardcode_automatic_RC \
19496 module_cmds_RC \
19497 module_expsym_cmds_RC \
19498 lt_cv_prog_compiler_c_o_RC \
19499 fix_srcfile_path_RC \
19500 exclude_expsyms_RC \
19501 include_expsyms_RC; do
19502
19503 case $var in
19504 old_archive_cmds_RC | \
19505 old_archive_from_new_cmds_RC | \
19506 archive_cmds_RC | \
19507 archive_expsym_cmds_RC | \
19508 module_cmds_RC | \
19509 module_expsym_cmds_RC | \
19510 old_archive_from_expsyms_cmds_RC | \
19511 export_symbols_cmds_RC | \
19512 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19513 postinstall_cmds | postuninstall_cmds | \
19514 old_postinstall_cmds | old_postuninstall_cmds | \
19515 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19516 # Double-quote double-evaled strings.
19517 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19518 ;;
19519 *)
19520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19521 ;;
19522 esac
19523 done
19524
19525 case $lt_echo in
19526 *'\$0 --fallback-echo"')
19527 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19528 ;;
19529 esac
19530
19531 cfgfile="$ofile"
19532
19533 cat <<__EOF__ >> "$cfgfile"
19534 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19535
19536 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19537
19538 # Shell to use when invoking shell scripts.
19539 SHELL=$lt_SHELL
19540
19541 # Whether or not to build shared libraries.
19542 build_libtool_libs=$enable_shared
19543
19544 # Whether or not to build static libraries.
19545 build_old_libs=$enable_static
19546
19547 # Whether or not to add -lc for building shared libraries.
19548 build_libtool_need_lc=$archive_cmds_need_lc_RC
19549
19550 # Whether or not to disallow shared libs when runtime libs are static
19551 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19552
19553 # Whether or not to optimize for fast installation.
19554 fast_install=$enable_fast_install
19555
19556 # The host system.
19557 host_alias=$host_alias
19558 host=$host
19559 host_os=$host_os
19560
19561 # The build system.
19562 build_alias=$build_alias
19563 build=$build
19564 build_os=$build_os
19565
19566 # An echo program that does not interpret backslashes.
19567 echo=$lt_echo
19568
19569 # The archiver.
19570 AR=$lt_AR
19571 AR_FLAGS=$lt_AR_FLAGS
19572
19573 # A C compiler.
19574 LTCC=$lt_LTCC
19575
19576 # LTCC compiler flags.
19577 LTCFLAGS=$lt_LTCFLAGS
19578
19579 # A language-specific compiler.
19580 CC=$lt_compiler_RC
19581
19582 # Is the compiler the GNU C compiler?
19583 with_gcc=$GCC_RC
19584
19585 # An ERE matcher.
19586 EGREP=$lt_EGREP
19587
19588 # The linker used to build libraries.
19589 LD=$lt_LD_RC
19590
19591 # Whether we need hard or soft links.
19592 LN_S=$lt_LN_S
19593
19594 # A BSD-compatible nm program.
19595 NM=$lt_NM
19596
19597 # A symbol stripping program
19598 STRIP=$lt_STRIP
19599
19600 # Used to examine libraries when file_magic_cmd begins "file"
19601 MAGIC_CMD=$MAGIC_CMD
19602
19603 # Used on cygwin: DLL creation program.
19604 DLLTOOL="$DLLTOOL"
19605
19606 # Used on cygwin: object dumper.
19607 OBJDUMP="$OBJDUMP"
19608
19609 # Used on cygwin: assembler.
19610 AS="$AS"
19611
19612 # The name of the directory that contains temporary libtool files.
19613 objdir=$objdir
19614
19615 # How to create reloadable object files.
19616 reload_flag=$lt_reload_flag
19617 reload_cmds=$lt_reload_cmds
19618
19619 # How to pass a linker flag through the compiler.
19620 wl=$lt_lt_prog_compiler_wl_RC
19621
19622 # Object file suffix (normally "o").
19623 objext="$ac_objext"
19624
19625 # Old archive suffix (normally "a").
19626 libext="$libext"
19627
19628 # Shared library suffix (normally ".so").
19629 shrext_cmds='$shrext_cmds'
19630
19631 # Executable file suffix (normally "").
19632 exeext="$exeext"
19633
19634 # Additional compiler flags for building library objects.
19635 pic_flag=$lt_lt_prog_compiler_pic_RC
19636 pic_mode=$pic_mode
19637
19638 # What is the maximum length of a command?
19639 max_cmd_len=$lt_cv_sys_max_cmd_len
19640
19641 # Does compiler simultaneously support -c and -o options?
19642 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19643
19644 # Must we lock files when doing compilation?
19645 need_locks=$lt_need_locks
19646
19647 # Do we need the lib prefix for modules?
19648 need_lib_prefix=$need_lib_prefix
19649
19650 # Do we need a version for libraries?
19651 need_version=$need_version
19652
19653 # Whether dlopen is supported.
19654 dlopen_support=$enable_dlopen
19655
19656 # Whether dlopen of programs is supported.
19657 dlopen_self=$enable_dlopen_self
19658
19659 # Whether dlopen of statically linked programs is supported.
19660 dlopen_self_static=$enable_dlopen_self_static
19661
19662 # Compiler flag to prevent dynamic linking.
19663 link_static_flag=$lt_lt_prog_compiler_static_RC
19664
19665 # Compiler flag to turn off builtin functions.
19666 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19667
19668 # Compiler flag to allow reflexive dlopens.
19669 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19670
19671 # Compiler flag to generate shared objects directly from archives.
19672 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19673
19674 # Compiler flag to generate thread-safe objects.
19675 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19676
19677 # Library versioning type.
19678 version_type=$version_type
19679
19680 # Format of library name prefix.
19681 libname_spec=$lt_libname_spec
19682
19683 # List of archive names. First name is the real one, the rest are links.
19684 # The last name is the one that the linker finds with -lNAME.
19685 library_names_spec=$lt_library_names_spec
19686
19687 # The coded name of the library, if different from the real name.
19688 soname_spec=$lt_soname_spec
19689
19690 # Commands used to build and install an old-style archive.
19691 RANLIB=$lt_RANLIB
19692 old_archive_cmds=$lt_old_archive_cmds_RC
19693 old_postinstall_cmds=$lt_old_postinstall_cmds
19694 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19695
19696 # Create an old-style archive from a shared archive.
19697 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19698
19699 # Create a temporary old-style archive to link instead of a shared archive.
19700 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19701
19702 # Commands used to build and install a shared archive.
19703 archive_cmds=$lt_archive_cmds_RC
19704 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19705 postinstall_cmds=$lt_postinstall_cmds
19706 postuninstall_cmds=$lt_postuninstall_cmds
19707
19708 # Commands used to build a loadable module (assumed same as above if empty)
19709 module_cmds=$lt_module_cmds_RC
19710 module_expsym_cmds=$lt_module_expsym_cmds_RC
19711
19712 # Commands to strip libraries.
19713 old_striplib=$lt_old_striplib
19714 striplib=$lt_striplib
19715
19716 # Dependencies to place before the objects being linked to create a
19717 # shared library.
19718 predep_objects=$lt_predep_objects_RC
19719
19720 # Dependencies to place after the objects being linked to create a
19721 # shared library.
19722 postdep_objects=$lt_postdep_objects_RC
19723
19724 # Dependencies to place before the objects being linked to create a
19725 # shared library.
19726 predeps=$lt_predeps_RC
19727
19728 # Dependencies to place after the objects being linked to create a
19729 # shared library.
19730 postdeps=$lt_postdeps_RC
19731
19732 # The directories searched by this compiler when creating a shared
19733 # library
19734 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19735
19736 # The library search path used internally by the compiler when linking
19737 # a shared library.
19738 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19739
19740 # Method to check whether dependent libraries are shared objects.
19741 deplibs_check_method=$lt_deplibs_check_method
19742
19743 # Command to use when deplibs_check_method == file_magic.
19744 file_magic_cmd=$lt_file_magic_cmd
19745
19746 # Flag that allows shared libraries with undefined symbols to be built.
19747 allow_undefined_flag=$lt_allow_undefined_flag_RC
19748
19749 # Flag that forces no undefined symbols.
19750 no_undefined_flag=$lt_no_undefined_flag_RC
19751
19752 # Commands used to finish a libtool library installation in a directory.
19753 finish_cmds=$lt_finish_cmds
19754
19755 # Same as above, but a single script fragment to be evaled but not shown.
19756 finish_eval=$lt_finish_eval
19757
19758 # Take the output of nm and produce a listing of raw symbols and C names.
19759 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19760
19761 # Transform the output of nm in a proper C declaration
19762 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19763
19764 # Transform the output of nm in a C name address pair
19765 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19766
19767 # This is the shared library runtime path variable.
19768 runpath_var=$runpath_var
19769
19770 # This is the shared library path variable.
19771 shlibpath_var=$shlibpath_var
19772
19773 # Is shlibpath searched before the hard-coded library search path?
19774 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19775
19776 # How to hardcode a shared library path into an executable.
19777 hardcode_action=$hardcode_action_RC
19778
19779 # Whether we should hardcode library paths into libraries.
19780 hardcode_into_libs=$hardcode_into_libs
19781
19782 # Flag to hardcode \$libdir into a binary during linking.
19783 # This must work even if \$libdir does not exist.
19784 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19785
19786 # If ld is used when linking, flag to hardcode \$libdir into
19787 # a binary during linking. This must work even if \$libdir does
19788 # not exist.
19789 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19790
19791 # Whether we need a single -rpath flag with a separated argument.
19792 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19793
19794 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19795 # resulting binary.
19796 hardcode_direct=$hardcode_direct_RC
19797
19798 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19799 # resulting binary.
19800 hardcode_minus_L=$hardcode_minus_L_RC
19801
19802 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19803 # the resulting binary.
19804 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19805
19806 # Set to yes if building a shared library automatically hardcodes DIR into the library
19807 # and all subsequent libraries and executables linked against it.
19808 hardcode_automatic=$hardcode_automatic_RC
19809
19810 # Variables whose values should be saved in libtool wrapper scripts and
19811 # restored at relink time.
19812 variables_saved_for_relink="$variables_saved_for_relink"
19813
19814 # Whether libtool must link a program against all its dependency libraries.
19815 link_all_deplibs=$link_all_deplibs_RC
19816
19817 # Compile-time system search path for libraries
19818 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19819
19820 # Run-time system search path for libraries
19821 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19822
19823 # Fix the shell variable \$srcfile for the compiler.
19824 fix_srcfile_path=$lt_fix_srcfile_path
19825
19826 # Set to yes if exported symbols are required.
19827 always_export_symbols=$always_export_symbols_RC
19828
19829 # The commands to list exported symbols.
19830 export_symbols_cmds=$lt_export_symbols_cmds_RC
19831
19832 # The commands to extract the exported symbol list from a shared archive.
19833 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19834
19835 # Symbols that should not be listed in the preloaded symbols.
19836 exclude_expsyms=$lt_exclude_expsyms_RC
19837
19838 # Symbols that must always be exported.
19839 include_expsyms=$lt_include_expsyms_RC
19840
19841 # ### END LIBTOOL TAG CONFIG: $tagname
19842
19843 __EOF__
19844
19845
19846 else
19847 # If there is no Makefile yet, we rely on a make rule to execute
19848 # `config.status --recheck' to rerun these tests and create the
19849 # libtool script then.
19850 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19851 if test -f "$ltmain_in"; then
19852 test -f Makefile && make "$ltmain"
19853 fi
19854 fi
19855
19856
19857 ac_ext=c
19858 ac_cpp='$CPP $CPPFLAGS'
19859 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19860 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19861 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19862
19863 CC="$lt_save_CC"
19864
19865 ;;
19866
19867 *)
19868 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19869 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19870 { (exit 1); exit 1; }; }
19871 ;;
19872 esac
19873
19874 # Append the new tag name to the list of available tags.
19875 if test -n "$tagname" ; then
19876 available_tags="$available_tags $tagname"
19877 fi
19878 fi
19879 done
19880 IFS="$lt_save_ifs"
19881
19882 # Now substitute the updated list of available tags.
19883 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19884 mv "${ofile}T" "$ofile"
19885 chmod +x "$ofile"
19886 else
19887 rm -f "${ofile}T"
19888 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19889 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19890 { (exit 1); exit 1; }; }
19891 fi
19892 fi
19893
19894
19895
19896 # This can be used to rebuild libtool when needed
19897 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19898
19899 # Always use our own libtool.
19900 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19901
19902 # Prevent multiple expansion
19903
19904
19905
19906
19907
19908
19909
19910
19911
19912
19913
19914
19915
19916
19917
19918
19919
19920
19921
19922
19923 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
19924 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
19925 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
19926 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
19927 echo $ECHO_N "(cached) $ECHO_C" >&6
19928 else
19929 cat >conftest.make <<\_ACEOF
19930 SHELL = /bin/sh
19931 all:
19932 @echo '@@@%%%=$(MAKE)=@@@%%%'
19933 _ACEOF
19934 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19935 case `${MAKE-make} -f conftest.make 2>/dev/null` in
19936 *@@@%%%=?*=@@@%%%*)
19937 eval ac_cv_prog_make_${ac_make}_set=yes;;
19938 *)
19939 eval ac_cv_prog_make_${ac_make}_set=no;;
19940 esac
19941 rm -f conftest.make
19942 fi
19943 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
19944 { echo "$as_me:$LINENO: result: yes" >&5
19945 echo "${ECHO_T}yes" >&6; }
19946 SET_MAKE=
19947 else
19948 { echo "$as_me:$LINENO: result: no" >&5
19949 echo "${ECHO_T}no" >&6; }
19950 SET_MAKE="MAKE=${MAKE-make}"
19951 fi
19952
19953
19954
19955 # Check whether --with-gnu-ld was given.
19956 if test "${with_gnu_ld+set}" = set; then
19957 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
19958 else
19959 with_gnu_ld=no
19960 fi
19961
19962 # Prepare PATH_SEPARATOR.
19963 # The user is always right.
19964 if test "${PATH_SEPARATOR+set}" != set; then
19965 echo "#! /bin/sh" >conf$$.sh
19966 echo "exit 0" >>conf$$.sh
19967 chmod +x conf$$.sh
19968 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
19969 PATH_SEPARATOR=';'
19970 else
19971 PATH_SEPARATOR=:
19972 fi
19973 rm -f conf$$.sh
19974 fi
19975 ac_prog=ld
19976 if test "$GCC" = yes; then
19977 # Check if gcc -print-prog-name=ld gives a path.
19978 { echo "$as_me:$LINENO: checking for ld used by GCC" >&5
19979 echo $ECHO_N "checking for ld used by GCC... $ECHO_C" >&6; }
19980 case $host in
19981 *-*-mingw*)
19982 # gcc leaves a trailing carriage return which upsets mingw
19983 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
19984 *)
19985 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
19986 esac
19987 case $ac_prog in
19988 # Accept absolute paths.
19989 [\\/]* | [A-Za-z]:[\\/]*)
19990 re_direlt='/[^/][^/]*/\.\./'
19991 # Canonicalize the path of ld
19992 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
19993 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
19994 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
19995 done
19996 test -z "$LD" && LD="$ac_prog"
19997 ;;
19998 "")
19999 # If it fails, then pretend we aren't using GCC.
20000 ac_prog=ld
20001 ;;
20002 *)
20003 # If it is relative, then search for the first ld in PATH.
20004 with_gnu_ld=unknown
20005 ;;
20006 esac
20007 elif test "$with_gnu_ld" = yes; then
20008 { echo "$as_me:$LINENO: checking for GNU ld" >&5
20009 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
20010 else
20011 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
20012 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
20013 fi
20014 if test "${acl_cv_path_LD+set}" = set; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 else
20017 if test -z "$LD"; then
20018 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
20019 for ac_dir in $PATH; do
20020 test -z "$ac_dir" && ac_dir=.
20021 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
20022 acl_cv_path_LD="$ac_dir/$ac_prog"
20023 # Check to see if the program is GNU ld. I'd rather use --version,
20024 # but apparently some GNU ld's only accept -v.
20025 # Break only if it was the GNU/non-GNU ld that we prefer.
20026 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
20027 *GNU* | *'with BFD'*)
20028 test "$with_gnu_ld" != no && break ;;
20029 *)
20030 test "$with_gnu_ld" != yes && break ;;
20031 esac
20032 fi
20033 done
20034 IFS="$ac_save_ifs"
20035 else
20036 acl_cv_path_LD="$LD" # Let the user override the test with a path.
20037 fi
20038 fi
20039
20040 LD="$acl_cv_path_LD"
20041 if test -n "$LD"; then
20042 { echo "$as_me:$LINENO: result: $LD" >&5
20043 echo "${ECHO_T}$LD" >&6; }
20044 else
20045 { echo "$as_me:$LINENO: result: no" >&5
20046 echo "${ECHO_T}no" >&6; }
20047 fi
20048 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
20049 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
20050 { (exit 1); exit 1; }; }
20051 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
20052 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
20053 if test "${acl_cv_prog_gnu_ld+set}" = set; then
20054 echo $ECHO_N "(cached) $ECHO_C" >&6
20055 else
20056 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
20057 case `$LD -v 2>&1 </dev/null` in
20058 *GNU* | *'with BFD'*)
20059 acl_cv_prog_gnu_ld=yes ;;
20060 *)
20061 acl_cv_prog_gnu_ld=no ;;
20062 esac
20063 fi
20064 { echo "$as_me:$LINENO: result: $acl_cv_prog_gnu_ld" >&5
20065 echo "${ECHO_T}$acl_cv_prog_gnu_ld" >&6; }
20066 with_gnu_ld=$acl_cv_prog_gnu_ld
20067
20068
20069
20070
20071 { echo "$as_me:$LINENO: checking for shared library run path origin" >&5
20072 echo $ECHO_N "checking for shared library run path origin... $ECHO_C" >&6; }
20073 if test "${acl_cv_rpath+set}" = set; then
20074 echo $ECHO_N "(cached) $ECHO_C" >&6
20075 else
20076
20077 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
20078 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
20079 . ./conftest.sh
20080 rm -f ./conftest.sh
20081 acl_cv_rpath=done
20082
20083 fi
20084 { echo "$as_me:$LINENO: result: $acl_cv_rpath" >&5
20085 echo "${ECHO_T}$acl_cv_rpath" >&6; }
20086 wl="$acl_cv_wl"
20087 acl_libext="$acl_cv_libext"
20088 acl_shlibext="$acl_cv_shlibext"
20089 acl_libname_spec="$acl_cv_libname_spec"
20090 acl_library_names_spec="$acl_cv_library_names_spec"
20091 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
20092 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
20093 acl_hardcode_direct="$acl_cv_hardcode_direct"
20094 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
20095 # Check whether --enable-rpath was given.
20096 if test "${enable_rpath+set}" = set; then
20097 enableval=$enable_rpath; :
20098 else
20099 enable_rpath=yes
20100 fi
20101
20102
20103
20104 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20105 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
20106 if test "${ac_cv_c_const+set}" = set; then
20107 echo $ECHO_N "(cached) $ECHO_C" >&6
20108 else
20109 cat >conftest.$ac_ext <<_ACEOF
20110 /* confdefs.h. */
20111 _ACEOF
20112 cat confdefs.h >>conftest.$ac_ext
20113 cat >>conftest.$ac_ext <<_ACEOF
20114 /* end confdefs.h. */
20115
20116 int
20117 main ()
20118 {
20119 /* FIXME: Include the comments suggested by Paul. */
20120 #ifndef __cplusplus
20121 /* Ultrix mips cc rejects this. */
20122 typedef int charset[2];
20123 const charset cs;
20124 /* SunOS 4.1.1 cc rejects this. */
20125 char const *const *pcpcc;
20126 char **ppc;
20127 /* NEC SVR4.0.2 mips cc rejects this. */
20128 struct point {int x, y;};
20129 static struct point const zero = {0,0};
20130 /* AIX XL C 1.02.0.0 rejects this.
20131 It does not let you subtract one const X* pointer from another in
20132 an arm of an if-expression whose if-part is not a constant
20133 expression */
20134 const char *g = "string";
20135 pcpcc = &g + (g ? g-g : 0);
20136 /* HPUX 7.0 cc rejects these. */
20137 ++pcpcc;
20138 ppc = (char**) pcpcc;
20139 pcpcc = (char const *const *) ppc;
20140 { /* SCO 3.2v4 cc rejects this. */
20141 char *t;
20142 char const *s = 0 ? (char *) 0 : (char const *) 0;
20143
20144 *t++ = 0;
20145 if (s) return 0;
20146 }
20147 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20148 int x[] = {25, 17};
20149 const int *foo = &x[0];
20150 ++foo;
20151 }
20152 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20153 typedef const int *iptr;
20154 iptr p = 0;
20155 ++p;
20156 }
20157 { /* AIX XL C 1.02.0.0 rejects this saying
20158 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20159 struct s { int j; const int *ap[3]; };
20160 struct s *b; b->j = 5;
20161 }
20162 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20163 const int foo = 10;
20164 if (!foo) return 0;
20165 }
20166 return !cs[0] && !zero.x;
20167 #endif
20168
20169 ;
20170 return 0;
20171 }
20172 _ACEOF
20173 rm -f conftest.$ac_objext
20174 if { (ac_try="$ac_compile"
20175 case "(($ac_try" in
20176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20177 *) ac_try_echo=$ac_try;;
20178 esac
20179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20180 (eval "$ac_compile") 2>conftest.er1
20181 ac_status=$?
20182 grep -v '^ *+' conftest.er1 >conftest.err
20183 rm -f conftest.er1
20184 cat conftest.err >&5
20185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20186 (exit $ac_status); } && {
20187 test -z "$ac_c_werror_flag" ||
20188 test ! -s conftest.err
20189 } && test -s conftest.$ac_objext; then
20190 ac_cv_c_const=yes
20191 else
20192 echo "$as_me: failed program was:" >&5
20193 sed 's/^/| /' conftest.$ac_ext >&5
20194
20195 ac_cv_c_const=no
20196 fi
20197
20198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20199 fi
20200 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20201 echo "${ECHO_T}$ac_cv_c_const" >&6; }
20202 if test $ac_cv_c_const = no; then
20203
20204 cat >>confdefs.h <<\_ACEOF
20205 #define const
20206 _ACEOF
20207
20208 fi
20209
20210
20211 ac_config_files="$ac_config_files libdynamite.pc Makefile lib/Makefile man/Makefile src/Makefile"
20212
20213 cat >confcache <<\_ACEOF
20214 # This file is a shell script that caches the results of configure
20215 # tests run on this system so they can be shared between configure
20216 # scripts and configure runs, see configure's option --config-cache.
20217 # It is not useful on other systems. If it contains results you don't
20218 # want to keep, you may remove or edit it.
20219 #
20220 # config.status only pays attention to the cache file if you give it
20221 # the --recheck option to rerun configure.
20222 #
20223 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20224 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20225 # following values.
20226
20227 _ACEOF
20228
20229 # The following way of writing the cache mishandles newlines in values,
20230 # but we know of no workaround that is simple, portable, and efficient.
20231 # So, we kill variables containing newlines.
20232 # Ultrix sh set writes to stderr and can't be redirected directly,
20233 # and sets the high bit in the cache file unless we assign to the vars.
20234 (
20235 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20236 eval ac_val=\$$ac_var
20237 case $ac_val in #(
20238 *${as_nl}*)
20239 case $ac_var in #(
20240 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20241 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20242 esac
20243 case $ac_var in #(
20244 _ | IFS | as_nl) ;; #(
20245 *) $as_unset $ac_var ;;
20246 esac ;;
20247 esac
20248 done
20249
20250 (set) 2>&1 |
20251 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20252 *${as_nl}ac_space=\ *)
20253 # `set' does not quote correctly, so add quotes (double-quote
20254 # substitution turns \\\\ into \\, and sed turns \\ into \).
20255 sed -n \
20256 "s/'/'\\\\''/g;
20257 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20258 ;; #(
20259 *)
20260 # `set' quotes correctly as required by POSIX, so do not add quotes.
20261 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20262 ;;
20263 esac |
20264 sort
20265 ) |
20266 sed '
20267 /^ac_cv_env_/b end
20268 t clear
20269 :clear
20270 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20271 t end
20272 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20273 :end' >>confcache
20274 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20275 if test -w "$cache_file"; then
20276 test "x$cache_file" != "x/dev/null" &&
20277 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20278 echo "$as_me: updating cache $cache_file" >&6;}
20279 cat confcache >$cache_file
20280 else
20281 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20282 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20283 fi
20284 fi
20285 rm -f confcache
20286
20287 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20288 # Let make expand exec_prefix.
20289 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20290
20291 DEFS=-DHAVE_CONFIG_H
20292
20293 ac_libobjs=
20294 ac_ltlibobjs=
20295 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20296 # 1. Remove the extension, and $U if already installed.
20297 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20298 ac_i=`echo "$ac_i" | sed "$ac_script"`
20299 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20300 # will be set to the directory where LIBOBJS objects are built.
20301 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20302 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20303 done
20304 LIBOBJS=$ac_libobjs
20305
20306 LTLIBOBJS=$ac_ltlibobjs
20307
20308
20309 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20310 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20311 Usually this means the macro was only invoked conditionally." >&5
20312 echo "$as_me: error: conditional \"AMDEP\" was never defined.
20313 Usually this means the macro was only invoked conditionally." >&2;}
20314 { (exit 1); exit 1; }; }
20315 fi
20316 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20317 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20318 Usually this means the macro was only invoked conditionally." >&5
20319 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20320 Usually this means the macro was only invoked conditionally." >&2;}
20321 { (exit 1); exit 1; }; }
20322 fi
20323 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20324 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20325 Usually this means the macro was only invoked conditionally." >&5
20326 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20327 Usually this means the macro was only invoked conditionally." >&2;}
20328 { (exit 1); exit 1; }; }
20329 fi
20330
20331 : ${CONFIG_STATUS=./config.status}
20332 ac_clean_files_save=$ac_clean_files
20333 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20334 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20335 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20336 cat >$CONFIG_STATUS <<_ACEOF
20337 #! $SHELL
20338 # Generated by $as_me.
20339 # Run this file to recreate the current configuration.
20340 # Compiler output produced by configure, useful for debugging
20341 # configure, is in config.log if it exists.
20342
20343 debug=false
20344 ac_cs_recheck=false
20345 ac_cs_silent=false
20346 SHELL=\${CONFIG_SHELL-$SHELL}
20347 _ACEOF
20348
20349 cat >>$CONFIG_STATUS <<\_ACEOF
20350 ## --------------------- ##
20351 ## M4sh Initialization. ##
20352 ## --------------------- ##
20353
20354 # Be more Bourne compatible
20355 DUALCASE=1; export DUALCASE # for MKS sh
20356 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20357 emulate sh
20358 NULLCMD=:
20359 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20360 # is contrary to our usage. Disable this feature.
20361 alias -g '${1+"$@"}'='"$@"'
20362 setopt NO_GLOB_SUBST
20363 else
20364 case `(set -o) 2>/dev/null` in
20365 *posix*) set -o posix ;;
20366 esac
20367
20368 fi
20369
20370
20371
20372
20373 # PATH needs CR
20374 # Avoid depending upon Character Ranges.
20375 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20376 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20377 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20378 as_cr_digits='0123456789'
20379 as_cr_alnum=$as_cr_Letters$as_cr_digits
20380
20381 # The user is always right.
20382 if test "${PATH_SEPARATOR+set}" != set; then
20383 echo "#! /bin/sh" >conf$$.sh
20384 echo "exit 0" >>conf$$.sh
20385 chmod +x conf$$.sh
20386 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
20387 PATH_SEPARATOR=';'
20388 else
20389 PATH_SEPARATOR=:
20390 fi
20391 rm -f conf$$.sh
20392 fi
20393
20394 # Support unset when possible.
20395 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20396 as_unset=unset
20397 else
20398 as_unset=false
20399 fi
20400
20401
20402 # IFS
20403 # We need space, tab and new line, in precisely that order. Quoting is
20404 # there to prevent editors from complaining about space-tab.
20405 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20406 # splitting by setting IFS to empty value.)
20407 as_nl='
20408 '
20409 IFS=" "" $as_nl"
20410
20411 # Find who we are. Look in the path if we contain no directory separator.
20412 case $0 in
20413 *[\\/]* ) as_myself=$0 ;;
20414 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20415 for as_dir in $PATH
20416 do
20417 IFS=$as_save_IFS
20418 test -z "$as_dir" && as_dir=.
20419 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20420 done
20421 IFS=$as_save_IFS
20422
20423 ;;
20424 esac
20425 # We did not find ourselves, most probably we were run as `sh COMMAND'
20426 # in which case we are not to be found in the path.
20427 if test "x$as_myself" = x; then
20428 as_myself=$0
20429 fi
20430 if test ! -f "$as_myself"; then
20431 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20432 { (exit 1); exit 1; }
20433 fi
20434
20435 # Work around bugs in pre-3.0 UWIN ksh.
20436 for as_var in ENV MAIL MAILPATH
20437 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20438 done
20439 PS1='$ '
20440 PS2='> '
20441 PS4='+ '
20442
20443 # NLS nuisances.
20444 for as_var in \
20445 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
20446 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
20447 LC_TELEPHONE LC_TIME
20448 do
20449 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
20450 eval $as_var=C; export $as_var
20451 else
20452 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20453 fi
20454 done
20455
20456 # Required to use basename.
20457 if expr a : '\(a\)' >/dev/null 2>&1 &&
20458 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20459 as_expr=expr
20460 else
20461 as_expr=false
20462 fi
20463
20464 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20465 as_basename=basename
20466 else
20467 as_basename=false
20468 fi
20469
20470
20471 # Name of the executable.
20472 as_me=`$as_basename -- "$0" ||
20473 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20474 X"$0" : 'X\(//\)$' \| \
20475 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20476 echo X/"$0" |
20477 sed '/^.*\/\([^/][^/]*\)\/*$/{
20478 s//\1/
20479 q
20480 }
20481 /^X\/\(\/\/\)$/{
20482 s//\1/
20483 q
20484 }
20485 /^X\/\(\/\).*/{
20486 s//\1/
20487 q
20488 }
20489 s/.*/./; q'`
20490
20491 # CDPATH.
20492 $as_unset CDPATH
20493
20494
20495
20496 as_lineno_1=$LINENO
20497 as_lineno_2=$LINENO
20498 test "x$as_lineno_1" != "x$as_lineno_2" &&
20499 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
20500
20501 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
20502 # uniformly replaced by the line number. The first 'sed' inserts a
20503 # line-number line after each line using $LINENO; the second 'sed'
20504 # does the real work. The second script uses 'N' to pair each
20505 # line-number line with the line containing $LINENO, and appends
20506 # trailing '-' during substitution so that $LINENO is not a special
20507 # case at line end.
20508 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
20509 # scripts with optimization help from Paolo Bonzini. Blame Lee
20510 # E. McMahon (1931-1989) for sed's syntax. :-)
20511 sed -n '
20512 p
20513 /[$]LINENO/=
20514 ' <$as_myself |
20515 sed '
20516 s/[$]LINENO.*/&-/
20517 t lineno
20518 b
20519 :lineno
20520 N
20521 :loop
20522 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
20523 t loop
20524 s/-\n.*//
20525 ' >$as_me.lineno &&
20526 chmod +x "$as_me.lineno" ||
20527 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
20528 { (exit 1); exit 1; }; }
20529
20530 # Don't try to exec as it changes $[0], causing all sort of problems
20531 # (the dirname of $[0] is not the place where we might find the
20532 # original and so on. Autoconf is especially sensitive to this).
20533 . "./$as_me.lineno"
20534 # Exit status is that of the last command.
20535 exit
20536 }
20537
20538
20539 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20540 as_dirname=dirname
20541 else
20542 as_dirname=false
20543 fi
20544
20545 ECHO_C= ECHO_N= ECHO_T=
20546 case `echo -n x` in
20547 -n*)
20548 case `echo 'x\c'` in
20549 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20550 *) ECHO_C='\c';;
20551 esac;;
20552 *)
20553 ECHO_N='-n';;
20554 esac
20555
20556 if expr a : '\(a\)' >/dev/null 2>&1 &&
20557 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20558 as_expr=expr
20559 else
20560 as_expr=false
20561 fi
20562
20563 rm -f conf$$ conf$$.exe conf$$.file
20564 if test -d conf$$.dir; then
20565 rm -f conf$$.dir/conf$$.file
20566 else
20567 rm -f conf$$.dir
20568 mkdir conf$$.dir
20569 fi
20570 echo >conf$$.file
20571 if ln -s conf$$.file conf$$ 2>/dev/null; then
20572 as_ln_s='ln -s'
20573 # ... but there are two gotchas:
20574 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20575 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20576 # In both cases, we have to default to `cp -p'.
20577 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20578 as_ln_s='cp -p'
20579 elif ln conf$$.file conf$$ 2>/dev/null; then
20580 as_ln_s=ln
20581 else
20582 as_ln_s='cp -p'
20583 fi
20584 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20585 rmdir conf$$.dir 2>/dev/null
20586
20587 if mkdir -p . 2>/dev/null; then
20588 as_mkdir_p=:
20589 else
20590 test -d ./-p && rmdir ./-p
20591 as_mkdir_p=false
20592 fi
20593
20594 if test -x / >/dev/null 2>&1; then
20595 as_test_x='test -x'
20596 else
20597 if ls -dL / >/dev/null 2>&1; then
20598 as_ls_L_option=L
20599 else
20600 as_ls_L_option=
20601 fi
20602 as_test_x='
20603 eval sh -c '\''
20604 if test -d "$1"; then
20605 test -d "$1/.";
20606 else
20607 case $1 in
20608 -*)set "./$1";;
20609 esac;
20610 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
20611 ???[sx]*):;;*)false;;esac;fi
20612 '\'' sh
20613 '
20614 fi
20615 as_executable_p=$as_test_x
20616
20617 # Sed expression to map a string onto a valid CPP name.
20618 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20619
20620 # Sed expression to map a string onto a valid variable name.
20621 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20622
20623
20624 exec 6>&1
20625
20626 # Save the log message, to keep $[0] and so on meaningful, and to
20627 # report actual input values of CONFIG_FILES etc. instead of their
20628 # values after options handling.
20629 ac_log="
20630 This file was extended by $as_me, which was
20631 generated by GNU Autoconf 2.61. Invocation command line was
20632
20633 CONFIG_FILES = $CONFIG_FILES
20634 CONFIG_HEADERS = $CONFIG_HEADERS
20635 CONFIG_LINKS = $CONFIG_LINKS
20636 CONFIG_COMMANDS = $CONFIG_COMMANDS
20637 $ $0 $@
20638
20639 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20640 "
20641
20642 _ACEOF
20643
20644 cat >>$CONFIG_STATUS <<_ACEOF
20645 # Files that config.status was made for.
20646 config_files="$ac_config_files"
20647 config_headers="$ac_config_headers"
20648 config_commands="$ac_config_commands"
20649
20650 _ACEOF
20651
20652 cat >>$CONFIG_STATUS <<\_ACEOF
20653 ac_cs_usage="\
20654 \`$as_me' instantiates files from templates according to the
20655 current configuration.
20656
20657 Usage: $0 [OPTIONS] [FILE]...
20658
20659 -h, --help print this help, then exit
20660 -V, --version print version number and configuration settings, then exit
20661 -q, --quiet do not print progress messages
20662 -d, --debug don't remove temporary files
20663 --recheck update $as_me by reconfiguring in the same conditions
20664 --file=FILE[:TEMPLATE]
20665 instantiate the configuration file FILE
20666 --header=FILE[:TEMPLATE]
20667 instantiate the configuration header FILE
20668
20669 Configuration files:
20670 $config_files
20671
20672 Configuration headers:
20673 $config_headers
20674
20675 Configuration commands:
20676 $config_commands
20677
20678 Report bugs to <[email protected]>."
20679
20680 _ACEOF
20681 cat >>$CONFIG_STATUS <<_ACEOF
20682 ac_cs_version="\\
20683 config.status
20684 configured by $0, generated by GNU Autoconf 2.61,
20685 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
20686
20687 Copyright (C) 2006 Free Software Foundation, Inc.
20688 This config.status script is free software; the Free Software Foundation
20689 gives unlimited permission to copy, distribute and modify it."
20690
20691 ac_pwd='$ac_pwd'
20692 srcdir='$srcdir'
20693 INSTALL='$INSTALL'
20694 MKDIR_P='$MKDIR_P'
20695 _ACEOF
20696
20697 cat >>$CONFIG_STATUS <<\_ACEOF
20698 # If no file are specified by the user, then we need to provide default
20699 # value. By we need to know if files were specified by the user.
20700 ac_need_defaults=:
20701 while test $# != 0
20702 do
20703 case $1 in
20704 --*=*)
20705 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20706 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20707 ac_shift=:
20708 ;;
20709 *)
20710 ac_option=$1
20711 ac_optarg=$2
20712 ac_shift=shift
20713 ;;
20714 esac
20715
20716 case $ac_option in
20717 # Handling of the options.
20718 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20719 ac_cs_recheck=: ;;
20720 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20721 echo "$ac_cs_version"; exit ;;
20722 --debug | --debu | --deb | --de | --d | -d )
20723 debug=: ;;
20724 --file | --fil | --fi | --f )
20725 $ac_shift
20726 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
20727 ac_need_defaults=false;;
20728 --header | --heade | --head | --hea )
20729 $ac_shift
20730 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
20731 ac_need_defaults=false;;
20732 --he | --h)
20733 # Conflict between --help and --header
20734 { echo "$as_me: error: ambiguous option: $1
20735 Try \`$0 --help' for more information." >&2
20736 { (exit 1); exit 1; }; };;
20737 --help | --hel | -h )
20738 echo "$ac_cs_usage"; exit ;;
20739 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20740 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20741 ac_cs_silent=: ;;
20742
20743 # This is an error.
20744 -*) { echo "$as_me: error: unrecognized option: $1
20745 Try \`$0 --help' for more information." >&2
20746 { (exit 1); exit 1; }; } ;;
20747
20748 *) ac_config_targets="$ac_config_targets $1"
20749 ac_need_defaults=false ;;
20750
20751 esac
20752 shift
20753 done
20754
20755 ac_configure_extra_args=
20756
20757 if $ac_cs_silent; then
20758 exec 6>/dev/null
20759 ac_configure_extra_args="$ac_configure_extra_args --silent"
20760 fi
20761
20762 _ACEOF
20763 cat >>$CONFIG_STATUS <<_ACEOF
20764 if \$ac_cs_recheck; then
20765 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
20766 CONFIG_SHELL=$SHELL
20767 export CONFIG_SHELL
20768 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20769 fi
20770
20771 _ACEOF
20772 cat >>$CONFIG_STATUS <<\_ACEOF
20773 exec 5>>config.log
20774 {
20775 echo
20776 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20777 ## Running $as_me. ##
20778 _ASBOX
20779 echo "$ac_log"
20780 } >&5
20781
20782 _ACEOF
20783 cat >>$CONFIG_STATUS <<_ACEOF
20784 #
20785 # INIT-COMMANDS
20786 #
20787 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20788
20789 _ACEOF
20790
20791 cat >>$CONFIG_STATUS <<\_ACEOF
20792
20793 # Handling of arguments.
20794 for ac_config_target in $ac_config_targets
20795 do
20796 case $ac_config_target in
20797 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
20798 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
20799 "libdynamite.pc") CONFIG_FILES="$CONFIG_FILES libdynamite.pc" ;;
20800 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
20801 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
20802 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
20803 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
20804
20805 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
20806 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
20807 { (exit 1); exit 1; }; };;
20808 esac
20809 done
20810
20811
20812 # If the user did not use the arguments to specify the items to instantiate,
20813 # then the envvar interface is used. Set only those that are not.
20814 # We use the long form for the default assignment because of an extremely
20815 # bizarre bug on SunOS 4.1.3.
20816 if $ac_need_defaults; then
20817 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
20818 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
20819 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
20820 fi
20821
20822 # Have a temporary directory for convenience. Make it in the build tree
20823 # simply because there is no reason against having it here, and in addition,
20824 # creating and moving files from /tmp can sometimes cause problems.
20825 # Hook for its removal unless debugging.
20826 # Note that there is a small window in which the directory will not be cleaned:
20827 # after its creation but before its name has been assigned to `$tmp'.
20828 $debug ||
20829 {
20830 tmp=
20831 trap 'exit_status=$?
20832 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
20833 ' 0
20834 trap '{ (exit 1); exit 1; }' 1 2 13 15
20835 }
20836 # Create a (secure) tmp directory for tmp files.
20837
20838 {
20839 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
20840 test -n "$tmp" && test -d "$tmp"
20841 } ||
20842 {
20843 tmp=./conf$$-$RANDOM
20844 (umask 077 && mkdir "$tmp")
20845 } ||
20846 {
20847 echo "$me: cannot create a temporary directory in ." >&2
20848 { (exit 1); exit 1; }
20849 }
20850
20851 #
20852 # Set up the sed scripts for CONFIG_FILES section.
20853 #
20854
20855 # No need to generate the scripts if there are no CONFIG_FILES.
20856 # This happens for instance when ./config.status config.h
20857 if test -n "$CONFIG_FILES"; then
20858
20859 _ACEOF
20860
20861
20862
20863 ac_delim='%!_!# '
20864 for ac_last_try in false false false false false :; do
20865 cat >conf$$subs.sed <<_ACEOF
20866 SHELL!$SHELL$ac_delim
20867 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
20868 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
20869 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
20870 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
20871 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
20872 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
20873 exec_prefix!$exec_prefix$ac_delim
20874 prefix!$prefix$ac_delim
20875 program_transform_name!$program_transform_name$ac_delim
20876 bindir!$bindir$ac_delim
20877 sbindir!$sbindir$ac_delim
20878 libexecdir!$libexecdir$ac_delim
20879 datarootdir!$datarootdir$ac_delim
20880 datadir!$datadir$ac_delim
20881 sysconfdir!$sysconfdir$ac_delim
20882 sharedstatedir!$sharedstatedir$ac_delim
20883 localstatedir!$localstatedir$ac_delim
20884 includedir!$includedir$ac_delim
20885 oldincludedir!$oldincludedir$ac_delim
20886 docdir!$docdir$ac_delim
20887 infodir!$infodir$ac_delim
20888 htmldir!$htmldir$ac_delim
20889 dvidir!$dvidir$ac_delim
20890 pdfdir!$pdfdir$ac_delim
20891 psdir!$psdir$ac_delim
20892 libdir!$libdir$ac_delim
20893 localedir!$localedir$ac_delim
20894 mandir!$mandir$ac_delim
20895 DEFS!$DEFS$ac_delim
20896 ECHO_C!$ECHO_C$ac_delim
20897 ECHO_N!$ECHO_N$ac_delim
20898 ECHO_T!$ECHO_T$ac_delim
20899 LIBS!$LIBS$ac_delim
20900 build_alias!$build_alias$ac_delim
20901 host_alias!$host_alias$ac_delim
20902 target_alias!$target_alias$ac_delim
20903 build!$build$ac_delim
20904 build_cpu!$build_cpu$ac_delim
20905 build_vendor!$build_vendor$ac_delim
20906 build_os!$build_os$ac_delim
20907 host!$host$ac_delim
20908 host_cpu!$host_cpu$ac_delim
20909 host_vendor!$host_vendor$ac_delim
20910 host_os!$host_os$ac_delim
20911 target!$target$ac_delim
20912 target_cpu!$target_cpu$ac_delim
20913 target_vendor!$target_vendor$ac_delim
20914 target_os!$target_os$ac_delim
20915 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
20916 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
20917 INSTALL_DATA!$INSTALL_DATA$ac_delim
20918 am__isrc!$am__isrc$ac_delim
20919 CYGPATH_W!$CYGPATH_W$ac_delim
20920 PACKAGE!$PACKAGE$ac_delim
20921 VERSION!$VERSION$ac_delim
20922 ACLOCAL!$ACLOCAL$ac_delim
20923 AUTOCONF!$AUTOCONF$ac_delim
20924 AUTOMAKE!$AUTOMAKE$ac_delim
20925 AUTOHEADER!$AUTOHEADER$ac_delim
20926 MAKEINFO!$MAKEINFO$ac_delim
20927 install_sh!$install_sh$ac_delim
20928 STRIP!$STRIP$ac_delim
20929 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
20930 mkdir_p!$mkdir_p$ac_delim
20931 AWK!$AWK$ac_delim
20932 SET_MAKE!$SET_MAKE$ac_delim
20933 am__leading_dot!$am__leading_dot$ac_delim
20934 AMTAR!$AMTAR$ac_delim
20935 am__tar!$am__tar$ac_delim
20936 am__untar!$am__untar$ac_delim
20937 CC!$CC$ac_delim
20938 CFLAGS!$CFLAGS$ac_delim
20939 LDFLAGS!$LDFLAGS$ac_delim
20940 CPPFLAGS!$CPPFLAGS$ac_delim
20941 ac_ct_CC!$ac_ct_CC$ac_delim
20942 EXEEXT!$EXEEXT$ac_delim
20943 OBJEXT!$OBJEXT$ac_delim
20944 DEPDIR!$DEPDIR$ac_delim
20945 am__include!$am__include$ac_delim
20946 am__quote!$am__quote$ac_delim
20947 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
20948 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
20949 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
20950 CCDEPMODE!$CCDEPMODE$ac_delim
20951 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
20952 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
20953 LN_S!$LN_S$ac_delim
20954 SED!$SED$ac_delim
20955 GREP!$GREP$ac_delim
20956 EGREP!$EGREP$ac_delim
20957 ECHO!$ECHO$ac_delim
20958 AR!$AR$ac_delim
20959 RANLIB!$RANLIB$ac_delim
20960 DSYMUTIL!$DSYMUTIL$ac_delim
20961 NMEDIT!$NMEDIT$ac_delim
20962 CPP!$CPP$ac_delim
20963 _ACEOF
20964
20965 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
20966 break
20967 elif $ac_last_try; then
20968 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
20969 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
20970 { (exit 1); exit 1; }; }
20971 else
20972 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
20973 fi
20974 done
20975
20976 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
20977 if test -n "$ac_eof"; then
20978 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
20979 ac_eof=`expr $ac_eof + 1`
20980 fi
20981
20982 cat >>$CONFIG_STATUS <<_ACEOF
20983 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
20984 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
20985 _ACEOF
20986 sed '
20987 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
20988 s/^/s,@/; s/!/@,|#_!!_#|/
20989 :n
20990 t n
20991 s/'"$ac_delim"'$/,g/; t
20992 s/$/\\/; p
20993 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
20994 ' >>$CONFIG_STATUS <conf$$subs.sed
20995 rm -f conf$$subs.sed
20996 cat >>$CONFIG_STATUS <<_ACEOF
20997 CEOF$ac_eof
20998 _ACEOF
20999
21000
21001 ac_delim='%!_!# '
21002 for ac_last_try in false false false false false :; do
21003 cat >conf$$subs.sed <<_ACEOF
21004 CXX!$CXX$ac_delim
21005 CXXFLAGS!$CXXFLAGS$ac_delim
21006 ac_ct_CXX!$ac_ct_CXX$ac_delim
21007 CXXDEPMODE!$CXXDEPMODE$ac_delim
21008 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
21009 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
21010 CXXCPP!$CXXCPP$ac_delim
21011 F77!$F77$ac_delim
21012 FFLAGS!$FFLAGS$ac_delim
21013 ac_ct_F77!$ac_ct_F77$ac_delim
21014 LIBTOOL!$LIBTOOL$ac_delim
21015 LIBOBJS!$LIBOBJS$ac_delim
21016 LTLIBOBJS!$LTLIBOBJS$ac_delim
21017 _ACEOF
21018
21019 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 13; then
21020 break
21021 elif $ac_last_try; then
21022 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21023 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21024 { (exit 1); exit 1; }; }
21025 else
21026 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21027 fi
21028 done
21029
21030 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21031 if test -n "$ac_eof"; then
21032 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21033 ac_eof=`expr $ac_eof + 1`
21034 fi
21035
21036 cat >>$CONFIG_STATUS <<_ACEOF
21037 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21038 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21039 _ACEOF
21040 sed '
21041 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21042 s/^/s,@/; s/!/@,|#_!!_#|/
21043 :n
21044 t n
21045 s/'"$ac_delim"'$/,g/; t
21046 s/$/\\/; p
21047 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21048 ' >>$CONFIG_STATUS <conf$$subs.sed
21049 rm -f conf$$subs.sed
21050 cat >>$CONFIG_STATUS <<_ACEOF
21051 :end
21052 s/|#_!!_#|//g
21053 CEOF$ac_eof
21054 _ACEOF
21055
21056
21057 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21058 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21059 # trailing colons and then remove the whole line if VPATH becomes empty
21060 # (actually we leave an empty line to preserve line numbers).
21061 if test "x$srcdir" = x.; then
21062 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21063 s/:*\$(srcdir):*/:/
21064 s/:*\${srcdir}:*/:/
21065 s/:*@srcdir@:*/:/
21066 s/^\([^=]*=[ ]*\):*/\1/
21067 s/:*$//
21068 s/^[^=]*=[ ]*$//
21069 }'
21070 fi
21071
21072 cat >>$CONFIG_STATUS <<\_ACEOF
21073 fi # test -n "$CONFIG_FILES"
21074
21075
21076 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
21077 do
21078 case $ac_tag in
21079 :[FHLC]) ac_mode=$ac_tag; continue;;
21080 esac
21081 case $ac_mode$ac_tag in
21082 :[FHL]*:*);;
21083 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21084 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21085 { (exit 1); exit 1; }; };;
21086 :[FH]-) ac_tag=-:-;;
21087 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21088 esac
21089 ac_save_IFS=$IFS
21090 IFS=:
21091 set x $ac_tag
21092 IFS=$ac_save_IFS
21093 shift
21094 ac_file=$1
21095 shift
21096
21097 case $ac_mode in
21098 :L) ac_source=$1;;
21099 :[FH])
21100 ac_file_inputs=
21101 for ac_f
21102 do
21103 case $ac_f in
21104 -) ac_f="$tmp/stdin";;
21105 *) # Look for the file first in the build tree, then in the source tree
21106 # (if the path is not absolute). The absolute path cannot be DOS-style,
21107 # because $ac_f cannot contain `:'.
21108 test -f "$ac_f" ||
21109 case $ac_f in
21110 [\\/$]*) false;;
21111 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21112 esac ||
21113 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21114 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21115 { (exit 1); exit 1; }; };;
21116 esac
21117 ac_file_inputs="$ac_file_inputs $ac_f"
21118 done
21119
21120 # Let's still pretend it is `configure' which instantiates (i.e., don't
21121 # use $as_me), people would be surprised to read:
21122 # /* config.h. Generated by config.status. */
21123 configure_input="Generated from "`IFS=:
21124 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21125 if test x"$ac_file" != x-; then
21126 configure_input="$ac_file. $configure_input"
21127 { echo "$as_me:$LINENO: creating $ac_file" >&5
21128 echo "$as_me: creating $ac_file" >&6;}
21129 fi
21130
21131 case $ac_tag in
21132 *:-:* | *:-) cat >"$tmp/stdin";;
21133 esac
21134 ;;
21135 esac
21136
21137 ac_dir=`$as_dirname -- "$ac_file" ||
21138 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21139 X"$ac_file" : 'X\(//\)[^/]' \| \
21140 X"$ac_file" : 'X\(//\)$' \| \
21141 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21142 echo X"$ac_file" |
21143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21144 s//\1/
21145 q
21146 }
21147 /^X\(\/\/\)[^/].*/{
21148 s//\1/
21149 q
21150 }
21151 /^X\(\/\/\)$/{
21152 s//\1/
21153 q
21154 }
21155 /^X\(\/\).*/{
21156 s//\1/
21157 q
21158 }
21159 s/.*/./; q'`
21160 { as_dir="$ac_dir"
21161 case $as_dir in #(
21162 -*) as_dir=./$as_dir;;
21163 esac
21164 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21165 as_dirs=
21166 while :; do
21167 case $as_dir in #(
21168 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21169 *) as_qdir=$as_dir;;
21170 esac
21171 as_dirs="'$as_qdir' $as_dirs"
21172 as_dir=`$as_dirname -- "$as_dir" ||
21173 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21174 X"$as_dir" : 'X\(//\)[^/]' \| \
21175 X"$as_dir" : 'X\(//\)$' \| \
21176 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21177 echo X"$as_dir" |
21178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21179 s//\1/
21180 q
21181 }
21182 /^X\(\/\/\)[^/].*/{
21183 s//\1/
21184 q
21185 }
21186 /^X\(\/\/\)$/{
21187 s//\1/
21188 q
21189 }
21190 /^X\(\/\).*/{
21191 s//\1/
21192 q
21193 }
21194 s/.*/./; q'`
21195 test -d "$as_dir" && break
21196 done
21197 test -z "$as_dirs" || eval "mkdir $as_dirs"
21198 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21199 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21200 { (exit 1); exit 1; }; }; }
21201 ac_builddir=.
21202
21203 case "$ac_dir" in
21204 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21205 *)
21206 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21207 # A ".." for each directory in $ac_dir_suffix.
21208 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21209 case $ac_top_builddir_sub in
21210 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21211 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21212 esac ;;
21213 esac
21214 ac_abs_top_builddir=$ac_pwd
21215 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21216 # for backward compatibility:
21217 ac_top_builddir=$ac_top_build_prefix
21218
21219 case $srcdir in
21220 .) # We are building in place.
21221 ac_srcdir=.
21222 ac_top_srcdir=$ac_top_builddir_sub
21223 ac_abs_top_srcdir=$ac_pwd ;;
21224 [\\/]* | ?:[\\/]* ) # Absolute name.
21225 ac_srcdir=$srcdir$ac_dir_suffix;
21226 ac_top_srcdir=$srcdir
21227 ac_abs_top_srcdir=$srcdir ;;
21228 *) # Relative name.
21229 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21230 ac_top_srcdir=$ac_top_build_prefix$srcdir
21231 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21232 esac
21233 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21234
21235
21236 case $ac_mode in
21237 :F)
21238 #
21239 # CONFIG_FILE
21240 #
21241
21242 case $INSTALL in
21243 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21244 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21245 esac
21246 ac_MKDIR_P=$MKDIR_P
21247 case $MKDIR_P in
21248 [\\/$]* | ?:[\\/]* ) ;;
21249 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21250 esac
21251 _ACEOF
21252
21253 cat >>$CONFIG_STATUS <<\_ACEOF
21254 # If the template does not know about datarootdir, expand it.
21255 # FIXME: This hack should be removed a few years after 2.60.
21256 ac_datarootdir_hack=; ac_datarootdir_seen=
21257
21258 case `sed -n '/datarootdir/ {
21259 p
21260 q
21261 }
21262 /@datadir@/p
21263 /@docdir@/p
21264 /@infodir@/p
21265 /@localedir@/p
21266 /@mandir@/p
21267 ' $ac_file_inputs` in
21268 *datarootdir*) ac_datarootdir_seen=yes;;
21269 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21270 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21271 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21272 _ACEOF
21273 cat >>$CONFIG_STATUS <<_ACEOF
21274 ac_datarootdir_hack='
21275 s&@datadir@&$datadir&g
21276 s&@docdir@&$docdir&g
21277 s&@infodir@&$infodir&g
21278 s&@localedir@&$localedir&g
21279 s&@mandir@&$mandir&g
21280 s&\\\${datarootdir}&$datarootdir&g' ;;
21281 esac
21282 _ACEOF
21283
21284 # Neutralize VPATH when `$srcdir' = `.'.
21285 # Shell code in configure.ac might set extrasub.
21286 # FIXME: do we really want to maintain this feature?
21287 cat >>$CONFIG_STATUS <<_ACEOF
21288 sed "$ac_vpsub
21289 $extrasub
21290 _ACEOF
21291 cat >>$CONFIG_STATUS <<\_ACEOF
21292 :t
21293 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21294 s&@configure_input@&$configure_input&;t t
21295 s&@top_builddir@&$ac_top_builddir_sub&;t t
21296 s&@srcdir@&$ac_srcdir&;t t
21297 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21298 s&@top_srcdir@&$ac_top_srcdir&;t t
21299 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21300 s&@builddir@&$ac_builddir&;t t
21301 s&@abs_builddir@&$ac_abs_builddir&;t t
21302 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21303 s&@INSTALL@&$ac_INSTALL&;t t
21304 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21305 $ac_datarootdir_hack
21306 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
21307
21308 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21309 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21310 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21311 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21312 which seems to be undefined. Please make sure it is defined." >&5
21313 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21314 which seems to be undefined. Please make sure it is defined." >&2;}
21315
21316 rm -f "$tmp/stdin"
21317 case $ac_file in
21318 -) cat "$tmp/out"; rm -f "$tmp/out";;
21319 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
21320 esac
21321 ;;
21322 :H)
21323 #
21324 # CONFIG_HEADER
21325 #
21326 _ACEOF
21327
21328 # Transform confdefs.h into a sed script `conftest.defines', that
21329 # substitutes the proper values into config.h.in to produce config.h.
21330 rm -f conftest.defines conftest.tail
21331 # First, append a space to every undef/define line, to ease matching.
21332 echo 's/$/ /' >conftest.defines
21333 # Then, protect against being on the right side of a sed subst, or in
21334 # an unquoted here document, in config.status. If some macros were
21335 # called several times there might be several #defines for the same
21336 # symbol, which is useless. But do not sort them, since the last
21337 # AC_DEFINE must be honored.
21338 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21339 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
21340 # NAME is the cpp macro being defined, VALUE is the value it is being given.
21341 # PARAMS is the parameter list in the macro definition--in most cases, it's
21342 # just an empty string.
21343 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
21344 ac_dB='\\)[ (].*,\\1define\\2'
21345 ac_dC=' '
21346 ac_dD=' ,'
21347
21348 uniq confdefs.h |
21349 sed -n '
21350 t rset
21351 :rset
21352 s/^[ ]*#[ ]*define[ ][ ]*//
21353 t ok
21354 d
21355 :ok
21356 s/[\\&,]/\\&/g
21357 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
21358 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
21359 ' >>conftest.defines
21360
21361 # Remove the space that was appended to ease matching.
21362 # Then replace #undef with comments. This is necessary, for
21363 # example, in the case of _POSIX_SOURCE, which is predefined and required
21364 # on some systems where configure will not decide to define it.
21365 # (The regexp can be short, since the line contains either #define or #undef.)
21366 echo 's/ $//
21367 s,^[ #]*u.*,/* & */,' >>conftest.defines
21368
21369 # Break up conftest.defines:
21370 ac_max_sed_lines=50
21371
21372 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
21373 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
21374 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
21375 # et cetera.
21376 ac_in='$ac_file_inputs'
21377 ac_out='"$tmp/out1"'
21378 ac_nxt='"$tmp/out2"'
21379
21380 while :
21381 do
21382 # Write a here document:
21383 cat >>$CONFIG_STATUS <<_ACEOF
21384 # First, check the format of the line:
21385 cat >"\$tmp/defines.sed" <<\\CEOF
21386 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
21387 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
21388 b
21389 :def
21390 _ACEOF
21391 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
21392 echo 'CEOF
21393 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
21394 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
21395 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
21396 grep . conftest.tail >/dev/null || break
21397 rm -f conftest.defines
21398 mv conftest.tail conftest.defines
21399 done
21400 rm -f conftest.defines conftest.tail
21401
21402 echo "ac_result=$ac_in" >>$CONFIG_STATUS
21403 cat >>$CONFIG_STATUS <<\_ACEOF
21404 if test x"$ac_file" != x-; then
21405 echo "/* $configure_input */" >"$tmp/config.h"
21406 cat "$ac_result" >>"$tmp/config.h"
21407 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
21408 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21409 echo "$as_me: $ac_file is unchanged" >&6;}
21410 else
21411 rm -f $ac_file
21412 mv "$tmp/config.h" $ac_file
21413 fi
21414 else
21415 echo "/* $configure_input */"
21416 cat "$ac_result"
21417 fi
21418 rm -f "$tmp/out12"
21419 # Compute $ac_file's index in $config_headers.
21420 _am_arg=$ac_file
21421 _am_stamp_count=1
21422 for _am_header in $config_headers :; do
21423 case $_am_header in
21424 $_am_arg | $_am_arg:* )
21425 break ;;
21426 * )
21427 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21428 esac
21429 done
21430 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21431 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21432 X"$_am_arg" : 'X\(//\)[^/]' \| \
21433 X"$_am_arg" : 'X\(//\)$' \| \
21434 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21435 echo X"$_am_arg" |
21436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21437 s//\1/
21438 q
21439 }
21440 /^X\(\/\/\)[^/].*/{
21441 s//\1/
21442 q
21443 }
21444 /^X\(\/\/\)$/{
21445 s//\1/
21446 q
21447 }
21448 /^X\(\/\).*/{
21449 s//\1/
21450 q
21451 }
21452 s/.*/./; q'`/stamp-h$_am_stamp_count
21453 ;;
21454
21455 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
21456 echo "$as_me: executing $ac_file commands" >&6;}
21457 ;;
21458 esac
21459
21460
21461 case $ac_file$ac_mode in
21462 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
21463 # Strip MF so we end up with the name of the file.
21464 mf=`echo "$mf" | sed -e 's/:.*$//'`
21465 # Check whether this is an Automake generated Makefile or not.
21466 # We used to match only the files named `Makefile.in', but
21467 # some people rename them; so instead we look at the file content.
21468 # Grep'ing the first line is not enough: some people post-process
21469 # each Makefile.in and add a new line on top of each file to say so.
21470 # Grep'ing the whole file is not good either: AIX grep has a line
21471 # limit of 2048, but all sed's we know have understand at least 4000.
21472 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21473 dirpart=`$as_dirname -- "$mf" ||
21474 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21475 X"$mf" : 'X\(//\)[^/]' \| \
21476 X"$mf" : 'X\(//\)$' \| \
21477 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21478 echo X"$mf" |
21479 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21480 s//\1/
21481 q
21482 }
21483 /^X\(\/\/\)[^/].*/{
21484 s//\1/
21485 q
21486 }
21487 /^X\(\/\/\)$/{
21488 s//\1/
21489 q
21490 }
21491 /^X\(\/\).*/{
21492 s//\1/
21493 q
21494 }
21495 s/.*/./; q'`
21496 else
21497 continue
21498 fi
21499 # Extract the definition of DEPDIR, am__include, and am__quote
21500 # from the Makefile without running `make'.
21501 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21502 test -z "$DEPDIR" && continue
21503 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21504 test -z "am__include" && continue
21505 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21506 # When using ansi2knr, U may be empty or an underscore; expand it
21507 U=`sed -n 's/^U = //p' < "$mf"`
21508 # Find all dependency output files, they are included files with
21509 # $(DEPDIR) in their names. We invoke sed twice because it is the
21510 # simplest approach to changing $(DEPDIR) to its actual value in the
21511 # expansion.
21512 for file in `sed -n "
21513 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21514 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
21515 # Make sure the directory exists.
21516 test -f "$dirpart/$file" && continue
21517 fdir=`$as_dirname -- "$file" ||
21518 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21519 X"$file" : 'X\(//\)[^/]' \| \
21520 X"$file" : 'X\(//\)$' \| \
21521 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21522 echo X"$file" |
21523 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21524 s//\1/
21525 q
21526 }
21527 /^X\(\/\/\)[^/].*/{
21528 s//\1/
21529 q
21530 }
21531 /^X\(\/\/\)$/{
21532 s//\1/
21533 q
21534 }
21535 /^X\(\/\).*/{
21536 s//\1/
21537 q
21538 }
21539 s/.*/./; q'`
21540 { as_dir=$dirpart/$fdir
21541 case $as_dir in #(
21542 -*) as_dir=./$as_dir;;
21543 esac
21544 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21545 as_dirs=
21546 while :; do
21547 case $as_dir in #(
21548 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21549 *) as_qdir=$as_dir;;
21550 esac
21551 as_dirs="'$as_qdir' $as_dirs"
21552 as_dir=`$as_dirname -- "$as_dir" ||
21553 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21554 X"$as_dir" : 'X\(//\)[^/]' \| \
21555 X"$as_dir" : 'X\(//\)$' \| \
21556 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21557 echo X"$as_dir" |
21558 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21559 s//\1/
21560 q
21561 }
21562 /^X\(\/\/\)[^/].*/{
21563 s//\1/
21564 q
21565 }
21566 /^X\(\/\/\)$/{
21567 s//\1/
21568 q
21569 }
21570 /^X\(\/\).*/{
21571 s//\1/
21572 q
21573 }
21574 s/.*/./; q'`
21575 test -d "$as_dir" && break
21576 done
21577 test -z "$as_dirs" || eval "mkdir $as_dirs"
21578 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21579 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21580 { (exit 1); exit 1; }; }; }
21581 # echo "creating $dirpart/$file"
21582 echo '# dummy' > "$dirpart/$file"
21583 done
21584 done
21585 ;;
21586
21587 esac
21588 done # for ac_tag
21589
21590
21591 { (exit 0); exit 0; }
21592 _ACEOF
21593 chmod +x $CONFIG_STATUS
21594 ac_clean_files=$ac_clean_files_save
21595
21596
21597 # configure is writing to config.log, and then calls config.status.
21598 # config.status does its own redirection, appending to config.log.
21599 # Unfortunately, on DOS this fails, as config.log is still kept open
21600 # by configure, so config.status won't be able to write to it; its
21601 # output is simply discarded. So we exec the FD to /dev/null,
21602 # effectively closing config.log, so it can be properly (re)opened and
21603 # appended to by config.status. When coming back to configure, we
21604 # need to make the FD available again.
21605 if test "$no_create" != yes; then
21606 ac_cs_success=:
21607 ac_config_status_args=
21608 test "$silent" = yes &&
21609 ac_config_status_args="$ac_config_status_args --quiet"
21610 exec 5>/dev/null
21611 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
21612 exec 5>>config.log
21613 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
21614 # would make configure fail if this is the last instruction.
21615 $ac_cs_success || { (exit 1); exit 1; }
21616 fi
21617