Debian Codegraph @

configure

raw
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for ladspa-bs2b 0.9.1.
4 #
5 # Report bugs to <[email protected]>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$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 # Pre-4.2 versions of Zsh do 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 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell [email protected] about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576
577 # Check that we are running under the correct shell.
578 SHELL=${CONFIG_SHELL-/bin/sh}
579
580 case X$ECHO in
581 X*--fallback-echo)
582 # Remove one level of quotation (which was required for Make).
583 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
584 ;;
585 esac
586
587 echo=${ECHO-echo}
588 if test "X$1" = X--no-reexec; then
589 # Discard the --no-reexec flag, and continue.
590 shift
591 elif test "X$1" = X--fallback-echo; then
592 # Avoid inline document here, it may be left over
593 :
594 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
595 # Yippee, $echo works!
596 :
597 else
598 # Restart under the correct shell.
599 exec $SHELL "$0" --no-reexec ${1+"$@"}
600 fi
601
602 if test "X$1" = X--fallback-echo; then
603 # used as fallback echo
604 shift
605 cat <<EOF
606 $*
607 EOF
608 exit 0
609 fi
610
611 # The HP-UX ksh and POSIX shell print the target directory to stdout
612 # if CDPATH is set.
613 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
614
615 if test -z "$ECHO"; then
616 if test "X${echo_test_string+set}" != Xset; then
617 # find a string as large as possible, as long as the shell can cope with it
618 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
619 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
620 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
621 echo_test_string=`eval $cmd` &&
622 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
623 then
624 break
625 fi
626 done
627 fi
628
629 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
630 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
631 test "X$echo_testing_string" = "X$echo_test_string"; then
632 :
633 else
634 # The Solaris, AIX, and Digital Unix default echo programs unquote
635 # backslashes. This makes it impossible to quote backslashes using
636 # echo "$something" | sed 's/\\/\\\\/g'
637 #
638 # So, first we look for a working echo in the user's PATH.
639
640 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
641 for dir in $PATH /usr/ucb; do
642 IFS="$lt_save_ifs"
643 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
644 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
645 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
646 test "X$echo_testing_string" = "X$echo_test_string"; then
647 echo="$dir/echo"
648 break
649 fi
650 done
651 IFS="$lt_save_ifs"
652
653 if test "X$echo" = Xecho; then
654 # We didn't find a better echo, so look for alternatives.
655 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
656 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
657 test "X$echo_testing_string" = "X$echo_test_string"; then
658 # This shell has a builtin print -r that does the trick.
659 echo='print -r'
660 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
661 test "X$CONFIG_SHELL" != X/bin/ksh; then
662 # If we have ksh, try running configure again with it.
663 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
664 export ORIGINAL_CONFIG_SHELL
665 CONFIG_SHELL=/bin/ksh
666 export CONFIG_SHELL
667 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
668 else
669 # Try using printf.
670 echo='printf %s\n'
671 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
672 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
673 test "X$echo_testing_string" = "X$echo_test_string"; then
674 # Cool, printf works
675 :
676 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
677 test "X$echo_testing_string" = 'X\t' &&
678 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
679 test "X$echo_testing_string" = "X$echo_test_string"; then
680 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
681 export CONFIG_SHELL
682 SHELL="$CONFIG_SHELL"
683 export SHELL
684 echo="$CONFIG_SHELL $0 --fallback-echo"
685 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
686 test "X$echo_testing_string" = 'X\t' &&
687 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
688 test "X$echo_testing_string" = "X$echo_test_string"; then
689 echo="$CONFIG_SHELL $0 --fallback-echo"
690 else
691 # maybe with a smaller string...
692 prev=:
693
694 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
695 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
696 then
697 break
698 fi
699 prev="$cmd"
700 done
701
702 if test "$prev" != 'sed 50q "$0"'; then
703 echo_test_string=`eval $prev`
704 export echo_test_string
705 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
706 else
707 # Oops. We lost completely, so just stick with echo.
708 echo=echo
709 fi
710 fi
711 fi
712 fi
713 fi
714 fi
715
716 # Copy echo and quote the copy suitably for passing to libtool from
717 # the Makefile, instead of quoting the original, which is used later.
718 ECHO=$echo
719 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
720 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
721 fi
722
723
724
725
726 tagnames=${tagnames+${tagnames},}CXX
727
728 tagnames=${tagnames+${tagnames},}F77
729
730 exec 7<&0 </dev/null 6>&1
731
732 # Name of the host.
733 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
734 # so uname gets run too.
735 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
736
737 #
738 # Initializations.
739 #
740 ac_default_prefix=/usr/local
741 ac_clean_files=
742 ac_config_libobj_dir=.
743 LIBOBJS=
744 cross_compiling=no
745 subdirs=
746 MFLAGS=
747 MAKEFLAGS=
748 SHELL=${CONFIG_SHELL-/bin/sh}
749
750 # Identity of this package.
751 PACKAGE_NAME='ladspa-bs2b'
752 PACKAGE_TARNAME='ladspa-bs2b'
753 PACKAGE_VERSION='0.9.1'
754 PACKAGE_STRING='ladspa-bs2b 0.9.1'
755 PACKAGE_BUGREPORT='[email protected]'
756
757 ac_unique_file="src/plugin.c"
758 # Factoring default headers for most tests.
759 ac_includes_default="\
760 #include <stdio.h>
761 #ifdef HAVE_SYS_TYPES_H
762 # include <sys/types.h>
763 #endif
764 #ifdef HAVE_SYS_STAT_H
765 # include <sys/stat.h>
766 #endif
767 #ifdef STDC_HEADERS
768 # include <stdlib.h>
769 # include <stddef.h>
770 #else
771 # ifdef HAVE_STDLIB_H
772 # include <stdlib.h>
773 # endif
774 #endif
775 #ifdef HAVE_STRING_H
776 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
777 # include <memory.h>
778 # endif
779 # include <string.h>
780 #endif
781 #ifdef HAVE_STRINGS_H
782 # include <strings.h>
783 #endif
784 #ifdef HAVE_INTTYPES_H
785 # include <inttypes.h>
786 #endif
787 #ifdef HAVE_STDINT_H
788 # include <stdint.h>
789 #endif
790 #ifdef HAVE_UNISTD_H
791 # include <unistd.h>
792 #endif"
793
794 ac_subst_vars='LTLIBOBJS
795 LIBOBJS
796 BS2B_LIBS
797 BS2B_CFLAGS
798 PKG_CONFIG
799 LIBTOOL
800 ac_ct_F77
801 FFLAGS
802 F77
803 CXXCPP
804 am__fastdepCXX_FALSE
805 am__fastdepCXX_TRUE
806 CXXDEPMODE
807 ac_ct_CXX
808 CXXFLAGS
809 CXX
810 CPP
811 NMEDIT
812 DSYMUTIL
813 RANLIB
814 AR
815 ECHO
816 LN_S
817 EGREP
818 GREP
819 SED
820 host_os
821 host_vendor
822 host_cpu
823 host
824 build_os
825 build_vendor
826 build_cpu
827 build
828 am__fastdepCC_FALSE
829 am__fastdepCC_TRUE
830 CCDEPMODE
831 AMDEPBACKSLASH
832 AMDEP_FALSE
833 AMDEP_TRUE
834 am__quote
835 am__include
836 DEPDIR
837 OBJEXT
838 EXEEXT
839 ac_ct_CC
840 CPPFLAGS
841 LDFLAGS
842 CFLAGS
843 CC
844 am__untar
845 am__tar
846 AMTAR
847 am__leading_dot
848 SET_MAKE
849 AWK
850 mkdir_p
851 MKDIR_P
852 INSTALL_STRIP_PROGRAM
853 STRIP
854 install_sh
855 MAKEINFO
856 AUTOHEADER
857 AUTOMAKE
858 AUTOCONF
859 ACLOCAL
860 VERSION
861 PACKAGE
862 CYGPATH_W
863 am__isrc
864 INSTALL_DATA
865 INSTALL_SCRIPT
866 INSTALL_PROGRAM
867 target_alias
868 host_alias
869 build_alias
870 LIBS
871 ECHO_T
872 ECHO_N
873 ECHO_C
874 DEFS
875 mandir
876 localedir
877 libdir
878 psdir
879 pdfdir
880 dvidir
881 htmldir
882 infodir
883 docdir
884 oldincludedir
885 includedir
886 localstatedir
887 sharedstatedir
888 sysconfdir
889 datadir
890 datarootdir
891 libexecdir
892 sbindir
893 bindir
894 program_transform_name
895 prefix
896 exec_prefix
897 PACKAGE_BUGREPORT
898 PACKAGE_STRING
899 PACKAGE_VERSION
900 PACKAGE_TARNAME
901 PACKAGE_NAME
902 PATH_SEPARATOR
903 SHELL'
904 ac_subst_files=''
905 ac_user_opts='
906 enable_option_checking
907 enable_dependency_tracking
908 enable_static
909 enable_shared
910 enable_fast_install
911 with_gnu_ld
912 enable_libtool_lock
913 with_pic
914 with_tags
915 '
916 ac_precious_vars='build_alias
917 host_alias
918 target_alias
919 CC
920 CFLAGS
921 LDFLAGS
922 LIBS
923 CPPFLAGS
924 CPP
925 CXX
926 CXXFLAGS
927 CCC
928 CXXCPP
929 F77
930 FFLAGS
931 PKG_CONFIG
932 BS2B_CFLAGS
933 BS2B_LIBS'
934
935
936 # Initialize some variables set by options.
937 ac_init_help=
938 ac_init_version=false
939 ac_unrecognized_opts=
940 ac_unrecognized_sep=
941 # The variables have the same names as the options, with
942 # dashes changed to underlines.
943 cache_file=/dev/null
944 exec_prefix=NONE
945 no_create=
946 no_recursion=
947 prefix=NONE
948 program_prefix=NONE
949 program_suffix=NONE
950 program_transform_name=s,x,x,
951 silent=
952 site=
953 srcdir=
954 verbose=
955 x_includes=NONE
956 x_libraries=NONE
957
958 # Installation directory options.
959 # These are left unexpanded so users can "make install exec_prefix=/foo"
960 # and all the variables that are supposed to be based on exec_prefix
961 # by default will actually change.
962 # Use braces instead of parens because sh, perl, etc. also accept them.
963 # (The list follows the same order as the GNU Coding Standards.)
964 bindir='${exec_prefix}/bin'
965 sbindir='${exec_prefix}/sbin'
966 libexecdir='${exec_prefix}/libexec'
967 datarootdir='${prefix}/share'
968 datadir='${datarootdir}'
969 sysconfdir='${prefix}/etc'
970 sharedstatedir='${prefix}/com'
971 localstatedir='${prefix}/var'
972 includedir='${prefix}/include'
973 oldincludedir='/usr/include'
974 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
975 infodir='${datarootdir}/info'
976 htmldir='${docdir}'
977 dvidir='${docdir}'
978 pdfdir='${docdir}'
979 psdir='${docdir}'
980 libdir='${exec_prefix}/lib'
981 localedir='${datarootdir}/locale'
982 mandir='${datarootdir}/man'
983
984 ac_prev=
985 ac_dashdash=
986 for ac_option
987 do
988 # If the previous option needs an argument, assign it.
989 if test -n "$ac_prev"; then
990 eval $ac_prev=\$ac_option
991 ac_prev=
992 continue
993 fi
994
995 case $ac_option in
996 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
997 *) ac_optarg=yes ;;
998 esac
999
1000 # Accept the important Cygnus configure options, so we can diagnose typos.
1001
1002 case $ac_dashdash$ac_option in
1003 --)
1004 ac_dashdash=yes ;;
1005
1006 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1007 ac_prev=bindir ;;
1008 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1009 bindir=$ac_optarg ;;
1010
1011 -build | --build | --buil | --bui | --bu)
1012 ac_prev=build_alias ;;
1013 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1014 build_alias=$ac_optarg ;;
1015
1016 -cache-file | --cache-file | --cache-fil | --cache-fi \
1017 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1018 ac_prev=cache_file ;;
1019 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1020 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1021 cache_file=$ac_optarg ;;
1022
1023 --config-cache | -C)
1024 cache_file=config.cache ;;
1025
1026 -datadir | --datadir | --datadi | --datad)
1027 ac_prev=datadir ;;
1028 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1029 datadir=$ac_optarg ;;
1030
1031 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1032 | --dataroo | --dataro | --datar)
1033 ac_prev=datarootdir ;;
1034 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1035 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1036 datarootdir=$ac_optarg ;;
1037
1038 -disable-* | --disable-*)
1039 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1040 # Reject names that are not valid shell variable names.
1041 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1042 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1043 { (exit 1); exit 1; }; }
1044 ac_useropt_orig=$ac_useropt
1045 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1046 case $ac_user_opts in
1047 *"
1048 "enable_$ac_useropt"
1049 "*) ;;
1050 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1051 ac_unrecognized_sep=', ';;
1052 esac
1053 eval enable_$ac_useropt=no ;;
1054
1055 -docdir | --docdir | --docdi | --doc | --do)
1056 ac_prev=docdir ;;
1057 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1058 docdir=$ac_optarg ;;
1059
1060 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1061 ac_prev=dvidir ;;
1062 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1063 dvidir=$ac_optarg ;;
1064
1065 -enable-* | --enable-*)
1066 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1069 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_useropt_orig=$ac_useropt
1072 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1073 case $ac_user_opts in
1074 *"
1075 "enable_$ac_useropt"
1076 "*) ;;
1077 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1078 ac_unrecognized_sep=', ';;
1079 esac
1080 eval enable_$ac_useropt=\$ac_optarg ;;
1081
1082 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1083 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1084 | --exec | --exe | --ex)
1085 ac_prev=exec_prefix ;;
1086 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1087 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1088 | --exec=* | --exe=* | --ex=*)
1089 exec_prefix=$ac_optarg ;;
1090
1091 -gas | --gas | --ga | --g)
1092 # Obsolete; use --with-gas.
1093 with_gas=yes ;;
1094
1095 -help | --help | --hel | --he | -h)
1096 ac_init_help=long ;;
1097 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1098 ac_init_help=recursive ;;
1099 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1100 ac_init_help=short ;;
1101
1102 -host | --host | --hos | --ho)
1103 ac_prev=host_alias ;;
1104 -host=* | --host=* | --hos=* | --ho=*)
1105 host_alias=$ac_optarg ;;
1106
1107 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1108 ac_prev=htmldir ;;
1109 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1110 | --ht=*)
1111 htmldir=$ac_optarg ;;
1112
1113 -includedir | --includedir | --includedi | --included | --include \
1114 | --includ | --inclu | --incl | --inc)
1115 ac_prev=includedir ;;
1116 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1117 | --includ=* | --inclu=* | --incl=* | --inc=*)
1118 includedir=$ac_optarg ;;
1119
1120 -infodir | --infodir | --infodi | --infod | --info | --inf)
1121 ac_prev=infodir ;;
1122 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1123 infodir=$ac_optarg ;;
1124
1125 -libdir | --libdir | --libdi | --libd)
1126 ac_prev=libdir ;;
1127 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1128 libdir=$ac_optarg ;;
1129
1130 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1131 | --libexe | --libex | --libe)
1132 ac_prev=libexecdir ;;
1133 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1134 | --libexe=* | --libex=* | --libe=*)
1135 libexecdir=$ac_optarg ;;
1136
1137 -localedir | --localedir | --localedi | --localed | --locale)
1138 ac_prev=localedir ;;
1139 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1140 localedir=$ac_optarg ;;
1141
1142 -localstatedir | --localstatedir | --localstatedi | --localstated \
1143 | --localstate | --localstat | --localsta | --localst | --locals)
1144 ac_prev=localstatedir ;;
1145 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1146 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1147 localstatedir=$ac_optarg ;;
1148
1149 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1150 ac_prev=mandir ;;
1151 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1152 mandir=$ac_optarg ;;
1153
1154 -nfp | --nfp | --nf)
1155 # Obsolete; use --without-fp.
1156 with_fp=no ;;
1157
1158 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1159 | --no-cr | --no-c | -n)
1160 no_create=yes ;;
1161
1162 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1163 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1164 no_recursion=yes ;;
1165
1166 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1167 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1168 | --oldin | --oldi | --old | --ol | --o)
1169 ac_prev=oldincludedir ;;
1170 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1171 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1172 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1173 oldincludedir=$ac_optarg ;;
1174
1175 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1176 ac_prev=prefix ;;
1177 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1178 prefix=$ac_optarg ;;
1179
1180 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1181 | --program-pre | --program-pr | --program-p)
1182 ac_prev=program_prefix ;;
1183 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1184 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1185 program_prefix=$ac_optarg ;;
1186
1187 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1188 | --program-suf | --program-su | --program-s)
1189 ac_prev=program_suffix ;;
1190 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1191 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1192 program_suffix=$ac_optarg ;;
1193
1194 -program-transform-name | --program-transform-name \
1195 | --program-transform-nam | --program-transform-na \
1196 | --program-transform-n | --program-transform- \
1197 | --program-transform | --program-transfor \
1198 | --program-transfo | --program-transf \
1199 | --program-trans | --program-tran \
1200 | --progr-tra | --program-tr | --program-t)
1201 ac_prev=program_transform_name ;;
1202 -program-transform-name=* | --program-transform-name=* \
1203 | --program-transform-nam=* | --program-transform-na=* \
1204 | --program-transform-n=* | --program-transform-=* \
1205 | --program-transform=* | --program-transfor=* \
1206 | --program-transfo=* | --program-transf=* \
1207 | --program-trans=* | --program-tran=* \
1208 | --progr-tra=* | --program-tr=* | --program-t=*)
1209 program_transform_name=$ac_optarg ;;
1210
1211 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1212 ac_prev=pdfdir ;;
1213 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1214 pdfdir=$ac_optarg ;;
1215
1216 -psdir | --psdir | --psdi | --psd | --ps)
1217 ac_prev=psdir ;;
1218 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1219 psdir=$ac_optarg ;;
1220
1221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1222 | -silent | --silent | --silen | --sile | --sil)
1223 silent=yes ;;
1224
1225 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1226 ac_prev=sbindir ;;
1227 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1228 | --sbi=* | --sb=*)
1229 sbindir=$ac_optarg ;;
1230
1231 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1232 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1233 | --sharedst | --shareds | --shared | --share | --shar \
1234 | --sha | --sh)
1235 ac_prev=sharedstatedir ;;
1236 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1237 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1238 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1239 | --sha=* | --sh=*)
1240 sharedstatedir=$ac_optarg ;;
1241
1242 -site | --site | --sit)
1243 ac_prev=site ;;
1244 -site=* | --site=* | --sit=*)
1245 site=$ac_optarg ;;
1246
1247 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1248 ac_prev=srcdir ;;
1249 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1250 srcdir=$ac_optarg ;;
1251
1252 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1253 | --syscon | --sysco | --sysc | --sys | --sy)
1254 ac_prev=sysconfdir ;;
1255 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1256 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1257 sysconfdir=$ac_optarg ;;
1258
1259 -target | --target | --targe | --targ | --tar | --ta | --t)
1260 ac_prev=target_alias ;;
1261 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1262 target_alias=$ac_optarg ;;
1263
1264 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1265 verbose=yes ;;
1266
1267 -version | --version | --versio | --versi | --vers | -V)
1268 ac_init_version=: ;;
1269
1270 -with-* | --with-*)
1271 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1272 # Reject names that are not valid shell variable names.
1273 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1274 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1275 { (exit 1); exit 1; }; }
1276 ac_useropt_orig=$ac_useropt
1277 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1278 case $ac_user_opts in
1279 *"
1280 "with_$ac_useropt"
1281 "*) ;;
1282 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1283 ac_unrecognized_sep=', ';;
1284 esac
1285 eval with_$ac_useropt=\$ac_optarg ;;
1286
1287 -without-* | --without-*)
1288 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1289 # Reject names that are not valid shell variable names.
1290 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1292 { (exit 1); exit 1; }; }
1293 ac_useropt_orig=$ac_useropt
1294 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1295 case $ac_user_opts in
1296 *"
1297 "with_$ac_useropt"
1298 "*) ;;
1299 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1300 ac_unrecognized_sep=', ';;
1301 esac
1302 eval with_$ac_useropt=no ;;
1303
1304 --x)
1305 # Obsolete; use --with-x.
1306 with_x=yes ;;
1307
1308 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1309 | --x-incl | --x-inc | --x-in | --x-i)
1310 ac_prev=x_includes ;;
1311 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1312 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1313 x_includes=$ac_optarg ;;
1314
1315 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1316 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1317 ac_prev=x_libraries ;;
1318 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1319 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1320 x_libraries=$ac_optarg ;;
1321
1322 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1323 Try \`$0 --help' for more information." >&2
1324 { (exit 1); exit 1; }; }
1325 ;;
1326
1327 *=*)
1328 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1331 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1332 { (exit 1); exit 1; }; }
1333 eval $ac_envvar=\$ac_optarg
1334 export $ac_envvar ;;
1335
1336 *)
1337 # FIXME: should be removed in autoconf 3.0.
1338 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1339 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1340 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1341 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1342 ;;
1343
1344 esac
1345 done
1346
1347 if test -n "$ac_prev"; then
1348 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1349 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1350 { (exit 1); exit 1; }; }
1351 fi
1352
1353 if test -n "$ac_unrecognized_opts"; then
1354 case $enable_option_checking in
1355 no) ;;
1356 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1357 { (exit 1); exit 1; }; } ;;
1358 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1359 esac
1360 fi
1361
1362 # Check all directory arguments for consistency.
1363 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1364 datadir sysconfdir sharedstatedir localstatedir includedir \
1365 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1366 libdir localedir mandir
1367 do
1368 eval ac_val=\$$ac_var
1369 # Remove trailing slashes.
1370 case $ac_val in
1371 */ )
1372 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1373 eval $ac_var=\$ac_val;;
1374 esac
1375 # Be sure to have absolute directory names.
1376 case $ac_val in
1377 [\\/$]* | ?:[\\/]* ) continue;;
1378 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1379 esac
1380 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1381 { (exit 1); exit 1; }; }
1382 done
1383
1384 # There might be people who depend on the old broken behavior: `$host'
1385 # used to hold the argument of --host etc.
1386 # FIXME: To remove some day.
1387 build=$build_alias
1388 host=$host_alias
1389 target=$target_alias
1390
1391 # FIXME: To remove some day.
1392 if test "x$host_alias" != x; then
1393 if test "x$build_alias" = x; then
1394 cross_compiling=maybe
1395 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1396 If a cross compiler is detected then cross compile mode will be used." >&2
1397 elif test "x$build_alias" != "x$host_alias"; then
1398 cross_compiling=yes
1399 fi
1400 fi
1401
1402 ac_tool_prefix=
1403 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1404
1405 test "$silent" = yes && exec 6>/dev/null
1406
1407
1408 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1409 ac_ls_di=`ls -di .` &&
1410 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1411 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1412 { (exit 1); exit 1; }; }
1413 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1414 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1415 { (exit 1); exit 1; }; }
1416
1417
1418 # Find the source files, if location was not specified.
1419 if test -z "$srcdir"; then
1420 ac_srcdir_defaulted=yes
1421 # Try the directory containing this script, then the parent directory.
1422 ac_confdir=`$as_dirname -- "$as_myself" ||
1423 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1424 X"$as_myself" : 'X\(//\)[^/]' \| \
1425 X"$as_myself" : 'X\(//\)$' \| \
1426 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1427 $as_echo X"$as_myself" |
1428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1429 s//\1/
1430 q
1431 }
1432 /^X\(\/\/\)[^/].*/{
1433 s//\1/
1434 q
1435 }
1436 /^X\(\/\/\)$/{
1437 s//\1/
1438 q
1439 }
1440 /^X\(\/\).*/{
1441 s//\1/
1442 q
1443 }
1444 s/.*/./; q'`
1445 srcdir=$ac_confdir
1446 if test ! -r "$srcdir/$ac_unique_file"; then
1447 srcdir=..
1448 fi
1449 else
1450 ac_srcdir_defaulted=no
1451 fi
1452 if test ! -r "$srcdir/$ac_unique_file"; then
1453 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1454 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1455 { (exit 1); exit 1; }; }
1456 fi
1457 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1458 ac_abs_confdir=`(
1459 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1460 { (exit 1); exit 1; }; }
1461 pwd)`
1462 # When building in place, set srcdir=.
1463 if test "$ac_abs_confdir" = "$ac_pwd"; then
1464 srcdir=.
1465 fi
1466 # Remove unnecessary trailing slashes from srcdir.
1467 # Double slashes in file names in object file debugging info
1468 # mess up M-x gdb in Emacs.
1469 case $srcdir in
1470 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1471 esac
1472 for ac_var in $ac_precious_vars; do
1473 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1474 eval ac_env_${ac_var}_value=\$${ac_var}
1475 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1476 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1477 done
1478
1479 #
1480 # Report the --help message.
1481 #
1482 if test "$ac_init_help" = "long"; then
1483 # Omit some internal or obsolete options to make the list less imposing.
1484 # This message is too long to be a string in the A/UX 3.1 sh.
1485 cat <<_ACEOF
1486 \`configure' configures ladspa-bs2b 0.9.1 to adapt to many kinds of systems.
1487
1488 Usage: $0 [OPTION]... [VAR=VALUE]...
1489
1490 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1491 VAR=VALUE. See below for descriptions of some of the useful variables.
1492
1493 Defaults for the options are specified in brackets.
1494
1495 Configuration:
1496 -h, --help display this help and exit
1497 --help=short display options specific to this package
1498 --help=recursive display the short help of all the included packages
1499 -V, --version display version information and exit
1500 -q, --quiet, --silent do not print \`checking...' messages
1501 --cache-file=FILE cache test results in FILE [disabled]
1502 -C, --config-cache alias for \`--cache-file=config.cache'
1503 -n, --no-create do not create output files
1504 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1505
1506 Installation directories:
1507 --prefix=PREFIX install architecture-independent files in PREFIX
1508 [$ac_default_prefix]
1509 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1510 [PREFIX]
1511
1512 By default, \`make install' will install all the files in
1513 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1514 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1515 for instance \`--prefix=\$HOME'.
1516
1517 For better control, use the options below.
1518
1519 Fine tuning of the installation directories:
1520 --bindir=DIR user executables [EPREFIX/bin]
1521 --sbindir=DIR system admin executables [EPREFIX/sbin]
1522 --libexecdir=DIR program executables [EPREFIX/libexec]
1523 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1524 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1525 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1526 --libdir=DIR object code libraries [EPREFIX/lib]
1527 --includedir=DIR C header files [PREFIX/include]
1528 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1529 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1530 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1531 --infodir=DIR info documentation [DATAROOTDIR/info]
1532 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1533 --mandir=DIR man documentation [DATAROOTDIR/man]
1534 --docdir=DIR documentation root [DATAROOTDIR/doc/ladspa-bs2b]
1535 --htmldir=DIR html documentation [DOCDIR]
1536 --dvidir=DIR dvi documentation [DOCDIR]
1537 --pdfdir=DIR pdf documentation [DOCDIR]
1538 --psdir=DIR ps documentation [DOCDIR]
1539 _ACEOF
1540
1541 cat <<\_ACEOF
1542
1543 Program names:
1544 --program-prefix=PREFIX prepend PREFIX to installed program names
1545 --program-suffix=SUFFIX append SUFFIX to installed program names
1546 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1547
1548 System types:
1549 --build=BUILD configure for building on BUILD [guessed]
1550 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1551 _ACEOF
1552 fi
1553
1554 if test -n "$ac_init_help"; then
1555 case $ac_init_help in
1556 short | recursive ) echo "Configuration of ladspa-bs2b 0.9.1:";;
1557 esac
1558 cat <<\_ACEOF
1559
1560 Optional Features:
1561 --disable-option-checking ignore unrecognized --enable/--with options
1562 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1563 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1564 --disable-dependency-tracking speeds up one-time build
1565 --enable-dependency-tracking do not reject slow dependency extractors
1566 --enable-static[=PKGS] build static libraries [default=no]
1567 --enable-shared[=PKGS] build shared libraries [default=yes]
1568 --enable-fast-install[=PKGS]
1569 optimize for fast installation [default=yes]
1570 --disable-libtool-lock avoid locking (might break parallel builds)
1571
1572 Optional Packages:
1573 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1574 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1575 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1576 --with-pic try to use only PIC/non-PIC objects [default=use
1577 both]
1578 --with-tags[=TAGS] include additional configurations [automatic]
1579
1580 Some influential environment variables:
1581 CC C compiler command
1582 CFLAGS C compiler flags
1583 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1584 nonstandard directory <lib dir>
1585 LIBS libraries to pass to the linker, e.g. -l<library>
1586 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1587 you have headers in a nonstandard directory <include dir>
1588 CPP C preprocessor
1589 CXX C++ compiler command
1590 CXXFLAGS C++ compiler flags
1591 CXXCPP C++ preprocessor
1592 F77 Fortran 77 compiler command
1593 FFLAGS Fortran 77 compiler flags
1594 PKG_CONFIG path to pkg-config utility
1595 BS2B_CFLAGS C compiler flags for BS2B, overriding pkg-config
1596 BS2B_LIBS linker flags for BS2B, overriding pkg-config
1597
1598 Use these variables to override the choices made by `configure' or to help
1599 it to find libraries and programs with nonstandard names/locations.
1600
1601 Report bugs to <[email protected]>.
1602 _ACEOF
1603 ac_status=$?
1604 fi
1605
1606 if test "$ac_init_help" = "recursive"; then
1607 # If there are subdirs, report their specific --help.
1608 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1609 test -d "$ac_dir" ||
1610 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611 continue
1612 ac_builddir=.
1613
1614 case "$ac_dir" in
1615 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1616 *)
1617 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1618 # A ".." for each directory in $ac_dir_suffix.
1619 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1620 case $ac_top_builddir_sub in
1621 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1622 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1623 esac ;;
1624 esac
1625 ac_abs_top_builddir=$ac_pwd
1626 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1627 # for backward compatibility:
1628 ac_top_builddir=$ac_top_build_prefix
1629
1630 case $srcdir in
1631 .) # We are building in place.
1632 ac_srcdir=.
1633 ac_top_srcdir=$ac_top_builddir_sub
1634 ac_abs_top_srcdir=$ac_pwd ;;
1635 [\\/]* | ?:[\\/]* ) # Absolute name.
1636 ac_srcdir=$srcdir$ac_dir_suffix;
1637 ac_top_srcdir=$srcdir
1638 ac_abs_top_srcdir=$srcdir ;;
1639 *) # Relative name.
1640 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1641 ac_top_srcdir=$ac_top_build_prefix$srcdir
1642 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1643 esac
1644 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1645
1646 cd "$ac_dir" || { ac_status=$?; continue; }
1647 # Check for guested configure.
1648 if test -f "$ac_srcdir/configure.gnu"; then
1649 echo &&
1650 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1651 elif test -f "$ac_srcdir/configure"; then
1652 echo &&
1653 $SHELL "$ac_srcdir/configure" --help=recursive
1654 else
1655 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1656 fi || ac_status=$?
1657 cd "$ac_pwd" || { ac_status=$?; break; }
1658 done
1659 fi
1660
1661 test -n "$ac_init_help" && exit $ac_status
1662 if $ac_init_version; then
1663 cat <<\_ACEOF
1664 ladspa-bs2b configure 0.9.1
1665 generated by GNU Autoconf 2.63
1666
1667 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1668 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1669 This configure script is free software; the Free Software Foundation
1670 gives unlimited permission to copy, distribute and modify it.
1671 _ACEOF
1672 exit
1673 fi
1674 cat >config.log <<_ACEOF
1675 This file contains any messages produced by compilers while
1676 running configure, to aid debugging if configure makes a mistake.
1677
1678 It was created by ladspa-bs2b $as_me 0.9.1, which was
1679 generated by GNU Autoconf 2.63. Invocation command line was
1680
1681 $ $0 $@
1682
1683 _ACEOF
1684 exec 5>>config.log
1685 {
1686 cat <<_ASUNAME
1687 ## --------- ##
1688 ## Platform. ##
1689 ## --------- ##
1690
1691 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1692 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1693 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1694 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1695 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1696
1697 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1698 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1699
1700 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1701 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1702 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1703 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1704 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1705 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1706 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1707
1708 _ASUNAME
1709
1710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1711 for as_dir in $PATH
1712 do
1713 IFS=$as_save_IFS
1714 test -z "$as_dir" && as_dir=.
1715 $as_echo "PATH: $as_dir"
1716 done
1717 IFS=$as_save_IFS
1718
1719 } >&5
1720
1721 cat >&5 <<_ACEOF
1722
1723
1724 ## ----------- ##
1725 ## Core tests. ##
1726 ## ----------- ##
1727
1728 _ACEOF
1729
1730
1731 # Keep a trace of the command line.
1732 # Strip out --no-create and --no-recursion so they do not pile up.
1733 # Strip out --silent because we don't want to record it for future runs.
1734 # Also quote any args containing shell meta-characters.
1735 # Make two passes to allow for proper duplicate-argument suppression.
1736 ac_configure_args=
1737 ac_configure_args0=
1738 ac_configure_args1=
1739 ac_must_keep_next=false
1740 for ac_pass in 1 2
1741 do
1742 for ac_arg
1743 do
1744 case $ac_arg in
1745 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1746 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1747 | -silent | --silent | --silen | --sile | --sil)
1748 continue ;;
1749 *\'*)
1750 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1751 esac
1752 case $ac_pass in
1753 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1754 2)
1755 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1756 if test $ac_must_keep_next = true; then
1757 ac_must_keep_next=false # Got value, back to normal.
1758 else
1759 case $ac_arg in
1760 *=* | --config-cache | -C | -disable-* | --disable-* \
1761 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1762 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1763 | -with-* | --with-* | -without-* | --without-* | --x)
1764 case "$ac_configure_args0 " in
1765 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1766 esac
1767 ;;
1768 -* ) ac_must_keep_next=true ;;
1769 esac
1770 fi
1771 ac_configure_args="$ac_configure_args '$ac_arg'"
1772 ;;
1773 esac
1774 done
1775 done
1776 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1777 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1778
1779 # When interrupted or exit'd, cleanup temporary files, and complete
1780 # config.log. We remove comments because anyway the quotes in there
1781 # would cause problems or look ugly.
1782 # WARNING: Use '\'' to represent an apostrophe within the trap.
1783 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1784 trap 'exit_status=$?
1785 # Save into config.log some information that might help in debugging.
1786 {
1787 echo
1788
1789 cat <<\_ASBOX
1790 ## ---------------- ##
1791 ## Cache variables. ##
1792 ## ---------------- ##
1793 _ASBOX
1794 echo
1795 # The following way of writing the cache mishandles newlines in values,
1796 (
1797 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1798 eval ac_val=\$$ac_var
1799 case $ac_val in #(
1800 *${as_nl}*)
1801 case $ac_var in #(
1802 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1803 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1804 esac
1805 case $ac_var in #(
1806 _ | IFS | as_nl) ;; #(
1807 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1808 *) $as_unset $ac_var ;;
1809 esac ;;
1810 esac
1811 done
1812 (set) 2>&1 |
1813 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1814 *${as_nl}ac_space=\ *)
1815 sed -n \
1816 "s/'\''/'\''\\\\'\'''\''/g;
1817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1818 ;; #(
1819 *)
1820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1821 ;;
1822 esac |
1823 sort
1824 )
1825 echo
1826
1827 cat <<\_ASBOX
1828 ## ----------------- ##
1829 ## Output variables. ##
1830 ## ----------------- ##
1831 _ASBOX
1832 echo
1833 for ac_var in $ac_subst_vars
1834 do
1835 eval ac_val=\$$ac_var
1836 case $ac_val in
1837 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838 esac
1839 $as_echo "$ac_var='\''$ac_val'\''"
1840 done | sort
1841 echo
1842
1843 if test -n "$ac_subst_files"; then
1844 cat <<\_ASBOX
1845 ## ------------------- ##
1846 ## File substitutions. ##
1847 ## ------------------- ##
1848 _ASBOX
1849 echo
1850 for ac_var in $ac_subst_files
1851 do
1852 eval ac_val=\$$ac_var
1853 case $ac_val in
1854 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855 esac
1856 $as_echo "$ac_var='\''$ac_val'\''"
1857 done | sort
1858 echo
1859 fi
1860
1861 if test -s confdefs.h; then
1862 cat <<\_ASBOX
1863 ## ----------- ##
1864 ## confdefs.h. ##
1865 ## ----------- ##
1866 _ASBOX
1867 echo
1868 cat confdefs.h
1869 echo
1870 fi
1871 test "$ac_signal" != 0 &&
1872 $as_echo "$as_me: caught signal $ac_signal"
1873 $as_echo "$as_me: exit $exit_status"
1874 } >&5
1875 rm -f core *.core core.conftest.* &&
1876 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1877 exit $exit_status
1878 ' 0
1879 for ac_signal in 1 2 13 15; do
1880 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1881 done
1882 ac_signal=0
1883
1884 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1885 rm -f -r conftest* confdefs.h
1886
1887 # Predefined preprocessor variables.
1888
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_NAME "$PACKAGE_NAME"
1891 _ACEOF
1892
1893
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1896 _ACEOF
1897
1898
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1901 _ACEOF
1902
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_STRING "$PACKAGE_STRING"
1906 _ACEOF
1907
1908
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1911 _ACEOF
1912
1913
1914 # Let the site file select an alternate cache file if it wants to.
1915 # Prefer an explicitly selected file to automatically selected ones.
1916 ac_site_file1=NONE
1917 ac_site_file2=NONE
1918 if test -n "$CONFIG_SITE"; then
1919 ac_site_file1=$CONFIG_SITE
1920 elif test "x$prefix" != xNONE; then
1921 ac_site_file1=$prefix/share/config.site
1922 ac_site_file2=$prefix/etc/config.site
1923 else
1924 ac_site_file1=$ac_default_prefix/share/config.site
1925 ac_site_file2=$ac_default_prefix/etc/config.site
1926 fi
1927 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1928 do
1929 test "x$ac_site_file" = xNONE && continue
1930 if test -r "$ac_site_file"; then
1931 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1932 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1933 sed 's/^/| /' "$ac_site_file" >&5
1934 . "$ac_site_file"
1935 fi
1936 done
1937
1938 if test -r "$cache_file"; then
1939 # Some versions of bash will fail to source /dev/null (special
1940 # files actually), so we avoid doing that.
1941 if test -f "$cache_file"; then
1942 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1943 $as_echo "$as_me: loading cache $cache_file" >&6;}
1944 case $cache_file in
1945 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1946 *) . "./$cache_file";;
1947 esac
1948 fi
1949 else
1950 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1951 $as_echo "$as_me: creating cache $cache_file" >&6;}
1952 >$cache_file
1953 fi
1954
1955 # Check that the precious variables saved in the cache have kept the same
1956 # value.
1957 ac_cache_corrupted=false
1958 for ac_var in $ac_precious_vars; do
1959 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1960 eval ac_new_set=\$ac_env_${ac_var}_set
1961 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1962 eval ac_new_val=\$ac_env_${ac_var}_value
1963 case $ac_old_set,$ac_new_set in
1964 set,)
1965 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1966 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1967 ac_cache_corrupted=: ;;
1968 ,set)
1969 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1970 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1971 ac_cache_corrupted=: ;;
1972 ,);;
1973 *)
1974 if test "x$ac_old_val" != "x$ac_new_val"; then
1975 # differences in whitespace do not lead to failure.
1976 ac_old_val_w=`echo x $ac_old_val`
1977 ac_new_val_w=`echo x $ac_new_val`
1978 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1979 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1980 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1981 ac_cache_corrupted=:
1982 else
1983 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1984 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1985 eval $ac_var=\$ac_old_val
1986 fi
1987 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1988 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1989 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1990 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1991 fi;;
1992 esac
1993 # Pass precious variables to config.status.
1994 if test "$ac_new_set" = set; then
1995 case $ac_new_val in
1996 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1997 *) ac_arg=$ac_var=$ac_new_val ;;
1998 esac
1999 case " $ac_configure_args " in
2000 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2001 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
2002 esac
2003 fi
2004 done
2005 if $ac_cache_corrupted; then
2006 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2008 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
2009 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2010 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
2011 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
2012 { (exit 1); exit 1; }; }
2013 fi
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
2027
2028
2029
2030
2031
2032
2033
2034
2035
2036
2037
2038
2039 ac_ext=c
2040 ac_cpp='$CPP $CPPFLAGS'
2041 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2042 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2043 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2044
2045
2046 ac_aux_dir=
2047 for ac_dir in build-aux "$srcdir"/build-aux; do
2048 if test -f "$ac_dir/install-sh"; then
2049 ac_aux_dir=$ac_dir
2050 ac_install_sh="$ac_aux_dir/install-sh -c"
2051 break
2052 elif test -f "$ac_dir/install.sh"; then
2053 ac_aux_dir=$ac_dir
2054 ac_install_sh="$ac_aux_dir/install.sh -c"
2055 break
2056 elif test -f "$ac_dir/shtool"; then
2057 ac_aux_dir=$ac_dir
2058 ac_install_sh="$ac_aux_dir/shtool install -c"
2059 break
2060 fi
2061 done
2062 if test -z "$ac_aux_dir"; then
2063 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&5
2064 $as_echo "$as_me: error: cannot find install-sh or install.sh in build-aux \"$srcdir\"/build-aux" >&2;}
2065 { (exit 1); exit 1; }; }
2066 fi
2067
2068 # These three variables are undocumented and unsupported,
2069 # and are intended to be withdrawn in a future Autoconf release.
2070 # They can cause serious problems if a builder's source tree is in a directory
2071 # whose full name contains unusual characters.
2072 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2073 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2074 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2075
2076
2077 am__api_version='1.10'
2078
2079 # Find a good install program. We prefer a C program (faster),
2080 # so one script is as good as another. But avoid the broken or
2081 # incompatible versions:
2082 # SysV /etc/install, /usr/sbin/install
2083 # SunOS /usr/etc/install
2084 # IRIX /sbin/install
2085 # AIX /bin/install
2086 # AmigaOS /C/install, which installs bootblocks on floppy discs
2087 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2088 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2089 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2090 # OS/2's system install, which has a completely different semantic
2091 # ./install, which can be erroneously created by make from ./install.sh.
2092 # Reject install programs that cannot install multiple files.
2093 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2094 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2095 if test -z "$INSTALL"; then
2096 if test "${ac_cv_path_install+set}" = set; then
2097 $as_echo_n "(cached) " >&6
2098 else
2099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2100 for as_dir in $PATH
2101 do
2102 IFS=$as_save_IFS
2103 test -z "$as_dir" && as_dir=.
2104 # Account for people who put trailing slashes in PATH elements.
2105 case $as_dir/ in
2106 ./ | .// | /cC/* | \
2107 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2108 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2109 /usr/ucb/* ) ;;
2110 *)
2111 # OSF1 and SCO ODT 3.0 have their own names for install.
2112 # Don't use installbsd from OSF since it installs stuff as root
2113 # by default.
2114 for ac_prog in ginstall scoinst install; do
2115 for ac_exec_ext in '' $ac_executable_extensions; do
2116 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2117 if test $ac_prog = install &&
2118 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2119 # AIX install. It has an incompatible calling convention.
2120 :
2121 elif test $ac_prog = install &&
2122 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2123 # program-specific install script used by HP pwplus--don't use.
2124 :
2125 else
2126 rm -rf conftest.one conftest.two conftest.dir
2127 echo one > conftest.one
2128 echo two > conftest.two
2129 mkdir conftest.dir
2130 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2131 test -s conftest.one && test -s conftest.two &&
2132 test -s conftest.dir/conftest.one &&
2133 test -s conftest.dir/conftest.two
2134 then
2135 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2136 break 3
2137 fi
2138 fi
2139 fi
2140 done
2141 done
2142 ;;
2143 esac
2144
2145 done
2146 IFS=$as_save_IFS
2147
2148 rm -rf conftest.one conftest.two conftest.dir
2149
2150 fi
2151 if test "${ac_cv_path_install+set}" = set; then
2152 INSTALL=$ac_cv_path_install
2153 else
2154 # As a last resort, use the slow shell script. Don't cache a
2155 # value for INSTALL within a source directory, because that will
2156 # break other packages using the cache if that directory is
2157 # removed, or if the value is a relative name.
2158 INSTALL=$ac_install_sh
2159 fi
2160 fi
2161 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
2162 $as_echo "$INSTALL" >&6; }
2163
2164 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2165 # It thinks the first close brace ends the variable substitution.
2166 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2167
2168 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2169
2170 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2171
2172 { $as_echo "$as_me:$LINENO: checking whether build environment is sane" >&5
2173 $as_echo_n "checking whether build environment is sane... " >&6; }
2174 # Just in case
2175 sleep 1
2176 echo timestamp > conftest.file
2177 # Do `set' in a subshell so we don't clobber the current shell's
2178 # arguments. Must try -L first in case configure is actually a
2179 # symlink; some systems play weird games with the mod time of symlinks
2180 # (eg FreeBSD returns the mod time of the symlink's containing
2181 # directory).
2182 if (
2183 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
2184 if test "$*" = "X"; then
2185 # -L didn't work.
2186 set X `ls -t $srcdir/configure conftest.file`
2187 fi
2188 rm -f conftest.file
2189 if test "$*" != "X $srcdir/configure conftest.file" \
2190 && test "$*" != "X conftest.file $srcdir/configure"; then
2191
2192 # If neither matched, then we have a broken ls. This can happen
2193 # if, for instance, CONFIG_SHELL is bash and it inherits a
2194 # broken ls alias from the environment. This has actually
2195 # happened. Such a system could not be considered "sane".
2196 { { $as_echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
2197 alias in your environment" >&5
2198 $as_echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
2199 alias in your environment" >&2;}
2200 { (exit 1); exit 1; }; }
2201 fi
2202
2203 test "$2" = conftest.file
2204 )
2205 then
2206 # Ok.
2207 :
2208 else
2209 { { $as_echo "$as_me:$LINENO: error: newly created file is older than distributed files!
2210 Check your system clock" >&5
2211 $as_echo "$as_me: error: newly created file is older than distributed files!
2212 Check your system clock" >&2;}
2213 { (exit 1); exit 1; }; }
2214 fi
2215 { $as_echo "$as_me:$LINENO: result: yes" >&5
2216 $as_echo "yes" >&6; }
2217 test "$program_prefix" != NONE &&
2218 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2219 # Use a double $ so make ignores it.
2220 test "$program_suffix" != NONE &&
2221 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2222 # Double any \ or $.
2223 # By default was `s,x,x', remove it if useless.
2224 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2225 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2226
2227 # expand $ac_aux_dir to an absolute path
2228 am_aux_dir=`cd $ac_aux_dir && pwd`
2229
2230 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
2231 # Use eval to expand $SHELL
2232 if eval "$MISSING --run true"; then
2233 am_missing_run="$MISSING --run "
2234 else
2235 am_missing_run=
2236 { $as_echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
2237 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2238 fi
2239
2240 { $as_echo "$as_me:$LINENO: checking for a thread-safe mkdir -p" >&5
2241 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2242 if test -z "$MKDIR_P"; then
2243 if test "${ac_cv_path_mkdir+set}" = set; then
2244 $as_echo_n "(cached) " >&6
2245 else
2246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2247 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2248 do
2249 IFS=$as_save_IFS
2250 test -z "$as_dir" && as_dir=.
2251 for ac_prog in mkdir gmkdir; do
2252 for ac_exec_ext in '' $ac_executable_extensions; do
2253 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2254 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2255 'mkdir (GNU coreutils) '* | \
2256 'mkdir (coreutils) '* | \
2257 'mkdir (fileutils) '4.1*)
2258 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2259 break 3;;
2260 esac
2261 done
2262 done
2263 done
2264 IFS=$as_save_IFS
2265
2266 fi
2267
2268 if test "${ac_cv_path_mkdir+set}" = set; then
2269 MKDIR_P="$ac_cv_path_mkdir -p"
2270 else
2271 # As a last resort, use the slow shell script. Don't cache a
2272 # value for MKDIR_P within a source directory, because that will
2273 # break other packages using the cache if that directory is
2274 # removed, or if the value is a relative name.
2275 test -d ./--version && rmdir ./--version
2276 MKDIR_P="$ac_install_sh -d"
2277 fi
2278 fi
2279 { $as_echo "$as_me:$LINENO: result: $MKDIR_P" >&5
2280 $as_echo "$MKDIR_P" >&6; }
2281
2282 mkdir_p="$MKDIR_P"
2283 case $mkdir_p in
2284 [\\/$]* | ?:[\\/]*) ;;
2285 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2286 esac
2287
2288 for ac_prog in gawk mawk nawk awk
2289 do
2290 # Extract the first word of "$ac_prog", so it can be a program name with args.
2291 set dummy $ac_prog; ac_word=$2
2292 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2293 $as_echo_n "checking for $ac_word... " >&6; }
2294 if test "${ac_cv_prog_AWK+set}" = set; then
2295 $as_echo_n "(cached) " >&6
2296 else
2297 if test -n "$AWK"; then
2298 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2299 else
2300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2301 for as_dir in $PATH
2302 do
2303 IFS=$as_save_IFS
2304 test -z "$as_dir" && as_dir=.
2305 for ac_exec_ext in '' $ac_executable_extensions; do
2306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2307 ac_cv_prog_AWK="$ac_prog"
2308 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2309 break 2
2310 fi
2311 done
2312 done
2313 IFS=$as_save_IFS
2314
2315 fi
2316 fi
2317 AWK=$ac_cv_prog_AWK
2318 if test -n "$AWK"; then
2319 { $as_echo "$as_me:$LINENO: result: $AWK" >&5
2320 $as_echo "$AWK" >&6; }
2321 else
2322 { $as_echo "$as_me:$LINENO: result: no" >&5
2323 $as_echo "no" >&6; }
2324 fi
2325
2326
2327 test -n "$AWK" && break
2328 done
2329
2330 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2331 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2332 set x ${MAKE-make}
2333 ac_make=`$as_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 $as_echo_n "(cached) " >&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 { $as_echo "$as_me:$LINENO: result: yes" >&5
2353 $as_echo "yes" >&6; }
2354 SET_MAKE=
2355 else
2356 { $as_echo "$as_me:$LINENO: result: no" >&5
2357 $as_echo "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 { { $as_echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2377 $as_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='ladspa-bs2b'
2394 VERSION='0.9.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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2433 $as_echo_n "checking for $ac_word... " >&6; }
2434 if test "${ac_cv_prog_STRIP+set}" = set; then
2435 $as_echo_n "(cached) " >&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 $as_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 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
2460 $as_echo "$STRIP" >&6; }
2461 else
2462 { $as_echo "$as_me:$LINENO: result: no" >&5
2463 $as_echo "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 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2473 $as_echo_n "checking for $ac_word... " >&6; }
2474 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2475 $as_echo_n "(cached) " >&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 $as_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 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2500 $as_echo "$ac_ct_STRIP" >&6; }
2501 else
2502 { $as_echo "$as_me:$LINENO: result: no" >&5
2503 $as_echo "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 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2512 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2513 ac_tool_warned=yes ;;
2514 esac
2515 STRIP=$ac_ct_STRIP
2516 fi
2517 else
2518 STRIP="$ac_cv_prog_STRIP"
2519 fi
2520
2521 fi
2522 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2523
2524 # We need awk for the "check" target. The system "awk" is bad on
2525 # some platforms.
2526 # Always define AMTAR for backward compatibility.
2527
2528 AMTAR=${AMTAR-"${am_missing_run}tar"}
2529
2530 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2531
2532
2533
2534
2535
2536
2537 ac_config_headers="$ac_config_headers config.h"
2538
2539
2540 # Checks for programs.
2541 ac_ext=c
2542 ac_cpp='$CPP $CPPFLAGS'
2543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2546 if test -n "$ac_tool_prefix"; then
2547 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2548 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2549 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2550 $as_echo_n "checking for $ac_word... " >&6; }
2551 if test "${ac_cv_prog_CC+set}" = set; then
2552 $as_echo_n "(cached) " >&6
2553 else
2554 if test -n "$CC"; then
2555 ac_cv_prog_CC="$CC" # Let the user override the test.
2556 else
2557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2558 for as_dir in $PATH
2559 do
2560 IFS=$as_save_IFS
2561 test -z "$as_dir" && as_dir=.
2562 for ac_exec_ext in '' $ac_executable_extensions; do
2563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2564 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2566 break 2
2567 fi
2568 done
2569 done
2570 IFS=$as_save_IFS
2571
2572 fi
2573 fi
2574 CC=$ac_cv_prog_CC
2575 if test -n "$CC"; then
2576 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2577 $as_echo "$CC" >&6; }
2578 else
2579 { $as_echo "$as_me:$LINENO: result: no" >&5
2580 $as_echo "no" >&6; }
2581 fi
2582
2583
2584 fi
2585 if test -z "$ac_cv_prog_CC"; then
2586 ac_ct_CC=$CC
2587 # Extract the first word of "gcc", so it can be a program name with args.
2588 set dummy gcc; ac_word=$2
2589 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2590 $as_echo_n "checking for $ac_word... " >&6; }
2591 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2592 $as_echo_n "(cached) " >&6
2593 else
2594 if test -n "$ac_ct_CC"; then
2595 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2596 else
2597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2598 for as_dir in $PATH
2599 do
2600 IFS=$as_save_IFS
2601 test -z "$as_dir" && as_dir=.
2602 for ac_exec_ext in '' $ac_executable_extensions; do
2603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2604 ac_cv_prog_ac_ct_CC="gcc"
2605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2606 break 2
2607 fi
2608 done
2609 done
2610 IFS=$as_save_IFS
2611
2612 fi
2613 fi
2614 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2615 if test -n "$ac_ct_CC"; then
2616 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2617 $as_echo "$ac_ct_CC" >&6; }
2618 else
2619 { $as_echo "$as_me:$LINENO: result: no" >&5
2620 $as_echo "no" >&6; }
2621 fi
2622
2623 if test "x$ac_ct_CC" = x; then
2624 CC=""
2625 else
2626 case $cross_compiling:$ac_tool_warned in
2627 yes:)
2628 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2630 ac_tool_warned=yes ;;
2631 esac
2632 CC=$ac_ct_CC
2633 fi
2634 else
2635 CC="$ac_cv_prog_CC"
2636 fi
2637
2638 if test -z "$CC"; then
2639 if test -n "$ac_tool_prefix"; then
2640 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2641 set dummy ${ac_tool_prefix}cc; ac_word=$2
2642 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2643 $as_echo_n "checking for $ac_word... " >&6; }
2644 if test "${ac_cv_prog_CC+set}" = set; then
2645 $as_echo_n "(cached) " >&6
2646 else
2647 if test -n "$CC"; then
2648 ac_cv_prog_CC="$CC" # Let the user override the test.
2649 else
2650 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2651 for as_dir in $PATH
2652 do
2653 IFS=$as_save_IFS
2654 test -z "$as_dir" && as_dir=.
2655 for ac_exec_ext in '' $ac_executable_extensions; do
2656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2657 ac_cv_prog_CC="${ac_tool_prefix}cc"
2658 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2659 break 2
2660 fi
2661 done
2662 done
2663 IFS=$as_save_IFS
2664
2665 fi
2666 fi
2667 CC=$ac_cv_prog_CC
2668 if test -n "$CC"; then
2669 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2670 $as_echo "$CC" >&6; }
2671 else
2672 { $as_echo "$as_me:$LINENO: result: no" >&5
2673 $as_echo "no" >&6; }
2674 fi
2675
2676
2677 fi
2678 fi
2679 if test -z "$CC"; then
2680 # Extract the first word of "cc", so it can be a program name with args.
2681 set dummy cc; ac_word=$2
2682 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2683 $as_echo_n "checking for $ac_word... " >&6; }
2684 if test "${ac_cv_prog_CC+set}" = set; then
2685 $as_echo_n "(cached) " >&6
2686 else
2687 if test -n "$CC"; then
2688 ac_cv_prog_CC="$CC" # Let the user override the test.
2689 else
2690 ac_prog_rejected=no
2691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2692 for as_dir in $PATH
2693 do
2694 IFS=$as_save_IFS
2695 test -z "$as_dir" && as_dir=.
2696 for ac_exec_ext in '' $ac_executable_extensions; do
2697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2698 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2699 ac_prog_rejected=yes
2700 continue
2701 fi
2702 ac_cv_prog_CC="cc"
2703 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2704 break 2
2705 fi
2706 done
2707 done
2708 IFS=$as_save_IFS
2709
2710 if test $ac_prog_rejected = yes; then
2711 # We found a bogon in the path, so make sure we never use it.
2712 set dummy $ac_cv_prog_CC
2713 shift
2714 if test $# != 0; then
2715 # We chose a different compiler from the bogus one.
2716 # However, it has the same basename, so the bogon will be chosen
2717 # first if we set CC to just the basename; use the full file name.
2718 shift
2719 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2720 fi
2721 fi
2722 fi
2723 fi
2724 CC=$ac_cv_prog_CC
2725 if test -n "$CC"; then
2726 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2727 $as_echo "$CC" >&6; }
2728 else
2729 { $as_echo "$as_me:$LINENO: result: no" >&5
2730 $as_echo "no" >&6; }
2731 fi
2732
2733
2734 fi
2735 if test -z "$CC"; then
2736 if test -n "$ac_tool_prefix"; then
2737 for ac_prog in cl.exe
2738 do
2739 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2740 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2741 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2742 $as_echo_n "checking for $ac_word... " >&6; }
2743 if test "${ac_cv_prog_CC+set}" = set; then
2744 $as_echo_n "(cached) " >&6
2745 else
2746 if test -n "$CC"; then
2747 ac_cv_prog_CC="$CC" # Let the user override the test.
2748 else
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 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2757 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2758 break 2
2759 fi
2760 done
2761 done
2762 IFS=$as_save_IFS
2763
2764 fi
2765 fi
2766 CC=$ac_cv_prog_CC
2767 if test -n "$CC"; then
2768 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2769 $as_echo "$CC" >&6; }
2770 else
2771 { $as_echo "$as_me:$LINENO: result: no" >&5
2772 $as_echo "no" >&6; }
2773 fi
2774
2775
2776 test -n "$CC" && break
2777 done
2778 fi
2779 if test -z "$CC"; then
2780 ac_ct_CC=$CC
2781 for ac_prog in cl.exe
2782 do
2783 # Extract the first word of "$ac_prog", so it can be a program name with args.
2784 set dummy $ac_prog; ac_word=$2
2785 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2786 $as_echo_n "checking for $ac_word... " >&6; }
2787 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2788 $as_echo_n "(cached) " >&6
2789 else
2790 if test -n "$ac_ct_CC"; then
2791 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2792 else
2793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2794 for as_dir in $PATH
2795 do
2796 IFS=$as_save_IFS
2797 test -z "$as_dir" && as_dir=.
2798 for ac_exec_ext in '' $ac_executable_extensions; do
2799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2800 ac_cv_prog_ac_ct_CC="$ac_prog"
2801 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2802 break 2
2803 fi
2804 done
2805 done
2806 IFS=$as_save_IFS
2807
2808 fi
2809 fi
2810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2811 if test -n "$ac_ct_CC"; then
2812 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2813 $as_echo "$ac_ct_CC" >&6; }
2814 else
2815 { $as_echo "$as_me:$LINENO: result: no" >&5
2816 $as_echo "no" >&6; }
2817 fi
2818
2819
2820 test -n "$ac_ct_CC" && break
2821 done
2822
2823 if test "x$ac_ct_CC" = x; then
2824 CC=""
2825 else
2826 case $cross_compiling:$ac_tool_warned in
2827 yes:)
2828 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2829 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2830 ac_tool_warned=yes ;;
2831 esac
2832 CC=$ac_ct_CC
2833 fi
2834 fi
2835
2836 fi
2837
2838
2839 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2840 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2841 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2842 See \`config.log' for more details." >&5
2843 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2844 See \`config.log' for more details." >&2;}
2845 { (exit 1); exit 1; }; }; }
2846
2847 # Provide some information about the compiler.
2848 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2849 set X $ac_compile
2850 ac_compiler=$2
2851 { (ac_try="$ac_compiler --version >&5"
2852 case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855 esac
2856 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2857 $as_echo "$ac_try_echo") >&5
2858 (eval "$ac_compiler --version >&5") 2>&5
2859 ac_status=$?
2860 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861 (exit $ac_status); }
2862 { (ac_try="$ac_compiler -v >&5"
2863 case "(($ac_try" in
2864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865 *) ac_try_echo=$ac_try;;
2866 esac
2867 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2868 $as_echo "$ac_try_echo") >&5
2869 (eval "$ac_compiler -v >&5") 2>&5
2870 ac_status=$?
2871 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2872 (exit $ac_status); }
2873 { (ac_try="$ac_compiler -V >&5"
2874 case "(($ac_try" in
2875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876 *) ac_try_echo=$ac_try;;
2877 esac
2878 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2879 $as_echo "$ac_try_echo") >&5
2880 (eval "$ac_compiler -V >&5") 2>&5
2881 ac_status=$?
2882 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }
2884
2885 cat >conftest.$ac_ext <<_ACEOF
2886 /* confdefs.h. */
2887 _ACEOF
2888 cat confdefs.h >>conftest.$ac_ext
2889 cat >>conftest.$ac_ext <<_ACEOF
2890 /* end confdefs.h. */
2891
2892 int
2893 main ()
2894 {
2895
2896 ;
2897 return 0;
2898 }
2899 _ACEOF
2900 ac_clean_files_save=$ac_clean_files
2901 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2902 # Try to create an executable without -o first, disregard a.out.
2903 # It will help us diagnose broken compilers, and finding out an intuition
2904 # of exeext.
2905 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2906 $as_echo_n "checking for C compiler default output file name... " >&6; }
2907 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2908
2909 # The possible output files:
2910 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2911
2912 ac_rmfiles=
2913 for ac_file in $ac_files
2914 do
2915 case $ac_file in
2916 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2917 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2918 esac
2919 done
2920 rm -f $ac_rmfiles
2921
2922 if { (ac_try="$ac_link_default"
2923 case "(($ac_try" in
2924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2925 *) ac_try_echo=$ac_try;;
2926 esac
2927 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2928 $as_echo "$ac_try_echo") >&5
2929 (eval "$ac_link_default") 2>&5
2930 ac_status=$?
2931 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2932 (exit $ac_status); }; then
2933 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2934 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2935 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2936 # so that the user can short-circuit this test for compilers unknown to
2937 # Autoconf.
2938 for ac_file in $ac_files ''
2939 do
2940 test -f "$ac_file" || continue
2941 case $ac_file in
2942 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2943 ;;
2944 [ab].out )
2945 # We found the default executable, but exeext='' is most
2946 # certainly right.
2947 break;;
2948 *.* )
2949 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2950 then :; else
2951 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2952 fi
2953 # We set ac_cv_exeext here because the later test for it is not
2954 # safe: cross compilers may not add the suffix if given an `-o'
2955 # argument, so we may need to know it at that point already.
2956 # Even if this section looks crufty: it has the advantage of
2957 # actually working.
2958 break;;
2959 * )
2960 break;;
2961 esac
2962 done
2963 test "$ac_cv_exeext" = no && ac_cv_exeext=
2964
2965 else
2966 ac_file=''
2967 fi
2968
2969 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2970 $as_echo "$ac_file" >&6; }
2971 if test -z "$ac_file"; then
2972 $as_echo "$as_me: failed program was:" >&5
2973 sed 's/^/| /' conftest.$ac_ext >&5
2974
2975 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2976 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2977 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2978 See \`config.log' for more details." >&5
2979 $as_echo "$as_me: error: C compiler cannot create executables
2980 See \`config.log' for more details." >&2;}
2981 { (exit 77); exit 77; }; }; }
2982 fi
2983
2984 ac_exeext=$ac_cv_exeext
2985
2986 # Check that the compiler produces executables we can run. If not, either
2987 # the compiler is broken, or we cross compile.
2988 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2989 $as_echo_n "checking whether the C compiler works... " >&6; }
2990 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2991 # If not cross compiling, check that we can run a simple program.
2992 if test "$cross_compiling" != yes; then
2993 if { ac_try='./$ac_file'
2994 { (case "(($ac_try" in
2995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2996 *) ac_try_echo=$ac_try;;
2997 esac
2998 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2999 $as_echo "$ac_try_echo") >&5
3000 (eval "$ac_try") 2>&5
3001 ac_status=$?
3002 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3003 (exit $ac_status); }; }; then
3004 cross_compiling=no
3005 else
3006 if test "$cross_compiling" = maybe; then
3007 cross_compiling=yes
3008 else
3009 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3010 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3011 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
3012 If you meant to cross compile, use \`--host'.
3013 See \`config.log' for more details." >&5
3014 $as_echo "$as_me: error: cannot run C compiled programs.
3015 If you meant to cross compile, use \`--host'.
3016 See \`config.log' for more details." >&2;}
3017 { (exit 1); exit 1; }; }; }
3018 fi
3019 fi
3020 fi
3021 { $as_echo "$as_me:$LINENO: result: yes" >&5
3022 $as_echo "yes" >&6; }
3023
3024 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3025 ac_clean_files=$ac_clean_files_save
3026 # Check that the compiler produces executables we can run. If not, either
3027 # the compiler is broken, or we cross compile.
3028 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3029 $as_echo_n "checking whether we are cross compiling... " >&6; }
3030 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
3031 $as_echo "$cross_compiling" >&6; }
3032
3033 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
3034 $as_echo_n "checking for suffix of executables... " >&6; }
3035 if { (ac_try="$ac_link"
3036 case "(($ac_try" in
3037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3038 *) ac_try_echo=$ac_try;;
3039 esac
3040 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3041 $as_echo "$ac_try_echo") >&5
3042 (eval "$ac_link") 2>&5
3043 ac_status=$?
3044 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3045 (exit $ac_status); }; then
3046 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3047 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3048 # work properly (i.e., refer to `conftest.exe'), while it won't with
3049 # `rm'.
3050 for ac_file in conftest.exe conftest conftest.*; do
3051 test -f "$ac_file" || continue
3052 case $ac_file in
3053 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3054 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3055 break;;
3056 * ) break;;
3057 esac
3058 done
3059 else
3060 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3061 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3062 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3063 See \`config.log' for more details." >&5
3064 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3065 See \`config.log' for more details." >&2;}
3066 { (exit 1); exit 1; }; }; }
3067 fi
3068
3069 rm -f conftest$ac_cv_exeext
3070 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3071 $as_echo "$ac_cv_exeext" >&6; }
3072
3073 rm -f conftest.$ac_ext
3074 EXEEXT=$ac_cv_exeext
3075 ac_exeext=$EXEEXT
3076 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
3077 $as_echo_n "checking for suffix of object files... " >&6; }
3078 if test "${ac_cv_objext+set}" = set; then
3079 $as_echo_n "(cached) " >&6
3080 else
3081 cat >conftest.$ac_ext <<_ACEOF
3082 /* confdefs.h. */
3083 _ACEOF
3084 cat confdefs.h >>conftest.$ac_ext
3085 cat >>conftest.$ac_ext <<_ACEOF
3086 /* end confdefs.h. */
3087
3088 int
3089 main ()
3090 {
3091
3092 ;
3093 return 0;
3094 }
3095 _ACEOF
3096 rm -f conftest.o conftest.obj
3097 if { (ac_try="$ac_compile"
3098 case "(($ac_try" in
3099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3100 *) ac_try_echo=$ac_try;;
3101 esac
3102 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3103 $as_echo "$ac_try_echo") >&5
3104 (eval "$ac_compile") 2>&5
3105 ac_status=$?
3106 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3107 (exit $ac_status); }; then
3108 for ac_file in conftest.o conftest.obj conftest.*; do
3109 test -f "$ac_file" || continue;
3110 case $ac_file in
3111 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3112 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3113 break;;
3114 esac
3115 done
3116 else
3117 $as_echo "$as_me: failed program was:" >&5
3118 sed 's/^/| /' conftest.$ac_ext >&5
3119
3120 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
3121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3123 See \`config.log' for more details." >&5
3124 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
3125 See \`config.log' for more details." >&2;}
3126 { (exit 1); exit 1; }; }; }
3127 fi
3128
3129 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3130 fi
3131 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3132 $as_echo "$ac_cv_objext" >&6; }
3133 OBJEXT=$ac_cv_objext
3134 ac_objext=$OBJEXT
3135 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3136 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3137 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3138 $as_echo_n "(cached) " >&6
3139 else
3140 cat >conftest.$ac_ext <<_ACEOF
3141 /* confdefs.h. */
3142 _ACEOF
3143 cat confdefs.h >>conftest.$ac_ext
3144 cat >>conftest.$ac_ext <<_ACEOF
3145 /* end confdefs.h. */
3146
3147 int
3148 main ()
3149 {
3150 #ifndef __GNUC__
3151 choke me
3152 #endif
3153
3154 ;
3155 return 0;
3156 }
3157 _ACEOF
3158 rm -f conftest.$ac_objext
3159 if { (ac_try="$ac_compile"
3160 case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163 esac
3164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3165 $as_echo "$ac_try_echo") >&5
3166 (eval "$ac_compile") 2>conftest.er1
3167 ac_status=$?
3168 grep -v '^ *+' conftest.er1 >conftest.err
3169 rm -f conftest.er1
3170 cat conftest.err >&5
3171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3172 (exit $ac_status); } && {
3173 test -z "$ac_c_werror_flag" ||
3174 test ! -s conftest.err
3175 } && test -s conftest.$ac_objext; then
3176 ac_compiler_gnu=yes
3177 else
3178 $as_echo "$as_me: failed program was:" >&5
3179 sed 's/^/| /' conftest.$ac_ext >&5
3180
3181 ac_compiler_gnu=no
3182 fi
3183
3184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3185 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3186
3187 fi
3188 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3189 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3190 if test $ac_compiler_gnu = yes; then
3191 GCC=yes
3192 else
3193 GCC=
3194 fi
3195 ac_test_CFLAGS=${CFLAGS+set}
3196 ac_save_CFLAGS=$CFLAGS
3197 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3198 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3199 if test "${ac_cv_prog_cc_g+set}" = set; then
3200 $as_echo_n "(cached) " >&6
3201 else
3202 ac_save_c_werror_flag=$ac_c_werror_flag
3203 ac_c_werror_flag=yes
3204 ac_cv_prog_cc_g=no
3205 CFLAGS="-g"
3206 cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h. */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212
3213 int
3214 main ()
3215 {
3216
3217 ;
3218 return 0;
3219 }
3220 _ACEOF
3221 rm -f conftest.$ac_objext
3222 if { (ac_try="$ac_compile"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3228 $as_echo "$ac_try_echo") >&5
3229 (eval "$ac_compile") 2>conftest.er1
3230 ac_status=$?
3231 grep -v '^ *+' conftest.er1 >conftest.err
3232 rm -f conftest.er1
3233 cat conftest.err >&5
3234 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3235 (exit $ac_status); } && {
3236 test -z "$ac_c_werror_flag" ||
3237 test ! -s conftest.err
3238 } && test -s conftest.$ac_objext; then
3239 ac_cv_prog_cc_g=yes
3240 else
3241 $as_echo "$as_me: failed program was:" >&5
3242 sed 's/^/| /' conftest.$ac_ext >&5
3243
3244 CFLAGS=""
3245 cat >conftest.$ac_ext <<_ACEOF
3246 /* confdefs.h. */
3247 _ACEOF
3248 cat confdefs.h >>conftest.$ac_ext
3249 cat >>conftest.$ac_ext <<_ACEOF
3250 /* end confdefs.h. */
3251
3252 int
3253 main ()
3254 {
3255
3256 ;
3257 return 0;
3258 }
3259 _ACEOF
3260 rm -f conftest.$ac_objext
3261 if { (ac_try="$ac_compile"
3262 case "(($ac_try" in
3263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3264 *) ac_try_echo=$ac_try;;
3265 esac
3266 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3267 $as_echo "$ac_try_echo") >&5
3268 (eval "$ac_compile") 2>conftest.er1
3269 ac_status=$?
3270 grep -v '^ *+' conftest.er1 >conftest.err
3271 rm -f conftest.er1
3272 cat conftest.err >&5
3273 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3274 (exit $ac_status); } && {
3275 test -z "$ac_c_werror_flag" ||
3276 test ! -s conftest.err
3277 } && test -s conftest.$ac_objext; then
3278 :
3279 else
3280 $as_echo "$as_me: failed program was:" >&5
3281 sed 's/^/| /' conftest.$ac_ext >&5
3282
3283 ac_c_werror_flag=$ac_save_c_werror_flag
3284 CFLAGS="-g"
3285 cat >conftest.$ac_ext <<_ACEOF
3286 /* confdefs.h. */
3287 _ACEOF
3288 cat confdefs.h >>conftest.$ac_ext
3289 cat >>conftest.$ac_ext <<_ACEOF
3290 /* end confdefs.h. */
3291
3292 int
3293 main ()
3294 {
3295
3296 ;
3297 return 0;
3298 }
3299 _ACEOF
3300 rm -f conftest.$ac_objext
3301 if { (ac_try="$ac_compile"
3302 case "(($ac_try" in
3303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3304 *) ac_try_echo=$ac_try;;
3305 esac
3306 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3307 $as_echo "$ac_try_echo") >&5
3308 (eval "$ac_compile") 2>conftest.er1
3309 ac_status=$?
3310 grep -v '^ *+' conftest.er1 >conftest.err
3311 rm -f conftest.er1
3312 cat conftest.err >&5
3313 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3314 (exit $ac_status); } && {
3315 test -z "$ac_c_werror_flag" ||
3316 test ! -s conftest.err
3317 } && test -s conftest.$ac_objext; then
3318 ac_cv_prog_cc_g=yes
3319 else
3320 $as_echo "$as_me: failed program was:" >&5
3321 sed 's/^/| /' conftest.$ac_ext >&5
3322
3323
3324 fi
3325
3326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3327 fi
3328
3329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3330 fi
3331
3332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3333 ac_c_werror_flag=$ac_save_c_werror_flag
3334 fi
3335 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3336 $as_echo "$ac_cv_prog_cc_g" >&6; }
3337 if test "$ac_test_CFLAGS" = set; then
3338 CFLAGS=$ac_save_CFLAGS
3339 elif test $ac_cv_prog_cc_g = yes; then
3340 if test "$GCC" = yes; then
3341 CFLAGS="-g -O2"
3342 else
3343 CFLAGS="-g"
3344 fi
3345 else
3346 if test "$GCC" = yes; then
3347 CFLAGS="-O2"
3348 else
3349 CFLAGS=
3350 fi
3351 fi
3352 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3353 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3354 if test "${ac_cv_prog_cc_c89+set}" = set; then
3355 $as_echo_n "(cached) " >&6
3356 else
3357 ac_cv_prog_cc_c89=no
3358 ac_save_CC=$CC
3359 cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h. */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h. */
3365 #include <stdarg.h>
3366 #include <stdio.h>
3367 #include <sys/types.h>
3368 #include <sys/stat.h>
3369 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3370 struct buf { int x; };
3371 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3372 static char *e (p, i)
3373 char **p;
3374 int i;
3375 {
3376 return p[i];
3377 }
3378 static char *f (char * (*g) (char **, int), char **p, ...)
3379 {
3380 char *s;
3381 va_list v;
3382 va_start (v,p);
3383 s = g (p, va_arg (v,int));
3384 va_end (v);
3385 return s;
3386 }
3387
3388 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3389 function prototypes and stuff, but not '\xHH' hex character constants.
3390 These don't provoke an error unfortunately, instead are silently treated
3391 as 'x'. The following induces an error, until -std is added to get
3392 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3393 array size at least. It's necessary to write '\x00'==0 to get something
3394 that's true only with -std. */
3395 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3396
3397 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3398 inside strings and character constants. */
3399 #define FOO(x) 'x'
3400 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3401
3402 int test (int i, double x);
3403 struct s1 {int (*f) (int a);};
3404 struct s2 {int (*f) (double a);};
3405 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3406 int argc;
3407 char **argv;
3408 int
3409 main ()
3410 {
3411 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3412 ;
3413 return 0;
3414 }
3415 _ACEOF
3416 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3417 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3418 do
3419 CC="$ac_save_CC $ac_arg"
3420 rm -f conftest.$ac_objext
3421 if { (ac_try="$ac_compile"
3422 case "(($ac_try" in
3423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3424 *) ac_try_echo=$ac_try;;
3425 esac
3426 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3427 $as_echo "$ac_try_echo") >&5
3428 (eval "$ac_compile") 2>conftest.er1
3429 ac_status=$?
3430 grep -v '^ *+' conftest.er1 >conftest.err
3431 rm -f conftest.er1
3432 cat conftest.err >&5
3433 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3434 (exit $ac_status); } && {
3435 test -z "$ac_c_werror_flag" ||
3436 test ! -s conftest.err
3437 } && test -s conftest.$ac_objext; then
3438 ac_cv_prog_cc_c89=$ac_arg
3439 else
3440 $as_echo "$as_me: failed program was:" >&5
3441 sed 's/^/| /' conftest.$ac_ext >&5
3442
3443
3444 fi
3445
3446 rm -f core conftest.err conftest.$ac_objext
3447 test "x$ac_cv_prog_cc_c89" != "xno" && break
3448 done
3449 rm -f conftest.$ac_ext
3450 CC=$ac_save_CC
3451
3452 fi
3453 # AC_CACHE_VAL
3454 case "x$ac_cv_prog_cc_c89" in
3455 x)
3456 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3457 $as_echo "none needed" >&6; } ;;
3458 xno)
3459 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3460 $as_echo "unsupported" >&6; } ;;
3461 *)
3462 CC="$CC $ac_cv_prog_cc_c89"
3463 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3464 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3465 esac
3466
3467
3468 ac_ext=c
3469 ac_cpp='$CPP $CPPFLAGS'
3470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3473 DEPDIR="${am__leading_dot}deps"
3474
3475 ac_config_commands="$ac_config_commands depfiles"
3476
3477
3478 am_make=${MAKE-make}
3479 cat > confinc << 'END'
3480 am__doit:
3481 @echo done
3482 .PHONY: am__doit
3483 END
3484 # If we don't find an include directive, just comment out the code.
3485 { $as_echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3486 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3487 am__include="#"
3488 am__quote=
3489 _am_result=none
3490 # First try GNU make style include.
3491 echo "include confinc" > confmf
3492 # We grep out `Entering directory' and `Leaving directory'
3493 # messages which can occur if `w' ends up in MAKEFLAGS.
3494 # In particular we don't look at `^make:' because GNU make might
3495 # be invoked under some other name (usually "gmake"), in which
3496 # case it prints its new name instead of `make'.
3497 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3498 am__include=include
3499 am__quote=
3500 _am_result=GNU
3501 fi
3502 # Now try BSD make style include.
3503 if test "$am__include" = "#"; then
3504 echo '.include "confinc"' > confmf
3505 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3506 am__include=.include
3507 am__quote="\""
3508 _am_result=BSD
3509 fi
3510 fi
3511
3512
3513 { $as_echo "$as_me:$LINENO: result: $_am_result" >&5
3514 $as_echo "$_am_result" >&6; }
3515 rm -f confinc confmf
3516
3517 # Check whether --enable-dependency-tracking was given.
3518 if test "${enable_dependency_tracking+set}" = set; then
3519 enableval=$enable_dependency_tracking;
3520 fi
3521
3522 if test "x$enable_dependency_tracking" != xno; then
3523 am_depcomp="$ac_aux_dir/depcomp"
3524 AMDEPBACKSLASH='\'
3525 fi
3526 if test "x$enable_dependency_tracking" != xno; then
3527 AMDEP_TRUE=
3528 AMDEP_FALSE='#'
3529 else
3530 AMDEP_TRUE='#'
3531 AMDEP_FALSE=
3532 fi
3533
3534
3535
3536 depcc="$CC" am_compiler_list=
3537
3538 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3539 $as_echo_n "checking dependency style of $depcc... " >&6; }
3540 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3541 $as_echo_n "(cached) " >&6
3542 else
3543 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3544 # We make a subdir and do the tests there. Otherwise we can end up
3545 # making bogus files that we don't know about and never remove. For
3546 # instance it was reported that on HP-UX the gcc test will end up
3547 # making a dummy file named `D' -- because `-MD' means `put the output
3548 # in D'.
3549 mkdir conftest.dir
3550 # Copy depcomp to subdir because otherwise we won't find it if we're
3551 # using a relative directory.
3552 cp "$am_depcomp" conftest.dir
3553 cd conftest.dir
3554 # We will build objects and dependencies in a subdirectory because
3555 # it helps to detect inapplicable dependency modes. For instance
3556 # both Tru64's cc and ICC support -MD to output dependencies as a
3557 # side effect of compilation, but ICC will put the dependencies in
3558 # the current directory while Tru64 will put them in the object
3559 # directory.
3560 mkdir sub
3561
3562 am_cv_CC_dependencies_compiler_type=none
3563 if test "$am_compiler_list" = ""; then
3564 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3565 fi
3566 for depmode in $am_compiler_list; do
3567 # Setup a source with many dependencies, because some compilers
3568 # like to wrap large dependency lists on column 80 (with \), and
3569 # we should not choose a depcomp mode which is confused by this.
3570 #
3571 # We need to recreate these files for each test, as the compiler may
3572 # overwrite some of them when testing with obscure command lines.
3573 # This happens at least with the AIX C compiler.
3574 : > sub/conftest.c
3575 for i in 1 2 3 4 5 6; do
3576 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3577 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3578 # Solaris 8's {/usr,}/bin/sh.
3579 touch sub/conftst$i.h
3580 done
3581 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3582
3583 case $depmode in
3584 nosideeffect)
3585 # after this tag, mechanisms are not by side-effect, so they'll
3586 # only be used when explicitly requested
3587 if test "x$enable_dependency_tracking" = xyes; then
3588 continue
3589 else
3590 break
3591 fi
3592 ;;
3593 none) break ;;
3594 esac
3595 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3596 # mode. It turns out that the SunPro C++ compiler does not properly
3597 # handle `-M -o', and we need to detect this.
3598 if depmode=$depmode \
3599 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3600 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3601 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3602 >/dev/null 2>conftest.err &&
3603 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3604 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3605 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3606 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3607 # icc doesn't choke on unknown options, it will just issue warnings
3608 # or remarks (even with -Werror). So we grep stderr for any message
3609 # that says an option was ignored or not supported.
3610 # When given -MP, icc 7.0 and 7.1 complain thusly:
3611 # icc: Command line warning: ignoring option '-M'; no argument required
3612 # The diagnosis changed in icc 8.0:
3613 # icc: Command line remark: option '-MP' not supported
3614 if (grep 'ignoring option' conftest.err ||
3615 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3616 am_cv_CC_dependencies_compiler_type=$depmode
3617 break
3618 fi
3619 fi
3620 done
3621
3622 cd ..
3623 rm -rf conftest.dir
3624 else
3625 am_cv_CC_dependencies_compiler_type=none
3626 fi
3627
3628 fi
3629 { $as_echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3630 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3631 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3632
3633 if
3634 test "x$enable_dependency_tracking" != xno \
3635 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3636 am__fastdepCC_TRUE=
3637 am__fastdepCC_FALSE='#'
3638 else
3639 am__fastdepCC_TRUE='#'
3640 am__fastdepCC_FALSE=
3641 fi
3642
3643
3644 # Check whether --enable-static was given.
3645 if test "${enable_static+set}" = set; then
3646 enableval=$enable_static; p=${PACKAGE-default}
3647 case $enableval in
3648 yes) enable_static=yes ;;
3649 no) enable_static=no ;;
3650 *)
3651 enable_static=no
3652 # Look at the argument we got. We use all the common list separators.
3653 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3654 for pkg in $enableval; do
3655 IFS="$lt_save_ifs"
3656 if test "X$pkg" = "X$p"; then
3657 enable_static=yes
3658 fi
3659 done
3660 IFS="$lt_save_ifs"
3661 ;;
3662 esac
3663 else
3664 enable_static=no
3665 fi
3666
3667
3668 # Must come before AC_PROG_LIBTOOL
3669 # Check whether --enable-shared was given.
3670 if test "${enable_shared+set}" = set; then
3671 enableval=$enable_shared; p=${PACKAGE-default}
3672 case $enableval in
3673 yes) enable_shared=yes ;;
3674 no) enable_shared=no ;;
3675 *)
3676 enable_shared=no
3677 # Look at the argument we got. We use all the common list separators.
3678 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3679 for pkg in $enableval; do
3680 IFS="$lt_save_ifs"
3681 if test "X$pkg" = "X$p"; then
3682 enable_shared=yes
3683 fi
3684 done
3685 IFS="$lt_save_ifs"
3686 ;;
3687 esac
3688 else
3689 enable_shared=yes
3690 fi
3691
3692
3693 # Check whether --enable-fast-install was given.
3694 if test "${enable_fast_install+set}" = set; then
3695 enableval=$enable_fast_install; p=${PACKAGE-default}
3696 case $enableval in
3697 yes) enable_fast_install=yes ;;
3698 no) enable_fast_install=no ;;
3699 *)
3700 enable_fast_install=no
3701 # Look at the argument we got. We use all the common list separators.
3702 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
3703 for pkg in $enableval; do
3704 IFS="$lt_save_ifs"
3705 if test "X$pkg" = "X$p"; then
3706 enable_fast_install=yes
3707 fi
3708 done
3709 IFS="$lt_save_ifs"
3710 ;;
3711 esac
3712 else
3713 enable_fast_install=yes
3714 fi
3715
3716
3717 # Make sure we can run config.sub.
3718 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3719 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
3720 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
3721 { (exit 1); exit 1; }; }
3722
3723 { $as_echo "$as_me:$LINENO: checking build system type" >&5
3724 $as_echo_n "checking build system type... " >&6; }
3725 if test "${ac_cv_build+set}" = set; then
3726 $as_echo_n "(cached) " >&6
3727 else
3728 ac_build_alias=$build_alias
3729 test "x$ac_build_alias" = x &&
3730 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3731 test "x$ac_build_alias" = x &&
3732 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3733 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3734 { (exit 1); exit 1; }; }
3735 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3736 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
3737 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
3738 { (exit 1); exit 1; }; }
3739
3740 fi
3741 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3742 $as_echo "$ac_cv_build" >&6; }
3743 case $ac_cv_build in
3744 *-*-*) ;;
3745 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
3746 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
3747 { (exit 1); exit 1; }; };;
3748 esac
3749 build=$ac_cv_build
3750 ac_save_IFS=$IFS; IFS='-'
3751 set x $ac_cv_build
3752 shift
3753 build_cpu=$1
3754 build_vendor=$2
3755 shift; shift
3756 # Remember, the first character of IFS is used to create $*,
3757 # except with old shells:
3758 build_os=$*
3759 IFS=$ac_save_IFS
3760 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3761
3762
3763 { $as_echo "$as_me:$LINENO: checking host system type" >&5
3764 $as_echo_n "checking host system type... " >&6; }
3765 if test "${ac_cv_host+set}" = set; then
3766 $as_echo_n "(cached) " >&6
3767 else
3768 if test "x$host_alias" = x; then
3769 ac_cv_host=$ac_cv_build
3770 else
3771 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3772 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
3773 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
3774 { (exit 1); exit 1; }; }
3775 fi
3776
3777 fi
3778 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3779 $as_echo "$ac_cv_host" >&6; }
3780 case $ac_cv_host in
3781 *-*-*) ;;
3782 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
3783 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
3784 { (exit 1); exit 1; }; };;
3785 esac
3786 host=$ac_cv_host
3787 ac_save_IFS=$IFS; IFS='-'
3788 set x $ac_cv_host
3789 shift
3790 host_cpu=$1
3791 host_vendor=$2
3792 shift; shift
3793 # Remember, the first character of IFS is used to create $*,
3794 # except with old shells:
3795 host_os=$*
3796 IFS=$ac_save_IFS
3797 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3798
3799
3800 { $as_echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3801 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3802 if test "${lt_cv_path_SED+set}" = set; then
3803 $as_echo_n "(cached) " >&6
3804 else
3805 # Loop through the user's path and test for sed and gsed.
3806 # Then use that list of sed's as ones to test for truncation.
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in $PATH
3809 do
3810 IFS=$as_save_IFS
3811 test -z "$as_dir" && as_dir=.
3812 for lt_ac_prog in sed gsed; do
3813 for ac_exec_ext in '' $ac_executable_extensions; do
3814 if { test -f "$as_dir/$lt_ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$lt_ac_prog$ac_exec_ext"; }; then
3815 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
3816 fi
3817 done
3818 done
3819 done
3820 IFS=$as_save_IFS
3821 lt_ac_max=0
3822 lt_ac_count=0
3823 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
3824 # along with /bin/sed that truncates output.
3825 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
3826 test ! -f $lt_ac_sed && continue
3827 cat /dev/null > conftest.in
3828 lt_ac_count=0
3829 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
3830 # Check for GNU sed and select it if it is found.
3831 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
3832 lt_cv_path_SED=$lt_ac_sed
3833 break
3834 fi
3835 while true; do
3836 cat conftest.in conftest.in >conftest.tmp
3837 mv conftest.tmp conftest.in
3838 cp conftest.in conftest.nl
3839 echo >>conftest.nl
3840 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
3841 cmp -s conftest.out conftest.nl || break
3842 # 10000 chars as input seems more than enough
3843 test $lt_ac_count -gt 10 && break
3844 lt_ac_count=`expr $lt_ac_count + 1`
3845 if test $lt_ac_count -gt $lt_ac_max; then
3846 lt_ac_max=$lt_ac_count
3847 lt_cv_path_SED=$lt_ac_sed
3848 fi
3849 done
3850 done
3851
3852 fi
3853
3854 SED=$lt_cv_path_SED
3855
3856 { $as_echo "$as_me:$LINENO: result: $SED" >&5
3857 $as_echo "$SED" >&6; }
3858
3859 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3860 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3861 if test "${ac_cv_path_GREP+set}" = set; then
3862 $as_echo_n "(cached) " >&6
3863 else
3864 if test -z "$GREP"; then
3865 ac_path_GREP_found=false
3866 # Loop through the user's path and test for each of PROGNAME-LIST
3867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3868 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3869 do
3870 IFS=$as_save_IFS
3871 test -z "$as_dir" && as_dir=.
3872 for ac_prog in grep ggrep; do
3873 for ac_exec_ext in '' $ac_executable_extensions; do
3874 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3875 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3876 # Check for GNU ac_path_GREP and select it if it is found.
3877 # Check for GNU $ac_path_GREP
3878 case `"$ac_path_GREP" --version 2>&1` in
3879 *GNU*)
3880 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3881 *)
3882 ac_count=0
3883 $as_echo_n 0123456789 >"conftest.in"
3884 while :
3885 do
3886 cat "conftest.in" "conftest.in" >"conftest.tmp"
3887 mv "conftest.tmp" "conftest.in"
3888 cp "conftest.in" "conftest.nl"
3889 $as_echo 'GREP' >> "conftest.nl"
3890 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3892 ac_count=`expr $ac_count + 1`
3893 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3894 # Best one so far, save it but keep looking for a better one
3895 ac_cv_path_GREP="$ac_path_GREP"
3896 ac_path_GREP_max=$ac_count
3897 fi
3898 # 10*(2^10) chars as input seems more than enough
3899 test $ac_count -gt 10 && break
3900 done
3901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3902 esac
3903
3904 $ac_path_GREP_found && break 3
3905 done
3906 done
3907 done
3908 IFS=$as_save_IFS
3909 if test -z "$ac_cv_path_GREP"; then
3910 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3911 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3912 { (exit 1); exit 1; }; }
3913 fi
3914 else
3915 ac_cv_path_GREP=$GREP
3916 fi
3917
3918 fi
3919 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3920 $as_echo "$ac_cv_path_GREP" >&6; }
3921 GREP="$ac_cv_path_GREP"
3922
3923
3924 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
3925 $as_echo_n "checking for egrep... " >&6; }
3926 if test "${ac_cv_path_EGREP+set}" = set; then
3927 $as_echo_n "(cached) " >&6
3928 else
3929 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3930 then ac_cv_path_EGREP="$GREP -E"
3931 else
3932 if test -z "$EGREP"; then
3933 ac_path_EGREP_found=false
3934 # Loop through the user's path and test for each of PROGNAME-LIST
3935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3937 do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_prog in egrep; do
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3943 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3944 # Check for GNU ac_path_EGREP and select it if it is found.
3945 # Check for GNU $ac_path_EGREP
3946 case `"$ac_path_EGREP" --version 2>&1` in
3947 *GNU*)
3948 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3949 *)
3950 ac_count=0
3951 $as_echo_n 0123456789 >"conftest.in"
3952 while :
3953 do
3954 cat "conftest.in" "conftest.in" >"conftest.tmp"
3955 mv "conftest.tmp" "conftest.in"
3956 cp "conftest.in" "conftest.nl"
3957 $as_echo 'EGREP' >> "conftest.nl"
3958 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3959 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3960 ac_count=`expr $ac_count + 1`
3961 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3962 # Best one so far, save it but keep looking for a better one
3963 ac_cv_path_EGREP="$ac_path_EGREP"
3964 ac_path_EGREP_max=$ac_count
3965 fi
3966 # 10*(2^10) chars as input seems more than enough
3967 test $ac_count -gt 10 && break
3968 done
3969 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3970 esac
3971
3972 $ac_path_EGREP_found && break 3
3973 done
3974 done
3975 done
3976 IFS=$as_save_IFS
3977 if test -z "$ac_cv_path_EGREP"; then
3978 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3979 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3980 { (exit 1); exit 1; }; }
3981 fi
3982 else
3983 ac_cv_path_EGREP=$EGREP
3984 fi
3985
3986 fi
3987 fi
3988 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3989 $as_echo "$ac_cv_path_EGREP" >&6; }
3990 EGREP="$ac_cv_path_EGREP"
3991
3992
3993
3994 # Check whether --with-gnu-ld was given.
3995 if test "${with_gnu_ld+set}" = set; then
3996 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3997 else
3998 with_gnu_ld=no
3999 fi
4000
4001 ac_prog=ld
4002 if test "$GCC" = yes; then
4003 # Check if gcc -print-prog-name=ld gives a path.
4004 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4005 $as_echo_n "checking for ld used by $CC... " >&6; }
4006 case $host in
4007 *-*-mingw*)
4008 # gcc leaves a trailing carriage return which upsets mingw
4009 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4010 *)
4011 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4012 esac
4013 case $ac_prog in
4014 # Accept absolute paths.
4015 [\\/]* | ?:[\\/]*)
4016 re_direlt='/[^/][^/]*/\.\./'
4017 # Canonicalize the pathname of ld
4018 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4019 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4020 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4021 done
4022 test -z "$LD" && LD="$ac_prog"
4023 ;;
4024 "")
4025 # If it fails, then pretend we aren't using GCC.
4026 ac_prog=ld
4027 ;;
4028 *)
4029 # If it is relative, then search for the first ld in PATH.
4030 with_gnu_ld=unknown
4031 ;;
4032 esac
4033 elif test "$with_gnu_ld" = yes; then
4034 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
4035 $as_echo_n "checking for GNU ld... " >&6; }
4036 else
4037 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4038 $as_echo_n "checking for non-GNU ld... " >&6; }
4039 fi
4040 if test "${lt_cv_path_LD+set}" = set; then
4041 $as_echo_n "(cached) " >&6
4042 else
4043 if test -z "$LD"; then
4044 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4045 for ac_dir in $PATH; do
4046 IFS="$lt_save_ifs"
4047 test -z "$ac_dir" && ac_dir=.
4048 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4049 lt_cv_path_LD="$ac_dir/$ac_prog"
4050 # Check to see if the program is GNU ld. I'd rather use --version,
4051 # but apparently some variants of GNU ld only accept -v.
4052 # Break only if it was the GNU/non-GNU ld that we prefer.
4053 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4054 *GNU* | *'with BFD'*)
4055 test "$with_gnu_ld" != no && break
4056 ;;
4057 *)
4058 test "$with_gnu_ld" != yes && break
4059 ;;
4060 esac
4061 fi
4062 done
4063 IFS="$lt_save_ifs"
4064 else
4065 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4066 fi
4067 fi
4068
4069 LD="$lt_cv_path_LD"
4070 if test -n "$LD"; then
4071 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4072 $as_echo "$LD" >&6; }
4073 else
4074 { $as_echo "$as_me:$LINENO: result: no" >&5
4075 $as_echo "no" >&6; }
4076 fi
4077 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4078 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4079 { (exit 1); exit 1; }; }
4080 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4081 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4082 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4083 $as_echo_n "(cached) " >&6
4084 else
4085 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4086 case `$LD -v 2>&1 </dev/null` in
4087 *GNU* | *'with BFD'*)
4088 lt_cv_prog_gnu_ld=yes
4089 ;;
4090 *)
4091 lt_cv_prog_gnu_ld=no
4092 ;;
4093 esac
4094 fi
4095 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4096 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4097 with_gnu_ld=$lt_cv_prog_gnu_ld
4098
4099
4100 { $as_echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4101 $as_echo_n "checking for $LD option to reload object files... " >&6; }
4102 if test "${lt_cv_ld_reload_flag+set}" = set; then
4103 $as_echo_n "(cached) " >&6
4104 else
4105 lt_cv_ld_reload_flag='-r'
4106 fi
4107 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4108 $as_echo "$lt_cv_ld_reload_flag" >&6; }
4109 reload_flag=$lt_cv_ld_reload_flag
4110 case $reload_flag in
4111 "" | " "*) ;;
4112 *) reload_flag=" $reload_flag" ;;
4113 esac
4114 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4115 case $host_os in
4116 darwin*)
4117 if test "$GCC" = yes; then
4118 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4119 else
4120 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4121 fi
4122 ;;
4123 esac
4124
4125 { $as_echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4126 $as_echo_n "checking for BSD-compatible nm... " >&6; }
4127 if test "${lt_cv_path_NM+set}" = set; then
4128 $as_echo_n "(cached) " >&6
4129 else
4130 if test -n "$NM"; then
4131 # Let the user override the test.
4132 lt_cv_path_NM="$NM"
4133 else
4134 lt_nm_to_check="${ac_tool_prefix}nm"
4135 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4136 lt_nm_to_check="$lt_nm_to_check nm"
4137 fi
4138 for lt_tmp_nm in $lt_nm_to_check; do
4139 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4140 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4141 IFS="$lt_save_ifs"
4142 test -z "$ac_dir" && ac_dir=.
4143 tmp_nm="$ac_dir/$lt_tmp_nm"
4144 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4145 # Check to see if the nm accepts a BSD-compat flag.
4146 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4147 # nm: unknown option "B" ignored
4148 # Tru64's nm complains that /dev/null is an invalid object file
4149 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4150 */dev/null* | *'Invalid file or object type'*)
4151 lt_cv_path_NM="$tmp_nm -B"
4152 break
4153 ;;
4154 *)
4155 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4156 */dev/null*)
4157 lt_cv_path_NM="$tmp_nm -p"
4158 break
4159 ;;
4160 *)
4161 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4162 continue # so that we can try to find one that supports BSD flags
4163 ;;
4164 esac
4165 ;;
4166 esac
4167 fi
4168 done
4169 IFS="$lt_save_ifs"
4170 done
4171 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4172 fi
4173 fi
4174 { $as_echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4175 $as_echo "$lt_cv_path_NM" >&6; }
4176 NM="$lt_cv_path_NM"
4177
4178 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4179 $as_echo_n "checking whether ln -s works... " >&6; }
4180 LN_S=$as_ln_s
4181 if test "$LN_S" = "ln -s"; then
4182 { $as_echo "$as_me:$LINENO: result: yes" >&5
4183 $as_echo "yes" >&6; }
4184 else
4185 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4186 $as_echo "no, using $LN_S" >&6; }
4187 fi
4188
4189 { $as_echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4190 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
4191 if test "${lt_cv_deplibs_check_method+set}" = set; then
4192 $as_echo_n "(cached) " >&6
4193 else
4194 lt_cv_file_magic_cmd='$MAGIC_CMD'
4195 lt_cv_file_magic_test_file=
4196 lt_cv_deplibs_check_method='unknown'
4197 # Need to set the preceding variable on all platforms that support
4198 # interlibrary dependencies.
4199 # 'none' -- dependencies not supported.
4200 # `unknown' -- same as none, but documents that we really don't know.
4201 # 'pass_all' -- all dependencies passed with no checks.
4202 # 'test_compile' -- check by making test program.
4203 # 'file_magic [[regex]]' -- check by looking for files in library path
4204 # which responds to the $file_magic_cmd with a given extended regex.
4205 # If you have `file' or equivalent on your system and you're not sure
4206 # whether `pass_all' will *always* work, you probably want this one.
4207
4208 case $host_os in
4209 aix[4-9]*)
4210 lt_cv_deplibs_check_method=pass_all
4211 ;;
4212
4213 beos*)
4214 lt_cv_deplibs_check_method=pass_all
4215 ;;
4216
4217 bsdi[45]*)
4218 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4219 lt_cv_file_magic_cmd='/usr/bin/file -L'
4220 lt_cv_file_magic_test_file=/shlib/libc.so
4221 ;;
4222
4223 cygwin*)
4224 # func_win32_libid is a shell function defined in ltmain.sh
4225 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4226 lt_cv_file_magic_cmd='func_win32_libid'
4227 ;;
4228
4229 mingw* | pw32*)
4230 # Base MSYS/MinGW do not provide the 'file' command needed by
4231 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4232 # unless we find 'file', for example because we are cross-compiling.
4233 if ( file / ) >/dev/null 2>&1; then
4234 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4235 lt_cv_file_magic_cmd='func_win32_libid'
4236 else
4237 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4238 lt_cv_file_magic_cmd='$OBJDUMP -f'
4239 fi
4240 ;;
4241
4242 darwin* | rhapsody*)
4243 lt_cv_deplibs_check_method=pass_all
4244 ;;
4245
4246 freebsd* | dragonfly*)
4247 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4248 case $host_cpu in
4249 i*86 )
4250 # Not sure whether the presence of OpenBSD here was a mistake.
4251 # Let's accept both of them until this is cleared up.
4252 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4253 lt_cv_file_magic_cmd=/usr/bin/file
4254 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4255 ;;
4256 esac
4257 else
4258 lt_cv_deplibs_check_method=pass_all
4259 fi
4260 ;;
4261
4262 gnu*)
4263 lt_cv_deplibs_check_method=pass_all
4264 ;;
4265
4266 hpux10.20* | hpux11*)
4267 lt_cv_file_magic_cmd=/usr/bin/file
4268 case $host_cpu in
4269 ia64*)
4270 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4271 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4272 ;;
4273 hppa*64*)
4274 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]'
4275 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4276 ;;
4277 *)
4278 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4279 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4280 ;;
4281 esac
4282 ;;
4283
4284 interix[3-9]*)
4285 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4286 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4287 ;;
4288
4289 irix5* | irix6* | nonstopux*)
4290 case $LD in
4291 *-32|*"-32 ") libmagic=32-bit;;
4292 *-n32|*"-n32 ") libmagic=N32;;
4293 *-64|*"-64 ") libmagic=64-bit;;
4294 *) libmagic=never-match;;
4295 esac
4296 lt_cv_deplibs_check_method=pass_all
4297 ;;
4298
4299 # This must be Linux ELF.
4300 linux* | k*bsd*-gnu)
4301 lt_cv_deplibs_check_method=pass_all
4302 ;;
4303
4304 netbsd*)
4305 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4306 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4307 else
4308 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4309 fi
4310 ;;
4311
4312 newos6*)
4313 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4314 lt_cv_file_magic_cmd=/usr/bin/file
4315 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4316 ;;
4317
4318 nto-qnx*)
4319 lt_cv_deplibs_check_method=unknown
4320 ;;
4321
4322 openbsd*)
4323 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4324 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4325 else
4326 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4327 fi
4328 ;;
4329
4330 osf3* | osf4* | osf5*)
4331 lt_cv_deplibs_check_method=pass_all
4332 ;;
4333
4334 rdos*)
4335 lt_cv_deplibs_check_method=pass_all
4336 ;;
4337
4338 solaris*)
4339 lt_cv_deplibs_check_method=pass_all
4340 ;;
4341
4342 sysv4 | sysv4.3*)
4343 case $host_vendor in
4344 motorola)
4345 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]'
4346 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4347 ;;
4348 ncr)
4349 lt_cv_deplibs_check_method=pass_all
4350 ;;
4351 sequent)
4352 lt_cv_file_magic_cmd='/bin/file'
4353 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4354 ;;
4355 sni)
4356 lt_cv_file_magic_cmd='/bin/file'
4357 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4358 lt_cv_file_magic_test_file=/lib/libc.so
4359 ;;
4360 siemens)
4361 lt_cv_deplibs_check_method=pass_all
4362 ;;
4363 pc)
4364 lt_cv_deplibs_check_method=pass_all
4365 ;;
4366 esac
4367 ;;
4368
4369 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4370 lt_cv_deplibs_check_method=pass_all
4371 ;;
4372 esac
4373
4374 fi
4375 { $as_echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4376 $as_echo "$lt_cv_deplibs_check_method" >&6; }
4377 file_magic_cmd=$lt_cv_file_magic_cmd
4378 deplibs_check_method=$lt_cv_deplibs_check_method
4379 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4380
4381
4382
4383
4384 # If no C compiler was specified, use CC.
4385 LTCC=${LTCC-"$CC"}
4386
4387 # If no C compiler flags were specified, use CFLAGS.
4388 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4389
4390 # Allow CC to be a program name with arguments.
4391 compiler=$CC
4392
4393
4394 # Check whether --enable-libtool-lock was given.
4395 if test "${enable_libtool_lock+set}" = set; then
4396 enableval=$enable_libtool_lock;
4397 fi
4398
4399 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4400
4401 # Some flags need to be propagated to the compiler or linker for good
4402 # libtool support.
4403 case $host in
4404 ia64-*-hpux*)
4405 # Find out which ABI we are using.
4406 echo 'int i;' > conftest.$ac_ext
4407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4408 (eval $ac_compile) 2>&5
4409 ac_status=$?
4410 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4411 (exit $ac_status); }; then
4412 case `/usr/bin/file conftest.$ac_objext` in
4413 *ELF-32*)
4414 HPUX_IA64_MODE="32"
4415 ;;
4416 *ELF-64*)
4417 HPUX_IA64_MODE="64"
4418 ;;
4419 esac
4420 fi
4421 rm -rf conftest*
4422 ;;
4423 *-*-irix6*)
4424 # Find out which ABI we are using.
4425 echo '#line 4425 "configure"' > conftest.$ac_ext
4426 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4427 (eval $ac_compile) 2>&5
4428 ac_status=$?
4429 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }; then
4431 if test "$lt_cv_prog_gnu_ld" = yes; then
4432 case `/usr/bin/file conftest.$ac_objext` in
4433 *32-bit*)
4434 LD="${LD-ld} -melf32bsmip"
4435 ;;
4436 *N32*)
4437 LD="${LD-ld} -melf32bmipn32"
4438 ;;
4439 *64-bit*)
4440 LD="${LD-ld} -melf64bmip"
4441 ;;
4442 esac
4443 else
4444 case `/usr/bin/file conftest.$ac_objext` in
4445 *32-bit*)
4446 LD="${LD-ld} -32"
4447 ;;
4448 *N32*)
4449 LD="${LD-ld} -n32"
4450 ;;
4451 *64-bit*)
4452 LD="${LD-ld} -64"
4453 ;;
4454 esac
4455 fi
4456 fi
4457 rm -rf conftest*
4458 ;;
4459
4460 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4461 s390*-*linux*|sparc*-*linux*)
4462 # Find out which ABI we are using.
4463 echo 'int i;' > conftest.$ac_ext
4464 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4465 (eval $ac_compile) 2>&5
4466 ac_status=$?
4467 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4468 (exit $ac_status); }; then
4469 case `/usr/bin/file conftest.o` in
4470 *32-bit*)
4471 case $host in
4472 x86_64-*kfreebsd*-gnu)
4473 LD="${LD-ld} -m elf_i386_fbsd"
4474 ;;
4475 x86_64-*linux*)
4476 LD="${LD-ld} -m elf_i386"
4477 ;;
4478 ppc64-*linux*|powerpc64-*linux*)
4479 LD="${LD-ld} -m elf32ppclinux"
4480 ;;
4481 s390x-*linux*)
4482 LD="${LD-ld} -m elf_s390"
4483 ;;
4484 sparc64-*linux*)
4485 LD="${LD-ld} -m elf32_sparc"
4486 ;;
4487 esac
4488 ;;
4489 *64-bit*)
4490 case $host in
4491 x86_64-*kfreebsd*-gnu)
4492 LD="${LD-ld} -m elf_x86_64_fbsd"
4493 ;;
4494 x86_64-*linux*)
4495 LD="${LD-ld} -m elf_x86_64"
4496 ;;
4497 ppc*-*linux*|powerpc*-*linux*)
4498 LD="${LD-ld} -m elf64ppc"
4499 ;;
4500 s390*-*linux*)
4501 LD="${LD-ld} -m elf64_s390"
4502 ;;
4503 sparc*-*linux*)
4504 LD="${LD-ld} -m elf64_sparc"
4505 ;;
4506 esac
4507 ;;
4508 esac
4509 fi
4510 rm -rf conftest*
4511 ;;
4512
4513 *-*-sco3.2v5*)
4514 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4515 SAVE_CFLAGS="$CFLAGS"
4516 CFLAGS="$CFLAGS -belf"
4517 { $as_echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4518 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
4519 if test "${lt_cv_cc_needs_belf+set}" = set; then
4520 $as_echo_n "(cached) " >&6
4521 else
4522 ac_ext=c
4523 ac_cpp='$CPP $CPPFLAGS'
4524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4527
4528 cat >conftest.$ac_ext <<_ACEOF
4529 /* confdefs.h. */
4530 _ACEOF
4531 cat confdefs.h >>conftest.$ac_ext
4532 cat >>conftest.$ac_ext <<_ACEOF
4533 /* end confdefs.h. */
4534
4535 int
4536 main ()
4537 {
4538
4539 ;
4540 return 0;
4541 }
4542 _ACEOF
4543 rm -f conftest.$ac_objext conftest$ac_exeext
4544 if { (ac_try="$ac_link"
4545 case "(($ac_try" in
4546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4547 *) ac_try_echo=$ac_try;;
4548 esac
4549 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4550 $as_echo "$ac_try_echo") >&5
4551 (eval "$ac_link") 2>conftest.er1
4552 ac_status=$?
4553 grep -v '^ *+' conftest.er1 >conftest.err
4554 rm -f conftest.er1
4555 cat conftest.err >&5
4556 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4557 (exit $ac_status); } && {
4558 test -z "$ac_c_werror_flag" ||
4559 test ! -s conftest.err
4560 } && test -s conftest$ac_exeext && {
4561 test "$cross_compiling" = yes ||
4562 $as_test_x conftest$ac_exeext
4563 }; then
4564 lt_cv_cc_needs_belf=yes
4565 else
4566 $as_echo "$as_me: failed program was:" >&5
4567 sed 's/^/| /' conftest.$ac_ext >&5
4568
4569 lt_cv_cc_needs_belf=no
4570 fi
4571
4572 rm -rf conftest.dSYM
4573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4574 conftest$ac_exeext conftest.$ac_ext
4575 ac_ext=c
4576 ac_cpp='$CPP $CPPFLAGS'
4577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4580
4581 fi
4582 { $as_echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4583 $as_echo "$lt_cv_cc_needs_belf" >&6; }
4584 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4585 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4586 CFLAGS="$SAVE_CFLAGS"
4587 fi
4588 ;;
4589 sparc*-*solaris*)
4590 # Find out which ABI we are using.
4591 echo 'int i;' > conftest.$ac_ext
4592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4593 (eval $ac_compile) 2>&5
4594 ac_status=$?
4595 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4596 (exit $ac_status); }; then
4597 case `/usr/bin/file conftest.o` in
4598 *64-bit*)
4599 case $lt_cv_prog_gnu_ld in
4600 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4601 *)
4602 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4603 LD="${LD-ld} -64"
4604 fi
4605 ;;
4606 esac
4607 ;;
4608 esac
4609 fi
4610 rm -rf conftest*
4611 ;;
4612
4613
4614 esac
4615
4616 need_locks="$enable_libtool_lock"
4617
4618
4619 ac_ext=c
4620 ac_cpp='$CPP $CPPFLAGS'
4621 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4622 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4623 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4624 { $as_echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4625 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4626 # On Suns, sometimes $CPP names a directory.
4627 if test -n "$CPP" && test -d "$CPP"; then
4628 CPP=
4629 fi
4630 if test -z "$CPP"; then
4631 if test "${ac_cv_prog_CPP+set}" = set; then
4632 $as_echo_n "(cached) " >&6
4633 else
4634 # Double quotes because CPP needs to be expanded
4635 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4636 do
4637 ac_preproc_ok=false
4638 for ac_c_preproc_warn_flag in '' yes
4639 do
4640 # Use a header file that comes with gcc, so configuring glibc
4641 # with a fresh cross-compiler works.
4642 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4643 # <limits.h> exists even on freestanding compilers.
4644 # On the NeXT, cc -E runs the code through the compiler's parser,
4645 # not just through cpp. "Syntax error" is here to catch this case.
4646 cat >conftest.$ac_ext <<_ACEOF
4647 /* confdefs.h. */
4648 _ACEOF
4649 cat confdefs.h >>conftest.$ac_ext
4650 cat >>conftest.$ac_ext <<_ACEOF
4651 /* end confdefs.h. */
4652 #ifdef __STDC__
4653 # include <limits.h>
4654 #else
4655 # include <assert.h>
4656 #endif
4657 Syntax error
4658 _ACEOF
4659 if { (ac_try="$ac_cpp conftest.$ac_ext"
4660 case "(($ac_try" in
4661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4662 *) ac_try_echo=$ac_try;;
4663 esac
4664 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4665 $as_echo "$ac_try_echo") >&5
4666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4667 ac_status=$?
4668 grep -v '^ *+' conftest.er1 >conftest.err
4669 rm -f conftest.er1
4670 cat conftest.err >&5
4671 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4672 (exit $ac_status); } >/dev/null && {
4673 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4674 test ! -s conftest.err
4675 }; then
4676 :
4677 else
4678 $as_echo "$as_me: failed program was:" >&5
4679 sed 's/^/| /' conftest.$ac_ext >&5
4680
4681 # Broken: fails on valid input.
4682 continue
4683 fi
4684
4685 rm -f conftest.err conftest.$ac_ext
4686
4687 # OK, works on sane cases. Now check whether nonexistent headers
4688 # can be detected and how.
4689 cat >conftest.$ac_ext <<_ACEOF
4690 /* confdefs.h. */
4691 _ACEOF
4692 cat confdefs.h >>conftest.$ac_ext
4693 cat >>conftest.$ac_ext <<_ACEOF
4694 /* end confdefs.h. */
4695 #include <ac_nonexistent.h>
4696 _ACEOF
4697 if { (ac_try="$ac_cpp conftest.$ac_ext"
4698 case "(($ac_try" in
4699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4700 *) ac_try_echo=$ac_try;;
4701 esac
4702 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4703 $as_echo "$ac_try_echo") >&5
4704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4705 ac_status=$?
4706 grep -v '^ *+' conftest.er1 >conftest.err
4707 rm -f conftest.er1
4708 cat conftest.err >&5
4709 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } >/dev/null && {
4711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4712 test ! -s conftest.err
4713 }; then
4714 # Broken: success on invalid input.
4715 continue
4716 else
4717 $as_echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4719
4720 # Passes both tests.
4721 ac_preproc_ok=:
4722 break
4723 fi
4724
4725 rm -f conftest.err conftest.$ac_ext
4726
4727 done
4728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4729 rm -f conftest.err conftest.$ac_ext
4730 if $ac_preproc_ok; then
4731 break
4732 fi
4733
4734 done
4735 ac_cv_prog_CPP=$CPP
4736
4737 fi
4738 CPP=$ac_cv_prog_CPP
4739 else
4740 ac_cv_prog_CPP=$CPP
4741 fi
4742 { $as_echo "$as_me:$LINENO: result: $CPP" >&5
4743 $as_echo "$CPP" >&6; }
4744 ac_preproc_ok=false
4745 for ac_c_preproc_warn_flag in '' yes
4746 do
4747 # Use a header file that comes with gcc, so configuring glibc
4748 # with a fresh cross-compiler works.
4749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4750 # <limits.h> exists even on freestanding compilers.
4751 # On the NeXT, cc -E runs the code through the compiler's parser,
4752 # not just through cpp. "Syntax error" is here to catch this case.
4753 cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h. */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 #ifdef __STDC__
4760 # include <limits.h>
4761 #else
4762 # include <assert.h>
4763 #endif
4764 Syntax error
4765 _ACEOF
4766 if { (ac_try="$ac_cpp conftest.$ac_ext"
4767 case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4770 esac
4771 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4772 $as_echo "$ac_try_echo") >&5
4773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4774 ac_status=$?
4775 grep -v '^ *+' conftest.er1 >conftest.err
4776 rm -f conftest.er1
4777 cat conftest.err >&5
4778 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4779 (exit $ac_status); } >/dev/null && {
4780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4781 test ! -s conftest.err
4782 }; then
4783 :
4784 else
4785 $as_echo "$as_me: failed program was:" >&5
4786 sed 's/^/| /' conftest.$ac_ext >&5
4787
4788 # Broken: fails on valid input.
4789 continue
4790 fi
4791
4792 rm -f conftest.err conftest.$ac_ext
4793
4794 # OK, works on sane cases. Now check whether nonexistent headers
4795 # can be detected and how.
4796 cat >conftest.$ac_ext <<_ACEOF
4797 /* confdefs.h. */
4798 _ACEOF
4799 cat confdefs.h >>conftest.$ac_ext
4800 cat >>conftest.$ac_ext <<_ACEOF
4801 /* end confdefs.h. */
4802 #include <ac_nonexistent.h>
4803 _ACEOF
4804 if { (ac_try="$ac_cpp conftest.$ac_ext"
4805 case "(($ac_try" in
4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4807 *) ac_try_echo=$ac_try;;
4808 esac
4809 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4810 $as_echo "$ac_try_echo") >&5
4811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4812 ac_status=$?
4813 grep -v '^ *+' conftest.er1 >conftest.err
4814 rm -f conftest.er1
4815 cat conftest.err >&5
4816 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4817 (exit $ac_status); } >/dev/null && {
4818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4819 test ! -s conftest.err
4820 }; then
4821 # Broken: success on invalid input.
4822 continue
4823 else
4824 $as_echo "$as_me: failed program was:" >&5
4825 sed 's/^/| /' conftest.$ac_ext >&5
4826
4827 # Passes both tests.
4828 ac_preproc_ok=:
4829 break
4830 fi
4831
4832 rm -f conftest.err conftest.$ac_ext
4833
4834 done
4835 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4836 rm -f conftest.err conftest.$ac_ext
4837 if $ac_preproc_ok; then
4838 :
4839 else
4840 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
4841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4842 { { $as_echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4843 See \`config.log' for more details." >&5
4844 $as_echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4845 See \`config.log' for more details." >&2;}
4846 { (exit 1); exit 1; }; }; }
4847 fi
4848
4849 ac_ext=c
4850 ac_cpp='$CPP $CPPFLAGS'
4851 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4852 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4853 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4854
4855
4856 { $as_echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4857 $as_echo_n "checking for ANSI C header files... " >&6; }
4858 if test "${ac_cv_header_stdc+set}" = set; then
4859 $as_echo_n "(cached) " >&6
4860 else
4861 cat >conftest.$ac_ext <<_ACEOF
4862 /* confdefs.h. */
4863 _ACEOF
4864 cat confdefs.h >>conftest.$ac_ext
4865 cat >>conftest.$ac_ext <<_ACEOF
4866 /* end confdefs.h. */
4867 #include <stdlib.h>
4868 #include <stdarg.h>
4869 #include <string.h>
4870 #include <float.h>
4871
4872 int
4873 main ()
4874 {
4875
4876 ;
4877 return 0;
4878 }
4879 _ACEOF
4880 rm -f conftest.$ac_objext
4881 if { (ac_try="$ac_compile"
4882 case "(($ac_try" in
4883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4884 *) ac_try_echo=$ac_try;;
4885 esac
4886 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4887 $as_echo "$ac_try_echo") >&5
4888 (eval "$ac_compile") 2>conftest.er1
4889 ac_status=$?
4890 grep -v '^ *+' conftest.er1 >conftest.err
4891 rm -f conftest.er1
4892 cat conftest.err >&5
4893 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4894 (exit $ac_status); } && {
4895 test -z "$ac_c_werror_flag" ||
4896 test ! -s conftest.err
4897 } && test -s conftest.$ac_objext; then
4898 ac_cv_header_stdc=yes
4899 else
4900 $as_echo "$as_me: failed program was:" >&5
4901 sed 's/^/| /' conftest.$ac_ext >&5
4902
4903 ac_cv_header_stdc=no
4904 fi
4905
4906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4907
4908 if test $ac_cv_header_stdc = yes; then
4909 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4910 cat >conftest.$ac_ext <<_ACEOF
4911 /* confdefs.h. */
4912 _ACEOF
4913 cat confdefs.h >>conftest.$ac_ext
4914 cat >>conftest.$ac_ext <<_ACEOF
4915 /* end confdefs.h. */
4916 #include <string.h>
4917
4918 _ACEOF
4919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4920 $EGREP "memchr" >/dev/null 2>&1; then
4921 :
4922 else
4923 ac_cv_header_stdc=no
4924 fi
4925 rm -f conftest*
4926
4927 fi
4928
4929 if test $ac_cv_header_stdc = yes; then
4930 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4931 cat >conftest.$ac_ext <<_ACEOF
4932 /* confdefs.h. */
4933 _ACEOF
4934 cat confdefs.h >>conftest.$ac_ext
4935 cat >>conftest.$ac_ext <<_ACEOF
4936 /* end confdefs.h. */
4937 #include <stdlib.h>
4938
4939 _ACEOF
4940 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4941 $EGREP "free" >/dev/null 2>&1; then
4942 :
4943 else
4944 ac_cv_header_stdc=no
4945 fi
4946 rm -f conftest*
4947
4948 fi
4949
4950 if test $ac_cv_header_stdc = yes; then
4951 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4952 if test "$cross_compiling" = yes; then
4953 :
4954 else
4955 cat >conftest.$ac_ext <<_ACEOF
4956 /* confdefs.h. */
4957 _ACEOF
4958 cat confdefs.h >>conftest.$ac_ext
4959 cat >>conftest.$ac_ext <<_ACEOF
4960 /* end confdefs.h. */
4961 #include <ctype.h>
4962 #include <stdlib.h>
4963 #if ((' ' & 0x0FF) == 0x020)
4964 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4965 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4966 #else
4967 # define ISLOWER(c) \
4968 (('a' <= (c) && (c) <= 'i') \
4969 || ('j' <= (c) && (c) <= 'r') \
4970 || ('s' <= (c) && (c) <= 'z'))
4971 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4972 #endif
4973
4974 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4975 int
4976 main ()
4977 {
4978 int i;
4979 for (i = 0; i < 256; i++)
4980 if (XOR (islower (i), ISLOWER (i))
4981 || toupper (i) != TOUPPER (i))
4982 return 2;
4983 return 0;
4984 }
4985 _ACEOF
4986 rm -f conftest$ac_exeext
4987 if { (ac_try="$ac_link"
4988 case "(($ac_try" in
4989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4990 *) ac_try_echo=$ac_try;;
4991 esac
4992 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
4993 $as_echo "$ac_try_echo") >&5
4994 (eval "$ac_link") 2>&5
4995 ac_status=$?
4996 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
4997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4998 { (case "(($ac_try" in
4999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5000 *) ac_try_echo=$ac_try;;
5001 esac
5002 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5003 $as_echo "$ac_try_echo") >&5
5004 (eval "$ac_try") 2>&5
5005 ac_status=$?
5006 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5007 (exit $ac_status); }; }; then
5008 :
5009 else
5010 $as_echo "$as_me: program exited with status $ac_status" >&5
5011 $as_echo "$as_me: failed program was:" >&5
5012 sed 's/^/| /' conftest.$ac_ext >&5
5013
5014 ( exit $ac_status )
5015 ac_cv_header_stdc=no
5016 fi
5017 rm -rf conftest.dSYM
5018 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5019 fi
5020
5021
5022 fi
5023 fi
5024 { $as_echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5025 $as_echo "$ac_cv_header_stdc" >&6; }
5026 if test $ac_cv_header_stdc = yes; then
5027
5028 cat >>confdefs.h <<\_ACEOF
5029 #define STDC_HEADERS 1
5030 _ACEOF
5031
5032 fi
5033
5034 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5035
5036
5037
5038
5039
5040
5041
5042
5043
5044 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5045 inttypes.h stdint.h unistd.h
5046 do
5047 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5048 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5049 $as_echo_n "checking for $ac_header... " >&6; }
5050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5051 $as_echo_n "(cached) " >&6
5052 else
5053 cat >conftest.$ac_ext <<_ACEOF
5054 /* confdefs.h. */
5055 _ACEOF
5056 cat confdefs.h >>conftest.$ac_ext
5057 cat >>conftest.$ac_ext <<_ACEOF
5058 /* end confdefs.h. */
5059 $ac_includes_default
5060
5061 #include <$ac_header>
5062 _ACEOF
5063 rm -f conftest.$ac_objext
5064 if { (ac_try="$ac_compile"
5065 case "(($ac_try" in
5066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5067 *) ac_try_echo=$ac_try;;
5068 esac
5069 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5070 $as_echo "$ac_try_echo") >&5
5071 (eval "$ac_compile") 2>conftest.er1
5072 ac_status=$?
5073 grep -v '^ *+' conftest.er1 >conftest.err
5074 rm -f conftest.er1
5075 cat conftest.err >&5
5076 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5077 (exit $ac_status); } && {
5078 test -z "$ac_c_werror_flag" ||
5079 test ! -s conftest.err
5080 } && test -s conftest.$ac_objext; then
5081 eval "$as_ac_Header=yes"
5082 else
5083 $as_echo "$as_me: failed program was:" >&5
5084 sed 's/^/| /' conftest.$ac_ext >&5
5085
5086 eval "$as_ac_Header=no"
5087 fi
5088
5089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5090 fi
5091 ac_res=`eval 'as_val=${'$as_ac_Header'}
5092 $as_echo "$as_val"'`
5093 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5094 $as_echo "$ac_res" >&6; }
5095 as_val=`eval 'as_val=${'$as_ac_Header'}
5096 $as_echo "$as_val"'`
5097 if test "x$as_val" = x""yes; then
5098 cat >>confdefs.h <<_ACEOF
5099 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5100 _ACEOF
5101
5102 fi
5103
5104 done
5105
5106
5107
5108 for ac_header in dlfcn.h
5109 do
5110 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5112 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5113 $as_echo_n "checking for $ac_header... " >&6; }
5114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5115 $as_echo_n "(cached) " >&6
5116 fi
5117 ac_res=`eval 'as_val=${'$as_ac_Header'}
5118 $as_echo "$as_val"'`
5119 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5120 $as_echo "$ac_res" >&6; }
5121 else
5122 # Is the header compilable?
5123 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
5124 $as_echo_n "checking $ac_header usability... " >&6; }
5125 cat >conftest.$ac_ext <<_ACEOF
5126 /* confdefs.h. */
5127 _ACEOF
5128 cat confdefs.h >>conftest.$ac_ext
5129 cat >>conftest.$ac_ext <<_ACEOF
5130 /* end confdefs.h. */
5131 $ac_includes_default
5132 #include <$ac_header>
5133 _ACEOF
5134 rm -f conftest.$ac_objext
5135 if { (ac_try="$ac_compile"
5136 case "(($ac_try" in
5137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5138 *) ac_try_echo=$ac_try;;
5139 esac
5140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5141 $as_echo "$ac_try_echo") >&5
5142 (eval "$ac_compile") 2>conftest.er1
5143 ac_status=$?
5144 grep -v '^ *+' conftest.er1 >conftest.err
5145 rm -f conftest.er1
5146 cat conftest.err >&5
5147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5148 (exit $ac_status); } && {
5149 test -z "$ac_c_werror_flag" ||
5150 test ! -s conftest.err
5151 } && test -s conftest.$ac_objext; then
5152 ac_header_compiler=yes
5153 else
5154 $as_echo "$as_me: failed program was:" >&5
5155 sed 's/^/| /' conftest.$ac_ext >&5
5156
5157 ac_header_compiler=no
5158 fi
5159
5160 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5161 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5162 $as_echo "$ac_header_compiler" >&6; }
5163
5164 # Is the header present?
5165 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
5166 $as_echo_n "checking $ac_header presence... " >&6; }
5167 cat >conftest.$ac_ext <<_ACEOF
5168 /* confdefs.h. */
5169 _ACEOF
5170 cat confdefs.h >>conftest.$ac_ext
5171 cat >>conftest.$ac_ext <<_ACEOF
5172 /* end confdefs.h. */
5173 #include <$ac_header>
5174 _ACEOF
5175 if { (ac_try="$ac_cpp conftest.$ac_ext"
5176 case "(($ac_try" in
5177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5178 *) ac_try_echo=$ac_try;;
5179 esac
5180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5181 $as_echo "$ac_try_echo") >&5
5182 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5183 ac_status=$?
5184 grep -v '^ *+' conftest.er1 >conftest.err
5185 rm -f conftest.er1
5186 cat conftest.err >&5
5187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5188 (exit $ac_status); } >/dev/null && {
5189 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5190 test ! -s conftest.err
5191 }; then
5192 ac_header_preproc=yes
5193 else
5194 $as_echo "$as_me: failed program was:" >&5
5195 sed 's/^/| /' conftest.$ac_ext >&5
5196
5197 ac_header_preproc=no
5198 fi
5199
5200 rm -f conftest.err conftest.$ac_ext
5201 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5202 $as_echo "$ac_header_preproc" >&6; }
5203
5204 # So? What about this header?
5205 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5206 yes:no: )
5207 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5208 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5209 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5210 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5211 ac_header_preproc=yes
5212 ;;
5213 no:yes:* )
5214 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5215 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5216 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5217 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5218 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5219 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5220 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5221 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5222 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5223 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5224 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5225 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5226 ( cat <<\_ASBOX
5227 ## ------------------------------------ ##
5228 ## Report this to [email protected] ##
5229 ## ------------------------------------ ##
5230 _ASBOX
5231 ) | sed "s/^/$as_me: WARNING: /" >&2
5232 ;;
5233 esac
5234 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
5235 $as_echo_n "checking for $ac_header... " >&6; }
5236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5237 $as_echo_n "(cached) " >&6
5238 else
5239 eval "$as_ac_Header=\$ac_header_preproc"
5240 fi
5241 ac_res=`eval 'as_val=${'$as_ac_Header'}
5242 $as_echo "$as_val"'`
5243 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
5244 $as_echo "$ac_res" >&6; }
5245
5246 fi
5247 as_val=`eval 'as_val=${'$as_ac_Header'}
5248 $as_echo "$as_val"'`
5249 if test "x$as_val" = x""yes; then
5250 cat >>confdefs.h <<_ACEOF
5251 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5252 _ACEOF
5253
5254 fi
5255
5256 done
5257
5258 ac_ext=cpp
5259 ac_cpp='$CXXCPP $CPPFLAGS'
5260 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5261 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5262 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5263 if test -z "$CXX"; then
5264 if test -n "$CCC"; then
5265 CXX=$CCC
5266 else
5267 if test -n "$ac_tool_prefix"; then
5268 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5269 do
5270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5271 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5272 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5273 $as_echo_n "checking for $ac_word... " >&6; }
5274 if test "${ac_cv_prog_CXX+set}" = set; then
5275 $as_echo_n "(cached) " >&6
5276 else
5277 if test -n "$CXX"; then
5278 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5279 else
5280 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5281 for as_dir in $PATH
5282 do
5283 IFS=$as_save_IFS
5284 test -z "$as_dir" && as_dir=.
5285 for ac_exec_ext in '' $ac_executable_extensions; do
5286 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5287 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5288 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5289 break 2
5290 fi
5291 done
5292 done
5293 IFS=$as_save_IFS
5294
5295 fi
5296 fi
5297 CXX=$ac_cv_prog_CXX
5298 if test -n "$CXX"; then
5299 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
5300 $as_echo "$CXX" >&6; }
5301 else
5302 { $as_echo "$as_me:$LINENO: result: no" >&5
5303 $as_echo "no" >&6; }
5304 fi
5305
5306
5307 test -n "$CXX" && break
5308 done
5309 fi
5310 if test -z "$CXX"; then
5311 ac_ct_CXX=$CXX
5312 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5313 do
5314 # Extract the first word of "$ac_prog", so it can be a program name with args.
5315 set dummy $ac_prog; ac_word=$2
5316 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5317 $as_echo_n "checking for $ac_word... " >&6; }
5318 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
5319 $as_echo_n "(cached) " >&6
5320 else
5321 if test -n "$ac_ct_CXX"; then
5322 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5323 else
5324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5325 for as_dir in $PATH
5326 do
5327 IFS=$as_save_IFS
5328 test -z "$as_dir" && as_dir=.
5329 for ac_exec_ext in '' $ac_executable_extensions; do
5330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5331 ac_cv_prog_ac_ct_CXX="$ac_prog"
5332 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5333 break 2
5334 fi
5335 done
5336 done
5337 IFS=$as_save_IFS
5338
5339 fi
5340 fi
5341 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5342 if test -n "$ac_ct_CXX"; then
5343 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
5344 $as_echo "$ac_ct_CXX" >&6; }
5345 else
5346 { $as_echo "$as_me:$LINENO: result: no" >&5
5347 $as_echo "no" >&6; }
5348 fi
5349
5350
5351 test -n "$ac_ct_CXX" && break
5352 done
5353
5354 if test "x$ac_ct_CXX" = x; then
5355 CXX="g++"
5356 else
5357 case $cross_compiling:$ac_tool_warned in
5358 yes:)
5359 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
5360 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5361 ac_tool_warned=yes ;;
5362 esac
5363 CXX=$ac_ct_CXX
5364 fi
5365 fi
5366
5367 fi
5368 fi
5369 # Provide some information about the compiler.
5370 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
5371 set X $ac_compile
5372 ac_compiler=$2
5373 { (ac_try="$ac_compiler --version >&5"
5374 case "(($ac_try" in
5375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5376 *) ac_try_echo=$ac_try;;
5377 esac
5378 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5379 $as_echo "$ac_try_echo") >&5
5380 (eval "$ac_compiler --version >&5") 2>&5
5381 ac_status=$?
5382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5383 (exit $ac_status); }
5384 { (ac_try="$ac_compiler -v >&5"
5385 case "(($ac_try" in
5386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5387 *) ac_try_echo=$ac_try;;
5388 esac
5389 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5390 $as_echo "$ac_try_echo") >&5
5391 (eval "$ac_compiler -v >&5") 2>&5
5392 ac_status=$?
5393 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5394 (exit $ac_status); }
5395 { (ac_try="$ac_compiler -V >&5"
5396 case "(($ac_try" in
5397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5398 *) ac_try_echo=$ac_try;;
5399 esac
5400 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5401 $as_echo "$ac_try_echo") >&5
5402 (eval "$ac_compiler -V >&5") 2>&5
5403 ac_status=$?
5404 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }
5406
5407 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
5408 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5409 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
5410 $as_echo_n "(cached) " >&6
5411 else
5412 cat >conftest.$ac_ext <<_ACEOF
5413 /* confdefs.h. */
5414 _ACEOF
5415 cat confdefs.h >>conftest.$ac_ext
5416 cat >>conftest.$ac_ext <<_ACEOF
5417 /* end confdefs.h. */
5418
5419 int
5420 main ()
5421 {
5422 #ifndef __GNUC__
5423 choke me
5424 #endif
5425
5426 ;
5427 return 0;
5428 }
5429 _ACEOF
5430 rm -f conftest.$ac_objext
5431 if { (ac_try="$ac_compile"
5432 case "(($ac_try" in
5433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5434 *) ac_try_echo=$ac_try;;
5435 esac
5436 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5437 $as_echo "$ac_try_echo") >&5
5438 (eval "$ac_compile") 2>conftest.er1
5439 ac_status=$?
5440 grep -v '^ *+' conftest.er1 >conftest.err
5441 rm -f conftest.er1
5442 cat conftest.err >&5
5443 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444 (exit $ac_status); } && {
5445 test -z "$ac_cxx_werror_flag" ||
5446 test ! -s conftest.err
5447 } && test -s conftest.$ac_objext; then
5448 ac_compiler_gnu=yes
5449 else
5450 $as_echo "$as_me: failed program was:" >&5
5451 sed 's/^/| /' conftest.$ac_ext >&5
5452
5453 ac_compiler_gnu=no
5454 fi
5455
5456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5457 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5458
5459 fi
5460 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
5461 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5462 if test $ac_compiler_gnu = yes; then
5463 GXX=yes
5464 else
5465 GXX=
5466 fi
5467 ac_test_CXXFLAGS=${CXXFLAGS+set}
5468 ac_save_CXXFLAGS=$CXXFLAGS
5469 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
5470 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5471 if test "${ac_cv_prog_cxx_g+set}" = set; then
5472 $as_echo_n "(cached) " >&6
5473 else
5474 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5475 ac_cxx_werror_flag=yes
5476 ac_cv_prog_cxx_g=no
5477 CXXFLAGS="-g"
5478 cat >conftest.$ac_ext <<_ACEOF
5479 /* confdefs.h. */
5480 _ACEOF
5481 cat confdefs.h >>conftest.$ac_ext
5482 cat >>conftest.$ac_ext <<_ACEOF
5483 /* end confdefs.h. */
5484
5485 int
5486 main ()
5487 {
5488
5489 ;
5490 return 0;
5491 }
5492 _ACEOF
5493 rm -f conftest.$ac_objext
5494 if { (ac_try="$ac_compile"
5495 case "(($ac_try" in
5496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5497 *) ac_try_echo=$ac_try;;
5498 esac
5499 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5500 $as_echo "$ac_try_echo") >&5
5501 (eval "$ac_compile") 2>conftest.er1
5502 ac_status=$?
5503 grep -v '^ *+' conftest.er1 >conftest.err
5504 rm -f conftest.er1
5505 cat conftest.err >&5
5506 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5507 (exit $ac_status); } && {
5508 test -z "$ac_cxx_werror_flag" ||
5509 test ! -s conftest.err
5510 } && test -s conftest.$ac_objext; then
5511 ac_cv_prog_cxx_g=yes
5512 else
5513 $as_echo "$as_me: failed program was:" >&5
5514 sed 's/^/| /' conftest.$ac_ext >&5
5515
5516 CXXFLAGS=""
5517 cat >conftest.$ac_ext <<_ACEOF
5518 /* confdefs.h. */
5519 _ACEOF
5520 cat confdefs.h >>conftest.$ac_ext
5521 cat >>conftest.$ac_ext <<_ACEOF
5522 /* end confdefs.h. */
5523
5524 int
5525 main ()
5526 {
5527
5528 ;
5529 return 0;
5530 }
5531 _ACEOF
5532 rm -f conftest.$ac_objext
5533 if { (ac_try="$ac_compile"
5534 case "(($ac_try" in
5535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5536 *) ac_try_echo=$ac_try;;
5537 esac
5538 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5539 $as_echo "$ac_try_echo") >&5
5540 (eval "$ac_compile") 2>conftest.er1
5541 ac_status=$?
5542 grep -v '^ *+' conftest.er1 >conftest.err
5543 rm -f conftest.er1
5544 cat conftest.err >&5
5545 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } && {
5547 test -z "$ac_cxx_werror_flag" ||
5548 test ! -s conftest.err
5549 } && test -s conftest.$ac_objext; then
5550 :
5551 else
5552 $as_echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5556 CXXFLAGS="-g"
5557 cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h. */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563
5564 int
5565 main ()
5566 {
5567
5568 ;
5569 return 0;
5570 }
5571 _ACEOF
5572 rm -f conftest.$ac_objext
5573 if { (ac_try="$ac_compile"
5574 case "(($ac_try" in
5575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5576 *) ac_try_echo=$ac_try;;
5577 esac
5578 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5579 $as_echo "$ac_try_echo") >&5
5580 (eval "$ac_compile") 2>conftest.er1
5581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } && {
5587 test -z "$ac_cxx_werror_flag" ||
5588 test ! -s conftest.err
5589 } && test -s conftest.$ac_objext; then
5590 ac_cv_prog_cxx_g=yes
5591 else
5592 $as_echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5594
5595
5596 fi
5597
5598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5599 fi
5600
5601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5602 fi
5603
5604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5605 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5606 fi
5607 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
5608 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5609 if test "$ac_test_CXXFLAGS" = set; then
5610 CXXFLAGS=$ac_save_CXXFLAGS
5611 elif test $ac_cv_prog_cxx_g = yes; then
5612 if test "$GXX" = yes; then
5613 CXXFLAGS="-g -O2"
5614 else
5615 CXXFLAGS="-g"
5616 fi
5617 else
5618 if test "$GXX" = yes; then
5619 CXXFLAGS="-O2"
5620 else
5621 CXXFLAGS=
5622 fi
5623 fi
5624 ac_ext=cpp
5625 ac_cpp='$CXXCPP $CPPFLAGS'
5626 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5627 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5628 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5629
5630 depcc="$CXX" am_compiler_list=
5631
5632 { $as_echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
5633 $as_echo_n "checking dependency style of $depcc... " >&6; }
5634 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
5635 $as_echo_n "(cached) " >&6
5636 else
5637 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5638 # We make a subdir and do the tests there. Otherwise we can end up
5639 # making bogus files that we don't know about and never remove. For
5640 # instance it was reported that on HP-UX the gcc test will end up
5641 # making a dummy file named `D' -- because `-MD' means `put the output
5642 # in D'.
5643 mkdir conftest.dir
5644 # Copy depcomp to subdir because otherwise we won't find it if we're
5645 # using a relative directory.
5646 cp "$am_depcomp" conftest.dir
5647 cd conftest.dir
5648 # We will build objects and dependencies in a subdirectory because
5649 # it helps to detect inapplicable dependency modes. For instance
5650 # both Tru64's cc and ICC support -MD to output dependencies as a
5651 # side effect of compilation, but ICC will put the dependencies in
5652 # the current directory while Tru64 will put them in the object
5653 # directory.
5654 mkdir sub
5655
5656 am_cv_CXX_dependencies_compiler_type=none
5657 if test "$am_compiler_list" = ""; then
5658 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5659 fi
5660 for depmode in $am_compiler_list; do
5661 # Setup a source with many dependencies, because some compilers
5662 # like to wrap large dependency lists on column 80 (with \), and
5663 # we should not choose a depcomp mode which is confused by this.
5664 #
5665 # We need to recreate these files for each test, as the compiler may
5666 # overwrite some of them when testing with obscure command lines.
5667 # This happens at least with the AIX C compiler.
5668 : > sub/conftest.c
5669 for i in 1 2 3 4 5 6; do
5670 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5671 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5672 # Solaris 8's {/usr,}/bin/sh.
5673 touch sub/conftst$i.h
5674 done
5675 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5676
5677 case $depmode in
5678 nosideeffect)
5679 # after this tag, mechanisms are not by side-effect, so they'll
5680 # only be used when explicitly requested
5681 if test "x$enable_dependency_tracking" = xyes; then
5682 continue
5683 else
5684 break
5685 fi
5686 ;;
5687 none) break ;;
5688 esac
5689 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5690 # mode. It turns out that the SunPro C++ compiler does not properly
5691 # handle `-M -o', and we need to detect this.
5692 if depmode=$depmode \
5693 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
5694 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5695 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
5696 >/dev/null 2>conftest.err &&
5697 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5698 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5699 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
5700 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5701 # icc doesn't choke on unknown options, it will just issue warnings
5702 # or remarks (even with -Werror). So we grep stderr for any message
5703 # that says an option was ignored or not supported.
5704 # When given -MP, icc 7.0 and 7.1 complain thusly:
5705 # icc: Command line warning: ignoring option '-M'; no argument required
5706 # The diagnosis changed in icc 8.0:
5707 # icc: Command line remark: option '-MP' not supported
5708 if (grep 'ignoring option' conftest.err ||
5709 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5710 am_cv_CXX_dependencies_compiler_type=$depmode
5711 break
5712 fi
5713 fi
5714 done
5715
5716 cd ..
5717 rm -rf conftest.dir
5718 else
5719 am_cv_CXX_dependencies_compiler_type=none
5720 fi
5721
5722 fi
5723 { $as_echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
5724 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
5725 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
5726
5727 if
5728 test "x$enable_dependency_tracking" != xno \
5729 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5730 am__fastdepCXX_TRUE=
5731 am__fastdepCXX_FALSE='#'
5732 else
5733 am__fastdepCXX_TRUE='#'
5734 am__fastdepCXX_FALSE=
5735 fi
5736
5737
5738
5739
5740 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5741 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5742 (test "X$CXX" != "Xg++"))) ; then
5743 ac_ext=cpp
5744 ac_cpp='$CXXCPP $CPPFLAGS'
5745 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5746 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5747 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5748 { $as_echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5749 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5750 if test -z "$CXXCPP"; then
5751 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5752 $as_echo_n "(cached) " >&6
5753 else
5754 # Double quotes because CXXCPP needs to be expanded
5755 for CXXCPP in "$CXX -E" "/lib/cpp"
5756 do
5757 ac_preproc_ok=false
5758 for ac_cxx_preproc_warn_flag in '' yes
5759 do
5760 # Use a header file that comes with gcc, so configuring glibc
5761 # with a fresh cross-compiler works.
5762 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5763 # <limits.h> exists even on freestanding compilers.
5764 # On the NeXT, cc -E runs the code through the compiler's parser,
5765 # not just through cpp. "Syntax error" is here to catch this case.
5766 cat >conftest.$ac_ext <<_ACEOF
5767 /* confdefs.h. */
5768 _ACEOF
5769 cat confdefs.h >>conftest.$ac_ext
5770 cat >>conftest.$ac_ext <<_ACEOF
5771 /* end confdefs.h. */
5772 #ifdef __STDC__
5773 # include <limits.h>
5774 #else
5775 # include <assert.h>
5776 #endif
5777 Syntax error
5778 _ACEOF
5779 if { (ac_try="$ac_cpp conftest.$ac_ext"
5780 case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783 esac
5784 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5785 $as_echo "$ac_try_echo") >&5
5786 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5787 ac_status=$?
5788 grep -v '^ *+' conftest.er1 >conftest.err
5789 rm -f conftest.er1
5790 cat conftest.err >&5
5791 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5792 (exit $ac_status); } >/dev/null && {
5793 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5794 test ! -s conftest.err
5795 }; then
5796 :
5797 else
5798 $as_echo "$as_me: failed program was:" >&5
5799 sed 's/^/| /' conftest.$ac_ext >&5
5800
5801 # Broken: fails on valid input.
5802 continue
5803 fi
5804
5805 rm -f conftest.err conftest.$ac_ext
5806
5807 # OK, works on sane cases. Now check whether nonexistent headers
5808 # can be detected and how.
5809 cat >conftest.$ac_ext <<_ACEOF
5810 /* confdefs.h. */
5811 _ACEOF
5812 cat confdefs.h >>conftest.$ac_ext
5813 cat >>conftest.$ac_ext <<_ACEOF
5814 /* end confdefs.h. */
5815 #include <ac_nonexistent.h>
5816 _ACEOF
5817 if { (ac_try="$ac_cpp conftest.$ac_ext"
5818 case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821 esac
5822 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5823 $as_echo "$ac_try_echo") >&5
5824 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5825 ac_status=$?
5826 grep -v '^ *+' conftest.er1 >conftest.err
5827 rm -f conftest.er1
5828 cat conftest.err >&5
5829 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5830 (exit $ac_status); } >/dev/null && {
5831 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5832 test ! -s conftest.err
5833 }; then
5834 # Broken: success on invalid input.
5835 continue
5836 else
5837 $as_echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5839
5840 # Passes both tests.
5841 ac_preproc_ok=:
5842 break
5843 fi
5844
5845 rm -f conftest.err conftest.$ac_ext
5846
5847 done
5848 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5849 rm -f conftest.err conftest.$ac_ext
5850 if $ac_preproc_ok; then
5851 break
5852 fi
5853
5854 done
5855 ac_cv_prog_CXXCPP=$CXXCPP
5856
5857 fi
5858 CXXCPP=$ac_cv_prog_CXXCPP
5859 else
5860 ac_cv_prog_CXXCPP=$CXXCPP
5861 fi
5862 { $as_echo "$as_me:$LINENO: result: $CXXCPP" >&5
5863 $as_echo "$CXXCPP" >&6; }
5864 ac_preproc_ok=false
5865 for ac_cxx_preproc_warn_flag in '' yes
5866 do
5867 # Use a header file that comes with gcc, so configuring glibc
5868 # with a fresh cross-compiler works.
5869 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5870 # <limits.h> exists even on freestanding compilers.
5871 # On the NeXT, cc -E runs the code through the compiler's parser,
5872 # not just through cpp. "Syntax error" is here to catch this case.
5873 cat >conftest.$ac_ext <<_ACEOF
5874 /* confdefs.h. */
5875 _ACEOF
5876 cat confdefs.h >>conftest.$ac_ext
5877 cat >>conftest.$ac_ext <<_ACEOF
5878 /* end confdefs.h. */
5879 #ifdef __STDC__
5880 # include <limits.h>
5881 #else
5882 # include <assert.h>
5883 #endif
5884 Syntax error
5885 _ACEOF
5886 if { (ac_try="$ac_cpp conftest.$ac_ext"
5887 case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890 esac
5891 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5892 $as_echo "$ac_try_echo") >&5
5893 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5894 ac_status=$?
5895 grep -v '^ *+' conftest.er1 >conftest.err
5896 rm -f conftest.er1
5897 cat conftest.err >&5
5898 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } >/dev/null && {
5900 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5901 test ! -s conftest.err
5902 }; then
5903 :
5904 else
5905 $as_echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5907
5908 # Broken: fails on valid input.
5909 continue
5910 fi
5911
5912 rm -f conftest.err conftest.$ac_ext
5913
5914 # OK, works on sane cases. Now check whether nonexistent headers
5915 # can be detected and how.
5916 cat >conftest.$ac_ext <<_ACEOF
5917 /* confdefs.h. */
5918 _ACEOF
5919 cat confdefs.h >>conftest.$ac_ext
5920 cat >>conftest.$ac_ext <<_ACEOF
5921 /* end confdefs.h. */
5922 #include <ac_nonexistent.h>
5923 _ACEOF
5924 if { (ac_try="$ac_cpp conftest.$ac_ext"
5925 case "(($ac_try" in
5926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5927 *) ac_try_echo=$ac_try;;
5928 esac
5929 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5930 $as_echo "$ac_try_echo") >&5
5931 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5932 ac_status=$?
5933 grep -v '^ *+' conftest.er1 >conftest.err
5934 rm -f conftest.er1
5935 cat conftest.err >&5
5936 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5937 (exit $ac_status); } >/dev/null && {
5938 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
5939 test ! -s conftest.err
5940 }; then
5941 # Broken: success on invalid input.
5942 continue
5943 else
5944 $as_echo "$as_me: failed program was:" >&5
5945 sed 's/^/| /' conftest.$ac_ext >&5
5946
5947 # Passes both tests.
5948 ac_preproc_ok=:
5949 break
5950 fi
5951
5952 rm -f conftest.err conftest.$ac_ext
5953
5954 done
5955 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5956 rm -f conftest.err conftest.$ac_ext
5957 if $ac_preproc_ok; then
5958 :
5959 else
5960 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
5961 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5962 { { $as_echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5963 See \`config.log' for more details." >&5
5964 $as_echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5965 See \`config.log' for more details." >&2;}
5966 { (exit 1); exit 1; }; }; }
5967 fi
5968
5969 ac_ext=cpp
5970 ac_cpp='$CXXCPP $CPPFLAGS'
5971 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5972 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5973 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5974
5975 fi
5976
5977
5978 ac_ext=f
5979 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5980 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5981 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5982 if test -n "$ac_tool_prefix"; then
5983 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
5984 do
5985 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5986 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5987 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5988 $as_echo_n "checking for $ac_word... " >&6; }
5989 if test "${ac_cv_prog_F77+set}" = set; then
5990 $as_echo_n "(cached) " >&6
5991 else
5992 if test -n "$F77"; then
5993 ac_cv_prog_F77="$F77" # Let the user override the test.
5994 else
5995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5996 for as_dir in $PATH
5997 do
5998 IFS=$as_save_IFS
5999 test -z "$as_dir" && as_dir=.
6000 for ac_exec_ext in '' $ac_executable_extensions; do
6001 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6002 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
6003 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6004 break 2
6005 fi
6006 done
6007 done
6008 IFS=$as_save_IFS
6009
6010 fi
6011 fi
6012 F77=$ac_cv_prog_F77
6013 if test -n "$F77"; then
6014 { $as_echo "$as_me:$LINENO: result: $F77" >&5
6015 $as_echo "$F77" >&6; }
6016 else
6017 { $as_echo "$as_me:$LINENO: result: no" >&5
6018 $as_echo "no" >&6; }
6019 fi
6020
6021
6022 test -n "$F77" && break
6023 done
6024 fi
6025 if test -z "$F77"; then
6026 ac_ct_F77=$F77
6027 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
6028 do
6029 # Extract the first word of "$ac_prog", so it can be a program name with args.
6030 set dummy $ac_prog; ac_word=$2
6031 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6032 $as_echo_n "checking for $ac_word... " >&6; }
6033 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
6034 $as_echo_n "(cached) " >&6
6035 else
6036 if test -n "$ac_ct_F77"; then
6037 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
6038 else
6039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6040 for as_dir in $PATH
6041 do
6042 IFS=$as_save_IFS
6043 test -z "$as_dir" && as_dir=.
6044 for ac_exec_ext in '' $ac_executable_extensions; do
6045 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6046 ac_cv_prog_ac_ct_F77="$ac_prog"
6047 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6048 break 2
6049 fi
6050 done
6051 done
6052 IFS=$as_save_IFS
6053
6054 fi
6055 fi
6056 ac_ct_F77=$ac_cv_prog_ac_ct_F77
6057 if test -n "$ac_ct_F77"; then
6058 { $as_echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
6059 $as_echo "$ac_ct_F77" >&6; }
6060 else
6061 { $as_echo "$as_me:$LINENO: result: no" >&5
6062 $as_echo "no" >&6; }
6063 fi
6064
6065
6066 test -n "$ac_ct_F77" && break
6067 done
6068
6069 if test "x$ac_ct_F77" = x; then
6070 F77=""
6071 else
6072 case $cross_compiling:$ac_tool_warned in
6073 yes:)
6074 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6076 ac_tool_warned=yes ;;
6077 esac
6078 F77=$ac_ct_F77
6079 fi
6080 fi
6081
6082
6083 # Provide some information about the compiler.
6084 $as_echo "$as_me:$LINENO: checking for Fortran 77 compiler version" >&5
6085 set X $ac_compile
6086 ac_compiler=$2
6087 { (ac_try="$ac_compiler --version >&5"
6088 case "(($ac_try" in
6089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6090 *) ac_try_echo=$ac_try;;
6091 esac
6092 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6093 $as_echo "$ac_try_echo") >&5
6094 (eval "$ac_compiler --version >&5") 2>&5
6095 ac_status=$?
6096 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6097 (exit $ac_status); }
6098 { (ac_try="$ac_compiler -v >&5"
6099 case "(($ac_try" in
6100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6101 *) ac_try_echo=$ac_try;;
6102 esac
6103 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6104 $as_echo "$ac_try_echo") >&5
6105 (eval "$ac_compiler -v >&5") 2>&5
6106 ac_status=$?
6107 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6108 (exit $ac_status); }
6109 { (ac_try="$ac_compiler -V >&5"
6110 case "(($ac_try" in
6111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6112 *) ac_try_echo=$ac_try;;
6113 esac
6114 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6115 $as_echo "$ac_try_echo") >&5
6116 (eval "$ac_compiler -V >&5") 2>&5
6117 ac_status=$?
6118 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6119 (exit $ac_status); }
6120 rm -f a.out
6121
6122 # If we don't use `.F' as extension, the preprocessor is not run on the
6123 # input file. (Note that this only needs to work for GNU compilers.)
6124 ac_save_ext=$ac_ext
6125 ac_ext=F
6126 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
6127 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
6128 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
6129 $as_echo_n "(cached) " >&6
6130 else
6131 cat >conftest.$ac_ext <<_ACEOF
6132 program main
6133 #ifndef __GNUC__
6134 choke me
6135 #endif
6136
6137 end
6138 _ACEOF
6139 rm -f conftest.$ac_objext
6140 if { (ac_try="$ac_compile"
6141 case "(($ac_try" in
6142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6143 *) ac_try_echo=$ac_try;;
6144 esac
6145 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6146 $as_echo "$ac_try_echo") >&5
6147 (eval "$ac_compile") 2>conftest.er1
6148 ac_status=$?
6149 grep -v '^ *+' conftest.er1 >conftest.err
6150 rm -f conftest.er1
6151 cat conftest.err >&5
6152 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } && {
6154 test -z "$ac_f77_werror_flag" ||
6155 test ! -s conftest.err
6156 } && test -s conftest.$ac_objext; then
6157 ac_compiler_gnu=yes
6158 else
6159 $as_echo "$as_me: failed program was:" >&5
6160 sed 's/^/| /' conftest.$ac_ext >&5
6161
6162 ac_compiler_gnu=no
6163 fi
6164
6165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6166 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
6167
6168 fi
6169 { $as_echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
6170 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
6171 ac_ext=$ac_save_ext
6172 ac_test_FFLAGS=${FFLAGS+set}
6173 ac_save_FFLAGS=$FFLAGS
6174 FFLAGS=
6175 { $as_echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
6176 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
6177 if test "${ac_cv_prog_f77_g+set}" = set; then
6178 $as_echo_n "(cached) " >&6
6179 else
6180 FFLAGS=-g
6181 cat >conftest.$ac_ext <<_ACEOF
6182 program main
6183
6184 end
6185 _ACEOF
6186 rm -f conftest.$ac_objext
6187 if { (ac_try="$ac_compile"
6188 case "(($ac_try" in
6189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6190 *) ac_try_echo=$ac_try;;
6191 esac
6192 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
6193 $as_echo "$ac_try_echo") >&5
6194 (eval "$ac_compile") 2>conftest.er1
6195 ac_status=$?
6196 grep -v '^ *+' conftest.er1 >conftest.err
6197 rm -f conftest.er1
6198 cat conftest.err >&5
6199 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6200 (exit $ac_status); } && {
6201 test -z "$ac_f77_werror_flag" ||
6202 test ! -s conftest.err
6203 } && test -s conftest.$ac_objext; then
6204 ac_cv_prog_f77_g=yes
6205 else
6206 $as_echo "$as_me: failed program was:" >&5
6207 sed 's/^/| /' conftest.$ac_ext >&5
6208
6209 ac_cv_prog_f77_g=no
6210 fi
6211
6212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6213
6214 fi
6215 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
6216 $as_echo "$ac_cv_prog_f77_g" >&6; }
6217 if test "$ac_test_FFLAGS" = set; then
6218 FFLAGS=$ac_save_FFLAGS
6219 elif test $ac_cv_prog_f77_g = yes; then
6220 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6221 FFLAGS="-g -O2"
6222 else
6223 FFLAGS="-g"
6224 fi
6225 else
6226 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
6227 FFLAGS="-O2"
6228 else
6229 FFLAGS=
6230 fi
6231 fi
6232
6233 if test $ac_compiler_gnu = yes; then
6234 G77=yes
6235 else
6236 G77=
6237 fi
6238 ac_ext=c
6239 ac_cpp='$CPP $CPPFLAGS'
6240 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6241 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6242 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6243
6244
6245
6246 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
6247 # find the maximum length of command line arguments
6248 { $as_echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
6249 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6250 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
6251 $as_echo_n "(cached) " >&6
6252 else
6253 i=0
6254 teststring="ABCD"
6255
6256 case $build_os in
6257 msdosdjgpp*)
6258 # On DJGPP, this test can blow up pretty badly due to problems in libc
6259 # (any single argument exceeding 2000 bytes causes a buffer overrun
6260 # during glob expansion). Even if it were fixed, the result of this
6261 # check would be larger than it should be.
6262 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6263 ;;
6264
6265 gnu*)
6266 # Under GNU Hurd, this test is not required because there is
6267 # no limit to the length of command line arguments.
6268 # Libtool will interpret -1 as no limit whatsoever
6269 lt_cv_sys_max_cmd_len=-1;
6270 ;;
6271
6272 cygwin* | mingw*)
6273 # On Win9x/ME, this test blows up -- it succeeds, but takes
6274 # about 5 minutes as the teststring grows exponentially.
6275 # Worse, since 9x/ME are not pre-emptively multitasking,
6276 # you end up with a "frozen" computer, even though with patience
6277 # the test eventually succeeds (with a max line length of 256k).
6278 # Instead, let's just punt: use the minimum linelength reported by
6279 # all of the supported platforms: 8192 (on NT/2K/XP).
6280 lt_cv_sys_max_cmd_len=8192;
6281 ;;
6282
6283 amigaos*)
6284 # On AmigaOS with pdksh, this test takes hours, literally.
6285 # So we just punt and use a minimum line length of 8192.
6286 lt_cv_sys_max_cmd_len=8192;
6287 ;;
6288
6289 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6290 # This has been around since 386BSD, at least. Likely further.
6291 if test -x /sbin/sysctl; then
6292 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6293 elif test -x /usr/sbin/sysctl; then
6294 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6295 else
6296 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6297 fi
6298 # And add a safety zone
6299 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6300 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6301 ;;
6302
6303 interix*)
6304 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6305 lt_cv_sys_max_cmd_len=196608
6306 ;;
6307
6308 osf*)
6309 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6310 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6311 # nice to cause kernel panics so lets avoid the loop below.
6312 # First set a reasonable default.
6313 lt_cv_sys_max_cmd_len=16384
6314 #
6315 if test -x /sbin/sysconfig; then
6316 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6317 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6318 esac
6319 fi
6320 ;;
6321 sco3.2v5*)
6322 lt_cv_sys_max_cmd_len=102400
6323 ;;
6324 sysv5* | sco5v6* | sysv4.2uw2*)
6325 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6326 if test -n "$kargmax"; then
6327 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6328 else
6329 lt_cv_sys_max_cmd_len=32768
6330 fi
6331 ;;
6332 *)
6333 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6334 if test -n "$lt_cv_sys_max_cmd_len"; then
6335 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6336 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6337 else
6338 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6339 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
6340 = "XX$teststring") >/dev/null 2>&1 &&
6341 new_result=`expr "X$teststring" : ".*" 2>&1` &&
6342 lt_cv_sys_max_cmd_len=$new_result &&
6343 test $i != 17 # 1/2 MB should be enough
6344 do
6345 i=`expr $i + 1`
6346 teststring=$teststring$teststring
6347 done
6348 teststring=
6349 # Add a significant safety factor because C++ compilers can tack on massive
6350 # amounts of additional arguments before passing them to the linker.
6351 # It appears as though 1/2 is a usable value.
6352 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6353 fi
6354 ;;
6355 esac
6356
6357 fi
6358
6359 if test -n $lt_cv_sys_max_cmd_len ; then
6360 { $as_echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
6361 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6362 else
6363 { $as_echo "$as_me:$LINENO: result: none" >&5
6364 $as_echo "none" >&6; }
6365 fi
6366
6367
6368
6369
6370
6371 # Check for command to grab the raw symbol name followed by C symbol from nm.
6372 { $as_echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
6373 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6374 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
6375 $as_echo_n "(cached) " >&6
6376 else
6377
6378 # These are sane defaults that work on at least a few old systems.
6379 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6380
6381 # Character class describing NM global symbol codes.
6382 symcode='[BCDEGRST]'
6383
6384 # Regexp to match symbols that can be accessed directly from C.
6385 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6386
6387 # Transform an extracted symbol line into a proper C declaration
6388 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
6389
6390 # Transform an extracted symbol line into symbol name and symbol address
6391 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'"
6392
6393 # Define system-specific variables.
6394 case $host_os in
6395 aix*)
6396 symcode='[BCDT]'
6397 ;;
6398 cygwin* | mingw* | pw32*)
6399 symcode='[ABCDGISTW]'
6400 ;;
6401 hpux*) # Its linker distinguishes data from code symbols
6402 if test "$host_cpu" = ia64; then
6403 symcode='[ABCDEGRST]'
6404 fi
6405 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
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 linux* | k*bsd*-gnu)
6409 if test "$host_cpu" = ia64; then
6410 symcode='[ABCDGIRSTW]'
6411 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6412 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'"
6413 fi
6414 ;;
6415 irix* | nonstopux*)
6416 symcode='[BCDEGRST]'
6417 ;;
6418 osf*)
6419 symcode='[BCDEGQRST]'
6420 ;;
6421 solaris*)
6422 symcode='[BDRT]'
6423 ;;
6424 sco3.2v5*)
6425 symcode='[DT]'
6426 ;;
6427 sysv4.2uw2*)
6428 symcode='[DT]'
6429 ;;
6430 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6431 symcode='[ABDT]'
6432 ;;
6433 sysv4)
6434 symcode='[DFNSTU]'
6435 ;;
6436 esac
6437
6438 # Handle CRLF in mingw tool chain
6439 opt_cr=
6440 case $build_os in
6441 mingw*)
6442 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6443 ;;
6444 esac
6445
6446 # If we're using GNU nm, then use its standard symbol codes.
6447 case `$NM -V 2>&1` in
6448 *GNU* | *'with BFD'*)
6449 symcode='[ABCDGIRSTW]' ;;
6450 esac
6451
6452 # Try without a prefix undercore, then with it.
6453 for ac_symprfx in "" "_"; do
6454
6455 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6456 symxfrm="\\1 $ac_symprfx\\2 \\2"
6457
6458 # Write the raw and C identifiers.
6459 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6460
6461 # Check to see that the pipe works correctly.
6462 pipe_works=no
6463
6464 rm -f conftest*
6465 cat > conftest.$ac_ext <<EOF
6466 #ifdef __cplusplus
6467 extern "C" {
6468 #endif
6469 char nm_test_var;
6470 void nm_test_func(){}
6471 #ifdef __cplusplus
6472 }
6473 #endif
6474 int main(){nm_test_var='a';nm_test_func();return(0);}
6475 EOF
6476
6477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6478 (eval $ac_compile) 2>&5
6479 ac_status=$?
6480 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6481 (exit $ac_status); }; then
6482 # Now try to grab the symbols.
6483 nlist=conftest.nm
6484 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
6485 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
6486 ac_status=$?
6487 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6488 (exit $ac_status); } && test -s "$nlist"; then
6489 # Try sorting and uniquifying the output.
6490 if sort "$nlist" | uniq > "$nlist"T; then
6491 mv -f "$nlist"T "$nlist"
6492 else
6493 rm -f "$nlist"T
6494 fi
6495
6496 # Make sure that we snagged all the symbols we need.
6497 if grep ' nm_test_var$' "$nlist" >/dev/null; then
6498 if grep ' nm_test_func$' "$nlist" >/dev/null; then
6499 cat <<EOF > conftest.$ac_ext
6500 #ifdef __cplusplus
6501 extern "C" {
6502 #endif
6503
6504 EOF
6505 # Now generate the symbol file.
6506 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
6507
6508 cat <<EOF >> conftest.$ac_ext
6509 #if defined (__STDC__) && __STDC__
6510 # define lt_ptr_t void *
6511 #else
6512 # define lt_ptr_t char *
6513 # define const
6514 #endif
6515
6516 /* The mapping between symbol names and symbols. */
6517 const struct {
6518 const char *name;
6519 lt_ptr_t address;
6520 }
6521 lt_preloaded_symbols[] =
6522 {
6523 EOF
6524 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
6525 cat <<\EOF >> conftest.$ac_ext
6526 {0, (lt_ptr_t) 0}
6527 };
6528
6529 #ifdef __cplusplus
6530 }
6531 #endif
6532 EOF
6533 # Now try linking the two files.
6534 mv conftest.$ac_objext conftstm.$ac_objext
6535 lt_save_LIBS="$LIBS"
6536 lt_save_CFLAGS="$CFLAGS"
6537 LIBS="conftstm.$ac_objext"
6538 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6539 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6540 (eval $ac_link) 2>&5
6541 ac_status=$?
6542 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); } && test -s conftest${ac_exeext}; then
6544 pipe_works=yes
6545 fi
6546 LIBS="$lt_save_LIBS"
6547 CFLAGS="$lt_save_CFLAGS"
6548 else
6549 echo "cannot find nm_test_func in $nlist" >&5
6550 fi
6551 else
6552 echo "cannot find nm_test_var in $nlist" >&5
6553 fi
6554 else
6555 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6556 fi
6557 else
6558 echo "$progname: failed program was:" >&5
6559 cat conftest.$ac_ext >&5
6560 fi
6561 rm -rf conftest* conftst*
6562
6563 # Do not use the global_symbol_pipe unless it works.
6564 if test "$pipe_works" = yes; then
6565 break
6566 else
6567 lt_cv_sys_global_symbol_pipe=
6568 fi
6569 done
6570
6571 fi
6572
6573 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6574 lt_cv_sys_global_symbol_to_cdecl=
6575 fi
6576 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6577 { $as_echo "$as_me:$LINENO: result: failed" >&5
6578 $as_echo "failed" >&6; }
6579 else
6580 { $as_echo "$as_me:$LINENO: result: ok" >&5
6581 $as_echo "ok" >&6; }
6582 fi
6583
6584 { $as_echo "$as_me:$LINENO: checking for objdir" >&5
6585 $as_echo_n "checking for objdir... " >&6; }
6586 if test "${lt_cv_objdir+set}" = set; then
6587 $as_echo_n "(cached) " >&6
6588 else
6589 rm -f .libs 2>/dev/null
6590 mkdir .libs 2>/dev/null
6591 if test -d .libs; then
6592 lt_cv_objdir=.libs
6593 else
6594 # MS-DOS does not allow filenames that begin with a dot.
6595 lt_cv_objdir=_libs
6596 fi
6597 rmdir .libs 2>/dev/null
6598 fi
6599 { $as_echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6600 $as_echo "$lt_cv_objdir" >&6; }
6601 objdir=$lt_cv_objdir
6602
6603
6604
6605
6606
6607 case $host_os in
6608 aix3*)
6609 # AIX sometimes has problems with the GCC collect2 program. For some
6610 # reason, if we set the COLLECT_NAMES environment variable, the problems
6611 # vanish in a puff of smoke.
6612 if test "X${COLLECT_NAMES+set}" != Xset; then
6613 COLLECT_NAMES=
6614 export COLLECT_NAMES
6615 fi
6616 ;;
6617 esac
6618
6619 # Sed substitution that helps us do robust quoting. It backslashifies
6620 # metacharacters that are still active within double-quoted strings.
6621 Xsed='sed -e 1s/^X//'
6622 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6623
6624 # Same as above, but do not quote variable references.
6625 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6626
6627 # Sed substitution to delay expansion of an escaped shell variable in a
6628 # double_quote_subst'ed string.
6629 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6630
6631 # Sed substitution to avoid accidental globbing in evaled expressions
6632 no_glob_subst='s/\*/\\\*/g'
6633
6634 # Constants:
6635 rm="rm -f"
6636
6637 # Global variables:
6638 default_ofile=libtool
6639 can_build_shared=yes
6640
6641 # All known linkers require a `.a' archive for static linking (except MSVC,
6642 # which needs '.lib').
6643 libext=a
6644 ltmain="$ac_aux_dir/ltmain.sh"
6645 ofile="$default_ofile"
6646 with_gnu_ld="$lt_cv_prog_gnu_ld"
6647
6648 if test -n "$ac_tool_prefix"; then
6649 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6650 set dummy ${ac_tool_prefix}ar; ac_word=$2
6651 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6652 $as_echo_n "checking for $ac_word... " >&6; }
6653 if test "${ac_cv_prog_AR+set}" = set; then
6654 $as_echo_n "(cached) " >&6
6655 else
6656 if test -n "$AR"; then
6657 ac_cv_prog_AR="$AR" # Let the user override the test.
6658 else
6659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6660 for as_dir in $PATH
6661 do
6662 IFS=$as_save_IFS
6663 test -z "$as_dir" && as_dir=.
6664 for ac_exec_ext in '' $ac_executable_extensions; do
6665 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6666 ac_cv_prog_AR="${ac_tool_prefix}ar"
6667 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6668 break 2
6669 fi
6670 done
6671 done
6672 IFS=$as_save_IFS
6673
6674 fi
6675 fi
6676 AR=$ac_cv_prog_AR
6677 if test -n "$AR"; then
6678 { $as_echo "$as_me:$LINENO: result: $AR" >&5
6679 $as_echo "$AR" >&6; }
6680 else
6681 { $as_echo "$as_me:$LINENO: result: no" >&5
6682 $as_echo "no" >&6; }
6683 fi
6684
6685
6686 fi
6687 if test -z "$ac_cv_prog_AR"; then
6688 ac_ct_AR=$AR
6689 # Extract the first word of "ar", so it can be a program name with args.
6690 set dummy ar; ac_word=$2
6691 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6692 $as_echo_n "checking for $ac_word... " >&6; }
6693 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6694 $as_echo_n "(cached) " >&6
6695 else
6696 if test -n "$ac_ct_AR"; then
6697 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6698 else
6699 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6700 for as_dir in $PATH
6701 do
6702 IFS=$as_save_IFS
6703 test -z "$as_dir" && as_dir=.
6704 for ac_exec_ext in '' $ac_executable_extensions; do
6705 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6706 ac_cv_prog_ac_ct_AR="ar"
6707 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6708 break 2
6709 fi
6710 done
6711 done
6712 IFS=$as_save_IFS
6713
6714 fi
6715 fi
6716 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6717 if test -n "$ac_ct_AR"; then
6718 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6719 $as_echo "$ac_ct_AR" >&6; }
6720 else
6721 { $as_echo "$as_me:$LINENO: result: no" >&5
6722 $as_echo "no" >&6; }
6723 fi
6724
6725 if test "x$ac_ct_AR" = x; then
6726 AR="false"
6727 else
6728 case $cross_compiling:$ac_tool_warned in
6729 yes:)
6730 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6731 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6732 ac_tool_warned=yes ;;
6733 esac
6734 AR=$ac_ct_AR
6735 fi
6736 else
6737 AR="$ac_cv_prog_AR"
6738 fi
6739
6740 if test -n "$ac_tool_prefix"; then
6741 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6742 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6743 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6744 $as_echo_n "checking for $ac_word... " >&6; }
6745 if test "${ac_cv_prog_RANLIB+set}" = set; then
6746 $as_echo_n "(cached) " >&6
6747 else
6748 if test -n "$RANLIB"; then
6749 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6750 else
6751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6752 for as_dir in $PATH
6753 do
6754 IFS=$as_save_IFS
6755 test -z "$as_dir" && as_dir=.
6756 for ac_exec_ext in '' $ac_executable_extensions; do
6757 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6758 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6759 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6760 break 2
6761 fi
6762 done
6763 done
6764 IFS=$as_save_IFS
6765
6766 fi
6767 fi
6768 RANLIB=$ac_cv_prog_RANLIB
6769 if test -n "$RANLIB"; then
6770 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
6771 $as_echo "$RANLIB" >&6; }
6772 else
6773 { $as_echo "$as_me:$LINENO: result: no" >&5
6774 $as_echo "no" >&6; }
6775 fi
6776
6777
6778 fi
6779 if test -z "$ac_cv_prog_RANLIB"; then
6780 ac_ct_RANLIB=$RANLIB
6781 # Extract the first word of "ranlib", so it can be a program name with args.
6782 set dummy ranlib; ac_word=$2
6783 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 $as_echo_n "checking for $ac_word... " >&6; }
6785 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6786 $as_echo_n "(cached) " >&6
6787 else
6788 if test -n "$ac_ct_RANLIB"; then
6789 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6790 else
6791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6792 for as_dir in $PATH
6793 do
6794 IFS=$as_save_IFS
6795 test -z "$as_dir" && as_dir=.
6796 for ac_exec_ext in '' $ac_executable_extensions; do
6797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6798 ac_cv_prog_ac_ct_RANLIB="ranlib"
6799 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6800 break 2
6801 fi
6802 done
6803 done
6804 IFS=$as_save_IFS
6805
6806 fi
6807 fi
6808 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6809 if test -n "$ac_ct_RANLIB"; then
6810 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6811 $as_echo "$ac_ct_RANLIB" >&6; }
6812 else
6813 { $as_echo "$as_me:$LINENO: result: no" >&5
6814 $as_echo "no" >&6; }
6815 fi
6816
6817 if test "x$ac_ct_RANLIB" = x; then
6818 RANLIB=":"
6819 else
6820 case $cross_compiling:$ac_tool_warned in
6821 yes:)
6822 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6824 ac_tool_warned=yes ;;
6825 esac
6826 RANLIB=$ac_ct_RANLIB
6827 fi
6828 else
6829 RANLIB="$ac_cv_prog_RANLIB"
6830 fi
6831
6832 if test -n "$ac_tool_prefix"; then
6833 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6834 set dummy ${ac_tool_prefix}strip; ac_word=$2
6835 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6836 $as_echo_n "checking for $ac_word... " >&6; }
6837 if test "${ac_cv_prog_STRIP+set}" = set; then
6838 $as_echo_n "(cached) " >&6
6839 else
6840 if test -n "$STRIP"; then
6841 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6842 else
6843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6844 for as_dir in $PATH
6845 do
6846 IFS=$as_save_IFS
6847 test -z "$as_dir" && as_dir=.
6848 for ac_exec_ext in '' $ac_executable_extensions; do
6849 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6850 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6851 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6852 break 2
6853 fi
6854 done
6855 done
6856 IFS=$as_save_IFS
6857
6858 fi
6859 fi
6860 STRIP=$ac_cv_prog_STRIP
6861 if test -n "$STRIP"; then
6862 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
6863 $as_echo "$STRIP" >&6; }
6864 else
6865 { $as_echo "$as_me:$LINENO: result: no" >&5
6866 $as_echo "no" >&6; }
6867 fi
6868
6869
6870 fi
6871 if test -z "$ac_cv_prog_STRIP"; then
6872 ac_ct_STRIP=$STRIP
6873 # Extract the first word of "strip", so it can be a program name with args.
6874 set dummy strip; ac_word=$2
6875 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
6876 $as_echo_n "checking for $ac_word... " >&6; }
6877 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6878 $as_echo_n "(cached) " >&6
6879 else
6880 if test -n "$ac_ct_STRIP"; then
6881 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6882 else
6883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6884 for as_dir in $PATH
6885 do
6886 IFS=$as_save_IFS
6887 test -z "$as_dir" && as_dir=.
6888 for ac_exec_ext in '' $ac_executable_extensions; do
6889 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6890 ac_cv_prog_ac_ct_STRIP="strip"
6891 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6892 break 2
6893 fi
6894 done
6895 done
6896 IFS=$as_save_IFS
6897
6898 fi
6899 fi
6900 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6901 if test -n "$ac_ct_STRIP"; then
6902 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6903 $as_echo "$ac_ct_STRIP" >&6; }
6904 else
6905 { $as_echo "$as_me:$LINENO: result: no" >&5
6906 $as_echo "no" >&6; }
6907 fi
6908
6909 if test "x$ac_ct_STRIP" = x; then
6910 STRIP=":"
6911 else
6912 case $cross_compiling:$ac_tool_warned in
6913 yes:)
6914 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
6915 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6916 ac_tool_warned=yes ;;
6917 esac
6918 STRIP=$ac_ct_STRIP
6919 fi
6920 else
6921 STRIP="$ac_cv_prog_STRIP"
6922 fi
6923
6924
6925 old_CC="$CC"
6926 old_CFLAGS="$CFLAGS"
6927
6928 # Set sane defaults for various variables
6929 test -z "$AR" && AR=ar
6930 test -z "$AR_FLAGS" && AR_FLAGS=cru
6931 test -z "$AS" && AS=as
6932 test -z "$CC" && CC=cc
6933 test -z "$LTCC" && LTCC=$CC
6934 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6935 test -z "$DLLTOOL" && DLLTOOL=dlltool
6936 test -z "$LD" && LD=ld
6937 test -z "$LN_S" && LN_S="ln -s"
6938 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6939 test -z "$NM" && NM=nm
6940 test -z "$SED" && SED=sed
6941 test -z "$OBJDUMP" && OBJDUMP=objdump
6942 test -z "$RANLIB" && RANLIB=:
6943 test -z "$STRIP" && STRIP=:
6944 test -z "$ac_objext" && ac_objext=o
6945
6946 # Determine commands to create old-style static archives.
6947 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6948 old_postinstall_cmds='chmod 644 $oldlib'
6949 old_postuninstall_cmds=
6950
6951 if test -n "$RANLIB"; then
6952 case $host_os in
6953 openbsd*)
6954 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6955 ;;
6956 *)
6957 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6958 ;;
6959 esac
6960 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6961 fi
6962
6963 for cc_temp in $compiler""; do
6964 case $cc_temp in
6965 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6966 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6967 \-*) ;;
6968 *) break;;
6969 esac
6970 done
6971 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6972
6973
6974 # Only perform the check for file, if the check method requires it
6975 case $deplibs_check_method in
6976 file_magic*)
6977 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6978 { $as_echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6979 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
6980 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6981 $as_echo_n "(cached) " >&6
6982 else
6983 case $MAGIC_CMD in
6984 [\\/*] | ?:[\\/]*)
6985 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6986 ;;
6987 *)
6988 lt_save_MAGIC_CMD="$MAGIC_CMD"
6989 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6990 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6991 for ac_dir in $ac_dummy; do
6992 IFS="$lt_save_ifs"
6993 test -z "$ac_dir" && ac_dir=.
6994 if test -f $ac_dir/${ac_tool_prefix}file; then
6995 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6996 if test -n "$file_magic_test_file"; then
6997 case $deplibs_check_method in
6998 "file_magic "*)
6999 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7000 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7001 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7002 $EGREP "$file_magic_regex" > /dev/null; then
7003 :
7004 else
7005 cat <<EOF 1>&2
7006
7007 *** Warning: the command libtool uses to detect shared libraries,
7008 *** $file_magic_cmd, produces output that libtool cannot recognize.
7009 *** The result is that libtool may fail to recognize shared libraries
7010 *** as such. This will affect the creation of libtool libraries that
7011 *** depend on shared libraries, but programs linked with such libtool
7012 *** libraries will work regardless of this problem. Nevertheless, you
7013 *** may want to report the problem to your system manager and/or to
7014 *** [email protected]
7015
7016 EOF
7017 fi ;;
7018 esac
7019 fi
7020 break
7021 fi
7022 done
7023 IFS="$lt_save_ifs"
7024 MAGIC_CMD="$lt_save_MAGIC_CMD"
7025 ;;
7026 esac
7027 fi
7028
7029 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7030 if test -n "$MAGIC_CMD"; then
7031 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7032 $as_echo "$MAGIC_CMD" >&6; }
7033 else
7034 { $as_echo "$as_me:$LINENO: result: no" >&5
7035 $as_echo "no" >&6; }
7036 fi
7037
7038 if test -z "$lt_cv_path_MAGIC_CMD"; then
7039 if test -n "$ac_tool_prefix"; then
7040 { $as_echo "$as_me:$LINENO: checking for file" >&5
7041 $as_echo_n "checking for file... " >&6; }
7042 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
7043 $as_echo_n "(cached) " >&6
7044 else
7045 case $MAGIC_CMD in
7046 [\\/*] | ?:[\\/]*)
7047 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
7048 ;;
7049 *)
7050 lt_save_MAGIC_CMD="$MAGIC_CMD"
7051 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7052 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
7053 for ac_dir in $ac_dummy; do
7054 IFS="$lt_save_ifs"
7055 test -z "$ac_dir" && ac_dir=.
7056 if test -f $ac_dir/file; then
7057 lt_cv_path_MAGIC_CMD="$ac_dir/file"
7058 if test -n "$file_magic_test_file"; then
7059 case $deplibs_check_method in
7060 "file_magic "*)
7061 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
7062 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7063 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
7064 $EGREP "$file_magic_regex" > /dev/null; then
7065 :
7066 else
7067 cat <<EOF 1>&2
7068
7069 *** Warning: the command libtool uses to detect shared libraries,
7070 *** $file_magic_cmd, produces output that libtool cannot recognize.
7071 *** The result is that libtool may fail to recognize shared libraries
7072 *** as such. This will affect the creation of libtool libraries that
7073 *** depend on shared libraries, but programs linked with such libtool
7074 *** libraries will work regardless of this problem. Nevertheless, you
7075 *** may want to report the problem to your system manager and/or to
7076 *** [email protected]
7077
7078 EOF
7079 fi ;;
7080 esac
7081 fi
7082 break
7083 fi
7084 done
7085 IFS="$lt_save_ifs"
7086 MAGIC_CMD="$lt_save_MAGIC_CMD"
7087 ;;
7088 esac
7089 fi
7090
7091 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
7092 if test -n "$MAGIC_CMD"; then
7093 { $as_echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
7094 $as_echo "$MAGIC_CMD" >&6; }
7095 else
7096 { $as_echo "$as_me:$LINENO: result: no" >&5
7097 $as_echo "no" >&6; }
7098 fi
7099
7100 else
7101 MAGIC_CMD=:
7102 fi
7103 fi
7104
7105 fi
7106 ;;
7107 esac
7108
7109
7110 case $host_os in
7111 rhapsody* | darwin*)
7112 if test -n "$ac_tool_prefix"; then
7113 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7114 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7115 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7116 $as_echo_n "checking for $ac_word... " >&6; }
7117 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
7118 $as_echo_n "(cached) " >&6
7119 else
7120 if test -n "$DSYMUTIL"; then
7121 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7122 else
7123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7124 for as_dir in $PATH
7125 do
7126 IFS=$as_save_IFS
7127 test -z "$as_dir" && as_dir=.
7128 for ac_exec_ext in '' $ac_executable_extensions; do
7129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7130 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7131 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7132 break 2
7133 fi
7134 done
7135 done
7136 IFS=$as_save_IFS
7137
7138 fi
7139 fi
7140 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7141 if test -n "$DSYMUTIL"; then
7142 { $as_echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
7143 $as_echo "$DSYMUTIL" >&6; }
7144 else
7145 { $as_echo "$as_me:$LINENO: result: no" >&5
7146 $as_echo "no" >&6; }
7147 fi
7148
7149
7150 fi
7151 if test -z "$ac_cv_prog_DSYMUTIL"; then
7152 ac_ct_DSYMUTIL=$DSYMUTIL
7153 # Extract the first word of "dsymutil", so it can be a program name with args.
7154 set dummy dsymutil; ac_word=$2
7155 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7156 $as_echo_n "checking for $ac_word... " >&6; }
7157 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
7158 $as_echo_n "(cached) " >&6
7159 else
7160 if test -n "$ac_ct_DSYMUTIL"; then
7161 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7162 else
7163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7164 for as_dir in $PATH
7165 do
7166 IFS=$as_save_IFS
7167 test -z "$as_dir" && as_dir=.
7168 for ac_exec_ext in '' $ac_executable_extensions; do
7169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7170 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7171 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7172 break 2
7173 fi
7174 done
7175 done
7176 IFS=$as_save_IFS
7177
7178 fi
7179 fi
7180 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7181 if test -n "$ac_ct_DSYMUTIL"; then
7182 { $as_echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
7183 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7184 else
7185 { $as_echo "$as_me:$LINENO: result: no" >&5
7186 $as_echo "no" >&6; }
7187 fi
7188
7189 if test "x$ac_ct_DSYMUTIL" = x; then
7190 DSYMUTIL=":"
7191 else
7192 case $cross_compiling:$ac_tool_warned in
7193 yes:)
7194 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7195 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7196 ac_tool_warned=yes ;;
7197 esac
7198 DSYMUTIL=$ac_ct_DSYMUTIL
7199 fi
7200 else
7201 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7202 fi
7203
7204 if test -n "$ac_tool_prefix"; then
7205 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7206 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7207 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7208 $as_echo_n "checking for $ac_word... " >&6; }
7209 if test "${ac_cv_prog_NMEDIT+set}" = set; then
7210 $as_echo_n "(cached) " >&6
7211 else
7212 if test -n "$NMEDIT"; then
7213 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7214 else
7215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7216 for as_dir in $PATH
7217 do
7218 IFS=$as_save_IFS
7219 test -z "$as_dir" && as_dir=.
7220 for ac_exec_ext in '' $ac_executable_extensions; do
7221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7222 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7223 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7224 break 2
7225 fi
7226 done
7227 done
7228 IFS=$as_save_IFS
7229
7230 fi
7231 fi
7232 NMEDIT=$ac_cv_prog_NMEDIT
7233 if test -n "$NMEDIT"; then
7234 { $as_echo "$as_me:$LINENO: result: $NMEDIT" >&5
7235 $as_echo "$NMEDIT" >&6; }
7236 else
7237 { $as_echo "$as_me:$LINENO: result: no" >&5
7238 $as_echo "no" >&6; }
7239 fi
7240
7241
7242 fi
7243 if test -z "$ac_cv_prog_NMEDIT"; then
7244 ac_ct_NMEDIT=$NMEDIT
7245 # Extract the first word of "nmedit", so it can be a program name with args.
7246 set dummy nmedit; ac_word=$2
7247 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
7248 $as_echo_n "checking for $ac_word... " >&6; }
7249 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
7250 $as_echo_n "(cached) " >&6
7251 else
7252 if test -n "$ac_ct_NMEDIT"; then
7253 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7254 else
7255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7256 for as_dir in $PATH
7257 do
7258 IFS=$as_save_IFS
7259 test -z "$as_dir" && as_dir=.
7260 for ac_exec_ext in '' $ac_executable_extensions; do
7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7262 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7263 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7264 break 2
7265 fi
7266 done
7267 done
7268 IFS=$as_save_IFS
7269
7270 fi
7271 fi
7272 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7273 if test -n "$ac_ct_NMEDIT"; then
7274 { $as_echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
7275 $as_echo "$ac_ct_NMEDIT" >&6; }
7276 else
7277 { $as_echo "$as_me:$LINENO: result: no" >&5
7278 $as_echo "no" >&6; }
7279 fi
7280
7281 if test "x$ac_ct_NMEDIT" = x; then
7282 NMEDIT=":"
7283 else
7284 case $cross_compiling:$ac_tool_warned in
7285 yes:)
7286 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
7287 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7288 ac_tool_warned=yes ;;
7289 esac
7290 NMEDIT=$ac_ct_NMEDIT
7291 fi
7292 else
7293 NMEDIT="$ac_cv_prog_NMEDIT"
7294 fi
7295
7296
7297 { $as_echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
7298 $as_echo_n "checking for -single_module linker flag... " >&6; }
7299 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
7300 $as_echo_n "(cached) " >&6
7301 else
7302 lt_cv_apple_cc_single_mod=no
7303 if test -z "${LT_MULTI_MODULE}"; then
7304 # By default we will add the -single_module flag. You can override
7305 # by either setting the environment variable LT_MULTI_MODULE
7306 # non-empty at configure time, or by adding -multi_module to the
7307 # link flags.
7308 echo "int foo(void){return 1;}" > conftest.c
7309 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7310 -dynamiclib ${wl}-single_module conftest.c
7311 if test -f libconftest.dylib; then
7312 lt_cv_apple_cc_single_mod=yes
7313 rm -rf libconftest.dylib*
7314 fi
7315 rm conftest.c
7316 fi
7317 fi
7318 { $as_echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
7319 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7320 { $as_echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
7321 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7322 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
7323 $as_echo_n "(cached) " >&6
7324 else
7325 lt_cv_ld_exported_symbols_list=no
7326 save_LDFLAGS=$LDFLAGS
7327 echo "_main" > conftest.sym
7328 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7329 cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h. */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335
7336 int
7337 main ()
7338 {
7339
7340 ;
7341 return 0;
7342 }
7343 _ACEOF
7344 rm -f conftest.$ac_objext conftest$ac_exeext
7345 if { (ac_try="$ac_link"
7346 case "(($ac_try" in
7347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7348 *) ac_try_echo=$ac_try;;
7349 esac
7350 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
7351 $as_echo "$ac_try_echo") >&5
7352 (eval "$ac_link") 2>conftest.er1
7353 ac_status=$?
7354 grep -v '^ *+' conftest.er1 >conftest.err
7355 rm -f conftest.er1
7356 cat conftest.err >&5
7357 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); } && {
7359 test -z "$ac_c_werror_flag" ||
7360 test ! -s conftest.err
7361 } && test -s conftest$ac_exeext && {
7362 test "$cross_compiling" = yes ||
7363 $as_test_x conftest$ac_exeext
7364 }; then
7365 lt_cv_ld_exported_symbols_list=yes
7366 else
7367 $as_echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370 lt_cv_ld_exported_symbols_list=no
7371 fi
7372
7373 rm -rf conftest.dSYM
7374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7375 conftest$ac_exeext conftest.$ac_ext
7376 LDFLAGS="$save_LDFLAGS"
7377
7378 fi
7379 { $as_echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
7380 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7381 case $host_os in
7382 rhapsody* | darwin1.[0123])
7383 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7384 darwin1.*)
7385 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7386 darwin*)
7387 # if running on 10.5 or later, the deployment target defaults
7388 # to the OS version, if on x86, and 10.4, the deployment
7389 # target defaults to 10.4. Don't you love it?
7390 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7391 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7392 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7393 10.[012]*)
7394 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7395 10.*)
7396 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7397 esac
7398 ;;
7399 esac
7400 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7401 _lt_dar_single_mod='$single_module'
7402 fi
7403 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7404 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7405 else
7406 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
7407 fi
7408 if test "$DSYMUTIL" != ":"; then
7409 _lt_dsymutil="~$DSYMUTIL \$lib || :"
7410 else
7411 _lt_dsymutil=
7412 fi
7413 ;;
7414 esac
7415
7416
7417 enable_dlopen=no
7418 enable_win32_dll=no
7419
7420 # Check whether --enable-libtool-lock was given.
7421 if test "${enable_libtool_lock+set}" = set; then
7422 enableval=$enable_libtool_lock;
7423 fi
7424
7425 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7426
7427
7428 # Check whether --with-pic was given.
7429 if test "${with_pic+set}" = set; then
7430 withval=$with_pic; pic_mode="$withval"
7431 else
7432 pic_mode=default
7433 fi
7434
7435 test -z "$pic_mode" && pic_mode=default
7436
7437 # Check if we have a version mismatch between libtool.m4 and ltmain.sh.
7438 #
7439 # Note: This should be in AC_LIBTOOL_SETUP, _after_ $ltmain have been defined.
7440 # We also should do it _before_ AC_LIBTOOL_LANG_C_CONFIG that actually
7441 # calls AC_LIBTOOL_CONFIG and creates libtool.
7442 #
7443 { $as_echo "$as_me:$LINENO: checking for correct ltmain.sh version" >&5
7444 $as_echo_n "checking for correct ltmain.sh version... " >&6; }
7445 if test "x$ltmain" = "x" ; then
7446 { $as_echo "$as_me:$LINENO: result: no" >&5
7447 $as_echo "no" >&6; }
7448 { { $as_echo "$as_me:$LINENO: error:
7449
7450 *** [Gentoo] sanity check failed! ***
7451 *** \$ltmain is not defined, please check the patch for consistency! ***
7452 " >&5
7453 $as_echo "$as_me: error:
7454
7455 *** [Gentoo] sanity check failed! ***
7456 *** \$ltmain is not defined, please check the patch for consistency! ***
7457 " >&2;}
7458 { (exit 1); exit 1; }; }
7459 fi
7460 gentoo_lt_version="1.5.26"
7461 gentoo_ltmain_version=`sed -n '/^[ ]*VERSION=/{s/^[ ]*VERSION=//;p;q;}' "$ltmain"`
7462 if test "x$gentoo_lt_version" != "x$gentoo_ltmain_version" ; then
7463 { $as_echo "$as_me:$LINENO: result: no" >&5
7464 $as_echo "no" >&6; }
7465 { { $as_echo "$as_me:$LINENO: error:
7466
7467 *** [Gentoo] sanity check failed! ***
7468 *** libtool.m4 and ltmain.sh have a version mismatch! ***
7469 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7470
7471 Please run:
7472
7473 libtoolize --copy --force
7474
7475 if appropriate, please contact the maintainer of this
7476 package (or your distribution) for help.
7477 " >&5
7478 $as_echo "$as_me: error:
7479
7480 *** [Gentoo] sanity check failed! ***
7481 *** libtool.m4 and ltmain.sh have a version mismatch! ***
7482 *** (libtool.m4 = $gentoo_lt_version, ltmain.sh = $gentoo_ltmain_version) ***
7483
7484 Please run:
7485
7486 libtoolize --copy --force
7487
7488 if appropriate, please contact the maintainer of this
7489 package (or your distribution) for help.
7490 " >&2;}
7491 { (exit 1); exit 1; }; }
7492 else
7493 { $as_echo "$as_me:$LINENO: result: yes" >&5
7494 $as_echo "yes" >&6; }
7495 fi
7496
7497
7498 # Use C for the default configuration in the libtool script
7499 tagname=
7500 lt_save_CC="$CC"
7501 ac_ext=c
7502 ac_cpp='$CPP $CPPFLAGS'
7503 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7504 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7505 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7506
7507
7508 # Source file extension for C test sources.
7509 ac_ext=c
7510
7511 # Object file extension for compiled C test sources.
7512 objext=o
7513 objext=$objext
7514
7515 # Code to be used in simple compile tests
7516 lt_simple_compile_test_code="int some_variable = 0;"
7517
7518 # Code to be used in simple link tests
7519 lt_simple_link_test_code='int main(){return(0);}'
7520
7521
7522 # If no C compiler was specified, use CC.
7523 LTCC=${LTCC-"$CC"}
7524
7525 # If no C compiler flags were specified, use CFLAGS.
7526 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7527
7528 # Allow CC to be a program name with arguments.
7529 compiler=$CC
7530
7531
7532 # save warnings/boilerplate of simple test code
7533 ac_outfile=conftest.$ac_objext
7534 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
7535 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7536 _lt_compiler_boilerplate=`cat conftest.err`
7537 $rm conftest*
7538
7539 ac_outfile=conftest.$ac_objext
7540 echo "$lt_simple_link_test_code" >conftest.$ac_ext
7541 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
7542 _lt_linker_boilerplate=`cat conftest.err`
7543 $rm -r conftest*
7544
7545
7546
7547 lt_prog_compiler_no_builtin_flag=
7548
7549 if test "$GCC" = yes; then
7550 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
7551
7552
7553 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
7554 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
7555 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
7556 $as_echo_n "(cached) " >&6
7557 else
7558 lt_cv_prog_compiler_rtti_exceptions=no
7559 ac_outfile=conftest.$ac_objext
7560 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7561 lt_compiler_flag="-fno-rtti -fno-exceptions"
7562 # Insert the option either (1) after the last *FLAGS variable, or
7563 # (2) before a word containing "conftest.", or (3) at the end.
7564 # Note that $ac_compile itself does not contain backslashes and begins
7565 # with a dollar sign (not a hyphen), so the echo should work correctly.
7566 # The option is referenced via a variable to avoid confusing sed.
7567 lt_compile=`echo "$ac_compile" | $SED \
7568 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7569 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7570 -e 's:$: $lt_compiler_flag:'`
7571 (eval echo "\"\$as_me:7571: $lt_compile\"" >&5)
7572 (eval "$lt_compile" 2>conftest.err)
7573 ac_status=$?
7574 cat conftest.err >&5
7575 echo "$as_me:7575: \$? = $ac_status" >&5
7576 if (exit $ac_status) && test -s "$ac_outfile"; then
7577 # The compiler can only warn and ignore the option if not recognized
7578 # So say no if there are warnings other than the usual output.
7579 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7580 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7581 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7582 lt_cv_prog_compiler_rtti_exceptions=yes
7583 fi
7584 fi
7585 $rm conftest*
7586
7587 fi
7588 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
7589 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
7590
7591 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
7592 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
7593 else
7594 :
7595 fi
7596
7597 fi
7598
7599 lt_prog_compiler_wl=
7600 lt_prog_compiler_pic=
7601 lt_prog_compiler_static=
7602
7603 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
7604 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
7605
7606 if test "$GCC" = yes; then
7607 lt_prog_compiler_wl='-Wl,'
7608 lt_prog_compiler_static='-static'
7609
7610 case $host_os in
7611 aix*)
7612 # All AIX code is PIC.
7613 if test "$host_cpu" = ia64; then
7614 # AIX 5 now supports IA64 processor
7615 lt_prog_compiler_static='-Bstatic'
7616 fi
7617 ;;
7618
7619 amigaos*)
7620 # FIXME: we need at least 68020 code to build shared libraries, but
7621 # adding the `-m68020' flag to GCC prevents building anything better,
7622 # like `-m68040'.
7623 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
7624 ;;
7625
7626 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
7627 # PIC is the default for these OSes.
7628 ;;
7629
7630 mingw* | cygwin* | pw32* | os2*)
7631 # This hack is so that the source file can tell whether it is being
7632 # built for inclusion in a dll (and should export symbols for example).
7633 # Although the cygwin gcc ignores -fPIC, still need this for old-style
7634 # (--disable-auto-import) libraries
7635 lt_prog_compiler_pic='-DDLL_EXPORT'
7636 ;;
7637
7638 darwin* | rhapsody*)
7639 # PIC is the default on this platform
7640 # Common symbols not allowed in MH_DYLIB files
7641 lt_prog_compiler_pic='-fno-common'
7642 ;;
7643
7644 interix[3-9]*)
7645 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
7646 # Instead, we relocate shared libraries at runtime.
7647 ;;
7648
7649 msdosdjgpp*)
7650 # Just because we use GCC doesn't mean we suddenly get shared libraries
7651 # on systems that don't support them.
7652 lt_prog_compiler_can_build_shared=no
7653 enable_shared=no
7654 ;;
7655
7656 sysv4*MP*)
7657 if test -d /usr/nec; then
7658 lt_prog_compiler_pic=-Kconform_pic
7659 fi
7660 ;;
7661
7662 hpux*)
7663 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7664 # not for PA HP-UX.
7665 case $host_cpu in
7666 hppa*64*|ia64*)
7667 # +Z the default
7668 ;;
7669 *)
7670 lt_prog_compiler_pic='-fPIC'
7671 ;;
7672 esac
7673 ;;
7674
7675 *)
7676 lt_prog_compiler_pic='-fPIC'
7677 ;;
7678 esac
7679 else
7680 # PORTME Check for flag to pass linker flags through the system compiler.
7681 case $host_os in
7682 aix*)
7683 lt_prog_compiler_wl='-Wl,'
7684 if test "$host_cpu" = ia64; then
7685 # AIX 5 now supports IA64 processor
7686 lt_prog_compiler_static='-Bstatic'
7687 else
7688 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7689 fi
7690 ;;
7691 darwin*)
7692 # PIC is the default on this platform
7693 # Common symbols not allowed in MH_DYLIB files
7694 case $cc_basename in
7695 xlc*)
7696 lt_prog_compiler_pic='-qnocommon'
7697 lt_prog_compiler_wl='-Wl,'
7698 ;;
7699 esac
7700 ;;
7701
7702 mingw* | cygwin* | pw32* | os2*)
7703 # This hack is so that the source file can tell whether it is being
7704 # built for inclusion in a dll (and should export symbols for example).
7705 lt_prog_compiler_pic='-DDLL_EXPORT'
7706 ;;
7707
7708 hpux9* | hpux10* | hpux11*)
7709 lt_prog_compiler_wl='-Wl,'
7710 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7711 # not for PA HP-UX.
7712 case $host_cpu in
7713 hppa*64*|ia64*)
7714 # +Z the default
7715 ;;
7716 *)
7717 lt_prog_compiler_pic='+Z'
7718 ;;
7719 esac
7720 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7721 lt_prog_compiler_static='${wl}-a ${wl}archive'
7722 ;;
7723
7724 irix5* | irix6* | nonstopux*)
7725 lt_prog_compiler_wl='-Wl,'
7726 # PIC (with -KPIC) is the default.
7727 lt_prog_compiler_static='-non_shared'
7728 ;;
7729
7730 newsos6)
7731 lt_prog_compiler_pic='-KPIC'
7732 lt_prog_compiler_static='-Bstatic'
7733 ;;
7734
7735 linux* | k*bsd*-gnu)
7736 case $cc_basename in
7737 icc* | ecc*)
7738 lt_prog_compiler_wl='-Wl,'
7739 lt_prog_compiler_pic='-KPIC'
7740 lt_prog_compiler_static='-static'
7741 ;;
7742 pgcc* | pgf77* | pgf90* | pgf95*)
7743 # Portland Group compilers (*not* the Pentium gcc compiler,
7744 # which looks to be a dead project)
7745 lt_prog_compiler_wl='-Wl,'
7746 lt_prog_compiler_pic='-fpic'
7747 lt_prog_compiler_static='-Bstatic'
7748 ;;
7749 ccc*)
7750 lt_prog_compiler_wl='-Wl,'
7751 # All Alpha code is PIC.
7752 lt_prog_compiler_static='-non_shared'
7753 ;;
7754 *)
7755 case `$CC -V 2>&1 | sed 5q` in
7756 *Sun\ C*)
7757 # Sun C 5.9
7758 lt_prog_compiler_pic='-KPIC'
7759 lt_prog_compiler_static='-Bstatic'
7760 lt_prog_compiler_wl='-Wl,'
7761 ;;
7762 *Sun\ F*)
7763 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7764 lt_prog_compiler_pic='-KPIC'
7765 lt_prog_compiler_static='-Bstatic'
7766 lt_prog_compiler_wl=''
7767 ;;
7768 esac
7769 ;;
7770 esac
7771 ;;
7772
7773 osf3* | osf4* | osf5*)
7774 lt_prog_compiler_wl='-Wl,'
7775 # All OSF/1 code is PIC.
7776 lt_prog_compiler_static='-non_shared'
7777 ;;
7778
7779 rdos*)
7780 lt_prog_compiler_static='-non_shared'
7781 ;;
7782
7783 solaris*)
7784 lt_prog_compiler_pic='-KPIC'
7785 lt_prog_compiler_static='-Bstatic'
7786 case $cc_basename in
7787 f77* | f90* | f95*)
7788 lt_prog_compiler_wl='-Qoption ld ';;
7789 *)
7790 lt_prog_compiler_wl='-Wl,';;
7791 esac
7792 ;;
7793
7794 sunos4*)
7795 lt_prog_compiler_wl='-Qoption ld '
7796 lt_prog_compiler_pic='-PIC'
7797 lt_prog_compiler_static='-Bstatic'
7798 ;;
7799
7800 sysv4 | sysv4.2uw2* | sysv4.3*)
7801 lt_prog_compiler_wl='-Wl,'
7802 lt_prog_compiler_pic='-KPIC'
7803 lt_prog_compiler_static='-Bstatic'
7804 ;;
7805
7806 sysv4*MP*)
7807 if test -d /usr/nec ;then
7808 lt_prog_compiler_pic='-Kconform_pic'
7809 lt_prog_compiler_static='-Bstatic'
7810 fi
7811 ;;
7812
7813 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7814 lt_prog_compiler_wl='-Wl,'
7815 lt_prog_compiler_pic='-KPIC'
7816 lt_prog_compiler_static='-Bstatic'
7817 ;;
7818
7819 unicos*)
7820 lt_prog_compiler_wl='-Wl,'
7821 lt_prog_compiler_can_build_shared=no
7822 ;;
7823
7824 uts4*)
7825 lt_prog_compiler_pic='-pic'
7826 lt_prog_compiler_static='-Bstatic'
7827 ;;
7828
7829 *)
7830 lt_prog_compiler_can_build_shared=no
7831 ;;
7832 esac
7833 fi
7834
7835 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7836 $as_echo "$lt_prog_compiler_pic" >&6; }
7837
7838 #
7839 # Check to make sure the PIC flag actually works.
7840 #
7841 if test -n "$lt_prog_compiler_pic"; then
7842
7843 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7844 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
7845 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7846 $as_echo_n "(cached) " >&6
7847 else
7848 lt_cv_prog_compiler_pic_works=no
7849 ac_outfile=conftest.$ac_objext
7850 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7851 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7852 # Insert the option either (1) after the last *FLAGS variable, or
7853 # (2) before a word containing "conftest.", or (3) at the end.
7854 # Note that $ac_compile itself does not contain backslashes and begins
7855 # with a dollar sign (not a hyphen), so the echo should work correctly.
7856 # The option is referenced via a variable to avoid confusing sed.
7857 lt_compile=`echo "$ac_compile" | $SED \
7858 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7859 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7860 -e 's:$: $lt_compiler_flag:'`
7861 (eval echo "\"\$as_me:7861: $lt_compile\"" >&5)
7862 (eval "$lt_compile" 2>conftest.err)
7863 ac_status=$?
7864 cat conftest.err >&5
7865 echo "$as_me:7865: \$? = $ac_status" >&5
7866 if (exit $ac_status) && test -s "$ac_outfile"; then
7867 # The compiler can only warn and ignore the option if not recognized
7868 # So say no if there are warnings other than the usual output.
7869 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7870 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7871 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7872 lt_cv_prog_compiler_pic_works=yes
7873 fi
7874 fi
7875 $rm conftest*
7876
7877 fi
7878 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7879 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
7880
7881 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7882 case $lt_prog_compiler_pic in
7883 "" | " "*) ;;
7884 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7885 esac
7886 else
7887 lt_prog_compiler_pic=
7888 lt_prog_compiler_can_build_shared=no
7889 fi
7890
7891 fi
7892 case $host_os in
7893 # For platforms which do not support PIC, -DPIC is meaningless:
7894 *djgpp*)
7895 lt_prog_compiler_pic=
7896 ;;
7897 *)
7898 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7899 ;;
7900 esac
7901
7902 #
7903 # Check to make sure the static flag actually works.
7904 #
7905 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7906 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7907 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
7908 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7909 $as_echo_n "(cached) " >&6
7910 else
7911 lt_cv_prog_compiler_static_works=no
7912 save_LDFLAGS="$LDFLAGS"
7913 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7914 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7915 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7916 # The linker can only warn and ignore the option if not recognized
7917 # So say no if there are warnings
7918 if test -s conftest.err; then
7919 # Append any errors to the config.log.
7920 cat conftest.err 1>&5
7921 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7922 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7923 if diff conftest.exp conftest.er2 >/dev/null; then
7924 lt_cv_prog_compiler_static_works=yes
7925 fi
7926 else
7927 lt_cv_prog_compiler_static_works=yes
7928 fi
7929 fi
7930 $rm -r conftest*
7931 LDFLAGS="$save_LDFLAGS"
7932
7933 fi
7934 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7935 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
7936
7937 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7938 :
7939 else
7940 lt_prog_compiler_static=
7941 fi
7942
7943
7944 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7945 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
7946 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7947 $as_echo_n "(cached) " >&6
7948 else
7949 lt_cv_prog_compiler_c_o=no
7950 $rm -r conftest 2>/dev/null
7951 mkdir conftest
7952 cd conftest
7953 mkdir out
7954 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7955
7956 lt_compiler_flag="-o out/conftest2.$ac_objext"
7957 # Insert the option either (1) after the last *FLAGS variable, or
7958 # (2) before a word containing "conftest.", or (3) at the end.
7959 # Note that $ac_compile itself does not contain backslashes and begins
7960 # with a dollar sign (not a hyphen), so the echo should work correctly.
7961 lt_compile=`echo "$ac_compile" | $SED \
7962 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7963 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7964 -e 's:$: $lt_compiler_flag:'`
7965 (eval echo "\"\$as_me:7965: $lt_compile\"" >&5)
7966 (eval "$lt_compile" 2>out/conftest.err)
7967 ac_status=$?
7968 cat out/conftest.err >&5
7969 echo "$as_me:7969: \$? = $ac_status" >&5
7970 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7971 then
7972 # The compiler can only warn and ignore the option if not recognized
7973 # So say no if there are warnings
7974 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7975 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7976 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7977 lt_cv_prog_compiler_c_o=yes
7978 fi
7979 fi
7980 chmod u+w . 2>&5
7981 $rm conftest*
7982 # SGI C++ compiler will create directory out/ii_files/ for
7983 # template instantiation
7984 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7985 $rm out/* && rmdir out
7986 cd ..
7987 rmdir conftest
7988 $rm conftest*
7989
7990 fi
7991 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7992 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
7993
7994
7995 hard_links="nottested"
7996 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7997 # do not overwrite the value of need_locks provided by the user
7998 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7999 $as_echo_n "checking if we can lock with hard links... " >&6; }
8000 hard_links=yes
8001 $rm conftest*
8002 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8003 touch conftest.a
8004 ln conftest.a conftest.b 2>&5 || hard_links=no
8005 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8006 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
8007 $as_echo "$hard_links" >&6; }
8008 if test "$hard_links" = no; then
8009 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8010 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8011 need_locks=warn
8012 fi
8013 else
8014 need_locks=no
8015 fi
8016
8017 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8018 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
8019
8020 runpath_var=
8021 allow_undefined_flag=
8022 enable_shared_with_static_runtimes=no
8023 archive_cmds=
8024 archive_expsym_cmds=
8025 old_archive_From_new_cmds=
8026 old_archive_from_expsyms_cmds=
8027 export_dynamic_flag_spec=
8028 whole_archive_flag_spec=
8029 thread_safe_flag_spec=
8030 hardcode_libdir_flag_spec=
8031 hardcode_libdir_flag_spec_ld=
8032 hardcode_libdir_separator=
8033 hardcode_direct=no
8034 hardcode_minus_L=no
8035 hardcode_shlibpath_var=unsupported
8036 link_all_deplibs=unknown
8037 hardcode_automatic=no
8038 module_cmds=
8039 module_expsym_cmds=
8040 always_export_symbols=no
8041 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8042 # include_expsyms should be a list of space-separated symbols to be *always*
8043 # included in the symbol list
8044 include_expsyms=
8045 # exclude_expsyms can be an extended regexp of symbols to exclude
8046 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8047 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8048 # as well as any symbol that contains `d'.
8049 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
8050 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8051 # platforms (ab)use it in PIC code, but their linkers get confused if
8052 # the symbol is explicitly referenced. Since portable code cannot
8053 # rely on this symbol name, it's probably fine to never include it in
8054 # preloaded symbol tables.
8055 # Exclude shared library initialization/finalization symbols.
8056 extract_expsyms_cmds=
8057 # Just being paranoid about ensuring that cc_basename is set.
8058 for cc_temp in $compiler""; do
8059 case $cc_temp in
8060 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8061 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8062 \-*) ;;
8063 *) break;;
8064 esac
8065 done
8066 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
8067
8068 case $host_os in
8069 cygwin* | mingw* | pw32*)
8070 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8071 # When not using gcc, we currently assume that we are using
8072 # Microsoft Visual C++.
8073 if test "$GCC" != yes; then
8074 with_gnu_ld=no
8075 fi
8076 ;;
8077 interix*)
8078 # we just hope/assume this is gcc and not c89 (= MSVC++)
8079 with_gnu_ld=yes
8080 ;;
8081 openbsd*)
8082 with_gnu_ld=no
8083 ;;
8084 esac
8085
8086 ld_shlibs=yes
8087 if test "$with_gnu_ld" = yes; then
8088 # If archive_cmds runs LD, not CC, wlarc should be empty
8089 wlarc='${wl}'
8090
8091 # Set some defaults for GNU ld with shared library support. These
8092 # are reset later if shared libraries are not supported. Putting them
8093 # here allows them to be overridden if necessary.
8094 runpath_var=LD_RUN_PATH
8095 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8096 export_dynamic_flag_spec='${wl}--export-dynamic'
8097 # ancient GNU ld didn't support --whole-archive et. al.
8098 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8099 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8100 else
8101 whole_archive_flag_spec=
8102 fi
8103 supports_anon_versioning=no
8104 case `$LD -v 2>/dev/null` in
8105 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8106 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8107 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8108 *\ 2.11.*) ;; # other 2.11 versions
8109 *) supports_anon_versioning=yes ;;
8110 esac
8111
8112 # See if GNU ld supports shared libraries.
8113 case $host_os in
8114 aix[3-9]*)
8115 # On AIX/PPC, the GNU linker is very broken
8116 if test "$host_cpu" != ia64; then
8117 ld_shlibs=no
8118 cat <<EOF 1>&2
8119
8120 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8121 *** to be unable to reliably create shared libraries on AIX.
8122 *** Therefore, libtool is disabling shared libraries support. If you
8123 *** really care for shared libraries, you may want to modify your PATH
8124 *** so that a non-GNU linker is found, and then restart.
8125
8126 EOF
8127 fi
8128 ;;
8129
8130 amigaos*)
8131 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)'
8132 hardcode_libdir_flag_spec='-L$libdir'
8133 hardcode_minus_L=yes
8134
8135 # Samuel A. Falvo II <[email protected]> reports
8136 # that the semantics of dynamic libraries on AmigaOS, at least up
8137 # to version 4, is to share data among multiple programs linked
8138 # with the same dynamic library. Since this doesn't match the
8139 # behavior of shared libraries on other platforms, we can't use
8140 # them.
8141 ld_shlibs=no
8142 ;;
8143
8144 beos*)
8145 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8146 allow_undefined_flag=unsupported
8147 # Joseph Beckenbach <[email protected]> says some releases of gcc
8148 # support --undefined. This deserves some investigation. FIXME
8149 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8150 else
8151 ld_shlibs=no
8152 fi
8153 ;;
8154
8155 cygwin* | mingw* | pw32*)
8156 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8157 # as there is no search path for DLLs.
8158 hardcode_libdir_flag_spec='-L$libdir'
8159 allow_undefined_flag=unsupported
8160 always_export_symbols=no
8161 enable_shared_with_static_runtimes=yes
8162 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
8163
8164 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8165 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8166 # If the export-symbols file already is a .def file (1st line
8167 # is EXPORTS), use it as is; otherwise, prepend...
8168 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8169 cp $export_symbols $output_objdir/$soname.def;
8170 else
8171 echo EXPORTS > $output_objdir/$soname.def;
8172 cat $export_symbols >> $output_objdir/$soname.def;
8173 fi~
8174 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
8175 else
8176 ld_shlibs=no
8177 fi
8178 ;;
8179
8180 interix[3-9]*)
8181 hardcode_direct=no
8182 hardcode_shlibpath_var=no
8183 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8184 export_dynamic_flag_spec='${wl}-E'
8185 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
8186 # Instead, shared libraries are loaded at an image base (0x10000000 by
8187 # default) and relocated if they conflict, which is a slow very memory
8188 # consuming and fragmenting process. To avoid this, we pick a random,
8189 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
8190 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
8191 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
8192 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'
8193 ;;
8194
8195 gnu* | linux* | k*bsd*-gnu)
8196 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8197 tmp_addflag=
8198 case $cc_basename,$host_cpu in
8199 pgcc*) # Portland Group C compiler
8200 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'
8201 tmp_addflag=' $pic_flag'
8202 ;;
8203 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
8204 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'
8205 tmp_addflag=' $pic_flag -Mnomain' ;;
8206 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
8207 tmp_addflag=' -i_dynamic' ;;
8208 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
8209 tmp_addflag=' -i_dynamic -nofor_main' ;;
8210 ifc* | ifort*) # Intel Fortran compiler
8211 tmp_addflag=' -nofor_main' ;;
8212 esac
8213 case `$CC -V 2>&1 | sed 5q` in
8214 *Sun\ C*) # Sun C 5.9
8215 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'
8216 tmp_sharedflag='-G' ;;
8217 *Sun\ F*) # Sun Fortran 8.3
8218 tmp_sharedflag='-G' ;;
8219 *)
8220 tmp_sharedflag='-shared' ;;
8221 esac
8222 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8223
8224 if test $supports_anon_versioning = yes; then
8225 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8226 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8227 $echo "local: *; };" >> $output_objdir/$libname.ver~
8228 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8229 fi
8230 else
8231 ld_shlibs=no
8232 fi
8233 ;;
8234
8235 netbsd*)
8236 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8237 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8238 wlarc=
8239 else
8240 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8241 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8242 fi
8243 ;;
8244
8245 solaris*)
8246 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8247 ld_shlibs=no
8248 cat <<EOF 1>&2
8249
8250 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8251 *** create shared libraries on Solaris systems. Therefore, libtool
8252 *** is disabling shared libraries support. We urge you to upgrade GNU
8253 *** binutils to release 2.9.1 or newer. Another option is to modify
8254 *** your PATH or compiler configuration so that the native linker is
8255 *** used, and then restart.
8256
8257 EOF
8258 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8260 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8261 else
8262 ld_shlibs=no
8263 fi
8264 ;;
8265
8266 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
8267 case `$LD -v 2>&1` in
8268 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
8269 ld_shlibs=no
8270 cat <<_LT_EOF 1>&2
8271
8272 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
8273 *** reliably create shared libraries on SCO systems. Therefore, libtool
8274 *** is disabling shared libraries support. We urge you to upgrade GNU
8275 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
8276 *** your PATH or compiler configuration so that the native linker is
8277 *** used, and then restart.
8278
8279 _LT_EOF
8280 ;;
8281 *)
8282 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8283 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
8284 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
8285 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
8286 else
8287 ld_shlibs=no
8288 fi
8289 ;;
8290 esac
8291 ;;
8292
8293 sunos4*)
8294 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8295 wlarc=
8296 hardcode_direct=yes
8297 hardcode_shlibpath_var=no
8298 ;;
8299
8300 *)
8301 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8302 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8303 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8304 else
8305 ld_shlibs=no
8306 fi
8307 ;;
8308 esac
8309
8310 if test "$ld_shlibs" = no; then
8311 runpath_var=
8312 hardcode_libdir_flag_spec=
8313 export_dynamic_flag_spec=
8314 whole_archive_flag_spec=
8315 fi
8316 else
8317 # PORTME fill in a description of your system's linker (not GNU ld)
8318 case $host_os in
8319 aix3*)
8320 allow_undefined_flag=unsupported
8321 always_export_symbols=yes
8322 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
8323 # Note: this linker hardcodes the directories in LIBPATH if there
8324 # are no directories specified by -L.
8325 hardcode_minus_L=yes
8326 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
8327 # Neither direct hardcoding nor static linking is supported with a
8328 # broken collect2.
8329 hardcode_direct=unsupported
8330 fi
8331 ;;
8332
8333 aix[4-9]*)
8334 if test "$host_cpu" = ia64; then
8335 # On IA64, the linker does run time linking by default, so we don't
8336 # have to do anything special.
8337 aix_use_runtimelinking=no
8338 exp_sym_flag='-Bexport'
8339 no_entry_flag=""
8340 else
8341 # If we're using GNU nm, then we don't want the "-C" option.
8342 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8343 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8344 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8345 else
8346 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
8347 fi
8348 aix_use_runtimelinking=no
8349
8350 # Test if we are trying to use run time linking or normal
8351 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8352 # need to do runtime linking.
8353 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
8354 for ld_flag in $LDFLAGS; do
8355 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8356 aix_use_runtimelinking=yes
8357 break
8358 fi
8359 done
8360 ;;
8361 esac
8362
8363 exp_sym_flag='-bexport'
8364 no_entry_flag='-bnoentry'
8365 fi
8366
8367 # When large executables or shared objects are built, AIX ld can
8368 # have problems creating the table of contents. If linking a library
8369 # or program results in "error TOC overflow" add -mminimal-toc to
8370 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8371 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8372
8373 archive_cmds=''
8374 hardcode_direct=yes
8375 hardcode_libdir_separator=':'
8376 link_all_deplibs=yes
8377
8378 if test "$GCC" = yes; then
8379 case $host_os in aix4.[012]|aix4.[012].*)
8380 # We only want to do this on AIX 4.2 and lower, the check
8381 # below for broken collect2 doesn't work under 4.3+
8382 collect2name=`${CC} -print-prog-name=collect2`
8383 if test -f "$collect2name" && \
8384 strings "$collect2name" | grep resolve_lib_name >/dev/null
8385 then
8386 # We have reworked collect2
8387 :
8388 else
8389 # We have old collect2
8390 hardcode_direct=unsupported
8391 # It fails to find uninstalled libraries when the uninstalled
8392 # path is not listed in the libpath. Setting hardcode_minus_L
8393 # to unsupported forces relinking
8394 hardcode_minus_L=yes
8395 hardcode_libdir_flag_spec='-L$libdir'
8396 hardcode_libdir_separator=
8397 fi
8398 ;;
8399 esac
8400 shared_flag='-shared'
8401 if test "$aix_use_runtimelinking" = yes; then
8402 shared_flag="$shared_flag "'${wl}-G'
8403 fi
8404 else
8405 # not using gcc
8406 if test "$host_cpu" = ia64; then
8407 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8408 # chokes on -Wl,-G. The following line is correct:
8409 shared_flag='-G'
8410 else
8411 if test "$aix_use_runtimelinking" = yes; then
8412 shared_flag='${wl}-G'
8413 else
8414 shared_flag='${wl}-bM:SRE'
8415 fi
8416 fi
8417 fi
8418
8419 # It seems that -bexpall does not export symbols beginning with
8420 # underscore (_), so it is better to generate a list of symbols to export.
8421 always_export_symbols=yes
8422 if test "$aix_use_runtimelinking" = yes; then
8423 # Warning - without using the other runtime loading flags (-brtl),
8424 # -berok will link without error, but may produce a broken library.
8425 allow_undefined_flag='-berok'
8426 # Determine the default libpath from the value encoded in an empty executable.
8427 cat >conftest.$ac_ext <<_ACEOF
8428 /* confdefs.h. */
8429 _ACEOF
8430 cat confdefs.h >>conftest.$ac_ext
8431 cat >>conftest.$ac_ext <<_ACEOF
8432 /* end confdefs.h. */
8433
8434 int
8435 main ()
8436 {
8437
8438 ;
8439 return 0;
8440 }
8441 _ACEOF
8442 rm -f conftest.$ac_objext conftest$ac_exeext
8443 if { (ac_try="$ac_link"
8444 case "(($ac_try" in
8445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8446 *) ac_try_echo=$ac_try;;
8447 esac
8448 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8449 $as_echo "$ac_try_echo") >&5
8450 (eval "$ac_link") 2>conftest.er1
8451 ac_status=$?
8452 grep -v '^ *+' conftest.er1 >conftest.err
8453 rm -f conftest.er1
8454 cat conftest.err >&5
8455 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8456 (exit $ac_status); } && {
8457 test -z "$ac_c_werror_flag" ||
8458 test ! -s conftest.err
8459 } && test -s conftest$ac_exeext && {
8460 test "$cross_compiling" = yes ||
8461 $as_test_x conftest$ac_exeext
8462 }; then
8463
8464 lt_aix_libpath_sed='
8465 /Import File Strings/,/^$/ {
8466 /^0/ {
8467 s/^0 *\(.*\)$/\1/
8468 p
8469 }
8470 }'
8471 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8472 # Check for a 64-bit object if we didn't find anything.
8473 if test -z "$aix_libpath"; then
8474 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8475 fi
8476 else
8477 $as_echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8479
8480
8481 fi
8482
8483 rm -rf conftest.dSYM
8484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8485 conftest$ac_exeext conftest.$ac_ext
8486 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8487
8488 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8489 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"
8490 else
8491 if test "$host_cpu" = ia64; then
8492 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
8493 allow_undefined_flag="-z nodefs"
8494 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"
8495 else
8496 # Determine the default libpath from the value encoded in an empty executable.
8497 cat >conftest.$ac_ext <<_ACEOF
8498 /* confdefs.h. */
8499 _ACEOF
8500 cat confdefs.h >>conftest.$ac_ext
8501 cat >>conftest.$ac_ext <<_ACEOF
8502 /* end confdefs.h. */
8503
8504 int
8505 main ()
8506 {
8507
8508 ;
8509 return 0;
8510 }
8511 _ACEOF
8512 rm -f conftest.$ac_objext conftest$ac_exeext
8513 if { (ac_try="$ac_link"
8514 case "(($ac_try" in
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8517 esac
8518 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
8519 $as_echo "$ac_try_echo") >&5
8520 (eval "$ac_link") 2>conftest.er1
8521 ac_status=$?
8522 grep -v '^ *+' conftest.er1 >conftest.err
8523 rm -f conftest.er1
8524 cat conftest.err >&5
8525 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
8526 (exit $ac_status); } && {
8527 test -z "$ac_c_werror_flag" ||
8528 test ! -s conftest.err
8529 } && test -s conftest$ac_exeext && {
8530 test "$cross_compiling" = yes ||
8531 $as_test_x conftest$ac_exeext
8532 }; then
8533
8534 lt_aix_libpath_sed='
8535 /Import File Strings/,/^$/ {
8536 /^0/ {
8537 s/^0 *\(.*\)$/\1/
8538 p
8539 }
8540 }'
8541 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8542 # Check for a 64-bit object if we didn't find anything.
8543 if test -z "$aix_libpath"; then
8544 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
8545 fi
8546 else
8547 $as_echo "$as_me: failed program was:" >&5
8548 sed 's/^/| /' conftest.$ac_ext >&5
8549
8550
8551 fi
8552
8553 rm -rf conftest.dSYM
8554 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8555 conftest$ac_exeext conftest.$ac_ext
8556 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
8557
8558 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
8559 # Warning - without using the other run time loading flags,
8560 # -berok will link without error, but may produce a broken library.
8561 no_undefined_flag=' ${wl}-bernotok'
8562 allow_undefined_flag=' ${wl}-berok'
8563 # Exported symbols can be pulled into shared objects from archives
8564 whole_archive_flag_spec='$convenience'
8565 archive_cmds_need_lc=yes
8566 # This is similar to how AIX traditionally builds its shared libraries.
8567 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'
8568 fi
8569 fi
8570 ;;
8571
8572 amigaos*)
8573 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)'
8574 hardcode_libdir_flag_spec='-L$libdir'
8575 hardcode_minus_L=yes
8576 # see comment about different semantics on the GNU ld section
8577 ld_shlibs=no
8578 ;;
8579
8580 bsdi[45]*)
8581 export_dynamic_flag_spec=-rdynamic
8582 ;;
8583
8584 cygwin* | mingw* | pw32*)
8585 # When not using gcc, we currently assume that we are using
8586 # Microsoft Visual C++.
8587 # hardcode_libdir_flag_spec is actually meaningless, as there is
8588 # no search path for DLLs.
8589 hardcode_libdir_flag_spec=' '
8590 allow_undefined_flag=unsupported
8591 # Tell ltmain to make .lib files, not .a files.
8592 libext=lib
8593 # Tell ltmain to make .dll files, not .so files.
8594 shrext_cmds=".dll"
8595 # FIXME: Setting linknames here is a bad hack.
8596 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
8597 # The linker will automatically build a .lib file if we build a DLL.
8598 old_archive_From_new_cmds='true'
8599 # FIXME: Should let the user specify the lib program.
8600 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
8601 fix_srcfile_path='`cygpath -w "$srcfile"`'
8602 enable_shared_with_static_runtimes=yes
8603 ;;
8604
8605 darwin* | rhapsody*)
8606 case $host_os in
8607 rhapsody* | darwin1.[012])
8608 allow_undefined_flag='${wl}-undefined ${wl}suppress'
8609 ;;
8610 *) # Darwin 1.3 on
8611 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
8612 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8613 else
8614 case ${MACOSX_DEPLOYMENT_TARGET} in
8615 10.[012])
8616 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
8617 ;;
8618 10.*)
8619 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
8620 ;;
8621 esac
8622 fi
8623 ;;
8624 esac
8625 archive_cmds_need_lc=no
8626 hardcode_direct=no
8627 hardcode_automatic=yes
8628 hardcode_shlibpath_var=unsupported
8629 whole_archive_flag_spec=''
8630 link_all_deplibs=yes
8631 if test "$GCC" = yes ; then
8632 output_verbose_link_cmd='echo'
8633 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
8634 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
8635 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}"
8636 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}"
8637 else
8638 case $cc_basename in
8639 xlc*)
8640 output_verbose_link_cmd='echo'
8641 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
8642 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
8643 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
8644 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}'
8645 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}'
8646 ;;
8647 *)
8648 ld_shlibs=no
8649 ;;
8650 esac
8651 fi
8652 ;;
8653
8654 dgux*)
8655 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8656 hardcode_libdir_flag_spec='-L$libdir'
8657 hardcode_shlibpath_var=no
8658 ;;
8659
8660 freebsd1*)
8661 ld_shlibs=no
8662 ;;
8663
8664 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
8665 # support. Future versions do this automatically, but an explicit c++rt0.o
8666 # does not break anything, and helps significantly (at the cost of a little
8667 # extra space).
8668 freebsd2.2*)
8669 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
8670 hardcode_libdir_flag_spec='-R$libdir'
8671 hardcode_direct=yes
8672 hardcode_shlibpath_var=no
8673 ;;
8674
8675 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
8676 freebsd2*)
8677 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8678 hardcode_direct=yes
8679 hardcode_minus_L=yes
8680 hardcode_shlibpath_var=no
8681 ;;
8682
8683 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
8684 freebsd* | dragonfly*)
8685 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8686 hardcode_libdir_flag_spec='-R$libdir'
8687 hardcode_direct=yes
8688 hardcode_shlibpath_var=no
8689 ;;
8690
8691 hpux9*)
8692 if test "$GCC" = yes; then
8693 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'
8694 else
8695 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'
8696 fi
8697 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8698 hardcode_libdir_separator=:
8699 hardcode_direct=yes
8700
8701 # hardcode_minus_L: Not really in the search PATH,
8702 # but as the default location of the library.
8703 hardcode_minus_L=yes
8704 export_dynamic_flag_spec='${wl}-E'
8705 ;;
8706
8707 hpux10*)
8708 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8709 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8710 else
8711 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8712 fi
8713 if test "$with_gnu_ld" = no; then
8714 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8715 hardcode_libdir_separator=:
8716
8717 hardcode_direct=yes
8718 export_dynamic_flag_spec='${wl}-E'
8719
8720 # hardcode_minus_L: Not really in the search PATH,
8721 # but as the default location of the library.
8722 hardcode_minus_L=yes
8723 fi
8724 ;;
8725
8726 hpux11*)
8727 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8728 case $host_cpu in
8729 hppa*64*)
8730 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8731 ;;
8732 ia64*)
8733 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8734 ;;
8735 *)
8736 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8737 ;;
8738 esac
8739 else
8740 case $host_cpu in
8741 hppa*64*)
8742 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8743 ;;
8744 ia64*)
8745 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8746 ;;
8747 *)
8748 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8749 ;;
8750 esac
8751 fi
8752 if test "$with_gnu_ld" = no; then
8753 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8754 hardcode_libdir_separator=:
8755
8756 case $host_cpu in
8757 hppa*64*|ia64*)
8758 hardcode_libdir_flag_spec_ld='+b $libdir'
8759 hardcode_direct=no
8760 hardcode_shlibpath_var=no
8761 ;;
8762 *)
8763 hardcode_direct=yes
8764 export_dynamic_flag_spec='${wl}-E'
8765
8766 # hardcode_minus_L: Not really in the search PATH,
8767 # but as the default location of the library.
8768 hardcode_minus_L=yes
8769 ;;
8770 esac
8771 fi
8772 ;;
8773
8774 irix5* | irix6* | nonstopux*)
8775 if test "$GCC" = yes; then
8776 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'
8777 else
8778 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'
8779 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8780 fi
8781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8782 hardcode_libdir_separator=:
8783 link_all_deplibs=yes
8784 ;;
8785
8786 netbsd*)
8787 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8788 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8789 else
8790 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8791 fi
8792 hardcode_libdir_flag_spec='-R$libdir'
8793 hardcode_direct=yes
8794 hardcode_shlibpath_var=no
8795 ;;
8796
8797 newsos6)
8798 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8799 hardcode_direct=yes
8800 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8801 hardcode_libdir_separator=:
8802 hardcode_shlibpath_var=no
8803 ;;
8804
8805 openbsd*)
8806 if test -f /usr/libexec/ld.so; then
8807 hardcode_direct=yes
8808 hardcode_shlibpath_var=no
8809 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8810 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8811 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8812 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8813 export_dynamic_flag_spec='${wl}-E'
8814 else
8815 case $host_os in
8816 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8817 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8818 hardcode_libdir_flag_spec='-R$libdir'
8819 ;;
8820 *)
8821 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8822 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8823 ;;
8824 esac
8825 fi
8826 else
8827 ld_shlibs=no
8828 fi
8829 ;;
8830
8831 os2*)
8832 hardcode_libdir_flag_spec='-L$libdir'
8833 hardcode_minus_L=yes
8834 allow_undefined_flag=unsupported
8835 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'
8836 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8837 ;;
8838
8839 osf3*)
8840 if test "$GCC" = yes; then
8841 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8842 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'
8843 else
8844 allow_undefined_flag=' -expect_unresolved \*'
8845 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'
8846 fi
8847 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8848 hardcode_libdir_separator=:
8849 ;;
8850
8851 osf4* | osf5*) # as osf3* with the addition of -msym flag
8852 if test "$GCC" = yes; then
8853 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8854 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'
8855 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8856 else
8857 allow_undefined_flag=' -expect_unresolved \*'
8858 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'
8859 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8860 $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'
8861
8862 # Both c and cxx compiler support -rpath directly
8863 hardcode_libdir_flag_spec='-rpath $libdir'
8864 fi
8865 hardcode_libdir_separator=:
8866 ;;
8867
8868 solaris*)
8869 no_undefined_flag=' -z text'
8870 if test "$GCC" = yes; then
8871 wlarc='${wl}'
8872 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8873 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8874 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8875 else
8876 wlarc=''
8877 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8878 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8879 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8880 fi
8881 hardcode_libdir_flag_spec='-R$libdir'
8882 hardcode_shlibpath_var=no
8883 case $host_os in
8884 solaris2.[0-5] | solaris2.[0-5].*) ;;
8885 *)
8886 # The compiler driver will combine and reorder linker options,
8887 # but understands `-z linker_flag'. GCC discards it without `$wl',
8888 # but is careful enough not to reorder.
8889 # Supported since Solaris 2.6 (maybe 2.5.1?)
8890 if test "$GCC" = yes; then
8891 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8892 else
8893 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8894 fi
8895 ;;
8896 esac
8897 link_all_deplibs=yes
8898 ;;
8899
8900 sunos4*)
8901 if test "x$host_vendor" = xsequent; then
8902 # Use $CC to link under sequent, because it throws in some extra .o
8903 # files that make .init and .fini sections work.
8904 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8905 else
8906 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8907 fi
8908 hardcode_libdir_flag_spec='-L$libdir'
8909 hardcode_direct=yes
8910 hardcode_minus_L=yes
8911 hardcode_shlibpath_var=no
8912 ;;
8913
8914 sysv4)
8915 case $host_vendor in
8916 sni)
8917 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8918 hardcode_direct=yes # is this really true???
8919 ;;
8920 siemens)
8921 ## LD is ld it makes a PLAMLIB
8922 ## CC just makes a GrossModule.
8923 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8924 reload_cmds='$CC -r -o $output$reload_objs'
8925 hardcode_direct=no
8926 ;;
8927 motorola)
8928 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8929 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8930 ;;
8931 esac
8932 runpath_var='LD_RUN_PATH'
8933 hardcode_shlibpath_var=no
8934 ;;
8935
8936 sysv4.3*)
8937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8938 hardcode_shlibpath_var=no
8939 export_dynamic_flag_spec='-Bexport'
8940 ;;
8941
8942 sysv4*MP*)
8943 if test -d /usr/nec; then
8944 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8945 hardcode_shlibpath_var=no
8946 runpath_var=LD_RUN_PATH
8947 hardcode_runpath_var=yes
8948 ld_shlibs=yes
8949 fi
8950 ;;
8951
8952 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8953 no_undefined_flag='${wl}-z,text'
8954 archive_cmds_need_lc=no
8955 hardcode_shlibpath_var=no
8956 runpath_var='LD_RUN_PATH'
8957
8958 if test "$GCC" = yes; then
8959 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8960 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8961 else
8962 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8963 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8964 fi
8965 ;;
8966
8967 sysv5* | sco3.2v5* | sco5v6*)
8968 # Note: We can NOT use -z defs as we might desire, because we do not
8969 # link with -lc, and that would cause any symbols used from libc to
8970 # always be unresolved, which means just about no library would
8971 # ever link correctly. If we're not using GNU ld we use -z text
8972 # though, which does catch some bad symbols but isn't as heavy-handed
8973 # as -z defs.
8974 no_undefined_flag='${wl}-z,text'
8975 allow_undefined_flag='${wl}-z,nodefs'
8976 archive_cmds_need_lc=no
8977 hardcode_shlibpath_var=no
8978 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8979 hardcode_libdir_separator=':'
8980 link_all_deplibs=yes
8981 export_dynamic_flag_spec='${wl}-Bexport'
8982 runpath_var='LD_RUN_PATH'
8983
8984 if test "$GCC" = yes; then
8985 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8986 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8987 else
8988 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8989 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8990 fi
8991 ;;
8992
8993 uts4*)
8994 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8995 hardcode_libdir_flag_spec='-L$libdir'
8996 hardcode_shlibpath_var=no
8997 ;;
8998
8999 *)
9000 ld_shlibs=no
9001 ;;
9002 esac
9003 fi
9004
9005 { $as_echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9006 $as_echo "$ld_shlibs" >&6; }
9007 test "$ld_shlibs" = no && can_build_shared=no
9008
9009 #
9010 # Do we need to explicitly link libc?
9011 #
9012 case "x$archive_cmds_need_lc" in
9013 x|xyes)
9014 # Assume -lc should be added
9015 archive_cmds_need_lc=yes
9016
9017 if test "$enable_shared" = yes && test "$GCC" = yes; then
9018 case $archive_cmds in
9019 *'~'*)
9020 # FIXME: we may have to deal with multi-command sequences.
9021 ;;
9022 '$CC '*)
9023 # Test whether the compiler implicitly links with -lc since on some
9024 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9025 # to ld, don't add -lc before -lgcc.
9026 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9027 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
9028 $rm conftest*
9029 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9030
9031 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9032 (eval $ac_compile) 2>&5
9033 ac_status=$?
9034 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9035 (exit $ac_status); } 2>conftest.err; then
9036 soname=conftest
9037 lib=conftest
9038 libobjs=conftest.$ac_objext
9039 deplibs=
9040 wl=$lt_prog_compiler_wl
9041 pic_flag=$lt_prog_compiler_pic
9042 compiler_flags=-v
9043 linker_flags=-v
9044 verstring=
9045 output_objdir=.
9046 libname=conftest
9047 lt_save_allow_undefined_flag=$allow_undefined_flag
9048 allow_undefined_flag=
9049 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9050 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9051 ac_status=$?
9052 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9053 (exit $ac_status); }
9054 then
9055 archive_cmds_need_lc=no
9056 else
9057 archive_cmds_need_lc=yes
9058 fi
9059 allow_undefined_flag=$lt_save_allow_undefined_flag
9060 else
9061 cat conftest.err 1>&5
9062 fi
9063 $rm conftest*
9064 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9065 $as_echo "$archive_cmds_need_lc" >&6; }
9066 ;;
9067 esac
9068 fi
9069 ;;
9070 esac
9071
9072 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9073 $as_echo_n "checking dynamic linker characteristics... " >&6; }
9074 library_names_spec=
9075 libname_spec='lib$name'
9076 soname_spec=
9077 shrext_cmds=".so"
9078 postinstall_cmds=
9079 postuninstall_cmds=
9080 finish_cmds=
9081 finish_eval=
9082 shlibpath_var=
9083 shlibpath_overrides_runpath=unknown
9084 version_type=none
9085 dynamic_linker="$host_os ld.so"
9086 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9087
9088 if test "$GCC" = yes; then
9089 case $host_os in
9090 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
9091 *) lt_awk_arg="/^libraries:/" ;;
9092 esac
9093 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9094 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
9095 # if the path contains ";" then we assume it to be the separator
9096 # otherwise default to the standard path separator (i.e. ":") - it is
9097 # assumed that no part of a normal pathname contains ";" but that should
9098 # okay in the real world where ";" in dirpaths is itself problematic.
9099 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
9100 else
9101 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9102 fi
9103 # Ok, now we have the path, separated by spaces, we can step through it
9104 # and add multilib dir if necessary.
9105 lt_tmp_lt_search_path_spec=
9106 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
9107 for lt_sys_path in $lt_search_path_spec; do
9108 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
9109 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
9110 else
9111 test -d "$lt_sys_path" && \
9112 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
9113 fi
9114 done
9115 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
9116 BEGIN {RS=" "; FS="/|\n";} {
9117 lt_foo="";
9118 lt_count=0;
9119 for (lt_i = NF; lt_i > 0; lt_i--) {
9120 if ($lt_i != "" && $lt_i != ".") {
9121 if ($lt_i == "..") {
9122 lt_count++;
9123 } else {
9124 if (lt_count == 0) {
9125 lt_foo="/" $lt_i lt_foo;
9126 } else {
9127 lt_count--;
9128 }
9129 }
9130 }
9131 }
9132 if (lt_foo != "") { lt_freq[lt_foo]++; }
9133 if (lt_freq[lt_foo] == 1) { print lt_foo; }
9134 }'`
9135 sys_lib_search_path_spec=`echo $lt_search_path_spec`
9136 else
9137 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9138 fi
9139 need_lib_prefix=unknown
9140 hardcode_into_libs=no
9141
9142 # when you set need_version to no, make sure it does not cause -set_version
9143 # flags to be left without arguments
9144 need_version=unknown
9145
9146 case $host_os in
9147 aix3*)
9148 version_type=linux
9149 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9150 shlibpath_var=LIBPATH
9151
9152 # AIX 3 has no versioning support, so we append a major version to the name.
9153 soname_spec='${libname}${release}${shared_ext}$major'
9154 ;;
9155
9156 aix[4-9]*)
9157 version_type=linux
9158 need_lib_prefix=no
9159 need_version=no
9160 hardcode_into_libs=yes
9161 if test "$host_cpu" = ia64; then
9162 # AIX 5 supports IA64
9163 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9164 shlibpath_var=LD_LIBRARY_PATH
9165 else
9166 # With GCC up to 2.95.x, collect2 would create an import file
9167 # for dependence libraries. The import file would start with
9168 # the line `#! .'. This would cause the generated library to
9169 # depend on `.', always an invalid library. This was fixed in
9170 # development snapshots of GCC prior to 3.0.
9171 case $host_os in
9172 aix4 | aix4.[01] | aix4.[01].*)
9173 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9174 echo ' yes '
9175 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9176 :
9177 else
9178 can_build_shared=no
9179 fi
9180 ;;
9181 esac
9182 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9183 # soname into executable. Probably we can add versioning support to
9184 # collect2, so additional links can be useful in future.
9185 if test "$aix_use_runtimelinking" = yes; then
9186 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9187 # instead of lib<name>.a to let people know that these are not
9188 # typical AIX shared libraries.
9189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9190 else
9191 # We preserve .a as extension for shared libraries through AIX4.2
9192 # and later when we are not doing run time linking.
9193 library_names_spec='${libname}${release}.a $libname.a'
9194 soname_spec='${libname}${release}${shared_ext}$major'
9195 fi
9196 shlibpath_var=LIBPATH
9197 fi
9198 ;;
9199
9200 amigaos*)
9201 library_names_spec='$libname.ixlibrary $libname.a'
9202 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9203 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'
9204 ;;
9205
9206 beos*)
9207 library_names_spec='${libname}${shared_ext}'
9208 dynamic_linker="$host_os ld.so"
9209 shlibpath_var=LIBRARY_PATH
9210 ;;
9211
9212 bsdi[45]*)
9213 version_type=linux
9214 need_version=no
9215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9216 soname_spec='${libname}${release}${shared_ext}$major'
9217 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9218 shlibpath_var=LD_LIBRARY_PATH
9219 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9220 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9221 # the default ld.so.conf also contains /usr/contrib/lib and
9222 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9223 # libtool to hard-code these into programs
9224 ;;
9225
9226 cygwin* | mingw* | pw32*)
9227 version_type=windows
9228 shrext_cmds=".dll"
9229 need_version=no
9230 need_lib_prefix=no
9231
9232 case $GCC,$host_os in
9233 yes,cygwin* | yes,mingw* | yes,pw32*)
9234 library_names_spec='$libname.dll.a'
9235 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9236 postinstall_cmds='base_file=`basename \${file}`~
9237 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9238 dldir=$destdir/`dirname \$dlpath`~
9239 test -d \$dldir || mkdir -p \$dldir~
9240 $install_prog $dir/$dlname \$dldir/$dlname~
9241 chmod a+x \$dldir/$dlname'
9242 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9243 dlpath=$dir/\$dldll~
9244 $rm \$dlpath'
9245 shlibpath_overrides_runpath=yes
9246
9247 case $host_os in
9248 cygwin*)
9249 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9250 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9251 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9252 ;;
9253 mingw*)
9254 # MinGW DLLs use traditional 'lib' prefix
9255 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9256 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9257 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9258 # It is most probably a Windows format PATH printed by
9259 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9260 # path with ; separators, and with drive letters. We can handle the
9261 # drive letters (cygwin fileutils understands them), so leave them,
9262 # especially as we might pass files found there to a mingw objdump,
9263 # which wouldn't understand a cygwinified path. Ahh.
9264 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9265 else
9266 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9267 fi
9268 ;;
9269 pw32*)
9270 # pw32 DLLs use 'pw' prefix rather than 'lib'
9271 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9272 ;;
9273 esac
9274 ;;
9275
9276 *)
9277 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9278 ;;
9279 esac
9280 dynamic_linker='Win32 ld.exe'
9281 # FIXME: first we should search . and the directory the executable is in
9282 shlibpath_var=PATH
9283 ;;
9284
9285 darwin* | rhapsody*)
9286 dynamic_linker="$host_os dyld"
9287 version_type=darwin
9288 need_lib_prefix=no
9289 need_version=no
9290 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9291 soname_spec='${libname}${release}${major}$shared_ext'
9292 shlibpath_overrides_runpath=yes
9293 shlibpath_var=DYLD_LIBRARY_PATH
9294 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
9295
9296 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
9297 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9298 ;;
9299
9300 dgux*)
9301 version_type=linux
9302 need_lib_prefix=no
9303 need_version=no
9304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9305 soname_spec='${libname}${release}${shared_ext}$major'
9306 shlibpath_var=LD_LIBRARY_PATH
9307 ;;
9308
9309 freebsd1*)
9310 dynamic_linker=no
9311 ;;
9312
9313 freebsd* | dragonfly*)
9314 # DragonFly does not have aout. When/if they implement a new
9315 # versioning mechanism, adjust this.
9316 if test -x /usr/bin/objformat; then
9317 objformat=`/usr/bin/objformat`
9318 else
9319 case $host_os in
9320 freebsd[123]*) objformat=aout ;;
9321 *) objformat=elf ;;
9322 esac
9323 fi
9324 # Handle Gentoo/FreeBSD as it was Linux
9325 case $host_vendor in
9326 gentoo)
9327 version_type=linux ;;
9328 *)
9329 version_type=freebsd-$objformat ;;
9330 esac
9331
9332 case $version_type in
9333 freebsd-elf*)
9334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9335 need_version=no
9336 need_lib_prefix=no
9337 ;;
9338 freebsd-*)
9339 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9340 need_version=yes
9341 ;;
9342 linux)
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 need_lib_prefix=no
9346 need_version=no
9347 ;;
9348 esac
9349 shlibpath_var=LD_LIBRARY_PATH
9350 case $host_os in
9351 freebsd2*)
9352 shlibpath_overrides_runpath=yes
9353 ;;
9354 freebsd3.[01]* | freebsdelf3.[01]*)
9355 shlibpath_overrides_runpath=yes
9356 hardcode_into_libs=yes
9357 ;;
9358 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9359 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9360 shlibpath_overrides_runpath=no
9361 hardcode_into_libs=yes
9362 ;;
9363 *) # from 4.6 on, and DragonFly
9364 shlibpath_overrides_runpath=yes
9365 hardcode_into_libs=yes
9366 ;;
9367 esac
9368 ;;
9369
9370 gnu*)
9371 version_type=linux
9372 need_lib_prefix=no
9373 need_version=no
9374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9375 soname_spec='${libname}${release}${shared_ext}$major'
9376 shlibpath_var=LD_LIBRARY_PATH
9377 hardcode_into_libs=yes
9378 ;;
9379
9380 hpux9* | hpux10* | hpux11*)
9381 # Give a soname corresponding to the major version so that dld.sl refuses to
9382 # link against other versions.
9383 version_type=sunos
9384 need_lib_prefix=no
9385 need_version=no
9386 case $host_cpu in
9387 ia64*)
9388 shrext_cmds='.so'
9389 hardcode_into_libs=yes
9390 dynamic_linker="$host_os dld.so"
9391 shlibpath_var=LD_LIBRARY_PATH
9392 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9394 soname_spec='${libname}${release}${shared_ext}$major'
9395 if test "X$HPUX_IA64_MODE" = X32; then
9396 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9397 else
9398 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9399 fi
9400 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9401 ;;
9402 hppa*64*)
9403 shrext_cmds='.sl'
9404 hardcode_into_libs=yes
9405 dynamic_linker="$host_os dld.sl"
9406 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9407 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9409 soname_spec='${libname}${release}${shared_ext}$major'
9410 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9411 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9412 ;;
9413 *)
9414 shrext_cmds='.sl'
9415 dynamic_linker="$host_os dld.sl"
9416 shlibpath_var=SHLIB_PATH
9417 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9419 soname_spec='${libname}${release}${shared_ext}$major'
9420 ;;
9421 esac
9422 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9423 postinstall_cmds='chmod 555 $lib'
9424 ;;
9425
9426 interix[3-9]*)
9427 version_type=linux
9428 need_lib_prefix=no
9429 need_version=no
9430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9431 soname_spec='${libname}${release}${shared_ext}$major'
9432 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
9433 shlibpath_var=LD_LIBRARY_PATH
9434 shlibpath_overrides_runpath=no
9435 hardcode_into_libs=yes
9436 ;;
9437
9438 irix5* | irix6* | nonstopux*)
9439 case $host_os in
9440 nonstopux*) version_type=nonstopux ;;
9441 *)
9442 if test "$lt_cv_prog_gnu_ld" = yes; then
9443 version_type=linux
9444 else
9445 version_type=irix
9446 fi ;;
9447 esac
9448 need_lib_prefix=no
9449 need_version=no
9450 soname_spec='${libname}${release}${shared_ext}$major'
9451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9452 case $host_os in
9453 irix5* | nonstopux*)
9454 libsuff= shlibsuff=
9455 ;;
9456 *)
9457 case $LD in # libtool.m4 will add one of these switches to LD
9458 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9459 libsuff= shlibsuff= libmagic=32-bit;;
9460 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9461 libsuff=32 shlibsuff=N32 libmagic=N32;;
9462 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9463 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9464 *) libsuff= shlibsuff= libmagic=never-match;;
9465 esac
9466 ;;
9467 esac
9468 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9469 shlibpath_overrides_runpath=no
9470 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9471 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9472 hardcode_into_libs=yes
9473 ;;
9474
9475 # No shared lib support for Linux oldld, aout, or coff.
9476 linux*oldld* | linux*aout* | linux*coff*)
9477 dynamic_linker=no
9478 ;;
9479
9480 # This must be Linux ELF.
9481 linux* | k*bsd*-gnu)
9482 version_type=linux
9483 need_lib_prefix=no
9484 need_version=no
9485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9486 soname_spec='${libname}${release}${shared_ext}$major'
9487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9488 shlibpath_var=LD_LIBRARY_PATH
9489 shlibpath_overrides_runpath=no
9490 # This implies no fast_install, which is unacceptable.
9491 # Some rework will be needed to allow for fast_install
9492 # before this can be enabled.
9493 hardcode_into_libs=yes
9494
9495 # Append ld.so.conf contents to the search path
9496 if test -f /etc/ld.so.conf; then
9497 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' ' '`
9498 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9499 fi
9500
9501 # We used to test for /lib/ld.so.1 and disable shared libraries on
9502 # powerpc, because MkLinux only supported shared libraries with the
9503 # GNU dynamic linker. Since this was broken with cross compilers,
9504 # most powerpc-linux boxes support dynamic linking these days and
9505 # people can always --disable-shared, the test was removed, and we
9506 # assume the GNU/Linux dynamic linker is in use.
9507 dynamic_linker='GNU/Linux ld.so'
9508 ;;
9509
9510 netbsd*)
9511 version_type=sunos
9512 need_lib_prefix=no
9513 need_version=no
9514 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9516 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9517 dynamic_linker='NetBSD (a.out) ld.so'
9518 else
9519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9520 soname_spec='${libname}${release}${shared_ext}$major'
9521 dynamic_linker='NetBSD ld.elf_so'
9522 fi
9523 shlibpath_var=LD_LIBRARY_PATH
9524 shlibpath_overrides_runpath=yes
9525 hardcode_into_libs=yes
9526 ;;
9527
9528 newsos6)
9529 version_type=linux
9530 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9531 shlibpath_var=LD_LIBRARY_PATH
9532 shlibpath_overrides_runpath=yes
9533 ;;
9534
9535 nto-qnx*)
9536 version_type=linux
9537 need_lib_prefix=no
9538 need_version=no
9539 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9540 soname_spec='${libname}${release}${shared_ext}$major'
9541 shlibpath_var=LD_LIBRARY_PATH
9542 shlibpath_overrides_runpath=yes
9543 ;;
9544
9545 openbsd*)
9546 version_type=sunos
9547 sys_lib_dlsearch_path_spec="/usr/lib"
9548 need_lib_prefix=no
9549 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
9550 case $host_os in
9551 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
9552 *) need_version=no ;;
9553 esac
9554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9555 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9556 shlibpath_var=LD_LIBRARY_PATH
9557 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9558 case $host_os in
9559 openbsd2.[89] | openbsd2.[89].*)
9560 shlibpath_overrides_runpath=no
9561 ;;
9562 *)
9563 shlibpath_overrides_runpath=yes
9564 ;;
9565 esac
9566 else
9567 shlibpath_overrides_runpath=yes
9568 fi
9569 ;;
9570
9571 os2*)
9572 libname_spec='$name'
9573 shrext_cmds=".dll"
9574 need_lib_prefix=no
9575 library_names_spec='$libname${shared_ext} $libname.a'
9576 dynamic_linker='OS/2 ld.exe'
9577 shlibpath_var=LIBPATH
9578 ;;
9579
9580 osf3* | osf4* | osf5*)
9581 version_type=osf
9582 need_lib_prefix=no
9583 need_version=no
9584 soname_spec='${libname}${release}${shared_ext}$major'
9585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9586 shlibpath_var=LD_LIBRARY_PATH
9587 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
9588 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
9589 ;;
9590
9591 rdos*)
9592 dynamic_linker=no
9593 ;;
9594
9595 solaris*)
9596 version_type=linux
9597 need_lib_prefix=no
9598 need_version=no
9599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9600 soname_spec='${libname}${release}${shared_ext}$major'
9601 shlibpath_var=LD_LIBRARY_PATH
9602 shlibpath_overrides_runpath=yes
9603 hardcode_into_libs=yes
9604 # ldd complains unless libraries are executable
9605 postinstall_cmds='chmod +x $lib'
9606 ;;
9607
9608 sunos4*)
9609 version_type=sunos
9610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9611 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
9612 shlibpath_var=LD_LIBRARY_PATH
9613 shlibpath_overrides_runpath=yes
9614 if test "$with_gnu_ld" = yes; then
9615 need_lib_prefix=no
9616 fi
9617 need_version=yes
9618 ;;
9619
9620 sysv4 | sysv4.3*)
9621 version_type=linux
9622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9623 soname_spec='${libname}${release}${shared_ext}$major'
9624 shlibpath_var=LD_LIBRARY_PATH
9625 case $host_vendor in
9626 sni)
9627 shlibpath_overrides_runpath=no
9628 need_lib_prefix=no
9629 export_dynamic_flag_spec='${wl}-Blargedynsym'
9630 runpath_var=LD_RUN_PATH
9631 ;;
9632 siemens)
9633 need_lib_prefix=no
9634 ;;
9635 motorola)
9636 need_lib_prefix=no
9637 need_version=no
9638 shlibpath_overrides_runpath=no
9639 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
9640 ;;
9641 esac
9642 ;;
9643
9644 sysv4*MP*)
9645 if test -d /usr/nec ;then
9646 version_type=linux
9647 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
9648 soname_spec='$libname${shared_ext}.$major'
9649 shlibpath_var=LD_LIBRARY_PATH
9650 fi
9651 ;;
9652
9653 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9654 version_type=freebsd-elf
9655 need_lib_prefix=no
9656 need_version=no
9657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9658 soname_spec='${libname}${release}${shared_ext}$major'
9659 shlibpath_var=LD_LIBRARY_PATH
9660 hardcode_into_libs=yes
9661 if test "$with_gnu_ld" = yes; then
9662 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
9663 shlibpath_overrides_runpath=no
9664 else
9665 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
9666 shlibpath_overrides_runpath=yes
9667 case $host_os in
9668 sco3.2v5*)
9669 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
9670 ;;
9671 esac
9672 fi
9673 sys_lib_dlsearch_path_spec='/usr/lib'
9674 ;;
9675
9676 uts4*)
9677 version_type=linux
9678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9679 soname_spec='${libname}${release}${shared_ext}$major'
9680 shlibpath_var=LD_LIBRARY_PATH
9681 ;;
9682
9683 *)
9684 dynamic_linker=no
9685 ;;
9686 esac
9687 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
9688 $as_echo "$dynamic_linker" >&6; }
9689 test "$dynamic_linker" = no && can_build_shared=no
9690
9691 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
9692 $as_echo_n "(cached) " >&6
9693 else
9694 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
9695 fi
9696
9697 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9698 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9699 $as_echo_n "(cached) " >&6
9700 else
9701 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9702 fi
9703
9704 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9705
9706 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9707 if test "$GCC" = yes; then
9708 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9709 fi
9710
9711 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9712 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
9713 hardcode_action=
9714 if test -n "$hardcode_libdir_flag_spec" || \
9715 test -n "$runpath_var" || \
9716 test "X$hardcode_automatic" = "Xyes" ; then
9717
9718 # We can hardcode non-existant directories.
9719 if test "$hardcode_direct" != no &&
9720 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9721 # have to relink, otherwise we might link with an installed library
9722 # when we should be linking with a yet-to-be-installed one
9723 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9724 test "$hardcode_minus_L" != no; then
9725 # Linking always hardcodes the temporary library directory.
9726 hardcode_action=relink
9727 else
9728 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9729 hardcode_action=immediate
9730 fi
9731 else
9732 # We cannot hardcode anything, or else we can only hardcode existing
9733 # directories.
9734 hardcode_action=unsupported
9735 fi
9736 { $as_echo "$as_me:$LINENO: result: $hardcode_action" >&5
9737 $as_echo "$hardcode_action" >&6; }
9738
9739 if test "$hardcode_action" = relink; then
9740 # Fast installation is not supported
9741 enable_fast_install=no
9742 elif test "$shlibpath_overrides_runpath" = yes ||
9743 test "$enable_shared" = no; then
9744 # Fast installation is not necessary
9745 enable_fast_install=needless
9746 fi
9747
9748 striplib=
9749 old_striplib=
9750 { $as_echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9751 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
9752 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9753 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9754 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9755 { $as_echo "$as_me:$LINENO: result: yes" >&5
9756 $as_echo "yes" >&6; }
9757 else
9758 # FIXME - insert some real tests, host_os isn't really good enough
9759 case $host_os in
9760 darwin*)
9761 if test -n "$STRIP" ; then
9762 striplib="$STRIP -x"
9763 old_striplib="$STRIP -S"
9764 { $as_echo "$as_me:$LINENO: result: yes" >&5
9765 $as_echo "yes" >&6; }
9766 else
9767 { $as_echo "$as_me:$LINENO: result: no" >&5
9768 $as_echo "no" >&6; }
9769 fi
9770 ;;
9771 *)
9772 { $as_echo "$as_me:$LINENO: result: no" >&5
9773 $as_echo "no" >&6; }
9774 ;;
9775 esac
9776 fi
9777
9778 if test "x$enable_dlopen" != xyes; then
9779 enable_dlopen=unknown
9780 enable_dlopen_self=unknown
9781 enable_dlopen_self_static=unknown
9782 else
9783 lt_cv_dlopen=no
9784 lt_cv_dlopen_libs=
9785
9786 case $host_os in
9787 beos*)
9788 lt_cv_dlopen="load_add_on"
9789 lt_cv_dlopen_libs=
9790 lt_cv_dlopen_self=yes
9791 ;;
9792
9793 mingw* | pw32*)
9794 lt_cv_dlopen="LoadLibrary"
9795 lt_cv_dlopen_libs=
9796 ;;
9797
9798 cygwin*)
9799 lt_cv_dlopen="dlopen"
9800 lt_cv_dlopen_libs=
9801 ;;
9802
9803 darwin*)
9804 # if libdl is installed we need to link against it
9805 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9806 $as_echo_n "checking for dlopen in -ldl... " >&6; }
9807 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9808 $as_echo_n "(cached) " >&6
9809 else
9810 ac_check_lib_save_LIBS=$LIBS
9811 LIBS="-ldl $LIBS"
9812 cat >conftest.$ac_ext <<_ACEOF
9813 /* confdefs.h. */
9814 _ACEOF
9815 cat confdefs.h >>conftest.$ac_ext
9816 cat >>conftest.$ac_ext <<_ACEOF
9817 /* end confdefs.h. */
9818
9819 /* Override any GCC internal prototype to avoid an error.
9820 Use char because int might match the return type of a GCC
9821 builtin and then its argument prototype would still apply. */
9822 #ifdef __cplusplus
9823 extern "C"
9824 #endif
9825 char dlopen ();
9826 int
9827 main ()
9828 {
9829 return dlopen ();
9830 ;
9831 return 0;
9832 }
9833 _ACEOF
9834 rm -f conftest.$ac_objext conftest$ac_exeext
9835 if { (ac_try="$ac_link"
9836 case "(($ac_try" in
9837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9838 *) ac_try_echo=$ac_try;;
9839 esac
9840 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9841 $as_echo "$ac_try_echo") >&5
9842 (eval "$ac_link") 2>conftest.er1
9843 ac_status=$?
9844 grep -v '^ *+' conftest.er1 >conftest.err
9845 rm -f conftest.er1
9846 cat conftest.err >&5
9847 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9848 (exit $ac_status); } && {
9849 test -z "$ac_c_werror_flag" ||
9850 test ! -s conftest.err
9851 } && test -s conftest$ac_exeext && {
9852 test "$cross_compiling" = yes ||
9853 $as_test_x conftest$ac_exeext
9854 }; then
9855 ac_cv_lib_dl_dlopen=yes
9856 else
9857 $as_echo "$as_me: failed program was:" >&5
9858 sed 's/^/| /' conftest.$ac_ext >&5
9859
9860 ac_cv_lib_dl_dlopen=no
9861 fi
9862
9863 rm -rf conftest.dSYM
9864 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9865 conftest$ac_exeext conftest.$ac_ext
9866 LIBS=$ac_check_lib_save_LIBS
9867 fi
9868 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9869 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
9870 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
9871 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9872 else
9873
9874 lt_cv_dlopen="dyld"
9875 lt_cv_dlopen_libs=
9876 lt_cv_dlopen_self=yes
9877
9878 fi
9879
9880 ;;
9881
9882 *)
9883 { $as_echo "$as_me:$LINENO: checking for shl_load" >&5
9884 $as_echo_n "checking for shl_load... " >&6; }
9885 if test "${ac_cv_func_shl_load+set}" = set; then
9886 $as_echo_n "(cached) " >&6
9887 else
9888 cat >conftest.$ac_ext <<_ACEOF
9889 /* confdefs.h. */
9890 _ACEOF
9891 cat confdefs.h >>conftest.$ac_ext
9892 cat >>conftest.$ac_ext <<_ACEOF
9893 /* end confdefs.h. */
9894 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9895 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9896 #define shl_load innocuous_shl_load
9897
9898 /* System header to define __stub macros and hopefully few prototypes,
9899 which can conflict with char shl_load (); below.
9900 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9901 <limits.h> exists even on freestanding compilers. */
9902
9903 #ifdef __STDC__
9904 # include <limits.h>
9905 #else
9906 # include <assert.h>
9907 #endif
9908
9909 #undef shl_load
9910
9911 /* Override any GCC internal prototype to avoid an error.
9912 Use char because int might match the return type of a GCC
9913 builtin and then its argument prototype would still apply. */
9914 #ifdef __cplusplus
9915 extern "C"
9916 #endif
9917 char shl_load ();
9918 /* The GNU C library defines this for functions which it implements
9919 to always fail with ENOSYS. Some functions are actually named
9920 something starting with __ and the normal name is an alias. */
9921 #if defined __stub_shl_load || defined __stub___shl_load
9922 choke me
9923 #endif
9924
9925 int
9926 main ()
9927 {
9928 return shl_load ();
9929 ;
9930 return 0;
9931 }
9932 _ACEOF
9933 rm -f conftest.$ac_objext conftest$ac_exeext
9934 if { (ac_try="$ac_link"
9935 case "(($ac_try" in
9936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9937 *) ac_try_echo=$ac_try;;
9938 esac
9939 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
9940 $as_echo "$ac_try_echo") >&5
9941 (eval "$ac_link") 2>conftest.er1
9942 ac_status=$?
9943 grep -v '^ *+' conftest.er1 >conftest.err
9944 rm -f conftest.er1
9945 cat conftest.err >&5
9946 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
9947 (exit $ac_status); } && {
9948 test -z "$ac_c_werror_flag" ||
9949 test ! -s conftest.err
9950 } && test -s conftest$ac_exeext && {
9951 test "$cross_compiling" = yes ||
9952 $as_test_x conftest$ac_exeext
9953 }; then
9954 ac_cv_func_shl_load=yes
9955 else
9956 $as_echo "$as_me: failed program was:" >&5
9957 sed 's/^/| /' conftest.$ac_ext >&5
9958
9959 ac_cv_func_shl_load=no
9960 fi
9961
9962 rm -rf conftest.dSYM
9963 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9964 conftest$ac_exeext conftest.$ac_ext
9965 fi
9966 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9967 $as_echo "$ac_cv_func_shl_load" >&6; }
9968 if test "x$ac_cv_func_shl_load" = x""yes; then
9969 lt_cv_dlopen="shl_load"
9970 else
9971 { $as_echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9972 $as_echo_n "checking for shl_load in -ldld... " >&6; }
9973 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9974 $as_echo_n "(cached) " >&6
9975 else
9976 ac_check_lib_save_LIBS=$LIBS
9977 LIBS="-ldld $LIBS"
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h. */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984
9985 /* Override any GCC internal prototype to avoid an error.
9986 Use char because int might match the return type of a GCC
9987 builtin and then its argument prototype would still apply. */
9988 #ifdef __cplusplus
9989 extern "C"
9990 #endif
9991 char shl_load ();
9992 int
9993 main ()
9994 {
9995 return shl_load ();
9996 ;
9997 return 0;
9998 }
9999 _ACEOF
10000 rm -f conftest.$ac_objext conftest$ac_exeext
10001 if { (ac_try="$ac_link"
10002 case "(($ac_try" in
10003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10004 *) ac_try_echo=$ac_try;;
10005 esac
10006 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10007 $as_echo "$ac_try_echo") >&5
10008 (eval "$ac_link") 2>conftest.er1
10009 ac_status=$?
10010 grep -v '^ *+' conftest.er1 >conftest.err
10011 rm -f conftest.er1
10012 cat conftest.err >&5
10013 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10014 (exit $ac_status); } && {
10015 test -z "$ac_c_werror_flag" ||
10016 test ! -s conftest.err
10017 } && test -s conftest$ac_exeext && {
10018 test "$cross_compiling" = yes ||
10019 $as_test_x conftest$ac_exeext
10020 }; then
10021 ac_cv_lib_dld_shl_load=yes
10022 else
10023 $as_echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10025
10026 ac_cv_lib_dld_shl_load=no
10027 fi
10028
10029 rm -rf conftest.dSYM
10030 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10031 conftest$ac_exeext conftest.$ac_ext
10032 LIBS=$ac_check_lib_save_LIBS
10033 fi
10034 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10035 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
10036 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then
10037 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
10038 else
10039 { $as_echo "$as_me:$LINENO: checking for dlopen" >&5
10040 $as_echo_n "checking for dlopen... " >&6; }
10041 if test "${ac_cv_func_dlopen+set}" = set; then
10042 $as_echo_n "(cached) " >&6
10043 else
10044 cat >conftest.$ac_ext <<_ACEOF
10045 /* confdefs.h. */
10046 _ACEOF
10047 cat confdefs.h >>conftest.$ac_ext
10048 cat >>conftest.$ac_ext <<_ACEOF
10049 /* end confdefs.h. */
10050 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10051 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10052 #define dlopen innocuous_dlopen
10053
10054 /* System header to define __stub macros and hopefully few prototypes,
10055 which can conflict with char dlopen (); below.
10056 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10057 <limits.h> exists even on freestanding compilers. */
10058
10059 #ifdef __STDC__
10060 # include <limits.h>
10061 #else
10062 # include <assert.h>
10063 #endif
10064
10065 #undef dlopen
10066
10067 /* Override any GCC internal prototype to avoid an error.
10068 Use char because int might match the return type of a GCC
10069 builtin and then its argument prototype would still apply. */
10070 #ifdef __cplusplus
10071 extern "C"
10072 #endif
10073 char dlopen ();
10074 /* The GNU C library defines this for functions which it implements
10075 to always fail with ENOSYS. Some functions are actually named
10076 something starting with __ and the normal name is an alias. */
10077 #if defined __stub_dlopen || defined __stub___dlopen
10078 choke me
10079 #endif
10080
10081 int
10082 main ()
10083 {
10084 return dlopen ();
10085 ;
10086 return 0;
10087 }
10088 _ACEOF
10089 rm -f conftest.$ac_objext conftest$ac_exeext
10090 if { (ac_try="$ac_link"
10091 case "(($ac_try" in
10092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10093 *) ac_try_echo=$ac_try;;
10094 esac
10095 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10096 $as_echo "$ac_try_echo") >&5
10097 (eval "$ac_link") 2>conftest.er1
10098 ac_status=$?
10099 grep -v '^ *+' conftest.er1 >conftest.err
10100 rm -f conftest.er1
10101 cat conftest.err >&5
10102 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10103 (exit $ac_status); } && {
10104 test -z "$ac_c_werror_flag" ||
10105 test ! -s conftest.err
10106 } && test -s conftest$ac_exeext && {
10107 test "$cross_compiling" = yes ||
10108 $as_test_x conftest$ac_exeext
10109 }; then
10110 ac_cv_func_dlopen=yes
10111 else
10112 $as_echo "$as_me: failed program was:" >&5
10113 sed 's/^/| /' conftest.$ac_ext >&5
10114
10115 ac_cv_func_dlopen=no
10116 fi
10117
10118 rm -rf conftest.dSYM
10119 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10120 conftest$ac_exeext conftest.$ac_ext
10121 fi
10122 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10123 $as_echo "$ac_cv_func_dlopen" >&6; }
10124 if test "x$ac_cv_func_dlopen" = x""yes; then
10125 lt_cv_dlopen="dlopen"
10126 else
10127 { $as_echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10128 $as_echo_n "checking for dlopen in -ldl... " >&6; }
10129 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10130 $as_echo_n "(cached) " >&6
10131 else
10132 ac_check_lib_save_LIBS=$LIBS
10133 LIBS="-ldl $LIBS"
10134 cat >conftest.$ac_ext <<_ACEOF
10135 /* confdefs.h. */
10136 _ACEOF
10137 cat confdefs.h >>conftest.$ac_ext
10138 cat >>conftest.$ac_ext <<_ACEOF
10139 /* end confdefs.h. */
10140
10141 /* Override any GCC internal prototype to avoid an error.
10142 Use char because int might match the return type of a GCC
10143 builtin and then its argument prototype would still apply. */
10144 #ifdef __cplusplus
10145 extern "C"
10146 #endif
10147 char dlopen ();
10148 int
10149 main ()
10150 {
10151 return dlopen ();
10152 ;
10153 return 0;
10154 }
10155 _ACEOF
10156 rm -f conftest.$ac_objext conftest$ac_exeext
10157 if { (ac_try="$ac_link"
10158 case "(($ac_try" in
10159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10160 *) ac_try_echo=$ac_try;;
10161 esac
10162 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10163 $as_echo "$ac_try_echo") >&5
10164 (eval "$ac_link") 2>conftest.er1
10165 ac_status=$?
10166 grep -v '^ *+' conftest.er1 >conftest.err
10167 rm -f conftest.er1
10168 cat conftest.err >&5
10169 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10170 (exit $ac_status); } && {
10171 test -z "$ac_c_werror_flag" ||
10172 test ! -s conftest.err
10173 } && test -s conftest$ac_exeext && {
10174 test "$cross_compiling" = yes ||
10175 $as_test_x conftest$ac_exeext
10176 }; then
10177 ac_cv_lib_dl_dlopen=yes
10178 else
10179 $as_echo "$as_me: failed program was:" >&5
10180 sed 's/^/| /' conftest.$ac_ext >&5
10181
10182 ac_cv_lib_dl_dlopen=no
10183 fi
10184
10185 rm -rf conftest.dSYM
10186 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10187 conftest$ac_exeext conftest.$ac_ext
10188 LIBS=$ac_check_lib_save_LIBS
10189 fi
10190 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10191 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
10192 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then
10193 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10194 else
10195 { $as_echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10196 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
10197 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10198 $as_echo_n "(cached) " >&6
10199 else
10200 ac_check_lib_save_LIBS=$LIBS
10201 LIBS="-lsvld $LIBS"
10202 cat >conftest.$ac_ext <<_ACEOF
10203 /* confdefs.h. */
10204 _ACEOF
10205 cat confdefs.h >>conftest.$ac_ext
10206 cat >>conftest.$ac_ext <<_ACEOF
10207 /* end confdefs.h. */
10208
10209 /* Override any GCC internal prototype to avoid an error.
10210 Use char because int might match the return type of a GCC
10211 builtin and then its argument prototype would still apply. */
10212 #ifdef __cplusplus
10213 extern "C"
10214 #endif
10215 char dlopen ();
10216 int
10217 main ()
10218 {
10219 return dlopen ();
10220 ;
10221 return 0;
10222 }
10223 _ACEOF
10224 rm -f conftest.$ac_objext conftest$ac_exeext
10225 if { (ac_try="$ac_link"
10226 case "(($ac_try" in
10227 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10228 *) ac_try_echo=$ac_try;;
10229 esac
10230 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10231 $as_echo "$ac_try_echo") >&5
10232 (eval "$ac_link") 2>conftest.er1
10233 ac_status=$?
10234 grep -v '^ *+' conftest.er1 >conftest.err
10235 rm -f conftest.er1
10236 cat conftest.err >&5
10237 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10238 (exit $ac_status); } && {
10239 test -z "$ac_c_werror_flag" ||
10240 test ! -s conftest.err
10241 } && test -s conftest$ac_exeext && {
10242 test "$cross_compiling" = yes ||
10243 $as_test_x conftest$ac_exeext
10244 }; then
10245 ac_cv_lib_svld_dlopen=yes
10246 else
10247 $as_echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 ac_cv_lib_svld_dlopen=no
10251 fi
10252
10253 rm -rf conftest.dSYM
10254 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10255 conftest$ac_exeext conftest.$ac_ext
10256 LIBS=$ac_check_lib_save_LIBS
10257 fi
10258 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10259 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
10260 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then
10261 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10262 else
10263 { $as_echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10264 $as_echo_n "checking for dld_link in -ldld... " >&6; }
10265 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10266 $as_echo_n "(cached) " >&6
10267 else
10268 ac_check_lib_save_LIBS=$LIBS
10269 LIBS="-ldld $LIBS"
10270 cat >conftest.$ac_ext <<_ACEOF
10271 /* confdefs.h. */
10272 _ACEOF
10273 cat confdefs.h >>conftest.$ac_ext
10274 cat >>conftest.$ac_ext <<_ACEOF
10275 /* end confdefs.h. */
10276
10277 /* Override any GCC internal prototype to avoid an error.
10278 Use char because int might match the return type of a GCC
10279 builtin and then its argument prototype would still apply. */
10280 #ifdef __cplusplus
10281 extern "C"
10282 #endif
10283 char dld_link ();
10284 int
10285 main ()
10286 {
10287 return dld_link ();
10288 ;
10289 return 0;
10290 }
10291 _ACEOF
10292 rm -f conftest.$ac_objext conftest$ac_exeext
10293 if { (ac_try="$ac_link"
10294 case "(($ac_try" in
10295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10296 *) ac_try_echo=$ac_try;;
10297 esac
10298 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
10299 $as_echo "$ac_try_echo") >&5
10300 (eval "$ac_link") 2>conftest.er1
10301 ac_status=$?
10302 grep -v '^ *+' conftest.er1 >conftest.err
10303 rm -f conftest.er1
10304 cat conftest.err >&5
10305 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10306 (exit $ac_status); } && {
10307 test -z "$ac_c_werror_flag" ||
10308 test ! -s conftest.err
10309 } && test -s conftest$ac_exeext && {
10310 test "$cross_compiling" = yes ||
10311 $as_test_x conftest$ac_exeext
10312 }; then
10313 ac_cv_lib_dld_dld_link=yes
10314 else
10315 $as_echo "$as_me: failed program was:" >&5
10316 sed 's/^/| /' conftest.$ac_ext >&5
10317
10318 ac_cv_lib_dld_dld_link=no
10319 fi
10320
10321 rm -rf conftest.dSYM
10322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10323 conftest$ac_exeext conftest.$ac_ext
10324 LIBS=$ac_check_lib_save_LIBS
10325 fi
10326 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10327 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
10328 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then
10329 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
10330 fi
10331
10332
10333 fi
10334
10335
10336 fi
10337
10338
10339 fi
10340
10341
10342 fi
10343
10344
10345 fi
10346
10347 ;;
10348 esac
10349
10350 if test "x$lt_cv_dlopen" != xno; then
10351 enable_dlopen=yes
10352 else
10353 enable_dlopen=no
10354 fi
10355
10356 case $lt_cv_dlopen in
10357 dlopen)
10358 save_CPPFLAGS="$CPPFLAGS"
10359 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10360
10361 save_LDFLAGS="$LDFLAGS"
10362 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10363
10364 save_LIBS="$LIBS"
10365 LIBS="$lt_cv_dlopen_libs $LIBS"
10366
10367 { $as_echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10368 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
10369 if test "${lt_cv_dlopen_self+set}" = set; then
10370 $as_echo_n "(cached) " >&6
10371 else
10372 if test "$cross_compiling" = yes; then :
10373 lt_cv_dlopen_self=cross
10374 else
10375 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10376 lt_status=$lt_dlunknown
10377 cat > conftest.$ac_ext <<EOF
10378 #line 10378 "configure"
10379 #include "confdefs.h"
10380
10381 #if HAVE_DLFCN_H
10382 #include <dlfcn.h>
10383 #endif
10384
10385 #include <stdio.h>
10386
10387 #ifdef RTLD_GLOBAL
10388 # define LT_DLGLOBAL RTLD_GLOBAL
10389 #else
10390 # ifdef DL_GLOBAL
10391 # define LT_DLGLOBAL DL_GLOBAL
10392 # else
10393 # define LT_DLGLOBAL 0
10394 # endif
10395 #endif
10396
10397 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10398 find out it does not work in some platform. */
10399 #ifndef LT_DLLAZY_OR_NOW
10400 # ifdef RTLD_LAZY
10401 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10402 # else
10403 # ifdef DL_LAZY
10404 # define LT_DLLAZY_OR_NOW DL_LAZY
10405 # else
10406 # ifdef RTLD_NOW
10407 # define LT_DLLAZY_OR_NOW RTLD_NOW
10408 # else
10409 # ifdef DL_NOW
10410 # define LT_DLLAZY_OR_NOW DL_NOW
10411 # else
10412 # define LT_DLLAZY_OR_NOW 0
10413 # endif
10414 # endif
10415 # endif
10416 # endif
10417 #endif
10418
10419 #ifdef __cplusplus
10420 extern "C" void exit (int);
10421 #endif
10422
10423 void fnord() { int i=42;}
10424 int main ()
10425 {
10426 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10427 int status = $lt_dlunknown;
10428
10429 if (self)
10430 {
10431 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10432 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10433 /* dlclose (self); */
10434 }
10435 else
10436 puts (dlerror ());
10437
10438 exit (status);
10439 }
10440 EOF
10441 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10442 (eval $ac_link) 2>&5
10443 ac_status=$?
10444 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10445 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10446 (./conftest; exit; ) >&5 2>/dev/null
10447 lt_status=$?
10448 case x$lt_status in
10449 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10450 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10451 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
10452 esac
10453 else :
10454 # compilation failed
10455 lt_cv_dlopen_self=no
10456 fi
10457 fi
10458 rm -fr conftest*
10459
10460
10461 fi
10462 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10463 $as_echo "$lt_cv_dlopen_self" >&6; }
10464
10465 if test "x$lt_cv_dlopen_self" = xyes; then
10466 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
10467 { $as_echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10468 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
10469 if test "${lt_cv_dlopen_self_static+set}" = set; then
10470 $as_echo_n "(cached) " >&6
10471 else
10472 if test "$cross_compiling" = yes; then :
10473 lt_cv_dlopen_self_static=cross
10474 else
10475 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10476 lt_status=$lt_dlunknown
10477 cat > conftest.$ac_ext <<EOF
10478 #line 10478 "configure"
10479 #include "confdefs.h"
10480
10481 #if HAVE_DLFCN_H
10482 #include <dlfcn.h>
10483 #endif
10484
10485 #include <stdio.h>
10486
10487 #ifdef RTLD_GLOBAL
10488 # define LT_DLGLOBAL RTLD_GLOBAL
10489 #else
10490 # ifdef DL_GLOBAL
10491 # define LT_DLGLOBAL DL_GLOBAL
10492 # else
10493 # define LT_DLGLOBAL 0
10494 # endif
10495 #endif
10496
10497 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10498 find out it does not work in some platform. */
10499 #ifndef LT_DLLAZY_OR_NOW
10500 # ifdef RTLD_LAZY
10501 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10502 # else
10503 # ifdef DL_LAZY
10504 # define LT_DLLAZY_OR_NOW DL_LAZY
10505 # else
10506 # ifdef RTLD_NOW
10507 # define LT_DLLAZY_OR_NOW RTLD_NOW
10508 # else
10509 # ifdef DL_NOW
10510 # define LT_DLLAZY_OR_NOW DL_NOW
10511 # else
10512 # define LT_DLLAZY_OR_NOW 0
10513 # endif
10514 # endif
10515 # endif
10516 # endif
10517 #endif
10518
10519 #ifdef __cplusplus
10520 extern "C" void exit (int);
10521 #endif
10522
10523 void fnord() { int i=42;}
10524 int main ()
10525 {
10526 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10527 int status = $lt_dlunknown;
10528
10529 if (self)
10530 {
10531 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10532 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10533 /* dlclose (self); */
10534 }
10535 else
10536 puts (dlerror ());
10537
10538 exit (status);
10539 }
10540 EOF
10541 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10542 (eval $ac_link) 2>&5
10543 ac_status=$?
10544 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
10545 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10546 (./conftest; exit; ) >&5 2>/dev/null
10547 lt_status=$?
10548 case x$lt_status in
10549 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10550 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10551 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
10552 esac
10553 else :
10554 # compilation failed
10555 lt_cv_dlopen_self_static=no
10556 fi
10557 fi
10558 rm -fr conftest*
10559
10560
10561 fi
10562 { $as_echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10563 $as_echo "$lt_cv_dlopen_self_static" >&6; }
10564 fi
10565
10566 CPPFLAGS="$save_CPPFLAGS"
10567 LDFLAGS="$save_LDFLAGS"
10568 LIBS="$save_LIBS"
10569 ;;
10570 esac
10571
10572 case $lt_cv_dlopen_self in
10573 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10574 *) enable_dlopen_self=unknown ;;
10575 esac
10576
10577 case $lt_cv_dlopen_self_static in
10578 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10579 *) enable_dlopen_self_static=unknown ;;
10580 esac
10581 fi
10582
10583
10584 # Report which library types will actually be built
10585 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10586 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
10587 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
10588 $as_echo "$can_build_shared" >&6; }
10589
10590 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10591 $as_echo_n "checking whether to build shared libraries... " >&6; }
10592 test "$can_build_shared" = "no" && enable_shared=no
10593
10594 # On AIX, shared libraries and static libraries use the same namespace, and
10595 # are all built from PIC.
10596 case $host_os in
10597 aix3*)
10598 test "$enable_shared" = yes && enable_static=no
10599 if test -n "$RANLIB"; then
10600 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10601 postinstall_cmds='$RANLIB $lib'
10602 fi
10603 ;;
10604
10605 aix[4-9]*)
10606 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10607 test "$enable_shared" = yes && enable_static=no
10608 fi
10609 ;;
10610 esac
10611 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
10612 $as_echo "$enable_shared" >&6; }
10613
10614 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
10615 $as_echo_n "checking whether to build static libraries... " >&6; }
10616 # Make sure either enable_shared or enable_static is yes.
10617 test "$enable_shared" = yes || enable_static=yes
10618 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
10619 $as_echo "$enable_static" >&6; }
10620
10621 # The else clause should only fire when bootstrapping the
10622 # libtool distribution, otherwise you forgot to ship ltmain.sh
10623 # with your package, and you will get complaints that there are
10624 # no rules to generate ltmain.sh.
10625 if test -f "$ltmain"; then
10626 # See if we are running on zsh, and set the options which allow our commands through
10627 # without removal of \ escapes.
10628 if test -n "${ZSH_VERSION+set}" ; then
10629 setopt NO_GLOB_SUBST
10630 fi
10631 # Now quote all the things that may contain metacharacters while being
10632 # careful not to overquote the AC_SUBSTed values. We take copies of the
10633 # variables and quote the copies for generation of the libtool script.
10634 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
10635 SED SHELL STRIP \
10636 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
10637 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
10638 deplibs_check_method reload_flag reload_cmds need_locks \
10639 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
10640 lt_cv_sys_global_symbol_to_c_name_address \
10641 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
10642 old_postinstall_cmds old_postuninstall_cmds \
10643 compiler \
10644 CC \
10645 LD \
10646 lt_prog_compiler_wl \
10647 lt_prog_compiler_pic \
10648 lt_prog_compiler_static \
10649 lt_prog_compiler_no_builtin_flag \
10650 export_dynamic_flag_spec \
10651 thread_safe_flag_spec \
10652 whole_archive_flag_spec \
10653 enable_shared_with_static_runtimes \
10654 old_archive_cmds \
10655 old_archive_from_new_cmds \
10656 predep_objects \
10657 postdep_objects \
10658 predeps \
10659 postdeps \
10660 compiler_lib_search_path \
10661 compiler_lib_search_dirs \
10662 archive_cmds \
10663 archive_expsym_cmds \
10664 postinstall_cmds \
10665 postuninstall_cmds \
10666 old_archive_from_expsyms_cmds \
10667 allow_undefined_flag \
10668 no_undefined_flag \
10669 export_symbols_cmds \
10670 hardcode_libdir_flag_spec \
10671 hardcode_libdir_flag_spec_ld \
10672 hardcode_libdir_separator \
10673 hardcode_automatic \
10674 module_cmds \
10675 module_expsym_cmds \
10676 lt_cv_prog_compiler_c_o \
10677 fix_srcfile_path \
10678 exclude_expsyms \
10679 include_expsyms; do
10680
10681 case $var in
10682 old_archive_cmds | \
10683 old_archive_from_new_cmds | \
10684 archive_cmds | \
10685 archive_expsym_cmds | \
10686 module_cmds | \
10687 module_expsym_cmds | \
10688 old_archive_from_expsyms_cmds | \
10689 export_symbols_cmds | \
10690 extract_expsyms_cmds | reload_cmds | finish_cmds | \
10691 postinstall_cmds | postuninstall_cmds | \
10692 old_postinstall_cmds | old_postuninstall_cmds | \
10693 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10694 # Double-quote double-evaled strings.
10695 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10696 ;;
10697 *)
10698 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10699 ;;
10700 esac
10701 done
10702
10703 case $lt_echo in
10704 *'\$0 --fallback-echo"')
10705 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10706 ;;
10707 esac
10708
10709 cfgfile="${ofile}T"
10710 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10711 $rm -f "$cfgfile"
10712 { $as_echo "$as_me:$LINENO: creating $ofile" >&5
10713 $as_echo "$as_me: creating $ofile" >&6;}
10714
10715 cat <<__EOF__ >> "$cfgfile"
10716 #! $SHELL
10717
10718 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10719 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10720 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10721 #
10722 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10723 # Free Software Foundation, Inc.
10724 #
10725 # This file is part of GNU Libtool:
10726 # Originally by Gordon Matzigkeit <[email protected]>, 1996
10727 #
10728 # This program is free software; you can redistribute it and/or modify
10729 # it under the terms of the GNU General Public License as published by
10730 # the Free Software Foundation; either version 2 of the License, or
10731 # (at your option) any later version.
10732 #
10733 # This program is distributed in the hope that it will be useful, but
10734 # WITHOUT ANY WARRANTY; without even the implied warranty of
10735 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10736 # General Public License for more details.
10737 #
10738 # You should have received a copy of the GNU General Public License
10739 # along with this program; if not, write to the Free Software
10740 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10741 #
10742 # As a special exception to the GNU General Public License, if you
10743 # distribute this file as part of a program that contains a
10744 # configuration script generated by Autoconf, you may include it under
10745 # the same distribution terms that you use for the rest of that program.
10746
10747 # A sed program that does not truncate output.
10748 SED=$lt_SED
10749
10750 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10751 Xsed="$SED -e 1s/^X//"
10752
10753 # The HP-UX ksh and POSIX shell print the target directory to stdout
10754 # if CDPATH is set.
10755 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10756
10757 # The names of the tagged configurations supported by this script.
10758 available_tags=
10759
10760 # ### BEGIN LIBTOOL CONFIG
10761
10762 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10763
10764 # Shell to use when invoking shell scripts.
10765 SHELL=$lt_SHELL
10766
10767 # Whether or not to build shared libraries.
10768 build_libtool_libs=$enable_shared
10769
10770 # Whether or not to build static libraries.
10771 build_old_libs=$enable_static
10772
10773 # Whether or not to add -lc for building shared libraries.
10774 build_libtool_need_lc=$archive_cmds_need_lc
10775
10776 # Whether or not to disallow shared libs when runtime libs are static
10777 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10778
10779 # Whether or not to optimize for fast installation.
10780 fast_install=$enable_fast_install
10781
10782 # The host system.
10783 host_alias=$host_alias
10784 host=$host
10785 host_os=$host_os
10786
10787 # The build system.
10788 build_alias=$build_alias
10789 build=$build
10790 build_os=$build_os
10791
10792 # An echo program that does not interpret backslashes.
10793 echo=$lt_echo
10794
10795 # The archiver.
10796 AR=$lt_AR
10797 AR_FLAGS=$lt_AR_FLAGS
10798
10799 # A C compiler.
10800 LTCC=$lt_LTCC
10801
10802 # LTCC compiler flags.
10803 LTCFLAGS=$lt_LTCFLAGS
10804
10805 # A language-specific compiler.
10806 CC=$lt_compiler
10807
10808 # Is the compiler the GNU C compiler?
10809 with_gcc=$GCC
10810
10811 # An ERE matcher.
10812 EGREP=$lt_EGREP
10813
10814 # The linker used to build libraries.
10815 LD=$lt_LD
10816
10817 # Whether we need hard or soft links.
10818 LN_S=$lt_LN_S
10819
10820 # A BSD-compatible nm program.
10821 NM=$lt_NM
10822
10823 # A symbol stripping program
10824 STRIP=$lt_STRIP
10825
10826 # Used to examine libraries when file_magic_cmd begins "file"
10827 MAGIC_CMD=$MAGIC_CMD
10828
10829 # Used on cygwin: DLL creation program.
10830 DLLTOOL="$DLLTOOL"
10831
10832 # Used on cygwin: object dumper.
10833 OBJDUMP="$OBJDUMP"
10834
10835 # Used on cygwin: assembler.
10836 AS="$AS"
10837
10838 # The name of the directory that contains temporary libtool files.
10839 objdir=$objdir
10840
10841 # How to create reloadable object files.
10842 reload_flag=$lt_reload_flag
10843 reload_cmds=$lt_reload_cmds
10844
10845 # How to pass a linker flag through the compiler.
10846 wl=$lt_lt_prog_compiler_wl
10847
10848 # Object file suffix (normally "o").
10849 objext="$ac_objext"
10850
10851 # Old archive suffix (normally "a").
10852 libext="$libext"
10853
10854 # Shared library suffix (normally ".so").
10855 shrext_cmds='$shrext_cmds'
10856
10857 # Executable file suffix (normally "").
10858 exeext="$exeext"
10859
10860 # Additional compiler flags for building library objects.
10861 pic_flag=$lt_lt_prog_compiler_pic
10862 pic_mode=$pic_mode
10863
10864 # What is the maximum length of a command?
10865 max_cmd_len=$lt_cv_sys_max_cmd_len
10866
10867 # Does compiler simultaneously support -c and -o options?
10868 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10869
10870 # Must we lock files when doing compilation?
10871 need_locks=$lt_need_locks
10872
10873 # Do we need the lib prefix for modules?
10874 need_lib_prefix=$need_lib_prefix
10875
10876 # Do we need a version for libraries?
10877 need_version=$need_version
10878
10879 # Whether dlopen is supported.
10880 dlopen_support=$enable_dlopen
10881
10882 # Whether dlopen of programs is supported.
10883 dlopen_self=$enable_dlopen_self
10884
10885 # Whether dlopen of statically linked programs is supported.
10886 dlopen_self_static=$enable_dlopen_self_static
10887
10888 # Compiler flag to prevent dynamic linking.
10889 link_static_flag=$lt_lt_prog_compiler_static
10890
10891 # Compiler flag to turn off builtin functions.
10892 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10893
10894 # Compiler flag to allow reflexive dlopens.
10895 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10896
10897 # Compiler flag to generate shared objects directly from archives.
10898 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10899
10900 # Compiler flag to generate thread-safe objects.
10901 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10902
10903 # Library versioning type.
10904 version_type=$version_type
10905
10906 # Format of library name prefix.
10907 libname_spec=$lt_libname_spec
10908
10909 # List of archive names. First name is the real one, the rest are links.
10910 # The last name is the one that the linker finds with -lNAME.
10911 library_names_spec=$lt_library_names_spec
10912
10913 # The coded name of the library, if different from the real name.
10914 soname_spec=$lt_soname_spec
10915
10916 # Commands used to build and install an old-style archive.
10917 RANLIB=$lt_RANLIB
10918 old_archive_cmds=$lt_old_archive_cmds
10919 old_postinstall_cmds=$lt_old_postinstall_cmds
10920 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10921
10922 # Create an old-style archive from a shared archive.
10923 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10924
10925 # Create a temporary old-style archive to link instead of a shared archive.
10926 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10927
10928 # Commands used to build and install a shared archive.
10929 archive_cmds=$lt_archive_cmds
10930 archive_expsym_cmds=$lt_archive_expsym_cmds
10931 postinstall_cmds=$lt_postinstall_cmds
10932 postuninstall_cmds=$lt_postuninstall_cmds
10933
10934 # Commands used to build a loadable module (assumed same as above if empty)
10935 module_cmds=$lt_module_cmds
10936 module_expsym_cmds=$lt_module_expsym_cmds
10937
10938 # Commands to strip libraries.
10939 old_striplib=$lt_old_striplib
10940 striplib=$lt_striplib
10941
10942 # Dependencies to place before the objects being linked to create a
10943 # shared library.
10944 predep_objects=$lt_predep_objects
10945
10946 # Dependencies to place after the objects being linked to create a
10947 # shared library.
10948 postdep_objects=$lt_postdep_objects
10949
10950 # Dependencies to place before the objects being linked to create a
10951 # shared library.
10952 predeps=$lt_predeps
10953
10954 # Dependencies to place after the objects being linked to create a
10955 # shared library.
10956 postdeps=$lt_postdeps
10957
10958 # The directories searched by this compiler when creating a shared
10959 # library
10960 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10961
10962 # The library search path used internally by the compiler when linking
10963 # a shared library.
10964 compiler_lib_search_path=$lt_compiler_lib_search_path
10965
10966 # Method to check whether dependent libraries are shared objects.
10967 deplibs_check_method=$lt_deplibs_check_method
10968
10969 # Command to use when deplibs_check_method == file_magic.
10970 file_magic_cmd=$lt_file_magic_cmd
10971
10972 # Flag that allows shared libraries with undefined symbols to be built.
10973 allow_undefined_flag=$lt_allow_undefined_flag
10974
10975 # Flag that forces no undefined symbols.
10976 no_undefined_flag=$lt_no_undefined_flag
10977
10978 # Commands used to finish a libtool library installation in a directory.
10979 finish_cmds=$lt_finish_cmds
10980
10981 # Same as above, but a single script fragment to be evaled but not shown.
10982 finish_eval=$lt_finish_eval
10983
10984 # Take the output of nm and produce a listing of raw symbols and C names.
10985 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10986
10987 # Transform the output of nm in a proper C declaration
10988 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10989
10990 # Transform the output of nm in a C name address pair
10991 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10992
10993 # This is the shared library runtime path variable.
10994 runpath_var=$runpath_var
10995
10996 # This is the shared library path variable.
10997 shlibpath_var=$shlibpath_var
10998
10999 # Is shlibpath searched before the hard-coded library search path?
11000 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11001
11002 # How to hardcode a shared library path into an executable.
11003 hardcode_action=$hardcode_action
11004
11005 # Whether we should hardcode library paths into libraries.
11006 hardcode_into_libs=$hardcode_into_libs
11007
11008 # Flag to hardcode \$libdir into a binary during linking.
11009 # This must work even if \$libdir does not exist.
11010 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11011
11012 # If ld is used when linking, flag to hardcode \$libdir into
11013 # a binary during linking. This must work even if \$libdir does
11014 # not exist.
11015 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11016
11017 # Whether we need a single -rpath flag with a separated argument.
11018 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11019
11020 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11021 # resulting binary.
11022 hardcode_direct=$hardcode_direct
11023
11024 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11025 # resulting binary.
11026 hardcode_minus_L=$hardcode_minus_L
11027
11028 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11029 # the resulting binary.
11030 hardcode_shlibpath_var=$hardcode_shlibpath_var
11031
11032 # Set to yes if building a shared library automatically hardcodes DIR into the library
11033 # and all subsequent libraries and executables linked against it.
11034 hardcode_automatic=$hardcode_automatic
11035
11036 # Variables whose values should be saved in libtool wrapper scripts and
11037 # restored at relink time.
11038 variables_saved_for_relink="$variables_saved_for_relink"
11039
11040 # Whether libtool must link a program against all its dependency libraries.
11041 link_all_deplibs=$link_all_deplibs
11042
11043 # Compile-time system search path for libraries
11044 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11045
11046 # Run-time system search path for libraries
11047 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11048
11049 # Fix the shell variable \$srcfile for the compiler.
11050 fix_srcfile_path=$lt_fix_srcfile_path
11051
11052 # Set to yes if exported symbols are required.
11053 always_export_symbols=$always_export_symbols
11054
11055 # The commands to list exported symbols.
11056 export_symbols_cmds=$lt_export_symbols_cmds
11057
11058 # The commands to extract the exported symbol list from a shared archive.
11059 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11060
11061 # Symbols that should not be listed in the preloaded symbols.
11062 exclude_expsyms=$lt_exclude_expsyms
11063
11064 # Symbols that must always be exported.
11065 include_expsyms=$lt_include_expsyms
11066
11067 # ### END LIBTOOL CONFIG
11068
11069 __EOF__
11070
11071
11072 case $host_os in
11073 aix3*)
11074 cat <<\EOF >> "$cfgfile"
11075
11076 # AIX sometimes has problems with the GCC collect2 program. For some
11077 # reason, if we set the COLLECT_NAMES environment variable, the problems
11078 # vanish in a puff of smoke.
11079 if test "X${COLLECT_NAMES+set}" != Xset; then
11080 COLLECT_NAMES=
11081 export COLLECT_NAMES
11082 fi
11083 EOF
11084 ;;
11085 esac
11086
11087 # We use sed instead of cat because bash on DJGPP gets confused if
11088 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11089 # text mode, it properly converts lines to CR/LF. This bash problem
11090 # is reportedly fixed, but why not run on old versions too?
11091 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11092
11093 mv -f "$cfgfile" "$ofile" || \
11094 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11095 chmod +x "$ofile"
11096
11097 else
11098 # If there is no Makefile yet, we rely on a make rule to execute
11099 # `config.status --recheck' to rerun these tests and create the
11100 # libtool script then.
11101 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11102 if test -f "$ltmain_in"; then
11103 test -f Makefile && make "$ltmain"
11104 fi
11105 fi
11106
11107
11108 ac_ext=c
11109 ac_cpp='$CPP $CPPFLAGS'
11110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11113
11114 CC="$lt_save_CC"
11115
11116
11117 # Check whether --with-tags was given.
11118 if test "${with_tags+set}" = set; then
11119 withval=$with_tags; tagnames="$withval"
11120 fi
11121
11122
11123 if test -f "$ltmain" && test -n "$tagnames"; then
11124 if test ! -f "${ofile}"; then
11125 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11126 $as_echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11127 fi
11128
11129 if test -z "$LTCC"; then
11130 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11131 if test -z "$LTCC"; then
11132 { $as_echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11133 $as_echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11134 else
11135 { $as_echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11136 $as_echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11137 fi
11138 fi
11139 if test -z "$LTCFLAGS"; then
11140 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
11141 fi
11142
11143 # Extract list of available tagged configurations in $ofile.
11144 # Note that this assumes the entire list is on one line.
11145 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11146
11147 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11148 for tagname in $tagnames; do
11149 IFS="$lt_save_ifs"
11150 # Check whether tagname contains only valid characters
11151 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11152 "") ;;
11153 *) { { $as_echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11154 $as_echo "$as_me: error: invalid tag name: $tagname" >&2;}
11155 { (exit 1); exit 1; }; }
11156 ;;
11157 esac
11158
11159 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11160 then
11161 { { $as_echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11162 $as_echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11163 { (exit 1); exit 1; }; }
11164 fi
11165
11166 # Update the list of available tags.
11167 if test -n "$tagname"; then
11168 echo appending configuration tag \"$tagname\" to $ofile
11169
11170 case $tagname in
11171 CXX)
11172 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11173 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11174 (test "X$CXX" != "Xg++"))) ; then
11175 ac_ext=cpp
11176 ac_cpp='$CXXCPP $CPPFLAGS'
11177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11180
11181
11182
11183
11184 archive_cmds_need_lc_CXX=no
11185 allow_undefined_flag_CXX=
11186 always_export_symbols_CXX=no
11187 archive_expsym_cmds_CXX=
11188 export_dynamic_flag_spec_CXX=
11189 hardcode_direct_CXX=no
11190 hardcode_libdir_flag_spec_CXX=
11191 hardcode_libdir_flag_spec_ld_CXX=
11192 hardcode_libdir_separator_CXX=
11193 hardcode_minus_L_CXX=no
11194 hardcode_shlibpath_var_CXX=unsupported
11195 hardcode_automatic_CXX=no
11196 module_cmds_CXX=
11197 module_expsym_cmds_CXX=
11198 link_all_deplibs_CXX=unknown
11199 old_archive_cmds_CXX=$old_archive_cmds
11200 no_undefined_flag_CXX=
11201 whole_archive_flag_spec_CXX=
11202 enable_shared_with_static_runtimes_CXX=no
11203
11204 # Dependencies to place before and after the object being linked:
11205 predep_objects_CXX=
11206 postdep_objects_CXX=
11207 predeps_CXX=
11208 postdeps_CXX=
11209 compiler_lib_search_path_CXX=
11210 compiler_lib_search_dirs_CXX=
11211
11212 # Source file extension for C++ test sources.
11213 ac_ext=cpp
11214
11215 # Object file extension for compiled C++ test sources.
11216 objext=o
11217 objext_CXX=$objext
11218
11219 # Code to be used in simple compile tests
11220 lt_simple_compile_test_code="int some_variable = 0;"
11221
11222 # Code to be used in simple link tests
11223 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11224
11225 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11226
11227 # If no C compiler was specified, use CC.
11228 LTCC=${LTCC-"$CC"}
11229
11230 # If no C compiler flags were specified, use CFLAGS.
11231 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11232
11233 # Allow CC to be a program name with arguments.
11234 compiler=$CC
11235
11236
11237 # save warnings/boilerplate of simple test code
11238 ac_outfile=conftest.$ac_objext
11239 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11240 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11241 _lt_compiler_boilerplate=`cat conftest.err`
11242 $rm conftest*
11243
11244 ac_outfile=conftest.$ac_objext
11245 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11246 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11247 _lt_linker_boilerplate=`cat conftest.err`
11248 $rm -r conftest*
11249
11250
11251 # Allow CC to be a program name with arguments.
11252 lt_save_CC=$CC
11253 lt_save_LD=$LD
11254 lt_save_GCC=$GCC
11255 GCC=$GXX
11256 lt_save_with_gnu_ld=$with_gnu_ld
11257 lt_save_path_LD=$lt_cv_path_LD
11258 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11259 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11260 else
11261 $as_unset lt_cv_prog_gnu_ld
11262 fi
11263 if test -n "${lt_cv_path_LDCXX+set}"; then
11264 lt_cv_path_LD=$lt_cv_path_LDCXX
11265 else
11266 $as_unset lt_cv_path_LD
11267 fi
11268 test -z "${LDCXX+set}" || LD=$LDCXX
11269 CC=${CXX-"c++"}
11270 compiler=$CC
11271 compiler_CXX=$CC
11272 for cc_temp in $compiler""; do
11273 case $cc_temp in
11274 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11275 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11276 \-*) ;;
11277 *) break;;
11278 esac
11279 done
11280 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11281
11282
11283 # We don't want -fno-exception wen compiling C++ code, so set the
11284 # no_builtin_flag separately
11285 if test "$GXX" = yes; then
11286 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11287 else
11288 lt_prog_compiler_no_builtin_flag_CXX=
11289 fi
11290
11291 if test "$GXX" = yes; then
11292 # Set up default GNU C++ configuration
11293
11294
11295 # Check whether --with-gnu-ld was given.
11296 if test "${with_gnu_ld+set}" = set; then
11297 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
11298 else
11299 with_gnu_ld=no
11300 fi
11301
11302 ac_prog=ld
11303 if test "$GCC" = yes; then
11304 # Check if gcc -print-prog-name=ld gives a path.
11305 { $as_echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11306 $as_echo_n "checking for ld used by $CC... " >&6; }
11307 case $host in
11308 *-*-mingw*)
11309 # gcc leaves a trailing carriage return which upsets mingw
11310 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11311 *)
11312 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11313 esac
11314 case $ac_prog in
11315 # Accept absolute paths.
11316 [\\/]* | ?:[\\/]*)
11317 re_direlt='/[^/][^/]*/\.\./'
11318 # Canonicalize the pathname of ld
11319 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11320 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11321 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11322 done
11323 test -z "$LD" && LD="$ac_prog"
11324 ;;
11325 "")
11326 # If it fails, then pretend we aren't using GCC.
11327 ac_prog=ld
11328 ;;
11329 *)
11330 # If it is relative, then search for the first ld in PATH.
11331 with_gnu_ld=unknown
11332 ;;
11333 esac
11334 elif test "$with_gnu_ld" = yes; then
11335 { $as_echo "$as_me:$LINENO: checking for GNU ld" >&5
11336 $as_echo_n "checking for GNU ld... " >&6; }
11337 else
11338 { $as_echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11339 $as_echo_n "checking for non-GNU ld... " >&6; }
11340 fi
11341 if test "${lt_cv_path_LD+set}" = set; then
11342 $as_echo_n "(cached) " >&6
11343 else
11344 if test -z "$LD"; then
11345 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11346 for ac_dir in $PATH; do
11347 IFS="$lt_save_ifs"
11348 test -z "$ac_dir" && ac_dir=.
11349 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11350 lt_cv_path_LD="$ac_dir/$ac_prog"
11351 # Check to see if the program is GNU ld. I'd rather use --version,
11352 # but apparently some variants of GNU ld only accept -v.
11353 # Break only if it was the GNU/non-GNU ld that we prefer.
11354 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11355 *GNU* | *'with BFD'*)
11356 test "$with_gnu_ld" != no && break
11357 ;;
11358 *)
11359 test "$with_gnu_ld" != yes && break
11360 ;;
11361 esac
11362 fi
11363 done
11364 IFS="$lt_save_ifs"
11365 else
11366 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11367 fi
11368 fi
11369
11370 LD="$lt_cv_path_LD"
11371 if test -n "$LD"; then
11372 { $as_echo "$as_me:$LINENO: result: $LD" >&5
11373 $as_echo "$LD" >&6; }
11374 else
11375 { $as_echo "$as_me:$LINENO: result: no" >&5
11376 $as_echo "no" >&6; }
11377 fi
11378 test -z "$LD" && { { $as_echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11379 $as_echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11380 { (exit 1); exit 1; }; }
11381 { $as_echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11382 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
11383 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11384 $as_echo_n "(cached) " >&6
11385 else
11386 # I'd rather use --version here, but apparently some GNU lds only accept -v.
11387 case `$LD -v 2>&1 </dev/null` in
11388 *GNU* | *'with BFD'*)
11389 lt_cv_prog_gnu_ld=yes
11390 ;;
11391 *)
11392 lt_cv_prog_gnu_ld=no
11393 ;;
11394 esac
11395 fi
11396 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11397 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
11398 with_gnu_ld=$lt_cv_prog_gnu_ld
11399
11400
11401
11402 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11403 # archiving commands below assume that GNU ld is being used.
11404 if test "$with_gnu_ld" = yes; then
11405 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11406 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'
11407
11408 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11409 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11410
11411 # If archive_cmds runs LD, not CC, wlarc should be empty
11412 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11413 # investigate it a little bit more. (MM)
11414 wlarc='${wl}'
11415
11416 # ancient GNU ld didn't support --whole-archive et. al.
11417 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11418 grep 'no-whole-archive' > /dev/null; then
11419 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11420 else
11421 whole_archive_flag_spec_CXX=
11422 fi
11423 else
11424 with_gnu_ld=no
11425 wlarc=
11426
11427 # A generic and very simple default shared library creation
11428 # command for GNU C++ for the case where it uses the native
11429 # linker, instead of GNU ld. If possible, this setting should
11430 # overridden to take advantage of the native linker features on
11431 # the platform it is being used on.
11432 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11433 fi
11434
11435 # Commands to make compiler produce verbose output that lists
11436 # what "hidden" libraries, object files and flags are used when
11437 # linking a shared library.
11438 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11439
11440 else
11441 GXX=no
11442 with_gnu_ld=no
11443 wlarc=
11444 fi
11445
11446 # PORTME: fill in a description of your system's C++ link characteristics
11447 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11448 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11449 ld_shlibs_CXX=yes
11450 case $host_os in
11451 aix3*)
11452 # FIXME: insert proper C++ library support
11453 ld_shlibs_CXX=no
11454 ;;
11455 aix[4-9]*)
11456 if test "$host_cpu" = ia64; then
11457 # On IA64, the linker does run time linking by default, so we don't
11458 # have to do anything special.
11459 aix_use_runtimelinking=no
11460 exp_sym_flag='-Bexport'
11461 no_entry_flag=""
11462 else
11463 aix_use_runtimelinking=no
11464
11465 # Test if we are trying to use run time linking or normal
11466 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11467 # need to do runtime linking.
11468 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
11469 for ld_flag in $LDFLAGS; do
11470 case $ld_flag in
11471 *-brtl*)
11472 aix_use_runtimelinking=yes
11473 break
11474 ;;
11475 esac
11476 done
11477 ;;
11478 esac
11479
11480 exp_sym_flag='-bexport'
11481 no_entry_flag='-bnoentry'
11482 fi
11483
11484 # When large executables or shared objects are built, AIX ld can
11485 # have problems creating the table of contents. If linking a library
11486 # or program results in "error TOC overflow" add -mminimal-toc to
11487 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11488 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11489
11490 archive_cmds_CXX=''
11491 hardcode_direct_CXX=yes
11492 hardcode_libdir_separator_CXX=':'
11493 link_all_deplibs_CXX=yes
11494
11495 if test "$GXX" = yes; then
11496 case $host_os in aix4.[012]|aix4.[012].*)
11497 # We only want to do this on AIX 4.2 and lower, the check
11498 # below for broken collect2 doesn't work under 4.3+
11499 collect2name=`${CC} -print-prog-name=collect2`
11500 if test -f "$collect2name" && \
11501 strings "$collect2name" | grep resolve_lib_name >/dev/null
11502 then
11503 # We have reworked collect2
11504 :
11505 else
11506 # We have old collect2
11507 hardcode_direct_CXX=unsupported
11508 # It fails to find uninstalled libraries when the uninstalled
11509 # path is not listed in the libpath. Setting hardcode_minus_L
11510 # to unsupported forces relinking
11511 hardcode_minus_L_CXX=yes
11512 hardcode_libdir_flag_spec_CXX='-L$libdir'
11513 hardcode_libdir_separator_CXX=
11514 fi
11515 ;;
11516 esac
11517 shared_flag='-shared'
11518 if test "$aix_use_runtimelinking" = yes; then
11519 shared_flag="$shared_flag "'${wl}-G'
11520 fi
11521 else
11522 # not using gcc
11523 if test "$host_cpu" = ia64; then
11524 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11525 # chokes on -Wl,-G. The following line is correct:
11526 shared_flag='-G'
11527 else
11528 if test "$aix_use_runtimelinking" = yes; then
11529 shared_flag='${wl}-G'
11530 else
11531 shared_flag='${wl}-bM:SRE'
11532 fi
11533 fi
11534 fi
11535
11536 # It seems that -bexpall does not export symbols beginning with
11537 # underscore (_), so it is better to generate a list of symbols to export.
11538 always_export_symbols_CXX=yes
11539 if test "$aix_use_runtimelinking" = yes; then
11540 # Warning - without using the other runtime loading flags (-brtl),
11541 # -berok will link without error, but may produce a broken library.
11542 allow_undefined_flag_CXX='-berok'
11543 # Determine the default libpath from the value encoded in an empty executable.
11544 cat >conftest.$ac_ext <<_ACEOF
11545 /* confdefs.h. */
11546 _ACEOF
11547 cat confdefs.h >>conftest.$ac_ext
11548 cat >>conftest.$ac_ext <<_ACEOF
11549 /* end confdefs.h. */
11550
11551 int
11552 main ()
11553 {
11554
11555 ;
11556 return 0;
11557 }
11558 _ACEOF
11559 rm -f conftest.$ac_objext conftest$ac_exeext
11560 if { (ac_try="$ac_link"
11561 case "(($ac_try" in
11562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11563 *) ac_try_echo=$ac_try;;
11564 esac
11565 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11566 $as_echo "$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 $as_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 test "$cross_compiling" = yes ||
11578 $as_test_x conftest$ac_exeext
11579 }; then
11580
11581 lt_aix_libpath_sed='
11582 /Import File Strings/,/^$/ {
11583 /^0/ {
11584 s/^0 *\(.*\)$/\1/
11585 p
11586 }
11587 }'
11588 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11589 # Check for a 64-bit object if we didn't find anything.
11590 if test -z "$aix_libpath"; then
11591 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11592 fi
11593 else
11594 $as_echo "$as_me: failed program was:" >&5
11595 sed 's/^/| /' conftest.$ac_ext >&5
11596
11597
11598 fi
11599
11600 rm -rf conftest.dSYM
11601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11602 conftest$ac_exeext conftest.$ac_ext
11603 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11604
11605 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11606
11607 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"
11608 else
11609 if test "$host_cpu" = ia64; then
11610 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11611 allow_undefined_flag_CXX="-z nodefs"
11612 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"
11613 else
11614 # Determine the default libpath from the value encoded in an empty executable.
11615 cat >conftest.$ac_ext <<_ACEOF
11616 /* confdefs.h. */
11617 _ACEOF
11618 cat confdefs.h >>conftest.$ac_ext
11619 cat >>conftest.$ac_ext <<_ACEOF
11620 /* end confdefs.h. */
11621
11622 int
11623 main ()
11624 {
11625
11626 ;
11627 return 0;
11628 }
11629 _ACEOF
11630 rm -f conftest.$ac_objext conftest$ac_exeext
11631 if { (ac_try="$ac_link"
11632 case "(($ac_try" in
11633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11634 *) ac_try_echo=$ac_try;;
11635 esac
11636 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
11637 $as_echo "$ac_try_echo") >&5
11638 (eval "$ac_link") 2>conftest.er1
11639 ac_status=$?
11640 grep -v '^ *+' conftest.er1 >conftest.err
11641 rm -f conftest.er1
11642 cat conftest.err >&5
11643 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
11644 (exit $ac_status); } && {
11645 test -z "$ac_cxx_werror_flag" ||
11646 test ! -s conftest.err
11647 } && test -s conftest$ac_exeext && {
11648 test "$cross_compiling" = yes ||
11649 $as_test_x conftest$ac_exeext
11650 }; then
11651
11652 lt_aix_libpath_sed='
11653 /Import File Strings/,/^$/ {
11654 /^0/ {
11655 s/^0 *\(.*\)$/\1/
11656 p
11657 }
11658 }'
11659 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11660 # Check for a 64-bit object if we didn't find anything.
11661 if test -z "$aix_libpath"; then
11662 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
11663 fi
11664 else
11665 $as_echo "$as_me: failed program was:" >&5
11666 sed 's/^/| /' conftest.$ac_ext >&5
11667
11668
11669 fi
11670
11671 rm -rf conftest.dSYM
11672 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11673 conftest$ac_exeext conftest.$ac_ext
11674 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11675
11676 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11677 # Warning - without using the other run time loading flags,
11678 # -berok will link without error, but may produce a broken library.
11679 no_undefined_flag_CXX=' ${wl}-bernotok'
11680 allow_undefined_flag_CXX=' ${wl}-berok'
11681 # Exported symbols can be pulled into shared objects from archives
11682 whole_archive_flag_spec_CXX='$convenience'
11683 archive_cmds_need_lc_CXX=yes
11684 # This is similar to how AIX traditionally builds its shared libraries.
11685 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'
11686 fi
11687 fi
11688 ;;
11689
11690 beos*)
11691 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
11692 allow_undefined_flag_CXX=unsupported
11693 # Joseph Beckenbach <[email protected]> says some releases of gcc
11694 # support --undefined. This deserves some investigation. FIXME
11695 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11696 else
11697 ld_shlibs_CXX=no
11698 fi
11699 ;;
11700
11701 chorus*)
11702 case $cc_basename in
11703 *)
11704 # FIXME: insert proper C++ library support
11705 ld_shlibs_CXX=no
11706 ;;
11707 esac
11708 ;;
11709
11710 cygwin* | mingw* | pw32*)
11711 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11712 # as there is no search path for DLLs.
11713 hardcode_libdir_flag_spec_CXX='-L$libdir'
11714 allow_undefined_flag_CXX=unsupported
11715 always_export_symbols_CXX=no
11716 enable_shared_with_static_runtimes_CXX=yes
11717
11718 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11719 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'
11720 # If the export-symbols file already is a .def file (1st line
11721 # is EXPORTS), use it as is; otherwise, prepend...
11722 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11723 cp $export_symbols $output_objdir/$soname.def;
11724 else
11725 echo EXPORTS > $output_objdir/$soname.def;
11726 cat $export_symbols >> $output_objdir/$soname.def;
11727 fi~
11728 $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'
11729 else
11730 ld_shlibs_CXX=no
11731 fi
11732 ;;
11733 darwin* | rhapsody*)
11734 archive_cmds_need_lc_CXX=no
11735 hardcode_direct_CXX=no
11736 hardcode_automatic_CXX=yes
11737 hardcode_shlibpath_var_CXX=unsupported
11738 whole_archive_flag_spec_CXX=''
11739 link_all_deplibs_CXX=yes
11740 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11741 if test "$GXX" = yes ; then
11742 output_verbose_link_cmd='echo'
11743 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}"
11744 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11745 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}"
11746 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}"
11747 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11748 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}"
11749 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}"
11750 fi
11751 else
11752 case $cc_basename in
11753 xlc*)
11754 output_verbose_link_cmd='echo'
11755 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'
11756 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11757 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11758 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}'
11759 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}'
11760 ;;
11761 *)
11762 ld_shlibs_CXX=no
11763 ;;
11764 esac
11765 fi
11766 ;;
11767
11768 dgux*)
11769 case $cc_basename in
11770 ec++*)
11771 # FIXME: insert proper C++ library support
11772 ld_shlibs_CXX=no
11773 ;;
11774 ghcx*)
11775 # Green Hills C++ Compiler
11776 # FIXME: insert proper C++ library support
11777 ld_shlibs_CXX=no
11778 ;;
11779 *)
11780 # FIXME: insert proper C++ library support
11781 ld_shlibs_CXX=no
11782 ;;
11783 esac
11784 ;;
11785 freebsd[12]*)
11786 # C++ shared libraries reported to be fairly broken before switch to ELF
11787 ld_shlibs_CXX=no
11788 ;;
11789 freebsd-elf*)
11790 archive_cmds_need_lc_CXX=no
11791 ;;
11792 freebsd* | dragonfly*)
11793 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11794 # conventions
11795 ld_shlibs_CXX=yes
11796 ;;
11797 gnu*)
11798 ;;
11799 hpux9*)
11800 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11801 hardcode_libdir_separator_CXX=:
11802 export_dynamic_flag_spec_CXX='${wl}-E'
11803 hardcode_direct_CXX=yes
11804 hardcode_minus_L_CXX=yes # Not in the search PATH,
11805 # but as the default
11806 # location of the library.
11807
11808 case $cc_basename in
11809 CC*)
11810 # FIXME: insert proper C++ library support
11811 ld_shlibs_CXX=no
11812 ;;
11813 aCC*)
11814 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'
11815 # Commands to make compiler produce verbose output that lists
11816 # what "hidden" libraries, object files and flags are used when
11817 # linking a shared library.
11818 #
11819 # There doesn't appear to be a way to prevent this compiler from
11820 # explicitly linking system object files so we need to strip them
11821 # from the output so that they don't get included in the library
11822 # dependencies.
11823 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'
11824 ;;
11825 *)
11826 if test "$GXX" = yes; then
11827 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'
11828 else
11829 # FIXME: insert proper C++ library support
11830 ld_shlibs_CXX=no
11831 fi
11832 ;;
11833 esac
11834 ;;
11835 hpux10*|hpux11*)
11836 if test $with_gnu_ld = no; then
11837 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11838 hardcode_libdir_separator_CXX=:
11839
11840 case $host_cpu in
11841 hppa*64*|ia64*) ;;
11842 *)
11843 export_dynamic_flag_spec_CXX='${wl}-E'
11844 ;;
11845 esac
11846 fi
11847 case $host_cpu in
11848 hppa*64*|ia64*)
11849 hardcode_direct_CXX=no
11850 hardcode_shlibpath_var_CXX=no
11851 ;;
11852 *)
11853 hardcode_direct_CXX=yes
11854 hardcode_minus_L_CXX=yes # Not in the search PATH,
11855 # but as the default
11856 # location of the library.
11857 ;;
11858 esac
11859
11860 case $cc_basename in
11861 CC*)
11862 # FIXME: insert proper C++ library support
11863 ld_shlibs_CXX=no
11864 ;;
11865 aCC*)
11866 case $host_cpu in
11867 hppa*64*)
11868 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11869 ;;
11870 ia64*)
11871 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11872 ;;
11873 *)
11874 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11875 ;;
11876 esac
11877 # Commands to make compiler produce verbose output that lists
11878 # what "hidden" libraries, object files and flags are used when
11879 # linking a shared library.
11880 #
11881 # There doesn't appear to be a way to prevent this compiler from
11882 # explicitly linking system object files so we need to strip them
11883 # from the output so that they don't get included in the library
11884 # dependencies.
11885 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'
11886 ;;
11887 *)
11888 if test "$GXX" = yes; then
11889 if test $with_gnu_ld = no; then
11890 case $host_cpu in
11891 hppa*64*)
11892 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11893 ;;
11894 ia64*)
11895 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11896 ;;
11897 *)
11898 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'
11899 ;;
11900 esac
11901 fi
11902 else
11903 # FIXME: insert proper C++ library support
11904 ld_shlibs_CXX=no
11905 fi
11906 ;;
11907 esac
11908 ;;
11909 interix[3-9]*)
11910 hardcode_direct_CXX=no
11911 hardcode_shlibpath_var_CXX=no
11912 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11913 export_dynamic_flag_spec_CXX='${wl}-E'
11914 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11915 # Instead, shared libraries are loaded at an image base (0x10000000 by
11916 # default) and relocated if they conflict, which is a slow very memory
11917 # consuming and fragmenting process. To avoid this, we pick a random,
11918 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11919 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11920 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'
11921 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'
11922 ;;
11923 irix5* | irix6*)
11924 case $cc_basename in
11925 CC*)
11926 # SGI C++
11927 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'
11928
11929 # Archives containing C++ object files must be created using
11930 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11931 # necessary to make sure instantiated templates are included
11932 # in the archive.
11933 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11934 ;;
11935 *)
11936 if test "$GXX" = yes; then
11937 if test "$with_gnu_ld" = no; then
11938 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'
11939 else
11940 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'
11941 fi
11942 fi
11943 link_all_deplibs_CXX=yes
11944 ;;
11945 esac
11946 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11947 hardcode_libdir_separator_CXX=:
11948 ;;
11949 linux* | k*bsd*-gnu)
11950 case $cc_basename in
11951 KCC*)
11952 # Kuck and Associates, Inc. (KAI) C++ Compiler
11953
11954 # KCC will only create a shared library if the output file
11955 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11956 # to its proper name (with version) after linking.
11957 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'
11958 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'
11959 # Commands to make compiler produce verbose output that lists
11960 # what "hidden" libraries, object files and flags are used when
11961 # linking a shared library.
11962 #
11963 # There doesn't appear to be a way to prevent this compiler from
11964 # explicitly linking system object files so we need to strip them
11965 # from the output so that they don't get included in the library
11966 # dependencies.
11967 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'
11968
11969 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11970 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11971
11972 # Archives containing C++ object files must be created using
11973 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11974 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11975 ;;
11976 icpc*)
11977 # Intel C++
11978 with_gnu_ld=yes
11979 # version 8.0 and above of icpc choke on multiply defined symbols
11980 # if we add $predep_objects and $postdep_objects, however 7.1 and
11981 # earlier do not add the objects themselves.
11982 case `$CC -V 2>&1` in
11983 *"Version 7."*)
11984 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11985 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'
11986 ;;
11987 *) # Version 8.0 or newer
11988 tmp_idyn=
11989 case $host_cpu in
11990 ia64*) tmp_idyn=' -i_dynamic';;
11991 esac
11992 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11993 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'
11994 ;;
11995 esac
11996 archive_cmds_need_lc_CXX=no
11997 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11998 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11999 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12000 ;;
12001 pgCC* | pgcpp*)
12002 # Portland Group C++ compiler
12003 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12004 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'
12005
12006 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12007 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12008 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'
12009 ;;
12010 cxx*)
12011 # Compaq C++
12012 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12013 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'
12014
12015 runpath_var=LD_RUN_PATH
12016 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12017 hardcode_libdir_separator_CXX=:
12018
12019 # Commands to make compiler produce verbose output that lists
12020 # what "hidden" libraries, object files and flags are used when
12021 # linking a shared library.
12022 #
12023 # There doesn't appear to be a way to prevent this compiler from
12024 # explicitly linking system object files so we need to strip them
12025 # from the output so that they don't get included in the library
12026 # dependencies.
12027 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'
12028 ;;
12029 *)
12030 case `$CC -V 2>&1 | sed 5q` in
12031 *Sun\ C*)
12032 # Sun C++ 5.9
12033 no_undefined_flag_CXX=' -zdefs'
12034 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12035 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'
12036 hardcode_libdir_flag_spec_CXX='-R$libdir'
12037 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'
12038
12039 # Not sure whether something based on
12040 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12041 # would be better.
12042 output_verbose_link_cmd='echo'
12043
12044 # Archives containing C++ object files must be created using
12045 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12046 # necessary to make sure instantiated templates are included
12047 # in the archive.
12048 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12049 ;;
12050 esac
12051 ;;
12052 esac
12053 ;;
12054 lynxos*)
12055 # FIXME: insert proper C++ library support
12056 ld_shlibs_CXX=no
12057 ;;
12058 m88k*)
12059 # FIXME: insert proper C++ library support
12060 ld_shlibs_CXX=no
12061 ;;
12062 mvs*)
12063 case $cc_basename in
12064 cxx*)
12065 # FIXME: insert proper C++ library support
12066 ld_shlibs_CXX=no
12067 ;;
12068 *)
12069 # FIXME: insert proper C++ library support
12070 ld_shlibs_CXX=no
12071 ;;
12072 esac
12073 ;;
12074 netbsd*)
12075 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12076 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12077 wlarc=
12078 hardcode_libdir_flag_spec_CXX='-R$libdir'
12079 hardcode_direct_CXX=yes
12080 hardcode_shlibpath_var_CXX=no
12081 fi
12082 # Workaround some broken pre-1.5 toolchains
12083 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12084 ;;
12085 openbsd2*)
12086 # C++ shared libraries are fairly broken
12087 ld_shlibs_CXX=no
12088 ;;
12089 openbsd*)
12090 if test -f /usr/libexec/ld.so; then
12091 hardcode_direct_CXX=yes
12092 hardcode_shlibpath_var_CXX=no
12093 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12094 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12095 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12096 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12097 export_dynamic_flag_spec_CXX='${wl}-E'
12098 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12099 fi
12100 output_verbose_link_cmd='echo'
12101 else
12102 ld_shlibs_CXX=no
12103 fi
12104 ;;
12105 osf3*)
12106 case $cc_basename in
12107 KCC*)
12108 # Kuck and Associates, Inc. (KAI) C++ Compiler
12109
12110 # KCC will only create a shared library if the output file
12111 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12112 # to its proper name (with version) after linking.
12113 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'
12114
12115 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12116 hardcode_libdir_separator_CXX=:
12117
12118 # Archives containing C++ object files must be created using
12119 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12120 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12121
12122 ;;
12123 RCC*)
12124 # Rational C++ 2.4.1
12125 # FIXME: insert proper C++ library support
12126 ld_shlibs_CXX=no
12127 ;;
12128 cxx*)
12129 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12130 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'
12131
12132 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12133 hardcode_libdir_separator_CXX=:
12134
12135 # Commands to make compiler produce verbose output that lists
12136 # what "hidden" libraries, object files and flags are used when
12137 # linking a shared library.
12138 #
12139 # There doesn't appear to be a way to prevent this compiler from
12140 # explicitly linking system object files so we need to strip them
12141 # from the output so that they don't get included in the library
12142 # dependencies.
12143 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'
12144 ;;
12145 *)
12146 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12147 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12148 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'
12149
12150 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12151 hardcode_libdir_separator_CXX=:
12152
12153 # Commands to make compiler produce verbose output that lists
12154 # what "hidden" libraries, object files and flags are used when
12155 # linking a shared library.
12156 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12157
12158 else
12159 # FIXME: insert proper C++ library support
12160 ld_shlibs_CXX=no
12161 fi
12162 ;;
12163 esac
12164 ;;
12165 osf4* | osf5*)
12166 case $cc_basename in
12167 KCC*)
12168 # Kuck and Associates, Inc. (KAI) C++ Compiler
12169
12170 # KCC will only create a shared library if the output file
12171 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12172 # to its proper name (with version) after linking.
12173 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'
12174
12175 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12176 hardcode_libdir_separator_CXX=:
12177
12178 # Archives containing C++ object files must be created using
12179 # the KAI C++ compiler.
12180 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12181 ;;
12182 RCC*)
12183 # Rational C++ 2.4.1
12184 # FIXME: insert proper C++ library support
12185 ld_shlibs_CXX=no
12186 ;;
12187 cxx*)
12188 allow_undefined_flag_CXX=' -expect_unresolved \*'
12189 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'
12190 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12191 echo "-hidden">> $lib.exp~
12192 $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~
12193 $rm $lib.exp'
12194
12195 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12196 hardcode_libdir_separator_CXX=:
12197
12198 # Commands to make compiler produce verbose output that lists
12199 # what "hidden" libraries, object files and flags are used when
12200 # linking a shared library.
12201 #
12202 # There doesn't appear to be a way to prevent this compiler from
12203 # explicitly linking system object files so we need to strip them
12204 # from the output so that they don't get included in the library
12205 # dependencies.
12206 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'
12207 ;;
12208 *)
12209 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12210 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12211 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'
12212
12213 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12214 hardcode_libdir_separator_CXX=:
12215
12216 # Commands to make compiler produce verbose output that lists
12217 # what "hidden" libraries, object files and flags are used when
12218 # linking a shared library.
12219 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12220
12221 else
12222 # FIXME: insert proper C++ library support
12223 ld_shlibs_CXX=no
12224 fi
12225 ;;
12226 esac
12227 ;;
12228 psos*)
12229 # FIXME: insert proper C++ library support
12230 ld_shlibs_CXX=no
12231 ;;
12232 sunos4*)
12233 case $cc_basename in
12234 CC*)
12235 # Sun C++ 4.x
12236 # FIXME: insert proper C++ library support
12237 ld_shlibs_CXX=no
12238 ;;
12239 lcc*)
12240 # Lucid
12241 # FIXME: insert proper C++ library support
12242 ld_shlibs_CXX=no
12243 ;;
12244 *)
12245 # FIXME: insert proper C++ library support
12246 ld_shlibs_CXX=no
12247 ;;
12248 esac
12249 ;;
12250 solaris*)
12251 case $cc_basename in
12252 CC*)
12253 # Sun C++ 4.2, 5.x and Centerline C++
12254 archive_cmds_need_lc_CXX=yes
12255 no_undefined_flag_CXX=' -zdefs'
12256 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12257 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12258 $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'
12259
12260 hardcode_libdir_flag_spec_CXX='-R$libdir'
12261 hardcode_shlibpath_var_CXX=no
12262 case $host_os in
12263 solaris2.[0-5] | solaris2.[0-5].*) ;;
12264 *)
12265 # The compiler driver will combine and reorder linker options,
12266 # but understands `-z linker_flag'.
12267 # Supported since Solaris 2.6 (maybe 2.5.1?)
12268 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12269 ;;
12270 esac
12271 link_all_deplibs_CXX=yes
12272
12273 output_verbose_link_cmd='echo'
12274
12275 # Archives containing C++ object files must be created using
12276 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12277 # necessary to make sure instantiated templates are included
12278 # in the archive.
12279 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12280 ;;
12281 gcx*)
12282 # Green Hills C++ Compiler
12283 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12284
12285 # The C++ compiler must be used to create the archive.
12286 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12287 ;;
12288 *)
12289 # GNU C++ compiler with Solaris linker
12290 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12291 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12292 if $CC --version | grep -v '^2\.7' > /dev/null; then
12293 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12294 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12295 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12296
12297 # Commands to make compiler produce verbose output that lists
12298 # what "hidden" libraries, object files and flags are used when
12299 # linking a shared library.
12300 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12301 else
12302 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12303 # platform.
12304 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12305 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12306 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12307
12308 # Commands to make compiler produce verbose output that lists
12309 # what "hidden" libraries, object files and flags are used when
12310 # linking a shared library.
12311 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12312 fi
12313
12314 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12315 case $host_os in
12316 solaris2.[0-5] | solaris2.[0-5].*) ;;
12317 *)
12318 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12319 ;;
12320 esac
12321 fi
12322 ;;
12323 esac
12324 ;;
12325 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
12326 no_undefined_flag_CXX='${wl}-z,text'
12327 archive_cmds_need_lc_CXX=no
12328 hardcode_shlibpath_var_CXX=no
12329 runpath_var='LD_RUN_PATH'
12330
12331 case $cc_basename in
12332 CC*)
12333 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12334 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12335 ;;
12336 *)
12337 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12338 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
12339 ;;
12340 esac
12341 ;;
12342 sysv5* | sco3.2v5* | sco5v6*)
12343 # Note: We can NOT use -z defs as we might desire, because we do not
12344 # link with -lc, and that would cause any symbols used from libc to
12345 # always be unresolved, which means just about no library would
12346 # ever link correctly. If we're not using GNU ld we use -z text
12347 # though, which does catch some bad symbols but isn't as heavy-handed
12348 # as -z defs.
12349 # For security reasons, it is highly recommended that you always
12350 # use absolute paths for naming shared libraries, and exclude the
12351 # DT_RUNPATH tag from executables and libraries. But doing so
12352 # requires that you compile everything twice, which is a pain.
12353 # So that behaviour is only enabled if SCOABSPATH is set to a
12354 # non-empty value in the environment. Most likely only useful for
12355 # creating official distributions of packages.
12356 # This is a hack until libtool officially supports absolute path
12357 # names for shared libraries.
12358 no_undefined_flag_CXX='${wl}-z,text'
12359 allow_undefined_flag_CXX='${wl}-z,nodefs'
12360 archive_cmds_need_lc_CXX=no
12361 hardcode_shlibpath_var_CXX=no
12362 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
12363 hardcode_libdir_separator_CXX=':'
12364 link_all_deplibs_CXX=yes
12365 export_dynamic_flag_spec_CXX='${wl}-Bexport'
12366 runpath_var='LD_RUN_PATH'
12367
12368 case $cc_basename in
12369 CC*)
12370 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12371 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12372 ;;
12373 *)
12374 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12375 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
12376 ;;
12377 esac
12378 ;;
12379 tandem*)
12380 case $cc_basename in
12381 NCC*)
12382 # NonStop-UX NCC 3.20
12383 # FIXME: insert proper C++ library support
12384 ld_shlibs_CXX=no
12385 ;;
12386 *)
12387 # FIXME: insert proper C++ library support
12388 ld_shlibs_CXX=no
12389 ;;
12390 esac
12391 ;;
12392 vxworks*)
12393 # FIXME: insert proper C++ library support
12394 ld_shlibs_CXX=no
12395 ;;
12396 *)
12397 # FIXME: insert proper C++ library support
12398 ld_shlibs_CXX=no
12399 ;;
12400 esac
12401 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12402 $as_echo "$ld_shlibs_CXX" >&6; }
12403 test "$ld_shlibs_CXX" = no && can_build_shared=no
12404
12405 GCC_CXX="$GXX"
12406 LD_CXX="$LD"
12407
12408 cat > conftest.$ac_ext <<EOF
12409 class Foo
12410 {
12411 public:
12412 Foo (void) { a = 0; }
12413 private:
12414 int a;
12415 };
12416 EOF
12417
12418 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12419 (eval $ac_compile) 2>&5
12420 ac_status=$?
12421 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
12422 (exit $ac_status); }; then
12423 # Parse the compiler output and extract the necessary
12424 # objects, libraries and library flags.
12425
12426 # Sentinel used to keep track of whether or not we are before
12427 # the conftest object file.
12428 pre_test_object_deps_done=no
12429
12430 # The `*' in the case matches for architectures that use `case' in
12431 # $output_verbose_cmd can trigger glob expansion during the loop
12432 # eval without this substitution.
12433 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
12434
12435 for p in `eval $output_verbose_link_cmd`; do
12436 case $p in
12437
12438 -L* | -R* | -l*)
12439 # Some compilers place space between "-{L,R}" and the path.
12440 # Remove the space.
12441 if test $p = "-L" \
12442 || test $p = "-R"; then
12443 prev=$p
12444 continue
12445 else
12446 prev=
12447 fi
12448
12449 if test "$pre_test_object_deps_done" = no; then
12450 case $p in
12451 -L* | -R*)
12452 # Internal compiler library paths should come after those
12453 # provided the user. The postdeps already come after the
12454 # user supplied libs so there is no need to process them.
12455 if test -z "$compiler_lib_search_path_CXX"; then
12456 compiler_lib_search_path_CXX="${prev}${p}"
12457 else
12458 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12459 fi
12460 ;;
12461 # The "-l" case would never come before the object being
12462 # linked, so don't bother handling this case.
12463 esac
12464 else
12465 if test -z "$postdeps_CXX"; then
12466 postdeps_CXX="${prev}${p}"
12467 else
12468 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12469 fi
12470 fi
12471 ;;
12472
12473 *.$objext)
12474 # This assumes that the test object file only shows up
12475 # once in the compiler output.
12476 if test "$p" = "conftest.$objext"; then
12477 pre_test_object_deps_done=yes
12478 continue
12479 fi
12480
12481 if test "$pre_test_object_deps_done" = no; then
12482 if test -z "$predep_objects_CXX"; then
12483 predep_objects_CXX="$p"
12484 else
12485 predep_objects_CXX="$predep_objects_CXX $p"
12486 fi
12487 else
12488 if test -z "$postdep_objects_CXX"; then
12489 postdep_objects_CXX="$p"
12490 else
12491 postdep_objects_CXX="$postdep_objects_CXX $p"
12492 fi
12493 fi
12494 ;;
12495
12496 *) ;; # Ignore the rest.
12497
12498 esac
12499 done
12500
12501 # Clean up.
12502 rm -f a.out a.exe
12503 else
12504 echo "libtool.m4: error: problem compiling CXX test program"
12505 fi
12506
12507 $rm -f confest.$objext
12508
12509 compiler_lib_search_dirs_CXX=
12510 if test -n "$compiler_lib_search_path_CXX"; then
12511 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
12512 fi
12513
12514 # PORTME: override above test on systems where it is broken
12515 case $host_os in
12516 interix[3-9]*)
12517 # Interix 3.5 installs completely hosed .la files for C++, so rather than
12518 # hack all around it, let's just trust "g++" to DTRT.
12519 predep_objects_CXX=
12520 postdep_objects_CXX=
12521 postdeps_CXX=
12522 ;;
12523
12524 linux*)
12525 case `$CC -V 2>&1 | sed 5q` in
12526 *Sun\ C*)
12527 # Sun C++ 5.9
12528 #
12529 # The more standards-conforming stlport4 library is
12530 # incompatible with the Cstd library. Avoid specifying
12531 # it if it's in CXXFLAGS. Ignore libCrun as
12532 # -library=stlport4 depends on it.
12533 case " $CXX $CXXFLAGS " in
12534 *" -library=stlport4 "*)
12535 solaris_use_stlport4=yes
12536 ;;
12537 esac
12538 if test "$solaris_use_stlport4" != yes; then
12539 postdeps_CXX='-library=Cstd -library=Crun'
12540 fi
12541 ;;
12542 esac
12543 ;;
12544
12545 solaris*)
12546 case $cc_basename in
12547 CC*)
12548 # The more standards-conforming stlport4 library is
12549 # incompatible with the Cstd library. Avoid specifying
12550 # it if it's in CXXFLAGS. Ignore libCrun as
12551 # -library=stlport4 depends on it.
12552 case " $CXX $CXXFLAGS " in
12553 *" -library=stlport4 "*)
12554 solaris_use_stlport4=yes
12555 ;;
12556 esac
12557
12558 # Adding this requires a known-good setup of shared libraries for
12559 # Sun compiler versions before 5.6, else PIC objects from an old
12560 # archive will be linked into the output, leading to subtle bugs.
12561 if test "$solaris_use_stlport4" != yes; then
12562 postdeps_CXX='-library=Cstd -library=Crun'
12563 fi
12564 ;;
12565 esac
12566 ;;
12567 esac
12568
12569 case " $postdeps_CXX " in
12570 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12571 esac
12572
12573 lt_prog_compiler_wl_CXX=
12574 lt_prog_compiler_pic_CXX=
12575 lt_prog_compiler_static_CXX=
12576
12577 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12578 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
12579
12580 # C++ specific cases for pic, static, wl, etc.
12581 if test "$GXX" = yes; then
12582 lt_prog_compiler_wl_CXX='-Wl,'
12583 lt_prog_compiler_static_CXX='-static'
12584
12585 case $host_os in
12586 aix*)
12587 # All AIX code is PIC.
12588 if test "$host_cpu" = ia64; then
12589 # AIX 5 now supports IA64 processor
12590 lt_prog_compiler_static_CXX='-Bstatic'
12591 fi
12592 ;;
12593 amigaos*)
12594 # FIXME: we need at least 68020 code to build shared libraries, but
12595 # adding the `-m68020' flag to GCC prevents building anything better,
12596 # like `-m68040'.
12597 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12598 ;;
12599 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12600 # PIC is the default for these OSes.
12601 ;;
12602 mingw* | cygwin* | os2* | pw32*)
12603 # This hack is so that the source file can tell whether it is being
12604 # built for inclusion in a dll (and should export symbols for example).
12605 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12606 # (--disable-auto-import) libraries
12607 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12608 ;;
12609 darwin* | rhapsody*)
12610 # PIC is the default on this platform
12611 # Common symbols not allowed in MH_DYLIB files
12612 lt_prog_compiler_pic_CXX='-fno-common'
12613 ;;
12614 *djgpp*)
12615 # DJGPP does not support shared libraries at all
12616 lt_prog_compiler_pic_CXX=
12617 ;;
12618 interix[3-9]*)
12619 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12620 # Instead, we relocate shared libraries at runtime.
12621 ;;
12622 sysv4*MP*)
12623 if test -d /usr/nec; then
12624 lt_prog_compiler_pic_CXX=-Kconform_pic
12625 fi
12626 ;;
12627 hpux*)
12628 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12629 # not for PA HP-UX.
12630 case $host_cpu in
12631 hppa*64*|ia64*)
12632 ;;
12633 *)
12634 lt_prog_compiler_pic_CXX='-fPIC'
12635 ;;
12636 esac
12637 ;;
12638 *)
12639 lt_prog_compiler_pic_CXX='-fPIC'
12640 ;;
12641 esac
12642 else
12643 case $host_os in
12644 aix[4-9]*)
12645 # All AIX code is PIC.
12646 if test "$host_cpu" = ia64; then
12647 # AIX 5 now supports IA64 processor
12648 lt_prog_compiler_static_CXX='-Bstatic'
12649 else
12650 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12651 fi
12652 ;;
12653 chorus*)
12654 case $cc_basename in
12655 cxch68*)
12656 # Green Hills C++ Compiler
12657 # _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"
12658 ;;
12659 esac
12660 ;;
12661 darwin*)
12662 # PIC is the default on this platform
12663 # Common symbols not allowed in MH_DYLIB files
12664 case $cc_basename in
12665 xlc*)
12666 lt_prog_compiler_pic_CXX='-qnocommon'
12667 lt_prog_compiler_wl_CXX='-Wl,'
12668 ;;
12669 esac
12670 ;;
12671 dgux*)
12672 case $cc_basename in
12673 ec++*)
12674 lt_prog_compiler_pic_CXX='-KPIC'
12675 ;;
12676 ghcx*)
12677 # Green Hills C++ Compiler
12678 lt_prog_compiler_pic_CXX='-pic'
12679 ;;
12680 *)
12681 ;;
12682 esac
12683 ;;
12684 freebsd* | dragonfly*)
12685 # FreeBSD uses GNU C++
12686 ;;
12687 hpux9* | hpux10* | hpux11*)
12688 case $cc_basename in
12689 CC*)
12690 lt_prog_compiler_wl_CXX='-Wl,'
12691 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12692 if test "$host_cpu" != ia64; then
12693 lt_prog_compiler_pic_CXX='+Z'
12694 fi
12695 ;;
12696 aCC*)
12697 lt_prog_compiler_wl_CXX='-Wl,'
12698 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12699 case $host_cpu in
12700 hppa*64*|ia64*)
12701 # +Z the default
12702 ;;
12703 *)
12704 lt_prog_compiler_pic_CXX='+Z'
12705 ;;
12706 esac
12707 ;;
12708 *)
12709 ;;
12710 esac
12711 ;;
12712 interix*)
12713 # This is c89, which is MS Visual C++ (no shared libs)
12714 # Anyone wants to do a port?
12715 ;;
12716 irix5* | irix6* | nonstopux*)
12717 case $cc_basename in
12718 CC*)
12719 lt_prog_compiler_wl_CXX='-Wl,'
12720 lt_prog_compiler_static_CXX='-non_shared'
12721 # CC pic flag -KPIC is the default.
12722 ;;
12723 *)
12724 ;;
12725 esac
12726 ;;
12727 linux* | k*bsd*-gnu)
12728 case $cc_basename in
12729 KCC*)
12730 # KAI C++ Compiler
12731 lt_prog_compiler_wl_CXX='--backend -Wl,'
12732 lt_prog_compiler_pic_CXX='-fPIC'
12733 ;;
12734 icpc* | ecpc*)
12735 # Intel C++
12736 lt_prog_compiler_wl_CXX='-Wl,'
12737 lt_prog_compiler_pic_CXX='-KPIC'
12738 lt_prog_compiler_static_CXX='-static'
12739 ;;
12740 pgCC* | pgcpp*)
12741 # Portland Group C++ compiler.
12742 lt_prog_compiler_wl_CXX='-Wl,'
12743 lt_prog_compiler_pic_CXX='-fpic'
12744 lt_prog_compiler_static_CXX='-Bstatic'
12745 ;;
12746 cxx*)
12747 # Compaq C++
12748 # Make sure the PIC flag is empty. It appears that all Alpha
12749 # Linux and Compaq Tru64 Unix objects are PIC.
12750 lt_prog_compiler_pic_CXX=
12751 lt_prog_compiler_static_CXX='-non_shared'
12752 ;;
12753 *)
12754 case `$CC -V 2>&1 | sed 5q` in
12755 *Sun\ C*)
12756 # Sun C++ 5.9
12757 lt_prog_compiler_pic_CXX='-KPIC'
12758 lt_prog_compiler_static_CXX='-Bstatic'
12759 lt_prog_compiler_wl_CXX='-Qoption ld '
12760 ;;
12761 esac
12762 ;;
12763 esac
12764 ;;
12765 lynxos*)
12766 ;;
12767 m88k*)
12768 ;;
12769 mvs*)
12770 case $cc_basename in
12771 cxx*)
12772 lt_prog_compiler_pic_CXX='-W c,exportall'
12773 ;;
12774 *)
12775 ;;
12776 esac
12777 ;;
12778 netbsd*)
12779 ;;
12780 osf3* | osf4* | osf5*)
12781 case $cc_basename in
12782 KCC*)
12783 lt_prog_compiler_wl_CXX='--backend -Wl,'
12784 ;;
12785 RCC*)
12786 # Rational C++ 2.4.1
12787 lt_prog_compiler_pic_CXX='-pic'
12788 ;;
12789 cxx*)
12790 # Digital/Compaq C++
12791 lt_prog_compiler_wl_CXX='-Wl,'
12792 # Make sure the PIC flag is empty. It appears that all Alpha
12793 # Linux and Compaq Tru64 Unix objects are PIC.
12794 lt_prog_compiler_pic_CXX=
12795 lt_prog_compiler_static_CXX='-non_shared'
12796 ;;
12797 *)
12798 ;;
12799 esac
12800 ;;
12801 psos*)
12802 ;;
12803 solaris*)
12804 case $cc_basename in
12805 CC*)
12806 # Sun C++ 4.2, 5.x and Centerline C++
12807 lt_prog_compiler_pic_CXX='-KPIC'
12808 lt_prog_compiler_static_CXX='-Bstatic'
12809 lt_prog_compiler_wl_CXX='-Qoption ld '
12810 ;;
12811 gcx*)
12812 # Green Hills C++ Compiler
12813 lt_prog_compiler_pic_CXX='-PIC'
12814 ;;
12815 *)
12816 ;;
12817 esac
12818 ;;
12819 sunos4*)
12820 case $cc_basename in
12821 CC*)
12822 # Sun C++ 4.x
12823 lt_prog_compiler_pic_CXX='-pic'
12824 lt_prog_compiler_static_CXX='-Bstatic'
12825 ;;
12826 lcc*)
12827 # Lucid
12828 lt_prog_compiler_pic_CXX='-pic'
12829 ;;
12830 *)
12831 ;;
12832 esac
12833 ;;
12834 tandem*)
12835 case $cc_basename in
12836 NCC*)
12837 # NonStop-UX NCC 3.20
12838 lt_prog_compiler_pic_CXX='-KPIC'
12839 ;;
12840 *)
12841 ;;
12842 esac
12843 ;;
12844 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12845 case $cc_basename in
12846 CC*)
12847 lt_prog_compiler_wl_CXX='-Wl,'
12848 lt_prog_compiler_pic_CXX='-KPIC'
12849 lt_prog_compiler_static_CXX='-Bstatic'
12850 ;;
12851 esac
12852 ;;
12853 vxworks*)
12854 ;;
12855 *)
12856 lt_prog_compiler_can_build_shared_CXX=no
12857 ;;
12858 esac
12859 fi
12860
12861 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12862 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
12863
12864 #
12865 # Check to make sure the PIC flag actually works.
12866 #
12867 if test -n "$lt_prog_compiler_pic_CXX"; then
12868
12869 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12870 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
12871 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12872 $as_echo_n "(cached) " >&6
12873 else
12874 lt_cv_prog_compiler_pic_works_CXX=no
12875 ac_outfile=conftest.$ac_objext
12876 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12877 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12878 # Insert the option either (1) after the last *FLAGS variable, or
12879 # (2) before a word containing "conftest.", or (3) at the end.
12880 # Note that $ac_compile itself does not contain backslashes and begins
12881 # with a dollar sign (not a hyphen), so the echo should work correctly.
12882 # The option is referenced via a variable to avoid confusing sed.
12883 lt_compile=`echo "$ac_compile" | $SED \
12884 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12886 -e 's:$: $lt_compiler_flag:'`
12887 (eval echo "\"\$as_me:12887: $lt_compile\"" >&5)
12888 (eval "$lt_compile" 2>conftest.err)
12889 ac_status=$?
12890 cat conftest.err >&5
12891 echo "$as_me:12891: \$? = $ac_status" >&5
12892 if (exit $ac_status) && test -s "$ac_outfile"; then
12893 # The compiler can only warn and ignore the option if not recognized
12894 # So say no if there are warnings other than the usual output.
12895 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12896 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12897 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12898 lt_cv_prog_compiler_pic_works_CXX=yes
12899 fi
12900 fi
12901 $rm conftest*
12902
12903 fi
12904 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12905 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
12906
12907 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12908 case $lt_prog_compiler_pic_CXX in
12909 "" | " "*) ;;
12910 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12911 esac
12912 else
12913 lt_prog_compiler_pic_CXX=
12914 lt_prog_compiler_can_build_shared_CXX=no
12915 fi
12916
12917 fi
12918 case $host_os in
12919 # For platforms which do not support PIC, -DPIC is meaningless:
12920 *djgpp*)
12921 lt_prog_compiler_pic_CXX=
12922 ;;
12923 *)
12924 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12925 ;;
12926 esac
12927
12928 #
12929 # Check to make sure the static flag actually works.
12930 #
12931 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12932 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12933 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12934 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12935 $as_echo_n "(cached) " >&6
12936 else
12937 lt_cv_prog_compiler_static_works_CXX=no
12938 save_LDFLAGS="$LDFLAGS"
12939 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12940 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12941 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12942 # The linker can only warn and ignore the option if not recognized
12943 # So say no if there are warnings
12944 if test -s conftest.err; then
12945 # Append any errors to the config.log.
12946 cat conftest.err 1>&5
12947 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12948 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12949 if diff conftest.exp conftest.er2 >/dev/null; then
12950 lt_cv_prog_compiler_static_works_CXX=yes
12951 fi
12952 else
12953 lt_cv_prog_compiler_static_works_CXX=yes
12954 fi
12955 fi
12956 $rm -r conftest*
12957 LDFLAGS="$save_LDFLAGS"
12958
12959 fi
12960 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12961 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
12962
12963 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12964 :
12965 else
12966 lt_prog_compiler_static_CXX=
12967 fi
12968
12969
12970 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12971 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12972 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12973 $as_echo_n "(cached) " >&6
12974 else
12975 lt_cv_prog_compiler_c_o_CXX=no
12976 $rm -r conftest 2>/dev/null
12977 mkdir conftest
12978 cd conftest
12979 mkdir out
12980 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12981
12982 lt_compiler_flag="-o out/conftest2.$ac_objext"
12983 # Insert the option either (1) after the last *FLAGS variable, or
12984 # (2) before a word containing "conftest.", or (3) at the end.
12985 # Note that $ac_compile itself does not contain backslashes and begins
12986 # with a dollar sign (not a hyphen), so the echo should work correctly.
12987 lt_compile=`echo "$ac_compile" | $SED \
12988 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12989 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12990 -e 's:$: $lt_compiler_flag:'`
12991 (eval echo "\"\$as_me:12991: $lt_compile\"" >&5)
12992 (eval "$lt_compile" 2>out/conftest.err)
12993 ac_status=$?
12994 cat out/conftest.err >&5
12995 echo "$as_me:12995: \$? = $ac_status" >&5
12996 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12997 then
12998 # The compiler can only warn and ignore the option if not recognized
12999 # So say no if there are warnings
13000 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13001 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13002 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13003 lt_cv_prog_compiler_c_o_CXX=yes
13004 fi
13005 fi
13006 chmod u+w . 2>&5
13007 $rm conftest*
13008 # SGI C++ compiler will create directory out/ii_files/ for
13009 # template instantiation
13010 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13011 $rm out/* && rmdir out
13012 cd ..
13013 rmdir conftest
13014 $rm conftest*
13015
13016 fi
13017 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13018 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13019
13020
13021 hard_links="nottested"
13022 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13023 # do not overwrite the value of need_locks provided by the user
13024 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13025 $as_echo_n "checking if we can lock with hard links... " >&6; }
13026 hard_links=yes
13027 $rm conftest*
13028 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13029 touch conftest.a
13030 ln conftest.a conftest.b 2>&5 || hard_links=no
13031 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13032 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
13033 $as_echo "$hard_links" >&6; }
13034 if test "$hard_links" = no; then
13035 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13036 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13037 need_locks=warn
13038 fi
13039 else
13040 need_locks=no
13041 fi
13042
13043 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13044 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13045
13046 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13047 case $host_os in
13048 aix[4-9]*)
13049 # If we're using GNU nm, then we don't want the "-C" option.
13050 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13051 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13052 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'
13053 else
13054 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'
13055 fi
13056 ;;
13057 pw32*)
13058 export_symbols_cmds_CXX="$ltdll_cmds"
13059 ;;
13060 cygwin* | mingw*)
13061 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'
13062 ;;
13063 *)
13064 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13065 ;;
13066 esac
13067 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13068
13069 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13070 $as_echo "$ld_shlibs_CXX" >&6; }
13071 test "$ld_shlibs_CXX" = no && can_build_shared=no
13072
13073 #
13074 # Do we need to explicitly link libc?
13075 #
13076 case "x$archive_cmds_need_lc_CXX" in
13077 x|xyes)
13078 # Assume -lc should be added
13079 archive_cmds_need_lc_CXX=yes
13080
13081 if test "$enable_shared" = yes && test "$GCC" = yes; then
13082 case $archive_cmds_CXX in
13083 *'~'*)
13084 # FIXME: we may have to deal with multi-command sequences.
13085 ;;
13086 '$CC '*)
13087 # Test whether the compiler implicitly links with -lc since on some
13088 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13089 # to ld, don't add -lc before -lgcc.
13090 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13091 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13092 $rm conftest*
13093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13094
13095 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13096 (eval $ac_compile) 2>&5
13097 ac_status=$?
13098 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13099 (exit $ac_status); } 2>conftest.err; then
13100 soname=conftest
13101 lib=conftest
13102 libobjs=conftest.$ac_objext
13103 deplibs=
13104 wl=$lt_prog_compiler_wl_CXX
13105 pic_flag=$lt_prog_compiler_pic_CXX
13106 compiler_flags=-v
13107 linker_flags=-v
13108 verstring=
13109 output_objdir=.
13110 libname=conftest
13111 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13112 allow_undefined_flag_CXX=
13113 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13114 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13115 ac_status=$?
13116 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
13117 (exit $ac_status); }
13118 then
13119 archive_cmds_need_lc_CXX=no
13120 else
13121 archive_cmds_need_lc_CXX=yes
13122 fi
13123 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13124 else
13125 cat conftest.err 1>&5
13126 fi
13127 $rm conftest*
13128 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13129 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
13130 ;;
13131 esac
13132 fi
13133 ;;
13134 esac
13135
13136 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13137 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13138 library_names_spec=
13139 libname_spec='lib$name'
13140 soname_spec=
13141 shrext_cmds=".so"
13142 postinstall_cmds=
13143 postuninstall_cmds=
13144 finish_cmds=
13145 finish_eval=
13146 shlibpath_var=
13147 shlibpath_overrides_runpath=unknown
13148 version_type=none
13149 dynamic_linker="$host_os ld.so"
13150 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13151
13152 need_lib_prefix=unknown
13153 hardcode_into_libs=no
13154
13155 # when you set need_version to no, make sure it does not cause -set_version
13156 # flags to be left without arguments
13157 need_version=unknown
13158
13159 case $host_os in
13160 aix3*)
13161 version_type=linux
13162 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13163 shlibpath_var=LIBPATH
13164
13165 # AIX 3 has no versioning support, so we append a major version to the name.
13166 soname_spec='${libname}${release}${shared_ext}$major'
13167 ;;
13168
13169 aix[4-9]*)
13170 version_type=linux
13171 need_lib_prefix=no
13172 need_version=no
13173 hardcode_into_libs=yes
13174 if test "$host_cpu" = ia64; then
13175 # AIX 5 supports IA64
13176 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13177 shlibpath_var=LD_LIBRARY_PATH
13178 else
13179 # With GCC up to 2.95.x, collect2 would create an import file
13180 # for dependence libraries. The import file would start with
13181 # the line `#! .'. This would cause the generated library to
13182 # depend on `.', always an invalid library. This was fixed in
13183 # development snapshots of GCC prior to 3.0.
13184 case $host_os in
13185 aix4 | aix4.[01] | aix4.[01].*)
13186 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13187 echo ' yes '
13188 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13189 :
13190 else
13191 can_build_shared=no
13192 fi
13193 ;;
13194 esac
13195 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13196 # soname into executable. Probably we can add versioning support to
13197 # collect2, so additional links can be useful in future.
13198 if test "$aix_use_runtimelinking" = yes; then
13199 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13200 # instead of lib<name>.a to let people know that these are not
13201 # typical AIX shared libraries.
13202 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13203 else
13204 # We preserve .a as extension for shared libraries through AIX4.2
13205 # and later when we are not doing run time linking.
13206 library_names_spec='${libname}${release}.a $libname.a'
13207 soname_spec='${libname}${release}${shared_ext}$major'
13208 fi
13209 shlibpath_var=LIBPATH
13210 fi
13211 ;;
13212
13213 amigaos*)
13214 library_names_spec='$libname.ixlibrary $libname.a'
13215 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13216 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'
13217 ;;
13218
13219 beos*)
13220 library_names_spec='${libname}${shared_ext}'
13221 dynamic_linker="$host_os ld.so"
13222 shlibpath_var=LIBRARY_PATH
13223 ;;
13224
13225 bsdi[45]*)
13226 version_type=linux
13227 need_version=no
13228 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13229 soname_spec='${libname}${release}${shared_ext}$major'
13230 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13231 shlibpath_var=LD_LIBRARY_PATH
13232 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13233 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13234 # the default ld.so.conf also contains /usr/contrib/lib and
13235 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13236 # libtool to hard-code these into programs
13237 ;;
13238
13239 cygwin* | mingw* | pw32*)
13240 version_type=windows
13241 shrext_cmds=".dll"
13242 need_version=no
13243 need_lib_prefix=no
13244
13245 case $GCC,$host_os in
13246 yes,cygwin* | yes,mingw* | yes,pw32*)
13247 library_names_spec='$libname.dll.a'
13248 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13249 postinstall_cmds='base_file=`basename \${file}`~
13250 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13251 dldir=$destdir/`dirname \$dlpath`~
13252 test -d \$dldir || mkdir -p \$dldir~
13253 $install_prog $dir/$dlname \$dldir/$dlname~
13254 chmod a+x \$dldir/$dlname'
13255 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13256 dlpath=$dir/\$dldll~
13257 $rm \$dlpath'
13258 shlibpath_overrides_runpath=yes
13259
13260 case $host_os in
13261 cygwin*)
13262 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13263 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13264 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13265 ;;
13266 mingw*)
13267 # MinGW DLLs use traditional 'lib' prefix
13268 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13269 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13270 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13271 # It is most probably a Windows format PATH printed by
13272 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13273 # path with ; separators, and with drive letters. We can handle the
13274 # drive letters (cygwin fileutils understands them), so leave them,
13275 # especially as we might pass files found there to a mingw objdump,
13276 # which wouldn't understand a cygwinified path. Ahh.
13277 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13278 else
13279 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13280 fi
13281 ;;
13282 pw32*)
13283 # pw32 DLLs use 'pw' prefix rather than 'lib'
13284 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13285 ;;
13286 esac
13287 ;;
13288
13289 *)
13290 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13291 ;;
13292 esac
13293 dynamic_linker='Win32 ld.exe'
13294 # FIXME: first we should search . and the directory the executable is in
13295 shlibpath_var=PATH
13296 ;;
13297
13298 darwin* | rhapsody*)
13299 dynamic_linker="$host_os dyld"
13300 version_type=darwin
13301 need_lib_prefix=no
13302 need_version=no
13303 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13304 soname_spec='${libname}${release}${major}$shared_ext'
13305 shlibpath_overrides_runpath=yes
13306 shlibpath_var=DYLD_LIBRARY_PATH
13307 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13308
13309 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13310 ;;
13311
13312 dgux*)
13313 version_type=linux
13314 need_lib_prefix=no
13315 need_version=no
13316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13317 soname_spec='${libname}${release}${shared_ext}$major'
13318 shlibpath_var=LD_LIBRARY_PATH
13319 ;;
13320
13321 freebsd1*)
13322 dynamic_linker=no
13323 ;;
13324
13325 freebsd* | dragonfly*)
13326 # DragonFly does not have aout. When/if they implement a new
13327 # versioning mechanism, adjust this.
13328 if test -x /usr/bin/objformat; then
13329 objformat=`/usr/bin/objformat`
13330 else
13331 case $host_os in
13332 freebsd[123]*) objformat=aout ;;
13333 *) objformat=elf ;;
13334 esac
13335 fi
13336 # Handle Gentoo/FreeBSD as it was Linux
13337 case $host_vendor in
13338 gentoo)
13339 version_type=linux ;;
13340 *)
13341 version_type=freebsd-$objformat ;;
13342 esac
13343
13344 case $version_type in
13345 freebsd-elf*)
13346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13347 need_version=no
13348 need_lib_prefix=no
13349 ;;
13350 freebsd-*)
13351 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13352 need_version=yes
13353 ;;
13354 linux)
13355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13356 soname_spec='${libname}${release}${shared_ext}$major'
13357 need_lib_prefix=no
13358 need_version=no
13359 ;;
13360 esac
13361 shlibpath_var=LD_LIBRARY_PATH
13362 case $host_os in
13363 freebsd2*)
13364 shlibpath_overrides_runpath=yes
13365 ;;
13366 freebsd3.[01]* | freebsdelf3.[01]*)
13367 shlibpath_overrides_runpath=yes
13368 hardcode_into_libs=yes
13369 ;;
13370 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13371 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13372 shlibpath_overrides_runpath=no
13373 hardcode_into_libs=yes
13374 ;;
13375 *) # from 4.6 on, and DragonFly
13376 shlibpath_overrides_runpath=yes
13377 hardcode_into_libs=yes
13378 ;;
13379 esac
13380 ;;
13381
13382 gnu*)
13383 version_type=linux
13384 need_lib_prefix=no
13385 need_version=no
13386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13387 soname_spec='${libname}${release}${shared_ext}$major'
13388 shlibpath_var=LD_LIBRARY_PATH
13389 hardcode_into_libs=yes
13390 ;;
13391
13392 hpux9* | hpux10* | hpux11*)
13393 # Give a soname corresponding to the major version so that dld.sl refuses to
13394 # link against other versions.
13395 version_type=sunos
13396 need_lib_prefix=no
13397 need_version=no
13398 case $host_cpu in
13399 ia64*)
13400 shrext_cmds='.so'
13401 hardcode_into_libs=yes
13402 dynamic_linker="$host_os dld.so"
13403 shlibpath_var=LD_LIBRARY_PATH
13404 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13406 soname_spec='${libname}${release}${shared_ext}$major'
13407 if test "X$HPUX_IA64_MODE" = X32; then
13408 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13409 else
13410 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13411 fi
13412 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13413 ;;
13414 hppa*64*)
13415 shrext_cmds='.sl'
13416 hardcode_into_libs=yes
13417 dynamic_linker="$host_os dld.sl"
13418 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13419 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13421 soname_spec='${libname}${release}${shared_ext}$major'
13422 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13423 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13424 ;;
13425 *)
13426 shrext_cmds='.sl'
13427 dynamic_linker="$host_os dld.sl"
13428 shlibpath_var=SHLIB_PATH
13429 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13431 soname_spec='${libname}${release}${shared_ext}$major'
13432 ;;
13433 esac
13434 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13435 postinstall_cmds='chmod 555 $lib'
13436 ;;
13437
13438 interix[3-9]*)
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13445 shlibpath_var=LD_LIBRARY_PATH
13446 shlibpath_overrides_runpath=no
13447 hardcode_into_libs=yes
13448 ;;
13449
13450 irix5* | irix6* | nonstopux*)
13451 case $host_os in
13452 nonstopux*) version_type=nonstopux ;;
13453 *)
13454 if test "$lt_cv_prog_gnu_ld" = yes; then
13455 version_type=linux
13456 else
13457 version_type=irix
13458 fi ;;
13459 esac
13460 need_lib_prefix=no
13461 need_version=no
13462 soname_spec='${libname}${release}${shared_ext}$major'
13463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13464 case $host_os in
13465 irix5* | nonstopux*)
13466 libsuff= shlibsuff=
13467 ;;
13468 *)
13469 case $LD in # libtool.m4 will add one of these switches to LD
13470 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13471 libsuff= shlibsuff= libmagic=32-bit;;
13472 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13473 libsuff=32 shlibsuff=N32 libmagic=N32;;
13474 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13475 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13476 *) libsuff= shlibsuff= libmagic=never-match;;
13477 esac
13478 ;;
13479 esac
13480 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13481 shlibpath_overrides_runpath=no
13482 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13483 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13484 hardcode_into_libs=yes
13485 ;;
13486
13487 # No shared lib support for Linux oldld, aout, or coff.
13488 linux*oldld* | linux*aout* | linux*coff*)
13489 dynamic_linker=no
13490 ;;
13491
13492 # This must be Linux ELF.
13493 linux* | k*bsd*-gnu)
13494 version_type=linux
13495 need_lib_prefix=no
13496 need_version=no
13497 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13498 soname_spec='${libname}${release}${shared_ext}$major'
13499 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13500 shlibpath_var=LD_LIBRARY_PATH
13501 shlibpath_overrides_runpath=no
13502 # This implies no fast_install, which is unacceptable.
13503 # Some rework will be needed to allow for fast_install
13504 # before this can be enabled.
13505 hardcode_into_libs=yes
13506
13507 # Append ld.so.conf contents to the search path
13508 if test -f /etc/ld.so.conf; then
13509 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' ' '`
13510 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13511 fi
13512
13513 # We used to test for /lib/ld.so.1 and disable shared libraries on
13514 # powerpc, because MkLinux only supported shared libraries with the
13515 # GNU dynamic linker. Since this was broken with cross compilers,
13516 # most powerpc-linux boxes support dynamic linking these days and
13517 # people can always --disable-shared, the test was removed, and we
13518 # assume the GNU/Linux dynamic linker is in use.
13519 dynamic_linker='GNU/Linux ld.so'
13520 ;;
13521
13522 netbsd*)
13523 version_type=sunos
13524 need_lib_prefix=no
13525 need_version=no
13526 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13528 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13529 dynamic_linker='NetBSD (a.out) ld.so'
13530 else
13531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13532 soname_spec='${libname}${release}${shared_ext}$major'
13533 dynamic_linker='NetBSD ld.elf_so'
13534 fi
13535 shlibpath_var=LD_LIBRARY_PATH
13536 shlibpath_overrides_runpath=yes
13537 hardcode_into_libs=yes
13538 ;;
13539
13540 newsos6)
13541 version_type=linux
13542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13543 shlibpath_var=LD_LIBRARY_PATH
13544 shlibpath_overrides_runpath=yes
13545 ;;
13546
13547 nto-qnx*)
13548 version_type=linux
13549 need_lib_prefix=no
13550 need_version=no
13551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13552 soname_spec='${libname}${release}${shared_ext}$major'
13553 shlibpath_var=LD_LIBRARY_PATH
13554 shlibpath_overrides_runpath=yes
13555 ;;
13556
13557 openbsd*)
13558 version_type=sunos
13559 sys_lib_dlsearch_path_spec="/usr/lib"
13560 need_lib_prefix=no
13561 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13562 case $host_os in
13563 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13564 *) need_version=no ;;
13565 esac
13566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13567 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13568 shlibpath_var=LD_LIBRARY_PATH
13569 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13570 case $host_os in
13571 openbsd2.[89] | openbsd2.[89].*)
13572 shlibpath_overrides_runpath=no
13573 ;;
13574 *)
13575 shlibpath_overrides_runpath=yes
13576 ;;
13577 esac
13578 else
13579 shlibpath_overrides_runpath=yes
13580 fi
13581 ;;
13582
13583 os2*)
13584 libname_spec='$name'
13585 shrext_cmds=".dll"
13586 need_lib_prefix=no
13587 library_names_spec='$libname${shared_ext} $libname.a'
13588 dynamic_linker='OS/2 ld.exe'
13589 shlibpath_var=LIBPATH
13590 ;;
13591
13592 osf3* | osf4* | osf5*)
13593 version_type=osf
13594 need_lib_prefix=no
13595 need_version=no
13596 soname_spec='${libname}${release}${shared_ext}$major'
13597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13598 shlibpath_var=LD_LIBRARY_PATH
13599 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13600 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13601 ;;
13602
13603 rdos*)
13604 dynamic_linker=no
13605 ;;
13606
13607 solaris*)
13608 version_type=linux
13609 need_lib_prefix=no
13610 need_version=no
13611 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13612 soname_spec='${libname}${release}${shared_ext}$major'
13613 shlibpath_var=LD_LIBRARY_PATH
13614 shlibpath_overrides_runpath=yes
13615 hardcode_into_libs=yes
13616 # ldd complains unless libraries are executable
13617 postinstall_cmds='chmod +x $lib'
13618 ;;
13619
13620 sunos4*)
13621 version_type=sunos
13622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13623 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13624 shlibpath_var=LD_LIBRARY_PATH
13625 shlibpath_overrides_runpath=yes
13626 if test "$with_gnu_ld" = yes; then
13627 need_lib_prefix=no
13628 fi
13629 need_version=yes
13630 ;;
13631
13632 sysv4 | sysv4.3*)
13633 version_type=linux
13634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13635 soname_spec='${libname}${release}${shared_ext}$major'
13636 shlibpath_var=LD_LIBRARY_PATH
13637 case $host_vendor in
13638 sni)
13639 shlibpath_overrides_runpath=no
13640 need_lib_prefix=no
13641 export_dynamic_flag_spec='${wl}-Blargedynsym'
13642 runpath_var=LD_RUN_PATH
13643 ;;
13644 siemens)
13645 need_lib_prefix=no
13646 ;;
13647 motorola)
13648 need_lib_prefix=no
13649 need_version=no
13650 shlibpath_overrides_runpath=no
13651 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13652 ;;
13653 esac
13654 ;;
13655
13656 sysv4*MP*)
13657 if test -d /usr/nec ;then
13658 version_type=linux
13659 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13660 soname_spec='$libname${shared_ext}.$major'
13661 shlibpath_var=LD_LIBRARY_PATH
13662 fi
13663 ;;
13664
13665 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13666 version_type=freebsd-elf
13667 need_lib_prefix=no
13668 need_version=no
13669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13670 soname_spec='${libname}${release}${shared_ext}$major'
13671 shlibpath_var=LD_LIBRARY_PATH
13672 hardcode_into_libs=yes
13673 if test "$with_gnu_ld" = yes; then
13674 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13675 shlibpath_overrides_runpath=no
13676 else
13677 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13678 shlibpath_overrides_runpath=yes
13679 case $host_os in
13680 sco3.2v5*)
13681 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
13682 ;;
13683 esac
13684 fi
13685 sys_lib_dlsearch_path_spec='/usr/lib'
13686 ;;
13687
13688 uts4*)
13689 version_type=linux
13690 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13691 soname_spec='${libname}${release}${shared_ext}$major'
13692 shlibpath_var=LD_LIBRARY_PATH
13693 ;;
13694
13695 *)
13696 dynamic_linker=no
13697 ;;
13698 esac
13699 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13700 $as_echo "$dynamic_linker" >&6; }
13701 test "$dynamic_linker" = no && can_build_shared=no
13702
13703 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
13704 $as_echo_n "(cached) " >&6
13705 else
13706 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13707 fi
13708
13709 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13710 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13711 $as_echo_n "(cached) " >&6
13712 else
13713 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13714 fi
13715
13716 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13717
13718 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13719 if test "$GCC" = yes; then
13720 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13721 fi
13722
13723 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13724 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
13725 hardcode_action_CXX=
13726 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13727 test -n "$runpath_var_CXX" || \
13728 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13729
13730 # We can hardcode non-existant directories.
13731 if test "$hardcode_direct_CXX" != no &&
13732 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13733 # have to relink, otherwise we might link with an installed library
13734 # when we should be linking with a yet-to-be-installed one
13735 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13736 test "$hardcode_minus_L_CXX" != no; then
13737 # Linking always hardcodes the temporary library directory.
13738 hardcode_action_CXX=relink
13739 else
13740 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13741 hardcode_action_CXX=immediate
13742 fi
13743 else
13744 # We cannot hardcode anything, or else we can only hardcode existing
13745 # directories.
13746 hardcode_action_CXX=unsupported
13747 fi
13748 { $as_echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13749 $as_echo "$hardcode_action_CXX" >&6; }
13750
13751 if test "$hardcode_action_CXX" = relink; then
13752 # Fast installation is not supported
13753 enable_fast_install=no
13754 elif test "$shlibpath_overrides_runpath" = yes ||
13755 test "$enable_shared" = no; then
13756 # Fast installation is not necessary
13757 enable_fast_install=needless
13758 fi
13759
13760
13761 # The else clause should only fire when bootstrapping the
13762 # libtool distribution, otherwise you forgot to ship ltmain.sh
13763 # with your package, and you will get complaints that there are
13764 # no rules to generate ltmain.sh.
13765 if test -f "$ltmain"; then
13766 # See if we are running on zsh, and set the options which allow our commands through
13767 # without removal of \ escapes.
13768 if test -n "${ZSH_VERSION+set}" ; then
13769 setopt NO_GLOB_SUBST
13770 fi
13771 # Now quote all the things that may contain metacharacters while being
13772 # careful not to overquote the AC_SUBSTed values. We take copies of the
13773 # variables and quote the copies for generation of the libtool script.
13774 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13775 SED SHELL STRIP \
13776 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13777 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13778 deplibs_check_method reload_flag reload_cmds need_locks \
13779 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13780 lt_cv_sys_global_symbol_to_c_name_address \
13781 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13782 old_postinstall_cmds old_postuninstall_cmds \
13783 compiler_CXX \
13784 CC_CXX \
13785 LD_CXX \
13786 lt_prog_compiler_wl_CXX \
13787 lt_prog_compiler_pic_CXX \
13788 lt_prog_compiler_static_CXX \
13789 lt_prog_compiler_no_builtin_flag_CXX \
13790 export_dynamic_flag_spec_CXX \
13791 thread_safe_flag_spec_CXX \
13792 whole_archive_flag_spec_CXX \
13793 enable_shared_with_static_runtimes_CXX \
13794 old_archive_cmds_CXX \
13795 old_archive_from_new_cmds_CXX \
13796 predep_objects_CXX \
13797 postdep_objects_CXX \
13798 predeps_CXX \
13799 postdeps_CXX \
13800 compiler_lib_search_path_CXX \
13801 compiler_lib_search_dirs_CXX \
13802 archive_cmds_CXX \
13803 archive_expsym_cmds_CXX \
13804 postinstall_cmds_CXX \
13805 postuninstall_cmds_CXX \
13806 old_archive_from_expsyms_cmds_CXX \
13807 allow_undefined_flag_CXX \
13808 no_undefined_flag_CXX \
13809 export_symbols_cmds_CXX \
13810 hardcode_libdir_flag_spec_CXX \
13811 hardcode_libdir_flag_spec_ld_CXX \
13812 hardcode_libdir_separator_CXX \
13813 hardcode_automatic_CXX \
13814 module_cmds_CXX \
13815 module_expsym_cmds_CXX \
13816 lt_cv_prog_compiler_c_o_CXX \
13817 fix_srcfile_path_CXX \
13818 exclude_expsyms_CXX \
13819 include_expsyms_CXX; do
13820
13821 case $var in
13822 old_archive_cmds_CXX | \
13823 old_archive_from_new_cmds_CXX | \
13824 archive_cmds_CXX | \
13825 archive_expsym_cmds_CXX | \
13826 module_cmds_CXX | \
13827 module_expsym_cmds_CXX | \
13828 old_archive_from_expsyms_cmds_CXX | \
13829 export_symbols_cmds_CXX | \
13830 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13831 postinstall_cmds | postuninstall_cmds | \
13832 old_postinstall_cmds | old_postuninstall_cmds | \
13833 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13834 # Double-quote double-evaled strings.
13835 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13836 ;;
13837 *)
13838 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13839 ;;
13840 esac
13841 done
13842
13843 case $lt_echo in
13844 *'\$0 --fallback-echo"')
13845 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13846 ;;
13847 esac
13848
13849 cfgfile="$ofile"
13850
13851 cat <<__EOF__ >> "$cfgfile"
13852 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13853
13854 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13855
13856 # Shell to use when invoking shell scripts.
13857 SHELL=$lt_SHELL
13858
13859 # Whether or not to build shared libraries.
13860 build_libtool_libs=$enable_shared
13861
13862 # Whether or not to build static libraries.
13863 build_old_libs=$enable_static
13864
13865 # Whether or not to add -lc for building shared libraries.
13866 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13867
13868 # Whether or not to disallow shared libs when runtime libs are static
13869 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13870
13871 # Whether or not to optimize for fast installation.
13872 fast_install=$enable_fast_install
13873
13874 # The host system.
13875 host_alias=$host_alias
13876 host=$host
13877 host_os=$host_os
13878
13879 # The build system.
13880 build_alias=$build_alias
13881 build=$build
13882 build_os=$build_os
13883
13884 # An echo program that does not interpret backslashes.
13885 echo=$lt_echo
13886
13887 # The archiver.
13888 AR=$lt_AR
13889 AR_FLAGS=$lt_AR_FLAGS
13890
13891 # A C compiler.
13892 LTCC=$lt_LTCC
13893
13894 # LTCC compiler flags.
13895 LTCFLAGS=$lt_LTCFLAGS
13896
13897 # A language-specific compiler.
13898 CC=$lt_compiler_CXX
13899
13900 # Is the compiler the GNU C compiler?
13901 with_gcc=$GCC_CXX
13902
13903 # An ERE matcher.
13904 EGREP=$lt_EGREP
13905
13906 # The linker used to build libraries.
13907 LD=$lt_LD_CXX
13908
13909 # Whether we need hard or soft links.
13910 LN_S=$lt_LN_S
13911
13912 # A BSD-compatible nm program.
13913 NM=$lt_NM
13914
13915 # A symbol stripping program
13916 STRIP=$lt_STRIP
13917
13918 # Used to examine libraries when file_magic_cmd begins "file"
13919 MAGIC_CMD=$MAGIC_CMD
13920
13921 # Used on cygwin: DLL creation program.
13922 DLLTOOL="$DLLTOOL"
13923
13924 # Used on cygwin: object dumper.
13925 OBJDUMP="$OBJDUMP"
13926
13927 # Used on cygwin: assembler.
13928 AS="$AS"
13929
13930 # The name of the directory that contains temporary libtool files.
13931 objdir=$objdir
13932
13933 # How to create reloadable object files.
13934 reload_flag=$lt_reload_flag
13935 reload_cmds=$lt_reload_cmds
13936
13937 # How to pass a linker flag through the compiler.
13938 wl=$lt_lt_prog_compiler_wl_CXX
13939
13940 # Object file suffix (normally "o").
13941 objext="$ac_objext"
13942
13943 # Old archive suffix (normally "a").
13944 libext="$libext"
13945
13946 # Shared library suffix (normally ".so").
13947 shrext_cmds='$shrext_cmds'
13948
13949 # Executable file suffix (normally "").
13950 exeext="$exeext"
13951
13952 # Additional compiler flags for building library objects.
13953 pic_flag=$lt_lt_prog_compiler_pic_CXX
13954 pic_mode=$pic_mode
13955
13956 # What is the maximum length of a command?
13957 max_cmd_len=$lt_cv_sys_max_cmd_len
13958
13959 # Does compiler simultaneously support -c and -o options?
13960 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13961
13962 # Must we lock files when doing compilation?
13963 need_locks=$lt_need_locks
13964
13965 # Do we need the lib prefix for modules?
13966 need_lib_prefix=$need_lib_prefix
13967
13968 # Do we need a version for libraries?
13969 need_version=$need_version
13970
13971 # Whether dlopen is supported.
13972 dlopen_support=$enable_dlopen
13973
13974 # Whether dlopen of programs is supported.
13975 dlopen_self=$enable_dlopen_self
13976
13977 # Whether dlopen of statically linked programs is supported.
13978 dlopen_self_static=$enable_dlopen_self_static
13979
13980 # Compiler flag to prevent dynamic linking.
13981 link_static_flag=$lt_lt_prog_compiler_static_CXX
13982
13983 # Compiler flag to turn off builtin functions.
13984 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13985
13986 # Compiler flag to allow reflexive dlopens.
13987 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13988
13989 # Compiler flag to generate shared objects directly from archives.
13990 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13991
13992 # Compiler flag to generate thread-safe objects.
13993 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13994
13995 # Library versioning type.
13996 version_type=$version_type
13997
13998 # Format of library name prefix.
13999 libname_spec=$lt_libname_spec
14000
14001 # List of archive names. First name is the real one, the rest are links.
14002 # The last name is the one that the linker finds with -lNAME.
14003 library_names_spec=$lt_library_names_spec
14004
14005 # The coded name of the library, if different from the real name.
14006 soname_spec=$lt_soname_spec
14007
14008 # Commands used to build and install an old-style archive.
14009 RANLIB=$lt_RANLIB
14010 old_archive_cmds=$lt_old_archive_cmds_CXX
14011 old_postinstall_cmds=$lt_old_postinstall_cmds
14012 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14013
14014 # Create an old-style archive from a shared archive.
14015 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14016
14017 # Create a temporary old-style archive to link instead of a shared archive.
14018 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14019
14020 # Commands used to build and install a shared archive.
14021 archive_cmds=$lt_archive_cmds_CXX
14022 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14023 postinstall_cmds=$lt_postinstall_cmds
14024 postuninstall_cmds=$lt_postuninstall_cmds
14025
14026 # Commands used to build a loadable module (assumed same as above if empty)
14027 module_cmds=$lt_module_cmds_CXX
14028 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14029
14030 # Commands to strip libraries.
14031 old_striplib=$lt_old_striplib
14032 striplib=$lt_striplib
14033
14034 # Dependencies to place before the objects being linked to create a
14035 # shared library.
14036 predep_objects=$lt_predep_objects_CXX
14037
14038 # Dependencies to place after the objects being linked to create a
14039 # shared library.
14040 postdep_objects=$lt_postdep_objects_CXX
14041
14042 # Dependencies to place before the objects being linked to create a
14043 # shared library.
14044 predeps=$lt_predeps_CXX
14045
14046 # Dependencies to place after the objects being linked to create a
14047 # shared library.
14048 postdeps=$lt_postdeps_CXX
14049
14050 # The directories searched by this compiler when creating a shared
14051 # library
14052 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
14053
14054 # The library search path used internally by the compiler when linking
14055 # a shared library.
14056 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14057
14058 # Method to check whether dependent libraries are shared objects.
14059 deplibs_check_method=$lt_deplibs_check_method
14060
14061 # Command to use when deplibs_check_method == file_magic.
14062 file_magic_cmd=$lt_file_magic_cmd
14063
14064 # Flag that allows shared libraries with undefined symbols to be built.
14065 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14066
14067 # Flag that forces no undefined symbols.
14068 no_undefined_flag=$lt_no_undefined_flag_CXX
14069
14070 # Commands used to finish a libtool library installation in a directory.
14071 finish_cmds=$lt_finish_cmds
14072
14073 # Same as above, but a single script fragment to be evaled but not shown.
14074 finish_eval=$lt_finish_eval
14075
14076 # Take the output of nm and produce a listing of raw symbols and C names.
14077 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14078
14079 # Transform the output of nm in a proper C declaration
14080 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14081
14082 # Transform the output of nm in a C name address pair
14083 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14084
14085 # This is the shared library runtime path variable.
14086 runpath_var=$runpath_var
14087
14088 # This is the shared library path variable.
14089 shlibpath_var=$shlibpath_var
14090
14091 # Is shlibpath searched before the hard-coded library search path?
14092 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14093
14094 # How to hardcode a shared library path into an executable.
14095 hardcode_action=$hardcode_action_CXX
14096
14097 # Whether we should hardcode library paths into libraries.
14098 hardcode_into_libs=$hardcode_into_libs
14099
14100 # Flag to hardcode \$libdir into a binary during linking.
14101 # This must work even if \$libdir does not exist.
14102 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
14103
14104 # If ld is used when linking, flag to hardcode \$libdir into
14105 # a binary during linking. This must work even if \$libdir does
14106 # not exist.
14107 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
14108
14109 # Whether we need a single -rpath flag with a separated argument.
14110 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
14111
14112 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14113 # resulting binary.
14114 hardcode_direct=$hardcode_direct_CXX
14115
14116 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14117 # resulting binary.
14118 hardcode_minus_L=$hardcode_minus_L_CXX
14119
14120 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14121 # the resulting binary.
14122 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
14123
14124 # Set to yes if building a shared library automatically hardcodes DIR into the library
14125 # and all subsequent libraries and executables linked against it.
14126 hardcode_automatic=$hardcode_automatic_CXX
14127
14128 # Variables whose values should be saved in libtool wrapper scripts and
14129 # restored at relink time.
14130 variables_saved_for_relink="$variables_saved_for_relink"
14131
14132 # Whether libtool must link a program against all its dependency libraries.
14133 link_all_deplibs=$link_all_deplibs_CXX
14134
14135 # Compile-time system search path for libraries
14136 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14137
14138 # Run-time system search path for libraries
14139 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14140
14141 # Fix the shell variable \$srcfile for the compiler.
14142 fix_srcfile_path=$lt_fix_srcfile_path
14143
14144 # Set to yes if exported symbols are required.
14145 always_export_symbols=$always_export_symbols_CXX
14146
14147 # The commands to list exported symbols.
14148 export_symbols_cmds=$lt_export_symbols_cmds_CXX
14149
14150 # The commands to extract the exported symbol list from a shared archive.
14151 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14152
14153 # Symbols that should not be listed in the preloaded symbols.
14154 exclude_expsyms=$lt_exclude_expsyms_CXX
14155
14156 # Symbols that must always be exported.
14157 include_expsyms=$lt_include_expsyms_CXX
14158
14159 # ### END LIBTOOL TAG CONFIG: $tagname
14160
14161 __EOF__
14162
14163
14164 else
14165 # If there is no Makefile yet, we rely on a make rule to execute
14166 # `config.status --recheck' to rerun these tests and create the
14167 # libtool script then.
14168 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14169 if test -f "$ltmain_in"; then
14170 test -f Makefile && make "$ltmain"
14171 fi
14172 fi
14173
14174
14175 ac_ext=c
14176 ac_cpp='$CPP $CPPFLAGS'
14177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14180
14181 CC=$lt_save_CC
14182 LDCXX=$LD
14183 LD=$lt_save_LD
14184 GCC=$lt_save_GCC
14185 with_gnu_ldcxx=$with_gnu_ld
14186 with_gnu_ld=$lt_save_with_gnu_ld
14187 lt_cv_path_LDCXX=$lt_cv_path_LD
14188 lt_cv_path_LD=$lt_save_path_LD
14189 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14190 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14191
14192 else
14193 tagname=""
14194 fi
14195 ;;
14196
14197 F77)
14198 if test -n "$F77" && test "X$F77" != "Xno"; then
14199
14200 ac_ext=f
14201 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14202 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14203 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14204
14205
14206 archive_cmds_need_lc_F77=no
14207 allow_undefined_flag_F77=
14208 always_export_symbols_F77=no
14209 archive_expsym_cmds_F77=
14210 export_dynamic_flag_spec_F77=
14211 hardcode_direct_F77=no
14212 hardcode_libdir_flag_spec_F77=
14213 hardcode_libdir_flag_spec_ld_F77=
14214 hardcode_libdir_separator_F77=
14215 hardcode_minus_L_F77=no
14216 hardcode_automatic_F77=no
14217 module_cmds_F77=
14218 module_expsym_cmds_F77=
14219 link_all_deplibs_F77=unknown
14220 old_archive_cmds_F77=$old_archive_cmds
14221 no_undefined_flag_F77=
14222 whole_archive_flag_spec_F77=
14223 enable_shared_with_static_runtimes_F77=no
14224
14225 # Source file extension for f77 test sources.
14226 ac_ext=f
14227
14228 # Object file extension for compiled f77 test sources.
14229 objext=o
14230 objext_F77=$objext
14231
14232 # Code to be used in simple compile tests
14233 lt_simple_compile_test_code="\
14234 subroutine t
14235 return
14236 end
14237 "
14238
14239 # Code to be used in simple link tests
14240 lt_simple_link_test_code="\
14241 program t
14242 end
14243 "
14244
14245 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14246
14247 # If no C compiler was specified, use CC.
14248 LTCC=${LTCC-"$CC"}
14249
14250 # If no C compiler flags were specified, use CFLAGS.
14251 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14252
14253 # Allow CC to be a program name with arguments.
14254 compiler=$CC
14255
14256
14257 # save warnings/boilerplate of simple test code
14258 ac_outfile=conftest.$ac_objext
14259 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14260 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14261 _lt_compiler_boilerplate=`cat conftest.err`
14262 $rm conftest*
14263
14264 ac_outfile=conftest.$ac_objext
14265 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14266 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14267 _lt_linker_boilerplate=`cat conftest.err`
14268 $rm -r conftest*
14269
14270
14271 # Allow CC to be a program name with arguments.
14272 lt_save_CC="$CC"
14273 CC=${F77-"f77"}
14274 compiler=$CC
14275 compiler_F77=$CC
14276 for cc_temp in $compiler""; do
14277 case $cc_temp in
14278 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14279 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14280 \-*) ;;
14281 *) break;;
14282 esac
14283 done
14284 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14285
14286
14287 { $as_echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14288 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14289 { $as_echo "$as_me:$LINENO: result: $can_build_shared" >&5
14290 $as_echo "$can_build_shared" >&6; }
14291
14292 { $as_echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14293 $as_echo_n "checking whether to build shared libraries... " >&6; }
14294 test "$can_build_shared" = "no" && enable_shared=no
14295
14296 # On AIX, shared libraries and static libraries use the same namespace, and
14297 # are all built from PIC.
14298 case $host_os in
14299 aix3*)
14300 test "$enable_shared" = yes && enable_static=no
14301 if test -n "$RANLIB"; then
14302 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14303 postinstall_cmds='$RANLIB $lib'
14304 fi
14305 ;;
14306 aix[4-9]*)
14307 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14308 test "$enable_shared" = yes && enable_static=no
14309 fi
14310 ;;
14311 esac
14312 { $as_echo "$as_me:$LINENO: result: $enable_shared" >&5
14313 $as_echo "$enable_shared" >&6; }
14314
14315 { $as_echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14316 $as_echo_n "checking whether to build static libraries... " >&6; }
14317 # Make sure either enable_shared or enable_static is yes.
14318 test "$enable_shared" = yes || enable_static=yes
14319 { $as_echo "$as_me:$LINENO: result: $enable_static" >&5
14320 $as_echo "$enable_static" >&6; }
14321
14322 GCC_F77="$G77"
14323 LD_F77="$LD"
14324
14325 lt_prog_compiler_wl_F77=
14326 lt_prog_compiler_pic_F77=
14327 lt_prog_compiler_static_F77=
14328
14329 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
14330 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14331
14332 if test "$GCC" = yes; then
14333 lt_prog_compiler_wl_F77='-Wl,'
14334 lt_prog_compiler_static_F77='-static'
14335
14336 case $host_os in
14337 aix*)
14338 # All AIX code is PIC.
14339 if test "$host_cpu" = ia64; then
14340 # AIX 5 now supports IA64 processor
14341 lt_prog_compiler_static_F77='-Bstatic'
14342 fi
14343 ;;
14344
14345 amigaos*)
14346 # FIXME: we need at least 68020 code to build shared libraries, but
14347 # adding the `-m68020' flag to GCC prevents building anything better,
14348 # like `-m68040'.
14349 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
14350 ;;
14351
14352 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14353 # PIC is the default for these OSes.
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 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14360 # (--disable-auto-import) libraries
14361 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14362 ;;
14363
14364 darwin* | rhapsody*)
14365 # PIC is the default on this platform
14366 # Common symbols not allowed in MH_DYLIB files
14367 lt_prog_compiler_pic_F77='-fno-common'
14368 ;;
14369
14370 interix[3-9]*)
14371 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14372 # Instead, we relocate shared libraries at runtime.
14373 ;;
14374
14375 msdosdjgpp*)
14376 # Just because we use GCC doesn't mean we suddenly get shared libraries
14377 # on systems that don't support them.
14378 lt_prog_compiler_can_build_shared_F77=no
14379 enable_shared=no
14380 ;;
14381
14382 sysv4*MP*)
14383 if test -d /usr/nec; then
14384 lt_prog_compiler_pic_F77=-Kconform_pic
14385 fi
14386 ;;
14387
14388 hpux*)
14389 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14390 # not for PA HP-UX.
14391 case $host_cpu in
14392 hppa*64*|ia64*)
14393 # +Z the default
14394 ;;
14395 *)
14396 lt_prog_compiler_pic_F77='-fPIC'
14397 ;;
14398 esac
14399 ;;
14400
14401 *)
14402 lt_prog_compiler_pic_F77='-fPIC'
14403 ;;
14404 esac
14405 else
14406 # PORTME Check for flag to pass linker flags through the system compiler.
14407 case $host_os in
14408 aix*)
14409 lt_prog_compiler_wl_F77='-Wl,'
14410 if test "$host_cpu" = ia64; then
14411 # AIX 5 now supports IA64 processor
14412 lt_prog_compiler_static_F77='-Bstatic'
14413 else
14414 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
14415 fi
14416 ;;
14417 darwin*)
14418 # PIC is the default on this platform
14419 # Common symbols not allowed in MH_DYLIB files
14420 case $cc_basename in
14421 xlc*)
14422 lt_prog_compiler_pic_F77='-qnocommon'
14423 lt_prog_compiler_wl_F77='-Wl,'
14424 ;;
14425 esac
14426 ;;
14427
14428 mingw* | cygwin* | pw32* | os2*)
14429 # This hack is so that the source file can tell whether it is being
14430 # built for inclusion in a dll (and should export symbols for example).
14431 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
14432 ;;
14433
14434 hpux9* | hpux10* | hpux11*)
14435 lt_prog_compiler_wl_F77='-Wl,'
14436 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14437 # not for PA HP-UX.
14438 case $host_cpu in
14439 hppa*64*|ia64*)
14440 # +Z the default
14441 ;;
14442 *)
14443 lt_prog_compiler_pic_F77='+Z'
14444 ;;
14445 esac
14446 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14447 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
14448 ;;
14449
14450 irix5* | irix6* | nonstopux*)
14451 lt_prog_compiler_wl_F77='-Wl,'
14452 # PIC (with -KPIC) is the default.
14453 lt_prog_compiler_static_F77='-non_shared'
14454 ;;
14455
14456 newsos6)
14457 lt_prog_compiler_pic_F77='-KPIC'
14458 lt_prog_compiler_static_F77='-Bstatic'
14459 ;;
14460
14461 linux* | k*bsd*-gnu)
14462 case $cc_basename in
14463 icc* | ecc*)
14464 lt_prog_compiler_wl_F77='-Wl,'
14465 lt_prog_compiler_pic_F77='-KPIC'
14466 lt_prog_compiler_static_F77='-static'
14467 ;;
14468 pgcc* | pgf77* | pgf90* | pgf95*)
14469 # Portland Group compilers (*not* the Pentium gcc compiler,
14470 # which looks to be a dead project)
14471 lt_prog_compiler_wl_F77='-Wl,'
14472 lt_prog_compiler_pic_F77='-fpic'
14473 lt_prog_compiler_static_F77='-Bstatic'
14474 ;;
14475 ccc*)
14476 lt_prog_compiler_wl_F77='-Wl,'
14477 # All Alpha code is PIC.
14478 lt_prog_compiler_static_F77='-non_shared'
14479 ;;
14480 *)
14481 case `$CC -V 2>&1 | sed 5q` in
14482 *Sun\ C*)
14483 # Sun C 5.9
14484 lt_prog_compiler_pic_F77='-KPIC'
14485 lt_prog_compiler_static_F77='-Bstatic'
14486 lt_prog_compiler_wl_F77='-Wl,'
14487 ;;
14488 *Sun\ F*)
14489 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14490 lt_prog_compiler_pic_F77='-KPIC'
14491 lt_prog_compiler_static_F77='-Bstatic'
14492 lt_prog_compiler_wl_F77=''
14493 ;;
14494 esac
14495 ;;
14496 esac
14497 ;;
14498
14499 osf3* | osf4* | osf5*)
14500 lt_prog_compiler_wl_F77='-Wl,'
14501 # All OSF/1 code is PIC.
14502 lt_prog_compiler_static_F77='-non_shared'
14503 ;;
14504
14505 rdos*)
14506 lt_prog_compiler_static_F77='-non_shared'
14507 ;;
14508
14509 solaris*)
14510 lt_prog_compiler_pic_F77='-KPIC'
14511 lt_prog_compiler_static_F77='-Bstatic'
14512 case $cc_basename in
14513 f77* | f90* | f95*)
14514 lt_prog_compiler_wl_F77='-Qoption ld ';;
14515 *)
14516 lt_prog_compiler_wl_F77='-Wl,';;
14517 esac
14518 ;;
14519
14520 sunos4*)
14521 lt_prog_compiler_wl_F77='-Qoption ld '
14522 lt_prog_compiler_pic_F77='-PIC'
14523 lt_prog_compiler_static_F77='-Bstatic'
14524 ;;
14525
14526 sysv4 | sysv4.2uw2* | sysv4.3*)
14527 lt_prog_compiler_wl_F77='-Wl,'
14528 lt_prog_compiler_pic_F77='-KPIC'
14529 lt_prog_compiler_static_F77='-Bstatic'
14530 ;;
14531
14532 sysv4*MP*)
14533 if test -d /usr/nec ;then
14534 lt_prog_compiler_pic_F77='-Kconform_pic'
14535 lt_prog_compiler_static_F77='-Bstatic'
14536 fi
14537 ;;
14538
14539 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14540 lt_prog_compiler_wl_F77='-Wl,'
14541 lt_prog_compiler_pic_F77='-KPIC'
14542 lt_prog_compiler_static_F77='-Bstatic'
14543 ;;
14544
14545 unicos*)
14546 lt_prog_compiler_wl_F77='-Wl,'
14547 lt_prog_compiler_can_build_shared_F77=no
14548 ;;
14549
14550 uts4*)
14551 lt_prog_compiler_pic_F77='-pic'
14552 lt_prog_compiler_static_F77='-Bstatic'
14553 ;;
14554
14555 *)
14556 lt_prog_compiler_can_build_shared_F77=no
14557 ;;
14558 esac
14559 fi
14560
14561 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
14562 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
14563
14564 #
14565 # Check to make sure the PIC flag actually works.
14566 #
14567 if test -n "$lt_prog_compiler_pic_F77"; then
14568
14569 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
14570 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
14571 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
14572 $as_echo_n "(cached) " >&6
14573 else
14574 lt_cv_prog_compiler_pic_works_F77=no
14575 ac_outfile=conftest.$ac_objext
14576 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14577 lt_compiler_flag="$lt_prog_compiler_pic_F77"
14578 # Insert the option either (1) after the last *FLAGS variable, or
14579 # (2) before a word containing "conftest.", or (3) at the end.
14580 # Note that $ac_compile itself does not contain backslashes and begins
14581 # with a dollar sign (not a hyphen), so the echo should work correctly.
14582 # The option is referenced via a variable to avoid confusing sed.
14583 lt_compile=`echo "$ac_compile" | $SED \
14584 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14585 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14586 -e 's:$: $lt_compiler_flag:'`
14587 (eval echo "\"\$as_me:14587: $lt_compile\"" >&5)
14588 (eval "$lt_compile" 2>conftest.err)
14589 ac_status=$?
14590 cat conftest.err >&5
14591 echo "$as_me:14591: \$? = $ac_status" >&5
14592 if (exit $ac_status) && test -s "$ac_outfile"; then
14593 # The compiler can only warn and ignore the option if not recognized
14594 # So say no if there are warnings other than the usual output.
14595 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
14596 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14597 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14598 lt_cv_prog_compiler_pic_works_F77=yes
14599 fi
14600 fi
14601 $rm conftest*
14602
14603 fi
14604 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
14605 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
14606
14607 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
14608 case $lt_prog_compiler_pic_F77 in
14609 "" | " "*) ;;
14610 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
14611 esac
14612 else
14613 lt_prog_compiler_pic_F77=
14614 lt_prog_compiler_can_build_shared_F77=no
14615 fi
14616
14617 fi
14618 case $host_os in
14619 # For platforms which do not support PIC, -DPIC is meaningless:
14620 *djgpp*)
14621 lt_prog_compiler_pic_F77=
14622 ;;
14623 *)
14624 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
14625 ;;
14626 esac
14627
14628 #
14629 # Check to make sure the static flag actually works.
14630 #
14631 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
14632 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14633 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14634 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
14635 $as_echo_n "(cached) " >&6
14636 else
14637 lt_cv_prog_compiler_static_works_F77=no
14638 save_LDFLAGS="$LDFLAGS"
14639 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14640 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14641 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14642 # The linker can only warn and ignore the option if not recognized
14643 # So say no if there are warnings
14644 if test -s conftest.err; then
14645 # Append any errors to the config.log.
14646 cat conftest.err 1>&5
14647 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
14648 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14649 if diff conftest.exp conftest.er2 >/dev/null; then
14650 lt_cv_prog_compiler_static_works_F77=yes
14651 fi
14652 else
14653 lt_cv_prog_compiler_static_works_F77=yes
14654 fi
14655 fi
14656 $rm -r conftest*
14657 LDFLAGS="$save_LDFLAGS"
14658
14659 fi
14660 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
14661 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
14662
14663 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
14664 :
14665 else
14666 lt_prog_compiler_static_F77=
14667 fi
14668
14669
14670 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
14671 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
14672 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
14673 $as_echo_n "(cached) " >&6
14674 else
14675 lt_cv_prog_compiler_c_o_F77=no
14676 $rm -r conftest 2>/dev/null
14677 mkdir conftest
14678 cd conftest
14679 mkdir out
14680 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14681
14682 lt_compiler_flag="-o out/conftest2.$ac_objext"
14683 # Insert the option either (1) after the last *FLAGS variable, or
14684 # (2) before a word containing "conftest.", or (3) at the end.
14685 # Note that $ac_compile itself does not contain backslashes and begins
14686 # with a dollar sign (not a hyphen), so the echo should work correctly.
14687 lt_compile=`echo "$ac_compile" | $SED \
14688 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14689 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14690 -e 's:$: $lt_compiler_flag:'`
14691 (eval echo "\"\$as_me:14691: $lt_compile\"" >&5)
14692 (eval "$lt_compile" 2>out/conftest.err)
14693 ac_status=$?
14694 cat out/conftest.err >&5
14695 echo "$as_me:14695: \$? = $ac_status" >&5
14696 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14697 then
14698 # The compiler can only warn and ignore the option if not recognized
14699 # So say no if there are warnings
14700 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
14701 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14702 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14703 lt_cv_prog_compiler_c_o_F77=yes
14704 fi
14705 fi
14706 chmod u+w . 2>&5
14707 $rm conftest*
14708 # SGI C++ compiler will create directory out/ii_files/ for
14709 # template instantiation
14710 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14711 $rm out/* && rmdir out
14712 cd ..
14713 rmdir conftest
14714 $rm conftest*
14715
14716 fi
14717 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14718 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
14719
14720
14721 hard_links="nottested"
14722 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14723 # do not overwrite the value of need_locks provided by the user
14724 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14725 $as_echo_n "checking if we can lock with hard links... " >&6; }
14726 hard_links=yes
14727 $rm conftest*
14728 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14729 touch conftest.a
14730 ln conftest.a conftest.b 2>&5 || hard_links=no
14731 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14732 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
14733 $as_echo "$hard_links" >&6; }
14734 if test "$hard_links" = no; then
14735 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14736 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14737 need_locks=warn
14738 fi
14739 else
14740 need_locks=no
14741 fi
14742
14743 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14744 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14745
14746 runpath_var=
14747 allow_undefined_flag_F77=
14748 enable_shared_with_static_runtimes_F77=no
14749 archive_cmds_F77=
14750 archive_expsym_cmds_F77=
14751 old_archive_From_new_cmds_F77=
14752 old_archive_from_expsyms_cmds_F77=
14753 export_dynamic_flag_spec_F77=
14754 whole_archive_flag_spec_F77=
14755 thread_safe_flag_spec_F77=
14756 hardcode_libdir_flag_spec_F77=
14757 hardcode_libdir_flag_spec_ld_F77=
14758 hardcode_libdir_separator_F77=
14759 hardcode_direct_F77=no
14760 hardcode_minus_L_F77=no
14761 hardcode_shlibpath_var_F77=unsupported
14762 link_all_deplibs_F77=unknown
14763 hardcode_automatic_F77=no
14764 module_cmds_F77=
14765 module_expsym_cmds_F77=
14766 always_export_symbols_F77=no
14767 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14768 # include_expsyms should be a list of space-separated symbols to be *always*
14769 # included in the symbol list
14770 include_expsyms_F77=
14771 # exclude_expsyms can be an extended regexp of symbols to exclude
14772 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14773 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14774 # as well as any symbol that contains `d'.
14775 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14776 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14777 # platforms (ab)use it in PIC code, but their linkers get confused if
14778 # the symbol is explicitly referenced. Since portable code cannot
14779 # rely on this symbol name, it's probably fine to never include it in
14780 # preloaded symbol tables.
14781 # Exclude shared library initialization/finalization symbols.
14782 extract_expsyms_cmds=
14783 # Just being paranoid about ensuring that cc_basename is set.
14784 for cc_temp in $compiler""; do
14785 case $cc_temp in
14786 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14787 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14788 \-*) ;;
14789 *) break;;
14790 esac
14791 done
14792 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14793
14794 case $host_os in
14795 cygwin* | mingw* | pw32*)
14796 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14797 # When not using gcc, we currently assume that we are using
14798 # Microsoft Visual C++.
14799 if test "$GCC" != yes; then
14800 with_gnu_ld=no
14801 fi
14802 ;;
14803 interix*)
14804 # we just hope/assume this is gcc and not c89 (= MSVC++)
14805 with_gnu_ld=yes
14806 ;;
14807 openbsd*)
14808 with_gnu_ld=no
14809 ;;
14810 esac
14811
14812 ld_shlibs_F77=yes
14813 if test "$with_gnu_ld" = yes; then
14814 # If archive_cmds runs LD, not CC, wlarc should be empty
14815 wlarc='${wl}'
14816
14817 # Set some defaults for GNU ld with shared library support. These
14818 # are reset later if shared libraries are not supported. Putting them
14819 # here allows them to be overridden if necessary.
14820 runpath_var=LD_RUN_PATH
14821 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14822 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14823 # ancient GNU ld didn't support --whole-archive et. al.
14824 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14825 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14826 else
14827 whole_archive_flag_spec_F77=
14828 fi
14829 supports_anon_versioning=no
14830 case `$LD -v 2>/dev/null` in
14831 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14832 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14833 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14834 *\ 2.11.*) ;; # other 2.11 versions
14835 *) supports_anon_versioning=yes ;;
14836 esac
14837
14838 # See if GNU ld supports shared libraries.
14839 case $host_os in
14840 aix[3-9]*)
14841 # On AIX/PPC, the GNU linker is very broken
14842 if test "$host_cpu" != ia64; then
14843 ld_shlibs_F77=no
14844 cat <<EOF 1>&2
14845
14846 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14847 *** to be unable to reliably create shared libraries on AIX.
14848 *** Therefore, libtool is disabling shared libraries support. If you
14849 *** really care for shared libraries, you may want to modify your PATH
14850 *** so that a non-GNU linker is found, and then restart.
14851
14852 EOF
14853 fi
14854 ;;
14855
14856 amigaos*)
14857 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)'
14858 hardcode_libdir_flag_spec_F77='-L$libdir'
14859 hardcode_minus_L_F77=yes
14860
14861 # Samuel A. Falvo II <[email protected]> reports
14862 # that the semantics of dynamic libraries on AmigaOS, at least up
14863 # to version 4, is to share data among multiple programs linked
14864 # with the same dynamic library. Since this doesn't match the
14865 # behavior of shared libraries on other platforms, we can't use
14866 # them.
14867 ld_shlibs_F77=no
14868 ;;
14869
14870 beos*)
14871 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14872 allow_undefined_flag_F77=unsupported
14873 # Joseph Beckenbach <[email protected]> says some releases of gcc
14874 # support --undefined. This deserves some investigation. FIXME
14875 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14876 else
14877 ld_shlibs_F77=no
14878 fi
14879 ;;
14880
14881 cygwin* | mingw* | pw32*)
14882 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14883 # as there is no search path for DLLs.
14884 hardcode_libdir_flag_spec_F77='-L$libdir'
14885 allow_undefined_flag_F77=unsupported
14886 always_export_symbols_F77=no
14887 enable_shared_with_static_runtimes_F77=yes
14888 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14889
14890 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14891 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14892 # If the export-symbols file already is a .def file (1st line
14893 # is EXPORTS), use it as is; otherwise, prepend...
14894 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14895 cp $export_symbols $output_objdir/$soname.def;
14896 else
14897 echo EXPORTS > $output_objdir/$soname.def;
14898 cat $export_symbols >> $output_objdir/$soname.def;
14899 fi~
14900 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14901 else
14902 ld_shlibs_F77=no
14903 fi
14904 ;;
14905
14906 interix[3-9]*)
14907 hardcode_direct_F77=no
14908 hardcode_shlibpath_var_F77=no
14909 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14910 export_dynamic_flag_spec_F77='${wl}-E'
14911 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14912 # Instead, shared libraries are loaded at an image base (0x10000000 by
14913 # default) and relocated if they conflict, which is a slow very memory
14914 # consuming and fragmenting process. To avoid this, we pick a random,
14915 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14916 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14917 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'
14918 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'
14919 ;;
14920
14921 gnu* | linux* | k*bsd*-gnu)
14922 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14923 tmp_addflag=
14924 case $cc_basename,$host_cpu in
14925 pgcc*) # Portland Group C compiler
14926 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'
14927 tmp_addflag=' $pic_flag'
14928 ;;
14929 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14930 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'
14931 tmp_addflag=' $pic_flag -Mnomain' ;;
14932 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14933 tmp_addflag=' -i_dynamic' ;;
14934 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14935 tmp_addflag=' -i_dynamic -nofor_main' ;;
14936 ifc* | ifort*) # Intel Fortran compiler
14937 tmp_addflag=' -nofor_main' ;;
14938 esac
14939 case `$CC -V 2>&1 | sed 5q` in
14940 *Sun\ C*) # Sun C 5.9
14941 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'
14942 tmp_sharedflag='-G' ;;
14943 *Sun\ F*) # Sun Fortran 8.3
14944 tmp_sharedflag='-G' ;;
14945 *)
14946 tmp_sharedflag='-shared' ;;
14947 esac
14948 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14949
14950 if test $supports_anon_versioning = yes; then
14951 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14952 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14953 $echo "local: *; };" >> $output_objdir/$libname.ver~
14954 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14955 fi
14956 else
14957 ld_shlibs_F77=no
14958 fi
14959 ;;
14960
14961 netbsd*)
14962 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14963 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14964 wlarc=
14965 else
14966 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14967 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14968 fi
14969 ;;
14970
14971 solaris*)
14972 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14973 ld_shlibs_F77=no
14974 cat <<EOF 1>&2
14975
14976 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14977 *** create shared libraries on Solaris systems. Therefore, libtool
14978 *** is disabling shared libraries support. We urge you to upgrade GNU
14979 *** binutils to release 2.9.1 or newer. Another option is to modify
14980 *** your PATH or compiler configuration so that the native linker is
14981 *** used, and then restart.
14982
14983 EOF
14984 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14985 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14986 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14987 else
14988 ld_shlibs_F77=no
14989 fi
14990 ;;
14991
14992 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14993 case `$LD -v 2>&1` in
14994 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14995 ld_shlibs_F77=no
14996 cat <<_LT_EOF 1>&2
14997
14998 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14999 *** reliably create shared libraries on SCO systems. Therefore, libtool
15000 *** is disabling shared libraries support. We urge you to upgrade GNU
15001 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
15002 *** your PATH or compiler configuration so that the native linker is
15003 *** used, and then restart.
15004
15005 _LT_EOF
15006 ;;
15007 *)
15008 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15009 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
15010 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
15011 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
15012 else
15013 ld_shlibs_F77=no
15014 fi
15015 ;;
15016 esac
15017 ;;
15018
15019 sunos4*)
15020 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15021 wlarc=
15022 hardcode_direct_F77=yes
15023 hardcode_shlibpath_var_F77=no
15024 ;;
15025
15026 *)
15027 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15028 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15029 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15030 else
15031 ld_shlibs_F77=no
15032 fi
15033 ;;
15034 esac
15035
15036 if test "$ld_shlibs_F77" = no; then
15037 runpath_var=
15038 hardcode_libdir_flag_spec_F77=
15039 export_dynamic_flag_spec_F77=
15040 whole_archive_flag_spec_F77=
15041 fi
15042 else
15043 # PORTME fill in a description of your system's linker (not GNU ld)
15044 case $host_os in
15045 aix3*)
15046 allow_undefined_flag_F77=unsupported
15047 always_export_symbols_F77=yes
15048 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'
15049 # Note: this linker hardcodes the directories in LIBPATH if there
15050 # are no directories specified by -L.
15051 hardcode_minus_L_F77=yes
15052 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
15053 # Neither direct hardcoding nor static linking is supported with a
15054 # broken collect2.
15055 hardcode_direct_F77=unsupported
15056 fi
15057 ;;
15058
15059 aix[4-9]*)
15060 if test "$host_cpu" = ia64; then
15061 # On IA64, the linker does run time linking by default, so we don't
15062 # have to do anything special.
15063 aix_use_runtimelinking=no
15064 exp_sym_flag='-Bexport'
15065 no_entry_flag=""
15066 else
15067 # If we're using GNU nm, then we don't want the "-C" option.
15068 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15069 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15070 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'
15071 else
15072 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'
15073 fi
15074 aix_use_runtimelinking=no
15075
15076 # Test if we are trying to use run time linking or normal
15077 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15078 # need to do runtime linking.
15079 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15080 for ld_flag in $LDFLAGS; do
15081 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15082 aix_use_runtimelinking=yes
15083 break
15084 fi
15085 done
15086 ;;
15087 esac
15088
15089 exp_sym_flag='-bexport'
15090 no_entry_flag='-bnoentry'
15091 fi
15092
15093 # When large executables or shared objects are built, AIX ld can
15094 # have problems creating the table of contents. If linking a library
15095 # or program results in "error TOC overflow" add -mminimal-toc to
15096 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15097 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15098
15099 archive_cmds_F77=''
15100 hardcode_direct_F77=yes
15101 hardcode_libdir_separator_F77=':'
15102 link_all_deplibs_F77=yes
15103
15104 if test "$GCC" = yes; then
15105 case $host_os in aix4.[012]|aix4.[012].*)
15106 # We only want to do this on AIX 4.2 and lower, the check
15107 # below for broken collect2 doesn't work under 4.3+
15108 collect2name=`${CC} -print-prog-name=collect2`
15109 if test -f "$collect2name" && \
15110 strings "$collect2name" | grep resolve_lib_name >/dev/null
15111 then
15112 # We have reworked collect2
15113 :
15114 else
15115 # We have old collect2
15116 hardcode_direct_F77=unsupported
15117 # It fails to find uninstalled libraries when the uninstalled
15118 # path is not listed in the libpath. Setting hardcode_minus_L
15119 # to unsupported forces relinking
15120 hardcode_minus_L_F77=yes
15121 hardcode_libdir_flag_spec_F77='-L$libdir'
15122 hardcode_libdir_separator_F77=
15123 fi
15124 ;;
15125 esac
15126 shared_flag='-shared'
15127 if test "$aix_use_runtimelinking" = yes; then
15128 shared_flag="$shared_flag "'${wl}-G'
15129 fi
15130 else
15131 # not using gcc
15132 if test "$host_cpu" = ia64; then
15133 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15134 # chokes on -Wl,-G. The following line is correct:
15135 shared_flag='-G'
15136 else
15137 if test "$aix_use_runtimelinking" = yes; then
15138 shared_flag='${wl}-G'
15139 else
15140 shared_flag='${wl}-bM:SRE'
15141 fi
15142 fi
15143 fi
15144
15145 # It seems that -bexpall does not export symbols beginning with
15146 # underscore (_), so it is better to generate a list of symbols to export.
15147 always_export_symbols_F77=yes
15148 if test "$aix_use_runtimelinking" = yes; then
15149 # Warning - without using the other runtime loading flags (-brtl),
15150 # -berok will link without error, but may produce a broken library.
15151 allow_undefined_flag_F77='-berok'
15152 # Determine the default libpath from the value encoded in an empty executable.
15153 cat >conftest.$ac_ext <<_ACEOF
15154 program main
15155
15156 end
15157 _ACEOF
15158 rm -f conftest.$ac_objext conftest$ac_exeext
15159 if { (ac_try="$ac_link"
15160 case "(($ac_try" in
15161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15162 *) ac_try_echo=$ac_try;;
15163 esac
15164 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15165 $as_echo "$ac_try_echo") >&5
15166 (eval "$ac_link") 2>conftest.er1
15167 ac_status=$?
15168 grep -v '^ *+' conftest.er1 >conftest.err
15169 rm -f conftest.er1
15170 cat conftest.err >&5
15171 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172 (exit $ac_status); } && {
15173 test -z "$ac_f77_werror_flag" ||
15174 test ! -s conftest.err
15175 } && test -s conftest$ac_exeext && {
15176 test "$cross_compiling" = yes ||
15177 $as_test_x conftest$ac_exeext
15178 }; then
15179
15180 lt_aix_libpath_sed='
15181 /Import File Strings/,/^$/ {
15182 /^0/ {
15183 s/^0 *\(.*\)$/\1/
15184 p
15185 }
15186 }'
15187 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15188 # Check for a 64-bit object if we didn't find anything.
15189 if test -z "$aix_libpath"; then
15190 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15191 fi
15192 else
15193 $as_echo "$as_me: failed program was:" >&5
15194 sed 's/^/| /' conftest.$ac_ext >&5
15195
15196
15197 fi
15198
15199 rm -rf conftest.dSYM
15200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15201 conftest$ac_exeext conftest.$ac_ext
15202 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15203
15204 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15205 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"
15206 else
15207 if test "$host_cpu" = ia64; then
15208 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15209 allow_undefined_flag_F77="-z nodefs"
15210 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"
15211 else
15212 # Determine the default libpath from the value encoded in an empty executable.
15213 cat >conftest.$ac_ext <<_ACEOF
15214 program main
15215
15216 end
15217 _ACEOF
15218 rm -f conftest.$ac_objext conftest$ac_exeext
15219 if { (ac_try="$ac_link"
15220 case "(($ac_try" in
15221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15222 *) ac_try_echo=$ac_try;;
15223 esac
15224 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
15225 $as_echo "$ac_try_echo") >&5
15226 (eval "$ac_link") 2>conftest.er1
15227 ac_status=$?
15228 grep -v '^ *+' conftest.er1 >conftest.err
15229 rm -f conftest.er1
15230 cat conftest.err >&5
15231 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15232 (exit $ac_status); } && {
15233 test -z "$ac_f77_werror_flag" ||
15234 test ! -s conftest.err
15235 } && test -s conftest$ac_exeext && {
15236 test "$cross_compiling" = yes ||
15237 $as_test_x conftest$ac_exeext
15238 }; then
15239
15240 lt_aix_libpath_sed='
15241 /Import File Strings/,/^$/ {
15242 /^0/ {
15243 s/^0 *\(.*\)$/\1/
15244 p
15245 }
15246 }'
15247 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15248 # Check for a 64-bit object if we didn't find anything.
15249 if test -z "$aix_libpath"; then
15250 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15251 fi
15252 else
15253 $as_echo "$as_me: failed program was:" >&5
15254 sed 's/^/| /' conftest.$ac_ext >&5
15255
15256
15257 fi
15258
15259 rm -rf conftest.dSYM
15260 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15261 conftest$ac_exeext conftest.$ac_ext
15262 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15263
15264 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15265 # Warning - without using the other run time loading flags,
15266 # -berok will link without error, but may produce a broken library.
15267 no_undefined_flag_F77=' ${wl}-bernotok'
15268 allow_undefined_flag_F77=' ${wl}-berok'
15269 # Exported symbols can be pulled into shared objects from archives
15270 whole_archive_flag_spec_F77='$convenience'
15271 archive_cmds_need_lc_F77=yes
15272 # This is similar to how AIX traditionally builds its shared libraries.
15273 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'
15274 fi
15275 fi
15276 ;;
15277
15278 amigaos*)
15279 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)'
15280 hardcode_libdir_flag_spec_F77='-L$libdir'
15281 hardcode_minus_L_F77=yes
15282 # see comment about different semantics on the GNU ld section
15283 ld_shlibs_F77=no
15284 ;;
15285
15286 bsdi[45]*)
15287 export_dynamic_flag_spec_F77=-rdynamic
15288 ;;
15289
15290 cygwin* | mingw* | pw32*)
15291 # When not using gcc, we currently assume that we are using
15292 # Microsoft Visual C++.
15293 # hardcode_libdir_flag_spec is actually meaningless, as there is
15294 # no search path for DLLs.
15295 hardcode_libdir_flag_spec_F77=' '
15296 allow_undefined_flag_F77=unsupported
15297 # Tell ltmain to make .lib files, not .a files.
15298 libext=lib
15299 # Tell ltmain to make .dll files, not .so files.
15300 shrext_cmds=".dll"
15301 # FIXME: Setting linknames here is a bad hack.
15302 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15303 # The linker will automatically build a .lib file if we build a DLL.
15304 old_archive_From_new_cmds_F77='true'
15305 # FIXME: Should let the user specify the lib program.
15306 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
15307 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
15308 enable_shared_with_static_runtimes_F77=yes
15309 ;;
15310
15311 darwin* | rhapsody*)
15312 case $host_os in
15313 rhapsody* | darwin1.[012])
15314 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
15315 ;;
15316 *) # Darwin 1.3 on
15317 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15318 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15319 else
15320 case ${MACOSX_DEPLOYMENT_TARGET} in
15321 10.[012])
15322 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
15323 ;;
15324 10.*)
15325 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
15326 ;;
15327 esac
15328 fi
15329 ;;
15330 esac
15331 archive_cmds_need_lc_F77=no
15332 hardcode_direct_F77=no
15333 hardcode_automatic_F77=yes
15334 hardcode_shlibpath_var_F77=unsupported
15335 whole_archive_flag_spec_F77=''
15336 link_all_deplibs_F77=yes
15337 if test "$GCC" = yes ; then
15338 output_verbose_link_cmd='echo'
15339 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}"
15340 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15341 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}"
15342 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}"
15343 else
15344 case $cc_basename in
15345 xlc*)
15346 output_verbose_link_cmd='echo'
15347 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
15348 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15349 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
15350 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}'
15351 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}'
15352 ;;
15353 *)
15354 ld_shlibs_F77=no
15355 ;;
15356 esac
15357 fi
15358 ;;
15359
15360 dgux*)
15361 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15362 hardcode_libdir_flag_spec_F77='-L$libdir'
15363 hardcode_shlibpath_var_F77=no
15364 ;;
15365
15366 freebsd1*)
15367 ld_shlibs_F77=no
15368 ;;
15369
15370 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15371 # support. Future versions do this automatically, but an explicit c++rt0.o
15372 # does not break anything, and helps significantly (at the cost of a little
15373 # extra space).
15374 freebsd2.2*)
15375 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15376 hardcode_libdir_flag_spec_F77='-R$libdir'
15377 hardcode_direct_F77=yes
15378 hardcode_shlibpath_var_F77=no
15379 ;;
15380
15381 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
15382 freebsd2*)
15383 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15384 hardcode_direct_F77=yes
15385 hardcode_minus_L_F77=yes
15386 hardcode_shlibpath_var_F77=no
15387 ;;
15388
15389 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15390 freebsd* | dragonfly*)
15391 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
15392 hardcode_libdir_flag_spec_F77='-R$libdir'
15393 hardcode_direct_F77=yes
15394 hardcode_shlibpath_var_F77=no
15395 ;;
15396
15397 hpux9*)
15398 if test "$GCC" = yes; then
15399 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'
15400 else
15401 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'
15402 fi
15403 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15404 hardcode_libdir_separator_F77=:
15405 hardcode_direct_F77=yes
15406
15407 # hardcode_minus_L: Not really in the search PATH,
15408 # but as the default location of the library.
15409 hardcode_minus_L_F77=yes
15410 export_dynamic_flag_spec_F77='${wl}-E'
15411 ;;
15412
15413 hpux10*)
15414 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15415 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15416 else
15417 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15418 fi
15419 if test "$with_gnu_ld" = no; then
15420 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15421 hardcode_libdir_separator_F77=:
15422
15423 hardcode_direct_F77=yes
15424 export_dynamic_flag_spec_F77='${wl}-E'
15425
15426 # hardcode_minus_L: Not really in the search PATH,
15427 # but as the default location of the library.
15428 hardcode_minus_L_F77=yes
15429 fi
15430 ;;
15431
15432 hpux11*)
15433 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
15434 case $host_cpu in
15435 hppa*64*)
15436 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15437 ;;
15438 ia64*)
15439 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15440 ;;
15441 *)
15442 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15443 ;;
15444 esac
15445 else
15446 case $host_cpu in
15447 hppa*64*)
15448 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15449 ;;
15450 ia64*)
15451 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15452 ;;
15453 *)
15454 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15455 ;;
15456 esac
15457 fi
15458 if test "$with_gnu_ld" = no; then
15459 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
15460 hardcode_libdir_separator_F77=:
15461
15462 case $host_cpu in
15463 hppa*64*|ia64*)
15464 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
15465 hardcode_direct_F77=no
15466 hardcode_shlibpath_var_F77=no
15467 ;;
15468 *)
15469 hardcode_direct_F77=yes
15470 export_dynamic_flag_spec_F77='${wl}-E'
15471
15472 # hardcode_minus_L: Not really in the search PATH,
15473 # but as the default location of the library.
15474 hardcode_minus_L_F77=yes
15475 ;;
15476 esac
15477 fi
15478 ;;
15479
15480 irix5* | irix6* | nonstopux*)
15481 if test "$GCC" = yes; then
15482 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'
15483 else
15484 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'
15485 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
15486 fi
15487 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15488 hardcode_libdir_separator_F77=:
15489 link_all_deplibs_F77=yes
15490 ;;
15491
15492 netbsd*)
15493 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15494 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15495 else
15496 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15497 fi
15498 hardcode_libdir_flag_spec_F77='-R$libdir'
15499 hardcode_direct_F77=yes
15500 hardcode_shlibpath_var_F77=no
15501 ;;
15502
15503 newsos6)
15504 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15505 hardcode_direct_F77=yes
15506 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15507 hardcode_libdir_separator_F77=:
15508 hardcode_shlibpath_var_F77=no
15509 ;;
15510
15511 openbsd*)
15512 if test -f /usr/libexec/ld.so; then
15513 hardcode_direct_F77=yes
15514 hardcode_shlibpath_var_F77=no
15515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15516 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15517 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15518 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15519 export_dynamic_flag_spec_F77='${wl}-E'
15520 else
15521 case $host_os in
15522 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15523 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15524 hardcode_libdir_flag_spec_F77='-R$libdir'
15525 ;;
15526 *)
15527 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15528 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
15529 ;;
15530 esac
15531 fi
15532 else
15533 ld_shlibs_F77=no
15534 fi
15535 ;;
15536
15537 os2*)
15538 hardcode_libdir_flag_spec_F77='-L$libdir'
15539 hardcode_minus_L_F77=yes
15540 allow_undefined_flag_F77=unsupported
15541 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'
15542 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15543 ;;
15544
15545 osf3*)
15546 if test "$GCC" = yes; then
15547 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15548 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'
15549 else
15550 allow_undefined_flag_F77=' -expect_unresolved \*'
15551 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'
15552 fi
15553 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15554 hardcode_libdir_separator_F77=:
15555 ;;
15556
15557 osf4* | osf5*) # as osf3* with the addition of -msym flag
15558 if test "$GCC" = yes; then
15559 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
15560 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'
15561 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
15562 else
15563 allow_undefined_flag_F77=' -expect_unresolved \*'
15564 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'
15565 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~
15566 $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'
15567
15568 # Both c and cxx compiler support -rpath directly
15569 hardcode_libdir_flag_spec_F77='-rpath $libdir'
15570 fi
15571 hardcode_libdir_separator_F77=:
15572 ;;
15573
15574 solaris*)
15575 no_undefined_flag_F77=' -z text'
15576 if test "$GCC" = yes; then
15577 wlarc='${wl}'
15578 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15579 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15580 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
15581 else
15582 wlarc=''
15583 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15584 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15585 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
15586 fi
15587 hardcode_libdir_flag_spec_F77='-R$libdir'
15588 hardcode_shlibpath_var_F77=no
15589 case $host_os in
15590 solaris2.[0-5] | solaris2.[0-5].*) ;;
15591 *)
15592 # The compiler driver will combine and reorder linker options,
15593 # but understands `-z linker_flag'. GCC discards it without `$wl',
15594 # but is careful enough not to reorder.
15595 # Supported since Solaris 2.6 (maybe 2.5.1?)
15596 if test "$GCC" = yes; then
15597 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15598 else
15599 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
15600 fi
15601 ;;
15602 esac
15603 link_all_deplibs_F77=yes
15604 ;;
15605
15606 sunos4*)
15607 if test "x$host_vendor" = xsequent; then
15608 # Use $CC to link under sequent, because it throws in some extra .o
15609 # files that make .init and .fini sections work.
15610 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15611 else
15612 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15613 fi
15614 hardcode_libdir_flag_spec_F77='-L$libdir'
15615 hardcode_direct_F77=yes
15616 hardcode_minus_L_F77=yes
15617 hardcode_shlibpath_var_F77=no
15618 ;;
15619
15620 sysv4)
15621 case $host_vendor in
15622 sni)
15623 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15624 hardcode_direct_F77=yes # is this really true???
15625 ;;
15626 siemens)
15627 ## LD is ld it makes a PLAMLIB
15628 ## CC just makes a GrossModule.
15629 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15630 reload_cmds_F77='$CC -r -o $output$reload_objs'
15631 hardcode_direct_F77=no
15632 ;;
15633 motorola)
15634 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15635 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
15636 ;;
15637 esac
15638 runpath_var='LD_RUN_PATH'
15639 hardcode_shlibpath_var_F77=no
15640 ;;
15641
15642 sysv4.3*)
15643 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15644 hardcode_shlibpath_var_F77=no
15645 export_dynamic_flag_spec_F77='-Bexport'
15646 ;;
15647
15648 sysv4*MP*)
15649 if test -d /usr/nec; then
15650 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15651 hardcode_shlibpath_var_F77=no
15652 runpath_var=LD_RUN_PATH
15653 hardcode_runpath_var=yes
15654 ld_shlibs_F77=yes
15655 fi
15656 ;;
15657
15658 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15659 no_undefined_flag_F77='${wl}-z,text'
15660 archive_cmds_need_lc_F77=no
15661 hardcode_shlibpath_var_F77=no
15662 runpath_var='LD_RUN_PATH'
15663
15664 if test "$GCC" = yes; then
15665 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15666 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15667 else
15668 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15669 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15670 fi
15671 ;;
15672
15673 sysv5* | sco3.2v5* | sco5v6*)
15674 # Note: We can NOT use -z defs as we might desire, because we do not
15675 # link with -lc, and that would cause any symbols used from libc to
15676 # always be unresolved, which means just about no library would
15677 # ever link correctly. If we're not using GNU ld we use -z text
15678 # though, which does catch some bad symbols but isn't as heavy-handed
15679 # as -z defs.
15680 no_undefined_flag_F77='${wl}-z,text'
15681 allow_undefined_flag_F77='${wl}-z,nodefs'
15682 archive_cmds_need_lc_F77=no
15683 hardcode_shlibpath_var_F77=no
15684 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
15685 hardcode_libdir_separator_F77=':'
15686 link_all_deplibs_F77=yes
15687 export_dynamic_flag_spec_F77='${wl}-Bexport'
15688 runpath_var='LD_RUN_PATH'
15689
15690 if test "$GCC" = yes; then
15691 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15692 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15693 else
15694 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15695 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
15696 fi
15697 ;;
15698
15699 uts4*)
15700 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15701 hardcode_libdir_flag_spec_F77='-L$libdir'
15702 hardcode_shlibpath_var_F77=no
15703 ;;
15704
15705 *)
15706 ld_shlibs_F77=no
15707 ;;
15708 esac
15709 fi
15710
15711 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15712 $as_echo "$ld_shlibs_F77" >&6; }
15713 test "$ld_shlibs_F77" = no && can_build_shared=no
15714
15715 #
15716 # Do we need to explicitly link libc?
15717 #
15718 case "x$archive_cmds_need_lc_F77" in
15719 x|xyes)
15720 # Assume -lc should be added
15721 archive_cmds_need_lc_F77=yes
15722
15723 if test "$enable_shared" = yes && test "$GCC" = yes; then
15724 case $archive_cmds_F77 in
15725 *'~'*)
15726 # FIXME: we may have to deal with multi-command sequences.
15727 ;;
15728 '$CC '*)
15729 # Test whether the compiler implicitly links with -lc since on some
15730 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15731 # to ld, don't add -lc before -lgcc.
15732 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15733 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15734 $rm conftest*
15735 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15736
15737 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15738 (eval $ac_compile) 2>&5
15739 ac_status=$?
15740 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15741 (exit $ac_status); } 2>conftest.err; then
15742 soname=conftest
15743 lib=conftest
15744 libobjs=conftest.$ac_objext
15745 deplibs=
15746 wl=$lt_prog_compiler_wl_F77
15747 pic_flag=$lt_prog_compiler_pic_F77
15748 compiler_flags=-v
15749 linker_flags=-v
15750 verstring=
15751 output_objdir=.
15752 libname=conftest
15753 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15754 allow_undefined_flag_F77=
15755 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15756 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15757 ac_status=$?
15758 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
15759 (exit $ac_status); }
15760 then
15761 archive_cmds_need_lc_F77=no
15762 else
15763 archive_cmds_need_lc_F77=yes
15764 fi
15765 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15766 else
15767 cat conftest.err 1>&5
15768 fi
15769 $rm conftest*
15770 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15771 $as_echo "$archive_cmds_need_lc_F77" >&6; }
15772 ;;
15773 esac
15774 fi
15775 ;;
15776 esac
15777
15778 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15779 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15780 library_names_spec=
15781 libname_spec='lib$name'
15782 soname_spec=
15783 shrext_cmds=".so"
15784 postinstall_cmds=
15785 postuninstall_cmds=
15786 finish_cmds=
15787 finish_eval=
15788 shlibpath_var=
15789 shlibpath_overrides_runpath=unknown
15790 version_type=none
15791 dynamic_linker="$host_os ld.so"
15792 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15793
15794 need_lib_prefix=unknown
15795 hardcode_into_libs=no
15796
15797 # when you set need_version to no, make sure it does not cause -set_version
15798 # flags to be left without arguments
15799 need_version=unknown
15800
15801 case $host_os in
15802 aix3*)
15803 version_type=linux
15804 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15805 shlibpath_var=LIBPATH
15806
15807 # AIX 3 has no versioning support, so we append a major version to the name.
15808 soname_spec='${libname}${release}${shared_ext}$major'
15809 ;;
15810
15811 aix[4-9]*)
15812 version_type=linux
15813 need_lib_prefix=no
15814 need_version=no
15815 hardcode_into_libs=yes
15816 if test "$host_cpu" = ia64; then
15817 # AIX 5 supports IA64
15818 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15819 shlibpath_var=LD_LIBRARY_PATH
15820 else
15821 # With GCC up to 2.95.x, collect2 would create an import file
15822 # for dependence libraries. The import file would start with
15823 # the line `#! .'. This would cause the generated library to
15824 # depend on `.', always an invalid library. This was fixed in
15825 # development snapshots of GCC prior to 3.0.
15826 case $host_os in
15827 aix4 | aix4.[01] | aix4.[01].*)
15828 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15829 echo ' yes '
15830 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15831 :
15832 else
15833 can_build_shared=no
15834 fi
15835 ;;
15836 esac
15837 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15838 # soname into executable. Probably we can add versioning support to
15839 # collect2, so additional links can be useful in future.
15840 if test "$aix_use_runtimelinking" = yes; then
15841 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15842 # instead of lib<name>.a to let people know that these are not
15843 # typical AIX shared libraries.
15844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15845 else
15846 # We preserve .a as extension for shared libraries through AIX4.2
15847 # and later when we are not doing run time linking.
15848 library_names_spec='${libname}${release}.a $libname.a'
15849 soname_spec='${libname}${release}${shared_ext}$major'
15850 fi
15851 shlibpath_var=LIBPATH
15852 fi
15853 ;;
15854
15855 amigaos*)
15856 library_names_spec='$libname.ixlibrary $libname.a'
15857 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15858 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'
15859 ;;
15860
15861 beos*)
15862 library_names_spec='${libname}${shared_ext}'
15863 dynamic_linker="$host_os ld.so"
15864 shlibpath_var=LIBRARY_PATH
15865 ;;
15866
15867 bsdi[45]*)
15868 version_type=linux
15869 need_version=no
15870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15871 soname_spec='${libname}${release}${shared_ext}$major'
15872 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15873 shlibpath_var=LD_LIBRARY_PATH
15874 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15875 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15876 # the default ld.so.conf also contains /usr/contrib/lib and
15877 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15878 # libtool to hard-code these into programs
15879 ;;
15880
15881 cygwin* | mingw* | pw32*)
15882 version_type=windows
15883 shrext_cmds=".dll"
15884 need_version=no
15885 need_lib_prefix=no
15886
15887 case $GCC,$host_os in
15888 yes,cygwin* | yes,mingw* | yes,pw32*)
15889 library_names_spec='$libname.dll.a'
15890 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15891 postinstall_cmds='base_file=`basename \${file}`~
15892 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15893 dldir=$destdir/`dirname \$dlpath`~
15894 test -d \$dldir || mkdir -p \$dldir~
15895 $install_prog $dir/$dlname \$dldir/$dlname~
15896 chmod a+x \$dldir/$dlname'
15897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15898 dlpath=$dir/\$dldll~
15899 $rm \$dlpath'
15900 shlibpath_overrides_runpath=yes
15901
15902 case $host_os in
15903 cygwin*)
15904 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15905 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15906 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15907 ;;
15908 mingw*)
15909 # MinGW DLLs use traditional 'lib' prefix
15910 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15911 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15912 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15913 # It is most probably a Windows format PATH printed by
15914 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15915 # path with ; separators, and with drive letters. We can handle the
15916 # drive letters (cygwin fileutils understands them), so leave them,
15917 # especially as we might pass files found there to a mingw objdump,
15918 # which wouldn't understand a cygwinified path. Ahh.
15919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15920 else
15921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15922 fi
15923 ;;
15924 pw32*)
15925 # pw32 DLLs use 'pw' prefix rather than 'lib'
15926 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15927 ;;
15928 esac
15929 ;;
15930
15931 *)
15932 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15933 ;;
15934 esac
15935 dynamic_linker='Win32 ld.exe'
15936 # FIXME: first we should search . and the directory the executable is in
15937 shlibpath_var=PATH
15938 ;;
15939
15940 darwin* | rhapsody*)
15941 dynamic_linker="$host_os dyld"
15942 version_type=darwin
15943 need_lib_prefix=no
15944 need_version=no
15945 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15946 soname_spec='${libname}${release}${major}$shared_ext'
15947 shlibpath_overrides_runpath=yes
15948 shlibpath_var=DYLD_LIBRARY_PATH
15949 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15950
15951 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15952 ;;
15953
15954 dgux*)
15955 version_type=linux
15956 need_lib_prefix=no
15957 need_version=no
15958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15959 soname_spec='${libname}${release}${shared_ext}$major'
15960 shlibpath_var=LD_LIBRARY_PATH
15961 ;;
15962
15963 freebsd1*)
15964 dynamic_linker=no
15965 ;;
15966
15967 freebsd* | dragonfly*)
15968 # DragonFly does not have aout. When/if they implement a new
15969 # versioning mechanism, adjust this.
15970 if test -x /usr/bin/objformat; then
15971 objformat=`/usr/bin/objformat`
15972 else
15973 case $host_os in
15974 freebsd[123]*) objformat=aout ;;
15975 *) objformat=elf ;;
15976 esac
15977 fi
15978 # Handle Gentoo/FreeBSD as it was Linux
15979 case $host_vendor in
15980 gentoo)
15981 version_type=linux ;;
15982 *)
15983 version_type=freebsd-$objformat ;;
15984 esac
15985
15986 case $version_type in
15987 freebsd-elf*)
15988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15989 need_version=no
15990 need_lib_prefix=no
15991 ;;
15992 freebsd-*)
15993 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15994 need_version=yes
15995 ;;
15996 linux)
15997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15998 soname_spec='${libname}${release}${shared_ext}$major'
15999 need_lib_prefix=no
16000 need_version=no
16001 ;;
16002 esac
16003 shlibpath_var=LD_LIBRARY_PATH
16004 case $host_os in
16005 freebsd2*)
16006 shlibpath_overrides_runpath=yes
16007 ;;
16008 freebsd3.[01]* | freebsdelf3.[01]*)
16009 shlibpath_overrides_runpath=yes
16010 hardcode_into_libs=yes
16011 ;;
16012 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16013 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16014 shlibpath_overrides_runpath=no
16015 hardcode_into_libs=yes
16016 ;;
16017 *) # from 4.6 on, and DragonFly
16018 shlibpath_overrides_runpath=yes
16019 hardcode_into_libs=yes
16020 ;;
16021 esac
16022 ;;
16023
16024 gnu*)
16025 version_type=linux
16026 need_lib_prefix=no
16027 need_version=no
16028 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16029 soname_spec='${libname}${release}${shared_ext}$major'
16030 shlibpath_var=LD_LIBRARY_PATH
16031 hardcode_into_libs=yes
16032 ;;
16033
16034 hpux9* | hpux10* | hpux11*)
16035 # Give a soname corresponding to the major version so that dld.sl refuses to
16036 # link against other versions.
16037 version_type=sunos
16038 need_lib_prefix=no
16039 need_version=no
16040 case $host_cpu in
16041 ia64*)
16042 shrext_cmds='.so'
16043 hardcode_into_libs=yes
16044 dynamic_linker="$host_os dld.so"
16045 shlibpath_var=LD_LIBRARY_PATH
16046 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 if test "X$HPUX_IA64_MODE" = X32; then
16050 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16051 else
16052 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16053 fi
16054 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16055 ;;
16056 hppa*64*)
16057 shrext_cmds='.sl'
16058 hardcode_into_libs=yes
16059 dynamic_linker="$host_os dld.sl"
16060 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16061 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16063 soname_spec='${libname}${release}${shared_ext}$major'
16064 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16065 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16066 ;;
16067 *)
16068 shrext_cmds='.sl'
16069 dynamic_linker="$host_os dld.sl"
16070 shlibpath_var=SHLIB_PATH
16071 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16072 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16073 soname_spec='${libname}${release}${shared_ext}$major'
16074 ;;
16075 esac
16076 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16077 postinstall_cmds='chmod 555 $lib'
16078 ;;
16079
16080 interix[3-9]*)
16081 version_type=linux
16082 need_lib_prefix=no
16083 need_version=no
16084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16085 soname_spec='${libname}${release}${shared_ext}$major'
16086 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16087 shlibpath_var=LD_LIBRARY_PATH
16088 shlibpath_overrides_runpath=no
16089 hardcode_into_libs=yes
16090 ;;
16091
16092 irix5* | irix6* | nonstopux*)
16093 case $host_os in
16094 nonstopux*) version_type=nonstopux ;;
16095 *)
16096 if test "$lt_cv_prog_gnu_ld" = yes; then
16097 version_type=linux
16098 else
16099 version_type=irix
16100 fi ;;
16101 esac
16102 need_lib_prefix=no
16103 need_version=no
16104 soname_spec='${libname}${release}${shared_ext}$major'
16105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16106 case $host_os in
16107 irix5* | nonstopux*)
16108 libsuff= shlibsuff=
16109 ;;
16110 *)
16111 case $LD in # libtool.m4 will add one of these switches to LD
16112 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16113 libsuff= shlibsuff= libmagic=32-bit;;
16114 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16115 libsuff=32 shlibsuff=N32 libmagic=N32;;
16116 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16117 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16118 *) libsuff= shlibsuff= libmagic=never-match;;
16119 esac
16120 ;;
16121 esac
16122 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16123 shlibpath_overrides_runpath=no
16124 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16125 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16126 hardcode_into_libs=yes
16127 ;;
16128
16129 # No shared lib support for Linux oldld, aout, or coff.
16130 linux*oldld* | linux*aout* | linux*coff*)
16131 dynamic_linker=no
16132 ;;
16133
16134 # This must be Linux ELF.
16135 linux* | k*bsd*-gnu)
16136 version_type=linux
16137 need_lib_prefix=no
16138 need_version=no
16139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16140 soname_spec='${libname}${release}${shared_ext}$major'
16141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16142 shlibpath_var=LD_LIBRARY_PATH
16143 shlibpath_overrides_runpath=no
16144 # This implies no fast_install, which is unacceptable.
16145 # Some rework will be needed to allow for fast_install
16146 # before this can be enabled.
16147 hardcode_into_libs=yes
16148
16149 # Append ld.so.conf contents to the search path
16150 if test -f /etc/ld.so.conf; then
16151 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' ' '`
16152 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16153 fi
16154
16155 # We used to test for /lib/ld.so.1 and disable shared libraries on
16156 # powerpc, because MkLinux only supported shared libraries with the
16157 # GNU dynamic linker. Since this was broken with cross compilers,
16158 # most powerpc-linux boxes support dynamic linking these days and
16159 # people can always --disable-shared, the test was removed, and we
16160 # assume the GNU/Linux dynamic linker is in use.
16161 dynamic_linker='GNU/Linux ld.so'
16162 ;;
16163
16164 netbsd*)
16165 version_type=sunos
16166 need_lib_prefix=no
16167 need_version=no
16168 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16170 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16171 dynamic_linker='NetBSD (a.out) ld.so'
16172 else
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 dynamic_linker='NetBSD ld.elf_so'
16176 fi
16177 shlibpath_var=LD_LIBRARY_PATH
16178 shlibpath_overrides_runpath=yes
16179 hardcode_into_libs=yes
16180 ;;
16181
16182 newsos6)
16183 version_type=linux
16184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16185 shlibpath_var=LD_LIBRARY_PATH
16186 shlibpath_overrides_runpath=yes
16187 ;;
16188
16189 nto-qnx*)
16190 version_type=linux
16191 need_lib_prefix=no
16192 need_version=no
16193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16194 soname_spec='${libname}${release}${shared_ext}$major'
16195 shlibpath_var=LD_LIBRARY_PATH
16196 shlibpath_overrides_runpath=yes
16197 ;;
16198
16199 openbsd*)
16200 version_type=sunos
16201 sys_lib_dlsearch_path_spec="/usr/lib"
16202 need_lib_prefix=no
16203 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16204 case $host_os in
16205 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16206 *) need_version=no ;;
16207 esac
16208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16209 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16210 shlibpath_var=LD_LIBRARY_PATH
16211 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16212 case $host_os in
16213 openbsd2.[89] | openbsd2.[89].*)
16214 shlibpath_overrides_runpath=no
16215 ;;
16216 *)
16217 shlibpath_overrides_runpath=yes
16218 ;;
16219 esac
16220 else
16221 shlibpath_overrides_runpath=yes
16222 fi
16223 ;;
16224
16225 os2*)
16226 libname_spec='$name'
16227 shrext_cmds=".dll"
16228 need_lib_prefix=no
16229 library_names_spec='$libname${shared_ext} $libname.a'
16230 dynamic_linker='OS/2 ld.exe'
16231 shlibpath_var=LIBPATH
16232 ;;
16233
16234 osf3* | osf4* | osf5*)
16235 version_type=osf
16236 need_lib_prefix=no
16237 need_version=no
16238 soname_spec='${libname}${release}${shared_ext}$major'
16239 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16240 shlibpath_var=LD_LIBRARY_PATH
16241 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16242 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16243 ;;
16244
16245 rdos*)
16246 dynamic_linker=no
16247 ;;
16248
16249 solaris*)
16250 version_type=linux
16251 need_lib_prefix=no
16252 need_version=no
16253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16254 soname_spec='${libname}${release}${shared_ext}$major'
16255 shlibpath_var=LD_LIBRARY_PATH
16256 shlibpath_overrides_runpath=yes
16257 hardcode_into_libs=yes
16258 # ldd complains unless libraries are executable
16259 postinstall_cmds='chmod +x $lib'
16260 ;;
16261
16262 sunos4*)
16263 version_type=sunos
16264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16265 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16266 shlibpath_var=LD_LIBRARY_PATH
16267 shlibpath_overrides_runpath=yes
16268 if test "$with_gnu_ld" = yes; then
16269 need_lib_prefix=no
16270 fi
16271 need_version=yes
16272 ;;
16273
16274 sysv4 | sysv4.3*)
16275 version_type=linux
16276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16277 soname_spec='${libname}${release}${shared_ext}$major'
16278 shlibpath_var=LD_LIBRARY_PATH
16279 case $host_vendor in
16280 sni)
16281 shlibpath_overrides_runpath=no
16282 need_lib_prefix=no
16283 export_dynamic_flag_spec='${wl}-Blargedynsym'
16284 runpath_var=LD_RUN_PATH
16285 ;;
16286 siemens)
16287 need_lib_prefix=no
16288 ;;
16289 motorola)
16290 need_lib_prefix=no
16291 need_version=no
16292 shlibpath_overrides_runpath=no
16293 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16294 ;;
16295 esac
16296 ;;
16297
16298 sysv4*MP*)
16299 if test -d /usr/nec ;then
16300 version_type=linux
16301 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16302 soname_spec='$libname${shared_ext}.$major'
16303 shlibpath_var=LD_LIBRARY_PATH
16304 fi
16305 ;;
16306
16307 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16308 version_type=freebsd-elf
16309 need_lib_prefix=no
16310 need_version=no
16311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16312 soname_spec='${libname}${release}${shared_ext}$major'
16313 shlibpath_var=LD_LIBRARY_PATH
16314 hardcode_into_libs=yes
16315 if test "$with_gnu_ld" = yes; then
16316 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16317 shlibpath_overrides_runpath=no
16318 else
16319 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16320 shlibpath_overrides_runpath=yes
16321 case $host_os in
16322 sco3.2v5*)
16323 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16324 ;;
16325 esac
16326 fi
16327 sys_lib_dlsearch_path_spec='/usr/lib'
16328 ;;
16329
16330 uts4*)
16331 version_type=linux
16332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16333 soname_spec='${libname}${release}${shared_ext}$major'
16334 shlibpath_var=LD_LIBRARY_PATH
16335 ;;
16336
16337 *)
16338 dynamic_linker=no
16339 ;;
16340 esac
16341 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16342 $as_echo "$dynamic_linker" >&6; }
16343 test "$dynamic_linker" = no && can_build_shared=no
16344
16345 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16346 $as_echo_n "(cached) " >&6
16347 else
16348 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
16349 fi
16350
16351 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16352 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16353 $as_echo_n "(cached) " >&6
16354 else
16355 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
16356 fi
16357
16358 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16359
16360 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16361 if test "$GCC" = yes; then
16362 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16363 fi
16364
16365 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16366 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16367 hardcode_action_F77=
16368 if test -n "$hardcode_libdir_flag_spec_F77" || \
16369 test -n "$runpath_var_F77" || \
16370 test "X$hardcode_automatic_F77" = "Xyes" ; then
16371
16372 # We can hardcode non-existant directories.
16373 if test "$hardcode_direct_F77" != no &&
16374 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16375 # have to relink, otherwise we might link with an installed library
16376 # when we should be linking with a yet-to-be-installed one
16377 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16378 test "$hardcode_minus_L_F77" != no; then
16379 # Linking always hardcodes the temporary library directory.
16380 hardcode_action_F77=relink
16381 else
16382 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16383 hardcode_action_F77=immediate
16384 fi
16385 else
16386 # We cannot hardcode anything, or else we can only hardcode existing
16387 # directories.
16388 hardcode_action_F77=unsupported
16389 fi
16390 { $as_echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16391 $as_echo "$hardcode_action_F77" >&6; }
16392
16393 if test "$hardcode_action_F77" = relink; then
16394 # Fast installation is not supported
16395 enable_fast_install=no
16396 elif test "$shlibpath_overrides_runpath" = yes ||
16397 test "$enable_shared" = no; then
16398 # Fast installation is not necessary
16399 enable_fast_install=needless
16400 fi
16401
16402
16403 # The else clause should only fire when bootstrapping the
16404 # libtool distribution, otherwise you forgot to ship ltmain.sh
16405 # with your package, and you will get complaints that there are
16406 # no rules to generate ltmain.sh.
16407 if test -f "$ltmain"; then
16408 # See if we are running on zsh, and set the options which allow our commands through
16409 # without removal of \ escapes.
16410 if test -n "${ZSH_VERSION+set}" ; then
16411 setopt NO_GLOB_SUBST
16412 fi
16413 # Now quote all the things that may contain metacharacters while being
16414 # careful not to overquote the AC_SUBSTed values. We take copies of the
16415 # variables and quote the copies for generation of the libtool script.
16416 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
16417 SED SHELL STRIP \
16418 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
16419 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
16420 deplibs_check_method reload_flag reload_cmds need_locks \
16421 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
16422 lt_cv_sys_global_symbol_to_c_name_address \
16423 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
16424 old_postinstall_cmds old_postuninstall_cmds \
16425 compiler_F77 \
16426 CC_F77 \
16427 LD_F77 \
16428 lt_prog_compiler_wl_F77 \
16429 lt_prog_compiler_pic_F77 \
16430 lt_prog_compiler_static_F77 \
16431 lt_prog_compiler_no_builtin_flag_F77 \
16432 export_dynamic_flag_spec_F77 \
16433 thread_safe_flag_spec_F77 \
16434 whole_archive_flag_spec_F77 \
16435 enable_shared_with_static_runtimes_F77 \
16436 old_archive_cmds_F77 \
16437 old_archive_from_new_cmds_F77 \
16438 predep_objects_F77 \
16439 postdep_objects_F77 \
16440 predeps_F77 \
16441 postdeps_F77 \
16442 compiler_lib_search_path_F77 \
16443 compiler_lib_search_dirs_F77 \
16444 archive_cmds_F77 \
16445 archive_expsym_cmds_F77 \
16446 postinstall_cmds_F77 \
16447 postuninstall_cmds_F77 \
16448 old_archive_from_expsyms_cmds_F77 \
16449 allow_undefined_flag_F77 \
16450 no_undefined_flag_F77 \
16451 export_symbols_cmds_F77 \
16452 hardcode_libdir_flag_spec_F77 \
16453 hardcode_libdir_flag_spec_ld_F77 \
16454 hardcode_libdir_separator_F77 \
16455 hardcode_automatic_F77 \
16456 module_cmds_F77 \
16457 module_expsym_cmds_F77 \
16458 lt_cv_prog_compiler_c_o_F77 \
16459 fix_srcfile_path_F77 \
16460 exclude_expsyms_F77 \
16461 include_expsyms_F77; do
16462
16463 case $var in
16464 old_archive_cmds_F77 | \
16465 old_archive_from_new_cmds_F77 | \
16466 archive_cmds_F77 | \
16467 archive_expsym_cmds_F77 | \
16468 module_cmds_F77 | \
16469 module_expsym_cmds_F77 | \
16470 old_archive_from_expsyms_cmds_F77 | \
16471 export_symbols_cmds_F77 | \
16472 extract_expsyms_cmds | reload_cmds | finish_cmds | \
16473 postinstall_cmds | postuninstall_cmds | \
16474 old_postinstall_cmds | old_postuninstall_cmds | \
16475 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
16476 # Double-quote double-evaled strings.
16477 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
16478 ;;
16479 *)
16480 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
16481 ;;
16482 esac
16483 done
16484
16485 case $lt_echo in
16486 *'\$0 --fallback-echo"')
16487 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
16488 ;;
16489 esac
16490
16491 cfgfile="$ofile"
16492
16493 cat <<__EOF__ >> "$cfgfile"
16494 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
16495
16496 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16497
16498 # Shell to use when invoking shell scripts.
16499 SHELL=$lt_SHELL
16500
16501 # Whether or not to build shared libraries.
16502 build_libtool_libs=$enable_shared
16503
16504 # Whether or not to build static libraries.
16505 build_old_libs=$enable_static
16506
16507 # Whether or not to add -lc for building shared libraries.
16508 build_libtool_need_lc=$archive_cmds_need_lc_F77
16509
16510 # Whether or not to disallow shared libs when runtime libs are static
16511 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
16512
16513 # Whether or not to optimize for fast installation.
16514 fast_install=$enable_fast_install
16515
16516 # The host system.
16517 host_alias=$host_alias
16518 host=$host
16519 host_os=$host_os
16520
16521 # The build system.
16522 build_alias=$build_alias
16523 build=$build
16524 build_os=$build_os
16525
16526 # An echo program that does not interpret backslashes.
16527 echo=$lt_echo
16528
16529 # The archiver.
16530 AR=$lt_AR
16531 AR_FLAGS=$lt_AR_FLAGS
16532
16533 # A C compiler.
16534 LTCC=$lt_LTCC
16535
16536 # LTCC compiler flags.
16537 LTCFLAGS=$lt_LTCFLAGS
16538
16539 # A language-specific compiler.
16540 CC=$lt_compiler_F77
16541
16542 # Is the compiler the GNU C compiler?
16543 with_gcc=$GCC_F77
16544
16545 # An ERE matcher.
16546 EGREP=$lt_EGREP
16547
16548 # The linker used to build libraries.
16549 LD=$lt_LD_F77
16550
16551 # Whether we need hard or soft links.
16552 LN_S=$lt_LN_S
16553
16554 # A BSD-compatible nm program.
16555 NM=$lt_NM
16556
16557 # A symbol stripping program
16558 STRIP=$lt_STRIP
16559
16560 # Used to examine libraries when file_magic_cmd begins "file"
16561 MAGIC_CMD=$MAGIC_CMD
16562
16563 # Used on cygwin: DLL creation program.
16564 DLLTOOL="$DLLTOOL"
16565
16566 # Used on cygwin: object dumper.
16567 OBJDUMP="$OBJDUMP"
16568
16569 # Used on cygwin: assembler.
16570 AS="$AS"
16571
16572 # The name of the directory that contains temporary libtool files.
16573 objdir=$objdir
16574
16575 # How to create reloadable object files.
16576 reload_flag=$lt_reload_flag
16577 reload_cmds=$lt_reload_cmds
16578
16579 # How to pass a linker flag through the compiler.
16580 wl=$lt_lt_prog_compiler_wl_F77
16581
16582 # Object file suffix (normally "o").
16583 objext="$ac_objext"
16584
16585 # Old archive suffix (normally "a").
16586 libext="$libext"
16587
16588 # Shared library suffix (normally ".so").
16589 shrext_cmds='$shrext_cmds'
16590
16591 # Executable file suffix (normally "").
16592 exeext="$exeext"
16593
16594 # Additional compiler flags for building library objects.
16595 pic_flag=$lt_lt_prog_compiler_pic_F77
16596 pic_mode=$pic_mode
16597
16598 # What is the maximum length of a command?
16599 max_cmd_len=$lt_cv_sys_max_cmd_len
16600
16601 # Does compiler simultaneously support -c and -o options?
16602 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
16603
16604 # Must we lock files when doing compilation?
16605 need_locks=$lt_need_locks
16606
16607 # Do we need the lib prefix for modules?
16608 need_lib_prefix=$need_lib_prefix
16609
16610 # Do we need a version for libraries?
16611 need_version=$need_version
16612
16613 # Whether dlopen is supported.
16614 dlopen_support=$enable_dlopen
16615
16616 # Whether dlopen of programs is supported.
16617 dlopen_self=$enable_dlopen_self
16618
16619 # Whether dlopen of statically linked programs is supported.
16620 dlopen_self_static=$enable_dlopen_self_static
16621
16622 # Compiler flag to prevent dynamic linking.
16623 link_static_flag=$lt_lt_prog_compiler_static_F77
16624
16625 # Compiler flag to turn off builtin functions.
16626 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
16627
16628 # Compiler flag to allow reflexive dlopens.
16629 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
16630
16631 # Compiler flag to generate shared objects directly from archives.
16632 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
16633
16634 # Compiler flag to generate thread-safe objects.
16635 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
16636
16637 # Library versioning type.
16638 version_type=$version_type
16639
16640 # Format of library name prefix.
16641 libname_spec=$lt_libname_spec
16642
16643 # List of archive names. First name is the real one, the rest are links.
16644 # The last name is the one that the linker finds with -lNAME.
16645 library_names_spec=$lt_library_names_spec
16646
16647 # The coded name of the library, if different from the real name.
16648 soname_spec=$lt_soname_spec
16649
16650 # Commands used to build and install an old-style archive.
16651 RANLIB=$lt_RANLIB
16652 old_archive_cmds=$lt_old_archive_cmds_F77
16653 old_postinstall_cmds=$lt_old_postinstall_cmds
16654 old_postuninstall_cmds=$lt_old_postuninstall_cmds
16655
16656 # Create an old-style archive from a shared archive.
16657 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
16658
16659 # Create a temporary old-style archive to link instead of a shared archive.
16660 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
16661
16662 # Commands used to build and install a shared archive.
16663 archive_cmds=$lt_archive_cmds_F77
16664 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
16665 postinstall_cmds=$lt_postinstall_cmds
16666 postuninstall_cmds=$lt_postuninstall_cmds
16667
16668 # Commands used to build a loadable module (assumed same as above if empty)
16669 module_cmds=$lt_module_cmds_F77
16670 module_expsym_cmds=$lt_module_expsym_cmds_F77
16671
16672 # Commands to strip libraries.
16673 old_striplib=$lt_old_striplib
16674 striplib=$lt_striplib
16675
16676 # Dependencies to place before the objects being linked to create a
16677 # shared library.
16678 predep_objects=$lt_predep_objects_F77
16679
16680 # Dependencies to place after the objects being linked to create a
16681 # shared library.
16682 postdep_objects=$lt_postdep_objects_F77
16683
16684 # Dependencies to place before the objects being linked to create a
16685 # shared library.
16686 predeps=$lt_predeps_F77
16687
16688 # Dependencies to place after the objects being linked to create a
16689 # shared library.
16690 postdeps=$lt_postdeps_F77
16691
16692 # The directories searched by this compiler when creating a shared
16693 # library
16694 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
16695
16696 # The library search path used internally by the compiler when linking
16697 # a shared library.
16698 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
16699
16700 # Method to check whether dependent libraries are shared objects.
16701 deplibs_check_method=$lt_deplibs_check_method
16702
16703 # Command to use when deplibs_check_method == file_magic.
16704 file_magic_cmd=$lt_file_magic_cmd
16705
16706 # Flag that allows shared libraries with undefined symbols to be built.
16707 allow_undefined_flag=$lt_allow_undefined_flag_F77
16708
16709 # Flag that forces no undefined symbols.
16710 no_undefined_flag=$lt_no_undefined_flag_F77
16711
16712 # Commands used to finish a libtool library installation in a directory.
16713 finish_cmds=$lt_finish_cmds
16714
16715 # Same as above, but a single script fragment to be evaled but not shown.
16716 finish_eval=$lt_finish_eval
16717
16718 # Take the output of nm and produce a listing of raw symbols and C names.
16719 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16720
16721 # Transform the output of nm in a proper C declaration
16722 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16723
16724 # Transform the output of nm in a C name address pair
16725 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16726
16727 # This is the shared library runtime path variable.
16728 runpath_var=$runpath_var
16729
16730 # This is the shared library path variable.
16731 shlibpath_var=$shlibpath_var
16732
16733 # Is shlibpath searched before the hard-coded library search path?
16734 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16735
16736 # How to hardcode a shared library path into an executable.
16737 hardcode_action=$hardcode_action_F77
16738
16739 # Whether we should hardcode library paths into libraries.
16740 hardcode_into_libs=$hardcode_into_libs
16741
16742 # Flag to hardcode \$libdir into a binary during linking.
16743 # This must work even if \$libdir does not exist.
16744 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16745
16746 # If ld is used when linking, flag to hardcode \$libdir into
16747 # a binary during linking. This must work even if \$libdir does
16748 # not exist.
16749 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16750
16751 # Whether we need a single -rpath flag with a separated argument.
16752 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16753
16754 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16755 # resulting binary.
16756 hardcode_direct=$hardcode_direct_F77
16757
16758 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16759 # resulting binary.
16760 hardcode_minus_L=$hardcode_minus_L_F77
16761
16762 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16763 # the resulting binary.
16764 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16765
16766 # Set to yes if building a shared library automatically hardcodes DIR into the library
16767 # and all subsequent libraries and executables linked against it.
16768 hardcode_automatic=$hardcode_automatic_F77
16769
16770 # Variables whose values should be saved in libtool wrapper scripts and
16771 # restored at relink time.
16772 variables_saved_for_relink="$variables_saved_for_relink"
16773
16774 # Whether libtool must link a program against all its dependency libraries.
16775 link_all_deplibs=$link_all_deplibs_F77
16776
16777 # Compile-time system search path for libraries
16778 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16779
16780 # Run-time system search path for libraries
16781 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16782
16783 # Fix the shell variable \$srcfile for the compiler.
16784 fix_srcfile_path=$lt_fix_srcfile_path
16785
16786 # Set to yes if exported symbols are required.
16787 always_export_symbols=$always_export_symbols_F77
16788
16789 # The commands to list exported symbols.
16790 export_symbols_cmds=$lt_export_symbols_cmds_F77
16791
16792 # The commands to extract the exported symbol list from a shared archive.
16793 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16794
16795 # Symbols that should not be listed in the preloaded symbols.
16796 exclude_expsyms=$lt_exclude_expsyms_F77
16797
16798 # Symbols that must always be exported.
16799 include_expsyms=$lt_include_expsyms_F77
16800
16801 # ### END LIBTOOL TAG CONFIG: $tagname
16802
16803 __EOF__
16804
16805
16806 else
16807 # If there is no Makefile yet, we rely on a make rule to execute
16808 # `config.status --recheck' to rerun these tests and create the
16809 # libtool script then.
16810 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16811 if test -f "$ltmain_in"; then
16812 test -f Makefile && make "$ltmain"
16813 fi
16814 fi
16815
16816
16817 ac_ext=c
16818 ac_cpp='$CPP $CPPFLAGS'
16819 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16820 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16821 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16822
16823 CC="$lt_save_CC"
16824
16825 else
16826 tagname=""
16827 fi
16828 ;;
16829
16830 GCJ)
16831 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16832
16833
16834 # Source file extension for Java test sources.
16835 ac_ext=java
16836
16837 # Object file extension for compiled Java test sources.
16838 objext=o
16839 objext_GCJ=$objext
16840
16841 # Code to be used in simple compile tests
16842 lt_simple_compile_test_code="class foo {}"
16843
16844 # Code to be used in simple link tests
16845 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16846
16847 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16848
16849 # If no C compiler was specified, use CC.
16850 LTCC=${LTCC-"$CC"}
16851
16852 # If no C compiler flags were specified, use CFLAGS.
16853 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16854
16855 # Allow CC to be a program name with arguments.
16856 compiler=$CC
16857
16858
16859 # save warnings/boilerplate of simple test code
16860 ac_outfile=conftest.$ac_objext
16861 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16862 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16863 _lt_compiler_boilerplate=`cat conftest.err`
16864 $rm conftest*
16865
16866 ac_outfile=conftest.$ac_objext
16867 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16868 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16869 _lt_linker_boilerplate=`cat conftest.err`
16870 $rm -r conftest*
16871
16872
16873 # Allow CC to be a program name with arguments.
16874 lt_save_CC="$CC"
16875 CC=${GCJ-"gcj"}
16876 compiler=$CC
16877 compiler_GCJ=$CC
16878 for cc_temp in $compiler""; do
16879 case $cc_temp in
16880 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16881 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16882 \-*) ;;
16883 *) break;;
16884 esac
16885 done
16886 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16887
16888
16889 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16890 archive_cmds_need_lc_GCJ=no
16891
16892 old_archive_cmds_GCJ=$old_archive_cmds
16893
16894
16895 lt_prog_compiler_no_builtin_flag_GCJ=
16896
16897 if test "$GCC" = yes; then
16898 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16899
16900
16901 { $as_echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16902 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
16903 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16904 $as_echo_n "(cached) " >&6
16905 else
16906 lt_cv_prog_compiler_rtti_exceptions=no
16907 ac_outfile=conftest.$ac_objext
16908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16909 lt_compiler_flag="-fno-rtti -fno-exceptions"
16910 # Insert the option either (1) after the last *FLAGS variable, or
16911 # (2) before a word containing "conftest.", or (3) at the end.
16912 # Note that $ac_compile itself does not contain backslashes and begins
16913 # with a dollar sign (not a hyphen), so the echo should work correctly.
16914 # The option is referenced via a variable to avoid confusing sed.
16915 lt_compile=`echo "$ac_compile" | $SED \
16916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16918 -e 's:$: $lt_compiler_flag:'`
16919 (eval echo "\"\$as_me:16919: $lt_compile\"" >&5)
16920 (eval "$lt_compile" 2>conftest.err)
16921 ac_status=$?
16922 cat conftest.err >&5
16923 echo "$as_me:16923: \$? = $ac_status" >&5
16924 if (exit $ac_status) && test -s "$ac_outfile"; then
16925 # The compiler can only warn and ignore the option if not recognized
16926 # So say no if there are warnings other than the usual output.
16927 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16928 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16929 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16930 lt_cv_prog_compiler_rtti_exceptions=yes
16931 fi
16932 fi
16933 $rm conftest*
16934
16935 fi
16936 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16937 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
16938
16939 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16940 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16941 else
16942 :
16943 fi
16944
16945 fi
16946
16947 lt_prog_compiler_wl_GCJ=
16948 lt_prog_compiler_pic_GCJ=
16949 lt_prog_compiler_static_GCJ=
16950
16951 { $as_echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16952 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16953
16954 if test "$GCC" = yes; then
16955 lt_prog_compiler_wl_GCJ='-Wl,'
16956 lt_prog_compiler_static_GCJ='-static'
16957
16958 case $host_os in
16959 aix*)
16960 # All AIX code is PIC.
16961 if test "$host_cpu" = ia64; then
16962 # AIX 5 now supports IA64 processor
16963 lt_prog_compiler_static_GCJ='-Bstatic'
16964 fi
16965 ;;
16966
16967 amigaos*)
16968 # FIXME: we need at least 68020 code to build shared libraries, but
16969 # adding the `-m68020' flag to GCC prevents building anything better,
16970 # like `-m68040'.
16971 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16972 ;;
16973
16974 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16975 # PIC is the default for these OSes.
16976 ;;
16977
16978 mingw* | cygwin* | pw32* | os2*)
16979 # This hack is so that the source file can tell whether it is being
16980 # built for inclusion in a dll (and should export symbols for example).
16981 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16982 # (--disable-auto-import) libraries
16983
16984 ;;
16985
16986 darwin* | rhapsody*)
16987 # PIC is the default on this platform
16988 # Common symbols not allowed in MH_DYLIB files
16989 lt_prog_compiler_pic_GCJ='-fno-common'
16990 ;;
16991
16992 interix[3-9]*)
16993 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16994 # Instead, we relocate shared libraries at runtime.
16995 ;;
16996
16997 msdosdjgpp*)
16998 # Just because we use GCC doesn't mean we suddenly get shared libraries
16999 # on systems that don't support them.
17000 lt_prog_compiler_can_build_shared_GCJ=no
17001 enable_shared=no
17002 ;;
17003
17004 sysv4*MP*)
17005 if test -d /usr/nec; then
17006 lt_prog_compiler_pic_GCJ=-Kconform_pic
17007 fi
17008 ;;
17009
17010 hpux*)
17011 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17012 # not for PA HP-UX.
17013 case $host_cpu in
17014 hppa*64*|ia64*)
17015 # +Z the default
17016 ;;
17017 *)
17018 lt_prog_compiler_pic_GCJ='-fPIC'
17019 ;;
17020 esac
17021 ;;
17022
17023 *)
17024 lt_prog_compiler_pic_GCJ='-fPIC'
17025 ;;
17026 esac
17027 else
17028 # PORTME Check for flag to pass linker flags through the system compiler.
17029 case $host_os in
17030 aix*)
17031 lt_prog_compiler_wl_GCJ='-Wl,'
17032 if test "$host_cpu" = ia64; then
17033 # AIX 5 now supports IA64 processor
17034 lt_prog_compiler_static_GCJ='-Bstatic'
17035 else
17036 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17037 fi
17038 ;;
17039 darwin*)
17040 # PIC is the default on this platform
17041 # Common symbols not allowed in MH_DYLIB files
17042 case $cc_basename in
17043 xlc*)
17044 lt_prog_compiler_pic_GCJ='-qnocommon'
17045 lt_prog_compiler_wl_GCJ='-Wl,'
17046 ;;
17047 esac
17048 ;;
17049
17050 mingw* | cygwin* | pw32* | os2*)
17051 # This hack is so that the source file can tell whether it is being
17052 # built for inclusion in a dll (and should export symbols for example).
17053
17054 ;;
17055
17056 hpux9* | hpux10* | hpux11*)
17057 lt_prog_compiler_wl_GCJ='-Wl,'
17058 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17059 # not for PA HP-UX.
17060 case $host_cpu in
17061 hppa*64*|ia64*)
17062 # +Z the default
17063 ;;
17064 *)
17065 lt_prog_compiler_pic_GCJ='+Z'
17066 ;;
17067 esac
17068 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17069 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17070 ;;
17071
17072 irix5* | irix6* | nonstopux*)
17073 lt_prog_compiler_wl_GCJ='-Wl,'
17074 # PIC (with -KPIC) is the default.
17075 lt_prog_compiler_static_GCJ='-non_shared'
17076 ;;
17077
17078 newsos6)
17079 lt_prog_compiler_pic_GCJ='-KPIC'
17080 lt_prog_compiler_static_GCJ='-Bstatic'
17081 ;;
17082
17083 linux* | k*bsd*-gnu)
17084 case $cc_basename in
17085 icc* | ecc*)
17086 lt_prog_compiler_wl_GCJ='-Wl,'
17087 lt_prog_compiler_pic_GCJ='-KPIC'
17088 lt_prog_compiler_static_GCJ='-static'
17089 ;;
17090 pgcc* | pgf77* | pgf90* | pgf95*)
17091 # Portland Group compilers (*not* the Pentium gcc compiler,
17092 # which looks to be a dead project)
17093 lt_prog_compiler_wl_GCJ='-Wl,'
17094 lt_prog_compiler_pic_GCJ='-fpic'
17095 lt_prog_compiler_static_GCJ='-Bstatic'
17096 ;;
17097 ccc*)
17098 lt_prog_compiler_wl_GCJ='-Wl,'
17099 # All Alpha code is PIC.
17100 lt_prog_compiler_static_GCJ='-non_shared'
17101 ;;
17102 *)
17103 case `$CC -V 2>&1 | sed 5q` in
17104 *Sun\ C*)
17105 # Sun C 5.9
17106 lt_prog_compiler_pic_GCJ='-KPIC'
17107 lt_prog_compiler_static_GCJ='-Bstatic'
17108 lt_prog_compiler_wl_GCJ='-Wl,'
17109 ;;
17110 *Sun\ F*)
17111 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17112 lt_prog_compiler_pic_GCJ='-KPIC'
17113 lt_prog_compiler_static_GCJ='-Bstatic'
17114 lt_prog_compiler_wl_GCJ=''
17115 ;;
17116 esac
17117 ;;
17118 esac
17119 ;;
17120
17121 osf3* | osf4* | osf5*)
17122 lt_prog_compiler_wl_GCJ='-Wl,'
17123 # All OSF/1 code is PIC.
17124 lt_prog_compiler_static_GCJ='-non_shared'
17125 ;;
17126
17127 rdos*)
17128 lt_prog_compiler_static_GCJ='-non_shared'
17129 ;;
17130
17131 solaris*)
17132 lt_prog_compiler_pic_GCJ='-KPIC'
17133 lt_prog_compiler_static_GCJ='-Bstatic'
17134 case $cc_basename in
17135 f77* | f90* | f95*)
17136 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
17137 *)
17138 lt_prog_compiler_wl_GCJ='-Wl,';;
17139 esac
17140 ;;
17141
17142 sunos4*)
17143 lt_prog_compiler_wl_GCJ='-Qoption ld '
17144 lt_prog_compiler_pic_GCJ='-PIC'
17145 lt_prog_compiler_static_GCJ='-Bstatic'
17146 ;;
17147
17148 sysv4 | sysv4.2uw2* | sysv4.3*)
17149 lt_prog_compiler_wl_GCJ='-Wl,'
17150 lt_prog_compiler_pic_GCJ='-KPIC'
17151 lt_prog_compiler_static_GCJ='-Bstatic'
17152 ;;
17153
17154 sysv4*MP*)
17155 if test -d /usr/nec ;then
17156 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17157 lt_prog_compiler_static_GCJ='-Bstatic'
17158 fi
17159 ;;
17160
17161 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17162 lt_prog_compiler_wl_GCJ='-Wl,'
17163 lt_prog_compiler_pic_GCJ='-KPIC'
17164 lt_prog_compiler_static_GCJ='-Bstatic'
17165 ;;
17166
17167 unicos*)
17168 lt_prog_compiler_wl_GCJ='-Wl,'
17169 lt_prog_compiler_can_build_shared_GCJ=no
17170 ;;
17171
17172 uts4*)
17173 lt_prog_compiler_pic_GCJ='-pic'
17174 lt_prog_compiler_static_GCJ='-Bstatic'
17175 ;;
17176
17177 *)
17178 lt_prog_compiler_can_build_shared_GCJ=no
17179 ;;
17180 esac
17181 fi
17182
17183 { $as_echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17184 $as_echo "$lt_prog_compiler_pic_GCJ" >&6; }
17185
17186 #
17187 # Check to make sure the PIC flag actually works.
17188 #
17189 if test -n "$lt_prog_compiler_pic_GCJ"; then
17190
17191 { $as_echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17192 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... " >&6; }
17193 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
17194 $as_echo_n "(cached) " >&6
17195 else
17196 lt_cv_prog_compiler_pic_works_GCJ=no
17197 ac_outfile=conftest.$ac_objext
17198 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17199 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17200 # Insert the option either (1) after the last *FLAGS variable, or
17201 # (2) before a word containing "conftest.", or (3) at the end.
17202 # Note that $ac_compile itself does not contain backslashes and begins
17203 # with a dollar sign (not a hyphen), so the echo should work correctly.
17204 # The option is referenced via a variable to avoid confusing sed.
17205 lt_compile=`echo "$ac_compile" | $SED \
17206 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17207 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17208 -e 's:$: $lt_compiler_flag:'`
17209 (eval echo "\"\$as_me:17209: $lt_compile\"" >&5)
17210 (eval "$lt_compile" 2>conftest.err)
17211 ac_status=$?
17212 cat conftest.err >&5
17213 echo "$as_me:17213: \$? = $ac_status" >&5
17214 if (exit $ac_status) && test -s "$ac_outfile"; then
17215 # The compiler can only warn and ignore the option if not recognized
17216 # So say no if there are warnings other than the usual output.
17217 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
17218 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17219 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17220 lt_cv_prog_compiler_pic_works_GCJ=yes
17221 fi
17222 fi
17223 $rm conftest*
17224
17225 fi
17226 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
17227 $as_echo "$lt_cv_prog_compiler_pic_works_GCJ" >&6; }
17228
17229 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
17230 case $lt_prog_compiler_pic_GCJ in
17231 "" | " "*) ;;
17232 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17233 esac
17234 else
17235 lt_prog_compiler_pic_GCJ=
17236 lt_prog_compiler_can_build_shared_GCJ=no
17237 fi
17238
17239 fi
17240 case $host_os in
17241 # For platforms which do not support PIC, -DPIC is meaningless:
17242 *djgpp*)
17243 lt_prog_compiler_pic_GCJ=
17244 ;;
17245 *)
17246 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17247 ;;
17248 esac
17249
17250 #
17251 # Check to make sure the static flag actually works.
17252 #
17253 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
17254 { $as_echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17255 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17256 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
17257 $as_echo_n "(cached) " >&6
17258 else
17259 lt_cv_prog_compiler_static_works_GCJ=no
17260 save_LDFLAGS="$LDFLAGS"
17261 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17262 echo "$lt_simple_link_test_code" > conftest.$ac_ext
17263 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17264 # The linker can only warn and ignore the option if not recognized
17265 # So say no if there are warnings
17266 if test -s conftest.err; then
17267 # Append any errors to the config.log.
17268 cat conftest.err 1>&5
17269 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
17270 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17271 if diff conftest.exp conftest.er2 >/dev/null; then
17272 lt_cv_prog_compiler_static_works_GCJ=yes
17273 fi
17274 else
17275 lt_cv_prog_compiler_static_works_GCJ=yes
17276 fi
17277 fi
17278 $rm -r conftest*
17279 LDFLAGS="$save_LDFLAGS"
17280
17281 fi
17282 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
17283 $as_echo "$lt_cv_prog_compiler_static_works_GCJ" >&6; }
17284
17285 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
17286 :
17287 else
17288 lt_prog_compiler_static_GCJ=
17289 fi
17290
17291
17292 { $as_echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17293 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17294 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17295 $as_echo_n "(cached) " >&6
17296 else
17297 lt_cv_prog_compiler_c_o_GCJ=no
17298 $rm -r conftest 2>/dev/null
17299 mkdir conftest
17300 cd conftest
17301 mkdir out
17302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17303
17304 lt_compiler_flag="-o out/conftest2.$ac_objext"
17305 # Insert the option either (1) after the last *FLAGS variable, or
17306 # (2) before a word containing "conftest.", or (3) at the end.
17307 # Note that $ac_compile itself does not contain backslashes and begins
17308 # with a dollar sign (not a hyphen), so the echo should work correctly.
17309 lt_compile=`echo "$ac_compile" | $SED \
17310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17312 -e 's:$: $lt_compiler_flag:'`
17313 (eval echo "\"\$as_me:17313: $lt_compile\"" >&5)
17314 (eval "$lt_compile" 2>out/conftest.err)
17315 ac_status=$?
17316 cat out/conftest.err >&5
17317 echo "$as_me:17317: \$? = $ac_status" >&5
17318 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17319 then
17320 # The compiler can only warn and ignore the option if not recognized
17321 # So say no if there are warnings
17322 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
17323 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17324 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17325 lt_cv_prog_compiler_c_o_GCJ=yes
17326 fi
17327 fi
17328 chmod u+w . 2>&5
17329 $rm conftest*
17330 # SGI C++ compiler will create directory out/ii_files/ for
17331 # template instantiation
17332 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17333 $rm out/* && rmdir out
17334 cd ..
17335 rmdir conftest
17336 $rm conftest*
17337
17338 fi
17339 { $as_echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17340 $as_echo "$lt_cv_prog_compiler_c_o_GCJ" >&6; }
17341
17342
17343 hard_links="nottested"
17344 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17345 # do not overwrite the value of need_locks provided by the user
17346 { $as_echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17347 $as_echo_n "checking if we can lock with hard links... " >&6; }
17348 hard_links=yes
17349 $rm conftest*
17350 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17351 touch conftest.a
17352 ln conftest.a conftest.b 2>&5 || hard_links=no
17353 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17354 { $as_echo "$as_me:$LINENO: result: $hard_links" >&5
17355 $as_echo "$hard_links" >&6; }
17356 if test "$hard_links" = no; then
17357 { $as_echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17358 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17359 need_locks=warn
17360 fi
17361 else
17362 need_locks=no
17363 fi
17364
17365 { $as_echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17366 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17367
17368 runpath_var=
17369 allow_undefined_flag_GCJ=
17370 enable_shared_with_static_runtimes_GCJ=no
17371 archive_cmds_GCJ=
17372 archive_expsym_cmds_GCJ=
17373 old_archive_From_new_cmds_GCJ=
17374 old_archive_from_expsyms_cmds_GCJ=
17375 export_dynamic_flag_spec_GCJ=
17376 whole_archive_flag_spec_GCJ=
17377 thread_safe_flag_spec_GCJ=
17378 hardcode_libdir_flag_spec_GCJ=
17379 hardcode_libdir_flag_spec_ld_GCJ=
17380 hardcode_libdir_separator_GCJ=
17381 hardcode_direct_GCJ=no
17382 hardcode_minus_L_GCJ=no
17383 hardcode_shlibpath_var_GCJ=unsupported
17384 link_all_deplibs_GCJ=unknown
17385 hardcode_automatic_GCJ=no
17386 module_cmds_GCJ=
17387 module_expsym_cmds_GCJ=
17388 always_export_symbols_GCJ=no
17389 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17390 # include_expsyms should be a list of space-separated symbols to be *always*
17391 # included in the symbol list
17392 include_expsyms_GCJ=
17393 # exclude_expsyms can be an extended regexp of symbols to exclude
17394 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17395 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17396 # as well as any symbol that contains `d'.
17397 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17398 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17399 # platforms (ab)use it in PIC code, but their linkers get confused if
17400 # the symbol is explicitly referenced. Since portable code cannot
17401 # rely on this symbol name, it's probably fine to never include it in
17402 # preloaded symbol tables.
17403 # Exclude shared library initialization/finalization symbols.
17404 extract_expsyms_cmds=
17405 # Just being paranoid about ensuring that cc_basename is set.
17406 for cc_temp in $compiler""; do
17407 case $cc_temp in
17408 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17409 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17410 \-*) ;;
17411 *) break;;
17412 esac
17413 done
17414 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17415
17416 case $host_os in
17417 cygwin* | mingw* | pw32*)
17418 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17419 # When not using gcc, we currently assume that we are using
17420 # Microsoft Visual C++.
17421 if test "$GCC" != yes; then
17422 with_gnu_ld=no
17423 fi
17424 ;;
17425 interix*)
17426 # we just hope/assume this is gcc and not c89 (= MSVC++)
17427 with_gnu_ld=yes
17428 ;;
17429 openbsd*)
17430 with_gnu_ld=no
17431 ;;
17432 esac
17433
17434 ld_shlibs_GCJ=yes
17435 if test "$with_gnu_ld" = yes; then
17436 # If archive_cmds runs LD, not CC, wlarc should be empty
17437 wlarc='${wl}'
17438
17439 # Set some defaults for GNU ld with shared library support. These
17440 # are reset later if shared libraries are not supported. Putting them
17441 # here allows them to be overridden if necessary.
17442 runpath_var=LD_RUN_PATH
17443 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
17444 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
17445 # ancient GNU ld didn't support --whole-archive et. al.
17446 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
17447 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17448 else
17449 whole_archive_flag_spec_GCJ=
17450 fi
17451 supports_anon_versioning=no
17452 case `$LD -v 2>/dev/null` in
17453 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
17454 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
17455 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
17456 *\ 2.11.*) ;; # other 2.11 versions
17457 *) supports_anon_versioning=yes ;;
17458 esac
17459
17460 # See if GNU ld supports shared libraries.
17461 case $host_os in
17462 aix[3-9]*)
17463 # On AIX/PPC, the GNU linker is very broken
17464 if test "$host_cpu" != ia64; then
17465 ld_shlibs_GCJ=no
17466 cat <<EOF 1>&2
17467
17468 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17469 *** to be unable to reliably create shared libraries on AIX.
17470 *** Therefore, libtool is disabling shared libraries support. If you
17471 *** really care for shared libraries, you may want to modify your PATH
17472 *** so that a non-GNU linker is found, and then restart.
17473
17474 EOF
17475 fi
17476 ;;
17477
17478 amigaos*)
17479 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)'
17480 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17481 hardcode_minus_L_GCJ=yes
17482
17483 # Samuel A. Falvo II <[email protected]> reports
17484 # that the semantics of dynamic libraries on AmigaOS, at least up
17485 # to version 4, is to share data among multiple programs linked
17486 # with the same dynamic library. Since this doesn't match the
17487 # behavior of shared libraries on other platforms, we can't use
17488 # them.
17489 ld_shlibs_GCJ=no
17490 ;;
17491
17492 beos*)
17493 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17494 allow_undefined_flag_GCJ=unsupported
17495 # Joseph Beckenbach <[email protected]> says some releases of gcc
17496 # support --undefined. This deserves some investigation. FIXME
17497 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17498 else
17499 ld_shlibs_GCJ=no
17500 fi
17501 ;;
17502
17503 cygwin* | mingw* | pw32*)
17504 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17505 # as there is no search path for DLLs.
17506 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17507 allow_undefined_flag_GCJ=unsupported
17508 always_export_symbols_GCJ=no
17509 enable_shared_with_static_runtimes_GCJ=yes
17510 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
17511
17512 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17513 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17514 # If the export-symbols file already is a .def file (1st line
17515 # is EXPORTS), use it as is; otherwise, prepend...
17516 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17517 cp $export_symbols $output_objdir/$soname.def;
17518 else
17519 echo EXPORTS > $output_objdir/$soname.def;
17520 cat $export_symbols >> $output_objdir/$soname.def;
17521 fi~
17522 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
17523 else
17524 ld_shlibs_GCJ=no
17525 fi
17526 ;;
17527
17528 interix[3-9]*)
17529 hardcode_direct_GCJ=no
17530 hardcode_shlibpath_var_GCJ=no
17531 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17532 export_dynamic_flag_spec_GCJ='${wl}-E'
17533 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
17534 # Instead, shared libraries are loaded at an image base (0x10000000 by
17535 # default) and relocated if they conflict, which is a slow very memory
17536 # consuming and fragmenting process. To avoid this, we pick a random,
17537 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
17538 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
17539 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'
17540 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'
17541 ;;
17542
17543 gnu* | linux* | k*bsd*-gnu)
17544 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17545 tmp_addflag=
17546 case $cc_basename,$host_cpu in
17547 pgcc*) # Portland Group C compiler
17548 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'
17549 tmp_addflag=' $pic_flag'
17550 ;;
17551 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
17552 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'
17553 tmp_addflag=' $pic_flag -Mnomain' ;;
17554 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
17555 tmp_addflag=' -i_dynamic' ;;
17556 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
17557 tmp_addflag=' -i_dynamic -nofor_main' ;;
17558 ifc* | ifort*) # Intel Fortran compiler
17559 tmp_addflag=' -nofor_main' ;;
17560 esac
17561 case `$CC -V 2>&1 | sed 5q` in
17562 *Sun\ C*) # Sun C 5.9
17563 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'
17564 tmp_sharedflag='-G' ;;
17565 *Sun\ F*) # Sun Fortran 8.3
17566 tmp_sharedflag='-G' ;;
17567 *)
17568 tmp_sharedflag='-shared' ;;
17569 esac
17570 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17571
17572 if test $supports_anon_versioning = yes; then
17573 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
17574 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
17575 $echo "local: *; };" >> $output_objdir/$libname.ver~
17576 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
17577 fi
17578 else
17579 ld_shlibs_GCJ=no
17580 fi
17581 ;;
17582
17583 netbsd*)
17584 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17585 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17586 wlarc=
17587 else
17588 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17589 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17590 fi
17591 ;;
17592
17593 solaris*)
17594 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17595 ld_shlibs_GCJ=no
17596 cat <<EOF 1>&2
17597
17598 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17599 *** create shared libraries on Solaris systems. Therefore, libtool
17600 *** is disabling shared libraries support. We urge you to upgrade GNU
17601 *** binutils to release 2.9.1 or newer. Another option is to modify
17602 *** your PATH or compiler configuration so that the native linker is
17603 *** used, and then restart.
17604
17605 EOF
17606 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17607 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17608 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17609 else
17610 ld_shlibs_GCJ=no
17611 fi
17612 ;;
17613
17614 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
17615 case `$LD -v 2>&1` in
17616 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
17617 ld_shlibs_GCJ=no
17618 cat <<_LT_EOF 1>&2
17619
17620 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
17621 *** reliably create shared libraries on SCO systems. Therefore, libtool
17622 *** is disabling shared libraries support. We urge you to upgrade GNU
17623 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
17624 *** your PATH or compiler configuration so that the native linker is
17625 *** used, and then restart.
17626
17627 _LT_EOF
17628 ;;
17629 *)
17630 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17631 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
17632 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
17633 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
17634 else
17635 ld_shlibs_GCJ=no
17636 fi
17637 ;;
17638 esac
17639 ;;
17640
17641 sunos4*)
17642 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17643 wlarc=
17644 hardcode_direct_GCJ=yes
17645 hardcode_shlibpath_var_GCJ=no
17646 ;;
17647
17648 *)
17649 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17650 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17651 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17652 else
17653 ld_shlibs_GCJ=no
17654 fi
17655 ;;
17656 esac
17657
17658 if test "$ld_shlibs_GCJ" = no; then
17659 runpath_var=
17660 hardcode_libdir_flag_spec_GCJ=
17661 export_dynamic_flag_spec_GCJ=
17662 whole_archive_flag_spec_GCJ=
17663 fi
17664 else
17665 # PORTME fill in a description of your system's linker (not GNU ld)
17666 case $host_os in
17667 aix3*)
17668 allow_undefined_flag_GCJ=unsupported
17669 always_export_symbols_GCJ=yes
17670 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'
17671 # Note: this linker hardcodes the directories in LIBPATH if there
17672 # are no directories specified by -L.
17673 hardcode_minus_L_GCJ=yes
17674 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
17675 # Neither direct hardcoding nor static linking is supported with a
17676 # broken collect2.
17677 hardcode_direct_GCJ=unsupported
17678 fi
17679 ;;
17680
17681 aix[4-9]*)
17682 if test "$host_cpu" = ia64; then
17683 # On IA64, the linker does run time linking by default, so we don't
17684 # have to do anything special.
17685 aix_use_runtimelinking=no
17686 exp_sym_flag='-Bexport'
17687 no_entry_flag=""
17688 else
17689 # If we're using GNU nm, then we don't want the "-C" option.
17690 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17691 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
17692 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'
17693 else
17694 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'
17695 fi
17696 aix_use_runtimelinking=no
17697
17698 # Test if we are trying to use run time linking or normal
17699 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17700 # need to do runtime linking.
17701 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17702 for ld_flag in $LDFLAGS; do
17703 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
17704 aix_use_runtimelinking=yes
17705 break
17706 fi
17707 done
17708 ;;
17709 esac
17710
17711 exp_sym_flag='-bexport'
17712 no_entry_flag='-bnoentry'
17713 fi
17714
17715 # When large executables or shared objects are built, AIX ld can
17716 # have problems creating the table of contents. If linking a library
17717 # or program results in "error TOC overflow" add -mminimal-toc to
17718 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17719 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17720
17721 archive_cmds_GCJ=''
17722 hardcode_direct_GCJ=yes
17723 hardcode_libdir_separator_GCJ=':'
17724 link_all_deplibs_GCJ=yes
17725
17726 if test "$GCC" = yes; then
17727 case $host_os in aix4.[012]|aix4.[012].*)
17728 # We only want to do this on AIX 4.2 and lower, the check
17729 # below for broken collect2 doesn't work under 4.3+
17730 collect2name=`${CC} -print-prog-name=collect2`
17731 if test -f "$collect2name" && \
17732 strings "$collect2name" | grep resolve_lib_name >/dev/null
17733 then
17734 # We have reworked collect2
17735 :
17736 else
17737 # We have old collect2
17738 hardcode_direct_GCJ=unsupported
17739 # It fails to find uninstalled libraries when the uninstalled
17740 # path is not listed in the libpath. Setting hardcode_minus_L
17741 # to unsupported forces relinking
17742 hardcode_minus_L_GCJ=yes
17743 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17744 hardcode_libdir_separator_GCJ=
17745 fi
17746 ;;
17747 esac
17748 shared_flag='-shared'
17749 if test "$aix_use_runtimelinking" = yes; then
17750 shared_flag="$shared_flag "'${wl}-G'
17751 fi
17752 else
17753 # not using gcc
17754 if test "$host_cpu" = ia64; then
17755 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17756 # chokes on -Wl,-G. The following line is correct:
17757 shared_flag='-G'
17758 else
17759 if test "$aix_use_runtimelinking" = yes; then
17760 shared_flag='${wl}-G'
17761 else
17762 shared_flag='${wl}-bM:SRE'
17763 fi
17764 fi
17765 fi
17766
17767 # It seems that -bexpall does not export symbols beginning with
17768 # underscore (_), so it is better to generate a list of symbols to export.
17769 always_export_symbols_GCJ=yes
17770 if test "$aix_use_runtimelinking" = yes; then
17771 # Warning - without using the other runtime loading flags (-brtl),
17772 # -berok will link without error, but may produce a broken library.
17773 allow_undefined_flag_GCJ='-berok'
17774 # Determine the default libpath from the value encoded in an empty executable.
17775 cat >conftest.$ac_ext <<_ACEOF
17776 /* confdefs.h. */
17777 _ACEOF
17778 cat confdefs.h >>conftest.$ac_ext
17779 cat >>conftest.$ac_ext <<_ACEOF
17780 /* end confdefs.h. */
17781
17782 int
17783 main ()
17784 {
17785
17786 ;
17787 return 0;
17788 }
17789 _ACEOF
17790 rm -f conftest.$ac_objext conftest$ac_exeext
17791 if { (ac_try="$ac_link"
17792 case "(($ac_try" in
17793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17794 *) ac_try_echo=$ac_try;;
17795 esac
17796 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17797 $as_echo "$ac_try_echo") >&5
17798 (eval "$ac_link") 2>conftest.er1
17799 ac_status=$?
17800 grep -v '^ *+' conftest.er1 >conftest.err
17801 rm -f conftest.er1
17802 cat conftest.err >&5
17803 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17804 (exit $ac_status); } && {
17805 test -z "$ac_c_werror_flag" ||
17806 test ! -s conftest.err
17807 } && test -s conftest$ac_exeext && {
17808 test "$cross_compiling" = yes ||
17809 $as_test_x conftest$ac_exeext
17810 }; then
17811
17812 lt_aix_libpath_sed='
17813 /Import File Strings/,/^$/ {
17814 /^0/ {
17815 s/^0 *\(.*\)$/\1/
17816 p
17817 }
17818 }'
17819 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17820 # Check for a 64-bit object if we didn't find anything.
17821 if test -z "$aix_libpath"; then
17822 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17823 fi
17824 else
17825 $as_echo "$as_me: failed program was:" >&5
17826 sed 's/^/| /' conftest.$ac_ext >&5
17827
17828
17829 fi
17830
17831 rm -rf conftest.dSYM
17832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17833 conftest$ac_exeext conftest.$ac_ext
17834 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17835
17836 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17837 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"
17838 else
17839 if test "$host_cpu" = ia64; then
17840 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17841 allow_undefined_flag_GCJ="-z nodefs"
17842 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"
17843 else
17844 # Determine the default libpath from the value encoded in an empty executable.
17845 cat >conftest.$ac_ext <<_ACEOF
17846 /* confdefs.h. */
17847 _ACEOF
17848 cat confdefs.h >>conftest.$ac_ext
17849 cat >>conftest.$ac_ext <<_ACEOF
17850 /* end confdefs.h. */
17851
17852 int
17853 main ()
17854 {
17855
17856 ;
17857 return 0;
17858 }
17859 _ACEOF
17860 rm -f conftest.$ac_objext conftest$ac_exeext
17861 if { (ac_try="$ac_link"
17862 case "(($ac_try" in
17863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17864 *) ac_try_echo=$ac_try;;
17865 esac
17866 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
17867 $as_echo "$ac_try_echo") >&5
17868 (eval "$ac_link") 2>conftest.er1
17869 ac_status=$?
17870 grep -v '^ *+' conftest.er1 >conftest.err
17871 rm -f conftest.er1
17872 cat conftest.err >&5
17873 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
17874 (exit $ac_status); } && {
17875 test -z "$ac_c_werror_flag" ||
17876 test ! -s conftest.err
17877 } && test -s conftest$ac_exeext && {
17878 test "$cross_compiling" = yes ||
17879 $as_test_x conftest$ac_exeext
17880 }; then
17881
17882 lt_aix_libpath_sed='
17883 /Import File Strings/,/^$/ {
17884 /^0/ {
17885 s/^0 *\(.*\)$/\1/
17886 p
17887 }
17888 }'
17889 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17890 # Check for a 64-bit object if we didn't find anything.
17891 if test -z "$aix_libpath"; then
17892 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17893 fi
17894 else
17895 $as_echo "$as_me: failed program was:" >&5
17896 sed 's/^/| /' conftest.$ac_ext >&5
17897
17898
17899 fi
17900
17901 rm -rf conftest.dSYM
17902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17903 conftest$ac_exeext conftest.$ac_ext
17904 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17905
17906 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17907 # Warning - without using the other run time loading flags,
17908 # -berok will link without error, but may produce a broken library.
17909 no_undefined_flag_GCJ=' ${wl}-bernotok'
17910 allow_undefined_flag_GCJ=' ${wl}-berok'
17911 # Exported symbols can be pulled into shared objects from archives
17912 whole_archive_flag_spec_GCJ='$convenience'
17913 archive_cmds_need_lc_GCJ=yes
17914 # This is similar to how AIX traditionally builds its shared libraries.
17915 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'
17916 fi
17917 fi
17918 ;;
17919
17920 amigaos*)
17921 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)'
17922 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17923 hardcode_minus_L_GCJ=yes
17924 # see comment about different semantics on the GNU ld section
17925 ld_shlibs_GCJ=no
17926 ;;
17927
17928 bsdi[45]*)
17929 export_dynamic_flag_spec_GCJ=-rdynamic
17930 ;;
17931
17932 cygwin* | mingw* | pw32*)
17933 # When not using gcc, we currently assume that we are using
17934 # Microsoft Visual C++.
17935 # hardcode_libdir_flag_spec is actually meaningless, as there is
17936 # no search path for DLLs.
17937 hardcode_libdir_flag_spec_GCJ=' '
17938 allow_undefined_flag_GCJ=unsupported
17939 # Tell ltmain to make .lib files, not .a files.
17940 libext=lib
17941 # Tell ltmain to make .dll files, not .so files.
17942 shrext_cmds=".dll"
17943 # FIXME: Setting linknames here is a bad hack.
17944 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17945 # The linker will automatically build a .lib file if we build a DLL.
17946 old_archive_From_new_cmds_GCJ='true'
17947 # FIXME: Should let the user specify the lib program.
17948 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17949 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17950 enable_shared_with_static_runtimes_GCJ=yes
17951 ;;
17952
17953 darwin* | rhapsody*)
17954 case $host_os in
17955 rhapsody* | darwin1.[012])
17956 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17957 ;;
17958 *) # Darwin 1.3 on
17959 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17960 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17961 else
17962 case ${MACOSX_DEPLOYMENT_TARGET} in
17963 10.[012])
17964 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17965 ;;
17966 10.*)
17967 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17968 ;;
17969 esac
17970 fi
17971 ;;
17972 esac
17973 archive_cmds_need_lc_GCJ=no
17974 hardcode_direct_GCJ=no
17975 hardcode_automatic_GCJ=yes
17976 hardcode_shlibpath_var_GCJ=unsupported
17977 whole_archive_flag_spec_GCJ=''
17978 link_all_deplibs_GCJ=yes
17979 if test "$GCC" = yes ; then
17980 output_verbose_link_cmd='echo'
17981 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}"
17982 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17983 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}"
17984 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}"
17985 else
17986 case $cc_basename in
17987 xlc*)
17988 output_verbose_link_cmd='echo'
17989 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17990 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17991 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17992 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}'
17993 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}'
17994 ;;
17995 *)
17996 ld_shlibs_GCJ=no
17997 ;;
17998 esac
17999 fi
18000 ;;
18001
18002 dgux*)
18003 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18004 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18005 hardcode_shlibpath_var_GCJ=no
18006 ;;
18007
18008 freebsd1*)
18009 ld_shlibs_GCJ=no
18010 ;;
18011
18012 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18013 # support. Future versions do this automatically, but an explicit c++rt0.o
18014 # does not break anything, and helps significantly (at the cost of a little
18015 # extra space).
18016 freebsd2.2*)
18017 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18018 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18019 hardcode_direct_GCJ=yes
18020 hardcode_shlibpath_var_GCJ=no
18021 ;;
18022
18023 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18024 freebsd2*)
18025 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18026 hardcode_direct_GCJ=yes
18027 hardcode_minus_L_GCJ=yes
18028 hardcode_shlibpath_var_GCJ=no
18029 ;;
18030
18031 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18032 freebsd* | dragonfly*)
18033 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18034 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18035 hardcode_direct_GCJ=yes
18036 hardcode_shlibpath_var_GCJ=no
18037 ;;
18038
18039 hpux9*)
18040 if test "$GCC" = yes; then
18041 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'
18042 else
18043 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'
18044 fi
18045 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18046 hardcode_libdir_separator_GCJ=:
18047 hardcode_direct_GCJ=yes
18048
18049 # hardcode_minus_L: Not really in the search PATH,
18050 # but as the default location of the library.
18051 hardcode_minus_L_GCJ=yes
18052 export_dynamic_flag_spec_GCJ='${wl}-E'
18053 ;;
18054
18055 hpux10*)
18056 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18057 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18058 else
18059 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18060 fi
18061 if test "$with_gnu_ld" = no; then
18062 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18063 hardcode_libdir_separator_GCJ=:
18064
18065 hardcode_direct_GCJ=yes
18066 export_dynamic_flag_spec_GCJ='${wl}-E'
18067
18068 # hardcode_minus_L: Not really in the search PATH,
18069 # but as the default location of the library.
18070 hardcode_minus_L_GCJ=yes
18071 fi
18072 ;;
18073
18074 hpux11*)
18075 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18076 case $host_cpu in
18077 hppa*64*)
18078 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18079 ;;
18080 ia64*)
18081 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18082 ;;
18083 *)
18084 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18085 ;;
18086 esac
18087 else
18088 case $host_cpu in
18089 hppa*64*)
18090 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18091 ;;
18092 ia64*)
18093 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18094 ;;
18095 *)
18096 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18097 ;;
18098 esac
18099 fi
18100 if test "$with_gnu_ld" = no; then
18101 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18102 hardcode_libdir_separator_GCJ=:
18103
18104 case $host_cpu in
18105 hppa*64*|ia64*)
18106 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18107 hardcode_direct_GCJ=no
18108 hardcode_shlibpath_var_GCJ=no
18109 ;;
18110 *)
18111 hardcode_direct_GCJ=yes
18112 export_dynamic_flag_spec_GCJ='${wl}-E'
18113
18114 # hardcode_minus_L: Not really in the search PATH,
18115 # but as the default location of the library.
18116 hardcode_minus_L_GCJ=yes
18117 ;;
18118 esac
18119 fi
18120 ;;
18121
18122 irix5* | irix6* | nonstopux*)
18123 if test "$GCC" = yes; then
18124 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'
18125 else
18126 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'
18127 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18128 fi
18129 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18130 hardcode_libdir_separator_GCJ=:
18131 link_all_deplibs_GCJ=yes
18132 ;;
18133
18134 netbsd*)
18135 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18136 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18137 else
18138 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18139 fi
18140 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18141 hardcode_direct_GCJ=yes
18142 hardcode_shlibpath_var_GCJ=no
18143 ;;
18144
18145 newsos6)
18146 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18147 hardcode_direct_GCJ=yes
18148 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18149 hardcode_libdir_separator_GCJ=:
18150 hardcode_shlibpath_var_GCJ=no
18151 ;;
18152
18153 openbsd*)
18154 if test -f /usr/libexec/ld.so; then
18155 hardcode_direct_GCJ=yes
18156 hardcode_shlibpath_var_GCJ=no
18157 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18158 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18159 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
18160 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18161 export_dynamic_flag_spec_GCJ='${wl}-E'
18162 else
18163 case $host_os in
18164 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18165 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18166 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18167 ;;
18168 *)
18169 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18170 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18171 ;;
18172 esac
18173 fi
18174 else
18175 ld_shlibs_GCJ=no
18176 fi
18177 ;;
18178
18179 os2*)
18180 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18181 hardcode_minus_L_GCJ=yes
18182 allow_undefined_flag_GCJ=unsupported
18183 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'
18184 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18185 ;;
18186
18187 osf3*)
18188 if test "$GCC" = yes; then
18189 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18190 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'
18191 else
18192 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18193 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'
18194 fi
18195 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18196 hardcode_libdir_separator_GCJ=:
18197 ;;
18198
18199 osf4* | osf5*) # as osf3* with the addition of -msym flag
18200 if test "$GCC" = yes; then
18201 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18202 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'
18203 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18204 else
18205 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18206 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'
18207 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~
18208 $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'
18209
18210 # Both c and cxx compiler support -rpath directly
18211 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18212 fi
18213 hardcode_libdir_separator_GCJ=:
18214 ;;
18215
18216 solaris*)
18217 no_undefined_flag_GCJ=' -z text'
18218 if test "$GCC" = yes; then
18219 wlarc='${wl}'
18220 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18221 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18222 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18223 else
18224 wlarc=''
18225 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18226 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18227 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18228 fi
18229 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18230 hardcode_shlibpath_var_GCJ=no
18231 case $host_os in
18232 solaris2.[0-5] | solaris2.[0-5].*) ;;
18233 *)
18234 # The compiler driver will combine and reorder linker options,
18235 # but understands `-z linker_flag'. GCC discards it without `$wl',
18236 # but is careful enough not to reorder.
18237 # Supported since Solaris 2.6 (maybe 2.5.1?)
18238 if test "$GCC" = yes; then
18239 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18240 else
18241 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
18242 fi
18243 ;;
18244 esac
18245 link_all_deplibs_GCJ=yes
18246 ;;
18247
18248 sunos4*)
18249 if test "x$host_vendor" = xsequent; then
18250 # Use $CC to link under sequent, because it throws in some extra .o
18251 # files that make .init and .fini sections work.
18252 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18253 else
18254 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18255 fi
18256 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18257 hardcode_direct_GCJ=yes
18258 hardcode_minus_L_GCJ=yes
18259 hardcode_shlibpath_var_GCJ=no
18260 ;;
18261
18262 sysv4)
18263 case $host_vendor in
18264 sni)
18265 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18266 hardcode_direct_GCJ=yes # is this really true???
18267 ;;
18268 siemens)
18269 ## LD is ld it makes a PLAMLIB
18270 ## CC just makes a GrossModule.
18271 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18272 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18273 hardcode_direct_GCJ=no
18274 ;;
18275 motorola)
18276 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18277 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18278 ;;
18279 esac
18280 runpath_var='LD_RUN_PATH'
18281 hardcode_shlibpath_var_GCJ=no
18282 ;;
18283
18284 sysv4.3*)
18285 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18286 hardcode_shlibpath_var_GCJ=no
18287 export_dynamic_flag_spec_GCJ='-Bexport'
18288 ;;
18289
18290 sysv4*MP*)
18291 if test -d /usr/nec; then
18292 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18293 hardcode_shlibpath_var_GCJ=no
18294 runpath_var=LD_RUN_PATH
18295 hardcode_runpath_var=yes
18296 ld_shlibs_GCJ=yes
18297 fi
18298 ;;
18299
18300 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18301 no_undefined_flag_GCJ='${wl}-z,text'
18302 archive_cmds_need_lc_GCJ=no
18303 hardcode_shlibpath_var_GCJ=no
18304 runpath_var='LD_RUN_PATH'
18305
18306 if test "$GCC" = yes; then
18307 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18308 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18309 else
18310 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18311 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18312 fi
18313 ;;
18314
18315 sysv5* | sco3.2v5* | sco5v6*)
18316 # Note: We can NOT use -z defs as we might desire, because we do not
18317 # link with -lc, and that would cause any symbols used from libc to
18318 # always be unresolved, which means just about no library would
18319 # ever link correctly. If we're not using GNU ld we use -z text
18320 # though, which does catch some bad symbols but isn't as heavy-handed
18321 # as -z defs.
18322 no_undefined_flag_GCJ='${wl}-z,text'
18323 allow_undefined_flag_GCJ='${wl}-z,nodefs'
18324 archive_cmds_need_lc_GCJ=no
18325 hardcode_shlibpath_var_GCJ=no
18326 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
18327 hardcode_libdir_separator_GCJ=':'
18328 link_all_deplibs_GCJ=yes
18329 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18330 runpath_var='LD_RUN_PATH'
18331
18332 if test "$GCC" = yes; then
18333 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18334 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18335 else
18336 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18337 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
18338 fi
18339 ;;
18340
18341 uts4*)
18342 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18343 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18344 hardcode_shlibpath_var_GCJ=no
18345 ;;
18346
18347 *)
18348 ld_shlibs_GCJ=no
18349 ;;
18350 esac
18351 fi
18352
18353 { $as_echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18354 $as_echo "$ld_shlibs_GCJ" >&6; }
18355 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18356
18357 #
18358 # Do we need to explicitly link libc?
18359 #
18360 case "x$archive_cmds_need_lc_GCJ" in
18361 x|xyes)
18362 # Assume -lc should be added
18363 archive_cmds_need_lc_GCJ=yes
18364
18365 if test "$enable_shared" = yes && test "$GCC" = yes; then
18366 case $archive_cmds_GCJ in
18367 *'~'*)
18368 # FIXME: we may have to deal with multi-command sequences.
18369 ;;
18370 '$CC '*)
18371 # Test whether the compiler implicitly links with -lc since on some
18372 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18373 # to ld, don't add -lc before -lgcc.
18374 { $as_echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18375 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
18376 $rm conftest*
18377 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18378
18379 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18380 (eval $ac_compile) 2>&5
18381 ac_status=$?
18382 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); } 2>conftest.err; then
18384 soname=conftest
18385 lib=conftest
18386 libobjs=conftest.$ac_objext
18387 deplibs=
18388 wl=$lt_prog_compiler_wl_GCJ
18389 pic_flag=$lt_prog_compiler_pic_GCJ
18390 compiler_flags=-v
18391 linker_flags=-v
18392 verstring=
18393 output_objdir=.
18394 libname=conftest
18395 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18396 allow_undefined_flag_GCJ=
18397 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18398 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18399 ac_status=$?
18400 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
18401 (exit $ac_status); }
18402 then
18403 archive_cmds_need_lc_GCJ=no
18404 else
18405 archive_cmds_need_lc_GCJ=yes
18406 fi
18407 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18408 else
18409 cat conftest.err 1>&5
18410 fi
18411 $rm conftest*
18412 { $as_echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18413 $as_echo "$archive_cmds_need_lc_GCJ" >&6; }
18414 ;;
18415 esac
18416 fi
18417 ;;
18418 esac
18419
18420 { $as_echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18421 $as_echo_n "checking dynamic linker characteristics... " >&6; }
18422 library_names_spec=
18423 libname_spec='lib$name'
18424 soname_spec=
18425 shrext_cmds=".so"
18426 postinstall_cmds=
18427 postuninstall_cmds=
18428 finish_cmds=
18429 finish_eval=
18430 shlibpath_var=
18431 shlibpath_overrides_runpath=unknown
18432 version_type=none
18433 dynamic_linker="$host_os ld.so"
18434 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18435
18436 need_lib_prefix=unknown
18437 hardcode_into_libs=no
18438
18439 # when you set need_version to no, make sure it does not cause -set_version
18440 # flags to be left without arguments
18441 need_version=unknown
18442
18443 case $host_os in
18444 aix3*)
18445 version_type=linux
18446 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18447 shlibpath_var=LIBPATH
18448
18449 # AIX 3 has no versioning support, so we append a major version to the name.
18450 soname_spec='${libname}${release}${shared_ext}$major'
18451 ;;
18452
18453 aix[4-9]*)
18454 version_type=linux
18455 need_lib_prefix=no
18456 need_version=no
18457 hardcode_into_libs=yes
18458 if test "$host_cpu" = ia64; then
18459 # AIX 5 supports IA64
18460 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18461 shlibpath_var=LD_LIBRARY_PATH
18462 else
18463 # With GCC up to 2.95.x, collect2 would create an import file
18464 # for dependence libraries. The import file would start with
18465 # the line `#! .'. This would cause the generated library to
18466 # depend on `.', always an invalid library. This was fixed in
18467 # development snapshots of GCC prior to 3.0.
18468 case $host_os in
18469 aix4 | aix4.[01] | aix4.[01].*)
18470 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18471 echo ' yes '
18472 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18473 :
18474 else
18475 can_build_shared=no
18476 fi
18477 ;;
18478 esac
18479 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18480 # soname into executable. Probably we can add versioning support to
18481 # collect2, so additional links can be useful in future.
18482 if test "$aix_use_runtimelinking" = yes; then
18483 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18484 # instead of lib<name>.a to let people know that these are not
18485 # typical AIX shared libraries.
18486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18487 else
18488 # We preserve .a as extension for shared libraries through AIX4.2
18489 # and later when we are not doing run time linking.
18490 library_names_spec='${libname}${release}.a $libname.a'
18491 soname_spec='${libname}${release}${shared_ext}$major'
18492 fi
18493 shlibpath_var=LIBPATH
18494 fi
18495 ;;
18496
18497 amigaos*)
18498 library_names_spec='$libname.ixlibrary $libname.a'
18499 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18500 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'
18501 ;;
18502
18503 beos*)
18504 library_names_spec='${libname}${shared_ext}'
18505 dynamic_linker="$host_os ld.so"
18506 shlibpath_var=LIBRARY_PATH
18507 ;;
18508
18509 bsdi[45]*)
18510 version_type=linux
18511 need_version=no
18512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18513 soname_spec='${libname}${release}${shared_ext}$major'
18514 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18515 shlibpath_var=LD_LIBRARY_PATH
18516 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18517 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18518 # the default ld.so.conf also contains /usr/contrib/lib and
18519 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18520 # libtool to hard-code these into programs
18521 ;;
18522
18523 cygwin* | mingw* | pw32*)
18524 version_type=windows
18525 shrext_cmds=".dll"
18526 need_version=no
18527 need_lib_prefix=no
18528
18529 case $GCC,$host_os in
18530 yes,cygwin* | yes,mingw* | yes,pw32*)
18531 library_names_spec='$libname.dll.a'
18532 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18533 postinstall_cmds='base_file=`basename \${file}`~
18534 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18535 dldir=$destdir/`dirname \$dlpath`~
18536 test -d \$dldir || mkdir -p \$dldir~
18537 $install_prog $dir/$dlname \$dldir/$dlname~
18538 chmod a+x \$dldir/$dlname'
18539 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18540 dlpath=$dir/\$dldll~
18541 $rm \$dlpath'
18542 shlibpath_overrides_runpath=yes
18543
18544 case $host_os in
18545 cygwin*)
18546 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18547 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18548 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18549 ;;
18550 mingw*)
18551 # MinGW DLLs use traditional 'lib' prefix
18552 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18553 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18554 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18555 # It is most probably a Windows format PATH printed by
18556 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18557 # path with ; separators, and with drive letters. We can handle the
18558 # drive letters (cygwin fileutils understands them), so leave them,
18559 # especially as we might pass files found there to a mingw objdump,
18560 # which wouldn't understand a cygwinified path. Ahh.
18561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18562 else
18563 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18564 fi
18565 ;;
18566 pw32*)
18567 # pw32 DLLs use 'pw' prefix rather than 'lib'
18568 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18569 ;;
18570 esac
18571 ;;
18572
18573 *)
18574 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18575 ;;
18576 esac
18577 dynamic_linker='Win32 ld.exe'
18578 # FIXME: first we should search . and the directory the executable is in
18579 shlibpath_var=PATH
18580 ;;
18581
18582 darwin* | rhapsody*)
18583 dynamic_linker="$host_os dyld"
18584 version_type=darwin
18585 need_lib_prefix=no
18586 need_version=no
18587 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18588 soname_spec='${libname}${release}${major}$shared_ext'
18589 shlibpath_overrides_runpath=yes
18590 shlibpath_var=DYLD_LIBRARY_PATH
18591 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18592
18593 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18594 ;;
18595
18596 dgux*)
18597 version_type=linux
18598 need_lib_prefix=no
18599 need_version=no
18600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18601 soname_spec='${libname}${release}${shared_ext}$major'
18602 shlibpath_var=LD_LIBRARY_PATH
18603 ;;
18604
18605 freebsd1*)
18606 dynamic_linker=no
18607 ;;
18608
18609 freebsd* | dragonfly*)
18610 # DragonFly does not have aout. When/if they implement a new
18611 # versioning mechanism, adjust this.
18612 if test -x /usr/bin/objformat; then
18613 objformat=`/usr/bin/objformat`
18614 else
18615 case $host_os in
18616 freebsd[123]*) objformat=aout ;;
18617 *) objformat=elf ;;
18618 esac
18619 fi
18620 # Handle Gentoo/FreeBSD as it was Linux
18621 case $host_vendor in
18622 gentoo)
18623 version_type=linux ;;
18624 *)
18625 version_type=freebsd-$objformat ;;
18626 esac
18627
18628 case $version_type in
18629 freebsd-elf*)
18630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18631 need_version=no
18632 need_lib_prefix=no
18633 ;;
18634 freebsd-*)
18635 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18636 need_version=yes
18637 ;;
18638 linux)
18639 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18640 soname_spec='${libname}${release}${shared_ext}$major'
18641 need_lib_prefix=no
18642 need_version=no
18643 ;;
18644 esac
18645 shlibpath_var=LD_LIBRARY_PATH
18646 case $host_os in
18647 freebsd2*)
18648 shlibpath_overrides_runpath=yes
18649 ;;
18650 freebsd3.[01]* | freebsdelf3.[01]*)
18651 shlibpath_overrides_runpath=yes
18652 hardcode_into_libs=yes
18653 ;;
18654 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18655 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18656 shlibpath_overrides_runpath=no
18657 hardcode_into_libs=yes
18658 ;;
18659 *) # from 4.6 on, and DragonFly
18660 shlibpath_overrides_runpath=yes
18661 hardcode_into_libs=yes
18662 ;;
18663 esac
18664 ;;
18665
18666 gnu*)
18667 version_type=linux
18668 need_lib_prefix=no
18669 need_version=no
18670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
18671 soname_spec='${libname}${release}${shared_ext}$major'
18672 shlibpath_var=LD_LIBRARY_PATH
18673 hardcode_into_libs=yes
18674 ;;
18675
18676 hpux9* | hpux10* | hpux11*)
18677 # Give a soname corresponding to the major version so that dld.sl refuses to
18678 # link against other versions.
18679 version_type=sunos
18680 need_lib_prefix=no
18681 need_version=no
18682 case $host_cpu in
18683 ia64*)
18684 shrext_cmds='.so'
18685 hardcode_into_libs=yes
18686 dynamic_linker="$host_os dld.so"
18687 shlibpath_var=LD_LIBRARY_PATH
18688 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18689 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18690 soname_spec='${libname}${release}${shared_ext}$major'
18691 if test "X$HPUX_IA64_MODE" = X32; then
18692 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18693 else
18694 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18695 fi
18696 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18697 ;;
18698 hppa*64*)
18699 shrext_cmds='.sl'
18700 hardcode_into_libs=yes
18701 dynamic_linker="$host_os dld.sl"
18702 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18703 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18705 soname_spec='${libname}${release}${shared_ext}$major'
18706 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18707 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18708 ;;
18709 *)
18710 shrext_cmds='.sl'
18711 dynamic_linker="$host_os dld.sl"
18712 shlibpath_var=SHLIB_PATH
18713 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18715 soname_spec='${libname}${release}${shared_ext}$major'
18716 ;;
18717 esac
18718 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18719 postinstall_cmds='chmod 555 $lib'
18720 ;;
18721
18722 interix[3-9]*)
18723 version_type=linux
18724 need_lib_prefix=no
18725 need_version=no
18726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18727 soname_spec='${libname}${release}${shared_ext}$major'
18728 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18729 shlibpath_var=LD_LIBRARY_PATH
18730 shlibpath_overrides_runpath=no
18731 hardcode_into_libs=yes
18732 ;;
18733
18734 irix5* | irix6* | nonstopux*)
18735 case $host_os in
18736 nonstopux*) version_type=nonstopux ;;
18737 *)
18738 if test "$lt_cv_prog_gnu_ld" = yes; then
18739 version_type=linux
18740 else
18741 version_type=irix
18742 fi ;;
18743 esac
18744 need_lib_prefix=no
18745 need_version=no
18746 soname_spec='${libname}${release}${shared_ext}$major'
18747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18748 case $host_os in
18749 irix5* | nonstopux*)
18750 libsuff= shlibsuff=
18751 ;;
18752 *)
18753 case $LD in # libtool.m4 will add one of these switches to LD
18754 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18755 libsuff= shlibsuff= libmagic=32-bit;;
18756 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18757 libsuff=32 shlibsuff=N32 libmagic=N32;;
18758 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18759 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18760 *) libsuff= shlibsuff= libmagic=never-match;;
18761 esac
18762 ;;
18763 esac
18764 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18765 shlibpath_overrides_runpath=no
18766 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18767 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18768 hardcode_into_libs=yes
18769 ;;
18770
18771 # No shared lib support for Linux oldld, aout, or coff.
18772 linux*oldld* | linux*aout* | linux*coff*)
18773 dynamic_linker=no
18774 ;;
18775
18776 # This must be Linux ELF.
18777 linux* | k*bsd*-gnu)
18778 version_type=linux
18779 need_lib_prefix=no
18780 need_version=no
18781 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18782 soname_spec='${libname}${release}${shared_ext}$major'
18783 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18784 shlibpath_var=LD_LIBRARY_PATH
18785 shlibpath_overrides_runpath=no
18786 # This implies no fast_install, which is unacceptable.
18787 # Some rework will be needed to allow for fast_install
18788 # before this can be enabled.
18789 hardcode_into_libs=yes
18790
18791 # Append ld.so.conf contents to the search path
18792 if test -f /etc/ld.so.conf; then
18793 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' ' '`
18794 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18795 fi
18796
18797 # We used to test for /lib/ld.so.1 and disable shared libraries on
18798 # powerpc, because MkLinux only supported shared libraries with the
18799 # GNU dynamic linker. Since this was broken with cross compilers,
18800 # most powerpc-linux boxes support dynamic linking these days and
18801 # people can always --disable-shared, the test was removed, and we
18802 # assume the GNU/Linux dynamic linker is in use.
18803 dynamic_linker='GNU/Linux ld.so'
18804 ;;
18805
18806 netbsd*)
18807 version_type=sunos
18808 need_lib_prefix=no
18809 need_version=no
18810 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18812 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18813 dynamic_linker='NetBSD (a.out) ld.so'
18814 else
18815 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18816 soname_spec='${libname}${release}${shared_ext}$major'
18817 dynamic_linker='NetBSD ld.elf_so'
18818 fi
18819 shlibpath_var=LD_LIBRARY_PATH
18820 shlibpath_overrides_runpath=yes
18821 hardcode_into_libs=yes
18822 ;;
18823
18824 newsos6)
18825 version_type=linux
18826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18827 shlibpath_var=LD_LIBRARY_PATH
18828 shlibpath_overrides_runpath=yes
18829 ;;
18830
18831 nto-qnx*)
18832 version_type=linux
18833 need_lib_prefix=no
18834 need_version=no
18835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18836 soname_spec='${libname}${release}${shared_ext}$major'
18837 shlibpath_var=LD_LIBRARY_PATH
18838 shlibpath_overrides_runpath=yes
18839 ;;
18840
18841 openbsd*)
18842 version_type=sunos
18843 sys_lib_dlsearch_path_spec="/usr/lib"
18844 need_lib_prefix=no
18845 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18846 case $host_os in
18847 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18848 *) need_version=no ;;
18849 esac
18850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18851 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18852 shlibpath_var=LD_LIBRARY_PATH
18853 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18854 case $host_os in
18855 openbsd2.[89] | openbsd2.[89].*)
18856 shlibpath_overrides_runpath=no
18857 ;;
18858 *)
18859 shlibpath_overrides_runpath=yes
18860 ;;
18861 esac
18862 else
18863 shlibpath_overrides_runpath=yes
18864 fi
18865 ;;
18866
18867 os2*)
18868 libname_spec='$name'
18869 shrext_cmds=".dll"
18870 need_lib_prefix=no
18871 library_names_spec='$libname${shared_ext} $libname.a'
18872 dynamic_linker='OS/2 ld.exe'
18873 shlibpath_var=LIBPATH
18874 ;;
18875
18876 osf3* | osf4* | osf5*)
18877 version_type=osf
18878 need_lib_prefix=no
18879 need_version=no
18880 soname_spec='${libname}${release}${shared_ext}$major'
18881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18882 shlibpath_var=LD_LIBRARY_PATH
18883 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18884 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18885 ;;
18886
18887 rdos*)
18888 dynamic_linker=no
18889 ;;
18890
18891 solaris*)
18892 version_type=linux
18893 need_lib_prefix=no
18894 need_version=no
18895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18896 soname_spec='${libname}${release}${shared_ext}$major'
18897 shlibpath_var=LD_LIBRARY_PATH
18898 shlibpath_overrides_runpath=yes
18899 hardcode_into_libs=yes
18900 # ldd complains unless libraries are executable
18901 postinstall_cmds='chmod +x $lib'
18902 ;;
18903
18904 sunos4*)
18905 version_type=sunos
18906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18907 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18908 shlibpath_var=LD_LIBRARY_PATH
18909 shlibpath_overrides_runpath=yes
18910 if test "$with_gnu_ld" = yes; then
18911 need_lib_prefix=no
18912 fi
18913 need_version=yes
18914 ;;
18915
18916 sysv4 | sysv4.3*)
18917 version_type=linux
18918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18919 soname_spec='${libname}${release}${shared_ext}$major'
18920 shlibpath_var=LD_LIBRARY_PATH
18921 case $host_vendor in
18922 sni)
18923 shlibpath_overrides_runpath=no
18924 need_lib_prefix=no
18925 export_dynamic_flag_spec='${wl}-Blargedynsym'
18926 runpath_var=LD_RUN_PATH
18927 ;;
18928 siemens)
18929 need_lib_prefix=no
18930 ;;
18931 motorola)
18932 need_lib_prefix=no
18933 need_version=no
18934 shlibpath_overrides_runpath=no
18935 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18936 ;;
18937 esac
18938 ;;
18939
18940 sysv4*MP*)
18941 if test -d /usr/nec ;then
18942 version_type=linux
18943 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18944 soname_spec='$libname${shared_ext}.$major'
18945 shlibpath_var=LD_LIBRARY_PATH
18946 fi
18947 ;;
18948
18949 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18950 version_type=freebsd-elf
18951 need_lib_prefix=no
18952 need_version=no
18953 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18954 soname_spec='${libname}${release}${shared_ext}$major'
18955 shlibpath_var=LD_LIBRARY_PATH
18956 hardcode_into_libs=yes
18957 if test "$with_gnu_ld" = yes; then
18958 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18959 shlibpath_overrides_runpath=no
18960 else
18961 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18962 shlibpath_overrides_runpath=yes
18963 case $host_os in
18964 sco3.2v5*)
18965 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18966 ;;
18967 esac
18968 fi
18969 sys_lib_dlsearch_path_spec='/usr/lib'
18970 ;;
18971
18972 uts4*)
18973 version_type=linux
18974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18975 soname_spec='${libname}${release}${shared_ext}$major'
18976 shlibpath_var=LD_LIBRARY_PATH
18977 ;;
18978
18979 *)
18980 dynamic_linker=no
18981 ;;
18982 esac
18983 { $as_echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18984 $as_echo "$dynamic_linker" >&6; }
18985 test "$dynamic_linker" = no && can_build_shared=no
18986
18987 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18988 $as_echo_n "(cached) " >&6
18989 else
18990 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18991 fi
18992
18993 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18994 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18995 $as_echo_n "(cached) " >&6
18996 else
18997 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18998 fi
18999
19000 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
19001
19002 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19003 if test "$GCC" = yes; then
19004 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19005 fi
19006
19007 { $as_echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19008 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
19009 hardcode_action_GCJ=
19010 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19011 test -n "$runpath_var_GCJ" || \
19012 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
19013
19014 # We can hardcode non-existant directories.
19015 if test "$hardcode_direct_GCJ" != no &&
19016 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19017 # have to relink, otherwise we might link with an installed library
19018 # when we should be linking with a yet-to-be-installed one
19019 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19020 test "$hardcode_minus_L_GCJ" != no; then
19021 # Linking always hardcodes the temporary library directory.
19022 hardcode_action_GCJ=relink
19023 else
19024 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19025 hardcode_action_GCJ=immediate
19026 fi
19027 else
19028 # We cannot hardcode anything, or else we can only hardcode existing
19029 # directories.
19030 hardcode_action_GCJ=unsupported
19031 fi
19032 { $as_echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19033 $as_echo "$hardcode_action_GCJ" >&6; }
19034
19035 if test "$hardcode_action_GCJ" = relink; then
19036 # Fast installation is not supported
19037 enable_fast_install=no
19038 elif test "$shlibpath_overrides_runpath" = yes ||
19039 test "$enable_shared" = no; then
19040 # Fast installation is not necessary
19041 enable_fast_install=needless
19042 fi
19043
19044
19045 # The else clause should only fire when bootstrapping the
19046 # libtool distribution, otherwise you forgot to ship ltmain.sh
19047 # with your package, and you will get complaints that there are
19048 # no rules to generate ltmain.sh.
19049 if test -f "$ltmain"; then
19050 # See if we are running on zsh, and set the options which allow our commands through
19051 # without removal of \ escapes.
19052 if test -n "${ZSH_VERSION+set}" ; then
19053 setopt NO_GLOB_SUBST
19054 fi
19055 # Now quote all the things that may contain metacharacters while being
19056 # careful not to overquote the AC_SUBSTed values. We take copies of the
19057 # variables and quote the copies for generation of the libtool script.
19058 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19059 SED SHELL STRIP \
19060 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19061 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19062 deplibs_check_method reload_flag reload_cmds need_locks \
19063 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19064 lt_cv_sys_global_symbol_to_c_name_address \
19065 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19066 old_postinstall_cmds old_postuninstall_cmds \
19067 compiler_GCJ \
19068 CC_GCJ \
19069 LD_GCJ \
19070 lt_prog_compiler_wl_GCJ \
19071 lt_prog_compiler_pic_GCJ \
19072 lt_prog_compiler_static_GCJ \
19073 lt_prog_compiler_no_builtin_flag_GCJ \
19074 export_dynamic_flag_spec_GCJ \
19075 thread_safe_flag_spec_GCJ \
19076 whole_archive_flag_spec_GCJ \
19077 enable_shared_with_static_runtimes_GCJ \
19078 old_archive_cmds_GCJ \
19079 old_archive_from_new_cmds_GCJ \
19080 predep_objects_GCJ \
19081 postdep_objects_GCJ \
19082 predeps_GCJ \
19083 postdeps_GCJ \
19084 compiler_lib_search_path_GCJ \
19085 compiler_lib_search_dirs_GCJ \
19086 archive_cmds_GCJ \
19087 archive_expsym_cmds_GCJ \
19088 postinstall_cmds_GCJ \
19089 postuninstall_cmds_GCJ \
19090 old_archive_from_expsyms_cmds_GCJ \
19091 allow_undefined_flag_GCJ \
19092 no_undefined_flag_GCJ \
19093 export_symbols_cmds_GCJ \
19094 hardcode_libdir_flag_spec_GCJ \
19095 hardcode_libdir_flag_spec_ld_GCJ \
19096 hardcode_libdir_separator_GCJ \
19097 hardcode_automatic_GCJ \
19098 module_cmds_GCJ \
19099 module_expsym_cmds_GCJ \
19100 lt_cv_prog_compiler_c_o_GCJ \
19101 fix_srcfile_path_GCJ \
19102 exclude_expsyms_GCJ \
19103 include_expsyms_GCJ; do
19104
19105 case $var in
19106 old_archive_cmds_GCJ | \
19107 old_archive_from_new_cmds_GCJ | \
19108 archive_cmds_GCJ | \
19109 archive_expsym_cmds_GCJ | \
19110 module_cmds_GCJ | \
19111 module_expsym_cmds_GCJ | \
19112 old_archive_from_expsyms_cmds_GCJ | \
19113 export_symbols_cmds_GCJ | \
19114 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19115 postinstall_cmds | postuninstall_cmds | \
19116 old_postinstall_cmds | old_postuninstall_cmds | \
19117 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19118 # Double-quote double-evaled strings.
19119 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19120 ;;
19121 *)
19122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19123 ;;
19124 esac
19125 done
19126
19127 case $lt_echo in
19128 *'\$0 --fallback-echo"')
19129 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19130 ;;
19131 esac
19132
19133 cfgfile="$ofile"
19134
19135 cat <<__EOF__ >> "$cfgfile"
19136 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19137
19138 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19139
19140 # Shell to use when invoking shell scripts.
19141 SHELL=$lt_SHELL
19142
19143 # Whether or not to build shared libraries.
19144 build_libtool_libs=$enable_shared
19145
19146 # Whether or not to build static libraries.
19147 build_old_libs=$enable_static
19148
19149 # Whether or not to add -lc for building shared libraries.
19150 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
19151
19152 # Whether or not to disallow shared libs when runtime libs are static
19153 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
19154
19155 # Whether or not to optimize for fast installation.
19156 fast_install=$enable_fast_install
19157
19158 # The host system.
19159 host_alias=$host_alias
19160 host=$host
19161 host_os=$host_os
19162
19163 # The build system.
19164 build_alias=$build_alias
19165 build=$build
19166 build_os=$build_os
19167
19168 # An echo program that does not interpret backslashes.
19169 echo=$lt_echo
19170
19171 # The archiver.
19172 AR=$lt_AR
19173 AR_FLAGS=$lt_AR_FLAGS
19174
19175 # A C compiler.
19176 LTCC=$lt_LTCC
19177
19178 # LTCC compiler flags.
19179 LTCFLAGS=$lt_LTCFLAGS
19180
19181 # A language-specific compiler.
19182 CC=$lt_compiler_GCJ
19183
19184 # Is the compiler the GNU C compiler?
19185 with_gcc=$GCC_GCJ
19186
19187 # An ERE matcher.
19188 EGREP=$lt_EGREP
19189
19190 # The linker used to build libraries.
19191 LD=$lt_LD_GCJ
19192
19193 # Whether we need hard or soft links.
19194 LN_S=$lt_LN_S
19195
19196 # A BSD-compatible nm program.
19197 NM=$lt_NM
19198
19199 # A symbol stripping program
19200 STRIP=$lt_STRIP
19201
19202 # Used to examine libraries when file_magic_cmd begins "file"
19203 MAGIC_CMD=$MAGIC_CMD
19204
19205 # Used on cygwin: DLL creation program.
19206 DLLTOOL="$DLLTOOL"
19207
19208 # Used on cygwin: object dumper.
19209 OBJDUMP="$OBJDUMP"
19210
19211 # Used on cygwin: assembler.
19212 AS="$AS"
19213
19214 # The name of the directory that contains temporary libtool files.
19215 objdir=$objdir
19216
19217 # How to create reloadable object files.
19218 reload_flag=$lt_reload_flag
19219 reload_cmds=$lt_reload_cmds
19220
19221 # How to pass a linker flag through the compiler.
19222 wl=$lt_lt_prog_compiler_wl_GCJ
19223
19224 # Object file suffix (normally "o").
19225 objext="$ac_objext"
19226
19227 # Old archive suffix (normally "a").
19228 libext="$libext"
19229
19230 # Shared library suffix (normally ".so").
19231 shrext_cmds='$shrext_cmds'
19232
19233 # Executable file suffix (normally "").
19234 exeext="$exeext"
19235
19236 # Additional compiler flags for building library objects.
19237 pic_flag=$lt_lt_prog_compiler_pic_GCJ
19238 pic_mode=$pic_mode
19239
19240 # What is the maximum length of a command?
19241 max_cmd_len=$lt_cv_sys_max_cmd_len
19242
19243 # Does compiler simultaneously support -c and -o options?
19244 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
19245
19246 # Must we lock files when doing compilation?
19247 need_locks=$lt_need_locks
19248
19249 # Do we need the lib prefix for modules?
19250 need_lib_prefix=$need_lib_prefix
19251
19252 # Do we need a version for libraries?
19253 need_version=$need_version
19254
19255 # Whether dlopen is supported.
19256 dlopen_support=$enable_dlopen
19257
19258 # Whether dlopen of programs is supported.
19259 dlopen_self=$enable_dlopen_self
19260
19261 # Whether dlopen of statically linked programs is supported.
19262 dlopen_self_static=$enable_dlopen_self_static
19263
19264 # Compiler flag to prevent dynamic linking.
19265 link_static_flag=$lt_lt_prog_compiler_static_GCJ
19266
19267 # Compiler flag to turn off builtin functions.
19268 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
19269
19270 # Compiler flag to allow reflexive dlopens.
19271 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
19272
19273 # Compiler flag to generate shared objects directly from archives.
19274 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
19275
19276 # Compiler flag to generate thread-safe objects.
19277 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
19278
19279 # Library versioning type.
19280 version_type=$version_type
19281
19282 # Format of library name prefix.
19283 libname_spec=$lt_libname_spec
19284
19285 # List of archive names. First name is the real one, the rest are links.
19286 # The last name is the one that the linker finds with -lNAME.
19287 library_names_spec=$lt_library_names_spec
19288
19289 # The coded name of the library, if different from the real name.
19290 soname_spec=$lt_soname_spec
19291
19292 # Commands used to build and install an old-style archive.
19293 RANLIB=$lt_RANLIB
19294 old_archive_cmds=$lt_old_archive_cmds_GCJ
19295 old_postinstall_cmds=$lt_old_postinstall_cmds
19296 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19297
19298 # Create an old-style archive from a shared archive.
19299 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
19300
19301 # Create a temporary old-style archive to link instead of a shared archive.
19302 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
19303
19304 # Commands used to build and install a shared archive.
19305 archive_cmds=$lt_archive_cmds_GCJ
19306 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
19307 postinstall_cmds=$lt_postinstall_cmds
19308 postuninstall_cmds=$lt_postuninstall_cmds
19309
19310 # Commands used to build a loadable module (assumed same as above if empty)
19311 module_cmds=$lt_module_cmds_GCJ
19312 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
19313
19314 # Commands to strip libraries.
19315 old_striplib=$lt_old_striplib
19316 striplib=$lt_striplib
19317
19318 # Dependencies to place before the objects being linked to create a
19319 # shared library.
19320 predep_objects=$lt_predep_objects_GCJ
19321
19322 # Dependencies to place after the objects being linked to create a
19323 # shared library.
19324 postdep_objects=$lt_postdep_objects_GCJ
19325
19326 # Dependencies to place before the objects being linked to create a
19327 # shared library.
19328 predeps=$lt_predeps_GCJ
19329
19330 # Dependencies to place after the objects being linked to create a
19331 # shared library.
19332 postdeps=$lt_postdeps_GCJ
19333
19334 # The directories searched by this compiler when creating a shared
19335 # library
19336 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
19337
19338 # The library search path used internally by the compiler when linking
19339 # a shared library.
19340 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
19341
19342 # Method to check whether dependent libraries are shared objects.
19343 deplibs_check_method=$lt_deplibs_check_method
19344
19345 # Command to use when deplibs_check_method == file_magic.
19346 file_magic_cmd=$lt_file_magic_cmd
19347
19348 # Flag that allows shared libraries with undefined symbols to be built.
19349 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
19350
19351 # Flag that forces no undefined symbols.
19352 no_undefined_flag=$lt_no_undefined_flag_GCJ
19353
19354 # Commands used to finish a libtool library installation in a directory.
19355 finish_cmds=$lt_finish_cmds
19356
19357 # Same as above, but a single script fragment to be evaled but not shown.
19358 finish_eval=$lt_finish_eval
19359
19360 # Take the output of nm and produce a listing of raw symbols and C names.
19361 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19362
19363 # Transform the output of nm in a proper C declaration
19364 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19365
19366 # Transform the output of nm in a C name address pair
19367 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19368
19369 # This is the shared library runtime path variable.
19370 runpath_var=$runpath_var
19371
19372 # This is the shared library path variable.
19373 shlibpath_var=$shlibpath_var
19374
19375 # Is shlibpath searched before the hard-coded library search path?
19376 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19377
19378 # How to hardcode a shared library path into an executable.
19379 hardcode_action=$hardcode_action_GCJ
19380
19381 # Whether we should hardcode library paths into libraries.
19382 hardcode_into_libs=$hardcode_into_libs
19383
19384 # Flag to hardcode \$libdir into a binary during linking.
19385 # This must work even if \$libdir does not exist.
19386 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
19387
19388 # If ld is used when linking, flag to hardcode \$libdir into
19389 # a binary during linking. This must work even if \$libdir does
19390 # not exist.
19391 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
19392
19393 # Whether we need a single -rpath flag with a separated argument.
19394 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
19395
19396 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19397 # resulting binary.
19398 hardcode_direct=$hardcode_direct_GCJ
19399
19400 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19401 # resulting binary.
19402 hardcode_minus_L=$hardcode_minus_L_GCJ
19403
19404 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19405 # the resulting binary.
19406 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
19407
19408 # Set to yes if building a shared library automatically hardcodes DIR into the library
19409 # and all subsequent libraries and executables linked against it.
19410 hardcode_automatic=$hardcode_automatic_GCJ
19411
19412 # Variables whose values should be saved in libtool wrapper scripts and
19413 # restored at relink time.
19414 variables_saved_for_relink="$variables_saved_for_relink"
19415
19416 # Whether libtool must link a program against all its dependency libraries.
19417 link_all_deplibs=$link_all_deplibs_GCJ
19418
19419 # Compile-time system search path for libraries
19420 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19421
19422 # Run-time system search path for libraries
19423 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19424
19425 # Fix the shell variable \$srcfile for the compiler.
19426 fix_srcfile_path=$lt_fix_srcfile_path
19427
19428 # Set to yes if exported symbols are required.
19429 always_export_symbols=$always_export_symbols_GCJ
19430
19431 # The commands to list exported symbols.
19432 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
19433
19434 # The commands to extract the exported symbol list from a shared archive.
19435 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19436
19437 # Symbols that should not be listed in the preloaded symbols.
19438 exclude_expsyms=$lt_exclude_expsyms_GCJ
19439
19440 # Symbols that must always be exported.
19441 include_expsyms=$lt_include_expsyms_GCJ
19442
19443 # ### END LIBTOOL TAG CONFIG: $tagname
19444
19445 __EOF__
19446
19447
19448 else
19449 # If there is no Makefile yet, we rely on a make rule to execute
19450 # `config.status --recheck' to rerun these tests and create the
19451 # libtool script then.
19452 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19453 if test -f "$ltmain_in"; then
19454 test -f Makefile && make "$ltmain"
19455 fi
19456 fi
19457
19458
19459 ac_ext=c
19460 ac_cpp='$CPP $CPPFLAGS'
19461 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19462 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19463 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19464
19465 CC="$lt_save_CC"
19466
19467 else
19468 tagname=""
19469 fi
19470 ;;
19471
19472 RC)
19473
19474
19475 # Source file extension for RC test sources.
19476 ac_ext=rc
19477
19478 # Object file extension for compiled RC test sources.
19479 objext=o
19480 objext_RC=$objext
19481
19482 # Code to be used in simple compile tests
19483 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
19484
19485 # Code to be used in simple link tests
19486 lt_simple_link_test_code="$lt_simple_compile_test_code"
19487
19488 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
19489
19490 # If no C compiler was specified, use CC.
19491 LTCC=${LTCC-"$CC"}
19492
19493 # If no C compiler flags were specified, use CFLAGS.
19494 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
19495
19496 # Allow CC to be a program name with arguments.
19497 compiler=$CC
19498
19499
19500 # save warnings/boilerplate of simple test code
19501 ac_outfile=conftest.$ac_objext
19502 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
19503 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19504 _lt_compiler_boilerplate=`cat conftest.err`
19505 $rm conftest*
19506
19507 ac_outfile=conftest.$ac_objext
19508 echo "$lt_simple_link_test_code" >conftest.$ac_ext
19509 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
19510 _lt_linker_boilerplate=`cat conftest.err`
19511 $rm -r conftest*
19512
19513
19514 # Allow CC to be a program name with arguments.
19515 lt_save_CC="$CC"
19516 CC=${RC-"windres"}
19517 compiler=$CC
19518 compiler_RC=$CC
19519 for cc_temp in $compiler""; do
19520 case $cc_temp in
19521 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
19522 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
19523 \-*) ;;
19524 *) break;;
19525 esac
19526 done
19527 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19528
19529 lt_cv_prog_compiler_c_o_RC=yes
19530
19531 # The else clause should only fire when bootstrapping the
19532 # libtool distribution, otherwise you forgot to ship ltmain.sh
19533 # with your package, and you will get complaints that there are
19534 # no rules to generate ltmain.sh.
19535 if test -f "$ltmain"; then
19536 # See if we are running on zsh, and set the options which allow our commands through
19537 # without removal of \ escapes.
19538 if test -n "${ZSH_VERSION+set}" ; then
19539 setopt NO_GLOB_SUBST
19540 fi
19541 # Now quote all the things that may contain metacharacters while being
19542 # careful not to overquote the AC_SUBSTed values. We take copies of the
19543 # variables and quote the copies for generation of the libtool script.
19544 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
19545 SED SHELL STRIP \
19546 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
19547 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
19548 deplibs_check_method reload_flag reload_cmds need_locks \
19549 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
19550 lt_cv_sys_global_symbol_to_c_name_address \
19551 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
19552 old_postinstall_cmds old_postuninstall_cmds \
19553 compiler_RC \
19554 CC_RC \
19555 LD_RC \
19556 lt_prog_compiler_wl_RC \
19557 lt_prog_compiler_pic_RC \
19558 lt_prog_compiler_static_RC \
19559 lt_prog_compiler_no_builtin_flag_RC \
19560 export_dynamic_flag_spec_RC \
19561 thread_safe_flag_spec_RC \
19562 whole_archive_flag_spec_RC \
19563 enable_shared_with_static_runtimes_RC \
19564 old_archive_cmds_RC \
19565 old_archive_from_new_cmds_RC \
19566 predep_objects_RC \
19567 postdep_objects_RC \
19568 predeps_RC \
19569 postdeps_RC \
19570 compiler_lib_search_path_RC \
19571 compiler_lib_search_dirs_RC \
19572 archive_cmds_RC \
19573 archive_expsym_cmds_RC \
19574 postinstall_cmds_RC \
19575 postuninstall_cmds_RC \
19576 old_archive_from_expsyms_cmds_RC \
19577 allow_undefined_flag_RC \
19578 no_undefined_flag_RC \
19579 export_symbols_cmds_RC \
19580 hardcode_libdir_flag_spec_RC \
19581 hardcode_libdir_flag_spec_ld_RC \
19582 hardcode_libdir_separator_RC \
19583 hardcode_automatic_RC \
19584 module_cmds_RC \
19585 module_expsym_cmds_RC \
19586 lt_cv_prog_compiler_c_o_RC \
19587 fix_srcfile_path_RC \
19588 exclude_expsyms_RC \
19589 include_expsyms_RC; do
19590
19591 case $var in
19592 old_archive_cmds_RC | \
19593 old_archive_from_new_cmds_RC | \
19594 archive_cmds_RC | \
19595 archive_expsym_cmds_RC | \
19596 module_cmds_RC | \
19597 module_expsym_cmds_RC | \
19598 old_archive_from_expsyms_cmds_RC | \
19599 export_symbols_cmds_RC | \
19600 extract_expsyms_cmds | reload_cmds | finish_cmds | \
19601 postinstall_cmds | postuninstall_cmds | \
19602 old_postinstall_cmds | old_postuninstall_cmds | \
19603 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
19604 # Double-quote double-evaled strings.
19605 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
19606 ;;
19607 *)
19608 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
19609 ;;
19610 esac
19611 done
19612
19613 case $lt_echo in
19614 *'\$0 --fallback-echo"')
19615 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
19616 ;;
19617 esac
19618
19619 cfgfile="$ofile"
19620
19621 cat <<__EOF__ >> "$cfgfile"
19622 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
19623
19624 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
19625
19626 # Shell to use when invoking shell scripts.
19627 SHELL=$lt_SHELL
19628
19629 # Whether or not to build shared libraries.
19630 build_libtool_libs=$enable_shared
19631
19632 # Whether or not to build static libraries.
19633 build_old_libs=$enable_static
19634
19635 # Whether or not to add -lc for building shared libraries.
19636 build_libtool_need_lc=$archive_cmds_need_lc_RC
19637
19638 # Whether or not to disallow shared libs when runtime libs are static
19639 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
19640
19641 # Whether or not to optimize for fast installation.
19642 fast_install=$enable_fast_install
19643
19644 # The host system.
19645 host_alias=$host_alias
19646 host=$host
19647 host_os=$host_os
19648
19649 # The build system.
19650 build_alias=$build_alias
19651 build=$build
19652 build_os=$build_os
19653
19654 # An echo program that does not interpret backslashes.
19655 echo=$lt_echo
19656
19657 # The archiver.
19658 AR=$lt_AR
19659 AR_FLAGS=$lt_AR_FLAGS
19660
19661 # A C compiler.
19662 LTCC=$lt_LTCC
19663
19664 # LTCC compiler flags.
19665 LTCFLAGS=$lt_LTCFLAGS
19666
19667 # A language-specific compiler.
19668 CC=$lt_compiler_RC
19669
19670 # Is the compiler the GNU C compiler?
19671 with_gcc=$GCC_RC
19672
19673 # An ERE matcher.
19674 EGREP=$lt_EGREP
19675
19676 # The linker used to build libraries.
19677 LD=$lt_LD_RC
19678
19679 # Whether we need hard or soft links.
19680 LN_S=$lt_LN_S
19681
19682 # A BSD-compatible nm program.
19683 NM=$lt_NM
19684
19685 # A symbol stripping program
19686 STRIP=$lt_STRIP
19687
19688 # Used to examine libraries when file_magic_cmd begins "file"
19689 MAGIC_CMD=$MAGIC_CMD
19690
19691 # Used on cygwin: DLL creation program.
19692 DLLTOOL="$DLLTOOL"
19693
19694 # Used on cygwin: object dumper.
19695 OBJDUMP="$OBJDUMP"
19696
19697 # Used on cygwin: assembler.
19698 AS="$AS"
19699
19700 # The name of the directory that contains temporary libtool files.
19701 objdir=$objdir
19702
19703 # How to create reloadable object files.
19704 reload_flag=$lt_reload_flag
19705 reload_cmds=$lt_reload_cmds
19706
19707 # How to pass a linker flag through the compiler.
19708 wl=$lt_lt_prog_compiler_wl_RC
19709
19710 # Object file suffix (normally "o").
19711 objext="$ac_objext"
19712
19713 # Old archive suffix (normally "a").
19714 libext="$libext"
19715
19716 # Shared library suffix (normally ".so").
19717 shrext_cmds='$shrext_cmds'
19718
19719 # Executable file suffix (normally "").
19720 exeext="$exeext"
19721
19722 # Additional compiler flags for building library objects.
19723 pic_flag=$lt_lt_prog_compiler_pic_RC
19724 pic_mode=$pic_mode
19725
19726 # What is the maximum length of a command?
19727 max_cmd_len=$lt_cv_sys_max_cmd_len
19728
19729 # Does compiler simultaneously support -c and -o options?
19730 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
19731
19732 # Must we lock files when doing compilation?
19733 need_locks=$lt_need_locks
19734
19735 # Do we need the lib prefix for modules?
19736 need_lib_prefix=$need_lib_prefix
19737
19738 # Do we need a version for libraries?
19739 need_version=$need_version
19740
19741 # Whether dlopen is supported.
19742 dlopen_support=$enable_dlopen
19743
19744 # Whether dlopen of programs is supported.
19745 dlopen_self=$enable_dlopen_self
19746
19747 # Whether dlopen of statically linked programs is supported.
19748 dlopen_self_static=$enable_dlopen_self_static
19749
19750 # Compiler flag to prevent dynamic linking.
19751 link_static_flag=$lt_lt_prog_compiler_static_RC
19752
19753 # Compiler flag to turn off builtin functions.
19754 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19755
19756 # Compiler flag to allow reflexive dlopens.
19757 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19758
19759 # Compiler flag to generate shared objects directly from archives.
19760 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19761
19762 # Compiler flag to generate thread-safe objects.
19763 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19764
19765 # Library versioning type.
19766 version_type=$version_type
19767
19768 # Format of library name prefix.
19769 libname_spec=$lt_libname_spec
19770
19771 # List of archive names. First name is the real one, the rest are links.
19772 # The last name is the one that the linker finds with -lNAME.
19773 library_names_spec=$lt_library_names_spec
19774
19775 # The coded name of the library, if different from the real name.
19776 soname_spec=$lt_soname_spec
19777
19778 # Commands used to build and install an old-style archive.
19779 RANLIB=$lt_RANLIB
19780 old_archive_cmds=$lt_old_archive_cmds_RC
19781 old_postinstall_cmds=$lt_old_postinstall_cmds
19782 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19783
19784 # Create an old-style archive from a shared archive.
19785 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19786
19787 # Create a temporary old-style archive to link instead of a shared archive.
19788 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19789
19790 # Commands used to build and install a shared archive.
19791 archive_cmds=$lt_archive_cmds_RC
19792 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19793 postinstall_cmds=$lt_postinstall_cmds
19794 postuninstall_cmds=$lt_postuninstall_cmds
19795
19796 # Commands used to build a loadable module (assumed same as above if empty)
19797 module_cmds=$lt_module_cmds_RC
19798 module_expsym_cmds=$lt_module_expsym_cmds_RC
19799
19800 # Commands to strip libraries.
19801 old_striplib=$lt_old_striplib
19802 striplib=$lt_striplib
19803
19804 # Dependencies to place before the objects being linked to create a
19805 # shared library.
19806 predep_objects=$lt_predep_objects_RC
19807
19808 # Dependencies to place after the objects being linked to create a
19809 # shared library.
19810 postdep_objects=$lt_postdep_objects_RC
19811
19812 # Dependencies to place before the objects being linked to create a
19813 # shared library.
19814 predeps=$lt_predeps_RC
19815
19816 # Dependencies to place after the objects being linked to create a
19817 # shared library.
19818 postdeps=$lt_postdeps_RC
19819
19820 # The directories searched by this compiler when creating a shared
19821 # library
19822 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19823
19824 # The library search path used internally by the compiler when linking
19825 # a shared library.
19826 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19827
19828 # Method to check whether dependent libraries are shared objects.
19829 deplibs_check_method=$lt_deplibs_check_method
19830
19831 # Command to use when deplibs_check_method == file_magic.
19832 file_magic_cmd=$lt_file_magic_cmd
19833
19834 # Flag that allows shared libraries with undefined symbols to be built.
19835 allow_undefined_flag=$lt_allow_undefined_flag_RC
19836
19837 # Flag that forces no undefined symbols.
19838 no_undefined_flag=$lt_no_undefined_flag_RC
19839
19840 # Commands used to finish a libtool library installation in a directory.
19841 finish_cmds=$lt_finish_cmds
19842
19843 # Same as above, but a single script fragment to be evaled but not shown.
19844 finish_eval=$lt_finish_eval
19845
19846 # Take the output of nm and produce a listing of raw symbols and C names.
19847 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19848
19849 # Transform the output of nm in a proper C declaration
19850 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19851
19852 # Transform the output of nm in a C name address pair
19853 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19854
19855 # This is the shared library runtime path variable.
19856 runpath_var=$runpath_var
19857
19858 # This is the shared library path variable.
19859 shlibpath_var=$shlibpath_var
19860
19861 # Is shlibpath searched before the hard-coded library search path?
19862 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19863
19864 # How to hardcode a shared library path into an executable.
19865 hardcode_action=$hardcode_action_RC
19866
19867 # Whether we should hardcode library paths into libraries.
19868 hardcode_into_libs=$hardcode_into_libs
19869
19870 # Flag to hardcode \$libdir into a binary during linking.
19871 # This must work even if \$libdir does not exist.
19872 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19873
19874 # If ld is used when linking, flag to hardcode \$libdir into
19875 # a binary during linking. This must work even if \$libdir does
19876 # not exist.
19877 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19878
19879 # Whether we need a single -rpath flag with a separated argument.
19880 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19881
19882 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19883 # resulting binary.
19884 hardcode_direct=$hardcode_direct_RC
19885
19886 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19887 # resulting binary.
19888 hardcode_minus_L=$hardcode_minus_L_RC
19889
19890 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19891 # the resulting binary.
19892 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19893
19894 # Set to yes if building a shared library automatically hardcodes DIR into the library
19895 # and all subsequent libraries and executables linked against it.
19896 hardcode_automatic=$hardcode_automatic_RC
19897
19898 # Variables whose values should be saved in libtool wrapper scripts and
19899 # restored at relink time.
19900 variables_saved_for_relink="$variables_saved_for_relink"
19901
19902 # Whether libtool must link a program against all its dependency libraries.
19903 link_all_deplibs=$link_all_deplibs_RC
19904
19905 # Compile-time system search path for libraries
19906 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19907
19908 # Run-time system search path for libraries
19909 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19910
19911 # Fix the shell variable \$srcfile for the compiler.
19912 fix_srcfile_path=$lt_fix_srcfile_path
19913
19914 # Set to yes if exported symbols are required.
19915 always_export_symbols=$always_export_symbols_RC
19916
19917 # The commands to list exported symbols.
19918 export_symbols_cmds=$lt_export_symbols_cmds_RC
19919
19920 # The commands to extract the exported symbol list from a shared archive.
19921 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19922
19923 # Symbols that should not be listed in the preloaded symbols.
19924 exclude_expsyms=$lt_exclude_expsyms_RC
19925
19926 # Symbols that must always be exported.
19927 include_expsyms=$lt_include_expsyms_RC
19928
19929 # ### END LIBTOOL TAG CONFIG: $tagname
19930
19931 __EOF__
19932
19933
19934 else
19935 # If there is no Makefile yet, we rely on a make rule to execute
19936 # `config.status --recheck' to rerun these tests and create the
19937 # libtool script then.
19938 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19939 if test -f "$ltmain_in"; then
19940 test -f Makefile && make "$ltmain"
19941 fi
19942 fi
19943
19944
19945 ac_ext=c
19946 ac_cpp='$CPP $CPPFLAGS'
19947 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19948 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19949 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19950
19951 CC="$lt_save_CC"
19952
19953 ;;
19954
19955 *)
19956 { { $as_echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19957 $as_echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19958 { (exit 1); exit 1; }; }
19959 ;;
19960 esac
19961
19962 # Append the new tag name to the list of available tags.
19963 if test -n "$tagname" ; then
19964 available_tags="$available_tags $tagname"
19965 fi
19966 fi
19967 done
19968 IFS="$lt_save_ifs"
19969
19970 # Now substitute the updated list of available tags.
19971 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19972 mv "${ofile}T" "$ofile"
19973 chmod +x "$ofile"
19974 else
19975 rm -f "${ofile}T"
19976 { { $as_echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19977 $as_echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19978 { (exit 1); exit 1; }; }
19979 fi
19980 fi
19981
19982
19983
19984 # This can be used to rebuild libtool when needed
19985 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19986
19987 # Always use our own libtool.
19988 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19989
19990 # Prevent multiple expansion
19991
19992
19993
19994
19995
19996
19997
19998
19999
20000
20001
20002
20003
20004
20005
20006
20007
20008
20009
20010
20011
20012 # Checks for libraries.
20013 BS2B_REQUIRED=3.1.0
20014
20015
20016 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
20017 if test -n "$ac_tool_prefix"; then
20018 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
20019 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
20020 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20021 $as_echo_n "checking for $ac_word... " >&6; }
20022 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
20023 $as_echo_n "(cached) " >&6
20024 else
20025 case $PKG_CONFIG in
20026 [\\/]* | ?:[\\/]*)
20027 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20028 ;;
20029 *)
20030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20031 for as_dir in $PATH
20032 do
20033 IFS=$as_save_IFS
20034 test -z "$as_dir" && as_dir=.
20035 for ac_exec_ext in '' $ac_executable_extensions; do
20036 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20037 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20038 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20039 break 2
20040 fi
20041 done
20042 done
20043 IFS=$as_save_IFS
20044
20045 ;;
20046 esac
20047 fi
20048 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20049 if test -n "$PKG_CONFIG"; then
20050 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
20051 $as_echo "$PKG_CONFIG" >&6; }
20052 else
20053 { $as_echo "$as_me:$LINENO: result: no" >&5
20054 $as_echo "no" >&6; }
20055 fi
20056
20057
20058 fi
20059 if test -z "$ac_cv_path_PKG_CONFIG"; then
20060 ac_pt_PKG_CONFIG=$PKG_CONFIG
20061 # Extract the first word of "pkg-config", so it can be a program name with args.
20062 set dummy pkg-config; ac_word=$2
20063 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
20064 $as_echo_n "checking for $ac_word... " >&6; }
20065 if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then
20066 $as_echo_n "(cached) " >&6
20067 else
20068 case $ac_pt_PKG_CONFIG in
20069 [\\/]* | ?:[\\/]*)
20070 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
20071 ;;
20072 *)
20073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20074 for as_dir in $PATH
20075 do
20076 IFS=$as_save_IFS
20077 test -z "$as_dir" && as_dir=.
20078 for ac_exec_ext in '' $ac_executable_extensions; do
20079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20080 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20081 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
20082 break 2
20083 fi
20084 done
20085 done
20086 IFS=$as_save_IFS
20087
20088 ;;
20089 esac
20090 fi
20091 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
20092 if test -n "$ac_pt_PKG_CONFIG"; then
20093 { $as_echo "$as_me:$LINENO: result: $ac_pt_PKG_CONFIG" >&5
20094 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
20095 else
20096 { $as_echo "$as_me:$LINENO: result: no" >&5
20097 $as_echo "no" >&6; }
20098 fi
20099
20100 if test "x$ac_pt_PKG_CONFIG" = x; then
20101 PKG_CONFIG=""
20102 else
20103 case $cross_compiling:$ac_tool_warned in
20104 yes:)
20105 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
20106 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20107 ac_tool_warned=yes ;;
20108 esac
20109 PKG_CONFIG=$ac_pt_PKG_CONFIG
20110 fi
20111 else
20112 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
20113 fi
20114
20115 fi
20116 if test -n "$PKG_CONFIG"; then
20117 _pkg_min_version=0.9.0
20118 { $as_echo "$as_me:$LINENO: checking pkg-config is at least version $_pkg_min_version" >&5
20119 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
20120 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
20121 { $as_echo "$as_me:$LINENO: result: yes" >&5
20122 $as_echo "yes" >&6; }
20123 else
20124 { $as_echo "$as_me:$LINENO: result: no" >&5
20125 $as_echo "no" >&6; }
20126 PKG_CONFIG=""
20127 fi
20128
20129 fi
20130
20131 pkg_failed=no
20132 { $as_echo "$as_me:$LINENO: checking for BS2B" >&5
20133 $as_echo_n "checking for BS2B... " >&6; }
20134
20135 if test -n "$BS2B_CFLAGS"; then
20136 pkg_cv_BS2B_CFLAGS="$BS2B_CFLAGS"
20137 elif test -n "$PKG_CONFIG"; then
20138 if test -n "$PKG_CONFIG" && \
20139 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
20140 libbs2b >= \${BS2B_REQUIRED}
20141 \"") >&5
20142 ($PKG_CONFIG --exists --print-errors "
20143 libbs2b >= ${BS2B_REQUIRED}
20144 ") 2>&5
20145 ac_status=$?
20146 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147 (exit $ac_status); }; then
20148 pkg_cv_BS2B_CFLAGS=`$PKG_CONFIG --cflags "
20149 libbs2b >= ${BS2B_REQUIRED}
20150 " 2>/dev/null`
20151 else
20152 pkg_failed=yes
20153 fi
20154 else
20155 pkg_failed=untried
20156 fi
20157 if test -n "$BS2B_LIBS"; then
20158 pkg_cv_BS2B_LIBS="$BS2B_LIBS"
20159 elif test -n "$PKG_CONFIG"; then
20160 if test -n "$PKG_CONFIG" && \
20161 { ($as_echo "$as_me:$LINENO: \$PKG_CONFIG --exists --print-errors \"
20162 libbs2b >= \${BS2B_REQUIRED}
20163 \"") >&5
20164 ($PKG_CONFIG --exists --print-errors "
20165 libbs2b >= ${BS2B_REQUIRED}
20166 ") 2>&5
20167 ac_status=$?
20168 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20169 (exit $ac_status); }; then
20170 pkg_cv_BS2B_LIBS=`$PKG_CONFIG --libs "
20171 libbs2b >= ${BS2B_REQUIRED}
20172 " 2>/dev/null`
20173 else
20174 pkg_failed=yes
20175 fi
20176 else
20177 pkg_failed=untried
20178 fi
20179
20180
20181
20182 if test $pkg_failed = yes; then
20183
20184 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
20185 _pkg_short_errors_supported=yes
20186 else
20187 _pkg_short_errors_supported=no
20188 fi
20189 if test $_pkg_short_errors_supported = yes; then
20190 BS2B_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "
20191 libbs2b >= ${BS2B_REQUIRED}
20192 " 2>&1`
20193 else
20194 BS2B_PKG_ERRORS=`$PKG_CONFIG --print-errors "
20195 libbs2b >= ${BS2B_REQUIRED}
20196 " 2>&1`
20197 fi
20198 # Put the nasty error message in config.log where it belongs
20199 echo "$BS2B_PKG_ERRORS" >&5
20200
20201 { $as_echo "$as_me:$LINENO: result: no" >&5
20202 $as_echo "no" >&6; }
20203
20204 { { $as_echo "$as_me:$LINENO: error: Please install libbs2b ${BS2B_REQUIRED} or later." >&5
20205 $as_echo "$as_me: error: Please install libbs2b ${BS2B_REQUIRED} or later." >&2;}
20206 { (exit 1); exit 1; }; }
20207
20208 elif test $pkg_failed = untried; then
20209
20210 { { $as_echo "$as_me:$LINENO: error: Please install libbs2b ${BS2B_REQUIRED} or later." >&5
20211 $as_echo "$as_me: error: Please install libbs2b ${BS2B_REQUIRED} or later." >&2;}
20212 { (exit 1); exit 1; }; }
20213
20214 else
20215 BS2B_CFLAGS=$pkg_cv_BS2B_CFLAGS
20216 BS2B_LIBS=$pkg_cv_BS2B_LIBS
20217 { $as_echo "$as_me:$LINENO: result: yes" >&5
20218 $as_echo "yes" >&6; }
20219 :
20220 fi
20221
20222 # Checks for header files.
20223
20224 for ac_header in ladspa.h
20225 do
20226 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20227 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20228 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20229 $as_echo_n "checking for $ac_header... " >&6; }
20230 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20231 $as_echo_n "(cached) " >&6
20232 fi
20233 ac_res=`eval 'as_val=${'$as_ac_Header'}
20234 $as_echo "$as_val"'`
20235 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20236 $as_echo "$ac_res" >&6; }
20237 else
20238 # Is the header compilable?
20239 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20240 $as_echo_n "checking $ac_header usability... " >&6; }
20241 cat >conftest.$ac_ext <<_ACEOF
20242 /* confdefs.h. */
20243 _ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h. */
20247 $ac_includes_default
20248 #include <$ac_header>
20249 _ACEOF
20250 rm -f conftest.$ac_objext
20251 if { (ac_try="$ac_compile"
20252 case "(($ac_try" in
20253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20254 *) ac_try_echo=$ac_try;;
20255 esac
20256 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20257 $as_echo "$ac_try_echo") >&5
20258 (eval "$ac_compile") 2>conftest.er1
20259 ac_status=$?
20260 grep -v '^ *+' conftest.er1 >conftest.err
20261 rm -f conftest.er1
20262 cat conftest.err >&5
20263 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } && {
20265 test -z "$ac_c_werror_flag" ||
20266 test ! -s conftest.err
20267 } && test -s conftest.$ac_objext; then
20268 ac_header_compiler=yes
20269 else
20270 $as_echo "$as_me: failed program was:" >&5
20271 sed 's/^/| /' conftest.$ac_ext >&5
20272
20273 ac_header_compiler=no
20274 fi
20275
20276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20277 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20278 $as_echo "$ac_header_compiler" >&6; }
20279
20280 # Is the header present?
20281 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20282 $as_echo_n "checking $ac_header presence... " >&6; }
20283 cat >conftest.$ac_ext <<_ACEOF
20284 /* confdefs.h. */
20285 _ACEOF
20286 cat confdefs.h >>conftest.$ac_ext
20287 cat >>conftest.$ac_ext <<_ACEOF
20288 /* end confdefs.h. */
20289 #include <$ac_header>
20290 _ACEOF
20291 if { (ac_try="$ac_cpp conftest.$ac_ext"
20292 case "(($ac_try" in
20293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20294 *) ac_try_echo=$ac_try;;
20295 esac
20296 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20297 $as_echo "$ac_try_echo") >&5
20298 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20299 ac_status=$?
20300 grep -v '^ *+' conftest.er1 >conftest.err
20301 rm -f conftest.er1
20302 cat conftest.err >&5
20303 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20304 (exit $ac_status); } >/dev/null && {
20305 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20306 test ! -s conftest.err
20307 }; then
20308 ac_header_preproc=yes
20309 else
20310 $as_echo "$as_me: failed program was:" >&5
20311 sed 's/^/| /' conftest.$ac_ext >&5
20312
20313 ac_header_preproc=no
20314 fi
20315
20316 rm -f conftest.err conftest.$ac_ext
20317 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20318 $as_echo "$ac_header_preproc" >&6; }
20319
20320 # So? What about this header?
20321 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20322 yes:no: )
20323 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20324 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20325 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20326 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20327 ac_header_preproc=yes
20328 ;;
20329 no:yes:* )
20330 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20331 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20332 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20333 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20334 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20335 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20336 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20337 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20338 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20339 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20340 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20341 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20342 ( cat <<\_ASBOX
20343 ## ------------------------------------ ##
20344 ## Report this to [email protected] ##
20345 ## ------------------------------------ ##
20346 _ASBOX
20347 ) | sed "s/^/$as_me: WARNING: /" >&2
20348 ;;
20349 esac
20350 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20351 $as_echo_n "checking for $ac_header... " >&6; }
20352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20353 $as_echo_n "(cached) " >&6
20354 else
20355 eval "$as_ac_Header=\$ac_header_preproc"
20356 fi
20357 ac_res=`eval 'as_val=${'$as_ac_Header'}
20358 $as_echo "$as_val"'`
20359 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20360 $as_echo "$ac_res" >&6; }
20361
20362 fi
20363 as_val=`eval 'as_val=${'$as_ac_Header'}
20364 $as_echo "$as_val"'`
20365 if test "x$as_val" = x""yes; then
20366 cat >>confdefs.h <<_ACEOF
20367 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20368 _ACEOF
20369
20370 fi
20371
20372 done
20373
20374
20375 # Checks for library functions.
20376
20377 for ac_header in stdlib.h
20378 do
20379 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
20380 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20381 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20382 $as_echo_n "checking for $ac_header... " >&6; }
20383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20384 $as_echo_n "(cached) " >&6
20385 fi
20386 ac_res=`eval 'as_val=${'$as_ac_Header'}
20387 $as_echo "$as_val"'`
20388 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20389 $as_echo "$ac_res" >&6; }
20390 else
20391 # Is the header compilable?
20392 { $as_echo "$as_me:$LINENO: checking $ac_header usability" >&5
20393 $as_echo_n "checking $ac_header usability... " >&6; }
20394 cat >conftest.$ac_ext <<_ACEOF
20395 /* confdefs.h. */
20396 _ACEOF
20397 cat confdefs.h >>conftest.$ac_ext
20398 cat >>conftest.$ac_ext <<_ACEOF
20399 /* end confdefs.h. */
20400 $ac_includes_default
20401 #include <$ac_header>
20402 _ACEOF
20403 rm -f conftest.$ac_objext
20404 if { (ac_try="$ac_compile"
20405 case "(($ac_try" in
20406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20407 *) ac_try_echo=$ac_try;;
20408 esac
20409 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20410 $as_echo "$ac_try_echo") >&5
20411 (eval "$ac_compile") 2>conftest.er1
20412 ac_status=$?
20413 grep -v '^ *+' conftest.er1 >conftest.err
20414 rm -f conftest.er1
20415 cat conftest.err >&5
20416 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20417 (exit $ac_status); } && {
20418 test -z "$ac_c_werror_flag" ||
20419 test ! -s conftest.err
20420 } && test -s conftest.$ac_objext; then
20421 ac_header_compiler=yes
20422 else
20423 $as_echo "$as_me: failed program was:" >&5
20424 sed 's/^/| /' conftest.$ac_ext >&5
20425
20426 ac_header_compiler=no
20427 fi
20428
20429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20430 { $as_echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20431 $as_echo "$ac_header_compiler" >&6; }
20432
20433 # Is the header present?
20434 { $as_echo "$as_me:$LINENO: checking $ac_header presence" >&5
20435 $as_echo_n "checking $ac_header presence... " >&6; }
20436 cat >conftest.$ac_ext <<_ACEOF
20437 /* confdefs.h. */
20438 _ACEOF
20439 cat confdefs.h >>conftest.$ac_ext
20440 cat >>conftest.$ac_ext <<_ACEOF
20441 /* end confdefs.h. */
20442 #include <$ac_header>
20443 _ACEOF
20444 if { (ac_try="$ac_cpp conftest.$ac_ext"
20445 case "(($ac_try" in
20446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20447 *) ac_try_echo=$ac_try;;
20448 esac
20449 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20450 $as_echo "$ac_try_echo") >&5
20451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20452 ac_status=$?
20453 grep -v '^ *+' conftest.er1 >conftest.err
20454 rm -f conftest.er1
20455 cat conftest.err >&5
20456 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20457 (exit $ac_status); } >/dev/null && {
20458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20459 test ! -s conftest.err
20460 }; then
20461 ac_header_preproc=yes
20462 else
20463 $as_echo "$as_me: failed program was:" >&5
20464 sed 's/^/| /' conftest.$ac_ext >&5
20465
20466 ac_header_preproc=no
20467 fi
20468
20469 rm -f conftest.err conftest.$ac_ext
20470 { $as_echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20471 $as_echo "$ac_header_preproc" >&6; }
20472
20473 # So? What about this header?
20474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20475 yes:no: )
20476 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20477 $as_echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20478 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20479 $as_echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20480 ac_header_preproc=yes
20481 ;;
20482 no:yes:* )
20483 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20484 $as_echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20485 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20486 $as_echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20487 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20488 $as_echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20489 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20490 $as_echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20491 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20492 $as_echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20493 { $as_echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20494 $as_echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20495 ( cat <<\_ASBOX
20496 ## ------------------------------------ ##
20497 ## Report this to [email protected] ##
20498 ## ------------------------------------ ##
20499 _ASBOX
20500 ) | sed "s/^/$as_me: WARNING: /" >&2
20501 ;;
20502 esac
20503 { $as_echo "$as_me:$LINENO: checking for $ac_header" >&5
20504 $as_echo_n "checking for $ac_header... " >&6; }
20505 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20506 $as_echo_n "(cached) " >&6
20507 else
20508 eval "$as_ac_Header=\$ac_header_preproc"
20509 fi
20510 ac_res=`eval 'as_val=${'$as_ac_Header'}
20511 $as_echo "$as_val"'`
20512 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20513 $as_echo "$ac_res" >&6; }
20514
20515 fi
20516 as_val=`eval 'as_val=${'$as_ac_Header'}
20517 $as_echo "$as_val"'`
20518 if test "x$as_val" = x""yes; then
20519 cat >>confdefs.h <<_ACEOF
20520 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
20521 _ACEOF
20522
20523 fi
20524
20525 done
20526
20527 { $as_echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
20528 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
20529 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
20530 $as_echo_n "(cached) " >&6
20531 else
20532 if test "$cross_compiling" = yes; then
20533 ac_cv_func_malloc_0_nonnull=no
20534 else
20535 cat >conftest.$ac_ext <<_ACEOF
20536 /* confdefs.h. */
20537 _ACEOF
20538 cat confdefs.h >>conftest.$ac_ext
20539 cat >>conftest.$ac_ext <<_ACEOF
20540 /* end confdefs.h. */
20541 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
20542 # include <stdlib.h>
20543 #else
20544 char *malloc ();
20545 #endif
20546
20547 int
20548 main ()
20549 {
20550 return ! malloc (0);
20551 ;
20552 return 0;
20553 }
20554 _ACEOF
20555 rm -f conftest$ac_exeext
20556 if { (ac_try="$ac_link"
20557 case "(($ac_try" in
20558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20559 *) ac_try_echo=$ac_try;;
20560 esac
20561 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20562 $as_echo "$ac_try_echo") >&5
20563 (eval "$ac_link") 2>&5
20564 ac_status=$?
20565 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20566 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20567 { (case "(($ac_try" in
20568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20569 *) ac_try_echo=$ac_try;;
20570 esac
20571 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20572 $as_echo "$ac_try_echo") >&5
20573 (eval "$ac_try") 2>&5
20574 ac_status=$?
20575 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20576 (exit $ac_status); }; }; then
20577 ac_cv_func_malloc_0_nonnull=yes
20578 else
20579 $as_echo "$as_me: program exited with status $ac_status" >&5
20580 $as_echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20582
20583 ( exit $ac_status )
20584 ac_cv_func_malloc_0_nonnull=no
20585 fi
20586 rm -rf conftest.dSYM
20587 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20588 fi
20589
20590
20591 fi
20592 { $as_echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
20593 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
20594 if test $ac_cv_func_malloc_0_nonnull = yes; then
20595
20596 cat >>confdefs.h <<\_ACEOF
20597 #define HAVE_MALLOC 1
20598 _ACEOF
20599
20600 else
20601 cat >>confdefs.h <<\_ACEOF
20602 #define HAVE_MALLOC 0
20603 _ACEOF
20604
20605 case " $LIBOBJS " in
20606 *" malloc.$ac_objext "* ) ;;
20607 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
20608 ;;
20609 esac
20610
20611
20612 cat >>confdefs.h <<\_ACEOF
20613 #define malloc rpl_malloc
20614 _ACEOF
20615
20616 fi
20617
20618
20619
20620
20621
20622 for ac_func in memset strdup
20623 do
20624 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20625 { $as_echo "$as_me:$LINENO: checking for $ac_func" >&5
20626 $as_echo_n "checking for $ac_func... " >&6; }
20627 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20628 $as_echo_n "(cached) " >&6
20629 else
20630 cat >conftest.$ac_ext <<_ACEOF
20631 /* confdefs.h. */
20632 _ACEOF
20633 cat confdefs.h >>conftest.$ac_ext
20634 cat >>conftest.$ac_ext <<_ACEOF
20635 /* end confdefs.h. */
20636 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20637 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20638 #define $ac_func innocuous_$ac_func
20639
20640 /* System header to define __stub macros and hopefully few prototypes,
20641 which can conflict with char $ac_func (); below.
20642 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20643 <limits.h> exists even on freestanding compilers. */
20644
20645 #ifdef __STDC__
20646 # include <limits.h>
20647 #else
20648 # include <assert.h>
20649 #endif
20650
20651 #undef $ac_func
20652
20653 /* Override any GCC internal prototype to avoid an error.
20654 Use char because int might match the return type of a GCC
20655 builtin and then its argument prototype would still apply. */
20656 #ifdef __cplusplus
20657 extern "C"
20658 #endif
20659 char $ac_func ();
20660 /* The GNU C library defines this for functions which it implements
20661 to always fail with ENOSYS. Some functions are actually named
20662 something starting with __ and the normal name is an alias. */
20663 #if defined __stub_$ac_func || defined __stub___$ac_func
20664 choke me
20665 #endif
20666
20667 int
20668 main ()
20669 {
20670 return $ac_func ();
20671 ;
20672 return 0;
20673 }
20674 _ACEOF
20675 rm -f conftest.$ac_objext conftest$ac_exeext
20676 if { (ac_try="$ac_link"
20677 case "(($ac_try" in
20678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20679 *) ac_try_echo=$ac_try;;
20680 esac
20681 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
20682 $as_echo "$ac_try_echo") >&5
20683 (eval "$ac_link") 2>conftest.er1
20684 ac_status=$?
20685 grep -v '^ *+' conftest.er1 >conftest.err
20686 rm -f conftest.er1
20687 cat conftest.err >&5
20688 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } && {
20690 test -z "$ac_c_werror_flag" ||
20691 test ! -s conftest.err
20692 } && test -s conftest$ac_exeext && {
20693 test "$cross_compiling" = yes ||
20694 $as_test_x conftest$ac_exeext
20695 }; then
20696 eval "$as_ac_var=yes"
20697 else
20698 $as_echo "$as_me: failed program was:" >&5
20699 sed 's/^/| /' conftest.$ac_ext >&5
20700
20701 eval "$as_ac_var=no"
20702 fi
20703
20704 rm -rf conftest.dSYM
20705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20706 conftest$ac_exeext conftest.$ac_ext
20707 fi
20708 ac_res=`eval 'as_val=${'$as_ac_var'}
20709 $as_echo "$as_val"'`
20710 { $as_echo "$as_me:$LINENO: result: $ac_res" >&5
20711 $as_echo "$ac_res" >&6; }
20712 as_val=`eval 'as_val=${'$as_ac_var'}
20713 $as_echo "$as_val"'`
20714 if test "x$as_val" = x""yes; then
20715 cat >>confdefs.h <<_ACEOF
20716 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
20717 _ACEOF
20718
20719 fi
20720 done
20721
20722
20723 ac_config_files="$ac_config_files Makefile src/Makefile"
20724
20725 cat >confcache <<\_ACEOF
20726 # This file is a shell script that caches the results of configure
20727 # tests run on this system so they can be shared between configure
20728 # scripts and configure runs, see configure's option --config-cache.
20729 # It is not useful on other systems. If it contains results you don't
20730 # want to keep, you may remove or edit it.
20731 #
20732 # config.status only pays attention to the cache file if you give it
20733 # the --recheck option to rerun configure.
20734 #
20735 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20736 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20737 # following values.
20738
20739 _ACEOF
20740
20741 # The following way of writing the cache mishandles newlines in values,
20742 # but we know of no workaround that is simple, portable, and efficient.
20743 # So, we kill variables containing newlines.
20744 # Ultrix sh set writes to stderr and can't be redirected directly,
20745 # and sets the high bit in the cache file unless we assign to the vars.
20746 (
20747 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20748 eval ac_val=\$$ac_var
20749 case $ac_val in #(
20750 *${as_nl}*)
20751 case $ac_var in #(
20752 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
20753 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20754 esac
20755 case $ac_var in #(
20756 _ | IFS | as_nl) ;; #(
20757 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20758 *) $as_unset $ac_var ;;
20759 esac ;;
20760 esac
20761 done
20762
20763 (set) 2>&1 |
20764 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20765 *${as_nl}ac_space=\ *)
20766 # `set' does not quote correctly, so add quotes (double-quote
20767 # substitution turns \\\\ into \\, and sed turns \\ into \).
20768 sed -n \
20769 "s/'/'\\\\''/g;
20770 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20771 ;; #(
20772 *)
20773 # `set' quotes correctly as required by POSIX, so do not add quotes.
20774 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20775 ;;
20776 esac |
20777 sort
20778 ) |
20779 sed '
20780 /^ac_cv_env_/b end
20781 t clear
20782 :clear
20783 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20784 t end
20785 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20786 :end' >>confcache
20787 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20788 if test -w "$cache_file"; then
20789 test "x$cache_file" != "x/dev/null" &&
20790 { $as_echo "$as_me:$LINENO: updating cache $cache_file" >&5
20791 $as_echo "$as_me: updating cache $cache_file" >&6;}
20792 cat confcache >$cache_file
20793 else
20794 { $as_echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20795 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20796 fi
20797 fi
20798 rm -f confcache
20799
20800 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20801 # Let make expand exec_prefix.
20802 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20803
20804 DEFS=-DHAVE_CONFIG_H
20805
20806 ac_libobjs=
20807 ac_ltlibobjs=
20808 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20809 # 1. Remove the extension, and $U if already installed.
20810 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20811 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20812 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20813 # will be set to the directory where LIBOBJS objects are built.
20814 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20815 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20816 done
20817 LIBOBJS=$ac_libobjs
20818
20819 LTLIBOBJS=$ac_ltlibobjs
20820
20821
20822 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20823 { { $as_echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
20824 Usually this means the macro was only invoked conditionally." >&5
20825 $as_echo "$as_me: error: conditional \"AMDEP\" was never defined.
20826 Usually this means the macro was only invoked conditionally." >&2;}
20827 { (exit 1); exit 1; }; }
20828 fi
20829 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20830 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
20831 Usually this means the macro was only invoked conditionally." >&5
20832 $as_echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
20833 Usually this means the macro was only invoked conditionally." >&2;}
20834 { (exit 1); exit 1; }; }
20835 fi
20836 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20837 { { $as_echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
20838 Usually this means the macro was only invoked conditionally." >&5
20839 $as_echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
20840 Usually this means the macro was only invoked conditionally." >&2;}
20841 { (exit 1); exit 1; }; }
20842 fi
20843
20844 : ${CONFIG_STATUS=./config.status}
20845 ac_write_fail=0
20846 ac_clean_files_save=$ac_clean_files
20847 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20848 { $as_echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20849 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20850 cat >$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20851 #! $SHELL
20852 # Generated by $as_me.
20853 # Run this file to recreate the current configuration.
20854 # Compiler output produced by configure, useful for debugging
20855 # configure, is in config.log if it exists.
20856
20857 debug=false
20858 ac_cs_recheck=false
20859 ac_cs_silent=false
20860 SHELL=\${CONFIG_SHELL-$SHELL}
20861 _ACEOF
20862
20863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20864 ## --------------------- ##
20865 ## M4sh Initialization. ##
20866 ## --------------------- ##
20867
20868 # Be more Bourne compatible
20869 DUALCASE=1; export DUALCASE # for MKS sh
20870 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
20871 emulate sh
20872 NULLCMD=:
20873 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20874 # is contrary to our usage. Disable this feature.
20875 alias -g '${1+"$@"}'='"$@"'
20876 setopt NO_GLOB_SUBST
20877 else
20878 case `(set -o) 2>/dev/null` in
20879 *posix*) set -o posix ;;
20880 esac
20881
20882 fi
20883
20884
20885
20886
20887 # PATH needs CR
20888 # Avoid depending upon Character Ranges.
20889 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20890 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20891 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20892 as_cr_digits='0123456789'
20893 as_cr_alnum=$as_cr_Letters$as_cr_digits
20894
20895 as_nl='
20896 '
20897 export as_nl
20898 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20899 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20900 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20901 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20902 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20903 as_echo='printf %s\n'
20904 as_echo_n='printf %s'
20905 else
20906 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20907 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20908 as_echo_n='/usr/ucb/echo -n'
20909 else
20910 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20911 as_echo_n_body='eval
20912 arg=$1;
20913 case $arg in
20914 *"$as_nl"*)
20915 expr "X$arg" : "X\\(.*\\)$as_nl";
20916 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20917 esac;
20918 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20919 '
20920 export as_echo_n_body
20921 as_echo_n='sh -c $as_echo_n_body as_echo'
20922 fi
20923 export as_echo_body
20924 as_echo='sh -c $as_echo_body as_echo'
20925 fi
20926
20927 # The user is always right.
20928 if test "${PATH_SEPARATOR+set}" != set; then
20929 PATH_SEPARATOR=:
20930 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20931 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20932 PATH_SEPARATOR=';'
20933 }
20934 fi
20935
20936 # Support unset when possible.
20937 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
20938 as_unset=unset
20939 else
20940 as_unset=false
20941 fi
20942
20943
20944 # IFS
20945 # We need space, tab and new line, in precisely that order. Quoting is
20946 # there to prevent editors from complaining about space-tab.
20947 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20948 # splitting by setting IFS to empty value.)
20949 IFS=" "" $as_nl"
20950
20951 # Find who we are. Look in the path if we contain no directory separator.
20952 case $0 in
20953 *[\\/]* ) as_myself=$0 ;;
20954 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20955 for as_dir in $PATH
20956 do
20957 IFS=$as_save_IFS
20958 test -z "$as_dir" && as_dir=.
20959 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20960 done
20961 IFS=$as_save_IFS
20962
20963 ;;
20964 esac
20965 # We did not find ourselves, most probably we were run as `sh COMMAND'
20966 # in which case we are not to be found in the path.
20967 if test "x$as_myself" = x; then
20968 as_myself=$0
20969 fi
20970 if test ! -f "$as_myself"; then
20971 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20972 { (exit 1); exit 1; }
20973 fi
20974
20975 # Work around bugs in pre-3.0 UWIN ksh.
20976 for as_var in ENV MAIL MAILPATH
20977 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
20978 done
20979 PS1='$ '
20980 PS2='> '
20981 PS4='+ '
20982
20983 # NLS nuisances.
20984 LC_ALL=C
20985 export LC_ALL
20986 LANGUAGE=C
20987 export LANGUAGE
20988
20989 # Required to use basename.
20990 if expr a : '\(a\)' >/dev/null 2>&1 &&
20991 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20992 as_expr=expr
20993 else
20994 as_expr=false
20995 fi
20996
20997 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20998 as_basename=basename
20999 else
21000 as_basename=false
21001 fi
21002
21003
21004 # Name of the executable.
21005 as_me=`$as_basename -- "$0" ||
21006 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21007 X"$0" : 'X\(//\)$' \| \
21008 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21009 $as_echo X/"$0" |
21010 sed '/^.*\/\([^/][^/]*\)\/*$/{
21011 s//\1/
21012 q
21013 }
21014 /^X\/\(\/\/\)$/{
21015 s//\1/
21016 q
21017 }
21018 /^X\/\(\/\).*/{
21019 s//\1/
21020 q
21021 }
21022 s/.*/./; q'`
21023
21024 # CDPATH.
21025 $as_unset CDPATH
21026
21027
21028
21029 as_lineno_1=$LINENO
21030 as_lineno_2=$LINENO
21031 test "x$as_lineno_1" != "x$as_lineno_2" &&
21032 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21033
21034 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21035 # uniformly replaced by the line number. The first 'sed' inserts a
21036 # line-number line after each line using $LINENO; the second 'sed'
21037 # does the real work. The second script uses 'N' to pair each
21038 # line-number line with the line containing $LINENO, and appends
21039 # trailing '-' during substitution so that $LINENO is not a special
21040 # case at line end.
21041 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21042 # scripts with optimization help from Paolo Bonzini. Blame Lee
21043 # E. McMahon (1931-1989) for sed's syntax. :-)
21044 sed -n '
21045 p
21046 /[$]LINENO/=
21047 ' <$as_myself |
21048 sed '
21049 s/[$]LINENO.*/&-/
21050 t lineno
21051 b
21052 :lineno
21053 N
21054 :loop
21055 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21056 t loop
21057 s/-\n.*//
21058 ' >$as_me.lineno &&
21059 chmod +x "$as_me.lineno" ||
21060 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21061 { (exit 1); exit 1; }; }
21062
21063 # Don't try to exec as it changes $[0], causing all sort of problems
21064 # (the dirname of $[0] is not the place where we might find the
21065 # original and so on. Autoconf is especially sensitive to this).
21066 . "./$as_me.lineno"
21067 # Exit status is that of the last command.
21068 exit
21069 }
21070
21071
21072 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21073 as_dirname=dirname
21074 else
21075 as_dirname=false
21076 fi
21077
21078 ECHO_C= ECHO_N= ECHO_T=
21079 case `echo -n x` in
21080 -n*)
21081 case `echo 'x\c'` in
21082 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21083 *) ECHO_C='\c';;
21084 esac;;
21085 *)
21086 ECHO_N='-n';;
21087 esac
21088 if expr a : '\(a\)' >/dev/null 2>&1 &&
21089 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21090 as_expr=expr
21091 else
21092 as_expr=false
21093 fi
21094
21095 rm -f conf$$ conf$$.exe conf$$.file
21096 if test -d conf$$.dir; then
21097 rm -f conf$$.dir/conf$$.file
21098 else
21099 rm -f conf$$.dir
21100 mkdir conf$$.dir 2>/dev/null
21101 fi
21102 if (echo >conf$$.file) 2>/dev/null; then
21103 if ln -s conf$$.file conf$$ 2>/dev/null; then
21104 as_ln_s='ln -s'
21105 # ... but there are two gotchas:
21106 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21107 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21108 # In both cases, we have to default to `cp -p'.
21109 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21110 as_ln_s='cp -p'
21111 elif ln conf$$.file conf$$ 2>/dev/null; then
21112 as_ln_s=ln
21113 else
21114 as_ln_s='cp -p'
21115 fi
21116 else
21117 as_ln_s='cp -p'
21118 fi
21119 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21120 rmdir conf$$.dir 2>/dev/null
21121
21122 if mkdir -p . 2>/dev/null; then
21123 as_mkdir_p=:
21124 else
21125 test -d ./-p && rmdir ./-p
21126 as_mkdir_p=false
21127 fi
21128
21129 if test -x / >/dev/null 2>&1; then
21130 as_test_x='test -x'
21131 else
21132 if ls -dL / >/dev/null 2>&1; then
21133 as_ls_L_option=L
21134 else
21135 as_ls_L_option=
21136 fi
21137 as_test_x='
21138 eval sh -c '\''
21139 if test -d "$1"; then
21140 test -d "$1/.";
21141 else
21142 case $1 in
21143 -*)set "./$1";;
21144 esac;
21145 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
21146 ???[sx]*):;;*)false;;esac;fi
21147 '\'' sh
21148 '
21149 fi
21150 as_executable_p=$as_test_x
21151
21152 # Sed expression to map a string onto a valid CPP name.
21153 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21154
21155 # Sed expression to map a string onto a valid variable name.
21156 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21157
21158
21159 exec 6>&1
21160
21161 # Save the log message, to keep $[0] and so on meaningful, and to
21162 # report actual input values of CONFIG_FILES etc. instead of their
21163 # values after options handling.
21164 ac_log="
21165 This file was extended by ladspa-bs2b $as_me 0.9.1, which was
21166 generated by GNU Autoconf 2.63. Invocation command line was
21167
21168 CONFIG_FILES = $CONFIG_FILES
21169 CONFIG_HEADERS = $CONFIG_HEADERS
21170 CONFIG_LINKS = $CONFIG_LINKS
21171 CONFIG_COMMANDS = $CONFIG_COMMANDS
21172 $ $0 $@
21173
21174 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21175 "
21176
21177 _ACEOF
21178
21179 case $ac_config_files in *"
21180 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21181 esac
21182
21183 case $ac_config_headers in *"
21184 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21185 esac
21186
21187
21188 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21189 # Files that config.status was made for.
21190 config_files="$ac_config_files"
21191 config_headers="$ac_config_headers"
21192 config_commands="$ac_config_commands"
21193
21194 _ACEOF
21195
21196 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21197 ac_cs_usage="\
21198 \`$as_me' instantiates files from templates according to the
21199 current configuration.
21200
21201 Usage: $0 [OPTION]... [FILE]...
21202
21203 -h, --help print this help, then exit
21204 -V, --version print version number and configuration settings, then exit
21205 -q, --quiet, --silent
21206 do not print progress messages
21207 -d, --debug don't remove temporary files
21208 --recheck update $as_me by reconfiguring in the same conditions
21209 --file=FILE[:TEMPLATE]
21210 instantiate the configuration file FILE
21211 --header=FILE[:TEMPLATE]
21212 instantiate the configuration header FILE
21213
21214 Configuration files:
21215 $config_files
21216
21217 Configuration headers:
21218 $config_headers
21219
21220 Configuration commands:
21221 $config_commands
21222
21223 Report bugs to <[email protected]>."
21224
21225 _ACEOF
21226 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21227 ac_cs_version="\\
21228 ladspa-bs2b config.status 0.9.1
21229 configured by $0, generated by GNU Autoconf 2.63,
21230 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21231
21232 Copyright (C) 2008 Free Software Foundation, Inc.
21233 This config.status script is free software; the Free Software Foundation
21234 gives unlimited permission to copy, distribute and modify it."
21235
21236 ac_pwd='$ac_pwd'
21237 srcdir='$srcdir'
21238 INSTALL='$INSTALL'
21239 MKDIR_P='$MKDIR_P'
21240 AWK='$AWK'
21241 test -n "\$AWK" || AWK=awk
21242 _ACEOF
21243
21244 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21245 # The default lists apply if the user does not specify any file.
21246 ac_need_defaults=:
21247 while test $# != 0
21248 do
21249 case $1 in
21250 --*=*)
21251 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21252 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21253 ac_shift=:
21254 ;;
21255 *)
21256 ac_option=$1
21257 ac_optarg=$2
21258 ac_shift=shift
21259 ;;
21260 esac
21261
21262 case $ac_option in
21263 # Handling of the options.
21264 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21265 ac_cs_recheck=: ;;
21266 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21267 $as_echo "$ac_cs_version"; exit ;;
21268 --debug | --debu | --deb | --de | --d | -d )
21269 debug=: ;;
21270 --file | --fil | --fi | --f )
21271 $ac_shift
21272 case $ac_optarg in
21273 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21274 esac
21275 CONFIG_FILES="$CONFIG_FILES '$ac_optarg'"
21276 ac_need_defaults=false;;
21277 --header | --heade | --head | --hea )
21278 $ac_shift
21279 case $ac_optarg in
21280 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21281 esac
21282 CONFIG_HEADERS="$CONFIG_HEADERS '$ac_optarg'"
21283 ac_need_defaults=false;;
21284 --he | --h)
21285 # Conflict between --help and --header
21286 { $as_echo "$as_me: error: ambiguous option: $1
21287 Try \`$0 --help' for more information." >&2
21288 { (exit 1); exit 1; }; };;
21289 --help | --hel | -h )
21290 $as_echo "$ac_cs_usage"; exit ;;
21291 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21292 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21293 ac_cs_silent=: ;;
21294
21295 # This is an error.
21296 -*) { $as_echo "$as_me: error: unrecognized option: $1
21297 Try \`$0 --help' for more information." >&2
21298 { (exit 1); exit 1; }; } ;;
21299
21300 *) ac_config_targets="$ac_config_targets $1"
21301 ac_need_defaults=false ;;
21302
21303 esac
21304 shift
21305 done
21306
21307 ac_configure_extra_args=
21308
21309 if $ac_cs_silent; then
21310 exec 6>/dev/null
21311 ac_configure_extra_args="$ac_configure_extra_args --silent"
21312 fi
21313
21314 _ACEOF
21315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21316 if \$ac_cs_recheck; then
21317 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21318 shift
21319 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21320 CONFIG_SHELL='$SHELL'
21321 export CONFIG_SHELL
21322 exec "\$@"
21323 fi
21324
21325 _ACEOF
21326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21327 exec 5>>config.log
21328 {
21329 echo
21330 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21331 ## Running $as_me. ##
21332 _ASBOX
21333 $as_echo "$ac_log"
21334 } >&5
21335
21336 _ACEOF
21337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21338 #
21339 # INIT-COMMANDS
21340 #
21341 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21342
21343 _ACEOF
21344
21345 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21346
21347 # Handling of arguments.
21348 for ac_config_target in $ac_config_targets
21349 do
21350 case $ac_config_target in
21351 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21352 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21353 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21354 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21355
21356 *) { { $as_echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21357 $as_echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21358 { (exit 1); exit 1; }; };;
21359 esac
21360 done
21361
21362
21363 # If the user did not use the arguments to specify the items to instantiate,
21364 # then the envvar interface is used. Set only those that are not.
21365 # We use the long form for the default assignment because of an extremely
21366 # bizarre bug on SunOS 4.1.3.
21367 if $ac_need_defaults; then
21368 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21369 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21370 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21371 fi
21372
21373 # Have a temporary directory for convenience. Make it in the build tree
21374 # simply because there is no reason against having it here, and in addition,
21375 # creating and moving files from /tmp can sometimes cause problems.
21376 # Hook for its removal unless debugging.
21377 # Note that there is a small window in which the directory will not be cleaned:
21378 # after its creation but before its name has been assigned to `$tmp'.
21379 $debug ||
21380 {
21381 tmp=
21382 trap 'exit_status=$?
21383 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21384 ' 0
21385 trap '{ (exit 1); exit 1; }' 1 2 13 15
21386 }
21387 # Create a (secure) tmp directory for tmp files.
21388
21389 {
21390 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21391 test -n "$tmp" && test -d "$tmp"
21392 } ||
21393 {
21394 tmp=./conf$$-$RANDOM
21395 (umask 077 && mkdir "$tmp")
21396 } ||
21397 {
21398 $as_echo "$as_me: cannot create a temporary directory in ." >&2
21399 { (exit 1); exit 1; }
21400 }
21401
21402 # Set up the scripts for CONFIG_FILES section.
21403 # No need to generate them if there are no CONFIG_FILES.
21404 # This happens for instance with `./config.status config.h'.
21405 if test -n "$CONFIG_FILES"; then
21406
21407
21408 ac_cr=' '
21409 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21410 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21411 ac_cs_awk_cr='\\r'
21412 else
21413 ac_cs_awk_cr=$ac_cr
21414 fi
21415
21416 echo 'BEGIN {' >"$tmp/subs1.awk" &&
21417 _ACEOF
21418
21419
21420 {
21421 echo "cat >conf$$subs.awk <<_ACEOF" &&
21422 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21423 echo "_ACEOF"
21424 } >conf$$subs.sh ||
21425 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21426 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21427 { (exit 1); exit 1; }; }
21428 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
21429 ac_delim='%!_!# '
21430 for ac_last_try in false false false false false :; do
21431 . ./conf$$subs.sh ||
21432 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21433 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21434 { (exit 1); exit 1; }; }
21435
21436 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21437 if test $ac_delim_n = $ac_delim_num; then
21438 break
21439 elif $ac_last_try; then
21440 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21441 $as_echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21442 { (exit 1); exit 1; }; }
21443 else
21444 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21445 fi
21446 done
21447 rm -f conf$$subs.sh
21448
21449 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21450 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
21451 _ACEOF
21452 sed -n '
21453 h
21454 s/^/S["/; s/!.*/"]=/
21455 p
21456 g
21457 s/^[^!]*!//
21458 :repl
21459 t repl
21460 s/'"$ac_delim"'$//
21461 t delim
21462 :nl
21463 h
21464 s/\(.\{148\}\).*/\1/
21465 t more1
21466 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21467 p
21468 n
21469 b repl
21470 :more1
21471 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21472 p
21473 g
21474 s/.\{148\}//
21475 t nl
21476 :delim
21477 h
21478 s/\(.\{148\}\).*/\1/
21479 t more2
21480 s/["\\]/\\&/g; s/^/"/; s/$/"/
21481 p
21482 b
21483 :more2
21484 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21485 p
21486 g
21487 s/.\{148\}//
21488 t delim
21489 ' <conf$$subs.awk | sed '
21490 /^[^""]/{
21491 N
21492 s/\n//
21493 }
21494 ' >>$CONFIG_STATUS || ac_write_fail=1
21495 rm -f conf$$subs.awk
21496 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21497 _ACAWK
21498 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
21499 for (key in S) S_is_set[key] = 1
21500 FS = ""
21501
21502 }
21503 {
21504 line = $ 0
21505 nfields = split(line, field, "@")
21506 substed = 0
21507 len = length(field[1])
21508 for (i = 2; i < nfields; i++) {
21509 key = field[i]
21510 keylen = length(key)
21511 if (S_is_set[key]) {
21512 value = S[key]
21513 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21514 len += length(value) + length(field[++i])
21515 substed = 1
21516 } else
21517 len += 1 + keylen
21518 }
21519
21520 print line
21521 }
21522
21523 _ACAWK
21524 _ACEOF
21525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21526 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21527 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21528 else
21529 cat
21530 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
21531 || { { $as_echo "$as_me:$LINENO: error: could not setup config files machinery" >&5
21532 $as_echo "$as_me: error: could not setup config files machinery" >&2;}
21533 { (exit 1); exit 1; }; }
21534 _ACEOF
21535
21536 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21537 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21538 # trailing colons and then remove the whole line if VPATH becomes empty
21539 # (actually we leave an empty line to preserve line numbers).
21540 if test "x$srcdir" = x.; then
21541 ac_vpsub='/^[ ]*VPATH[ ]*=/{
21542 s/:*\$(srcdir):*/:/
21543 s/:*\${srcdir}:*/:/
21544 s/:*@srcdir@:*/:/
21545 s/^\([^=]*=[ ]*\):*/\1/
21546 s/:*$//
21547 s/^[^=]*=[ ]*$//
21548 }'
21549 fi
21550
21551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21552 fi # test -n "$CONFIG_FILES"
21553
21554 # Set up the scripts for CONFIG_HEADERS section.
21555 # No need to generate them if there are no CONFIG_HEADERS.
21556 # This happens for instance with `./config.status Makefile'.
21557 if test -n "$CONFIG_HEADERS"; then
21558 cat >"$tmp/defines.awk" <<\_ACAWK ||
21559 BEGIN {
21560 _ACEOF
21561
21562 # Transform confdefs.h into an awk script `defines.awk', embedded as
21563 # here-document in config.status, that substitutes the proper values into
21564 # config.h.in to produce config.h.
21565
21566 # Create a delimiter string that does not exist in confdefs.h, to ease
21567 # handling of long lines.
21568 ac_delim='%!_!# '
21569 for ac_last_try in false false :; do
21570 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
21571 if test -z "$ac_t"; then
21572 break
21573 elif $ac_last_try; then
21574 { { $as_echo "$as_me:$LINENO: error: could not make $CONFIG_HEADERS" >&5
21575 $as_echo "$as_me: error: could not make $CONFIG_HEADERS" >&2;}
21576 { (exit 1); exit 1; }; }
21577 else
21578 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21579 fi
21580 done
21581
21582 # For the awk script, D is an array of macro values keyed by name,
21583 # likewise P contains macro parameters if any. Preserve backslash
21584 # newline sequences.
21585
21586 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21587 sed -n '
21588 s/.\{148\}/&'"$ac_delim"'/g
21589 t rset
21590 :rset
21591 s/^[ ]*#[ ]*define[ ][ ]*/ /
21592 t def
21593 d
21594 :def
21595 s/\\$//
21596 t bsnl
21597 s/["\\]/\\&/g
21598 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21599 D["\1"]=" \3"/p
21600 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21601 d
21602 :bsnl
21603 s/["\\]/\\&/g
21604 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21605 D["\1"]=" \3\\\\\\n"\\/p
21606 t cont
21607 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21608 t cont
21609 d
21610 :cont
21611 n
21612 s/.\{148\}/&'"$ac_delim"'/g
21613 t clear
21614 :clear
21615 s/\\$//
21616 t bsnlc
21617 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21618 d
21619 :bsnlc
21620 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21621 b cont
21622 ' <confdefs.h | sed '
21623 s/'"$ac_delim"'/"\\\
21624 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21625
21626 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21627 for (key in D) D_is_set[key] = 1
21628 FS = ""
21629 }
21630 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21631 line = \$ 0
21632 split(line, arg, " ")
21633 if (arg[1] == "#") {
21634 defundef = arg[2]
21635 mac1 = arg[3]
21636 } else {
21637 defundef = substr(arg[1], 2)
21638 mac1 = arg[2]
21639 }
21640 split(mac1, mac2, "(") #)
21641 macro = mac2[1]
21642 prefix = substr(line, 1, index(line, defundef) - 1)
21643 if (D_is_set[macro]) {
21644 # Preserve the white space surrounding the "#".
21645 print prefix "define", macro P[macro] D[macro]
21646 next
21647 } else {
21648 # Replace #undef with comments. This is necessary, for example,
21649 # in the case of _POSIX_SOURCE, which is predefined and required
21650 # on some systems where configure will not decide to define it.
21651 if (defundef == "undef") {
21652 print "/*", prefix defundef, macro, "*/"
21653 next
21654 }
21655 }
21656 }
21657 { print }
21658 _ACAWK
21659 _ACEOF
21660 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21661 { { $as_echo "$as_me:$LINENO: error: could not setup config headers machinery" >&5
21662 $as_echo "$as_me: error: could not setup config headers machinery" >&2;}
21663 { (exit 1); exit 1; }; }
21664 fi # test -n "$CONFIG_HEADERS"
21665
21666
21667 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21668 shift
21669 for ac_tag
21670 do
21671 case $ac_tag in
21672 :[FHLC]) ac_mode=$ac_tag; continue;;
21673 esac
21674 case $ac_mode$ac_tag in
21675 :[FHL]*:*);;
21676 :L* | :C*:*) { { $as_echo "$as_me:$LINENO: error: invalid tag $ac_tag" >&5
21677 $as_echo "$as_me: error: invalid tag $ac_tag" >&2;}
21678 { (exit 1); exit 1; }; };;
21679 :[FH]-) ac_tag=-:-;;
21680 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21681 esac
21682 ac_save_IFS=$IFS
21683 IFS=:
21684 set x $ac_tag
21685 IFS=$ac_save_IFS
21686 shift
21687 ac_file=$1
21688 shift
21689
21690 case $ac_mode in
21691 :L) ac_source=$1;;
21692 :[FH])
21693 ac_file_inputs=
21694 for ac_f
21695 do
21696 case $ac_f in
21697 -) ac_f="$tmp/stdin";;
21698 *) # Look for the file first in the build tree, then in the source tree
21699 # (if the path is not absolute). The absolute path cannot be DOS-style,
21700 # because $ac_f cannot contain `:'.
21701 test -f "$ac_f" ||
21702 case $ac_f in
21703 [\\/$]*) false;;
21704 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21705 esac ||
21706 { { $as_echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21707 $as_echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21708 { (exit 1); exit 1; }; };;
21709 esac
21710 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21711 ac_file_inputs="$ac_file_inputs '$ac_f'"
21712 done
21713
21714 # Let's still pretend it is `configure' which instantiates (i.e., don't
21715 # use $as_me), people would be surprised to read:
21716 # /* config.h. Generated by config.status. */
21717 configure_input='Generated from '`
21718 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21719 `' by configure.'
21720 if test x"$ac_file" != x-; then
21721 configure_input="$ac_file. $configure_input"
21722 { $as_echo "$as_me:$LINENO: creating $ac_file" >&5
21723 $as_echo "$as_me: creating $ac_file" >&6;}
21724 fi
21725 # Neutralize special characters interpreted by sed in replacement strings.
21726 case $configure_input in #(
21727 *\&* | *\|* | *\\* )
21728 ac_sed_conf_input=`$as_echo "$configure_input" |
21729 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21730 *) ac_sed_conf_input=$configure_input;;
21731 esac
21732
21733 case $ac_tag in
21734 *:-:* | *:-) cat >"$tmp/stdin" \
21735 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21736 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21737 { (exit 1); exit 1; }; } ;;
21738 esac
21739 ;;
21740 esac
21741
21742 ac_dir=`$as_dirname -- "$ac_file" ||
21743 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21744 X"$ac_file" : 'X\(//\)[^/]' \| \
21745 X"$ac_file" : 'X\(//\)$' \| \
21746 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21747 $as_echo X"$ac_file" |
21748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21749 s//\1/
21750 q
21751 }
21752 /^X\(\/\/\)[^/].*/{
21753 s//\1/
21754 q
21755 }
21756 /^X\(\/\/\)$/{
21757 s//\1/
21758 q
21759 }
21760 /^X\(\/\).*/{
21761 s//\1/
21762 q
21763 }
21764 s/.*/./; q'`
21765 { as_dir="$ac_dir"
21766 case $as_dir in #(
21767 -*) as_dir=./$as_dir;;
21768 esac
21769 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21770 as_dirs=
21771 while :; do
21772 case $as_dir in #(
21773 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21774 *) as_qdir=$as_dir;;
21775 esac
21776 as_dirs="'$as_qdir' $as_dirs"
21777 as_dir=`$as_dirname -- "$as_dir" ||
21778 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21779 X"$as_dir" : 'X\(//\)[^/]' \| \
21780 X"$as_dir" : 'X\(//\)$' \| \
21781 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21782 $as_echo X"$as_dir" |
21783 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21784 s//\1/
21785 q
21786 }
21787 /^X\(\/\/\)[^/].*/{
21788 s//\1/
21789 q
21790 }
21791 /^X\(\/\/\)$/{
21792 s//\1/
21793 q
21794 }
21795 /^X\(\/\).*/{
21796 s//\1/
21797 q
21798 }
21799 s/.*/./; q'`
21800 test -d "$as_dir" && break
21801 done
21802 test -z "$as_dirs" || eval "mkdir $as_dirs"
21803 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21804 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
21805 { (exit 1); exit 1; }; }; }
21806 ac_builddir=.
21807
21808 case "$ac_dir" in
21809 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21810 *)
21811 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21812 # A ".." for each directory in $ac_dir_suffix.
21813 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21814 case $ac_top_builddir_sub in
21815 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21816 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21817 esac ;;
21818 esac
21819 ac_abs_top_builddir=$ac_pwd
21820 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21821 # for backward compatibility:
21822 ac_top_builddir=$ac_top_build_prefix
21823
21824 case $srcdir in
21825 .) # We are building in place.
21826 ac_srcdir=.
21827 ac_top_srcdir=$ac_top_builddir_sub
21828 ac_abs_top_srcdir=$ac_pwd ;;
21829 [\\/]* | ?:[\\/]* ) # Absolute name.
21830 ac_srcdir=$srcdir$ac_dir_suffix;
21831 ac_top_srcdir=$srcdir
21832 ac_abs_top_srcdir=$srcdir ;;
21833 *) # Relative name.
21834 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21835 ac_top_srcdir=$ac_top_build_prefix$srcdir
21836 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21837 esac
21838 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21839
21840
21841 case $ac_mode in
21842 :F)
21843 #
21844 # CONFIG_FILE
21845 #
21846
21847 case $INSTALL in
21848 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21849 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21850 esac
21851 ac_MKDIR_P=$MKDIR_P
21852 case $MKDIR_P in
21853 [\\/$]* | ?:[\\/]* ) ;;
21854 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21855 esac
21856 _ACEOF
21857
21858 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21859 # If the template does not know about datarootdir, expand it.
21860 # FIXME: This hack should be removed a few years after 2.60.
21861 ac_datarootdir_hack=; ac_datarootdir_seen=
21862
21863 ac_sed_dataroot='
21864 /datarootdir/ {
21865 p
21866 q
21867 }
21868 /@datadir@/p
21869 /@docdir@/p
21870 /@infodir@/p
21871 /@localedir@/p
21872 /@mandir@/p
21873 '
21874 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21875 *datarootdir*) ac_datarootdir_seen=yes;;
21876 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21877 { $as_echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21878 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21879 _ACEOF
21880 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21881 ac_datarootdir_hack='
21882 s&@datadir@&$datadir&g
21883 s&@docdir@&$docdir&g
21884 s&@infodir@&$infodir&g
21885 s&@localedir@&$localedir&g
21886 s&@mandir@&$mandir&g
21887 s&\\\${datarootdir}&$datarootdir&g' ;;
21888 esac
21889 _ACEOF
21890
21891 # Neutralize VPATH when `$srcdir' = `.'.
21892 # Shell code in configure.ac might set extrasub.
21893 # FIXME: do we really want to maintain this feature?
21894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21895 ac_sed_extra="$ac_vpsub
21896 $extrasub
21897 _ACEOF
21898 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21899 :t
21900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21901 s|@configure_input@|$ac_sed_conf_input|;t t
21902 s&@top_builddir@&$ac_top_builddir_sub&;t t
21903 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21904 s&@srcdir@&$ac_srcdir&;t t
21905 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21906 s&@top_srcdir@&$ac_top_srcdir&;t t
21907 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21908 s&@builddir@&$ac_builddir&;t t
21909 s&@abs_builddir@&$ac_abs_builddir&;t t
21910 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21911 s&@INSTALL@&$ac_INSTALL&;t t
21912 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21913 $ac_datarootdir_hack
21914 "
21915 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
21916 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21917 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21918 { (exit 1); exit 1; }; }
21919
21920 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21921 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
21922 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
21923 { $as_echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21924 which seems to be undefined. Please make sure it is defined." >&5
21925 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21926 which seems to be undefined. Please make sure it is defined." >&2;}
21927
21928 rm -f "$tmp/stdin"
21929 case $ac_file in
21930 -) cat "$tmp/out" && rm -f "$tmp/out";;
21931 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
21932 esac \
21933 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21934 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21935 { (exit 1); exit 1; }; }
21936 ;;
21937 :H)
21938 #
21939 # CONFIG_HEADER
21940 #
21941 if test x"$ac_file" != x-; then
21942 {
21943 $as_echo "/* $configure_input */" \
21944 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
21945 } >"$tmp/config.h" \
21946 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21947 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21948 { (exit 1); exit 1; }; }
21949 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
21950 { $as_echo "$as_me:$LINENO: $ac_file is unchanged" >&5
21951 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21952 else
21953 rm -f "$ac_file"
21954 mv "$tmp/config.h" "$ac_file" \
21955 || { { $as_echo "$as_me:$LINENO: error: could not create $ac_file" >&5
21956 $as_echo "$as_me: error: could not create $ac_file" >&2;}
21957 { (exit 1); exit 1; }; }
21958 fi
21959 else
21960 $as_echo "/* $configure_input */" \
21961 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
21962 || { { $as_echo "$as_me:$LINENO: error: could not create -" >&5
21963 $as_echo "$as_me: error: could not create -" >&2;}
21964 { (exit 1); exit 1; }; }
21965 fi
21966 # Compute "$ac_file"'s index in $config_headers.
21967 _am_arg="$ac_file"
21968 _am_stamp_count=1
21969 for _am_header in $config_headers :; do
21970 case $_am_header in
21971 $_am_arg | $_am_arg:* )
21972 break ;;
21973 * )
21974 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21975 esac
21976 done
21977 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21978 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21979 X"$_am_arg" : 'X\(//\)[^/]' \| \
21980 X"$_am_arg" : 'X\(//\)$' \| \
21981 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21982 $as_echo X"$_am_arg" |
21983 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21984 s//\1/
21985 q
21986 }
21987 /^X\(\/\/\)[^/].*/{
21988 s//\1/
21989 q
21990 }
21991 /^X\(\/\/\)$/{
21992 s//\1/
21993 q
21994 }
21995 /^X\(\/\).*/{
21996 s//\1/
21997 q
21998 }
21999 s/.*/./; q'`/stamp-h$_am_stamp_count
22000 ;;
22001
22002 :C) { $as_echo "$as_me:$LINENO: executing $ac_file commands" >&5
22003 $as_echo "$as_me: executing $ac_file commands" >&6;}
22004 ;;
22005 esac
22006
22007
22008 case $ac_file$ac_mode in
22009 "depfiles":C) test x"$AMDEP_TRUE" != x"" || # Autoconf 2.62 quotes --file arguments for eval, but not when files
22010 # are listed without --file. Let's play safe and only enable the eval
22011 # if we detect the quoting.
22012 case $CONFIG_FILES in
22013 *\'*) eval set x "$CONFIG_FILES" ;;
22014 *) set x $CONFIG_FILES ;;
22015 esac
22016 shift
22017 for mf
22018 do
22019 # Strip MF so we end up with the name of the file.
22020 mf=`echo "$mf" | sed -e 's/:.*$//'`
22021 # Check whether this is an Automake generated Makefile or not.
22022 # We used to match only the files named `Makefile.in', but
22023 # some people rename them; so instead we look at the file content.
22024 # Grep'ing the first line is not enough: some people post-process
22025 # each Makefile.in and add a new line on top of each file to say so.
22026 # Grep'ing the whole file is not good either: AIX grep has a line
22027 # limit of 2048, but all sed's we know have understand at least 4000.
22028 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22029 dirpart=`$as_dirname -- "$mf" ||
22030 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22031 X"$mf" : 'X\(//\)[^/]' \| \
22032 X"$mf" : 'X\(//\)$' \| \
22033 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22034 $as_echo X"$mf" |
22035 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22036 s//\1/
22037 q
22038 }
22039 /^X\(\/\/\)[^/].*/{
22040 s//\1/
22041 q
22042 }
22043 /^X\(\/\/\)$/{
22044 s//\1/
22045 q
22046 }
22047 /^X\(\/\).*/{
22048 s//\1/
22049 q
22050 }
22051 s/.*/./; q'`
22052 else
22053 continue
22054 fi
22055 # Extract the definition of DEPDIR, am__include, and am__quote
22056 # from the Makefile without running `make'.
22057 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22058 test -z "$DEPDIR" && continue
22059 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22060 test -z "am__include" && continue
22061 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22062 # When using ansi2knr, U may be empty or an underscore; expand it
22063 U=`sed -n 's/^U = //p' < "$mf"`
22064 # Find all dependency output files, they are included files with
22065 # $(DEPDIR) in their names. We invoke sed twice because it is the
22066 # simplest approach to changing $(DEPDIR) to its actual value in the
22067 # expansion.
22068 for file in `sed -n "
22069 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22070 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22071 # Make sure the directory exists.
22072 test -f "$dirpart/$file" && continue
22073 fdir=`$as_dirname -- "$file" ||
22074 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22075 X"$file" : 'X\(//\)[^/]' \| \
22076 X"$file" : 'X\(//\)$' \| \
22077 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22078 $as_echo X"$file" |
22079 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22080 s//\1/
22081 q
22082 }
22083 /^X\(\/\/\)[^/].*/{
22084 s//\1/
22085 q
22086 }
22087 /^X\(\/\/\)$/{
22088 s//\1/
22089 q
22090 }
22091 /^X\(\/\).*/{
22092 s//\1/
22093 q
22094 }
22095 s/.*/./; q'`
22096 { as_dir=$dirpart/$fdir
22097 case $as_dir in #(
22098 -*) as_dir=./$as_dir;;
22099 esac
22100 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22101 as_dirs=
22102 while :; do
22103 case $as_dir in #(
22104 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22105 *) as_qdir=$as_dir;;
22106 esac
22107 as_dirs="'$as_qdir' $as_dirs"
22108 as_dir=`$as_dirname -- "$as_dir" ||
22109 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22110 X"$as_dir" : 'X\(//\)[^/]' \| \
22111 X"$as_dir" : 'X\(//\)$' \| \
22112 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22113 $as_echo X"$as_dir" |
22114 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22115 s//\1/
22116 q
22117 }
22118 /^X\(\/\/\)[^/].*/{
22119 s//\1/
22120 q
22121 }
22122 /^X\(\/\/\)$/{
22123 s//\1/
22124 q
22125 }
22126 /^X\(\/\).*/{
22127 s//\1/
22128 q
22129 }
22130 s/.*/./; q'`
22131 test -d "$as_dir" && break
22132 done
22133 test -z "$as_dirs" || eval "mkdir $as_dirs"
22134 } || test -d "$as_dir" || { { $as_echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22135 $as_echo "$as_me: error: cannot create directory $as_dir" >&2;}
22136 { (exit 1); exit 1; }; }; }
22137 # echo "creating $dirpart/$file"
22138 echo '# dummy' > "$dirpart/$file"
22139 done
22140 done
22141 ;;
22142
22143 esac
22144 done # for ac_tag
22145
22146
22147 { (exit 0); exit 0; }
22148 _ACEOF
22149 chmod +x $CONFIG_STATUS
22150 ac_clean_files=$ac_clean_files_save
22151
22152 test $ac_write_fail = 0 ||
22153 { { $as_echo "$as_me:$LINENO: error: write failure creating $CONFIG_STATUS" >&5
22154 $as_echo "$as_me: error: write failure creating $CONFIG_STATUS" >&2;}
22155 { (exit 1); exit 1; }; }
22156
22157
22158 # configure is writing to config.log, and then calls config.status.
22159 # config.status does its own redirection, appending to config.log.
22160 # Unfortunately, on DOS this fails, as config.log is still kept open
22161 # by configure, so config.status won't be able to write to it; its
22162 # output is simply discarded. So we exec the FD to /dev/null,
22163 # effectively closing config.log, so it can be properly (re)opened and
22164 # appended to by config.status. When coming back to configure, we
22165 # need to make the FD available again.
22166 if test "$no_create" != yes; then
22167 ac_cs_success=:
22168 ac_config_status_args=
22169 test "$silent" = yes &&
22170 ac_config_status_args="$ac_config_status_args --quiet"
22171 exec 5>/dev/null
22172 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22173 exec 5>>config.log
22174 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22175 # would make configure fail if this is the last instruction.
22176 $ac_cs_success || { (exit 1); exit 1; }
22177 fi
22178 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22179 { $as_echo "$as_me:$LINENO: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22180 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
22181 fi
22182